generate new schema
This commit is contained in:
164
src/Umbraco.Web.UI.Client/package-lock.json
generated
164
src/Umbraco.Web.UI.Client/package-lock.json
generated
@@ -57,6 +57,7 @@
|
||||
"lit-html": "^2.4.0",
|
||||
"msw": "^0.47.4",
|
||||
"msw-storybook-addon": "^1.6.3",
|
||||
"openapi-typescript-codegen": "^0.23.0",
|
||||
"playwright-msw": "^1.0.2",
|
||||
"plop": "^3.1.1",
|
||||
"prettier": "2.7.1",
|
||||
@@ -85,6 +86,36 @@
|
||||
"node": ">=6.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@apidevtools/json-schema-ref-parser": {
|
||||
"version": "9.0.9",
|
||||
"resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.9.tgz",
|
||||
"integrity": "sha512-GBD2Le9w2+lVFoc4vswGI/TjkNIZSVp7+9xPf+X3uidBfWnAeUWmquteSyt0+VCrhNMWj/FTABISQrD3Z/YA+w==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@jsdevtools/ono": "^7.1.3",
|
||||
"@types/json-schema": "^7.0.6",
|
||||
"call-me-maybe": "^1.0.1",
|
||||
"js-yaml": "^4.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@apidevtools/json-schema-ref-parser/node_modules/argparse": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
||||
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml": {
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
|
||||
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"argparse": "^2.0.1"
|
||||
},
|
||||
"bin": {
|
||||
"js-yaml": "bin/js-yaml.js"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/code-frame": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz",
|
||||
@@ -2504,6 +2535,12 @@
|
||||
"@jridgewell/sourcemap-codec": "^1.4.10"
|
||||
}
|
||||
},
|
||||
"node_modules/@jsdevtools/ono": {
|
||||
"version": "7.1.3",
|
||||
"resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz",
|
||||
"integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@lit/reactive-element": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-1.4.1.tgz",
|
||||
@@ -17108,6 +17145,18 @@
|
||||
"integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/json-schema-ref-parser": {
|
||||
"version": "9.0.9",
|
||||
"resolved": "https://registry.npmjs.org/json-schema-ref-parser/-/json-schema-ref-parser-9.0.9.tgz",
|
||||
"integrity": "sha512-qcP2lmGy+JUoQJ4DOQeLaZDqH9qSkeGCK3suKWxJXS82dg728Mn3j97azDMaOUmJAN4uCq91LdPx4K7E8F1a7Q==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@apidevtools/json-schema-ref-parser": "9.0.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/json-schema-traverse": {
|
||||
"version": "0.4.1",
|
||||
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
|
||||
@@ -20390,6 +20439,45 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/openapi-typescript-codegen": {
|
||||
"version": "0.23.0",
|
||||
"resolved": "https://registry.npmjs.org/openapi-typescript-codegen/-/openapi-typescript-codegen-0.23.0.tgz",
|
||||
"integrity": "sha512-gOJXy5g3H3HlLpVNN+USrNK2i2KYBmDczk9Xk34u6JorwrGiDJZUj+al4S+i9TXdfUQ/ZaLxE59Xf3wqkxGfqA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"camelcase": "^6.3.0",
|
||||
"commander": "^9.3.0",
|
||||
"fs-extra": "^10.1.0",
|
||||
"handlebars": "^4.7.7",
|
||||
"json-schema-ref-parser": "^9.0.9"
|
||||
},
|
||||
"bin": {
|
||||
"openapi": "bin/index.js"
|
||||
}
|
||||
},
|
||||
"node_modules/openapi-typescript-codegen/node_modules/commander": {
|
||||
"version": "9.4.1",
|
||||
"resolved": "https://registry.npmjs.org/commander/-/commander-9.4.1.tgz",
|
||||
"integrity": "sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": "^12.20.0 || >=14"
|
||||
}
|
||||
},
|
||||
"node_modules/openapi-typescript-codegen/node_modules/fs-extra": {
|
||||
"version": "10.1.0",
|
||||
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
|
||||
"integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"graceful-fs": "^4.2.0",
|
||||
"jsonfile": "^6.0.1",
|
||||
"universalify": "^2.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/openapi-typescript-fetch": {
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-1.1.3.tgz",
|
||||
@@ -28587,6 +28675,35 @@
|
||||
"@jridgewell/trace-mapping": "^0.3.9"
|
||||
}
|
||||
},
|
||||
"@apidevtools/json-schema-ref-parser": {
|
||||
"version": "9.0.9",
|
||||
"resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.9.tgz",
|
||||
"integrity": "sha512-GBD2Le9w2+lVFoc4vswGI/TjkNIZSVp7+9xPf+X3uidBfWnAeUWmquteSyt0+VCrhNMWj/FTABISQrD3Z/YA+w==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@jsdevtools/ono": "^7.1.3",
|
||||
"@types/json-schema": "^7.0.6",
|
||||
"call-me-maybe": "^1.0.1",
|
||||
"js-yaml": "^4.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"argparse": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
||||
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
||||
"dev": true
|
||||
},
|
||||
"js-yaml": {
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
|
||||
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"argparse": "^2.0.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@babel/code-frame": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz",
|
||||
@@ -30286,6 +30403,12 @@
|
||||
"@jridgewell/sourcemap-codec": "^1.4.10"
|
||||
}
|
||||
},
|
||||
"@jsdevtools/ono": {
|
||||
"version": "7.1.3",
|
||||
"resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz",
|
||||
"integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==",
|
||||
"dev": true
|
||||
},
|
||||
"@lit/reactive-element": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-1.4.1.tgz",
|
||||
@@ -41517,6 +41640,15 @@
|
||||
"integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
|
||||
"dev": true
|
||||
},
|
||||
"json-schema-ref-parser": {
|
||||
"version": "9.0.9",
|
||||
"resolved": "https://registry.npmjs.org/json-schema-ref-parser/-/json-schema-ref-parser-9.0.9.tgz",
|
||||
"integrity": "sha512-qcP2lmGy+JUoQJ4DOQeLaZDqH9qSkeGCK3suKWxJXS82dg728Mn3j97azDMaOUmJAN4uCq91LdPx4K7E8F1a7Q==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@apidevtools/json-schema-ref-parser": "9.0.9"
|
||||
}
|
||||
},
|
||||
"json-schema-traverse": {
|
||||
"version": "0.4.1",
|
||||
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
|
||||
@@ -43997,6 +44129,38 @@
|
||||
"is-wsl": "^2.2.0"
|
||||
}
|
||||
},
|
||||
"openapi-typescript-codegen": {
|
||||
"version": "0.23.0",
|
||||
"resolved": "https://registry.npmjs.org/openapi-typescript-codegen/-/openapi-typescript-codegen-0.23.0.tgz",
|
||||
"integrity": "sha512-gOJXy5g3H3HlLpVNN+USrNK2i2KYBmDczk9Xk34u6JorwrGiDJZUj+al4S+i9TXdfUQ/ZaLxE59Xf3wqkxGfqA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"camelcase": "^6.3.0",
|
||||
"commander": "^9.3.0",
|
||||
"fs-extra": "^10.1.0",
|
||||
"handlebars": "^4.7.7",
|
||||
"json-schema-ref-parser": "^9.0.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"commander": {
|
||||
"version": "9.4.1",
|
||||
"resolved": "https://registry.npmjs.org/commander/-/commander-9.4.1.tgz",
|
||||
"integrity": "sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==",
|
||||
"dev": true
|
||||
},
|
||||
"fs-extra": {
|
||||
"version": "10.1.0",
|
||||
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
|
||||
"integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"graceful-fs": "^4.2.0",
|
||||
"jsonfile": "^6.0.1",
|
||||
"universalify": "^2.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi-typescript-fetch": {
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-1.1.3.tgz",
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
"lint:fix": "npm run lint -- --fix",
|
||||
"format": "prettier 'src/**/*.ts'",
|
||||
"format:fix": "npm run format -- --write",
|
||||
"generate:api": "npx openapi-typescript schemas/**/*.yml --output schemas/generated-schema.ts",
|
||||
"generate:api": "openapi --input https://raw.githubusercontent.com/umbraco/Umbraco-CMS/v11/dev/src/Umbraco.Cms.ManagementApi/OpenApi.json --output src/core/backend-api --postfix Resource --useOptions",
|
||||
"storybook": "npm run wc-analyze && start-storybook -p 6006",
|
||||
"build-storybook": "npm run wc-analyze && build-storybook",
|
||||
"generate:icons": "node ./devops/icons/index.mjs",
|
||||
@@ -88,6 +88,7 @@
|
||||
"lit-html": "^2.4.0",
|
||||
"msw": "^0.47.4",
|
||||
"msw-storybook-addon": "^1.6.3",
|
||||
"openapi-typescript-codegen": "^0.23.0",
|
||||
"playwright-msw": "^1.0.2",
|
||||
"plop": "^3.1.1",
|
||||
"prettier": "2.7.1",
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
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;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ApiRequestOptions = {
|
||||
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
|
||||
readonly url: string;
|
||||
readonly path?: Record<string, any>;
|
||||
readonly cookies?: Record<string, any>;
|
||||
readonly headers?: Record<string, any>;
|
||||
readonly query?: Record<string, any>;
|
||||
readonly formData?: Record<string, any>;
|
||||
readonly body?: any;
|
||||
readonly mediaType?: string;
|
||||
readonly responseHeader?: string;
|
||||
readonly errors?: Record<number, string>;
|
||||
};
|
||||
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ApiResult = {
|
||||
readonly url: string;
|
||||
readonly ok: boolean;
|
||||
readonly status: number;
|
||||
readonly statusText: string;
|
||||
readonly body: any;
|
||||
};
|
||||
@@ -0,0 +1,128 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export class CancelError extends Error {
|
||||
|
||||
constructor(message: string) {
|
||||
super(message);
|
||||
this.name = 'CancelError';
|
||||
}
|
||||
|
||||
public get isCancelled(): boolean {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
export interface OnCancel {
|
||||
readonly isResolved: boolean;
|
||||
readonly isRejected: boolean;
|
||||
readonly isCancelled: boolean;
|
||||
|
||||
(cancelHandler: () => void): void;
|
||||
}
|
||||
|
||||
export class CancelablePromise<T> implements Promise<T> {
|
||||
readonly [Symbol.toStringTag]!: string;
|
||||
|
||||
private _isResolved: boolean;
|
||||
private _isRejected: boolean;
|
||||
private _isCancelled: boolean;
|
||||
private readonly _cancelHandlers: (() => void)[];
|
||||
private readonly _promise: Promise<T>;
|
||||
private _resolve?: (value: T | PromiseLike<T>) => void;
|
||||
private _reject?: (reason?: any) => void;
|
||||
|
||||
constructor(
|
||||
executor: (
|
||||
resolve: (value: T | PromiseLike<T>) => void,
|
||||
reject: (reason?: any) => void,
|
||||
onCancel: OnCancel
|
||||
) => void
|
||||
) {
|
||||
this._isResolved = false;
|
||||
this._isRejected = false;
|
||||
this._isCancelled = false;
|
||||
this._cancelHandlers = [];
|
||||
this._promise = new Promise<T>((resolve, reject) => {
|
||||
this._resolve = resolve;
|
||||
this._reject = reject;
|
||||
|
||||
const onResolve = (value: T | PromiseLike<T>): void => {
|
||||
if (this._isResolved || this._isRejected || this._isCancelled) {
|
||||
return;
|
||||
}
|
||||
this._isResolved = true;
|
||||
this._resolve?.(value);
|
||||
};
|
||||
|
||||
const onReject = (reason?: any): void => {
|
||||
if (this._isResolved || this._isRejected || this._isCancelled) {
|
||||
return;
|
||||
}
|
||||
this._isRejected = true;
|
||||
this._reject?.(reason);
|
||||
};
|
||||
|
||||
const onCancel = (cancelHandler: () => void): void => {
|
||||
if (this._isResolved || this._isRejected || this._isCancelled) {
|
||||
return;
|
||||
}
|
||||
this._cancelHandlers.push(cancelHandler);
|
||||
};
|
||||
|
||||
Object.defineProperty(onCancel, 'isResolved', {
|
||||
get: (): boolean => this._isResolved,
|
||||
});
|
||||
|
||||
Object.defineProperty(onCancel, 'isRejected', {
|
||||
get: (): boolean => this._isRejected,
|
||||
});
|
||||
|
||||
Object.defineProperty(onCancel, 'isCancelled', {
|
||||
get: (): boolean => this._isCancelled,
|
||||
});
|
||||
|
||||
return executor(onResolve, onReject, onCancel as OnCancel);
|
||||
});
|
||||
}
|
||||
|
||||
public then<TResult1 = T, TResult2 = never>(
|
||||
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
|
||||
onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null
|
||||
): Promise<TResult1 | TResult2> {
|
||||
return this._promise.then(onFulfilled, onRejected);
|
||||
}
|
||||
|
||||
public catch<TResult = never>(
|
||||
onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null
|
||||
): Promise<T | TResult> {
|
||||
return this._promise.catch(onRejected);
|
||||
}
|
||||
|
||||
public finally(onFinally?: (() => void) | null): Promise<T> {
|
||||
return this._promise.finally(onFinally);
|
||||
}
|
||||
|
||||
public cancel(): void {
|
||||
if (this._isResolved || this._isRejected || this._isCancelled) {
|
||||
return;
|
||||
}
|
||||
this._isCancelled = true;
|
||||
if (this._cancelHandlers.length) {
|
||||
try {
|
||||
for (const cancelHandler of this._cancelHandlers) {
|
||||
cancelHandler();
|
||||
}
|
||||
} catch (error) {
|
||||
console.warn('Cancellation threw an error', error);
|
||||
return;
|
||||
}
|
||||
}
|
||||
this._cancelHandlers.length = 0;
|
||||
this._reject?.(new CancelError('Request aborted'));
|
||||
}
|
||||
|
||||
public get isCancelled(): boolean {
|
||||
return this._isCancelled;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ApiRequestOptions } from './ApiRequestOptions';
|
||||
|
||||
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
|
||||
type Headers = Record<string, string>;
|
||||
|
||||
export type OpenAPIConfig = {
|
||||
BASE: string;
|
||||
VERSION: string;
|
||||
WITH_CREDENTIALS: boolean;
|
||||
CREDENTIALS: 'include' | 'omit' | 'same-origin';
|
||||
TOKEN?: string | Resolver<string>;
|
||||
USERNAME?: string | Resolver<string>;
|
||||
PASSWORD?: string | Resolver<string>;
|
||||
HEADERS?: Headers | Resolver<Headers>;
|
||||
ENCODE_PATH?: (path: string) => string;
|
||||
};
|
||||
|
||||
export const OpenAPI: OpenAPIConfig = {
|
||||
BASE: '',
|
||||
VERSION: '1.0',
|
||||
WITH_CREDENTIALS: false,
|
||||
CREDENTIALS: 'include',
|
||||
TOKEN: undefined,
|
||||
USERNAME: undefined,
|
||||
PASSWORD: undefined,
|
||||
HEADERS: undefined,
|
||||
ENCODE_PATH: undefined,
|
||||
};
|
||||
306
src/Umbraco.Web.UI.Client/src/core/backend-api/core/request.ts
Normal file
306
src/Umbraco.Web.UI.Client/src/core/backend-api/core/request.ts
Normal file
@@ -0,0 +1,306 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import { ApiError } from './ApiError';
|
||||
import type { ApiRequestOptions } from './ApiRequestOptions';
|
||||
import type { ApiResult } from './ApiResult';
|
||||
import { CancelablePromise } from './CancelablePromise';
|
||||
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;
|
||||
};
|
||||
|
||||
const isString = (value: any): value is string => {
|
||||
return typeof value === 'string';
|
||||
};
|
||||
|
||||
const isStringWithValue = (value: any): value is string => {
|
||||
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])
|
||||
);
|
||||
};
|
||||
|
||||
const isFormData = (value: any): value is FormData => {
|
||||
return value instanceof FormData;
|
||||
};
|
||||
|
||||
const base64 = (str: string): string => {
|
||||
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 append = (key: string, value: any) => {
|
||||
qs.push(`${encodeURIComponent(key)}=${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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Object.entries(params).forEach(([key, value]) => {
|
||||
process(key, value);
|
||||
});
|
||||
|
||||
if (qs.length > 0) {
|
||||
return `?${qs.join('&')}`;
|
||||
}
|
||||
|
||||
return '';
|
||||
};
|
||||
|
||||
const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {
|
||||
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 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();
|
||||
|
||||
const process = (key: string, value: any) => {
|
||||
if (isString(value) || isBlob(value)) {
|
||||
formData.append(key, value);
|
||||
} else {
|
||||
formData.append(key, 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);
|
||||
}
|
||||
});
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
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 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>);
|
||||
|
||||
if (isStringWithValue(token)) {
|
||||
headers['Authorization'] = `Bearer ${token}`;
|
||||
}
|
||||
|
||||
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';
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
export const sendRequest = async (
|
||||
config: OpenAPIConfig,
|
||||
options: ApiRequestOptions,
|
||||
url: string,
|
||||
body: any,
|
||||
formData: FormData | undefined,
|
||||
headers: Headers,
|
||||
onCancel: OnCancel
|
||||
): Promise<Response> => {
|
||||
const controller = new AbortController();
|
||||
|
||||
const request: RequestInit = {
|
||||
headers,
|
||||
body: body ?? formData,
|
||||
method: options.method,
|
||||
signal: controller.signal,
|
||||
};
|
||||
|
||||
if (config.WITH_CREDENTIALS) {
|
||||
request.credentials = config.CREDENTIALS;
|
||||
}
|
||||
|
||||
onCancel(() => controller.abort());
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
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 error = errors[result.status];
|
||||
if (error) {
|
||||
throw new ApiError(options, result, error);
|
||||
}
|
||||
|
||||
if (!result.ok) {
|
||||
throw new ApiError(options, result, 'Generic Error');
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Request method
|
||||
* @param config The OpenAPI configuration object
|
||||
* @param options The request options from the service
|
||||
* @returns CancelablePromise<T>
|
||||
* @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);
|
||||
|
||||
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,
|
||||
};
|
||||
|
||||
catchErrorCodes(options, result);
|
||||
|
||||
resolve(result.body);
|
||||
}
|
||||
} catch (error) {
|
||||
reject(error);
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -1,31 +0,0 @@
|
||||
import { Fetcher } from 'openapi-typescript-fetch';
|
||||
|
||||
import type { paths } from '../../../schemas/generated-schema';
|
||||
|
||||
const fetcher = Fetcher.for<paths>();
|
||||
|
||||
fetcher.configure({
|
||||
baseUrl: '/umbraco/backoffice',
|
||||
});
|
||||
|
||||
export const getServerStatus = fetcher.path('/server/status').method('get').create();
|
||||
export const getServerVersion = fetcher.path('/server/version').method('get').create();
|
||||
export const getUser = fetcher.path('/user').method('get').create();
|
||||
export const postUserLogin = fetcher.path('/user/login').method('post').create();
|
||||
export const postUserLogout = fetcher.path('/user/logout').method('post').create();
|
||||
export const getUserSections = fetcher.path('/user/sections').method('get').create();
|
||||
export const getInstallSettings = fetcher.path('/install/settings').method('get').create();
|
||||
export const postInstallValidateDatabase = fetcher.path('/install/validateDatabase').method('post').create();
|
||||
export const postInstallSetup = fetcher.path('/install/setup').method('post').create();
|
||||
export const getUpgradeSettings = fetcher.path('/upgrade/settings').method('get').create();
|
||||
export const PostUpgradeAuthorize = fetcher.path('/upgrade/authorize').method('post').create();
|
||||
export const getManifests = fetcher.path('/manifests').method('get').create();
|
||||
export const getPackagesInstalled = fetcher.path('/manifests/packages/installed').method('get').create();
|
||||
export const getConsentLevels = fetcher.path('/telemetry/ConsentLevels').method('get').create();
|
||||
export const getConsentLevel = fetcher.path('/telemetry/ConsentLevel').method('get').create();
|
||||
export const postConsentLevel = fetcher.path('/telemetry/ConsentLevel').method('post').create();
|
||||
|
||||
export const getPublishedCacheStatus = fetcher.path('/published-cache/status').method('get').create();
|
||||
export const postPublishedCacheReload = fetcher.path('/published-cache/reload').method('post').create();
|
||||
export const postPublishedCacheRebuild = fetcher.path('/published-cache/rebuild').method('post').create();
|
||||
export const getPublishedCacheCollect = fetcher.path('/published-cache/collect').method('get').create();
|
||||
@@ -1 +1,145 @@
|
||||
export * from './fetcher';
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export { ApiError } from './core/ApiError';
|
||||
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
||||
export { OpenAPI } from './core/OpenAPI';
|
||||
export type { OpenAPIConfig } from './core/OpenAPI';
|
||||
|
||||
export type { Assembly } from './models/Assembly';
|
||||
export type { BackOfficeNotification } from './models/BackOfficeNotification';
|
||||
export { CallingConventions } from './models/CallingConventions';
|
||||
export type { ConsentLevel } from './models/ConsentLevel';
|
||||
export type { ConstructorInfo } from './models/ConstructorInfo';
|
||||
export type { ContentApp } from './models/ContentApp';
|
||||
export type { ContentAppBadge } from './models/ContentAppBadge';
|
||||
export { ContentAppBadgeType } from './models/ContentAppBadgeType';
|
||||
export type { ContentResult } from './models/ContentResult';
|
||||
export type { ContentTreeItem } from './models/ContentTreeItem';
|
||||
export type { CreatedResult } from './models/CreatedResult';
|
||||
export type { Culture } from './models/Culture';
|
||||
export type { CustomAttributeData } from './models/CustomAttributeData';
|
||||
export type { CustomAttributeNamedArgument } from './models/CustomAttributeNamedArgument';
|
||||
export type { CustomAttributeTypedArgument } from './models/CustomAttributeTypedArgument';
|
||||
export type { DatabaseInstall } from './models/DatabaseInstall';
|
||||
export type { DatabaseSettings } from './models/DatabaseSettings';
|
||||
export type { Dictionary } from './models/Dictionary';
|
||||
export type { DictionaryImport } from './models/DictionaryImport';
|
||||
export type { DictionaryItem } from './models/DictionaryItem';
|
||||
export type { DictionaryItemsImport } from './models/DictionaryItemsImport';
|
||||
export type { DictionaryOverview } from './models/DictionaryOverview';
|
||||
export type { DictionaryTranslation } from './models/DictionaryTranslation';
|
||||
export type { DictionaryTranslationOverview } from './models/DictionaryTranslationOverview';
|
||||
export type { DocumentBlueprintTreeItem } from './models/DocumentBlueprintTreeItem';
|
||||
export type { DocumentTreeItem } from './models/DocumentTreeItem';
|
||||
export type { DocumentTypeTreeItem } from './models/DocumentTypeTreeItem';
|
||||
export type { EntityTreeItem } from './models/EntityTreeItem';
|
||||
export { EventAttributes } from './models/EventAttributes';
|
||||
export type { EventInfo } from './models/EventInfo';
|
||||
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 { FolderTreeItem } from './models/FolderTreeItem';
|
||||
export { GenericParameterAttributes } from './models/GenericParameterAttributes';
|
||||
export type { HelpPage } from './models/HelpPage';
|
||||
export type { ICustomAttributeProvider } from './models/ICustomAttributeProvider';
|
||||
export type { Index } from './models/Index';
|
||||
export type { Install } from './models/Install';
|
||||
export type { InstallSettings } from './models/InstallSettings';
|
||||
export type { IntPtr } from './models/IntPtr';
|
||||
export type { IOutputFormatter } from './models/IOutputFormatter';
|
||||
export type { JsonPatch } from './models/JsonPatch';
|
||||
export type { Language } from './models/Language';
|
||||
export { LayoutKind } from './models/LayoutKind';
|
||||
export type { MemberInfo } from './models/MemberInfo';
|
||||
export { MemberTypes } from './models/MemberTypes';
|
||||
export { MethodAttributes } from './models/MethodAttributes';
|
||||
export type { MethodBase } from './models/MethodBase';
|
||||
export { MethodImplAttributes } from './models/MethodImplAttributes';
|
||||
export type { MethodInfo } from './models/MethodInfo';
|
||||
export type { ModelsBuilder } from './models/ModelsBuilder';
|
||||
export { ModelsMode } from './models/ModelsMode';
|
||||
export type { Module } from './models/Module';
|
||||
export type { ModuleHandle } from './models/ModuleHandle';
|
||||
export type { NotFoundResult } from './models/NotFoundResult';
|
||||
export { NotificationStyle } from './models/NotificationStyle';
|
||||
export type { OkResult } from './models/OkResult';
|
||||
export type { OutOfDateStatus } from './models/OutOfDateStatus';
|
||||
export { OutOfDateType } from './models/OutOfDateType';
|
||||
export type { PagedContentTreeItem } from './models/PagedContentTreeItem';
|
||||
export type { PagedCulture } from './models/PagedCulture';
|
||||
export type { PagedDictionaryOverview } from './models/PagedDictionaryOverview';
|
||||
export type { PagedDocumentBlueprintTreeItem } from './models/PagedDocumentBlueprintTreeItem';
|
||||
export type { PagedDocumentTreeItem } from './models/PagedDocumentTreeItem';
|
||||
export type { PagedDocumentTypeTreeItem } from './models/PagedDocumentTypeTreeItem';
|
||||
export type { PagedEntityTreeItem } from './models/PagedEntityTreeItem';
|
||||
export type { PagedFileSystemTreeItem } from './models/PagedFileSystemTreeItem';
|
||||
export type { PagedFolderTreeItem } from './models/PagedFolderTreeItem';
|
||||
export type { PagedHelpPage } from './models/PagedHelpPage';
|
||||
export type { PagedIndex } from './models/PagedIndex';
|
||||
export type { PagedLanguage } from './models/PagedLanguage';
|
||||
export type { PagedPaged } from './models/PagedPaged';
|
||||
export type { PagedRecycleBinItem } from './models/PagedRecycleBinItem';
|
||||
export type { PagedRelation } from './models/PagedRelation';
|
||||
export type { PagedRelationItem } from './models/PagedRelationItem';
|
||||
export type { PagedSearcher } from './models/PagedSearcher';
|
||||
export type { PagedSearchResult } from './models/PagedSearchResult';
|
||||
export type { PagedTelemetry } from './models/PagedTelemetry';
|
||||
export { ParameterAttributes } from './models/ParameterAttributes';
|
||||
export type { ParameterInfo } from './models/ParameterInfo';
|
||||
export type { ProblemDetails } from './models/ProblemDetails';
|
||||
export type { ProfilingStatus } from './models/ProfilingStatus';
|
||||
export { PropertyAttributes } from './models/PropertyAttributes';
|
||||
export type { PropertyInfo } from './models/PropertyInfo';
|
||||
export type { RecycleBinItem } from './models/RecycleBinItem';
|
||||
export type { Relation } from './models/Relation';
|
||||
export type { RelationItem } from './models/RelationItem';
|
||||
export type { RuntimeFieldHandle } from './models/RuntimeFieldHandle';
|
||||
export { RuntimeLevel } from './models/RuntimeLevel';
|
||||
export type { RuntimeMethodHandle } from './models/RuntimeMethodHandle';
|
||||
export type { RuntimeTypeHandle } from './models/RuntimeTypeHandle';
|
||||
export type { Searcher } from './models/Searcher';
|
||||
export type { SearchResult } from './models/SearchResult';
|
||||
export { SecurityRuleSet } from './models/SecurityRuleSet';
|
||||
export type { ServerStatus } from './models/ServerStatus';
|
||||
export type { StructLayoutAttribute } from './models/StructLayoutAttribute';
|
||||
export type { Telemetry } from './models/Telemetry';
|
||||
export { TelemetryLevel } from './models/TelemetryLevel';
|
||||
export type { Type } from './models/Type';
|
||||
export { TypeAttributes } from './models/TypeAttributes';
|
||||
export type { TypeInfo } from './models/TypeInfo';
|
||||
export type { UpgradeSettings } from './models/UpgradeSettings';
|
||||
export type { UserInstall } from './models/UserInstall';
|
||||
export type { UserSettings } from './models/UserSettings';
|
||||
export type { Version } from './models/Version';
|
||||
|
||||
export { CultureResource } from './services/CultureResource';
|
||||
export { DataTypeResource } from './services/DataTypeResource';
|
||||
export { DictionaryResource } from './services/DictionaryResource';
|
||||
export { DocumentResource } from './services/DocumentResource';
|
||||
export { DocumentBlueprintResource } from './services/DocumentBlueprintResource';
|
||||
export { DocumentTypeResource } from './services/DocumentTypeResource';
|
||||
export { HelpResource } from './services/HelpResource';
|
||||
export { InstallResource } from './services/InstallResource';
|
||||
export { LanguageResource } from './services/LanguageResource';
|
||||
export { MediaResource } from './services/MediaResource';
|
||||
export { MediaTypeResource } from './services/MediaTypeResource';
|
||||
export { MemberGroupResource } from './services/MemberGroupResource';
|
||||
export { MemberTypeResource } from './services/MemberTypeResource';
|
||||
export { ModelsBuilderResource } from './services/ModelsBuilderResource';
|
||||
export { PartialViewResource } from './services/PartialViewResource';
|
||||
export { ProfilingResource } from './services/ProfilingResource';
|
||||
export { PublishedCacheResource } from './services/PublishedCacheResource';
|
||||
export { RelationResource } from './services/RelationResource';
|
||||
export { RelationTypeResource } from './services/RelationTypeResource';
|
||||
export { ScriptResource } from './services/ScriptResource';
|
||||
export { SearchResource } from './services/SearchResource';
|
||||
export { SecurityResource } from './services/SecurityResource';
|
||||
export { ServerResource } from './services/ServerResource';
|
||||
export { StaticFileResource } from './services/StaticFileResource';
|
||||
export { StylesheetResource } from './services/StylesheetResource';
|
||||
export { TelemetryResource } from './services/TelemetryResource';
|
||||
export { TemplateResource } from './services/TemplateResource';
|
||||
export { TrackedReferenceResource } from './services/TrackedReferenceResource';
|
||||
export { UpgradeResource } from './services/UpgradeResource';
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { CustomAttributeData } from './CustomAttributeData';
|
||||
import type { MethodInfo } from './MethodInfo';
|
||||
import type { Module } from './Module';
|
||||
import type { SecurityRuleSet } from './SecurityRuleSet';
|
||||
import type { Type } from './Type';
|
||||
import type { TypeInfo } from './TypeInfo';
|
||||
|
||||
export type Assembly = {
|
||||
readonly definedTypes?: Array<TypeInfo> | null;
|
||||
readonly exportedTypes?: Array<Type> | null;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
readonly codeBase?: string | null;
|
||||
entryPoint?: MethodInfo;
|
||||
readonly fullName?: string | null;
|
||||
readonly imageRuntimeVersion?: string | null;
|
||||
readonly isDynamic?: boolean;
|
||||
readonly location?: string | null;
|
||||
readonly reflectionOnly?: boolean;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly isFullyTrusted?: boolean;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
readonly escapedCodeBase?: string | null;
|
||||
manifestModule?: Module;
|
||||
readonly modules?: Array<Module> | null;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
readonly globalAssemblyCache?: boolean;
|
||||
readonly hostContext?: number;
|
||||
securityRuleSet?: SecurityRuleSet;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { NotificationStyle } from './NotificationStyle';
|
||||
|
||||
export type BackOfficeNotification = {
|
||||
header?: string | null;
|
||||
message?: string | null;
|
||||
notificationType?: NotificationStyle;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum CallingConventions {
|
||||
STANDARD = 'Standard',
|
||||
VAR_ARGS = 'VarArgs',
|
||||
ANY = 'Any',
|
||||
HAS_THIS = 'HasThis',
|
||||
EXPLICIT_THIS = 'ExplicitThis',
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { TelemetryLevel } from './TelemetryLevel';
|
||||
|
||||
export type ConsentLevel = {
|
||||
level?: TelemetryLevel;
|
||||
description?: string | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { CallingConventions } from './CallingConventions';
|
||||
import type { CustomAttributeData } from './CustomAttributeData';
|
||||
import type { MemberTypes } from './MemberTypes';
|
||||
import type { MethodAttributes } from './MethodAttributes';
|
||||
import type { MethodImplAttributes } from './MethodImplAttributes';
|
||||
import type { Module } from './Module';
|
||||
import type { RuntimeMethodHandle } from './RuntimeMethodHandle';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type ConstructorInfo = {
|
||||
readonly name?: string | null;
|
||||
declaringType?: Type;
|
||||
reflectedType?: Type;
|
||||
module?: Module;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
attributes?: MethodAttributes;
|
||||
methodImplementationFlags?: MethodImplAttributes;
|
||||
callingConvention?: CallingConventions;
|
||||
readonly isAbstract?: boolean;
|
||||
readonly isConstructor?: boolean;
|
||||
readonly isFinal?: boolean;
|
||||
readonly isHideBySig?: boolean;
|
||||
readonly isSpecialName?: boolean;
|
||||
readonly isStatic?: boolean;
|
||||
readonly isVirtual?: boolean;
|
||||
readonly isAssembly?: boolean;
|
||||
readonly isFamily?: boolean;
|
||||
readonly isFamilyAndAssembly?: boolean;
|
||||
readonly isFamilyOrAssembly?: boolean;
|
||||
readonly isPrivate?: boolean;
|
||||
readonly isPublic?: boolean;
|
||||
readonly isConstructedGenericMethod?: boolean;
|
||||
readonly isGenericMethod?: boolean;
|
||||
readonly isGenericMethodDefinition?: boolean;
|
||||
readonly containsGenericParameters?: boolean;
|
||||
methodHandle?: RuntimeMethodHandle;
|
||||
readonly isSecurityCritical?: boolean;
|
||||
readonly isSecuritySafeCritical?: boolean;
|
||||
readonly isSecurityTransparent?: boolean;
|
||||
memberType?: MemberTypes;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { ContentAppBadge } from './ContentAppBadge';
|
||||
|
||||
export type ContentApp = {
|
||||
name?: string | null;
|
||||
alias?: string | null;
|
||||
weight?: number;
|
||||
icon?: string | null;
|
||||
view?: string | null;
|
||||
viewModel?: any;
|
||||
active?: boolean;
|
||||
badge?: ContentAppBadge;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { ContentAppBadgeType } from './ContentAppBadgeType';
|
||||
|
||||
export type ContentAppBadge = {
|
||||
count?: number;
|
||||
type?: ContentAppBadgeType;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum ContentAppBadgeType {
|
||||
DEFAULT = 'default',
|
||||
WARNING = 'warning',
|
||||
ALERT = 'alert',
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type ContentResult = {
|
||||
content?: string | null;
|
||||
contentType?: string | null;
|
||||
statusCode?: number | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type ContentTreeItem = {
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
hasChildren?: boolean;
|
||||
key?: string;
|
||||
isContainer?: boolean;
|
||||
parentKey?: string | null;
|
||||
noAccess?: boolean;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { IOutputFormatter } from './IOutputFormatter';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type CreatedResult = {
|
||||
value?: any;
|
||||
formatters?: Array<IOutputFormatter> | null;
|
||||
contentTypes?: Array<string> | null;
|
||||
declaredType?: Type;
|
||||
statusCode?: number | null;
|
||||
location?: string | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type Culture = {
|
||||
name?: string | null;
|
||||
englishName?: string | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { ConstructorInfo } from './ConstructorInfo';
|
||||
import type { CustomAttributeNamedArgument } from './CustomAttributeNamedArgument';
|
||||
import type { CustomAttributeTypedArgument } from './CustomAttributeTypedArgument';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type CustomAttributeData = {
|
||||
attributeType?: Type;
|
||||
constructor?: ConstructorInfo;
|
||||
readonly constructorArguments?: Array<CustomAttributeTypedArgument> | null;
|
||||
readonly namedArguments?: Array<CustomAttributeNamedArgument> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { CustomAttributeTypedArgument } from './CustomAttributeTypedArgument';
|
||||
import type { MemberInfo } from './MemberInfo';
|
||||
|
||||
export type CustomAttributeNamedArgument = {
|
||||
memberInfo?: MemberInfo;
|
||||
typedValue?: CustomAttributeTypedArgument;
|
||||
readonly memberName?: string | null;
|
||||
readonly isField?: boolean;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type CustomAttributeTypedArgument = {
|
||||
argumentType?: Type;
|
||||
value?: any;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type DatabaseInstall = {
|
||||
id: string;
|
||||
providerName: string;
|
||||
server?: string | null;
|
||||
name?: string | null;
|
||||
username?: string | null;
|
||||
password?: string | null;
|
||||
useIntegratedAuthentication?: boolean;
|
||||
connectionString?: string | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type DatabaseSettings = {
|
||||
id?: string;
|
||||
sortOrder?: number;
|
||||
displayName?: string | null;
|
||||
defaultDatabaseName?: string | null;
|
||||
providerName?: string | null;
|
||||
isConfigured?: boolean;
|
||||
requiresServer?: boolean;
|
||||
serverPlaceholder?: string | null;
|
||||
requiresCredentials?: boolean;
|
||||
supportsIntegratedAuthentication?: boolean;
|
||||
requiresConnectionTest?: boolean;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { BackOfficeNotification } from './BackOfficeNotification';
|
||||
import type { ContentApp } from './ContentApp';
|
||||
import type { DictionaryTranslation } from './DictionaryTranslation';
|
||||
|
||||
export type Dictionary = {
|
||||
parentId?: string | null;
|
||||
translations?: Array<DictionaryTranslation> | null;
|
||||
contentApps?: Array<ContentApp> | null;
|
||||
readonly notifications?: Array<BackOfficeNotification> | null;
|
||||
name: string;
|
||||
key?: string;
|
||||
path?: string | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { DictionaryItemsImport } from './DictionaryItemsImport';
|
||||
|
||||
export type DictionaryImport = {
|
||||
dictionaryItems?: Array<DictionaryItemsImport> | null;
|
||||
tempFileName?: string | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type DictionaryItem = {
|
||||
parentId?: string | null;
|
||||
key?: string;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type DictionaryItemsImport = {
|
||||
name?: string | null;
|
||||
level?: number;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { DictionaryTranslationOverview } from './DictionaryTranslationOverview';
|
||||
|
||||
export type DictionaryOverview = {
|
||||
name?: string | null;
|
||||
key?: string;
|
||||
level?: number;
|
||||
readonly translations?: Array<DictionaryTranslationOverview> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type DictionaryTranslation = {
|
||||
id?: number;
|
||||
key?: string;
|
||||
displayName?: string | null;
|
||||
isoCode?: string | null;
|
||||
translation?: string | null;
|
||||
languageId?: number;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type DictionaryTranslationOverview = {
|
||||
displayName?: string | null;
|
||||
hasTranslation?: boolean;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type DocumentBlueprintTreeItem = {
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
hasChildren?: boolean;
|
||||
key?: string;
|
||||
isContainer?: boolean;
|
||||
parentKey?: string | null;
|
||||
documentTypeKey?: string;
|
||||
documentTypeAlias?: string | null;
|
||||
documentTypeName?: string | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type DocumentTreeItem = {
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
hasChildren?: boolean;
|
||||
key?: string;
|
||||
isContainer?: boolean;
|
||||
parentKey?: string | null;
|
||||
noAccess?: boolean;
|
||||
isProtected?: boolean;
|
||||
isPublished?: boolean;
|
||||
isEdited?: boolean;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type DocumentTypeTreeItem = {
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
hasChildren?: boolean;
|
||||
key?: string;
|
||||
isContainer?: boolean;
|
||||
parentKey?: string | null;
|
||||
isFolder?: boolean;
|
||||
isElement?: boolean;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type EntityTreeItem = {
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
hasChildren?: boolean;
|
||||
key?: string;
|
||||
isContainer?: boolean;
|
||||
parentKey?: string | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum EventAttributes {
|
||||
NONE = 'None',
|
||||
SPECIAL_NAME = 'SpecialName',
|
||||
RTSPECIAL_NAME = 'RTSpecialName',
|
||||
RESERVED_MASK = 'ReservedMask',
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { CustomAttributeData } from './CustomAttributeData';
|
||||
import type { EventAttributes } from './EventAttributes';
|
||||
import type { MemberTypes } from './MemberTypes';
|
||||
import type { MethodInfo } from './MethodInfo';
|
||||
import type { Module } from './Module';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type EventInfo = {
|
||||
readonly name?: string | null;
|
||||
declaringType?: Type;
|
||||
reflectedType?: Type;
|
||||
module?: Module;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
memberType?: MemberTypes;
|
||||
attributes?: EventAttributes;
|
||||
readonly isSpecialName?: boolean;
|
||||
addMethod?: MethodInfo;
|
||||
removeMethod?: MethodInfo;
|
||||
raiseMethod?: MethodInfo;
|
||||
readonly isMulticast?: boolean;
|
||||
eventHandlerType?: Type;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type Field = {
|
||||
name?: string | null;
|
||||
values?: Array<string> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum FieldAttributes {
|
||||
PRIVATE_SCOPE = 'PrivateScope',
|
||||
PRIVATE = 'Private',
|
||||
FAM_ANDASSEM = 'FamANDAssem',
|
||||
ASSEMBLY = 'Assembly',
|
||||
FAMILY = 'Family',
|
||||
FAM_ORASSEM = 'FamORAssem',
|
||||
PUBLIC = 'Public',
|
||||
FIELD_ACCESS_MASK = 'FieldAccessMask',
|
||||
STATIC = 'Static',
|
||||
INIT_ONLY = 'InitOnly',
|
||||
LITERAL = 'Literal',
|
||||
NOT_SERIALIZED = 'NotSerialized',
|
||||
HAS_FIELD_RVA = 'HasFieldRVA',
|
||||
SPECIAL_NAME = 'SpecialName',
|
||||
RTSPECIAL_NAME = 'RTSpecialName',
|
||||
HAS_FIELD_MARSHAL = 'HasFieldMarshal',
|
||||
PINVOKE_IMPL = 'PinvokeImpl',
|
||||
HAS_DEFAULT = 'HasDefault',
|
||||
RESERVED_MASK = 'ReservedMask',
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { CustomAttributeData } from './CustomAttributeData';
|
||||
import type { FieldAttributes } from './FieldAttributes';
|
||||
import type { MemberTypes } from './MemberTypes';
|
||||
import type { Module } from './Module';
|
||||
import type { RuntimeFieldHandle } from './RuntimeFieldHandle';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type FieldInfo = {
|
||||
readonly name?: string | null;
|
||||
declaringType?: Type;
|
||||
reflectedType?: Type;
|
||||
module?: Module;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
memberType?: MemberTypes;
|
||||
attributes?: FieldAttributes;
|
||||
fieldType?: Type;
|
||||
readonly isInitOnly?: boolean;
|
||||
readonly isLiteral?: boolean;
|
||||
readonly isNotSerialized?: boolean;
|
||||
readonly isPinvokeImpl?: boolean;
|
||||
readonly isSpecialName?: boolean;
|
||||
readonly isStatic?: boolean;
|
||||
readonly isAssembly?: boolean;
|
||||
readonly isFamily?: boolean;
|
||||
readonly isFamilyAndAssembly?: boolean;
|
||||
readonly isFamilyOrAssembly?: boolean;
|
||||
readonly isPrivate?: boolean;
|
||||
readonly isPublic?: boolean;
|
||||
readonly isSecurityCritical?: boolean;
|
||||
readonly isSecuritySafeCritical?: boolean;
|
||||
readonly isSecurityTransparent?: boolean;
|
||||
fieldHandle?: RuntimeFieldHandle;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type FileSystemTreeItem = {
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
hasChildren?: boolean;
|
||||
path?: string | null;
|
||||
isFolder?: boolean;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type FolderTreeItem = {
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
hasChildren?: boolean;
|
||||
key?: string;
|
||||
isContainer?: boolean;
|
||||
parentKey?: string | null;
|
||||
isFolder?: boolean;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum GenericParameterAttributes {
|
||||
NONE = 'None',
|
||||
COVARIANT = 'Covariant',
|
||||
CONTRAVARIANT = 'Contravariant',
|
||||
VARIANCE_MASK = 'VarianceMask',
|
||||
REFERENCE_TYPE_CONSTRAINT = 'ReferenceTypeConstraint',
|
||||
NOT_NULLABLE_VALUE_TYPE_CONSTRAINT = 'NotNullableValueTypeConstraint',
|
||||
DEFAULT_CONSTRUCTOR_CONSTRAINT = 'DefaultConstructorConstraint',
|
||||
SPECIAL_CONSTRAINT_MASK = 'SpecialConstraintMask',
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type HelpPage = {
|
||||
name?: string | null;
|
||||
description?: string | null;
|
||||
url?: string | null;
|
||||
type?: string | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type ICustomAttributeProvider = {
|
||||
};
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type IOutputFormatter = {
|
||||
};
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type Index = {
|
||||
name?: string | null;
|
||||
healthStatus?: string | null;
|
||||
readonly isHealthy?: boolean;
|
||||
canRebuild?: boolean;
|
||||
searcherName?: string | null;
|
||||
documentCount?: number;
|
||||
fieldCount?: number;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { DatabaseInstall } from './DatabaseInstall';
|
||||
import type { TelemetryLevel } from './TelemetryLevel';
|
||||
import type { UserInstall } from './UserInstall';
|
||||
|
||||
export type Install = {
|
||||
user: UserInstall;
|
||||
database: DatabaseInstall;
|
||||
telemetryLevel?: TelemetryLevel;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { DatabaseSettings } from './DatabaseSettings';
|
||||
import type { UserSettings } from './UserSettings';
|
||||
|
||||
export type InstallSettings = {
|
||||
user?: UserSettings;
|
||||
databases?: Array<DatabaseSettings> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type IntPtr = {
|
||||
};
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type JsonPatch = {
|
||||
op?: string | null;
|
||||
path?: string | null;
|
||||
value?: any;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type Language = {
|
||||
id?: number;
|
||||
isoCode: string;
|
||||
name?: string | null;
|
||||
isDefault?: boolean;
|
||||
isMandatory?: boolean;
|
||||
fallbackLanguageId?: number | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum LayoutKind {
|
||||
SEQUENTIAL = 'Sequential',
|
||||
EXPLICIT = 'Explicit',
|
||||
AUTO = 'Auto',
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { CustomAttributeData } from './CustomAttributeData';
|
||||
import type { MemberTypes } from './MemberTypes';
|
||||
import type { Module } from './Module';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type MemberInfo = {
|
||||
memberType?: MemberTypes;
|
||||
readonly name?: string | null;
|
||||
declaringType?: Type;
|
||||
reflectedType?: Type;
|
||||
module?: Module;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum MemberTypes {
|
||||
CONSTRUCTOR = 'Constructor',
|
||||
EVENT = 'Event',
|
||||
FIELD = 'Field',
|
||||
METHOD = 'Method',
|
||||
PROPERTY = 'Property',
|
||||
TYPE_INFO = 'TypeInfo',
|
||||
CUSTOM = 'Custom',
|
||||
NESTED_TYPE = 'NestedType',
|
||||
ALL = 'All',
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum MethodAttributes {
|
||||
REUSE_SLOT = 'ReuseSlot',
|
||||
PRIVATE_SCOPE = 'PrivateScope',
|
||||
PRIVATE = 'Private',
|
||||
FAM_ANDASSEM = 'FamANDAssem',
|
||||
ASSEMBLY = 'Assembly',
|
||||
FAMILY = 'Family',
|
||||
FAM_ORASSEM = 'FamORAssem',
|
||||
PUBLIC = 'Public',
|
||||
MEMBER_ACCESS_MASK = 'MemberAccessMask',
|
||||
UNMANAGED_EXPORT = 'UnmanagedExport',
|
||||
STATIC = 'Static',
|
||||
FINAL = 'Final',
|
||||
VIRTUAL = 'Virtual',
|
||||
HIDE_BY_SIG = 'HideBySig',
|
||||
NEW_SLOT = 'NewSlot',
|
||||
VTABLE_LAYOUT_MASK = 'VtableLayoutMask',
|
||||
CHECK_ACCESS_ON_OVERRIDE = 'CheckAccessOnOverride',
|
||||
ABSTRACT = 'Abstract',
|
||||
SPECIAL_NAME = 'SpecialName',
|
||||
RTSPECIAL_NAME = 'RTSpecialName',
|
||||
PINVOKE_IMPL = 'PinvokeImpl',
|
||||
HAS_SECURITY = 'HasSecurity',
|
||||
REQUIRE_SEC_OBJECT = 'RequireSecObject',
|
||||
RESERVED_MASK = 'ReservedMask',
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { CallingConventions } from './CallingConventions';
|
||||
import type { CustomAttributeData } from './CustomAttributeData';
|
||||
import type { MemberTypes } from './MemberTypes';
|
||||
import type { MethodAttributes } from './MethodAttributes';
|
||||
import type { MethodImplAttributes } from './MethodImplAttributes';
|
||||
import type { Module } from './Module';
|
||||
import type { RuntimeMethodHandle } from './RuntimeMethodHandle';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type MethodBase = {
|
||||
memberType?: MemberTypes;
|
||||
readonly name?: string | null;
|
||||
declaringType?: Type;
|
||||
reflectedType?: Type;
|
||||
module?: Module;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
attributes?: MethodAttributes;
|
||||
methodImplementationFlags?: MethodImplAttributes;
|
||||
callingConvention?: CallingConventions;
|
||||
readonly isAbstract?: boolean;
|
||||
readonly isConstructor?: boolean;
|
||||
readonly isFinal?: boolean;
|
||||
readonly isHideBySig?: boolean;
|
||||
readonly isSpecialName?: boolean;
|
||||
readonly isStatic?: boolean;
|
||||
readonly isVirtual?: boolean;
|
||||
readonly isAssembly?: boolean;
|
||||
readonly isFamily?: boolean;
|
||||
readonly isFamilyAndAssembly?: boolean;
|
||||
readonly isFamilyOrAssembly?: boolean;
|
||||
readonly isPrivate?: boolean;
|
||||
readonly isPublic?: boolean;
|
||||
readonly isConstructedGenericMethod?: boolean;
|
||||
readonly isGenericMethod?: boolean;
|
||||
readonly isGenericMethodDefinition?: boolean;
|
||||
readonly containsGenericParameters?: boolean;
|
||||
methodHandle?: RuntimeMethodHandle;
|
||||
readonly isSecurityCritical?: boolean;
|
||||
readonly isSecuritySafeCritical?: boolean;
|
||||
readonly isSecurityTransparent?: boolean;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum MethodImplAttributes {
|
||||
IL = 'IL',
|
||||
MANAGED = 'Managed',
|
||||
NATIVE = 'Native',
|
||||
OPTIL = 'OPTIL',
|
||||
RUNTIME = 'Runtime',
|
||||
CODE_TYPE_MASK = 'CodeTypeMask',
|
||||
UNMANAGED = 'Unmanaged',
|
||||
MANAGED_MASK = 'ManagedMask',
|
||||
NO_INLINING = 'NoInlining',
|
||||
FORWARD_REF = 'ForwardRef',
|
||||
SYNCHRONIZED = 'Synchronized',
|
||||
NO_OPTIMIZATION = 'NoOptimization',
|
||||
PRESERVE_SIG = 'PreserveSig',
|
||||
AGGRESSIVE_INLINING = 'AggressiveInlining',
|
||||
AGGRESSIVE_OPTIMIZATION = 'AggressiveOptimization',
|
||||
INTERNAL_CALL = 'InternalCall',
|
||||
MAX_METHOD_IMPL_VAL = 'MaxMethodImplVal',
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { CallingConventions } from './CallingConventions';
|
||||
import type { CustomAttributeData } from './CustomAttributeData';
|
||||
import type { ICustomAttributeProvider } from './ICustomAttributeProvider';
|
||||
import type { MemberTypes } from './MemberTypes';
|
||||
import type { MethodAttributes } from './MethodAttributes';
|
||||
import type { MethodImplAttributes } from './MethodImplAttributes';
|
||||
import type { Module } from './Module';
|
||||
import type { ParameterInfo } from './ParameterInfo';
|
||||
import type { RuntimeMethodHandle } from './RuntimeMethodHandle';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type MethodInfo = {
|
||||
readonly name?: string | null;
|
||||
declaringType?: Type;
|
||||
reflectedType?: Type;
|
||||
module?: Module;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
attributes?: MethodAttributes;
|
||||
methodImplementationFlags?: MethodImplAttributes;
|
||||
callingConvention?: CallingConventions;
|
||||
readonly isAbstract?: boolean;
|
||||
readonly isConstructor?: boolean;
|
||||
readonly isFinal?: boolean;
|
||||
readonly isHideBySig?: boolean;
|
||||
readonly isSpecialName?: boolean;
|
||||
readonly isStatic?: boolean;
|
||||
readonly isVirtual?: boolean;
|
||||
readonly isAssembly?: boolean;
|
||||
readonly isFamily?: boolean;
|
||||
readonly isFamilyAndAssembly?: boolean;
|
||||
readonly isFamilyOrAssembly?: boolean;
|
||||
readonly isPrivate?: boolean;
|
||||
readonly isPublic?: boolean;
|
||||
readonly isConstructedGenericMethod?: boolean;
|
||||
readonly isGenericMethod?: boolean;
|
||||
readonly isGenericMethodDefinition?: boolean;
|
||||
readonly containsGenericParameters?: boolean;
|
||||
methodHandle?: RuntimeMethodHandle;
|
||||
readonly isSecurityCritical?: boolean;
|
||||
readonly isSecuritySafeCritical?: boolean;
|
||||
readonly isSecurityTransparent?: boolean;
|
||||
memberType?: MemberTypes;
|
||||
returnParameter?: ParameterInfo;
|
||||
returnType?: Type;
|
||||
returnTypeCustomAttributes?: ICustomAttributeProvider;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { ModelsMode } from './ModelsMode';
|
||||
|
||||
export type ModelsBuilder = {
|
||||
mode?: ModelsMode;
|
||||
canGenerate?: boolean;
|
||||
outOfDateModels?: boolean;
|
||||
lastError?: string | null;
|
||||
version?: string | null;
|
||||
modelsNamespace?: string | null;
|
||||
trackingOutOfDateModels?: boolean;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum ModelsMode {
|
||||
NOTHING = 'Nothing',
|
||||
IN_MEMORY_AUTO = 'InMemoryAuto',
|
||||
SOURCE_CODE_MANUAL = 'SourceCodeManual',
|
||||
SOURCE_CODE_AUTO = 'SourceCodeAuto',
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Assembly } from './Assembly';
|
||||
import type { CustomAttributeData } from './CustomAttributeData';
|
||||
import type { ModuleHandle } from './ModuleHandle';
|
||||
|
||||
export type Module = {
|
||||
assembly?: Assembly;
|
||||
readonly fullyQualifiedName?: string | null;
|
||||
readonly name?: string | null;
|
||||
readonly mdStreamVersion?: number;
|
||||
readonly moduleVersionId?: string;
|
||||
readonly scopeName?: string | null;
|
||||
moduleHandle?: ModuleHandle;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly metadataToken?: number;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type ModuleHandle = {
|
||||
readonly mdStreamVersion?: number;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type NotFoundResult = {
|
||||
statusCode?: number;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum NotificationStyle {
|
||||
SAVE = 'Save',
|
||||
INFO = 'Info',
|
||||
ERROR = 'Error',
|
||||
SUCCESS = 'Success',
|
||||
WARNING = 'Warning',
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type OkResult = {
|
||||
statusCode?: number;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { OutOfDateType } from './OutOfDateType';
|
||||
|
||||
export type OutOfDateStatus = {
|
||||
status?: OutOfDateType;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum OutOfDateType {
|
||||
OUT_OF_DATE = 'OutOfDate',
|
||||
CURRENT = 'Current',
|
||||
UNKNOWN = 'Unknown',
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { ContentTreeItem } from './ContentTreeItem';
|
||||
|
||||
export type PagedContentTreeItem = {
|
||||
total?: number;
|
||||
items?: Array<ContentTreeItem> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Culture } from './Culture';
|
||||
|
||||
export type PagedCulture = {
|
||||
total?: number;
|
||||
items?: Array<Culture> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { DictionaryOverview } from './DictionaryOverview';
|
||||
|
||||
export type PagedDictionaryOverview = {
|
||||
total?: number;
|
||||
items?: Array<DictionaryOverview> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { DocumentBlueprintTreeItem } from './DocumentBlueprintTreeItem';
|
||||
|
||||
export type PagedDocumentBlueprintTreeItem = {
|
||||
total?: number;
|
||||
items?: Array<DocumentBlueprintTreeItem> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { DocumentTreeItem } from './DocumentTreeItem';
|
||||
|
||||
export type PagedDocumentTreeItem = {
|
||||
total?: number;
|
||||
items?: Array<DocumentTreeItem> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { DocumentTypeTreeItem } from './DocumentTypeTreeItem';
|
||||
|
||||
export type PagedDocumentTypeTreeItem = {
|
||||
total?: number;
|
||||
items?: Array<DocumentTypeTreeItem> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { EntityTreeItem } from './EntityTreeItem';
|
||||
|
||||
export type PagedEntityTreeItem = {
|
||||
total?: number;
|
||||
items?: Array<EntityTreeItem> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { FileSystemTreeItem } from './FileSystemTreeItem';
|
||||
|
||||
export type PagedFileSystemTreeItem = {
|
||||
total?: number;
|
||||
items?: Array<FileSystemTreeItem> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { FolderTreeItem } from './FolderTreeItem';
|
||||
|
||||
export type PagedFolderTreeItem = {
|
||||
total?: number;
|
||||
items?: Array<FolderTreeItem> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { HelpPage } from './HelpPage';
|
||||
|
||||
export type PagedHelpPage = {
|
||||
total?: number;
|
||||
items?: Array<HelpPage> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Index } from './Index';
|
||||
|
||||
export type PagedIndex = {
|
||||
total?: number;
|
||||
items?: Array<Index> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Language } from './Language';
|
||||
|
||||
export type PagedLanguage = {
|
||||
total?: number;
|
||||
items?: Array<Language> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { PagedSearchResult } from './PagedSearchResult';
|
||||
|
||||
export type PagedPaged = {
|
||||
total?: number;
|
||||
items?: Array<PagedSearchResult> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { RecycleBinItem } from './RecycleBinItem';
|
||||
|
||||
export type PagedRecycleBinItem = {
|
||||
total?: number;
|
||||
items?: Array<RecycleBinItem> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Relation } from './Relation';
|
||||
|
||||
export type PagedRelation = {
|
||||
total?: number;
|
||||
items?: Array<Relation> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { RelationItem } from './RelationItem';
|
||||
|
||||
export type PagedRelationItem = {
|
||||
total?: number;
|
||||
items?: Array<RelationItem> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { SearchResult } from './SearchResult';
|
||||
|
||||
export type PagedSearchResult = {
|
||||
total?: number;
|
||||
items?: Array<SearchResult> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Searcher } from './Searcher';
|
||||
|
||||
export type PagedSearcher = {
|
||||
total?: number;
|
||||
items?: Array<Searcher> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Telemetry } from './Telemetry';
|
||||
|
||||
export type PagedTelemetry = {
|
||||
total?: number;
|
||||
items?: Array<Telemetry> | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum ParameterAttributes {
|
||||
NONE = 'None',
|
||||
IN = 'In',
|
||||
OUT = 'Out',
|
||||
LCID = 'Lcid',
|
||||
RETVAL = 'Retval',
|
||||
OPTIONAL = 'Optional',
|
||||
HAS_DEFAULT = 'HasDefault',
|
||||
HAS_FIELD_MARSHAL = 'HasFieldMarshal',
|
||||
RESERVED3 = 'Reserved3',
|
||||
RESERVED4 = 'Reserved4',
|
||||
RESERVED_MASK = 'ReservedMask',
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { CustomAttributeData } from './CustomAttributeData';
|
||||
import type { MemberInfo } from './MemberInfo';
|
||||
import type { ParameterAttributes } from './ParameterAttributes';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type ParameterInfo = {
|
||||
attributes?: ParameterAttributes;
|
||||
member?: MemberInfo;
|
||||
readonly name?: string | null;
|
||||
parameterType?: Type;
|
||||
readonly position?: number;
|
||||
readonly isIn?: boolean;
|
||||
readonly isLcid?: boolean;
|
||||
readonly isOptional?: boolean;
|
||||
readonly isOut?: boolean;
|
||||
readonly isRetval?: boolean;
|
||||
readonly defaultValue?: any;
|
||||
readonly rawDefaultValue?: any;
|
||||
readonly hasDefaultValue?: boolean;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly metadataToken?: number;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type ProblemDetails = Record<string, any>;
|
||||
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type ProfilingStatus = {
|
||||
enabled?: boolean;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum PropertyAttributes {
|
||||
NONE = 'None',
|
||||
SPECIAL_NAME = 'SpecialName',
|
||||
RTSPECIAL_NAME = 'RTSpecialName',
|
||||
HAS_DEFAULT = 'HasDefault',
|
||||
RESERVED2 = 'Reserved2',
|
||||
RESERVED3 = 'Reserved3',
|
||||
RESERVED4 = 'Reserved4',
|
||||
RESERVED_MASK = 'ReservedMask',
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { CustomAttributeData } from './CustomAttributeData';
|
||||
import type { MemberTypes } from './MemberTypes';
|
||||
import type { MethodInfo } from './MethodInfo';
|
||||
import type { Module } from './Module';
|
||||
import type { PropertyAttributes } from './PropertyAttributes';
|
||||
import type { Type } from './Type';
|
||||
|
||||
export type PropertyInfo = {
|
||||
readonly name?: string | null;
|
||||
declaringType?: Type;
|
||||
reflectedType?: Type;
|
||||
module?: Module;
|
||||
readonly customAttributes?: Array<CustomAttributeData> | null;
|
||||
readonly isCollectible?: boolean;
|
||||
readonly metadataToken?: number;
|
||||
memberType?: MemberTypes;
|
||||
propertyType?: Type;
|
||||
attributes?: PropertyAttributes;
|
||||
readonly isSpecialName?: boolean;
|
||||
readonly canRead?: boolean;
|
||||
readonly canWrite?: boolean;
|
||||
getMethod?: MethodInfo;
|
||||
setMethod?: MethodInfo;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type RecycleBinItem = {
|
||||
key?: string;
|
||||
name?: string | null;
|
||||
type?: string | null;
|
||||
icon?: string | null;
|
||||
hasChildren?: boolean;
|
||||
isContainer?: boolean;
|
||||
parentKey?: string | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type Relation = {
|
||||
parentId?: number;
|
||||
parentName?: string | null;
|
||||
childId?: number;
|
||||
childName?: string | null;
|
||||
createDate?: string;
|
||||
comment?: string | null;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type RelationItem = {
|
||||
nodeKey?: string;
|
||||
nodeName?: string | null;
|
||||
nodeType?: string | null;
|
||||
contentTypeIcon?: string | null;
|
||||
contentTypeAlias?: string | null;
|
||||
contentTypeName?: string | null;
|
||||
relationTypeName?: string | null;
|
||||
relationTypeIsBidirectional?: boolean;
|
||||
relationTypeIsDependency?: boolean;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { IntPtr } from './IntPtr';
|
||||
|
||||
export type RuntimeFieldHandle = {
|
||||
value?: IntPtr;
|
||||
};
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user