@wix/auto_sdk_multilingual_translation-published-contents 1.0.29 → 1.0.31

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.
Files changed (29) hide show
  1. package/build/cjs/index.d.ts +2 -2
  2. package/build/cjs/index.js +69 -18
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/{multilingual-localization-public-v3-published-content-translation-published-contents.universal-7wjuj2Yv.d.ts → index.typings.d.ts} +280 -12
  5. package/build/cjs/index.typings.js +649 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +214 -12
  8. package/build/es/index.d.mts +2 -2
  9. package/build/es/index.mjs +62 -18
  10. package/build/es/index.mjs.map +1 -1
  11. package/build/es/{multilingual-localization-public-v3-published-content-translation-published-contents.universal-7wjuj2Yv.d.mts → index.typings.d.mts} +280 -12
  12. package/build/es/index.typings.mjs +585 -0
  13. package/build/es/index.typings.mjs.map +1 -0
  14. package/build/es/meta.d.mts +214 -12
  15. package/build/internal/cjs/index.d.ts +2 -2
  16. package/build/internal/cjs/index.js +69 -18
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/internal/cjs/{multilingual-localization-public-v3-published-content-translation-published-contents.universal-7wjuj2Yv.d.ts → index.typings.d.ts} +280 -12
  19. package/build/internal/cjs/index.typings.js +649 -0
  20. package/build/internal/cjs/index.typings.js.map +1 -0
  21. package/build/internal/cjs/meta.d.ts +214 -12
  22. package/build/internal/es/index.d.mts +2 -2
  23. package/build/internal/es/index.mjs +62 -18
  24. package/build/internal/es/index.mjs.map +1 -1
  25. package/build/internal/es/{multilingual-localization-public-v3-published-content-translation-published-contents.universal-7wjuj2Yv.d.mts → index.typings.d.mts} +280 -12
  26. package/build/internal/es/index.typings.mjs +585 -0
  27. package/build/internal/es/index.typings.mjs.map +1 -0
  28. package/build/internal/es/meta.d.mts +214 -12
  29. package/package.json +2 -2
