diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/index.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/index.ts index a08151d050..6687aed063 100644 --- a/src/Umbraco.Web.UI.Client/src/core/backend-api/index.ts +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/index.ts @@ -23,6 +23,10 @@ export type { CustomAttributeNamedArgument } from './models/CustomAttributeNamed export type { CustomAttributeTypedArgument } from './models/CustomAttributeTypedArgument'; export type { DatabaseInstall } from './models/DatabaseInstall'; export type { DatabaseSettings } from './models/DatabaseSettings'; +export type { DataType } from './models/DataType'; +export type { DataTypeCreateModel } from './models/DataTypeCreateModel'; +export type { DataTypeProperty } from './models/DataTypeProperty'; +export type { DataTypeUpdateModel } from './models/DataTypeUpdateModel'; export type { Dictionary } from './models/Dictionary'; export type { DictionaryImport } from './models/DictionaryImport'; export type { DictionaryItem } from './models/DictionaryItem'; @@ -42,6 +46,12 @@ export type { FieldInfo } from './models/FieldInfo'; export type { FileSystemTreeItem } from './models/FileSystemTreeItem'; export type { FolderTreeItem } from './models/FolderTreeItem'; export { GenericParameterAttributes } from './models/GenericParameterAttributes'; +export type { HealthCheck } from './models/HealthCheck'; +export type { HealthCheckAction } from './models/HealthCheckAction'; +export type { HealthCheckGroup } from './models/HealthCheckGroup'; +export type { HealthCheckGroupWithResult } from './models/HealthCheckGroupWithResult'; +export type { HealthCheckResult } from './models/HealthCheckResult'; +export type { HealthCheckWithResult } from './models/HealthCheckWithResult'; export type { HelpPage } from './models/HelpPage'; export type { ICustomAttributeProvider } from './models/ICustomAttributeProvider'; export type { Index } from './models/Index'; @@ -76,10 +86,12 @@ export type { PagedDocumentTypeTreeItem } from './models/PagedDocumentTypeTreeIt export type { PagedEntityTreeItem } from './models/PagedEntityTreeItem'; export type { PagedFileSystemTreeItem } from './models/PagedFileSystemTreeItem'; export type { PagedFolderTreeItem } from './models/PagedFolderTreeItem'; +export type { PagedHealthCheckGroup } from './models/PagedHealthCheckGroup'; export type { PagedHelpPage } from './models/PagedHelpPage'; export type { PagedIndex } from './models/PagedIndex'; export type { PagedLanguage } from './models/PagedLanguage'; export type { PagedRecycleBinItem } from './models/PagedRecycleBinItem'; +export type { PagedRedirectUrl } from './models/PagedRedirectUrl'; export type { PagedRelation } from './models/PagedRelation'; export type { PagedRelationItem } from './models/PagedRelationItem'; export type { PagedSearcher } from './models/PagedSearcher'; @@ -92,6 +104,9 @@ export type { ProfilingStatus } from './models/ProfilingStatus'; export { PropertyAttributes } from './models/PropertyAttributes'; export type { PropertyInfo } from './models/PropertyInfo'; export type { RecycleBinItem } from './models/RecycleBinItem'; +export { RedirectStatus } from './models/RedirectStatus'; +export type { RedirectUrl } from './models/RedirectUrl'; +export type { RedirectUrlStatus } from './models/RedirectUrlStatus'; export type { Relation } from './models/Relation'; export type { RelationItem } from './models/RelationItem'; export type { RuntimeFieldHandle } from './models/RuntimeFieldHandle'; @@ -102,6 +117,7 @@ export type { Searcher } from './models/Searcher'; export type { SearchResult } from './models/SearchResult'; export { SecurityRuleSet } from './models/SecurityRuleSet'; export type { ServerStatus } from './models/ServerStatus'; +export { StatusResultType } from './models/StatusResultType'; export type { StructLayoutAttribute } from './models/StructLayoutAttribute'; export type { Telemetry } from './models/Telemetry'; export { TelemetryLevel } from './models/TelemetryLevel'; @@ -119,6 +135,7 @@ export { DictionaryResource } from './services/DictionaryResource'; export { DocumentResource } from './services/DocumentResource'; export { DocumentBlueprintResource } from './services/DocumentBlueprintResource'; export { DocumentTypeResource } from './services/DocumentTypeResource'; +export { HealthCheckResource } from './services/HealthCheckResource'; export { HelpResource } from './services/HelpResource'; export { IndexerResource } from './services/IndexerResource'; export { InstallResource } from './services/InstallResource'; @@ -131,6 +148,7 @@ export { ModelsBuilderResource } from './services/ModelsBuilderResource'; export { PartialViewResource } from './services/PartialViewResource'; export { ProfilingResource } from './services/ProfilingResource'; export { PublishedCacheResource } from './services/PublishedCacheResource'; +export { RedirectManagementResource } from './services/RedirectManagementResource'; export { RelationResource } from './services/RelationResource'; export { RelationTypeResource } from './services/RelationTypeResource'; export { ScriptResource } from './services/ScriptResource'; diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/DataType.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/DataType.ts new file mode 100644 index 0000000000..4476e50e7b --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/DataType.ts @@ -0,0 +1,14 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { DataTypeProperty } from './DataTypeProperty'; + +export type DataType = { + name?: string | null; + propertyEditorAlias?: string | null; + data?: Array | null; + key?: string; + parentKey?: string | null; +}; + diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/DataTypeCreateModel.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/DataTypeCreateModel.ts new file mode 100644 index 0000000000..18592412d1 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/DataTypeCreateModel.ts @@ -0,0 +1,13 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { DataTypeProperty } from './DataTypeProperty'; + +export type DataTypeCreateModel = { + name?: string | null; + propertyEditorAlias?: string | null; + data?: Array | null; + parentKey?: string | null; +}; + diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/DataTypeProperty.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/DataTypeProperty.ts new file mode 100644 index 0000000000..d069cab255 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/DataTypeProperty.ts @@ -0,0 +1,9 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type DataTypeProperty = { + alias?: string | null; + value?: any; +}; + diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/DataTypeUpdateModel.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/DataTypeUpdateModel.ts new file mode 100644 index 0000000000..95f65138f5 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/DataTypeUpdateModel.ts @@ -0,0 +1,12 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { DataTypeProperty } from './DataTypeProperty'; + +export type DataTypeUpdateModel = { + name?: string | null; + propertyEditorAlias?: string | null; + data?: Array | null; +}; + diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheck.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheck.ts new file mode 100644 index 0000000000..bbd5d72496 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheck.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type HealthCheck = { + key?: string; + name?: string | null; + description?: string | null; +}; + diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckAction.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckAction.ts new file mode 100644 index 0000000000..08358bbf38 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckAction.ts @@ -0,0 +1,15 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type HealthCheckAction = { + healthCheckKey?: string; + alias?: string | null; + name?: string | null; + description?: string | null; + valueRequired?: boolean; + providedValue?: string | null; + providedValueValidation?: string | null; + providedValueValidationRegex?: string | null; +}; + diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckGroup.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckGroup.ts new file mode 100644 index 0000000000..f96bad143e --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckGroup.ts @@ -0,0 +1,11 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { HealthCheck } from './HealthCheck'; + +export type HealthCheckGroup = { + name?: string | null; + checks?: Array | null; +}; + diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckGroupWithResult.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckGroupWithResult.ts new file mode 100644 index 0000000000..797b13c46e --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckGroupWithResult.ts @@ -0,0 +1,11 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { HealthCheckWithResult } from './HealthCheckWithResult'; + +export type HealthCheckGroupWithResult = { + name?: string | null; + checks?: Array | null; +}; + diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckResult.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckResult.ts new file mode 100644 index 0000000000..332200c5c4 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckResult.ts @@ -0,0 +1,14 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { HealthCheckAction } from './HealthCheckAction'; +import type { StatusResultType } from './StatusResultType'; + +export type HealthCheckResult = { + message?: string | null; + resultType?: StatusResultType; + actions?: Array | null; + readMoreLink?: string | null; +}; + diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckWithResult.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckWithResult.ts new file mode 100644 index 0000000000..8001e4b7a5 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/HealthCheckWithResult.ts @@ -0,0 +1,13 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { HealthCheckResult } from './HealthCheckResult'; + +export type HealthCheckWithResult = { + key?: string; + name?: string | null; + description?: string | null; + results?: Array | null; +}; + diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/PagedHealthCheckGroup.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/PagedHealthCheckGroup.ts new file mode 100644 index 0000000000..dcc081a842 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/PagedHealthCheckGroup.ts @@ -0,0 +1,11 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { HealthCheckGroup } from './HealthCheckGroup'; + +export type PagedHealthCheckGroup = { + total: number; + items: Array; +}; + diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/PagedRedirectUrl.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/PagedRedirectUrl.ts new file mode 100644 index 0000000000..373c3367b1 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/PagedRedirectUrl.ts @@ -0,0 +1,11 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { RedirectUrl } from './RedirectUrl'; + +export type PagedRedirectUrl = { + total: number; + items: Array; +}; + diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/RedirectStatus.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/RedirectStatus.ts new file mode 100644 index 0000000000..a0a89f7d7a --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/RedirectStatus.ts @@ -0,0 +1,8 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export enum RedirectStatus { + ENABLED = 'Enabled', + DISABLED = 'Disabled', +} diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/RedirectUrl.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/RedirectUrl.ts new file mode 100644 index 0000000000..7f7eaf0ddb --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/RedirectUrl.ts @@ -0,0 +1,13 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type RedirectUrl = { + key?: string; + originalUrl?: string | null; + destinationUrl?: string | null; + created?: string; + contentKey?: string; + culture?: string | null; +}; + diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/RedirectUrlStatus.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/RedirectUrlStatus.ts new file mode 100644 index 0000000000..4699128b8c --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/RedirectUrlStatus.ts @@ -0,0 +1,11 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { RedirectStatus } from './RedirectStatus'; + +export type RedirectUrlStatus = { + status?: RedirectStatus; + userIsAdmin?: boolean; +}; + diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/models/StatusResultType.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/StatusResultType.ts new file mode 100644 index 0000000000..17c6e57800 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/models/StatusResultType.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export enum StatusResultType { + SUCCESS = 'Success', + WARNING = 'Warning', + ERROR = 'Error', + INFO = 'Info', +} diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/services/DataTypeResource.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/services/DataTypeResource.ts index 9af0be6fd3..51a0f68819 100644 --- a/src/Umbraco.Web.UI.Client/src/core/backend-api/services/DataTypeResource.ts +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/services/DataTypeResource.ts @@ -1,6 +1,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ +import type { DataType } from '../models/DataType'; +import type { DataTypeCreateModel } from '../models/DataTypeCreateModel'; +import type { DataTypeUpdateModel } from '../models/DataTypeUpdateModel'; import type { FolderTreeItem } from '../models/FolderTreeItem'; import type { PagedFolderTreeItem } from '../models/PagedFolderTreeItem'; @@ -10,6 +13,72 @@ import { request as __request } from '../core/request'; export class DataTypeResource { + /** + * @returns DataType Success + * @throws ApiError + */ + public static postDataType({ + requestBody, + }: { + requestBody?: DataTypeCreateModel, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/umbraco/management/api/v1/data-type', + body: requestBody, + mediaType: 'application/json', + errors: { + 404: `Not Found`, + }, + }); + } + + /** + * @returns DataType Success + * @throws ApiError + */ + public static getDataTypeByKey({ + key, + }: { + key: string, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/umbraco/management/api/v1/data-type/{key}', + path: { + 'key': key, + }, + errors: { + 404: `Not Found`, + }, + }); + } + + /** + * @returns DataType Success + * @throws ApiError + */ + public static putDataTypeByKey({ + key, + requestBody, + }: { + key: string, + requestBody?: DataTypeUpdateModel, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/umbraco/management/api/v1/data-type/{key}', + path: { + 'key': key, + }, + body: requestBody, + mediaType: 'application/json', + errors: { + 404: `Not Found`, + }, + }); + } + /** * @returns PagedFolderTreeItem Success * @throws ApiError diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/services/DictionaryResource.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/services/DictionaryResource.ts index 2bd11ca632..80a0b58cb3 100644 --- a/src/Umbraco.Web.UI.Client/src/core/backend-api/services/DictionaryResource.ts +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/services/DictionaryResource.ts @@ -38,6 +38,26 @@ export class DictionaryResource { }); } + /** + * @returns CreatedResult Created + * @throws ApiError + */ + public static postDictionary({ + requestBody, + }: { + requestBody?: DictionaryItem, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/umbraco/management/api/v1/dictionary', + body: requestBody, + mediaType: 'application/json', + errors: { + 400: `Bad Request`, + }, + }); + } + /** * @returns ContentResult Success * @throws ApiError @@ -105,26 +125,6 @@ export class DictionaryResource { }); } - /** - * @returns CreatedResult Created - * @throws ApiError - */ - public static postDictionaryCreate({ - requestBody, - }: { - requestBody?: DictionaryItem, - }): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/umbraco/management/api/v1/dictionary/create', - body: requestBody, - mediaType: 'application/json', - errors: { - 400: `Bad Request`, - }, - }); - } - /** * @returns binary Success * @throws ApiError diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/services/HealthCheckResource.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/services/HealthCheckResource.ts new file mode 100644 index 0000000000..c8a9e9c8c0 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/services/HealthCheckResource.ts @@ -0,0 +1,77 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { HealthCheckAction } from '../models/HealthCheckAction'; +import type { HealthCheckGroupWithResult } from '../models/HealthCheckGroupWithResult'; +import type { HealthCheckResult } from '../models/HealthCheckResult'; +import type { PagedHealthCheckGroup } from '../models/PagedHealthCheckGroup'; + +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class HealthCheckResource { + + /** + * @returns PagedHealthCheckGroup Success + * @throws ApiError + */ + public static getHealthCheckGroup({ + skip, + take = 100, + }: { + skip?: number, + take?: number, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/umbraco/management/api/v1/health-check-group', + query: { + 'skip': skip, + 'take': take, + }, + }); + } + + /** + * @returns HealthCheckGroupWithResult Success + * @throws ApiError + */ + public static getHealthCheckGroupByName({ + name, + }: { + name: string, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/umbraco/management/api/v1/health-check-group/{name}', + path: { + 'name': name, + }, + errors: { + 404: `Not Found`, + }, + }); + } + + /** + * @returns HealthCheckResult Success + * @throws ApiError + */ + public static postHealthCheckExecuteAction({ + requestBody, + }: { + requestBody?: HealthCheckAction, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/umbraco/management/api/v1/health-check/execute-action', + body: requestBody, + mediaType: 'application/json', + errors: { + 400: `Bad Request`, + }, + }); + } + +} diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/services/LanguageResource.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/services/LanguageResource.ts index 3eacb1ec73..76cd065f85 100644 --- a/src/Umbraco.Web.UI.Client/src/core/backend-api/services/LanguageResource.ts +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/services/LanguageResource.ts @@ -10,6 +10,26 @@ import { request as __request } from '../core/request'; export class LanguageResource { + /** + * @returns any Created + * @throws ApiError + */ + public static postLanguage({ + requestBody, + }: { + requestBody?: Language, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/umbraco/management/api/v1/language', + body: requestBody, + mediaType: 'application/json', + errors: { + 400: `Bad Request`, + }, + }); + } + /** * @returns PagedLanguage Success * @throws ApiError @@ -74,38 +94,23 @@ export class LanguageResource { }); } - /** - * @returns any Created - * @throws ApiError - */ - public static postLanguageCreate({ - requestBody, - }: { - requestBody?: Language, - }): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/umbraco/management/api/v1/language/create', - body: requestBody, - mediaType: 'application/json', - errors: { - 400: `Bad Request`, - }, - }); - } - /** * @returns any Success * @throws ApiError */ - public static putLanguageUpdate({ + public static putLanguageById({ + id, requestBody, }: { + id: number, requestBody?: Language, }): CancelablePromise { return __request(OpenAPI, { method: 'PUT', - url: '/umbraco/management/api/v1/language/update', + url: '/umbraco/management/api/v1/language/{id}', + path: { + 'id': id, + }, body: requestBody, mediaType: 'application/json', errors: { diff --git a/src/Umbraco.Web.UI.Client/src/core/backend-api/services/RedirectManagementResource.ts b/src/Umbraco.Web.UI.Client/src/core/backend-api/services/RedirectManagementResource.ts new file mode 100644 index 0000000000..92b1272bee --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/core/backend-api/services/RedirectManagementResource.ts @@ -0,0 +1,114 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { PagedRedirectUrl } from '../models/PagedRedirectUrl'; +import type { RedirectStatus } from '../models/RedirectStatus'; +import type { RedirectUrlStatus } from '../models/RedirectUrlStatus'; + +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class RedirectManagementResource { + + /** + * @returns PagedRedirectUrl Success + * @throws ApiError + */ + public static getRedirectManagement({ + filter, + skip, + take, + }: { + filter?: string, + skip?: number, + take?: number, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/umbraco/management/api/v1/redirect-management', + query: { + 'filter': filter, + 'skip': skip, + 'take': take, + }, + errors: { + 400: `Bad Request`, + }, + }); + } + + /** + * @returns PagedRedirectUrl Success + * @throws ApiError + */ + public static getRedirectManagementByKey({ + key, + skip, + take, + }: { + key: string, + skip?: number, + take?: number, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/umbraco/management/api/v1/redirect-management/{key}', + path: { + 'key': key, + }, + query: { + 'skip': skip, + 'take': take, + }, + }); + } + + /** + * @returns any Success + * @throws ApiError + */ + public static deleteRedirectManagementByKey({ + key, + }: { + key: string, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/umbraco/management/api/v1/redirect-management/{key}', + path: { + 'key': key, + }, + }); + } + + /** + * @returns RedirectUrlStatus Success + * @throws ApiError + */ + public static getRedirectManagementStatus(): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/umbraco/management/api/v1/redirect-management/status', + }); + } + + /** + * @returns any Success + * @throws ApiError + */ + public static postRedirectManagementStatus({ + status, + }: { + status?: RedirectStatus, + }): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/umbraco/management/api/v1/redirect-management/status', + query: { + 'status': status, + }, + }); + } + +}