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