Browse Source

refactor(sdk): regenerate Api.ts

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

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

@ -40,6 +40,16 @@ export interface ApiTokenReqType {
description?: string;
}
/**
* Model for API Token List
*/
export interface ApiTokenListType {
/** @example [{"list":[{"id":"1","fk_user_id":"us_b3xo2i44nx5y9l","description":"This API Token is for ABC application","token":"DYh540o8hbWpUGdarekECKLdN5OhlgCUWutVJYX2"}],"pageInfo":{"isFirstPage":true,"isLastPage":true,"page":1,"pageSize":10,"totalRows":1}}] */
list?: ApiTokenType[];
/** Model for Paginated */
pageInfo?: PaginatedType;
}
/**
* Model for Attachment
*/
@ -2291,6 +2301,12 @@ export type VisibilityRuleReqType = {
};
}[];
export interface ApiTokenReqCopyType {
list?: ApiTokenType[];
/** Model for Paginated */
pageInfo?: PaginatedType;
}
import axios, { AxiosInstance, AxiosRequestConfig, ResponseType } from 'axios';
export type QueryParamsType = Record<string | number, any>;
@ -3032,27 +3048,10 @@ export class Api<
* @name List
* @summary List Organisation Users
* @request GET:/api/v1/users
* @response `200` `{
users?: {
list: (UserType)[],
\** Model for Paginated *\
pageInfo: PaginatedType,
},
}` OK
* @response `200` `UserListType` OK
*/
list: (params: RequestParams = {}) =>
this.request<
{
users?: {
list: UserType[];
/** Model for Paginated */
pageInfo: PaginatedType;
};
},
any
>({
this.request<UserListType, any>({
path: `/api/v1/users`,
method: 'GET',
format: 'json',
@ -6709,24 +6708,10 @@ export class Api<
* @name List
* @summary List API Tokens in Project
* @request GET:/api/v1/db/meta/projects/{projectId}/api-tokens
* @response `200` `{
\** List of API Token Models *\
list: (ApiTokenType)[],
\** Pagination Info *\
pageInfo: PaginatedType,
}` OK
* @response `200` `ApiTokenListType` OK
*/
list: (projectId: IdType, params: RequestParams = {}) =>
this.request<
{
/** List of API Token Models */
list: ApiTokenType[];
/** Pagination Info */
pageInfo: PaginatedType;
},
any
>({
this.request<ApiTokenListType, any>({
path: `/api/v1/db/meta/projects/${projectId}/api-tokens`,
method: 'GET',
format: 'json',

Loading…
Cancel
Save