@@ -0,0 +1,649 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.typings.ts
21
+ var index_typings_exports = {};
22
+ __export(index_typings_exports, {
23
+ Alignment: () => Alignment,
24
+ AppType: () => AppType,
25
+ AspectRatio: () => AspectRatio,
26
+ BackgroundType: () => BackgroundType,
27
+ ButtonDataType: () => ButtonDataType,
28
+ Crop: () => Crop,
29
+ DecorationType: () => DecorationType,
30
+ Direction: () => Direction,
31
+ DividerDataAlignment: () => DividerDataAlignment,
32
+ FontType: () => FontType,
33
+ GIFType: () => GIFType,
34
+ InitialExpandedItems: () => InitialExpandedItems,
35
+ Layout: () => Layout,
36
+ LayoutType: () => LayoutType,
37
+ LineStyle: () => LineStyle,
38
+ MapType: () => MapType,
39
+ NodeType: () => NodeType,
40
+ NullValue: () => NullValue,
41
+ Orientation: () => Orientation,
42
+ Placement: () => Placement,
43
+ PluginContainerDataAlignment: () => PluginContainerDataAlignment,
44
+ PollLayoutDirection: () => PollLayoutDirection,
45
+ PollLayoutType: () => PollLayoutType,
46
+ Position: () => Position,
47
+ Resizing: () => Resizing,
48
+ SchemaScope: () => SchemaScope,
49
+ SortOrder: () => SortOrder,
50
+ Source: () => Source,
51
+ StylesPosition: () => StylesPosition,
52
+ Target: () => Target,
53
+ TextAlignment: () => TextAlignment,
54
+ ThumbnailsAlignment: () => ThumbnailsAlignment,
55
+ Type: () => Type,
56
+ VerticalAlignment: () => VerticalAlignment,
57
+ ViewMode: () => ViewMode,
58
+ ViewRole: () => ViewRole,
59
+ VoteRole: () => VoteRole,
60
+ WebhookIdentityType: () => WebhookIdentityType,
61
+ Width: () => Width,
62
+ WidthType: () => WidthType,
63
+ queryPublishedContent: () => queryPublishedContent2
64
+ });
65
+ module.exports = __toCommonJS(index_typings_exports);
66
+
67
+ // src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.ts
68
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
69
+ var import_query_builder = require("@wix/sdk-runtime/query-builder");
70
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
71
+
72
+ // src/multilingual-localization-public-v3-published-content-translation-published-contents.http.ts
73
+ var import_float = require("@wix/sdk-runtime/transformations/float");
74
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
75
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
76
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
77
+ function resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(opts) {
78
+ const domainToMappings = {
79
+ _: [
80
+ {
81
+ srcPath: "/localization-public",
82
+ destPath: ""
83
+ },
84
+ {
85
+ srcPath: "/translation-published-content/v3",
86
+ destPath: "/v3"
87
+ },
88
+ {
89
+ srcPath: "/_api/translation-published-content/v3",
90
+ destPath: "/v3"
91
+ }
92
+ ],
93
+ "cashier.wixapps.net": [
94
+ {
95
+ srcPath: "/multilingual/v1/public-localized-content",
96
+ destPath: "/v1/public-localized-content"
97
+ }
98
+ ],
99
+ "*.dev.wix-code.com": [
100
+ {
101
+ srcPath: "/_api/translation-published-content/v3",
102
+ destPath: "/v3"
103
+ }
104
+ ],
105
+ "manage._base_domain_": [
106
+ {
107
+ srcPath: "/_api/translation-published-content/v3",
108
+ destPath: "/v3"
109
+ }
110
+ ],
111
+ "editor._base_domain_": [
112
+ {
113
+ srcPath: "/_api/translation-published-content/v3",
114
+ destPath: "/v3"
115
+ }
116
+ ],
117
+ "blocks._base_domain_": [
118
+ {
119
+ srcPath: "/_api/translation-published-content/v3",
120
+ destPath: "/v3"
121
+ }
122
+ ],
123
+ "create.editorx": [
124
+ {
125
+ srcPath: "/_api/translation-published-content/v3",
126
+ destPath: "/v3"
127
+ }
128
+ ],
129
+ "www.wixapis.com": [
130
+ {
131
+ srcPath: "/translation-published-content/v3",
132
+ destPath: "/v3"
133
+ }
134
+ ]
135
+ };
136
+ return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
137
+ }
138
+ var PACKAGE_NAME = "@wix/auto_sdk_multilingual_translation-published-contents";
139
+ function queryPublishedContent(payload) {
140
+ function __queryPublishedContent({ host }) {
141
+ const metadata = {
142
+ entityFqdn: "wix.multilingual.localization_public.v3.published_content",
143
+ method: "POST",
144
+ methodFqn: "com.wixpress.localizationpublic.v3.TranslationPublishedContent.QueryPublishedContent",
145
+ packageName: PACKAGE_NAME,
146
+ url: resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(
147
+ { protoPath: "/v3/published-contents/query", data: payload, host }
148
+ ),
149
+ data: payload,
150
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
151
+ {
152
+ transformFn: import_float.transformRESTFloatToSDKFloat,
153
+ paths: [
154
+ {
155
+ path: "publishedContent.fields.richContent.nodes.galleryData.items.image.media.duration"
156
+ },
157
+ {
158
+ path: "publishedContent.fields.richContent.nodes.galleryData.items.video.media.duration"
159
+ },
160
+ {
161
+ path: "publishedContent.fields.richContent.nodes.galleryData.items.video.thumbnail.duration"
162
+ },
163
+ {
164
+ path: "publishedContent.fields.richContent.nodes.galleryData.options.item.ratio"
165
+ },
166
+ {
167
+ path: "publishedContent.fields.richContent.nodes.imageData.image.duration"
168
+ },
169
+ {
170
+ path: "publishedContent.fields.richContent.nodes.mapData.mapSettings.lat"
171
+ },
172
+ {
173
+ path: "publishedContent.fields.richContent.nodes.mapData.mapSettings.lng"
174
+ },
175
+ {
176
+ path: "publishedContent.fields.richContent.nodes.pollData.poll.image.duration"
177
+ },
178
+ {
179
+ path: "publishedContent.fields.richContent.nodes.pollData.poll.options.image.duration"
180
+ },
181
+ {
182
+ path: "publishedContent.fields.richContent.nodes.pollData.design.poll.background.image.duration"
183
+ },
184
+ {
185
+ path: "publishedContent.fields.richContent.nodes.appEmbedData.image.duration"
186
+ },
187
+ {
188
+ path: "publishedContent.fields.richContent.nodes.videoData.video.duration"
189
+ },
190
+ {
191
+ path: "publishedContent.fields.richContent.nodes.videoData.thumbnail.duration"
192
+ },
193
+ {
194
+ path: "publishedContent.fields.richContent.nodes.audioData.audio.duration"
195
+ },
196
+ {
197
+ path: "publishedContent.fields.richContent.nodes.audioData.coverImage.duration"
198
+ },
199
+ { path: "publishedContent.fields.image.focalPoint.x" },
200
+ { path: "publishedContent.fields.image.focalPoint.y" },
201
+ {
202
+ path: "publishedContent.fields.video.resolutions.poster.focalPoint.x"
203
+ },
204
+ {
205
+ path: "publishedContent.fields.video.resolutions.poster.focalPoint.y"
206
+ },
207
+ { path: "publishedContent.fields.video.posters.focalPoint.x" },
208
+ { path: "publishedContent.fields.video.posters.focalPoint.y" },
209
+ {
210
+ path: "publishedContent.fields.document.thumbnail.focalPoint.x"
211
+ },
212
+ {
213
+ path: "publishedContent.fields.document.thumbnail.focalPoint.y"
214
+ }
215
+ ]
216
+ },
217
+ {
218
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
219
+ paths: [
220
+ {
221
+ path: "publishedContent.fields.richContent.metadata.createdTimestamp"
222
+ },
223
+ {
224
+ path: "publishedContent.fields.richContent.metadata.updatedTimestamp"
225
+ },
226
+ { path: "publishedContent.fields.image.urlExpirationDate" },
227
+ { path: "publishedContent.fields.video.urlExpirationDate" },
228
+ {
229
+ path: "publishedContent.fields.video.resolutions.urlExpirationDate"
230
+ },
231
+ {
232
+ path: "publishedContent.fields.video.resolutions.poster.urlExpirationDate"
233
+ },
234
+ {
235
+ path: "publishedContent.fields.video.posters.urlExpirationDate"
236
+ },
237
+ { path: "publishedContent.fields.document.urlExpirationDate" },
238
+ {
239
+ path: "publishedContent.fields.document.thumbnail.urlExpirationDate"
240
+ }
241
+ ]
242
+ }
243
+ ]),
244
+ fallback: [
245
+ {
246
+ method: "POST",
247
+ url: resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(
248
+ { protoPath: "/v3/published-contents/query", data: payload, host }
249
+ ),
250
+ data: payload
251
+ }
252
+ ]
253
+ };
254
+ return metadata;
255
+ }
256
+ return __queryPublishedContent;
257
+ }
258
+
259
+ // src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.ts
260
+ var import_image = require("@wix/sdk-runtime/transformations/image");
261
+ var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
262
+ var import_document = require("@wix/sdk-runtime/transformations/document");
263
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
264
+ var SchemaScope = /* @__PURE__ */ ((SchemaScope2) => {
265
+ SchemaScope2["UNKNOWN_SCOPE"] = "UNKNOWN_SCOPE";
266
+ SchemaScope2["GLOBAL"] = "GLOBAL";
267
+ SchemaScope2["SITE"] = "SITE";
268
+ return SchemaScope2;
269
+ })(SchemaScope || {});
270
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
271
+ NodeType2["PARAGRAPH"] = "PARAGRAPH";
272
+ NodeType2["TEXT"] = "TEXT";
273
+ NodeType2["HEADING"] = "HEADING";
274
+ NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
275
+ NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
276
+ NodeType2["LIST_ITEM"] = "LIST_ITEM";
277
+ NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
278
+ NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
279
+ NodeType2["VIDEO"] = "VIDEO";
280
+ NodeType2["DIVIDER"] = "DIVIDER";
281
+ NodeType2["FILE"] = "FILE";
282
+ NodeType2["GALLERY"] = "GALLERY";
283
+ NodeType2["GIF"] = "GIF";
284
+ NodeType2["HTML"] = "HTML";
285
+ NodeType2["IMAGE"] = "IMAGE";
286
+ NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
287
+ NodeType2["MAP"] = "MAP";
288
+ NodeType2["POLL"] = "POLL";
289
+ NodeType2["APP_EMBED"] = "APP_EMBED";
290
+ NodeType2["BUTTON"] = "BUTTON";
291
+ NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
292
+ NodeType2["TABLE"] = "TABLE";
293
+ NodeType2["EMBED"] = "EMBED";
294
+ NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
295
+ NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
296
+ NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
297
+ NodeType2["TABLE_CELL"] = "TABLE_CELL";
298
+ NodeType2["TABLE_ROW"] = "TABLE_ROW";
299
+ NodeType2["EXTERNAL"] = "EXTERNAL";
300
+ NodeType2["AUDIO"] = "AUDIO";
301
+ NodeType2["CAPTION"] = "CAPTION";
302
+ NodeType2["LAYOUT"] = "LAYOUT";
303
+ NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
304
+ return NodeType2;
305
+ })(NodeType || {});
306
+ var WidthType = /* @__PURE__ */ ((WidthType2) => {
307
+ WidthType2["CONTENT"] = "CONTENT";
308
+ WidthType2["SMALL"] = "SMALL";
309
+ WidthType2["ORIGINAL"] = "ORIGINAL";
310
+ WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
311
+ return WidthType2;
312
+ })(WidthType || {});
313
+ var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
314
+ PluginContainerDataAlignment2["CENTER"] = "CENTER";
315
+ PluginContainerDataAlignment2["LEFT"] = "LEFT";
316
+ PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
317
+ return PluginContainerDataAlignment2;
318
+ })(PluginContainerDataAlignment || {});
319
+ var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
320
+ ButtonDataType2["LINK"] = "LINK";
321
+ ButtonDataType2["ACTION"] = "ACTION";
322
+ return ButtonDataType2;
323
+ })(ButtonDataType || {});
324
+ var Target = /* @__PURE__ */ ((Target2) => {
325
+ Target2["SELF"] = "SELF";
326
+ Target2["BLANK"] = "BLANK";
327
+ Target2["PARENT"] = "PARENT";
328
+ Target2["TOP"] = "TOP";
329
+ return Target2;
330
+ })(Target || {});
331
+ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
332
+ TextAlignment2["AUTO"] = "AUTO";
333
+ TextAlignment2["LEFT"] = "LEFT";
334
+ TextAlignment2["RIGHT"] = "RIGHT";
335
+ TextAlignment2["CENTER"] = "CENTER";
336
+ TextAlignment2["JUSTIFY"] = "JUSTIFY";
337
+ return TextAlignment2;
338
+ })(TextAlignment || {});
339
+ var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
340
+ LineStyle2["SINGLE"] = "SINGLE";
341
+ LineStyle2["DOUBLE"] = "DOUBLE";
342
+ LineStyle2["DASHED"] = "DASHED";
343
+ LineStyle2["DOTTED"] = "DOTTED";
344
+ return LineStyle2;
345
+ })(LineStyle || {});
346
+ var Width = /* @__PURE__ */ ((Width2) => {
347
+ Width2["LARGE"] = "LARGE";
348
+ Width2["MEDIUM"] = "MEDIUM";
349
+ Width2["SMALL"] = "SMALL";
350
+ return Width2;
351
+ })(Width || {});
352
+ var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
353
+ DividerDataAlignment2["CENTER"] = "CENTER";
354
+ DividerDataAlignment2["LEFT"] = "LEFT";
355
+ DividerDataAlignment2["RIGHT"] = "RIGHT";
356
+ return DividerDataAlignment2;
357
+ })(DividerDataAlignment || {});
358
+ var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
359
+ ViewMode2["NONE"] = "NONE";
360
+ ViewMode2["FULL"] = "FULL";
361
+ ViewMode2["MINI"] = "MINI";
362
+ return ViewMode2;
363
+ })(ViewMode || {});
364
+ var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
365
+ LayoutType2["COLLAGE"] = "COLLAGE";
366
+ LayoutType2["MASONRY"] = "MASONRY";
367
+ LayoutType2["GRID"] = "GRID";
368
+ LayoutType2["THUMBNAIL"] = "THUMBNAIL";
369
+ LayoutType2["SLIDER"] = "SLIDER";
370
+ LayoutType2["SLIDESHOW"] = "SLIDESHOW";
371
+ LayoutType2["PANORAMA"] = "PANORAMA";
372
+ LayoutType2["COLUMN"] = "COLUMN";
373
+ LayoutType2["MAGIC"] = "MAGIC";
374
+ LayoutType2["FULLSIZE"] = "FULLSIZE";
375
+ return LayoutType2;
376
+ })(LayoutType || {});
377
+ var Orientation = /* @__PURE__ */ ((Orientation2) => {
378
+ Orientation2["ROWS"] = "ROWS";
379
+ Orientation2["COLUMNS"] = "COLUMNS";
380
+ return Orientation2;
381
+ })(Orientation || {});
382
+ var Crop = /* @__PURE__ */ ((Crop2) => {
383
+ Crop2["FILL"] = "FILL";
384
+ Crop2["FIT"] = "FIT";
385
+ return Crop2;
386
+ })(Crop || {});
387
+ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
388
+ ThumbnailsAlignment2["TOP"] = "TOP";
389
+ ThumbnailsAlignment2["RIGHT"] = "RIGHT";
390
+ ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
391
+ ThumbnailsAlignment2["LEFT"] = "LEFT";
392
+ ThumbnailsAlignment2["NONE"] = "NONE";
393
+ return ThumbnailsAlignment2;
394
+ })(ThumbnailsAlignment || {});
395
+ var GIFType = /* @__PURE__ */ ((GIFType2) => {
396
+ GIFType2["NORMAL"] = "NORMAL";
397
+ GIFType2["STICKER"] = "STICKER";
398
+ return GIFType2;
399
+ })(GIFType || {});
400
+ var Source = /* @__PURE__ */ ((Source2) => {
401
+ Source2["HTML"] = "HTML";
402
+ Source2["ADSENSE"] = "ADSENSE";
403
+ return Source2;
404
+ })(Source || {});
405
+ var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
406
+ StylesPosition2["START"] = "START";
407
+ StylesPosition2["END"] = "END";
408
+ StylesPosition2["TOP"] = "TOP";
409
+ StylesPosition2["HIDDEN"] = "HIDDEN";
410
+ return StylesPosition2;
411
+ })(StylesPosition || {});
412
+ var MapType = /* @__PURE__ */ ((MapType2) => {
413
+ MapType2["ROADMAP"] = "ROADMAP";
414
+ MapType2["SATELITE"] = "SATELITE";
415
+ MapType2["HYBRID"] = "HYBRID";
416
+ MapType2["TERRAIN"] = "TERRAIN";
417
+ return MapType2;
418
+ })(MapType || {});
419
+ var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
420
+ ViewRole2["CREATOR"] = "CREATOR";
421
+ ViewRole2["VOTERS"] = "VOTERS";
422
+ ViewRole2["EVERYONE"] = "EVERYONE";
423
+ return ViewRole2;
424
+ })(ViewRole || {});
425
+ var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
426
+ VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
427
+ VoteRole2["ALL"] = "ALL";
428
+ return VoteRole2;
429
+ })(VoteRole || {});
430
+ var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
431
+ PollLayoutType2["LIST"] = "LIST";
432
+ PollLayoutType2["GRID"] = "GRID";
433
+ return PollLayoutType2;
434
+ })(PollLayoutType || {});
435
+ var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
436
+ PollLayoutDirection2["LTR"] = "LTR";
437
+ PollLayoutDirection2["RTL"] = "RTL";
438
+ return PollLayoutDirection2;
439
+ })(PollLayoutDirection || {});
440
+ var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
441
+ BackgroundType2["COLOR"] = "COLOR";
442
+ BackgroundType2["IMAGE"] = "IMAGE";
443
+ BackgroundType2["GRADIENT"] = "GRADIENT";
444
+ return BackgroundType2;
445
+ })(BackgroundType || {});
446
+ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
447
+ DecorationType2["BOLD"] = "BOLD";
448
+ DecorationType2["ITALIC"] = "ITALIC";
449
+ DecorationType2["UNDERLINE"] = "UNDERLINE";
450
+ DecorationType2["SPOILER"] = "SPOILER";
451
+ DecorationType2["ANCHOR"] = "ANCHOR";
452
+ DecorationType2["MENTION"] = "MENTION";
453
+ DecorationType2["LINK"] = "LINK";
454
+ DecorationType2["COLOR"] = "COLOR";
455
+ DecorationType2["FONT_SIZE"] = "FONT_SIZE";
456
+ DecorationType2["EXTERNAL"] = "EXTERNAL";
457
+ DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
458
+ DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
459
+ DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
460
+ return DecorationType2;
461
+ })(DecorationType || {});
462
+ var FontType = /* @__PURE__ */ ((FontType2) => {
463
+ FontType2["PX"] = "PX";
464
+ FontType2["EM"] = "EM";
465
+ return FontType2;
466
+ })(FontType || {});
467
+ var Position = /* @__PURE__ */ ((Position2) => {
468
+ Position2["START"] = "START";
469
+ Position2["END"] = "END";
470
+ Position2["TOP"] = "TOP";
471
+ return Position2;
472
+ })(Position || {});
473
+ var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
474
+ AspectRatio2["SQUARE"] = "SQUARE";
475
+ AspectRatio2["RECTANGLE"] = "RECTANGLE";
476
+ return AspectRatio2;
477
+ })(AspectRatio || {});
478
+ var Resizing = /* @__PURE__ */ ((Resizing2) => {
479
+ Resizing2["FILL"] = "FILL";
480
+ Resizing2["FIT"] = "FIT";
481
+ return Resizing2;
482
+ })(Resizing || {});
483
+ var Placement = /* @__PURE__ */ ((Placement2) => {
484
+ Placement2["IMAGE"] = "IMAGE";
485
+ Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
486
+ return Placement2;
487
+ })(Placement || {});
488
+ var Type = /* @__PURE__ */ ((Type2) => {
489
+ Type2["CONTAINED"] = "CONTAINED";
490
+ Type2["FRAMELESS"] = "FRAMELESS";
491
+ return Type2;
492
+ })(Type || {});
493
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
494
+ Alignment2["START"] = "START";
495
+ Alignment2["CENTER"] = "CENTER";
496
+ Alignment2["END"] = "END";
497
+ return Alignment2;
498
+ })(Alignment || {});
499
+ var Layout = /* @__PURE__ */ ((Layout2) => {
500
+ Layout2["STACKED"] = "STACKED";
501
+ Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
502
+ return Layout2;
503
+ })(Layout || {});
504
+ var AppType = /* @__PURE__ */ ((AppType2) => {
505
+ AppType2["PRODUCT"] = "PRODUCT";
506
+ AppType2["EVENT"] = "EVENT";
507
+ AppType2["BOOKING"] = "BOOKING";
508
+ return AppType2;
509
+ })(AppType || {});
510
+ var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
511
+ InitialExpandedItems2["FIRST"] = "FIRST";
512
+ InitialExpandedItems2["ALL"] = "ALL";
513
+ InitialExpandedItems2["NONE"] = "NONE";
514
+ return InitialExpandedItems2;
515
+ })(InitialExpandedItems || {});
516
+ var Direction = /* @__PURE__ */ ((Direction2) => {
517
+ Direction2["LTR"] = "LTR";
518
+ Direction2["RTL"] = "RTL";
519
+ return Direction2;
520
+ })(Direction || {});
521
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
522
+ VerticalAlignment2["TOP"] = "TOP";
523
+ VerticalAlignment2["MIDDLE"] = "MIDDLE";
524
+ VerticalAlignment2["BOTTOM"] = "BOTTOM";
525
+ return VerticalAlignment2;
526
+ })(VerticalAlignment || {});
527
+ var NullValue = /* @__PURE__ */ ((NullValue2) => {
528
+ NullValue2["NULL_VALUE"] = "NULL_VALUE";
529
+ return NullValue2;
530
+ })(NullValue || {});
531
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
532
+ SortOrder2["ASC"] = "ASC";
533
+ SortOrder2["DESC"] = "DESC";
534
+ return SortOrder2;
535
+ })(SortOrder || {});
536
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
537
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
538
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
539
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
540
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
541
+ WebhookIdentityType2["APP"] = "APP";
542
+ return WebhookIdentityType2;
543
+ })(WebhookIdentityType || {});
544
+ function queryPublishedContent2() {
545
+ const { httpClient, sideEffects } = arguments[0];
546
+ return (0, import_query_builder.queryBuilder)({
547
+ func: async (payload) => {
548
+ const reqOpts = queryPublishedContent(
549
+ payload
550
+ );
551
+ sideEffects?.onSiteCall?.();
552
+ try {
553
+ const result = await httpClient.request(reqOpts);
554
+ sideEffects?.onSuccess?.(result);
555
+ return result;
556
+ } catch (err) {
557
+ sideEffects?.onError?.(err);
558
+ throw err;
559
+ }
560
+ },
561
+ requestTransformer: (query) => {
562
+ const args = [query, {}];
563
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
564
+ { ...args?.[1], query: args?.[0] },
565
+ []
566
+ );
567
+ },
568
+ responseTransformer: ({
569
+ data
570
+ }) => {
571
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
572
+ (0, import_transform_paths2.transformPaths)(data, [
573
+ {
574
+ transformFn: import_image.transformRESTImageToSDKImage,
575
+ paths: [{ path: "publishedContent.fields.image" }]
576
+ },
577
+ {
578
+ transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
579
+ paths: [{ path: "publishedContent.fields.video" }]
580
+ },
581
+ {
582
+ transformFn: import_document.transformRESTDocumentToSDKDocument,
583
+ paths: [{ path: "publishedContent.fields.document" }]
584
+ }
585
+ ]),
586
+ ["publishedContent.fields.richContent"]
587
+ );
588
+ return {
589
+ items: transformedData?.publishedContent,
590
+ pagingMetadata: transformedData?.pagingMetadata
591
+ };
592
+ },
593
+ errorTransformer: (err) => {
594
+ const transformedError = (0, import_transform_error.transformError)(err, {
595
+ spreadPathsToArguments: {},
596
+ explicitPathsToArguments: { query: "$[0]" },
597
+ singleArgumentUnchanged: false
598
+ });
599
+ throw transformedError;
600
+ },
601
+ pagingMethod: "CURSOR",
602
+ transformationPaths: {}
603
+ });
604
+ }
605
+ // Annotate the CommonJS export names for ESM import in node:
606
+ 0 && (module.exports = {
607
+ Alignment,
608
+ AppType,
609
+ AspectRatio,
610
+ BackgroundType,
611
+ ButtonDataType,
612
+ Crop,
613
+ DecorationType,
614
+ Direction,
615
+ DividerDataAlignment,
616
+ FontType,
617
+ GIFType,
618
+ InitialExpandedItems,
619
+ Layout,
620
+ LayoutType,
621
+ LineStyle,
622
+ MapType,
623
+ NodeType,
624
+ NullValue,
625
+ Orientation,
626
+ Placement,
627
+ PluginContainerDataAlignment,
628
+ PollLayoutDirection,
629
+ PollLayoutType,
630
+ Position,
631
+ Resizing,
632
+ SchemaScope,
633
+ SortOrder,
634
+ Source,
635
+ StylesPosition,
636
+ Target,
637
+ TextAlignment,
638
+ ThumbnailsAlignment,
639
+ Type,
640
+ VerticalAlignment,
641
+ ViewMode,
642
+ ViewRole,
643
+ VoteRole,
644
+ WebhookIdentityType,
645
+ Width,
646
+ WidthType,
647
+ queryPublishedContent
648
+ });
649
+ //# sourceMappingURL=index.typings.js.map