@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,812 @@
1
+ // src/quickpages-v1-content-contents.http.ts
2
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
4
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
5
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
6
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
8
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
9
+ function resolveWixQuickpagesContentV1ContentServiceUrl(opts) {
10
+ const domainToMappings = {
11
+ "www.wixapis.com": [
12
+ {
13
+ srcPath: "/quick-pages/v1/contents",
14
+ destPath: "/v1/contents"
15
+ }
16
+ ],
17
+ "manage._base_domain_": [
18
+ {
19
+ srcPath: "/quick-pages/v1/contents",
20
+ destPath: "/v1/contents"
21
+ }
22
+ ]
23
+ };
24
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
25
+ }
26
+ var PACKAGE_NAME = "@wix/auto_sdk_quick-pages_contents";
27
+ function getContent(payload) {
28
+ function __getContent({ host }) {
29
+ const metadata = {
30
+ entityFqdn: "wix.quickpages.v1.content",
31
+ method: "GET",
32
+ methodFqn: "wix.quickpages.content.v1.ContentService.GetContent",
33
+ packageName: PACKAGE_NAME,
34
+ url: resolveWixQuickpagesContentV1ContentServiceUrl({
35
+ protoPath: "/v1/contents/{contentId}",
36
+ data: payload,
37
+ host
38
+ }),
39
+ params: toURLSearchParams(payload),
40
+ transformResponse: (payload2) => transformPaths(payload2, [
41
+ {
42
+ transformFn: transformRESTTimestampToSDKTimestamp,
43
+ paths: [
44
+ { path: "content.createdDate" },
45
+ { path: "content.updatedDate" },
46
+ { path: "content.lastEditedDate" },
47
+ { path: "content.richContent.metadata.createdTimestamp" },
48
+ { path: "content.richContent.metadata.updatedTimestamp" }
49
+ ]
50
+ },
51
+ {
52
+ transformFn: transformRESTFloatToSDKFloat,
53
+ paths: [
54
+ {
55
+ path: "content.design.background.colorOptions.color.gradientOptions.opacity"
56
+ },
57
+ {
58
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.x"
59
+ },
60
+ {
61
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.y"
62
+ },
63
+ {
64
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.opacity"
65
+ },
66
+ {
67
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.position"
68
+ },
69
+ { path: "content.design.background.imageOptions.opacity" },
70
+ {
71
+ path: "content.design.background.imageOptions.color.gradientOptions.opacity"
72
+ },
73
+ {
74
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.x"
75
+ },
76
+ {
77
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.y"
78
+ },
79
+ {
80
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.opacity"
81
+ },
82
+ {
83
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.position"
84
+ },
85
+ { path: "content.design.typography.heading1.lineHeight" },
86
+ { path: "content.design.typography.heading1.letterSpacing" },
87
+ { path: "content.design.typography.heading2.lineHeight" },
88
+ { path: "content.design.typography.heading2.letterSpacing" },
89
+ { path: "content.design.typography.heading3.lineHeight" },
90
+ { path: "content.design.typography.heading3.letterSpacing" },
91
+ { path: "content.design.typography.heading4.lineHeight" },
92
+ { path: "content.design.typography.heading4.letterSpacing" },
93
+ { path: "content.design.typography.heading5.lineHeight" },
94
+ { path: "content.design.typography.heading5.letterSpacing" },
95
+ { path: "content.design.typography.heading6.lineHeight" },
96
+ { path: "content.design.typography.heading6.letterSpacing" },
97
+ { path: "content.design.typography.paragraph.lineHeight" },
98
+ { path: "content.design.typography.paragraph.letterSpacing" },
99
+ { path: "content.design.customGradients.opacity" },
100
+ { path: "content.design.customGradients.radialOptions.x" },
101
+ { path: "content.design.customGradients.radialOptions.y" },
102
+ { path: "content.design.customGradients.stops.opacity" },
103
+ { path: "content.design.customGradients.stops.position" },
104
+ {
105
+ path: "content.richContent.nodes.galleryData.items.image.media.duration"
106
+ },
107
+ {
108
+ path: "content.richContent.nodes.galleryData.items.video.media.duration"
109
+ },
110
+ {
111
+ path: "content.richContent.nodes.galleryData.items.video.thumbnail.duration"
112
+ },
113
+ {
114
+ path: "content.richContent.nodes.galleryData.options.item.ratio"
115
+ },
116
+ { path: "content.richContent.nodes.imageData.image.duration" },
117
+ { path: "content.richContent.nodes.mapData.mapSettings.lat" },
118
+ { path: "content.richContent.nodes.mapData.mapSettings.lng" },
119
+ {
120
+ path: "content.richContent.nodes.pollData.poll.image.duration"
121
+ },
122
+ {
123
+ path: "content.richContent.nodes.pollData.poll.options.image.duration"
124
+ },
125
+ {
126
+ path: "content.richContent.nodes.pollData.design.poll.background.image.duration"
127
+ },
128
+ { path: "content.richContent.nodes.appEmbedData.image.duration" },
129
+ { path: "content.richContent.nodes.videoData.video.duration" },
130
+ {
131
+ path: "content.richContent.nodes.videoData.thumbnail.duration"
132
+ },
133
+ { path: "content.richContent.nodes.audioData.audio.duration" },
134
+ {
135
+ path: "content.richContent.nodes.audioData.coverImage.duration"
136
+ }
137
+ ]
138
+ }
139
+ ])
140
+ };
141
+ return metadata;
142
+ }
143
+ return __getContent;
144
+ }
145
+ function submitContent(payload) {
146
+ function __submitContent({ host }) {
147
+ const serializedData = transformPaths(payload, [
148
+ {
149
+ transformFn: transformSDKFloatToRESTFloat,
150
+ paths: [
151
+ {
152
+ path: "design.background.colorOptions.color.gradientOptions.opacity"
153
+ },
154
+ {
155
+ path: "design.background.colorOptions.color.gradientOptions.radialOptions.x"
156
+ },
157
+ {
158
+ path: "design.background.colorOptions.color.gradientOptions.radialOptions.y"
159
+ },
160
+ {
161
+ path: "design.background.colorOptions.color.gradientOptions.stops.opacity"
162
+ },
163
+ {
164
+ path: "design.background.colorOptions.color.gradientOptions.stops.position"
165
+ },
166
+ { path: "design.background.imageOptions.opacity" },
167
+ {
168
+ path: "design.background.imageOptions.color.gradientOptions.opacity"
169
+ },
170
+ {
171
+ path: "design.background.imageOptions.color.gradientOptions.radialOptions.x"
172
+ },
173
+ {
174
+ path: "design.background.imageOptions.color.gradientOptions.radialOptions.y"
175
+ },
176
+ {
177
+ path: "design.background.imageOptions.color.gradientOptions.stops.opacity"
178
+ },
179
+ {
180
+ path: "design.background.imageOptions.color.gradientOptions.stops.position"
181
+ },
182
+ { path: "design.typography.heading1.lineHeight" },
183
+ { path: "design.typography.heading1.letterSpacing" },
184
+ { path: "design.typography.heading2.lineHeight" },
185
+ { path: "design.typography.heading2.letterSpacing" },
186
+ { path: "design.typography.heading3.lineHeight" },
187
+ { path: "design.typography.heading3.letterSpacing" },
188
+ { path: "design.typography.heading4.lineHeight" },
189
+ { path: "design.typography.heading4.letterSpacing" },
190
+ { path: "design.typography.heading5.lineHeight" },
191
+ { path: "design.typography.heading5.letterSpacing" },
192
+ { path: "design.typography.heading6.lineHeight" },
193
+ { path: "design.typography.heading6.letterSpacing" },
194
+ { path: "design.typography.paragraph.lineHeight" },
195
+ { path: "design.typography.paragraph.letterSpacing" },
196
+ { path: "design.customGradients.opacity" },
197
+ { path: "design.customGradients.radialOptions.x" },
198
+ { path: "design.customGradients.radialOptions.y" },
199
+ { path: "design.customGradients.stops.opacity" },
200
+ { path: "design.customGradients.stops.position" },
201
+ { path: "richContent.nodes.galleryData.items.image.media.duration" },
202
+ { path: "richContent.nodes.galleryData.items.video.media.duration" },
203
+ {
204
+ path: "richContent.nodes.galleryData.items.video.thumbnail.duration"
205
+ },
206
+ { path: "richContent.nodes.galleryData.options.item.ratio" },
207
+ { path: "richContent.nodes.imageData.image.duration" },
208
+ { path: "richContent.nodes.mapData.mapSettings.lat" },
209
+ { path: "richContent.nodes.mapData.mapSettings.lng" },
210
+ { path: "richContent.nodes.pollData.poll.image.duration" },
211
+ { path: "richContent.nodes.pollData.poll.options.image.duration" },
212
+ {
213
+ path: "richContent.nodes.pollData.design.poll.background.image.duration"
214
+ },
215
+ { path: "richContent.nodes.appEmbedData.image.duration" },
216
+ { path: "richContent.nodes.videoData.video.duration" },
217
+ { path: "richContent.nodes.videoData.thumbnail.duration" },
218
+ { path: "richContent.nodes.audioData.audio.duration" },
219
+ { path: "richContent.nodes.audioData.coverImage.duration" }
220
+ ]
221
+ },
222
+ {
223
+ transformFn: transformSDKTimestampToRESTTimestamp,
224
+ paths: [
225
+ { path: "richContent.metadata.createdTimestamp" },
226
+ { path: "richContent.metadata.updatedTimestamp" }
227
+ ]
228
+ }
229
+ ]);
230
+ const metadata = {
231
+ entityFqdn: "wix.quickpages.v1.content",
232
+ method: "POST",
233
+ methodFqn: "wix.quickpages.content.v1.ContentService.SubmitContent",
234
+ packageName: PACKAGE_NAME,
235
+ url: resolveWixQuickpagesContentV1ContentServiceUrl({
236
+ protoPath: "/v1/contents/submit",
237
+ data: serializedData,
238
+ host
239
+ }),
240
+ data: serializedData,
241
+ transformResponse: (payload2) => transformPaths(payload2, [
242
+ {
243
+ transformFn: transformRESTTimestampToSDKTimestamp,
244
+ paths: [
245
+ { path: "content.createdDate" },
246
+ { path: "content.updatedDate" },
247
+ { path: "content.lastEditedDate" },
248
+ { path: "content.richContent.metadata.createdTimestamp" },
249
+ { path: "content.richContent.metadata.updatedTimestamp" }
250
+ ]
251
+ },
252
+ {
253
+ transformFn: transformRESTFloatToSDKFloat,
254
+ paths: [
255
+ {
256
+ path: "content.design.background.colorOptions.color.gradientOptions.opacity"
257
+ },
258
+ {
259
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.x"
260
+ },
261
+ {
262
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.y"
263
+ },
264
+ {
265
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.opacity"
266
+ },
267
+ {
268
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.position"
269
+ },
270
+ { path: "content.design.background.imageOptions.opacity" },
271
+ {
272
+ path: "content.design.background.imageOptions.color.gradientOptions.opacity"
273
+ },
274
+ {
275
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.x"
276
+ },
277
+ {
278
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.y"
279
+ },
280
+ {
281
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.opacity"
282
+ },
283
+ {
284
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.position"
285
+ },
286
+ { path: "content.design.typography.heading1.lineHeight" },
287
+ { path: "content.design.typography.heading1.letterSpacing" },
288
+ { path: "content.design.typography.heading2.lineHeight" },
289
+ { path: "content.design.typography.heading2.letterSpacing" },
290
+ { path: "content.design.typography.heading3.lineHeight" },
291
+ { path: "content.design.typography.heading3.letterSpacing" },
292
+ { path: "content.design.typography.heading4.lineHeight" },
293
+ { path: "content.design.typography.heading4.letterSpacing" },
294
+ { path: "content.design.typography.heading5.lineHeight" },
295
+ { path: "content.design.typography.heading5.letterSpacing" },
296
+ { path: "content.design.typography.heading6.lineHeight" },
297
+ { path: "content.design.typography.heading6.letterSpacing" },
298
+ { path: "content.design.typography.paragraph.lineHeight" },
299
+ { path: "content.design.typography.paragraph.letterSpacing" },
300
+ { path: "content.design.customGradients.opacity" },
301
+ { path: "content.design.customGradients.radialOptions.x" },
302
+ { path: "content.design.customGradients.radialOptions.y" },
303
+ { path: "content.design.customGradients.stops.opacity" },
304
+ { path: "content.design.customGradients.stops.position" },
305
+ {
306
+ path: "content.richContent.nodes.galleryData.items.image.media.duration"
307
+ },
308
+ {
309
+ path: "content.richContent.nodes.galleryData.items.video.media.duration"
310
+ },
311
+ {
312
+ path: "content.richContent.nodes.galleryData.items.video.thumbnail.duration"
313
+ },
314
+ {
315
+ path: "content.richContent.nodes.galleryData.options.item.ratio"
316
+ },
317
+ { path: "content.richContent.nodes.imageData.image.duration" },
318
+ { path: "content.richContent.nodes.mapData.mapSettings.lat" },
319
+ { path: "content.richContent.nodes.mapData.mapSettings.lng" },
320
+ {
321
+ path: "content.richContent.nodes.pollData.poll.image.duration"
322
+ },
323
+ {
324
+ path: "content.richContent.nodes.pollData.poll.options.image.duration"
325
+ },
326
+ {
327
+ path: "content.richContent.nodes.pollData.design.poll.background.image.duration"
328
+ },
329
+ { path: "content.richContent.nodes.appEmbedData.image.duration" },
330
+ { path: "content.richContent.nodes.videoData.video.duration" },
331
+ {
332
+ path: "content.richContent.nodes.videoData.thumbnail.duration"
333
+ },
334
+ { path: "content.richContent.nodes.audioData.audio.duration" },
335
+ {
336
+ path: "content.richContent.nodes.audioData.coverImage.duration"
337
+ }
338
+ ]
339
+ }
340
+ ])
341
+ };
342
+ return metadata;
343
+ }
344
+ return __submitContent;
345
+ }
346
+ function getLatestContentByPageId(payload) {
347
+ function __getLatestContentByPageId({ host }) {
348
+ const metadata = {
349
+ entityFqdn: "wix.quickpages.v1.content",
350
+ method: "GET",
351
+ methodFqn: "wix.quickpages.content.v1.ContentService.GetLatestContentByPageId",
352
+ packageName: PACKAGE_NAME,
353
+ url: resolveWixQuickpagesContentV1ContentServiceUrl({
354
+ protoPath: "/v1/contents/page/{pageId}",
355
+ data: payload,
356
+ host
357
+ }),
358
+ params: toURLSearchParams(payload),
359
+ transformResponse: (payload2) => transformPaths(payload2, [
360
+ {
361
+ transformFn: transformRESTTimestampToSDKTimestamp,
362
+ paths: [
363
+ { path: "content.createdDate" },
364
+ { path: "content.updatedDate" },
365
+ { path: "content.lastEditedDate" },
366
+ { path: "content.richContent.metadata.createdTimestamp" },
367
+ { path: "content.richContent.metadata.updatedTimestamp" }
368
+ ]
369
+ },
370
+ {
371
+ transformFn: transformRESTFloatToSDKFloat,
372
+ paths: [
373
+ {
374
+ path: "content.design.background.colorOptions.color.gradientOptions.opacity"
375
+ },
376
+ {
377
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.x"
378
+ },
379
+ {
380
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.y"
381
+ },
382
+ {
383
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.opacity"
384
+ },
385
+ {
386
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.position"
387
+ },
388
+ { path: "content.design.background.imageOptions.opacity" },
389
+ {
390
+ path: "content.design.background.imageOptions.color.gradientOptions.opacity"
391
+ },
392
+ {
393
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.x"
394
+ },
395
+ {
396
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.y"
397
+ },
398
+ {
399
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.opacity"
400
+ },
401
+ {
402
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.position"
403
+ },
404
+ { path: "content.design.typography.heading1.lineHeight" },
405
+ { path: "content.design.typography.heading1.letterSpacing" },
406
+ { path: "content.design.typography.heading2.lineHeight" },
407
+ { path: "content.design.typography.heading2.letterSpacing" },
408
+ { path: "content.design.typography.heading3.lineHeight" },
409
+ { path: "content.design.typography.heading3.letterSpacing" },
410
+ { path: "content.design.typography.heading4.lineHeight" },
411
+ { path: "content.design.typography.heading4.letterSpacing" },
412
+ { path: "content.design.typography.heading5.lineHeight" },
413
+ { path: "content.design.typography.heading5.letterSpacing" },
414
+ { path: "content.design.typography.heading6.lineHeight" },
415
+ { path: "content.design.typography.heading6.letterSpacing" },
416
+ { path: "content.design.typography.paragraph.lineHeight" },
417
+ { path: "content.design.typography.paragraph.letterSpacing" },
418
+ { path: "content.design.customGradients.opacity" },
419
+ { path: "content.design.customGradients.radialOptions.x" },
420
+ { path: "content.design.customGradients.radialOptions.y" },
421
+ { path: "content.design.customGradients.stops.opacity" },
422
+ { path: "content.design.customGradients.stops.position" },
423
+ {
424
+ path: "content.richContent.nodes.galleryData.items.image.media.duration"
425
+ },
426
+ {
427
+ path: "content.richContent.nodes.galleryData.items.video.media.duration"
428
+ },
429
+ {
430
+ path: "content.richContent.nodes.galleryData.items.video.thumbnail.duration"
431
+ },
432
+ {
433
+ path: "content.richContent.nodes.galleryData.options.item.ratio"
434
+ },
435
+ { path: "content.richContent.nodes.imageData.image.duration" },
436
+ { path: "content.richContent.nodes.mapData.mapSettings.lat" },
437
+ { path: "content.richContent.nodes.mapData.mapSettings.lng" },
438
+ {
439
+ path: "content.richContent.nodes.pollData.poll.image.duration"
440
+ },
441
+ {
442
+ path: "content.richContent.nodes.pollData.poll.options.image.duration"
443
+ },
444
+ {
445
+ path: "content.richContent.nodes.pollData.design.poll.background.image.duration"
446
+ },
447
+ { path: "content.richContent.nodes.appEmbedData.image.duration" },
448
+ { path: "content.richContent.nodes.videoData.video.duration" },
449
+ {
450
+ path: "content.richContent.nodes.videoData.thumbnail.duration"
451
+ },
452
+ { path: "content.richContent.nodes.audioData.audio.duration" },
453
+ {
454
+ path: "content.richContent.nodes.audioData.coverImage.duration"
455
+ }
456
+ ]
457
+ }
458
+ ])
459
+ };
460
+ return metadata;
461
+ }
462
+ return __getLatestContentByPageId;
463
+ }
464
+ function lockLatestContentByPageId(payload) {
465
+ function __lockLatestContentByPageId({ host }) {
466
+ const metadata = {
467
+ entityFqdn: "wix.quickpages.v1.content",
468
+ method: "PATCH",
469
+ methodFqn: "wix.quickpages.content.v1.ContentService.LockLatestContentByPageId",
470
+ packageName: PACKAGE_NAME,
471
+ url: resolveWixQuickpagesContentV1ContentServiceUrl({
472
+ protoPath: "/v1/contents/page/{pageId}/lock",
473
+ data: payload,
474
+ host
475
+ }),
476
+ data: payload,
477
+ transformResponse: (payload2) => transformPaths(payload2, [
478
+ {
479
+ transformFn: transformRESTTimestampToSDKTimestamp,
480
+ paths: [
481
+ { path: "content.createdDate" },
482
+ { path: "content.updatedDate" },
483
+ { path: "content.lastEditedDate" },
484
+ { path: "content.richContent.metadata.createdTimestamp" },
485
+ { path: "content.richContent.metadata.updatedTimestamp" }
486
+ ]
487
+ },
488
+ {
489
+ transformFn: transformRESTFloatToSDKFloat,
490
+ paths: [
491
+ {
492
+ path: "content.design.background.colorOptions.color.gradientOptions.opacity"
493
+ },
494
+ {
495
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.x"
496
+ },
497
+ {
498
+ path: "content.design.background.colorOptions.color.gradientOptions.radialOptions.y"
499
+ },
500
+ {
501
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.opacity"
502
+ },
503
+ {
504
+ path: "content.design.background.colorOptions.color.gradientOptions.stops.position"
505
+ },
506
+ { path: "content.design.background.imageOptions.opacity" },
507
+ {
508
+ path: "content.design.background.imageOptions.color.gradientOptions.opacity"
509
+ },
510
+ {
511
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.x"
512
+ },
513
+ {
514
+ path: "content.design.background.imageOptions.color.gradientOptions.radialOptions.y"
515
+ },
516
+ {
517
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.opacity"
518
+ },
519
+ {
520
+ path: "content.design.background.imageOptions.color.gradientOptions.stops.position"
521
+ },
522
+ { path: "content.design.typography.heading1.lineHeight" },
523
+ { path: "content.design.typography.heading1.letterSpacing" },
524
+ { path: "content.design.typography.heading2.lineHeight" },
525
+ { path: "content.design.typography.heading2.letterSpacing" },
526
+ { path: "content.design.typography.heading3.lineHeight" },
527
+ { path: "content.design.typography.heading3.letterSpacing" },
528
+ { path: "content.design.typography.heading4.lineHeight" },
529
+ { path: "content.design.typography.heading4.letterSpacing" },
530
+ { path: "content.design.typography.heading5.lineHeight" },
531
+ { path: "content.design.typography.heading5.letterSpacing" },
532
+ { path: "content.design.typography.heading6.lineHeight" },
533
+ { path: "content.design.typography.heading6.letterSpacing" },
534
+ { path: "content.design.typography.paragraph.lineHeight" },
535
+ { path: "content.design.typography.paragraph.letterSpacing" },
536
+ { path: "content.design.customGradients.opacity" },
537
+ { path: "content.design.customGradients.radialOptions.x" },
538
+ { path: "content.design.customGradients.radialOptions.y" },
539
+ { path: "content.design.customGradients.stops.opacity" },
540
+ { path: "content.design.customGradients.stops.position" },
541
+ {
542
+ path: "content.richContent.nodes.galleryData.items.image.media.duration"
543
+ },
544
+ {
545
+ path: "content.richContent.nodes.galleryData.items.video.media.duration"
546
+ },
547
+ {
548
+ path: "content.richContent.nodes.galleryData.items.video.thumbnail.duration"
549
+ },
550
+ {
551
+ path: "content.richContent.nodes.galleryData.options.item.ratio"
552
+ },
553
+ { path: "content.richContent.nodes.imageData.image.duration" },
554
+ { path: "content.richContent.nodes.mapData.mapSettings.lat" },
555
+ { path: "content.richContent.nodes.mapData.mapSettings.lng" },
556
+ {
557
+ path: "content.richContent.nodes.pollData.poll.image.duration"
558
+ },
559
+ {
560
+ path: "content.richContent.nodes.pollData.poll.options.image.duration"
561
+ },
562
+ {
563
+ path: "content.richContent.nodes.pollData.design.poll.background.image.duration"
564
+ },
565
+ { path: "content.richContent.nodes.appEmbedData.image.duration" },
566
+ { path: "content.richContent.nodes.videoData.video.duration" },
567
+ {
568
+ path: "content.richContent.nodes.videoData.thumbnail.duration"
569
+ },
570
+ { path: "content.richContent.nodes.audioData.audio.duration" },
571
+ {
572
+ path: "content.richContent.nodes.audioData.coverImage.duration"
573
+ }
574
+ ]
575
+ }
576
+ ])
577
+ };
578
+ return metadata;
579
+ }
580
+ return __lockLatestContentByPageId;
581
+ }
582
+ function queryContents(payload) {
583
+ function __queryContents({ host }) {
584
+ const metadata = {
585
+ entityFqdn: "wix.quickpages.v1.content",
586
+ method: "POST",
587
+ methodFqn: "wix.quickpages.content.v1.ContentService.QueryContents",
588
+ packageName: PACKAGE_NAME,
589
+ url: resolveWixQuickpagesContentV1ContentServiceUrl({
590
+ protoPath: "/v1/contents/query",
591
+ data: payload,
592
+ host
593
+ }),
594
+ data: payload,
595
+ transformResponse: (payload2) => transformPaths(payload2, [
596
+ {
597
+ transformFn: transformRESTTimestampToSDKTimestamp,
598
+ paths: [
599
+ { path: "contents.createdDate" },
600
+ { path: "contents.updatedDate" },
601
+ { path: "contents.lastEditedDate" },
602
+ { path: "contents.richContent.metadata.createdTimestamp" },
603
+ { path: "contents.richContent.metadata.updatedTimestamp" }
604
+ ]
605
+ },
606
+ {
607
+ transformFn: transformRESTFloatToSDKFloat,
608
+ paths: [
609
+ {
610
+ path: "contents.design.background.colorOptions.color.gradientOptions.opacity"
611
+ },
612
+ {
613
+ path: "contents.design.background.colorOptions.color.gradientOptions.radialOptions.x"
614
+ },
615
+ {
616
+ path: "contents.design.background.colorOptions.color.gradientOptions.radialOptions.y"
617
+ },
618
+ {
619
+ path: "contents.design.background.colorOptions.color.gradientOptions.stops.opacity"
620
+ },
621
+ {
622
+ path: "contents.design.background.colorOptions.color.gradientOptions.stops.position"
623
+ },
624
+ { path: "contents.design.background.imageOptions.opacity" },
625
+ {
626
+ path: "contents.design.background.imageOptions.color.gradientOptions.opacity"
627
+ },
628
+ {
629
+ path: "contents.design.background.imageOptions.color.gradientOptions.radialOptions.x"
630
+ },
631
+ {
632
+ path: "contents.design.background.imageOptions.color.gradientOptions.radialOptions.y"
633
+ },
634
+ {
635
+ path: "contents.design.background.imageOptions.color.gradientOptions.stops.opacity"
636
+ },
637
+ {
638
+ path: "contents.design.background.imageOptions.color.gradientOptions.stops.position"
639
+ },
640
+ { path: "contents.design.typography.heading1.lineHeight" },
641
+ { path: "contents.design.typography.heading1.letterSpacing" },
642
+ { path: "contents.design.typography.heading2.lineHeight" },
643
+ { path: "contents.design.typography.heading2.letterSpacing" },
644
+ { path: "contents.design.typography.heading3.lineHeight" },
645
+ { path: "contents.design.typography.heading3.letterSpacing" },
646
+ { path: "contents.design.typography.heading4.lineHeight" },
647
+ { path: "contents.design.typography.heading4.letterSpacing" },
648
+ { path: "contents.design.typography.heading5.lineHeight" },
649
+ { path: "contents.design.typography.heading5.letterSpacing" },
650
+ { path: "contents.design.typography.heading6.lineHeight" },
651
+ { path: "contents.design.typography.heading6.letterSpacing" },
652
+ { path: "contents.design.typography.paragraph.lineHeight" },
653
+ { path: "contents.design.typography.paragraph.letterSpacing" },
654
+ { path: "contents.design.customGradients.opacity" },
655
+ { path: "contents.design.customGradients.radialOptions.x" },
656
+ { path: "contents.design.customGradients.radialOptions.y" },
657
+ { path: "contents.design.customGradients.stops.opacity" },
658
+ { path: "contents.design.customGradients.stops.position" },
659
+ {
660
+ path: "contents.richContent.nodes.galleryData.items.image.media.duration"
661
+ },
662
+ {
663
+ path: "contents.richContent.nodes.galleryData.items.video.media.duration"
664
+ },
665
+ {
666
+ path: "contents.richContent.nodes.galleryData.items.video.thumbnail.duration"
667
+ },
668
+ {
669
+ path: "contents.richContent.nodes.galleryData.options.item.ratio"
670
+ },
671
+ { path: "contents.richContent.nodes.imageData.image.duration" },
672
+ { path: "contents.richContent.nodes.mapData.mapSettings.lat" },
673
+ { path: "contents.richContent.nodes.mapData.mapSettings.lng" },
674
+ {
675
+ path: "contents.richContent.nodes.pollData.poll.image.duration"
676
+ },
677
+ {
678
+ path: "contents.richContent.nodes.pollData.poll.options.image.duration"
679
+ },
680
+ {
681
+ path: "contents.richContent.nodes.pollData.design.poll.background.image.duration"
682
+ },
683
+ {
684
+ path: "contents.richContent.nodes.appEmbedData.image.duration"
685
+ },
686
+ { path: "contents.richContent.nodes.videoData.video.duration" },
687
+ {
688
+ path: "contents.richContent.nodes.videoData.thumbnail.duration"
689
+ },
690
+ { path: "contents.richContent.nodes.audioData.audio.duration" },
691
+ {
692
+ path: "contents.richContent.nodes.audioData.coverImage.duration"
693
+ }
694
+ ]
695
+ }
696
+ ]),
697
+ fallback: [
698
+ {
699
+ method: "POST",
700
+ url: resolveWixQuickpagesContentV1ContentServiceUrl({
701
+ protoPath: "/v1/contents/query",
702
+ data: payload,
703
+ host
704
+ }),
705
+ data: payload
706
+ }
707
+ ]
708
+ };
709
+ return metadata;
710
+ }
711
+ return __queryContents;
712
+ }
713
+
714
+ // src/quickpages-v1-content-contents.meta.ts
715
+ function getContent2() {
716
+ const payload = { contentId: ":contentId" };
717
+ const getRequestOptions = getContent(payload);
718
+ const getUrl = (context) => {
719
+ const { url } = getRequestOptions(context);
720
+ return url;
721
+ };
722
+ return {
723
+ getUrl,
724
+ httpMethod: "GET",
725
+ path: "/v1/contents/{contentId}",
726
+ pathParams: { contentId: "contentId" },
727
+ __requestType: null,
728
+ __originalRequestType: null,
729
+ __responseType: null,
730
+ __originalResponseType: null
731
+ };
732
+ }
733
+ function submitContent2() {
734
+ const payload = {};
735
+ const getRequestOptions = submitContent(payload);
736
+ const getUrl = (context) => {
737
+ const { url } = getRequestOptions(context);
738
+ return url;
739
+ };
740
+ return {
741
+ getUrl,
742
+ httpMethod: "POST",
743
+ path: "/v1/contents/submit",
744
+ pathParams: {},
745
+ __requestType: null,
746
+ __originalRequestType: null,
747
+ __responseType: null,
748
+ __originalResponseType: null
749
+ };
750
+ }
751
+ function getLatestContentByPageId2() {
752
+ const payload = { pageId: ":pageId" };
753
+ const getRequestOptions = getLatestContentByPageId(payload);
754
+ const getUrl = (context) => {
755
+ const { url } = getRequestOptions(context);
756
+ return url;
757
+ };
758
+ return {
759
+ getUrl,
760
+ httpMethod: "GET",
761
+ path: "/v1/contents/page/{pageId}",
762
+ pathParams: { pageId: "pageId" },
763
+ __requestType: null,
764
+ __originalRequestType: null,
765
+ __responseType: null,
766
+ __originalResponseType: null
767
+ };
768
+ }
769
+ function lockLatestContentByPageId2() {
770
+ const payload = { pageId: ":pageId" };
771
+ const getRequestOptions = lockLatestContentByPageId(payload);
772
+ const getUrl = (context) => {
773
+ const { url } = getRequestOptions(context);
774
+ return url;
775
+ };
776
+ return {
777
+ getUrl,
778
+ httpMethod: "PATCH",
779
+ path: "/v1/contents/page/{pageId}/lock",
780
+ pathParams: { pageId: "pageId" },
781
+ __requestType: null,
782
+ __originalRequestType: null,
783
+ __responseType: null,
784
+ __originalResponseType: null
785
+ };
786
+ }
787
+ function queryContents2() {
788
+ const payload = {};
789
+ const getRequestOptions = queryContents(payload);
790
+ const getUrl = (context) => {
791
+ const { url } = getRequestOptions(context);
792
+ return url;
793
+ };
794
+ return {
795
+ getUrl,
796
+ httpMethod: "GET",
797
+ path: "/v1/contents/query",
798
+ pathParams: {},
799
+ __requestType: null,
800
+ __originalRequestType: null,
801
+ __responseType: null,
802
+ __originalResponseType: null
803
+ };
804
+ }
805
+ export {
806
+ getContent2 as getContent,
807
+ getLatestContentByPageId2 as getLatestContentByPageId,
808
+ lockLatestContentByPageId2 as lockLatestContentByPageId,
809
+ queryContents2 as queryContents,
810
+ submitContent2 as submitContent
811
+ };
812
+ //# sourceMappingURL=meta.mjs.map