@wix/auto_sdk_data_collections 1.0.99 → 1.0.101
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 +1 -1
- package/build/cjs/index.js +597 -747
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +103 -1
- package/build/cjs/index.typings.js +543 -747
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +86 -2
- package/build/cjs/meta.js +477 -747
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +590 -746
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +103 -1
- package/build/es/index.typings.mjs +536 -746
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +86 -2
- package/build/es/meta.mjs +470 -746
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +69 -3
- package/build/internal/cjs/index.typings.d.ts +193 -1
- package/build/internal/cjs/meta.d.ts +86 -2
- package/build/internal/es/index.d.mts +69 -3
- package/build/internal/es/index.typings.d.mts +193 -1
- package/build/internal/es/meta.d.mts +86 -2
- package/package.json +2 -2
|
@@ -14,6 +14,105 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
14
14
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
15
15
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
16
16
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
17
|
+
var TRANSFORM_PATHS_0 = [
|
|
18
|
+
{ path: "collection.createdDate" },
|
|
19
|
+
{ path: "collection.updatedDate" },
|
|
20
|
+
{ path: "collection.fields.typeMetadata.date.defaultValueFixed" },
|
|
21
|
+
{ path: "collection.fields.typeMetadata.date.minDateFixed" },
|
|
22
|
+
{ path: "collection.fields.typeMetadata.date.maxDateFixed" },
|
|
23
|
+
{ path: "collection.fields.typeMetadata.datetime.defaultValueFixed" },
|
|
24
|
+
{ path: "collection.fields.typeMetadata.datetime.minDateFixed" },
|
|
25
|
+
{ path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
26
|
+
];
|
|
27
|
+
var TRANSFORM_PATHS_1 = [
|
|
28
|
+
{ path: "collection.fields.numberRange.min" },
|
|
29
|
+
{ path: "collection.fields.numberRange.max" },
|
|
30
|
+
{ path: "collection.fields.typeMetadata.number.defaultValue" },
|
|
31
|
+
{ path: "collection.fields.typeMetadata.number.min" },
|
|
32
|
+
{ path: "collection.fields.typeMetadata.number.max" }
|
|
33
|
+
];
|
|
34
|
+
var TRANSFORM_PATHS_2 = [
|
|
35
|
+
{ path: "collection.createdDate" },
|
|
36
|
+
{ path: "collection.updatedDate" },
|
|
37
|
+
{ path: "collection.fields.typeMetadata.date.defaultValueFixed" },
|
|
38
|
+
{ path: "collection.fields.typeMetadata.date.minDateFixed" },
|
|
39
|
+
{ path: "collection.fields.typeMetadata.date.maxDateFixed" },
|
|
40
|
+
{ path: "collection.fields.typeMetadata.datetime.defaultValueFixed" },
|
|
41
|
+
{ path: "collection.fields.typeMetadata.datetime.minDateFixed" },
|
|
42
|
+
{ path: "collection.fields.typeMetadata.datetime.maxDateFixed" },
|
|
43
|
+
{ path: "referencedCollections.createdDate" },
|
|
44
|
+
{ path: "referencedCollections.updatedDate" },
|
|
45
|
+
{ path: "referencedCollections.fields.typeMetadata.date.defaultValueFixed" },
|
|
46
|
+
{ path: "referencedCollections.fields.typeMetadata.date.minDateFixed" },
|
|
47
|
+
{ path: "referencedCollections.fields.typeMetadata.date.maxDateFixed" },
|
|
48
|
+
{
|
|
49
|
+
path: "referencedCollections.fields.typeMetadata.datetime.defaultValueFixed"
|
|
50
|
+
},
|
|
51
|
+
{ path: "referencedCollections.fields.typeMetadata.datetime.minDateFixed" },
|
|
52
|
+
{ path: "referencedCollections.fields.typeMetadata.datetime.maxDateFixed" }
|
|
53
|
+
];
|
|
54
|
+
var TRANSFORM_PATHS_3 = [
|
|
55
|
+
{ path: "collection.fields.numberRange.min" },
|
|
56
|
+
{ path: "collection.fields.numberRange.max" },
|
|
57
|
+
{ path: "collection.fields.typeMetadata.number.defaultValue" },
|
|
58
|
+
{ path: "collection.fields.typeMetadata.number.min" },
|
|
59
|
+
{ path: "collection.fields.typeMetadata.number.max" },
|
|
60
|
+
{ path: "referencedCollections.fields.numberRange.min" },
|
|
61
|
+
{ path: "referencedCollections.fields.numberRange.max" },
|
|
62
|
+
{ path: "referencedCollections.fields.typeMetadata.number.defaultValue" },
|
|
63
|
+
{ path: "referencedCollections.fields.typeMetadata.number.min" },
|
|
64
|
+
{ path: "referencedCollections.fields.typeMetadata.number.max" }
|
|
65
|
+
];
|
|
66
|
+
var TRANSFORM_PATHS_4 = [
|
|
67
|
+
{ path: "collections.createdDate" },
|
|
68
|
+
{ path: "collections.updatedDate" },
|
|
69
|
+
{ path: "collections.fields.typeMetadata.date.defaultValueFixed" },
|
|
70
|
+
{ path: "collections.fields.typeMetadata.date.minDateFixed" },
|
|
71
|
+
{ path: "collections.fields.typeMetadata.date.maxDateFixed" },
|
|
72
|
+
{ path: "collections.fields.typeMetadata.datetime.defaultValueFixed" },
|
|
73
|
+
{ path: "collections.fields.typeMetadata.datetime.minDateFixed" },
|
|
74
|
+
{ path: "collections.fields.typeMetadata.datetime.maxDateFixed" }
|
|
75
|
+
];
|
|
76
|
+
var TRANSFORM_PATHS_5 = [
|
|
77
|
+
{ path: "collections.fields.numberRange.min" },
|
|
78
|
+
{ path: "collections.fields.numberRange.max" },
|
|
79
|
+
{ path: "collections.fields.typeMetadata.number.defaultValue" },
|
|
80
|
+
{ path: "collections.fields.typeMetadata.number.min" },
|
|
81
|
+
{ path: "collections.fields.typeMetadata.number.max" }
|
|
82
|
+
];
|
|
83
|
+
var TRANSFORM_PATHS_6 = [
|
|
84
|
+
{ path: "dataCollection.createdDate" },
|
|
85
|
+
{ path: "dataCollection.updatedDate" },
|
|
86
|
+
{ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed" },
|
|
87
|
+
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
88
|
+
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
89
|
+
{ path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed" },
|
|
90
|
+
{ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed" },
|
|
91
|
+
{ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
92
|
+
];
|
|
93
|
+
var TRANSFORM_PATHS_7 = [
|
|
94
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
95
|
+
{ path: "dataCollection.fields.numberRange.max" },
|
|
96
|
+
{ path: "dataCollection.fields.typeMetadata.number.defaultValue" },
|
|
97
|
+
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
98
|
+
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
99
|
+
];
|
|
100
|
+
var TRANSFORM_PATHS_8 = [{ path: "fieldMask" }];
|
|
101
|
+
var TRANSFORM_PATHS_9 = [
|
|
102
|
+
{ path: "field.numberRange.min" },
|
|
103
|
+
{ path: "field.numberRange.max" },
|
|
104
|
+
{ path: "field.typeMetadata.number.defaultValue" },
|
|
105
|
+
{ path: "field.typeMetadata.number.min" },
|
|
106
|
+
{ path: "field.typeMetadata.number.max" }
|
|
107
|
+
];
|
|
108
|
+
var TRANSFORM_PATHS_10 = [
|
|
109
|
+
{ path: "field.typeMetadata.date.defaultValueFixed" },
|
|
110
|
+
{ path: "field.typeMetadata.date.minDateFixed" },
|
|
111
|
+
{ path: "field.typeMetadata.date.maxDateFixed" },
|
|
112
|
+
{ path: "field.typeMetadata.datetime.defaultValueFixed" },
|
|
113
|
+
{ path: "field.typeMetadata.datetime.minDateFixed" },
|
|
114
|
+
{ path: "field.typeMetadata.datetime.maxDateFixed" }
|
|
115
|
+
];
|
|
17
116
|
function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(opts) {
|
|
18
117
|
const domainToMappings = {
|
|
19
118
|
"api._api_base_domain_": [
|
|
@@ -377,26 +476,11 @@ function createDataCollection(payload) {
|
|
|
377
476
|
const serializedData = transformPaths(payload, [
|
|
378
477
|
{
|
|
379
478
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
380
|
-
paths:
|
|
381
|
-
{ path: "collection.createdDate" },
|
|
382
|
-
{ path: "collection.updatedDate" },
|
|
383
|
-
{ path: "collection.fields.typeMetadata.date.defaultValueFixed" },
|
|
384
|
-
{ path: "collection.fields.typeMetadata.date.minDateFixed" },
|
|
385
|
-
{ path: "collection.fields.typeMetadata.date.maxDateFixed" },
|
|
386
|
-
{ path: "collection.fields.typeMetadata.datetime.defaultValueFixed" },
|
|
387
|
-
{ path: "collection.fields.typeMetadata.datetime.minDateFixed" },
|
|
388
|
-
{ path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
389
|
-
]
|
|
479
|
+
paths: TRANSFORM_PATHS_0
|
|
390
480
|
},
|
|
391
481
|
{
|
|
392
482
|
transformFn: transformSDKFloatToRESTFloat,
|
|
393
|
-
paths:
|
|
394
|
-
{ path: "collection.fields.numberRange.min" },
|
|
395
|
-
{ path: "collection.fields.numberRange.max" },
|
|
396
|
-
{ path: "collection.fields.typeMetadata.number.defaultValue" },
|
|
397
|
-
{ path: "collection.fields.typeMetadata.number.min" },
|
|
398
|
-
{ path: "collection.fields.typeMetadata.number.max" }
|
|
399
|
-
]
|
|
483
|
+
paths: TRANSFORM_PATHS_1
|
|
400
484
|
}
|
|
401
485
|
]);
|
|
402
486
|
const metadata = {
|
|
@@ -414,28 +498,11 @@ function createDataCollection(payload) {
|
|
|
414
498
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
415
499
|
{
|
|
416
500
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
417
|
-
paths:
|
|
418
|
-
{ path: "collection.createdDate" },
|
|
419
|
-
{ path: "collection.updatedDate" },
|
|
420
|
-
{ path: "collection.fields.typeMetadata.date.defaultValueFixed" },
|
|
421
|
-
{ path: "collection.fields.typeMetadata.date.minDateFixed" },
|
|
422
|
-
{ path: "collection.fields.typeMetadata.date.maxDateFixed" },
|
|
423
|
-
{
|
|
424
|
-
path: "collection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
425
|
-
},
|
|
426
|
-
{ path: "collection.fields.typeMetadata.datetime.minDateFixed" },
|
|
427
|
-
{ path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
428
|
-
]
|
|
501
|
+
paths: TRANSFORM_PATHS_0
|
|
429
502
|
},
|
|
430
503
|
{
|
|
431
504
|
transformFn: transformRESTFloatToSDKFloat,
|
|
432
|
-
paths:
|
|
433
|
-
{ path: "collection.fields.numberRange.min" },
|
|
434
|
-
{ path: "collection.fields.numberRange.max" },
|
|
435
|
-
{ path: "collection.fields.typeMetadata.number.defaultValue" },
|
|
436
|
-
{ path: "collection.fields.typeMetadata.number.min" },
|
|
437
|
-
{ path: "collection.fields.typeMetadata.number.max" }
|
|
438
|
-
]
|
|
505
|
+
paths: TRANSFORM_PATHS_1
|
|
439
506
|
}
|
|
440
507
|
])
|
|
441
508
|
};
|
|
@@ -460,55 +527,11 @@ function getDataCollection(payload) {
|
|
|
460
527
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
461
528
|
{
|
|
462
529
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
463
|
-
paths:
|
|
464
|
-
{ path: "collection.createdDate" },
|
|
465
|
-
{ path: "collection.updatedDate" },
|
|
466
|
-
{ path: "collection.fields.typeMetadata.date.defaultValueFixed" },
|
|
467
|
-
{ path: "collection.fields.typeMetadata.date.minDateFixed" },
|
|
468
|
-
{ path: "collection.fields.typeMetadata.date.maxDateFixed" },
|
|
469
|
-
{
|
|
470
|
-
path: "collection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
471
|
-
},
|
|
472
|
-
{ path: "collection.fields.typeMetadata.datetime.minDateFixed" },
|
|
473
|
-
{ path: "collection.fields.typeMetadata.datetime.maxDateFixed" },
|
|
474
|
-
{ path: "referencedCollections.createdDate" },
|
|
475
|
-
{ path: "referencedCollections.updatedDate" },
|
|
476
|
-
{
|
|
477
|
-
path: "referencedCollections.fields.typeMetadata.date.defaultValueFixed"
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
path: "referencedCollections.fields.typeMetadata.date.minDateFixed"
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
path: "referencedCollections.fields.typeMetadata.date.maxDateFixed"
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
path: "referencedCollections.fields.typeMetadata.datetime.defaultValueFixed"
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
path: "referencedCollections.fields.typeMetadata.datetime.minDateFixed"
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
path: "referencedCollections.fields.typeMetadata.datetime.maxDateFixed"
|
|
493
|
-
}
|
|
494
|
-
]
|
|
530
|
+
paths: TRANSFORM_PATHS_2
|
|
495
531
|
},
|
|
496
532
|
{
|
|
497
533
|
transformFn: transformRESTFloatToSDKFloat,
|
|
498
|
-
paths:
|
|
499
|
-
{ path: "collection.fields.numberRange.min" },
|
|
500
|
-
{ path: "collection.fields.numberRange.max" },
|
|
501
|
-
{ path: "collection.fields.typeMetadata.number.defaultValue" },
|
|
502
|
-
{ path: "collection.fields.typeMetadata.number.min" },
|
|
503
|
-
{ path: "collection.fields.typeMetadata.number.max" },
|
|
504
|
-
{ path: "referencedCollections.fields.numberRange.min" },
|
|
505
|
-
{ path: "referencedCollections.fields.numberRange.max" },
|
|
506
|
-
{
|
|
507
|
-
path: "referencedCollections.fields.typeMetadata.number.defaultValue"
|
|
508
|
-
},
|
|
509
|
-
{ path: "referencedCollections.fields.typeMetadata.number.min" },
|
|
510
|
-
{ path: "referencedCollections.fields.typeMetadata.number.max" }
|
|
511
|
-
]
|
|
534
|
+
paths: TRANSFORM_PATHS_3
|
|
512
535
|
}
|
|
513
536
|
])
|
|
514
537
|
};
|
|
@@ -533,30 +556,11 @@ function listDataCollections(payload) {
|
|
|
533
556
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
534
557
|
{
|
|
535
558
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
536
|
-
paths:
|
|
537
|
-
{ path: "collections.createdDate" },
|
|
538
|
-
{ path: "collections.updatedDate" },
|
|
539
|
-
{
|
|
540
|
-
path: "collections.fields.typeMetadata.date.defaultValueFixed"
|
|
541
|
-
},
|
|
542
|
-
{ path: "collections.fields.typeMetadata.date.minDateFixed" },
|
|
543
|
-
{ path: "collections.fields.typeMetadata.date.maxDateFixed" },
|
|
544
|
-
{
|
|
545
|
-
path: "collections.fields.typeMetadata.datetime.defaultValueFixed"
|
|
546
|
-
},
|
|
547
|
-
{ path: "collections.fields.typeMetadata.datetime.minDateFixed" },
|
|
548
|
-
{ path: "collections.fields.typeMetadata.datetime.maxDateFixed" }
|
|
549
|
-
]
|
|
559
|
+
paths: TRANSFORM_PATHS_4
|
|
550
560
|
},
|
|
551
561
|
{
|
|
552
562
|
transformFn: transformRESTFloatToSDKFloat,
|
|
553
|
-
paths:
|
|
554
|
-
{ path: "collections.fields.numberRange.min" },
|
|
555
|
-
{ path: "collections.fields.numberRange.max" },
|
|
556
|
-
{ path: "collections.fields.typeMetadata.number.defaultValue" },
|
|
557
|
-
{ path: "collections.fields.typeMetadata.number.min" },
|
|
558
|
-
{ path: "collections.fields.typeMetadata.number.max" }
|
|
559
|
-
]
|
|
563
|
+
paths: TRANSFORM_PATHS_5
|
|
560
564
|
}
|
|
561
565
|
])
|
|
562
566
|
};
|
|
@@ -569,26 +573,11 @@ function updateDataCollection(payload) {
|
|
|
569
573
|
const serializedData = transformPaths(payload, [
|
|
570
574
|
{
|
|
571
575
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
572
|
-
paths:
|
|
573
|
-
{ path: "collection.createdDate" },
|
|
574
|
-
{ path: "collection.updatedDate" },
|
|
575
|
-
{ path: "collection.fields.typeMetadata.date.defaultValueFixed" },
|
|
576
|
-
{ path: "collection.fields.typeMetadata.date.minDateFixed" },
|
|
577
|
-
{ path: "collection.fields.typeMetadata.date.maxDateFixed" },
|
|
578
|
-
{ path: "collection.fields.typeMetadata.datetime.defaultValueFixed" },
|
|
579
|
-
{ path: "collection.fields.typeMetadata.datetime.minDateFixed" },
|
|
580
|
-
{ path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
581
|
-
]
|
|
576
|
+
paths: TRANSFORM_PATHS_0
|
|
582
577
|
},
|
|
583
578
|
{
|
|
584
579
|
transformFn: transformSDKFloatToRESTFloat,
|
|
585
|
-
paths:
|
|
586
|
-
{ path: "collection.fields.numberRange.min" },
|
|
587
|
-
{ path: "collection.fields.numberRange.max" },
|
|
588
|
-
{ path: "collection.fields.typeMetadata.number.defaultValue" },
|
|
589
|
-
{ path: "collection.fields.typeMetadata.number.min" },
|
|
590
|
-
{ path: "collection.fields.typeMetadata.number.max" }
|
|
591
|
-
]
|
|
580
|
+
paths: TRANSFORM_PATHS_1
|
|
592
581
|
}
|
|
593
582
|
]);
|
|
594
583
|
const metadata = {
|
|
@@ -606,28 +595,11 @@ function updateDataCollection(payload) {
|
|
|
606
595
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
607
596
|
{
|
|
608
597
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
609
|
-
paths:
|
|
610
|
-
{ path: "collection.createdDate" },
|
|
611
|
-
{ path: "collection.updatedDate" },
|
|
612
|
-
{ path: "collection.fields.typeMetadata.date.defaultValueFixed" },
|
|
613
|
-
{ path: "collection.fields.typeMetadata.date.minDateFixed" },
|
|
614
|
-
{ path: "collection.fields.typeMetadata.date.maxDateFixed" },
|
|
615
|
-
{
|
|
616
|
-
path: "collection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
617
|
-
},
|
|
618
|
-
{ path: "collection.fields.typeMetadata.datetime.minDateFixed" },
|
|
619
|
-
{ path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
620
|
-
]
|
|
598
|
+
paths: TRANSFORM_PATHS_0
|
|
621
599
|
},
|
|
622
600
|
{
|
|
623
601
|
transformFn: transformRESTFloatToSDKFloat,
|
|
624
|
-
paths:
|
|
625
|
-
{ path: "collection.fields.numberRange.min" },
|
|
626
|
-
{ path: "collection.fields.numberRange.max" },
|
|
627
|
-
{ path: "collection.fields.typeMetadata.number.defaultValue" },
|
|
628
|
-
{ path: "collection.fields.typeMetadata.number.min" },
|
|
629
|
-
{ path: "collection.fields.typeMetadata.number.max" }
|
|
630
|
-
]
|
|
602
|
+
paths: TRANSFORM_PATHS_1
|
|
631
603
|
}
|
|
632
604
|
])
|
|
633
605
|
};
|
|
@@ -675,36 +647,11 @@ function restoreDataCollection(payload) {
|
|
|
675
647
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
676
648
|
{
|
|
677
649
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
678
|
-
paths:
|
|
679
|
-
{ path: "dataCollection.createdDate" },
|
|
680
|
-
{ path: "dataCollection.updatedDate" },
|
|
681
|
-
{
|
|
682
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
683
|
-
},
|
|
684
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
685
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
686
|
-
{
|
|
687
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
688
|
-
},
|
|
689
|
-
{
|
|
690
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
694
|
-
}
|
|
695
|
-
]
|
|
650
|
+
paths: TRANSFORM_PATHS_6
|
|
696
651
|
},
|
|
697
652
|
{
|
|
698
653
|
transformFn: transformRESTFloatToSDKFloat,
|
|
699
|
-
paths:
|
|
700
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
701
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
702
|
-
{
|
|
703
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
704
|
-
},
|
|
705
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
706
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
707
|
-
]
|
|
654
|
+
paths: TRANSFORM_PATHS_7
|
|
708
655
|
}
|
|
709
656
|
])
|
|
710
657
|
};
|
|
@@ -717,32 +664,15 @@ function patchDataCollection(payload) {
|
|
|
717
664
|
const serializedData = transformPaths(payload, [
|
|
718
665
|
{
|
|
719
666
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
720
|
-
paths:
|
|
667
|
+
paths: TRANSFORM_PATHS_8
|
|
721
668
|
},
|
|
722
669
|
{
|
|
723
670
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
724
|
-
paths:
|
|
725
|
-
{ path: "dataCollection.createdDate" },
|
|
726
|
-
{ path: "dataCollection.updatedDate" },
|
|
727
|
-
{ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed" },
|
|
728
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
729
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
730
|
-
{
|
|
731
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
732
|
-
},
|
|
733
|
-
{ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed" },
|
|
734
|
-
{ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
735
|
-
]
|
|
671
|
+
paths: TRANSFORM_PATHS_6
|
|
736
672
|
},
|
|
737
673
|
{
|
|
738
674
|
transformFn: transformSDKFloatToRESTFloat,
|
|
739
|
-
paths:
|
|
740
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
741
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
742
|
-
{ path: "dataCollection.fields.typeMetadata.number.defaultValue" },
|
|
743
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
744
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
745
|
-
]
|
|
675
|
+
paths: TRANSFORM_PATHS_7
|
|
746
676
|
}
|
|
747
677
|
]);
|
|
748
678
|
const metadata = {
|
|
@@ -764,36 +694,11 @@ function patchDataCollection(payload) {
|
|
|
764
694
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
765
695
|
{
|
|
766
696
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
767
|
-
paths:
|
|
768
|
-
{ path: "dataCollection.createdDate" },
|
|
769
|
-
{ path: "dataCollection.updatedDate" },
|
|
770
|
-
{
|
|
771
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
772
|
-
},
|
|
773
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
774
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
775
|
-
{
|
|
776
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
777
|
-
},
|
|
778
|
-
{
|
|
779
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
783
|
-
}
|
|
784
|
-
]
|
|
697
|
+
paths: TRANSFORM_PATHS_6
|
|
785
698
|
},
|
|
786
699
|
{
|
|
787
700
|
transformFn: transformRESTFloatToSDKFloat,
|
|
788
|
-
paths:
|
|
789
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
790
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
791
|
-
{
|
|
792
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
793
|
-
},
|
|
794
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
795
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
796
|
-
]
|
|
701
|
+
paths: TRANSFORM_PATHS_7
|
|
797
702
|
}
|
|
798
703
|
])
|
|
799
704
|
};
|
|
@@ -806,24 +711,11 @@ function createDataCollectionField(payload) {
|
|
|
806
711
|
const serializedData = transformPaths(payload, [
|
|
807
712
|
{
|
|
808
713
|
transformFn: transformSDKFloatToRESTFloat,
|
|
809
|
-
paths:
|
|
810
|
-
{ path: "field.numberRange.min" },
|
|
811
|
-
{ path: "field.numberRange.max" },
|
|
812
|
-
{ path: "field.typeMetadata.number.defaultValue" },
|
|
813
|
-
{ path: "field.typeMetadata.number.min" },
|
|
814
|
-
{ path: "field.typeMetadata.number.max" }
|
|
815
|
-
]
|
|
714
|
+
paths: TRANSFORM_PATHS_9
|
|
816
715
|
},
|
|
817
716
|
{
|
|
818
717
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
819
|
-
paths:
|
|
820
|
-
{ path: "field.typeMetadata.date.defaultValueFixed" },
|
|
821
|
-
{ path: "field.typeMetadata.date.minDateFixed" },
|
|
822
|
-
{ path: "field.typeMetadata.date.maxDateFixed" },
|
|
823
|
-
{ path: "field.typeMetadata.datetime.defaultValueFixed" },
|
|
824
|
-
{ path: "field.typeMetadata.datetime.minDateFixed" },
|
|
825
|
-
{ path: "field.typeMetadata.datetime.maxDateFixed" }
|
|
826
|
-
]
|
|
718
|
+
paths: TRANSFORM_PATHS_10
|
|
827
719
|
}
|
|
828
720
|
]);
|
|
829
721
|
const metadata = {
|
|
@@ -845,36 +737,11 @@ function createDataCollectionField(payload) {
|
|
|
845
737
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
846
738
|
{
|
|
847
739
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
848
|
-
paths:
|
|
849
|
-
{ path: "dataCollection.createdDate" },
|
|
850
|
-
{ path: "dataCollection.updatedDate" },
|
|
851
|
-
{
|
|
852
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
853
|
-
},
|
|
854
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
855
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
856
|
-
{
|
|
857
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
858
|
-
},
|
|
859
|
-
{
|
|
860
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
861
|
-
},
|
|
862
|
-
{
|
|
863
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
864
|
-
}
|
|
865
|
-
]
|
|
740
|
+
paths: TRANSFORM_PATHS_6
|
|
866
741
|
},
|
|
867
742
|
{
|
|
868
743
|
transformFn: transformRESTFloatToSDKFloat,
|
|
869
|
-
paths:
|
|
870
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
871
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
872
|
-
{
|
|
873
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
874
|
-
},
|
|
875
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
876
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
877
|
-
]
|
|
744
|
+
paths: TRANSFORM_PATHS_7
|
|
878
745
|
}
|
|
879
746
|
])
|
|
880
747
|
};
|
|
@@ -887,24 +754,11 @@ function updateDataCollectionField(payload) {
|
|
|
887
754
|
const serializedData = transformPaths(payload, [
|
|
888
755
|
{
|
|
889
756
|
transformFn: transformSDKFloatToRESTFloat,
|
|
890
|
-
paths:
|
|
891
|
-
{ path: "field.numberRange.min" },
|
|
892
|
-
{ path: "field.numberRange.max" },
|
|
893
|
-
{ path: "field.typeMetadata.number.defaultValue" },
|
|
894
|
-
{ path: "field.typeMetadata.number.min" },
|
|
895
|
-
{ path: "field.typeMetadata.number.max" }
|
|
896
|
-
]
|
|
757
|
+
paths: TRANSFORM_PATHS_9
|
|
897
758
|
},
|
|
898
759
|
{
|
|
899
760
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
900
|
-
paths:
|
|
901
|
-
{ path: "field.typeMetadata.date.defaultValueFixed" },
|
|
902
|
-
{ path: "field.typeMetadata.date.minDateFixed" },
|
|
903
|
-
{ path: "field.typeMetadata.date.maxDateFixed" },
|
|
904
|
-
{ path: "field.typeMetadata.datetime.defaultValueFixed" },
|
|
905
|
-
{ path: "field.typeMetadata.datetime.minDateFixed" },
|
|
906
|
-
{ path: "field.typeMetadata.datetime.maxDateFixed" }
|
|
907
|
-
]
|
|
761
|
+
paths: TRANSFORM_PATHS_10
|
|
908
762
|
}
|
|
909
763
|
]);
|
|
910
764
|
const metadata = {
|
|
@@ -926,36 +780,11 @@ function updateDataCollectionField(payload) {
|
|
|
926
780
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
927
781
|
{
|
|
928
782
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
929
|
-
paths:
|
|
930
|
-
{ path: "dataCollection.createdDate" },
|
|
931
|
-
{ path: "dataCollection.updatedDate" },
|
|
932
|
-
{
|
|
933
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
934
|
-
},
|
|
935
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
936
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
937
|
-
{
|
|
938
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
939
|
-
},
|
|
940
|
-
{
|
|
941
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
945
|
-
}
|
|
946
|
-
]
|
|
783
|
+
paths: TRANSFORM_PATHS_6
|
|
947
784
|
},
|
|
948
785
|
{
|
|
949
786
|
transformFn: transformRESTFloatToSDKFloat,
|
|
950
|
-
paths:
|
|
951
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
952
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
953
|
-
{
|
|
954
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
955
|
-
},
|
|
956
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
957
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
958
|
-
]
|
|
787
|
+
paths: TRANSFORM_PATHS_7
|
|
959
788
|
}
|
|
960
789
|
])
|
|
961
790
|
};
|
|
@@ -980,36 +809,11 @@ function deleteDataCollectionField(payload) {
|
|
|
980
809
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
981
810
|
{
|
|
982
811
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
983
|
-
paths:
|
|
984
|
-
{ path: "dataCollection.createdDate" },
|
|
985
|
-
{ path: "dataCollection.updatedDate" },
|
|
986
|
-
{
|
|
987
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
988
|
-
},
|
|
989
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
990
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
991
|
-
{
|
|
992
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
993
|
-
},
|
|
994
|
-
{
|
|
995
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
996
|
-
},
|
|
997
|
-
{
|
|
998
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
999
|
-
}
|
|
1000
|
-
]
|
|
812
|
+
paths: TRANSFORM_PATHS_6
|
|
1001
813
|
},
|
|
1002
814
|
{
|
|
1003
815
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1004
|
-
paths:
|
|
1005
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1006
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1007
|
-
{
|
|
1008
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1009
|
-
},
|
|
1010
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1011
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1012
|
-
]
|
|
816
|
+
paths: TRANSFORM_PATHS_7
|
|
1013
817
|
}
|
|
1014
818
|
])
|
|
1015
819
|
};
|
|
@@ -1034,36 +838,11 @@ function addDataCollectionPlugin(payload) {
|
|
|
1034
838
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1035
839
|
{
|
|
1036
840
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1037
|
-
paths:
|
|
1038
|
-
{ path: "dataCollection.createdDate" },
|
|
1039
|
-
{ path: "dataCollection.updatedDate" },
|
|
1040
|
-
{
|
|
1041
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1042
|
-
},
|
|
1043
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1044
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1045
|
-
{
|
|
1046
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1047
|
-
},
|
|
1048
|
-
{
|
|
1049
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1050
|
-
},
|
|
1051
|
-
{
|
|
1052
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1053
|
-
}
|
|
1054
|
-
]
|
|
841
|
+
paths: TRANSFORM_PATHS_6
|
|
1055
842
|
},
|
|
1056
843
|
{
|
|
1057
844
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1058
|
-
paths:
|
|
1059
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1060
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1061
|
-
{
|
|
1062
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1063
|
-
},
|
|
1064
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1065
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1066
|
-
]
|
|
845
|
+
paths: TRANSFORM_PATHS_7
|
|
1067
846
|
}
|
|
1068
847
|
])
|
|
1069
848
|
};
|
|
@@ -1088,36 +867,11 @@ function deleteDataCollectionPlugin(payload) {
|
|
|
1088
867
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1089
868
|
{
|
|
1090
869
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1091
|
-
paths:
|
|
1092
|
-
{ path: "dataCollection.createdDate" },
|
|
1093
|
-
{ path: "dataCollection.updatedDate" },
|
|
1094
|
-
{
|
|
1095
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1096
|
-
},
|
|
1097
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1098
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1099
|
-
{
|
|
1100
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1104
|
-
},
|
|
1105
|
-
{
|
|
1106
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1107
|
-
}
|
|
1108
|
-
]
|
|
870
|
+
paths: TRANSFORM_PATHS_6
|
|
1109
871
|
},
|
|
1110
872
|
{
|
|
1111
873
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1112
|
-
paths:
|
|
1113
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1114
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1115
|
-
{
|
|
1116
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1117
|
-
},
|
|
1118
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1119
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1120
|
-
]
|
|
874
|
+
paths: TRANSFORM_PATHS_7
|
|
1121
875
|
}
|
|
1122
876
|
])
|
|
1123
877
|
};
|
|
@@ -1142,36 +896,11 @@ function addPublishPlugin(payload) {
|
|
|
1142
896
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1143
897
|
{
|
|
1144
898
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1145
|
-
paths:
|
|
1146
|
-
{ path: "dataCollection.createdDate" },
|
|
1147
|
-
{ path: "dataCollection.updatedDate" },
|
|
1148
|
-
{
|
|
1149
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1150
|
-
},
|
|
1151
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1152
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1153
|
-
{
|
|
1154
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1158
|
-
},
|
|
1159
|
-
{
|
|
1160
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1161
|
-
}
|
|
1162
|
-
]
|
|
899
|
+
paths: TRANSFORM_PATHS_6
|
|
1163
900
|
},
|
|
1164
901
|
{
|
|
1165
902
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1166
|
-
paths:
|
|
1167
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1168
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1169
|
-
{
|
|
1170
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1171
|
-
},
|
|
1172
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1173
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1174
|
-
]
|
|
903
|
+
paths: TRANSFORM_PATHS_7
|
|
1175
904
|
}
|
|
1176
905
|
])
|
|
1177
906
|
};
|
|
@@ -1200,36 +929,11 @@ function deletePublishPlugin(payload) {
|
|
|
1200
929
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1201
930
|
{
|
|
1202
931
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1203
|
-
paths:
|
|
1204
|
-
{ path: "dataCollection.createdDate" },
|
|
1205
|
-
{ path: "dataCollection.updatedDate" },
|
|
1206
|
-
{
|
|
1207
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1208
|
-
},
|
|
1209
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1210
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1211
|
-
{
|
|
1212
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1213
|
-
},
|
|
1214
|
-
{
|
|
1215
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1216
|
-
},
|
|
1217
|
-
{
|
|
1218
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1219
|
-
}
|
|
1220
|
-
]
|
|
932
|
+
paths: TRANSFORM_PATHS_6
|
|
1221
933
|
},
|
|
1222
934
|
{
|
|
1223
935
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1224
|
-
paths:
|
|
1225
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1226
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1227
|
-
{
|
|
1228
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1229
|
-
},
|
|
1230
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1231
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1232
|
-
]
|
|
936
|
+
paths: TRANSFORM_PATHS_7
|
|
1233
937
|
}
|
|
1234
938
|
])
|
|
1235
939
|
};
|
|
@@ -1237,6 +941,39 @@ function deletePublishPlugin(payload) {
|
|
|
1237
941
|
}
|
|
1238
942
|
return __deletePublishPlugin;
|
|
1239
943
|
}
|
|
944
|
+
function updatePublishPlugin(payload) {
|
|
945
|
+
function __updatePublishPlugin({ host }) {
|
|
946
|
+
const metadata = {
|
|
947
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
948
|
+
method: "POST",
|
|
949
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdatePublishPlugin",
|
|
950
|
+
packageName: PACKAGE_NAME,
|
|
951
|
+
migrationOptions: {
|
|
952
|
+
optInTransformResponse: true
|
|
953
|
+
},
|
|
954
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
955
|
+
{
|
|
956
|
+
protoPath: "/v2/collections/update-publish-plugin",
|
|
957
|
+
data: payload,
|
|
958
|
+
host
|
|
959
|
+
}
|
|
960
|
+
),
|
|
961
|
+
data: payload,
|
|
962
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
963
|
+
{
|
|
964
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
965
|
+
paths: TRANSFORM_PATHS_6
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
969
|
+
paths: TRANSFORM_PATHS_7
|
|
970
|
+
}
|
|
971
|
+
])
|
|
972
|
+
};
|
|
973
|
+
return metadata;
|
|
974
|
+
}
|
|
975
|
+
return __updatePublishPlugin;
|
|
976
|
+
}
|
|
1240
977
|
function addUrlizedPlugin(payload) {
|
|
1241
978
|
function __addUrlizedPlugin({ host }) {
|
|
1242
979
|
const metadata = {
|
|
@@ -1254,36 +991,11 @@ function addUrlizedPlugin(payload) {
|
|
|
1254
991
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1255
992
|
{
|
|
1256
993
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1257
|
-
paths:
|
|
1258
|
-
{ path: "dataCollection.createdDate" },
|
|
1259
|
-
{ path: "dataCollection.updatedDate" },
|
|
1260
|
-
{
|
|
1261
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1262
|
-
},
|
|
1263
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1264
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1265
|
-
{
|
|
1266
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1267
|
-
},
|
|
1268
|
-
{
|
|
1269
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1270
|
-
},
|
|
1271
|
-
{
|
|
1272
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1273
|
-
}
|
|
1274
|
-
]
|
|
994
|
+
paths: TRANSFORM_PATHS_6
|
|
1275
995
|
},
|
|
1276
996
|
{
|
|
1277
997
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1278
|
-
paths:
|
|
1279
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1280
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1281
|
-
{
|
|
1282
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1283
|
-
},
|
|
1284
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1285
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1286
|
-
]
|
|
998
|
+
paths: TRANSFORM_PATHS_7
|
|
1287
999
|
}
|
|
1288
1000
|
])
|
|
1289
1001
|
};
|
|
@@ -1312,36 +1024,11 @@ function deleteUrlizedPlugin(payload) {
|
|
|
1312
1024
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1313
1025
|
{
|
|
1314
1026
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1315
|
-
paths:
|
|
1316
|
-
{ path: "dataCollection.createdDate" },
|
|
1317
|
-
{ path: "dataCollection.updatedDate" },
|
|
1318
|
-
{
|
|
1319
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1320
|
-
},
|
|
1321
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1322
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1323
|
-
{
|
|
1324
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1325
|
-
},
|
|
1326
|
-
{
|
|
1327
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1328
|
-
},
|
|
1329
|
-
{
|
|
1330
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1331
|
-
}
|
|
1332
|
-
]
|
|
1027
|
+
paths: TRANSFORM_PATHS_6
|
|
1333
1028
|
},
|
|
1334
1029
|
{
|
|
1335
1030
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1336
|
-
paths:
|
|
1337
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1338
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1339
|
-
{
|
|
1340
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1341
|
-
},
|
|
1342
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1343
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1344
|
-
]
|
|
1031
|
+
paths: TRANSFORM_PATHS_7
|
|
1345
1032
|
}
|
|
1346
1033
|
])
|
|
1347
1034
|
};
|
|
@@ -1349,6 +1036,39 @@ function deleteUrlizedPlugin(payload) {
|
|
|
1349
1036
|
}
|
|
1350
1037
|
return __deleteUrlizedPlugin;
|
|
1351
1038
|
}
|
|
1039
|
+
function updateUrlizedPlugin(payload) {
|
|
1040
|
+
function __updateUrlizedPlugin({ host }) {
|
|
1041
|
+
const metadata = {
|
|
1042
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1043
|
+
method: "POST",
|
|
1044
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateUrlizedPlugin",
|
|
1045
|
+
packageName: PACKAGE_NAME,
|
|
1046
|
+
migrationOptions: {
|
|
1047
|
+
optInTransformResponse: true
|
|
1048
|
+
},
|
|
1049
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1050
|
+
{
|
|
1051
|
+
protoPath: "/v2/collections/update-urlized-plugin",
|
|
1052
|
+
data: payload,
|
|
1053
|
+
host
|
|
1054
|
+
}
|
|
1055
|
+
),
|
|
1056
|
+
data: payload,
|
|
1057
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1058
|
+
{
|
|
1059
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1060
|
+
paths: TRANSFORM_PATHS_6
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1064
|
+
paths: TRANSFORM_PATHS_7
|
|
1065
|
+
}
|
|
1066
|
+
])
|
|
1067
|
+
};
|
|
1068
|
+
return metadata;
|
|
1069
|
+
}
|
|
1070
|
+
return __updateUrlizedPlugin;
|
|
1071
|
+
}
|
|
1352
1072
|
function addMultilingualPlugin(payload) {
|
|
1353
1073
|
function __addMultilingualPlugin({ host }) {
|
|
1354
1074
|
const metadata = {
|
|
@@ -1370,36 +1090,11 @@ function addMultilingualPlugin(payload) {
|
|
|
1370
1090
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1371
1091
|
{
|
|
1372
1092
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1373
|
-
paths:
|
|
1374
|
-
{ path: "dataCollection.createdDate" },
|
|
1375
|
-
{ path: "dataCollection.updatedDate" },
|
|
1376
|
-
{
|
|
1377
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1378
|
-
},
|
|
1379
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1380
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1381
|
-
{
|
|
1382
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1383
|
-
},
|
|
1384
|
-
{
|
|
1385
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1386
|
-
},
|
|
1387
|
-
{
|
|
1388
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1389
|
-
}
|
|
1390
|
-
]
|
|
1093
|
+
paths: TRANSFORM_PATHS_6
|
|
1391
1094
|
},
|
|
1392
1095
|
{
|
|
1393
1096
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1394
|
-
paths:
|
|
1395
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1396
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1397
|
-
{
|
|
1398
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1399
|
-
},
|
|
1400
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1401
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1402
|
-
]
|
|
1097
|
+
paths: TRANSFORM_PATHS_7
|
|
1403
1098
|
}
|
|
1404
1099
|
])
|
|
1405
1100
|
};
|
|
@@ -1428,36 +1123,11 @@ function deleteMultilingualPlugin(payload) {
|
|
|
1428
1123
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1429
1124
|
{
|
|
1430
1125
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1431
|
-
paths:
|
|
1432
|
-
{ path: "dataCollection.createdDate" },
|
|
1433
|
-
{ path: "dataCollection.updatedDate" },
|
|
1434
|
-
{
|
|
1435
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1436
|
-
},
|
|
1437
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1438
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1439
|
-
{
|
|
1440
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1441
|
-
},
|
|
1442
|
-
{
|
|
1443
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1444
|
-
},
|
|
1445
|
-
{
|
|
1446
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1447
|
-
}
|
|
1448
|
-
]
|
|
1126
|
+
paths: TRANSFORM_PATHS_6
|
|
1449
1127
|
},
|
|
1450
1128
|
{
|
|
1451
1129
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1452
|
-
paths:
|
|
1453
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1454
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1455
|
-
{
|
|
1456
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1457
|
-
},
|
|
1458
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1459
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1460
|
-
]
|
|
1130
|
+
paths: TRANSFORM_PATHS_7
|
|
1461
1131
|
}
|
|
1462
1132
|
])
|
|
1463
1133
|
};
|
|
@@ -1465,6 +1135,39 @@ function deleteMultilingualPlugin(payload) {
|
|
|
1465
1135
|
}
|
|
1466
1136
|
return __deleteMultilingualPlugin;
|
|
1467
1137
|
}
|
|
1138
|
+
function updateMultilingualPlugin(payload) {
|
|
1139
|
+
function __updateMultilingualPlugin({ host }) {
|
|
1140
|
+
const metadata = {
|
|
1141
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1142
|
+
method: "POST",
|
|
1143
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateMultilingualPlugin",
|
|
1144
|
+
packageName: PACKAGE_NAME,
|
|
1145
|
+
migrationOptions: {
|
|
1146
|
+
optInTransformResponse: true
|
|
1147
|
+
},
|
|
1148
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1149
|
+
{
|
|
1150
|
+
protoPath: "/v2/collections/update-multilingual-plugin",
|
|
1151
|
+
data: payload,
|
|
1152
|
+
host
|
|
1153
|
+
}
|
|
1154
|
+
),
|
|
1155
|
+
data: payload,
|
|
1156
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1157
|
+
{
|
|
1158
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1159
|
+
paths: TRANSFORM_PATHS_6
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1163
|
+
paths: TRANSFORM_PATHS_7
|
|
1164
|
+
}
|
|
1165
|
+
])
|
|
1166
|
+
};
|
|
1167
|
+
return metadata;
|
|
1168
|
+
}
|
|
1169
|
+
return __updateMultilingualPlugin;
|
|
1170
|
+
}
|
|
1468
1171
|
function addCmsPlugin(payload) {
|
|
1469
1172
|
function __addCmsPlugin({ host }) {
|
|
1470
1173
|
const metadata = {
|
|
@@ -1482,36 +1185,11 @@ function addCmsPlugin(payload) {
|
|
|
1482
1185
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1483
1186
|
{
|
|
1484
1187
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1485
|
-
paths:
|
|
1486
|
-
{ path: "dataCollection.createdDate" },
|
|
1487
|
-
{ path: "dataCollection.updatedDate" },
|
|
1488
|
-
{
|
|
1489
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1490
|
-
},
|
|
1491
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1492
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1493
|
-
{
|
|
1494
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1495
|
-
},
|
|
1496
|
-
{
|
|
1497
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1498
|
-
},
|
|
1499
|
-
{
|
|
1500
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1501
|
-
}
|
|
1502
|
-
]
|
|
1188
|
+
paths: TRANSFORM_PATHS_6
|
|
1503
1189
|
},
|
|
1504
1190
|
{
|
|
1505
1191
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1506
|
-
paths:
|
|
1507
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1508
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1509
|
-
{
|
|
1510
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1511
|
-
},
|
|
1512
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1513
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1514
|
-
]
|
|
1192
|
+
paths: TRANSFORM_PATHS_7
|
|
1515
1193
|
}
|
|
1516
1194
|
])
|
|
1517
1195
|
};
|
|
@@ -1536,36 +1214,11 @@ function deleteCmsPlugin(payload) {
|
|
|
1536
1214
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1537
1215
|
{
|
|
1538
1216
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1539
|
-
paths:
|
|
1540
|
-
{ path: "dataCollection.createdDate" },
|
|
1541
|
-
{ path: "dataCollection.updatedDate" },
|
|
1542
|
-
{
|
|
1543
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1544
|
-
},
|
|
1545
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1546
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1547
|
-
{
|
|
1548
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1549
|
-
},
|
|
1550
|
-
{
|
|
1551
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1552
|
-
},
|
|
1553
|
-
{
|
|
1554
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1555
|
-
}
|
|
1556
|
-
]
|
|
1217
|
+
paths: TRANSFORM_PATHS_6
|
|
1557
1218
|
},
|
|
1558
1219
|
{
|
|
1559
1220
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1560
|
-
paths:
|
|
1561
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1562
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1563
|
-
{
|
|
1564
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1565
|
-
},
|
|
1566
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1567
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1568
|
-
]
|
|
1221
|
+
paths: TRANSFORM_PATHS_7
|
|
1569
1222
|
}
|
|
1570
1223
|
])
|
|
1571
1224
|
};
|
|
@@ -1573,6 +1226,35 @@ function deleteCmsPlugin(payload) {
|
|
|
1573
1226
|
}
|
|
1574
1227
|
return __deleteCmsPlugin;
|
|
1575
1228
|
}
|
|
1229
|
+
function updateCmsPlugin(payload) {
|
|
1230
|
+
function __updateCmsPlugin({ host }) {
|
|
1231
|
+
const metadata = {
|
|
1232
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1233
|
+
method: "POST",
|
|
1234
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateCmsPlugin",
|
|
1235
|
+
packageName: PACKAGE_NAME,
|
|
1236
|
+
migrationOptions: {
|
|
1237
|
+
optInTransformResponse: true
|
|
1238
|
+
},
|
|
1239
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1240
|
+
{ protoPath: "/v2/collections/update-cms-plugin", data: payload, host }
|
|
1241
|
+
),
|
|
1242
|
+
data: payload,
|
|
1243
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1244
|
+
{
|
|
1245
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1246
|
+
paths: TRANSFORM_PATHS_6
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1250
|
+
paths: TRANSFORM_PATHS_7
|
|
1251
|
+
}
|
|
1252
|
+
])
|
|
1253
|
+
};
|
|
1254
|
+
return metadata;
|
|
1255
|
+
}
|
|
1256
|
+
return __updateCmsPlugin;
|
|
1257
|
+
}
|
|
1576
1258
|
function addCatalogPlugin(payload) {
|
|
1577
1259
|
function __addCatalogPlugin({ host }) {
|
|
1578
1260
|
const metadata = {
|
|
@@ -1590,36 +1272,11 @@ function addCatalogPlugin(payload) {
|
|
|
1590
1272
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1591
1273
|
{
|
|
1592
1274
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1593
|
-
paths:
|
|
1594
|
-
{ path: "dataCollection.createdDate" },
|
|
1595
|
-
{ path: "dataCollection.updatedDate" },
|
|
1596
|
-
{
|
|
1597
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1598
|
-
},
|
|
1599
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1600
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1601
|
-
{
|
|
1602
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1603
|
-
},
|
|
1604
|
-
{
|
|
1605
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1606
|
-
},
|
|
1607
|
-
{
|
|
1608
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1609
|
-
}
|
|
1610
|
-
]
|
|
1275
|
+
paths: TRANSFORM_PATHS_6
|
|
1611
1276
|
},
|
|
1612
1277
|
{
|
|
1613
1278
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1614
|
-
paths:
|
|
1615
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1616
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1617
|
-
{
|
|
1618
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1619
|
-
},
|
|
1620
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1621
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1622
|
-
]
|
|
1279
|
+
paths: TRANSFORM_PATHS_7
|
|
1623
1280
|
}
|
|
1624
1281
|
])
|
|
1625
1282
|
};
|
|
@@ -1648,36 +1305,11 @@ function deleteCatalogPlugin(payload) {
|
|
|
1648
1305
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1649
1306
|
{
|
|
1650
1307
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1651
|
-
paths:
|
|
1652
|
-
{ path: "dataCollection.createdDate" },
|
|
1653
|
-
{ path: "dataCollection.updatedDate" },
|
|
1654
|
-
{
|
|
1655
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1656
|
-
},
|
|
1657
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1658
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1659
|
-
{
|
|
1660
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1661
|
-
},
|
|
1662
|
-
{
|
|
1663
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1664
|
-
},
|
|
1665
|
-
{
|
|
1666
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1667
|
-
}
|
|
1668
|
-
]
|
|
1308
|
+
paths: TRANSFORM_PATHS_6
|
|
1669
1309
|
},
|
|
1670
1310
|
{
|
|
1671
1311
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1672
|
-
paths:
|
|
1673
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1674
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1675
|
-
{
|
|
1676
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1677
|
-
},
|
|
1678
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1679
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1680
|
-
]
|
|
1312
|
+
paths: TRANSFORM_PATHS_7
|
|
1681
1313
|
}
|
|
1682
1314
|
])
|
|
1683
1315
|
};
|
|
@@ -1685,6 +1317,39 @@ function deleteCatalogPlugin(payload) {
|
|
|
1685
1317
|
}
|
|
1686
1318
|
return __deleteCatalogPlugin;
|
|
1687
1319
|
}
|
|
1320
|
+
function updateCatalogPlugin(payload) {
|
|
1321
|
+
function __updateCatalogPlugin({ host }) {
|
|
1322
|
+
const metadata = {
|
|
1323
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1324
|
+
method: "POST",
|
|
1325
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateCatalogPlugin",
|
|
1326
|
+
packageName: PACKAGE_NAME,
|
|
1327
|
+
migrationOptions: {
|
|
1328
|
+
optInTransformResponse: true
|
|
1329
|
+
},
|
|
1330
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1331
|
+
{
|
|
1332
|
+
protoPath: "/v2/collections/update-catalog-plugin",
|
|
1333
|
+
data: payload,
|
|
1334
|
+
host
|
|
1335
|
+
}
|
|
1336
|
+
),
|
|
1337
|
+
data: payload,
|
|
1338
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1339
|
+
{
|
|
1340
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1341
|
+
paths: TRANSFORM_PATHS_6
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1345
|
+
paths: TRANSFORM_PATHS_7
|
|
1346
|
+
}
|
|
1347
|
+
])
|
|
1348
|
+
};
|
|
1349
|
+
return metadata;
|
|
1350
|
+
}
|
|
1351
|
+
return __updateCatalogPlugin;
|
|
1352
|
+
}
|
|
1688
1353
|
function addDraftItemsPlugin(payload) {
|
|
1689
1354
|
function __addDraftItemsPlugin({ host }) {
|
|
1690
1355
|
const metadata = {
|
|
@@ -1706,36 +1371,11 @@ function addDraftItemsPlugin(payload) {
|
|
|
1706
1371
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1707
1372
|
{
|
|
1708
1373
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1709
|
-
paths:
|
|
1710
|
-
{ path: "dataCollection.createdDate" },
|
|
1711
|
-
{ path: "dataCollection.updatedDate" },
|
|
1712
|
-
{
|
|
1713
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1714
|
-
},
|
|
1715
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1716
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1717
|
-
{
|
|
1718
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1719
|
-
},
|
|
1720
|
-
{
|
|
1721
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1722
|
-
},
|
|
1723
|
-
{
|
|
1724
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1725
|
-
}
|
|
1726
|
-
]
|
|
1374
|
+
paths: TRANSFORM_PATHS_6
|
|
1727
1375
|
},
|
|
1728
1376
|
{
|
|
1729
1377
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1730
|
-
paths:
|
|
1731
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1732
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1733
|
-
{
|
|
1734
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1735
|
-
},
|
|
1736
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1737
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1738
|
-
]
|
|
1378
|
+
paths: TRANSFORM_PATHS_7
|
|
1739
1379
|
}
|
|
1740
1380
|
])
|
|
1741
1381
|
};
|
|
@@ -1764,36 +1404,11 @@ function deleteDraftItemsPlugin(payload) {
|
|
|
1764
1404
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1765
1405
|
{
|
|
1766
1406
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1767
|
-
paths:
|
|
1768
|
-
{ path: "dataCollection.createdDate" },
|
|
1769
|
-
{ path: "dataCollection.updatedDate" },
|
|
1770
|
-
{
|
|
1771
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1772
|
-
},
|
|
1773
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1774
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1775
|
-
{
|
|
1776
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1777
|
-
},
|
|
1778
|
-
{
|
|
1779
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1780
|
-
},
|
|
1781
|
-
{
|
|
1782
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1783
|
-
}
|
|
1784
|
-
]
|
|
1407
|
+
paths: TRANSFORM_PATHS_6
|
|
1785
1408
|
},
|
|
1786
1409
|
{
|
|
1787
1410
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1788
|
-
paths:
|
|
1789
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1790
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1791
|
-
{
|
|
1792
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1793
|
-
},
|
|
1794
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1795
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1796
|
-
]
|
|
1411
|
+
paths: TRANSFORM_PATHS_7
|
|
1797
1412
|
}
|
|
1798
1413
|
])
|
|
1799
1414
|
};
|
|
@@ -1801,33 +1416,53 @@ function deleteDraftItemsPlugin(payload) {
|
|
|
1801
1416
|
}
|
|
1802
1417
|
return __deleteDraftItemsPlugin;
|
|
1803
1418
|
}
|
|
1419
|
+
function updateDraftItemsPlugin(payload) {
|
|
1420
|
+
function __updateDraftItemsPlugin({ host }) {
|
|
1421
|
+
const metadata = {
|
|
1422
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1423
|
+
method: "POST",
|
|
1424
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDraftItemsPlugin",
|
|
1425
|
+
packageName: PACKAGE_NAME,
|
|
1426
|
+
migrationOptions: {
|
|
1427
|
+
optInTransformResponse: true
|
|
1428
|
+
},
|
|
1429
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1430
|
+
{
|
|
1431
|
+
protoPath: "/v2/collections/update-draft-items-plugin",
|
|
1432
|
+
data: payload,
|
|
1433
|
+
host
|
|
1434
|
+
}
|
|
1435
|
+
),
|
|
1436
|
+
data: payload,
|
|
1437
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1438
|
+
{
|
|
1439
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1440
|
+
paths: TRANSFORM_PATHS_6
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1444
|
+
paths: TRANSFORM_PATHS_7
|
|
1445
|
+
}
|
|
1446
|
+
])
|
|
1447
|
+
};
|
|
1448
|
+
return metadata;
|
|
1449
|
+
}
|
|
1450
|
+
return __updateDraftItemsPlugin;
|
|
1451
|
+
}
|
|
1804
1452
|
function patchDataCollectionField(payload) {
|
|
1805
1453
|
function __patchDataCollectionField({ host }) {
|
|
1806
1454
|
const serializedData = transformPaths(payload, [
|
|
1807
1455
|
{
|
|
1808
1456
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
1809
|
-
paths:
|
|
1457
|
+
paths: TRANSFORM_PATHS_8
|
|
1810
1458
|
},
|
|
1811
1459
|
{
|
|
1812
1460
|
transformFn: transformSDKFloatToRESTFloat,
|
|
1813
|
-
paths:
|
|
1814
|
-
{ path: "field.numberRange.min" },
|
|
1815
|
-
{ path: "field.numberRange.max" },
|
|
1816
|
-
{ path: "field.typeMetadata.number.defaultValue" },
|
|
1817
|
-
{ path: "field.typeMetadata.number.min" },
|
|
1818
|
-
{ path: "field.typeMetadata.number.max" }
|
|
1819
|
-
]
|
|
1461
|
+
paths: TRANSFORM_PATHS_9
|
|
1820
1462
|
},
|
|
1821
1463
|
{
|
|
1822
1464
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1823
|
-
paths:
|
|
1824
|
-
{ path: "field.typeMetadata.date.defaultValueFixed" },
|
|
1825
|
-
{ path: "field.typeMetadata.date.minDateFixed" },
|
|
1826
|
-
{ path: "field.typeMetadata.date.maxDateFixed" },
|
|
1827
|
-
{ path: "field.typeMetadata.datetime.defaultValueFixed" },
|
|
1828
|
-
{ path: "field.typeMetadata.datetime.minDateFixed" },
|
|
1829
|
-
{ path: "field.typeMetadata.datetime.maxDateFixed" }
|
|
1830
|
-
]
|
|
1465
|
+
paths: TRANSFORM_PATHS_10
|
|
1831
1466
|
}
|
|
1832
1467
|
]);
|
|
1833
1468
|
const metadata = {
|
|
@@ -1849,36 +1484,11 @@ function patchDataCollectionField(payload) {
|
|
|
1849
1484
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1850
1485
|
{
|
|
1851
1486
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1852
|
-
paths:
|
|
1853
|
-
{ path: "dataCollection.createdDate" },
|
|
1854
|
-
{ path: "dataCollection.updatedDate" },
|
|
1855
|
-
{
|
|
1856
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1857
|
-
},
|
|
1858
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1859
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1860
|
-
{
|
|
1861
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1862
|
-
},
|
|
1863
|
-
{
|
|
1864
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1865
|
-
},
|
|
1866
|
-
{
|
|
1867
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1868
|
-
}
|
|
1869
|
-
]
|
|
1487
|
+
paths: TRANSFORM_PATHS_6
|
|
1870
1488
|
},
|
|
1871
1489
|
{
|
|
1872
1490
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1873
|
-
paths:
|
|
1874
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1875
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1876
|
-
{
|
|
1877
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1878
|
-
},
|
|
1879
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1880
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1881
|
-
]
|
|
1491
|
+
paths: TRANSFORM_PATHS_7
|
|
1882
1492
|
}
|
|
1883
1493
|
])
|
|
1884
1494
|
};
|
|
@@ -2508,6 +2118,35 @@ async function deletePublishPlugin2(dataCollectionId) {
|
|
|
2508
2118
|
throw transformedError;
|
|
2509
2119
|
}
|
|
2510
2120
|
}
|
|
2121
|
+
async function updatePublishPlugin2(dataCollectionId, options) {
|
|
2122
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2123
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2124
|
+
dataCollectionId,
|
|
2125
|
+
publishOptions: options?.publishOptions
|
|
2126
|
+
});
|
|
2127
|
+
const reqOpts = updatePublishPlugin(payload);
|
|
2128
|
+
sideEffects?.onSiteCall?.();
|
|
2129
|
+
try {
|
|
2130
|
+
const result = await httpClient.request(reqOpts);
|
|
2131
|
+
sideEffects?.onSuccess?.(result);
|
|
2132
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2133
|
+
} catch (err) {
|
|
2134
|
+
const transformedError = sdkTransformError(
|
|
2135
|
+
err,
|
|
2136
|
+
{
|
|
2137
|
+
spreadPathsToArguments: {},
|
|
2138
|
+
explicitPathsToArguments: {
|
|
2139
|
+
dataCollectionId: "$[0]",
|
|
2140
|
+
publishOptions: "$[1].publishOptions"
|
|
2141
|
+
},
|
|
2142
|
+
singleArgumentUnchanged: false
|
|
2143
|
+
},
|
|
2144
|
+
["dataCollectionId", "options"]
|
|
2145
|
+
);
|
|
2146
|
+
sideEffects?.onError?.(err);
|
|
2147
|
+
throw transformedError;
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2511
2150
|
async function addUrlizedPlugin2(dataCollectionId, options) {
|
|
2512
2151
|
const { httpClient, sideEffects } = arguments[2];
|
|
2513
2152
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -2562,6 +2201,35 @@ async function deleteUrlizedPlugin2(dataCollectionId) {
|
|
|
2562
2201
|
throw transformedError;
|
|
2563
2202
|
}
|
|
2564
2203
|
}
|
|
2204
|
+
async function updateUrlizedPlugin2(dataCollectionId, options) {
|
|
2205
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2206
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2207
|
+
dataCollectionId,
|
|
2208
|
+
urlizedOptions: options?.urlizedOptions
|
|
2209
|
+
});
|
|
2210
|
+
const reqOpts = updateUrlizedPlugin(payload);
|
|
2211
|
+
sideEffects?.onSiteCall?.();
|
|
2212
|
+
try {
|
|
2213
|
+
const result = await httpClient.request(reqOpts);
|
|
2214
|
+
sideEffects?.onSuccess?.(result);
|
|
2215
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2216
|
+
} catch (err) {
|
|
2217
|
+
const transformedError = sdkTransformError(
|
|
2218
|
+
err,
|
|
2219
|
+
{
|
|
2220
|
+
spreadPathsToArguments: {},
|
|
2221
|
+
explicitPathsToArguments: {
|
|
2222
|
+
dataCollectionId: "$[0]",
|
|
2223
|
+
urlizedOptions: "$[1].urlizedOptions"
|
|
2224
|
+
},
|
|
2225
|
+
singleArgumentUnchanged: false
|
|
2226
|
+
},
|
|
2227
|
+
["dataCollectionId", "options"]
|
|
2228
|
+
);
|
|
2229
|
+
sideEffects?.onError?.(err);
|
|
2230
|
+
throw transformedError;
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2565
2233
|
async function addMultilingualPlugin2(dataCollectionId, options) {
|
|
2566
2234
|
const { httpClient, sideEffects } = arguments[2];
|
|
2567
2235
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -2616,6 +2284,35 @@ async function deleteMultilingualPlugin2(dataCollectionId) {
|
|
|
2616
2284
|
throw transformedError;
|
|
2617
2285
|
}
|
|
2618
2286
|
}
|
|
2287
|
+
async function updateMultilingualPlugin2(dataCollectionId, options) {
|
|
2288
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2289
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2290
|
+
dataCollectionId,
|
|
2291
|
+
multilingualOptions: options?.multilingualOptions
|
|
2292
|
+
});
|
|
2293
|
+
const reqOpts = updateMultilingualPlugin(payload);
|
|
2294
|
+
sideEffects?.onSiteCall?.();
|
|
2295
|
+
try {
|
|
2296
|
+
const result = await httpClient.request(reqOpts);
|
|
2297
|
+
sideEffects?.onSuccess?.(result);
|
|
2298
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2299
|
+
} catch (err) {
|
|
2300
|
+
const transformedError = sdkTransformError(
|
|
2301
|
+
err,
|
|
2302
|
+
{
|
|
2303
|
+
spreadPathsToArguments: {},
|
|
2304
|
+
explicitPathsToArguments: {
|
|
2305
|
+
dataCollectionId: "$[0]",
|
|
2306
|
+
multilingualOptions: "$[1].multilingualOptions"
|
|
2307
|
+
},
|
|
2308
|
+
singleArgumentUnchanged: false
|
|
2309
|
+
},
|
|
2310
|
+
["dataCollectionId", "options"]
|
|
2311
|
+
);
|
|
2312
|
+
sideEffects?.onError?.(err);
|
|
2313
|
+
throw transformedError;
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2619
2316
|
async function addCmsPlugin2(dataCollectionId, options) {
|
|
2620
2317
|
const { httpClient, sideEffects } = arguments[2];
|
|
2621
2318
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -2670,6 +2367,35 @@ async function deleteCmsPlugin2(dataCollectionId) {
|
|
|
2670
2367
|
throw transformedError;
|
|
2671
2368
|
}
|
|
2672
2369
|
}
|
|
2370
|
+
async function updateCmsPlugin2(dataCollectionId, options) {
|
|
2371
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2372
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2373
|
+
dataCollectionId,
|
|
2374
|
+
cmsOptions: options?.cmsOptions
|
|
2375
|
+
});
|
|
2376
|
+
const reqOpts = updateCmsPlugin(payload);
|
|
2377
|
+
sideEffects?.onSiteCall?.();
|
|
2378
|
+
try {
|
|
2379
|
+
const result = await httpClient.request(reqOpts);
|
|
2380
|
+
sideEffects?.onSuccess?.(result);
|
|
2381
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2382
|
+
} catch (err) {
|
|
2383
|
+
const transformedError = sdkTransformError(
|
|
2384
|
+
err,
|
|
2385
|
+
{
|
|
2386
|
+
spreadPathsToArguments: {},
|
|
2387
|
+
explicitPathsToArguments: {
|
|
2388
|
+
dataCollectionId: "$[0]",
|
|
2389
|
+
cmsOptions: "$[1].cmsOptions"
|
|
2390
|
+
},
|
|
2391
|
+
singleArgumentUnchanged: false
|
|
2392
|
+
},
|
|
2393
|
+
["dataCollectionId", "options"]
|
|
2394
|
+
);
|
|
2395
|
+
sideEffects?.onError?.(err);
|
|
2396
|
+
throw transformedError;
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2673
2399
|
async function addCatalogPlugin2(dataCollectionId, options) {
|
|
2674
2400
|
const { httpClient, sideEffects } = arguments[2];
|
|
2675
2401
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -2724,6 +2450,35 @@ async function deleteCatalogPlugin2(dataCollectionId) {
|
|
|
2724
2450
|
throw transformedError;
|
|
2725
2451
|
}
|
|
2726
2452
|
}
|
|
2453
|
+
async function updateCatalogPlugin2(dataCollectionId, options) {
|
|
2454
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2455
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2456
|
+
dataCollectionId,
|
|
2457
|
+
catalogOptions: options?.catalogOptions
|
|
2458
|
+
});
|
|
2459
|
+
const reqOpts = updateCatalogPlugin(payload);
|
|
2460
|
+
sideEffects?.onSiteCall?.();
|
|
2461
|
+
try {
|
|
2462
|
+
const result = await httpClient.request(reqOpts);
|
|
2463
|
+
sideEffects?.onSuccess?.(result);
|
|
2464
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2465
|
+
} catch (err) {
|
|
2466
|
+
const transformedError = sdkTransformError(
|
|
2467
|
+
err,
|
|
2468
|
+
{
|
|
2469
|
+
spreadPathsToArguments: {},
|
|
2470
|
+
explicitPathsToArguments: {
|
|
2471
|
+
dataCollectionId: "$[0]",
|
|
2472
|
+
catalogOptions: "$[1].catalogOptions"
|
|
2473
|
+
},
|
|
2474
|
+
singleArgumentUnchanged: false
|
|
2475
|
+
},
|
|
2476
|
+
["dataCollectionId", "options"]
|
|
2477
|
+
);
|
|
2478
|
+
sideEffects?.onError?.(err);
|
|
2479
|
+
throw transformedError;
|
|
2480
|
+
}
|
|
2481
|
+
}
|
|
2727
2482
|
async function addDraftItemsPlugin2(dataCollectionId, options) {
|
|
2728
2483
|
const { httpClient, sideEffects } = arguments[2];
|
|
2729
2484
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -2784,6 +2539,35 @@ async function deleteDraftItemsPlugin2(dataCollectionId, options) {
|
|
|
2784
2539
|
throw transformedError;
|
|
2785
2540
|
}
|
|
2786
2541
|
}
|
|
2542
|
+
async function updateDraftItemsPlugin2(dataCollectionId, options) {
|
|
2543
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2544
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2545
|
+
dataCollectionId,
|
|
2546
|
+
draftItemsOptions: options?.draftItemsOptions
|
|
2547
|
+
});
|
|
2548
|
+
const reqOpts = updateDraftItemsPlugin(payload);
|
|
2549
|
+
sideEffects?.onSiteCall?.();
|
|
2550
|
+
try {
|
|
2551
|
+
const result = await httpClient.request(reqOpts);
|
|
2552
|
+
sideEffects?.onSuccess?.(result);
|
|
2553
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2554
|
+
} catch (err) {
|
|
2555
|
+
const transformedError = sdkTransformError(
|
|
2556
|
+
err,
|
|
2557
|
+
{
|
|
2558
|
+
spreadPathsToArguments: {},
|
|
2559
|
+
explicitPathsToArguments: {
|
|
2560
|
+
dataCollectionId: "$[0]",
|
|
2561
|
+
draftItemsOptions: "$[1].draftItemsOptions"
|
|
2562
|
+
},
|
|
2563
|
+
singleArgumentUnchanged: false
|
|
2564
|
+
},
|
|
2565
|
+
["dataCollectionId", "options"]
|
|
2566
|
+
);
|
|
2567
|
+
sideEffects?.onError?.(err);
|
|
2568
|
+
throw transformedError;
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2787
2571
|
async function patchDataCollectionField2(dataCollectionId, field) {
|
|
2788
2572
|
const { httpClient, sideEffects } = arguments[2];
|
|
2789
2573
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -2860,7 +2644,13 @@ export {
|
|
|
2860
2644
|
patchDataCollection2 as patchDataCollection,
|
|
2861
2645
|
patchDataCollectionField2 as patchDataCollectionField,
|
|
2862
2646
|
restoreDataCollection2 as restoreDataCollection,
|
|
2647
|
+
updateCatalogPlugin2 as updateCatalogPlugin,
|
|
2648
|
+
updateCmsPlugin2 as updateCmsPlugin,
|
|
2863
2649
|
updateDataCollection2 as updateDataCollection,
|
|
2864
|
-
updateDataCollectionField2 as updateDataCollectionField
|
|
2650
|
+
updateDataCollectionField2 as updateDataCollectionField,
|
|
2651
|
+
updateDraftItemsPlugin2 as updateDraftItemsPlugin,
|
|
2652
|
+
updateMultilingualPlugin2 as updateMultilingualPlugin,
|
|
2653
|
+
updatePublishPlugin2 as updatePublishPlugin,
|
|
2654
|
+
updateUrlizedPlugin2 as updateUrlizedPlugin
|
|
2865
2655
|
};
|
|
2866
2656
|
//# sourceMappingURL=index.typings.mjs.map
|