|
|
@ -10661,132 +10661,6 @@ export class Api< |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @description Create a new row in a given table and project. |
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @tags DB Data Table Row |
|
|
|
|
|
|
|
* @name Create2 |
|
|
|
|
|
|
|
* @summary Create Table Rows |
|
|
|
|
|
|
|
* @request POST:/api/v1/tables/{tableId}/rows/{rowId} |
|
|
|
|
|
|
|
* @originalName create |
|
|
|
|
|
|
|
* @duplicate |
|
|
|
|
|
|
|
* @response `200` `any` OK |
|
|
|
|
|
|
|
* @response `400` `{
|
|
|
|
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
|
|
|
|
msg: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
create2: ( |
|
|
|
|
|
|
|
tableId: string, |
|
|
|
|
|
|
|
rowId: string, |
|
|
|
|
|
|
|
query: { |
|
|
|
|
|
|
|
/** View ID */ |
|
|
|
|
|
|
|
viewId: string; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
data: object | object[], |
|
|
|
|
|
|
|
params: RequestParams = {} |
|
|
|
|
|
|
|
) => |
|
|
|
|
|
|
|
this.request< |
|
|
|
|
|
|
|
any, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
|
|
|
|
msg: string; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
>({ |
|
|
|
|
|
|
|
path: `/api/v1/tables/${tableId}/rows/${rowId}`, |
|
|
|
|
|
|
|
method: 'POST', |
|
|
|
|
|
|
|
query: query, |
|
|
|
|
|
|
|
body: data, |
|
|
|
|
|
|
|
type: ContentType.Json, |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @description Create a new row in a given table and project. |
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @tags DB Data Table Row |
|
|
|
|
|
|
|
* @name Update2 |
|
|
|
|
|
|
|
* @summary Update Table Rows |
|
|
|
|
|
|
|
* @request PUT:/api/v1/tables/{tableId}/rows/{rowId} |
|
|
|
|
|
|
|
* @originalName update |
|
|
|
|
|
|
|
* @duplicate |
|
|
|
|
|
|
|
* @response `200` `any` OK |
|
|
|
|
|
|
|
* @response `400` `{
|
|
|
|
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
|
|
|
|
msg: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
update2: ( |
|
|
|
|
|
|
|
tableId: string, |
|
|
|
|
|
|
|
rowId: string, |
|
|
|
|
|
|
|
query: { |
|
|
|
|
|
|
|
/** View ID */ |
|
|
|
|
|
|
|
viewId: string; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
data: object | object[], |
|
|
|
|
|
|
|
params: RequestParams = {} |
|
|
|
|
|
|
|
) => |
|
|
|
|
|
|
|
this.request< |
|
|
|
|
|
|
|
any, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
|
|
|
|
msg: string; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
>({ |
|
|
|
|
|
|
|
path: `/api/v1/tables/${tableId}/rows/${rowId}`, |
|
|
|
|
|
|
|
method: 'PUT', |
|
|
|
|
|
|
|
query: query, |
|
|
|
|
|
|
|
body: data, |
|
|
|
|
|
|
|
type: ContentType.Json, |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @description Create a new row in a given table and project. |
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @tags DB Data Table Row |
|
|
|
|
|
|
|
* @name Delete2 |
|
|
|
|
|
|
|
* @summary Delete Table Rows |
|
|
|
|
|
|
|
* @request DELETE:/api/v1/tables/{tableId}/rows/{rowId} |
|
|
|
|
|
|
|
* @originalName delete |
|
|
|
|
|
|
|
* @duplicate |
|
|
|
|
|
|
|
* @response `200` `any` OK |
|
|
|
|
|
|
|
* @response `400` `{
|
|
|
|
|
|
|
|
\** @example BadRequest [Error]: <ERROR MESSAGE> *\ |
|
|
|
|
|
|
|
msg: string, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}` |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
delete2: ( |
|
|
|
|
|
|
|
tableId: string, |
|
|
|
|
|
|
|
rowId: string, |
|
|
|
|
|
|
|
query: { |
|
|
|
|
|
|
|
/** View ID */ |
|
|
|
|
|
|
|
viewId: string; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
data: object | object[], |
|
|
|
|
|
|
|
params: RequestParams = {} |
|
|
|
|
|
|
|
) => |
|
|
|
|
|
|
|
this.request< |
|
|
|
|
|
|
|
any, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
/** @example BadRequest [Error]: <ERROR MESSAGE> */ |
|
|
|
|
|
|
|
msg: string; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
>({ |
|
|
|
|
|
|
|
path: `/api/v1/tables/${tableId}/rows/${rowId}`, |
|
|
|
|
|
|
|
method: 'DELETE', |
|
|
|
|
|
|
|
query: query, |
|
|
|
|
|
|
|
body: data, |
|
|
|
|
|
|
|
type: ContentType.Json, |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @description Count of rows in a given table |
|
|
|
* @description Count of rows in a given table |
|
|
|
*
|
|
|
|
*
|
|
|
|