Skip to content

Commit

Permalink
update api models
Browse files Browse the repository at this point in the history
  • Loading branch information
iOvergaard committed Feb 29, 2024
1 parent ce38903 commit d981d7c
Show file tree
Hide file tree
Showing 40 changed files with 526 additions and 217 deletions.
8 changes: 8 additions & 0 deletions src/external/backend-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand All @@ -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';
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand All @@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
});

12 changes: 12 additions & 0 deletions src/external/backend-api/src/models/EventMessageTypeModel.ts
Original file line number Diff line number Diff line change
@@ -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',
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type MemberGroupPresentationBaseModel = {
name: string;
};

11 changes: 11 additions & 0 deletions src/external/backend-api/src/models/MemberGroupResponseModel.ts
Original file line number Diff line number Diff line change
@@ -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;
});

13 changes: 13 additions & 0 deletions src/external/backend-api/src/models/NotificationHeaderModel.ts
Original file line number Diff line number Diff line change
@@ -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;
};

Original file line number Diff line number Diff line change
@@ -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<MemberGroupResponseModel>;
};

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type TemporaryFileConfigurationResponseModel = {
imageFileTypes: Array<string>;
disallowedUploadedFilesExtensions: Array<string>;
allowedUploadedFileExtensions: Array<string>;
maxFileSize?: number | null;
};

Original file line number Diff line number Diff line change
@@ -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;

25 changes: 15 additions & 10 deletions src/external/backend-api/src/services/DataTypeResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,21 @@ export class DataTypeResource {
}

/**
* @returns any Success
* @returns string Success
* @throws ApiError
*/
public static deleteDataTypeById({
id,
}: {
id: string,
}): CancelablePromise<any> {
}): CancelablePromise<string> {
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`,
Expand All @@ -90,7 +91,7 @@ export class DataTypeResource {
}

/**
* @returns any Success
* @returns string Success
* @throws ApiError
*/
public static putDataTypeById({
Expand All @@ -99,7 +100,7 @@ export class DataTypeResource {
}: {
id: string,
requestBody?: UpdateDataTypeRequestModel,
}): CancelablePromise<any> {
}): CancelablePromise<string> {
return __request(OpenAPI, {
method: 'PUT',
url: '/umbraco/management/api/v1/data-type/{id}',
Expand All @@ -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`,
Expand Down Expand Up @@ -166,7 +168,7 @@ export class DataTypeResource {
}

/**
* @returns any Success
* @returns string Success
* @throws ApiError
*/
public static putDataTypeByIdMove({
Expand All @@ -175,7 +177,7 @@ export class DataTypeResource {
}: {
id: string,
requestBody?: MoveDataTypeRequestModel,
}): CancelablePromise<any> {
}): CancelablePromise<string> {
return __request(OpenAPI, {
method: 'PUT',
url: '/umbraco/management/api/v1/data-type/{id}/move',
Expand All @@ -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`,
Expand Down Expand Up @@ -273,20 +276,21 @@ export class DataTypeResource {
}

/**
* @returns any Success
* @returns string Success
* @throws ApiError
*/
public static deleteDataTypeFolderById({
id,
}: {
id: string,
}): CancelablePromise<any> {
}): CancelablePromise<string> {
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`,
Expand All @@ -296,7 +300,7 @@ export class DataTypeResource {
}

/**
* @returns any Success
* @returns string Success
* @throws ApiError
*/
public static putDataTypeFolderById({
Expand All @@ -305,7 +309,7 @@ export class DataTypeResource {
}: {
id: string,
requestBody?: UpdateFolderResponseModel,
}): CancelablePromise<any> {
}): CancelablePromise<string> {
return __request(OpenAPI, {
method: 'PUT',
url: '/umbraco/management/api/v1/data-type/folder/{id}',
Expand All @@ -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`,
Expand Down
18 changes: 12 additions & 6 deletions src/external/backend-api/src/services/DictionaryResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@ export class DictionaryResource {
* @throws ApiError
*/
public static getDictionary({
filter,
skip,
take = 100,
}: {
filter?: string,
skip?: number,
take?: number,
}): CancelablePromise<PagedDictionaryOverviewResponseModel> {
return __request(OpenAPI, {
method: 'GET',
url: '/umbraco/management/api/v1/dictionary',
query: {
'filter': filter,
'skip': skip,
'take': take,
},
Expand Down Expand Up @@ -89,20 +92,21 @@ export class DictionaryResource {
}

/**
* @returns any Success
* @returns string Success
* @throws ApiError
*/
public static deleteDictionaryById({
id,
}: {
id: string,
}): CancelablePromise<any> {
}): CancelablePromise<string> {
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`,
Expand All @@ -112,7 +116,7 @@ export class DictionaryResource {
}

/**
* @returns any Success
* @returns string Success
* @throws ApiError
*/
public static putDictionaryById({
Expand All @@ -121,7 +125,7 @@ export class DictionaryResource {
}: {
id: string,
requestBody?: UpdateDictionaryItemRequestModel,
}): CancelablePromise<any> {
}): CancelablePromise<string> {
return __request(OpenAPI, {
method: 'PUT',
url: '/umbraco/management/api/v1/dictionary/{id}',
Expand All @@ -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`,
Expand Down Expand Up @@ -167,7 +172,7 @@ export class DictionaryResource {
}

/**
* @returns any Success
* @returns string Success
* @throws ApiError
*/
public static putDictionaryByIdMove({
Expand All @@ -176,7 +181,7 @@ export class DictionaryResource {
}: {
id: string,
requestBody?: MoveDictionaryRequestModel,
}): CancelablePromise<any> {
}): CancelablePromise<string> {
return __request(OpenAPI, {
method: 'PUT',
url: '/umbraco/management/api/v1/dictionary/{id}/move',
Expand All @@ -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`,
Expand Down
Loading

0 comments on commit d981d7c

Please sign in to comment.