diff --git a/src/external/backend-api/src/index.ts b/src/external/backend-api/src/index.ts index 70a0768690..f70b46e8be 100644 --- a/src/external/backend-api/src/index.ts +++ b/src/external/backend-api/src/index.ts @@ -60,6 +60,7 @@ export type { CreateMediaRequestModel } from './models/CreateMediaRequestModel'; export type { CreateMediaTypePropertyTypeContainerRequestModel } from './models/CreateMediaTypePropertyTypeContainerRequestModel'; export type { CreateMediaTypePropertyTypeRequestModel } from './models/CreateMediaTypePropertyTypeRequestModel'; export type { CreateMediaTypeRequestModel } from './models/CreateMediaTypeRequestModel'; +export type { CreateMemberGroupRequestModel } from './models/CreateMemberGroupRequestModel'; export type { CreateMemberRequestModel } from './models/CreateMemberRequestModel'; export type { CreateMemberTypePropertyTypeContainerRequestModel } from './models/CreateMemberTypePropertyTypeContainerRequestModel'; export type { CreateMemberTypePropertyTypeRequestModel } from './models/CreateMemberTypePropertyTypeRequestModel'; @@ -143,6 +144,7 @@ export type { DynamicRootResponseModel } from './models/DynamicRootResponseModel export type { EnableTwoFactorRequestModel } from './models/EnableTwoFactorRequestModel'; export type { EnableUserRequestModel } from './models/EnableUserRequestModel'; export type { EntityTreeItemResponseModel } from './models/EntityTreeItemResponseModel'; +export { EventMessageTypeModel } from './models/EventMessageTypeModel'; export type { FieldPresentationModel } from './models/FieldPresentationModel'; export type { FileSystemCreateRequestModelBaseModel } from './models/FileSystemCreateRequestModelBaseModel'; export type { FileSystemFileCreateRequestModelBaseModel } from './models/FileSystemFileCreateRequestModelBaseModel'; @@ -209,6 +211,8 @@ export type { MediaValueModel } from './models/MediaValueModel'; export type { MediaVariantRequestModel } from './models/MediaVariantRequestModel'; export type { MediaVariantResponseModel } from './models/MediaVariantResponseModel'; export type { MemberGroupItemResponseModel } from './models/MemberGroupItemResponseModel'; +export type { MemberGroupPresentationBaseModel } from './models/MemberGroupPresentationBaseModel'; +export type { MemberGroupResponseModel } from './models/MemberGroupResponseModel'; export type { MemberItemResponseModel } from './models/MemberItemResponseModel'; export type { MemberResponseModel } from './models/MemberResponseModel'; export type { MemberTypeCompositionModel } from './models/MemberTypeCompositionModel'; @@ -233,6 +237,7 @@ export type { MoveMediaTypeRequestModel } from './models/MoveMediaTypeRequestMod export type { NamedEntityTreeItemResponseModel } from './models/NamedEntityTreeItemResponseModel'; export type { NamedItemResponseModelBaseModel } from './models/NamedItemResponseModelBaseModel'; export type { NoopSetupTwoFactorModel } from './models/NoopSetupTwoFactorModel'; +export type { NotificationHeaderModel } from './models/NotificationHeaderModel'; export type { ObjectTypeResponseModel } from './models/ObjectTypeResponseModel'; export type { OkResult } from './models/OkResult'; export { OperatorModel } from './models/OperatorModel'; @@ -267,6 +272,7 @@ export type { PagedMediaCollectionResponseModel } from './models/PagedMediaColle export type { PagedMediaRecycleBinItemResponseModel } from './models/PagedMediaRecycleBinItemResponseModel'; export type { PagedMediaTreeItemResponseModel } from './models/PagedMediaTreeItemResponseModel'; export type { PagedMediaTypeTreeItemResponseModel } from './models/PagedMediaTypeTreeItemResponseModel'; +export type { PagedMemberGroupResponseModel } from './models/PagedMemberGroupResponseModel'; export type { PagedMemberResponseModel } from './models/PagedMemberResponseModel'; export type { PagedNamedEntityTreeItemResponseModel } from './models/PagedNamedEntityTreeItemResponseModel'; export type { PagedObjectTypeResponseModel } from './models/PagedObjectTypeResponseModel'; @@ -363,6 +369,7 @@ export type { TemplateQueryResultItemPresentationModel } from './models/Template export type { TemplateQueryResultResponseModel } from './models/TemplateQueryResultResponseModel'; export type { TemplateQuerySettingsResponseModel } from './models/TemplateQuerySettingsResponseModel'; export type { TemplateResponseModel } from './models/TemplateResponseModel'; +export type { TemporaryFileConfigurationResponseModel } from './models/TemporaryFileConfigurationResponseModel'; export type { TemporaryFileResponseModel } from './models/TemporaryFileResponseModel'; export type { TourStatusModel } from './models/TourStatusModel'; export type { TreeItemPresentationModel } from './models/TreeItemPresentationModel'; @@ -389,6 +396,7 @@ export type { UpdateMediaRequestModel } from './models/UpdateMediaRequestModel'; export type { UpdateMediaTypePropertyTypeContainerRequestModel } from './models/UpdateMediaTypePropertyTypeContainerRequestModel'; export type { UpdateMediaTypePropertyTypeRequestModel } from './models/UpdateMediaTypePropertyTypeRequestModel'; export type { UpdateMediaTypeRequestModel } from './models/UpdateMediaTypeRequestModel'; +export type { UpdateMemberGroupRequestModel } from './models/UpdateMemberGroupRequestModel'; export type { UpdateMemberRequestModel } from './models/UpdateMemberRequestModel'; export type { UpdateMemberTypePropertyTypeContainerRequestModel } from './models/UpdateMemberTypePropertyTypeContainerRequestModel'; export type { UpdateMemberTypePropertyTypeRequestModel } from './models/UpdateMemberTypePropertyTypeRequestModel'; diff --git a/src/external/backend-api/src/models/CreateMemberGroupRequestModel.ts b/src/external/backend-api/src/models/CreateMemberGroupRequestModel.ts new file mode 100644 index 0000000000..3020dc0fcb --- /dev/null +++ b/src/external/backend-api/src/models/CreateMemberGroupRequestModel.ts @@ -0,0 +1,11 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { MemberGroupPresentationBaseModel } from './MemberGroupPresentationBaseModel'; + +export type CreateMemberGroupRequestModel = (MemberGroupPresentationBaseModel & { + id?: string | null; +}); + diff --git a/src/external/backend-api/src/models/EventMessageTypeModel.ts b/src/external/backend-api/src/models/EventMessageTypeModel.ts new file mode 100644 index 0000000000..07e96dbc24 --- /dev/null +++ b/src/external/backend-api/src/models/EventMessageTypeModel.ts @@ -0,0 +1,12 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export enum EventMessageTypeModel { + DEFAULT = 'Default', + INFO = 'Info', + ERROR = 'Error', + SUCCESS = 'Success', + WARNING = 'Warning', +} diff --git a/src/external/backend-api/src/models/MemberGroupPresentationBaseModel.ts b/src/external/backend-api/src/models/MemberGroupPresentationBaseModel.ts new file mode 100644 index 0000000000..bebe62bc79 --- /dev/null +++ b/src/external/backend-api/src/models/MemberGroupPresentationBaseModel.ts @@ -0,0 +1,9 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type MemberGroupPresentationBaseModel = { + name: string; +}; + diff --git a/src/external/backend-api/src/models/MemberGroupResponseModel.ts b/src/external/backend-api/src/models/MemberGroupResponseModel.ts new file mode 100644 index 0000000000..67be1b3394 --- /dev/null +++ b/src/external/backend-api/src/models/MemberGroupResponseModel.ts @@ -0,0 +1,11 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { MemberGroupPresentationBaseModel } from './MemberGroupPresentationBaseModel'; + +export type MemberGroupResponseModel = (MemberGroupPresentationBaseModel & { + id: string; +}); + diff --git a/src/external/backend-api/src/models/NotificationHeaderModel.ts b/src/external/backend-api/src/models/NotificationHeaderModel.ts new file mode 100644 index 0000000000..5121f24de8 --- /dev/null +++ b/src/external/backend-api/src/models/NotificationHeaderModel.ts @@ -0,0 +1,13 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { EventMessageTypeModel } from './EventMessageTypeModel'; + +export type NotificationHeaderModel = { + message: string; + category: string; + type: EventMessageTypeModel; +}; + diff --git a/src/external/backend-api/src/models/PagedMemberGroupResponseModel.ts b/src/external/backend-api/src/models/PagedMemberGroupResponseModel.ts new file mode 100644 index 0000000000..81fee9d58f --- /dev/null +++ b/src/external/backend-api/src/models/PagedMemberGroupResponseModel.ts @@ -0,0 +1,12 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { MemberGroupResponseModel } from './MemberGroupResponseModel'; + +export type PagedMemberGroupResponseModel = { + total: number; + items: Array; +}; + diff --git a/src/external/backend-api/src/models/TemporaryFileConfigurationResponseModel.ts b/src/external/backend-api/src/models/TemporaryFileConfigurationResponseModel.ts new file mode 100644 index 0000000000..e9c57080fd --- /dev/null +++ b/src/external/backend-api/src/models/TemporaryFileConfigurationResponseModel.ts @@ -0,0 +1,12 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type TemporaryFileConfigurationResponseModel = { + imageFileTypes: Array; + disallowedUploadedFilesExtensions: Array; + allowedUploadedFileExtensions: Array; + maxFileSize?: number | null; +}; + diff --git a/src/external/backend-api/src/models/UpdateMemberGroupRequestModel.ts b/src/external/backend-api/src/models/UpdateMemberGroupRequestModel.ts new file mode 100644 index 0000000000..18b082fb02 --- /dev/null +++ b/src/external/backend-api/src/models/UpdateMemberGroupRequestModel.ts @@ -0,0 +1,9 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { MemberGroupPresentationBaseModel } from './MemberGroupPresentationBaseModel'; + +export type UpdateMemberGroupRequestModel = MemberGroupPresentationBaseModel; + diff --git a/src/external/backend-api/src/services/DataTypeResource.ts b/src/external/backend-api/src/services/DataTypeResource.ts index ef766776f0..6eb1b95c8e 100644 --- a/src/external/backend-api/src/services/DataTypeResource.ts +++ b/src/external/backend-api/src/services/DataTypeResource.ts @@ -67,20 +67,21 @@ export class DataTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteDataTypeById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/data-type/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -90,7 +91,7 @@ export class DataTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDataTypeById({ @@ -99,7 +100,7 @@ export class DataTypeResource { }: { id: string, requestBody?: UpdateDataTypeRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/data-type/{id}', @@ -108,6 +109,7 @@ export class DataTypeResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -166,7 +168,7 @@ export class DataTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDataTypeByIdMove({ @@ -175,7 +177,7 @@ export class DataTypeResource { }: { id: string, requestBody?: MoveDataTypeRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/data-type/{id}/move', @@ -184,6 +186,7 @@ export class DataTypeResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 404: `Not Found`, @@ -273,20 +276,21 @@ export class DataTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteDataTypeFolderById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/data-type/folder/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -296,7 +300,7 @@ export class DataTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDataTypeFolderById({ @@ -305,7 +309,7 @@ export class DataTypeResource { }: { id: string, requestBody?: UpdateFolderResponseModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/data-type/folder/{id}', @@ -314,6 +318,7 @@ export class DataTypeResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/DictionaryResource.ts b/src/external/backend-api/src/services/DictionaryResource.ts index be325fa60f..6ee347c44e 100644 --- a/src/external/backend-api/src/services/DictionaryResource.ts +++ b/src/external/backend-api/src/services/DictionaryResource.ts @@ -22,9 +22,11 @@ export class DictionaryResource { * @throws ApiError */ public static getDictionary({ + filter, skip, take = 100, }: { + filter?: string, skip?: number, take?: number, }): CancelablePromise { @@ -32,6 +34,7 @@ export class DictionaryResource { method: 'GET', url: '/umbraco/management/api/v1/dictionary', query: { + 'filter': filter, 'skip': skip, 'take': take, }, @@ -89,20 +92,21 @@ export class DictionaryResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteDictionaryById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/dictionary/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -112,7 +116,7 @@ export class DictionaryResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDictionaryById({ @@ -121,7 +125,7 @@ export class DictionaryResource { }: { id: string, requestBody?: UpdateDictionaryItemRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/dictionary/{id}', @@ -130,6 +134,7 @@ export class DictionaryResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -167,7 +172,7 @@ export class DictionaryResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDictionaryByIdMove({ @@ -176,7 +181,7 @@ export class DictionaryResource { }: { id: string, requestBody?: MoveDictionaryRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/dictionary/{id}/move', @@ -185,6 +190,7 @@ export class DictionaryResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/DocumentResource.ts b/src/external/backend-api/src/services/DocumentResource.ts index 457aaefb25..6cad9f1dde 100644 --- a/src/external/backend-api/src/services/DocumentResource.ts +++ b/src/external/backend-api/src/services/DocumentResource.ts @@ -125,20 +125,21 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteDocumentById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/document/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -149,7 +150,7 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDocumentById({ @@ -158,7 +159,7 @@ export class DocumentResource { }: { id: string, requestBody?: UpdateDocumentRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/document/{id}', @@ -167,6 +168,7 @@ export class DocumentResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -255,7 +257,7 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDocumentByIdMove({ @@ -264,7 +266,7 @@ export class DocumentResource { }: { id: string, requestBody?: MoveDocumentRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/document/{id}/move', @@ -273,6 +275,7 @@ export class DocumentResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 403: `The authenticated user do not have access to this resource`, @@ -282,20 +285,21 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDocumentByIdMoveToRecycleBin({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/document/{id}/move-to-recycle-bin', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -329,7 +333,7 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDocumentByIdNotifications({ @@ -338,7 +342,7 @@ export class DocumentResource { }: { id: string, requestBody?: UpdateDocumentNotificationsRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/document/{id}/notifications', @@ -347,6 +351,7 @@ export class DocumentResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 404: `Not Found`, @@ -383,20 +388,21 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteDocumentByIdPublicAccess({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/document/{id}/public-access', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 403: `The authenticated user do not have access to this resource`, @@ -429,7 +435,7 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDocumentByIdPublicAccess({ @@ -438,7 +444,7 @@ export class DocumentResource { }: { id: string, requestBody?: PublicAccessRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/document/{id}/public-access', @@ -447,6 +453,7 @@ export class DocumentResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 403: `The authenticated user do not have access to this resource`, @@ -456,7 +463,7 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDocumentByIdPublish({ @@ -465,7 +472,7 @@ export class DocumentResource { }: { id: string, requestBody?: PublishDocumentRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/document/{id}/publish', @@ -474,6 +481,7 @@ export class DocumentResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -484,7 +492,7 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDocumentByIdPublishWithDescendants({ @@ -493,7 +501,7 @@ export class DocumentResource { }: { id: string, requestBody?: PublishDocumentWithDescendantsRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/document/{id}/publish-with-descendants', @@ -502,6 +510,7 @@ export class DocumentResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -512,7 +521,7 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDocumentByIdUnpublish({ @@ -521,7 +530,7 @@ export class DocumentResource { }: { id: string, requestBody?: UnpublishDocumentRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/document/{id}/unpublish', @@ -530,6 +539,7 @@ export class DocumentResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -540,7 +550,7 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDocumentByIdValidate({ @@ -549,7 +559,7 @@ export class DocumentResource { }: { id: string, requestBody?: UpdateDocumentRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/document/{id}/validate', @@ -558,6 +568,7 @@ export class DocumentResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -582,19 +593,20 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDocumentSort({ requestBody, }: { requestBody?: SortingRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/document/sort', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -605,19 +617,20 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postDocumentValidate({ requestBody, }: { requestBody?: CreateDocumentRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/document/validate', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -649,13 +662,14 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ - public static deleteRecycleBinDocument(): CancelablePromise { + public static deleteRecycleBinDocument(): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/recycle-bin/document', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -665,20 +679,21 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteRecycleBinDocumentById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/recycle-bin/document/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -713,7 +728,7 @@ export class DocumentResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putRecycleBinDocumentByIdRestore({ @@ -722,7 +737,7 @@ export class DocumentResource { }: { id: string, requestBody?: MoveMediaRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/recycle-bin/document/{id}/restore', @@ -731,6 +746,7 @@ export class DocumentResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/DocumentTypeResource.ts b/src/external/backend-api/src/services/DocumentTypeResource.ts index 3d2c1897c0..363e5c343a 100644 --- a/src/external/backend-api/src/services/DocumentTypeResource.ts +++ b/src/external/backend-api/src/services/DocumentTypeResource.ts @@ -70,20 +70,21 @@ export class DocumentTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteDocumentTypeById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/document-type/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 404: `Not Found`, @@ -92,7 +93,7 @@ export class DocumentTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDocumentTypeById({ @@ -101,7 +102,7 @@ export class DocumentTypeResource { }: { id: string, requestBody?: UpdateDocumentTypeRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/document-type/{id}', @@ -110,6 +111,7 @@ export class DocumentTypeResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -200,7 +202,7 @@ export class DocumentTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDocumentTypeByIdMove({ @@ -209,7 +211,7 @@ export class DocumentTypeResource { }: { id: string, requestBody?: MoveDocumentTypeRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/document-type/{id}/move', @@ -218,6 +220,7 @@ export class DocumentTypeResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -330,20 +333,21 @@ export class DocumentTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteDocumentTypeFolderById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/document-type/folder/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -353,7 +357,7 @@ export class DocumentTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putDocumentTypeFolderById({ @@ -362,7 +366,7 @@ export class DocumentTypeResource { }: { id: string, requestBody?: UpdateFolderResponseModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/document-type/folder/{id}', @@ -371,6 +375,7 @@ export class DocumentTypeResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/InstallResource.ts b/src/external/backend-api/src/services/InstallResource.ts index 09c35cacdc..cb350886f7 100644 --- a/src/external/backend-api/src/services/InstallResource.ts +++ b/src/external/backend-api/src/services/InstallResource.ts @@ -27,19 +27,20 @@ export class InstallResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postInstallSetup({ requestBody, }: { requestBody?: InstallRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/install/setup', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 428: `Client Error`, }, @@ -47,19 +48,20 @@ export class InstallResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postInstallValidateDatabase({ requestBody, }: { requestBody?: DatabaseInstallRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/install/validate-database', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, }, diff --git a/src/external/backend-api/src/services/LanguageResource.ts b/src/external/backend-api/src/services/LanguageResource.ts index 6b60bcd689..3010b55c19 100644 --- a/src/external/backend-api/src/services/LanguageResource.ts +++ b/src/external/backend-api/src/services/LanguageResource.ts @@ -105,20 +105,21 @@ export class LanguageResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteLanguageByIsoCode({ isoCode, }: { isoCode: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/language/{isoCode}', path: { 'isoCode': isoCode, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -128,7 +129,7 @@ export class LanguageResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putLanguageByIsoCode({ @@ -137,7 +138,7 @@ export class LanguageResource { }: { isoCode: string, requestBody?: UpdateLanguageRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/language/{isoCode}', @@ -146,6 +147,7 @@ export class LanguageResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/LogViewerResource.ts b/src/external/backend-api/src/services/LogViewerResource.ts index 136e84a465..d46fc4962a 100644 --- a/src/external/backend-api/src/services/LogViewerResource.ts +++ b/src/external/backend-api/src/services/LogViewerResource.ts @@ -206,20 +206,21 @@ export class LogViewerResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteLogViewerSavedSearchByName({ name, }: { name: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/log-viewer/saved-search/{name}', path: { 'name': name, }, + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 404: `Not Found`, diff --git a/src/external/backend-api/src/services/MediaResource.ts b/src/external/backend-api/src/services/MediaResource.ts index d85c17a566..ce2f8c2f0a 100644 --- a/src/external/backend-api/src/services/MediaResource.ts +++ b/src/external/backend-api/src/services/MediaResource.ts @@ -131,20 +131,21 @@ export class MediaResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteMediaById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/media/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -155,7 +156,7 @@ export class MediaResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putMediaById({ @@ -164,7 +165,7 @@ export class MediaResource { }: { id: string, requestBody?: UpdateMediaRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/media/{id}', @@ -173,6 +174,7 @@ export class MediaResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -183,7 +185,7 @@ export class MediaResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putMediaByIdMove({ @@ -192,7 +194,7 @@ export class MediaResource { }: { id: string, requestBody?: MoveMediaRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/media/{id}/move', @@ -201,6 +203,7 @@ export class MediaResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 403: `The authenticated user do not have access to this resource`, @@ -210,20 +213,21 @@ export class MediaResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putMediaByIdMoveToRecycleBin({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/media/{id}/move-to-recycle-bin', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -234,7 +238,7 @@ export class MediaResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putMediaByIdValidate({ @@ -243,7 +247,7 @@ export class MediaResource { }: { id: string, requestBody?: UpdateMediaRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/media/{id}/validate', @@ -252,6 +256,7 @@ export class MediaResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -276,19 +281,20 @@ export class MediaResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putMediaSort({ requestBody, }: { requestBody?: SortingRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/media/sort', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -299,19 +305,20 @@ export class MediaResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postMediaValidate({ requestBody, }: { requestBody?: CreateMediaRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/media/validate', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -322,13 +329,14 @@ export class MediaResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ - public static deleteRecycleBinMedia(): CancelablePromise { + public static deleteRecycleBinMedia(): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/recycle-bin/media', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -338,20 +346,21 @@ export class MediaResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteRecycleBinMediaById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/recycle-bin/media/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -386,7 +395,7 @@ export class MediaResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putRecycleBinMediaByIdRestore({ @@ -395,7 +404,7 @@ export class MediaResource { }: { id: string, requestBody?: MoveMediaRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/recycle-bin/media/{id}/restore', @@ -404,6 +413,7 @@ export class MediaResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/MediaTypeResource.ts b/src/external/backend-api/src/services/MediaTypeResource.ts index bdb4ae7457..0174e4c972 100644 --- a/src/external/backend-api/src/services/MediaTypeResource.ts +++ b/src/external/backend-api/src/services/MediaTypeResource.ts @@ -90,20 +90,21 @@ export class MediaTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteMediaTypeById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/media-type/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 404: `Not Found`, @@ -112,7 +113,7 @@ export class MediaTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putMediaTypeById({ @@ -121,7 +122,7 @@ export class MediaTypeResource { }: { id: string, requestBody?: UpdateMediaTypeRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/media-type/{id}', @@ -130,6 +131,7 @@ export class MediaTypeResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -220,7 +222,7 @@ export class MediaTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putMediaTypeByIdMove({ @@ -229,7 +231,7 @@ export class MediaTypeResource { }: { id: string, requestBody?: MoveMediaTypeRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/media-type/{id}/move', @@ -238,6 +240,7 @@ export class MediaTypeResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -336,20 +339,21 @@ export class MediaTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteMediaTypeFolderById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/media-type/folder/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -359,7 +363,7 @@ export class MediaTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putMediaTypeFolderById({ @@ -368,7 +372,7 @@ export class MediaTypeResource { }: { id: string, requestBody?: UpdateFolderResponseModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/media-type/folder/{id}', @@ -377,6 +381,7 @@ export class MediaTypeResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/MemberGroupResource.ts b/src/external/backend-api/src/services/MemberGroupResource.ts index 402183b9b2..43af148e65 100644 --- a/src/external/backend-api/src/services/MemberGroupResource.ts +++ b/src/external/backend-api/src/services/MemberGroupResource.ts @@ -2,8 +2,12 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ +import type { CreateMemberGroupRequestModel } from '../models/CreateMemberGroupRequestModel'; import type { MemberGroupItemResponseModel } from '../models/MemberGroupItemResponseModel'; +import type { MemberGroupResponseModel } from '../models/MemberGroupResponseModel'; +import type { PagedMemberGroupResponseModel } from '../models/PagedMemberGroupResponseModel'; import type { PagedNamedEntityTreeItemResponseModel } from '../models/PagedNamedEntityTreeItemResponseModel'; +import type { UpdateMemberGroupRequestModel } from '../models/UpdateMemberGroupRequestModel'; import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; @@ -32,6 +36,102 @@ export class MemberGroupResource { }); } + /** + * @returns PagedMemberGroupResponseModel Success + * @throws ApiError + */ + public static getMemberGroup({ + skip, + take = 100, + }: { + skip?: number, + take?: number, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/umbraco/management/api/v1/member-group', + query: { + 'skip': skip, + 'take': take, + }, + errors: { + 401: `The resource is protected and requires an authentication token`, + }, + }); + } + + /** + * @returns any Success + * @throws ApiError + */ + public static postMemberGroup({ + requestBody, + }: { + requestBody?: CreateMemberGroupRequestModel, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/umbraco/management/api/v1/member-group', + body: requestBody, + mediaType: 'application/json', + errors: { + 400: `Bad Request`, + 401: `The resource is protected and requires an authentication token`, + }, + }); + } + + /** + * @returns any Success + * @throws ApiError + */ + public static putMemberGroupById({ + id, + requestBody, + }: { + id: string, + requestBody?: UpdateMemberGroupRequestModel, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/umbraco/management/api/v1/member-group/{id}', + path: { + 'id': id, + }, + body: requestBody, + mediaType: 'application/json', + errors: { + 400: `Bad Request`, + 401: `The resource is protected and requires an authentication token`, + 404: `Not Found`, + }, + }); + } + + /** + * @returns string Success + * @throws ApiError + */ + public static deleteMemberGroupByKey({ + key, + }: { + key: string, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/umbraco/management/api/v1/member-group/{key}', + path: { + 'key': key, + }, + responseHeader: 'Umb-Notifications', + errors: { + 400: `Bad Request`, + 401: `The resource is protected and requires an authentication token`, + 404: `Not Found`, + }, + }); + } + /** * @returns PagedNamedEntityTreeItemResponseModel Success * @throws ApiError diff --git a/src/external/backend-api/src/services/MemberResource.ts b/src/external/backend-api/src/services/MemberResource.ts index 20d29ae575..e3525d0398 100644 --- a/src/external/backend-api/src/services/MemberResource.ts +++ b/src/external/backend-api/src/services/MemberResource.ts @@ -119,20 +119,21 @@ export class MemberResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteMemberById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/member/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -142,7 +143,7 @@ export class MemberResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putMemberById({ @@ -151,7 +152,7 @@ export class MemberResource { }: { id: string, requestBody?: UpdateMemberRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/member/{id}', @@ -160,6 +161,7 @@ export class MemberResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -169,7 +171,7 @@ export class MemberResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putMemberByIdValidate({ @@ -178,7 +180,7 @@ export class MemberResource { }: { id: string, requestBody?: UpdateMemberRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/member/{id}/validate', @@ -187,6 +189,7 @@ export class MemberResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -196,19 +199,20 @@ export class MemberResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postMemberValidate({ requestBody, }: { requestBody?: CreateMemberRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/member/validate', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/MemberTypeResource.ts b/src/external/backend-api/src/services/MemberTypeResource.ts index f931d0caae..dc76389f17 100644 --- a/src/external/backend-api/src/services/MemberTypeResource.ts +++ b/src/external/backend-api/src/services/MemberTypeResource.ts @@ -84,20 +84,21 @@ export class MemberTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteMemberTypeById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/member-type/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 404: `Not Found`, @@ -106,7 +107,7 @@ export class MemberTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putMemberTypeById({ @@ -115,7 +116,7 @@ export class MemberTypeResource { }: { id: string, requestBody?: UpdateMemberTypeRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/member-type/{id}', @@ -124,6 +125,7 @@ export class MemberTypeResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/ModelsBuilderResource.ts b/src/external/backend-api/src/services/ModelsBuilderResource.ts index 303b232e2a..f1d51bc3c8 100644 --- a/src/external/backend-api/src/services/ModelsBuilderResource.ts +++ b/src/external/backend-api/src/services/ModelsBuilderResource.ts @@ -12,13 +12,14 @@ import { request as __request } from '../core/request'; export class ModelsBuilderResource { /** - * @returns any Success + * @returns string Success * @throws ApiError */ - public static postModelsBuilderBuild(): CancelablePromise { + public static postModelsBuilderBuild(): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/models-builder/build', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 428: `Client Error`, diff --git a/src/external/backend-api/src/services/PackageResource.ts b/src/external/backend-api/src/services/PackageResource.ts index fc72c5b016..51edb8d50c 100644 --- a/src/external/backend-api/src/services/PackageResource.ts +++ b/src/external/backend-api/src/services/PackageResource.ts @@ -17,20 +17,21 @@ import { request as __request } from '../core/request'; export class PackageResource { /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postPackageByNameRunMigration({ name, }: { name: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/package/{name}/run-migration', path: { 'name': name, }, + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 404: `Not Found`, @@ -123,20 +124,21 @@ export class PackageResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deletePackageCreatedById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/package/created/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 404: `Not Found`, @@ -145,7 +147,7 @@ export class PackageResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putPackageCreatedById({ @@ -154,7 +156,7 @@ export class PackageResource { }: { id: string, requestBody?: UpdatePackageRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/package/created/{id}', @@ -163,6 +165,7 @@ export class PackageResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 404: `Not Found`, diff --git a/src/external/backend-api/src/services/PartialViewResource.ts b/src/external/backend-api/src/services/PartialViewResource.ts index 983933de74..6c61f51aee 100644 --- a/src/external/backend-api/src/services/PartialViewResource.ts +++ b/src/external/backend-api/src/services/PartialViewResource.ts @@ -86,20 +86,21 @@ export class PartialViewResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deletePartialViewByPath({ path, }: { path: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/partial-view/{path}', path: { 'path': path, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -109,7 +110,7 @@ export class PartialViewResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putPartialViewByPath({ @@ -118,7 +119,7 @@ export class PartialViewResource { }: { path: string, requestBody?: UpdatePartialViewRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/partial-view/{path}', @@ -127,6 +128,7 @@ export class PartialViewResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -209,20 +211,21 @@ export class PartialViewResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deletePartialViewFolderByPath({ path, }: { path: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/partial-view/folder/{path}', path: { 'path': path, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/PreviewResource.ts b/src/external/backend-api/src/services/PreviewResource.ts index c3e7e42a75..f87491b48e 100644 --- a/src/external/backend-api/src/services/PreviewResource.ts +++ b/src/external/backend-api/src/services/PreviewResource.ts @@ -9,13 +9,14 @@ import { request as __request } from '../core/request'; export class PreviewResource { /** - * @returns any Success + * @returns string Success * @throws ApiError */ - public static deletePreview(): CancelablePromise { + public static deletePreview(): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/preview', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, }, @@ -23,13 +24,14 @@ export class PreviewResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ - public static postPreview(): CancelablePromise { + public static postPreview(): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/preview', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, }, diff --git a/src/external/backend-api/src/services/ProfilingResource.ts b/src/external/backend-api/src/services/ProfilingResource.ts index 3c9e655507..f2b9d345f4 100644 --- a/src/external/backend-api/src/services/ProfilingResource.ts +++ b/src/external/backend-api/src/services/ProfilingResource.ts @@ -26,19 +26,20 @@ export class ProfilingResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putProfilingStatus({ requestBody, }: { requestBody?: ProfilingStatusRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/profiling/status', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, }, diff --git a/src/external/backend-api/src/services/PublishedCacheResource.ts b/src/external/backend-api/src/services/PublishedCacheResource.ts index 6de8932a1a..e3c70690bf 100644 --- a/src/external/backend-api/src/services/PublishedCacheResource.ts +++ b/src/external/backend-api/src/services/PublishedCacheResource.ts @@ -9,13 +9,14 @@ import { request as __request } from '../core/request'; export class PublishedCacheResource { /** - * @returns any Success + * @returns string Success * @throws ApiError */ - public static postPublishedCacheCollect(): CancelablePromise { + public static postPublishedCacheCollect(): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/published-cache/collect', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, }, @@ -23,13 +24,14 @@ export class PublishedCacheResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ - public static postPublishedCacheRebuild(): CancelablePromise { + public static postPublishedCacheRebuild(): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/published-cache/rebuild', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, }, @@ -37,13 +39,14 @@ export class PublishedCacheResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ - public static postPublishedCacheReload(): CancelablePromise { + public static postPublishedCacheReload(): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/published-cache/reload', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, }, diff --git a/src/external/backend-api/src/services/RedirectManagementResource.ts b/src/external/backend-api/src/services/RedirectManagementResource.ts index 935e6c6a62..cb67b21bf7 100644 --- a/src/external/backend-api/src/services/RedirectManagementResource.ts +++ b/src/external/backend-api/src/services/RedirectManagementResource.ts @@ -70,20 +70,21 @@ export class RedirectManagementResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteRedirectManagementById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/redirect-management/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, }, @@ -105,20 +106,21 @@ export class RedirectManagementResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postRedirectManagementStatus({ status, }: { status?: RedirectStatusModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/redirect-management/status', query: { 'status': status, }, + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, }, diff --git a/src/external/backend-api/src/services/RelationTypeResource.ts b/src/external/backend-api/src/services/RelationTypeResource.ts index 0472eac7c1..bcbb7f7c50 100644 --- a/src/external/backend-api/src/services/RelationTypeResource.ts +++ b/src/external/backend-api/src/services/RelationTypeResource.ts @@ -80,20 +80,21 @@ export class RelationTypeResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteRelationTypeById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/relation-type/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 404: `Not Found`, diff --git a/src/external/backend-api/src/services/ScriptResource.ts b/src/external/backend-api/src/services/ScriptResource.ts index 784c9c77e1..4f05cb0525 100644 --- a/src/external/backend-api/src/services/ScriptResource.ts +++ b/src/external/backend-api/src/services/ScriptResource.ts @@ -84,20 +84,21 @@ export class ScriptResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteScriptByPath({ path, }: { path: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/script/{path}', path: { 'path': path, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -107,7 +108,7 @@ export class ScriptResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putScriptByPath({ @@ -116,7 +117,7 @@ export class ScriptResource { }: { path: string, requestBody?: UpdateScriptRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/script/{path}', @@ -125,6 +126,7 @@ export class ScriptResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -207,20 +209,21 @@ export class ScriptResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteScriptFolderByPath({ path, }: { path: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/script/folder/{path}', path: { 'path': path, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/SecurityResource.ts b/src/external/backend-api/src/services/SecurityResource.ts index ac7de89f58..91a3a77126 100644 --- a/src/external/backend-api/src/services/SecurityResource.ts +++ b/src/external/backend-api/src/services/SecurityResource.ts @@ -28,19 +28,20 @@ export class SecurityResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postSecurityForgotPassword({ requestBody, }: { requestBody?: ResetPasswordRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/security/forgot-password', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, }, diff --git a/src/external/backend-api/src/services/StylesheetResource.ts b/src/external/backend-api/src/services/StylesheetResource.ts index 1a9b2d7d79..635f209c5d 100644 --- a/src/external/backend-api/src/services/StylesheetResource.ts +++ b/src/external/backend-api/src/services/StylesheetResource.ts @@ -84,20 +84,21 @@ export class StylesheetResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteStylesheetByPath({ path, }: { path: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/stylesheet/{path}', path: { 'path': path, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -107,7 +108,7 @@ export class StylesheetResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putStylesheetByPath({ @@ -116,7 +117,7 @@ export class StylesheetResource { }: { path: string, requestBody?: UpdateStylesheetRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/stylesheet/{path}', @@ -125,6 +126,7 @@ export class StylesheetResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -207,20 +209,21 @@ export class StylesheetResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteStylesheetFolderByPath({ path, }: { path: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/stylesheet/folder/{path}', path: { 'path': path, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/TelemetryResource.ts b/src/external/backend-api/src/services/TelemetryResource.ts index 89b241dcf0..9547c4866e 100644 --- a/src/external/backend-api/src/services/TelemetryResource.ts +++ b/src/external/backend-api/src/services/TelemetryResource.ts @@ -51,19 +51,20 @@ export class TelemetryResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postTelemetryLevel({ requestBody, }: { requestBody?: TelemetryRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/telemetry/level', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/TemplateResource.ts b/src/external/backend-api/src/services/TemplateResource.ts index e323315a8b..269c145b8c 100644 --- a/src/external/backend-api/src/services/TemplateResource.ts +++ b/src/external/backend-api/src/services/TemplateResource.ts @@ -85,20 +85,21 @@ export class TemplateResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteTemplateById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/template/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -108,7 +109,7 @@ export class TemplateResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putTemplateById({ @@ -117,7 +118,7 @@ export class TemplateResource { }: { id: string, requestBody?: UpdateTemplateRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/template/{id}', @@ -126,6 +127,7 @@ export class TemplateResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/TemporaryFileResource.ts b/src/external/backend-api/src/services/TemporaryFileResource.ts index 848076b99a..6d587006f9 100644 --- a/src/external/backend-api/src/services/TemporaryFileResource.ts +++ b/src/external/backend-api/src/services/TemporaryFileResource.ts @@ -2,6 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ +import type { TemporaryFileConfigurationResponseModel } from '../models/TemporaryFileConfigurationResponseModel'; import type { TemporaryFileResponseModel } from '../models/TemporaryFileResponseModel'; import type { CancelablePromise } from '../core/CancelablePromise'; @@ -59,20 +60,21 @@ export class TemporaryFileResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteTemporaryFileById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/temporary-file/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -85,7 +87,7 @@ export class TemporaryFileResource { * @returns any Success * @throws ApiError */ - public static getTemporaryFileConfiguration(): CancelablePromise { + public static getTemporaryFileConfiguration(): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/umbraco/management/api/v1/temporary-file/configuration', diff --git a/src/external/backend-api/src/services/TourResource.ts b/src/external/backend-api/src/services/TourResource.ts index 563a77950b..06d5fe9885 100644 --- a/src/external/backend-api/src/services/TourResource.ts +++ b/src/external/backend-api/src/services/TourResource.ts @@ -26,19 +26,20 @@ export class TourResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postTour({ requestBody, }: { requestBody?: SetTourStatusRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/tour', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, }, diff --git a/src/external/backend-api/src/services/UpgradeResource.ts b/src/external/backend-api/src/services/UpgradeResource.ts index ba692f2b9d..9987c2f24f 100644 --- a/src/external/backend-api/src/services/UpgradeResource.ts +++ b/src/external/backend-api/src/services/UpgradeResource.ts @@ -11,13 +11,14 @@ import { request as __request } from '../core/request'; export class UpgradeResource { /** - * @returns any Success + * @returns string Success * @throws ApiError */ - public static postUpgradeAuthorize(): CancelablePromise { + public static postUpgradeAuthorize(): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/upgrade/authorize', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 428: `Client Error`, diff --git a/src/external/backend-api/src/services/UserGroupResource.ts b/src/external/backend-api/src/services/UserGroupResource.ts index 16851038d9..f950a6f533 100644 --- a/src/external/backend-api/src/services/UserGroupResource.ts +++ b/src/external/backend-api/src/services/UserGroupResource.ts @@ -37,19 +37,20 @@ export class UserGroupResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteUserGroup({ requestBody, }: { requestBody?: DeleteUserGroupsRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/user-group', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 403: `The authenticated user do not have access to this resource`, @@ -128,20 +129,21 @@ export class UserGroupResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteUserGroupById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/user-group/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 403: `The authenticated user do not have access to this resource`, @@ -151,7 +153,7 @@ export class UserGroupResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putUserGroupById({ @@ -160,7 +162,7 @@ export class UserGroupResource { }: { id: string, requestBody?: UpdateUserGroupRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/user-group/{id}', @@ -169,6 +171,7 @@ export class UserGroupResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 404: `Not Found`, @@ -177,7 +180,7 @@ export class UserGroupResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteUserGroupByIdUsers({ @@ -186,7 +189,7 @@ export class UserGroupResource { }: { id: string, requestBody?: Array, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/user-group/{id}/users', @@ -195,6 +198,7 @@ export class UserGroupResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 403: `The authenticated user do not have access to this resource`, @@ -204,7 +208,7 @@ export class UserGroupResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postUserGroupByIdUsers({ @@ -213,7 +217,7 @@ export class UserGroupResource { }: { id: string, requestBody?: Array, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/user-group/{id}/users', @@ -222,6 +226,7 @@ export class UserGroupResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 403: `The authenticated user do not have access to this resource`, diff --git a/src/external/backend-api/src/services/UserResource.ts b/src/external/backend-api/src/services/UserResource.ts index 9a8e7e6bad..ce69f3fba5 100644 --- a/src/external/backend-api/src/services/UserResource.ts +++ b/src/external/backend-api/src/services/UserResource.ts @@ -121,19 +121,20 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteUser({ requestBody, }: { requestBody?: DeleteUsersRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/user', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -190,20 +191,21 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteUserById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/user/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 403: `The authenticated user do not have access to this resource`, @@ -212,7 +214,7 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putUserById({ @@ -221,7 +223,7 @@ export class UserResource { }: { id: string, requestBody?: UpdateUserRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/user/{id}', @@ -230,6 +232,7 @@ export class UserResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, }, @@ -260,7 +263,7 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteUserById2FaByProviderName({ @@ -269,7 +272,7 @@ export class UserResource { }: { id: string, providerName: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/user/{id}/2fa/{providerName}', @@ -277,6 +280,7 @@ export class UserResource { 'id': id, 'providerName': providerName, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -287,20 +291,21 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteUserAvatarById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/user/avatar/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 403: `The authenticated user do not have access to this resource`, @@ -309,7 +314,7 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postUserAvatarById({ @@ -318,7 +323,7 @@ export class UserResource { }: { id: string, requestBody?: SetAvatarRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/user/avatar/{id}', @@ -327,6 +332,7 @@ export class UserResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -336,7 +342,7 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postUserChangePasswordById({ @@ -345,7 +351,7 @@ export class UserResource { }: { id: string, requestBody?: ChangePasswordUserRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/user/change-password/{id}', @@ -354,6 +360,7 @@ export class UserResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, }, @@ -404,7 +411,7 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteUserCurrent2FaByProviderName({ @@ -413,7 +420,7 @@ export class UserResource { }: { providerName: string, code?: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/user/current/2fa/{providerName}', @@ -423,6 +430,7 @@ export class UserResource { query: { 'code': code, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -482,19 +490,20 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postUserCurrentAvatar({ requestBody, }: { requestBody?: SetAvatarRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/user/current/avatar', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 403: `The authenticated user do not have access to this resource`, @@ -503,19 +512,20 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postUserCurrentChangePassword({ requestBody, }: { requestBody?: ChangePasswordUserRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/user/current/change-password', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, }, @@ -614,19 +624,20 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postUserDisable({ requestBody, }: { requestBody?: DisableUserRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/user/disable', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -636,19 +647,20 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postUserEnable({ requestBody, }: { requestBody?: EnableUserRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/user/enable', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -679,19 +691,20 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postUserInviteCreatePassword({ requestBody, }: { requestBody?: CreateInitialPasswordUserRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/user/invite/create-password', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 404: `Not Found`, @@ -700,19 +713,20 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postUserInviteResend({ requestBody, }: { requestBody?: ResendInviteUserRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/user/invite/resend', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -721,19 +735,20 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postUserInviteVerify({ requestBody, }: { requestBody?: (VerifyInviteUserRequestModel | CreateInitialPasswordUserRequestModel), - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/user/invite/verify', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 404: `Not Found`, @@ -742,19 +757,20 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postUserSetUserGroups({ requestBody, }: { requestBody?: UpdateUserGroupsOnUserRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/user/set-user-groups', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 401: `The resource is protected and requires an authentication token`, 403: `The authenticated user do not have access to this resource`, @@ -763,19 +779,20 @@ export class UserResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static postUserUnlock({ requestBody, }: { requestBody?: UnlockUsersRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/umbraco/management/api/v1/user/unlock', body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, diff --git a/src/external/backend-api/src/services/WebhookResource.ts b/src/external/backend-api/src/services/WebhookResource.ts index d6b2ccdaf4..bbe951c01d 100644 --- a/src/external/backend-api/src/services/WebhookResource.ts +++ b/src/external/backend-api/src/services/WebhookResource.ts @@ -59,7 +59,7 @@ export class WebhookResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static putWebhookById({ @@ -68,7 +68,7 @@ export class WebhookResource { }: { id: string, requestBody?: UpdateWebhookRequestModel, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/umbraco/management/api/v1/webhook/{id}', @@ -77,6 +77,7 @@ export class WebhookResource { }, body: requestBody, mediaType: 'application/json', + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`, @@ -86,20 +87,21 @@ export class WebhookResource { } /** - * @returns any Success + * @returns string Success * @throws ApiError */ public static deleteWebhookById({ id, }: { id: string, - }): CancelablePromise { + }): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/umbraco/management/api/v1/webhook/{id}', path: { 'id': id, }, + responseHeader: 'Umb-Notifications', errors: { 400: `Bad Request`, 401: `The resource is protected and requires an authentication token`,