@wix/multilingual 1.0.11 → 1.0.13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/multilingual",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,13 +18,12 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/multilingual_machine-translation": "1.0.
|
|
22
|
-
"@wix/multilingual_site-translator": "1.0.
|
|
23
|
-
"@wix/multilingual_translation-contents": "1.0.
|
|
24
|
-
"@wix/multilingual_translation-schemas": "1.0.
|
|
21
|
+
"@wix/multilingual_machine-translation": "1.0.14",
|
|
22
|
+
"@wix/multilingual_site-translator": "1.0.3",
|
|
23
|
+
"@wix/multilingual_translation-contents": "1.0.2",
|
|
24
|
+
"@wix/multilingual_translation-schemas": "1.0.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
|
|
28
27
|
"glob": "^10.4.1",
|
|
29
28
|
"rollup": "^4.18.0",
|
|
30
29
|
"rollup-plugin-dts": "^6.1.1",
|
|
@@ -46,5 +45,5 @@
|
|
|
46
45
|
"fqdn": ""
|
|
47
46
|
}
|
|
48
47
|
},
|
|
49
|
-
"falconPackageHash": "
|
|
48
|
+
"falconPackageHash": "02e103a31faa01f8ee77d936cb0458cfec476a334283368ca4b48da5"
|
|
50
49
|
}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* A translatable content is a unit of content to translate.
|
|
3
|
+
*
|
|
4
|
+
* Use [Machine Translate](/translatable-content/machine-translate) to translate a single unit of translatable content, or [Bulk Machine Translate](/translatable-content/bulk-machine-translate)
|
|
5
|
+
* to translate many.
|
|
5
6
|
*/
|
|
6
7
|
interface TranslatableContent extends TranslatableContentContentOneOf {
|
|
7
|
-
/**
|
|
8
|
+
/** Plain text. */
|
|
8
9
|
plainTextContent?: string;
|
|
9
|
-
/**
|
|
10
|
+
/** HTML-encoded. */
|
|
10
11
|
htmlContent?: string;
|
|
11
|
-
/**
|
|
12
|
+
/** Rich content. */
|
|
12
13
|
richContent?: RichContent$1;
|
|
13
|
-
/**
|
|
14
|
+
/** Translatable content ID. */
|
|
14
15
|
_id?: string | null;
|
|
15
|
-
/**
|
|
16
|
+
/** Format of the translatable content. */
|
|
16
17
|
format?: Format;
|
|
17
18
|
}
|
|
18
19
|
/** @oneof */
|
|
19
20
|
interface TranslatableContentContentOneOf {
|
|
20
|
-
/**
|
|
21
|
+
/** Plain text. */
|
|
21
22
|
plainTextContent?: string;
|
|
22
|
-
/**
|
|
23
|
+
/** HTML-encoded. */
|
|
23
24
|
htmlContent?: string;
|
|
24
|
-
/**
|
|
25
|
+
/** Rich content. */
|
|
25
26
|
richContent?: RichContent$1;
|
|
26
27
|
}
|
|
27
28
|
declare enum Format {
|
|
@@ -723,7 +724,7 @@ declare enum MapType$1 {
|
|
|
723
724
|
/** Roadmap map type */
|
|
724
725
|
ROADMAP = "ROADMAP",
|
|
725
726
|
/** Satellite map type */
|
|
726
|
-
|
|
727
|
+
SATELITE = "SATELITE",
|
|
727
728
|
/** Hybrid map type */
|
|
728
729
|
HYBRID = "HYBRID",
|
|
729
730
|
/** Terrain map type */
|
|
@@ -1179,12 +1180,16 @@ interface AudioData$1 {
|
|
|
1179
1180
|
html?: string | null;
|
|
1180
1181
|
}
|
|
1181
1182
|
interface OrderedListData$1 {
|
|
1182
|
-
/** Indentation level from
|
|
1183
|
+
/** Indentation level from 0-4. */
|
|
1183
1184
|
indentation?: number;
|
|
1185
|
+
/** Offset level from 0-4. */
|
|
1186
|
+
offset?: number | null;
|
|
1184
1187
|
}
|
|
1185
1188
|
interface BulletedListData$1 {
|
|
1186
|
-
/** Indentation level from
|
|
1189
|
+
/** Indentation level from 0-4. */
|
|
1187
1190
|
indentation?: number;
|
|
1191
|
+
/** Offset level from 0-4. */
|
|
1192
|
+
offset?: number | null;
|
|
1188
1193
|
}
|
|
1189
1194
|
interface BlockquoteData$1 {
|
|
1190
1195
|
/** Indentation level from 1-4. */
|
|
@@ -1510,19 +1515,19 @@ declare enum SupportedLanguage {
|
|
|
1510
1515
|
ZU = "ZU"
|
|
1511
1516
|
}
|
|
1512
1517
|
interface MachineTranslateResponse {
|
|
1513
|
-
/** The
|
|
1518
|
+
/** The translated content. */
|
|
1514
1519
|
translatedContent?: TranslatableContent;
|
|
1515
1520
|
}
|
|
1516
1521
|
interface BulkMachineTranslateResponse {
|
|
1517
|
-
/**
|
|
1522
|
+
/** List of results for each item in the bulk request. */
|
|
1518
1523
|
results?: BulkTranslateResult[];
|
|
1519
|
-
/**
|
|
1524
|
+
/** Metadata for the overall bulk action, including success and failure counts. */
|
|
1520
1525
|
bulkActionMetadata?: BulkActionMetadata$1;
|
|
1521
1526
|
}
|
|
1522
1527
|
interface BulkTranslateResult {
|
|
1523
|
-
/**
|
|
1528
|
+
/** Metadata for the individual item in the request. */
|
|
1524
1529
|
itemMetadata?: ItemMetadata$1;
|
|
1525
|
-
/** The translated
|
|
1530
|
+
/** The translated content. */
|
|
1526
1531
|
item?: TranslatableContent;
|
|
1527
1532
|
}
|
|
1528
1533
|
interface ItemMetadata$1 {
|
|
@@ -2513,21 +2518,22 @@ interface BulkMachineTranslateResponseNonNullableFields {
|
|
|
2513
2518
|
};
|
|
2514
2519
|
}
|
|
2515
2520
|
interface MachineTranslateOptions {
|
|
2516
|
-
/**
|
|
2521
|
+
/** Language which text should be translated into. */
|
|
2517
2522
|
targetLanguage: SupportedLanguage;
|
|
2518
|
-
/** The content
|
|
2523
|
+
/** The content to translate. */
|
|
2519
2524
|
contentToTranslate: TranslatableContent;
|
|
2520
2525
|
}
|
|
2521
2526
|
interface BulkMachineTranslateOptions {
|
|
2522
|
-
/**
|
|
2527
|
+
/** Language which text should be translated into. */
|
|
2523
2528
|
targetLanguage: SupportedLanguage;
|
|
2524
|
-
/**
|
|
2529
|
+
/** The content to translate. */
|
|
2525
2530
|
contentToTranslate?: TranslatableContent[];
|
|
2526
2531
|
}
|
|
2527
2532
|
|
|
2528
2533
|
type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
|
|
2529
2534
|
interface HttpClient$3 {
|
|
2530
2535
|
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
2536
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2531
2537
|
}
|
|
2532
2538
|
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
2533
2539
|
type HttpResponse$3<T = any> = {
|
|
@@ -2550,6 +2556,13 @@ type APIMetadata$3 = {
|
|
|
2550
2556
|
};
|
|
2551
2557
|
type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
|
|
2552
2558
|
|
|
2559
|
+
declare global {
|
|
2560
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2561
|
+
interface SymbolConstructor {
|
|
2562
|
+
readonly observable: symbol;
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2553
2566
|
declare function machineTranslate$1(httpClient: HttpClient$3): (sourceLanguage: SupportedLanguage, options: MachineTranslateOptions) => Promise<MachineTranslateResponse & MachineTranslateResponseNonNullableFields>;
|
|
2554
2567
|
declare function bulkMachineTranslate$1(httpClient: HttpClient$3): (sourceLanguage: SupportedLanguage, options?: BulkMachineTranslateOptions) => Promise<BulkMachineTranslateResponse & BulkMachineTranslateResponseNonNullableFields>;
|
|
2555
2568
|
|
|
@@ -2588,7 +2601,7 @@ interface Locale {
|
|
|
2588
2601
|
/**
|
|
2589
2602
|
* Deprecated, please use the language field with the region code when needed
|
|
2590
2603
|
* @deprecated
|
|
2591
|
-
* @
|
|
2604
|
+
* @targetRemovalDate 2024-04-20
|
|
2592
2605
|
*/
|
|
2593
2606
|
flag?: Flag;
|
|
2594
2607
|
}
|
|
@@ -2870,6 +2883,7 @@ interface GetSiteTranslatablesPropertiesOptions {
|
|
|
2870
2883
|
type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
|
|
2871
2884
|
interface HttpClient$2 {
|
|
2872
2885
|
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
2886
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2873
2887
|
}
|
|
2874
2888
|
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
2875
2889
|
type HttpResponse$2<T = any> = {
|
|
@@ -2892,6 +2906,13 @@ type APIMetadata$2 = {
|
|
|
2892
2906
|
};
|
|
2893
2907
|
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
2894
2908
|
|
|
2909
|
+
declare global {
|
|
2910
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2911
|
+
interface SymbolConstructor {
|
|
2912
|
+
readonly observable: symbol;
|
|
2913
|
+
}
|
|
2914
|
+
}
|
|
2915
|
+
|
|
2895
2916
|
declare function translateSite$1(httpClient: HttpClient$2): (mainLanguage: Locale, options: TranslateSiteOptions) => Promise<void>;
|
|
2896
2917
|
declare function getSiteTranslatablesProperties$1(httpClient: HttpClient$2): (mainLanguage: Locale, options?: GetSiteTranslatablesPropertiesOptions) => Promise<GetSiteTranslatablesPropertiesResponse & GetSiteTranslatablesPropertiesResponseNonNullableFields>;
|
|
2897
2918
|
|
|
@@ -3668,7 +3689,7 @@ declare enum MapType {
|
|
|
3668
3689
|
/** Roadmap map type */
|
|
3669
3690
|
ROADMAP = "ROADMAP",
|
|
3670
3691
|
/** Satellite map type */
|
|
3671
|
-
|
|
3692
|
+
SATELITE = "SATELITE",
|
|
3672
3693
|
/** Hybrid map type */
|
|
3673
3694
|
HYBRID = "HYBRID",
|
|
3674
3695
|
/** Terrain map type */
|
|
@@ -4124,12 +4145,16 @@ interface AudioData {
|
|
|
4124
4145
|
html?: string | null;
|
|
4125
4146
|
}
|
|
4126
4147
|
interface OrderedListData {
|
|
4127
|
-
/** Indentation level from
|
|
4148
|
+
/** Indentation level from 0-4. */
|
|
4128
4149
|
indentation?: number;
|
|
4150
|
+
/** Offset level from 0-4. */
|
|
4151
|
+
offset?: number | null;
|
|
4129
4152
|
}
|
|
4130
4153
|
interface BulletedListData {
|
|
4131
|
-
/** Indentation level from
|
|
4154
|
+
/** Indentation level from 0-4. */
|
|
4132
4155
|
indentation?: number;
|
|
4156
|
+
/** Offset level from 0-4. */
|
|
4157
|
+
offset?: number | null;
|
|
4133
4158
|
}
|
|
4134
4159
|
interface BlockquoteData {
|
|
4135
4160
|
/** Indentation level from 1-4. */
|
|
@@ -5918,6 +5943,7 @@ interface ContentUpdatedEnvelope {
|
|
|
5918
5943
|
metadata: EventMetadata$1;
|
|
5919
5944
|
}
|
|
5920
5945
|
interface ContentDeletedEnvelope {
|
|
5946
|
+
entity: Content;
|
|
5921
5947
|
metadata: EventMetadata$1;
|
|
5922
5948
|
}
|
|
5923
5949
|
interface QueryContentsOptions {
|
|
@@ -5936,6 +5962,7 @@ interface BulkUpdateContentOptions {
|
|
|
5936
5962
|
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
5937
5963
|
interface HttpClient$1 {
|
|
5938
5964
|
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
5965
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
5939
5966
|
}
|
|
5940
5967
|
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
5941
5968
|
type HttpResponse$1<T = any> = {
|
|
@@ -5961,13 +5988,20 @@ type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
|
5961
5988
|
__type: 'event-definition';
|
|
5962
5989
|
type: Type;
|
|
5963
5990
|
isDomainEvent?: boolean;
|
|
5964
|
-
transformations?: unknown;
|
|
5991
|
+
transformations?: (envelope: unknown) => Payload;
|
|
5965
5992
|
__payload: Payload;
|
|
5966
5993
|
};
|
|
5967
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
5994
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
5968
5995
|
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
5969
5996
|
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
5970
5997
|
|
|
5998
|
+
declare global {
|
|
5999
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
6000
|
+
interface SymbolConstructor {
|
|
6001
|
+
readonly observable: symbol;
|
|
6002
|
+
}
|
|
6003
|
+
}
|
|
6004
|
+
|
|
5971
6005
|
declare function createContent$1(httpClient: HttpClient$1): (content: Content) => Promise<Content & {
|
|
5972
6006
|
schemaId: string;
|
|
5973
6007
|
entityId: string;
|
|
@@ -7786,6 +7820,7 @@ interface ListSiteSchemasOptions {
|
|
|
7786
7820
|
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
7787
7821
|
interface HttpClient {
|
|
7788
7822
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
7823
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
7789
7824
|
}
|
|
7790
7825
|
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
7791
7826
|
type HttpResponse<T = any> = {
|
|
@@ -7811,13 +7846,20 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
|
7811
7846
|
__type: 'event-definition';
|
|
7812
7847
|
type: Type;
|
|
7813
7848
|
isDomainEvent?: boolean;
|
|
7814
|
-
transformations?: unknown;
|
|
7849
|
+
transformations?: (envelope: unknown) => Payload;
|
|
7815
7850
|
__payload: Payload;
|
|
7816
7851
|
};
|
|
7817
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
7852
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
7818
7853
|
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
7819
7854
|
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
7820
7855
|
|
|
7856
|
+
declare global {
|
|
7857
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
7858
|
+
interface SymbolConstructor {
|
|
7859
|
+
readonly observable: symbol;
|
|
7860
|
+
}
|
|
7861
|
+
}
|
|
7862
|
+
|
|
7821
7863
|
declare function getSchema$1(httpClient: HttpClient): (schemaId: string) => Promise<Schema & {
|
|
7822
7864
|
key?: {
|
|
7823
7865
|
appId: string;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* A translatable content is a unit of content to translate.
|
|
3
|
+
*
|
|
4
|
+
* Use [Machine Translate](/translatable-content/machine-translate) to translate a single unit of translatable content, or [Bulk Machine Translate](/translatable-content/bulk-machine-translate)
|
|
5
|
+
* to translate many.
|
|
5
6
|
*/
|
|
6
7
|
interface TranslatableContent extends TranslatableContentContentOneOf {
|
|
7
|
-
/**
|
|
8
|
+
/** Plain text. */
|
|
8
9
|
plainTextContent?: string;
|
|
9
|
-
/**
|
|
10
|
+
/** HTML-encoded. */
|
|
10
11
|
htmlContent?: string;
|
|
11
|
-
/**
|
|
12
|
+
/** Rich content. */
|
|
12
13
|
richContent?: RichContent$1;
|
|
13
|
-
/**
|
|
14
|
+
/** Translatable content ID. */
|
|
14
15
|
_id?: string | null;
|
|
15
|
-
/**
|
|
16
|
+
/** Format of the translatable content. */
|
|
16
17
|
format?: Format;
|
|
17
18
|
}
|
|
18
19
|
/** @oneof */
|
|
19
20
|
interface TranslatableContentContentOneOf {
|
|
20
|
-
/**
|
|
21
|
+
/** Plain text. */
|
|
21
22
|
plainTextContent?: string;
|
|
22
|
-
/**
|
|
23
|
+
/** HTML-encoded. */
|
|
23
24
|
htmlContent?: string;
|
|
24
|
-
/**
|
|
25
|
+
/** Rich content. */
|
|
25
26
|
richContent?: RichContent$1;
|
|
26
27
|
}
|
|
27
28
|
declare enum Format {
|
|
@@ -723,7 +724,7 @@ declare enum MapType$1 {
|
|
|
723
724
|
/** Roadmap map type */
|
|
724
725
|
ROADMAP = "ROADMAP",
|
|
725
726
|
/** Satellite map type */
|
|
726
|
-
|
|
727
|
+
SATELITE = "SATELITE",
|
|
727
728
|
/** Hybrid map type */
|
|
728
729
|
HYBRID = "HYBRID",
|
|
729
730
|
/** Terrain map type */
|
|
@@ -1198,12 +1199,16 @@ interface AudioData$1 {
|
|
|
1198
1199
|
html?: string | null;
|
|
1199
1200
|
}
|
|
1200
1201
|
interface OrderedListData$1 {
|
|
1201
|
-
/** Indentation level from
|
|
1202
|
+
/** Indentation level from 0-4. */
|
|
1202
1203
|
indentation?: number;
|
|
1204
|
+
/** Offset level from 0-4. */
|
|
1205
|
+
offset?: number | null;
|
|
1203
1206
|
}
|
|
1204
1207
|
interface BulletedListData$1 {
|
|
1205
|
-
/** Indentation level from
|
|
1208
|
+
/** Indentation level from 0-4. */
|
|
1206
1209
|
indentation?: number;
|
|
1210
|
+
/** Offset level from 0-4. */
|
|
1211
|
+
offset?: number | null;
|
|
1207
1212
|
}
|
|
1208
1213
|
interface BlockquoteData$1 {
|
|
1209
1214
|
/** Indentation level from 1-4. */
|
|
@@ -1255,11 +1260,11 @@ interface TextNodeStyle$1 {
|
|
|
1255
1260
|
lineHeight?: string | null;
|
|
1256
1261
|
}
|
|
1257
1262
|
interface MachineTranslateRequest {
|
|
1258
|
-
/**
|
|
1263
|
+
/** Language of the source text to translate. */
|
|
1259
1264
|
sourceLanguage: SupportedLanguage;
|
|
1260
|
-
/**
|
|
1265
|
+
/** Language which text should be translated into. */
|
|
1261
1266
|
targetLanguage: SupportedLanguage;
|
|
1262
|
-
/** The content
|
|
1267
|
+
/** The content to translate. */
|
|
1263
1268
|
contentToTranslate: TranslatableContent;
|
|
1264
1269
|
}
|
|
1265
1270
|
declare enum SupportedLanguage {
|
|
@@ -1537,7 +1542,7 @@ declare enum SupportedLanguage {
|
|
|
1537
1542
|
ZU = "ZU"
|
|
1538
1543
|
}
|
|
1539
1544
|
interface MachineTranslateResponse {
|
|
1540
|
-
/** The
|
|
1545
|
+
/** The translated content. */
|
|
1541
1546
|
translatedContent?: TranslatableContent;
|
|
1542
1547
|
}
|
|
1543
1548
|
interface NotEnoughCreditsError {
|
|
@@ -1553,23 +1558,23 @@ interface TextTooLongError {
|
|
|
1553
1558
|
interface UnknownFormatError {
|
|
1554
1559
|
}
|
|
1555
1560
|
interface BulkMachineTranslateRequest {
|
|
1556
|
-
/**
|
|
1561
|
+
/** Language of the source text to translate. */
|
|
1557
1562
|
sourceLanguage: SupportedLanguage;
|
|
1558
|
-
/**
|
|
1563
|
+
/** Language which text should be translated into. */
|
|
1559
1564
|
targetLanguage: SupportedLanguage;
|
|
1560
|
-
/**
|
|
1565
|
+
/** The content to translate. */
|
|
1561
1566
|
contentToTranslate?: TranslatableContent[];
|
|
1562
1567
|
}
|
|
1563
1568
|
interface BulkMachineTranslateResponse {
|
|
1564
|
-
/**
|
|
1569
|
+
/** List of results for each item in the bulk request. */
|
|
1565
1570
|
results?: BulkTranslateResult[];
|
|
1566
|
-
/**
|
|
1571
|
+
/** Metadata for the overall bulk action, including success and failure counts. */
|
|
1567
1572
|
bulkActionMetadata?: BulkActionMetadata$1;
|
|
1568
1573
|
}
|
|
1569
1574
|
interface BulkTranslateResult {
|
|
1570
|
-
/**
|
|
1575
|
+
/** Metadata for the individual item in the request. */
|
|
1571
1576
|
itemMetadata?: ItemMetadata$1;
|
|
1572
|
-
/** The translated
|
|
1577
|
+
/** The translated content. */
|
|
1573
1578
|
item?: TranslatableContent;
|
|
1574
1579
|
}
|
|
1575
1580
|
interface ItemMetadata$1 {
|
|
@@ -2560,20 +2565,21 @@ interface BulkMachineTranslateResponseNonNullableFields {
|
|
|
2560
2565
|
};
|
|
2561
2566
|
}
|
|
2562
2567
|
interface MachineTranslateOptions {
|
|
2563
|
-
/**
|
|
2568
|
+
/** Language which text should be translated into. */
|
|
2564
2569
|
targetLanguage: SupportedLanguage;
|
|
2565
|
-
/** The content
|
|
2570
|
+
/** The content to translate. */
|
|
2566
2571
|
contentToTranslate: TranslatableContent;
|
|
2567
2572
|
}
|
|
2568
2573
|
interface BulkMachineTranslateOptions {
|
|
2569
|
-
/**
|
|
2574
|
+
/** Language which text should be translated into. */
|
|
2570
2575
|
targetLanguage: SupportedLanguage;
|
|
2571
|
-
/**
|
|
2576
|
+
/** The content to translate. */
|
|
2572
2577
|
contentToTranslate?: TranslatableContent[];
|
|
2573
2578
|
}
|
|
2574
2579
|
|
|
2575
2580
|
interface HttpClient$3 {
|
|
2576
2581
|
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
2582
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2577
2583
|
}
|
|
2578
2584
|
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
2579
2585
|
type HttpResponse$3<T = any> = {
|
|
@@ -2595,6 +2601,13 @@ type APIMetadata$3 = {
|
|
|
2595
2601
|
packageName?: string;
|
|
2596
2602
|
};
|
|
2597
2603
|
|
|
2604
|
+
declare global {
|
|
2605
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2606
|
+
interface SymbolConstructor {
|
|
2607
|
+
readonly observable: symbol;
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
|
|
2598
2611
|
declare const __metadata$3: {
|
|
2599
2612
|
PACKAGE_NAME: string;
|
|
2600
2613
|
};
|
|
@@ -2657,7 +2670,7 @@ interface Locale {
|
|
|
2657
2670
|
/**
|
|
2658
2671
|
* Deprecated, please use the language field with the region code when needed
|
|
2659
2672
|
* @deprecated
|
|
2660
|
-
* @
|
|
2673
|
+
* @targetRemovalDate 2024-04-20
|
|
2661
2674
|
*/
|
|
2662
2675
|
flag?: Flag;
|
|
2663
2676
|
}
|
|
@@ -2946,6 +2959,7 @@ interface GetSiteTranslatablesPropertiesOptions {
|
|
|
2946
2959
|
|
|
2947
2960
|
interface HttpClient$2 {
|
|
2948
2961
|
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
2962
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2949
2963
|
}
|
|
2950
2964
|
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
2951
2965
|
type HttpResponse$2<T = any> = {
|
|
@@ -2967,6 +2981,13 @@ type APIMetadata$2 = {
|
|
|
2967
2981
|
packageName?: string;
|
|
2968
2982
|
};
|
|
2969
2983
|
|
|
2984
|
+
declare global {
|
|
2985
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2986
|
+
interface SymbolConstructor {
|
|
2987
|
+
readonly observable: symbol;
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
|
|
2970
2991
|
declare const __metadata$2: {
|
|
2971
2992
|
PACKAGE_NAME: string;
|
|
2972
2993
|
};
|
|
@@ -3755,7 +3776,7 @@ declare enum MapType {
|
|
|
3755
3776
|
/** Roadmap map type */
|
|
3756
3777
|
ROADMAP = "ROADMAP",
|
|
3757
3778
|
/** Satellite map type */
|
|
3758
|
-
|
|
3779
|
+
SATELITE = "SATELITE",
|
|
3759
3780
|
/** Hybrid map type */
|
|
3760
3781
|
HYBRID = "HYBRID",
|
|
3761
3782
|
/** Terrain map type */
|
|
@@ -4230,12 +4251,16 @@ interface AudioData {
|
|
|
4230
4251
|
html?: string | null;
|
|
4231
4252
|
}
|
|
4232
4253
|
interface OrderedListData {
|
|
4233
|
-
/** Indentation level from
|
|
4254
|
+
/** Indentation level from 0-4. */
|
|
4234
4255
|
indentation?: number;
|
|
4256
|
+
/** Offset level from 0-4. */
|
|
4257
|
+
offset?: number | null;
|
|
4235
4258
|
}
|
|
4236
4259
|
interface BulletedListData {
|
|
4237
|
-
/** Indentation level from
|
|
4260
|
+
/** Indentation level from 0-4. */
|
|
4238
4261
|
indentation?: number;
|
|
4262
|
+
/** Offset level from 0-4. */
|
|
4263
|
+
offset?: number | null;
|
|
4239
4264
|
}
|
|
4240
4265
|
interface BlockquoteData {
|
|
4241
4266
|
/** Indentation level from 1-4. */
|
|
@@ -4879,6 +4904,9 @@ interface DomainEventBodyOneOf$1 {
|
|
|
4879
4904
|
interface EntityCreatedEvent$1 {
|
|
4880
4905
|
entity?: string;
|
|
4881
4906
|
}
|
|
4907
|
+
interface RestoreInfo {
|
|
4908
|
+
deletedDate?: Date;
|
|
4909
|
+
}
|
|
4882
4910
|
interface EntityUpdatedEvent$1 {
|
|
4883
4911
|
/**
|
|
4884
4912
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -7960,6 +7988,7 @@ interface ContentUpdatedEnvelope {
|
|
|
7960
7988
|
metadata: EventMetadata$1;
|
|
7961
7989
|
}
|
|
7962
7990
|
interface ContentDeletedEnvelope {
|
|
7991
|
+
entity: Content;
|
|
7963
7992
|
metadata: EventMetadata$1;
|
|
7964
7993
|
}
|
|
7965
7994
|
interface QueryContentsOptions {
|
|
@@ -7977,6 +8006,7 @@ interface BulkUpdateContentOptions {
|
|
|
7977
8006
|
|
|
7978
8007
|
interface HttpClient$1 {
|
|
7979
8008
|
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
8009
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
7980
8010
|
}
|
|
7981
8011
|
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
7982
8012
|
type HttpResponse$1<T = any> = {
|
|
@@ -8001,10 +8031,17 @@ type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
|
8001
8031
|
__type: 'event-definition';
|
|
8002
8032
|
type: Type;
|
|
8003
8033
|
isDomainEvent?: boolean;
|
|
8004
|
-
transformations?: unknown;
|
|
8034
|
+
transformations?: (envelope: unknown) => Payload;
|
|
8005
8035
|
__payload: Payload;
|
|
8006
8036
|
};
|
|
8007
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
8037
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
8038
|
+
|
|
8039
|
+
declare global {
|
|
8040
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
8041
|
+
interface SymbolConstructor {
|
|
8042
|
+
readonly observable: symbol;
|
|
8043
|
+
}
|
|
8044
|
+
}
|
|
8008
8045
|
|
|
8009
8046
|
declare const __metadata$1: {
|
|
8010
8047
|
PACKAGE_NAME: string;
|
|
@@ -9624,6 +9661,7 @@ type index_d$1_RemoveContentsByFilterRequest = RemoveContentsByFilterRequest;
|
|
|
9624
9661
|
type index_d$1_RemoveContentsByFilterResponse = RemoveContentsByFilterResponse;
|
|
9625
9662
|
type index_d$1_RepublishContentByFilterRequest = RepublishContentByFilterRequest;
|
|
9626
9663
|
type index_d$1_RepublishContentByFilterResponse = RepublishContentByFilterResponse;
|
|
9664
|
+
type index_d$1_RestoreInfo = RestoreInfo;
|
|
9627
9665
|
type index_d$1_RichContent = RichContent;
|
|
9628
9666
|
type index_d$1_Settings = Settings;
|
|
9629
9667
|
type index_d$1_Source = Source;
|
|
@@ -9677,7 +9715,7 @@ declare const index_d$1_onContentUpdated: typeof onContentUpdated;
|
|
|
9677
9715
|
declare const index_d$1_queryContents: typeof queryContents;
|
|
9678
9716
|
declare const index_d$1_updateContent: typeof updateContent;
|
|
9679
9717
|
declare namespace index_d$1 {
|
|
9680
|
-
export { type ActionEvent$1 as ActionEvent, index_d$1_Alignment as Alignment, type index_d$1_AnchorData as AnchorData, type index_d$1_AppEmbedData as AppEmbedData, type index_d$1_AppEmbedDataAppDataOneOf as AppEmbedDataAppDataOneOf, index_d$1_AppType as AppType, type index_d$1_ApplicationError as ApplicationError, type Asset$1 as Asset, type index_d$1_AudioData as AudioData, type index_d$1_Background as Background, type index_d$1_BackgroundBackgroundOneOf as BackgroundBackgroundOneOf, index_d$1_BackgroundType as BackgroundType, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BlockquoteData as BlockquoteData, type index_d$1_BookingData as BookingData, type index_d$1_Border as Border, type index_d$1_BorderColors as BorderColors, type index_d$1_BulkActionMetadata as BulkActionMetadata, type index_d$1_BulkContentResult as BulkContentResult, type index_d$1_BulkCreateContentOptions as BulkCreateContentOptions, type index_d$1_BulkCreateContentRequest as BulkCreateContentRequest, type index_d$1_BulkCreateContentResponse as BulkCreateContentResponse, type index_d$1_BulkCreateContentResponseNonNullableFields as BulkCreateContentResponseNonNullableFields, type index_d$1_BulkDeleteContentRequest as BulkDeleteContentRequest, type index_d$1_BulkDeleteContentResponse as BulkDeleteContentResponse, type index_d$1_BulkDeleteContentResponseBulkContentResult as BulkDeleteContentResponseBulkContentResult, type index_d$1_BulkDeleteContentResponseNonNullableFields as BulkDeleteContentResponseNonNullableFields, type index_d$1_BulkUpdateContentOptions as BulkUpdateContentOptions, type index_d$1_BulkUpdateContentRequest as BulkUpdateContentRequest, type index_d$1_BulkUpdateContentResponse as BulkUpdateContentResponse, type index_d$1_BulkUpdateContentResponseBulkContentResult as BulkUpdateContentResponseBulkContentResult, type index_d$1_BulkUpdateContentResponseNonNullableFields as BulkUpdateContentResponseNonNullableFields, type index_d$1_BulletedListData as BulletedListData, type index_d$1_ButtonData as ButtonData, type index_d$1_CellStyle as CellStyle, type index_d$1_CodeBlockData as CodeBlockData, type index_d$1_CollapsibleListData as CollapsibleListData, type index_d$1_ColorData as ColorData, type index_d$1_Colors as Colors, type index_d$1_Content as Content, type index_d$1_ContentCreatedEnvelope as ContentCreatedEnvelope, type index_d$1_ContentDeletedEnvelope as ContentDeletedEnvelope, type index_d$1_ContentField as ContentField, type index_d$1_ContentFieldValueOneOf as ContentFieldValueOneOf, type index_d$1_ContentUpdatedEnvelope as ContentUpdatedEnvelope, type index_d$1_CreateContentRequest as CreateContentRequest, type index_d$1_CreateContentResponse as CreateContentResponse, type index_d$1_CreateContentResponseNonNullableFields as CreateContentResponseNonNullableFields, index_d$1_Crop as Crop, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$1_Decoration as Decoration, type index_d$1_DecorationDataOneOf as DecorationDataOneOf, index_d$1_DecorationType as DecorationType, type index_d$1_DeleteContentRequest as DeleteContentRequest, type index_d$1_DeleteContentResponse as DeleteContentResponse, type DeleteContext$1 as DeleteContext, DeleteStatus$1 as DeleteStatus, type index_d$1_Design as Design, type index_d$1_Dimensions as Dimensions, index_d$1_Direction as Direction, type index_d$1_DividerData as DividerData, type index_d$1_DocumentStyle as DocumentStyle, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_EmbedData as EmbedData, type Empty$1 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type index_d$1_EventData as EventData, type EventMetadata$1 as EventMetadata, type index_d$1_FileData as FileData, type index_d$1_FileSource as FileSource, type index_d$1_FileSourceDataOneOf as FileSourceDataOneOf, type index_d$1_FontSizeData as FontSizeData, index_d$1_FontType as FontType, type index_d$1_GIF as GIF, type index_d$1_GIFData as GIFData, type index_d$1_GalleryData as GalleryData, type index_d$1_GalleryOptions as GalleryOptions, type index_d$1_GetContentRequest as GetContentRequest, type index_d$1_GetContentResponse as GetContentResponse, type index_d$1_GetContentResponseNonNullableFields as GetContentResponseNonNullableFields, type index_d$1_Gradient as Gradient, type index_d$1_HTMLData as HTMLData, type index_d$1_HTMLDataDataOneOf as HTMLDataDataOneOf, type index_d$1_HeadingData as HeadingData, type index_d$1_Height as Height, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_Image as Image, type index_d$1_ImageData as ImageData, index_d$1_InitialExpandedItems as InitialExpandedItems, type index_d$1_Item as Item, type index_d$1_ItemDataOneOf as ItemDataOneOf, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_ItemStyle as ItemStyle, type index_d$1_Layout as Layout, index_d$1_LayoutType as LayoutType, index_d$1_LineStyle as LineStyle, type index_d$1_Link as Link, type index_d$1_LinkData as LinkData, type index_d$1_LinkDataOneOf as LinkDataOneOf, type index_d$1_LinkPreviewData as LinkPreviewData, type index_d$1_ListValue as ListValue, type index_d$1_MapData as MapData, type index_d$1_MapSettings as MapSettings, index_d$1_MapType as MapType, type index_d$1_MaskedContent as MaskedContent, type index_d$1_Media as Media, type index_d$1_MentionData as MentionData, type MessageEnvelope$1 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, type index_d$1_Metadata as Metadata, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type index_d$1_Node as Node, type index_d$1_NodeDataOneOf as NodeDataOneOf, type index_d$1_NodeStyle as NodeStyle, index_d$1_NodeType as NodeType, index_d$1_NullValue as NullValue, type index_d$1_Oembed as Oembed, type index_d$1_Option as Option, type index_d$1_OptionDesign as OptionDesign, type index_d$1_OptionLayout as OptionLayout, type index_d$1_OrderedListData as OrderedListData, index_d$1_Orientation as Orientation, type index_d$1_PDFSettings as PDFSettings, type index_d$1_Paging as Paging, type index_d$1_PagingMetadataV2 as PagingMetadataV2, type index_d$1_ParagraphData as ParagraphData, type index_d$1_Permissions as Permissions, type index_d$1_PlaybackOptions as PlaybackOptions, type index_d$1_PluginContainerData as PluginContainerData, index_d$1_PluginContainerDataAlignment as PluginContainerDataAlignment, type index_d$1_PluginContainerDataWidth as PluginContainerDataWidth, type index_d$1_PluginContainerDataWidthDataOneOf as PluginContainerDataWidthDataOneOf, type index_d$1_Poll as Poll, type index_d$1_PollData as PollData, type index_d$1_PollDataLayout as PollDataLayout, type index_d$1_PollDesign as PollDesign, type index_d$1_PollLayout as PollLayout, index_d$1_PollLayoutDirection as PollLayoutDirection, index_d$1_PollLayoutType as PollLayoutType, index_d$1_PublishStatus as PublishStatus, type index_d$1_QueryContentsLegacyRequest as QueryContentsLegacyRequest, type index_d$1_QueryContentsLegacyResponse as QueryContentsLegacyResponse, type index_d$1_QueryContentsOptions as QueryContentsOptions, type index_d$1_QueryContentsRequest as QueryContentsRequest, type index_d$1_QueryContentsResponse as QueryContentsResponse, type index_d$1_QueryContentsResponseNonNullableFields as QueryContentsResponseNonNullableFields, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$1_Rel as Rel, type index_d$1_RemoveContentsByFilterRequest as RemoveContentsByFilterRequest, type index_d$1_RemoveContentsByFilterResponse as RemoveContentsByFilterResponse, type index_d$1_RepublishContentByFilterRequest as RepublishContentByFilterRequest, type index_d$1_RepublishContentByFilterResponse as RepublishContentByFilterResponse, type index_d$1_RichContent as RichContent, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, type index_d$1_Settings as Settings, type SiteCreated$1 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, index_d$1_Source as Source, type index_d$1_Spoiler as Spoiler, type index_d$1_SpoilerData as SpoilerData, State$1 as State, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type index_d$1_Styles as Styles, type index_d$1_TableCellData as TableCellData, type index_d$1_TableData as TableData, index_d$1_Target as Target, index_d$1_TextAlignment as TextAlignment, type index_d$1_TextData as TextData, type index_d$1_TextNodeStyle as TextNodeStyle, type index_d$1_TextStyle as TextStyle, type index_d$1_Thumbnails as Thumbnails, index_d$1_ThumbnailsAlignment as ThumbnailsAlignment, index_d$1_Type as Type, type index_d$1_UpdateContentRequest as UpdateContentRequest, type index_d$1_UpdateContentResponse as UpdateContentResponse, type index_d$1_UpdateContentResponseNonNullableFields as UpdateContentResponseNonNullableFields, index_d$1_UpdaterIdentity as UpdaterIdentity, index_d$1_VerticalAlignment as VerticalAlignment, type index_d$1_Video as Video, type index_d$1_VideoData as VideoData, type index_d$1_VideoResolution as VideoResolution, index_d$1_ViewMode as ViewMode, index_d$1_ViewRole as ViewRole, index_d$1_VoteRole as VoteRole, WebhookIdentityType$1 as WebhookIdentityType, index_d$1_Width as Width, index_d$1_WidthType as WidthType, __metadata$1 as __metadata, index_d$1_bulkCreateContent as bulkCreateContent, index_d$1_bulkDeleteContent as bulkDeleteContent, index_d$1_bulkUpdateContent as bulkUpdateContent, index_d$1_createContent as createContent, index_d$1_deleteContent as deleteContent, index_d$1_getContent as getContent, index_d$1_onContentCreated as onContentCreated, index_d$1_onContentDeleted as onContentDeleted, index_d$1_onContentUpdated as onContentUpdated, index_d$1_queryContents as queryContents, index_d$1_updateContent as updateContent };
|
|
9718
|
+
export { type ActionEvent$1 as ActionEvent, index_d$1_Alignment as Alignment, type index_d$1_AnchorData as AnchorData, type index_d$1_AppEmbedData as AppEmbedData, type index_d$1_AppEmbedDataAppDataOneOf as AppEmbedDataAppDataOneOf, index_d$1_AppType as AppType, type index_d$1_ApplicationError as ApplicationError, type Asset$1 as Asset, type index_d$1_AudioData as AudioData, type index_d$1_Background as Background, type index_d$1_BackgroundBackgroundOneOf as BackgroundBackgroundOneOf, index_d$1_BackgroundType as BackgroundType, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BlockquoteData as BlockquoteData, type index_d$1_BookingData as BookingData, type index_d$1_Border as Border, type index_d$1_BorderColors as BorderColors, type index_d$1_BulkActionMetadata as BulkActionMetadata, type index_d$1_BulkContentResult as BulkContentResult, type index_d$1_BulkCreateContentOptions as BulkCreateContentOptions, type index_d$1_BulkCreateContentRequest as BulkCreateContentRequest, type index_d$1_BulkCreateContentResponse as BulkCreateContentResponse, type index_d$1_BulkCreateContentResponseNonNullableFields as BulkCreateContentResponseNonNullableFields, type index_d$1_BulkDeleteContentRequest as BulkDeleteContentRequest, type index_d$1_BulkDeleteContentResponse as BulkDeleteContentResponse, type index_d$1_BulkDeleteContentResponseBulkContentResult as BulkDeleteContentResponseBulkContentResult, type index_d$1_BulkDeleteContentResponseNonNullableFields as BulkDeleteContentResponseNonNullableFields, type index_d$1_BulkUpdateContentOptions as BulkUpdateContentOptions, type index_d$1_BulkUpdateContentRequest as BulkUpdateContentRequest, type index_d$1_BulkUpdateContentResponse as BulkUpdateContentResponse, type index_d$1_BulkUpdateContentResponseBulkContentResult as BulkUpdateContentResponseBulkContentResult, type index_d$1_BulkUpdateContentResponseNonNullableFields as BulkUpdateContentResponseNonNullableFields, type index_d$1_BulletedListData as BulletedListData, type index_d$1_ButtonData as ButtonData, type index_d$1_CellStyle as CellStyle, type index_d$1_CodeBlockData as CodeBlockData, type index_d$1_CollapsibleListData as CollapsibleListData, type index_d$1_ColorData as ColorData, type index_d$1_Colors as Colors, type index_d$1_Content as Content, type index_d$1_ContentCreatedEnvelope as ContentCreatedEnvelope, type index_d$1_ContentDeletedEnvelope as ContentDeletedEnvelope, type index_d$1_ContentField as ContentField, type index_d$1_ContentFieldValueOneOf as ContentFieldValueOneOf, type index_d$1_ContentUpdatedEnvelope as ContentUpdatedEnvelope, type index_d$1_CreateContentRequest as CreateContentRequest, type index_d$1_CreateContentResponse as CreateContentResponse, type index_d$1_CreateContentResponseNonNullableFields as CreateContentResponseNonNullableFields, index_d$1_Crop as Crop, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$1_Decoration as Decoration, type index_d$1_DecorationDataOneOf as DecorationDataOneOf, index_d$1_DecorationType as DecorationType, type index_d$1_DeleteContentRequest as DeleteContentRequest, type index_d$1_DeleteContentResponse as DeleteContentResponse, type DeleteContext$1 as DeleteContext, DeleteStatus$1 as DeleteStatus, type index_d$1_Design as Design, type index_d$1_Dimensions as Dimensions, index_d$1_Direction as Direction, type index_d$1_DividerData as DividerData, type index_d$1_DocumentStyle as DocumentStyle, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_EmbedData as EmbedData, type Empty$1 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type index_d$1_EventData as EventData, type EventMetadata$1 as EventMetadata, type index_d$1_FileData as FileData, type index_d$1_FileSource as FileSource, type index_d$1_FileSourceDataOneOf as FileSourceDataOneOf, type index_d$1_FontSizeData as FontSizeData, index_d$1_FontType as FontType, type index_d$1_GIF as GIF, type index_d$1_GIFData as GIFData, type index_d$1_GalleryData as GalleryData, type index_d$1_GalleryOptions as GalleryOptions, type index_d$1_GetContentRequest as GetContentRequest, type index_d$1_GetContentResponse as GetContentResponse, type index_d$1_GetContentResponseNonNullableFields as GetContentResponseNonNullableFields, type index_d$1_Gradient as Gradient, type index_d$1_HTMLData as HTMLData, type index_d$1_HTMLDataDataOneOf as HTMLDataDataOneOf, type index_d$1_HeadingData as HeadingData, type index_d$1_Height as Height, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_Image as Image, type index_d$1_ImageData as ImageData, index_d$1_InitialExpandedItems as InitialExpandedItems, type index_d$1_Item as Item, type index_d$1_ItemDataOneOf as ItemDataOneOf, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_ItemStyle as ItemStyle, type index_d$1_Layout as Layout, index_d$1_LayoutType as LayoutType, index_d$1_LineStyle as LineStyle, type index_d$1_Link as Link, type index_d$1_LinkData as LinkData, type index_d$1_LinkDataOneOf as LinkDataOneOf, type index_d$1_LinkPreviewData as LinkPreviewData, type index_d$1_ListValue as ListValue, type index_d$1_MapData as MapData, type index_d$1_MapSettings as MapSettings, index_d$1_MapType as MapType, type index_d$1_MaskedContent as MaskedContent, type index_d$1_Media as Media, type index_d$1_MentionData as MentionData, type MessageEnvelope$1 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, type index_d$1_Metadata as Metadata, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type index_d$1_Node as Node, type index_d$1_NodeDataOneOf as NodeDataOneOf, type index_d$1_NodeStyle as NodeStyle, index_d$1_NodeType as NodeType, index_d$1_NullValue as NullValue, type index_d$1_Oembed as Oembed, type index_d$1_Option as Option, type index_d$1_OptionDesign as OptionDesign, type index_d$1_OptionLayout as OptionLayout, type index_d$1_OrderedListData as OrderedListData, index_d$1_Orientation as Orientation, type index_d$1_PDFSettings as PDFSettings, type index_d$1_Paging as Paging, type index_d$1_PagingMetadataV2 as PagingMetadataV2, type index_d$1_ParagraphData as ParagraphData, type index_d$1_Permissions as Permissions, type index_d$1_PlaybackOptions as PlaybackOptions, type index_d$1_PluginContainerData as PluginContainerData, index_d$1_PluginContainerDataAlignment as PluginContainerDataAlignment, type index_d$1_PluginContainerDataWidth as PluginContainerDataWidth, type index_d$1_PluginContainerDataWidthDataOneOf as PluginContainerDataWidthDataOneOf, type index_d$1_Poll as Poll, type index_d$1_PollData as PollData, type index_d$1_PollDataLayout as PollDataLayout, type index_d$1_PollDesign as PollDesign, type index_d$1_PollLayout as PollLayout, index_d$1_PollLayoutDirection as PollLayoutDirection, index_d$1_PollLayoutType as PollLayoutType, index_d$1_PublishStatus as PublishStatus, type index_d$1_QueryContentsLegacyRequest as QueryContentsLegacyRequest, type index_d$1_QueryContentsLegacyResponse as QueryContentsLegacyResponse, type index_d$1_QueryContentsOptions as QueryContentsOptions, type index_d$1_QueryContentsRequest as QueryContentsRequest, type index_d$1_QueryContentsResponse as QueryContentsResponse, type index_d$1_QueryContentsResponseNonNullableFields as QueryContentsResponseNonNullableFields, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$1_Rel as Rel, type index_d$1_RemoveContentsByFilterRequest as RemoveContentsByFilterRequest, type index_d$1_RemoveContentsByFilterResponse as RemoveContentsByFilterResponse, type index_d$1_RepublishContentByFilterRequest as RepublishContentByFilterRequest, type index_d$1_RepublishContentByFilterResponse as RepublishContentByFilterResponse, type index_d$1_RestoreInfo as RestoreInfo, type index_d$1_RichContent as RichContent, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, type index_d$1_Settings as Settings, type SiteCreated$1 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, index_d$1_Source as Source, type index_d$1_Spoiler as Spoiler, type index_d$1_SpoilerData as SpoilerData, State$1 as State, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type index_d$1_Styles as Styles, type index_d$1_TableCellData as TableCellData, type index_d$1_TableData as TableData, index_d$1_Target as Target, index_d$1_TextAlignment as TextAlignment, type index_d$1_TextData as TextData, type index_d$1_TextNodeStyle as TextNodeStyle, type index_d$1_TextStyle as TextStyle, type index_d$1_Thumbnails as Thumbnails, index_d$1_ThumbnailsAlignment as ThumbnailsAlignment, index_d$1_Type as Type, type index_d$1_UpdateContentRequest as UpdateContentRequest, type index_d$1_UpdateContentResponse as UpdateContentResponse, type index_d$1_UpdateContentResponseNonNullableFields as UpdateContentResponseNonNullableFields, index_d$1_UpdaterIdentity as UpdaterIdentity, index_d$1_VerticalAlignment as VerticalAlignment, type index_d$1_Video as Video, type index_d$1_VideoData as VideoData, type index_d$1_VideoResolution as VideoResolution, index_d$1_ViewMode as ViewMode, index_d$1_ViewRole as ViewRole, index_d$1_VoteRole as VoteRole, WebhookIdentityType$1 as WebhookIdentityType, index_d$1_Width as Width, index_d$1_WidthType as WidthType, __metadata$1 as __metadata, index_d$1_bulkCreateContent as bulkCreateContent, index_d$1_bulkDeleteContent as bulkDeleteContent, index_d$1_bulkUpdateContent as bulkUpdateContent, index_d$1_createContent as createContent, index_d$1_deleteContent as deleteContent, index_d$1_getContent as getContent, index_d$1_onContentCreated as onContentCreated, index_d$1_onContentDeleted as onContentDeleted, index_d$1_onContentUpdated as onContentUpdated, index_d$1_queryContents as queryContents, index_d$1_updateContent as updateContent };
|
|
9681
9719
|
}
|
|
9682
9720
|
|
|
9683
9721
|
interface Schema {
|
|
@@ -10471,6 +10509,7 @@ interface ListSiteSchemasOptions {
|
|
|
10471
10509
|
|
|
10472
10510
|
interface HttpClient {
|
|
10473
10511
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
10512
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
10474
10513
|
}
|
|
10475
10514
|
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
10476
10515
|
type HttpResponse<T = any> = {
|
|
@@ -10495,10 +10534,17 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
|
10495
10534
|
__type: 'event-definition';
|
|
10496
10535
|
type: Type;
|
|
10497
10536
|
isDomainEvent?: boolean;
|
|
10498
|
-
transformations?: unknown;
|
|
10537
|
+
transformations?: (envelope: unknown) => Payload;
|
|
10499
10538
|
__payload: Payload;
|
|
10500
10539
|
};
|
|
10501
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
10540
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
10541
|
+
|
|
10542
|
+
declare global {
|
|
10543
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
10544
|
+
interface SymbolConstructor {
|
|
10545
|
+
readonly observable: symbol;
|
|
10546
|
+
}
|
|
10547
|
+
}
|
|
10502
10548
|
|
|
10503
10549
|
declare const __metadata: {
|
|
10504
10550
|
PACKAGE_NAME: string;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* A translatable content is a unit of content to translate.
|
|
3
|
+
*
|
|
4
|
+
* Use [Machine Translate](/translatable-content/machine-translate) to translate a single unit of translatable content, or [Bulk Machine Translate](/translatable-content/bulk-machine-translate)
|
|
5
|
+
* to translate many.
|
|
5
6
|
*/
|
|
6
7
|
interface TranslatableContent$1 extends TranslatableContentContentOneOf$1 {
|
|
7
|
-
/**
|
|
8
|
+
/** Plain text. */
|
|
8
9
|
plainTextContent?: string;
|
|
9
|
-
/**
|
|
10
|
+
/** HTML-encoded. */
|
|
10
11
|
htmlContent?: string;
|
|
11
|
-
/**
|
|
12
|
+
/** Rich content. */
|
|
12
13
|
richContent?: RichContent$3;
|
|
13
|
-
/**
|
|
14
|
+
/** Translatable content ID. */
|
|
14
15
|
id?: string | null;
|
|
15
|
-
/**
|
|
16
|
+
/** Format of the translatable content. */
|
|
16
17
|
format?: Format$1;
|
|
17
18
|
}
|
|
18
19
|
/** @oneof */
|
|
19
20
|
interface TranslatableContentContentOneOf$1 {
|
|
20
|
-
/**
|
|
21
|
+
/** Plain text. */
|
|
21
22
|
plainTextContent?: string;
|
|
22
|
-
/**
|
|
23
|
+
/** HTML-encoded. */
|
|
23
24
|
htmlContent?: string;
|
|
24
|
-
/**
|
|
25
|
+
/** Rich content. */
|
|
25
26
|
richContent?: RichContent$3;
|
|
26
27
|
}
|
|
27
28
|
declare enum Format$1 {
|
|
@@ -723,7 +724,7 @@ declare enum MapType$3 {
|
|
|
723
724
|
/** Roadmap map type */
|
|
724
725
|
ROADMAP = "ROADMAP",
|
|
725
726
|
/** Satellite map type */
|
|
726
|
-
|
|
727
|
+
SATELITE = "SATELITE",
|
|
727
728
|
/** Hybrid map type */
|
|
728
729
|
HYBRID = "HYBRID",
|
|
729
730
|
/** Terrain map type */
|
|
@@ -1179,12 +1180,16 @@ interface AudioData$3 {
|
|
|
1179
1180
|
html?: string | null;
|
|
1180
1181
|
}
|
|
1181
1182
|
interface OrderedListData$3 {
|
|
1182
|
-
/** Indentation level from
|
|
1183
|
+
/** Indentation level from 0-4. */
|
|
1183
1184
|
indentation?: number;
|
|
1185
|
+
/** Offset level from 0-4. */
|
|
1186
|
+
offset?: number | null;
|
|
1184
1187
|
}
|
|
1185
1188
|
interface BulletedListData$3 {
|
|
1186
|
-
/** Indentation level from
|
|
1189
|
+
/** Indentation level from 0-4. */
|
|
1187
1190
|
indentation?: number;
|
|
1191
|
+
/** Offset level from 0-4. */
|
|
1192
|
+
offset?: number | null;
|
|
1188
1193
|
}
|
|
1189
1194
|
interface BlockquoteData$3 {
|
|
1190
1195
|
/** Indentation level from 1-4. */
|
|
@@ -1236,11 +1241,11 @@ interface TextNodeStyle$3 {
|
|
|
1236
1241
|
lineHeight?: string | null;
|
|
1237
1242
|
}
|
|
1238
1243
|
interface MachineTranslateRequest$1 {
|
|
1239
|
-
/**
|
|
1244
|
+
/** Language of the source text to translate. */
|
|
1240
1245
|
sourceLanguage: SupportedLanguage$1;
|
|
1241
|
-
/**
|
|
1246
|
+
/** Language which text should be translated into. */
|
|
1242
1247
|
targetLanguage: SupportedLanguage$1;
|
|
1243
|
-
/** The content
|
|
1248
|
+
/** The content to translate. */
|
|
1244
1249
|
contentToTranslate: TranslatableContent$1;
|
|
1245
1250
|
}
|
|
1246
1251
|
declare enum SupportedLanguage$1 {
|
|
@@ -1518,27 +1523,27 @@ declare enum SupportedLanguage$1 {
|
|
|
1518
1523
|
ZU = "ZU"
|
|
1519
1524
|
}
|
|
1520
1525
|
interface MachineTranslateResponse$1 {
|
|
1521
|
-
/** The
|
|
1526
|
+
/** The translated content. */
|
|
1522
1527
|
translatedContent?: TranslatableContent$1;
|
|
1523
1528
|
}
|
|
1524
1529
|
interface BulkMachineTranslateRequest$1 {
|
|
1525
|
-
/**
|
|
1530
|
+
/** Language of the source text to translate. */
|
|
1526
1531
|
sourceLanguage: SupportedLanguage$1;
|
|
1527
|
-
/**
|
|
1532
|
+
/** Language which text should be translated into. */
|
|
1528
1533
|
targetLanguage: SupportedLanguage$1;
|
|
1529
|
-
/**
|
|
1534
|
+
/** The content to translate. */
|
|
1530
1535
|
contentToTranslate?: TranslatableContent$1[];
|
|
1531
1536
|
}
|
|
1532
1537
|
interface BulkMachineTranslateResponse$1 {
|
|
1533
|
-
/**
|
|
1538
|
+
/** List of results for each item in the bulk request. */
|
|
1534
1539
|
results?: BulkTranslateResult$1[];
|
|
1535
|
-
/**
|
|
1540
|
+
/** Metadata for the overall bulk action, including success and failure counts. */
|
|
1536
1541
|
bulkActionMetadata?: BulkActionMetadata$3;
|
|
1537
1542
|
}
|
|
1538
1543
|
interface BulkTranslateResult$1 {
|
|
1539
|
-
/**
|
|
1544
|
+
/** Metadata for the individual item in the request. */
|
|
1540
1545
|
itemMetadata?: ItemMetadata$3;
|
|
1541
|
-
/** The translated
|
|
1546
|
+
/** The translated content. */
|
|
1542
1547
|
item?: TranslatableContent$1;
|
|
1543
1548
|
}
|
|
1544
1549
|
interface ItemMetadata$3 {
|
|
@@ -2530,29 +2535,30 @@ interface BulkMachineTranslateResponseNonNullableFields$1 {
|
|
|
2530
2535
|
}
|
|
2531
2536
|
|
|
2532
2537
|
/**
|
|
2533
|
-
*
|
|
2534
|
-
*
|
|
2535
|
-
*
|
|
2538
|
+
* A translatable content is a unit of content to translate.
|
|
2539
|
+
*
|
|
2540
|
+
* Use [Machine Translate](/translatable-content/machine-translate) to translate a single unit of translatable content, or [Bulk Machine Translate](/translatable-content/bulk-machine-translate)
|
|
2541
|
+
* to translate many.
|
|
2536
2542
|
*/
|
|
2537
2543
|
interface TranslatableContent extends TranslatableContentContentOneOf {
|
|
2538
|
-
/**
|
|
2544
|
+
/** Plain text. */
|
|
2539
2545
|
plainTextContent?: string;
|
|
2540
|
-
/**
|
|
2546
|
+
/** HTML-encoded. */
|
|
2541
2547
|
htmlContent?: string;
|
|
2542
|
-
/**
|
|
2548
|
+
/** Rich content. */
|
|
2543
2549
|
richContent?: RichContent$2;
|
|
2544
|
-
/**
|
|
2550
|
+
/** Translatable content ID. */
|
|
2545
2551
|
_id?: string | null;
|
|
2546
|
-
/**
|
|
2552
|
+
/** Format of the translatable content. */
|
|
2547
2553
|
format?: Format;
|
|
2548
2554
|
}
|
|
2549
2555
|
/** @oneof */
|
|
2550
2556
|
interface TranslatableContentContentOneOf {
|
|
2551
|
-
/**
|
|
2557
|
+
/** Plain text. */
|
|
2552
2558
|
plainTextContent?: string;
|
|
2553
|
-
/**
|
|
2559
|
+
/** HTML-encoded. */
|
|
2554
2560
|
htmlContent?: string;
|
|
2555
|
-
/**
|
|
2561
|
+
/** Rich content. */
|
|
2556
2562
|
richContent?: RichContent$2;
|
|
2557
2563
|
}
|
|
2558
2564
|
declare enum Format {
|
|
@@ -3254,7 +3260,7 @@ declare enum MapType$2 {
|
|
|
3254
3260
|
/** Roadmap map type */
|
|
3255
3261
|
ROADMAP = "ROADMAP",
|
|
3256
3262
|
/** Satellite map type */
|
|
3257
|
-
|
|
3263
|
+
SATELITE = "SATELITE",
|
|
3258
3264
|
/** Hybrid map type */
|
|
3259
3265
|
HYBRID = "HYBRID",
|
|
3260
3266
|
/** Terrain map type */
|
|
@@ -3710,12 +3716,16 @@ interface AudioData$2 {
|
|
|
3710
3716
|
html?: string | null;
|
|
3711
3717
|
}
|
|
3712
3718
|
interface OrderedListData$2 {
|
|
3713
|
-
/** Indentation level from
|
|
3719
|
+
/** Indentation level from 0-4. */
|
|
3714
3720
|
indentation?: number;
|
|
3721
|
+
/** Offset level from 0-4. */
|
|
3722
|
+
offset?: number | null;
|
|
3715
3723
|
}
|
|
3716
3724
|
interface BulletedListData$2 {
|
|
3717
|
-
/** Indentation level from
|
|
3725
|
+
/** Indentation level from 0-4. */
|
|
3718
3726
|
indentation?: number;
|
|
3727
|
+
/** Offset level from 0-4. */
|
|
3728
|
+
offset?: number | null;
|
|
3719
3729
|
}
|
|
3720
3730
|
interface BlockquoteData$2 {
|
|
3721
3731
|
/** Indentation level from 1-4. */
|
|
@@ -3767,11 +3777,11 @@ interface TextNodeStyle$2 {
|
|
|
3767
3777
|
lineHeight?: string | null;
|
|
3768
3778
|
}
|
|
3769
3779
|
interface MachineTranslateRequest {
|
|
3770
|
-
/**
|
|
3780
|
+
/** Language of the source text to translate. */
|
|
3771
3781
|
sourceLanguage: SupportedLanguage;
|
|
3772
|
-
/**
|
|
3782
|
+
/** Language which text should be translated into. */
|
|
3773
3783
|
targetLanguage: SupportedLanguage;
|
|
3774
|
-
/** The content
|
|
3784
|
+
/** The content to translate. */
|
|
3775
3785
|
contentToTranslate: TranslatableContent;
|
|
3776
3786
|
}
|
|
3777
3787
|
declare enum SupportedLanguage {
|
|
@@ -4049,27 +4059,27 @@ declare enum SupportedLanguage {
|
|
|
4049
4059
|
ZU = "ZU"
|
|
4050
4060
|
}
|
|
4051
4061
|
interface MachineTranslateResponse {
|
|
4052
|
-
/** The
|
|
4062
|
+
/** The translated content. */
|
|
4053
4063
|
translatedContent?: TranslatableContent;
|
|
4054
4064
|
}
|
|
4055
4065
|
interface BulkMachineTranslateRequest {
|
|
4056
|
-
/**
|
|
4066
|
+
/** Language of the source text to translate. */
|
|
4057
4067
|
sourceLanguage: SupportedLanguage;
|
|
4058
|
-
/**
|
|
4068
|
+
/** Language which text should be translated into. */
|
|
4059
4069
|
targetLanguage: SupportedLanguage;
|
|
4060
|
-
/**
|
|
4070
|
+
/** The content to translate. */
|
|
4061
4071
|
contentToTranslate?: TranslatableContent[];
|
|
4062
4072
|
}
|
|
4063
4073
|
interface BulkMachineTranslateResponse {
|
|
4064
|
-
/**
|
|
4074
|
+
/** List of results for each item in the bulk request. */
|
|
4065
4075
|
results?: BulkTranslateResult[];
|
|
4066
|
-
/**
|
|
4076
|
+
/** Metadata for the overall bulk action, including success and failure counts. */
|
|
4067
4077
|
bulkActionMetadata?: BulkActionMetadata$2;
|
|
4068
4078
|
}
|
|
4069
4079
|
interface BulkTranslateResult {
|
|
4070
|
-
/**
|
|
4080
|
+
/** Metadata for the individual item in the request. */
|
|
4071
4081
|
itemMetadata?: ItemMetadata$2;
|
|
4072
|
-
/** The translated
|
|
4082
|
+
/** The translated content. */
|
|
4073
4083
|
item?: TranslatableContent;
|
|
4074
4084
|
}
|
|
4075
4085
|
interface ItemMetadata$2 {
|
|
@@ -5111,7 +5121,7 @@ interface Locale$1 {
|
|
|
5111
5121
|
/**
|
|
5112
5122
|
* Deprecated, please use the language field with the region code when needed
|
|
5113
5123
|
* @deprecated
|
|
5114
|
-
* @
|
|
5124
|
+
* @targetRemovalDate 2024-04-20
|
|
5115
5125
|
*/
|
|
5116
5126
|
flag?: Flag$1;
|
|
5117
5127
|
}
|
|
@@ -5422,7 +5432,7 @@ interface Locale {
|
|
|
5422
5432
|
/**
|
|
5423
5433
|
* Deprecated, please use the language field with the region code when needed
|
|
5424
5434
|
* @deprecated
|
|
5425
|
-
* @
|
|
5435
|
+
* @targetRemovalDate 2024-04-20
|
|
5426
5436
|
*/
|
|
5427
5437
|
flag?: Flag;
|
|
5428
5438
|
}
|
|
@@ -6484,7 +6494,7 @@ declare enum MapType$1 {
|
|
|
6484
6494
|
/** Roadmap map type */
|
|
6485
6495
|
ROADMAP = "ROADMAP",
|
|
6486
6496
|
/** Satellite map type */
|
|
6487
|
-
|
|
6497
|
+
SATELITE = "SATELITE",
|
|
6488
6498
|
/** Hybrid map type */
|
|
6489
6499
|
HYBRID = "HYBRID",
|
|
6490
6500
|
/** Terrain map type */
|
|
@@ -6940,12 +6950,16 @@ interface AudioData$1 {
|
|
|
6940
6950
|
html?: string | null;
|
|
6941
6951
|
}
|
|
6942
6952
|
interface OrderedListData$1 {
|
|
6943
|
-
/** Indentation level from
|
|
6953
|
+
/** Indentation level from 0-4. */
|
|
6944
6954
|
indentation?: number;
|
|
6955
|
+
/** Offset level from 0-4. */
|
|
6956
|
+
offset?: number | null;
|
|
6945
6957
|
}
|
|
6946
6958
|
interface BulletedListData$1 {
|
|
6947
|
-
/** Indentation level from
|
|
6959
|
+
/** Indentation level from 0-4. */
|
|
6948
6960
|
indentation?: number;
|
|
6961
|
+
/** Offset level from 0-4. */
|
|
6962
|
+
offset?: number | null;
|
|
6949
6963
|
}
|
|
6950
6964
|
interface BlockquoteData$1 {
|
|
6951
6965
|
/** Indentation level from 1-4. */
|
|
@@ -11148,7 +11162,7 @@ declare enum MapType {
|
|
|
11148
11162
|
/** Roadmap map type */
|
|
11149
11163
|
ROADMAP = "ROADMAP",
|
|
11150
11164
|
/** Satellite map type */
|
|
11151
|
-
|
|
11165
|
+
SATELITE = "SATELITE",
|
|
11152
11166
|
/** Hybrid map type */
|
|
11153
11167
|
HYBRID = "HYBRID",
|
|
11154
11168
|
/** Terrain map type */
|
|
@@ -11604,12 +11618,16 @@ interface AudioData {
|
|
|
11604
11618
|
html?: string | null;
|
|
11605
11619
|
}
|
|
11606
11620
|
interface OrderedListData {
|
|
11607
|
-
/** Indentation level from
|
|
11621
|
+
/** Indentation level from 0-4. */
|
|
11608
11622
|
indentation?: number;
|
|
11623
|
+
/** Offset level from 0-4. */
|
|
11624
|
+
offset?: number | null;
|
|
11609
11625
|
}
|
|
11610
11626
|
interface BulletedListData {
|
|
11611
|
-
/** Indentation level from
|
|
11627
|
+
/** Indentation level from 0-4. */
|
|
11612
11628
|
indentation?: number;
|
|
11629
|
+
/** Offset level from 0-4. */
|
|
11630
|
+
offset?: number | null;
|
|
11613
11631
|
}
|
|
11614
11632
|
interface BlockquoteData {
|
|
11615
11633
|
/** Indentation level from 1-4. */
|