@wix/auto_sdk_data_collections 1.0.87 → 1.0.88
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 +1229 -70
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +216 -1
- package/build/cjs/index.typings.js +1125 -69
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +197 -2
- package/build/cjs/meta.js +940 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +1214 -70
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +216 -1
- package/build/es/index.typings.mjs +1110 -69
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +197 -2
- package/build/es/meta.mjs +925 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +135 -3
- package/build/internal/cjs/index.js +1229 -70
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +346 -1
- package/build/internal/cjs/index.typings.js +1125 -69
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +197 -2
- package/build/internal/cjs/meta.js +940 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +135 -3
- package/build/internal/es/index.mjs +1214 -70
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +346 -1
- package/build/internal/es/index.typings.mjs +1110 -69
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +197 -2
- package/build/internal/es/meta.mjs +925 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -25,6 +25,8 @@ __export(index_typings_exports, {
|
|
|
25
25
|
CollectionType: () => CollectionType,
|
|
26
26
|
DataOperation: () => DataOperation,
|
|
27
27
|
Direction: () => Direction,
|
|
28
|
+
DraftItemsPluginConflictAction: () => DraftItemsPluginConflictAction,
|
|
29
|
+
DraftItemsRemovalAction: () => DraftItemsRemovalAction,
|
|
28
30
|
FieldPluginType: () => FieldPluginType,
|
|
29
31
|
Format: () => Format,
|
|
30
32
|
IndexSource: () => IndexSource,
|
|
@@ -35,6 +37,7 @@ __export(index_typings_exports, {
|
|
|
35
37
|
PagingMode: () => PagingMode,
|
|
36
38
|
Permission: () => Permission,
|
|
37
39
|
PluginType: () => PluginType,
|
|
40
|
+
PublishPluginConflictAction: () => PublishPluginConflictAction,
|
|
38
41
|
QueryOperator: () => QueryOperator,
|
|
39
42
|
Role: () => Role,
|
|
40
43
|
Segment: () => Segment,
|
|
@@ -43,12 +46,24 @@ __export(index_typings_exports, {
|
|
|
43
46
|
TenantMode: () => TenantMode,
|
|
44
47
|
Type: () => Type,
|
|
45
48
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
49
|
+
addCatalogPlugin: () => addCatalogPlugin2,
|
|
50
|
+
addCmsPlugin: () => addCmsPlugin2,
|
|
46
51
|
addDataCollectionPlugin: () => addDataCollectionPlugin2,
|
|
52
|
+
addDraftItemsPlugin: () => addDraftItemsPlugin2,
|
|
53
|
+
addMultilingualPlugin: () => addMultilingualPlugin2,
|
|
54
|
+
addPublishPlugin: () => addPublishPlugin2,
|
|
55
|
+
addUrlizedPlugin: () => addUrlizedPlugin2,
|
|
47
56
|
createDataCollection: () => createDataCollection2,
|
|
48
57
|
createDataCollectionField: () => createDataCollectionField2,
|
|
58
|
+
deleteCatalogPlugin: () => deleteCatalogPlugin2,
|
|
59
|
+
deleteCmsPlugin: () => deleteCmsPlugin2,
|
|
49
60
|
deleteDataCollection: () => deleteDataCollection2,
|
|
50
61
|
deleteDataCollectionField: () => deleteDataCollectionField2,
|
|
51
62
|
deleteDataCollectionPlugin: () => deleteDataCollectionPlugin2,
|
|
63
|
+
deleteDraftItemsPlugin: () => deleteDraftItemsPlugin2,
|
|
64
|
+
deleteMultilingualPlugin: () => deleteMultilingualPlugin2,
|
|
65
|
+
deletePublishPlugin: () => deletePublishPlugin2,
|
|
66
|
+
deleteUrlizedPlugin: () => deleteUrlizedPlugin2,
|
|
52
67
|
getDataCollection: () => getDataCollection2,
|
|
53
68
|
listDataCollections: () => listDataCollections2,
|
|
54
69
|
patchDataCollection: () => patchDataCollection2,
|
|
@@ -1183,6 +1198,682 @@ function deleteDataCollectionPlugin(payload) {
|
|
|
1183
1198
|
}
|
|
1184
1199
|
return __deleteDataCollectionPlugin;
|
|
1185
1200
|
}
|
|
1201
|
+
function addPublishPlugin(payload) {
|
|
1202
|
+
function __addPublishPlugin({ host }) {
|
|
1203
|
+
const metadata = {
|
|
1204
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1205
|
+
method: "POST",
|
|
1206
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddPublishPlugin",
|
|
1207
|
+
packageName: PACKAGE_NAME,
|
|
1208
|
+
migrationOptions: {
|
|
1209
|
+
optInTransformResponse: true
|
|
1210
|
+
},
|
|
1211
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1212
|
+
{ protoPath: "/v2/collections/add-publish-plugin", data: payload, host }
|
|
1213
|
+
),
|
|
1214
|
+
data: payload,
|
|
1215
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1216
|
+
{
|
|
1217
|
+
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
|
+
]
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
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
|
+
]
|
|
1248
|
+
}
|
|
1249
|
+
])
|
|
1250
|
+
};
|
|
1251
|
+
return metadata;
|
|
1252
|
+
}
|
|
1253
|
+
return __addPublishPlugin;
|
|
1254
|
+
}
|
|
1255
|
+
function deletePublishPlugin(payload) {
|
|
1256
|
+
function __deletePublishPlugin({ host }) {
|
|
1257
|
+
const metadata = {
|
|
1258
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1259
|
+
method: "POST",
|
|
1260
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeletePublishPlugin",
|
|
1261
|
+
packageName: PACKAGE_NAME,
|
|
1262
|
+
migrationOptions: {
|
|
1263
|
+
optInTransformResponse: true
|
|
1264
|
+
},
|
|
1265
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1266
|
+
{
|
|
1267
|
+
protoPath: "/v2/collections/delete-publish-plugin",
|
|
1268
|
+
data: payload,
|
|
1269
|
+
host
|
|
1270
|
+
}
|
|
1271
|
+
),
|
|
1272
|
+
data: payload,
|
|
1273
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1274
|
+
{
|
|
1275
|
+
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
|
+
]
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
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
|
+
]
|
|
1306
|
+
}
|
|
1307
|
+
])
|
|
1308
|
+
};
|
|
1309
|
+
return metadata;
|
|
1310
|
+
}
|
|
1311
|
+
return __deletePublishPlugin;
|
|
1312
|
+
}
|
|
1313
|
+
function addUrlizedPlugin(payload) {
|
|
1314
|
+
function __addUrlizedPlugin({ host }) {
|
|
1315
|
+
const metadata = {
|
|
1316
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1317
|
+
method: "POST",
|
|
1318
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddUrlizedPlugin",
|
|
1319
|
+
packageName: PACKAGE_NAME,
|
|
1320
|
+
migrationOptions: {
|
|
1321
|
+
optInTransformResponse: true
|
|
1322
|
+
},
|
|
1323
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1324
|
+
{ protoPath: "/v2/collections/add-urlized-plugin", data: payload, host }
|
|
1325
|
+
),
|
|
1326
|
+
data: payload,
|
|
1327
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1328
|
+
{
|
|
1329
|
+
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
|
+
]
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
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
|
+
]
|
|
1360
|
+
}
|
|
1361
|
+
])
|
|
1362
|
+
};
|
|
1363
|
+
return metadata;
|
|
1364
|
+
}
|
|
1365
|
+
return __addUrlizedPlugin;
|
|
1366
|
+
}
|
|
1367
|
+
function deleteUrlizedPlugin(payload) {
|
|
1368
|
+
function __deleteUrlizedPlugin({ host }) {
|
|
1369
|
+
const metadata = {
|
|
1370
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1371
|
+
method: "POST",
|
|
1372
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteUrlizedPlugin",
|
|
1373
|
+
packageName: PACKAGE_NAME,
|
|
1374
|
+
migrationOptions: {
|
|
1375
|
+
optInTransformResponse: true
|
|
1376
|
+
},
|
|
1377
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1378
|
+
{
|
|
1379
|
+
protoPath: "/v2/collections/delete-urlized-plugin",
|
|
1380
|
+
data: payload,
|
|
1381
|
+
host
|
|
1382
|
+
}
|
|
1383
|
+
),
|
|
1384
|
+
data: payload,
|
|
1385
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1386
|
+
{
|
|
1387
|
+
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
|
+
]
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
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
|
+
]
|
|
1418
|
+
}
|
|
1419
|
+
])
|
|
1420
|
+
};
|
|
1421
|
+
return metadata;
|
|
1422
|
+
}
|
|
1423
|
+
return __deleteUrlizedPlugin;
|
|
1424
|
+
}
|
|
1425
|
+
function addMultilingualPlugin(payload) {
|
|
1426
|
+
function __addMultilingualPlugin({ host }) {
|
|
1427
|
+
const metadata = {
|
|
1428
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1429
|
+
method: "POST",
|
|
1430
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddMultilingualPlugin",
|
|
1431
|
+
packageName: PACKAGE_NAME,
|
|
1432
|
+
migrationOptions: {
|
|
1433
|
+
optInTransformResponse: true
|
|
1434
|
+
},
|
|
1435
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1436
|
+
{
|
|
1437
|
+
protoPath: "/v2/collections/add-multilingual-plugin",
|
|
1438
|
+
data: payload,
|
|
1439
|
+
host
|
|
1440
|
+
}
|
|
1441
|
+
),
|
|
1442
|
+
data: payload,
|
|
1443
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1444
|
+
{
|
|
1445
|
+
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
|
+
]
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
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
|
+
]
|
|
1476
|
+
}
|
|
1477
|
+
])
|
|
1478
|
+
};
|
|
1479
|
+
return metadata;
|
|
1480
|
+
}
|
|
1481
|
+
return __addMultilingualPlugin;
|
|
1482
|
+
}
|
|
1483
|
+
function deleteMultilingualPlugin(payload) {
|
|
1484
|
+
function __deleteMultilingualPlugin({ host }) {
|
|
1485
|
+
const metadata = {
|
|
1486
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1487
|
+
method: "POST",
|
|
1488
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteMultilingualPlugin",
|
|
1489
|
+
packageName: PACKAGE_NAME,
|
|
1490
|
+
migrationOptions: {
|
|
1491
|
+
optInTransformResponse: true
|
|
1492
|
+
},
|
|
1493
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1494
|
+
{
|
|
1495
|
+
protoPath: "/v2/collections/delete-multilingual-plugin",
|
|
1496
|
+
data: payload,
|
|
1497
|
+
host
|
|
1498
|
+
}
|
|
1499
|
+
),
|
|
1500
|
+
data: payload,
|
|
1501
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1502
|
+
{
|
|
1503
|
+
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
|
+
]
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
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
|
+
]
|
|
1534
|
+
}
|
|
1535
|
+
])
|
|
1536
|
+
};
|
|
1537
|
+
return metadata;
|
|
1538
|
+
}
|
|
1539
|
+
return __deleteMultilingualPlugin;
|
|
1540
|
+
}
|
|
1541
|
+
function addCmsPlugin(payload) {
|
|
1542
|
+
function __addCmsPlugin({ host }) {
|
|
1543
|
+
const metadata = {
|
|
1544
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1545
|
+
method: "POST",
|
|
1546
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddCmsPlugin",
|
|
1547
|
+
packageName: PACKAGE_NAME,
|
|
1548
|
+
migrationOptions: {
|
|
1549
|
+
optInTransformResponse: true
|
|
1550
|
+
},
|
|
1551
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1552
|
+
{ protoPath: "/v2/collections/add-cms-plugin", data: payload, host }
|
|
1553
|
+
),
|
|
1554
|
+
data: payload,
|
|
1555
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1556
|
+
{
|
|
1557
|
+
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
|
+
]
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
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
|
+
]
|
|
1588
|
+
}
|
|
1589
|
+
])
|
|
1590
|
+
};
|
|
1591
|
+
return metadata;
|
|
1592
|
+
}
|
|
1593
|
+
return __addCmsPlugin;
|
|
1594
|
+
}
|
|
1595
|
+
function deleteCmsPlugin(payload) {
|
|
1596
|
+
function __deleteCmsPlugin({ host }) {
|
|
1597
|
+
const metadata = {
|
|
1598
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1599
|
+
method: "POST",
|
|
1600
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteCmsPlugin",
|
|
1601
|
+
packageName: PACKAGE_NAME,
|
|
1602
|
+
migrationOptions: {
|
|
1603
|
+
optInTransformResponse: true
|
|
1604
|
+
},
|
|
1605
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1606
|
+
{ protoPath: "/v2/collections/delete-cms-plugin", data: payload, host }
|
|
1607
|
+
),
|
|
1608
|
+
data: payload,
|
|
1609
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1610
|
+
{
|
|
1611
|
+
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
|
+
]
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
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
|
+
]
|
|
1642
|
+
}
|
|
1643
|
+
])
|
|
1644
|
+
};
|
|
1645
|
+
return metadata;
|
|
1646
|
+
}
|
|
1647
|
+
return __deleteCmsPlugin;
|
|
1648
|
+
}
|
|
1649
|
+
function addCatalogPlugin(payload) {
|
|
1650
|
+
function __addCatalogPlugin({ host }) {
|
|
1651
|
+
const metadata = {
|
|
1652
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1653
|
+
method: "POST",
|
|
1654
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddCatalogPlugin",
|
|
1655
|
+
packageName: PACKAGE_NAME,
|
|
1656
|
+
migrationOptions: {
|
|
1657
|
+
optInTransformResponse: true
|
|
1658
|
+
},
|
|
1659
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1660
|
+
{ protoPath: "/v2/collections/add-catalog-plugin", data: payload, host }
|
|
1661
|
+
),
|
|
1662
|
+
data: payload,
|
|
1663
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1664
|
+
{
|
|
1665
|
+
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
|
+
]
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
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
|
+
]
|
|
1696
|
+
}
|
|
1697
|
+
])
|
|
1698
|
+
};
|
|
1699
|
+
return metadata;
|
|
1700
|
+
}
|
|
1701
|
+
return __addCatalogPlugin;
|
|
1702
|
+
}
|
|
1703
|
+
function deleteCatalogPlugin(payload) {
|
|
1704
|
+
function __deleteCatalogPlugin({ host }) {
|
|
1705
|
+
const metadata = {
|
|
1706
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1707
|
+
method: "POST",
|
|
1708
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteCatalogPlugin",
|
|
1709
|
+
packageName: PACKAGE_NAME,
|
|
1710
|
+
migrationOptions: {
|
|
1711
|
+
optInTransformResponse: true
|
|
1712
|
+
},
|
|
1713
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1714
|
+
{
|
|
1715
|
+
protoPath: "/v2/collections/delete-catalog-plugin",
|
|
1716
|
+
data: payload,
|
|
1717
|
+
host
|
|
1718
|
+
}
|
|
1719
|
+
),
|
|
1720
|
+
data: payload,
|
|
1721
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1722
|
+
{
|
|
1723
|
+
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
|
+
]
|
|
1742
|
+
},
|
|
1743
|
+
{
|
|
1744
|
+
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
|
+
]
|
|
1754
|
+
}
|
|
1755
|
+
])
|
|
1756
|
+
};
|
|
1757
|
+
return metadata;
|
|
1758
|
+
}
|
|
1759
|
+
return __deleteCatalogPlugin;
|
|
1760
|
+
}
|
|
1761
|
+
function addDraftItemsPlugin(payload) {
|
|
1762
|
+
function __addDraftItemsPlugin({ host }) {
|
|
1763
|
+
const metadata = {
|
|
1764
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1765
|
+
method: "POST",
|
|
1766
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddDraftItemsPlugin",
|
|
1767
|
+
packageName: PACKAGE_NAME,
|
|
1768
|
+
migrationOptions: {
|
|
1769
|
+
optInTransformResponse: true
|
|
1770
|
+
},
|
|
1771
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1772
|
+
{
|
|
1773
|
+
protoPath: "/v2/collections/add-draft-items-plugin",
|
|
1774
|
+
data: payload,
|
|
1775
|
+
host
|
|
1776
|
+
}
|
|
1777
|
+
),
|
|
1778
|
+
data: payload,
|
|
1779
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1780
|
+
{
|
|
1781
|
+
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
|
+
]
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
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
|
+
]
|
|
1812
|
+
}
|
|
1813
|
+
])
|
|
1814
|
+
};
|
|
1815
|
+
return metadata;
|
|
1816
|
+
}
|
|
1817
|
+
return __addDraftItemsPlugin;
|
|
1818
|
+
}
|
|
1819
|
+
function deleteDraftItemsPlugin(payload) {
|
|
1820
|
+
function __deleteDraftItemsPlugin({ host }) {
|
|
1821
|
+
const metadata = {
|
|
1822
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1823
|
+
method: "POST",
|
|
1824
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDraftItemsPlugin",
|
|
1825
|
+
packageName: PACKAGE_NAME,
|
|
1826
|
+
migrationOptions: {
|
|
1827
|
+
optInTransformResponse: true
|
|
1828
|
+
},
|
|
1829
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1830
|
+
{
|
|
1831
|
+
protoPath: "/v2/collections/delete-draft-items-plugin",
|
|
1832
|
+
data: payload,
|
|
1833
|
+
host
|
|
1834
|
+
}
|
|
1835
|
+
),
|
|
1836
|
+
data: payload,
|
|
1837
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1838
|
+
{
|
|
1839
|
+
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
|
+
]
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
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
|
+
]
|
|
1870
|
+
}
|
|
1871
|
+
])
|
|
1872
|
+
};
|
|
1873
|
+
return metadata;
|
|
1874
|
+
}
|
|
1875
|
+
return __deleteDraftItemsPlugin;
|
|
1876
|
+
}
|
|
1186
1877
|
function patchDataCollectionField(payload) {
|
|
1187
1878
|
function __patchDataCollectionField({ host }) {
|
|
1188
1879
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1437,6 +2128,24 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1437
2128
|
SortOrder2["DESC"] = "DESC";
|
|
1438
2129
|
return SortOrder2;
|
|
1439
2130
|
})(SortOrder || {});
|
|
2131
|
+
var DraftItemsPluginConflictAction = /* @__PURE__ */ ((DraftItemsPluginConflictAction2) => {
|
|
2132
|
+
DraftItemsPluginConflictAction2["FAIL_WHEN_DRAFT_ITEMS_INSTALLED"] = "FAIL_WHEN_DRAFT_ITEMS_INSTALLED";
|
|
2133
|
+
DraftItemsPluginConflictAction2["DISCARD_DRAFT_ITEMS"] = "DISCARD_DRAFT_ITEMS";
|
|
2134
|
+
DraftItemsPluginConflictAction2["PUBLISH_DRAFT_ITEMS"] = "PUBLISH_DRAFT_ITEMS";
|
|
2135
|
+
DraftItemsPluginConflictAction2["COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS"] = "COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS";
|
|
2136
|
+
return DraftItemsPluginConflictAction2;
|
|
2137
|
+
})(DraftItemsPluginConflictAction || {});
|
|
2138
|
+
var PublishPluginConflictAction = /* @__PURE__ */ ((PublishPluginConflictAction2) => {
|
|
2139
|
+
PublishPluginConflictAction2["FAIL_WHEN_PUBLISH_INSTALLED"] = "FAIL_WHEN_PUBLISH_INSTALLED";
|
|
2140
|
+
PublishPluginConflictAction2["COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS"] = "COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS";
|
|
2141
|
+
return PublishPluginConflictAction2;
|
|
2142
|
+
})(PublishPluginConflictAction || {});
|
|
2143
|
+
var DraftItemsRemovalAction = /* @__PURE__ */ ((DraftItemsRemovalAction2) => {
|
|
2144
|
+
DraftItemsRemovalAction2["FAIL_IF_DRAFT_ITEMS_EXIST"] = "FAIL_IF_DRAFT_ITEMS_EXIST";
|
|
2145
|
+
DraftItemsRemovalAction2["DISCARD_EXISTING_DRAFT_ITEMS"] = "DISCARD_EXISTING_DRAFT_ITEMS";
|
|
2146
|
+
DraftItemsRemovalAction2["PUBLISH_EXISTING_DRAFT_ITEMS"] = "PUBLISH_EXISTING_DRAFT_ITEMS";
|
|
2147
|
+
return DraftItemsRemovalAction2;
|
|
2148
|
+
})(DraftItemsRemovalAction || {});
|
|
1440
2149
|
var TenantMode = /* @__PURE__ */ ((TenantMode2) => {
|
|
1441
2150
|
TenantMode2["META_SITE"] = "META_SITE";
|
|
1442
2151
|
TenantMode2["ACCOUNT"] = "ACCOUNT";
|
|
@@ -1475,42 +2184,236 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1475
2184
|
async function createDataCollection2(collection) {
|
|
1476
2185
|
const { httpClient, sideEffects } = arguments[1];
|
|
1477
2186
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1478
|
-
collection
|
|
2187
|
+
collection
|
|
2188
|
+
});
|
|
2189
|
+
const reqOpts = createDataCollection(payload);
|
|
2190
|
+
sideEffects?.onSiteCall?.();
|
|
2191
|
+
try {
|
|
2192
|
+
const result = await httpClient.request(reqOpts);
|
|
2193
|
+
sideEffects?.onSuccess?.(result);
|
|
2194
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.collection;
|
|
2195
|
+
} catch (err) {
|
|
2196
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2197
|
+
err,
|
|
2198
|
+
{
|
|
2199
|
+
spreadPathsToArguments: {},
|
|
2200
|
+
explicitPathsToArguments: { collection: "$[0]" },
|
|
2201
|
+
singleArgumentUnchanged: false
|
|
2202
|
+
},
|
|
2203
|
+
["collection"]
|
|
2204
|
+
);
|
|
2205
|
+
sideEffects?.onError?.(err);
|
|
2206
|
+
throw transformedError;
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
async function getDataCollection2(dataCollectionId, options) {
|
|
2210
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2211
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2212
|
+
dataCollectionId,
|
|
2213
|
+
consistentRead: options?.consistentRead,
|
|
2214
|
+
includeAllowedDataPermissions: options?.includeAllowedDataPermissions,
|
|
2215
|
+
fields: options?.fields
|
|
2216
|
+
});
|
|
2217
|
+
const reqOpts = getDataCollection(payload);
|
|
2218
|
+
sideEffects?.onSiteCall?.();
|
|
2219
|
+
try {
|
|
2220
|
+
const result = await httpClient.request(reqOpts);
|
|
2221
|
+
sideEffects?.onSuccess?.(result);
|
|
2222
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.collection;
|
|
2223
|
+
} catch (err) {
|
|
2224
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2225
|
+
err,
|
|
2226
|
+
{
|
|
2227
|
+
spreadPathsToArguments: {},
|
|
2228
|
+
explicitPathsToArguments: {
|
|
2229
|
+
dataCollectionId: "$[0]",
|
|
2230
|
+
consistentRead: "$[1].consistentRead",
|
|
2231
|
+
includeAllowedDataPermissions: "$[1].includeAllowedDataPermissions",
|
|
2232
|
+
fields: "$[1].fields"
|
|
2233
|
+
},
|
|
2234
|
+
singleArgumentUnchanged: false
|
|
2235
|
+
},
|
|
2236
|
+
["dataCollectionId", "options"]
|
|
2237
|
+
);
|
|
2238
|
+
sideEffects?.onError?.(err);
|
|
2239
|
+
throw transformedError;
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
async function listDataCollections2(options) {
|
|
2243
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2244
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2245
|
+
sort: options?.sort,
|
|
2246
|
+
paging: options?.paging,
|
|
2247
|
+
consistentRead: options?.consistentRead,
|
|
2248
|
+
includeAllowedDataPermissions: options?.includeAllowedDataPermissions,
|
|
2249
|
+
fields: options?.fields
|
|
2250
|
+
});
|
|
2251
|
+
const reqOpts = listDataCollections(payload);
|
|
2252
|
+
sideEffects?.onSiteCall?.();
|
|
2253
|
+
try {
|
|
2254
|
+
const result = await httpClient.request(reqOpts);
|
|
2255
|
+
sideEffects?.onSuccess?.(result);
|
|
2256
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2257
|
+
} catch (err) {
|
|
2258
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2259
|
+
err,
|
|
2260
|
+
{
|
|
2261
|
+
spreadPathsToArguments: {},
|
|
2262
|
+
explicitPathsToArguments: {
|
|
2263
|
+
sort: "$[0].sort",
|
|
2264
|
+
paging: "$[0].paging",
|
|
2265
|
+
consistentRead: "$[0].consistentRead",
|
|
2266
|
+
includeAllowedDataPermissions: "$[0].includeAllowedDataPermissions",
|
|
2267
|
+
fields: "$[0].fields"
|
|
2268
|
+
},
|
|
2269
|
+
singleArgumentUnchanged: false
|
|
2270
|
+
},
|
|
2271
|
+
["options"]
|
|
2272
|
+
);
|
|
2273
|
+
sideEffects?.onError?.(err);
|
|
2274
|
+
throw transformedError;
|
|
2275
|
+
}
|
|
2276
|
+
}
|
|
2277
|
+
async function updateDataCollection2(collection) {
|
|
2278
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2279
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2280
|
+
collection
|
|
2281
|
+
});
|
|
2282
|
+
const reqOpts = updateDataCollection(payload);
|
|
2283
|
+
sideEffects?.onSiteCall?.();
|
|
2284
|
+
try {
|
|
2285
|
+
const result = await httpClient.request(reqOpts);
|
|
2286
|
+
sideEffects?.onSuccess?.(result);
|
|
2287
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.collection;
|
|
2288
|
+
} catch (err) {
|
|
2289
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2290
|
+
err,
|
|
2291
|
+
{
|
|
2292
|
+
spreadPathsToArguments: {},
|
|
2293
|
+
explicitPathsToArguments: { collection: "$[0]" },
|
|
2294
|
+
singleArgumentUnchanged: false
|
|
2295
|
+
},
|
|
2296
|
+
["collection"]
|
|
2297
|
+
);
|
|
2298
|
+
sideEffects?.onError?.(err);
|
|
2299
|
+
throw transformedError;
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
async function deleteDataCollection2(dataCollectionId) {
|
|
2303
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2304
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2305
|
+
dataCollectionId
|
|
2306
|
+
});
|
|
2307
|
+
const reqOpts = deleteDataCollection(payload);
|
|
2308
|
+
sideEffects?.onSiteCall?.();
|
|
2309
|
+
try {
|
|
2310
|
+
const result = await httpClient.request(reqOpts);
|
|
2311
|
+
sideEffects?.onSuccess?.(result);
|
|
2312
|
+
} catch (err) {
|
|
2313
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2314
|
+
err,
|
|
2315
|
+
{
|
|
2316
|
+
spreadPathsToArguments: {},
|
|
2317
|
+
explicitPathsToArguments: { dataCollectionId: "$[0]" },
|
|
2318
|
+
singleArgumentUnchanged: false
|
|
2319
|
+
},
|
|
2320
|
+
["dataCollectionId"]
|
|
2321
|
+
);
|
|
2322
|
+
sideEffects?.onError?.(err);
|
|
2323
|
+
throw transformedError;
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
async function restoreDataCollection2(dataCollectionId) {
|
|
2327
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2328
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2329
|
+
dataCollectionId
|
|
2330
|
+
});
|
|
2331
|
+
const reqOpts = restoreDataCollection(payload);
|
|
2332
|
+
sideEffects?.onSiteCall?.();
|
|
2333
|
+
try {
|
|
2334
|
+
const result = await httpClient.request(reqOpts);
|
|
2335
|
+
sideEffects?.onSuccess?.(result);
|
|
2336
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2337
|
+
} catch (err) {
|
|
2338
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2339
|
+
err,
|
|
2340
|
+
{
|
|
2341
|
+
spreadPathsToArguments: {},
|
|
2342
|
+
explicitPathsToArguments: { dataCollectionId: "$[0]" },
|
|
2343
|
+
singleArgumentUnchanged: false
|
|
2344
|
+
},
|
|
2345
|
+
["dataCollectionId"]
|
|
2346
|
+
);
|
|
2347
|
+
sideEffects?.onError?.(err);
|
|
2348
|
+
throw transformedError;
|
|
2349
|
+
}
|
|
2350
|
+
}
|
|
2351
|
+
async function patchDataCollection2(_id, dataCollection) {
|
|
2352
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2353
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2354
|
+
dataCollection: { ...dataCollection, id: _id }
|
|
2355
|
+
});
|
|
2356
|
+
const reqOpts = patchDataCollection(payload);
|
|
2357
|
+
sideEffects?.onSiteCall?.();
|
|
2358
|
+
try {
|
|
2359
|
+
const result = await httpClient.request(reqOpts);
|
|
2360
|
+
sideEffects?.onSuccess?.(result);
|
|
2361
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2362
|
+
} catch (err) {
|
|
2363
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2364
|
+
err,
|
|
2365
|
+
{
|
|
2366
|
+
spreadPathsToArguments: { dataCollection: "$[1]" },
|
|
2367
|
+
explicitPathsToArguments: { "dataCollection.id": "$[0]" },
|
|
2368
|
+
singleArgumentUnchanged: false
|
|
2369
|
+
},
|
|
2370
|
+
["_id", "dataCollection"]
|
|
2371
|
+
);
|
|
2372
|
+
sideEffects?.onError?.(err);
|
|
2373
|
+
throw transformedError;
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
async function createDataCollectionField2(dataCollectionId, options) {
|
|
2377
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2378
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2379
|
+
dataCollectionId,
|
|
2380
|
+
field: options?.field
|
|
1479
2381
|
});
|
|
1480
|
-
const reqOpts =
|
|
2382
|
+
const reqOpts = createDataCollectionField(payload);
|
|
1481
2383
|
sideEffects?.onSiteCall?.();
|
|
1482
2384
|
try {
|
|
1483
2385
|
const result = await httpClient.request(reqOpts);
|
|
1484
2386
|
sideEffects?.onSuccess?.(result);
|
|
1485
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)
|
|
2387
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1486
2388
|
} catch (err) {
|
|
1487
2389
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1488
2390
|
err,
|
|
1489
2391
|
{
|
|
1490
2392
|
spreadPathsToArguments: {},
|
|
1491
|
-
explicitPathsToArguments: {
|
|
2393
|
+
explicitPathsToArguments: {
|
|
2394
|
+
dataCollectionId: "$[0]",
|
|
2395
|
+
field: "$[1].field"
|
|
2396
|
+
},
|
|
1492
2397
|
singleArgumentUnchanged: false
|
|
1493
2398
|
},
|
|
1494
|
-
["
|
|
2399
|
+
["dataCollectionId", "options"]
|
|
1495
2400
|
);
|
|
1496
2401
|
sideEffects?.onError?.(err);
|
|
1497
2402
|
throw transformedError;
|
|
1498
2403
|
}
|
|
1499
2404
|
}
|
|
1500
|
-
async function
|
|
2405
|
+
async function updateDataCollectionField2(dataCollectionId, options) {
|
|
1501
2406
|
const { httpClient, sideEffects } = arguments[2];
|
|
1502
2407
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1503
2408
|
dataCollectionId,
|
|
1504
|
-
|
|
1505
|
-
includeAllowedDataPermissions: options?.includeAllowedDataPermissions,
|
|
1506
|
-
fields: options?.fields
|
|
2409
|
+
field: options?.field
|
|
1507
2410
|
});
|
|
1508
|
-
const reqOpts =
|
|
2411
|
+
const reqOpts = updateDataCollectionField(payload);
|
|
1509
2412
|
sideEffects?.onSiteCall?.();
|
|
1510
2413
|
try {
|
|
1511
2414
|
const result = await httpClient.request(reqOpts);
|
|
1512
2415
|
sideEffects?.onSuccess?.(result);
|
|
1513
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)
|
|
2416
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1514
2417
|
} catch (err) {
|
|
1515
2418
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1516
2419
|
err,
|
|
@@ -1518,9 +2421,7 @@ async function getDataCollection2(dataCollectionId, options) {
|
|
|
1518
2421
|
spreadPathsToArguments: {},
|
|
1519
2422
|
explicitPathsToArguments: {
|
|
1520
2423
|
dataCollectionId: "$[0]",
|
|
1521
|
-
|
|
1522
|
-
includeAllowedDataPermissions: "$[1].includeAllowedDataPermissions",
|
|
1523
|
-
fields: "$[1].fields"
|
|
2424
|
+
field: "$[1].field"
|
|
1524
2425
|
},
|
|
1525
2426
|
singleArgumentUnchanged: false
|
|
1526
2427
|
},
|
|
@@ -1530,16 +2431,13 @@ async function getDataCollection2(dataCollectionId, options) {
|
|
|
1530
2431
|
throw transformedError;
|
|
1531
2432
|
}
|
|
1532
2433
|
}
|
|
1533
|
-
async function
|
|
1534
|
-
const { httpClient, sideEffects } = arguments[
|
|
2434
|
+
async function deleteDataCollectionField2(dataCollectionId, options) {
|
|
2435
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1535
2436
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
consistentRead: options?.consistentRead,
|
|
1539
|
-
includeAllowedDataPermissions: options?.includeAllowedDataPermissions,
|
|
1540
|
-
fields: options?.fields
|
|
2437
|
+
dataCollectionId,
|
|
2438
|
+
fieldKey: options?.fieldKey
|
|
1541
2439
|
});
|
|
1542
|
-
const reqOpts =
|
|
2440
|
+
const reqOpts = deleteDataCollectionField(payload);
|
|
1543
2441
|
sideEffects?.onSiteCall?.();
|
|
1544
2442
|
try {
|
|
1545
2443
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1551,75 +2449,112 @@ async function listDataCollections2(options) {
|
|
|
1551
2449
|
{
|
|
1552
2450
|
spreadPathsToArguments: {},
|
|
1553
2451
|
explicitPathsToArguments: {
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
consistentRead: "$[0].consistentRead",
|
|
1557
|
-
includeAllowedDataPermissions: "$[0].includeAllowedDataPermissions",
|
|
1558
|
-
fields: "$[0].fields"
|
|
2452
|
+
dataCollectionId: "$[0]",
|
|
2453
|
+
fieldKey: "$[1].fieldKey"
|
|
1559
2454
|
},
|
|
1560
2455
|
singleArgumentUnchanged: false
|
|
1561
2456
|
},
|
|
1562
|
-
["options"]
|
|
2457
|
+
["dataCollectionId", "options"]
|
|
1563
2458
|
);
|
|
1564
2459
|
sideEffects?.onError?.(err);
|
|
1565
2460
|
throw transformedError;
|
|
1566
2461
|
}
|
|
1567
2462
|
}
|
|
1568
|
-
async function
|
|
1569
|
-
const { httpClient, sideEffects } = arguments[
|
|
2463
|
+
async function addDataCollectionPlugin2(dataCollectionId, options) {
|
|
2464
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1570
2465
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1571
|
-
|
|
2466
|
+
dataCollectionId,
|
|
2467
|
+
plugin: options?.plugin
|
|
1572
2468
|
});
|
|
1573
|
-
const reqOpts =
|
|
2469
|
+
const reqOpts = addDataCollectionPlugin(payload);
|
|
1574
2470
|
sideEffects?.onSiteCall?.();
|
|
1575
2471
|
try {
|
|
1576
2472
|
const result = await httpClient.request(reqOpts);
|
|
1577
2473
|
sideEffects?.onSuccess?.(result);
|
|
1578
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)
|
|
2474
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1579
2475
|
} catch (err) {
|
|
1580
2476
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1581
2477
|
err,
|
|
1582
2478
|
{
|
|
1583
2479
|
spreadPathsToArguments: {},
|
|
1584
|
-
explicitPathsToArguments: {
|
|
2480
|
+
explicitPathsToArguments: {
|
|
2481
|
+
dataCollectionId: "$[0]",
|
|
2482
|
+
plugin: "$[1].plugin"
|
|
2483
|
+
},
|
|
1585
2484
|
singleArgumentUnchanged: false
|
|
1586
2485
|
},
|
|
1587
|
-
["
|
|
2486
|
+
["dataCollectionId", "options"]
|
|
1588
2487
|
);
|
|
1589
2488
|
sideEffects?.onError?.(err);
|
|
1590
2489
|
throw transformedError;
|
|
1591
2490
|
}
|
|
1592
2491
|
}
|
|
1593
|
-
async function
|
|
1594
|
-
const { httpClient, sideEffects } = arguments[
|
|
2492
|
+
async function deleteDataCollectionPlugin2(dataCollectionId, options) {
|
|
2493
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1595
2494
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1596
|
-
dataCollectionId
|
|
2495
|
+
dataCollectionId,
|
|
2496
|
+
pluginType: options?.pluginType
|
|
1597
2497
|
});
|
|
1598
|
-
const reqOpts =
|
|
2498
|
+
const reqOpts = deleteDataCollectionPlugin(payload);
|
|
1599
2499
|
sideEffects?.onSiteCall?.();
|
|
1600
2500
|
try {
|
|
1601
2501
|
const result = await httpClient.request(reqOpts);
|
|
1602
2502
|
sideEffects?.onSuccess?.(result);
|
|
2503
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1603
2504
|
} catch (err) {
|
|
1604
2505
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1605
2506
|
err,
|
|
1606
2507
|
{
|
|
1607
2508
|
spreadPathsToArguments: {},
|
|
1608
|
-
explicitPathsToArguments: {
|
|
2509
|
+
explicitPathsToArguments: {
|
|
2510
|
+
dataCollectionId: "$[0]",
|
|
2511
|
+
pluginType: "$[1].pluginType"
|
|
2512
|
+
},
|
|
1609
2513
|
singleArgumentUnchanged: false
|
|
1610
2514
|
},
|
|
1611
|
-
["dataCollectionId"]
|
|
2515
|
+
["dataCollectionId", "options"]
|
|
1612
2516
|
);
|
|
1613
2517
|
sideEffects?.onError?.(err);
|
|
1614
2518
|
throw transformedError;
|
|
1615
2519
|
}
|
|
1616
2520
|
}
|
|
1617
|
-
async function
|
|
2521
|
+
async function addPublishPlugin2(dataCollectionId, options) {
|
|
2522
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2523
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2524
|
+
dataCollectionId,
|
|
2525
|
+
publishOptions: options?.publishOptions,
|
|
2526
|
+
draftItemsPluginConflictAction: options?.draftItemsPluginConflictAction
|
|
2527
|
+
});
|
|
2528
|
+
const reqOpts = addPublishPlugin(payload);
|
|
2529
|
+
sideEffects?.onSiteCall?.();
|
|
2530
|
+
try {
|
|
2531
|
+
const result = await httpClient.request(reqOpts);
|
|
2532
|
+
sideEffects?.onSuccess?.(result);
|
|
2533
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2534
|
+
} catch (err) {
|
|
2535
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2536
|
+
err,
|
|
2537
|
+
{
|
|
2538
|
+
spreadPathsToArguments: {},
|
|
2539
|
+
explicitPathsToArguments: {
|
|
2540
|
+
dataCollectionId: "$[0]",
|
|
2541
|
+
publishOptions: "$[1].publishOptions",
|
|
2542
|
+
draftItemsPluginConflictAction: "$[1].draftItemsPluginConflictAction"
|
|
2543
|
+
},
|
|
2544
|
+
singleArgumentUnchanged: false
|
|
2545
|
+
},
|
|
2546
|
+
["dataCollectionId", "options"]
|
|
2547
|
+
);
|
|
2548
|
+
sideEffects?.onError?.(err);
|
|
2549
|
+
throw transformedError;
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
async function deletePublishPlugin2(dataCollectionId) {
|
|
1618
2553
|
const { httpClient, sideEffects } = arguments[1];
|
|
1619
2554
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1620
2555
|
dataCollectionId
|
|
1621
2556
|
});
|
|
1622
|
-
const reqOpts =
|
|
2557
|
+
const reqOpts = deletePublishPlugin(payload);
|
|
1623
2558
|
sideEffects?.onSiteCall?.();
|
|
1624
2559
|
try {
|
|
1625
2560
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1639,12 +2574,13 @@ async function restoreDataCollection2(dataCollectionId) {
|
|
|
1639
2574
|
throw transformedError;
|
|
1640
2575
|
}
|
|
1641
2576
|
}
|
|
1642
|
-
async function
|
|
2577
|
+
async function addUrlizedPlugin2(dataCollectionId, options) {
|
|
1643
2578
|
const { httpClient, sideEffects } = arguments[2];
|
|
1644
2579
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1645
|
-
|
|
2580
|
+
dataCollectionId,
|
|
2581
|
+
urlizedOptions: options?.urlizedOptions
|
|
1646
2582
|
});
|
|
1647
|
-
const reqOpts =
|
|
2583
|
+
const reqOpts = addUrlizedPlugin(payload);
|
|
1648
2584
|
sideEffects?.onSiteCall?.();
|
|
1649
2585
|
try {
|
|
1650
2586
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1654,23 +2590,51 @@ async function patchDataCollection2(_id, dataCollection) {
|
|
|
1654
2590
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1655
2591
|
err,
|
|
1656
2592
|
{
|
|
1657
|
-
spreadPathsToArguments: {
|
|
1658
|
-
explicitPathsToArguments: {
|
|
2593
|
+
spreadPathsToArguments: {},
|
|
2594
|
+
explicitPathsToArguments: {
|
|
2595
|
+
dataCollectionId: "$[0]",
|
|
2596
|
+
urlizedOptions: "$[1].urlizedOptions"
|
|
2597
|
+
},
|
|
1659
2598
|
singleArgumentUnchanged: false
|
|
1660
2599
|
},
|
|
1661
|
-
["
|
|
2600
|
+
["dataCollectionId", "options"]
|
|
1662
2601
|
);
|
|
1663
2602
|
sideEffects?.onError?.(err);
|
|
1664
2603
|
throw transformedError;
|
|
1665
2604
|
}
|
|
1666
2605
|
}
|
|
1667
|
-
async function
|
|
2606
|
+
async function deleteUrlizedPlugin2(dataCollectionId) {
|
|
2607
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2608
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2609
|
+
dataCollectionId
|
|
2610
|
+
});
|
|
2611
|
+
const reqOpts = deleteUrlizedPlugin(payload);
|
|
2612
|
+
sideEffects?.onSiteCall?.();
|
|
2613
|
+
try {
|
|
2614
|
+
const result = await httpClient.request(reqOpts);
|
|
2615
|
+
sideEffects?.onSuccess?.(result);
|
|
2616
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2617
|
+
} catch (err) {
|
|
2618
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2619
|
+
err,
|
|
2620
|
+
{
|
|
2621
|
+
spreadPathsToArguments: {},
|
|
2622
|
+
explicitPathsToArguments: { dataCollectionId: "$[0]" },
|
|
2623
|
+
singleArgumentUnchanged: false
|
|
2624
|
+
},
|
|
2625
|
+
["dataCollectionId"]
|
|
2626
|
+
);
|
|
2627
|
+
sideEffects?.onError?.(err);
|
|
2628
|
+
throw transformedError;
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
async function addMultilingualPlugin2(dataCollectionId, options) {
|
|
1668
2632
|
const { httpClient, sideEffects } = arguments[2];
|
|
1669
2633
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1670
2634
|
dataCollectionId,
|
|
1671
|
-
|
|
2635
|
+
multilingualOptions: options?.multilingualOptions
|
|
1672
2636
|
});
|
|
1673
|
-
const reqOpts =
|
|
2637
|
+
const reqOpts = addMultilingualPlugin(payload);
|
|
1674
2638
|
sideEffects?.onSiteCall?.();
|
|
1675
2639
|
try {
|
|
1676
2640
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1683,7 +2647,7 @@ async function createDataCollectionField2(dataCollectionId, options) {
|
|
|
1683
2647
|
spreadPathsToArguments: {},
|
|
1684
2648
|
explicitPathsToArguments: {
|
|
1685
2649
|
dataCollectionId: "$[0]",
|
|
1686
|
-
|
|
2650
|
+
multilingualOptions: "$[1].multilingualOptions"
|
|
1687
2651
|
},
|
|
1688
2652
|
singleArgumentUnchanged: false
|
|
1689
2653
|
},
|
|
@@ -1693,13 +2657,38 @@ async function createDataCollectionField2(dataCollectionId, options) {
|
|
|
1693
2657
|
throw transformedError;
|
|
1694
2658
|
}
|
|
1695
2659
|
}
|
|
1696
|
-
async function
|
|
2660
|
+
async function deleteMultilingualPlugin2(dataCollectionId) {
|
|
2661
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2662
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2663
|
+
dataCollectionId
|
|
2664
|
+
});
|
|
2665
|
+
const reqOpts = deleteMultilingualPlugin(payload);
|
|
2666
|
+
sideEffects?.onSiteCall?.();
|
|
2667
|
+
try {
|
|
2668
|
+
const result = await httpClient.request(reqOpts);
|
|
2669
|
+
sideEffects?.onSuccess?.(result);
|
|
2670
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2671
|
+
} catch (err) {
|
|
2672
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2673
|
+
err,
|
|
2674
|
+
{
|
|
2675
|
+
spreadPathsToArguments: {},
|
|
2676
|
+
explicitPathsToArguments: { dataCollectionId: "$[0]" },
|
|
2677
|
+
singleArgumentUnchanged: false
|
|
2678
|
+
},
|
|
2679
|
+
["dataCollectionId"]
|
|
2680
|
+
);
|
|
2681
|
+
sideEffects?.onError?.(err);
|
|
2682
|
+
throw transformedError;
|
|
2683
|
+
}
|
|
2684
|
+
}
|
|
2685
|
+
async function addCmsPlugin2(dataCollectionId, options) {
|
|
1697
2686
|
const { httpClient, sideEffects } = arguments[2];
|
|
1698
2687
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1699
2688
|
dataCollectionId,
|
|
1700
|
-
|
|
2689
|
+
cmsOptions: options?.cmsOptions
|
|
1701
2690
|
});
|
|
1702
|
-
const reqOpts =
|
|
2691
|
+
const reqOpts = addCmsPlugin(payload);
|
|
1703
2692
|
sideEffects?.onSiteCall?.();
|
|
1704
2693
|
try {
|
|
1705
2694
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1712,7 +2701,7 @@ async function updateDataCollectionField2(dataCollectionId, options) {
|
|
|
1712
2701
|
spreadPathsToArguments: {},
|
|
1713
2702
|
explicitPathsToArguments: {
|
|
1714
2703
|
dataCollectionId: "$[0]",
|
|
1715
|
-
|
|
2704
|
+
cmsOptions: "$[1].cmsOptions"
|
|
1716
2705
|
},
|
|
1717
2706
|
singleArgumentUnchanged: false
|
|
1718
2707
|
},
|
|
@@ -1722,13 +2711,38 @@ async function updateDataCollectionField2(dataCollectionId, options) {
|
|
|
1722
2711
|
throw transformedError;
|
|
1723
2712
|
}
|
|
1724
2713
|
}
|
|
1725
|
-
async function
|
|
2714
|
+
async function deleteCmsPlugin2(dataCollectionId) {
|
|
2715
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2716
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2717
|
+
dataCollectionId
|
|
2718
|
+
});
|
|
2719
|
+
const reqOpts = deleteCmsPlugin(payload);
|
|
2720
|
+
sideEffects?.onSiteCall?.();
|
|
2721
|
+
try {
|
|
2722
|
+
const result = await httpClient.request(reqOpts);
|
|
2723
|
+
sideEffects?.onSuccess?.(result);
|
|
2724
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2725
|
+
} catch (err) {
|
|
2726
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2727
|
+
err,
|
|
2728
|
+
{
|
|
2729
|
+
spreadPathsToArguments: {},
|
|
2730
|
+
explicitPathsToArguments: { dataCollectionId: "$[0]" },
|
|
2731
|
+
singleArgumentUnchanged: false
|
|
2732
|
+
},
|
|
2733
|
+
["dataCollectionId"]
|
|
2734
|
+
);
|
|
2735
|
+
sideEffects?.onError?.(err);
|
|
2736
|
+
throw transformedError;
|
|
2737
|
+
}
|
|
2738
|
+
}
|
|
2739
|
+
async function addCatalogPlugin2(dataCollectionId, options) {
|
|
1726
2740
|
const { httpClient, sideEffects } = arguments[2];
|
|
1727
2741
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1728
2742
|
dataCollectionId,
|
|
1729
|
-
|
|
2743
|
+
catalogOptions: options?.catalogOptions
|
|
1730
2744
|
});
|
|
1731
|
-
const reqOpts =
|
|
2745
|
+
const reqOpts = addCatalogPlugin(payload);
|
|
1732
2746
|
sideEffects?.onSiteCall?.();
|
|
1733
2747
|
try {
|
|
1734
2748
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1741,7 +2755,7 @@ async function deleteDataCollectionField2(dataCollectionId, options) {
|
|
|
1741
2755
|
spreadPathsToArguments: {},
|
|
1742
2756
|
explicitPathsToArguments: {
|
|
1743
2757
|
dataCollectionId: "$[0]",
|
|
1744
|
-
|
|
2758
|
+
catalogOptions: "$[1].catalogOptions"
|
|
1745
2759
|
},
|
|
1746
2760
|
singleArgumentUnchanged: false
|
|
1747
2761
|
},
|
|
@@ -1751,13 +2765,39 @@ async function deleteDataCollectionField2(dataCollectionId, options) {
|
|
|
1751
2765
|
throw transformedError;
|
|
1752
2766
|
}
|
|
1753
2767
|
}
|
|
1754
|
-
async function
|
|
2768
|
+
async function deleteCatalogPlugin2(dataCollectionId) {
|
|
2769
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2770
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2771
|
+
dataCollectionId
|
|
2772
|
+
});
|
|
2773
|
+
const reqOpts = deleteCatalogPlugin(payload);
|
|
2774
|
+
sideEffects?.onSiteCall?.();
|
|
2775
|
+
try {
|
|
2776
|
+
const result = await httpClient.request(reqOpts);
|
|
2777
|
+
sideEffects?.onSuccess?.(result);
|
|
2778
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2779
|
+
} catch (err) {
|
|
2780
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2781
|
+
err,
|
|
2782
|
+
{
|
|
2783
|
+
spreadPathsToArguments: {},
|
|
2784
|
+
explicitPathsToArguments: { dataCollectionId: "$[0]" },
|
|
2785
|
+
singleArgumentUnchanged: false
|
|
2786
|
+
},
|
|
2787
|
+
["dataCollectionId"]
|
|
2788
|
+
);
|
|
2789
|
+
sideEffects?.onError?.(err);
|
|
2790
|
+
throw transformedError;
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
async function addDraftItemsPlugin2(dataCollectionId, options) {
|
|
1755
2794
|
const { httpClient, sideEffects } = arguments[2];
|
|
1756
2795
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1757
2796
|
dataCollectionId,
|
|
1758
|
-
|
|
2797
|
+
draftItemsOptions: options?.draftItemsOptions,
|
|
2798
|
+
publishPluginConflictAction: options?.publishPluginConflictAction
|
|
1759
2799
|
});
|
|
1760
|
-
const reqOpts =
|
|
2800
|
+
const reqOpts = addDraftItemsPlugin(payload);
|
|
1761
2801
|
sideEffects?.onSiteCall?.();
|
|
1762
2802
|
try {
|
|
1763
2803
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1770,7 +2810,8 @@ async function addDataCollectionPlugin2(dataCollectionId, options) {
|
|
|
1770
2810
|
spreadPathsToArguments: {},
|
|
1771
2811
|
explicitPathsToArguments: {
|
|
1772
2812
|
dataCollectionId: "$[0]",
|
|
1773
|
-
|
|
2813
|
+
draftItemsOptions: "$[1].draftItemsOptions",
|
|
2814
|
+
publishPluginConflictAction: "$[1].publishPluginConflictAction"
|
|
1774
2815
|
},
|
|
1775
2816
|
singleArgumentUnchanged: false
|
|
1776
2817
|
},
|
|
@@ -1780,13 +2821,13 @@ async function addDataCollectionPlugin2(dataCollectionId, options) {
|
|
|
1780
2821
|
throw transformedError;
|
|
1781
2822
|
}
|
|
1782
2823
|
}
|
|
1783
|
-
async function
|
|
2824
|
+
async function deleteDraftItemsPlugin2(dataCollectionId, options) {
|
|
1784
2825
|
const { httpClient, sideEffects } = arguments[2];
|
|
1785
2826
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1786
2827
|
dataCollectionId,
|
|
1787
|
-
|
|
2828
|
+
draftItemsRemovalAction: options?.draftItemsRemovalAction
|
|
1788
2829
|
});
|
|
1789
|
-
const reqOpts =
|
|
2830
|
+
const reqOpts = deleteDraftItemsPlugin(payload);
|
|
1790
2831
|
sideEffects?.onSiteCall?.();
|
|
1791
2832
|
try {
|
|
1792
2833
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1799,7 +2840,7 @@ async function deleteDataCollectionPlugin2(dataCollectionId, options) {
|
|
|
1799
2840
|
spreadPathsToArguments: {},
|
|
1800
2841
|
explicitPathsToArguments: {
|
|
1801
2842
|
dataCollectionId: "$[0]",
|
|
1802
|
-
|
|
2843
|
+
draftItemsRemovalAction: "$[1].draftItemsRemovalAction"
|
|
1803
2844
|
},
|
|
1804
2845
|
singleArgumentUnchanged: false
|
|
1805
2846
|
},
|
|
@@ -1842,6 +2883,8 @@ async function patchDataCollectionField2(dataCollectionId, field) {
|
|
|
1842
2883
|
CollectionType,
|
|
1843
2884
|
DataOperation,
|
|
1844
2885
|
Direction,
|
|
2886
|
+
DraftItemsPluginConflictAction,
|
|
2887
|
+
DraftItemsRemovalAction,
|
|
1845
2888
|
FieldPluginType,
|
|
1846
2889
|
Format,
|
|
1847
2890
|
IndexSource,
|
|
@@ -1852,6 +2895,7 @@ async function patchDataCollectionField2(dataCollectionId, field) {
|
|
|
1852
2895
|
PagingMode,
|
|
1853
2896
|
Permission,
|
|
1854
2897
|
PluginType,
|
|
2898
|
+
PublishPluginConflictAction,
|
|
1855
2899
|
QueryOperator,
|
|
1856
2900
|
Role,
|
|
1857
2901
|
Segment,
|
|
@@ -1860,12 +2904,24 @@ async function patchDataCollectionField2(dataCollectionId, field) {
|
|
|
1860
2904
|
TenantMode,
|
|
1861
2905
|
Type,
|
|
1862
2906
|
WebhookIdentityType,
|
|
2907
|
+
addCatalogPlugin,
|
|
2908
|
+
addCmsPlugin,
|
|
1863
2909
|
addDataCollectionPlugin,
|
|
2910
|
+
addDraftItemsPlugin,
|
|
2911
|
+
addMultilingualPlugin,
|
|
2912
|
+
addPublishPlugin,
|
|
2913
|
+
addUrlizedPlugin,
|
|
1864
2914
|
createDataCollection,
|
|
1865
2915
|
createDataCollectionField,
|
|
2916
|
+
deleteCatalogPlugin,
|
|
2917
|
+
deleteCmsPlugin,
|
|
1866
2918
|
deleteDataCollection,
|
|
1867
2919
|
deleteDataCollectionField,
|
|
1868
2920
|
deleteDataCollectionPlugin,
|
|
2921
|
+
deleteDraftItemsPlugin,
|
|
2922
|
+
deleteMultilingualPlugin,
|
|
2923
|
+
deletePublishPlugin,
|
|
2924
|
+
deleteUrlizedPlugin,
|
|
1869
2925
|
getDataCollection,
|
|
1870
2926
|
listDataCollections,
|
|
1871
2927
|
patchDataCollection,
|