updated models (#639)
* updated models * potential fix of eslint * fix eslint rules * first batch * dictionary corrections * batch 2 * batch 3 * tiny correction * batch 4 * rename key to id internal models * batch 5 * batch 6 * correct LogLevelCountsReponseModel * batch 7 * batch 8 * batch 9 * health check data * _createTableItems * revert to key for checkbox list * batch 9
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
"ignorePatterns": ["vite.*.ts"],
|
||||
"root": true,
|
||||
"plugins": ["eslint-plugin-local-rules"],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "latest"
|
||||
},
|
||||
"env": {
|
||||
"es6": true
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["**/*.ts"],
|
||||
|
||||
@@ -116,6 +116,7 @@ module.exports = {
|
||||
category: 'Naming',
|
||||
recommended: true,
|
||||
},
|
||||
schema: [],
|
||||
},
|
||||
create: function (context) {
|
||||
return {
|
||||
|
||||
@@ -9,262 +9,265 @@ import type { OnCancel } from './CancelablePromise';
|
||||
import type { OpenAPIConfig } from './OpenAPI';
|
||||
|
||||
const isDefined = <T>(value: T | null | undefined): value is Exclude<T, null | undefined> => {
|
||||
return value !== undefined && value !== null;
|
||||
return value !== undefined && value !== null;
|
||||
};
|
||||
|
||||
const isString = (value: any): value is string => {
|
||||
return typeof value === 'string';
|
||||
return typeof value === 'string';
|
||||
};
|
||||
|
||||
const isStringWithValue = (value: any): value is string => {
|
||||
return isString(value) && value !== '';
|
||||
return isString(value) && value !== '';
|
||||
};
|
||||
|
||||
const isBlob = (value: any): value is Blob => {
|
||||
return (
|
||||
typeof value === 'object' &&
|
||||
typeof value.type === 'string' &&
|
||||
typeof value.stream === 'function' &&
|
||||
typeof value.arrayBuffer === 'function' &&
|
||||
typeof value.constructor === 'function' &&
|
||||
typeof value.constructor.name === 'string' &&
|
||||
/^(Blob|File)$/.test(value.constructor.name) &&
|
||||
/^(Blob|File)$/.test(value[Symbol.toStringTag])
|
||||
);
|
||||
return (
|
||||
typeof value === 'object' &&
|
||||
typeof value.type === 'string' &&
|
||||
typeof value.stream === 'function' &&
|
||||
typeof value.arrayBuffer === 'function' &&
|
||||
typeof value.constructor === 'function' &&
|
||||
typeof value.constructor.name === 'string' &&
|
||||
/^(Blob|File)$/.test(value.constructor.name) &&
|
||||
/^(Blob|File)$/.test(value[Symbol.toStringTag])
|
||||
);
|
||||
};
|
||||
|
||||
const isFormData = (value: any): value is FormData => {
|
||||
return value instanceof FormData;
|
||||
return value instanceof FormData;
|
||||
};
|
||||
|
||||
const base64 = (str: string): string => {
|
||||
try {
|
||||
return btoa(str);
|
||||
} catch (err) {
|
||||
// @ts-ignore
|
||||
return Buffer.from(str).toString('base64');
|
||||
}
|
||||
try {
|
||||
return btoa(str);
|
||||
} catch (err) {
|
||||
// @ts-ignore
|
||||
return Buffer.from(str).toString('base64');
|
||||
}
|
||||
};
|
||||
|
||||
const getQueryString = (params: Record<string, any>): string => {
|
||||
const qs: string[] = [];
|
||||
const qs: string[] = [];
|
||||
|
||||
const append = (key: string, value: any) => {
|
||||
qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
|
||||
};
|
||||
const append = (id: string, value: any) => {
|
||||
qs.push(`${encodeURIComponent(id)}=${encodeURIComponent(String(value))}`);
|
||||
};
|
||||
|
||||
const process = (key: string, value: any) => {
|
||||
if (isDefined(value)) {
|
||||
if (Array.isArray(value)) {
|
||||
value.forEach(v => {
|
||||
process(key, v);
|
||||
});
|
||||
} else if (typeof value === 'object') {
|
||||
Object.entries(value).forEach(([k, v]) => {
|
||||
process(`${key}[${k}]`, v);
|
||||
});
|
||||
} else {
|
||||
append(key, value);
|
||||
}
|
||||
}
|
||||
};
|
||||
const process = (id: string, value: any) => {
|
||||
if (isDefined(value)) {
|
||||
if (Array.isArray(value)) {
|
||||
value.forEach((v) => {
|
||||
process(id, v);
|
||||
});
|
||||
} else if (typeof value === 'object') {
|
||||
Object.entries(value).forEach(([k, v]) => {
|
||||
process(`${id}[${k}]`, v);
|
||||
});
|
||||
} else {
|
||||
append(id, value);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Object.entries(params).forEach(([key, value]) => {
|
||||
process(key, value);
|
||||
});
|
||||
Object.entries(params).forEach(([id, value]) => {
|
||||
process(id, value);
|
||||
});
|
||||
|
||||
if (qs.length > 0) {
|
||||
return `?${qs.join('&')}`;
|
||||
}
|
||||
if (qs.length > 0) {
|
||||
return `?${qs.join('&')}`;
|
||||
}
|
||||
|
||||
return '';
|
||||
return '';
|
||||
};
|
||||
|
||||
const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {
|
||||
const encoder = config.ENCODE_PATH || encodeURI;
|
||||
const encoder = config.ENCODE_PATH || encodeURI;
|
||||
|
||||
const path = options.url
|
||||
.replace('{api-version}', config.VERSION)
|
||||
.replace(/{(.*?)}/g, (substring: string, group: string) => {
|
||||
if (options.path?.hasOwnProperty(group)) {
|
||||
return encoder(String(options.path[group]));
|
||||
}
|
||||
return substring;
|
||||
});
|
||||
const path = options.url
|
||||
.replace('{api-version}', config.VERSION)
|
||||
.replace(/{(.*?)}/g, (substring: string, group: string) => {
|
||||
if (options.path?.hasOwnProperty(group)) {
|
||||
return encoder(String(options.path[group]));
|
||||
}
|
||||
return substring;
|
||||
});
|
||||
|
||||
const url = `${config.BASE}${path}`;
|
||||
if (options.query) {
|
||||
return `${url}${getQueryString(options.query)}`;
|
||||
}
|
||||
return url;
|
||||
const url = `${config.BASE}${path}`;
|
||||
if (options.query) {
|
||||
return `${url}${getQueryString(options.query)}`;
|
||||
}
|
||||
return url;
|
||||
};
|
||||
|
||||
const getFormData = (options: ApiRequestOptions): FormData | undefined => {
|
||||
if (options.formData) {
|
||||
const formData = new FormData();
|
||||
if (options.formData) {
|
||||
const formData = new FormData();
|
||||
|
||||
const process = (key: string, value: any) => {
|
||||
if (isString(value) || isBlob(value)) {
|
||||
formData.append(key, value);
|
||||
} else {
|
||||
formData.append(key, JSON.stringify(value));
|
||||
}
|
||||
};
|
||||
const process = (id: string, value: any) => {
|
||||
if (isString(value) || isBlob(value)) {
|
||||
formData.append(id, value);
|
||||
} else {
|
||||
formData.append(id, JSON.stringify(value));
|
||||
}
|
||||
};
|
||||
|
||||
Object.entries(options.formData)
|
||||
.filter(([_, value]) => isDefined(value))
|
||||
.forEach(([key, value]) => {
|
||||
if (Array.isArray(value)) {
|
||||
value.forEach(v => process(key, v));
|
||||
} else {
|
||||
process(key, value);
|
||||
}
|
||||
});
|
||||
Object.entries(options.formData)
|
||||
.filter(([_, value]) => isDefined(value))
|
||||
.forEach(([id, value]) => {
|
||||
if (Array.isArray(value)) {
|
||||
value.forEach((v) => process(id, v));
|
||||
} else {
|
||||
process(id, value);
|
||||
}
|
||||
});
|
||||
|
||||
return formData;
|
||||
}
|
||||
return undefined;
|
||||
return formData;
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
|
||||
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
|
||||
|
||||
const resolve = async <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>): Promise<T | undefined> => {
|
||||
if (typeof resolver === 'function') {
|
||||
return (resolver as Resolver<T>)(options);
|
||||
}
|
||||
return resolver;
|
||||
if (typeof resolver === 'function') {
|
||||
return (resolver as Resolver<T>)(options);
|
||||
}
|
||||
return resolver;
|
||||
};
|
||||
|
||||
const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise<Headers> => {
|
||||
const token = await resolve(options, config.TOKEN);
|
||||
const username = await resolve(options, config.USERNAME);
|
||||
const password = await resolve(options, config.PASSWORD);
|
||||
const additionalHeaders = await resolve(options, config.HEADERS);
|
||||
const token = await resolve(options, config.TOKEN);
|
||||
const username = await resolve(options, config.USERNAME);
|
||||
const password = await resolve(options, config.PASSWORD);
|
||||
const additionalHeaders = await resolve(options, config.HEADERS);
|
||||
|
||||
const headers = Object.entries({
|
||||
Accept: 'application/json',
|
||||
...additionalHeaders,
|
||||
...options.headers,
|
||||
})
|
||||
.filter(([_, value]) => isDefined(value))
|
||||
.reduce((headers, [key, value]) => ({
|
||||
...headers,
|
||||
[key]: String(value),
|
||||
}), {} as Record<string, string>);
|
||||
const headers = Object.entries({
|
||||
Accept: 'application/json',
|
||||
...additionalHeaders,
|
||||
...options.headers,
|
||||
})
|
||||
.filter(([_, value]) => isDefined(value))
|
||||
.reduce(
|
||||
(headers, [id, value]) => ({
|
||||
...headers,
|
||||
[id]: String(value),
|
||||
}),
|
||||
{} as Record<string, string>
|
||||
);
|
||||
|
||||
if (isStringWithValue(token)) {
|
||||
headers['Authorization'] = `Bearer ${token}`;
|
||||
}
|
||||
if (isStringWithValue(token)) {
|
||||
headers['Authorization'] = `Bearer ${token}`;
|
||||
}
|
||||
|
||||
if (isStringWithValue(username) && isStringWithValue(password)) {
|
||||
const credentials = base64(`${username}:${password}`);
|
||||
headers['Authorization'] = `Basic ${credentials}`;
|
||||
}
|
||||
if (isStringWithValue(username) && isStringWithValue(password)) {
|
||||
const credentials = base64(`${username}:${password}`);
|
||||
headers['Authorization'] = `Basic ${credentials}`;
|
||||
}
|
||||
|
||||
if (options.body) {
|
||||
if (options.mediaType) {
|
||||
headers['Content-Type'] = options.mediaType;
|
||||
} else if (isBlob(options.body)) {
|
||||
headers['Content-Type'] = options.body.type || 'application/octet-stream';
|
||||
} else if (isString(options.body)) {
|
||||
headers['Content-Type'] = 'text/plain';
|
||||
} else if (!isFormData(options.body)) {
|
||||
headers['Content-Type'] = 'application/json';
|
||||
}
|
||||
}
|
||||
if (options.body) {
|
||||
if (options.mediaType) {
|
||||
headers['Content-Type'] = options.mediaType;
|
||||
} else if (isBlob(options.body)) {
|
||||
headers['Content-Type'] = options.body.type || 'application/octet-stream';
|
||||
} else if (isString(options.body)) {
|
||||
headers['Content-Type'] = 'text/plain';
|
||||
} else if (!isFormData(options.body)) {
|
||||
headers['Content-Type'] = 'application/json';
|
||||
}
|
||||
}
|
||||
|
||||
return new Headers(headers);
|
||||
return new Headers(headers);
|
||||
};
|
||||
|
||||
const getRequestBody = (options: ApiRequestOptions): any => {
|
||||
if (options.body) {
|
||||
if (options.mediaType?.includes('/json')) {
|
||||
return JSON.stringify(options.body)
|
||||
} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {
|
||||
return options.body;
|
||||
} else {
|
||||
return JSON.stringify(options.body);
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
if (options.body) {
|
||||
if (options.mediaType?.includes('/json')) {
|
||||
return JSON.stringify(options.body);
|
||||
} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {
|
||||
return options.body;
|
||||
} else {
|
||||
return JSON.stringify(options.body);
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
|
||||
export const sendRequest = async (
|
||||
config: OpenAPIConfig,
|
||||
options: ApiRequestOptions,
|
||||
url: string,
|
||||
body: any,
|
||||
formData: FormData | undefined,
|
||||
headers: Headers,
|
||||
onCancel: OnCancel
|
||||
config: OpenAPIConfig,
|
||||
options: ApiRequestOptions,
|
||||
url: string,
|
||||
body: any,
|
||||
formData: FormData | undefined,
|
||||
headers: Headers,
|
||||
onCancel: OnCancel
|
||||
): Promise<Response> => {
|
||||
const controller = new AbortController();
|
||||
const controller = new AbortController();
|
||||
|
||||
const request: RequestInit = {
|
||||
headers,
|
||||
body: body ?? formData,
|
||||
method: options.method,
|
||||
signal: controller.signal,
|
||||
};
|
||||
const request: RequestInit = {
|
||||
headers,
|
||||
body: body ?? formData,
|
||||
method: options.method,
|
||||
signal: controller.signal,
|
||||
};
|
||||
|
||||
if (config.WITH_CREDENTIALS) {
|
||||
request.credentials = config.CREDENTIALS;
|
||||
}
|
||||
if (config.WITH_CREDENTIALS) {
|
||||
request.credentials = config.CREDENTIALS;
|
||||
}
|
||||
|
||||
onCancel(() => controller.abort());
|
||||
onCancel(() => controller.abort());
|
||||
|
||||
return await fetch(url, request);
|
||||
return await fetch(url, request);
|
||||
};
|
||||
|
||||
const getResponseHeader = (response: Response, responseHeader?: string): string | undefined => {
|
||||
if (responseHeader) {
|
||||
const content = response.headers.get(responseHeader);
|
||||
if (isString(content)) {
|
||||
return content;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
if (responseHeader) {
|
||||
const content = response.headers.get(responseHeader);
|
||||
if (isString(content)) {
|
||||
return content;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
|
||||
const getResponseBody = async (response: Response): Promise<any> => {
|
||||
if (response.status !== 204) {
|
||||
try {
|
||||
const contentType = response.headers.get('Content-Type');
|
||||
if (contentType) {
|
||||
const isJSON = contentType.toLowerCase().startsWith('application/json');
|
||||
if (isJSON) {
|
||||
return await response.json();
|
||||
} else {
|
||||
return await response.text();
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
if (response.status !== 204) {
|
||||
try {
|
||||
const contentType = response.headers.get('Content-Type');
|
||||
if (contentType) {
|
||||
const isJSON = contentType.toLowerCase().startsWith('application/json');
|
||||
if (isJSON) {
|
||||
return await response.json();
|
||||
} else {
|
||||
return await response.text();
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
|
||||
const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => {
|
||||
const errors: Record<number, string> = {
|
||||
400: 'Bad Request',
|
||||
401: 'Unauthorized',
|
||||
403: 'Forbidden',
|
||||
404: 'Not Found',
|
||||
500: 'Internal Server Error',
|
||||
502: 'Bad Gateway',
|
||||
503: 'Service Unavailable',
|
||||
...options.errors,
|
||||
}
|
||||
const errors: Record<number, string> = {
|
||||
400: 'Bad Request',
|
||||
401: 'Unauthorized',
|
||||
403: 'Forbidden',
|
||||
404: 'Not Found',
|
||||
500: 'Internal Server Error',
|
||||
502: 'Bad Gateway',
|
||||
503: 'Service Unavailable',
|
||||
...options.errors,
|
||||
};
|
||||
|
||||
const error = errors[result.status];
|
||||
if (error) {
|
||||
throw new ApiError(options, result, error);
|
||||
}
|
||||
const error = errors[result.status];
|
||||
if (error) {
|
||||
throw new ApiError(options, result, error);
|
||||
}
|
||||
|
||||
if (!result.ok) {
|
||||
throw new ApiError(options, result, 'Generic Error');
|
||||
}
|
||||
if (!result.ok) {
|
||||
throw new ApiError(options, result, 'Generic Error');
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -275,32 +278,32 @@ const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void =>
|
||||
* @throws ApiError
|
||||
*/
|
||||
export const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions): CancelablePromise<T> => {
|
||||
return new CancelablePromise(async (resolve, reject, onCancel) => {
|
||||
try {
|
||||
const url = getUrl(config, options);
|
||||
const formData = getFormData(options);
|
||||
const body = getRequestBody(options);
|
||||
const headers = await getHeaders(config, options);
|
||||
return new CancelablePromise(async (resolve, reject, onCancel) => {
|
||||
try {
|
||||
const url = getUrl(config, options);
|
||||
const formData = getFormData(options);
|
||||
const body = getRequestBody(options);
|
||||
const headers = await getHeaders(config, options);
|
||||
|
||||
if (!onCancel.isCancelled) {
|
||||
const response = await sendRequest(config, options, url, body, formData, headers, onCancel);
|
||||
const responseBody = await getResponseBody(response);
|
||||
const responseHeader = getResponseHeader(response, options.responseHeader);
|
||||
if (!onCancel.isCancelled) {
|
||||
const response = await sendRequest(config, options, url, body, formData, headers, onCancel);
|
||||
const responseBody = await getResponseBody(response);
|
||||
const responseHeader = getResponseHeader(response, options.responseHeader);
|
||||
|
||||
const result: ApiResult = {
|
||||
url,
|
||||
ok: response.ok,
|
||||
status: response.status,
|
||||
statusText: response.statusText,
|
||||
body: responseHeader ?? responseBody,
|
||||
};
|
||||
const result: ApiResult = {
|
||||
url,
|
||||
ok: response.ok,
|
||||
status: response.status,
|
||||
statusText: response.statusText,
|
||||
body: responseHeader ?? responseBody,
|
||||
};
|
||||
|
||||
catchErrorCodes(options, result);
|
||||
catchErrorCodes(options, result);
|
||||
|
||||
resolve(result.body);
|
||||
}
|
||||
} catch (error) {
|
||||
reject(error);
|
||||
}
|
||||
});
|
||||
resolve(result.body);
|
||||
}
|
||||
} catch (error) {
|
||||
reject(error);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -10,6 +10,7 @@ export type { AuditLogBaseModel } from './models/AuditLogBaseModel';
|
||||
export type { AuditLogResponseModel } from './models/AuditLogResponseModel';
|
||||
export type { AuditLogWithUsernameResponseModel } from './models/AuditLogWithUsernameResponseModel';
|
||||
export { AuditTypeModel } from './models/AuditTypeModel';
|
||||
export type { ChangePasswordUserRequestModel } from './models/ChangePasswordUserRequestModel';
|
||||
export type { ConsentLevelPresentationModel } from './models/ConsentLevelPresentationModel';
|
||||
export type { ContentResponseModelBaseDocumentValueModelDocumentVariantResponseModel } from './models/ContentResponseModelBaseDocumentValueModelDocumentVariantResponseModel';
|
||||
export { ContentStateModel } from './models/ContentStateModel';
|
||||
@@ -33,6 +34,8 @@ export type { CreateMediaRequestModel } from './models/CreateMediaRequestModel';
|
||||
export type { CreatePackageRequestModel } from './models/CreatePackageRequestModel';
|
||||
export type { CreateRelationTypeRequestModel } from './models/CreateRelationTypeRequestModel';
|
||||
export type { CreateTemplateRequestModel } from './models/CreateTemplateRequestModel';
|
||||
export type { CreateUserRequestModel } from './models/CreateUserRequestModel';
|
||||
export type { CreateUserResponseModel } from './models/CreateUserResponseModel';
|
||||
export type { CultureReponseModel } from './models/CultureReponseModel';
|
||||
export type { DatabaseInstallResponseModel } from './models/DatabaseInstallResponseModel';
|
||||
export type { DatabaseSettingsPresentationModel } from './models/DatabaseSettingsPresentationModel';
|
||||
@@ -46,7 +49,9 @@ export type { DictionaryItemResponseModel } from './models/DictionaryItemRespons
|
||||
export type { DictionaryItemTranslationModel } from './models/DictionaryItemTranslationModel';
|
||||
export type { DictionaryOverviewResponseModel } from './models/DictionaryOverviewResponseModel';
|
||||
export { DirectionModel } from './models/DirectionModel';
|
||||
export type { DisableUserRequestModel } from './models/DisableUserRequestModel';
|
||||
export type { DocumentBlueprintTreeItemResponseModel } from './models/DocumentBlueprintTreeItemResponseModel';
|
||||
export type { DocumentNotificationResponseModel } from './models/DocumentNotificationResponseModel';
|
||||
export type { DocumentResponseModel } from './models/DocumentResponseModel';
|
||||
export type { DocumentTreeItemResponseModel } from './models/DocumentTreeItemResponseModel';
|
||||
export type { DocumentTypePropertyTypeContainerResponseModel } from './models/DocumentTypePropertyTypeContainerResponseModel';
|
||||
@@ -59,6 +64,7 @@ export type { DocumentVariantResponseModel } from './models/DocumentVariantRespo
|
||||
export type { DomainPresentationModel } from './models/DomainPresentationModel';
|
||||
export type { DomainsPresentationModelBaseModel } from './models/DomainsPresentationModelBaseModel';
|
||||
export type { DomainsResponseModel } from './models/DomainsResponseModel';
|
||||
export type { EnableUserRequestModel } from './models/EnableUserRequestModel';
|
||||
export type { EntityTreeItemResponseModel } from './models/EntityTreeItemResponseModel';
|
||||
export type { FieldPresentationModel } from './models/FieldPresentationModel';
|
||||
export type { FileSystemTreeItemPresentationModel } from './models/FileSystemTreeItemPresentationModel';
|
||||
@@ -76,11 +82,11 @@ export type { HealthCheckResultResponseModel } from './models/HealthCheckResultR
|
||||
export type { HealthCheckWithResultPresentationModel } from './models/HealthCheckWithResultPresentationModel';
|
||||
export { HealthStatusModel } from './models/HealthStatusModel';
|
||||
export type { HelpPageResponseModel } from './models/HelpPageResponseModel';
|
||||
export type { ImportDictionaryItemsPresentationModel } from './models/ImportDictionaryItemsPresentationModel';
|
||||
export type { ImportDictionaryRequestModel } from './models/ImportDictionaryRequestModel';
|
||||
export type { IndexResponseModel } from './models/IndexResponseModel';
|
||||
export type { InstallSettingsResponseModel } from './models/InstallSettingsResponseModel';
|
||||
export type { InstallVResponseModel } from './models/InstallVResponseModel';
|
||||
export type { InviteUserRequestModel } from './models/InviteUserRequestModel';
|
||||
export type { LanguageModelBaseModel } from './models/LanguageModelBaseModel';
|
||||
export type { LanguageResponseModel } from './models/LanguageResponseModel';
|
||||
export type { LoggerResponseModel } from './models/LoggerResponseModel';
|
||||
@@ -138,6 +144,7 @@ export type { PagedSearcherResponseModel } from './models/PagedSearcherResponseM
|
||||
export type { PagedSearchResultResponseModel } from './models/PagedSearchResultResponseModel';
|
||||
export type { PagedTelemetryResponseModel } from './models/PagedTelemetryResponseModel';
|
||||
export type { PagedUserGroupPresentationModel } from './models/PagedUserGroupPresentationModel';
|
||||
export type { PagedUserResponseModel } from './models/PagedUserResponseModel';
|
||||
export type { ProblemDetailsModel } from './models/ProblemDetailsModel';
|
||||
export type { ProfilingStatusRequestModel } from './models/ProfilingStatusRequestModel';
|
||||
export type { ProfilingStatusResponseModel } from './models/ProfilingStatusResponseModel';
|
||||
@@ -161,6 +168,7 @@ export type { SaveUserGroupRequestModel } from './models/SaveUserGroupRequestMod
|
||||
export type { SearcherResponseModel } from './models/SearcherResponseModel';
|
||||
export type { SearchResultResponseModel } from './models/SearchResultResponseModel';
|
||||
export type { ServerStatusResponseModel } from './models/ServerStatusResponseModel';
|
||||
export type { SetAvatarRequestModel } from './models/SetAvatarRequestModel';
|
||||
export { StatusResultTypeModel } from './models/StatusResultTypeModel';
|
||||
export { TelemetryLevelModel } from './models/TelemetryLevelModel';
|
||||
export type { TelemetryRepresentationBaseModel } from './models/TelemetryRepresentationBaseModel';
|
||||
@@ -178,11 +186,14 @@ export type { TemplateQueryResultResponseModel } from './models/TemplateQueryRes
|
||||
export type { TemplateQuerySettingsResponseModel } from './models/TemplateQuerySettingsResponseModel';
|
||||
export type { TemplateResponseModel } from './models/TemplateResponseModel';
|
||||
export type { TemplateScaffoldResponseModel } from './models/TemplateScaffoldResponseModel';
|
||||
export type { TemporaryFileResponseModel } from './models/TemporaryFileResponseModel';
|
||||
export type { TreeItemPresentationModel } from './models/TreeItemPresentationModel';
|
||||
export type { UnlockUsersRequestModel } from './models/UnlockUsersRequestModel';
|
||||
export type { UpdateContentRequestModelBaseDocumentValueModelDocumentVariantRequestModel } from './models/UpdateContentRequestModelBaseDocumentValueModelDocumentVariantRequestModel';
|
||||
export type { UpdateContentRequestModelBaseMediaValueModelMediaVariantRequestModel } from './models/UpdateContentRequestModelBaseMediaValueModelMediaVariantRequestModel';
|
||||
export type { UpdateDataTypeRequestModel } from './models/UpdateDataTypeRequestModel';
|
||||
export type { UpdateDictionaryItemRequestModel } from './models/UpdateDictionaryItemRequestModel';
|
||||
export type { UpdateDocumentNotificationsRequestModel } from './models/UpdateDocumentNotificationsRequestModel';
|
||||
export type { UpdateDocumentRequestModel } from './models/UpdateDocumentRequestModel';
|
||||
export type { UpdateDomainsRequestModel } from './models/UpdateDomainsRequestModel';
|
||||
export type { UpdateFolderReponseModel } from './models/UpdateFolderReponseModel';
|
||||
@@ -192,12 +203,17 @@ export type { UpdatePackageRequestModel } from './models/UpdatePackageRequestMod
|
||||
export type { UpdateRelationTypeRequestModel } from './models/UpdateRelationTypeRequestModel';
|
||||
export type { UpdateTemplateRequestModel } from './models/UpdateTemplateRequestModel';
|
||||
export type { UpdateUserGroupRequestModel } from './models/UpdateUserGroupRequestModel';
|
||||
export type { UpdateUserGroupsOnUserRequestModel } from './models/UpdateUserGroupsOnUserRequestModel';
|
||||
export type { UpdateUserRequestModel } from './models/UpdateUserRequestModel';
|
||||
export type { UpgradeSettingsResponseModel } from './models/UpgradeSettingsResponseModel';
|
||||
export type { UploadDictionaryResponseModel } from './models/UploadDictionaryResponseModel';
|
||||
export type { UserGroupBaseModel } from './models/UserGroupBaseModel';
|
||||
export type { UserGroupPresentationModel } from './models/UserGroupPresentationModel';
|
||||
export type { UserInstallResponseModel } from './models/UserInstallResponseModel';
|
||||
export { UserOrderModel } from './models/UserOrderModel';
|
||||
export type { UserPresentationBaseModel } from './models/UserPresentationBaseModel';
|
||||
export type { UserResponseModel } from './models/UserResponseModel';
|
||||
export type { UserSettingsModel } from './models/UserSettingsModel';
|
||||
export { UserStateModel } from './models/UserStateModel';
|
||||
export type { ValueModelBaseModel } from './models/ValueModelBaseModel';
|
||||
export type { VariantModelBaseModel } from './models/VariantModelBaseModel';
|
||||
export type { VariantResponseModelBaseModel } from './models/VariantResponseModelBaseModel';
|
||||
@@ -237,6 +253,8 @@ export { StaticFileResource } from './services/StaticFileResource';
|
||||
export { StylesheetResource } from './services/StylesheetResource';
|
||||
export { TelemetryResource } from './services/TelemetryResource';
|
||||
export { TemplateResource } from './services/TemplateResource';
|
||||
export { TemporaryFileResource } from './services/TemporaryFileResource';
|
||||
export { TrackedReferenceResource } from './services/TrackedReferenceResource';
|
||||
export { UpgradeResource } from './services/UpgradeResource';
|
||||
export { UserGroupsResource } from './services/UserGroupsResource';
|
||||
export { UsersResource } from './services/UsersResource';
|
||||
|
||||
@@ -5,11 +5,12 @@
|
||||
import type { AuditTypeModel } from './AuditTypeModel';
|
||||
|
||||
export type AuditLogBaseModel = {
|
||||
userKey?: string;
|
||||
entityKey?: string | null;
|
||||
userId?: string;
|
||||
entityId?: string | null;
|
||||
timestamp?: string;
|
||||
logType?: AuditTypeModel;
|
||||
entityType?: string | null;
|
||||
comment?: string | null;
|
||||
parameters?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
import type { AuditLogBaseModel } from './AuditLogBaseModel';
|
||||
|
||||
export type AuditLogResponseModel = AuditLogBaseModel;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
import type { AuditLogBaseModel } from './AuditLogBaseModel';
|
||||
|
||||
export type AuditLogWithUsernameResponseModel = (AuditLogBaseModel & {
|
||||
userName?: string | null;
|
||||
userAvatars?: Array<string> | null;
|
||||
userName?: string | null;
|
||||
userAvatars?: Array<string> | null;
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type ChangePasswordUserRequestModel = {
|
||||
newPassword?: string;
|
||||
oldPassword?: string | null;
|
||||
};
|
||||
|
||||
@@ -8,3 +8,4 @@ export type ConsentLevelPresentationModel = {
|
||||
level?: TelemetryLevelModel;
|
||||
description?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ import type { DocumentVariantResponseModel } from './DocumentVariantResponseMode
|
||||
export type ContentResponseModelBaseDocumentValueModelDocumentVariantResponseModel = {
|
||||
values?: Array<DocumentValueModel>;
|
||||
variants?: Array<DocumentVariantResponseModel>;
|
||||
key?: string;
|
||||
contentTypeKey?: string;
|
||||
id?: string;
|
||||
contentTypeId?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
import type { EntityTreeItemResponseModel } from './EntityTreeItemResponseModel';
|
||||
|
||||
export type ContentTreeItemResponseModel = (EntityTreeItemResponseModel & {
|
||||
$type: string;
|
||||
noAccess?: boolean;
|
||||
isTrashed?: boolean;
|
||||
$type: string;
|
||||
noAccess?: boolean;
|
||||
isTrashed?: boolean;
|
||||
});
|
||||
|
||||
|
||||
@@ -7,3 +7,4 @@ export type ContentTypeCleanupModel = {
|
||||
keepAllVersionsNewerThanDays?: number | null;
|
||||
keepLatestVersionPerDayForDays?: number | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
import type { ContentTypeCompositionTypeModel } from './ContentTypeCompositionTypeModel';
|
||||
|
||||
export type ContentTypeCompositionModel = {
|
||||
key?: string;
|
||||
id?: string;
|
||||
compositionType?: ContentTypeCompositionTypeModel;
|
||||
};
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { DocumentTypePropertyTypeContainerResponseModel } from './DocumentT
|
||||
import type { DocumentTypePropertyTypeResponseModel } from './DocumentTypePropertyTypeResponseModel';
|
||||
|
||||
export type ContentTypeResponseModelBaseDocumentTypePropertyTypeResponseModelDocumentTypePropertyTypeContainerResponseModel = {
|
||||
key?: string;
|
||||
id?: string;
|
||||
alias?: string;
|
||||
name?: string;
|
||||
description?: string | null;
|
||||
@@ -22,3 +22,4 @@ export type ContentTypeResponseModelBaseDocumentTypePropertyTypeResponseModelDoc
|
||||
allowedContentTypes?: Array<ContentTypeSortModel>;
|
||||
compositions?: Array<ContentTypeCompositionModel>;
|
||||
};
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { MediaTypePropertyTypeContainerResponseModel } from './MediaTypePro
|
||||
import type { MediaTypePropertyTypeResponseModel } from './MediaTypePropertyTypeResponseModel';
|
||||
|
||||
export type ContentTypeResponseModelBaseMediaTypePropertyTypeResponseModelMediaTypePropertyTypeContainerResponseModel = {
|
||||
key?: string;
|
||||
id?: string;
|
||||
alias?: string;
|
||||
name?: string;
|
||||
description?: string | null;
|
||||
@@ -22,3 +22,4 @@ export type ContentTypeResponseModelBaseMediaTypePropertyTypeResponseModelMediaT
|
||||
allowedContentTypes?: Array<ContentTypeSortModel>;
|
||||
compositions?: Array<ContentTypeCompositionModel>;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type ContentTypeSortModel = {
|
||||
key?: string;
|
||||
id?: string;
|
||||
sortOrder?: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,3 +6,4 @@ export type ContentUrlInfoModel = {
|
||||
culture?: string | null;
|
||||
url?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type CopyDataTypeRequestModel = {
|
||||
targetKey?: string | null;
|
||||
targetId?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -8,5 +8,6 @@ import type { DocumentVariantRequestModel } from './DocumentVariantRequestModel'
|
||||
export type CreateContentRequestModelBaseDocumentValueModelDocumentVariantRequestModel = {
|
||||
values?: Array<DocumentValueModel>;
|
||||
variants?: Array<DocumentVariantRequestModel>;
|
||||
parentKey?: string | null;
|
||||
parentId?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -8,5 +8,6 @@ import type { MediaVariantRequestModel } from './MediaVariantRequestModel';
|
||||
export type CreateContentRequestModelBaseMediaValueModelMediaVariantRequestModel = {
|
||||
values?: Array<MediaValueModel>;
|
||||
variants?: Array<MediaVariantRequestModel>;
|
||||
parentKey?: string | null;
|
||||
parentId?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,5 +5,7 @@
|
||||
import type { DataTypeModelBaseModel } from './DataTypeModelBaseModel';
|
||||
|
||||
export type CreateDataTypeRequestModel = (DataTypeModelBaseModel & {
|
||||
parentKey?: string | null;
|
||||
id?: string | null;
|
||||
parentId?: string | null;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
import type { DictionaryItemModelBaseModel } from './DictionaryItemModelBaseModel';
|
||||
|
||||
export type CreateDictionaryItemRequestModel = (DictionaryItemModelBaseModel & {
|
||||
parentKey?: string | null;
|
||||
parentId?: string | null;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
import type { CreateContentRequestModelBaseDocumentValueModelDocumentVariantRequestModel } from './CreateContentRequestModelBaseDocumentValueModelDocumentVariantRequestModel';
|
||||
|
||||
export type CreateDocumentRequestModel = (CreateContentRequestModelBaseDocumentValueModelDocumentVariantRequestModel & {
|
||||
contentTypeKey?: string;
|
||||
templateKey?: string | null;
|
||||
contentTypeId?: string;
|
||||
templateId?: string | null;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,5 +5,7 @@
|
||||
import type { FolderModelBaseModel } from './FolderModelBaseModel';
|
||||
|
||||
export type CreateFolderRequestModel = (FolderModelBaseModel & {
|
||||
parentKey?: string | null;
|
||||
id?: string | null;
|
||||
parentId?: string | null;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
import type { LanguageModelBaseModel } from './LanguageModelBaseModel';
|
||||
|
||||
export type CreateLanguageRequestModel = (LanguageModelBaseModel & {
|
||||
isoCode?: string;
|
||||
isoCode?: string;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
import type { CreateContentRequestModelBaseMediaValueModelMediaVariantRequestModel } from './CreateContentRequestModelBaseMediaValueModelMediaVariantRequestModel';
|
||||
|
||||
export type CreateMediaRequestModel = (CreateContentRequestModelBaseMediaValueModelMediaVariantRequestModel & {
|
||||
contentTypeKey?: string;
|
||||
contentTypeId?: string;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
import type { PackageModelBaseModel } from './PackageModelBaseModel';
|
||||
|
||||
export type CreatePackageRequestModel = PackageModelBaseModel;
|
||||
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
import type { RelationTypeBaseModel } from './RelationTypeBaseModel';
|
||||
|
||||
export type CreateRelationTypeRequestModel = (RelationTypeBaseModel & {
|
||||
key?: string | null;
|
||||
id?: string | null;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
import type { TemplateModelBaseModel } from './TemplateModelBaseModel';
|
||||
|
||||
export type CreateTemplateRequestModel = TemplateModelBaseModel;
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { UserPresentationBaseModel } from './UserPresentationBaseModel';
|
||||
|
||||
export type CreateUserRequestModel = UserPresentationBaseModel;
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type CreateUserResponseModel = {
|
||||
userId?: string;
|
||||
initialPassword?: string | null;
|
||||
};
|
||||
|
||||
@@ -6,3 +6,4 @@ export type CultureReponseModel = {
|
||||
name?: string;
|
||||
englishName?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -10,3 +10,4 @@ export type DataTypeModelBaseModel = {
|
||||
propertyEditorUiAlias?: string | null;
|
||||
values?: Array<DataTypePropertyPresentationModel>;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,3 +6,4 @@ export type DataTypePropertyPresentationModel = {
|
||||
alias?: string;
|
||||
value?: any;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,3 +6,4 @@ export type DataTypePropertyReferenceModel = {
|
||||
name?: string;
|
||||
alias?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
import type { DataTypePropertyReferenceModel } from './DataTypePropertyReferenceModel';
|
||||
|
||||
export type DataTypeReferenceResponseModel = {
|
||||
key?: string;
|
||||
id?: string;
|
||||
type?: string;
|
||||
properties?: Array<DataTypePropertyReferenceModel>;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
import type { DataTypeModelBaseModel } from './DataTypeModelBaseModel';
|
||||
|
||||
export type DataTypeResponseModel = (DataTypeModelBaseModel & {
|
||||
$type: string;
|
||||
key?: string;
|
||||
parentKey?: string | null;
|
||||
$type: string;
|
||||
id?: string;
|
||||
parentId?: string | null;
|
||||
});
|
||||
|
||||
|
||||
@@ -12,3 +12,4 @@ export type DatabaseInstallResponseModel = {
|
||||
useIntegratedAuthentication?: boolean;
|
||||
connectionString?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -15,3 +15,4 @@ export type DatabaseSettingsPresentationModel = {
|
||||
supportsIntegratedAuthentication?: boolean;
|
||||
requiresConnectionTest?: boolean;
|
||||
};
|
||||
|
||||
|
||||
@@ -8,3 +8,4 @@ export type DictionaryItemModelBaseModel = {
|
||||
name?: string;
|
||||
translations?: Array<DictionaryItemTranslationModel>;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
import type { DictionaryItemModelBaseModel } from './DictionaryItemModelBaseModel';
|
||||
|
||||
export type DictionaryItemResponseModel = (DictionaryItemModelBaseModel & {
|
||||
$type: string;
|
||||
key?: string;
|
||||
$type: string;
|
||||
id?: string;
|
||||
});
|
||||
|
||||
|
||||
@@ -6,3 +6,4 @@ export type DictionaryItemTranslationModel = {
|
||||
isoCode?: string;
|
||||
translation?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
|
||||
export type DictionaryOverviewResponseModel = {
|
||||
name?: string | null;
|
||||
key?: string;
|
||||
parentKey?: string | null;
|
||||
id?: string;
|
||||
parentId?: string | null;
|
||||
translatedIsoCodes?: Array<string>;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type DisableUserRequestModel = {
|
||||
userIds?: Array<string>;
|
||||
};
|
||||
|
||||
@@ -5,8 +5,9 @@
|
||||
import type { EntityTreeItemResponseModel } from './EntityTreeItemResponseModel';
|
||||
|
||||
export type DocumentBlueprintTreeItemResponseModel = (EntityTreeItemResponseModel & {
|
||||
$type: string;
|
||||
documentTypeKey?: string;
|
||||
documentTypeAlias?: string;
|
||||
documentTypeName?: string | null;
|
||||
$type: string;
|
||||
documentTypeId?: string;
|
||||
documentTypeAlias?: string;
|
||||
documentTypeName?: string | null;
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type DocumentNotificationResponseModel = {
|
||||
actionId?: string;
|
||||
subscribed?: boolean;
|
||||
};
|
||||
|
||||
@@ -6,6 +6,7 @@ import type { ContentResponseModelBaseDocumentValueModelDocumentVariantResponseM
|
||||
import type { ContentUrlInfoModel } from './ContentUrlInfoModel';
|
||||
|
||||
export type DocumentResponseModel = (ContentResponseModelBaseDocumentValueModelDocumentVariantResponseModel & {
|
||||
urls?: Array<ContentUrlInfoModel>;
|
||||
templateKey?: string | null;
|
||||
urls?: Array<ContentUrlInfoModel>;
|
||||
templateId?: string | null;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,8 +5,9 @@
|
||||
import type { ContentTreeItemResponseModel } from './ContentTreeItemResponseModel';
|
||||
|
||||
export type DocumentTreeItemResponseModel = (ContentTreeItemResponseModel & {
|
||||
$type: string;
|
||||
isProtected?: boolean;
|
||||
isPublished?: boolean;
|
||||
isEdited?: boolean;
|
||||
$type: string;
|
||||
isProtected?: boolean;
|
||||
isPublished?: boolean;
|
||||
isEdited?: boolean;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
import type { PropertyTypeContainerResponseModelBaseModel } from './PropertyTypeContainerResponseModelBaseModel';
|
||||
|
||||
export type DocumentTypePropertyTypeContainerResponseModel = PropertyTypeContainerResponseModelBaseModel;
|
||||
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
import type { PropertyTypeResponseModelBaseModel } from './PropertyTypeResponseModelBaseModel';
|
||||
|
||||
export type DocumentTypePropertyTypeResponseModel = PropertyTypeResponseModelBaseModel;
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ import type { ContentTypeCleanupModel } from './ContentTypeCleanupModel';
|
||||
import type { ContentTypeResponseModelBaseDocumentTypePropertyTypeResponseModelDocumentTypePropertyTypeContainerResponseModel } from './ContentTypeResponseModelBaseDocumentTypePropertyTypeResponseModelDocumentTypePropertyTypeContainerResponseModel';
|
||||
|
||||
export type DocumentTypeResponseModel = (ContentTypeResponseModelBaseDocumentTypePropertyTypeResponseModelDocumentTypePropertyTypeContainerResponseModel & {
|
||||
allowedTemplateKeys?: Array<string>;
|
||||
defaultTemplateKey?: string | null;
|
||||
cleanup?: ContentTypeCleanupModel;
|
||||
allowedTemplateIds?: Array<string>;
|
||||
defaultTemplateId?: string | null;
|
||||
cleanup?: ContentTypeCleanupModel;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
import type { FolderTreeItemResponseModel } from './FolderTreeItemResponseModel';
|
||||
|
||||
export type DocumentTypeTreeItemResponseModel = (FolderTreeItemResponseModel & {
|
||||
$type: string;
|
||||
isElement?: boolean;
|
||||
$type: string;
|
||||
isElement?: boolean;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
import type { ValueModelBaseModel } from './ValueModelBaseModel';
|
||||
|
||||
export type DocumentValueModel = (ValueModelBaseModel & {
|
||||
$type: string;
|
||||
$type: string;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
import type { VariantModelBaseModel } from './VariantModelBaseModel';
|
||||
|
||||
export type DocumentVariantRequestModel = (VariantModelBaseModel & {
|
||||
$type: string;
|
||||
$type: string;
|
||||
});
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ import type { ContentStateModel } from './ContentStateModel';
|
||||
import type { VariantResponseModelBaseModel } from './VariantResponseModelBaseModel';
|
||||
|
||||
export type DocumentVariantResponseModel = (VariantResponseModelBaseModel & {
|
||||
$type: string;
|
||||
state?: ContentStateModel;
|
||||
publishDate?: string | null;
|
||||
$type: string;
|
||||
state?: ContentStateModel;
|
||||
publishDate?: string | null;
|
||||
});
|
||||
|
||||
|
||||
@@ -6,3 +6,4 @@ export type DomainPresentationModel = {
|
||||
domainName?: string;
|
||||
isoCode?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -8,3 +8,4 @@ export type DomainsPresentationModelBaseModel = {
|
||||
defaultIsoCode?: string | null;
|
||||
domains?: Array<DomainPresentationModel>;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
import type { DomainsPresentationModelBaseModel } from './DomainsPresentationModelBaseModel';
|
||||
|
||||
export type DomainsResponseModel = DomainsPresentationModelBaseModel;
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type EnableUserRequestModel = {
|
||||
userIds?: Array<string>;
|
||||
};
|
||||
|
||||
@@ -5,8 +5,9 @@
|
||||
import type { TreeItemPresentationModel } from './TreeItemPresentationModel';
|
||||
|
||||
export type EntityTreeItemResponseModel = (TreeItemPresentationModel & {
|
||||
$type: string;
|
||||
key?: string;
|
||||
isContainer?: boolean;
|
||||
parentKey?: string | null;
|
||||
$type: string;
|
||||
id?: string;
|
||||
isContainer?: boolean;
|
||||
parentId?: string | null;
|
||||
});
|
||||
|
||||
|
||||
@@ -6,3 +6,4 @@ export type FieldPresentationModel = {
|
||||
name?: string;
|
||||
values?: Array<string>;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
import type { TreeItemPresentationModel } from './TreeItemPresentationModel';
|
||||
|
||||
export type FileSystemTreeItemPresentationModel = (TreeItemPresentationModel & {
|
||||
path?: string;
|
||||
isFolder?: boolean;
|
||||
path?: string;
|
||||
isFolder?: boolean;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
export type FolderModelBaseModel = {
|
||||
name?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
import type { FolderModelBaseModel } from './FolderModelBaseModel';
|
||||
|
||||
export type FolderReponseModel = (FolderModelBaseModel & {
|
||||
$type: string;
|
||||
key?: string;
|
||||
parentKey?: string | null;
|
||||
$type: string;
|
||||
id?: string;
|
||||
parentId?: string | null;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
import type { EntityTreeItemResponseModel } from './EntityTreeItemResponseModel';
|
||||
|
||||
export type FolderTreeItemResponseModel = (EntityTreeItemResponseModel & {
|
||||
$type: string;
|
||||
isFolder?: boolean;
|
||||
$type: string;
|
||||
isFolder?: boolean;
|
||||
});
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type HealthCheckActionRequestModel = {
|
||||
healthCheckKey?: string;
|
||||
healthCheckId?: string;
|
||||
alias?: string | null;
|
||||
name?: string | null;
|
||||
description?: string | null;
|
||||
@@ -12,3 +12,4 @@ export type HealthCheckActionRequestModel = {
|
||||
providedValueValidation?: string | null;
|
||||
providedValueValidationRegex?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
export type HealthCheckGroupPresentationBaseModel = {
|
||||
name?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,5 +6,6 @@ import type { HealthCheckGroupPresentationBaseModel } from './HealthCheckGroupPr
|
||||
import type { HealthCheckModel } from './HealthCheckModel';
|
||||
|
||||
export type HealthCheckGroupPresentationModel = (HealthCheckGroupPresentationBaseModel & {
|
||||
checks?: Array<HealthCheckModel>;
|
||||
checks?: Array<HealthCheckModel>;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
import type { HealthCheckGroupPresentationBaseModel } from './HealthCheckGroupPresentationBaseModel';
|
||||
|
||||
export type HealthCheckGroupResponseModel = HealthCheckGroupPresentationBaseModel;
|
||||
|
||||
|
||||
@@ -7,3 +7,4 @@ import type { HealthCheckWithResultPresentationModel } from './HealthCheckWithRe
|
||||
export type HealthCheckGroupWithResultResponseModel = {
|
||||
checks?: Array<HealthCheckWithResultPresentationModel>;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
import type { HealthCheckModelBaseModel } from './HealthCheckModelBaseModel';
|
||||
|
||||
export type HealthCheckModel = (HealthCheckModelBaseModel & {
|
||||
name?: string;
|
||||
description?: string | null;
|
||||
name?: string;
|
||||
description?: string | null;
|
||||
});
|
||||
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type HealthCheckModelBaseModel = {
|
||||
key?: string;
|
||||
id?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -11,3 +11,4 @@ export type HealthCheckResultResponseModel = {
|
||||
actions?: Array<HealthCheckActionRequestModel> | null;
|
||||
readMoreLink?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,5 +6,6 @@ import type { HealthCheckModelBaseModel } from './HealthCheckModelBaseModel';
|
||||
import type { HealthCheckResultResponseModel } from './HealthCheckResultResponseModel';
|
||||
|
||||
export type HealthCheckWithResultPresentationModel = (HealthCheckModelBaseModel & {
|
||||
results?: Array<HealthCheckResultResponseModel> | null;
|
||||
results?: Array<HealthCheckResultResponseModel> | null;
|
||||
});
|
||||
|
||||
|
||||
@@ -8,3 +8,4 @@ export type HelpPageResponseModel = {
|
||||
url?: string | null;
|
||||
type?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type ImportDictionaryItemsPresentationModel = {
|
||||
key?: string;
|
||||
name?: string | null;
|
||||
parentKey?: string | null;
|
||||
};
|
||||
@@ -3,6 +3,7 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type ImportDictionaryRequestModel = {
|
||||
fileName?: string;
|
||||
parentKey?: string | null;
|
||||
temporaryFileId?: string;
|
||||
parentId?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -13,3 +13,4 @@ export type IndexResponseModel = {
|
||||
fieldCount: number;
|
||||
providerProperties?: Record<string, any> | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -9,3 +9,4 @@ export type InstallSettingsResponseModel = {
|
||||
user?: UserSettingsModel;
|
||||
databases?: Array<DatabaseSettingsPresentationModel>;
|
||||
};
|
||||
|
||||
|
||||
@@ -11,3 +11,4 @@ export type InstallVResponseModel = {
|
||||
database: DatabaseInstallResponseModel;
|
||||
telemetryLevel?: TelemetryLevelModel;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { CreateUserRequestModel } from './CreateUserRequestModel';
|
||||
|
||||
export type InviteUserRequestModel = (CreateUserRequestModel & {
|
||||
message?: string | null;
|
||||
});
|
||||
|
||||
@@ -8,3 +8,4 @@ export type LanguageModelBaseModel = {
|
||||
isMandatory?: boolean;
|
||||
fallbackIsoCode?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
import type { LanguageModelBaseModel } from './LanguageModelBaseModel';
|
||||
|
||||
export type LanguageResponseModel = (LanguageModelBaseModel & {
|
||||
isoCode?: string;
|
||||
isoCode?: string;
|
||||
});
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type LogLevelCountsReponseModel = {
|
||||
information?: number;
|
||||
debug?: number;
|
||||
warning?: number;
|
||||
error?: number;
|
||||
fatal?: number;
|
||||
information?: number;
|
||||
debug?: number;
|
||||
warning?: number;
|
||||
error?: number;
|
||||
fatal?: number;
|
||||
};
|
||||
|
||||
@@ -6,3 +6,4 @@ export type LogMessagePropertyPresentationModel = {
|
||||
name?: string;
|
||||
value?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -13,3 +13,4 @@ export type LogMessageResponseModel = {
|
||||
properties?: Array<LogMessagePropertyPresentationModel>;
|
||||
exception?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,3 +6,4 @@ export type LogTemplateResponseModel = {
|
||||
messageTemplate?: string | null;
|
||||
count?: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -8,3 +8,4 @@ export type LoggerResponseModel = {
|
||||
name?: string;
|
||||
level?: LogLevelModel;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
import type { PropertyTypeContainerResponseModelBaseModel } from './PropertyTypeContainerResponseModelBaseModel';
|
||||
|
||||
export type MediaTypePropertyTypeContainerResponseModel = PropertyTypeContainerResponseModelBaseModel;
|
||||
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
import type { PropertyTypeResponseModelBaseModel } from './PropertyTypeResponseModelBaseModel';
|
||||
|
||||
export type MediaTypePropertyTypeResponseModel = PropertyTypeResponseModelBaseModel;
|
||||
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
import type { ContentTypeResponseModelBaseMediaTypePropertyTypeResponseModelMediaTypePropertyTypeContainerResponseModel } from './ContentTypeResponseModelBaseMediaTypePropertyTypeResponseModelMediaTypePropertyTypeContainerResponseModel';
|
||||
|
||||
export type MediaTypeResponseModel = ContentTypeResponseModelBaseMediaTypePropertyTypeResponseModelMediaTypePropertyTypeContainerResponseModel;
|
||||
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
import type { ValueModelBaseModel } from './ValueModelBaseModel';
|
||||
|
||||
export type MediaValueModel = (ValueModelBaseModel & {
|
||||
$type: string;
|
||||
$type: string;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
import type { VariantModelBaseModel } from './VariantModelBaseModel';
|
||||
|
||||
export type MediaVariantRequestModel = (VariantModelBaseModel & {
|
||||
$type: string;
|
||||
$type: string;
|
||||
});
|
||||
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
import type { VariantResponseModelBaseModel } from './VariantResponseModelBaseModel';
|
||||
|
||||
export type MediaVariantResponseModel = (VariantResponseModelBaseModel & {
|
||||
$type: string;
|
||||
$type: string;
|
||||
});
|
||||
|
||||
|
||||
@@ -13,3 +13,4 @@ export type ModelsBuilderResponseModel = {
|
||||
modelsNamespace?: string | null;
|
||||
trackingOutOfDateModels?: boolean;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type MoveDataTypeRequestModel = {
|
||||
targetKey?: string | null;
|
||||
targetId?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
/* eslint-disable */
|
||||
|
||||
export type MoveDictionaryRequestModel = {
|
||||
targetKey?: string | null;
|
||||
targetId?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,3 +6,4 @@ export type ObjectTypeResponseModel = {
|
||||
name?: string | null;
|
||||
id?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
export type OkResultModel = {
|
||||
statusCode?: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -7,3 +7,4 @@ import type { OutOfDateTypeModel } from './OutOfDateTypeModel';
|
||||
export type OutOfDateStatusResponseModel = {
|
||||
status?: OutOfDateTypeModel;
|
||||
};
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user