|
|
@ -388,7 +388,8 @@ export interface FilterType { |
|
|
|
fk_column_id?: IdType; |
|
|
|
fk_column_id?: IdType; |
|
|
|
logical_op?: string; |
|
|
|
logical_op?: string; |
|
|
|
comparison_op?: string; |
|
|
|
comparison_op?: string; |
|
|
|
comparison_sub_op?: string; |
|
|
|
/** Model for StringOrNull */ |
|
|
|
|
|
|
|
comparison_sub_op?: StringOrNullType; |
|
|
|
value?: any; |
|
|
|
value?: any; |
|
|
|
is_group?: boolean | number | null; |
|
|
|
is_group?: boolean | number | null; |
|
|
|
children?: FilterType[]; |
|
|
|
children?: FilterType[]; |
|
|
@ -449,7 +450,37 @@ export interface FilterReqType { |
|
|
|
| 'nextWeek' |
|
|
|
| 'nextWeek' |
|
|
|
| 'nextYear' |
|
|
|
| 'nextYear' |
|
|
|
| 'pastNumberOfDays' |
|
|
|
| 'pastNumberOfDays' |
|
|
|
| 'nextNumberOfDays'; |
|
|
|
| 'nextNumberOfDays' |
|
|
|
|
|
|
|
| 'today' |
|
|
|
|
|
|
|
| 'tomorrow' |
|
|
|
|
|
|
|
| 'yesterday' |
|
|
|
|
|
|
|
| 'oneWeekAgo' |
|
|
|
|
|
|
|
| 'oneWeekFromNow' |
|
|
|
|
|
|
|
| 'oneMonthAgo' |
|
|
|
|
|
|
|
| 'oneMonthFromNow' |
|
|
|
|
|
|
|
| 'daysAgo' |
|
|
|
|
|
|
|
| 'daysFromNow' |
|
|
|
|
|
|
|
| 'exactDate' |
|
|
|
|
|
|
|
| null |
|
|
|
|
|
|
|
| ( |
|
|
|
|
|
|
|
| 'pastWeek' |
|
|
|
|
|
|
|
| 'pastMonth' |
|
|
|
|
|
|
|
| 'pastYear' |
|
|
|
|
|
|
|
| 'nextWeek' |
|
|
|
|
|
|
|
| 'nextYear' |
|
|
|
|
|
|
|
| 'pastNumberOfDays' |
|
|
|
|
|
|
|
| 'nextNumberOfDays' |
|
|
|
|
|
|
|
| 'today' |
|
|
|
|
|
|
|
| 'tomorrow' |
|
|
|
|
|
|
|
| 'yesterday' |
|
|
|
|
|
|
|
| 'oneWeekAgo' |
|
|
|
|
|
|
|
| 'oneWeekFromNow' |
|
|
|
|
|
|
|
| 'oneMonthAgo' |
|
|
|
|
|
|
|
| 'oneMonthFromNow' |
|
|
|
|
|
|
|
| 'daysAgo' |
|
|
|
|
|
|
|
| 'daysFromNow' |
|
|
|
|
|
|
|
| ('exactDate' & null) |
|
|
|
|
|
|
|
); |
|
|
|
/** The filter value. Can be NULL for some operators. */ |
|
|
|
/** The filter value. Can be NULL for some operators. */ |
|
|
|
value?: any; |
|
|
|
value?: any; |
|
|
|
/** Is this filter grouped? */ |
|
|
|
/** Is this filter grouped? */ |
|
|
@ -1000,20 +1031,24 @@ export interface FormReqType { |
|
|
|
* @example My Form Subheading |
|
|
|
* @example My Form Subheading |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
subheading?: string; |
|
|
|
subheading?: string; |
|
|
|
success_msg?: string; |
|
|
|
/** Custom message after the form is successfully submitted */ |
|
|
|
redirect_url?: string | null; |
|
|
|
success_msg?: StringOrNullType; |
|
|
|
redirect_after_secs?: string | null; |
|
|
|
/** URL to redirect after submission */ |
|
|
|
email?: string | null; |
|
|
|
redirect_url?: StringOrNullType; |
|
|
|
|
|
|
|
/** The numbers of seconds to redirect after form submission */ |
|
|
|
|
|
|
|
redirect_after_secs?: StringOrNullType; |
|
|
|
/** Model for StringOrNull */ |
|
|
|
/** Model for StringOrNull */ |
|
|
|
|
|
|
|
email?: StringOrNullType; |
|
|
|
|
|
|
|
/** Banner Image URL. Not in use currently. */ |
|
|
|
banner_image_url?: StringOrNullType; |
|
|
|
banner_image_url?: StringOrNullType; |
|
|
|
/** Model for StringOrNull */ |
|
|
|
/** Logo URL. Not in use currently. */ |
|
|
|
logo_url?: StringOrNullType; |
|
|
|
logo_url?: StringOrNullType; |
|
|
|
/** Model for Bool */ |
|
|
|
/** Show `Submit Another Form` button */ |
|
|
|
submit_another_form?: BoolType; |
|
|
|
submit_another_form?: BoolType; |
|
|
|
/** Model for Bool */ |
|
|
|
/** Show `Blank Form` after 5 seconds */ |
|
|
|
show_blank_form?: BoolType; |
|
|
|
show_blank_form?: BoolType; |
|
|
|
lock_type?: 'collaborative' | 'locked' | 'personal'; |
|
|
|
lock_type?: 'collaborative' | 'locked' | 'personal'; |
|
|
|
/** Model for Meta */ |
|
|
|
/** Meta Info for this view */ |
|
|
|
meta?: MetaType; |
|
|
|
meta?: MetaType; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -3484,16 +3519,16 @@ export class Api< |
|
|
|
* @tags DB View |
|
|
|
* @tags DB View |
|
|
|
* @name FormUpdate |
|
|
|
* @name FormUpdate |
|
|
|
* @summary Update Form |
|
|
|
* @summary Update Form |
|
|
|
* @request PATCH:/api/v1/db/meta/forms/{formId} |
|
|
|
* @request PATCH:/api/v1/db/meta/forms/{formViewId} |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `void` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
formUpdate: ( |
|
|
|
formUpdate: ( |
|
|
|
formId: string, |
|
|
|
formViewId: string, |
|
|
|
data: FormReqType, |
|
|
|
data: FormReqType, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request<void, any>({ |
|
|
|
path: `/api/v1/db/meta/forms/${formId}`, |
|
|
|
path: `/api/v1/db/meta/forms/${formViewId}`, |
|
|
|
method: 'PATCH', |
|
|
|
method: 'PATCH', |
|
|
|
body: data, |
|
|
|
body: data, |
|
|
|
type: ContentType.Json, |
|
|
|
type: ContentType.Json, |
|
|
@ -3506,12 +3541,12 @@ export class Api< |
|
|
|
* @tags DB View |
|
|
|
* @tags DB View |
|
|
|
* @name FormRead |
|
|
|
* @name FormRead |
|
|
|
* @summary Get Form |
|
|
|
* @summary Get Form |
|
|
|
* @request GET:/api/v1/db/meta/forms/{formId} |
|
|
|
* @request GET:/api/v1/db/meta/forms/{formViewId} |
|
|
|
* @response `200` `FormType` OK |
|
|
|
* @response `200` `FormType` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
formRead: (formId: string, params: RequestParams = {}) => |
|
|
|
formRead: (formViewId: string, params: RequestParams = {}) => |
|
|
|
this.request<FormType, any>({ |
|
|
|
this.request<FormType, any>({ |
|
|
|
path: `/api/v1/db/meta/forms/${formId}`, |
|
|
|
path: `/api/v1/db/meta/forms/${formViewId}`, |
|
|
|
method: 'GET', |
|
|
|
method: 'GET', |
|
|
|
format: 'json', |
|
|
|
format: 'json', |
|
|
|
...params, |
|
|
|
...params, |
|
|
@ -4339,7 +4374,7 @@ export class Api< |
|
|
|
orgs: string, |
|
|
|
orgs: string, |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
|
rowId: string, |
|
|
|
rowId: any, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<any, any>({ |
|
|
|
this.request<any, any>({ |
|
|
@ -4362,7 +4397,7 @@ export class Api< |
|
|
|
orgs: string, |
|
|
|
orgs: string, |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
|
rowId: string, |
|
|
|
rowId: any, |
|
|
|
data: any, |
|
|
|
data: any, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
@ -4388,7 +4423,7 @@ export class Api< |
|
|
|
orgs: string, |
|
|
|
orgs: string, |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
|
rowId: string, |
|
|
|
rowId: any, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<any, any>({ |
|
|
|
this.request<any, any>({ |
|
|
@ -4411,7 +4446,7 @@ export class Api< |
|
|
|
orgs: string, |
|
|
|
orgs: string, |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
|
rowId: string, |
|
|
|
rowId: any, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<any, any>({ |
|
|
|
this.request<any, any>({ |
|
|
@ -4589,7 +4624,7 @@ export class Api< |
|
|
|
orgs: string, |
|
|
|
orgs: string, |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
|
rowId: string, |
|
|
|
rowId: any, |
|
|
|
relationType: 'mm' | 'hm' | 'bt', |
|
|
|
relationType: 'mm' | 'hm' | 'bt', |
|
|
|
columnName: string, |
|
|
|
columnName: string, |
|
|
|
query?: { |
|
|
|
query?: { |
|
|
@ -4622,7 +4657,7 @@ export class Api< |
|
|
|
orgs: string, |
|
|
|
orgs: string, |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
|
rowId: string, |
|
|
|
rowId: any, |
|
|
|
relationType: 'mm' | 'hm' | 'bt', |
|
|
|
relationType: 'mm' | 'hm' | 'bt', |
|
|
|
columnName: string, |
|
|
|
columnName: string, |
|
|
|
refRowId: string, |
|
|
|
refRowId: string, |
|
|
@ -4655,7 +4690,7 @@ export class Api< |
|
|
|
orgs: string, |
|
|
|
orgs: string, |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
|
rowId: string, |
|
|
|
rowId: any, |
|
|
|
relationType: 'mm' | 'hm' | 'bt', |
|
|
|
relationType: 'mm' | 'hm' | 'bt', |
|
|
|
columnName: string, |
|
|
|
columnName: string, |
|
|
|
refRowId: string, |
|
|
|
refRowId: string, |
|
|
@ -4681,7 +4716,7 @@ export class Api< |
|
|
|
orgs: string, |
|
|
|
orgs: string, |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
|
rowId: string, |
|
|
|
rowId: any, |
|
|
|
relationType: 'mm' | 'hm' | 'bt', |
|
|
|
relationType: 'mm' | 'hm' | 'bt', |
|
|
|
columnName: string, |
|
|
|
columnName: string, |
|
|
|
query?: { |
|
|
|
query?: { |
|
|
@ -4900,7 +4935,7 @@ export class Api< |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
|
viewName: string, |
|
|
|
viewName: string, |
|
|
|
rowId: string, |
|
|
|
rowId: any, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<any, any>({ |
|
|
|
this.request<any, any>({ |
|
|
@ -4924,7 +4959,7 @@ export class Api< |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
|
viewName: string, |
|
|
|
viewName: string, |
|
|
|
rowId: string, |
|
|
|
rowId: any, |
|
|
|
data: any, |
|
|
|
data: any, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
@ -4951,7 +4986,7 @@ export class Api< |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
|
viewName: string, |
|
|
|
viewName: string, |
|
|
|
rowId: string, |
|
|
|
rowId: any, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request<void, any>({ |
|
|
@ -4974,7 +5009,7 @@ export class Api< |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
|
viewName: string, |
|
|
|
viewName: string, |
|
|
|
rowId: string, |
|
|
|
rowId: any, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<any, any>({ |
|
|
|
this.request<any, any>({ |
|
|
@ -5097,7 +5132,7 @@ export class Api< |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
dataNestedList: ( |
|
|
|
dataNestedList: ( |
|
|
|
sharedViewUuid: string, |
|
|
|
sharedViewUuid: string, |
|
|
|
rowId: string, |
|
|
|
rowId: any, |
|
|
|
relationType: 'mm' | 'hm' | 'bt', |
|
|
|
relationType: 'mm' | 'hm' | 'bt', |
|
|
|
columnName: string, |
|
|
|
columnName: string, |
|
|
|
query?: { |
|
|
|
query?: { |
|
|
@ -5318,7 +5353,7 @@ export class Api< |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `void` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
auditRowUpdate: ( |
|
|
|
auditRowUpdate: ( |
|
|
|
rowId: string, |
|
|
|
rowId: any, |
|
|
|
data: AuditRowUpdateReqType, |
|
|
|
data: AuditRowUpdateReqType, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|