diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts index 87ac41f885..a8a25845bf 100644 --- a/packages/nocodb-sdk/src/lib/Api.ts +++ b/packages/nocodb-sdk/src/lib/Api.ts @@ -4703,17 +4703,17 @@ export class Api< ...params, }), }; - dbTableHookFilter = { + dbTableWebhookFilter = { /** * @description Get the filter data in a given Hook * - * @tags DB Table Hook Filter - * @name DbTableWebhookFilterRead + * @tags DB Table Webhook Filter + * @name Read * @summary Get Hook Filter * @request GET:/api/v1/db/meta/hooks/{hookId}/filters * @response `200` `FilterListType` */ - dbTableWebhookFilterRead: (hookId: string, params: RequestParams = {}) => + read: (hookId: string, params: RequestParams = {}) => this.request({ path: `/api/v1/db/meta/hooks/${hookId}/filters`, method: 'GET', @@ -4723,17 +4723,13 @@ export class Api< /** * @description Create filter(s) in a given Hook * - * @tags DB Table Hook Filter - * @name DbTableWebhookFilterCreate + * @tags DB Table Webhook Filter + * @name Create * @summary Create Hook Filter * @request POST:/api/v1/db/meta/hooks/{hookId}/filters * @response `200` `void` OK */ - dbTableWebhookFilterCreate: ( - hookId: string, - data: FilterReqType, - params: RequestParams = {} - ) => + create: (hookId: string, data: FilterReqType, params: RequestParams = {}) => this.request({ path: `/api/v1/db/meta/hooks/${hookId}/filters`, method: 'POST', @@ -5600,6 +5596,7 @@ export class Api< this.request({ path: `/api/v1/db/data/${orgs}/${projectName}/${tableName}/views/${viewName}/export/${type}`, method: 'GET', + wrapped: true, ...params, }), }; diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json index 253184707a..90cc9ee100 100644 --- a/packages/nocodb/src/schema/swagger.json +++ b/packages/nocodb/src/schema/swagger.json @@ -3864,7 +3864,7 @@ "$ref": "#/components/responses/FilterList" } }, - "tags": ["DB Table Hook Filter"], + "tags": ["DB Table Webhook Filter"], "description": "Get the filter data in a given Hook" }, "post": { @@ -3875,7 +3875,7 @@ "description": "OK" } }, - "tags": ["DB Table Hook Filter"], + "tags": ["DB Table Webhook Filter"], "requestBody": { "content": { "application/json": {