@wix/multilingual 1.0.10 → 1.0.12
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.12",
|
|
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": "54c06307a12910de6b8f7abec60aba82e7d1a6aecd749a0193649051"
|
|
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<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2529
2534
|
interface HttpClient {
|
|
2530
2535
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
2536
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2531
2537
|
}
|
|
2532
2538
|
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
2533
2539
|
type HttpResponse<T = any> = {
|
|
@@ -2553,13 +2559,20 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
|
2553
2559
|
__type: 'event-definition';
|
|
2554
2560
|
type: Type;
|
|
2555
2561
|
isDomainEvent?: boolean;
|
|
2556
|
-
transformations?: unknown;
|
|
2562
|
+
transformations?: (envelope: unknown) => Payload;
|
|
2557
2563
|
__payload: Payload;
|
|
2558
2564
|
};
|
|
2559
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
2565
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
2560
2566
|
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
2561
2567
|
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
2562
2568
|
|
|
2569
|
+
declare global {
|
|
2570
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2571
|
+
interface SymbolConstructor {
|
|
2572
|
+
readonly observable: symbol;
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2563
2576
|
declare function machineTranslate$1(httpClient: HttpClient): (sourceLanguage: SupportedLanguage, options: MachineTranslateOptions) => Promise<MachineTranslateResponse & MachineTranslateResponseNonNullableFields>;
|
|
2564
2577
|
declare function bulkMachineTranslate$1(httpClient: HttpClient): (sourceLanguage: SupportedLanguage, options?: BulkMachineTranslateOptions) => Promise<BulkMachineTranslateResponse & BulkMachineTranslateResponseNonNullableFields>;
|
|
2565
2578
|
|
|
@@ -2598,7 +2611,7 @@ interface Locale {
|
|
|
2598
2611
|
/**
|
|
2599
2612
|
* Deprecated, please use the language field with the region code when needed
|
|
2600
2613
|
* @deprecated
|
|
2601
|
-
* @
|
|
2614
|
+
* @targetRemovalDate 2024-04-20
|
|
2602
2615
|
*/
|
|
2603
2616
|
flag?: Flag;
|
|
2604
2617
|
}
|
|
@@ -3653,7 +3666,7 @@ declare enum MapType {
|
|
|
3653
3666
|
/** Roadmap map type */
|
|
3654
3667
|
ROADMAP = "ROADMAP",
|
|
3655
3668
|
/** Satellite map type */
|
|
3656
|
-
|
|
3669
|
+
SATELITE = "SATELITE",
|
|
3657
3670
|
/** Hybrid map type */
|
|
3658
3671
|
HYBRID = "HYBRID",
|
|
3659
3672
|
/** Terrain map type */
|
|
@@ -4109,12 +4122,16 @@ interface AudioData {
|
|
|
4109
4122
|
html?: string | null;
|
|
4110
4123
|
}
|
|
4111
4124
|
interface OrderedListData {
|
|
4112
|
-
/** Indentation level from
|
|
4125
|
+
/** Indentation level from 0-4. */
|
|
4113
4126
|
indentation?: number;
|
|
4127
|
+
/** Offset level from 0-4. */
|
|
4128
|
+
offset?: number | null;
|
|
4114
4129
|
}
|
|
4115
4130
|
interface BulletedListData {
|
|
4116
|
-
/** Indentation level from
|
|
4131
|
+
/** Indentation level from 0-4. */
|
|
4117
4132
|
indentation?: number;
|
|
4133
|
+
/** Offset level from 0-4. */
|
|
4134
|
+
offset?: number | null;
|
|
4118
4135
|
}
|
|
4119
4136
|
interface BlockquoteData {
|
|
4120
4137
|
/** Indentation level from 1-4. */
|
|
@@ -5903,6 +5920,7 @@ interface ContentUpdatedEnvelope {
|
|
|
5903
5920
|
metadata: EventMetadata$1;
|
|
5904
5921
|
}
|
|
5905
5922
|
interface ContentDeletedEnvelope {
|
|
5923
|
+
entity: Content;
|
|
5906
5924
|
metadata: EventMetadata$1;
|
|
5907
5925
|
}
|
|
5908
5926
|
interface QueryContentsOptions {
|
|
@@ -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 {
|
|
2576
2581
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
2582
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2577
2583
|
}
|
|
2578
2584
|
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
2579
2585
|
type HttpResponse<T = any> = {
|
|
@@ -2598,10 +2604,17 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
|
2598
2604
|
__type: 'event-definition';
|
|
2599
2605
|
type: Type;
|
|
2600
2606
|
isDomainEvent?: boolean;
|
|
2601
|
-
transformations?: unknown;
|
|
2607
|
+
transformations?: (envelope: unknown) => Payload;
|
|
2602
2608
|
__payload: Payload;
|
|
2603
2609
|
};
|
|
2604
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
2610
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
2611
|
+
|
|
2612
|
+
declare global {
|
|
2613
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2614
|
+
interface SymbolConstructor {
|
|
2615
|
+
readonly observable: symbol;
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2605
2618
|
|
|
2606
2619
|
declare const __metadata$3: {
|
|
2607
2620
|
PACKAGE_NAME: string;
|
|
@@ -2665,7 +2678,7 @@ interface Locale {
|
|
|
2665
2678
|
/**
|
|
2666
2679
|
* Deprecated, please use the language field with the region code when needed
|
|
2667
2680
|
* @deprecated
|
|
2668
|
-
* @
|
|
2681
|
+
* @targetRemovalDate 2024-04-20
|
|
2669
2682
|
*/
|
|
2670
2683
|
flag?: Flag;
|
|
2671
2684
|
}
|
|
@@ -3740,7 +3753,7 @@ declare enum MapType {
|
|
|
3740
3753
|
/** Roadmap map type */
|
|
3741
3754
|
ROADMAP = "ROADMAP",
|
|
3742
3755
|
/** Satellite map type */
|
|
3743
|
-
|
|
3756
|
+
SATELITE = "SATELITE",
|
|
3744
3757
|
/** Hybrid map type */
|
|
3745
3758
|
HYBRID = "HYBRID",
|
|
3746
3759
|
/** Terrain map type */
|
|
@@ -4215,12 +4228,16 @@ interface AudioData {
|
|
|
4215
4228
|
html?: string | null;
|
|
4216
4229
|
}
|
|
4217
4230
|
interface OrderedListData {
|
|
4218
|
-
/** Indentation level from
|
|
4231
|
+
/** Indentation level from 0-4. */
|
|
4219
4232
|
indentation?: number;
|
|
4233
|
+
/** Offset level from 0-4. */
|
|
4234
|
+
offset?: number | null;
|
|
4220
4235
|
}
|
|
4221
4236
|
interface BulletedListData {
|
|
4222
|
-
/** Indentation level from
|
|
4237
|
+
/** Indentation level from 0-4. */
|
|
4223
4238
|
indentation?: number;
|
|
4239
|
+
/** Offset level from 0-4. */
|
|
4240
|
+
offset?: number | null;
|
|
4224
4241
|
}
|
|
4225
4242
|
interface BlockquoteData {
|
|
4226
4243
|
/** Indentation level from 1-4. */
|
|
@@ -4864,6 +4881,9 @@ interface DomainEventBodyOneOf$1 {
|
|
|
4864
4881
|
interface EntityCreatedEvent$1 {
|
|
4865
4882
|
entity?: string;
|
|
4866
4883
|
}
|
|
4884
|
+
interface RestoreInfo {
|
|
4885
|
+
deletedDate?: Date;
|
|
4886
|
+
}
|
|
4867
4887
|
interface EntityUpdatedEvent$1 {
|
|
4868
4888
|
/**
|
|
4869
4889
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -7945,6 +7965,7 @@ interface ContentUpdatedEnvelope {
|
|
|
7945
7965
|
metadata: EventMetadata$1;
|
|
7946
7966
|
}
|
|
7947
7967
|
interface ContentDeletedEnvelope {
|
|
7968
|
+
entity: Content;
|
|
7948
7969
|
metadata: EventMetadata$1;
|
|
7949
7970
|
}
|
|
7950
7971
|
interface QueryContentsOptions {
|
|
@@ -9578,6 +9599,7 @@ type index_d$1_RemoveContentsByFilterRequest = RemoveContentsByFilterRequest;
|
|
|
9578
9599
|
type index_d$1_RemoveContentsByFilterResponse = RemoveContentsByFilterResponse;
|
|
9579
9600
|
type index_d$1_RepublishContentByFilterRequest = RepublishContentByFilterRequest;
|
|
9580
9601
|
type index_d$1_RepublishContentByFilterResponse = RepublishContentByFilterResponse;
|
|
9602
|
+
type index_d$1_RestoreInfo = RestoreInfo;
|
|
9581
9603
|
type index_d$1_RichContent = RichContent;
|
|
9582
9604
|
type index_d$1_Settings = Settings;
|
|
9583
9605
|
type index_d$1_Source = Source;
|
|
@@ -9631,7 +9653,7 @@ declare const index_d$1_onContentUpdated: typeof onContentUpdated;
|
|
|
9631
9653
|
declare const index_d$1_queryContents: typeof queryContents;
|
|
9632
9654
|
declare const index_d$1_updateContent: typeof updateContent;
|
|
9633
9655
|
declare namespace index_d$1 {
|
|
9634
|
-
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 };
|
|
9656
|
+
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 };
|
|
9635
9657
|
}
|
|
9636
9658
|
|
|
9637
9659
|
interface Schema {
|
|
@@ -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. */
|