From 3717596fe9a2f149d555631a6e1657c178f36f53 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Wed, 1 May 2024 13:34:46 +0200 Subject: [PATCH] generate server models --- .../src/external/backend-api/src/models.ts | 17 +++++++++++--- .../src/external/backend-api/src/services.ts | 22 +++++++++++++++++++ 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/external/backend-api/src/models.ts b/src/Umbraco.Web.UI.Client/src/external/backend-api/src/models.ts index 9ef7b35807..ebeb40e21e 100644 --- a/src/Umbraco.Web.UI.Client/src/external/backend-api/src/models.ts +++ b/src/Umbraco.Web.UI.Client/src/external/backend-api/src/models.ts @@ -113,7 +113,7 @@ export type CopyMediaTypeRequestModel = { export type CreateDataTypeRequestModel = { name: string editorAlias: string -editorUiAlias?: string | null +editorUiAlias: string values: Array id?: string | null parent?: ReferenceByIdModel | null @@ -384,6 +384,7 @@ key?: string | null export type CreateUserGroupRequestModel = { name: string +alias: string icon?: string | null sections: Array languages: Array @@ -394,6 +395,7 @@ mediaStartNode?: ReferenceByIdModel | null mediaRootAccess: boolean fallbackPermissions: Array permissions: Array +id?: string | null }; export type CreateUserRequestModel = { @@ -479,7 +481,7 @@ properties: Array export type DataTypeResponseModel = { name: string editorAlias: string -editorUiAlias?: string | null +editorUiAlias: string values: Array id: string isDeletable: boolean @@ -2263,7 +2265,7 @@ export type UnpublishDocumentRequestModel = { export type UpdateDataTypeRequestModel = { name: string editorAlias: string -editorUiAlias?: string | null +editorUiAlias: string values: Array }; @@ -2488,6 +2490,7 @@ key: string export type UpdateUserGroupRequestModel = { name: string +alias: string icon?: string | null sections: Array languages: Array @@ -2560,10 +2563,12 @@ export type UserGroupItemResponseModel = { id: string name: string icon?: string | null +alias?: string | null }; export type UserGroupResponseModel = { name: string +alias: string icon?: string | null sections: Array languages: Array @@ -5221,6 +5226,11 @@ requestBody?: UpdateWebhookRequestModel DeleteWebhookById: { id: string + }; +GetWebhookEvents: { + skip?: number +take?: number + }; } @@ -5232,6 +5242,7 @@ DeleteWebhookById: { ,GetWebhookById: WebhookResponseModel ,PutWebhookById: string ,DeleteWebhookById: string + ,GetWebhookEvents: PagedWebhookResponseModel } diff --git a/src/Umbraco.Web.UI.Client/src/external/backend-api/src/services.ts b/src/Umbraco.Web.UI.Client/src/external/backend-api/src/services.ts index 476f2ab3c6..503eeca574 100644 --- a/src/Umbraco.Web.UI.Client/src/external/backend-api/src/services.ts +++ b/src/Umbraco.Web.UI.Client/src/external/backend-api/src/services.ts @@ -9071,4 +9071,26 @@ requestBody }); } + /** + * @returns unknown Success + * @throws ApiError + */ + public static getWebhookEvents(data: WebhookData['payloads']['GetWebhookEvents'] = {}): CancelablePromise { + const { + + skip, +take + } = data; + return __request(OpenAPI, { + method: 'GET', + url: '/umbraco/management/api/v1/webhook/events', + query: { + skip, take + }, + errors: { + 401: `The resource is protected and requires an authentication token`, + }, + }); + } + } \ No newline at end of file