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