@wix/auto_sdk_data_collections 1.0.93 → 1.0.95

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.
@@ -1,2616 +0,0 @@
1
- // src/data-v2-data-collection-collections.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 { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
8
- import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
9
- import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
10
- function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(opts) {
11
- const domainToMappings = {
12
- "api._api_base_domain_": [
13
- {
14
- srcPath: "/cloud-data",
15
- destPath: ""
16
- }
17
- ],
18
- "code._base_domain_": [
19
- {
20
- srcPath: "/_api/cloud-data/v1/data-settings",
21
- destPath: "/v1/data-settings"
22
- },
23
- {
24
- srcPath: "/_api/cloud-data/v1/schemas",
25
- destPath: "/v1/schemas"
26
- },
27
- {
28
- srcPath: "/_api/cloud-data/v1/connector",
29
- destPath: "/v1/connector"
30
- },
31
- {
32
- srcPath: "/_api/data/v1/data-settings",
33
- destPath: "/v1/data-settings"
34
- },
35
- {
36
- srcPath: "/_api/data/v1/schemas",
37
- destPath: "/v1/schemas"
38
- },
39
- {
40
- srcPath: "/_api/data/v1/connector",
41
- destPath: "/v1/connector"
42
- },
43
- {
44
- srcPath: "/_api/cloud-data/v1/wix-data",
45
- destPath: "/v1/wix-data"
46
- }
47
- ],
48
- "cloud-data.wix-code.com": [
49
- {
50
- srcPath: "",
51
- destPath: ""
52
- }
53
- ],
54
- _: [
55
- {
56
- srcPath: "/_api/cloud-data",
57
- destPath: ""
58
- }
59
- ],
60
- "www._base_domain_": [
61
- {
62
- srcPath: "/_api/cloud-data",
63
- destPath: ""
64
- },
65
- {
66
- srcPath: "/_api/data",
67
- destPath: ""
68
- },
69
- {
70
- srcPath: "/_api/cloud-data",
71
- destPath: ""
72
- }
73
- ],
74
- "dev._base_domain_": [
75
- {
76
- srcPath: "/_api/cloud-data",
77
- destPath: ""
78
- }
79
- ],
80
- "bo._base_domain_": [
81
- {
82
- srcPath: "/_api/cloud-data/v1",
83
- destPath: "/v1"
84
- },
85
- {
86
- srcPath: "/_api/cloud-data/v2",
87
- destPath: "/v2"
88
- }
89
- ],
90
- "wixbo.ai": [
91
- {
92
- srcPath: "/_api/cloud-data/v1",
93
- destPath: "/v1"
94
- },
95
- {
96
- srcPath: "/_api/cloud-data/v2",
97
- destPath: "/v2"
98
- }
99
- ],
100
- "wix-bo.com": [
101
- {
102
- srcPath: "/_api/cloud-data/v1",
103
- destPath: "/v1"
104
- },
105
- {
106
- srcPath: "/_api/cloud-data/v2",
107
- destPath: "/v2"
108
- }
109
- ],
110
- "manage._base_domain_": [
111
- {
112
- srcPath: "/_api/cloud-data",
113
- destPath: ""
114
- },
115
- {
116
- srcPath: "/_api/data",
117
- destPath: ""
118
- },
119
- {
120
- srcPath: "/_api/cloud-data",
121
- destPath: ""
122
- }
123
- ],
124
- "editor._base_domain_": [
125
- {
126
- srcPath: "/_api/cloud-data/v1/schemas",
127
- destPath: "/v1/schemas"
128
- },
129
- {
130
- srcPath: "/_api/cloud-data/dbs/tasks",
131
- destPath: "/dbs/tasks"
132
- },
133
- {
134
- srcPath: "/_api/data/v1/schemas",
135
- destPath: "/v1/schemas"
136
- },
137
- {
138
- srcPath: "/_api/data/dbs/tasks",
139
- destPath: "/dbs/tasks"
140
- },
141
- {
142
- srcPath: "/_api/cloud-data/v1/wix-data",
143
- destPath: "/v1/wix-data"
144
- },
145
- {
146
- srcPath: "/_api/cloud-data/v1/data-settings",
147
- destPath: "/v1/data-settings"
148
- },
149
- {
150
- srcPath: "/_api/data/v2/indexes",
151
- destPath: "/v2/indexes"
152
- },
153
- {
154
- srcPath: "/_api/cloud-data/v1/external-database-connections",
155
- destPath: "/v1/external-database-connections"
156
- },
157
- {
158
- srcPath: "/_api/data/v1/data-collection-sharing",
159
- destPath: "/v1/data-collection-sharing"
160
- },
161
- {
162
- srcPath: "/_api/cloud-data/v2/collections",
163
- destPath: "/v2/collections"
164
- },
165
- {
166
- srcPath: "/_api/cloud-data/v2/bulk",
167
- destPath: "/v2/bulk"
168
- },
169
- {
170
- srcPath: "/_api/cloud-data/v2/items",
171
- destPath: "/v2/items"
172
- },
173
- {
174
- srcPath: "/_api/cloud-data/v2/dbs/tasks",
175
- destPath: "/v2/dbs/tasks"
176
- }
177
- ],
178
- "blocks._base_domain_": [
179
- {
180
- srcPath: "/_api/cloud-data/v1/schemas",
181
- destPath: "/v1/schemas"
182
- },
183
- {
184
- srcPath: "/_api/cloud-data/dbs/tasks",
185
- destPath: "/dbs/tasks"
186
- },
187
- {
188
- srcPath: "/_api/data/v1/schemas",
189
- destPath: "/v1/schemas"
190
- },
191
- {
192
- srcPath: "/_api/data/dbs/tasks",
193
- destPath: "/dbs/tasks"
194
- },
195
- {
196
- srcPath: "/_api/cloud-data/v1/wix-data",
197
- destPath: "/v1/wix-data"
198
- },
199
- {
200
- srcPath: "/_api/cloud-data/v1/data-settings",
201
- destPath: "/v1/data-settings"
202
- },
203
- {
204
- srcPath: "/_api/data/v2/indexes",
205
- destPath: "/v2/indexes"
206
- },
207
- {
208
- srcPath: "/_api/cloud-data/v1/external-database-connections",
209
- destPath: "/v1/external-database-connections"
210
- },
211
- {
212
- srcPath: "/_api/data/v1/data-collection-sharing",
213
- destPath: "/v1/data-collection-sharing"
214
- },
215
- {
216
- srcPath: "/_api/cloud-data/v2/collections",
217
- destPath: "/v2/collections"
218
- },
219
- {
220
- srcPath: "/_api/cloud-data/v2/bulk",
221
- destPath: "/v2/bulk"
222
- },
223
- {
224
- srcPath: "/_api/cloud-data/v2/items",
225
- destPath: "/v2/items"
226
- },
227
- {
228
- srcPath: "/_api/cloud-data/v2/dbs/tasks",
229
- destPath: "/v2/dbs/tasks"
230
- }
231
- ],
232
- "create.editorx": [
233
- {
234
- srcPath: "/_api/cloud-data/v1/schemas",
235
- destPath: "/v1/schemas"
236
- },
237
- {
238
- srcPath: "/_api/cloud-data/dbs/tasks",
239
- destPath: "/dbs/tasks"
240
- },
241
- {
242
- srcPath: "/_api/data/v1/schemas",
243
- destPath: "/v1/schemas"
244
- },
245
- {
246
- srcPath: "/_api/data/dbs/tasks",
247
- destPath: "/dbs/tasks"
248
- },
249
- {
250
- srcPath: "/_api/cloud-data/v1/wix-data",
251
- destPath: "/v1/wix-data"
252
- },
253
- {
254
- srcPath: "/_api/cloud-data/v1/data-settings",
255
- destPath: "/v1/data-settings"
256
- },
257
- {
258
- srcPath: "/_api/data/v2/indexes",
259
- destPath: "/v2/indexes"
260
- },
261
- {
262
- srcPath: "/_api/cloud-data/v1/external-database-connections",
263
- destPath: "/v1/external-database-connections"
264
- },
265
- {
266
- srcPath: "/_api/data/v1/data-collection-sharing",
267
- destPath: "/v1/data-collection-sharing"
268
- },
269
- {
270
- srcPath: "/_api/cloud-data/v2/collections",
271
- destPath: "/v2/collections"
272
- },
273
- {
274
- srcPath: "/_api/cloud-data/v2/bulk",
275
- destPath: "/v2/bulk"
276
- },
277
- {
278
- srcPath: "/_api/cloud-data/v2/items",
279
- destPath: "/v2/items"
280
- },
281
- {
282
- srcPath: "/_api/cloud-data/v2/dbs/tasks",
283
- destPath: "/v2/dbs/tasks"
284
- }
285
- ],
286
- "www.wixapis.com": [
287
- {
288
- srcPath: "/wix-data/v1/collections",
289
- destPath: "/v1/wix-data/collections"
290
- },
291
- {
292
- srcPath: "/wix-data/v1/external-database-connections",
293
- destPath: "/v1/external-database-connections"
294
- },
295
- {
296
- srcPath: "/wix-data/v2/indexes",
297
- destPath: "/v2/indexes"
298
- },
299
- {
300
- srcPath: "/wix-data/v1/items",
301
- destPath: "/v1/items"
302
- },
303
- {
304
- srcPath: "/wix-data/v1/bulk",
305
- destPath: "/v1/bulk"
306
- },
307
- {
308
- srcPath: "/wix-data/v1/external-databases",
309
- destPath: "/v1/external-databases"
310
- },
311
- {
312
- srcPath: "/wix-data/v2",
313
- destPath: "/v2"
314
- },
315
- {
316
- srcPath: "/data/v2/collections",
317
- destPath: "/v2/collections"
318
- },
319
- {
320
- srcPath: "/data/v2/items",
321
- destPath: "/v2/items"
322
- },
323
- {
324
- srcPath: "/data/v2/bulk/items",
325
- destPath: "/v2/bulk/items"
326
- },
327
- {
328
- srcPath: "/data/v2/indexes",
329
- destPath: "/v2/indexes"
330
- },
331
- {
332
- srcPath: "/data/v1/external-database-connections",
333
- destPath: "/v1/external-database-connections"
334
- },
335
- {
336
- srcPath: "/data/v1/data-collection-sharing",
337
- destPath: "/v1/data-collection-sharing"
338
- }
339
- ],
340
- "www.wixgateway.com": [
341
- {
342
- srcPath: "/wix-data/v1/items",
343
- destPath: "/v1/items"
344
- },
345
- {
346
- srcPath: "/wix-data/v1/bulk",
347
- destPath: "/v1/bulk"
348
- }
349
- ],
350
- "*.dev.wix-code.com": [
351
- {
352
- srcPath: "/_api/cloud-data/v2",
353
- destPath: "/v2"
354
- },
355
- {
356
- srcPath: "/_api/cloud-data/v1/external-database-connections",
357
- destPath: "/v1/external-database-connections"
358
- },
359
- {
360
- srcPath: "/data/v1/data-collection-sharing",
361
- destPath: "/v1/data-collection-sharing"
362
- }
363
- ]
364
- };
365
- return resolveUrl(Object.assign(opts, { domainToMappings }));
366
- }
367
- var PACKAGE_NAME = "@wix/auto_sdk_data_collections";
368
- function createDataCollection(payload) {
369
- function __createDataCollection({ host }) {
370
- const serializedData = transformPaths(payload, [
371
- {
372
- transformFn: transformSDKTimestampToRESTTimestamp,
373
- paths: [
374
- { path: "collection.createdDate" },
375
- { path: "collection.updatedDate" },
376
- { path: "collection.fields.typeMetadata.date.defaultValueFixed" },
377
- { path: "collection.fields.typeMetadata.date.minDateFixed" },
378
- { path: "collection.fields.typeMetadata.date.maxDateFixed" },
379
- { path: "collection.fields.typeMetadata.datetime.defaultValueFixed" },
380
- { path: "collection.fields.typeMetadata.datetime.minDateFixed" },
381
- { path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
382
- ]
383
- },
384
- {
385
- transformFn: transformSDKFloatToRESTFloat,
386
- paths: [
387
- { path: "collection.fields.numberRange.min" },
388
- { path: "collection.fields.numberRange.max" },
389
- { path: "collection.fields.typeMetadata.number.defaultValue" },
390
- { path: "collection.fields.typeMetadata.number.min" },
391
- { path: "collection.fields.typeMetadata.number.max" }
392
- ]
393
- }
394
- ]);
395
- const metadata = {
396
- entityFqdn: "wix.data.v2.data_collection",
397
- method: "POST",
398
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollection",
399
- packageName: PACKAGE_NAME,
400
- migrationOptions: {
401
- optInTransformResponse: true
402
- },
403
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
404
- { protoPath: "/v2/collections", data: serializedData, host }
405
- ),
406
- data: serializedData,
407
- transformResponse: (payload2) => transformPaths(payload2, [
408
- {
409
- transformFn: transformRESTTimestampToSDKTimestamp,
410
- paths: [
411
- { path: "collection.createdDate" },
412
- { path: "collection.updatedDate" },
413
- { path: "collection.fields.typeMetadata.date.defaultValueFixed" },
414
- { path: "collection.fields.typeMetadata.date.minDateFixed" },
415
- { path: "collection.fields.typeMetadata.date.maxDateFixed" },
416
- {
417
- path: "collection.fields.typeMetadata.datetime.defaultValueFixed"
418
- },
419
- { path: "collection.fields.typeMetadata.datetime.minDateFixed" },
420
- { path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
421
- ]
422
- },
423
- {
424
- transformFn: transformRESTFloatToSDKFloat,
425
- paths: [
426
- { path: "collection.fields.numberRange.min" },
427
- { path: "collection.fields.numberRange.max" },
428
- { path: "collection.fields.typeMetadata.number.defaultValue" },
429
- { path: "collection.fields.typeMetadata.number.min" },
430
- { path: "collection.fields.typeMetadata.number.max" }
431
- ]
432
- }
433
- ])
434
- };
435
- return metadata;
436
- }
437
- return __createDataCollection;
438
- }
439
- function getDataCollection(payload) {
440
- function __getDataCollection({ host }) {
441
- const metadata = {
442
- entityFqdn: "wix.data.v2.data_collection",
443
- method: "GET",
444
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.GetDataCollection",
445
- packageName: PACKAGE_NAME,
446
- migrationOptions: {
447
- optInTransformResponse: true
448
- },
449
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
450
- { protoPath: "/v2/collections/{dataCollectionId}", data: payload, host }
451
- ),
452
- params: toURLSearchParams(payload),
453
- transformResponse: (payload2) => transformPaths(payload2, [
454
- {
455
- transformFn: transformRESTTimestampToSDKTimestamp,
456
- paths: [
457
- { path: "collection.createdDate" },
458
- { path: "collection.updatedDate" },
459
- { path: "collection.fields.typeMetadata.date.defaultValueFixed" },
460
- { path: "collection.fields.typeMetadata.date.minDateFixed" },
461
- { path: "collection.fields.typeMetadata.date.maxDateFixed" },
462
- {
463
- path: "collection.fields.typeMetadata.datetime.defaultValueFixed"
464
- },
465
- { path: "collection.fields.typeMetadata.datetime.minDateFixed" },
466
- { path: "collection.fields.typeMetadata.datetime.maxDateFixed" },
467
- { path: "referencedCollections.createdDate" },
468
- { path: "referencedCollections.updatedDate" },
469
- {
470
- path: "referencedCollections.fields.typeMetadata.date.defaultValueFixed"
471
- },
472
- {
473
- path: "referencedCollections.fields.typeMetadata.date.minDateFixed"
474
- },
475
- {
476
- path: "referencedCollections.fields.typeMetadata.date.maxDateFixed"
477
- },
478
- {
479
- path: "referencedCollections.fields.typeMetadata.datetime.defaultValueFixed"
480
- },
481
- {
482
- path: "referencedCollections.fields.typeMetadata.datetime.minDateFixed"
483
- },
484
- {
485
- path: "referencedCollections.fields.typeMetadata.datetime.maxDateFixed"
486
- }
487
- ]
488
- },
489
- {
490
- transformFn: transformRESTFloatToSDKFloat,
491
- paths: [
492
- { path: "collection.fields.numberRange.min" },
493
- { path: "collection.fields.numberRange.max" },
494
- { path: "collection.fields.typeMetadata.number.defaultValue" },
495
- { path: "collection.fields.typeMetadata.number.min" },
496
- { path: "collection.fields.typeMetadata.number.max" },
497
- { path: "referencedCollections.fields.numberRange.min" },
498
- { path: "referencedCollections.fields.numberRange.max" },
499
- {
500
- path: "referencedCollections.fields.typeMetadata.number.defaultValue"
501
- },
502
- { path: "referencedCollections.fields.typeMetadata.number.min" },
503
- { path: "referencedCollections.fields.typeMetadata.number.max" }
504
- ]
505
- }
506
- ])
507
- };
508
- return metadata;
509
- }
510
- return __getDataCollection;
511
- }
512
- function listDataCollections(payload) {
513
- function __listDataCollections({ host }) {
514
- const metadata = {
515
- entityFqdn: "wix.data.v2.data_collection",
516
- method: "GET",
517
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.ListDataCollections",
518
- packageName: PACKAGE_NAME,
519
- migrationOptions: {
520
- optInTransformResponse: true
521
- },
522
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
523
- { protoPath: "/v2/collections", data: payload, host }
524
- ),
525
- params: toURLSearchParams(payload),
526
- transformResponse: (payload2) => transformPaths(payload2, [
527
- {
528
- transformFn: transformRESTTimestampToSDKTimestamp,
529
- paths: [
530
- { path: "collections.createdDate" },
531
- { path: "collections.updatedDate" },
532
- {
533
- path: "collections.fields.typeMetadata.date.defaultValueFixed"
534
- },
535
- { path: "collections.fields.typeMetadata.date.minDateFixed" },
536
- { path: "collections.fields.typeMetadata.date.maxDateFixed" },
537
- {
538
- path: "collections.fields.typeMetadata.datetime.defaultValueFixed"
539
- },
540
- { path: "collections.fields.typeMetadata.datetime.minDateFixed" },
541
- { path: "collections.fields.typeMetadata.datetime.maxDateFixed" }
542
- ]
543
- },
544
- {
545
- transformFn: transformRESTFloatToSDKFloat,
546
- paths: [
547
- { path: "collections.fields.numberRange.min" },
548
- { path: "collections.fields.numberRange.max" },
549
- { path: "collections.fields.typeMetadata.number.defaultValue" },
550
- { path: "collections.fields.typeMetadata.number.min" },
551
- { path: "collections.fields.typeMetadata.number.max" }
552
- ]
553
- }
554
- ])
555
- };
556
- return metadata;
557
- }
558
- return __listDataCollections;
559
- }
560
- function updateDataCollection(payload) {
561
- function __updateDataCollection({ host }) {
562
- const serializedData = transformPaths(payload, [
563
- {
564
- transformFn: transformSDKTimestampToRESTTimestamp,
565
- paths: [
566
- { path: "collection.createdDate" },
567
- { path: "collection.updatedDate" },
568
- { path: "collection.fields.typeMetadata.date.defaultValueFixed" },
569
- { path: "collection.fields.typeMetadata.date.minDateFixed" },
570
- { path: "collection.fields.typeMetadata.date.maxDateFixed" },
571
- { path: "collection.fields.typeMetadata.datetime.defaultValueFixed" },
572
- { path: "collection.fields.typeMetadata.datetime.minDateFixed" },
573
- { path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
574
- ]
575
- },
576
- {
577
- transformFn: transformSDKFloatToRESTFloat,
578
- paths: [
579
- { path: "collection.fields.numberRange.min" },
580
- { path: "collection.fields.numberRange.max" },
581
- { path: "collection.fields.typeMetadata.number.defaultValue" },
582
- { path: "collection.fields.typeMetadata.number.min" },
583
- { path: "collection.fields.typeMetadata.number.max" }
584
- ]
585
- }
586
- ]);
587
- const metadata = {
588
- entityFqdn: "wix.data.v2.data_collection",
589
- method: "PUT",
590
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollection",
591
- packageName: PACKAGE_NAME,
592
- migrationOptions: {
593
- optInTransformResponse: true
594
- },
595
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
596
- { protoPath: "/v2/collections", data: serializedData, host }
597
- ),
598
- data: serializedData,
599
- transformResponse: (payload2) => transformPaths(payload2, [
600
- {
601
- transformFn: transformRESTTimestampToSDKTimestamp,
602
- paths: [
603
- { path: "collection.createdDate" },
604
- { path: "collection.updatedDate" },
605
- { path: "collection.fields.typeMetadata.date.defaultValueFixed" },
606
- { path: "collection.fields.typeMetadata.date.minDateFixed" },
607
- { path: "collection.fields.typeMetadata.date.maxDateFixed" },
608
- {
609
- path: "collection.fields.typeMetadata.datetime.defaultValueFixed"
610
- },
611
- { path: "collection.fields.typeMetadata.datetime.minDateFixed" },
612
- { path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
613
- ]
614
- },
615
- {
616
- transformFn: transformRESTFloatToSDKFloat,
617
- paths: [
618
- { path: "collection.fields.numberRange.min" },
619
- { path: "collection.fields.numberRange.max" },
620
- { path: "collection.fields.typeMetadata.number.defaultValue" },
621
- { path: "collection.fields.typeMetadata.number.min" },
622
- { path: "collection.fields.typeMetadata.number.max" }
623
- ]
624
- }
625
- ])
626
- };
627
- return metadata;
628
- }
629
- return __updateDataCollection;
630
- }
631
- function deleteDataCollection(payload) {
632
- function __deleteDataCollection({ host }) {
633
- const metadata = {
634
- entityFqdn: "wix.data.v2.data_collection",
635
- method: "DELETE",
636
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollection",
637
- packageName: PACKAGE_NAME,
638
- migrationOptions: {
639
- optInTransformResponse: true
640
- },
641
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
642
- { protoPath: "/v2/collections/{dataCollectionId}", data: payload, host }
643
- ),
644
- params: toURLSearchParams(payload)
645
- };
646
- return metadata;
647
- }
648
- return __deleteDataCollection;
649
- }
650
- function restoreDataCollection(payload) {
651
- function __restoreDataCollection({ host }) {
652
- const metadata = {
653
- entityFqdn: "wix.data.v2.data_collection",
654
- method: "POST",
655
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.RestoreDataCollection",
656
- packageName: PACKAGE_NAME,
657
- migrationOptions: {
658
- optInTransformResponse: true
659
- },
660
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
661
- {
662
- protoPath: "/v2/collections/restore/{dataCollectionId}",
663
- data: payload,
664
- host
665
- }
666
- ),
667
- data: payload,
668
- transformResponse: (payload2) => transformPaths(payload2, [
669
- {
670
- transformFn: transformRESTTimestampToSDKTimestamp,
671
- paths: [
672
- { path: "dataCollection.createdDate" },
673
- { path: "dataCollection.updatedDate" },
674
- {
675
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
676
- },
677
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
678
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
679
- {
680
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
681
- },
682
- {
683
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
684
- },
685
- {
686
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
687
- }
688
- ]
689
- },
690
- {
691
- transformFn: transformRESTFloatToSDKFloat,
692
- paths: [
693
- { path: "dataCollection.fields.numberRange.min" },
694
- { path: "dataCollection.fields.numberRange.max" },
695
- {
696
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
697
- },
698
- { path: "dataCollection.fields.typeMetadata.number.min" },
699
- { path: "dataCollection.fields.typeMetadata.number.max" }
700
- ]
701
- }
702
- ])
703
- };
704
- return metadata;
705
- }
706
- return __restoreDataCollection;
707
- }
708
- function patchDataCollection(payload) {
709
- function __patchDataCollection({ host }) {
710
- const serializedData = transformPaths(payload, [
711
- {
712
- transformFn: transformSDKFieldMaskToRESTFieldMask,
713
- paths: [{ path: "fieldMask" }]
714
- },
715
- {
716
- transformFn: transformSDKTimestampToRESTTimestamp,
717
- paths: [
718
- { path: "dataCollection.createdDate" },
719
- { path: "dataCollection.updatedDate" },
720
- { path: "dataCollection.fields.typeMetadata.date.defaultValueFixed" },
721
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
722
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
723
- {
724
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
725
- },
726
- { path: "dataCollection.fields.typeMetadata.datetime.minDateFixed" },
727
- { path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed" }
728
- ]
729
- },
730
- {
731
- transformFn: transformSDKFloatToRESTFloat,
732
- paths: [
733
- { path: "dataCollection.fields.numberRange.min" },
734
- { path: "dataCollection.fields.numberRange.max" },
735
- { path: "dataCollection.fields.typeMetadata.number.defaultValue" },
736
- { path: "dataCollection.fields.typeMetadata.number.min" },
737
- { path: "dataCollection.fields.typeMetadata.number.max" }
738
- ]
739
- }
740
- ]);
741
- const metadata = {
742
- entityFqdn: "wix.data.v2.data_collection",
743
- method: "PATCH",
744
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.PatchDataCollection",
745
- packageName: PACKAGE_NAME,
746
- migrationOptions: {
747
- optInTransformResponse: true
748
- },
749
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
750
- {
751
- protoPath: "/v2/collections/{dataCollection.id}",
752
- data: serializedData,
753
- host
754
- }
755
- ),
756
- data: serializedData,
757
- transformResponse: (payload2) => transformPaths(payload2, [
758
- {
759
- transformFn: transformRESTTimestampToSDKTimestamp,
760
- paths: [
761
- { path: "dataCollection.createdDate" },
762
- { path: "dataCollection.updatedDate" },
763
- {
764
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
765
- },
766
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
767
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
768
- {
769
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
770
- },
771
- {
772
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
773
- },
774
- {
775
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
776
- }
777
- ]
778
- },
779
- {
780
- transformFn: transformRESTFloatToSDKFloat,
781
- paths: [
782
- { path: "dataCollection.fields.numberRange.min" },
783
- { path: "dataCollection.fields.numberRange.max" },
784
- {
785
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
786
- },
787
- { path: "dataCollection.fields.typeMetadata.number.min" },
788
- { path: "dataCollection.fields.typeMetadata.number.max" }
789
- ]
790
- }
791
- ])
792
- };
793
- return metadata;
794
- }
795
- return __patchDataCollection;
796
- }
797
- function createDataCollectionField(payload) {
798
- function __createDataCollectionField({ host }) {
799
- const serializedData = transformPaths(payload, [
800
- {
801
- transformFn: transformSDKFloatToRESTFloat,
802
- paths: [
803
- { path: "field.numberRange.min" },
804
- { path: "field.numberRange.max" },
805
- { path: "field.typeMetadata.number.defaultValue" },
806
- { path: "field.typeMetadata.number.min" },
807
- { path: "field.typeMetadata.number.max" }
808
- ]
809
- },
810
- {
811
- transformFn: transformSDKTimestampToRESTTimestamp,
812
- paths: [
813
- { path: "field.typeMetadata.date.defaultValueFixed" },
814
- { path: "field.typeMetadata.date.minDateFixed" },
815
- { path: "field.typeMetadata.date.maxDateFixed" },
816
- { path: "field.typeMetadata.datetime.defaultValueFixed" },
817
- { path: "field.typeMetadata.datetime.minDateFixed" },
818
- { path: "field.typeMetadata.datetime.maxDateFixed" }
819
- ]
820
- }
821
- ]);
822
- const metadata = {
823
- entityFqdn: "wix.data.v2.data_collection",
824
- method: "POST",
825
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollectionField",
826
- packageName: PACKAGE_NAME,
827
- migrationOptions: {
828
- optInTransformResponse: true
829
- },
830
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
831
- {
832
- protoPath: "/v2/collections/create-field",
833
- data: serializedData,
834
- host
835
- }
836
- ),
837
- data: serializedData,
838
- transformResponse: (payload2) => transformPaths(payload2, [
839
- {
840
- transformFn: transformRESTTimestampToSDKTimestamp,
841
- paths: [
842
- { path: "dataCollection.createdDate" },
843
- { path: "dataCollection.updatedDate" },
844
- {
845
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
846
- },
847
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
848
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
849
- {
850
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
851
- },
852
- {
853
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
854
- },
855
- {
856
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
857
- }
858
- ]
859
- },
860
- {
861
- transformFn: transformRESTFloatToSDKFloat,
862
- paths: [
863
- { path: "dataCollection.fields.numberRange.min" },
864
- { path: "dataCollection.fields.numberRange.max" },
865
- {
866
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
867
- },
868
- { path: "dataCollection.fields.typeMetadata.number.min" },
869
- { path: "dataCollection.fields.typeMetadata.number.max" }
870
- ]
871
- }
872
- ])
873
- };
874
- return metadata;
875
- }
876
- return __createDataCollectionField;
877
- }
878
- function updateDataCollectionField(payload) {
879
- function __updateDataCollectionField({ host }) {
880
- const serializedData = transformPaths(payload, [
881
- {
882
- transformFn: transformSDKFloatToRESTFloat,
883
- paths: [
884
- { path: "field.numberRange.min" },
885
- { path: "field.numberRange.max" },
886
- { path: "field.typeMetadata.number.defaultValue" },
887
- { path: "field.typeMetadata.number.min" },
888
- { path: "field.typeMetadata.number.max" }
889
- ]
890
- },
891
- {
892
- transformFn: transformSDKTimestampToRESTTimestamp,
893
- paths: [
894
- { path: "field.typeMetadata.date.defaultValueFixed" },
895
- { path: "field.typeMetadata.date.minDateFixed" },
896
- { path: "field.typeMetadata.date.maxDateFixed" },
897
- { path: "field.typeMetadata.datetime.defaultValueFixed" },
898
- { path: "field.typeMetadata.datetime.minDateFixed" },
899
- { path: "field.typeMetadata.datetime.maxDateFixed" }
900
- ]
901
- }
902
- ]);
903
- const metadata = {
904
- entityFqdn: "wix.data.v2.data_collection",
905
- method: "POST",
906
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollectionField",
907
- packageName: PACKAGE_NAME,
908
- migrationOptions: {
909
- optInTransformResponse: true
910
- },
911
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
912
- {
913
- protoPath: "/v2/collections/update-field",
914
- data: serializedData,
915
- host
916
- }
917
- ),
918
- data: serializedData,
919
- transformResponse: (payload2) => transformPaths(payload2, [
920
- {
921
- transformFn: transformRESTTimestampToSDKTimestamp,
922
- paths: [
923
- { path: "dataCollection.createdDate" },
924
- { path: "dataCollection.updatedDate" },
925
- {
926
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
927
- },
928
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
929
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
930
- {
931
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
932
- },
933
- {
934
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
935
- },
936
- {
937
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
938
- }
939
- ]
940
- },
941
- {
942
- transformFn: transformRESTFloatToSDKFloat,
943
- paths: [
944
- { path: "dataCollection.fields.numberRange.min" },
945
- { path: "dataCollection.fields.numberRange.max" },
946
- {
947
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
948
- },
949
- { path: "dataCollection.fields.typeMetadata.number.min" },
950
- { path: "dataCollection.fields.typeMetadata.number.max" }
951
- ]
952
- }
953
- ])
954
- };
955
- return metadata;
956
- }
957
- return __updateDataCollectionField;
958
- }
959
- function deleteDataCollectionField(payload) {
960
- function __deleteDataCollectionField({ host }) {
961
- const metadata = {
962
- entityFqdn: "wix.data.v2.data_collection",
963
- method: "POST",
964
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionField",
965
- packageName: PACKAGE_NAME,
966
- migrationOptions: {
967
- optInTransformResponse: true
968
- },
969
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
970
- { protoPath: "/v2/collections/delete-field", data: payload, host }
971
- ),
972
- data: payload,
973
- transformResponse: (payload2) => transformPaths(payload2, [
974
- {
975
- transformFn: transformRESTTimestampToSDKTimestamp,
976
- paths: [
977
- { path: "dataCollection.createdDate" },
978
- { path: "dataCollection.updatedDate" },
979
- {
980
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
981
- },
982
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
983
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
984
- {
985
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
986
- },
987
- {
988
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
989
- },
990
- {
991
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
992
- }
993
- ]
994
- },
995
- {
996
- transformFn: transformRESTFloatToSDKFloat,
997
- paths: [
998
- { path: "dataCollection.fields.numberRange.min" },
999
- { path: "dataCollection.fields.numberRange.max" },
1000
- {
1001
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1002
- },
1003
- { path: "dataCollection.fields.typeMetadata.number.min" },
1004
- { path: "dataCollection.fields.typeMetadata.number.max" }
1005
- ]
1006
- }
1007
- ])
1008
- };
1009
- return metadata;
1010
- }
1011
- return __deleteDataCollectionField;
1012
- }
1013
- function addDataCollectionPlugin(payload) {
1014
- function __addDataCollectionPlugin({ host }) {
1015
- const metadata = {
1016
- entityFqdn: "wix.data.v2.data_collection",
1017
- method: "POST",
1018
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddDataCollectionPlugin",
1019
- packageName: PACKAGE_NAME,
1020
- migrationOptions: {
1021
- optInTransformResponse: true
1022
- },
1023
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1024
- { protoPath: "/v2/collections/add-plugin", data: payload, host }
1025
- ),
1026
- data: payload,
1027
- transformResponse: (payload2) => transformPaths(payload2, [
1028
- {
1029
- transformFn: transformRESTTimestampToSDKTimestamp,
1030
- paths: [
1031
- { path: "dataCollection.createdDate" },
1032
- { path: "dataCollection.updatedDate" },
1033
- {
1034
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1035
- },
1036
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1037
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1038
- {
1039
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1040
- },
1041
- {
1042
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1043
- },
1044
- {
1045
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1046
- }
1047
- ]
1048
- },
1049
- {
1050
- transformFn: transformRESTFloatToSDKFloat,
1051
- paths: [
1052
- { path: "dataCollection.fields.numberRange.min" },
1053
- { path: "dataCollection.fields.numberRange.max" },
1054
- {
1055
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1056
- },
1057
- { path: "dataCollection.fields.typeMetadata.number.min" },
1058
- { path: "dataCollection.fields.typeMetadata.number.max" }
1059
- ]
1060
- }
1061
- ])
1062
- };
1063
- return metadata;
1064
- }
1065
- return __addDataCollectionPlugin;
1066
- }
1067
- function deleteDataCollectionPlugin(payload) {
1068
- function __deleteDataCollectionPlugin({ host }) {
1069
- const metadata = {
1070
- entityFqdn: "wix.data.v2.data_collection",
1071
- method: "POST",
1072
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionPlugin",
1073
- packageName: PACKAGE_NAME,
1074
- migrationOptions: {
1075
- optInTransformResponse: true
1076
- },
1077
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1078
- { protoPath: "/v2/collections/delete-plugin", data: payload, host }
1079
- ),
1080
- data: payload,
1081
- transformResponse: (payload2) => transformPaths(payload2, [
1082
- {
1083
- transformFn: transformRESTTimestampToSDKTimestamp,
1084
- paths: [
1085
- { path: "dataCollection.createdDate" },
1086
- { path: "dataCollection.updatedDate" },
1087
- {
1088
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1089
- },
1090
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1091
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1092
- {
1093
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1094
- },
1095
- {
1096
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1097
- },
1098
- {
1099
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1100
- }
1101
- ]
1102
- },
1103
- {
1104
- transformFn: transformRESTFloatToSDKFloat,
1105
- paths: [
1106
- { path: "dataCollection.fields.numberRange.min" },
1107
- { path: "dataCollection.fields.numberRange.max" },
1108
- {
1109
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1110
- },
1111
- { path: "dataCollection.fields.typeMetadata.number.min" },
1112
- { path: "dataCollection.fields.typeMetadata.number.max" }
1113
- ]
1114
- }
1115
- ])
1116
- };
1117
- return metadata;
1118
- }
1119
- return __deleteDataCollectionPlugin;
1120
- }
1121
- function addPublishPlugin(payload) {
1122
- function __addPublishPlugin({ host }) {
1123
- const metadata = {
1124
- entityFqdn: "wix.data.v2.data_collection",
1125
- method: "POST",
1126
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddPublishPlugin",
1127
- packageName: PACKAGE_NAME,
1128
- migrationOptions: {
1129
- optInTransformResponse: true
1130
- },
1131
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1132
- { protoPath: "/v2/collections/add-publish-plugin", data: payload, host }
1133
- ),
1134
- data: payload,
1135
- transformResponse: (payload2) => transformPaths(payload2, [
1136
- {
1137
- transformFn: transformRESTTimestampToSDKTimestamp,
1138
- paths: [
1139
- { path: "dataCollection.createdDate" },
1140
- { path: "dataCollection.updatedDate" },
1141
- {
1142
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1143
- },
1144
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1145
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1146
- {
1147
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1148
- },
1149
- {
1150
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1151
- },
1152
- {
1153
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1154
- }
1155
- ]
1156
- },
1157
- {
1158
- transformFn: transformRESTFloatToSDKFloat,
1159
- paths: [
1160
- { path: "dataCollection.fields.numberRange.min" },
1161
- { path: "dataCollection.fields.numberRange.max" },
1162
- {
1163
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1164
- },
1165
- { path: "dataCollection.fields.typeMetadata.number.min" },
1166
- { path: "dataCollection.fields.typeMetadata.number.max" }
1167
- ]
1168
- }
1169
- ])
1170
- };
1171
- return metadata;
1172
- }
1173
- return __addPublishPlugin;
1174
- }
1175
- function deletePublishPlugin(payload) {
1176
- function __deletePublishPlugin({ host }) {
1177
- const metadata = {
1178
- entityFqdn: "wix.data.v2.data_collection",
1179
- method: "POST",
1180
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeletePublishPlugin",
1181
- packageName: PACKAGE_NAME,
1182
- migrationOptions: {
1183
- optInTransformResponse: true
1184
- },
1185
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1186
- {
1187
- protoPath: "/v2/collections/delete-publish-plugin",
1188
- data: payload,
1189
- host
1190
- }
1191
- ),
1192
- data: payload,
1193
- transformResponse: (payload2) => transformPaths(payload2, [
1194
- {
1195
- transformFn: transformRESTTimestampToSDKTimestamp,
1196
- paths: [
1197
- { path: "dataCollection.createdDate" },
1198
- { path: "dataCollection.updatedDate" },
1199
- {
1200
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1201
- },
1202
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1203
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1204
- {
1205
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1206
- },
1207
- {
1208
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1209
- },
1210
- {
1211
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1212
- }
1213
- ]
1214
- },
1215
- {
1216
- transformFn: transformRESTFloatToSDKFloat,
1217
- paths: [
1218
- { path: "dataCollection.fields.numberRange.min" },
1219
- { path: "dataCollection.fields.numberRange.max" },
1220
- {
1221
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1222
- },
1223
- { path: "dataCollection.fields.typeMetadata.number.min" },
1224
- { path: "dataCollection.fields.typeMetadata.number.max" }
1225
- ]
1226
- }
1227
- ])
1228
- };
1229
- return metadata;
1230
- }
1231
- return __deletePublishPlugin;
1232
- }
1233
- function addUrlizedPlugin(payload) {
1234
- function __addUrlizedPlugin({ host }) {
1235
- const metadata = {
1236
- entityFqdn: "wix.data.v2.data_collection",
1237
- method: "POST",
1238
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddUrlizedPlugin",
1239
- packageName: PACKAGE_NAME,
1240
- migrationOptions: {
1241
- optInTransformResponse: true
1242
- },
1243
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1244
- { protoPath: "/v2/collections/add-urlized-plugin", data: payload, host }
1245
- ),
1246
- data: payload,
1247
- transformResponse: (payload2) => transformPaths(payload2, [
1248
- {
1249
- transformFn: transformRESTTimestampToSDKTimestamp,
1250
- paths: [
1251
- { path: "dataCollection.createdDate" },
1252
- { path: "dataCollection.updatedDate" },
1253
- {
1254
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1255
- },
1256
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1257
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1258
- {
1259
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1260
- },
1261
- {
1262
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1263
- },
1264
- {
1265
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1266
- }
1267
- ]
1268
- },
1269
- {
1270
- transformFn: transformRESTFloatToSDKFloat,
1271
- paths: [
1272
- { path: "dataCollection.fields.numberRange.min" },
1273
- { path: "dataCollection.fields.numberRange.max" },
1274
- {
1275
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1276
- },
1277
- { path: "dataCollection.fields.typeMetadata.number.min" },
1278
- { path: "dataCollection.fields.typeMetadata.number.max" }
1279
- ]
1280
- }
1281
- ])
1282
- };
1283
- return metadata;
1284
- }
1285
- return __addUrlizedPlugin;
1286
- }
1287
- function deleteUrlizedPlugin(payload) {
1288
- function __deleteUrlizedPlugin({ host }) {
1289
- const metadata = {
1290
- entityFqdn: "wix.data.v2.data_collection",
1291
- method: "POST",
1292
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteUrlizedPlugin",
1293
- packageName: PACKAGE_NAME,
1294
- migrationOptions: {
1295
- optInTransformResponse: true
1296
- },
1297
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1298
- {
1299
- protoPath: "/v2/collections/delete-urlized-plugin",
1300
- data: payload,
1301
- host
1302
- }
1303
- ),
1304
- data: payload,
1305
- transformResponse: (payload2) => transformPaths(payload2, [
1306
- {
1307
- transformFn: transformRESTTimestampToSDKTimestamp,
1308
- paths: [
1309
- { path: "dataCollection.createdDate" },
1310
- { path: "dataCollection.updatedDate" },
1311
- {
1312
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1313
- },
1314
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1315
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1316
- {
1317
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1318
- },
1319
- {
1320
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1321
- },
1322
- {
1323
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1324
- }
1325
- ]
1326
- },
1327
- {
1328
- transformFn: transformRESTFloatToSDKFloat,
1329
- paths: [
1330
- { path: "dataCollection.fields.numberRange.min" },
1331
- { path: "dataCollection.fields.numberRange.max" },
1332
- {
1333
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1334
- },
1335
- { path: "dataCollection.fields.typeMetadata.number.min" },
1336
- { path: "dataCollection.fields.typeMetadata.number.max" }
1337
- ]
1338
- }
1339
- ])
1340
- };
1341
- return metadata;
1342
- }
1343
- return __deleteUrlizedPlugin;
1344
- }
1345
- function addMultilingualPlugin(payload) {
1346
- function __addMultilingualPlugin({ host }) {
1347
- const metadata = {
1348
- entityFqdn: "wix.data.v2.data_collection",
1349
- method: "POST",
1350
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddMultilingualPlugin",
1351
- packageName: PACKAGE_NAME,
1352
- migrationOptions: {
1353
- optInTransformResponse: true
1354
- },
1355
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1356
- {
1357
- protoPath: "/v2/collections/add-multilingual-plugin",
1358
- data: payload,
1359
- host
1360
- }
1361
- ),
1362
- data: payload,
1363
- transformResponse: (payload2) => transformPaths(payload2, [
1364
- {
1365
- transformFn: transformRESTTimestampToSDKTimestamp,
1366
- paths: [
1367
- { path: "dataCollection.createdDate" },
1368
- { path: "dataCollection.updatedDate" },
1369
- {
1370
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1371
- },
1372
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1373
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1374
- {
1375
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1376
- },
1377
- {
1378
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1379
- },
1380
- {
1381
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1382
- }
1383
- ]
1384
- },
1385
- {
1386
- transformFn: transformRESTFloatToSDKFloat,
1387
- paths: [
1388
- { path: "dataCollection.fields.numberRange.min" },
1389
- { path: "dataCollection.fields.numberRange.max" },
1390
- {
1391
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1392
- },
1393
- { path: "dataCollection.fields.typeMetadata.number.min" },
1394
- { path: "dataCollection.fields.typeMetadata.number.max" }
1395
- ]
1396
- }
1397
- ])
1398
- };
1399
- return metadata;
1400
- }
1401
- return __addMultilingualPlugin;
1402
- }
1403
- function deleteMultilingualPlugin(payload) {
1404
- function __deleteMultilingualPlugin({ host }) {
1405
- const metadata = {
1406
- entityFqdn: "wix.data.v2.data_collection",
1407
- method: "POST",
1408
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteMultilingualPlugin",
1409
- packageName: PACKAGE_NAME,
1410
- migrationOptions: {
1411
- optInTransformResponse: true
1412
- },
1413
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1414
- {
1415
- protoPath: "/v2/collections/delete-multilingual-plugin",
1416
- data: payload,
1417
- host
1418
- }
1419
- ),
1420
- data: payload,
1421
- transformResponse: (payload2) => transformPaths(payload2, [
1422
- {
1423
- transformFn: transformRESTTimestampToSDKTimestamp,
1424
- paths: [
1425
- { path: "dataCollection.createdDate" },
1426
- { path: "dataCollection.updatedDate" },
1427
- {
1428
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1429
- },
1430
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1431
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1432
- {
1433
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1434
- },
1435
- {
1436
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1437
- },
1438
- {
1439
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1440
- }
1441
- ]
1442
- },
1443
- {
1444
- transformFn: transformRESTFloatToSDKFloat,
1445
- paths: [
1446
- { path: "dataCollection.fields.numberRange.min" },
1447
- { path: "dataCollection.fields.numberRange.max" },
1448
- {
1449
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1450
- },
1451
- { path: "dataCollection.fields.typeMetadata.number.min" },
1452
- { path: "dataCollection.fields.typeMetadata.number.max" }
1453
- ]
1454
- }
1455
- ])
1456
- };
1457
- return metadata;
1458
- }
1459
- return __deleteMultilingualPlugin;
1460
- }
1461
- function addCmsPlugin(payload) {
1462
- function __addCmsPlugin({ host }) {
1463
- const metadata = {
1464
- entityFqdn: "wix.data.v2.data_collection",
1465
- method: "POST",
1466
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddCmsPlugin",
1467
- packageName: PACKAGE_NAME,
1468
- migrationOptions: {
1469
- optInTransformResponse: true
1470
- },
1471
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1472
- { protoPath: "/v2/collections/add-cms-plugin", data: payload, host }
1473
- ),
1474
- data: payload,
1475
- transformResponse: (payload2) => transformPaths(payload2, [
1476
- {
1477
- transformFn: transformRESTTimestampToSDKTimestamp,
1478
- paths: [
1479
- { path: "dataCollection.createdDate" },
1480
- { path: "dataCollection.updatedDate" },
1481
- {
1482
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1483
- },
1484
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1485
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1486
- {
1487
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1488
- },
1489
- {
1490
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1491
- },
1492
- {
1493
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1494
- }
1495
- ]
1496
- },
1497
- {
1498
- transformFn: transformRESTFloatToSDKFloat,
1499
- paths: [
1500
- { path: "dataCollection.fields.numberRange.min" },
1501
- { path: "dataCollection.fields.numberRange.max" },
1502
- {
1503
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1504
- },
1505
- { path: "dataCollection.fields.typeMetadata.number.min" },
1506
- { path: "dataCollection.fields.typeMetadata.number.max" }
1507
- ]
1508
- }
1509
- ])
1510
- };
1511
- return metadata;
1512
- }
1513
- return __addCmsPlugin;
1514
- }
1515
- function deleteCmsPlugin(payload) {
1516
- function __deleteCmsPlugin({ host }) {
1517
- const metadata = {
1518
- entityFqdn: "wix.data.v2.data_collection",
1519
- method: "POST",
1520
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteCmsPlugin",
1521
- packageName: PACKAGE_NAME,
1522
- migrationOptions: {
1523
- optInTransformResponse: true
1524
- },
1525
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1526
- { protoPath: "/v2/collections/delete-cms-plugin", data: payload, host }
1527
- ),
1528
- data: payload,
1529
- transformResponse: (payload2) => transformPaths(payload2, [
1530
- {
1531
- transformFn: transformRESTTimestampToSDKTimestamp,
1532
- paths: [
1533
- { path: "dataCollection.createdDate" },
1534
- { path: "dataCollection.updatedDate" },
1535
- {
1536
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1537
- },
1538
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1539
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1540
- {
1541
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1542
- },
1543
- {
1544
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1545
- },
1546
- {
1547
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1548
- }
1549
- ]
1550
- },
1551
- {
1552
- transformFn: transformRESTFloatToSDKFloat,
1553
- paths: [
1554
- { path: "dataCollection.fields.numberRange.min" },
1555
- { path: "dataCollection.fields.numberRange.max" },
1556
- {
1557
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1558
- },
1559
- { path: "dataCollection.fields.typeMetadata.number.min" },
1560
- { path: "dataCollection.fields.typeMetadata.number.max" }
1561
- ]
1562
- }
1563
- ])
1564
- };
1565
- return metadata;
1566
- }
1567
- return __deleteCmsPlugin;
1568
- }
1569
- function addCatalogPlugin(payload) {
1570
- function __addCatalogPlugin({ host }) {
1571
- const metadata = {
1572
- entityFqdn: "wix.data.v2.data_collection",
1573
- method: "POST",
1574
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddCatalogPlugin",
1575
- packageName: PACKAGE_NAME,
1576
- migrationOptions: {
1577
- optInTransformResponse: true
1578
- },
1579
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1580
- { protoPath: "/v2/collections/add-catalog-plugin", data: payload, host }
1581
- ),
1582
- data: payload,
1583
- transformResponse: (payload2) => transformPaths(payload2, [
1584
- {
1585
- transformFn: transformRESTTimestampToSDKTimestamp,
1586
- paths: [
1587
- { path: "dataCollection.createdDate" },
1588
- { path: "dataCollection.updatedDate" },
1589
- {
1590
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1591
- },
1592
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1593
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1594
- {
1595
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1596
- },
1597
- {
1598
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1599
- },
1600
- {
1601
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1602
- }
1603
- ]
1604
- },
1605
- {
1606
- transformFn: transformRESTFloatToSDKFloat,
1607
- paths: [
1608
- { path: "dataCollection.fields.numberRange.min" },
1609
- { path: "dataCollection.fields.numberRange.max" },
1610
- {
1611
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1612
- },
1613
- { path: "dataCollection.fields.typeMetadata.number.min" },
1614
- { path: "dataCollection.fields.typeMetadata.number.max" }
1615
- ]
1616
- }
1617
- ])
1618
- };
1619
- return metadata;
1620
- }
1621
- return __addCatalogPlugin;
1622
- }
1623
- function deleteCatalogPlugin(payload) {
1624
- function __deleteCatalogPlugin({ host }) {
1625
- const metadata = {
1626
- entityFqdn: "wix.data.v2.data_collection",
1627
- method: "POST",
1628
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteCatalogPlugin",
1629
- packageName: PACKAGE_NAME,
1630
- migrationOptions: {
1631
- optInTransformResponse: true
1632
- },
1633
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1634
- {
1635
- protoPath: "/v2/collections/delete-catalog-plugin",
1636
- data: payload,
1637
- host
1638
- }
1639
- ),
1640
- data: payload,
1641
- transformResponse: (payload2) => transformPaths(payload2, [
1642
- {
1643
- transformFn: transformRESTTimestampToSDKTimestamp,
1644
- paths: [
1645
- { path: "dataCollection.createdDate" },
1646
- { path: "dataCollection.updatedDate" },
1647
- {
1648
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1649
- },
1650
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1651
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1652
- {
1653
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1654
- },
1655
- {
1656
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1657
- },
1658
- {
1659
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1660
- }
1661
- ]
1662
- },
1663
- {
1664
- transformFn: transformRESTFloatToSDKFloat,
1665
- paths: [
1666
- { path: "dataCollection.fields.numberRange.min" },
1667
- { path: "dataCollection.fields.numberRange.max" },
1668
- {
1669
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1670
- },
1671
- { path: "dataCollection.fields.typeMetadata.number.min" },
1672
- { path: "dataCollection.fields.typeMetadata.number.max" }
1673
- ]
1674
- }
1675
- ])
1676
- };
1677
- return metadata;
1678
- }
1679
- return __deleteCatalogPlugin;
1680
- }
1681
- function addDraftItemsPlugin(payload) {
1682
- function __addDraftItemsPlugin({ host }) {
1683
- const metadata = {
1684
- entityFqdn: "wix.data.v2.data_collection",
1685
- method: "POST",
1686
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddDraftItemsPlugin",
1687
- packageName: PACKAGE_NAME,
1688
- migrationOptions: {
1689
- optInTransformResponse: true
1690
- },
1691
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1692
- {
1693
- protoPath: "/v2/collections/add-draft-items-plugin",
1694
- data: payload,
1695
- host
1696
- }
1697
- ),
1698
- data: payload,
1699
- transformResponse: (payload2) => transformPaths(payload2, [
1700
- {
1701
- transformFn: transformRESTTimestampToSDKTimestamp,
1702
- paths: [
1703
- { path: "dataCollection.createdDate" },
1704
- { path: "dataCollection.updatedDate" },
1705
- {
1706
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1707
- },
1708
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1709
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1710
- {
1711
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1712
- },
1713
- {
1714
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1715
- },
1716
- {
1717
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1718
- }
1719
- ]
1720
- },
1721
- {
1722
- transformFn: transformRESTFloatToSDKFloat,
1723
- paths: [
1724
- { path: "dataCollection.fields.numberRange.min" },
1725
- { path: "dataCollection.fields.numberRange.max" },
1726
- {
1727
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1728
- },
1729
- { path: "dataCollection.fields.typeMetadata.number.min" },
1730
- { path: "dataCollection.fields.typeMetadata.number.max" }
1731
- ]
1732
- }
1733
- ])
1734
- };
1735
- return metadata;
1736
- }
1737
- return __addDraftItemsPlugin;
1738
- }
1739
- function deleteDraftItemsPlugin(payload) {
1740
- function __deleteDraftItemsPlugin({ host }) {
1741
- const metadata = {
1742
- entityFqdn: "wix.data.v2.data_collection",
1743
- method: "POST",
1744
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDraftItemsPlugin",
1745
- packageName: PACKAGE_NAME,
1746
- migrationOptions: {
1747
- optInTransformResponse: true
1748
- },
1749
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1750
- {
1751
- protoPath: "/v2/collections/delete-draft-items-plugin",
1752
- data: payload,
1753
- host
1754
- }
1755
- ),
1756
- data: payload,
1757
- transformResponse: (payload2) => transformPaths(payload2, [
1758
- {
1759
- transformFn: transformRESTTimestampToSDKTimestamp,
1760
- paths: [
1761
- { path: "dataCollection.createdDate" },
1762
- { path: "dataCollection.updatedDate" },
1763
- {
1764
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1765
- },
1766
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1767
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1768
- {
1769
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1770
- },
1771
- {
1772
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1773
- },
1774
- {
1775
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1776
- }
1777
- ]
1778
- },
1779
- {
1780
- transformFn: transformRESTFloatToSDKFloat,
1781
- paths: [
1782
- { path: "dataCollection.fields.numberRange.min" },
1783
- { path: "dataCollection.fields.numberRange.max" },
1784
- {
1785
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1786
- },
1787
- { path: "dataCollection.fields.typeMetadata.number.min" },
1788
- { path: "dataCollection.fields.typeMetadata.number.max" }
1789
- ]
1790
- }
1791
- ])
1792
- };
1793
- return metadata;
1794
- }
1795
- return __deleteDraftItemsPlugin;
1796
- }
1797
- function patchDataCollectionField(payload) {
1798
- function __patchDataCollectionField({ host }) {
1799
- const serializedData = transformPaths(payload, [
1800
- {
1801
- transformFn: transformSDKFieldMaskToRESTFieldMask,
1802
- paths: [{ path: "fieldMask" }]
1803
- },
1804
- {
1805
- transformFn: transformSDKFloatToRESTFloat,
1806
- paths: [
1807
- { path: "field.numberRange.min" },
1808
- { path: "field.numberRange.max" },
1809
- { path: "field.typeMetadata.number.defaultValue" },
1810
- { path: "field.typeMetadata.number.min" },
1811
- { path: "field.typeMetadata.number.max" }
1812
- ]
1813
- },
1814
- {
1815
- transformFn: transformSDKTimestampToRESTTimestamp,
1816
- paths: [
1817
- { path: "field.typeMetadata.date.defaultValueFixed" },
1818
- { path: "field.typeMetadata.date.minDateFixed" },
1819
- { path: "field.typeMetadata.date.maxDateFixed" },
1820
- { path: "field.typeMetadata.datetime.defaultValueFixed" },
1821
- { path: "field.typeMetadata.datetime.minDateFixed" },
1822
- { path: "field.typeMetadata.datetime.maxDateFixed" }
1823
- ]
1824
- }
1825
- ]);
1826
- const metadata = {
1827
- entityFqdn: "wix.data.v2.data_collection",
1828
- method: "PATCH",
1829
- methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.PatchDataCollectionField",
1830
- packageName: PACKAGE_NAME,
1831
- migrationOptions: {
1832
- optInTransformResponse: true
1833
- },
1834
- url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1835
- {
1836
- protoPath: "/v2/collections/{dataCollectionId}/patch-field",
1837
- data: serializedData,
1838
- host
1839
- }
1840
- ),
1841
- data: serializedData,
1842
- transformResponse: (payload2) => transformPaths(payload2, [
1843
- {
1844
- transformFn: transformRESTTimestampToSDKTimestamp,
1845
- paths: [
1846
- { path: "dataCollection.createdDate" },
1847
- { path: "dataCollection.updatedDate" },
1848
- {
1849
- path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1850
- },
1851
- { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1852
- { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1853
- {
1854
- path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1855
- },
1856
- {
1857
- path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1858
- },
1859
- {
1860
- path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1861
- }
1862
- ]
1863
- },
1864
- {
1865
- transformFn: transformRESTFloatToSDKFloat,
1866
- paths: [
1867
- { path: "dataCollection.fields.numberRange.min" },
1868
- { path: "dataCollection.fields.numberRange.max" },
1869
- {
1870
- path: "dataCollection.fields.typeMetadata.number.defaultValue"
1871
- },
1872
- { path: "dataCollection.fields.typeMetadata.number.min" },
1873
- { path: "dataCollection.fields.typeMetadata.number.max" }
1874
- ]
1875
- }
1876
- ])
1877
- };
1878
- return metadata;
1879
- }
1880
- return __patchDataCollectionField;
1881
- }
1882
-
1883
- // src/data-v2-data-collection-collections.types.ts
1884
- var CollectionType = /* @__PURE__ */ ((CollectionType2) => {
1885
- CollectionType2["NATIVE"] = "NATIVE";
1886
- CollectionType2["WIX_APP"] = "WIX_APP";
1887
- CollectionType2["BLOCKS_APP"] = "BLOCKS_APP";
1888
- CollectionType2["EXTERNAL"] = "EXTERNAL";
1889
- return CollectionType2;
1890
- })(CollectionType || {});
1891
- var Direction = /* @__PURE__ */ ((Direction2) => {
1892
- Direction2["ASC"] = "ASC";
1893
- Direction2["DESC"] = "DESC";
1894
- return Direction2;
1895
- })(Direction || {});
1896
- var DataOperation = /* @__PURE__ */ ((DataOperation2) => {
1897
- DataOperation2["AGGREGATE"] = "AGGREGATE";
1898
- DataOperation2["BULK_INSERT"] = "BULK_INSERT";
1899
- DataOperation2["BULK_REMOVE"] = "BULK_REMOVE";
1900
- DataOperation2["BULK_SAVE"] = "BULK_SAVE";
1901
- DataOperation2["BULK_UPDATE"] = "BULK_UPDATE";
1902
- DataOperation2["COUNT"] = "COUNT";
1903
- DataOperation2["DISTINCT"] = "DISTINCT";
1904
- DataOperation2["FIND"] = "FIND";
1905
- DataOperation2["GET"] = "GET";
1906
- DataOperation2["INSERT"] = "INSERT";
1907
- DataOperation2["INSERT_REFERENCE"] = "INSERT_REFERENCE";
1908
- DataOperation2["IS_REFERENCED"] = "IS_REFERENCED";
1909
- DataOperation2["QUERY_REFERENCED"] = "QUERY_REFERENCED";
1910
- DataOperation2["REMOVE"] = "REMOVE";
1911
- DataOperation2["REMOVE_REFERENCE"] = "REMOVE_REFERENCE";
1912
- DataOperation2["REPLACE_REFERENCES"] = "REPLACE_REFERENCES";
1913
- DataOperation2["SAVE"] = "SAVE";
1914
- DataOperation2["TRUNCATE"] = "TRUNCATE";
1915
- DataOperation2["UPDATE"] = "UPDATE";
1916
- DataOperation2["PATCH"] = "PATCH";
1917
- DataOperation2["BULK_PATCH"] = "BULK_PATCH";
1918
- return DataOperation2;
1919
- })(DataOperation || {});
1920
- var CollectionOperation = /* @__PURE__ */ ((CollectionOperation2) => {
1921
- CollectionOperation2["UPDATE"] = "UPDATE";
1922
- CollectionOperation2["REMOVE"] = "REMOVE";
1923
- return CollectionOperation2;
1924
- })(CollectionOperation || {});
1925
- var Type = /* @__PURE__ */ ((Type2) => {
1926
- Type2["TEXT"] = "TEXT";
1927
- Type2["NUMBER"] = "NUMBER";
1928
- Type2["DATE"] = "DATE";
1929
- Type2["DATETIME"] = "DATETIME";
1930
- Type2["IMAGE"] = "IMAGE";
1931
- Type2["BOOLEAN"] = "BOOLEAN";
1932
- Type2["DOCUMENT"] = "DOCUMENT";
1933
- Type2["URL"] = "URL";
1934
- Type2["RICH_TEXT"] = "RICH_TEXT";
1935
- Type2["VIDEO"] = "VIDEO";
1936
- Type2["ANY"] = "ANY";
1937
- Type2["ARRAY_STRING"] = "ARRAY_STRING";
1938
- Type2["ARRAY_DOCUMENT"] = "ARRAY_DOCUMENT";
1939
- Type2["AUDIO"] = "AUDIO";
1940
- Type2["TIME"] = "TIME";
1941
- Type2["LANGUAGE"] = "LANGUAGE";
1942
- Type2["RICH_CONTENT"] = "RICH_CONTENT";
1943
- Type2["MEDIA_GALLERY"] = "MEDIA_GALLERY";
1944
- Type2["ADDRESS"] = "ADDRESS";
1945
- Type2["PAGE_LINK"] = "PAGE_LINK";
1946
- Type2["REFERENCE"] = "REFERENCE";
1947
- Type2["MULTI_REFERENCE"] = "MULTI_REFERENCE";
1948
- Type2["OBJECT"] = "OBJECT";
1949
- Type2["ARRAY"] = "ARRAY";
1950
- Type2["LEGACY_TIME"] = "LEGACY_TIME";
1951
- Type2["LEGACY_BOOK"] = "LEGACY_BOOK";
1952
- Type2["LEGACY_EXTERNAL_URL"] = "LEGACY_EXTERNAL_URL";
1953
- Type2["LEGACY_BROKEN_REFERENCE"] = "LEGACY_BROKEN_REFERENCE";
1954
- Type2["LEGACY_IMAGE"] = "LEGACY_IMAGE";
1955
- Type2["LEGACY_COLOR"] = "LEGACY_COLOR";
1956
- Type2["LEGACY_EXTERNAL_VIDEO"] = "LEGACY_EXTERNAL_VIDEO";
1957
- Type2["SLUG"] = "SLUG";
1958
- Type2["EMAIL"] = "EMAIL";
1959
- Type2["SECURED_MEDIA"] = "SECURED_MEDIA";
1960
- Type2["MEDIA_IMAGE"] = "MEDIA_IMAGE";
1961
- Type2["MEDIA_VECTOR_ART"] = "MEDIA_VECTOR_ART";
1962
- return Type2;
1963
- })(Type || {});
1964
- var QueryOperator = /* @__PURE__ */ ((QueryOperator2) => {
1965
- QueryOperator2["EQ"] = "EQ";
1966
- QueryOperator2["LT"] = "LT";
1967
- QueryOperator2["GT"] = "GT";
1968
- QueryOperator2["NE"] = "NE";
1969
- QueryOperator2["LTE"] = "LTE";
1970
- QueryOperator2["GTE"] = "GTE";
1971
- QueryOperator2["STARTS_WITH"] = "STARTS_WITH";
1972
- QueryOperator2["ENDS_WITH"] = "ENDS_WITH";
1973
- QueryOperator2["CONTAINS"] = "CONTAINS";
1974
- QueryOperator2["HAS_SOME"] = "HAS_SOME";
1975
- QueryOperator2["HAS_ALL"] = "HAS_ALL";
1976
- QueryOperator2["EXISTS"] = "EXISTS";
1977
- QueryOperator2["URLIZED"] = "URLIZED";
1978
- return QueryOperator2;
1979
- })(QueryOperator || {});
1980
- var PageLinkType = /* @__PURE__ */ ((PageLinkType2) => {
1981
- PageLinkType2["COLLECTION_DEFINED"] = "COLLECTION_DEFINED";
1982
- PageLinkType2["ROUTER_DEFINED"] = "ROUTER_DEFINED";
1983
- return PageLinkType2;
1984
- })(PageLinkType || {});
1985
- var FieldPluginType = /* @__PURE__ */ ((FieldPluginType2) => {
1986
- FieldPluginType2["UNKNOWN"] = "UNKNOWN";
1987
- FieldPluginType2["CMS"] = "CMS";
1988
- FieldPluginType2["CATEGORY_FIELD"] = "CATEGORY_FIELD";
1989
- FieldPluginType2["CATEGORY_CONSUMER"] = "CATEGORY_CONSUMER";
1990
- FieldPluginType2["PRIMARY_CATEGORY_FIELD"] = "PRIMARY_CATEGORY_FIELD";
1991
- return FieldPluginType2;
1992
- })(FieldPluginType || {});
1993
- var Permission = /* @__PURE__ */ ((Permission2) => {
1994
- Permission2["ANYONE"] = "ANYONE";
1995
- Permission2["RESTRICTED"] = "RESTRICTED";
1996
- return Permission2;
1997
- })(Permission || {});
1998
- var Role = /* @__PURE__ */ ((Role2) => {
1999
- Role2["ADMIN"] = "ADMIN";
2000
- Role2["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
2001
- Role2["SITE_MEMBER"] = "SITE_MEMBER";
2002
- Role2["ANYONE"] = "ANYONE";
2003
- return Role2;
2004
- })(Role || {});
2005
- var Status = /* @__PURE__ */ ((Status2) => {
2006
- Status2["PUBLISHED"] = "PUBLISHED";
2007
- Status2["DRAFT"] = "DRAFT";
2008
- return Status2;
2009
- })(Status || {});
2010
- var LifecycleStatus = /* @__PURE__ */ ((LifecycleStatus2) => {
2011
- LifecycleStatus2["ACTIVE"] = "ACTIVE";
2012
- LifecycleStatus2["MIGRATING_TO_DRAFT_ITEMS"] = "MIGRATING_TO_DRAFT_ITEMS";
2013
- return LifecycleStatus2;
2014
- })(LifecycleStatus || {});
2015
- var Format = /* @__PURE__ */ ((Format2) => {
2016
- Format2["ORIGINAL"] = "ORIGINAL";
2017
- Format2["PLAIN"] = "PLAIN";
2018
- return Format2;
2019
- })(Format || {});
2020
- var AccessLevel = /* @__PURE__ */ ((AccessLevel2) => {
2021
- AccessLevel2["ANYONE"] = "ANYONE";
2022
- AccessLevel2["SITE_MEMBER"] = "SITE_MEMBER";
2023
- AccessLevel2["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
2024
- AccessLevel2["CMS_EDITOR"] = "CMS_EDITOR";
2025
- AccessLevel2["PRIVILEGED"] = "PRIVILEGED";
2026
- return AccessLevel2;
2027
- })(AccessLevel || {});
2028
- var PluginType = /* @__PURE__ */ ((PluginType2) => {
2029
- PluginType2["PUBLISH"] = "PUBLISH";
2030
- PluginType2["SINGLE_ITEM"] = "SINGLE_ITEM";
2031
- PluginType2["URLIZED"] = "URLIZED";
2032
- PluginType2["GRIDAPPLESS"] = "GRIDAPPLESS";
2033
- PluginType2["MULTILINGUAL"] = "MULTILINGUAL";
2034
- PluginType2["SHARED"] = "SHARED";
2035
- PluginType2["EDITABLE_PAGE_LINK"] = "EDITABLE_PAGE_LINK";
2036
- PluginType2["CMS"] = "CMS";
2037
- PluginType2["CATALOG"] = "CATALOG";
2038
- PluginType2["CATEGORIES"] = "CATEGORIES";
2039
- PluginType2["DRAFT_ITEMS"] = "DRAFT_ITEMS";
2040
- return PluginType2;
2041
- })(PluginType || {});
2042
- var PagingMode = /* @__PURE__ */ ((PagingMode2) => {
2043
- PagingMode2["OFFSET"] = "OFFSET";
2044
- PagingMode2["CURSOR"] = "CURSOR";
2045
- return PagingMode2;
2046
- })(PagingMode || {});
2047
- var Segment = /* @__PURE__ */ ((Segment2) => {
2048
- Segment2["UNKNOWN_SEGMENT"] = "UNKNOWN_SEGMENT";
2049
- Segment2["PUBLIC"] = "PUBLIC";
2050
- Segment2["DEV"] = "DEV";
2051
- return Segment2;
2052
- })(Segment || {});
2053
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
2054
- SortOrder2["ASC"] = "ASC";
2055
- SortOrder2["DESC"] = "DESC";
2056
- return SortOrder2;
2057
- })(SortOrder || {});
2058
- var DraftItemsPluginConflictAction = /* @__PURE__ */ ((DraftItemsPluginConflictAction2) => {
2059
- DraftItemsPluginConflictAction2["FAIL_WHEN_DRAFT_ITEMS_INSTALLED"] = "FAIL_WHEN_DRAFT_ITEMS_INSTALLED";
2060
- DraftItemsPluginConflictAction2["DISCARD_DRAFT_ITEMS"] = "DISCARD_DRAFT_ITEMS";
2061
- DraftItemsPluginConflictAction2["PUBLISH_DRAFT_ITEMS"] = "PUBLISH_DRAFT_ITEMS";
2062
- DraftItemsPluginConflictAction2["COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS"] = "COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS";
2063
- return DraftItemsPluginConflictAction2;
2064
- })(DraftItemsPluginConflictAction || {});
2065
- var PublishPluginConflictAction = /* @__PURE__ */ ((PublishPluginConflictAction2) => {
2066
- PublishPluginConflictAction2["FAIL_WHEN_PUBLISH_INSTALLED"] = "FAIL_WHEN_PUBLISH_INSTALLED";
2067
- PublishPluginConflictAction2["COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS"] = "COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS";
2068
- return PublishPluginConflictAction2;
2069
- })(PublishPluginConflictAction || {});
2070
- var DraftItemsRemovalAction = /* @__PURE__ */ ((DraftItemsRemovalAction2) => {
2071
- DraftItemsRemovalAction2["FAIL_IF_DRAFT_ITEMS_EXIST"] = "FAIL_IF_DRAFT_ITEMS_EXIST";
2072
- DraftItemsRemovalAction2["DISCARD_EXISTING_DRAFT_ITEMS"] = "DISCARD_EXISTING_DRAFT_ITEMS";
2073
- DraftItemsRemovalAction2["PUBLISH_EXISTING_DRAFT_ITEMS"] = "PUBLISH_EXISTING_DRAFT_ITEMS";
2074
- return DraftItemsRemovalAction2;
2075
- })(DraftItemsRemovalAction || {});
2076
- var TenantMode = /* @__PURE__ */ ((TenantMode2) => {
2077
- TenantMode2["META_SITE"] = "META_SITE";
2078
- TenantMode2["ACCOUNT"] = "ACCOUNT";
2079
- TenantMode2["APP"] = "APP";
2080
- return TenantMode2;
2081
- })(TenantMode || {});
2082
- var Order = /* @__PURE__ */ ((Order2) => {
2083
- Order2["ASC"] = "ASC";
2084
- Order2["DESC"] = "DESC";
2085
- return Order2;
2086
- })(Order || {});
2087
- var IndexStatus = /* @__PURE__ */ ((IndexStatus2) => {
2088
- IndexStatus2["UNKNOWN"] = "UNKNOWN";
2089
- IndexStatus2["BUILDING"] = "BUILDING";
2090
- IndexStatus2["ACTIVE"] = "ACTIVE";
2091
- IndexStatus2["DROPPING"] = "DROPPING";
2092
- IndexStatus2["DROPPED"] = "DROPPED";
2093
- IndexStatus2["FAILED"] = "FAILED";
2094
- IndexStatus2["INVALID"] = "INVALID";
2095
- return IndexStatus2;
2096
- })(IndexStatus || {});
2097
- var IndexSource = /* @__PURE__ */ ((IndexSource2) => {
2098
- IndexSource2["SYSTEM"] = "SYSTEM";
2099
- IndexSource2["USER"] = "USER";
2100
- IndexSource2["AUTO"] = "AUTO";
2101
- return IndexSource2;
2102
- })(IndexSource || {});
2103
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
2104
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
2105
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
2106
- WebhookIdentityType2["MEMBER"] = "MEMBER";
2107
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
2108
- WebhookIdentityType2["APP"] = "APP";
2109
- return WebhookIdentityType2;
2110
- })(WebhookIdentityType || {});
2111
-
2112
- // src/data-v2-data-collection-collections.meta.ts
2113
- function createDataCollection2() {
2114
- const payload = {};
2115
- const getRequestOptions = createDataCollection(payload);
2116
- const getUrl = (context) => {
2117
- const { url } = getRequestOptions(context);
2118
- return url;
2119
- };
2120
- return {
2121
- getUrl,
2122
- httpMethod: "POST",
2123
- path: "/v2/collections",
2124
- pathParams: {},
2125
- __requestType: null,
2126
- __originalRequestType: null,
2127
- __responseType: null,
2128
- __originalResponseType: null
2129
- };
2130
- }
2131
- function getDataCollection2() {
2132
- const payload = { dataCollectionId: ":dataCollectionId" };
2133
- const getRequestOptions = getDataCollection(payload);
2134
- const getUrl = (context) => {
2135
- const { url } = getRequestOptions(context);
2136
- return url;
2137
- };
2138
- return {
2139
- getUrl,
2140
- httpMethod: "GET",
2141
- path: "/v2/collections/{dataCollectionId}",
2142
- pathParams: { dataCollectionId: "dataCollectionId" },
2143
- __requestType: null,
2144
- __originalRequestType: null,
2145
- __responseType: null,
2146
- __originalResponseType: null
2147
- };
2148
- }
2149
- function listDataCollections2() {
2150
- const payload = {};
2151
- const getRequestOptions = listDataCollections(payload);
2152
- const getUrl = (context) => {
2153
- const { url } = getRequestOptions(context);
2154
- return url;
2155
- };
2156
- return {
2157
- getUrl,
2158
- httpMethod: "GET",
2159
- path: "/v2/collections",
2160
- pathParams: {},
2161
- __requestType: null,
2162
- __originalRequestType: null,
2163
- __responseType: null,
2164
- __originalResponseType: null
2165
- };
2166
- }
2167
- function updateDataCollection2() {
2168
- const payload = {};
2169
- const getRequestOptions = updateDataCollection(payload);
2170
- const getUrl = (context) => {
2171
- const { url } = getRequestOptions(context);
2172
- return url;
2173
- };
2174
- return {
2175
- getUrl,
2176
- httpMethod: "PUT",
2177
- path: "/v2/collections",
2178
- pathParams: {},
2179
- __requestType: null,
2180
- __originalRequestType: null,
2181
- __responseType: null,
2182
- __originalResponseType: null
2183
- };
2184
- }
2185
- function deleteDataCollection2() {
2186
- const payload = { dataCollectionId: ":dataCollectionId" };
2187
- const getRequestOptions = deleteDataCollection(payload);
2188
- const getUrl = (context) => {
2189
- const { url } = getRequestOptions(context);
2190
- return url;
2191
- };
2192
- return {
2193
- getUrl,
2194
- httpMethod: "DELETE",
2195
- path: "/v2/collections/{dataCollectionId}",
2196
- pathParams: { dataCollectionId: "dataCollectionId" },
2197
- __requestType: null,
2198
- __originalRequestType: null,
2199
- __responseType: null,
2200
- __originalResponseType: null
2201
- };
2202
- }
2203
- function restoreDataCollection2() {
2204
- const payload = { dataCollectionId: ":dataCollectionId" };
2205
- const getRequestOptions = restoreDataCollection(payload);
2206
- const getUrl = (context) => {
2207
- const { url } = getRequestOptions(context);
2208
- return url;
2209
- };
2210
- return {
2211
- getUrl,
2212
- httpMethod: "POST",
2213
- path: "/v2/collections/restore/{dataCollectionId}",
2214
- pathParams: { dataCollectionId: "dataCollectionId" },
2215
- __requestType: null,
2216
- __originalRequestType: null,
2217
- __responseType: null,
2218
- __originalResponseType: null
2219
- };
2220
- }
2221
- function patchDataCollection2() {
2222
- const payload = { dataCollection: { id: ":dataCollectionId" } };
2223
- const getRequestOptions = patchDataCollection(payload);
2224
- const getUrl = (context) => {
2225
- const { url } = getRequestOptions(context);
2226
- return url;
2227
- };
2228
- return {
2229
- getUrl,
2230
- httpMethod: "PATCH",
2231
- path: "/v2/collections/{dataCollection.id}",
2232
- pathParams: { dataCollectionId: "dataCollectionId" },
2233
- __requestType: null,
2234
- __originalRequestType: null,
2235
- __responseType: null,
2236
- __originalResponseType: null
2237
- };
2238
- }
2239
- function createDataCollectionField2() {
2240
- const payload = {};
2241
- const getRequestOptions = createDataCollectionField(payload);
2242
- const getUrl = (context) => {
2243
- const { url } = getRequestOptions(context);
2244
- return url;
2245
- };
2246
- return {
2247
- getUrl,
2248
- httpMethod: "POST",
2249
- path: "/v2/collections/create-field",
2250
- pathParams: {},
2251
- __requestType: null,
2252
- __originalRequestType: null,
2253
- __responseType: null,
2254
- __originalResponseType: null
2255
- };
2256
- }
2257
- function updateDataCollectionField2() {
2258
- const payload = {};
2259
- const getRequestOptions = updateDataCollectionField(payload);
2260
- const getUrl = (context) => {
2261
- const { url } = getRequestOptions(context);
2262
- return url;
2263
- };
2264
- return {
2265
- getUrl,
2266
- httpMethod: "POST",
2267
- path: "/v2/collections/update-field",
2268
- pathParams: {},
2269
- __requestType: null,
2270
- __originalRequestType: null,
2271
- __responseType: null,
2272
- __originalResponseType: null
2273
- };
2274
- }
2275
- function deleteDataCollectionField2() {
2276
- const payload = {};
2277
- const getRequestOptions = deleteDataCollectionField(payload);
2278
- const getUrl = (context) => {
2279
- const { url } = getRequestOptions(context);
2280
- return url;
2281
- };
2282
- return {
2283
- getUrl,
2284
- httpMethod: "POST",
2285
- path: "/v2/collections/delete-field",
2286
- pathParams: {},
2287
- __requestType: null,
2288
- __originalRequestType: null,
2289
- __responseType: null,
2290
- __originalResponseType: null
2291
- };
2292
- }
2293
- function addDataCollectionPlugin2() {
2294
- const payload = {};
2295
- const getRequestOptions = addDataCollectionPlugin(payload);
2296
- const getUrl = (context) => {
2297
- const { url } = getRequestOptions(context);
2298
- return url;
2299
- };
2300
- return {
2301
- getUrl,
2302
- httpMethod: "POST",
2303
- path: "/v2/collections/add-plugin",
2304
- pathParams: {},
2305
- __requestType: null,
2306
- __originalRequestType: null,
2307
- __responseType: null,
2308
- __originalResponseType: null
2309
- };
2310
- }
2311
- function deleteDataCollectionPlugin2() {
2312
- const payload = {};
2313
- const getRequestOptions = deleteDataCollectionPlugin(payload);
2314
- const getUrl = (context) => {
2315
- const { url } = getRequestOptions(context);
2316
- return url;
2317
- };
2318
- return {
2319
- getUrl,
2320
- httpMethod: "POST",
2321
- path: "/v2/collections/delete-plugin",
2322
- pathParams: {},
2323
- __requestType: null,
2324
- __originalRequestType: null,
2325
- __responseType: null,
2326
- __originalResponseType: null
2327
- };
2328
- }
2329
- function addPublishPlugin2() {
2330
- const payload = {};
2331
- const getRequestOptions = addPublishPlugin(payload);
2332
- const getUrl = (context) => {
2333
- const { url } = getRequestOptions(context);
2334
- return url;
2335
- };
2336
- return {
2337
- getUrl,
2338
- httpMethod: "POST",
2339
- path: "/v2/collections/add-publish-plugin",
2340
- pathParams: {},
2341
- __requestType: null,
2342
- __originalRequestType: null,
2343
- __responseType: null,
2344
- __originalResponseType: null
2345
- };
2346
- }
2347
- function deletePublishPlugin2() {
2348
- const payload = {};
2349
- const getRequestOptions = deletePublishPlugin(payload);
2350
- const getUrl = (context) => {
2351
- const { url } = getRequestOptions(context);
2352
- return url;
2353
- };
2354
- return {
2355
- getUrl,
2356
- httpMethod: "POST",
2357
- path: "/v2/collections/delete-publish-plugin",
2358
- pathParams: {},
2359
- __requestType: null,
2360
- __originalRequestType: null,
2361
- __responseType: null,
2362
- __originalResponseType: null
2363
- };
2364
- }
2365
- function addUrlizedPlugin2() {
2366
- const payload = {};
2367
- const getRequestOptions = addUrlizedPlugin(payload);
2368
- const getUrl = (context) => {
2369
- const { url } = getRequestOptions(context);
2370
- return url;
2371
- };
2372
- return {
2373
- getUrl,
2374
- httpMethod: "POST",
2375
- path: "/v2/collections/add-urlized-plugin",
2376
- pathParams: {},
2377
- __requestType: null,
2378
- __originalRequestType: null,
2379
- __responseType: null,
2380
- __originalResponseType: null
2381
- };
2382
- }
2383
- function deleteUrlizedPlugin2() {
2384
- const payload = {};
2385
- const getRequestOptions = deleteUrlizedPlugin(payload);
2386
- const getUrl = (context) => {
2387
- const { url } = getRequestOptions(context);
2388
- return url;
2389
- };
2390
- return {
2391
- getUrl,
2392
- httpMethod: "POST",
2393
- path: "/v2/collections/delete-urlized-plugin",
2394
- pathParams: {},
2395
- __requestType: null,
2396
- __originalRequestType: null,
2397
- __responseType: null,
2398
- __originalResponseType: null
2399
- };
2400
- }
2401
- function addMultilingualPlugin2() {
2402
- const payload = {};
2403
- const getRequestOptions = addMultilingualPlugin(payload);
2404
- const getUrl = (context) => {
2405
- const { url } = getRequestOptions(context);
2406
- return url;
2407
- };
2408
- return {
2409
- getUrl,
2410
- httpMethod: "POST",
2411
- path: "/v2/collections/add-multilingual-plugin",
2412
- pathParams: {},
2413
- __requestType: null,
2414
- __originalRequestType: null,
2415
- __responseType: null,
2416
- __originalResponseType: null
2417
- };
2418
- }
2419
- function deleteMultilingualPlugin2() {
2420
- const payload = {};
2421
- const getRequestOptions = deleteMultilingualPlugin(payload);
2422
- const getUrl = (context) => {
2423
- const { url } = getRequestOptions(context);
2424
- return url;
2425
- };
2426
- return {
2427
- getUrl,
2428
- httpMethod: "POST",
2429
- path: "/v2/collections/delete-multilingual-plugin",
2430
- pathParams: {},
2431
- __requestType: null,
2432
- __originalRequestType: null,
2433
- __responseType: null,
2434
- __originalResponseType: null
2435
- };
2436
- }
2437
- function addCmsPlugin2() {
2438
- const payload = {};
2439
- const getRequestOptions = addCmsPlugin(payload);
2440
- const getUrl = (context) => {
2441
- const { url } = getRequestOptions(context);
2442
- return url;
2443
- };
2444
- return {
2445
- getUrl,
2446
- httpMethod: "POST",
2447
- path: "/v2/collections/add-cms-plugin",
2448
- pathParams: {},
2449
- __requestType: null,
2450
- __originalRequestType: null,
2451
- __responseType: null,
2452
- __originalResponseType: null
2453
- };
2454
- }
2455
- function deleteCmsPlugin2() {
2456
- const payload = {};
2457
- const getRequestOptions = deleteCmsPlugin(payload);
2458
- const getUrl = (context) => {
2459
- const { url } = getRequestOptions(context);
2460
- return url;
2461
- };
2462
- return {
2463
- getUrl,
2464
- httpMethod: "POST",
2465
- path: "/v2/collections/delete-cms-plugin",
2466
- pathParams: {},
2467
- __requestType: null,
2468
- __originalRequestType: null,
2469
- __responseType: null,
2470
- __originalResponseType: null
2471
- };
2472
- }
2473
- function addCatalogPlugin2() {
2474
- const payload = {};
2475
- const getRequestOptions = addCatalogPlugin(payload);
2476
- const getUrl = (context) => {
2477
- const { url } = getRequestOptions(context);
2478
- return url;
2479
- };
2480
- return {
2481
- getUrl,
2482
- httpMethod: "POST",
2483
- path: "/v2/collections/add-catalog-plugin",
2484
- pathParams: {},
2485
- __requestType: null,
2486
- __originalRequestType: null,
2487
- __responseType: null,
2488
- __originalResponseType: null
2489
- };
2490
- }
2491
- function deleteCatalogPlugin2() {
2492
- const payload = {};
2493
- const getRequestOptions = deleteCatalogPlugin(payload);
2494
- const getUrl = (context) => {
2495
- const { url } = getRequestOptions(context);
2496
- return url;
2497
- };
2498
- return {
2499
- getUrl,
2500
- httpMethod: "POST",
2501
- path: "/v2/collections/delete-catalog-plugin",
2502
- pathParams: {},
2503
- __requestType: null,
2504
- __originalRequestType: null,
2505
- __responseType: null,
2506
- __originalResponseType: null
2507
- };
2508
- }
2509
- function addDraftItemsPlugin2() {
2510
- const payload = {};
2511
- const getRequestOptions = addDraftItemsPlugin(payload);
2512
- const getUrl = (context) => {
2513
- const { url } = getRequestOptions(context);
2514
- return url;
2515
- };
2516
- return {
2517
- getUrl,
2518
- httpMethod: "POST",
2519
- path: "/v2/collections/add-draft-items-plugin",
2520
- pathParams: {},
2521
- __requestType: null,
2522
- __originalRequestType: null,
2523
- __responseType: null,
2524
- __originalResponseType: null
2525
- };
2526
- }
2527
- function deleteDraftItemsPlugin2() {
2528
- const payload = {};
2529
- const getRequestOptions = deleteDraftItemsPlugin(payload);
2530
- const getUrl = (context) => {
2531
- const { url } = getRequestOptions(context);
2532
- return url;
2533
- };
2534
- return {
2535
- getUrl,
2536
- httpMethod: "POST",
2537
- path: "/v2/collections/delete-draft-items-plugin",
2538
- pathParams: {},
2539
- __requestType: null,
2540
- __originalRequestType: null,
2541
- __responseType: null,
2542
- __originalResponseType: null
2543
- };
2544
- }
2545
- function patchDataCollectionField2() {
2546
- const payload = { dataCollectionId: ":dataCollectionId" };
2547
- const getRequestOptions = patchDataCollectionField(payload);
2548
- const getUrl = (context) => {
2549
- const { url } = getRequestOptions(context);
2550
- return url;
2551
- };
2552
- return {
2553
- getUrl,
2554
- httpMethod: "PATCH",
2555
- path: "/v2/collections/{dataCollectionId}/patch-field",
2556
- pathParams: { dataCollectionId: "dataCollectionId" },
2557
- __requestType: null,
2558
- __originalRequestType: null,
2559
- __responseType: null,
2560
- __originalResponseType: null
2561
- };
2562
- }
2563
- export {
2564
- AccessLevel as AccessLevelOriginal,
2565
- CollectionOperation as CollectionOperationOriginal,
2566
- CollectionType as CollectionTypeOriginal,
2567
- DataOperation as DataOperationOriginal,
2568
- Direction as DirectionOriginal,
2569
- DraftItemsPluginConflictAction as DraftItemsPluginConflictActionOriginal,
2570
- DraftItemsRemovalAction as DraftItemsRemovalActionOriginal,
2571
- FieldPluginType as FieldPluginTypeOriginal,
2572
- Format as FormatOriginal,
2573
- IndexSource as IndexSourceOriginal,
2574
- IndexStatus as IndexStatusOriginal,
2575
- LifecycleStatus as LifecycleStatusOriginal,
2576
- Order as OrderOriginal,
2577
- PageLinkType as PageLinkTypeOriginal,
2578
- PagingMode as PagingModeOriginal,
2579
- Permission as PermissionOriginal,
2580
- PluginType as PluginTypeOriginal,
2581
- PublishPluginConflictAction as PublishPluginConflictActionOriginal,
2582
- QueryOperator as QueryOperatorOriginal,
2583
- Role as RoleOriginal,
2584
- Segment as SegmentOriginal,
2585
- SortOrder as SortOrderOriginal,
2586
- Status as StatusOriginal,
2587
- TenantMode as TenantModeOriginal,
2588
- Type as TypeOriginal,
2589
- WebhookIdentityType as WebhookIdentityTypeOriginal,
2590
- addCatalogPlugin2 as addCatalogPlugin,
2591
- addCmsPlugin2 as addCmsPlugin,
2592
- addDataCollectionPlugin2 as addDataCollectionPlugin,
2593
- addDraftItemsPlugin2 as addDraftItemsPlugin,
2594
- addMultilingualPlugin2 as addMultilingualPlugin,
2595
- addPublishPlugin2 as addPublishPlugin,
2596
- addUrlizedPlugin2 as addUrlizedPlugin,
2597
- createDataCollection2 as createDataCollection,
2598
- createDataCollectionField2 as createDataCollectionField,
2599
- deleteCatalogPlugin2 as deleteCatalogPlugin,
2600
- deleteCmsPlugin2 as deleteCmsPlugin,
2601
- deleteDataCollection2 as deleteDataCollection,
2602
- deleteDataCollectionField2 as deleteDataCollectionField,
2603
- deleteDataCollectionPlugin2 as deleteDataCollectionPlugin,
2604
- deleteDraftItemsPlugin2 as deleteDraftItemsPlugin,
2605
- deleteMultilingualPlugin2 as deleteMultilingualPlugin,
2606
- deletePublishPlugin2 as deletePublishPlugin,
2607
- deleteUrlizedPlugin2 as deleteUrlizedPlugin,
2608
- getDataCollection2 as getDataCollection,
2609
- listDataCollections2 as listDataCollections,
2610
- patchDataCollection2 as patchDataCollection,
2611
- patchDataCollectionField2 as patchDataCollectionField,
2612
- restoreDataCollection2 as restoreDataCollection,
2613
- updateDataCollection2 as updateDataCollection,
2614
- updateDataCollectionField2 as updateDataCollectionField
2615
- };
2616
- //# sourceMappingURL=meta.mjs.map