@wix/auto_sdk_data_collections 1.0.105 → 1.0.106
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.
- package/build/cjs/index.d.ts +17 -3
- package/build/cjs/index.js +259 -66
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +54 -1
- package/build/cjs/index.typings.js +251 -66
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -2
- package/build/cjs/meta.js +230 -66
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +17 -3
- package/build/es/index.mjs +258 -66
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +54 -1
- package/build/es/index.typings.mjs +250 -66
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +3 -2
- package/build/es/meta.mjs +229 -66
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +17 -3
- package/build/internal/cjs/index.typings.d.ts +59 -1
- package/build/internal/cjs/meta.d.ts +3 -2
- package/build/internal/es/index.d.mts +17 -3
- package/build/internal/es/index.typings.d.mts +59 -1
- package/build/internal/es/meta.d.mts +3 -2
- package/package.json +2 -2
package/build/es/index.mjs
CHANGED
|
@@ -81,6 +81,36 @@ var TRANSFORM_PATHS_5 = [
|
|
|
81
81
|
{ path: "collections.fields.typeMetadata.number.max" }
|
|
82
82
|
];
|
|
83
83
|
var TRANSFORM_PATHS_6 = [
|
|
84
|
+
{ path: "activeCollections.createdDate" },
|
|
85
|
+
{ path: "activeCollections.updatedDate" },
|
|
86
|
+
{ path: "activeCollections.fields.typeMetadata.date.defaultValueFixed" },
|
|
87
|
+
{ path: "activeCollections.fields.typeMetadata.date.minDateFixed" },
|
|
88
|
+
{ path: "activeCollections.fields.typeMetadata.date.maxDateFixed" },
|
|
89
|
+
{ path: "activeCollections.fields.typeMetadata.datetime.defaultValueFixed" },
|
|
90
|
+
{ path: "activeCollections.fields.typeMetadata.datetime.minDateFixed" },
|
|
91
|
+
{ path: "activeCollections.fields.typeMetadata.datetime.maxDateFixed" },
|
|
92
|
+
{ path: "deletedCollections.createdDate" },
|
|
93
|
+
{ path: "deletedCollections.updatedDate" },
|
|
94
|
+
{ path: "deletedCollections.fields.typeMetadata.date.defaultValueFixed" },
|
|
95
|
+
{ path: "deletedCollections.fields.typeMetadata.date.minDateFixed" },
|
|
96
|
+
{ path: "deletedCollections.fields.typeMetadata.date.maxDateFixed" },
|
|
97
|
+
{ path: "deletedCollections.fields.typeMetadata.datetime.defaultValueFixed" },
|
|
98
|
+
{ path: "deletedCollections.fields.typeMetadata.datetime.minDateFixed" },
|
|
99
|
+
{ path: "deletedCollections.fields.typeMetadata.datetime.maxDateFixed" }
|
|
100
|
+
];
|
|
101
|
+
var TRANSFORM_PATHS_7 = [
|
|
102
|
+
{ path: "activeCollections.fields.numberRange.min" },
|
|
103
|
+
{ path: "activeCollections.fields.numberRange.max" },
|
|
104
|
+
{ path: "activeCollections.fields.typeMetadata.number.defaultValue" },
|
|
105
|
+
{ path: "activeCollections.fields.typeMetadata.number.min" },
|
|
106
|
+
{ path: "activeCollections.fields.typeMetadata.number.max" },
|
|
107
|
+
{ path: "deletedCollections.fields.numberRange.min" },
|
|
108
|
+
{ path: "deletedCollections.fields.numberRange.max" },
|
|
109
|
+
{ path: "deletedCollections.fields.typeMetadata.number.defaultValue" },
|
|
110
|
+
{ path: "deletedCollections.fields.typeMetadata.number.min" },
|
|
111
|
+
{ path: "deletedCollections.fields.typeMetadata.number.max" }
|
|
112
|
+
];
|
|
113
|
+
var TRANSFORM_PATHS_8 = [
|
|
84
114
|
{ path: "dataCollection.createdDate" },
|
|
85
115
|
{ path: "dataCollection.updatedDate" },
|
|
86
116
|
{ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed" },
|
|
@@ -90,22 +120,22 @@ var TRANSFORM_PATHS_6 = [
|
|
|
90
120
|
{ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed" },
|
|
91
121
|
{ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
92
122
|
];
|
|
93
|
-
var
|
|
123
|
+
var TRANSFORM_PATHS_9 = [
|
|
94
124
|
{ path: "dataCollection.fields.numberRange.min" },
|
|
95
125
|
{ path: "dataCollection.fields.numberRange.max" },
|
|
96
126
|
{ path: "dataCollection.fields.typeMetadata.number.defaultValue" },
|
|
97
127
|
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
98
128
|
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
99
129
|
];
|
|
100
|
-
var
|
|
101
|
-
var
|
|
130
|
+
var TRANSFORM_PATHS_10 = [{ path: "fieldMask" }];
|
|
131
|
+
var TRANSFORM_PATHS_11 = [
|
|
102
132
|
{ path: "field.numberRange.min" },
|
|
103
133
|
{ path: "field.numberRange.max" },
|
|
104
134
|
{ path: "field.typeMetadata.number.defaultValue" },
|
|
105
135
|
{ path: "field.typeMetadata.number.min" },
|
|
106
136
|
{ path: "field.typeMetadata.number.max" }
|
|
107
137
|
];
|
|
108
|
-
var
|
|
138
|
+
var TRANSFORM_PATHS_12 = [
|
|
109
139
|
{ path: "field.typeMetadata.date.defaultValueFixed" },
|
|
110
140
|
{ path: "field.typeMetadata.date.minDateFixed" },
|
|
111
141
|
{ path: "field.typeMetadata.date.maxDateFixed" },
|
|
@@ -123,6 +153,10 @@ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl
|
|
|
123
153
|
{
|
|
124
154
|
srcPath: "/_api/cloud-data/v2/collections",
|
|
125
155
|
destPath: "/v2/collections"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
srcPath: "/_api/cloud-data/v2/bulk/collections",
|
|
159
|
+
destPath: "/v2/bulk/collections"
|
|
126
160
|
}
|
|
127
161
|
],
|
|
128
162
|
"blocks._base_domain_": [
|
|
@@ -133,6 +167,10 @@ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl
|
|
|
133
167
|
{
|
|
134
168
|
srcPath: "/_api/cloud-data/v2/collections",
|
|
135
169
|
destPath: "/v2/collections"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
srcPath: "/_api/cloud-data/v2/bulk/collections",
|
|
173
|
+
destPath: "/v2/bulk/collections"
|
|
136
174
|
}
|
|
137
175
|
],
|
|
138
176
|
"create.editorx": [
|
|
@@ -143,12 +181,28 @@ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl
|
|
|
143
181
|
{
|
|
144
182
|
srcPath: "/_api/cloud-data/v2/collections",
|
|
145
183
|
destPath: "/v2/collections"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
srcPath: "/_api/cloud-data/v2/bulk/collections",
|
|
187
|
+
destPath: "/v2/bulk/collections"
|
|
146
188
|
}
|
|
147
189
|
],
|
|
148
190
|
"www.wixapis.com": [
|
|
149
191
|
{
|
|
150
192
|
srcPath: "/data/v2/collections",
|
|
151
193
|
destPath: "/v2/collections"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
srcPath: "/data/v2/bulk/collections",
|
|
197
|
+
destPath: "/v2/bulk/collections"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
srcPath: "/wix-data/v2/collections",
|
|
201
|
+
destPath: "/v2/collections"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
srcPath: "/wix-data/v2/bulk/collections",
|
|
205
|
+
destPath: "/v2/bulk/collections"
|
|
152
206
|
}
|
|
153
207
|
],
|
|
154
208
|
"bo._base_domain_": [
|
|
@@ -159,6 +213,10 @@ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl
|
|
|
159
213
|
{
|
|
160
214
|
srcPath: "/_api/cloud-data/v2/collections",
|
|
161
215
|
destPath: "/v2/collections"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
srcPath: "/_api/cloud-data/v2/bulk/collections",
|
|
219
|
+
destPath: "/v2/bulk/collections"
|
|
162
220
|
}
|
|
163
221
|
],
|
|
164
222
|
"wixbo.ai": [
|
|
@@ -169,6 +227,10 @@ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl
|
|
|
169
227
|
{
|
|
170
228
|
srcPath: "/_api/cloud-data/v2/collections",
|
|
171
229
|
destPath: "/v2/collections"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
srcPath: "/_api/cloud-data/v2/bulk/collections",
|
|
233
|
+
destPath: "/v2/bulk/collections"
|
|
172
234
|
}
|
|
173
235
|
],
|
|
174
236
|
"wix-bo.com": [
|
|
@@ -179,6 +241,10 @@ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl
|
|
|
179
241
|
{
|
|
180
242
|
srcPath: "/_api/cloud-data/v2/collections",
|
|
181
243
|
destPath: "/v2/collections"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
srcPath: "/_api/cloud-data/v2/bulk/collections",
|
|
247
|
+
destPath: "/v2/bulk/collections"
|
|
182
248
|
}
|
|
183
249
|
],
|
|
184
250
|
"cloud-data.wix-code.com": [
|
|
@@ -189,6 +255,10 @@ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl
|
|
|
189
255
|
{
|
|
190
256
|
srcPath: "/_api/cloud-data/v2/collections",
|
|
191
257
|
destPath: "/v2/collections"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
srcPath: "/_api/cloud-data/v2/bulk/collections",
|
|
261
|
+
destPath: "/v2/bulk/collections"
|
|
192
262
|
}
|
|
193
263
|
],
|
|
194
264
|
"dev._base_domain_": [
|
|
@@ -199,6 +269,10 @@ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl
|
|
|
199
269
|
{
|
|
200
270
|
srcPath: "/_api/cloud-data/v2/collections",
|
|
201
271
|
destPath: "/v2/collections"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
srcPath: "/_api/cloud-data/v2/bulk/collections",
|
|
275
|
+
destPath: "/v2/bulk/collections"
|
|
202
276
|
}
|
|
203
277
|
],
|
|
204
278
|
_: [
|
|
@@ -209,6 +283,10 @@ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl
|
|
|
209
283
|
{
|
|
210
284
|
srcPath: "/_api/cloud-data/v2/collections",
|
|
211
285
|
destPath: "/v2/collections"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
srcPath: "/_api/cloud-data/v2/bulk/collections",
|
|
289
|
+
destPath: "/v2/bulk/collections"
|
|
212
290
|
}
|
|
213
291
|
],
|
|
214
292
|
"manage._base_domain_": [
|
|
@@ -219,6 +297,34 @@ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl
|
|
|
219
297
|
{
|
|
220
298
|
srcPath: "/_api/cloud-data/v2/collections",
|
|
221
299
|
destPath: "/v2/collections"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
srcPath: "/_api/cloud-data/v2/bulk/collections",
|
|
303
|
+
destPath: "/v2/bulk/collections"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"*.dev.wix-code.com": [
|
|
307
|
+
{
|
|
308
|
+
srcPath: "/_api/cloud-data/v2/collections",
|
|
309
|
+
destPath: "/v2/collections"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
srcPath: "/_api/cloud-data/v2/bulk/collections",
|
|
313
|
+
destPath: "/v2/bulk/collections"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"www._base_domain_": [
|
|
317
|
+
{
|
|
318
|
+
srcPath: "/_api/cloud-data/v1/schemas",
|
|
319
|
+
destPath: "/v1/schemas"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
srcPath: "/_api/cloud-data/v2/collections",
|
|
323
|
+
destPath: "/v2/collections"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
srcPath: "/_api/cloud-data/v2/bulk/collections",
|
|
327
|
+
destPath: "/v2/bulk/collections"
|
|
222
328
|
}
|
|
223
329
|
]
|
|
224
330
|
};
|
|
@@ -322,6 +428,44 @@ function listDataCollections(payload) {
|
|
|
322
428
|
}
|
|
323
429
|
return __listDataCollections;
|
|
324
430
|
}
|
|
431
|
+
function bulkGetDataCollections(payload) {
|
|
432
|
+
function __bulkGetDataCollections({ host }) {
|
|
433
|
+
const metadata = {
|
|
434
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
435
|
+
method: "GET",
|
|
436
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.BulkGetDataCollections",
|
|
437
|
+
packageName: PACKAGE_NAME,
|
|
438
|
+
migrationOptions: {
|
|
439
|
+
optInTransformResponse: true
|
|
440
|
+
},
|
|
441
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
442
|
+
{ protoPath: "/v2/bulk/collections/get", data: payload, host }
|
|
443
|
+
),
|
|
444
|
+
params: toURLSearchParams(payload),
|
|
445
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
446
|
+
{
|
|
447
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
448
|
+
paths: TRANSFORM_PATHS_6
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
452
|
+
paths: TRANSFORM_PATHS_7
|
|
453
|
+
}
|
|
454
|
+
]),
|
|
455
|
+
fallback: [
|
|
456
|
+
{
|
|
457
|
+
method: "POST",
|
|
458
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
459
|
+
{ protoPath: "/v2/bulk/collections/get", data: payload, host }
|
|
460
|
+
),
|
|
461
|
+
data: payload
|
|
462
|
+
}
|
|
463
|
+
]
|
|
464
|
+
};
|
|
465
|
+
return metadata;
|
|
466
|
+
}
|
|
467
|
+
return __bulkGetDataCollections;
|
|
468
|
+
}
|
|
325
469
|
function updateDataCollection(payload) {
|
|
326
470
|
function __updateDataCollection({ host }) {
|
|
327
471
|
const serializedData = transformPaths(payload, [
|
|
@@ -401,11 +545,11 @@ function restoreDataCollection(payload) {
|
|
|
401
545
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
402
546
|
{
|
|
403
547
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
404
|
-
paths:
|
|
548
|
+
paths: TRANSFORM_PATHS_8
|
|
405
549
|
},
|
|
406
550
|
{
|
|
407
551
|
transformFn: transformRESTFloatToSDKFloat,
|
|
408
|
-
paths:
|
|
552
|
+
paths: TRANSFORM_PATHS_9
|
|
409
553
|
}
|
|
410
554
|
])
|
|
411
555
|
};
|
|
@@ -418,15 +562,15 @@ function patchDataCollection(payload) {
|
|
|
418
562
|
const serializedData = transformPaths(payload, [
|
|
419
563
|
{
|
|
420
564
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
421
|
-
paths:
|
|
565
|
+
paths: TRANSFORM_PATHS_10
|
|
422
566
|
},
|
|
423
567
|
{
|
|
424
568
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
425
|
-
paths:
|
|
569
|
+
paths: TRANSFORM_PATHS_8
|
|
426
570
|
},
|
|
427
571
|
{
|
|
428
572
|
transformFn: transformSDKFloatToRESTFloat,
|
|
429
|
-
paths:
|
|
573
|
+
paths: TRANSFORM_PATHS_9
|
|
430
574
|
}
|
|
431
575
|
]);
|
|
432
576
|
const metadata = {
|
|
@@ -448,11 +592,11 @@ function patchDataCollection(payload) {
|
|
|
448
592
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
449
593
|
{
|
|
450
594
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
451
|
-
paths:
|
|
595
|
+
paths: TRANSFORM_PATHS_8
|
|
452
596
|
},
|
|
453
597
|
{
|
|
454
598
|
transformFn: transformRESTFloatToSDKFloat,
|
|
455
|
-
paths:
|
|
599
|
+
paths: TRANSFORM_PATHS_9
|
|
456
600
|
}
|
|
457
601
|
])
|
|
458
602
|
};
|
|
@@ -465,11 +609,11 @@ function createDataCollectionField(payload) {
|
|
|
465
609
|
const serializedData = transformPaths(payload, [
|
|
466
610
|
{
|
|
467
611
|
transformFn: transformSDKFloatToRESTFloat,
|
|
468
|
-
paths:
|
|
612
|
+
paths: TRANSFORM_PATHS_11
|
|
469
613
|
},
|
|
470
614
|
{
|
|
471
615
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
472
|
-
paths:
|
|
616
|
+
paths: TRANSFORM_PATHS_12
|
|
473
617
|
}
|
|
474
618
|
]);
|
|
475
619
|
const metadata = {
|
|
@@ -491,11 +635,11 @@ function createDataCollectionField(payload) {
|
|
|
491
635
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
492
636
|
{
|
|
493
637
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
494
|
-
paths:
|
|
638
|
+
paths: TRANSFORM_PATHS_8
|
|
495
639
|
},
|
|
496
640
|
{
|
|
497
641
|
transformFn: transformRESTFloatToSDKFloat,
|
|
498
|
-
paths:
|
|
642
|
+
paths: TRANSFORM_PATHS_9
|
|
499
643
|
}
|
|
500
644
|
])
|
|
501
645
|
};
|
|
@@ -508,11 +652,11 @@ function updateDataCollectionField(payload) {
|
|
|
508
652
|
const serializedData = transformPaths(payload, [
|
|
509
653
|
{
|
|
510
654
|
transformFn: transformSDKFloatToRESTFloat,
|
|
511
|
-
paths:
|
|
655
|
+
paths: TRANSFORM_PATHS_11
|
|
512
656
|
},
|
|
513
657
|
{
|
|
514
658
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
515
|
-
paths:
|
|
659
|
+
paths: TRANSFORM_PATHS_12
|
|
516
660
|
}
|
|
517
661
|
]);
|
|
518
662
|
const metadata = {
|
|
@@ -534,11 +678,11 @@ function updateDataCollectionField(payload) {
|
|
|
534
678
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
535
679
|
{
|
|
536
680
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
537
|
-
paths:
|
|
681
|
+
paths: TRANSFORM_PATHS_8
|
|
538
682
|
},
|
|
539
683
|
{
|
|
540
684
|
transformFn: transformRESTFloatToSDKFloat,
|
|
541
|
-
paths:
|
|
685
|
+
paths: TRANSFORM_PATHS_9
|
|
542
686
|
}
|
|
543
687
|
])
|
|
544
688
|
};
|
|
@@ -563,11 +707,11 @@ function deleteDataCollectionField(payload) {
|
|
|
563
707
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
564
708
|
{
|
|
565
709
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
566
|
-
paths:
|
|
710
|
+
paths: TRANSFORM_PATHS_8
|
|
567
711
|
},
|
|
568
712
|
{
|
|
569
713
|
transformFn: transformRESTFloatToSDKFloat,
|
|
570
|
-
paths:
|
|
714
|
+
paths: TRANSFORM_PATHS_9
|
|
571
715
|
}
|
|
572
716
|
])
|
|
573
717
|
};
|
|
@@ -592,11 +736,11 @@ function addDataCollectionPlugin(payload) {
|
|
|
592
736
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
593
737
|
{
|
|
594
738
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
595
|
-
paths:
|
|
739
|
+
paths: TRANSFORM_PATHS_8
|
|
596
740
|
},
|
|
597
741
|
{
|
|
598
742
|
transformFn: transformRESTFloatToSDKFloat,
|
|
599
|
-
paths:
|
|
743
|
+
paths: TRANSFORM_PATHS_9
|
|
600
744
|
}
|
|
601
745
|
])
|
|
602
746
|
};
|
|
@@ -621,11 +765,11 @@ function deleteDataCollectionPlugin(payload) {
|
|
|
621
765
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
622
766
|
{
|
|
623
767
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
624
|
-
paths:
|
|
768
|
+
paths: TRANSFORM_PATHS_8
|
|
625
769
|
},
|
|
626
770
|
{
|
|
627
771
|
transformFn: transformRESTFloatToSDKFloat,
|
|
628
|
-
paths:
|
|
772
|
+
paths: TRANSFORM_PATHS_9
|
|
629
773
|
}
|
|
630
774
|
])
|
|
631
775
|
};
|
|
@@ -650,11 +794,11 @@ function addPublishPlugin(payload) {
|
|
|
650
794
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
651
795
|
{
|
|
652
796
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
653
|
-
paths:
|
|
797
|
+
paths: TRANSFORM_PATHS_8
|
|
654
798
|
},
|
|
655
799
|
{
|
|
656
800
|
transformFn: transformRESTFloatToSDKFloat,
|
|
657
|
-
paths:
|
|
801
|
+
paths: TRANSFORM_PATHS_9
|
|
658
802
|
}
|
|
659
803
|
])
|
|
660
804
|
};
|
|
@@ -683,11 +827,11 @@ function deletePublishPlugin(payload) {
|
|
|
683
827
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
684
828
|
{
|
|
685
829
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
686
|
-
paths:
|
|
830
|
+
paths: TRANSFORM_PATHS_8
|
|
687
831
|
},
|
|
688
832
|
{
|
|
689
833
|
transformFn: transformRESTFloatToSDKFloat,
|
|
690
|
-
paths:
|
|
834
|
+
paths: TRANSFORM_PATHS_9
|
|
691
835
|
}
|
|
692
836
|
])
|
|
693
837
|
};
|
|
@@ -716,11 +860,11 @@ function updatePublishPlugin(payload) {
|
|
|
716
860
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
717
861
|
{
|
|
718
862
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
719
|
-
paths:
|
|
863
|
+
paths: TRANSFORM_PATHS_8
|
|
720
864
|
},
|
|
721
865
|
{
|
|
722
866
|
transformFn: transformRESTFloatToSDKFloat,
|
|
723
|
-
paths:
|
|
867
|
+
paths: TRANSFORM_PATHS_9
|
|
724
868
|
}
|
|
725
869
|
])
|
|
726
870
|
};
|
|
@@ -745,11 +889,11 @@ function addUrlizedPlugin(payload) {
|
|
|
745
889
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
746
890
|
{
|
|
747
891
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
748
|
-
paths:
|
|
892
|
+
paths: TRANSFORM_PATHS_8
|
|
749
893
|
},
|
|
750
894
|
{
|
|
751
895
|
transformFn: transformRESTFloatToSDKFloat,
|
|
752
|
-
paths:
|
|
896
|
+
paths: TRANSFORM_PATHS_9
|
|
753
897
|
}
|
|
754
898
|
])
|
|
755
899
|
};
|
|
@@ -778,11 +922,11 @@ function deleteUrlizedPlugin(payload) {
|
|
|
778
922
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
779
923
|
{
|
|
780
924
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
781
|
-
paths:
|
|
925
|
+
paths: TRANSFORM_PATHS_8
|
|
782
926
|
},
|
|
783
927
|
{
|
|
784
928
|
transformFn: transformRESTFloatToSDKFloat,
|
|
785
|
-
paths:
|
|
929
|
+
paths: TRANSFORM_PATHS_9
|
|
786
930
|
}
|
|
787
931
|
])
|
|
788
932
|
};
|
|
@@ -811,11 +955,11 @@ function updateUrlizedPlugin(payload) {
|
|
|
811
955
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
812
956
|
{
|
|
813
957
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
814
|
-
paths:
|
|
958
|
+
paths: TRANSFORM_PATHS_8
|
|
815
959
|
},
|
|
816
960
|
{
|
|
817
961
|
transformFn: transformRESTFloatToSDKFloat,
|
|
818
|
-
paths:
|
|
962
|
+
paths: TRANSFORM_PATHS_9
|
|
819
963
|
}
|
|
820
964
|
])
|
|
821
965
|
};
|
|
@@ -844,11 +988,11 @@ function addMultilingualPlugin(payload) {
|
|
|
844
988
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
845
989
|
{
|
|
846
990
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
847
|
-
paths:
|
|
991
|
+
paths: TRANSFORM_PATHS_8
|
|
848
992
|
},
|
|
849
993
|
{
|
|
850
994
|
transformFn: transformRESTFloatToSDKFloat,
|
|
851
|
-
paths:
|
|
995
|
+
paths: TRANSFORM_PATHS_9
|
|
852
996
|
}
|
|
853
997
|
])
|
|
854
998
|
};
|
|
@@ -877,11 +1021,11 @@ function deleteMultilingualPlugin(payload) {
|
|
|
877
1021
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
878
1022
|
{
|
|
879
1023
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
880
|
-
paths:
|
|
1024
|
+
paths: TRANSFORM_PATHS_8
|
|
881
1025
|
},
|
|
882
1026
|
{
|
|
883
1027
|
transformFn: transformRESTFloatToSDKFloat,
|
|
884
|
-
paths:
|
|
1028
|
+
paths: TRANSFORM_PATHS_9
|
|
885
1029
|
}
|
|
886
1030
|
])
|
|
887
1031
|
};
|
|
@@ -910,11 +1054,11 @@ function updateMultilingualPlugin(payload) {
|
|
|
910
1054
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
911
1055
|
{
|
|
912
1056
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
913
|
-
paths:
|
|
1057
|
+
paths: TRANSFORM_PATHS_8
|
|
914
1058
|
},
|
|
915
1059
|
{
|
|
916
1060
|
transformFn: transformRESTFloatToSDKFloat,
|
|
917
|
-
paths:
|
|
1061
|
+
paths: TRANSFORM_PATHS_9
|
|
918
1062
|
}
|
|
919
1063
|
])
|
|
920
1064
|
};
|
|
@@ -939,11 +1083,11 @@ function addCmsPlugin(payload) {
|
|
|
939
1083
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
940
1084
|
{
|
|
941
1085
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
942
|
-
paths:
|
|
1086
|
+
paths: TRANSFORM_PATHS_8
|
|
943
1087
|
},
|
|
944
1088
|
{
|
|
945
1089
|
transformFn: transformRESTFloatToSDKFloat,
|
|
946
|
-
paths:
|
|
1090
|
+
paths: TRANSFORM_PATHS_9
|
|
947
1091
|
}
|
|
948
1092
|
])
|
|
949
1093
|
};
|
|
@@ -968,11 +1112,11 @@ function deleteCmsPlugin(payload) {
|
|
|
968
1112
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
969
1113
|
{
|
|
970
1114
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
971
|
-
paths:
|
|
1115
|
+
paths: TRANSFORM_PATHS_8
|
|
972
1116
|
},
|
|
973
1117
|
{
|
|
974
1118
|
transformFn: transformRESTFloatToSDKFloat,
|
|
975
|
-
paths:
|
|
1119
|
+
paths: TRANSFORM_PATHS_9
|
|
976
1120
|
}
|
|
977
1121
|
])
|
|
978
1122
|
};
|
|
@@ -997,11 +1141,11 @@ function updateCmsPlugin(payload) {
|
|
|
997
1141
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
998
1142
|
{
|
|
999
1143
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1000
|
-
paths:
|
|
1144
|
+
paths: TRANSFORM_PATHS_8
|
|
1001
1145
|
},
|
|
1002
1146
|
{
|
|
1003
1147
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1004
|
-
paths:
|
|
1148
|
+
paths: TRANSFORM_PATHS_9
|
|
1005
1149
|
}
|
|
1006
1150
|
])
|
|
1007
1151
|
};
|
|
@@ -1026,11 +1170,11 @@ function addCatalogPlugin(payload) {
|
|
|
1026
1170
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1027
1171
|
{
|
|
1028
1172
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1029
|
-
paths:
|
|
1173
|
+
paths: TRANSFORM_PATHS_8
|
|
1030
1174
|
},
|
|
1031
1175
|
{
|
|
1032
1176
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1033
|
-
paths:
|
|
1177
|
+
paths: TRANSFORM_PATHS_9
|
|
1034
1178
|
}
|
|
1035
1179
|
])
|
|
1036
1180
|
};
|
|
@@ -1059,11 +1203,11 @@ function deleteCatalogPlugin(payload) {
|
|
|
1059
1203
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1060
1204
|
{
|
|
1061
1205
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1062
|
-
paths:
|
|
1206
|
+
paths: TRANSFORM_PATHS_8
|
|
1063
1207
|
},
|
|
1064
1208
|
{
|
|
1065
1209
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1066
|
-
paths:
|
|
1210
|
+
paths: TRANSFORM_PATHS_9
|
|
1067
1211
|
}
|
|
1068
1212
|
])
|
|
1069
1213
|
};
|
|
@@ -1092,11 +1236,11 @@ function updateCatalogPlugin(payload) {
|
|
|
1092
1236
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1093
1237
|
{
|
|
1094
1238
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1095
|
-
paths:
|
|
1239
|
+
paths: TRANSFORM_PATHS_8
|
|
1096
1240
|
},
|
|
1097
1241
|
{
|
|
1098
1242
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1099
|
-
paths:
|
|
1243
|
+
paths: TRANSFORM_PATHS_9
|
|
1100
1244
|
}
|
|
1101
1245
|
])
|
|
1102
1246
|
};
|
|
@@ -1125,11 +1269,11 @@ function addDraftItemsPlugin(payload) {
|
|
|
1125
1269
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1126
1270
|
{
|
|
1127
1271
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1128
|
-
paths:
|
|
1272
|
+
paths: TRANSFORM_PATHS_8
|
|
1129
1273
|
},
|
|
1130
1274
|
{
|
|
1131
1275
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1132
|
-
paths:
|
|
1276
|
+
paths: TRANSFORM_PATHS_9
|
|
1133
1277
|
}
|
|
1134
1278
|
])
|
|
1135
1279
|
};
|
|
@@ -1158,11 +1302,11 @@ function deleteDraftItemsPlugin(payload) {
|
|
|
1158
1302
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1159
1303
|
{
|
|
1160
1304
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1161
|
-
paths:
|
|
1305
|
+
paths: TRANSFORM_PATHS_8
|
|
1162
1306
|
},
|
|
1163
1307
|
{
|
|
1164
1308
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1165
|
-
paths:
|
|
1309
|
+
paths: TRANSFORM_PATHS_9
|
|
1166
1310
|
}
|
|
1167
1311
|
])
|
|
1168
1312
|
};
|
|
@@ -1191,11 +1335,11 @@ function updateDraftItemsPlugin(payload) {
|
|
|
1191
1335
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1192
1336
|
{
|
|
1193
1337
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1194
|
-
paths:
|
|
1338
|
+
paths: TRANSFORM_PATHS_8
|
|
1195
1339
|
},
|
|
1196
1340
|
{
|
|
1197
1341
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1198
|
-
paths:
|
|
1342
|
+
paths: TRANSFORM_PATHS_9
|
|
1199
1343
|
}
|
|
1200
1344
|
])
|
|
1201
1345
|
};
|
|
@@ -1208,15 +1352,15 @@ function patchDataCollectionField(payload) {
|
|
|
1208
1352
|
const serializedData = transformPaths(payload, [
|
|
1209
1353
|
{
|
|
1210
1354
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
1211
|
-
paths:
|
|
1355
|
+
paths: TRANSFORM_PATHS_10
|
|
1212
1356
|
},
|
|
1213
1357
|
{
|
|
1214
1358
|
transformFn: transformSDKFloatToRESTFloat,
|
|
1215
|
-
paths:
|
|
1359
|
+
paths: TRANSFORM_PATHS_11
|
|
1216
1360
|
},
|
|
1217
1361
|
{
|
|
1218
1362
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1219
|
-
paths:
|
|
1363
|
+
paths: TRANSFORM_PATHS_12
|
|
1220
1364
|
}
|
|
1221
1365
|
]);
|
|
1222
1366
|
const metadata = {
|
|
@@ -1238,11 +1382,11 @@ function patchDataCollectionField(payload) {
|
|
|
1238
1382
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1239
1383
|
{
|
|
1240
1384
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1241
|
-
paths:
|
|
1385
|
+
paths: TRANSFORM_PATHS_8
|
|
1242
1386
|
},
|
|
1243
1387
|
{
|
|
1244
1388
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1245
|
-
paths:
|
|
1389
|
+
paths: TRANSFORM_PATHS_9
|
|
1246
1390
|
}
|
|
1247
1391
|
])
|
|
1248
1392
|
};
|
|
@@ -1572,6 +1716,45 @@ async function listDataCollections2(options) {
|
|
|
1572
1716
|
throw transformedError;
|
|
1573
1717
|
}
|
|
1574
1718
|
}
|
|
1719
|
+
async function bulkGetDataCollections2(options) {
|
|
1720
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1721
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1722
|
+
dataCollectionIds: options?.dataCollectionIds,
|
|
1723
|
+
showDeletedCollections: options?.showDeletedCollections,
|
|
1724
|
+
includeReferencedCollections: options?.includeReferencedCollections,
|
|
1725
|
+
sort: options?.sort,
|
|
1726
|
+
consistentRead: options?.consistentRead,
|
|
1727
|
+
includeAllowedDataPermissions: options?.includeAllowedDataPermissions,
|
|
1728
|
+
fields: options?.fields
|
|
1729
|
+
});
|
|
1730
|
+
const reqOpts = bulkGetDataCollections(payload);
|
|
1731
|
+
sideEffects?.onSiteCall?.();
|
|
1732
|
+
try {
|
|
1733
|
+
const result = await httpClient.request(reqOpts);
|
|
1734
|
+
sideEffects?.onSuccess?.(result);
|
|
1735
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1736
|
+
} catch (err) {
|
|
1737
|
+
const transformedError = sdkTransformError(
|
|
1738
|
+
err,
|
|
1739
|
+
{
|
|
1740
|
+
spreadPathsToArguments: {},
|
|
1741
|
+
explicitPathsToArguments: {
|
|
1742
|
+
dataCollectionIds: "$[0].dataCollectionIds",
|
|
1743
|
+
showDeletedCollections: "$[0].showDeletedCollections",
|
|
1744
|
+
includeReferencedCollections: "$[0].includeReferencedCollections",
|
|
1745
|
+
sort: "$[0].sort",
|
|
1746
|
+
consistentRead: "$[0].consistentRead",
|
|
1747
|
+
includeAllowedDataPermissions: "$[0].includeAllowedDataPermissions",
|
|
1748
|
+
fields: "$[0].fields"
|
|
1749
|
+
},
|
|
1750
|
+
singleArgumentUnchanged: false
|
|
1751
|
+
},
|
|
1752
|
+
["options"]
|
|
1753
|
+
);
|
|
1754
|
+
sideEffects?.onError?.(err);
|
|
1755
|
+
throw transformedError;
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1575
1758
|
async function updateDataCollection2(collection) {
|
|
1576
1759
|
const { httpClient, sideEffects } = arguments[1];
|
|
1577
1760
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -2372,6 +2555,13 @@ function listDataCollections3(httpClient) {
|
|
|
2372
2555
|
{ httpClient }
|
|
2373
2556
|
);
|
|
2374
2557
|
}
|
|
2558
|
+
function bulkGetDataCollections3(httpClient) {
|
|
2559
|
+
return (options) => bulkGetDataCollections2(
|
|
2560
|
+
options,
|
|
2561
|
+
// @ts-ignore
|
|
2562
|
+
{ httpClient }
|
|
2563
|
+
);
|
|
2564
|
+
}
|
|
2375
2565
|
function updateDataCollection3(httpClient) {
|
|
2376
2566
|
return (collection) => updateDataCollection2(
|
|
2377
2567
|
collection,
|
|
@@ -2594,6 +2784,7 @@ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
|
2594
2784
|
var createDataCollection4 = /* @__PURE__ */ createRESTModule(createDataCollection3);
|
|
2595
2785
|
var getDataCollection4 = /* @__PURE__ */ createRESTModule(getDataCollection3);
|
|
2596
2786
|
var listDataCollections4 = /* @__PURE__ */ createRESTModule(listDataCollections3);
|
|
2787
|
+
var bulkGetDataCollections4 = /* @__PURE__ */ createRESTModule(bulkGetDataCollections3);
|
|
2597
2788
|
var updateDataCollection4 = /* @__PURE__ */ createRESTModule(updateDataCollection3);
|
|
2598
2789
|
var deleteDataCollection4 = /* @__PURE__ */ createRESTModule(deleteDataCollection3);
|
|
2599
2790
|
var restoreDataCollection4 = /* @__PURE__ */ createRESTModule(restoreDataCollection3);
|
|
@@ -2656,6 +2847,7 @@ export {
|
|
|
2656
2847
|
addMultilingualPlugin4 as addMultilingualPlugin,
|
|
2657
2848
|
addPublishPlugin4 as addPublishPlugin,
|
|
2658
2849
|
addUrlizedPlugin4 as addUrlizedPlugin,
|
|
2850
|
+
bulkGetDataCollections4 as bulkGetDataCollections,
|
|
2659
2851
|
createDataCollection4 as createDataCollection,
|
|
2660
2852
|
createDataCollectionField4 as createDataCollectionField,
|
|
2661
2853
|
deleteCatalogPlugin4 as deleteCatalogPlugin,
|