@wix/auto_sdk_quick-pages_contents 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.
Files changed (39) hide show
  1. package/build/cjs/index.d.ts +2628 -0
  2. package/build/cjs/index.js +1388 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +1343 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +2400 -0
  8. package/build/cjs/meta.js +843 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +2628 -0
  11. package/build/es/index.mjs +1314 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +1 -0
  14. package/build/es/index.typings.mjs +1269 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +2400 -0
  17. package/build/es/meta.mjs +812 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +78 -0
  21. package/build/internal/cjs/index.js +1388 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +2698 -0
  24. package/build/internal/cjs/index.typings.js +1343 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +2401 -0
  27. package/build/internal/cjs/meta.js +843 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +78 -0
  30. package/build/internal/es/index.mjs +1314 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +2698 -0
  33. package/build/internal/es/index.typings.mjs +1269 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +2401 -0
  36. package/build/internal/es/meta.mjs +812 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,1388 @@
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.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ Alignment: () => Alignment,
24
+ AppType: () => AppType,
25
+ AspectRatio: () => AspectRatio,
26
+ BackgroundType: () => BackgroundType,
27
+ ButtonDataType: () => ButtonDataType,
28
+ ButtonSize: () => ButtonSize,
29
+ ColorSwatchType: () => ColorSwatchType,
30
+ Crop: () => Crop,
31
+ DecorationType: () => DecorationType,
32
+ Direction: () => Direction,
33
+ DividerDataAlignment: () => DividerDataAlignment,
34
+ FontType: () => FontType,
35
+ GIFType: () => GIFType,
36
+ GradientType: () => GradientType,
37
+ Group: () => Group,
38
+ ImagePosition: () => ImagePosition,
39
+ ImageScaling: () => ImageScaling,
40
+ InitialExpandedItems: () => InitialExpandedItems,
41
+ Layout: () => Layout,
42
+ LayoutType: () => LayoutType,
43
+ LineStyle: () => LineStyle,
44
+ MapType: () => MapType,
45
+ NodeType: () => NodeType,
46
+ NullValue: () => NullValue,
47
+ Orientation: () => Orientation,
48
+ Placement: () => Placement,
49
+ PluginContainerDataAlignment: () => PluginContainerDataAlignment,
50
+ PollDesignBackgroundType: () => PollDesignBackgroundType,
51
+ PollLayoutDirection: () => PollLayoutDirection,
52
+ PollLayoutType: () => PollLayoutType,
53
+ Position: () => Position,
54
+ Resizing: () => Resizing,
55
+ SortOrder: () => SortOrder,
56
+ Source: () => Source,
57
+ StylesPosition: () => StylesPosition,
58
+ Target: () => Target,
59
+ TextAlignment: () => TextAlignment,
60
+ ThumbnailsAlignment: () => ThumbnailsAlignment,
61
+ Type: () => Type,
62
+ VerticalAlignment: () => VerticalAlignment,
63
+ ViewMode: () => ViewMode,
64
+ ViewRole: () => ViewRole,
65
+ VoteRole: () => VoteRole,
66
+ WebhookIdentityType: () => WebhookIdentityType,
67
+ Width: () => Width,
68
+ WidthType: () => WidthType,
69
+ getContent: () => getContent4,
70
+ getLatestContentByPageId: () => getLatestContentByPageId4,
71
+ lockLatestContentByPageId: () => lockLatestContentByPageId4,
72
+ queryContents: () => queryContents4,
73
+ submitContent: () => submitContent4
74
+ });
75
+ module.exports = __toCommonJS(index_exports);
76
+
77
+ // src/quickpages-v1-content-contents.universal.ts
78
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
79
+ var import_query_builder = require("@wix/sdk-runtime/query-builder");
80
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
81
+
82
+ // src/quickpages-v1-content-contents.http.ts
83
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
84
+ var import_float = require("@wix/sdk-runtime/transformations/float");
85
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
86
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
87
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
88
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
89
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
90
+ function resolveWixQuickpagesContentV1ContentServiceUrl(opts) {
91
+ const domainToMappings = {
92
+ "www.wixapis.com": [
93
+ {
94
+ srcPath: "/quick-pages/v1/contents",
95
+ destPath: "/v1/contents"
96
+ }
97
+ ],
98
+ "manage._base_domain_": [
99
+ {
100
+ srcPath: "/quick-pages/v1/contents",
101
+ destPath: "/v1/contents"
102
+ }
103
+ ]
104
+ };
105
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
106
+ }
107
+ var PACKAGE_NAME = "@wix/auto_sdk_quick-pages_contents";
108
+ function getContent(payload) {
109
+ function __getContent({ host }) {
110
+ const metadata = {
111
+ entityFqdn: "wix.quickpages.v1.content",
112
+ method: "GET",
113
+ methodFqn: "wix.quickpages.content.v1.ContentService.GetContent",
114
+ packageName: PACKAGE_NAME,
115
+ url: resolveWixQuickpagesContentV1ContentServiceUrl({
116
+ protoPath: "/v1/contents/{contentId}",
117
+ data: payload,
118
+ host
119
+ }),
120
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
121
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
122
+ {
123
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
124
+ paths: [
125
+ { path: "content.createdDate" },
126
+ { path: "content.updatedDate" },
127
+ { path: "content.lastEditedDate" },
128
+ { path: "content.richContent.metadata.createdTimestamp" },
129
+ { path: "content.richContent.metadata.updatedTimestamp" }
130
+ ]
131
+ },
132
+ {
133
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
134
+ paths: [
135
+ {
136
+ path: "content.design.background.colorOptions.color.gradientOptions.opacity"
137
+ },
138
+ {
139
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.x"
140
+ },
141
+ {
142
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.y"
143
+ },
144
+ {
145
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.opacity"
146
+ },
147
+ {
148
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.position"
149
+ },
150
+ { path: "content.design.background.imageOptions.opacity" },
151
+ {
152
+ path: "content.design.background.imageOptions.color.gradientOptions.opacity"
153
+ },
154
+ {
155
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.x"
156
+ },
157
+ {
158
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.y"
159
+ },
160
+ {
161
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.opacity"
162
+ },
163
+ {
164
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.position"
165
+ },
166
+ { path: "content.design.typography.heading1.lineHeight" },
167
+ { path: "content.design.typography.heading1.letterSpacing" },
168
+ { path: "content.design.typography.heading2.lineHeight" },
169
+ { path: "content.design.typography.heading2.letterSpacing" },
170
+ { path: "content.design.typography.heading3.lineHeight" },
171
+ { path: "content.design.typography.heading3.letterSpacing" },
172
+ { path: "content.design.typography.heading4.lineHeight" },
173
+ { path: "content.design.typography.heading4.letterSpacing" },
174
+ { path: "content.design.typography.heading5.lineHeight" },
175
+ { path: "content.design.typography.heading5.letterSpacing" },
176
+ { path: "content.design.typography.heading6.lineHeight" },
177
+ { path: "content.design.typography.heading6.letterSpacing" },
178
+ { path: "content.design.typography.paragraph.lineHeight" },
179
+ { path: "content.design.typography.paragraph.letterSpacing" },
180
+ { path: "content.design.customGradients.opacity" },
181
+ { path: "content.design.customGradients.radialOptions.x" },
182
+ { path: "content.design.customGradients.radialOptions.y" },
183
+ { path: "content.design.customGradients.stops.opacity" },
184
+ { path: "content.design.customGradients.stops.position" },
185
+ {
186
+ path: "content.richContent.nodes.galleryData.items.image.media.duration"
187
+ },
188
+ {
189
+ path: "content.richContent.nodes.galleryData.items.video.media.duration"
190
+ },
191
+ {
192
+ path: "content.richContent.nodes.galleryData.items.video.thumbnail.duration"
193
+ },
194
+ {
195
+ path: "content.richContent.nodes.galleryData.options.item.ratio"
196
+ },
197
+ { path: "content.richContent.nodes.imageData.image.duration" },
198
+ { path: "content.richContent.nodes.mapData.mapSettings.lat" },
199
+ { path: "content.richContent.nodes.mapData.mapSettings.lng" },
200
+ {
201
+ path: "content.richContent.nodes.pollData.poll.image.duration"
202
+ },
203
+ {
204
+ path: "content.richContent.nodes.pollData.poll.options.image.duration"
205
+ },
206
+ {
207
+ path: "content.richContent.nodes.pollData.design.poll.background.image.duration"
208
+ },
209
+ { path: "content.richContent.nodes.appEmbedData.image.duration" },
210
+ { path: "content.richContent.nodes.videoData.video.duration" },
211
+ {
212
+ path: "content.richContent.nodes.videoData.thumbnail.duration"
213
+ },
214
+ { path: "content.richContent.nodes.audioData.audio.duration" },
215
+ {
216
+ path: "content.richContent.nodes.audioData.coverImage.duration"
217
+ }
218
+ ]
219
+ }
220
+ ])
221
+ };
222
+ return metadata;
223
+ }
224
+ return __getContent;
225
+ }
226
+ function submitContent(payload) {
227
+ function __submitContent({ host }) {
228
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
229
+ {
230
+ transformFn: import_float.transformSDKFloatToRESTFloat,
231
+ paths: [
232
+ {
233
+ path: "design.background.colorOptions.color.gradientOptions.opacity"
234
+ },
235
+ {
236
+ path: "design.background.colorOptions.color.gradientOptions.radialOptions.x"
237
+ },
238
+ {
239
+ path: "design.background.colorOptions.color.gradientOptions.radialOptions.y"
240
+ },
241
+ {
242
+ path: "design.background.colorOptions.color.gradientOptions.stops.opacity"
243
+ },
244
+ {
245
+ path: "design.background.colorOptions.color.gradientOptions.stops.position"
246
+ },
247
+ { path: "design.background.imageOptions.opacity" },
248
+ {
249
+ path: "design.background.imageOptions.color.gradientOptions.opacity"
250
+ },
251
+ {
252
+ path: "design.background.imageOptions.color.gradientOptions.radialOptions.x"
253
+ },
254
+ {
255
+ path: "design.background.imageOptions.color.gradientOptions.radialOptions.y"
256
+ },
257
+ {
258
+ path: "design.background.imageOptions.color.gradientOptions.stops.opacity"
259
+ },
260
+ {
261
+ path: "design.background.imageOptions.color.gradientOptions.stops.position"
262
+ },
263
+ { path: "design.typography.heading1.lineHeight" },
264
+ { path: "design.typography.heading1.letterSpacing" },
265
+ { path: "design.typography.heading2.lineHeight" },
266
+ { path: "design.typography.heading2.letterSpacing" },
267
+ { path: "design.typography.heading3.lineHeight" },
268
+ { path: "design.typography.heading3.letterSpacing" },
269
+ { path: "design.typography.heading4.lineHeight" },
270
+ { path: "design.typography.heading4.letterSpacing" },
271
+ { path: "design.typography.heading5.lineHeight" },
272
+ { path: "design.typography.heading5.letterSpacing" },
273
+ { path: "design.typography.heading6.lineHeight" },
274
+ { path: "design.typography.heading6.letterSpacing" },
275
+ { path: "design.typography.paragraph.lineHeight" },
276
+ { path: "design.typography.paragraph.letterSpacing" },
277
+ { path: "design.customGradients.opacity" },
278
+ { path: "design.customGradients.radialOptions.x" },
279
+ { path: "design.customGradients.radialOptions.y" },
280
+ { path: "design.customGradients.stops.opacity" },
281
+ { path: "design.customGradients.stops.position" },
282
+ { path: "richContent.nodes.galleryData.items.image.media.duration" },
283
+ { path: "richContent.nodes.galleryData.items.video.media.duration" },
284
+ {
285
+ path: "richContent.nodes.galleryData.items.video.thumbnail.duration"
286
+ },
287
+ { path: "richContent.nodes.galleryData.options.item.ratio" },
288
+ { path: "richContent.nodes.imageData.image.duration" },
289
+ { path: "richContent.nodes.mapData.mapSettings.lat" },
290
+ { path: "richContent.nodes.mapData.mapSettings.lng" },
291
+ { path: "richContent.nodes.pollData.poll.image.duration" },
292
+ { path: "richContent.nodes.pollData.poll.options.image.duration" },
293
+ {
294
+ path: "richContent.nodes.pollData.design.poll.background.image.duration"
295
+ },
296
+ { path: "richContent.nodes.appEmbedData.image.duration" },
297
+ { path: "richContent.nodes.videoData.video.duration" },
298
+ { path: "richContent.nodes.videoData.thumbnail.duration" },
299
+ { path: "richContent.nodes.audioData.audio.duration" },
300
+ { path: "richContent.nodes.audioData.coverImage.duration" }
301
+ ]
302
+ },
303
+ {
304
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
305
+ paths: [
306
+ { path: "richContent.metadata.createdTimestamp" },
307
+ { path: "richContent.metadata.updatedTimestamp" }
308
+ ]
309
+ }
310
+ ]);
311
+ const metadata = {
312
+ entityFqdn: "wix.quickpages.v1.content",
313
+ method: "POST",
314
+ methodFqn: "wix.quickpages.content.v1.ContentService.SubmitContent",
315
+ packageName: PACKAGE_NAME,
316
+ url: resolveWixQuickpagesContentV1ContentServiceUrl({
317
+ protoPath: "/v1/contents/submit",
318
+ data: serializedData,
319
+ host
320
+ }),
321
+ data: serializedData,
322
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
323
+ {
324
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
325
+ paths: [
326
+ { path: "content.createdDate" },
327
+ { path: "content.updatedDate" },
328
+ { path: "content.lastEditedDate" },
329
+ { path: "content.richContent.metadata.createdTimestamp" },
330
+ { path: "content.richContent.metadata.updatedTimestamp" }
331
+ ]
332
+ },
333
+ {
334
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
335
+ paths: [
336
+ {
337
+ path: "content.design.background.colorOptions.color.gradientOptions.opacity"
338
+ },
339
+ {
340
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.x"
341
+ },
342
+ {
343
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.y"
344
+ },
345
+ {
346
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.opacity"
347
+ },
348
+ {
349
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.position"
350
+ },
351
+ { path: "content.design.background.imageOptions.opacity" },
352
+ {
353
+ path: "content.design.background.imageOptions.color.gradientOptions.opacity"
354
+ },
355
+ {
356
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.x"
357
+ },
358
+ {
359
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.y"
360
+ },
361
+ {
362
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.opacity"
363
+ },
364
+ {
365
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.position"
366
+ },
367
+ { path: "content.design.typography.heading1.lineHeight" },
368
+ { path: "content.design.typography.heading1.letterSpacing" },
369
+ { path: "content.design.typography.heading2.lineHeight" },
370
+ { path: "content.design.typography.heading2.letterSpacing" },
371
+ { path: "content.design.typography.heading3.lineHeight" },
372
+ { path: "content.design.typography.heading3.letterSpacing" },
373
+ { path: "content.design.typography.heading4.lineHeight" },
374
+ { path: "content.design.typography.heading4.letterSpacing" },
375
+ { path: "content.design.typography.heading5.lineHeight" },
376
+ { path: "content.design.typography.heading5.letterSpacing" },
377
+ { path: "content.design.typography.heading6.lineHeight" },
378
+ { path: "content.design.typography.heading6.letterSpacing" },
379
+ { path: "content.design.typography.paragraph.lineHeight" },
380
+ { path: "content.design.typography.paragraph.letterSpacing" },
381
+ { path: "content.design.customGradients.opacity" },
382
+ { path: "content.design.customGradients.radialOptions.x" },
383
+ { path: "content.design.customGradients.radialOptions.y" },
384
+ { path: "content.design.customGradients.stops.opacity" },
385
+ { path: "content.design.customGradients.stops.position" },
386
+ {
387
+ path: "content.richContent.nodes.galleryData.items.image.media.duration"
388
+ },
389
+ {
390
+ path: "content.richContent.nodes.galleryData.items.video.media.duration"
391
+ },
392
+ {
393
+ path: "content.richContent.nodes.galleryData.items.video.thumbnail.duration"
394
+ },
395
+ {
396
+ path: "content.richContent.nodes.galleryData.options.item.ratio"
397
+ },
398
+ { path: "content.richContent.nodes.imageData.image.duration" },
399
+ { path: "content.richContent.nodes.mapData.mapSettings.lat" },
400
+ { path: "content.richContent.nodes.mapData.mapSettings.lng" },
401
+ {
402
+ path: "content.richContent.nodes.pollData.poll.image.duration"
403
+ },
404
+ {
405
+ path: "content.richContent.nodes.pollData.poll.options.image.duration"
406
+ },
407
+ {
408
+ path: "content.richContent.nodes.pollData.design.poll.background.image.duration"
409
+ },
410
+ { path: "content.richContent.nodes.appEmbedData.image.duration" },
411
+ { path: "content.richContent.nodes.videoData.video.duration" },
412
+ {
413
+ path: "content.richContent.nodes.videoData.thumbnail.duration"
414
+ },
415
+ { path: "content.richContent.nodes.audioData.audio.duration" },
416
+ {
417
+ path: "content.richContent.nodes.audioData.coverImage.duration"
418
+ }
419
+ ]
420
+ }
421
+ ])
422
+ };
423
+ return metadata;
424
+ }
425
+ return __submitContent;
426
+ }
427
+ function getLatestContentByPageId(payload) {
428
+ function __getLatestContentByPageId({ host }) {
429
+ const metadata = {
430
+ entityFqdn: "wix.quickpages.v1.content",
431
+ method: "GET",
432
+ methodFqn: "wix.quickpages.content.v1.ContentService.GetLatestContentByPageId",
433
+ packageName: PACKAGE_NAME,
434
+ url: resolveWixQuickpagesContentV1ContentServiceUrl({
435
+ protoPath: "/v1/contents/page/{pageId}",
436
+ data: payload,
437
+ host
438
+ }),
439
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
440
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
441
+ {
442
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
443
+ paths: [
444
+ { path: "content.createdDate" },
445
+ { path: "content.updatedDate" },
446
+ { path: "content.lastEditedDate" },
447
+ { path: "content.richContent.metadata.createdTimestamp" },
448
+ { path: "content.richContent.metadata.updatedTimestamp" }
449
+ ]
450
+ },
451
+ {
452
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
453
+ paths: [
454
+ {
455
+ path: "content.design.background.colorOptions.color.gradientOptions.opacity"
456
+ },
457
+ {
458
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.x"
459
+ },
460
+ {
461
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.y"
462
+ },
463
+ {
464
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.opacity"
465
+ },
466
+ {
467
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.position"
468
+ },
469
+ { path: "content.design.background.imageOptions.opacity" },
470
+ {
471
+ path: "content.design.background.imageOptions.color.gradientOptions.opacity"
472
+ },
473
+ {
474
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.x"
475
+ },
476
+ {
477
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.y"
478
+ },
479
+ {
480
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.opacity"
481
+ },
482
+ {
483
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.position"
484
+ },
485
+ { path: "content.design.typography.heading1.lineHeight" },
486
+ { path: "content.design.typography.heading1.letterSpacing" },
487
+ { path: "content.design.typography.heading2.lineHeight" },
488
+ { path: "content.design.typography.heading2.letterSpacing" },
489
+ { path: "content.design.typography.heading3.lineHeight" },
490
+ { path: "content.design.typography.heading3.letterSpacing" },
491
+ { path: "content.design.typography.heading4.lineHeight" },
492
+ { path: "content.design.typography.heading4.letterSpacing" },
493
+ { path: "content.design.typography.heading5.lineHeight" },
494
+ { path: "content.design.typography.heading5.letterSpacing" },
495
+ { path: "content.design.typography.heading6.lineHeight" },
496
+ { path: "content.design.typography.heading6.letterSpacing" },
497
+ { path: "content.design.typography.paragraph.lineHeight" },
498
+ { path: "content.design.typography.paragraph.letterSpacing" },
499
+ { path: "content.design.customGradients.opacity" },
500
+ { path: "content.design.customGradients.radialOptions.x" },
501
+ { path: "content.design.customGradients.radialOptions.y" },
502
+ { path: "content.design.customGradients.stops.opacity" },
503
+ { path: "content.design.customGradients.stops.position" },
504
+ {
505
+ path: "content.richContent.nodes.galleryData.items.image.media.duration"
506
+ },
507
+ {
508
+ path: "content.richContent.nodes.galleryData.items.video.media.duration"
509
+ },
510
+ {
511
+ path: "content.richContent.nodes.galleryData.items.video.thumbnail.duration"
512
+ },
513
+ {
514
+ path: "content.richContent.nodes.galleryData.options.item.ratio"
515
+ },
516
+ { path: "content.richContent.nodes.imageData.image.duration" },
517
+ { path: "content.richContent.nodes.mapData.mapSettings.lat" },
518
+ { path: "content.richContent.nodes.mapData.mapSettings.lng" },
519
+ {
520
+ path: "content.richContent.nodes.pollData.poll.image.duration"
521
+ },
522
+ {
523
+ path: "content.richContent.nodes.pollData.poll.options.image.duration"
524
+ },
525
+ {
526
+ path: "content.richContent.nodes.pollData.design.poll.background.image.duration"
527
+ },
528
+ { path: "content.richContent.nodes.appEmbedData.image.duration" },
529
+ { path: "content.richContent.nodes.videoData.video.duration" },
530
+ {
531
+ path: "content.richContent.nodes.videoData.thumbnail.duration"
532
+ },
533
+ { path: "content.richContent.nodes.audioData.audio.duration" },
534
+ {
535
+ path: "content.richContent.nodes.audioData.coverImage.duration"
536
+ }
537
+ ]
538
+ }
539
+ ])
540
+ };
541
+ return metadata;
542
+ }
543
+ return __getLatestContentByPageId;
544
+ }
545
+ function lockLatestContentByPageId(payload) {
546
+ function __lockLatestContentByPageId({ host }) {
547
+ const metadata = {
548
+ entityFqdn: "wix.quickpages.v1.content",
549
+ method: "PATCH",
550
+ methodFqn: "wix.quickpages.content.v1.ContentService.LockLatestContentByPageId",
551
+ packageName: PACKAGE_NAME,
552
+ url: resolveWixQuickpagesContentV1ContentServiceUrl({
553
+ protoPath: "/v1/contents/page/{pageId}/lock",
554
+ data: payload,
555
+ host
556
+ }),
557
+ data: payload,
558
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
559
+ {
560
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
561
+ paths: [
562
+ { path: "content.createdDate" },
563
+ { path: "content.updatedDate" },
564
+ { path: "content.lastEditedDate" },
565
+ { path: "content.richContent.metadata.createdTimestamp" },
566
+ { path: "content.richContent.metadata.updatedTimestamp" }
567
+ ]
568
+ },
569
+ {
570
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
571
+ paths: [
572
+ {
573
+ path: "content.design.background.colorOptions.color.gradientOptions.opacity"
574
+ },
575
+ {
576
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.x"
577
+ },
578
+ {
579
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.y"
580
+ },
581
+ {
582
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.opacity"
583
+ },
584
+ {
585
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.position"
586
+ },
587
+ { path: "content.design.background.imageOptions.opacity" },
588
+ {
589
+ path: "content.design.background.imageOptions.color.gradientOptions.opacity"
590
+ },
591
+ {
592
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.x"
593
+ },
594
+ {
595
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.y"
596
+ },
597
+ {
598
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.opacity"
599
+ },
600
+ {
601
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.position"
602
+ },
603
+ { path: "content.design.typography.heading1.lineHeight" },
604
+ { path: "content.design.typography.heading1.letterSpacing" },
605
+ { path: "content.design.typography.heading2.lineHeight" },
606
+ { path: "content.design.typography.heading2.letterSpacing" },
607
+ { path: "content.design.typography.heading3.lineHeight" },
608
+ { path: "content.design.typography.heading3.letterSpacing" },
609
+ { path: "content.design.typography.heading4.lineHeight" },
610
+ { path: "content.design.typography.heading4.letterSpacing" },
611
+ { path: "content.design.typography.heading5.lineHeight" },
612
+ { path: "content.design.typography.heading5.letterSpacing" },
613
+ { path: "content.design.typography.heading6.lineHeight" },
614
+ { path: "content.design.typography.heading6.letterSpacing" },
615
+ { path: "content.design.typography.paragraph.lineHeight" },
616
+ { path: "content.design.typography.paragraph.letterSpacing" },
617
+ { path: "content.design.customGradients.opacity" },
618
+ { path: "content.design.customGradients.radialOptions.x" },
619
+ { path: "content.design.customGradients.radialOptions.y" },
620
+ { path: "content.design.customGradients.stops.opacity" },
621
+ { path: "content.design.customGradients.stops.position" },
622
+ {
623
+ path: "content.richContent.nodes.galleryData.items.image.media.duration"
624
+ },
625
+ {
626
+ path: "content.richContent.nodes.galleryData.items.video.media.duration"
627
+ },
628
+ {
629
+ path: "content.richContent.nodes.galleryData.items.video.thumbnail.duration"
630
+ },
631
+ {
632
+ path: "content.richContent.nodes.galleryData.options.item.ratio"
633
+ },
634
+ { path: "content.richContent.nodes.imageData.image.duration" },
635
+ { path: "content.richContent.nodes.mapData.mapSettings.lat" },
636
+ { path: "content.richContent.nodes.mapData.mapSettings.lng" },
637
+ {
638
+ path: "content.richContent.nodes.pollData.poll.image.duration"
639
+ },
640
+ {
641
+ path: "content.richContent.nodes.pollData.poll.options.image.duration"
642
+ },
643
+ {
644
+ path: "content.richContent.nodes.pollData.design.poll.background.image.duration"
645
+ },
646
+ { path: "content.richContent.nodes.appEmbedData.image.duration" },
647
+ { path: "content.richContent.nodes.videoData.video.duration" },
648
+ {
649
+ path: "content.richContent.nodes.videoData.thumbnail.duration"
650
+ },
651
+ { path: "content.richContent.nodes.audioData.audio.duration" },
652
+ {
653
+ path: "content.richContent.nodes.audioData.coverImage.duration"
654
+ }
655
+ ]
656
+ }
657
+ ])
658
+ };
659
+ return metadata;
660
+ }
661
+ return __lockLatestContentByPageId;
662
+ }
663
+ function queryContents(payload) {
664
+ function __queryContents({ host }) {
665
+ const metadata = {
666
+ entityFqdn: "wix.quickpages.v1.content",
667
+ method: "POST",
668
+ methodFqn: "wix.quickpages.content.v1.ContentService.QueryContents",
669
+ packageName: PACKAGE_NAME,
670
+ url: resolveWixQuickpagesContentV1ContentServiceUrl({
671
+ protoPath: "/v1/contents/query",
672
+ data: payload,
673
+ host
674
+ }),
675
+ data: payload,
676
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
677
+ {
678
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
679
+ paths: [
680
+ { path: "contents.createdDate" },
681
+ { path: "contents.updatedDate" },
682
+ { path: "contents.lastEditedDate" },
683
+ { path: "contents.richContent.metadata.createdTimestamp" },
684
+ { path: "contents.richContent.metadata.updatedTimestamp" }
685
+ ]
686
+ },
687
+ {
688
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
689
+ paths: [
690
+ {
691
+ path: "contents.design.background.colorOptions.color.gradientOptions.opacity"
692
+ },
693
+ {
694
+ path: "contents.design.background.colorOptions.color.gradientOptions.radialOptions.x"
695
+ },
696
+ {
697
+ path: "contents.design.background.colorOptions.color.gradientOptions.radialOptions.y"
698
+ },
699
+ {
700
+ path: "contents.design.background.colorOptions.color.gradientOptions.stops.opacity"
701
+ },
702
+ {
703
+ path: "contents.design.background.colorOptions.color.gradientOptions.stops.position"
704
+ },
705
+ { path: "contents.design.background.imageOptions.opacity" },
706
+ {
707
+ path: "contents.design.background.imageOptions.color.gradientOptions.opacity"
708
+ },
709
+ {
710
+ path: "contents.design.background.imageOptions.color.gradientOptions.radialOptions.x"
711
+ },
712
+ {
713
+ path: "contents.design.background.imageOptions.color.gradientOptions.radialOptions.y"
714
+ },
715
+ {
716
+ path: "contents.design.background.imageOptions.color.gradientOptions.stops.opacity"
717
+ },
718
+ {
719
+ path: "contents.design.background.imageOptions.color.gradientOptions.stops.position"
720
+ },
721
+ { path: "contents.design.typography.heading1.lineHeight" },
722
+ { path: "contents.design.typography.heading1.letterSpacing" },
723
+ { path: "contents.design.typography.heading2.lineHeight" },
724
+ { path: "contents.design.typography.heading2.letterSpacing" },
725
+ { path: "contents.design.typography.heading3.lineHeight" },
726
+ { path: "contents.design.typography.heading3.letterSpacing" },
727
+ { path: "contents.design.typography.heading4.lineHeight" },
728
+ { path: "contents.design.typography.heading4.letterSpacing" },
729
+ { path: "contents.design.typography.heading5.lineHeight" },
730
+ { path: "contents.design.typography.heading5.letterSpacing" },
731
+ { path: "contents.design.typography.heading6.lineHeight" },
732
+ { path: "contents.design.typography.heading6.letterSpacing" },
733
+ { path: "contents.design.typography.paragraph.lineHeight" },
734
+ { path: "contents.design.typography.paragraph.letterSpacing" },
735
+ { path: "contents.design.customGradients.opacity" },
736
+ { path: "contents.design.customGradients.radialOptions.x" },
737
+ { path: "contents.design.customGradients.radialOptions.y" },
738
+ { path: "contents.design.customGradients.stops.opacity" },
739
+ { path: "contents.design.customGradients.stops.position" },
740
+ {
741
+ path: "contents.richContent.nodes.galleryData.items.image.media.duration"
742
+ },
743
+ {
744
+ path: "contents.richContent.nodes.galleryData.items.video.media.duration"
745
+ },
746
+ {
747
+ path: "contents.richContent.nodes.galleryData.items.video.thumbnail.duration"
748
+ },
749
+ {
750
+ path: "contents.richContent.nodes.galleryData.options.item.ratio"
751
+ },
752
+ { path: "contents.richContent.nodes.imageData.image.duration" },
753
+ { path: "contents.richContent.nodes.mapData.mapSettings.lat" },
754
+ { path: "contents.richContent.nodes.mapData.mapSettings.lng" },
755
+ {
756
+ path: "contents.richContent.nodes.pollData.poll.image.duration"
757
+ },
758
+ {
759
+ path: "contents.richContent.nodes.pollData.poll.options.image.duration"
760
+ },
761
+ {
762
+ path: "contents.richContent.nodes.pollData.design.poll.background.image.duration"
763
+ },
764
+ {
765
+ path: "contents.richContent.nodes.appEmbedData.image.duration"
766
+ },
767
+ { path: "contents.richContent.nodes.videoData.video.duration" },
768
+ {
769
+ path: "contents.richContent.nodes.videoData.thumbnail.duration"
770
+ },
771
+ { path: "contents.richContent.nodes.audioData.audio.duration" },
772
+ {
773
+ path: "contents.richContent.nodes.audioData.coverImage.duration"
774
+ }
775
+ ]
776
+ }
777
+ ]),
778
+ fallback: [
779
+ {
780
+ method: "POST",
781
+ url: resolveWixQuickpagesContentV1ContentServiceUrl({
782
+ protoPath: "/v1/contents/query",
783
+ data: payload,
784
+ host
785
+ }),
786
+ data: payload
787
+ }
788
+ ]
789
+ };
790
+ return metadata;
791
+ }
792
+ return __queryContents;
793
+ }
794
+
795
+ // src/quickpages-v1-content-contents.universal.ts
796
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
797
+ var Group = /* @__PURE__ */ ((Group2) => {
798
+ Group2["UNKNOWN_FONT_GROUP"] = "UNKNOWN_FONT_GROUP";
799
+ Group2["LATIN"] = "LATIN";
800
+ Group2["LATIN_EXT"] = "LATIN_EXT";
801
+ Group2["HEBREW"] = "HEBREW";
802
+ Group2["CYRILLIC"] = "CYRILLIC";
803
+ Group2["ARABIC"] = "ARABIC";
804
+ Group2["JAPANESE"] = "JAPANESE";
805
+ Group2["KOREAN"] = "KOREAN";
806
+ return Group2;
807
+ })(Group || {});
808
+ var ColorSwatchType = /* @__PURE__ */ ((ColorSwatchType2) => {
809
+ ColorSwatchType2["UNKNOWN_COLOR_SWATCH_TYPE"] = "UNKNOWN_COLOR_SWATCH_TYPE";
810
+ ColorSwatchType2["COLOR"] = "COLOR";
811
+ ColorSwatchType2["GRADIENT"] = "GRADIENT";
812
+ return ColorSwatchType2;
813
+ })(ColorSwatchType || {});
814
+ var GradientType = /* @__PURE__ */ ((GradientType2) => {
815
+ GradientType2["UNKNOWN_GRADIENT_TYPE"] = "UNKNOWN_GRADIENT_TYPE";
816
+ GradientType2["LINEAR"] = "LINEAR";
817
+ GradientType2["RADIAL"] = "RADIAL";
818
+ return GradientType2;
819
+ })(GradientType || {});
820
+ var ImageScaling = /* @__PURE__ */ ((ImageScaling2) => {
821
+ ImageScaling2["UNKNOWN_IMAGE_SCALING"] = "UNKNOWN_IMAGE_SCALING";
822
+ ImageScaling2["COVER"] = "COVER";
823
+ ImageScaling2["CONTAIN"] = "CONTAIN";
824
+ ImageScaling2["AUTO"] = "AUTO";
825
+ return ImageScaling2;
826
+ })(ImageScaling || {});
827
+ var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
828
+ ImagePosition2["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
829
+ ImagePosition2["TOP"] = "TOP";
830
+ ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
831
+ ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
832
+ ImagePosition2["CENTER"] = "CENTER";
833
+ ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
834
+ ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
835
+ ImagePosition2["BOTTOM"] = "BOTTOM";
836
+ ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
837
+ ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
838
+ return ImagePosition2;
839
+ })(ImagePosition || {});
840
+ var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
841
+ BackgroundType2["UNKNOWN_BACKGROUND_TYPE"] = "UNKNOWN_BACKGROUND_TYPE";
842
+ BackgroundType2["COLOR"] = "COLOR";
843
+ BackgroundType2["IMAGE"] = "IMAGE";
844
+ return BackgroundType2;
845
+ })(BackgroundType || {});
846
+ var ButtonSize = /* @__PURE__ */ ((ButtonSize2) => {
847
+ ButtonSize2["UNKNOWN_BUTTON_SIZE"] = "UNKNOWN_BUTTON_SIZE";
848
+ ButtonSize2["SMALL"] = "SMALL";
849
+ ButtonSize2["MEDIUM"] = "MEDIUM";
850
+ ButtonSize2["LARGE"] = "LARGE";
851
+ return ButtonSize2;
852
+ })(ButtonSize || {});
853
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
854
+ NodeType2["PARAGRAPH"] = "PARAGRAPH";
855
+ NodeType2["TEXT"] = "TEXT";
856
+ NodeType2["HEADING"] = "HEADING";
857
+ NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
858
+ NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
859
+ NodeType2["LIST_ITEM"] = "LIST_ITEM";
860
+ NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
861
+ NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
862
+ NodeType2["VIDEO"] = "VIDEO";
863
+ NodeType2["DIVIDER"] = "DIVIDER";
864
+ NodeType2["FILE"] = "FILE";
865
+ NodeType2["GALLERY"] = "GALLERY";
866
+ NodeType2["GIF"] = "GIF";
867
+ NodeType2["HTML"] = "HTML";
868
+ NodeType2["IMAGE"] = "IMAGE";
869
+ NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
870
+ NodeType2["MAP"] = "MAP";
871
+ NodeType2["POLL"] = "POLL";
872
+ NodeType2["APP_EMBED"] = "APP_EMBED";
873
+ NodeType2["BUTTON"] = "BUTTON";
874
+ NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
875
+ NodeType2["TABLE"] = "TABLE";
876
+ NodeType2["EMBED"] = "EMBED";
877
+ NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
878
+ NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
879
+ NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
880
+ NodeType2["TABLE_CELL"] = "TABLE_CELL";
881
+ NodeType2["TABLE_ROW"] = "TABLE_ROW";
882
+ NodeType2["EXTERNAL"] = "EXTERNAL";
883
+ NodeType2["AUDIO"] = "AUDIO";
884
+ NodeType2["CAPTION"] = "CAPTION";
885
+ NodeType2["LAYOUT"] = "LAYOUT";
886
+ NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
887
+ return NodeType2;
888
+ })(NodeType || {});
889
+ var WidthType = /* @__PURE__ */ ((WidthType2) => {
890
+ WidthType2["CONTENT"] = "CONTENT";
891
+ WidthType2["SMALL"] = "SMALL";
892
+ WidthType2["ORIGINAL"] = "ORIGINAL";
893
+ WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
894
+ return WidthType2;
895
+ })(WidthType || {});
896
+ var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
897
+ PluginContainerDataAlignment2["CENTER"] = "CENTER";
898
+ PluginContainerDataAlignment2["LEFT"] = "LEFT";
899
+ PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
900
+ return PluginContainerDataAlignment2;
901
+ })(PluginContainerDataAlignment || {});
902
+ var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
903
+ ButtonDataType2["LINK"] = "LINK";
904
+ ButtonDataType2["ACTION"] = "ACTION";
905
+ return ButtonDataType2;
906
+ })(ButtonDataType || {});
907
+ var Target = /* @__PURE__ */ ((Target2) => {
908
+ Target2["SELF"] = "SELF";
909
+ Target2["BLANK"] = "BLANK";
910
+ Target2["PARENT"] = "PARENT";
911
+ Target2["TOP"] = "TOP";
912
+ return Target2;
913
+ })(Target || {});
914
+ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
915
+ TextAlignment2["AUTO"] = "AUTO";
916
+ TextAlignment2["LEFT"] = "LEFT";
917
+ TextAlignment2["RIGHT"] = "RIGHT";
918
+ TextAlignment2["CENTER"] = "CENTER";
919
+ TextAlignment2["JUSTIFY"] = "JUSTIFY";
920
+ return TextAlignment2;
921
+ })(TextAlignment || {});
922
+ var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
923
+ LineStyle2["SINGLE"] = "SINGLE";
924
+ LineStyle2["DOUBLE"] = "DOUBLE";
925
+ LineStyle2["DASHED"] = "DASHED";
926
+ LineStyle2["DOTTED"] = "DOTTED";
927
+ return LineStyle2;
928
+ })(LineStyle || {});
929
+ var Width = /* @__PURE__ */ ((Width2) => {
930
+ Width2["LARGE"] = "LARGE";
931
+ Width2["MEDIUM"] = "MEDIUM";
932
+ Width2["SMALL"] = "SMALL";
933
+ return Width2;
934
+ })(Width || {});
935
+ var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
936
+ DividerDataAlignment2["CENTER"] = "CENTER";
937
+ DividerDataAlignment2["LEFT"] = "LEFT";
938
+ DividerDataAlignment2["RIGHT"] = "RIGHT";
939
+ return DividerDataAlignment2;
940
+ })(DividerDataAlignment || {});
941
+ var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
942
+ ViewMode2["NONE"] = "NONE";
943
+ ViewMode2["FULL"] = "FULL";
944
+ ViewMode2["MINI"] = "MINI";
945
+ return ViewMode2;
946
+ })(ViewMode || {});
947
+ var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
948
+ LayoutType2["COLLAGE"] = "COLLAGE";
949
+ LayoutType2["MASONRY"] = "MASONRY";
950
+ LayoutType2["GRID"] = "GRID";
951
+ LayoutType2["THUMBNAIL"] = "THUMBNAIL";
952
+ LayoutType2["SLIDER"] = "SLIDER";
953
+ LayoutType2["SLIDESHOW"] = "SLIDESHOW";
954
+ LayoutType2["PANORAMA"] = "PANORAMA";
955
+ LayoutType2["COLUMN"] = "COLUMN";
956
+ LayoutType2["MAGIC"] = "MAGIC";
957
+ LayoutType2["FULLSIZE"] = "FULLSIZE";
958
+ return LayoutType2;
959
+ })(LayoutType || {});
960
+ var Orientation = /* @__PURE__ */ ((Orientation2) => {
961
+ Orientation2["ROWS"] = "ROWS";
962
+ Orientation2["COLUMNS"] = "COLUMNS";
963
+ return Orientation2;
964
+ })(Orientation || {});
965
+ var Crop = /* @__PURE__ */ ((Crop2) => {
966
+ Crop2["FILL"] = "FILL";
967
+ Crop2["FIT"] = "FIT";
968
+ return Crop2;
969
+ })(Crop || {});
970
+ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
971
+ ThumbnailsAlignment2["TOP"] = "TOP";
972
+ ThumbnailsAlignment2["RIGHT"] = "RIGHT";
973
+ ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
974
+ ThumbnailsAlignment2["LEFT"] = "LEFT";
975
+ ThumbnailsAlignment2["NONE"] = "NONE";
976
+ return ThumbnailsAlignment2;
977
+ })(ThumbnailsAlignment || {});
978
+ var GIFType = /* @__PURE__ */ ((GIFType2) => {
979
+ GIFType2["NORMAL"] = "NORMAL";
980
+ GIFType2["STICKER"] = "STICKER";
981
+ return GIFType2;
982
+ })(GIFType || {});
983
+ var Source = /* @__PURE__ */ ((Source2) => {
984
+ Source2["HTML"] = "HTML";
985
+ Source2["ADSENSE"] = "ADSENSE";
986
+ return Source2;
987
+ })(Source || {});
988
+ var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
989
+ StylesPosition2["START"] = "START";
990
+ StylesPosition2["END"] = "END";
991
+ StylesPosition2["TOP"] = "TOP";
992
+ StylesPosition2["HIDDEN"] = "HIDDEN";
993
+ return StylesPosition2;
994
+ })(StylesPosition || {});
995
+ var MapType = /* @__PURE__ */ ((MapType2) => {
996
+ MapType2["ROADMAP"] = "ROADMAP";
997
+ MapType2["SATELITE"] = "SATELITE";
998
+ MapType2["HYBRID"] = "HYBRID";
999
+ MapType2["TERRAIN"] = "TERRAIN";
1000
+ return MapType2;
1001
+ })(MapType || {});
1002
+ var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
1003
+ ViewRole2["CREATOR"] = "CREATOR";
1004
+ ViewRole2["VOTERS"] = "VOTERS";
1005
+ ViewRole2["EVERYONE"] = "EVERYONE";
1006
+ return ViewRole2;
1007
+ })(ViewRole || {});
1008
+ var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
1009
+ VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
1010
+ VoteRole2["ALL"] = "ALL";
1011
+ return VoteRole2;
1012
+ })(VoteRole || {});
1013
+ var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
1014
+ PollLayoutType2["LIST"] = "LIST";
1015
+ PollLayoutType2["GRID"] = "GRID";
1016
+ return PollLayoutType2;
1017
+ })(PollLayoutType || {});
1018
+ var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
1019
+ PollLayoutDirection2["LTR"] = "LTR";
1020
+ PollLayoutDirection2["RTL"] = "RTL";
1021
+ return PollLayoutDirection2;
1022
+ })(PollLayoutDirection || {});
1023
+ var PollDesignBackgroundType = /* @__PURE__ */ ((PollDesignBackgroundType2) => {
1024
+ PollDesignBackgroundType2["COLOR"] = "COLOR";
1025
+ PollDesignBackgroundType2["IMAGE"] = "IMAGE";
1026
+ PollDesignBackgroundType2["GRADIENT"] = "GRADIENT";
1027
+ return PollDesignBackgroundType2;
1028
+ })(PollDesignBackgroundType || {});
1029
+ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
1030
+ DecorationType2["BOLD"] = "BOLD";
1031
+ DecorationType2["ITALIC"] = "ITALIC";
1032
+ DecorationType2["UNDERLINE"] = "UNDERLINE";
1033
+ DecorationType2["SPOILER"] = "SPOILER";
1034
+ DecorationType2["ANCHOR"] = "ANCHOR";
1035
+ DecorationType2["MENTION"] = "MENTION";
1036
+ DecorationType2["LINK"] = "LINK";
1037
+ DecorationType2["COLOR"] = "COLOR";
1038
+ DecorationType2["FONT_SIZE"] = "FONT_SIZE";
1039
+ DecorationType2["EXTERNAL"] = "EXTERNAL";
1040
+ DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
1041
+ DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
1042
+ DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
1043
+ return DecorationType2;
1044
+ })(DecorationType || {});
1045
+ var FontType = /* @__PURE__ */ ((FontType2) => {
1046
+ FontType2["PX"] = "PX";
1047
+ FontType2["EM"] = "EM";
1048
+ return FontType2;
1049
+ })(FontType || {});
1050
+ var Position = /* @__PURE__ */ ((Position2) => {
1051
+ Position2["START"] = "START";
1052
+ Position2["END"] = "END";
1053
+ Position2["TOP"] = "TOP";
1054
+ return Position2;
1055
+ })(Position || {});
1056
+ var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
1057
+ AspectRatio2["SQUARE"] = "SQUARE";
1058
+ AspectRatio2["RECTANGLE"] = "RECTANGLE";
1059
+ return AspectRatio2;
1060
+ })(AspectRatio || {});
1061
+ var Resizing = /* @__PURE__ */ ((Resizing2) => {
1062
+ Resizing2["FILL"] = "FILL";
1063
+ Resizing2["FIT"] = "FIT";
1064
+ return Resizing2;
1065
+ })(Resizing || {});
1066
+ var Placement = /* @__PURE__ */ ((Placement2) => {
1067
+ Placement2["IMAGE"] = "IMAGE";
1068
+ Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
1069
+ return Placement2;
1070
+ })(Placement || {});
1071
+ var Type = /* @__PURE__ */ ((Type2) => {
1072
+ Type2["CONTAINED"] = "CONTAINED";
1073
+ Type2["FRAMELESS"] = "FRAMELESS";
1074
+ return Type2;
1075
+ })(Type || {});
1076
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
1077
+ Alignment2["START"] = "START";
1078
+ Alignment2["CENTER"] = "CENTER";
1079
+ Alignment2["END"] = "END";
1080
+ return Alignment2;
1081
+ })(Alignment || {});
1082
+ var Layout = /* @__PURE__ */ ((Layout2) => {
1083
+ Layout2["STACKED"] = "STACKED";
1084
+ Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
1085
+ return Layout2;
1086
+ })(Layout || {});
1087
+ var AppType = /* @__PURE__ */ ((AppType2) => {
1088
+ AppType2["PRODUCT"] = "PRODUCT";
1089
+ AppType2["EVENT"] = "EVENT";
1090
+ AppType2["BOOKING"] = "BOOKING";
1091
+ return AppType2;
1092
+ })(AppType || {});
1093
+ var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
1094
+ InitialExpandedItems2["FIRST"] = "FIRST";
1095
+ InitialExpandedItems2["ALL"] = "ALL";
1096
+ InitialExpandedItems2["NONE"] = "NONE";
1097
+ return InitialExpandedItems2;
1098
+ })(InitialExpandedItems || {});
1099
+ var Direction = /* @__PURE__ */ ((Direction2) => {
1100
+ Direction2["LTR"] = "LTR";
1101
+ Direction2["RTL"] = "RTL";
1102
+ return Direction2;
1103
+ })(Direction || {});
1104
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
1105
+ VerticalAlignment2["TOP"] = "TOP";
1106
+ VerticalAlignment2["MIDDLE"] = "MIDDLE";
1107
+ VerticalAlignment2["BOTTOM"] = "BOTTOM";
1108
+ return VerticalAlignment2;
1109
+ })(VerticalAlignment || {});
1110
+ var NullValue = /* @__PURE__ */ ((NullValue2) => {
1111
+ NullValue2["NULL_VALUE"] = "NULL_VALUE";
1112
+ return NullValue2;
1113
+ })(NullValue || {});
1114
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1115
+ SortOrder2["ASC"] = "ASC";
1116
+ SortOrder2["DESC"] = "DESC";
1117
+ return SortOrder2;
1118
+ })(SortOrder || {});
1119
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1120
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1121
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1122
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1123
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1124
+ WebhookIdentityType2["APP"] = "APP";
1125
+ return WebhookIdentityType2;
1126
+ })(WebhookIdentityType || {});
1127
+ async function getContent2(contentId) {
1128
+ const { httpClient, sideEffects } = arguments[1];
1129
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1130
+ { contentId },
1131
+ []
1132
+ );
1133
+ const reqOpts = getContent(payload);
1134
+ sideEffects?.onSiteCall?.();
1135
+ try {
1136
+ const result = await httpClient.request(reqOpts);
1137
+ sideEffects?.onSuccess?.(result);
1138
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, [
1139
+ "content.richContent"
1140
+ ])?.content;
1141
+ } catch (err) {
1142
+ const transformedError = (0, import_transform_error.transformError)(
1143
+ err,
1144
+ {
1145
+ spreadPathsToArguments: {},
1146
+ explicitPathsToArguments: { contentId: "$[0]" },
1147
+ singleArgumentUnchanged: false
1148
+ },
1149
+ ["contentId"]
1150
+ );
1151
+ sideEffects?.onError?.(err);
1152
+ throw transformedError;
1153
+ }
1154
+ }
1155
+ async function submitContent2(contentId, options) {
1156
+ const { httpClient, sideEffects } = arguments[2];
1157
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1158
+ {
1159
+ contentId,
1160
+ revision: options?.revision,
1161
+ design: options?.design,
1162
+ richContent: options?.richContent,
1163
+ forceCreate: options?.forceCreate
1164
+ },
1165
+ []
1166
+ );
1167
+ const reqOpts = submitContent(payload);
1168
+ sideEffects?.onSiteCall?.();
1169
+ try {
1170
+ const result = await httpClient.request(reqOpts);
1171
+ sideEffects?.onSuccess?.(result);
1172
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, [
1173
+ "content.richContent"
1174
+ ]);
1175
+ } catch (err) {
1176
+ const transformedError = (0, import_transform_error.transformError)(
1177
+ err,
1178
+ {
1179
+ spreadPathsToArguments: {},
1180
+ explicitPathsToArguments: {
1181
+ contentId: "$[0]",
1182
+ revision: "$[1].revision",
1183
+ design: "$[1].design",
1184
+ richContent: "$[1].richContent",
1185
+ forceCreate: "$[1].forceCreate"
1186
+ },
1187
+ singleArgumentUnchanged: false
1188
+ },
1189
+ ["contentId", "options"]
1190
+ );
1191
+ sideEffects?.onError?.(err);
1192
+ throw transformedError;
1193
+ }
1194
+ }
1195
+ async function getLatestContentByPageId2(pageId) {
1196
+ const { httpClient, sideEffects } = arguments[1];
1197
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ pageId }, []);
1198
+ const reqOpts = getLatestContentByPageId(payload);
1199
+ sideEffects?.onSiteCall?.();
1200
+ try {
1201
+ const result = await httpClient.request(reqOpts);
1202
+ sideEffects?.onSuccess?.(result);
1203
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, [
1204
+ "content.richContent"
1205
+ ]);
1206
+ } catch (err) {
1207
+ const transformedError = (0, import_transform_error.transformError)(
1208
+ err,
1209
+ {
1210
+ spreadPathsToArguments: {},
1211
+ explicitPathsToArguments: { pageId: "$[0]" },
1212
+ singleArgumentUnchanged: false
1213
+ },
1214
+ ["pageId"]
1215
+ );
1216
+ sideEffects?.onError?.(err);
1217
+ throw transformedError;
1218
+ }
1219
+ }
1220
+ async function lockLatestContentByPageId2(pageId) {
1221
+ const { httpClient, sideEffects } = arguments[1];
1222
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ pageId }, []);
1223
+ const reqOpts = lockLatestContentByPageId(payload);
1224
+ sideEffects?.onSiteCall?.();
1225
+ try {
1226
+ const result = await httpClient.request(reqOpts);
1227
+ sideEffects?.onSuccess?.(result);
1228
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, [
1229
+ "content.richContent"
1230
+ ]);
1231
+ } catch (err) {
1232
+ const transformedError = (0, import_transform_error.transformError)(
1233
+ err,
1234
+ {
1235
+ spreadPathsToArguments: {},
1236
+ explicitPathsToArguments: { pageId: "$[0]" },
1237
+ singleArgumentUnchanged: false
1238
+ },
1239
+ ["pageId"]
1240
+ );
1241
+ sideEffects?.onError?.(err);
1242
+ throw transformedError;
1243
+ }
1244
+ }
1245
+ function queryContents2() {
1246
+ const { httpClient, sideEffects } = arguments[0];
1247
+ return (0, import_query_builder.queryBuilder)({
1248
+ func: async (payload) => {
1249
+ const reqOpts = queryContents(payload);
1250
+ sideEffects?.onSiteCall?.();
1251
+ try {
1252
+ const result = await httpClient.request(reqOpts);
1253
+ sideEffects?.onSuccess?.(result);
1254
+ return result;
1255
+ } catch (err) {
1256
+ sideEffects?.onError?.(err);
1257
+ throw err;
1258
+ }
1259
+ },
1260
+ requestTransformer: (query) => {
1261
+ const args = [query, {}];
1262
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1263
+ { ...args?.[1], query: args?.[0] },
1264
+ []
1265
+ );
1266
+ },
1267
+ responseTransformer: ({ data }) => {
1268
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1269
+ (0, import_transform_paths2.transformPaths)(data, []),
1270
+ ["contents.richContent"]
1271
+ );
1272
+ return {
1273
+ items: transformedData?.contents,
1274
+ pagingMetadata: transformedData?.pagingMetadata
1275
+ };
1276
+ },
1277
+ errorTransformer: (err) => {
1278
+ const transformedError = (0, import_transform_error.transformError)(err, {
1279
+ spreadPathsToArguments: {},
1280
+ explicitPathsToArguments: { query: "$[0]" },
1281
+ singleArgumentUnchanged: false
1282
+ });
1283
+ throw transformedError;
1284
+ },
1285
+ pagingMethod: "CURSOR",
1286
+ transformationPaths: {}
1287
+ });
1288
+ }
1289
+
1290
+ // src/quickpages-v1-content-contents.public.ts
1291
+ function getContent3(httpClient) {
1292
+ return (contentId) => getContent2(
1293
+ contentId,
1294
+ // @ts-ignore
1295
+ { httpClient }
1296
+ );
1297
+ }
1298
+ function submitContent3(httpClient) {
1299
+ return (contentId, options) => submitContent2(
1300
+ contentId,
1301
+ options,
1302
+ // @ts-ignore
1303
+ { httpClient }
1304
+ );
1305
+ }
1306
+ function getLatestContentByPageId3(httpClient) {
1307
+ return (pageId) => getLatestContentByPageId2(
1308
+ pageId,
1309
+ // @ts-ignore
1310
+ { httpClient }
1311
+ );
1312
+ }
1313
+ function lockLatestContentByPageId3(httpClient) {
1314
+ return (pageId) => lockLatestContentByPageId2(
1315
+ pageId,
1316
+ // @ts-ignore
1317
+ { httpClient }
1318
+ );
1319
+ }
1320
+ function queryContents3(httpClient) {
1321
+ return () => queryContents2(
1322
+ // @ts-ignore
1323
+ { httpClient }
1324
+ );
1325
+ }
1326
+
1327
+ // src/quickpages-v1-content-contents.context.ts
1328
+ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
1329
+ var getContent4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getContent3);
1330
+ var submitContent4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(submitContent3);
1331
+ var getLatestContentByPageId4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getLatestContentByPageId3);
1332
+ var lockLatestContentByPageId4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(lockLatestContentByPageId3);
1333
+ var queryContents4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryContents3);
1334
+ // Annotate the CommonJS export names for ESM import in node:
1335
+ 0 && (module.exports = {
1336
+ Alignment,
1337
+ AppType,
1338
+ AspectRatio,
1339
+ BackgroundType,
1340
+ ButtonDataType,
1341
+ ButtonSize,
1342
+ ColorSwatchType,
1343
+ Crop,
1344
+ DecorationType,
1345
+ Direction,
1346
+ DividerDataAlignment,
1347
+ FontType,
1348
+ GIFType,
1349
+ GradientType,
1350
+ Group,
1351
+ ImagePosition,
1352
+ ImageScaling,
1353
+ InitialExpandedItems,
1354
+ Layout,
1355
+ LayoutType,
1356
+ LineStyle,
1357
+ MapType,
1358
+ NodeType,
1359
+ NullValue,
1360
+ Orientation,
1361
+ Placement,
1362
+ PluginContainerDataAlignment,
1363
+ PollDesignBackgroundType,
1364
+ PollLayoutDirection,
1365
+ PollLayoutType,
1366
+ Position,
1367
+ Resizing,
1368
+ SortOrder,
1369
+ Source,
1370
+ StylesPosition,
1371
+ Target,
1372
+ TextAlignment,
1373
+ ThumbnailsAlignment,
1374
+ Type,
1375
+ VerticalAlignment,
1376
+ ViewMode,
1377
+ ViewRole,
1378
+ VoteRole,
1379
+ WebhookIdentityType,
1380
+ Width,
1381
+ WidthType,
1382
+ getContent,
1383
+ getLatestContentByPageId,
1384
+ lockLatestContentByPageId,
1385
+ queryContents,
1386
+ submitContent
1387
+ });
1388
+ //# sourceMappingURL=index.js.map