|
|
@ -112,7 +112,9 @@ export const linkFieldNameParam = (columns: SwaggerColumn[]) => { |
|
|
|
}; |
|
|
|
}; |
|
|
|
export const viewIdParams = (views: SwaggerView[]) => { |
|
|
|
export const viewIdParams = (views: SwaggerView[]) => { |
|
|
|
const viewIds = []; |
|
|
|
const viewIds = []; |
|
|
|
const description = ['Views:']; |
|
|
|
const description = [ |
|
|
|
|
|
|
|
'Allows you to fetch records that are currently visible within a specific view.\n\nViews:', |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
for (const { view } of views) { |
|
|
|
for (const { view } of views) { |
|
|
|
viewIds.push(view.id); |
|
|
|
viewIds.push(view.id); |
|
|
@ -123,6 +125,7 @@ export const viewIdParams = (views: SwaggerView[]) => { |
|
|
|
schema: { |
|
|
|
schema: { |
|
|
|
type: 'string', |
|
|
|
type: 'string', |
|
|
|
enum: viewIds, |
|
|
|
enum: viewIds, |
|
|
|
|
|
|
|
default: viewIds[0], |
|
|
|
}, |
|
|
|
}, |
|
|
|
description: description.join('\n'), |
|
|
|
description: description.join('\n'), |
|
|
|
name: 'viewId', |
|
|
|
name: 'viewId', |
|
|
|