generate new api models
This commit is contained in:
@@ -5,20 +5,20 @@ import type { ApiRequestOptions } from './ApiRequestOptions';
|
||||
import type { ApiResult } from './ApiResult';
|
||||
|
||||
export class ApiError extends Error {
|
||||
public readonly url: string;
|
||||
public readonly status: number;
|
||||
public readonly statusText: string;
|
||||
public readonly body: any;
|
||||
public readonly request: ApiRequestOptions;
|
||||
public readonly url: string;
|
||||
public readonly status: number;
|
||||
public readonly statusText: string;
|
||||
public readonly body: any;
|
||||
public readonly request: ApiRequestOptions;
|
||||
|
||||
constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
|
||||
super(message);
|
||||
constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
|
||||
super(message);
|
||||
|
||||
this.name = 'ApiError';
|
||||
this.url = response.url;
|
||||
this.status = response.status;
|
||||
this.statusText = response.statusText;
|
||||
this.body = response.body;
|
||||
this.request = request;
|
||||
}
|
||||
this.name = 'ApiError';
|
||||
this.url = response.url;
|
||||
this.status = response.status;
|
||||
this.statusText = response.statusText;
|
||||
this.body = response.body;
|
||||
this.request = request;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,8 @@ 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 { DataTypePropertyReference } from './models/DataTypePropertyReference';
|
||||
export type { DataTypeReference } from './models/DataTypeReference';
|
||||
export type { DataTypeUpdateModel } from './models/DataTypeUpdateModel';
|
||||
export type { Dictionary } from './models/Dictionary';
|
||||
export type { DictionaryImport } from './models/DictionaryImport';
|
||||
@@ -44,7 +46,10 @@ export type { Field } from './models/Field';
|
||||
export { FieldAttributes } from './models/FieldAttributes';
|
||||
export type { FieldInfo } from './models/FieldInfo';
|
||||
export type { FileSystemTreeItem } from './models/FileSystemTreeItem';
|
||||
export type { Folder } from './models/Folder';
|
||||
export type { FolderCreateModel } from './models/FolderCreateModel';
|
||||
export type { FolderTreeItem } from './models/FolderTreeItem';
|
||||
export type { FolderUpdateModel } from './models/FolderUpdateModel';
|
||||
export { GenericParameterAttributes } from './models/GenericParameterAttributes';
|
||||
export type { HealthCheck } from './models/HealthCheck';
|
||||
export type { HealthCheckAction } from './models/HealthCheckAction';
|
||||
@@ -52,6 +57,7 @@ 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 { HealthStatus } from './models/HealthStatus';
|
||||
export type { HelpPage } from './models/HelpPage';
|
||||
export type { ICustomAttributeProvider } from './models/ICustomAttributeProvider';
|
||||
export type { Index } from './models/Index';
|
||||
@@ -75,6 +81,7 @@ export type { ModuleHandle } from './models/ModuleHandle';
|
||||
export type { NotFoundResult } from './models/NotFoundResult';
|
||||
export { NotificationStyle } from './models/NotificationStyle';
|
||||
export type { OkResult } from './models/OkResult';
|
||||
export { Operator } from './models/Operator';
|
||||
export type { OutOfDateStatus } from './models/OutOfDateStatus';
|
||||
export { OutOfDateType } from './models/OutOfDateType';
|
||||
export type { PagedContentTreeItem } from './models/PagedContentTreeItem';
|
||||
@@ -121,6 +128,19 @@ export { StatusResultType } from './models/StatusResultType';
|
||||
export type { StructLayoutAttribute } from './models/StructLayoutAttribute';
|
||||
export type { Telemetry } from './models/Telemetry';
|
||||
export { TelemetryLevel } from './models/TelemetryLevel';
|
||||
export type { Template } from './models/Template';
|
||||
export type { TemplateCreateModel } from './models/TemplateCreateModel';
|
||||
export type { TemplateQueryExecuteFilterModel } from './models/TemplateQueryExecuteFilterModel';
|
||||
export type { TemplateQueryExecuteModel } from './models/TemplateQueryExecuteModel';
|
||||
export type { TemplateQueryExecuteSortModel } from './models/TemplateQueryExecuteSortModel';
|
||||
export type { TemplateQueryOperator } from './models/TemplateQueryOperator';
|
||||
export type { TemplateQueryProperty } from './models/TemplateQueryProperty';
|
||||
export { TemplateQueryPropertyType } from './models/TemplateQueryPropertyType';
|
||||
export type { TemplateQueryResult } from './models/TemplateQueryResult';
|
||||
export type { TemplateQueryResultItem } from './models/TemplateQueryResultItem';
|
||||
export type { TemplateQuerySettings } from './models/TemplateQuerySettings';
|
||||
export type { TemplateScaffold } from './models/TemplateScaffold';
|
||||
export type { TemplateUpdateModel } from './models/TemplateUpdateModel';
|
||||
export type { Type } from './models/Type';
|
||||
export { TypeAttributes } from './models/TypeAttributes';
|
||||
export type { TypeInfo } from './models/TypeInfo';
|
||||
|
||||
@@ -10,27 +10,27 @@ import type { Type } from './Type';
|
||||
import type { TypeInfo } from './TypeInfo';
|
||||
|
||||
export type Assembly = {
|
||||
readonly definedTypes?: Array<TypeInfo> | null;
|
||||
readonly exportedTypes?: Array<Type> | null;
|
||||
readonly definedTypes?: Array<TypeInfo>;
|
||||
readonly exportedTypes?: Array<Type>;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
readonly codeBase?: string | null;
|
||||
entryPoint?: MethodInfo;
|
||||
readonly fullName?: string | null;
|
||||
readonly imageRuntimeVersion?: string | null;
|
||||
readonly imageRuntimeVersion?: string;
|
||||
readonly isDynamic?: boolean;
|
||||
readonly location?: string | null;
|
||||
readonly location?: string;
|
||||
readonly reflectionOnly?: boolean;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly isFullyTrusted?: boolean;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly customAttributes?: Array<CustomAttributeData>;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
readonly escapedCodeBase?: string | null;
|
||||
readonly escapedCodeBase?: string;
|
||||
manifestModule?: Module;
|
||||
readonly modules?: Array<Module> | null;
|
||||
readonly modules?: Array<Module>;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
|
||||
@@ -6,6 +6,6 @@ import type { TelemetryLevel } from './TelemetryLevel';
|
||||
|
||||
export type ConsentLevel = {
|
||||
level?: TelemetryLevel;
|
||||
description?: string | null;
|
||||
description?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -12,11 +12,11 @@ import type { RuntimeMethodHandle } from './RuntimeMethodHandle';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type ConstructorInfo = {
|
||||
readonly name?: string | null;
|
||||
readonly name?: string;
|
||||
declaringType?: Type;
|
||||
reflectedType?: Type;
|
||||
module?: Module;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly customAttributes?: Array<CustomAttributeData>;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
attributes?: MethodAttributes;
|
||||
|
||||
@@ -3,13 +3,14 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type ContentTreeItem = {
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
name?: string;
|
||||
type?: string;
|
||||
icon?: string;
|
||||
hasChildren?: boolean;
|
||||
key?: string;
|
||||
isContainer?: boolean;
|
||||
parentKey?: string | null;
|
||||
noAccess?: boolean;
|
||||
isTrashed?: boolean;
|
||||
};
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ import type { Type } from './Type';
|
||||
|
||||
export type CreatedResult = {
|
||||
value?: any;
|
||||
formatters?: Array<IOutputFormatter> | null;
|
||||
contentTypes?: Array<string> | null;
|
||||
formatters?: Array<IOutputFormatter>;
|
||||
contentTypes?: Array<string>;
|
||||
declaredType?: Type;
|
||||
statusCode?: number | null;
|
||||
location?: string | null;
|
||||
location?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type Culture = {
|
||||
name?: string | null;
|
||||
englishName?: string | null;
|
||||
name?: string;
|
||||
englishName?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Type } from './Type';
|
||||
export type CustomAttributeData = {
|
||||
attributeType?: Type;
|
||||
constructor?: ConstructorInfo;
|
||||
readonly constructorArguments?: Array<CustomAttributeTypedArgument> | null;
|
||||
readonly namedArguments?: Array<CustomAttributeNamedArgument> | null;
|
||||
readonly constructorArguments?: Array<CustomAttributeTypedArgument>;
|
||||
readonly namedArguments?: Array<CustomAttributeNamedArgument>;
|
||||
};
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { MemberInfo } from './MemberInfo';
|
||||
export type CustomAttributeNamedArgument = {
|
||||
memberInfo?: MemberInfo;
|
||||
typedValue?: CustomAttributeTypedArgument;
|
||||
readonly memberName?: string | null;
|
||||
readonly memberName?: string;
|
||||
readonly isField?: boolean;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
import type { DataTypeProperty } from './DataTypeProperty';
|
||||
|
||||
export type DataType = {
|
||||
name?: string | null;
|
||||
propertyEditorAlias?: string | null;
|
||||
data?: Array<DataTypeProperty> | null;
|
||||
name?: string;
|
||||
propertyEditorAlias?: string;
|
||||
propertyEditorUiAlias?: string | null;
|
||||
data?: Array<DataTypeProperty>;
|
||||
key?: string;
|
||||
parentKey?: string | null;
|
||||
};
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
import type { DataTypeProperty } from './DataTypeProperty';
|
||||
|
||||
export type DataTypeCreateModel = {
|
||||
name?: string | null;
|
||||
propertyEditorAlias?: string | null;
|
||||
data?: Array<DataTypeProperty> | null;
|
||||
name?: string;
|
||||
propertyEditorAlias?: string;
|
||||
propertyEditorUiAlias?: string | null;
|
||||
data?: Array<DataTypeProperty>;
|
||||
parentKey?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type DataTypeProperty = {
|
||||
alias?: string | null;
|
||||
alias?: string;
|
||||
value?: any;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type DataTypePropertyReference = {
|
||||
name?: string;
|
||||
alias?: string;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { DataTypePropertyReference } from './DataTypePropertyReference';
|
||||
|
||||
export type DataTypeReference = {
|
||||
key?: string;
|
||||
type?: string;
|
||||
properties?: Array<DataTypePropertyReference>;
|
||||
};
|
||||
|
||||
@@ -5,8 +5,9 @@
|
||||
import type { DataTypeProperty } from './DataTypeProperty';
|
||||
|
||||
export type DataTypeUpdateModel = {
|
||||
name?: string | null;
|
||||
propertyEditorAlias?: string | null;
|
||||
data?: Array<DataTypeProperty> | null;
|
||||
name?: string;
|
||||
propertyEditorAlias?: string;
|
||||
propertyEditorUiAlias?: string | null;
|
||||
data?: Array<DataTypeProperty>;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
export type DatabaseSettings = {
|
||||
id?: string;
|
||||
sortOrder?: number;
|
||||
displayName?: string | null;
|
||||
defaultDatabaseName?: string | null;
|
||||
providerName?: string | null;
|
||||
displayName?: string;
|
||||
defaultDatabaseName?: string;
|
||||
providerName?: string;
|
||||
isConfigured?: boolean;
|
||||
requiresServer?: boolean;
|
||||
serverPlaceholder?: string | null;
|
||||
serverPlaceholder?: string;
|
||||
requiresCredentials?: boolean;
|
||||
supportsIntegratedAuthentication?: boolean;
|
||||
requiresConnectionTest?: boolean;
|
||||
|
||||
@@ -8,11 +8,11 @@ import type { DictionaryTranslation } from './DictionaryTranslation';
|
||||
|
||||
export type Dictionary = {
|
||||
parentId?: string | null;
|
||||
translations?: Array<DictionaryTranslation> | null;
|
||||
contentApps?: Array<ContentApp> | null;
|
||||
readonly notifications?: Array<BackOfficeNotification> | null;
|
||||
translations?: Array<DictionaryTranslation>;
|
||||
contentApps?: Array<ContentApp>;
|
||||
readonly notifications?: Array<BackOfficeNotification>;
|
||||
name: string;
|
||||
key?: string;
|
||||
path?: string | null;
|
||||
path?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import type { DictionaryItemsImport } from './DictionaryItemsImport';
|
||||
|
||||
export type DictionaryImport = {
|
||||
dictionaryItems?: Array<DictionaryItemsImport> | null;
|
||||
dictionaryItems?: Array<DictionaryItemsImport>;
|
||||
tempFileName?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -8,6 +8,6 @@ export type DictionaryOverview = {
|
||||
name?: string | null;
|
||||
key?: string;
|
||||
level?: number;
|
||||
readonly translations?: Array<DictionaryTranslationOverview> | null;
|
||||
readonly translations?: Array<DictionaryTranslationOverview>;
|
||||
};
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ export type DictionaryTranslation = {
|
||||
key?: string;
|
||||
displayName?: string | null;
|
||||
isoCode?: string | null;
|
||||
translation?: string | null;
|
||||
translation?: string;
|
||||
languageId?: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type DocumentBlueprintTreeItem = {
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
name?: string;
|
||||
type?: string;
|
||||
icon?: string;
|
||||
hasChildren?: boolean;
|
||||
key?: string;
|
||||
isContainer?: boolean;
|
||||
parentKey?: string | null;
|
||||
documentTypeKey?: string;
|
||||
documentTypeAlias?: string | null;
|
||||
documentTypeAlias?: string;
|
||||
documentTypeName?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,14 +3,15 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type DocumentTreeItem = {
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
name?: string;
|
||||
type?: string;
|
||||
icon?: string;
|
||||
hasChildren?: boolean;
|
||||
key?: string;
|
||||
isContainer?: boolean;
|
||||
parentKey?: string | null;
|
||||
noAccess?: boolean;
|
||||
isTrashed?: boolean;
|
||||
isProtected?: boolean;
|
||||
isPublished?: boolean;
|
||||
isEdited?: boolean;
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type DocumentTypeTreeItem = {
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
name?: string;
|
||||
type?: string;
|
||||
icon?: string;
|
||||
hasChildren?: boolean;
|
||||
key?: string;
|
||||
isContainer?: boolean;
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type EntityTreeItem = {
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
name?: string;
|
||||
type?: string;
|
||||
icon?: string;
|
||||
hasChildren?: boolean;
|
||||
key?: string;
|
||||
isContainer?: boolean;
|
||||
|
||||
@@ -10,11 +10,11 @@ import type { Module } from './Module';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type EventInfo = {
|
||||
readonly name?: string | null;
|
||||
readonly name?: string;
|
||||
declaringType?: Type;
|
||||
reflectedType?: Type;
|
||||
module?: Module;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly customAttributes?: Array<CustomAttributeData>;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
memberType?: MemberTypes;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type Field = {
|
||||
name?: string | null;
|
||||
values?: Array<string> | null;
|
||||
name?: string;
|
||||
values?: Array<string>;
|
||||
};
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@ import type { RuntimeFieldHandle } from './RuntimeFieldHandle';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type FieldInfo = {
|
||||
readonly name?: string | null;
|
||||
readonly name?: string;
|
||||
declaringType?: Type;
|
||||
reflectedType?: Type;
|
||||
module?: Module;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly customAttributes?: Array<CustomAttributeData>;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
memberType?: MemberTypes;
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type FileSystemTreeItem = {
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
name?: string;
|
||||
type?: string;
|
||||
icon?: string;
|
||||
hasChildren?: boolean;
|
||||
path?: string | null;
|
||||
path?: string;
|
||||
isFolder?: boolean;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type Folder = {
|
||||
name?: string;
|
||||
key?: string;
|
||||
parentKey?: string | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type FolderCreateModel = {
|
||||
name?: string;
|
||||
parentKey?: string | null;
|
||||
};
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type FolderTreeItem = {
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
name?: string;
|
||||
type?: string;
|
||||
icon?: string;
|
||||
hasChildren?: boolean;
|
||||
key?: string;
|
||||
isContainer?: boolean;
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type FolderUpdateModel = {
|
||||
name?: string;
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
export type HealthCheck = {
|
||||
key?: string;
|
||||
name?: string | null;
|
||||
name?: string;
|
||||
description?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,6 +6,6 @@ import type { HealthCheck } from './HealthCheck';
|
||||
|
||||
export type HealthCheckGroup = {
|
||||
name?: string | null;
|
||||
checks?: Array<HealthCheck> | null;
|
||||
checks?: Array<HealthCheck>;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,6 +6,6 @@ import type { HealthCheckWithResult } from './HealthCheckWithResult';
|
||||
|
||||
export type HealthCheckGroupWithResult = {
|
||||
name?: string | null;
|
||||
checks?: Array<HealthCheckWithResult> | null;
|
||||
checks?: Array<HealthCheckWithResult>;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { HealthCheckAction } from './HealthCheckAction';
|
||||
import type { StatusResultType } from './StatusResultType';
|
||||
|
||||
export type HealthCheckResult = {
|
||||
message?: string | null;
|
||||
message?: string;
|
||||
resultType?: StatusResultType;
|
||||
actions?: Array<HealthCheckAction> | null;
|
||||
readMoreLink?: string | null;
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { HealthCheckResult } from './HealthCheckResult';
|
||||
|
||||
export type HealthCheckWithResult = {
|
||||
key?: string;
|
||||
name?: string | null;
|
||||
name?: string;
|
||||
description?: string | null;
|
||||
results?: Array<HealthCheckResult> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum HealthStatus {
|
||||
HEALTHY = 'Healthy',
|
||||
UNHEALTHY = 'Unhealthy',
|
||||
REBUILDING = 'Rebuilding',
|
||||
}
|
||||
@@ -2,12 +2,13 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { HealthStatus } from './HealthStatus';
|
||||
|
||||
export type Index = {
|
||||
name: string;
|
||||
healthStatus?: string | null;
|
||||
readonly isHealthy: boolean;
|
||||
healthStatus?: HealthStatus;
|
||||
canRebuild: boolean;
|
||||
searcherName?: string | null;
|
||||
searcherName?: string;
|
||||
documentCount: number;
|
||||
fieldCount: number;
|
||||
providerProperties?: Record<string, any> | null;
|
||||
|
||||
@@ -7,6 +7,6 @@ import type { UserSettings } from './UserSettings';
|
||||
|
||||
export type InstallSettings = {
|
||||
user?: UserSettings;
|
||||
databases?: Array<DatabaseSettings> | null;
|
||||
databases?: Array<DatabaseSettings>;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type JsonPatch = {
|
||||
op?: string | null;
|
||||
path?: string | null;
|
||||
op?: string;
|
||||
path?: string;
|
||||
value?: any;
|
||||
};
|
||||
|
||||
|
||||
@@ -9,11 +9,11 @@ import type { Type } from './Type';
|
||||
|
||||
export type MemberInfo = {
|
||||
memberType?: MemberTypes;
|
||||
readonly name?: string | null;
|
||||
readonly name?: string;
|
||||
declaringType?: Type;
|
||||
reflectedType?: Type;
|
||||
module?: Module;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly customAttributes?: Array<CustomAttributeData>;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
};
|
||||
|
||||
@@ -13,11 +13,11 @@ import type { Type } from './Type';
|
||||
|
||||
export type MethodBase = {
|
||||
memberType?: MemberTypes;
|
||||
readonly name?: string | null;
|
||||
readonly name?: string;
|
||||
declaringType?: Type;
|
||||
reflectedType?: Type;
|
||||
module?: Module;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly customAttributes?: Array<CustomAttributeData>;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
attributes?: MethodAttributes;
|
||||
|
||||
@@ -14,11 +14,11 @@ import type { RuntimeMethodHandle } from './RuntimeMethodHandle';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type MethodInfo = {
|
||||
readonly name?: string | null;
|
||||
readonly name?: string;
|
||||
declaringType?: Type;
|
||||
reflectedType?: Type;
|
||||
module?: Module;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly customAttributes?: Array<CustomAttributeData>;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
attributes?: MethodAttributes;
|
||||
|
||||
@@ -8,13 +8,13 @@ import type { ModuleHandle } from './ModuleHandle';
|
||||
|
||||
export type Module = {
|
||||
assembly?: Assembly;
|
||||
readonly fullyQualifiedName?: string | null;
|
||||
readonly name?: string | null;
|
||||
readonly fullyQualifiedName?: string;
|
||||
readonly name?: string;
|
||||
readonly mdStreamVersion?: number;
|
||||
readonly moduleVersionId?: string;
|
||||
readonly scopeName?: string | null;
|
||||
readonly scopeName?: string;
|
||||
moduleHandle?: ModuleHandle;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly customAttributes?: Array<CustomAttributeData>;
|
||||
readonly metadataToken?: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum Operator {
|
||||
EQUALS = 'Equals',
|
||||
NOT_EQUALS = 'NotEquals',
|
||||
CONTAINS = 'Contains',
|
||||
NOT_CONTAINS = 'NotContains',
|
||||
LESS_THAN = 'LessThan',
|
||||
LESS_THAN_EQUAL_TO = 'LessThanEqualTo',
|
||||
GREATER_THAN = 'GreaterThan',
|
||||
GREATER_THAN_EQUAL_TO = 'GreaterThanEqualTo',
|
||||
}
|
||||
@@ -21,7 +21,7 @@ export type ParameterInfo = {
|
||||
readonly defaultValue?: any;
|
||||
readonly rawDefaultValue?: any;
|
||||
readonly hasDefaultValue?: boolean;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly customAttributes?: Array<CustomAttributeData>;
|
||||
readonly metadataToken?: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@ import type { PropertyAttributes } from './PropertyAttributes';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type PropertyInfo = {
|
||||
readonly name?: string | null;
|
||||
readonly name?: string;
|
||||
declaringType?: Type;
|
||||
reflectedType?: Type;
|
||||
module?: Module;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly customAttributes?: Array<CustomAttributeData>;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
memberType?: MemberTypes;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
export type RecycleBinItem = {
|
||||
key?: string;
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
name?: string;
|
||||
type?: string;
|
||||
icon?: string;
|
||||
hasChildren?: boolean;
|
||||
isContainer?: boolean;
|
||||
parentKey?: string | null;
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
export type RedirectUrl = {
|
||||
key?: string;
|
||||
originalUrl?: string | null;
|
||||
destinationUrl?: string | null;
|
||||
originalUrl?: string;
|
||||
destinationUrl?: string;
|
||||
created?: string;
|
||||
contentKey?: string;
|
||||
culture?: string | null;
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
import type { Field } from './Field';
|
||||
|
||||
export type SearchResult = {
|
||||
id?: string | null;
|
||||
id?: string;
|
||||
score?: number;
|
||||
readonly fieldCount?: number;
|
||||
fields?: Array<Field> | null;
|
||||
fields?: Array<Field>;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type Searcher = {
|
||||
name?: string | null;
|
||||
name?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type Template = {
|
||||
name?: string;
|
||||
alias?: string;
|
||||
content?: string | null;
|
||||
key?: string;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type TemplateCreateModel = {
|
||||
name?: string;
|
||||
alias?: string;
|
||||
content?: string | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Operator } from './Operator';
|
||||
|
||||
export type TemplateQueryExecuteFilterModel = {
|
||||
propertyAlias?: string;
|
||||
constraintValue?: string;
|
||||
operator?: Operator;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { TemplateQueryExecuteFilterModel } from './TemplateQueryExecuteFilterModel';
|
||||
import type { TemplateQueryExecuteSortModel } from './TemplateQueryExecuteSortModel';
|
||||
|
||||
export type TemplateQueryExecuteModel = {
|
||||
rootContentKey?: string | null;
|
||||
contentTypeAlias?: string | null;
|
||||
filters?: Array<TemplateQueryExecuteFilterModel> | null;
|
||||
sort?: TemplateQueryExecuteSortModel;
|
||||
take?: number;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type TemplateQueryExecuteSortModel = {
|
||||
propertyAlias?: string;
|
||||
direction?: string | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Operator } from './Operator';
|
||||
import type { TemplateQueryPropertyType } from './TemplateQueryPropertyType';
|
||||
|
||||
export type TemplateQueryOperator = {
|
||||
operator?: Operator;
|
||||
applicableTypes?: Array<TemplateQueryPropertyType>;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { TemplateQueryPropertyType } from './TemplateQueryPropertyType';
|
||||
|
||||
export type TemplateQueryProperty = {
|
||||
alias?: string;
|
||||
type?: TemplateQueryPropertyType;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum TemplateQueryPropertyType {
|
||||
STRING = 'String',
|
||||
DATE_TIME = 'DateTime',
|
||||
INTEGER = 'Integer',
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { TemplateQueryResultItem } from './TemplateQueryResultItem';
|
||||
|
||||
export type TemplateQueryResult = {
|
||||
queryExpression?: string;
|
||||
sampleResults?: Array<TemplateQueryResultItem>;
|
||||
resultCount?: number;
|
||||
executionTime?: number;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type TemplateQueryResultItem = {
|
||||
icon?: string;
|
||||
name?: string;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { TemplateQueryOperator } from './TemplateQueryOperator';
|
||||
import type { TemplateQueryProperty } from './TemplateQueryProperty';
|
||||
|
||||
export type TemplateQuerySettings = {
|
||||
contentTypeAliases?: Array<string>;
|
||||
properties?: Array<TemplateQueryProperty>;
|
||||
operators?: Array<TemplateQueryOperator>;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type TemplateScaffold = {
|
||||
content?: string;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type TemplateUpdateModel = {
|
||||
name?: string;
|
||||
alias?: string;
|
||||
content?: string | null;
|
||||
};
|
||||
|
||||
@@ -14,8 +14,8 @@ import type { StructLayoutAttribute } from './StructLayoutAttribute';
|
||||
import type { TypeAttributes } from './TypeAttributes';
|
||||
|
||||
export type Type = {
|
||||
readonly name?: string | null;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly name?: string;
|
||||
readonly customAttributes?: Array<CustomAttributeData>;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
readonly isInterface?: boolean;
|
||||
@@ -44,7 +44,7 @@ export type Type = {
|
||||
readonly isVariableBoundArray?: boolean;
|
||||
readonly isByRefLike?: boolean;
|
||||
readonly hasElementType?: boolean;
|
||||
readonly genericTypeArguments?: Array<Type> | null;
|
||||
readonly genericTypeArguments?: Array<Type>;
|
||||
readonly genericParameterPosition?: number;
|
||||
genericParameterAttributes?: GenericParameterAttributes;
|
||||
attributes?: TypeAttributes;
|
||||
|
||||
@@ -20,8 +20,8 @@ import type { Type } from './Type';
|
||||
import type { TypeAttributes } from './TypeAttributes';
|
||||
|
||||
export type TypeInfo = {
|
||||
readonly name?: string | null;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly name?: string;
|
||||
readonly customAttributes?: Array<CustomAttributeData>;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
readonly isInterface?: boolean;
|
||||
@@ -50,7 +50,7 @@ export type TypeInfo = {
|
||||
readonly isVariableBoundArray?: boolean;
|
||||
readonly isByRefLike?: boolean;
|
||||
readonly hasElementType?: boolean;
|
||||
readonly genericTypeArguments?: Array<Type> | null;
|
||||
readonly genericTypeArguments?: Array<Type>;
|
||||
readonly genericParameterPosition?: number;
|
||||
genericParameterAttributes?: GenericParameterAttributes;
|
||||
attributes?: TypeAttributes;
|
||||
@@ -91,14 +91,14 @@ export type TypeInfo = {
|
||||
readonly isSerializable?: boolean;
|
||||
readonly containsGenericParameters?: boolean;
|
||||
readonly isVisible?: boolean;
|
||||
readonly genericTypeParameters?: Array<Type> | null;
|
||||
readonly declaredConstructors?: Array<ConstructorInfo> | null;
|
||||
readonly declaredEvents?: Array<EventInfo> | null;
|
||||
readonly declaredFields?: Array<FieldInfo> | null;
|
||||
readonly declaredMembers?: Array<MemberInfo> | null;
|
||||
readonly declaredMethods?: Array<MethodInfo> | null;
|
||||
readonly declaredNestedTypes?: Array<TypeInfo> | null;
|
||||
readonly declaredProperties?: Array<PropertyInfo> | null;
|
||||
readonly implementedInterfaces?: Array<Type> | null;
|
||||
readonly genericTypeParameters?: Array<Type>;
|
||||
readonly declaredConstructors?: Array<ConstructorInfo>;
|
||||
readonly declaredEvents?: Array<EventInfo>;
|
||||
readonly declaredFields?: Array<FieldInfo>;
|
||||
readonly declaredMembers?: Array<MemberInfo>;
|
||||
readonly declaredMethods?: Array<MethodInfo>;
|
||||
readonly declaredNestedTypes?: Array<TypeInfo>;
|
||||
readonly declaredProperties?: Array<PropertyInfo>;
|
||||
readonly implementedInterfaces?: Array<Type>;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type UpgradeSettings = {
|
||||
currentState?: string | null;
|
||||
newState?: string | null;
|
||||
newVersion?: string | null;
|
||||
oldVersion?: string | null;
|
||||
readonly reportUrl?: string | null;
|
||||
currentState?: string;
|
||||
newState?: string;
|
||||
newVersion?: string;
|
||||
oldVersion?: string;
|
||||
readonly reportUrl?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -7,6 +7,6 @@ import type { ConsentLevel } from './ConsentLevel';
|
||||
export type UserSettings = {
|
||||
minCharLength?: number;
|
||||
minNonAlphaNumericLength?: number;
|
||||
consentLevels?: Array<ConsentLevel> | null;
|
||||
consentLevels?: Array<ConsentLevel>;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type Version = {
|
||||
version?: string | null;
|
||||
version?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,8 +3,12 @@
|
||||
/* eslint-disable */
|
||||
import type { DataType } from '../models/DataType';
|
||||
import type { DataTypeCreateModel } from '../models/DataTypeCreateModel';
|
||||
import type { DataTypeReference } from '../models/DataTypeReference';
|
||||
import type { DataTypeUpdateModel } from '../models/DataTypeUpdateModel';
|
||||
import type { Folder } from '../models/Folder';
|
||||
import type { FolderCreateModel } from '../models/FolderCreateModel';
|
||||
import type { FolderTreeItem } from '../models/FolderTreeItem';
|
||||
import type { FolderUpdateModel } from '../models/FolderUpdateModel';
|
||||
import type { PagedFolderTreeItem } from '../models/PagedFolderTreeItem';
|
||||
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
@@ -14,14 +18,14 @@ import { request as __request } from '../core/request';
|
||||
export class DataTypeResource {
|
||||
|
||||
/**
|
||||
* @returns DataType Success
|
||||
* @returns any Created
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static postDataType({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody?: DataTypeCreateModel,
|
||||
}): CancelablePromise<DataType> {
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/umbraco/management/api/v1/data-type',
|
||||
@@ -55,7 +59,28 @@ export class DataTypeResource {
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns DataType Success
|
||||
* @returns any Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteDataTypeByKey({
|
||||
key,
|
||||
}: {
|
||||
key: string,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/umbraco/management/api/v1/data-type/{key}',
|
||||
path: {
|
||||
'key': key,
|
||||
},
|
||||
errors: {
|
||||
404: `Not Found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns any Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static putDataTypeByKey({
|
||||
@@ -64,7 +89,7 @@ export class DataTypeResource {
|
||||
}: {
|
||||
key: string,
|
||||
requestBody?: DataTypeUpdateModel,
|
||||
}): CancelablePromise<DataType> {
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'PUT',
|
||||
url: '/umbraco/management/api/v1/data-type/{key}',
|
||||
@@ -79,6 +104,111 @@ export class DataTypeResource {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns DataTypeReference Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getDataTypeByKeyReferences({
|
||||
key,
|
||||
}: {
|
||||
key: string,
|
||||
}): CancelablePromise<Array<DataTypeReference>> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/umbraco/management/api/v1/data-type/{key}/references',
|
||||
path: {
|
||||
'key': key,
|
||||
},
|
||||
errors: {
|
||||
404: `Not Found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns any Created
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static postDataTypeFolder({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody?: FolderCreateModel,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/umbraco/management/api/v1/data-type/folder',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns Folder Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getDataTypeFolderByKey({
|
||||
key,
|
||||
}: {
|
||||
key: string,
|
||||
}): CancelablePromise<Folder> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/umbraco/management/api/v1/data-type/folder/{key}',
|
||||
path: {
|
||||
'key': key,
|
||||
},
|
||||
errors: {
|
||||
404: `Not Found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns any Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteDataTypeFolderByKey({
|
||||
key,
|
||||
}: {
|
||||
key: string,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/umbraco/management/api/v1/data-type/folder/{key}',
|
||||
path: {
|
||||
'key': key,
|
||||
},
|
||||
errors: {
|
||||
404: `Not Found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns any Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static putDataTypeFolderByKey({
|
||||
key,
|
||||
requestBody,
|
||||
}: {
|
||||
key: string,
|
||||
requestBody?: FolderUpdateModel,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'PUT',
|
||||
url: '/umbraco/management/api/v1/data-type/folder/{key}',
|
||||
path: {
|
||||
'key': key,
|
||||
},
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
404: `Not Found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns PagedFolderTreeItem Success
|
||||
* @throws ApiError
|
||||
|
||||
@@ -3,6 +3,13 @@
|
||||
/* eslint-disable */
|
||||
import type { EntityTreeItem } from '../models/EntityTreeItem';
|
||||
import type { PagedEntityTreeItem } from '../models/PagedEntityTreeItem';
|
||||
import type { Template } from '../models/Template';
|
||||
import type { TemplateCreateModel } from '../models/TemplateCreateModel';
|
||||
import type { TemplateQueryExecuteModel } from '../models/TemplateQueryExecuteModel';
|
||||
import type { TemplateQueryResult } from '../models/TemplateQueryResult';
|
||||
import type { TemplateQuerySettings } from '../models/TemplateQuerySettings';
|
||||
import type { TemplateScaffold } from '../models/TemplateScaffold';
|
||||
import type { TemplateUpdateModel } from '../models/TemplateUpdateModel';
|
||||
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
@@ -10,6 +17,142 @@ import { request as __request } from '../core/request';
|
||||
|
||||
export class TemplateResource {
|
||||
|
||||
/**
|
||||
* @returns any Created
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static postTemplate({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody?: TemplateCreateModel,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/umbraco/management/api/v1/template',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
404: `Not Found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns Template Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getTemplateByKey({
|
||||
key,
|
||||
}: {
|
||||
key: string,
|
||||
}): CancelablePromise<Template> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/umbraco/management/api/v1/template/{key}',
|
||||
path: {
|
||||
'key': key,
|
||||
},
|
||||
errors: {
|
||||
404: `Not Found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns any Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteTemplateByKey({
|
||||
key,
|
||||
}: {
|
||||
key: string,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/umbraco/management/api/v1/template/{key}',
|
||||
path: {
|
||||
'key': key,
|
||||
},
|
||||
errors: {
|
||||
404: `Not Found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns any Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static putTemplateByKey({
|
||||
key,
|
||||
requestBody,
|
||||
}: {
|
||||
key: string,
|
||||
requestBody?: TemplateUpdateModel,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'PUT',
|
||||
url: '/umbraco/management/api/v1/template/{key}',
|
||||
path: {
|
||||
'key': key,
|
||||
},
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
404: `Not Found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns TemplateQueryResult Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static postTemplateQueryExecute({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody?: TemplateQueryExecuteModel,
|
||||
}): CancelablePromise<TemplateQueryResult> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/umbraco/management/api/v1/template/query/execute',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns TemplateQuerySettings Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getTemplateQuerySettings(): CancelablePromise<TemplateQuerySettings> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/umbraco/management/api/v1/template/query/settings',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns TemplateScaffold Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getTemplateScaffold({
|
||||
masterTemplateAlias,
|
||||
}: {
|
||||
masterTemplateAlias?: string,
|
||||
}): CancelablePromise<TemplateScaffold> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/umbraco/management/api/v1/template/scaffold',
|
||||
query: {
|
||||
'masterTemplateAlias': masterTemplateAlias,
|
||||
},
|
||||
errors: {
|
||||
404: `Not Found`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns PagedEntityTreeItem Success
|
||||
* @throws ApiError
|
||||
|
||||
Reference in New Issue
Block a user