@wix/auto_sdk_multilingual_machine-translation 1.0.0
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/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.context.d.ts +6 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.context.js +40 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.context.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.http.d.ts +49 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.http.js +388 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.http.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.meta.d.ts +14 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.meta.js +66 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.meta.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.public.d.ts +62 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.public.js +50 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.public.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.types.d.ts +1926 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.types.js +586 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.types.js.map +1 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.universal.d.ts +2000 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.universal.js +732 -0
- package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.context.d.ts +6 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.context.js +6 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.context.js.map +1 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.http.d.ts +49 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.http.js +383 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.http.js.map +1 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.meta.d.ts +14 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.meta.js +38 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.meta.js.map +1 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.public.d.ts +62 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.public.js +14 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.public.js.map +1 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.types.d.ts +1926 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.types.js +583 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.types.js.map +1 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.universal.d.ts +2000 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.universal.js +704 -0
- package/build/es/src/multilingual-machine-v3-translatable-content-machine-translation.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.context.d.ts +6 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.context.js +40 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.context.js.map +1 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.http.d.ts +49 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.http.js +388 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.http.js.map +1 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.meta.d.ts +14 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.meta.js +66 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.meta.js.map +1 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.public.d.ts +62 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.public.js +50 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.public.js.map +1 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.types.d.ts +1926 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.types.js +586 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.types.js.map +1 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.universal.d.ts +2000 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.universal.js +732 -0
- package/build/internal/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.context.d.ts +6 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.context.js +6 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.context.js.map +1 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.http.d.ts +49 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.http.js +383 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.http.js.map +1 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.meta.d.ts +14 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.meta.js +38 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.meta.js.map +1 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.public.d.ts +62 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.public.js +14 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.public.js.map +1 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.types.d.ts +1926 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.types.js +583 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.types.js.map +1 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.universal.d.ts +2000 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.universal.js +704 -0
- package/build/internal/es/src/multilingual-machine-v3-translatable-content-machine-translation.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
package/build/cjs/src/multilingual-machine-v3-translatable-content-machine-translation.universal.js
ADDED
|
@@ -0,0 +1,732 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.bulkMachineTranslate = exports.machineTranslate = exports.SupportedLanguage = exports.NullValue = exports.VerticalAlignment = exports.Direction = exports.InitialExpandedItems = exports.AppType = exports.FontType = exports.DecorationType = exports.BackgroundType = exports.PollLayoutDirection = exports.PollLayoutType = exports.VoteRole = exports.ViewRole = exports.MapType = exports.Source = exports.GIFType = exports.ThumbnailsAlignment = exports.Crop = exports.Orientation = exports.LayoutType = exports.ViewMode = exports.Alignment = exports.Width = exports.LineStyle = exports.TextAlignment = exports.Target = exports.Type = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = exports.Format = void 0;
|
|
27
|
+
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
28
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
29
|
+
const ambassadorWixMultilingualMachineV3TranslatableContent = __importStar(require("./multilingual-machine-v3-translatable-content-machine-translation.http.js"));
|
|
30
|
+
var Format;
|
|
31
|
+
(function (Format) {
|
|
32
|
+
/** Unspecified format. */
|
|
33
|
+
Format["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
|
|
34
|
+
/** Plain text content. */
|
|
35
|
+
Format["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
36
|
+
/** HTML content. */
|
|
37
|
+
Format["HTML"] = "HTML";
|
|
38
|
+
/** Rich Content. */
|
|
39
|
+
Format["RICH"] = "RICH";
|
|
40
|
+
})(Format || (exports.Format = Format = {}));
|
|
41
|
+
var NodeType;
|
|
42
|
+
(function (NodeType) {
|
|
43
|
+
NodeType["PARAGRAPH"] = "PARAGRAPH";
|
|
44
|
+
NodeType["TEXT"] = "TEXT";
|
|
45
|
+
NodeType["HEADING"] = "HEADING";
|
|
46
|
+
NodeType["BULLETED_LIST"] = "BULLETED_LIST";
|
|
47
|
+
NodeType["ORDERED_LIST"] = "ORDERED_LIST";
|
|
48
|
+
NodeType["LIST_ITEM"] = "LIST_ITEM";
|
|
49
|
+
NodeType["BLOCKQUOTE"] = "BLOCKQUOTE";
|
|
50
|
+
NodeType["CODE_BLOCK"] = "CODE_BLOCK";
|
|
51
|
+
NodeType["VIDEO"] = "VIDEO";
|
|
52
|
+
NodeType["DIVIDER"] = "DIVIDER";
|
|
53
|
+
NodeType["FILE"] = "FILE";
|
|
54
|
+
NodeType["GALLERY"] = "GALLERY";
|
|
55
|
+
NodeType["GIF"] = "GIF";
|
|
56
|
+
NodeType["HTML"] = "HTML";
|
|
57
|
+
NodeType["IMAGE"] = "IMAGE";
|
|
58
|
+
NodeType["LINK_PREVIEW"] = "LINK_PREVIEW";
|
|
59
|
+
/** @deprecated */
|
|
60
|
+
NodeType["MAP"] = "MAP";
|
|
61
|
+
NodeType["POLL"] = "POLL";
|
|
62
|
+
NodeType["APP_EMBED"] = "APP_EMBED";
|
|
63
|
+
NodeType["BUTTON"] = "BUTTON";
|
|
64
|
+
NodeType["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
|
|
65
|
+
NodeType["TABLE"] = "TABLE";
|
|
66
|
+
NodeType["EMBED"] = "EMBED";
|
|
67
|
+
NodeType["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
|
|
68
|
+
NodeType["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
|
|
69
|
+
NodeType["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
|
|
70
|
+
NodeType["TABLE_CELL"] = "TABLE_CELL";
|
|
71
|
+
NodeType["TABLE_ROW"] = "TABLE_ROW";
|
|
72
|
+
NodeType["EXTERNAL"] = "EXTERNAL";
|
|
73
|
+
NodeType["AUDIO"] = "AUDIO";
|
|
74
|
+
NodeType["CAPTION"] = "CAPTION";
|
|
75
|
+
NodeType["LAYOUT"] = "LAYOUT";
|
|
76
|
+
NodeType["LAYOUT_CELL"] = "LAYOUT_CELL";
|
|
77
|
+
})(NodeType || (exports.NodeType = NodeType = {}));
|
|
78
|
+
var WidthType;
|
|
79
|
+
(function (WidthType) {
|
|
80
|
+
/** Width matches the content width */
|
|
81
|
+
WidthType["CONTENT"] = "CONTENT";
|
|
82
|
+
/** Small Width */
|
|
83
|
+
WidthType["SMALL"] = "SMALL";
|
|
84
|
+
/** Width will match the original asset width */
|
|
85
|
+
WidthType["ORIGINAL"] = "ORIGINAL";
|
|
86
|
+
/** coast-to-coast display */
|
|
87
|
+
WidthType["FULL_WIDTH"] = "FULL_WIDTH";
|
|
88
|
+
})(WidthType || (exports.WidthType = WidthType = {}));
|
|
89
|
+
var PluginContainerDataAlignment;
|
|
90
|
+
(function (PluginContainerDataAlignment) {
|
|
91
|
+
/** Center Alignment */
|
|
92
|
+
PluginContainerDataAlignment["CENTER"] = "CENTER";
|
|
93
|
+
/** Left Alignment */
|
|
94
|
+
PluginContainerDataAlignment["LEFT"] = "LEFT";
|
|
95
|
+
/** Right Alignment */
|
|
96
|
+
PluginContainerDataAlignment["RIGHT"] = "RIGHT";
|
|
97
|
+
})(PluginContainerDataAlignment || (exports.PluginContainerDataAlignment = PluginContainerDataAlignment = {}));
|
|
98
|
+
var Type;
|
|
99
|
+
(function (Type) {
|
|
100
|
+
/** Regular link button */
|
|
101
|
+
Type["LINK"] = "LINK";
|
|
102
|
+
/** Triggers custom action that is defined in plugin configuration by the consumer */
|
|
103
|
+
Type["ACTION"] = "ACTION";
|
|
104
|
+
})(Type || (exports.Type = Type = {}));
|
|
105
|
+
var Target;
|
|
106
|
+
(function (Target) {
|
|
107
|
+
/** Opens the linked document in the same frame as it was clicked (this is default) */
|
|
108
|
+
Target["SELF"] = "SELF";
|
|
109
|
+
/** Opens the linked document in a new window or tab */
|
|
110
|
+
Target["BLANK"] = "BLANK";
|
|
111
|
+
/** Opens the linked document in the parent frame */
|
|
112
|
+
Target["PARENT"] = "PARENT";
|
|
113
|
+
/** Opens the linked document in the full body of the window */
|
|
114
|
+
Target["TOP"] = "TOP";
|
|
115
|
+
})(Target || (exports.Target = Target = {}));
|
|
116
|
+
var TextAlignment;
|
|
117
|
+
(function (TextAlignment) {
|
|
118
|
+
/** browser default, eqivalent to `initial` */
|
|
119
|
+
TextAlignment["AUTO"] = "AUTO";
|
|
120
|
+
/** Left align */
|
|
121
|
+
TextAlignment["LEFT"] = "LEFT";
|
|
122
|
+
/** Right align */
|
|
123
|
+
TextAlignment["RIGHT"] = "RIGHT";
|
|
124
|
+
/** Center align */
|
|
125
|
+
TextAlignment["CENTER"] = "CENTER";
|
|
126
|
+
/** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line */
|
|
127
|
+
TextAlignment["JUSTIFY"] = "JUSTIFY";
|
|
128
|
+
})(TextAlignment || (exports.TextAlignment = TextAlignment = {}));
|
|
129
|
+
var LineStyle;
|
|
130
|
+
(function (LineStyle) {
|
|
131
|
+
/** Single Line */
|
|
132
|
+
LineStyle["SINGLE"] = "SINGLE";
|
|
133
|
+
/** Double Line */
|
|
134
|
+
LineStyle["DOUBLE"] = "DOUBLE";
|
|
135
|
+
/** Dashed Line */
|
|
136
|
+
LineStyle["DASHED"] = "DASHED";
|
|
137
|
+
/** Dotted Line */
|
|
138
|
+
LineStyle["DOTTED"] = "DOTTED";
|
|
139
|
+
})(LineStyle || (exports.LineStyle = LineStyle = {}));
|
|
140
|
+
var Width;
|
|
141
|
+
(function (Width) {
|
|
142
|
+
/** Large line */
|
|
143
|
+
Width["LARGE"] = "LARGE";
|
|
144
|
+
/** Medium line */
|
|
145
|
+
Width["MEDIUM"] = "MEDIUM";
|
|
146
|
+
/** Small line */
|
|
147
|
+
Width["SMALL"] = "SMALL";
|
|
148
|
+
})(Width || (exports.Width = Width = {}));
|
|
149
|
+
var Alignment;
|
|
150
|
+
(function (Alignment) {
|
|
151
|
+
/** Center alignment */
|
|
152
|
+
Alignment["CENTER"] = "CENTER";
|
|
153
|
+
/** Left alignment */
|
|
154
|
+
Alignment["LEFT"] = "LEFT";
|
|
155
|
+
/** Right alignment */
|
|
156
|
+
Alignment["RIGHT"] = "RIGHT";
|
|
157
|
+
})(Alignment || (exports.Alignment = Alignment = {}));
|
|
158
|
+
var ViewMode;
|
|
159
|
+
(function (ViewMode) {
|
|
160
|
+
/** No PDF view */
|
|
161
|
+
ViewMode["NONE"] = "NONE";
|
|
162
|
+
/** Full PDF view */
|
|
163
|
+
ViewMode["FULL"] = "FULL";
|
|
164
|
+
/** Mini PDF view */
|
|
165
|
+
ViewMode["MINI"] = "MINI";
|
|
166
|
+
})(ViewMode || (exports.ViewMode = ViewMode = {}));
|
|
167
|
+
var LayoutType;
|
|
168
|
+
(function (LayoutType) {
|
|
169
|
+
/** Collage type */
|
|
170
|
+
LayoutType["COLLAGE"] = "COLLAGE";
|
|
171
|
+
/** Masonry type */
|
|
172
|
+
LayoutType["MASONRY"] = "MASONRY";
|
|
173
|
+
/** Grid type */
|
|
174
|
+
LayoutType["GRID"] = "GRID";
|
|
175
|
+
/** Thumbnail type */
|
|
176
|
+
LayoutType["THUMBNAIL"] = "THUMBNAIL";
|
|
177
|
+
/** Slider type */
|
|
178
|
+
LayoutType["SLIDER"] = "SLIDER";
|
|
179
|
+
/** Slideshow type */
|
|
180
|
+
LayoutType["SLIDESHOW"] = "SLIDESHOW";
|
|
181
|
+
/** Panorama type */
|
|
182
|
+
LayoutType["PANORAMA"] = "PANORAMA";
|
|
183
|
+
/** Column type */
|
|
184
|
+
LayoutType["COLUMN"] = "COLUMN";
|
|
185
|
+
/** Magic type */
|
|
186
|
+
LayoutType["MAGIC"] = "MAGIC";
|
|
187
|
+
/** Fullsize images type */
|
|
188
|
+
LayoutType["FULLSIZE"] = "FULLSIZE";
|
|
189
|
+
})(LayoutType || (exports.LayoutType = LayoutType = {}));
|
|
190
|
+
var Orientation;
|
|
191
|
+
(function (Orientation) {
|
|
192
|
+
/** Rows Orientation */
|
|
193
|
+
Orientation["ROWS"] = "ROWS";
|
|
194
|
+
/** Columns Orientation */
|
|
195
|
+
Orientation["COLUMNS"] = "COLUMNS";
|
|
196
|
+
})(Orientation || (exports.Orientation = Orientation = {}));
|
|
197
|
+
var Crop;
|
|
198
|
+
(function (Crop) {
|
|
199
|
+
/** Crop to fill */
|
|
200
|
+
Crop["FILL"] = "FILL";
|
|
201
|
+
/** Crop to fit */
|
|
202
|
+
Crop["FIT"] = "FIT";
|
|
203
|
+
})(Crop || (exports.Crop = Crop = {}));
|
|
204
|
+
var ThumbnailsAlignment;
|
|
205
|
+
(function (ThumbnailsAlignment) {
|
|
206
|
+
/** Top alignment */
|
|
207
|
+
ThumbnailsAlignment["TOP"] = "TOP";
|
|
208
|
+
/** Right alignment */
|
|
209
|
+
ThumbnailsAlignment["RIGHT"] = "RIGHT";
|
|
210
|
+
/** Bottom alignment */
|
|
211
|
+
ThumbnailsAlignment["BOTTOM"] = "BOTTOM";
|
|
212
|
+
/** Left alignment */
|
|
213
|
+
ThumbnailsAlignment["LEFT"] = "LEFT";
|
|
214
|
+
/** No thumbnail */
|
|
215
|
+
ThumbnailsAlignment["NONE"] = "NONE";
|
|
216
|
+
})(ThumbnailsAlignment || (exports.ThumbnailsAlignment = ThumbnailsAlignment = {}));
|
|
217
|
+
var GIFType;
|
|
218
|
+
(function (GIFType) {
|
|
219
|
+
GIFType["GIF"] = "GIF";
|
|
220
|
+
GIFType["STICKER"] = "STICKER";
|
|
221
|
+
})(GIFType || (exports.GIFType = GIFType = {}));
|
|
222
|
+
var Source;
|
|
223
|
+
(function (Source) {
|
|
224
|
+
Source["HTML"] = "HTML";
|
|
225
|
+
Source["ADSENSE"] = "ADSENSE";
|
|
226
|
+
})(Source || (exports.Source = Source = {}));
|
|
227
|
+
var MapType;
|
|
228
|
+
(function (MapType) {
|
|
229
|
+
/** Roadmap map type */
|
|
230
|
+
MapType["ROADMAP"] = "ROADMAP";
|
|
231
|
+
/** Satellite map type */
|
|
232
|
+
MapType["SATELITE"] = "SATELITE";
|
|
233
|
+
/** Hybrid map type */
|
|
234
|
+
MapType["HYBRID"] = "HYBRID";
|
|
235
|
+
/** Terrain map type */
|
|
236
|
+
MapType["TERRAIN"] = "TERRAIN";
|
|
237
|
+
})(MapType || (exports.MapType = MapType = {}));
|
|
238
|
+
var ViewRole;
|
|
239
|
+
(function (ViewRole) {
|
|
240
|
+
/** Only Poll creator can view the results */
|
|
241
|
+
ViewRole["CREATOR"] = "CREATOR";
|
|
242
|
+
/** Anyone who voted can see the results */
|
|
243
|
+
ViewRole["VOTERS"] = "VOTERS";
|
|
244
|
+
/** Anyone can see the results, even if one didn't vote */
|
|
245
|
+
ViewRole["EVERYONE"] = "EVERYONE";
|
|
246
|
+
})(ViewRole || (exports.ViewRole = ViewRole = {}));
|
|
247
|
+
var VoteRole;
|
|
248
|
+
(function (VoteRole) {
|
|
249
|
+
/** Logged in member */
|
|
250
|
+
VoteRole["SITE_MEMBERS"] = "SITE_MEMBERS";
|
|
251
|
+
/** Anyone */
|
|
252
|
+
VoteRole["ALL"] = "ALL";
|
|
253
|
+
})(VoteRole || (exports.VoteRole = VoteRole = {}));
|
|
254
|
+
var PollLayoutType;
|
|
255
|
+
(function (PollLayoutType) {
|
|
256
|
+
/** List */
|
|
257
|
+
PollLayoutType["LIST"] = "LIST";
|
|
258
|
+
/** Grid */
|
|
259
|
+
PollLayoutType["GRID"] = "GRID";
|
|
260
|
+
})(PollLayoutType || (exports.PollLayoutType = PollLayoutType = {}));
|
|
261
|
+
var PollLayoutDirection;
|
|
262
|
+
(function (PollLayoutDirection) {
|
|
263
|
+
/** Left-to-right */
|
|
264
|
+
PollLayoutDirection["LTR"] = "LTR";
|
|
265
|
+
/** Right-to-left */
|
|
266
|
+
PollLayoutDirection["RTL"] = "RTL";
|
|
267
|
+
})(PollLayoutDirection || (exports.PollLayoutDirection = PollLayoutDirection = {}));
|
|
268
|
+
var BackgroundType;
|
|
269
|
+
(function (BackgroundType) {
|
|
270
|
+
/** Color background type */
|
|
271
|
+
BackgroundType["COLOR"] = "COLOR";
|
|
272
|
+
/** Image background type */
|
|
273
|
+
BackgroundType["IMAGE"] = "IMAGE";
|
|
274
|
+
/** Gradiant background type */
|
|
275
|
+
BackgroundType["GRADIENT"] = "GRADIENT";
|
|
276
|
+
})(BackgroundType || (exports.BackgroundType = BackgroundType = {}));
|
|
277
|
+
var DecorationType;
|
|
278
|
+
(function (DecorationType) {
|
|
279
|
+
DecorationType["BOLD"] = "BOLD";
|
|
280
|
+
DecorationType["ITALIC"] = "ITALIC";
|
|
281
|
+
DecorationType["UNDERLINE"] = "UNDERLINE";
|
|
282
|
+
DecorationType["SPOILER"] = "SPOILER";
|
|
283
|
+
DecorationType["ANCHOR"] = "ANCHOR";
|
|
284
|
+
DecorationType["MENTION"] = "MENTION";
|
|
285
|
+
DecorationType["LINK"] = "LINK";
|
|
286
|
+
DecorationType["COLOR"] = "COLOR";
|
|
287
|
+
DecorationType["FONT_SIZE"] = "FONT_SIZE";
|
|
288
|
+
DecorationType["EXTERNAL"] = "EXTERNAL";
|
|
289
|
+
})(DecorationType || (exports.DecorationType = DecorationType = {}));
|
|
290
|
+
var FontType;
|
|
291
|
+
(function (FontType) {
|
|
292
|
+
FontType["PX"] = "PX";
|
|
293
|
+
FontType["EM"] = "EM";
|
|
294
|
+
})(FontType || (exports.FontType = FontType = {}));
|
|
295
|
+
var AppType;
|
|
296
|
+
(function (AppType) {
|
|
297
|
+
AppType["PRODUCT"] = "PRODUCT";
|
|
298
|
+
AppType["EVENT"] = "EVENT";
|
|
299
|
+
AppType["BOOKING"] = "BOOKING";
|
|
300
|
+
})(AppType || (exports.AppType = AppType = {}));
|
|
301
|
+
var InitialExpandedItems;
|
|
302
|
+
(function (InitialExpandedItems) {
|
|
303
|
+
/** First item will be expended initally */
|
|
304
|
+
InitialExpandedItems["FIRST"] = "FIRST";
|
|
305
|
+
/** All items will expended initally */
|
|
306
|
+
InitialExpandedItems["ALL"] = "ALL";
|
|
307
|
+
/** All items collapsed initally */
|
|
308
|
+
InitialExpandedItems["NONE"] = "NONE";
|
|
309
|
+
})(InitialExpandedItems || (exports.InitialExpandedItems = InitialExpandedItems = {}));
|
|
310
|
+
var Direction;
|
|
311
|
+
(function (Direction) {
|
|
312
|
+
/** Left-to-right */
|
|
313
|
+
Direction["LTR"] = "LTR";
|
|
314
|
+
/** Right-to-left */
|
|
315
|
+
Direction["RTL"] = "RTL";
|
|
316
|
+
})(Direction || (exports.Direction = Direction = {}));
|
|
317
|
+
var VerticalAlignment;
|
|
318
|
+
(function (VerticalAlignment) {
|
|
319
|
+
/** Top alignment */
|
|
320
|
+
VerticalAlignment["TOP"] = "TOP";
|
|
321
|
+
/** Middle alignment */
|
|
322
|
+
VerticalAlignment["MIDDLE"] = "MIDDLE";
|
|
323
|
+
/** Bottom alignment */
|
|
324
|
+
VerticalAlignment["BOTTOM"] = "BOTTOM";
|
|
325
|
+
})(VerticalAlignment || (exports.VerticalAlignment = VerticalAlignment = {}));
|
|
326
|
+
/**
|
|
327
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
328
|
+
* `Value` type union.
|
|
329
|
+
*
|
|
330
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
331
|
+
*/
|
|
332
|
+
var NullValue;
|
|
333
|
+
(function (NullValue) {
|
|
334
|
+
/** Null value. */
|
|
335
|
+
NullValue["NULL_VALUE"] = "NULL_VALUE";
|
|
336
|
+
})(NullValue || (exports.NullValue = NullValue = {}));
|
|
337
|
+
var SupportedLanguage;
|
|
338
|
+
(function (SupportedLanguage) {
|
|
339
|
+
/** Undefined Language */
|
|
340
|
+
SupportedLanguage["UNDEFINED_SUPPORTED_LANGUAGE"] = "UNDEFINED_SUPPORTED_LANGUAGE";
|
|
341
|
+
/** Afrikaans */
|
|
342
|
+
SupportedLanguage["AF"] = "AF";
|
|
343
|
+
/** Albanian */
|
|
344
|
+
SupportedLanguage["SQ"] = "SQ";
|
|
345
|
+
/** Amharic */
|
|
346
|
+
SupportedLanguage["AM"] = "AM";
|
|
347
|
+
/** Arabic */
|
|
348
|
+
SupportedLanguage["AR"] = "AR";
|
|
349
|
+
/** Armenian */
|
|
350
|
+
SupportedLanguage["HY"] = "HY";
|
|
351
|
+
/** Assamese */
|
|
352
|
+
SupportedLanguage["AS"] = "AS";
|
|
353
|
+
/** Aymara */
|
|
354
|
+
SupportedLanguage["AY"] = "AY";
|
|
355
|
+
/** Azerbaijani */
|
|
356
|
+
SupportedLanguage["AZ"] = "AZ";
|
|
357
|
+
/** Bambara */
|
|
358
|
+
SupportedLanguage["BM"] = "BM";
|
|
359
|
+
/** Basque */
|
|
360
|
+
SupportedLanguage["EU"] = "EU";
|
|
361
|
+
/** Belarusian */
|
|
362
|
+
SupportedLanguage["BE"] = "BE";
|
|
363
|
+
/** Bengali */
|
|
364
|
+
SupportedLanguage["BN"] = "BN";
|
|
365
|
+
/** Bhojpuri */
|
|
366
|
+
SupportedLanguage["BHO"] = "BHO";
|
|
367
|
+
/** Bosnian */
|
|
368
|
+
SupportedLanguage["BS"] = "BS";
|
|
369
|
+
/** Bulgarian */
|
|
370
|
+
SupportedLanguage["BG"] = "BG";
|
|
371
|
+
/** Catalan */
|
|
372
|
+
SupportedLanguage["CA"] = "CA";
|
|
373
|
+
/** Cebuano */
|
|
374
|
+
SupportedLanguage["CEB"] = "CEB";
|
|
375
|
+
/** Chinese (Simplified) */
|
|
376
|
+
SupportedLanguage["ZH_CN"] = "ZH_CN";
|
|
377
|
+
/** Chinese (Traditional) */
|
|
378
|
+
SupportedLanguage["ZH_TW"] = "ZH_TW";
|
|
379
|
+
/** Chinese (Simplified) */
|
|
380
|
+
SupportedLanguage["ZH"] = "ZH";
|
|
381
|
+
/** Corsican */
|
|
382
|
+
SupportedLanguage["CO"] = "CO";
|
|
383
|
+
/** Croatian */
|
|
384
|
+
SupportedLanguage["HR"] = "HR";
|
|
385
|
+
/** Czech */
|
|
386
|
+
SupportedLanguage["CS"] = "CS";
|
|
387
|
+
/** Danish */
|
|
388
|
+
SupportedLanguage["DA"] = "DA";
|
|
389
|
+
/** Dhivehi */
|
|
390
|
+
SupportedLanguage["DV"] = "DV";
|
|
391
|
+
/** Dogri */
|
|
392
|
+
SupportedLanguage["DOI"] = "DOI";
|
|
393
|
+
/** Dutch */
|
|
394
|
+
SupportedLanguage["NL"] = "NL";
|
|
395
|
+
/** English */
|
|
396
|
+
SupportedLanguage["EN"] = "EN";
|
|
397
|
+
/** Esperanto */
|
|
398
|
+
SupportedLanguage["EO"] = "EO";
|
|
399
|
+
/** Estonian */
|
|
400
|
+
SupportedLanguage["ET"] = "ET";
|
|
401
|
+
/** Ewe */
|
|
402
|
+
SupportedLanguage["EE"] = "EE";
|
|
403
|
+
/** Filipino (Tagalog) */
|
|
404
|
+
SupportedLanguage["FIL"] = "FIL";
|
|
405
|
+
/** Finnish */
|
|
406
|
+
SupportedLanguage["FI"] = "FI";
|
|
407
|
+
/** French */
|
|
408
|
+
SupportedLanguage["FR"] = "FR";
|
|
409
|
+
/** Frisian */
|
|
410
|
+
SupportedLanguage["FY"] = "FY";
|
|
411
|
+
/** Galician */
|
|
412
|
+
SupportedLanguage["GL"] = "GL";
|
|
413
|
+
/** Georgian */
|
|
414
|
+
SupportedLanguage["KA"] = "KA";
|
|
415
|
+
/** German */
|
|
416
|
+
SupportedLanguage["DE"] = "DE";
|
|
417
|
+
/** Greek */
|
|
418
|
+
SupportedLanguage["EL"] = "EL";
|
|
419
|
+
/** Guarani */
|
|
420
|
+
SupportedLanguage["GN"] = "GN";
|
|
421
|
+
/** Gujarati */
|
|
422
|
+
SupportedLanguage["GU"] = "GU";
|
|
423
|
+
/** Haitian Creole */
|
|
424
|
+
SupportedLanguage["HT"] = "HT";
|
|
425
|
+
/** Hausa */
|
|
426
|
+
SupportedLanguage["HA"] = "HA";
|
|
427
|
+
/** Hawaiian */
|
|
428
|
+
SupportedLanguage["HAW"] = "HAW";
|
|
429
|
+
/** Hebrew */
|
|
430
|
+
SupportedLanguage["HE"] = "HE";
|
|
431
|
+
/** Hindi */
|
|
432
|
+
SupportedLanguage["HI"] = "HI";
|
|
433
|
+
/** Hmong */
|
|
434
|
+
SupportedLanguage["HMN"] = "HMN";
|
|
435
|
+
/** Hungarian */
|
|
436
|
+
SupportedLanguage["HU"] = "HU";
|
|
437
|
+
/** Icelandic */
|
|
438
|
+
SupportedLanguage["IS"] = "IS";
|
|
439
|
+
/** Igbo */
|
|
440
|
+
SupportedLanguage["IG"] = "IG";
|
|
441
|
+
/** Ilocano */
|
|
442
|
+
SupportedLanguage["ILO"] = "ILO";
|
|
443
|
+
/** Indonesian */
|
|
444
|
+
SupportedLanguage["ID"] = "ID";
|
|
445
|
+
/** Irish */
|
|
446
|
+
SupportedLanguage["GA"] = "GA";
|
|
447
|
+
/** Italian */
|
|
448
|
+
SupportedLanguage["IT"] = "IT";
|
|
449
|
+
/** Japanese */
|
|
450
|
+
SupportedLanguage["JA"] = "JA";
|
|
451
|
+
/** Javanese */
|
|
452
|
+
SupportedLanguage["JW"] = "JW";
|
|
453
|
+
/** Kannada */
|
|
454
|
+
SupportedLanguage["KN"] = "KN";
|
|
455
|
+
/** Kazakh */
|
|
456
|
+
SupportedLanguage["KK"] = "KK";
|
|
457
|
+
/** Khmer */
|
|
458
|
+
SupportedLanguage["KM"] = "KM";
|
|
459
|
+
/** Kinyarwanda */
|
|
460
|
+
SupportedLanguage["RW"] = "RW";
|
|
461
|
+
/** Konkani */
|
|
462
|
+
SupportedLanguage["GOM"] = "GOM";
|
|
463
|
+
/** Korean */
|
|
464
|
+
SupportedLanguage["KO"] = "KO";
|
|
465
|
+
/** Krio */
|
|
466
|
+
SupportedLanguage["KRI"] = "KRI";
|
|
467
|
+
/** Kurdish */
|
|
468
|
+
SupportedLanguage["KU"] = "KU";
|
|
469
|
+
/** Kurdish (Sorani) */
|
|
470
|
+
SupportedLanguage["CKB"] = "CKB";
|
|
471
|
+
/** Kyrgyz */
|
|
472
|
+
SupportedLanguage["KY"] = "KY";
|
|
473
|
+
/** Lao */
|
|
474
|
+
SupportedLanguage["LO"] = "LO";
|
|
475
|
+
/** Latin */
|
|
476
|
+
SupportedLanguage["LA"] = "LA";
|
|
477
|
+
/** Latvian */
|
|
478
|
+
SupportedLanguage["LV"] = "LV";
|
|
479
|
+
/** Lingala */
|
|
480
|
+
SupportedLanguage["LN"] = "LN";
|
|
481
|
+
/** Lithuanian */
|
|
482
|
+
SupportedLanguage["LT"] = "LT";
|
|
483
|
+
/** Luganda */
|
|
484
|
+
SupportedLanguage["LG"] = "LG";
|
|
485
|
+
/** Luxembourgish */
|
|
486
|
+
SupportedLanguage["LB"] = "LB";
|
|
487
|
+
/** Macedonian */
|
|
488
|
+
SupportedLanguage["MK"] = "MK";
|
|
489
|
+
/** Maithili */
|
|
490
|
+
SupportedLanguage["MAI"] = "MAI";
|
|
491
|
+
/** Malagasy */
|
|
492
|
+
SupportedLanguage["MG"] = "MG";
|
|
493
|
+
/** Malay */
|
|
494
|
+
SupportedLanguage["MS"] = "MS";
|
|
495
|
+
/** Malayalam */
|
|
496
|
+
SupportedLanguage["ML"] = "ML";
|
|
497
|
+
/** Maltese */
|
|
498
|
+
SupportedLanguage["MT"] = "MT";
|
|
499
|
+
/** Maori */
|
|
500
|
+
SupportedLanguage["MI"] = "MI";
|
|
501
|
+
/** Marathi */
|
|
502
|
+
SupportedLanguage["MR"] = "MR";
|
|
503
|
+
/** Meiteilon (Manipuri) */
|
|
504
|
+
SupportedLanguage["MNI_MTEI"] = "MNI_MTEI";
|
|
505
|
+
/** Mizo */
|
|
506
|
+
SupportedLanguage["LUS"] = "LUS";
|
|
507
|
+
/** Mongolian */
|
|
508
|
+
SupportedLanguage["MN"] = "MN";
|
|
509
|
+
/** Myanmar (Burmese) */
|
|
510
|
+
SupportedLanguage["MY"] = "MY";
|
|
511
|
+
/** Nepali */
|
|
512
|
+
SupportedLanguage["NE"] = "NE";
|
|
513
|
+
/** Norwegian */
|
|
514
|
+
SupportedLanguage["NO"] = "NO";
|
|
515
|
+
/** Nyanja (Chichewa) */
|
|
516
|
+
SupportedLanguage["NY"] = "NY";
|
|
517
|
+
/** Odia (Oriya) */
|
|
518
|
+
SupportedLanguage["OR"] = "OR";
|
|
519
|
+
/** Oromo */
|
|
520
|
+
SupportedLanguage["OM"] = "OM";
|
|
521
|
+
/** Pashto */
|
|
522
|
+
SupportedLanguage["PS"] = "PS";
|
|
523
|
+
/** Persian */
|
|
524
|
+
SupportedLanguage["FA"] = "FA";
|
|
525
|
+
/** Polish */
|
|
526
|
+
SupportedLanguage["PL"] = "PL";
|
|
527
|
+
/** Portuguese (Portugal, Brazil) */
|
|
528
|
+
SupportedLanguage["PT"] = "PT";
|
|
529
|
+
/** Punjabi */
|
|
530
|
+
SupportedLanguage["PA"] = "PA";
|
|
531
|
+
/** Quechua */
|
|
532
|
+
SupportedLanguage["QU"] = "QU";
|
|
533
|
+
/** Romanian */
|
|
534
|
+
SupportedLanguage["RO"] = "RO";
|
|
535
|
+
/** Russian */
|
|
536
|
+
SupportedLanguage["RU"] = "RU";
|
|
537
|
+
/** Samoan */
|
|
538
|
+
SupportedLanguage["SM"] = "SM";
|
|
539
|
+
/** Sanskrit */
|
|
540
|
+
SupportedLanguage["SA"] = "SA";
|
|
541
|
+
/** Scots Gaelic */
|
|
542
|
+
SupportedLanguage["GD"] = "GD";
|
|
543
|
+
/** Sepedi */
|
|
544
|
+
SupportedLanguage["NSO"] = "NSO";
|
|
545
|
+
/** Serbian */
|
|
546
|
+
SupportedLanguage["SR"] = "SR";
|
|
547
|
+
/** Sesotho */
|
|
548
|
+
SupportedLanguage["ST"] = "ST";
|
|
549
|
+
/** Shona */
|
|
550
|
+
SupportedLanguage["SN"] = "SN";
|
|
551
|
+
/** Sindhi */
|
|
552
|
+
SupportedLanguage["SD"] = "SD";
|
|
553
|
+
/** Sinhala (Sinhalese) */
|
|
554
|
+
SupportedLanguage["SI"] = "SI";
|
|
555
|
+
/** Slovak */
|
|
556
|
+
SupportedLanguage["SK"] = "SK";
|
|
557
|
+
/** Slovenian */
|
|
558
|
+
SupportedLanguage["SL"] = "SL";
|
|
559
|
+
/** Somali */
|
|
560
|
+
SupportedLanguage["SO"] = "SO";
|
|
561
|
+
/** Spanish */
|
|
562
|
+
SupportedLanguage["ES"] = "ES";
|
|
563
|
+
/** Sundanese */
|
|
564
|
+
SupportedLanguage["SU"] = "SU";
|
|
565
|
+
/** Swahili */
|
|
566
|
+
SupportedLanguage["SW"] = "SW";
|
|
567
|
+
/** Swedish */
|
|
568
|
+
SupportedLanguage["SV"] = "SV";
|
|
569
|
+
/** Tagalog (Filipino) */
|
|
570
|
+
SupportedLanguage["TL"] = "TL";
|
|
571
|
+
/** Tajik */
|
|
572
|
+
SupportedLanguage["TG"] = "TG";
|
|
573
|
+
/** Tamil */
|
|
574
|
+
SupportedLanguage["TA"] = "TA";
|
|
575
|
+
/** Tatar */
|
|
576
|
+
SupportedLanguage["TT"] = "TT";
|
|
577
|
+
/** Telugu */
|
|
578
|
+
SupportedLanguage["TE"] = "TE";
|
|
579
|
+
/** Thai */
|
|
580
|
+
SupportedLanguage["TH"] = "TH";
|
|
581
|
+
/** Tigrinya */
|
|
582
|
+
SupportedLanguage["TI"] = "TI";
|
|
583
|
+
/** Tsonga */
|
|
584
|
+
SupportedLanguage["TS"] = "TS";
|
|
585
|
+
/** Turkish */
|
|
586
|
+
SupportedLanguage["TR"] = "TR";
|
|
587
|
+
/** Turkmen */
|
|
588
|
+
SupportedLanguage["TK"] = "TK";
|
|
589
|
+
/** Twi (Akan) */
|
|
590
|
+
SupportedLanguage["AK"] = "AK";
|
|
591
|
+
/** Ukrainian */
|
|
592
|
+
SupportedLanguage["UK"] = "UK";
|
|
593
|
+
/** Urdu */
|
|
594
|
+
SupportedLanguage["UR"] = "UR";
|
|
595
|
+
/** Uyghur */
|
|
596
|
+
SupportedLanguage["UG"] = "UG";
|
|
597
|
+
/** Uzbek */
|
|
598
|
+
SupportedLanguage["UZ"] = "UZ";
|
|
599
|
+
/** Vietnamese */
|
|
600
|
+
SupportedLanguage["VI"] = "VI";
|
|
601
|
+
/** Welsh */
|
|
602
|
+
SupportedLanguage["CY"] = "CY";
|
|
603
|
+
/** Xhosa */
|
|
604
|
+
SupportedLanguage["XH"] = "XH";
|
|
605
|
+
/** Yiddish */
|
|
606
|
+
SupportedLanguage["YI"] = "YI";
|
|
607
|
+
/** Yoruba */
|
|
608
|
+
SupportedLanguage["YO"] = "YO";
|
|
609
|
+
/** Zulu */
|
|
610
|
+
SupportedLanguage["ZU"] = "ZU";
|
|
611
|
+
})(SupportedLanguage || (exports.SupportedLanguage = SupportedLanguage = {}));
|
|
612
|
+
/**
|
|
613
|
+
* Translates the text of a translatable unit of content from one supported language to another.
|
|
614
|
+
*
|
|
615
|
+
* The `translatedContent` object returns with the same `id` used for `contentToTranslate.id` but the text within the
|
|
616
|
+
* content fields is replaced with the translated text. Note that Wix does not overwrite the original content object.
|
|
617
|
+
* To retrieve the translated content later, make sure to store it separately.
|
|
618
|
+
*
|
|
619
|
+
* Only text content is translated, even if the content is `htmlContent` or `richContent`. Note that [collapsible text](https://support.wix.com/en/article/adding-and-setting-up-collapsible-text)
|
|
620
|
+
* cannot be translated using this method.
|
|
621
|
+
*
|
|
622
|
+
* The translatable content must not exceed 5,000 characters. If this limit is exceeded, the method returns a `TEXT_TOO_LONG` error.
|
|
623
|
+
* For `richContent`, the 5,000-character limit applies separately to each node in `richContent.nodes`.
|
|
624
|
+
* The total translatable content may be more than 5,000 characters as long as no individual node surpasses this limit.
|
|
625
|
+
* If any node exceeds 5,000 characters, the entire request fails.
|
|
626
|
+
*
|
|
627
|
+
* Each site has a word credit balance indicating the number of words available for translation. Successful translation requests reduce the word credits by the number of words in `contentToTranslate`.
|
|
628
|
+
* If the site does not have sufficient word credits to translate all of the text in the request, the request fails
|
|
629
|
+
* with a `NOT_ENOUGH_CREDITS` error. You can also call the [Credit Data API](https://dev.wix.com/docs/rest/business-management/multilingual/machine-translation/credit-data/introduction)'s [Check Sufficient Credits](https://dev.wix.com/docs/rest/business-management/multilingual/machine-translation/credit-data/check-sufficient-credits) method at any time to check whether the site has enough credits to translate the specified number of words.
|
|
630
|
+
* Wix users can receive additional word credits by [purchasing a translation package](https://support.wix.com/en/article/wix-multilingual-auto-translating-your-site#purchasing-translation-packages) in the [Translation Manager](https://support.wix.com/en/article/wix-multilingual-using-the-translation-manager) at any time.
|
|
631
|
+
*
|
|
632
|
+
* To translate up to 1,000 `translatableContent` units at once, use [Bulk Machine Translate](/machine-translation/bulk-machine-translate).
|
|
633
|
+
* @param sourceLanguage - Language of the source text to translate.
|
|
634
|
+
* @public
|
|
635
|
+
* @requiredField options
|
|
636
|
+
* @requiredField options.contentToTranslate
|
|
637
|
+
* @requiredField options.targetLanguage
|
|
638
|
+
* @requiredField sourceLanguage
|
|
639
|
+
* @permissionId WIX_MULTILINGUAL.MACHINE_TRANSLATE
|
|
640
|
+
* @fqn wix.multilingual.machine.v3.MachineTranslation.MachineTranslate
|
|
641
|
+
*/
|
|
642
|
+
async function machineTranslate(sourceLanguage, options) {
|
|
643
|
+
// @ts-ignore
|
|
644
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
645
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
646
|
+
sourceLanguage: sourceLanguage,
|
|
647
|
+
targetLanguage: options?.targetLanguage,
|
|
648
|
+
contentToTranslate: options?.contentToTranslate,
|
|
649
|
+
});
|
|
650
|
+
const reqOpts = ambassadorWixMultilingualMachineV3TranslatableContent.machineTranslate(payload);
|
|
651
|
+
sideEffects?.onSiteCall?.();
|
|
652
|
+
try {
|
|
653
|
+
const result = await httpClient.request(reqOpts);
|
|
654
|
+
sideEffects?.onSuccess?.(result);
|
|
655
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
656
|
+
}
|
|
657
|
+
catch (err) {
|
|
658
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
659
|
+
spreadPathsToArguments: {},
|
|
660
|
+
explicitPathsToArguments: {
|
|
661
|
+
sourceLanguage: '$[0]',
|
|
662
|
+
targetLanguage: '$[1].targetLanguage',
|
|
663
|
+
contentToTranslate: '$[1].contentToTranslate',
|
|
664
|
+
},
|
|
665
|
+
singleArgumentUnchanged: false,
|
|
666
|
+
}, ['sourceLanguage', 'options']);
|
|
667
|
+
sideEffects?.onError?.(err);
|
|
668
|
+
throw transformedError;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
exports.machineTranslate = machineTranslate;
|
|
672
|
+
/**
|
|
673
|
+
* Translates the text of multiple units of translatable content from one supported language to another.
|
|
674
|
+
*
|
|
675
|
+
* Each translated content item in the `results` array returns with the same `id` as the corresponding `contentToTranslate.id`, but with the text in the
|
|
676
|
+
* content fields replaced with the translated text. Note that Wix does not overwrite the original content source,
|
|
677
|
+
* to retrieve the translated content later, make sure to store it separately.
|
|
678
|
+
*
|
|
679
|
+
* Only text content is translated, even if the content is `htmlContent` or `richContent`. Note that [collapsible text](https://support.wix.com/en/article/adding-and-setting-up-collapsible-text)
|
|
680
|
+
* cannot be translated using this method.
|
|
681
|
+
*
|
|
682
|
+
* Each unit of translatable content must not exceed 5,000 characters. If this limit is exceeded, the method returns a `TEXT_TOO_LONG` error.
|
|
683
|
+
* For `richContent`, the 5,000-character limit applies separately to each node in `richContent.nodes`.
|
|
684
|
+
* The total request may exceed 5,000 characters as long as no individual node surpasses this limit.
|
|
685
|
+
* If any node exceeds 5,000 characters, then the request fails for that specific `contentToTranslate` item and the error details for that
|
|
686
|
+
* error are returned in `itemMetadata`. Even if some translations fail due to the character limit,
|
|
687
|
+
* the machine translation for other items will succeed if they are under the character limit.
|
|
688
|
+
*
|
|
689
|
+
* Each site has a [word credit](/machine-translation/introduction#terminology) balance, starting at 3,000 words.
|
|
690
|
+
* Each successful translation request reduces the word credits by the number of words included in `contentToTranslate`.
|
|
691
|
+
* If the site does not have sufficient word credits to complete the translation, then the entire request fails
|
|
692
|
+
* with a `NOT_ENOUGH_CREDITS` error. Additional credits can be [purchased through the Dashboard](https://support.wix.com/en/article/wix-multilingual-auto-translating-your-site?tabs=Dashboard-5#purchasing-translation-packages).
|
|
693
|
+
*
|
|
694
|
+
* To translate a single unit of `translatableContent`, use [Machine Translate](/machine-translation/machine-translate).
|
|
695
|
+
* @param sourceLanguage - Language of the source text to translate.
|
|
696
|
+
* @public
|
|
697
|
+
* @requiredField options.targetLanguage
|
|
698
|
+
* @requiredField sourceLanguage
|
|
699
|
+
* @permissionId WIX_MULTILINGUAL.MACHINE_TRANSLATE
|
|
700
|
+
* @fqn wix.multilingual.machine.v3.MachineTranslation.BulkMachineTranslate
|
|
701
|
+
*/
|
|
702
|
+
async function bulkMachineTranslate(sourceLanguage, options) {
|
|
703
|
+
// @ts-ignore
|
|
704
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
705
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
706
|
+
sourceLanguage: sourceLanguage,
|
|
707
|
+
targetLanguage: options?.targetLanguage,
|
|
708
|
+
contentToTranslate: options?.contentToTranslate,
|
|
709
|
+
});
|
|
710
|
+
const reqOpts = ambassadorWixMultilingualMachineV3TranslatableContent.bulkMachineTranslate(payload);
|
|
711
|
+
sideEffects?.onSiteCall?.();
|
|
712
|
+
try {
|
|
713
|
+
const result = await httpClient.request(reqOpts);
|
|
714
|
+
sideEffects?.onSuccess?.(result);
|
|
715
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
716
|
+
}
|
|
717
|
+
catch (err) {
|
|
718
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
719
|
+
spreadPathsToArguments: {},
|
|
720
|
+
explicitPathsToArguments: {
|
|
721
|
+
sourceLanguage: '$[0]',
|
|
722
|
+
targetLanguage: '$[1].targetLanguage',
|
|
723
|
+
contentToTranslate: '$[1].contentToTranslate',
|
|
724
|
+
},
|
|
725
|
+
singleArgumentUnchanged: false,
|
|
726
|
+
}, ['sourceLanguage', 'options']);
|
|
727
|
+
sideEffects?.onError?.(err);
|
|
728
|
+
throw transformedError;
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
exports.bulkMachineTranslate = bulkMachineTranslate;
|
|
732
|
+
//# sourceMappingURL=multilingual-machine-v3-translatable-content-machine-translation.universal.js.map
|