@wix/multilingual 1.0.37 → 1.0.38
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.38",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@wix/multilingual_machine-translation": "1.0.26",
|
|
23
23
|
"@wix/multilingual_site-translator": "1.0.12",
|
|
24
24
|
"@wix/multilingual_translation-contents": "1.0.15",
|
|
25
|
-
"@wix/multilingual_translation-published-contents": "1.0.
|
|
25
|
+
"@wix/multilingual_translation-published-contents": "1.0.4",
|
|
26
26
|
"@wix/multilingual_translation-schemas": "1.0.13"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": ""
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "397f35632bfffabd2d3e701e76e553c7e04d867d07fd1d7550f58394"
|
|
52
52
|
}
|
|
@@ -525,26 +525,27 @@ declare namespace context$5 {
|
|
|
525
525
|
/** Represents a content of an entity with its published translations */
|
|
526
526
|
interface PublishedContent {
|
|
527
527
|
/**
|
|
528
|
-
*
|
|
528
|
+
* Pubished content ID.
|
|
529
529
|
* @readonly
|
|
530
530
|
*/
|
|
531
531
|
_id?: string | null;
|
|
532
|
-
/** Schema key of the content. */
|
|
532
|
+
/** Schema key of the published content. */
|
|
533
533
|
schemaKey?: SchemaKey$1;
|
|
534
534
|
/**
|
|
535
|
-
*
|
|
535
|
+
* A unique name defined by the app developer to differentiate translation schemas for various entities within their app. For example, if an app developer is creating a translation schema for blog posts, the `entityType` can be `'blog-posts'`.
|
|
536
536
|
* @readonly
|
|
537
537
|
*/
|
|
538
538
|
entityId?: string;
|
|
539
539
|
/**
|
|
540
|
-
*
|
|
540
|
+
* Published content locale.
|
|
541
541
|
* @readonly
|
|
542
542
|
*/
|
|
543
543
|
locale?: string;
|
|
544
|
-
/** List of fields
|
|
544
|
+
/** List of fields that have been translated and published for the given locale. */
|
|
545
545
|
fields?: PublishedContentField[];
|
|
546
|
-
/**
|
|
546
|
+
/** A reference to the parent content defined by the app developer. For example, if the content is a menu item, this property would link to the content of the menu it belongs to. */
|
|
547
547
|
parentEntityId?: string | null;
|
|
548
|
+
/** Custom field data for the published content object. */
|
|
548
549
|
extendedFields?: ExtendedFields;
|
|
549
550
|
}
|
|
550
551
|
interface SchemaKey$1 {
|
|
@@ -553,9 +554,14 @@ interface SchemaKey$1 {
|
|
|
553
554
|
* @readonly
|
|
554
555
|
*/
|
|
555
556
|
appId?: string;
|
|
556
|
-
/**
|
|
557
|
+
/** A unique name defined by the app developer to differentiate translation schemas for various entities within their app. For example, if an app developer is creating a translation schema for blog posts, the `entityType` can be `'blog-posts'`. */
|
|
557
558
|
entityType?: string;
|
|
558
|
-
/**
|
|
559
|
+
/**
|
|
560
|
+
* Scope of the translation schema.
|
|
561
|
+
* Supported values:
|
|
562
|
+
* + `GLOBAL`: A global schema for all sites.
|
|
563
|
+
* + `SITE`: A custom schema for a specific site.
|
|
564
|
+
*/
|
|
559
565
|
scope?: SchemaScope$1;
|
|
560
566
|
}
|
|
561
567
|
declare enum SchemaScope$1 {
|
|
@@ -577,11 +583,11 @@ interface PublishedContentField extends PublishedContentFieldValueOneOf {
|
|
|
577
583
|
/** Document media item */
|
|
578
584
|
document?: string;
|
|
579
585
|
/**
|
|
580
|
-
*
|
|
586
|
+
* Unique string identifier that links a specific content field to its corresponding field in the schema.
|
|
581
587
|
* @readonly
|
|
582
588
|
*/
|
|
583
589
|
schemaFieldKey?: string;
|
|
584
|
-
/**
|
|
590
|
+
/** For repeated fields. Contains the IDs of the messages linked to this field. */
|
|
585
591
|
sequenceIds?: string[];
|
|
586
592
|
}
|
|
587
593
|
/** @oneof */
|
|
@@ -1856,7 +1862,7 @@ interface GetPublishedContentResponse {
|
|
|
1856
1862
|
publishedContent?: PublishedContent;
|
|
1857
1863
|
}
|
|
1858
1864
|
interface QueryPublishedContentRequest {
|
|
1859
|
-
/**
|
|
1865
|
+
/** Query options. Note that some query filters are required. See the API description for a list of required filters. */
|
|
1860
1866
|
query: CursorQuery$2;
|
|
1861
1867
|
}
|
|
1862
1868
|
interface CursorQuery$2 extends CursorQueryPagingMethodOneOf$2 {
|
|
@@ -1910,9 +1916,9 @@ interface CursorPaging$2 {
|
|
|
1910
1916
|
cursor?: string | null;
|
|
1911
1917
|
}
|
|
1912
1918
|
interface QueryPublishedContentResponse {
|
|
1913
|
-
/** The published content */
|
|
1919
|
+
/** The published translation content. */
|
|
1914
1920
|
publishedContent?: PublishedContent[];
|
|
1915
|
-
/**
|
|
1921
|
+
/** Details on the paged set of results returned. */
|
|
1916
1922
|
pagingMetadata?: CursorPagingMetadata$2;
|
|
1917
1923
|
}
|
|
1918
1924
|
interface CursorPagingMetadata$2 {
|
|
@@ -525,26 +525,27 @@ declare namespace index_d$5 {
|
|
|
525
525
|
/** Represents a content of an entity with its published translations */
|
|
526
526
|
interface PublishedContent {
|
|
527
527
|
/**
|
|
528
|
-
*
|
|
528
|
+
* Pubished content ID.
|
|
529
529
|
* @readonly
|
|
530
530
|
*/
|
|
531
531
|
_id?: string | null;
|
|
532
|
-
/** Schema key of the content. */
|
|
532
|
+
/** Schema key of the published content. */
|
|
533
533
|
schemaKey?: SchemaKey$1;
|
|
534
534
|
/**
|
|
535
|
-
*
|
|
535
|
+
* A unique name defined by the app developer to differentiate translation schemas for various entities within their app. For example, if an app developer is creating a translation schema for blog posts, the `entityType` can be `'blog-posts'`.
|
|
536
536
|
* @readonly
|
|
537
537
|
*/
|
|
538
538
|
entityId?: string;
|
|
539
539
|
/**
|
|
540
|
-
*
|
|
540
|
+
* Published content locale.
|
|
541
541
|
* @readonly
|
|
542
542
|
*/
|
|
543
543
|
locale?: string;
|
|
544
|
-
/** List of fields
|
|
544
|
+
/** List of fields that have been translated and published for the given locale. */
|
|
545
545
|
fields?: PublishedContentField[];
|
|
546
|
-
/**
|
|
546
|
+
/** A reference to the parent content defined by the app developer. For example, if the content is a menu item, this property would link to the content of the menu it belongs to. */
|
|
547
547
|
parentEntityId?: string | null;
|
|
548
|
+
/** Custom field data for the published content object. */
|
|
548
549
|
extendedFields?: ExtendedFields;
|
|
549
550
|
}
|
|
550
551
|
interface SchemaKey$1 {
|
|
@@ -553,9 +554,14 @@ interface SchemaKey$1 {
|
|
|
553
554
|
* @readonly
|
|
554
555
|
*/
|
|
555
556
|
appId?: string;
|
|
556
|
-
/**
|
|
557
|
+
/** A unique name defined by the app developer to differentiate translation schemas for various entities within their app. For example, if an app developer is creating a translation schema for blog posts, the `entityType` can be `'blog-posts'`. */
|
|
557
558
|
entityType?: string;
|
|
558
|
-
/**
|
|
559
|
+
/**
|
|
560
|
+
* Scope of the translation schema.
|
|
561
|
+
* Supported values:
|
|
562
|
+
* + `GLOBAL`: A global schema for all sites.
|
|
563
|
+
* + `SITE`: A custom schema for a specific site.
|
|
564
|
+
*/
|
|
559
565
|
scope?: SchemaScope$1;
|
|
560
566
|
}
|
|
561
567
|
declare enum SchemaScope$1 {
|
|
@@ -577,11 +583,11 @@ interface PublishedContentField extends PublishedContentFieldValueOneOf {
|
|
|
577
583
|
/** Document media item */
|
|
578
584
|
document?: string;
|
|
579
585
|
/**
|
|
580
|
-
*
|
|
586
|
+
* Unique string identifier that links a specific content field to its corresponding field in the schema.
|
|
581
587
|
* @readonly
|
|
582
588
|
*/
|
|
583
589
|
schemaFieldKey?: string;
|
|
584
|
-
/**
|
|
590
|
+
/** For repeated fields. Contains the IDs of the messages linked to this field. */
|
|
585
591
|
sequenceIds?: string[];
|
|
586
592
|
}
|
|
587
593
|
/** @oneof */
|
|
@@ -1856,7 +1862,7 @@ interface GetPublishedContentResponse {
|
|
|
1856
1862
|
publishedContent?: PublishedContent;
|
|
1857
1863
|
}
|
|
1858
1864
|
interface QueryPublishedContentRequest {
|
|
1859
|
-
/**
|
|
1865
|
+
/** Query options. Note that some query filters are required. See the API description for a list of required filters. */
|
|
1860
1866
|
query: CursorQuery$2;
|
|
1861
1867
|
}
|
|
1862
1868
|
interface CursorQuery$2 extends CursorQueryPagingMethodOneOf$2 {
|
|
@@ -1910,9 +1916,9 @@ interface CursorPaging$2 {
|
|
|
1910
1916
|
cursor?: string | null;
|
|
1911
1917
|
}
|
|
1912
1918
|
interface QueryPublishedContentResponse {
|
|
1913
|
-
/** The published content */
|
|
1919
|
+
/** The published translation content. */
|
|
1914
1920
|
publishedContent?: PublishedContent[];
|
|
1915
|
-
/**
|
|
1921
|
+
/** Details on the paged set of results returned. */
|
|
1916
1922
|
pagingMetadata?: CursorPagingMetadata$2;
|
|
1917
1923
|
}
|
|
1918
1924
|
interface CursorPagingMetadata$2 {
|
|
@@ -40,26 +40,27 @@ declare namespace meta$5 {
|
|
|
40
40
|
/** Represents a content of an entity with its published translations */
|
|
41
41
|
interface PublishedContent$1 {
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Pubished content ID.
|
|
44
44
|
* @readonly
|
|
45
45
|
*/
|
|
46
46
|
id?: string | null;
|
|
47
|
-
/** Schema key of the content. */
|
|
47
|
+
/** Schema key of the published content. */
|
|
48
48
|
schemaKey?: SchemaKey$3;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* A unique name defined by the app developer to differentiate translation schemas for various entities within their app. For example, if an app developer is creating a translation schema for blog posts, the `entityType` can be `'blog-posts'`.
|
|
51
51
|
* @readonly
|
|
52
52
|
*/
|
|
53
53
|
entityId?: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Published content locale.
|
|
56
56
|
* @readonly
|
|
57
57
|
*/
|
|
58
58
|
locale?: string;
|
|
59
|
-
/** List of fields
|
|
59
|
+
/** List of fields that have been translated and published for the given locale. */
|
|
60
60
|
fields?: PublishedContentField$1[];
|
|
61
|
-
/**
|
|
61
|
+
/** A reference to the parent content defined by the app developer. For example, if the content is a menu item, this property would link to the content of the menu it belongs to. */
|
|
62
62
|
parentEntityId?: string | null;
|
|
63
|
+
/** Custom field data for the published content object. */
|
|
63
64
|
extendedFields?: ExtendedFields$1;
|
|
64
65
|
}
|
|
65
66
|
interface SchemaKey$3 {
|
|
@@ -68,9 +69,14 @@ interface SchemaKey$3 {
|
|
|
68
69
|
* @readonly
|
|
69
70
|
*/
|
|
70
71
|
appId?: string;
|
|
71
|
-
/**
|
|
72
|
+
/** A unique name defined by the app developer to differentiate translation schemas for various entities within their app. For example, if an app developer is creating a translation schema for blog posts, the `entityType` can be `'blog-posts'`. */
|
|
72
73
|
entityType?: string;
|
|
73
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* Scope of the translation schema.
|
|
76
|
+
* Supported values:
|
|
77
|
+
* + `GLOBAL`: A global schema for all sites.
|
|
78
|
+
* + `SITE`: A custom schema for a specific site.
|
|
79
|
+
*/
|
|
74
80
|
scope?: SchemaScope$3;
|
|
75
81
|
}
|
|
76
82
|
declare enum SchemaScope$3 {
|
|
@@ -92,11 +98,11 @@ interface PublishedContentField$1 extends PublishedContentFieldValueOneOf$1 {
|
|
|
92
98
|
/** Document media item */
|
|
93
99
|
document?: Document$1;
|
|
94
100
|
/**
|
|
95
|
-
*
|
|
101
|
+
* Unique string identifier that links a specific content field to its corresponding field in the schema.
|
|
96
102
|
* @readonly
|
|
97
103
|
*/
|
|
98
104
|
schemaFieldKey?: string;
|
|
99
|
-
/**
|
|
105
|
+
/** For repeated fields. Contains the IDs of the messages linked to this field. */
|
|
100
106
|
sequenceIds?: string[];
|
|
101
107
|
}
|
|
102
108
|
/** @oneof */
|
|
@@ -1389,7 +1395,7 @@ interface ExtendedFields$1 {
|
|
|
1389
1395
|
namespaces?: Record<string, Record<string, any>>;
|
|
1390
1396
|
}
|
|
1391
1397
|
interface QueryPublishedContentRequest$1 {
|
|
1392
|
-
/**
|
|
1398
|
+
/** Query options. Note that some query filters are required. See the API description for a list of required filters. */
|
|
1393
1399
|
query: CursorQuery$5;
|
|
1394
1400
|
}
|
|
1395
1401
|
interface CursorQuery$5 extends CursorQueryPagingMethodOneOf$5 {
|
|
@@ -1443,9 +1449,9 @@ interface CursorPaging$5 {
|
|
|
1443
1449
|
cursor?: string | null;
|
|
1444
1450
|
}
|
|
1445
1451
|
interface QueryPublishedContentResponse$1 {
|
|
1446
|
-
/** The published content */
|
|
1452
|
+
/** The published translation content. */
|
|
1447
1453
|
publishedContent?: PublishedContent$1[];
|
|
1448
|
-
/**
|
|
1454
|
+
/** Details on the paged set of results returned. */
|
|
1449
1455
|
pagingMetadata?: CursorPagingMetadata$5;
|
|
1450
1456
|
}
|
|
1451
1457
|
interface CursorPagingMetadata$5 {
|
|
@@ -1760,26 +1766,27 @@ interface QueryPublishedContentResponseNonNullableFields$1 {
|
|
|
1760
1766
|
/** Represents a content of an entity with its published translations */
|
|
1761
1767
|
interface PublishedContent {
|
|
1762
1768
|
/**
|
|
1763
|
-
*
|
|
1769
|
+
* Pubished content ID.
|
|
1764
1770
|
* @readonly
|
|
1765
1771
|
*/
|
|
1766
1772
|
_id?: string | null;
|
|
1767
|
-
/** Schema key of the content. */
|
|
1773
|
+
/** Schema key of the published content. */
|
|
1768
1774
|
schemaKey?: SchemaKey$2;
|
|
1769
1775
|
/**
|
|
1770
|
-
*
|
|
1776
|
+
* A unique name defined by the app developer to differentiate translation schemas for various entities within their app. For example, if an app developer is creating a translation schema for blog posts, the `entityType` can be `'blog-posts'`.
|
|
1771
1777
|
* @readonly
|
|
1772
1778
|
*/
|
|
1773
1779
|
entityId?: string;
|
|
1774
1780
|
/**
|
|
1775
|
-
*
|
|
1781
|
+
* Published content locale.
|
|
1776
1782
|
* @readonly
|
|
1777
1783
|
*/
|
|
1778
1784
|
locale?: string;
|
|
1779
|
-
/** List of fields
|
|
1785
|
+
/** List of fields that have been translated and published for the given locale. */
|
|
1780
1786
|
fields?: PublishedContentField[];
|
|
1781
|
-
/**
|
|
1787
|
+
/** A reference to the parent content defined by the app developer. For example, if the content is a menu item, this property would link to the content of the menu it belongs to. */
|
|
1782
1788
|
parentEntityId?: string | null;
|
|
1789
|
+
/** Custom field data for the published content object. */
|
|
1783
1790
|
extendedFields?: ExtendedFields;
|
|
1784
1791
|
}
|
|
1785
1792
|
interface SchemaKey$2 {
|
|
@@ -1788,9 +1795,14 @@ interface SchemaKey$2 {
|
|
|
1788
1795
|
* @readonly
|
|
1789
1796
|
*/
|
|
1790
1797
|
appId?: string;
|
|
1791
|
-
/**
|
|
1798
|
+
/** A unique name defined by the app developer to differentiate translation schemas for various entities within their app. For example, if an app developer is creating a translation schema for blog posts, the `entityType` can be `'blog-posts'`. */
|
|
1792
1799
|
entityType?: string;
|
|
1793
|
-
/**
|
|
1800
|
+
/**
|
|
1801
|
+
* Scope of the translation schema.
|
|
1802
|
+
* Supported values:
|
|
1803
|
+
* + `GLOBAL`: A global schema for all sites.
|
|
1804
|
+
* + `SITE`: A custom schema for a specific site.
|
|
1805
|
+
*/
|
|
1794
1806
|
scope?: SchemaScope$2;
|
|
1795
1807
|
}
|
|
1796
1808
|
declare enum SchemaScope$2 {
|
|
@@ -1812,11 +1824,11 @@ interface PublishedContentField extends PublishedContentFieldValueOneOf {
|
|
|
1812
1824
|
/** Document media item */
|
|
1813
1825
|
document?: string;
|
|
1814
1826
|
/**
|
|
1815
|
-
*
|
|
1827
|
+
* Unique string identifier that links a specific content field to its corresponding field in the schema.
|
|
1816
1828
|
* @readonly
|
|
1817
1829
|
*/
|
|
1818
1830
|
schemaFieldKey?: string;
|
|
1819
|
-
/**
|
|
1831
|
+
/** For repeated fields. Contains the IDs of the messages linked to this field. */
|
|
1820
1832
|
sequenceIds?: string[];
|
|
1821
1833
|
}
|
|
1822
1834
|
/** @oneof */
|
|
@@ -3054,7 +3066,7 @@ interface ExtendedFields {
|
|
|
3054
3066
|
namespaces?: Record<string, Record<string, any>>;
|
|
3055
3067
|
}
|
|
3056
3068
|
interface QueryPublishedContentRequest {
|
|
3057
|
-
/**
|
|
3069
|
+
/** Query options. Note that some query filters are required. See the API description for a list of required filters. */
|
|
3058
3070
|
query: CursorQuery$4;
|
|
3059
3071
|
}
|
|
3060
3072
|
interface CursorQuery$4 extends CursorQueryPagingMethodOneOf$4 {
|
|
@@ -3108,9 +3120,9 @@ interface CursorPaging$4 {
|
|
|
3108
3120
|
cursor?: string | null;
|
|
3109
3121
|
}
|
|
3110
3122
|
interface QueryPublishedContentResponse {
|
|
3111
|
-
/** The published content */
|
|
3123
|
+
/** The published translation content. */
|
|
3112
3124
|
publishedContent?: PublishedContent[];
|
|
3113
|
-
/**
|
|
3125
|
+
/** Details on the paged set of results returned. */
|
|
3114
3126
|
pagingMetadata?: CursorPagingMetadata$4;
|
|
3115
3127
|
}
|
|
3116
3128
|
interface CursorPagingMetadata$4 {
|