Browse Source

chore(sdk): regenerate Api.ts

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

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

@ -245,11 +245,9 @@ export interface BaseType {
* Model for Base List * Model for Base List
*/ */
export interface BaseListType { export interface BaseListType {
bases: { list?: BaseType[];
list: BaseType[]; /** Model for Paginated */
/** Model for Paginated */ pageInfo?: PaginatedType;
pageInfo: PaginatedType;
};
} }
/** /**
@ -436,9 +434,9 @@ export interface ColumnType {
* Model for Column List * Model for Column List
*/ */
export interface ColumnListType { export interface ColumnListType {
columns: { list?: ColumnType[];
list: ColumnType[]; /** Model for Paginated */
}; pageInfo?: PaginatedType;
} }
/** /**
@ -592,9 +590,9 @@ export interface FilterType {
* Model for Filter List * Model for Filter List
*/ */
export interface FilterListType { export interface FilterListType {
filters: { list?: FilterType[];
list: FilterType[]; /** Model for Paginated */
}; pageInfo?: PaginatedType;
} }
/** /**
@ -2003,9 +2001,9 @@ export interface SortType {
* Model for Sort List * Model for Sort List
*/ */
export interface SortListType { export interface SortListType {
sorts: { list?: SortType[];
list: SortType[]; /** Model for Paginated */
}; pageInfo?: PaginatedType;
} }
/** /**
@ -2152,13 +2150,9 @@ export interface UserInfoType {
* Model for User List * Model for User List
*/ */
export interface UserListType { export interface UserListType {
/** users includes `list` and `pageInfo` */ list?: UserType[];
users: { /** Model for Paginated */
/** List of User objects */ pageInfo?: PaginatedType;
list: UserType;
/** Pagination info */
pageInfo: PaginatedType;
};
} }
/** /**
@ -2178,7 +2172,7 @@ export interface ViewType {
/** The rder of the list of views */ /** The rder of the list of views */
order?: number; order?: number;
/** Password for protecting the view */ /** Password for protecting the view */
password?: string; password?: StringOrNullType;
/** Unique Project ID */ /** Unique Project ID */
project_id?: IdType; project_id?: IdType;
/** If this view is shown? */ /** If this view is shown? */
@ -4102,12 +4096,13 @@ export class Api<
* @name List * @name List
* @summary List views * @summary List views
* @request GET:/api/v1/db/meta/tables/{tableId}/views * @request GET:/api/v1/db/meta/tables/{tableId}/views
* @response `200` `ViewListType` * @response `200` `ViewListType` OK
*/ */
list: (tableId: IdType, params: RequestParams = {}) => list: (tableId: IdType, params: RequestParams = {}) =>
this.request<ViewListType, any>({ this.request<ViewListType, any>({
path: `/api/v1/db/meta/tables/${tableId}/views`, path: `/api/v1/db/meta/tables/${tableId}/views`,
method: 'GET', method: 'GET',
format: 'json',
...params, ...params,
}), }),
@ -4673,29 +4668,16 @@ export class Api<
}; };
dbTableSort = { dbTableSort = {
/** /**
* @description List all the sort data in a given View * @description List all the sort data in a given View
* *
* @tags DB Table Sort * @tags DB Table Sort
* @name List * @name List
* @summary List View Sorts * @summary List View Sorts
* @request GET:/api/v1/db/meta/views/{viewId}/sorts * @request GET:/api/v1/db/meta/views/{viewId}/sorts
* @response `200` `{ * @response `200` `SortListType` OK
sorts?: { */
list?: (SortType)[],
},
}` OK
*/
list: (viewId: string, params: RequestParams = {}) => list: (viewId: string, params: RequestParams = {}) =>
this.request< this.request<SortListType, any>({
{
sorts?: {
list?: SortType[];
};
},
any
>({
path: `/api/v1/db/meta/views/${viewId}/sorts`, path: `/api/v1/db/meta/views/${viewId}/sorts`,
method: 'GET', method: 'GET',
format: 'json', format: 'json',
@ -4789,10 +4771,10 @@ export class Api<
* @name Read * @name Read
* @summary Get View Filter * @summary Get View Filter
* @request GET:/api/v1/db/meta/views/{viewId}/filters * @request GET:/api/v1/db/meta/views/{viewId}/filters
* @response `200` `(FilterType)[]` OK * @response `200` `FilterListType` OK
*/ */
read: (viewId: string, params: RequestParams = {}) => read: (viewId: string, params: RequestParams = {}) =>
this.request<FilterType[], any>({ this.request<FilterListType, any>({
path: `/api/v1/db/meta/views/${viewId}/filters`, path: `/api/v1/db/meta/views/${viewId}/filters`,
method: 'GET', method: 'GET',
format: 'json', format: 'json',
@ -4880,10 +4862,10 @@ export class Api<
* @name ChildrenRead * @name ChildrenRead
* @summary Get Filter Group Children * @summary Get Filter Group Children
* @request GET:/api/v1/db/meta/filters/{filterGroupId}/children * @request GET:/api/v1/db/meta/filters/{filterGroupId}/children
* @response `200` `(FilterType)[]` OK * @response `200` `FilterListType` OK
*/ */
childrenRead: (filterGroupId: IdType, params: RequestParams = {}) => childrenRead: (filterGroupId: IdType, params: RequestParams = {}) =>
this.request<FilterType[], any>({ this.request<FilterListType, any>({
path: `/api/v1/db/meta/filters/${filterGroupId}/children`, path: `/api/v1/db/meta/filters/${filterGroupId}/children`,
method: 'GET', method: 'GET',
format: 'json', format: 'json',

Loading…
Cancel
Save