@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
|
@@ -69,8 +69,14 @@ __export(index_typings_exports, {
|
|
|
69
69
|
patchDataCollection: () => patchDataCollection2,
|
|
70
70
|
patchDataCollectionField: () => patchDataCollectionField2,
|
|
71
71
|
restoreDataCollection: () => restoreDataCollection2,
|
|
72
|
+
updateCatalogPlugin: () => updateCatalogPlugin2,
|
|
73
|
+
updateCmsPlugin: () => updateCmsPlugin2,
|
|
72
74
|
updateDataCollection: () => updateDataCollection2,
|
|
73
|
-
updateDataCollectionField: () => updateDataCollectionField2
|
|
75
|
+
updateDataCollectionField: () => updateDataCollectionField2,
|
|
76
|
+
updateDraftItemsPlugin: () => updateDraftItemsPlugin2,
|
|
77
|
+
updateMultilingualPlugin: () => updateMultilingualPlugin2,
|
|
78
|
+
updatePublishPlugin: () => updatePublishPlugin2,
|
|
79
|
+
updateUrlizedPlugin: () => updateUrlizedPlugin2
|
|
74
80
|
});
|
|
75
81
|
module.exports = __toCommonJS(index_typings_exports);
|
|
76
82
|
|
|
@@ -87,6 +93,105 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
87
93
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
88
94
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
89
95
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
96
|
+
var TRANSFORM_PATHS_0 = [
|
|
97
|
+
{ path: "collection.createdDate" },
|
|
98
|
+
{ path: "collection.updatedDate" },
|
|
99
|
+
{ path: "collection.fields.typeMetadata.date.defaultValueFixed" },
|
|
100
|
+
{ path: "collection.fields.typeMetadata.date.minDateFixed" },
|
|
101
|
+
{ path: "collection.fields.typeMetadata.date.maxDateFixed" },
|
|
102
|
+
{ path: "collection.fields.typeMetadata.datetime.defaultValueFixed" },
|
|
103
|
+
{ path: "collection.fields.typeMetadata.datetime.minDateFixed" },
|
|
104
|
+
{ path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
105
|
+
];
|
|
106
|
+
var TRANSFORM_PATHS_1 = [
|
|
107
|
+
{ path: "collection.fields.numberRange.min" },
|
|
108
|
+
{ path: "collection.fields.numberRange.max" },
|
|
109
|
+
{ path: "collection.fields.typeMetadata.number.defaultValue" },
|
|
110
|
+
{ path: "collection.fields.typeMetadata.number.min" },
|
|
111
|
+
{ path: "collection.fields.typeMetadata.number.max" }
|
|
112
|
+
];
|
|
113
|
+
var TRANSFORM_PATHS_2 = [
|
|
114
|
+
{ path: "collection.createdDate" },
|
|
115
|
+
{ path: "collection.updatedDate" },
|
|
116
|
+
{ path: "collection.fields.typeMetadata.date.defaultValueFixed" },
|
|
117
|
+
{ path: "collection.fields.typeMetadata.date.minDateFixed" },
|
|
118
|
+
{ path: "collection.fields.typeMetadata.date.maxDateFixed" },
|
|
119
|
+
{ path: "collection.fields.typeMetadata.datetime.defaultValueFixed" },
|
|
120
|
+
{ path: "collection.fields.typeMetadata.datetime.minDateFixed" },
|
|
121
|
+
{ path: "collection.fields.typeMetadata.datetime.maxDateFixed" },
|
|
122
|
+
{ path: "referencedCollections.createdDate" },
|
|
123
|
+
{ path: "referencedCollections.updatedDate" },
|
|
124
|
+
{ path: "referencedCollections.fields.typeMetadata.date.defaultValueFixed" },
|
|
125
|
+
{ path: "referencedCollections.fields.typeMetadata.date.minDateFixed" },
|
|
126
|
+
{ path: "referencedCollections.fields.typeMetadata.date.maxDateFixed" },
|
|
127
|
+
{
|
|
128
|
+
path: "referencedCollections.fields.typeMetadata.datetime.defaultValueFixed"
|
|
129
|
+
},
|
|
130
|
+
{ path: "referencedCollections.fields.typeMetadata.datetime.minDateFixed" },
|
|
131
|
+
{ path: "referencedCollections.fields.typeMetadata.datetime.maxDateFixed" }
|
|
132
|
+
];
|
|
133
|
+
var TRANSFORM_PATHS_3 = [
|
|
134
|
+
{ path: "collection.fields.numberRange.min" },
|
|
135
|
+
{ path: "collection.fields.numberRange.max" },
|
|
136
|
+
{ path: "collection.fields.typeMetadata.number.defaultValue" },
|
|
137
|
+
{ path: "collection.fields.typeMetadata.number.min" },
|
|
138
|
+
{ path: "collection.fields.typeMetadata.number.max" },
|
|
139
|
+
{ path: "referencedCollections.fields.numberRange.min" },
|
|
140
|
+
{ path: "referencedCollections.fields.numberRange.max" },
|
|
141
|
+
{ path: "referencedCollections.fields.typeMetadata.number.defaultValue" },
|
|
142
|
+
{ path: "referencedCollections.fields.typeMetadata.number.min" },
|
|
143
|
+
{ path: "referencedCollections.fields.typeMetadata.number.max" }
|
|
144
|
+
];
|
|
145
|
+
var TRANSFORM_PATHS_4 = [
|
|
146
|
+
{ path: "collections.createdDate" },
|
|
147
|
+
{ path: "collections.updatedDate" },
|
|
148
|
+
{ path: "collections.fields.typeMetadata.date.defaultValueFixed" },
|
|
149
|
+
{ path: "collections.fields.typeMetadata.date.minDateFixed" },
|
|
150
|
+
{ path: "collections.fields.typeMetadata.date.maxDateFixed" },
|
|
151
|
+
{ path: "collections.fields.typeMetadata.datetime.defaultValueFixed" },
|
|
152
|
+
{ path: "collections.fields.typeMetadata.datetime.minDateFixed" },
|
|
153
|
+
{ path: "collections.fields.typeMetadata.datetime.maxDateFixed" }
|
|
154
|
+
];
|
|
155
|
+
var TRANSFORM_PATHS_5 = [
|
|
156
|
+
{ path: "collections.fields.numberRange.min" },
|
|
157
|
+
{ path: "collections.fields.numberRange.max" },
|
|
158
|
+
{ path: "collections.fields.typeMetadata.number.defaultValue" },
|
|
159
|
+
{ path: "collections.fields.typeMetadata.number.min" },
|
|
160
|
+
{ path: "collections.fields.typeMetadata.number.max" }
|
|
161
|
+
];
|
|
162
|
+
var TRANSFORM_PATHS_6 = [
|
|
163
|
+
{ path: "dataCollection.createdDate" },
|
|
164
|
+
{ path: "dataCollection.updatedDate" },
|
|
165
|
+
{ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed" },
|
|
166
|
+
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
167
|
+
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
168
|
+
{ path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed" },
|
|
169
|
+
{ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed" },
|
|
170
|
+
{ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
171
|
+
];
|
|
172
|
+
var TRANSFORM_PATHS_7 = [
|
|
173
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
174
|
+
{ path: "dataCollection.fields.numberRange.max" },
|
|
175
|
+
{ path: "dataCollection.fields.typeMetadata.number.defaultValue" },
|
|
176
|
+
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
177
|
+
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
178
|
+
];
|
|
179
|
+
var TRANSFORM_PATHS_8 = [{ path: "fieldMask" }];
|
|
180
|
+
var TRANSFORM_PATHS_9 = [
|
|
181
|
+
{ path: "field.numberRange.min" },
|
|
182
|
+
{ path: "field.numberRange.max" },
|
|
183
|
+
{ path: "field.typeMetadata.number.defaultValue" },
|
|
184
|
+
{ path: "field.typeMetadata.number.min" },
|
|
185
|
+
{ path: "field.typeMetadata.number.max" }
|
|
186
|
+
];
|
|
187
|
+
var TRANSFORM_PATHS_10 = [
|
|
188
|
+
{ path: "field.typeMetadata.date.defaultValueFixed" },
|
|
189
|
+
{ path: "field.typeMetadata.date.minDateFixed" },
|
|
190
|
+
{ path: "field.typeMetadata.date.maxDateFixed" },
|
|
191
|
+
{ path: "field.typeMetadata.datetime.defaultValueFixed" },
|
|
192
|
+
{ path: "field.typeMetadata.datetime.minDateFixed" },
|
|
193
|
+
{ path: "field.typeMetadata.datetime.maxDateFixed" }
|
|
194
|
+
];
|
|
90
195
|
function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(opts) {
|
|
91
196
|
const domainToMappings = {
|
|
92
197
|
"api._api_base_domain_": [
|
|
@@ -450,26 +555,11 @@ function createDataCollection(payload) {
|
|
|
450
555
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
451
556
|
{
|
|
452
557
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
453
|
-
paths:
|
|
454
|
-
{ path: "collection.createdDate" },
|
|
455
|
-
{ path: "collection.updatedDate" },
|
|
456
|
-
{ path: "collection.fields.typeMetadata.date.defaultValueFixed" },
|
|
457
|
-
{ path: "collection.fields.typeMetadata.date.minDateFixed" },
|
|
458
|
-
{ path: "collection.fields.typeMetadata.date.maxDateFixed" },
|
|
459
|
-
{ path: "collection.fields.typeMetadata.datetime.defaultValueFixed" },
|
|
460
|
-
{ path: "collection.fields.typeMetadata.datetime.minDateFixed" },
|
|
461
|
-
{ path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
462
|
-
]
|
|
558
|
+
paths: TRANSFORM_PATHS_0
|
|
463
559
|
},
|
|
464
560
|
{
|
|
465
561
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
466
|
-
paths:
|
|
467
|
-
{ path: "collection.fields.numberRange.min" },
|
|
468
|
-
{ path: "collection.fields.numberRange.max" },
|
|
469
|
-
{ path: "collection.fields.typeMetadata.number.defaultValue" },
|
|
470
|
-
{ path: "collection.fields.typeMetadata.number.min" },
|
|
471
|
-
{ path: "collection.fields.typeMetadata.number.max" }
|
|
472
|
-
]
|
|
562
|
+
paths: TRANSFORM_PATHS_1
|
|
473
563
|
}
|
|
474
564
|
]);
|
|
475
565
|
const metadata = {
|
|
@@ -487,28 +577,11 @@ function createDataCollection(payload) {
|
|
|
487
577
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
488
578
|
{
|
|
489
579
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
490
|
-
paths:
|
|
491
|
-
{ path: "collection.createdDate" },
|
|
492
|
-
{ path: "collection.updatedDate" },
|
|
493
|
-
{ path: "collection.fields.typeMetadata.date.defaultValueFixed" },
|
|
494
|
-
{ path: "collection.fields.typeMetadata.date.minDateFixed" },
|
|
495
|
-
{ path: "collection.fields.typeMetadata.date.maxDateFixed" },
|
|
496
|
-
{
|
|
497
|
-
path: "collection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
498
|
-
},
|
|
499
|
-
{ path: "collection.fields.typeMetadata.datetime.minDateFixed" },
|
|
500
|
-
{ path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
501
|
-
]
|
|
580
|
+
paths: TRANSFORM_PATHS_0
|
|
502
581
|
},
|
|
503
582
|
{
|
|
504
583
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
505
|
-
paths:
|
|
506
|
-
{ path: "collection.fields.numberRange.min" },
|
|
507
|
-
{ path: "collection.fields.numberRange.max" },
|
|
508
|
-
{ path: "collection.fields.typeMetadata.number.defaultValue" },
|
|
509
|
-
{ path: "collection.fields.typeMetadata.number.min" },
|
|
510
|
-
{ path: "collection.fields.typeMetadata.number.max" }
|
|
511
|
-
]
|
|
584
|
+
paths: TRANSFORM_PATHS_1
|
|
512
585
|
}
|
|
513
586
|
])
|
|
514
587
|
};
|
|
@@ -533,55 +606,11 @@ function getDataCollection(payload) {
|
|
|
533
606
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
534
607
|
{
|
|
535
608
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
536
|
-
paths:
|
|
537
|
-
{ path: "collection.createdDate" },
|
|
538
|
-
{ path: "collection.updatedDate" },
|
|
539
|
-
{ path: "collection.fields.typeMetadata.date.defaultValueFixed" },
|
|
540
|
-
{ path: "collection.fields.typeMetadata.date.minDateFixed" },
|
|
541
|
-
{ path: "collection.fields.typeMetadata.date.maxDateFixed" },
|
|
542
|
-
{
|
|
543
|
-
path: "collection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
544
|
-
},
|
|
545
|
-
{ path: "collection.fields.typeMetadata.datetime.minDateFixed" },
|
|
546
|
-
{ path: "collection.fields.typeMetadata.datetime.maxDateFixed" },
|
|
547
|
-
{ path: "referencedCollections.createdDate" },
|
|
548
|
-
{ path: "referencedCollections.updatedDate" },
|
|
549
|
-
{
|
|
550
|
-
path: "referencedCollections.fields.typeMetadata.date.defaultValueFixed"
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
path: "referencedCollections.fields.typeMetadata.date.minDateFixed"
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
path: "referencedCollections.fields.typeMetadata.date.maxDateFixed"
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
path: "referencedCollections.fields.typeMetadata.datetime.defaultValueFixed"
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
path: "referencedCollections.fields.typeMetadata.datetime.minDateFixed"
|
|
563
|
-
},
|
|
564
|
-
{
|
|
565
|
-
path: "referencedCollections.fields.typeMetadata.datetime.maxDateFixed"
|
|
566
|
-
}
|
|
567
|
-
]
|
|
609
|
+
paths: TRANSFORM_PATHS_2
|
|
568
610
|
},
|
|
569
611
|
{
|
|
570
612
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
571
|
-
paths:
|
|
572
|
-
{ path: "collection.fields.numberRange.min" },
|
|
573
|
-
{ path: "collection.fields.numberRange.max" },
|
|
574
|
-
{ path: "collection.fields.typeMetadata.number.defaultValue" },
|
|
575
|
-
{ path: "collection.fields.typeMetadata.number.min" },
|
|
576
|
-
{ path: "collection.fields.typeMetadata.number.max" },
|
|
577
|
-
{ path: "referencedCollections.fields.numberRange.min" },
|
|
578
|
-
{ path: "referencedCollections.fields.numberRange.max" },
|
|
579
|
-
{
|
|
580
|
-
path: "referencedCollections.fields.typeMetadata.number.defaultValue"
|
|
581
|
-
},
|
|
582
|
-
{ path: "referencedCollections.fields.typeMetadata.number.min" },
|
|
583
|
-
{ path: "referencedCollections.fields.typeMetadata.number.max" }
|
|
584
|
-
]
|
|
613
|
+
paths: TRANSFORM_PATHS_3
|
|
585
614
|
}
|
|
586
615
|
])
|
|
587
616
|
};
|
|
@@ -606,30 +635,11 @@ function listDataCollections(payload) {
|
|
|
606
635
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
607
636
|
{
|
|
608
637
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
609
|
-
paths:
|
|
610
|
-
{ path: "collections.createdDate" },
|
|
611
|
-
{ path: "collections.updatedDate" },
|
|
612
|
-
{
|
|
613
|
-
path: "collections.fields.typeMetadata.date.defaultValueFixed"
|
|
614
|
-
},
|
|
615
|
-
{ path: "collections.fields.typeMetadata.date.minDateFixed" },
|
|
616
|
-
{ path: "collections.fields.typeMetadata.date.maxDateFixed" },
|
|
617
|
-
{
|
|
618
|
-
path: "collections.fields.typeMetadata.datetime.defaultValueFixed"
|
|
619
|
-
},
|
|
620
|
-
{ path: "collections.fields.typeMetadata.datetime.minDateFixed" },
|
|
621
|
-
{ path: "collections.fields.typeMetadata.datetime.maxDateFixed" }
|
|
622
|
-
]
|
|
638
|
+
paths: TRANSFORM_PATHS_4
|
|
623
639
|
},
|
|
624
640
|
{
|
|
625
641
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
626
|
-
paths:
|
|
627
|
-
{ path: "collections.fields.numberRange.min" },
|
|
628
|
-
{ path: "collections.fields.numberRange.max" },
|
|
629
|
-
{ path: "collections.fields.typeMetadata.number.defaultValue" },
|
|
630
|
-
{ path: "collections.fields.typeMetadata.number.min" },
|
|
631
|
-
{ path: "collections.fields.typeMetadata.number.max" }
|
|
632
|
-
]
|
|
642
|
+
paths: TRANSFORM_PATHS_5
|
|
633
643
|
}
|
|
634
644
|
])
|
|
635
645
|
};
|
|
@@ -642,26 +652,11 @@ function updateDataCollection(payload) {
|
|
|
642
652
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
643
653
|
{
|
|
644
654
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
645
|
-
paths:
|
|
646
|
-
{ path: "collection.createdDate" },
|
|
647
|
-
{ path: "collection.updatedDate" },
|
|
648
|
-
{ path: "collection.fields.typeMetadata.date.defaultValueFixed" },
|
|
649
|
-
{ path: "collection.fields.typeMetadata.date.minDateFixed" },
|
|
650
|
-
{ path: "collection.fields.typeMetadata.date.maxDateFixed" },
|
|
651
|
-
{ path: "collection.fields.typeMetadata.datetime.defaultValueFixed" },
|
|
652
|
-
{ path: "collection.fields.typeMetadata.datetime.minDateFixed" },
|
|
653
|
-
{ path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
654
|
-
]
|
|
655
|
+
paths: TRANSFORM_PATHS_0
|
|
655
656
|
},
|
|
656
657
|
{
|
|
657
658
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
658
|
-
paths:
|
|
659
|
-
{ path: "collection.fields.numberRange.min" },
|
|
660
|
-
{ path: "collection.fields.numberRange.max" },
|
|
661
|
-
{ path: "collection.fields.typeMetadata.number.defaultValue" },
|
|
662
|
-
{ path: "collection.fields.typeMetadata.number.min" },
|
|
663
|
-
{ path: "collection.fields.typeMetadata.number.max" }
|
|
664
|
-
]
|
|
659
|
+
paths: TRANSFORM_PATHS_1
|
|
665
660
|
}
|
|
666
661
|
]);
|
|
667
662
|
const metadata = {
|
|
@@ -679,28 +674,11 @@ function updateDataCollection(payload) {
|
|
|
679
674
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
680
675
|
{
|
|
681
676
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
682
|
-
paths:
|
|
683
|
-
{ path: "collection.createdDate" },
|
|
684
|
-
{ path: "collection.updatedDate" },
|
|
685
|
-
{ path: "collection.fields.typeMetadata.date.defaultValueFixed" },
|
|
686
|
-
{ path: "collection.fields.typeMetadata.date.minDateFixed" },
|
|
687
|
-
{ path: "collection.fields.typeMetadata.date.maxDateFixed" },
|
|
688
|
-
{
|
|
689
|
-
path: "collection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
690
|
-
},
|
|
691
|
-
{ path: "collection.fields.typeMetadata.datetime.minDateFixed" },
|
|
692
|
-
{ path: "collection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
693
|
-
]
|
|
677
|
+
paths: TRANSFORM_PATHS_0
|
|
694
678
|
},
|
|
695
679
|
{
|
|
696
680
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
697
|
-
paths:
|
|
698
|
-
{ path: "collection.fields.numberRange.min" },
|
|
699
|
-
{ path: "collection.fields.numberRange.max" },
|
|
700
|
-
{ path: "collection.fields.typeMetadata.number.defaultValue" },
|
|
701
|
-
{ path: "collection.fields.typeMetadata.number.min" },
|
|
702
|
-
{ path: "collection.fields.typeMetadata.number.max" }
|
|
703
|
-
]
|
|
681
|
+
paths: TRANSFORM_PATHS_1
|
|
704
682
|
}
|
|
705
683
|
])
|
|
706
684
|
};
|
|
@@ -748,36 +726,11 @@ function restoreDataCollection(payload) {
|
|
|
748
726
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
749
727
|
{
|
|
750
728
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
751
|
-
paths:
|
|
752
|
-
{ path: "dataCollection.createdDate" },
|
|
753
|
-
{ path: "dataCollection.updatedDate" },
|
|
754
|
-
{
|
|
755
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
756
|
-
},
|
|
757
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
758
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
759
|
-
{
|
|
760
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
761
|
-
},
|
|
762
|
-
{
|
|
763
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
764
|
-
},
|
|
765
|
-
{
|
|
766
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
767
|
-
}
|
|
768
|
-
]
|
|
729
|
+
paths: TRANSFORM_PATHS_6
|
|
769
730
|
},
|
|
770
731
|
{
|
|
771
732
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
772
|
-
paths:
|
|
773
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
774
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
775
|
-
{
|
|
776
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
777
|
-
},
|
|
778
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
779
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
780
|
-
]
|
|
733
|
+
paths: TRANSFORM_PATHS_7
|
|
781
734
|
}
|
|
782
735
|
])
|
|
783
736
|
};
|
|
@@ -790,32 +743,15 @@ function patchDataCollection(payload) {
|
|
|
790
743
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
791
744
|
{
|
|
792
745
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
793
|
-
paths:
|
|
746
|
+
paths: TRANSFORM_PATHS_8
|
|
794
747
|
},
|
|
795
748
|
{
|
|
796
749
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
797
|
-
paths:
|
|
798
|
-
{ path: "dataCollection.createdDate" },
|
|
799
|
-
{ path: "dataCollection.updatedDate" },
|
|
800
|
-
{ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed" },
|
|
801
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
802
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
803
|
-
{
|
|
804
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
805
|
-
},
|
|
806
|
-
{ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed" },
|
|
807
|
-
{ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed" }
|
|
808
|
-
]
|
|
750
|
+
paths: TRANSFORM_PATHS_6
|
|
809
751
|
},
|
|
810
752
|
{
|
|
811
753
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
812
|
-
paths:
|
|
813
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
814
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
815
|
-
{ path: "dataCollection.fields.typeMetadata.number.defaultValue" },
|
|
816
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
817
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
818
|
-
]
|
|
754
|
+
paths: TRANSFORM_PATHS_7
|
|
819
755
|
}
|
|
820
756
|
]);
|
|
821
757
|
const metadata = {
|
|
@@ -837,36 +773,11 @@ function patchDataCollection(payload) {
|
|
|
837
773
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
838
774
|
{
|
|
839
775
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
840
|
-
paths:
|
|
841
|
-
{ path: "dataCollection.createdDate" },
|
|
842
|
-
{ path: "dataCollection.updatedDate" },
|
|
843
|
-
{
|
|
844
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
845
|
-
},
|
|
846
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
847
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
848
|
-
{
|
|
849
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
850
|
-
},
|
|
851
|
-
{
|
|
852
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
853
|
-
},
|
|
854
|
-
{
|
|
855
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
856
|
-
}
|
|
857
|
-
]
|
|
776
|
+
paths: TRANSFORM_PATHS_6
|
|
858
777
|
},
|
|
859
778
|
{
|
|
860
779
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
861
|
-
paths:
|
|
862
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
863
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
864
|
-
{
|
|
865
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
866
|
-
},
|
|
867
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
868
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
869
|
-
]
|
|
780
|
+
paths: TRANSFORM_PATHS_7
|
|
870
781
|
}
|
|
871
782
|
])
|
|
872
783
|
};
|
|
@@ -879,24 +790,11 @@ function createDataCollectionField(payload) {
|
|
|
879
790
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
880
791
|
{
|
|
881
792
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
882
|
-
paths:
|
|
883
|
-
{ path: "field.numberRange.min" },
|
|
884
|
-
{ path: "field.numberRange.max" },
|
|
885
|
-
{ path: "field.typeMetadata.number.defaultValue" },
|
|
886
|
-
{ path: "field.typeMetadata.number.min" },
|
|
887
|
-
{ path: "field.typeMetadata.number.max" }
|
|
888
|
-
]
|
|
793
|
+
paths: TRANSFORM_PATHS_9
|
|
889
794
|
},
|
|
890
795
|
{
|
|
891
796
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
892
|
-
paths:
|
|
893
|
-
{ path: "field.typeMetadata.date.defaultValueFixed" },
|
|
894
|
-
{ path: "field.typeMetadata.date.minDateFixed" },
|
|
895
|
-
{ path: "field.typeMetadata.date.maxDateFixed" },
|
|
896
|
-
{ path: "field.typeMetadata.datetime.defaultValueFixed" },
|
|
897
|
-
{ path: "field.typeMetadata.datetime.minDateFixed" },
|
|
898
|
-
{ path: "field.typeMetadata.datetime.maxDateFixed" }
|
|
899
|
-
]
|
|
797
|
+
paths: TRANSFORM_PATHS_10
|
|
900
798
|
}
|
|
901
799
|
]);
|
|
902
800
|
const metadata = {
|
|
@@ -918,36 +816,11 @@ function createDataCollectionField(payload) {
|
|
|
918
816
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
919
817
|
{
|
|
920
818
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
921
|
-
paths:
|
|
922
|
-
{ path: "dataCollection.createdDate" },
|
|
923
|
-
{ path: "dataCollection.updatedDate" },
|
|
924
|
-
{
|
|
925
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
926
|
-
},
|
|
927
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
928
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
929
|
-
{
|
|
930
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
931
|
-
},
|
|
932
|
-
{
|
|
933
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
934
|
-
},
|
|
935
|
-
{
|
|
936
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
937
|
-
}
|
|
938
|
-
]
|
|
819
|
+
paths: TRANSFORM_PATHS_6
|
|
939
820
|
},
|
|
940
821
|
{
|
|
941
822
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
942
|
-
paths:
|
|
943
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
944
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
945
|
-
{
|
|
946
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
947
|
-
},
|
|
948
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
949
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
950
|
-
]
|
|
823
|
+
paths: TRANSFORM_PATHS_7
|
|
951
824
|
}
|
|
952
825
|
])
|
|
953
826
|
};
|
|
@@ -960,24 +833,11 @@ function updateDataCollectionField(payload) {
|
|
|
960
833
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
961
834
|
{
|
|
962
835
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
963
|
-
paths:
|
|
964
|
-
{ path: "field.numberRange.min" },
|
|
965
|
-
{ path: "field.numberRange.max" },
|
|
966
|
-
{ path: "field.typeMetadata.number.defaultValue" },
|
|
967
|
-
{ path: "field.typeMetadata.number.min" },
|
|
968
|
-
{ path: "field.typeMetadata.number.max" }
|
|
969
|
-
]
|
|
836
|
+
paths: TRANSFORM_PATHS_9
|
|
970
837
|
},
|
|
971
838
|
{
|
|
972
839
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
973
|
-
paths:
|
|
974
|
-
{ path: "field.typeMetadata.date.defaultValueFixed" },
|
|
975
|
-
{ path: "field.typeMetadata.date.minDateFixed" },
|
|
976
|
-
{ path: "field.typeMetadata.date.maxDateFixed" },
|
|
977
|
-
{ path: "field.typeMetadata.datetime.defaultValueFixed" },
|
|
978
|
-
{ path: "field.typeMetadata.datetime.minDateFixed" },
|
|
979
|
-
{ path: "field.typeMetadata.datetime.maxDateFixed" }
|
|
980
|
-
]
|
|
840
|
+
paths: TRANSFORM_PATHS_10
|
|
981
841
|
}
|
|
982
842
|
]);
|
|
983
843
|
const metadata = {
|
|
@@ -999,36 +859,11 @@ function updateDataCollectionField(payload) {
|
|
|
999
859
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1000
860
|
{
|
|
1001
861
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1002
|
-
paths:
|
|
1003
|
-
{ path: "dataCollection.createdDate" },
|
|
1004
|
-
{ path: "dataCollection.updatedDate" },
|
|
1005
|
-
{
|
|
1006
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1007
|
-
},
|
|
1008
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1009
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1010
|
-
{
|
|
1011
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1012
|
-
},
|
|
1013
|
-
{
|
|
1014
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1015
|
-
},
|
|
1016
|
-
{
|
|
1017
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1018
|
-
}
|
|
1019
|
-
]
|
|
862
|
+
paths: TRANSFORM_PATHS_6
|
|
1020
863
|
},
|
|
1021
864
|
{
|
|
1022
865
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1023
|
-
paths:
|
|
1024
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1025
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1026
|
-
{
|
|
1027
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1028
|
-
},
|
|
1029
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1030
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1031
|
-
]
|
|
866
|
+
paths: TRANSFORM_PATHS_7
|
|
1032
867
|
}
|
|
1033
868
|
])
|
|
1034
869
|
};
|
|
@@ -1053,36 +888,11 @@ function deleteDataCollectionField(payload) {
|
|
|
1053
888
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1054
889
|
{
|
|
1055
890
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1056
|
-
paths:
|
|
1057
|
-
{ path: "dataCollection.createdDate" },
|
|
1058
|
-
{ path: "dataCollection.updatedDate" },
|
|
1059
|
-
{
|
|
1060
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1061
|
-
},
|
|
1062
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1063
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1064
|
-
{
|
|
1065
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1066
|
-
},
|
|
1067
|
-
{
|
|
1068
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1069
|
-
},
|
|
1070
|
-
{
|
|
1071
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1072
|
-
}
|
|
1073
|
-
]
|
|
891
|
+
paths: TRANSFORM_PATHS_6
|
|
1074
892
|
},
|
|
1075
893
|
{
|
|
1076
894
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1077
|
-
paths:
|
|
1078
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1079
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1080
|
-
{
|
|
1081
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1082
|
-
},
|
|
1083
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1084
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1085
|
-
]
|
|
895
|
+
paths: TRANSFORM_PATHS_7
|
|
1086
896
|
}
|
|
1087
897
|
])
|
|
1088
898
|
};
|
|
@@ -1107,36 +917,11 @@ function addDataCollectionPlugin(payload) {
|
|
|
1107
917
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1108
918
|
{
|
|
1109
919
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1110
|
-
paths:
|
|
1111
|
-
{ path: "dataCollection.createdDate" },
|
|
1112
|
-
{ path: "dataCollection.updatedDate" },
|
|
1113
|
-
{
|
|
1114
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1115
|
-
},
|
|
1116
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1117
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1118
|
-
{
|
|
1119
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1120
|
-
},
|
|
1121
|
-
{
|
|
1122
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1123
|
-
},
|
|
1124
|
-
{
|
|
1125
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1126
|
-
}
|
|
1127
|
-
]
|
|
920
|
+
paths: TRANSFORM_PATHS_6
|
|
1128
921
|
},
|
|
1129
922
|
{
|
|
1130
923
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1131
|
-
paths:
|
|
1132
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1133
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1134
|
-
{
|
|
1135
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1136
|
-
},
|
|
1137
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1138
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1139
|
-
]
|
|
924
|
+
paths: TRANSFORM_PATHS_7
|
|
1140
925
|
}
|
|
1141
926
|
])
|
|
1142
927
|
};
|
|
@@ -1161,36 +946,11 @@ function deleteDataCollectionPlugin(payload) {
|
|
|
1161
946
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1162
947
|
{
|
|
1163
948
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1164
|
-
paths:
|
|
1165
|
-
{ path: "dataCollection.createdDate" },
|
|
1166
|
-
{ path: "dataCollection.updatedDate" },
|
|
1167
|
-
{
|
|
1168
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1169
|
-
},
|
|
1170
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1171
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1172
|
-
{
|
|
1173
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1174
|
-
},
|
|
1175
|
-
{
|
|
1176
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1177
|
-
},
|
|
1178
|
-
{
|
|
1179
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1180
|
-
}
|
|
1181
|
-
]
|
|
949
|
+
paths: TRANSFORM_PATHS_6
|
|
1182
950
|
},
|
|
1183
951
|
{
|
|
1184
952
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1185
|
-
paths:
|
|
1186
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1187
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1188
|
-
{
|
|
1189
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1190
|
-
},
|
|
1191
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1192
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1193
|
-
]
|
|
953
|
+
paths: TRANSFORM_PATHS_7
|
|
1194
954
|
}
|
|
1195
955
|
])
|
|
1196
956
|
};
|
|
@@ -1215,36 +975,11 @@ function addPublishPlugin(payload) {
|
|
|
1215
975
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1216
976
|
{
|
|
1217
977
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1218
|
-
paths:
|
|
1219
|
-
{ path: "dataCollection.createdDate" },
|
|
1220
|
-
{ path: "dataCollection.updatedDate" },
|
|
1221
|
-
{
|
|
1222
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1223
|
-
},
|
|
1224
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1225
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1226
|
-
{
|
|
1227
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1228
|
-
},
|
|
1229
|
-
{
|
|
1230
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1231
|
-
},
|
|
1232
|
-
{
|
|
1233
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1234
|
-
}
|
|
1235
|
-
]
|
|
978
|
+
paths: TRANSFORM_PATHS_6
|
|
1236
979
|
},
|
|
1237
980
|
{
|
|
1238
981
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1239
|
-
paths:
|
|
1240
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1241
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1242
|
-
{
|
|
1243
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1244
|
-
},
|
|
1245
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1246
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1247
|
-
]
|
|
982
|
+
paths: TRANSFORM_PATHS_7
|
|
1248
983
|
}
|
|
1249
984
|
])
|
|
1250
985
|
};
|
|
@@ -1273,36 +1008,11 @@ function deletePublishPlugin(payload) {
|
|
|
1273
1008
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1274
1009
|
{
|
|
1275
1010
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1276
|
-
paths:
|
|
1277
|
-
{ path: "dataCollection.createdDate" },
|
|
1278
|
-
{ path: "dataCollection.updatedDate" },
|
|
1279
|
-
{
|
|
1280
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1281
|
-
},
|
|
1282
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1283
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1284
|
-
{
|
|
1285
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1286
|
-
},
|
|
1287
|
-
{
|
|
1288
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1289
|
-
},
|
|
1290
|
-
{
|
|
1291
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1292
|
-
}
|
|
1293
|
-
]
|
|
1011
|
+
paths: TRANSFORM_PATHS_6
|
|
1294
1012
|
},
|
|
1295
1013
|
{
|
|
1296
1014
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1297
|
-
paths:
|
|
1298
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1299
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1300
|
-
{
|
|
1301
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1302
|
-
},
|
|
1303
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1304
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1305
|
-
]
|
|
1015
|
+
paths: TRANSFORM_PATHS_7
|
|
1306
1016
|
}
|
|
1307
1017
|
])
|
|
1308
1018
|
};
|
|
@@ -1310,6 +1020,39 @@ function deletePublishPlugin(payload) {
|
|
|
1310
1020
|
}
|
|
1311
1021
|
return __deletePublishPlugin;
|
|
1312
1022
|
}
|
|
1023
|
+
function updatePublishPlugin(payload) {
|
|
1024
|
+
function __updatePublishPlugin({ host }) {
|
|
1025
|
+
const metadata = {
|
|
1026
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1027
|
+
method: "POST",
|
|
1028
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdatePublishPlugin",
|
|
1029
|
+
packageName: PACKAGE_NAME,
|
|
1030
|
+
migrationOptions: {
|
|
1031
|
+
optInTransformResponse: true
|
|
1032
|
+
},
|
|
1033
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1034
|
+
{
|
|
1035
|
+
protoPath: "/v2/collections/update-publish-plugin",
|
|
1036
|
+
data: payload,
|
|
1037
|
+
host
|
|
1038
|
+
}
|
|
1039
|
+
),
|
|
1040
|
+
data: payload,
|
|
1041
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1042
|
+
{
|
|
1043
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1044
|
+
paths: TRANSFORM_PATHS_6
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1048
|
+
paths: TRANSFORM_PATHS_7
|
|
1049
|
+
}
|
|
1050
|
+
])
|
|
1051
|
+
};
|
|
1052
|
+
return metadata;
|
|
1053
|
+
}
|
|
1054
|
+
return __updatePublishPlugin;
|
|
1055
|
+
}
|
|
1313
1056
|
function addUrlizedPlugin(payload) {
|
|
1314
1057
|
function __addUrlizedPlugin({ host }) {
|
|
1315
1058
|
const metadata = {
|
|
@@ -1327,36 +1070,11 @@ function addUrlizedPlugin(payload) {
|
|
|
1327
1070
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1328
1071
|
{
|
|
1329
1072
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1330
|
-
paths:
|
|
1331
|
-
{ path: "dataCollection.createdDate" },
|
|
1332
|
-
{ path: "dataCollection.updatedDate" },
|
|
1333
|
-
{
|
|
1334
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1335
|
-
},
|
|
1336
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1337
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1338
|
-
{
|
|
1339
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1340
|
-
},
|
|
1341
|
-
{
|
|
1342
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1343
|
-
},
|
|
1344
|
-
{
|
|
1345
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1346
|
-
}
|
|
1347
|
-
]
|
|
1073
|
+
paths: TRANSFORM_PATHS_6
|
|
1348
1074
|
},
|
|
1349
1075
|
{
|
|
1350
1076
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1351
|
-
paths:
|
|
1352
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1353
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1354
|
-
{
|
|
1355
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1356
|
-
},
|
|
1357
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1358
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1359
|
-
]
|
|
1077
|
+
paths: TRANSFORM_PATHS_7
|
|
1360
1078
|
}
|
|
1361
1079
|
])
|
|
1362
1080
|
};
|
|
@@ -1385,36 +1103,11 @@ function deleteUrlizedPlugin(payload) {
|
|
|
1385
1103
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1386
1104
|
{
|
|
1387
1105
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1388
|
-
paths:
|
|
1389
|
-
{ path: "dataCollection.createdDate" },
|
|
1390
|
-
{ path: "dataCollection.updatedDate" },
|
|
1391
|
-
{
|
|
1392
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1393
|
-
},
|
|
1394
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1395
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1396
|
-
{
|
|
1397
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1398
|
-
},
|
|
1399
|
-
{
|
|
1400
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1401
|
-
},
|
|
1402
|
-
{
|
|
1403
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1404
|
-
}
|
|
1405
|
-
]
|
|
1106
|
+
paths: TRANSFORM_PATHS_6
|
|
1406
1107
|
},
|
|
1407
1108
|
{
|
|
1408
1109
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1409
|
-
paths:
|
|
1410
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1411
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1412
|
-
{
|
|
1413
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1414
|
-
},
|
|
1415
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1416
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1417
|
-
]
|
|
1110
|
+
paths: TRANSFORM_PATHS_7
|
|
1418
1111
|
}
|
|
1419
1112
|
])
|
|
1420
1113
|
};
|
|
@@ -1422,6 +1115,39 @@ function deleteUrlizedPlugin(payload) {
|
|
|
1422
1115
|
}
|
|
1423
1116
|
return __deleteUrlizedPlugin;
|
|
1424
1117
|
}
|
|
1118
|
+
function updateUrlizedPlugin(payload) {
|
|
1119
|
+
function __updateUrlizedPlugin({ host }) {
|
|
1120
|
+
const metadata = {
|
|
1121
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1122
|
+
method: "POST",
|
|
1123
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateUrlizedPlugin",
|
|
1124
|
+
packageName: PACKAGE_NAME,
|
|
1125
|
+
migrationOptions: {
|
|
1126
|
+
optInTransformResponse: true
|
|
1127
|
+
},
|
|
1128
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1129
|
+
{
|
|
1130
|
+
protoPath: "/v2/collections/update-urlized-plugin",
|
|
1131
|
+
data: payload,
|
|
1132
|
+
host
|
|
1133
|
+
}
|
|
1134
|
+
),
|
|
1135
|
+
data: payload,
|
|
1136
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1137
|
+
{
|
|
1138
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1139
|
+
paths: TRANSFORM_PATHS_6
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1143
|
+
paths: TRANSFORM_PATHS_7
|
|
1144
|
+
}
|
|
1145
|
+
])
|
|
1146
|
+
};
|
|
1147
|
+
return metadata;
|
|
1148
|
+
}
|
|
1149
|
+
return __updateUrlizedPlugin;
|
|
1150
|
+
}
|
|
1425
1151
|
function addMultilingualPlugin(payload) {
|
|
1426
1152
|
function __addMultilingualPlugin({ host }) {
|
|
1427
1153
|
const metadata = {
|
|
@@ -1443,36 +1169,11 @@ function addMultilingualPlugin(payload) {
|
|
|
1443
1169
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1444
1170
|
{
|
|
1445
1171
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1446
|
-
paths:
|
|
1447
|
-
{ path: "dataCollection.createdDate" },
|
|
1448
|
-
{ path: "dataCollection.updatedDate" },
|
|
1449
|
-
{
|
|
1450
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1451
|
-
},
|
|
1452
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1453
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1454
|
-
{
|
|
1455
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1456
|
-
},
|
|
1457
|
-
{
|
|
1458
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1459
|
-
},
|
|
1460
|
-
{
|
|
1461
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1462
|
-
}
|
|
1463
|
-
]
|
|
1172
|
+
paths: TRANSFORM_PATHS_6
|
|
1464
1173
|
},
|
|
1465
1174
|
{
|
|
1466
1175
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1467
|
-
paths:
|
|
1468
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1469
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1470
|
-
{
|
|
1471
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1472
|
-
},
|
|
1473
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1474
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1475
|
-
]
|
|
1176
|
+
paths: TRANSFORM_PATHS_7
|
|
1476
1177
|
}
|
|
1477
1178
|
])
|
|
1478
1179
|
};
|
|
@@ -1501,36 +1202,11 @@ function deleteMultilingualPlugin(payload) {
|
|
|
1501
1202
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1502
1203
|
{
|
|
1503
1204
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1504
|
-
paths:
|
|
1505
|
-
{ path: "dataCollection.createdDate" },
|
|
1506
|
-
{ path: "dataCollection.updatedDate" },
|
|
1507
|
-
{
|
|
1508
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1509
|
-
},
|
|
1510
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1511
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1512
|
-
{
|
|
1513
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1514
|
-
},
|
|
1515
|
-
{
|
|
1516
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1517
|
-
},
|
|
1518
|
-
{
|
|
1519
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1520
|
-
}
|
|
1521
|
-
]
|
|
1205
|
+
paths: TRANSFORM_PATHS_6
|
|
1522
1206
|
},
|
|
1523
1207
|
{
|
|
1524
1208
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1525
|
-
paths:
|
|
1526
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1527
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1528
|
-
{
|
|
1529
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1530
|
-
},
|
|
1531
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1532
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1533
|
-
]
|
|
1209
|
+
paths: TRANSFORM_PATHS_7
|
|
1534
1210
|
}
|
|
1535
1211
|
])
|
|
1536
1212
|
};
|
|
@@ -1538,6 +1214,39 @@ function deleteMultilingualPlugin(payload) {
|
|
|
1538
1214
|
}
|
|
1539
1215
|
return __deleteMultilingualPlugin;
|
|
1540
1216
|
}
|
|
1217
|
+
function updateMultilingualPlugin(payload) {
|
|
1218
|
+
function __updateMultilingualPlugin({ host }) {
|
|
1219
|
+
const metadata = {
|
|
1220
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1221
|
+
method: "POST",
|
|
1222
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateMultilingualPlugin",
|
|
1223
|
+
packageName: PACKAGE_NAME,
|
|
1224
|
+
migrationOptions: {
|
|
1225
|
+
optInTransformResponse: true
|
|
1226
|
+
},
|
|
1227
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1228
|
+
{
|
|
1229
|
+
protoPath: "/v2/collections/update-multilingual-plugin",
|
|
1230
|
+
data: payload,
|
|
1231
|
+
host
|
|
1232
|
+
}
|
|
1233
|
+
),
|
|
1234
|
+
data: payload,
|
|
1235
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1236
|
+
{
|
|
1237
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1238
|
+
paths: TRANSFORM_PATHS_6
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1242
|
+
paths: TRANSFORM_PATHS_7
|
|
1243
|
+
}
|
|
1244
|
+
])
|
|
1245
|
+
};
|
|
1246
|
+
return metadata;
|
|
1247
|
+
}
|
|
1248
|
+
return __updateMultilingualPlugin;
|
|
1249
|
+
}
|
|
1541
1250
|
function addCmsPlugin(payload) {
|
|
1542
1251
|
function __addCmsPlugin({ host }) {
|
|
1543
1252
|
const metadata = {
|
|
@@ -1555,36 +1264,11 @@ function addCmsPlugin(payload) {
|
|
|
1555
1264
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1556
1265
|
{
|
|
1557
1266
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1558
|
-
paths:
|
|
1559
|
-
{ path: "dataCollection.createdDate" },
|
|
1560
|
-
{ path: "dataCollection.updatedDate" },
|
|
1561
|
-
{
|
|
1562
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1563
|
-
},
|
|
1564
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1565
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1566
|
-
{
|
|
1567
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1568
|
-
},
|
|
1569
|
-
{
|
|
1570
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1571
|
-
},
|
|
1572
|
-
{
|
|
1573
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1574
|
-
}
|
|
1575
|
-
]
|
|
1267
|
+
paths: TRANSFORM_PATHS_6
|
|
1576
1268
|
},
|
|
1577
1269
|
{
|
|
1578
1270
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1579
|
-
paths:
|
|
1580
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1581
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1582
|
-
{
|
|
1583
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1584
|
-
},
|
|
1585
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1586
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1587
|
-
]
|
|
1271
|
+
paths: TRANSFORM_PATHS_7
|
|
1588
1272
|
}
|
|
1589
1273
|
])
|
|
1590
1274
|
};
|
|
@@ -1609,36 +1293,11 @@ function deleteCmsPlugin(payload) {
|
|
|
1609
1293
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1610
1294
|
{
|
|
1611
1295
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1612
|
-
paths:
|
|
1613
|
-
{ path: "dataCollection.createdDate" },
|
|
1614
|
-
{ path: "dataCollection.updatedDate" },
|
|
1615
|
-
{
|
|
1616
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1617
|
-
},
|
|
1618
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1619
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1620
|
-
{
|
|
1621
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1622
|
-
},
|
|
1623
|
-
{
|
|
1624
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1625
|
-
},
|
|
1626
|
-
{
|
|
1627
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1628
|
-
}
|
|
1629
|
-
]
|
|
1296
|
+
paths: TRANSFORM_PATHS_6
|
|
1630
1297
|
},
|
|
1631
1298
|
{
|
|
1632
1299
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1633
|
-
paths:
|
|
1634
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1635
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1636
|
-
{
|
|
1637
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1638
|
-
},
|
|
1639
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1640
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1641
|
-
]
|
|
1300
|
+
paths: TRANSFORM_PATHS_7
|
|
1642
1301
|
}
|
|
1643
1302
|
])
|
|
1644
1303
|
};
|
|
@@ -1646,6 +1305,35 @@ function deleteCmsPlugin(payload) {
|
|
|
1646
1305
|
}
|
|
1647
1306
|
return __deleteCmsPlugin;
|
|
1648
1307
|
}
|
|
1308
|
+
function updateCmsPlugin(payload) {
|
|
1309
|
+
function __updateCmsPlugin({ host }) {
|
|
1310
|
+
const metadata = {
|
|
1311
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1312
|
+
method: "POST",
|
|
1313
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateCmsPlugin",
|
|
1314
|
+
packageName: PACKAGE_NAME,
|
|
1315
|
+
migrationOptions: {
|
|
1316
|
+
optInTransformResponse: true
|
|
1317
|
+
},
|
|
1318
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1319
|
+
{ protoPath: "/v2/collections/update-cms-plugin", data: payload, host }
|
|
1320
|
+
),
|
|
1321
|
+
data: payload,
|
|
1322
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1323
|
+
{
|
|
1324
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1325
|
+
paths: TRANSFORM_PATHS_6
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1329
|
+
paths: TRANSFORM_PATHS_7
|
|
1330
|
+
}
|
|
1331
|
+
])
|
|
1332
|
+
};
|
|
1333
|
+
return metadata;
|
|
1334
|
+
}
|
|
1335
|
+
return __updateCmsPlugin;
|
|
1336
|
+
}
|
|
1649
1337
|
function addCatalogPlugin(payload) {
|
|
1650
1338
|
function __addCatalogPlugin({ host }) {
|
|
1651
1339
|
const metadata = {
|
|
@@ -1663,36 +1351,11 @@ function addCatalogPlugin(payload) {
|
|
|
1663
1351
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1664
1352
|
{
|
|
1665
1353
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1666
|
-
paths:
|
|
1667
|
-
{ path: "dataCollection.createdDate" },
|
|
1668
|
-
{ path: "dataCollection.updatedDate" },
|
|
1669
|
-
{
|
|
1670
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1671
|
-
},
|
|
1672
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1673
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1674
|
-
{
|
|
1675
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1676
|
-
},
|
|
1677
|
-
{
|
|
1678
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1679
|
-
},
|
|
1680
|
-
{
|
|
1681
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1682
|
-
}
|
|
1683
|
-
]
|
|
1354
|
+
paths: TRANSFORM_PATHS_6
|
|
1684
1355
|
},
|
|
1685
1356
|
{
|
|
1686
1357
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1687
|
-
paths:
|
|
1688
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1689
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1690
|
-
{
|
|
1691
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1692
|
-
},
|
|
1693
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1694
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1695
|
-
]
|
|
1358
|
+
paths: TRANSFORM_PATHS_7
|
|
1696
1359
|
}
|
|
1697
1360
|
])
|
|
1698
1361
|
};
|
|
@@ -1721,36 +1384,11 @@ function deleteCatalogPlugin(payload) {
|
|
|
1721
1384
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1722
1385
|
{
|
|
1723
1386
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1724
|
-
paths:
|
|
1725
|
-
{ path: "dataCollection.createdDate" },
|
|
1726
|
-
{ path: "dataCollection.updatedDate" },
|
|
1727
|
-
{
|
|
1728
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1729
|
-
},
|
|
1730
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1731
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1732
|
-
{
|
|
1733
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1734
|
-
},
|
|
1735
|
-
{
|
|
1736
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1737
|
-
},
|
|
1738
|
-
{
|
|
1739
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1740
|
-
}
|
|
1741
|
-
]
|
|
1387
|
+
paths: TRANSFORM_PATHS_6
|
|
1742
1388
|
},
|
|
1743
1389
|
{
|
|
1744
1390
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1745
|
-
paths:
|
|
1746
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1747
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1748
|
-
{
|
|
1749
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1750
|
-
},
|
|
1751
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1752
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1753
|
-
]
|
|
1391
|
+
paths: TRANSFORM_PATHS_7
|
|
1754
1392
|
}
|
|
1755
1393
|
])
|
|
1756
1394
|
};
|
|
@@ -1758,6 +1396,39 @@ function deleteCatalogPlugin(payload) {
|
|
|
1758
1396
|
}
|
|
1759
1397
|
return __deleteCatalogPlugin;
|
|
1760
1398
|
}
|
|
1399
|
+
function updateCatalogPlugin(payload) {
|
|
1400
|
+
function __updateCatalogPlugin({ host }) {
|
|
1401
|
+
const metadata = {
|
|
1402
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1403
|
+
method: "POST",
|
|
1404
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateCatalogPlugin",
|
|
1405
|
+
packageName: PACKAGE_NAME,
|
|
1406
|
+
migrationOptions: {
|
|
1407
|
+
optInTransformResponse: true
|
|
1408
|
+
},
|
|
1409
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1410
|
+
{
|
|
1411
|
+
protoPath: "/v2/collections/update-catalog-plugin",
|
|
1412
|
+
data: payload,
|
|
1413
|
+
host
|
|
1414
|
+
}
|
|
1415
|
+
),
|
|
1416
|
+
data: payload,
|
|
1417
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1418
|
+
{
|
|
1419
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1420
|
+
paths: TRANSFORM_PATHS_6
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1424
|
+
paths: TRANSFORM_PATHS_7
|
|
1425
|
+
}
|
|
1426
|
+
])
|
|
1427
|
+
};
|
|
1428
|
+
return metadata;
|
|
1429
|
+
}
|
|
1430
|
+
return __updateCatalogPlugin;
|
|
1431
|
+
}
|
|
1761
1432
|
function addDraftItemsPlugin(payload) {
|
|
1762
1433
|
function __addDraftItemsPlugin({ host }) {
|
|
1763
1434
|
const metadata = {
|
|
@@ -1779,36 +1450,11 @@ function addDraftItemsPlugin(payload) {
|
|
|
1779
1450
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1780
1451
|
{
|
|
1781
1452
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1782
|
-
paths:
|
|
1783
|
-
{ path: "dataCollection.createdDate" },
|
|
1784
|
-
{ path: "dataCollection.updatedDate" },
|
|
1785
|
-
{
|
|
1786
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1787
|
-
},
|
|
1788
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1789
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1790
|
-
{
|
|
1791
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1792
|
-
},
|
|
1793
|
-
{
|
|
1794
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1795
|
-
},
|
|
1796
|
-
{
|
|
1797
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1798
|
-
}
|
|
1799
|
-
]
|
|
1453
|
+
paths: TRANSFORM_PATHS_6
|
|
1800
1454
|
},
|
|
1801
1455
|
{
|
|
1802
1456
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1803
|
-
paths:
|
|
1804
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1805
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1806
|
-
{
|
|
1807
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1808
|
-
},
|
|
1809
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1810
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1811
|
-
]
|
|
1457
|
+
paths: TRANSFORM_PATHS_7
|
|
1812
1458
|
}
|
|
1813
1459
|
])
|
|
1814
1460
|
};
|
|
@@ -1837,36 +1483,11 @@ function deleteDraftItemsPlugin(payload) {
|
|
|
1837
1483
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1838
1484
|
{
|
|
1839
1485
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1840
|
-
paths:
|
|
1841
|
-
{ path: "dataCollection.createdDate" },
|
|
1842
|
-
{ path: "dataCollection.updatedDate" },
|
|
1843
|
-
{
|
|
1844
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1845
|
-
},
|
|
1846
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1847
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1848
|
-
{
|
|
1849
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1850
|
-
},
|
|
1851
|
-
{
|
|
1852
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1853
|
-
},
|
|
1854
|
-
{
|
|
1855
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1856
|
-
}
|
|
1857
|
-
]
|
|
1486
|
+
paths: TRANSFORM_PATHS_6
|
|
1858
1487
|
},
|
|
1859
1488
|
{
|
|
1860
1489
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1861
|
-
paths:
|
|
1862
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1863
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1864
|
-
{
|
|
1865
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1866
|
-
},
|
|
1867
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1868
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1869
|
-
]
|
|
1490
|
+
paths: TRANSFORM_PATHS_7
|
|
1870
1491
|
}
|
|
1871
1492
|
])
|
|
1872
1493
|
};
|
|
@@ -1874,33 +1495,53 @@ function deleteDraftItemsPlugin(payload) {
|
|
|
1874
1495
|
}
|
|
1875
1496
|
return __deleteDraftItemsPlugin;
|
|
1876
1497
|
}
|
|
1498
|
+
function updateDraftItemsPlugin(payload) {
|
|
1499
|
+
function __updateDraftItemsPlugin({ host }) {
|
|
1500
|
+
const metadata = {
|
|
1501
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1502
|
+
method: "POST",
|
|
1503
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDraftItemsPlugin",
|
|
1504
|
+
packageName: PACKAGE_NAME,
|
|
1505
|
+
migrationOptions: {
|
|
1506
|
+
optInTransformResponse: true
|
|
1507
|
+
},
|
|
1508
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1509
|
+
{
|
|
1510
|
+
protoPath: "/v2/collections/update-draft-items-plugin",
|
|
1511
|
+
data: payload,
|
|
1512
|
+
host
|
|
1513
|
+
}
|
|
1514
|
+
),
|
|
1515
|
+
data: payload,
|
|
1516
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1517
|
+
{
|
|
1518
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1519
|
+
paths: TRANSFORM_PATHS_6
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1523
|
+
paths: TRANSFORM_PATHS_7
|
|
1524
|
+
}
|
|
1525
|
+
])
|
|
1526
|
+
};
|
|
1527
|
+
return metadata;
|
|
1528
|
+
}
|
|
1529
|
+
return __updateDraftItemsPlugin;
|
|
1530
|
+
}
|
|
1877
1531
|
function patchDataCollectionField(payload) {
|
|
1878
1532
|
function __patchDataCollectionField({ host }) {
|
|
1879
1533
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1880
1534
|
{
|
|
1881
1535
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1882
|
-
paths:
|
|
1536
|
+
paths: TRANSFORM_PATHS_8
|
|
1883
1537
|
},
|
|
1884
1538
|
{
|
|
1885
1539
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1886
|
-
paths:
|
|
1887
|
-
{ path: "field.numberRange.min" },
|
|
1888
|
-
{ path: "field.numberRange.max" },
|
|
1889
|
-
{ path: "field.typeMetadata.number.defaultValue" },
|
|
1890
|
-
{ path: "field.typeMetadata.number.min" },
|
|
1891
|
-
{ path: "field.typeMetadata.number.max" }
|
|
1892
|
-
]
|
|
1540
|
+
paths: TRANSFORM_PATHS_9
|
|
1893
1541
|
},
|
|
1894
1542
|
{
|
|
1895
1543
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1896
|
-
paths:
|
|
1897
|
-
{ path: "field.typeMetadata.date.defaultValueFixed" },
|
|
1898
|
-
{ path: "field.typeMetadata.date.minDateFixed" },
|
|
1899
|
-
{ path: "field.typeMetadata.date.maxDateFixed" },
|
|
1900
|
-
{ path: "field.typeMetadata.datetime.defaultValueFixed" },
|
|
1901
|
-
{ path: "field.typeMetadata.datetime.minDateFixed" },
|
|
1902
|
-
{ path: "field.typeMetadata.datetime.maxDateFixed" }
|
|
1903
|
-
]
|
|
1544
|
+
paths: TRANSFORM_PATHS_10
|
|
1904
1545
|
}
|
|
1905
1546
|
]);
|
|
1906
1547
|
const metadata = {
|
|
@@ -1922,36 +1563,11 @@ function patchDataCollectionField(payload) {
|
|
|
1922
1563
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1923
1564
|
{
|
|
1924
1565
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1925
|
-
paths:
|
|
1926
|
-
{ path: "dataCollection.createdDate" },
|
|
1927
|
-
{ path: "dataCollection.updatedDate" },
|
|
1928
|
-
{
|
|
1929
|
-
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1930
|
-
},
|
|
1931
|
-
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1932
|
-
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1933
|
-
{
|
|
1934
|
-
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1935
|
-
},
|
|
1936
|
-
{
|
|
1937
|
-
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1938
|
-
},
|
|
1939
|
-
{
|
|
1940
|
-
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1941
|
-
}
|
|
1942
|
-
]
|
|
1566
|
+
paths: TRANSFORM_PATHS_6
|
|
1943
1567
|
},
|
|
1944
1568
|
{
|
|
1945
1569
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1946
|
-
paths:
|
|
1947
|
-
{ path: "dataCollection.fields.numberRange.min" },
|
|
1948
|
-
{ path: "dataCollection.fields.numberRange.max" },
|
|
1949
|
-
{
|
|
1950
|
-
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1951
|
-
},
|
|
1952
|
-
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1953
|
-
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1954
|
-
]
|
|
1570
|
+
paths: TRANSFORM_PATHS_7
|
|
1955
1571
|
}
|
|
1956
1572
|
])
|
|
1957
1573
|
};
|
|
@@ -2581,6 +2197,35 @@ async function deletePublishPlugin2(dataCollectionId) {
|
|
|
2581
2197
|
throw transformedError;
|
|
2582
2198
|
}
|
|
2583
2199
|
}
|
|
2200
|
+
async function updatePublishPlugin2(dataCollectionId, options) {
|
|
2201
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2202
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2203
|
+
dataCollectionId,
|
|
2204
|
+
publishOptions: options?.publishOptions
|
|
2205
|
+
});
|
|
2206
|
+
const reqOpts = updatePublishPlugin(payload);
|
|
2207
|
+
sideEffects?.onSiteCall?.();
|
|
2208
|
+
try {
|
|
2209
|
+
const result = await httpClient.request(reqOpts);
|
|
2210
|
+
sideEffects?.onSuccess?.(result);
|
|
2211
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2212
|
+
} catch (err) {
|
|
2213
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2214
|
+
err,
|
|
2215
|
+
{
|
|
2216
|
+
spreadPathsToArguments: {},
|
|
2217
|
+
explicitPathsToArguments: {
|
|
2218
|
+
dataCollectionId: "$[0]",
|
|
2219
|
+
publishOptions: "$[1].publishOptions"
|
|
2220
|
+
},
|
|
2221
|
+
singleArgumentUnchanged: false
|
|
2222
|
+
},
|
|
2223
|
+
["dataCollectionId", "options"]
|
|
2224
|
+
);
|
|
2225
|
+
sideEffects?.onError?.(err);
|
|
2226
|
+
throw transformedError;
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2584
2229
|
async function addUrlizedPlugin2(dataCollectionId, options) {
|
|
2585
2230
|
const { httpClient, sideEffects } = arguments[2];
|
|
2586
2231
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2635,6 +2280,35 @@ async function deleteUrlizedPlugin2(dataCollectionId) {
|
|
|
2635
2280
|
throw transformedError;
|
|
2636
2281
|
}
|
|
2637
2282
|
}
|
|
2283
|
+
async function updateUrlizedPlugin2(dataCollectionId, options) {
|
|
2284
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2285
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2286
|
+
dataCollectionId,
|
|
2287
|
+
urlizedOptions: options?.urlizedOptions
|
|
2288
|
+
});
|
|
2289
|
+
const reqOpts = updateUrlizedPlugin(payload);
|
|
2290
|
+
sideEffects?.onSiteCall?.();
|
|
2291
|
+
try {
|
|
2292
|
+
const result = await httpClient.request(reqOpts);
|
|
2293
|
+
sideEffects?.onSuccess?.(result);
|
|
2294
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2295
|
+
} catch (err) {
|
|
2296
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2297
|
+
err,
|
|
2298
|
+
{
|
|
2299
|
+
spreadPathsToArguments: {},
|
|
2300
|
+
explicitPathsToArguments: {
|
|
2301
|
+
dataCollectionId: "$[0]",
|
|
2302
|
+
urlizedOptions: "$[1].urlizedOptions"
|
|
2303
|
+
},
|
|
2304
|
+
singleArgumentUnchanged: false
|
|
2305
|
+
},
|
|
2306
|
+
["dataCollectionId", "options"]
|
|
2307
|
+
);
|
|
2308
|
+
sideEffects?.onError?.(err);
|
|
2309
|
+
throw transformedError;
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2638
2312
|
async function addMultilingualPlugin2(dataCollectionId, options) {
|
|
2639
2313
|
const { httpClient, sideEffects } = arguments[2];
|
|
2640
2314
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2689,6 +2363,35 @@ async function deleteMultilingualPlugin2(dataCollectionId) {
|
|
|
2689
2363
|
throw transformedError;
|
|
2690
2364
|
}
|
|
2691
2365
|
}
|
|
2366
|
+
async function updateMultilingualPlugin2(dataCollectionId, options) {
|
|
2367
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2368
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2369
|
+
dataCollectionId,
|
|
2370
|
+
multilingualOptions: options?.multilingualOptions
|
|
2371
|
+
});
|
|
2372
|
+
const reqOpts = updateMultilingualPlugin(payload);
|
|
2373
|
+
sideEffects?.onSiteCall?.();
|
|
2374
|
+
try {
|
|
2375
|
+
const result = await httpClient.request(reqOpts);
|
|
2376
|
+
sideEffects?.onSuccess?.(result);
|
|
2377
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2378
|
+
} catch (err) {
|
|
2379
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2380
|
+
err,
|
|
2381
|
+
{
|
|
2382
|
+
spreadPathsToArguments: {},
|
|
2383
|
+
explicitPathsToArguments: {
|
|
2384
|
+
dataCollectionId: "$[0]",
|
|
2385
|
+
multilingualOptions: "$[1].multilingualOptions"
|
|
2386
|
+
},
|
|
2387
|
+
singleArgumentUnchanged: false
|
|
2388
|
+
},
|
|
2389
|
+
["dataCollectionId", "options"]
|
|
2390
|
+
);
|
|
2391
|
+
sideEffects?.onError?.(err);
|
|
2392
|
+
throw transformedError;
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2692
2395
|
async function addCmsPlugin2(dataCollectionId, options) {
|
|
2693
2396
|
const { httpClient, sideEffects } = arguments[2];
|
|
2694
2397
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2743,6 +2446,35 @@ async function deleteCmsPlugin2(dataCollectionId) {
|
|
|
2743
2446
|
throw transformedError;
|
|
2744
2447
|
}
|
|
2745
2448
|
}
|
|
2449
|
+
async function updateCmsPlugin2(dataCollectionId, options) {
|
|
2450
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2451
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2452
|
+
dataCollectionId,
|
|
2453
|
+
cmsOptions: options?.cmsOptions
|
|
2454
|
+
});
|
|
2455
|
+
const reqOpts = updateCmsPlugin(payload);
|
|
2456
|
+
sideEffects?.onSiteCall?.();
|
|
2457
|
+
try {
|
|
2458
|
+
const result = await httpClient.request(reqOpts);
|
|
2459
|
+
sideEffects?.onSuccess?.(result);
|
|
2460
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2461
|
+
} catch (err) {
|
|
2462
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2463
|
+
err,
|
|
2464
|
+
{
|
|
2465
|
+
spreadPathsToArguments: {},
|
|
2466
|
+
explicitPathsToArguments: {
|
|
2467
|
+
dataCollectionId: "$[0]",
|
|
2468
|
+
cmsOptions: "$[1].cmsOptions"
|
|
2469
|
+
},
|
|
2470
|
+
singleArgumentUnchanged: false
|
|
2471
|
+
},
|
|
2472
|
+
["dataCollectionId", "options"]
|
|
2473
|
+
);
|
|
2474
|
+
sideEffects?.onError?.(err);
|
|
2475
|
+
throw transformedError;
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2746
2478
|
async function addCatalogPlugin2(dataCollectionId, options) {
|
|
2747
2479
|
const { httpClient, sideEffects } = arguments[2];
|
|
2748
2480
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2797,6 +2529,35 @@ async function deleteCatalogPlugin2(dataCollectionId) {
|
|
|
2797
2529
|
throw transformedError;
|
|
2798
2530
|
}
|
|
2799
2531
|
}
|
|
2532
|
+
async function updateCatalogPlugin2(dataCollectionId, options) {
|
|
2533
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2534
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2535
|
+
dataCollectionId,
|
|
2536
|
+
catalogOptions: options?.catalogOptions
|
|
2537
|
+
});
|
|
2538
|
+
const reqOpts = updateCatalogPlugin(payload);
|
|
2539
|
+
sideEffects?.onSiteCall?.();
|
|
2540
|
+
try {
|
|
2541
|
+
const result = await httpClient.request(reqOpts);
|
|
2542
|
+
sideEffects?.onSuccess?.(result);
|
|
2543
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2544
|
+
} catch (err) {
|
|
2545
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2546
|
+
err,
|
|
2547
|
+
{
|
|
2548
|
+
spreadPathsToArguments: {},
|
|
2549
|
+
explicitPathsToArguments: {
|
|
2550
|
+
dataCollectionId: "$[0]",
|
|
2551
|
+
catalogOptions: "$[1].catalogOptions"
|
|
2552
|
+
},
|
|
2553
|
+
singleArgumentUnchanged: false
|
|
2554
|
+
},
|
|
2555
|
+
["dataCollectionId", "options"]
|
|
2556
|
+
);
|
|
2557
|
+
sideEffects?.onError?.(err);
|
|
2558
|
+
throw transformedError;
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2800
2561
|
async function addDraftItemsPlugin2(dataCollectionId, options) {
|
|
2801
2562
|
const { httpClient, sideEffects } = arguments[2];
|
|
2802
2563
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2857,6 +2618,35 @@ async function deleteDraftItemsPlugin2(dataCollectionId, options) {
|
|
|
2857
2618
|
throw transformedError;
|
|
2858
2619
|
}
|
|
2859
2620
|
}
|
|
2621
|
+
async function updateDraftItemsPlugin2(dataCollectionId, options) {
|
|
2622
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2623
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2624
|
+
dataCollectionId,
|
|
2625
|
+
draftItemsOptions: options?.draftItemsOptions
|
|
2626
|
+
});
|
|
2627
|
+
const reqOpts = updateDraftItemsPlugin(payload);
|
|
2628
|
+
sideEffects?.onSiteCall?.();
|
|
2629
|
+
try {
|
|
2630
|
+
const result = await httpClient.request(reqOpts);
|
|
2631
|
+
sideEffects?.onSuccess?.(result);
|
|
2632
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2633
|
+
} catch (err) {
|
|
2634
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2635
|
+
err,
|
|
2636
|
+
{
|
|
2637
|
+
spreadPathsToArguments: {},
|
|
2638
|
+
explicitPathsToArguments: {
|
|
2639
|
+
dataCollectionId: "$[0]",
|
|
2640
|
+
draftItemsOptions: "$[1].draftItemsOptions"
|
|
2641
|
+
},
|
|
2642
|
+
singleArgumentUnchanged: false
|
|
2643
|
+
},
|
|
2644
|
+
["dataCollectionId", "options"]
|
|
2645
|
+
);
|
|
2646
|
+
sideEffects?.onError?.(err);
|
|
2647
|
+
throw transformedError;
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2860
2650
|
async function patchDataCollectionField2(dataCollectionId, field) {
|
|
2861
2651
|
const { httpClient, sideEffects } = arguments[2];
|
|
2862
2652
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2934,7 +2724,13 @@ async function patchDataCollectionField2(dataCollectionId, field) {
|
|
|
2934
2724
|
patchDataCollection,
|
|
2935
2725
|
patchDataCollectionField,
|
|
2936
2726
|
restoreDataCollection,
|
|
2727
|
+
updateCatalogPlugin,
|
|
2728
|
+
updateCmsPlugin,
|
|
2937
2729
|
updateDataCollection,
|
|
2938
|
-
updateDataCollectionField
|
|
2730
|
+
updateDataCollectionField,
|
|
2731
|
+
updateDraftItemsPlugin,
|
|
2732
|
+
updateMultilingualPlugin,
|
|
2733
|
+
updatePublishPlugin,
|
|
2734
|
+
updateUrlizedPlugin
|
|
2939
2735
|
});
|
|
2940
2736
|
//# sourceMappingURL=index.typings.js.map
|