|
|
@ -3116,16 +3116,27 @@ export class Api< |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @description Set the application license key. Exclusive for super admin. |
|
|
|
* @description Set the application license key. Exclusive for super admin. |
|
|
|
* |
|
|
|
*
|
|
|
|
* @tags Org License |
|
|
|
* @tags Org License |
|
|
|
* @name Set |
|
|
|
* @name Set |
|
|
|
* @summary Create App License |
|
|
|
* @summary Create App License |
|
|
|
* @request POST:/api/v1/license |
|
|
|
* @request POST:/api/v1/license |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `void` OK |
|
|
|
*/ |
|
|
|
* @response `400` `{
|
|
|
|
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` |
|
|
|
|
|
|
|
*/ |
|
|
|
set: (data: LicenseReqType, params: RequestParams = {}) => |
|
|
|
set: (data: LicenseReqType, params: RequestParams = {}) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request< |
|
|
|
|
|
|
|
void, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
>({ |
|
|
|
path: `/api/v1/license`, |
|
|
|
path: `/api/v1/license`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
body: data, |
|
|
|
body: data, |
|
|
@ -3580,16 +3591,27 @@ export class Api< |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @description List all project meta data |
|
|
|
* @description List all project meta data |
|
|
|
* |
|
|
|
*
|
|
|
|
* @tags Project |
|
|
|
* @tags Project |
|
|
|
* @name List |
|
|
|
* @name List |
|
|
|
* @summary List Projects |
|
|
|
* @summary List Projects |
|
|
|
* @request GET:/api/v1/db/meta/projects/ |
|
|
|
* @request GET:/api/v1/db/meta/projects/ |
|
|
|
* @response `200` `ProjectListType` OK |
|
|
|
* @response `200` `ProjectListType` OK |
|
|
|
*/ |
|
|
|
* @response `400` `{
|
|
|
|
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` |
|
|
|
|
|
|
|
*/ |
|
|
|
list: (params: RequestParams = {}) => |
|
|
|
list: (params: RequestParams = {}) => |
|
|
|
this.request<ProjectListType, any>({ |
|
|
|
this.request< |
|
|
|
|
|
|
|
ProjectListType, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
>({ |
|
|
|
path: `/api/v1/db/meta/projects/`, |
|
|
|
path: `/api/v1/db/meta/projects/`, |
|
|
|
method: 'GET', |
|
|
|
method: 'GET', |
|
|
|
format: 'json', |
|
|
|
format: 'json', |
|
|
@ -4927,20 +4949,31 @@ export class Api< |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @description Update the form data by Form ID |
|
|
|
* @description Update the form data by Form ID |
|
|
|
* |
|
|
|
*
|
|
|
|
* @tags DB View |
|
|
|
* @tags DB View |
|
|
|
* @name FormUpdate |
|
|
|
* @name FormUpdate |
|
|
|
* @summary Update Form |
|
|
|
* @summary Update Form |
|
|
|
* @request PATCH:/api/v1/db/meta/forms/{formViewId} |
|
|
|
* @request PATCH:/api/v1/db/meta/forms/{formViewId} |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `void` OK |
|
|
|
*/ |
|
|
|
* @response `400` `{
|
|
|
|
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` |
|
|
|
|
|
|
|
*/ |
|
|
|
formUpdate: ( |
|
|
|
formUpdate: ( |
|
|
|
formViewId: IdType, |
|
|
|
formViewId: IdType, |
|
|
|
data: FormReqType, |
|
|
|
data: FormReqType, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request< |
|
|
|
|
|
|
|
void, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
>({ |
|
|
|
path: `/api/v1/db/meta/forms/${formViewId}`, |
|
|
|
path: `/api/v1/db/meta/forms/${formViewId}`, |
|
|
|
method: 'PATCH', |
|
|
|
method: 'PATCH', |
|
|
|
body: data, |
|
|
|
body: data, |
|
|
@ -6421,14 +6454,19 @@ export class Api< |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @description Bulk Update all Table Rows if the condition is true |
|
|
|
* @description Bulk Update all Table Rows if the condition is true |
|
|
|
* |
|
|
|
*
|
|
|
|
* @tags DB Table Row |
|
|
|
* @tags DB Table Row |
|
|
|
* @name BulkUpdateAll |
|
|
|
* @name BulkUpdateAll |
|
|
|
* @summary Bulk Update Table Rows with Conditions |
|
|
|
* @summary Bulk Update Table Rows with Conditions |
|
|
|
* @request PATCH:/api/v1/db/data/bulk/{orgs}/{projectName}/{tableName}/all |
|
|
|
* @request PATCH:/api/v1/db/data/bulk/{orgs}/{projectName}/{tableName}/all |
|
|
|
* @response `200` `any` OK |
|
|
|
* @response `200` `any` OK |
|
|
|
*/ |
|
|
|
* @response `400` `{
|
|
|
|
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` |
|
|
|
|
|
|
|
*/ |
|
|
|
bulkUpdateAll: ( |
|
|
|
bulkUpdateAll: ( |
|
|
|
orgs: string, |
|
|
|
orgs: string, |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
@ -6439,7 +6477,13 @@ export class Api< |
|
|
|
}, |
|
|
|
}, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<any, any>({ |
|
|
|
this.request< |
|
|
|
|
|
|
|
any, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
>({ |
|
|
|
path: `/api/v1/db/data/bulk/${orgs}/${projectName}/${tableName}/all`, |
|
|
|
path: `/api/v1/db/data/bulk/${orgs}/${projectName}/${tableName}/all`, |
|
|
|
method: 'PATCH', |
|
|
|
method: 'PATCH', |
|
|
|
query: query, |
|
|
|
query: query, |
|
|
@ -6524,14 +6568,19 @@ export class Api< |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @description List all nested relations rows |
|
|
|
* @description List all nested relations rows |
|
|
|
* |
|
|
|
*
|
|
|
|
* @tags DB Table Row |
|
|
|
* @tags DB Table Row |
|
|
|
* @name NestedList |
|
|
|
* @name NestedList |
|
|
|
* @summary List Nested Relations Rows |
|
|
|
* @summary List Nested Relations Rows |
|
|
|
* @request GET:/api/v1/db/data/{orgs}/{projectName}/{tableName}/{rowId}/{relationType}/{columnName} |
|
|
|
* @request GET:/api/v1/db/data/{orgs}/{projectName}/{tableName}/{rowId}/{relationType}/{columnName} |
|
|
|
* @response `200` `any` OK |
|
|
|
* @response `200` `any` OK |
|
|
|
*/ |
|
|
|
* @response `400` `{
|
|
|
|
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` |
|
|
|
|
|
|
|
*/ |
|
|
|
nestedList: ( |
|
|
|
nestedList: ( |
|
|
|
orgs: string, |
|
|
|
orgs: string, |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
@ -6548,7 +6597,13 @@ export class Api< |
|
|
|
}, |
|
|
|
}, |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<any, any>({ |
|
|
|
this.request< |
|
|
|
|
|
|
|
any, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
>({ |
|
|
|
path: `/api/v1/db/data/${orgs}/${projectName}/${tableName}/${rowId}/${relationType}/${columnName}`, |
|
|
|
path: `/api/v1/db/data/${orgs}/${projectName}/${tableName}/${rowId}/${relationType}/${columnName}`, |
|
|
|
method: 'GET', |
|
|
|
method: 'GET', |
|
|
|
query: query, |
|
|
|
query: query, |
|
|
@ -7521,16 +7576,27 @@ export class Api< |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @description Create a new comment in a row. Logged in Audit. |
|
|
|
* @description Create a new comment in a row. Logged in Audit. |
|
|
|
* |
|
|
|
*
|
|
|
|
* @tags Utils |
|
|
|
* @tags Utils |
|
|
|
* @name CommentRow |
|
|
|
* @name CommentRow |
|
|
|
* @summary Comment Rows |
|
|
|
* @summary Comment Rows |
|
|
|
* @request POST:/api/v1/db/meta/audits/comments |
|
|
|
* @request POST:/api/v1/db/meta/audits/comments |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `void` OK |
|
|
|
*/ |
|
|
|
* @response `400` `{
|
|
|
|
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
|
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` |
|
|
|
|
|
|
|
*/ |
|
|
|
commentRow: (data: CommentReqType, params: RequestParams = {}) => |
|
|
|
commentRow: (data: CommentReqType, params: RequestParams = {}) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request< |
|
|
|
|
|
|
|
void, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
|
|
|
|
msg?: string; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
>({ |
|
|
|
path: `/api/v1/db/meta/audits/comments`, |
|
|
|
path: `/api/v1/db/meta/audits/comments`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
body: data, |
|
|
|
body: data, |
|
|
|