Browse Source

refactor(sdk): regenerate Api.ts

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
c35fe7c848
  1. 78
      packages/nocodb-sdk/src/lib/Api.ts

78
packages/nocodb-sdk/src/lib/Api.ts

@ -3123,9 +3123,20 @@ export class Api<
* @summary Create App License
* @request POST:/api/v1/license
* @response `200` `void` OK
* @response `400` `{
\** @example BadRequest [Error]: <ERROR MESSAGE> *\
msg?: string,
}`
*/
set: (data: LicenseReqType, params: RequestParams = {}) =>
this.request<void, any>({
this.request<
void,
{
/** @example BadRequest [Error]: <ERROR MESSAGE> */
msg?: string;
}
>({
path: `/api/v1/license`,
method: 'POST',
body: data,
@ -3587,9 +3598,20 @@ export class Api<
* @summary List Projects
* @request GET:/api/v1/db/meta/projects/
* @response `200` `ProjectListType` OK
* @response `400` `{
\** @example BadRequest [Error]: <ERROR MESSAGE> *\
msg?: string,
}`
*/
list: (params: RequestParams = {}) =>
this.request<ProjectListType, any>({
this.request<
ProjectListType,
{
/** @example BadRequest [Error]: <ERROR MESSAGE> */
msg?: string;
}
>({
path: `/api/v1/db/meta/projects/`,
method: 'GET',
format: 'json',
@ -4934,13 +4956,24 @@ export class Api<
* @summary Update Form
* @request PATCH:/api/v1/db/meta/forms/{formViewId}
* @response `200` `void` OK
* @response `400` `{
\** @example BadRequest [Error]: <ERROR MESSAGE> *\
msg?: string,
}`
*/
formUpdate: (
formViewId: IdType,
data: FormReqType,
params: RequestParams = {}
) =>
this.request<void, any>({
this.request<
void,
{
/** @example BadRequest [Error]: <ERROR MESSAGE> */
msg?: string;
}
>({
path: `/api/v1/db/meta/forms/${formViewId}`,
method: 'PATCH',
body: data,
@ -6428,6 +6461,11 @@ export class Api<
* @summary Bulk Update Table Rows with Conditions
* @request PATCH:/api/v1/db/data/bulk/{orgs}/{projectName}/{tableName}/all
* @response `200` `any` OK
* @response `400` `{
\** @example BadRequest [Error]: <ERROR MESSAGE> *\
msg?: string,
}`
*/
bulkUpdateAll: (
orgs: string,
@ -6439,7 +6477,13 @@ export class Api<
},
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`,
method: 'PATCH',
query: query,
@ -6531,6 +6575,11 @@ export class Api<
* @summary List Nested Relations Rows
* @request GET:/api/v1/db/data/{orgs}/{projectName}/{tableName}/{rowId}/{relationType}/{columnName}
* @response `200` `any` OK
* @response `400` `{
\** @example BadRequest [Error]: <ERROR MESSAGE> *\
msg?: string,
}`
*/
nestedList: (
orgs: string,
@ -6548,7 +6597,13 @@ export class Api<
},
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}`,
method: 'GET',
query: query,
@ -7528,9 +7583,20 @@ export class Api<
* @summary Comment Rows
* @request POST:/api/v1/db/meta/audits/comments
* @response `200` `void` OK
* @response `400` `{
\** @example BadRequest [Error]: <ERROR MESSAGE> *\
msg?: string,
}`
*/
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`,
method: 'POST',
body: data,

Loading…
Cancel
Save