|
|
@ -136,7 +136,7 @@ export interface ViewType { |
|
|
|
show_system_fields?: boolean; |
|
|
|
show_system_fields?: boolean; |
|
|
|
lock_type?: 'collaborative' | 'locked' | 'personal'; |
|
|
|
lock_type?: 'collaborative' | 'locked' | 'personal'; |
|
|
|
type?: number; |
|
|
|
type?: number; |
|
|
|
view?: FormType | GridType | GalleryType | KanbanType; |
|
|
|
view?: FormType | GridType | GalleryType | KanbanType | MapType; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export interface TableInfoType { |
|
|
|
export interface TableInfoType { |
|
|
@ -387,6 +387,24 @@ export interface KanbanType { |
|
|
|
meta?: string | object; |
|
|
|
meta?: string | object; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface GeoLocationType { |
|
|
|
|
|
|
|
/** @format double */ |
|
|
|
|
|
|
|
latitude?: number; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @format double */ |
|
|
|
|
|
|
|
longitude?: number; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface MapType { |
|
|
|
|
|
|
|
id?: string; |
|
|
|
|
|
|
|
title?: string; |
|
|
|
|
|
|
|
alias?: string; |
|
|
|
|
|
|
|
initial_geo_position?: GeoLocationType; |
|
|
|
|
|
|
|
fk_model_id?: string; |
|
|
|
|
|
|
|
fk_geo_data_col_id?: string | null; |
|
|
|
|
|
|
|
meta?: string | object; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export interface FormType { |
|
|
|
export interface FormType { |
|
|
|
id?: string; |
|
|
|
id?: string; |
|
|
|
title?: string; |
|
|
|
title?: string; |
|
|
@ -1958,6 +1976,57 @@ export class Api< |
|
|
|
format: 'json', |
|
|
|
format: 'json', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* No description |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags DB view |
|
|
|
|
|
|
|
* @name MapCreate |
|
|
|
|
|
|
|
* @request POST:/api/v1/db/meta/tables/{tableId}/maps |
|
|
|
|
|
|
|
* @response `200` `object` OK |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
mapCreate: (tableId: string, data: MapType, params: RequestParams = {}) => |
|
|
|
|
|
|
|
this.request<object, any>({ |
|
|
|
|
|
|
|
path: `/api/v1/db/meta/tables/${tableId}/maps`, |
|
|
|
|
|
|
|
method: 'POST', |
|
|
|
|
|
|
|
body: data, |
|
|
|
|
|
|
|
type: ContentType.Json, |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* No description |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags DB view |
|
|
|
|
|
|
|
* @name MapUpdate |
|
|
|
|
|
|
|
* @request PATCH:/api/v1/db/meta/maps/{mapId} |
|
|
|
|
|
|
|
* @response `200` `void` OK |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
mapUpdate: (mapId: string, data: MapType, params: RequestParams = {}) => |
|
|
|
|
|
|
|
this.request<void, any>({ |
|
|
|
|
|
|
|
path: `/api/v1/db/meta/maps/${mapId}`, |
|
|
|
|
|
|
|
method: 'PATCH', |
|
|
|
|
|
|
|
body: data, |
|
|
|
|
|
|
|
type: ContentType.Json, |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* No description |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags DB view |
|
|
|
|
|
|
|
* @name MapRead |
|
|
|
|
|
|
|
* @request GET:/api/v1/db/meta/maps/{mapId} |
|
|
|
|
|
|
|
* @response `200` `MapType` OK |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
mapRead: (mapId: string, params: RequestParams = {}) => |
|
|
|
|
|
|
|
this.request<MapType, any>({ |
|
|
|
|
|
|
|
path: `/api/v1/db/meta/maps/${mapId}`, |
|
|
|
|
|
|
|
method: 'GET', |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
}; |
|
|
|
}; |
|
|
|
dbViewShare = { |
|
|
|
dbViewShare = { |
|
|
|
/** |
|
|
|
/** |
|
|
|