Browse Source

refactor(sdk): regenerate Api.ts

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

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

@ -760,7 +760,7 @@ export interface FormType {
/** /**
* Model for Form Request * Model for Form Request
*/ */
export interface FormReqType { export interface FormUpdateReqType {
/** Banner Image URL. Not in use currently. */ /** Banner Image URL. Not in use currently. */
banner_image_url?: StringOrNullType; banner_image_url?: StringOrNullType;
/** Email to sned after form is submitted */ /** Email to sned after form is submitted */
@ -929,42 +929,10 @@ export interface GalleryColumnType {
label?: string; label?: string;
} }
/**
* Model for Gallery Request
*/
export interface GalleryReqType {
/** Not in use currently */
cover_image?: string;
/**
* Not in use currently
* @min 0
*/
cover_image_idx?: number;
/** The id of the column that contains the cover image */
fk_cover_image_col_id?: StringOrNullType;
/** The lock type of gallery */
lock_type?: 'collaborative' | 'locked' | 'personal';
/** Not in use currently */
next_enabled?: BoolType;
/** Not in use currently */
prev_enabled?: BoolType;
/** Not in use currently */
restrict_number?: string;
/** Not in use currently */
restrict_size?: string;
/** Not in use currently */
restrict_types?: string;
/**
* The title of the gallery
* @example My Gallery
*/
title: string;
}
/** /**
* Model for Gallery View Update Request * Model for Gallery View Update Request
*/ */
export interface GalleryViewUpdateReqType { export interface GalleryUpdateReqType {
/** The id of the column that contains the cover image */ /** The id of the column that contains the cover image */
fk_cover_image_col_id?: StringOrNullType; fk_cover_image_col_id?: StringOrNullType;
/** Meta Info */ /** Meta Info */
@ -1065,7 +1033,7 @@ export interface GridColumnReqType {
/** /**
* Model for Grid View Update * Model for Grid View Update
*/ */
export interface GridViewUpdateReqType { export interface GridUpdateReqType {
/** /**
* Row Height * Row Height
* @example 1 * @example 1
@ -1075,30 +1043,6 @@ export interface GridViewUpdateReqType {
meta?: MetaType; meta?: MetaType;
} }
/**
* Model for Grid Request
*/
export interface GridReqType {
/** The lock type of the grid */
lock_type?: 'collaborative' | 'locked' | 'personal';
/**
* The order of the grid
* @example 1
*/
order?: number;
/**
* The height of the grid rows
* @min 1
* @example 1
*/
row_height?: number;
/**
* The title of the grid
* @example My Grid
*/
title: string;
}
/** /**
* Model for Hook * Model for Hook
*/ */
@ -1320,19 +1264,6 @@ export interface KanbanColumnType {
order?: number; order?: number;
} }
/**
* Model for Kanban Request
*/
export interface KanbanReqType {
/** Grouping Column ID */
fk_grp_col_id?: StringOrNullType;
/**
* The title of the kanban
* @example My Kanban
*/
title: string;
}
/** /**
* Model for Kanban Update Request * Model for Kanban Update Request
*/ */
@ -1476,7 +1407,7 @@ export interface MapType {
/** /**
* Model for Map * Model for Map
*/ */
export interface MapViewUpdateReqType { export interface MapUpdateReqType {
/** /**
* Foreign Key to GeoData Column * Foreign Key to GeoData Column
* @example cl_8iw2o4ejzvdyna * @example cl_8iw2o4ejzvdyna
@ -5298,11 +5229,7 @@ export class Api<
}` }`
*/ */
formUpdate: ( formUpdate: (formViewId: IdType, data: any, params: RequestParams = {}) =>
formViewId: IdType,
data: FormReqType,
params: RequestParams = {}
) =>
this.request< this.request<
number, number,
{ {
@ -5396,7 +5323,7 @@ export class Api<
*/ */
gridUpdate: ( gridUpdate: (
viewId: string, viewId: string,
data: GridViewUpdateReqType, data: GridUpdateReqType,
params: RequestParams = {} params: RequestParams = {}
) => ) =>
this.request< this.request<
@ -5526,7 +5453,7 @@ export class Api<
*/ */
galleryUpdate: ( galleryUpdate: (
galleryViewId: string, galleryViewId: string,
data: GalleryViewUpdateReqType, data: GalleryUpdateReqType,
params: RequestParams = {} params: RequestParams = {}
) => ) =>
this.request< this.request<
@ -5718,7 +5645,7 @@ export class Api<
*/ */
mapUpdate: ( mapUpdate: (
mapViewId: string, mapViewId: string,
data: MapViewUpdateReqType, data: MapUpdateReqType,
params: RequestParams = {} params: RequestParams = {}
) => ) =>
this.request< this.request<

Loading…
Cancel
Save