@remkoj/optimizely-cms-api 2.0.0-pre2 → 2.0.0-pre3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/CmsIntegrationApiClient.d.ts +22 -22
- package/dist/client/core/ApiError.d.ts +10 -10
- package/dist/client/core/ApiRequestOptions.d.ts +13 -13
- package/dist/client/core/ApiResult.d.ts +7 -7
- package/dist/client/core/BaseHttpRequest.d.ts +8 -8
- package/dist/client/core/CancelablePromise.d.ts +20 -20
- package/dist/client/core/FetchHttpRequest.d.ts +14 -14
- package/dist/client/core/OpenAPI.d.ts +16 -16
- package/dist/client/core/request.d.ts +30 -30
- package/dist/client/index.d.ts +76 -76
- package/dist/client/models/BinaryProperty.d.ts +8 -8
- package/dist/client/models/BooleanProperty.d.ts +5 -5
- package/dist/client/models/Changeset.d.ts +26 -26
- package/dist/client/models/ChangesetItem.d.ts +11 -11
- package/dist/client/models/ChangesetItemPage.d.ts +19 -19
- package/dist/client/models/ChangesetPage.d.ts +19 -19
- package/dist/client/models/ComponentListItem.d.ts +10 -10
- package/dist/client/models/ComponentProperty.d.ts +10 -10
- package/dist/client/models/ContentBaseType.d.ts +11 -11
- package/dist/client/models/ContentComponent.d.ts +34 -34
- package/dist/client/models/ContentItem.d.ts +60 -60
- package/dist/client/models/ContentItemListWithContentTypes.d.ts +27 -27
- package/dist/client/models/ContentItemPage.d.ts +19 -19
- package/dist/client/models/ContentItemWithContentTypes.d.ts +12 -12
- package/dist/client/models/ContentListItem.d.ts +14 -14
- package/dist/client/models/ContentLocaleInfo.d.ts +11 -11
- package/dist/client/models/ContentMetadata.d.ts +46 -46
- package/dist/client/models/ContentMetadataPage.d.ts +19 -19
- package/dist/client/models/ContentProperty.d.ts +14 -14
- package/dist/client/models/ContentReference.d.ts +17 -17
- package/dist/client/models/ContentReferenceListItem.d.ts +14 -14
- package/dist/client/models/ContentReferenceProperty.d.ts +14 -14
- package/dist/client/models/ContentType.d.ts +79 -79
- package/dist/client/models/ContentTypeFeature.d.ts +10 -10
- package/dist/client/models/ContentTypePage.d.ts +19 -19
- package/dist/client/models/ContentTypeProperty.d.ts +47 -47
- package/dist/client/models/ContentTypeUsage.d.ts +7 -7
- package/dist/client/models/CopyContentOptions.d.ts +21 -21
- package/dist/client/models/DateTimeListItem.d.ts +14 -14
- package/dist/client/models/DateTimeProperty.d.ts +14 -14
- package/dist/client/models/DoubleEnumerationSettings.d.ts +9 -9
- package/dist/client/models/FloatListItem.d.ts +16 -16
- package/dist/client/models/FloatProperty.d.ts +16 -16
- package/dist/client/models/ImageDescriptor.d.ts +17 -17
- package/dist/client/models/ImportPackageMessage.d.ts +17 -17
- package/dist/client/models/ImportPackageResult.d.ts +22 -22
- package/dist/client/models/IndexingType.d.ts +8 -8
- package/dist/client/models/Int32EnumerationSettings.d.ts +9 -9
- package/dist/client/models/IntegerListItem.d.ts +16 -16
- package/dist/client/models/IntegerProperty.d.ts +16 -16
- package/dist/client/models/JsonStringProperty.d.ts +5 -5
- package/dist/client/models/ListProperty.d.ts +26 -26
- package/dist/client/models/ListPropertyItem.d.ts +11 -11
- package/dist/client/models/LocaleStatus.d.ts +7 -7
- package/dist/client/models/Manifest.d.ts +19 -19
- package/dist/client/models/OauthToken.d.ts +18 -18
- package/dist/client/models/OauthTokenError.d.ts +13 -13
- package/dist/client/models/OauthTokenRequest.d.ts +21 -21
- package/dist/client/models/PackageJob.d.ts +28 -28
- package/dist/client/models/PackageJobMessage.d.ts +17 -17
- package/dist/client/models/PackageJobStatus.d.ts +4 -4
- package/dist/client/models/ProblemDetails.d.ts +1 -1
- package/dist/client/models/PropertyDataType.d.ts +18 -18
- package/dist/client/models/PropertyFormat.d.ts +34 -34
- package/dist/client/models/PropertyFormatPage.d.ts +19 -19
- package/dist/client/models/PropertyGroup.d.ts +21 -21
- package/dist/client/models/PropertyGroupPage.d.ts +19 -19
- package/dist/client/models/StringEnumerationSettings.d.ts +9 -9
- package/dist/client/models/StringListItem.d.ts +14 -14
- package/dist/client/models/StringProperty.d.ts +14 -14
- package/dist/client/models/UrlListItem.d.ts +5 -5
- package/dist/client/models/UrlProperty.d.ts +5 -5
- package/dist/client/models/VersionStatus.d.ts +12 -12
- package/dist/client/services/ChangesetsService.d.ts +105 -105
- package/dist/client/services/ContentService.d.ts +172 -172
- package/dist/client/services/ContentTypesService.d.ts +66 -66
- package/dist/client/services/OauthService.d.ts +17 -17
- package/dist/client/services/PackagesService.d.ts +41 -41
- package/dist/client/services/PropertyFormatsService.d.ts +26 -26
- package/dist/client/services/PropertyGroupsService.d.ts +61 -61
- package/dist/config.d.ts +7 -8
- package/dist/config.js +6 -3
- package/dist/index.d.ts +15 -15
- package/package.json +4 -3
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import type { BaseHttpRequest } from './core/BaseHttpRequest';
|
|
2
|
-
import type { OpenAPIConfig } from './core/OpenAPI';
|
|
3
|
-
import { ChangesetsService } from './services/ChangesetsService';
|
|
4
|
-
import { ContentService } from './services/ContentService';
|
|
5
|
-
import { ContentTypesService } from './services/ContentTypesService';
|
|
6
|
-
import { OauthService } from './services/OauthService';
|
|
7
|
-
import { PackagesService } from './services/PackagesService';
|
|
8
|
-
import { PropertyFormatsService } from './services/PropertyFormatsService';
|
|
9
|
-
import { PropertyGroupsService } from './services/PropertyGroupsService';
|
|
10
|
-
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
11
|
-
export declare class CmsIntegrationApiClient {
|
|
12
|
-
readonly changesets: ChangesetsService;
|
|
13
|
-
readonly content: ContentService;
|
|
14
|
-
readonly contentTypes: ContentTypesService;
|
|
15
|
-
readonly oauth: OauthService;
|
|
16
|
-
readonly packages: PackagesService;
|
|
17
|
-
readonly propertyFormats: PropertyFormatsService;
|
|
18
|
-
readonly propertyGroups: PropertyGroupsService;
|
|
19
|
-
readonly request: BaseHttpRequest;
|
|
20
|
-
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
1
|
+
import type { BaseHttpRequest } from './core/BaseHttpRequest';
|
|
2
|
+
import type { OpenAPIConfig } from './core/OpenAPI';
|
|
3
|
+
import { ChangesetsService } from './services/ChangesetsService';
|
|
4
|
+
import { ContentService } from './services/ContentService';
|
|
5
|
+
import { ContentTypesService } from './services/ContentTypesService';
|
|
6
|
+
import { OauthService } from './services/OauthService';
|
|
7
|
+
import { PackagesService } from './services/PackagesService';
|
|
8
|
+
import { PropertyFormatsService } from './services/PropertyFormatsService';
|
|
9
|
+
import { PropertyGroupsService } from './services/PropertyGroupsService';
|
|
10
|
+
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
11
|
+
export declare class CmsIntegrationApiClient {
|
|
12
|
+
readonly changesets: ChangesetsService;
|
|
13
|
+
readonly content: ContentService;
|
|
14
|
+
readonly contentTypes: ContentTypesService;
|
|
15
|
+
readonly oauth: OauthService;
|
|
16
|
+
readonly packages: PackagesService;
|
|
17
|
+
readonly propertyFormats: PropertyFormatsService;
|
|
18
|
+
readonly propertyGroups: PropertyGroupsService;
|
|
19
|
+
readonly request: BaseHttpRequest;
|
|
20
|
+
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
2
|
-
import type { ApiResult } from './ApiResult';
|
|
3
|
-
export declare class ApiError extends Error {
|
|
4
|
-
readonly url: string;
|
|
5
|
-
readonly status: number;
|
|
6
|
-
readonly statusText: string;
|
|
7
|
-
readonly body: any;
|
|
8
|
-
readonly request: ApiRequestOptions;
|
|
9
|
-
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
10
|
-
}
|
|
1
|
+
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
2
|
+
import type { ApiResult } from './ApiResult';
|
|
3
|
+
export declare class ApiError extends Error {
|
|
4
|
+
readonly url: string;
|
|
5
|
+
readonly status: number;
|
|
6
|
+
readonly statusText: string;
|
|
7
|
+
readonly body: any;
|
|
8
|
+
readonly request: ApiRequestOptions;
|
|
9
|
+
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
10
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export type ApiRequestOptions = {
|
|
2
|
-
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
|
|
3
|
-
readonly url: string;
|
|
4
|
-
readonly path?: Record<string, any>;
|
|
5
|
-
readonly cookies?: Record<string, any>;
|
|
6
|
-
readonly headers?: Record<string, any>;
|
|
7
|
-
readonly query?: Record<string, any>;
|
|
8
|
-
readonly formData?: Record<string, any>;
|
|
9
|
-
readonly body?: any;
|
|
10
|
-
readonly mediaType?: string;
|
|
11
|
-
readonly responseHeader?: string;
|
|
12
|
-
readonly errors?: Record<number, string>;
|
|
13
|
-
};
|
|
1
|
+
export type ApiRequestOptions = {
|
|
2
|
+
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
|
|
3
|
+
readonly url: string;
|
|
4
|
+
readonly path?: Record<string, any>;
|
|
5
|
+
readonly cookies?: Record<string, any>;
|
|
6
|
+
readonly headers?: Record<string, any>;
|
|
7
|
+
readonly query?: Record<string, any>;
|
|
8
|
+
readonly formData?: Record<string, any>;
|
|
9
|
+
readonly body?: any;
|
|
10
|
+
readonly mediaType?: string;
|
|
11
|
+
readonly responseHeader?: string;
|
|
12
|
+
readonly errors?: Record<number, string>;
|
|
13
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type ApiResult = {
|
|
2
|
-
readonly url: string;
|
|
3
|
-
readonly ok: boolean;
|
|
4
|
-
readonly status: number;
|
|
5
|
-
readonly statusText: string;
|
|
6
|
-
readonly body: any;
|
|
7
|
-
};
|
|
1
|
+
export type ApiResult = {
|
|
2
|
+
readonly url: string;
|
|
3
|
+
readonly ok: boolean;
|
|
4
|
+
readonly status: number;
|
|
5
|
+
readonly statusText: string;
|
|
6
|
+
readonly body: any;
|
|
7
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
2
|
-
import type { CancelablePromise } from './CancelablePromise';
|
|
3
|
-
import type { OpenAPIConfig } from './OpenAPI';
|
|
4
|
-
export declare abstract class BaseHttpRequest {
|
|
5
|
-
readonly config: OpenAPIConfig;
|
|
6
|
-
constructor(config: OpenAPIConfig);
|
|
7
|
-
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
8
|
-
}
|
|
1
|
+
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
2
|
+
import type { CancelablePromise } from './CancelablePromise';
|
|
3
|
+
import type { OpenAPIConfig } from './OpenAPI';
|
|
4
|
+
export declare abstract class BaseHttpRequest {
|
|
5
|
+
readonly config: OpenAPIConfig;
|
|
6
|
+
constructor(config: OpenAPIConfig);
|
|
7
|
+
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
8
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export declare class CancelError extends Error {
|
|
2
|
-
constructor(message: string);
|
|
3
|
-
get isCancelled(): boolean;
|
|
4
|
-
}
|
|
5
|
-
export interface OnCancel {
|
|
6
|
-
readonly isResolved: boolean;
|
|
7
|
-
readonly isRejected: boolean;
|
|
8
|
-
readonly isCancelled: boolean;
|
|
9
|
-
(cancelHandler: () => void): void;
|
|
10
|
-
}
|
|
11
|
-
export declare class CancelablePromise<T> implements Promise<T> {
|
|
12
|
-
#private;
|
|
13
|
-
constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
|
|
14
|
-
get [Symbol.toStringTag](): string;
|
|
15
|
-
then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
16
|
-
catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
|
|
17
|
-
finally(onFinally?: (() => void) | null): Promise<T>;
|
|
18
|
-
cancel(): void;
|
|
19
|
-
get isCancelled(): boolean;
|
|
20
|
-
}
|
|
1
|
+
export declare class CancelError extends Error {
|
|
2
|
+
constructor(message: string);
|
|
3
|
+
get isCancelled(): boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface OnCancel {
|
|
6
|
+
readonly isResolved: boolean;
|
|
7
|
+
readonly isRejected: boolean;
|
|
8
|
+
readonly isCancelled: boolean;
|
|
9
|
+
(cancelHandler: () => void): void;
|
|
10
|
+
}
|
|
11
|
+
export declare class CancelablePromise<T> implements Promise<T> {
|
|
12
|
+
#private;
|
|
13
|
+
constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
|
|
14
|
+
get [Symbol.toStringTag](): string;
|
|
15
|
+
then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
16
|
+
catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
|
|
17
|
+
finally(onFinally?: (() => void) | null): Promise<T>;
|
|
18
|
+
cancel(): void;
|
|
19
|
+
get isCancelled(): boolean;
|
|
20
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
2
|
-
import { BaseHttpRequest } from './BaseHttpRequest';
|
|
3
|
-
import type { CancelablePromise } from './CancelablePromise';
|
|
4
|
-
import type { OpenAPIConfig } from './OpenAPI';
|
|
5
|
-
export declare class FetchHttpRequest extends BaseHttpRequest {
|
|
6
|
-
constructor(config: OpenAPIConfig);
|
|
7
|
-
/**
|
|
8
|
-
* Request method
|
|
9
|
-
* @param options The request options from the service
|
|
10
|
-
* @returns CancelablePromise<T>
|
|
11
|
-
* @throws ApiError
|
|
12
|
-
*/
|
|
13
|
-
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
14
|
-
}
|
|
1
|
+
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
2
|
+
import { BaseHttpRequest } from './BaseHttpRequest';
|
|
3
|
+
import type { CancelablePromise } from './CancelablePromise';
|
|
4
|
+
import type { OpenAPIConfig } from './OpenAPI';
|
|
5
|
+
export declare class FetchHttpRequest extends BaseHttpRequest {
|
|
6
|
+
constructor(config: OpenAPIConfig);
|
|
7
|
+
/**
|
|
8
|
+
* Request method
|
|
9
|
+
* @param options The request options from the service
|
|
10
|
+
* @returns CancelablePromise<T>
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
14
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
2
|
-
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
|
|
3
|
-
type Headers = Record<string, string>;
|
|
4
|
-
export type OpenAPIConfig = {
|
|
5
|
-
BASE: string;
|
|
6
|
-
VERSION: string;
|
|
7
|
-
WITH_CREDENTIALS: boolean;
|
|
8
|
-
CREDENTIALS: 'include' | 'omit' | 'same-origin';
|
|
9
|
-
TOKEN?: string | Resolver<string> | undefined;
|
|
10
|
-
USERNAME?: string | Resolver<string> | undefined;
|
|
11
|
-
PASSWORD?: string | Resolver<string> | undefined;
|
|
12
|
-
HEADERS?: Headers | Resolver<Headers> | undefined;
|
|
13
|
-
ENCODE_PATH?: ((path: string) => string) | undefined;
|
|
14
|
-
};
|
|
15
|
-
export declare const OpenAPI: OpenAPIConfig;
|
|
16
|
-
export {};
|
|
1
|
+
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
2
|
+
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
|
|
3
|
+
type Headers = Record<string, string>;
|
|
4
|
+
export type OpenAPIConfig = {
|
|
5
|
+
BASE: string;
|
|
6
|
+
VERSION: string;
|
|
7
|
+
WITH_CREDENTIALS: boolean;
|
|
8
|
+
CREDENTIALS: 'include' | 'omit' | 'same-origin';
|
|
9
|
+
TOKEN?: string | Resolver<string> | undefined;
|
|
10
|
+
USERNAME?: string | Resolver<string> | undefined;
|
|
11
|
+
PASSWORD?: string | Resolver<string> | undefined;
|
|
12
|
+
HEADERS?: Headers | Resolver<Headers> | undefined;
|
|
13
|
+
ENCODE_PATH?: ((path: string) => string) | undefined;
|
|
14
|
+
};
|
|
15
|
+
export declare const OpenAPI: OpenAPIConfig;
|
|
16
|
+
export {};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
2
|
-
import type { ApiResult } from './ApiResult';
|
|
3
|
-
import { CancelablePromise } from './CancelablePromise';
|
|
4
|
-
import type { OnCancel } from './CancelablePromise';
|
|
5
|
-
import type { OpenAPIConfig } from './OpenAPI';
|
|
6
|
-
export declare const isDefined: <T>(value: T | null | undefined) => value is Exclude<T, null | undefined>;
|
|
7
|
-
export declare const isString: (value: any) => value is string;
|
|
8
|
-
export declare const isStringWithValue: (value: any) => value is string;
|
|
9
|
-
export declare const isBlob: (value: any) => value is Blob;
|
|
10
|
-
export declare const isFormData: (value: any) => value is FormData;
|
|
11
|
-
export declare const base64: (str: string) => string;
|
|
12
|
-
export declare const getQueryString: (params: Record<string, any>) => string;
|
|
13
|
-
export declare const getFormData: (options: ApiRequestOptions) => FormData | undefined;
|
|
14
|
-
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
|
|
15
|
-
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>) => Promise<T | undefined>;
|
|
16
|
-
export declare const getHeaders: (config: OpenAPIConfig, options: ApiRequestOptions) => Promise<Headers>;
|
|
17
|
-
export declare const getRequestBody: (options: ApiRequestOptions) => any;
|
|
18
|
-
export declare const sendRequest: (config: OpenAPIConfig, options: ApiRequestOptions, url: string, body: any, formData: FormData | undefined, headers: Headers, onCancel: OnCancel) => Promise<Response>;
|
|
19
|
-
export declare const getResponseHeader: (response: Response, responseHeader?: string) => string | undefined;
|
|
20
|
-
export declare const getResponseBody: (response: Response) => Promise<any>;
|
|
21
|
-
export declare const catchErrorCodes: (options: ApiRequestOptions, result: ApiResult) => void;
|
|
22
|
-
/**
|
|
23
|
-
* Request method
|
|
24
|
-
* @param config The OpenAPI configuration object
|
|
25
|
-
* @param options The request options from the service
|
|
26
|
-
* @returns CancelablePromise<T>
|
|
27
|
-
* @throws ApiError
|
|
28
|
-
*/
|
|
29
|
-
export declare const request: <T>(config: OpenAPIConfig, options: ApiRequestOptions) => CancelablePromise<T>;
|
|
30
|
-
export {};
|
|
1
|
+
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
2
|
+
import type { ApiResult } from './ApiResult';
|
|
3
|
+
import { CancelablePromise } from './CancelablePromise';
|
|
4
|
+
import type { OnCancel } from './CancelablePromise';
|
|
5
|
+
import type { OpenAPIConfig } from './OpenAPI';
|
|
6
|
+
export declare const isDefined: <T>(value: T | null | undefined) => value is Exclude<T, null | undefined>;
|
|
7
|
+
export declare const isString: (value: any) => value is string;
|
|
8
|
+
export declare const isStringWithValue: (value: any) => value is string;
|
|
9
|
+
export declare const isBlob: (value: any) => value is Blob;
|
|
10
|
+
export declare const isFormData: (value: any) => value is FormData;
|
|
11
|
+
export declare const base64: (str: string) => string;
|
|
12
|
+
export declare const getQueryString: (params: Record<string, any>) => string;
|
|
13
|
+
export declare const getFormData: (options: ApiRequestOptions) => FormData | undefined;
|
|
14
|
+
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
|
|
15
|
+
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>) => Promise<T | undefined>;
|
|
16
|
+
export declare const getHeaders: (config: OpenAPIConfig, options: ApiRequestOptions) => Promise<Headers>;
|
|
17
|
+
export declare const getRequestBody: (options: ApiRequestOptions) => any;
|
|
18
|
+
export declare const sendRequest: (config: OpenAPIConfig, options: ApiRequestOptions, url: string, body: any, formData: FormData | undefined, headers: Headers, onCancel: OnCancel) => Promise<Response>;
|
|
19
|
+
export declare const getResponseHeader: (response: Response, responseHeader?: string) => string | undefined;
|
|
20
|
+
export declare const getResponseBody: (response: Response) => Promise<any>;
|
|
21
|
+
export declare const catchErrorCodes: (options: ApiRequestOptions, result: ApiResult) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Request method
|
|
24
|
+
* @param config The OpenAPI configuration object
|
|
25
|
+
* @param options The request options from the service
|
|
26
|
+
* @returns CancelablePromise<T>
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
export declare const request: <T>(config: OpenAPIConfig, options: ApiRequestOptions) => CancelablePromise<T>;
|
|
30
|
+
export {};
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
export { CmsIntegrationApiClient } from './CmsIntegrationApiClient';
|
|
2
|
-
export { ApiError } from './core/ApiError';
|
|
3
|
-
export { BaseHttpRequest } from './core/BaseHttpRequest';
|
|
4
|
-
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
5
|
-
export { OpenAPI } from './core/OpenAPI';
|
|
6
|
-
export type { OpenAPIConfig } from './core/OpenAPI';
|
|
7
|
-
export type { BinaryProperty } from './models/BinaryProperty';
|
|
8
|
-
export type { BooleanProperty } from './models/BooleanProperty';
|
|
9
|
-
export type { Changeset } from './models/Changeset';
|
|
10
|
-
export type { ChangesetItem } from './models/ChangesetItem';
|
|
11
|
-
export type { ChangesetItemPage } from './models/ChangesetItemPage';
|
|
12
|
-
export type { ChangesetPage } from './models/ChangesetPage';
|
|
13
|
-
export type { ComponentListItem } from './models/ComponentListItem';
|
|
14
|
-
export type { ComponentProperty } from './models/ComponentProperty';
|
|
15
|
-
export { ContentBaseType } from './models/ContentBaseType';
|
|
16
|
-
export type { ContentComponent } from './models/ContentComponent';
|
|
17
|
-
export type { ContentItem } from './models/ContentItem';
|
|
18
|
-
export type { ContentItemListWithContentTypes } from './models/ContentItemListWithContentTypes';
|
|
19
|
-
export type { ContentItemPage } from './models/ContentItemPage';
|
|
20
|
-
export type { ContentItemWithContentTypes } from './models/ContentItemWithContentTypes';
|
|
21
|
-
export type { ContentListItem } from './models/ContentListItem';
|
|
22
|
-
export type { ContentLocaleInfo } from './models/ContentLocaleInfo';
|
|
23
|
-
export type { ContentMetadata } from './models/ContentMetadata';
|
|
24
|
-
export type { ContentMetadataPage } from './models/ContentMetadataPage';
|
|
25
|
-
export type { ContentProperty } from './models/ContentProperty';
|
|
26
|
-
export type { ContentReference } from './models/ContentReference';
|
|
27
|
-
export type { ContentReferenceListItem } from './models/ContentReferenceListItem';
|
|
28
|
-
export type { ContentReferenceProperty } from './models/ContentReferenceProperty';
|
|
29
|
-
export type { ContentType } from './models/ContentType';
|
|
30
|
-
export { ContentTypeFeature } from './models/ContentTypeFeature';
|
|
31
|
-
export type { ContentTypePage } from './models/ContentTypePage';
|
|
32
|
-
export type { ContentTypeProperty } from './models/ContentTypeProperty';
|
|
33
|
-
export { ContentTypeUsage } from './models/ContentTypeUsage';
|
|
34
|
-
export type { CopyContentOptions } from './models/CopyContentOptions';
|
|
35
|
-
export type { DateTimeListItem } from './models/DateTimeListItem';
|
|
36
|
-
export type { DateTimeProperty } from './models/DateTimeProperty';
|
|
37
|
-
export type { DoubleEnumerationSettings } from './models/DoubleEnumerationSettings';
|
|
38
|
-
export type { FloatListItem } from './models/FloatListItem';
|
|
39
|
-
export type { FloatProperty } from './models/FloatProperty';
|
|
40
|
-
export type { ImageDescriptor } from './models/ImageDescriptor';
|
|
41
|
-
export type { ImportPackageMessage } from './models/ImportPackageMessage';
|
|
42
|
-
export type { ImportPackageResult } from './models/ImportPackageResult';
|
|
43
|
-
export { IndexingType } from './models/IndexingType';
|
|
44
|
-
export type { Int32EnumerationSettings } from './models/Int32EnumerationSettings';
|
|
45
|
-
export type { IntegerListItem } from './models/IntegerListItem';
|
|
46
|
-
export type { IntegerProperty } from './models/IntegerProperty';
|
|
47
|
-
export type { JsonStringProperty } from './models/JsonStringProperty';
|
|
48
|
-
export type { ListProperty } from './models/ListProperty';
|
|
49
|
-
export type { ListPropertyItem } from './models/ListPropertyItem';
|
|
50
|
-
export { LocaleStatus } from './models/LocaleStatus';
|
|
51
|
-
export type { Manifest } from './models/Manifest';
|
|
52
|
-
export type { OauthToken } from './models/OauthToken';
|
|
53
|
-
export type { OauthTokenError } from './models/OauthTokenError';
|
|
54
|
-
export type { OauthTokenRequest } from './models/OauthTokenRequest';
|
|
55
|
-
export type { PackageJob } from './models/PackageJob';
|
|
56
|
-
export type { PackageJobMessage } from './models/PackageJobMessage';
|
|
57
|
-
export type { PackageJobStatus } from './models/PackageJobStatus';
|
|
58
|
-
export type { ProblemDetails } from './models/ProblemDetails';
|
|
59
|
-
export { PropertyDataType } from './models/PropertyDataType';
|
|
60
|
-
export type { PropertyFormat } from './models/PropertyFormat';
|
|
61
|
-
export type { PropertyFormatPage } from './models/PropertyFormatPage';
|
|
62
|
-
export type { PropertyGroup } from './models/PropertyGroup';
|
|
63
|
-
export type { PropertyGroupPage } from './models/PropertyGroupPage';
|
|
64
|
-
export type { StringEnumerationSettings } from './models/StringEnumerationSettings';
|
|
65
|
-
export type { StringListItem } from './models/StringListItem';
|
|
66
|
-
export type { StringProperty } from './models/StringProperty';
|
|
67
|
-
export type { UrlListItem } from './models/UrlListItem';
|
|
68
|
-
export type { UrlProperty } from './models/UrlProperty';
|
|
69
|
-
export { VersionStatus } from './models/VersionStatus';
|
|
70
|
-
export { ChangesetsService } from './services/ChangesetsService';
|
|
71
|
-
export { ContentService } from './services/ContentService';
|
|
72
|
-
export { ContentTypesService } from './services/ContentTypesService';
|
|
73
|
-
export { OauthService } from './services/OauthService';
|
|
74
|
-
export { PackagesService } from './services/PackagesService';
|
|
75
|
-
export { PropertyFormatsService } from './services/PropertyFormatsService';
|
|
76
|
-
export { PropertyGroupsService } from './services/PropertyGroupsService';
|
|
1
|
+
export { CmsIntegrationApiClient } from './CmsIntegrationApiClient';
|
|
2
|
+
export { ApiError } from './core/ApiError';
|
|
3
|
+
export { BaseHttpRequest } from './core/BaseHttpRequest';
|
|
4
|
+
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
5
|
+
export { OpenAPI } from './core/OpenAPI';
|
|
6
|
+
export type { OpenAPIConfig } from './core/OpenAPI';
|
|
7
|
+
export type { BinaryProperty } from './models/BinaryProperty';
|
|
8
|
+
export type { BooleanProperty } from './models/BooleanProperty';
|
|
9
|
+
export type { Changeset } from './models/Changeset';
|
|
10
|
+
export type { ChangesetItem } from './models/ChangesetItem';
|
|
11
|
+
export type { ChangesetItemPage } from './models/ChangesetItemPage';
|
|
12
|
+
export type { ChangesetPage } from './models/ChangesetPage';
|
|
13
|
+
export type { ComponentListItem } from './models/ComponentListItem';
|
|
14
|
+
export type { ComponentProperty } from './models/ComponentProperty';
|
|
15
|
+
export { ContentBaseType } from './models/ContentBaseType';
|
|
16
|
+
export type { ContentComponent } from './models/ContentComponent';
|
|
17
|
+
export type { ContentItem } from './models/ContentItem';
|
|
18
|
+
export type { ContentItemListWithContentTypes } from './models/ContentItemListWithContentTypes';
|
|
19
|
+
export type { ContentItemPage } from './models/ContentItemPage';
|
|
20
|
+
export type { ContentItemWithContentTypes } from './models/ContentItemWithContentTypes';
|
|
21
|
+
export type { ContentListItem } from './models/ContentListItem';
|
|
22
|
+
export type { ContentLocaleInfo } from './models/ContentLocaleInfo';
|
|
23
|
+
export type { ContentMetadata } from './models/ContentMetadata';
|
|
24
|
+
export type { ContentMetadataPage } from './models/ContentMetadataPage';
|
|
25
|
+
export type { ContentProperty } from './models/ContentProperty';
|
|
26
|
+
export type { ContentReference } from './models/ContentReference';
|
|
27
|
+
export type { ContentReferenceListItem } from './models/ContentReferenceListItem';
|
|
28
|
+
export type { ContentReferenceProperty } from './models/ContentReferenceProperty';
|
|
29
|
+
export type { ContentType } from './models/ContentType';
|
|
30
|
+
export { ContentTypeFeature } from './models/ContentTypeFeature';
|
|
31
|
+
export type { ContentTypePage } from './models/ContentTypePage';
|
|
32
|
+
export type { ContentTypeProperty } from './models/ContentTypeProperty';
|
|
33
|
+
export { ContentTypeUsage } from './models/ContentTypeUsage';
|
|
34
|
+
export type { CopyContentOptions } from './models/CopyContentOptions';
|
|
35
|
+
export type { DateTimeListItem } from './models/DateTimeListItem';
|
|
36
|
+
export type { DateTimeProperty } from './models/DateTimeProperty';
|
|
37
|
+
export type { DoubleEnumerationSettings } from './models/DoubleEnumerationSettings';
|
|
38
|
+
export type { FloatListItem } from './models/FloatListItem';
|
|
39
|
+
export type { FloatProperty } from './models/FloatProperty';
|
|
40
|
+
export type { ImageDescriptor } from './models/ImageDescriptor';
|
|
41
|
+
export type { ImportPackageMessage } from './models/ImportPackageMessage';
|
|
42
|
+
export type { ImportPackageResult } from './models/ImportPackageResult';
|
|
43
|
+
export { IndexingType } from './models/IndexingType';
|
|
44
|
+
export type { Int32EnumerationSettings } from './models/Int32EnumerationSettings';
|
|
45
|
+
export type { IntegerListItem } from './models/IntegerListItem';
|
|
46
|
+
export type { IntegerProperty } from './models/IntegerProperty';
|
|
47
|
+
export type { JsonStringProperty } from './models/JsonStringProperty';
|
|
48
|
+
export type { ListProperty } from './models/ListProperty';
|
|
49
|
+
export type { ListPropertyItem } from './models/ListPropertyItem';
|
|
50
|
+
export { LocaleStatus } from './models/LocaleStatus';
|
|
51
|
+
export type { Manifest } from './models/Manifest';
|
|
52
|
+
export type { OauthToken } from './models/OauthToken';
|
|
53
|
+
export type { OauthTokenError } from './models/OauthTokenError';
|
|
54
|
+
export type { OauthTokenRequest } from './models/OauthTokenRequest';
|
|
55
|
+
export type { PackageJob } from './models/PackageJob';
|
|
56
|
+
export type { PackageJobMessage } from './models/PackageJobMessage';
|
|
57
|
+
export type { PackageJobStatus } from './models/PackageJobStatus';
|
|
58
|
+
export type { ProblemDetails } from './models/ProblemDetails';
|
|
59
|
+
export { PropertyDataType } from './models/PropertyDataType';
|
|
60
|
+
export type { PropertyFormat } from './models/PropertyFormat';
|
|
61
|
+
export type { PropertyFormatPage } from './models/PropertyFormatPage';
|
|
62
|
+
export type { PropertyGroup } from './models/PropertyGroup';
|
|
63
|
+
export type { PropertyGroupPage } from './models/PropertyGroupPage';
|
|
64
|
+
export type { StringEnumerationSettings } from './models/StringEnumerationSettings';
|
|
65
|
+
export type { StringListItem } from './models/StringListItem';
|
|
66
|
+
export type { StringProperty } from './models/StringProperty';
|
|
67
|
+
export type { UrlListItem } from './models/UrlListItem';
|
|
68
|
+
export type { UrlProperty } from './models/UrlProperty';
|
|
69
|
+
export { VersionStatus } from './models/VersionStatus';
|
|
70
|
+
export { ChangesetsService } from './services/ChangesetsService';
|
|
71
|
+
export { ContentService } from './services/ContentService';
|
|
72
|
+
export { ContentTypesService } from './services/ContentTypesService';
|
|
73
|
+
export { OauthService } from './services/OauthService';
|
|
74
|
+
export { PackagesService } from './services/PackagesService';
|
|
75
|
+
export { PropertyFormatsService } from './services/PropertyFormatsService';
|
|
76
|
+
export { PropertyGroupsService } from './services/PropertyGroupsService';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ContentTypeProperty } from './ContentTypeProperty';
|
|
2
|
-
import type { ImageDescriptor } from './ImageDescriptor';
|
|
3
|
-
/**
|
|
4
|
-
* Describes a property that can contain a reference to binary data.
|
|
5
|
-
*/
|
|
6
|
-
export type BinaryProperty = (ContentTypeProperty & {
|
|
7
|
-
imageDescriptor?: ImageDescriptor;
|
|
8
|
-
});
|
|
1
|
+
import type { ContentTypeProperty } from './ContentTypeProperty';
|
|
2
|
+
import type { ImageDescriptor } from './ImageDescriptor';
|
|
3
|
+
/**
|
|
4
|
+
* Describes a property that can contain a reference to binary data.
|
|
5
|
+
*/
|
|
6
|
+
export type BinaryProperty = (ContentTypeProperty & {
|
|
7
|
+
imageDescriptor?: ImageDescriptor;
|
|
8
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ContentTypeProperty } from './ContentTypeProperty';
|
|
2
|
-
/**
|
|
3
|
-
* Describes a property that can contain a boolean value.
|
|
4
|
-
*/
|
|
5
|
-
export type BooleanProperty = ContentTypeProperty;
|
|
1
|
+
import type { ContentTypeProperty } from './ContentTypeProperty';
|
|
2
|
+
/**
|
|
3
|
+
* Describes a property that can contain a boolean value.
|
|
4
|
+
*/
|
|
5
|
+
export type BooleanProperty = ContentTypeProperty;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A writable implementation of an Changeset.
|
|
3
|
-
*/
|
|
4
|
-
export type Changeset = {
|
|
5
|
-
/**
|
|
6
|
-
* The unique key of this Changeset
|
|
7
|
-
*/
|
|
8
|
-
key: string;
|
|
9
|
-
/**
|
|
10
|
-
* The source of this Changeset
|
|
11
|
-
*/
|
|
12
|
-
source?: string;
|
|
13
|
-
/**
|
|
14
|
-
* The name of this Changeset.
|
|
15
|
-
*/
|
|
16
|
-
displayName: string;
|
|
17
|
-
/**
|
|
18
|
-
* A timestamp indicating when this changeset was first created.
|
|
19
|
-
*/
|
|
20
|
-
readonly created?: string;
|
|
21
|
-
/**
|
|
22
|
-
* The username of the user that created this changeset.
|
|
23
|
-
*/
|
|
24
|
-
readonly createdBy?: string;
|
|
25
|
-
readonly lastModified?: string;
|
|
26
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* A writable implementation of an Changeset.
|
|
3
|
+
*/
|
|
4
|
+
export type Changeset = {
|
|
5
|
+
/**
|
|
6
|
+
* The unique key of this Changeset
|
|
7
|
+
*/
|
|
8
|
+
key: string;
|
|
9
|
+
/**
|
|
10
|
+
* The source of this Changeset
|
|
11
|
+
*/
|
|
12
|
+
source?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The name of this Changeset.
|
|
15
|
+
*/
|
|
16
|
+
displayName: string;
|
|
17
|
+
/**
|
|
18
|
+
* A timestamp indicating when this changeset was first created.
|
|
19
|
+
*/
|
|
20
|
+
readonly created?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The username of the user that created this changeset.
|
|
23
|
+
*/
|
|
24
|
+
readonly createdBy?: string;
|
|
25
|
+
readonly lastModified?: string;
|
|
26
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { ContentReference } from './ContentReference';
|
|
2
|
-
/**
|
|
3
|
-
* A writable implementation of an ChangesetItem.
|
|
4
|
-
*/
|
|
5
|
-
export type ChangesetItem = {
|
|
6
|
-
reference: ContentReference;
|
|
7
|
-
/**
|
|
8
|
-
* Gets/sets item category.
|
|
9
|
-
*/
|
|
10
|
-
category?: string;
|
|
11
|
-
};
|
|
1
|
+
import type { ContentReference } from './ContentReference';
|
|
2
|
+
/**
|
|
3
|
+
* A writable implementation of an ChangesetItem.
|
|
4
|
+
*/
|
|
5
|
+
export type ChangesetItem = {
|
|
6
|
+
reference: ContentReference;
|
|
7
|
+
/**
|
|
8
|
+
* Gets/sets item category.
|
|
9
|
+
*/
|
|
10
|
+
category?: string;
|
|
11
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { ChangesetItem } from './ChangesetItem';
|
|
2
|
-
export type ChangesetItemPage = {
|
|
3
|
-
/**
|
|
4
|
-
* The items in this paged collection.
|
|
5
|
-
*/
|
|
6
|
-
readonly items?: Array<ChangesetItem>;
|
|
7
|
-
/**
|
|
8
|
-
* The zero-based index of the current page.
|
|
9
|
-
*/
|
|
10
|
-
readonly pageIndex?: number;
|
|
11
|
-
/**
|
|
12
|
-
* The number of item in each page. Not necessarily the same as the number of items in this page.
|
|
13
|
-
*/
|
|
14
|
-
readonly pageSize?: number;
|
|
15
|
-
/**
|
|
16
|
-
* The estimated total number of items in the collection. May be omitted if the total item count is unknown.
|
|
17
|
-
*/
|
|
18
|
-
readonly totalItemCount?: number;
|
|
19
|
-
};
|
|
1
|
+
import type { ChangesetItem } from './ChangesetItem';
|
|
2
|
+
export type ChangesetItemPage = {
|
|
3
|
+
/**
|
|
4
|
+
* The items in this paged collection.
|
|
5
|
+
*/
|
|
6
|
+
readonly items?: Array<ChangesetItem>;
|
|
7
|
+
/**
|
|
8
|
+
* The zero-based index of the current page.
|
|
9
|
+
*/
|
|
10
|
+
readonly pageIndex?: number;
|
|
11
|
+
/**
|
|
12
|
+
* The number of item in each page. Not necessarily the same as the number of items in this page.
|
|
13
|
+
*/
|
|
14
|
+
readonly pageSize?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The estimated total number of items in the collection. May be omitted if the total item count is unknown.
|
|
17
|
+
*/
|
|
18
|
+
readonly totalItemCount?: number;
|
|
19
|
+
};
|