|
|
@ -2948,20 +2948,17 @@ export class Api< |
|
|
|
* |
|
|
|
* |
|
|
|
* @tags Public |
|
|
|
* @tags Public |
|
|
|
* @name CsvExport |
|
|
|
* @name CsvExport |
|
|
|
* @request POST:/api/v1/db/public/shared-view/{sharedViewUuid}/rows/export/{type} |
|
|
|
* @request GET:/api/v1/db/public/shared-view/{sharedViewUuid}/rows/export/{type} |
|
|
|
* @response `200` `any` OK |
|
|
|
* @response `200` `any` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
csvExport: ( |
|
|
|
csvExport: ( |
|
|
|
sharedViewUuid: string, |
|
|
|
sharedViewUuid: string, |
|
|
|
type: 'csv' | 'excel', |
|
|
|
type: 'csv' | 'excel', |
|
|
|
data: { password?: string; filters?: FilterType[]; sorts?: SortType[] }, |
|
|
|
|
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<any, any>({ |
|
|
|
this.request<any, any>({ |
|
|
|
path: `/api/v1/db/public/shared-view/${sharedViewUuid}/rows/export/${type}`, |
|
|
|
path: `/api/v1/db/public/shared-view/${sharedViewUuid}/rows/export/${type}`, |
|
|
|
method: 'POST', |
|
|
|
method: 'GET', |
|
|
|
body: data, |
|
|
|
|
|
|
|
type: ContentType.Json, |
|
|
|
|
|
|
|
wrapped: true, |
|
|
|
wrapped: true, |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|