Browse Source

refactor(sdk): regenerate Api.ts

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

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

@ -3152,7 +3152,7 @@ export class Api<
* @name Create * @name Create
* @summary Create Organisation API Token * @summary Create Organisation API Token
* @request POST:/api/v1/tokens * @request POST:/api/v1/tokens
* @response `200` `void` OK * @response `200` `ApiTokenType` OK
* @response `400` `{ * @response `400` `{
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ \** @example BadRequest [Error]: <ERROR MESSAGE> *\
msg?: string, msg?: string,
@ -3161,7 +3161,7 @@ export class Api<
*/ */
create: (data: ApiTokenReqType, params: RequestParams = {}) => create: (data: ApiTokenReqType, params: RequestParams = {}) =>
this.request< this.request<
void, ApiTokenType,
{ {
/** @example BadRequest [Error]: <ERROR MESSAGE> */ /** @example BadRequest [Error]: <ERROR MESSAGE> */
msg?: string; msg?: string;
@ -3171,6 +3171,7 @@ export class Api<
method: 'POST', method: 'POST',
body: data, body: data,
type: ContentType.Json, type: ContentType.Json,
format: 'json',
...params, ...params,
}), }),
@ -3245,7 +3246,11 @@ export class Api<
* @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` `{
\** @example The license key has been saved *\
msg?: string,
}` OK
* @response `400` `{ * @response `400` `{
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ \** @example BadRequest [Error]: <ERROR MESSAGE> *\
msg?: string, msg?: string,
@ -3254,7 +3259,10 @@ export class Api<
*/ */
set: (data: LicenseReqType, params: RequestParams = {}) => set: (data: LicenseReqType, params: RequestParams = {}) =>
this.request< this.request<
void, {
/** @example The license key has been saved */
msg?: string;
},
{ {
/** @example BadRequest [Error]: <ERROR MESSAGE> */ /** @example BadRequest [Error]: <ERROR MESSAGE> */
msg?: string; msg?: string;
@ -3264,6 +3272,7 @@ export class Api<
method: 'POST', method: 'POST',
body: data, body: data,
type: ContentType.Json, type: ContentType.Json,
format: 'json',
...params, ...params,
}), }),
}; };
@ -3316,7 +3325,11 @@ export class Api<
* @name Set * @name Set
* @summary Create App Settings * @summary Create App Settings
* @request POST:/api/v1/app-settings * @request POST:/api/v1/app-settings
* @response `200` `void` OK * @response `200` `{
\** @example The app settings have been saved *\
msg?: string,
}` OK
* @response `400` `{ * @response `400` `{
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ \** @example BadRequest [Error]: <ERROR MESSAGE> *\
msg?: string, msg?: string,
@ -3334,7 +3347,10 @@ export class Api<
params: RequestParams = {} params: RequestParams = {}
) => ) =>
this.request< this.request<
void, {
/** @example The app settings have been saved */
msg?: string;
},
{ {
/** @example BadRequest [Error]: <ERROR MESSAGE> */ /** @example BadRequest [Error]: <ERROR MESSAGE> */
msg?: string; msg?: string;
@ -3344,6 +3360,7 @@ export class Api<
method: 'POST', method: 'POST',
body: data, body: data,
type: ContentType.Json, type: ContentType.Json,
format: 'json',
...params, ...params,
}), }),
}; };
@ -3383,7 +3400,16 @@ export class Api<
* @name Add * @name Add
* @summary Create Organisation User * @summary Create Organisation User
* @request POST:/api/v1/users * @request POST:/api/v1/users
* @response `200` `any` OK * @response `200` `{
\** Invite Token *\
invite_token?: string,
\**
* User email
* @example user@example.com
*\
email?: string,
}` OK
* @response `400` `{ * @response `400` `{
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ \** @example BadRequest [Error]: <ERROR MESSAGE> *\
msg?: string, msg?: string,
@ -3392,7 +3418,15 @@ export class Api<
*/ */
add: (data: OrgUserReqType, params: RequestParams = {}) => add: (data: OrgUserReqType, params: RequestParams = {}) =>
this.request< this.request<
any, {
/** Invite Token */
invite_token?: string;
/**
* User email
* @example user@example.com
*/
email?: string;
},
{ {
/** @example BadRequest [Error]: <ERROR MESSAGE> */ /** @example BadRequest [Error]: <ERROR MESSAGE> */
msg?: string; msg?: string;

Loading…
Cancel
Save