@wix/auto_sdk_data_collections 1.0.86 → 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 +1236 -70
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +222 -1
- package/build/cjs/index.typings.js +1132 -69
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +203 -2
- package/build/cjs/meta.js +947 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +1220 -70
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +222 -1
- package/build/es/index.typings.mjs +1116 -69
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +203 -2
- package/build/es/meta.mjs +931 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +135 -3
- package/build/internal/cjs/index.js +1236 -70
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +358 -1
- package/build/internal/cjs/index.typings.js +1132 -69
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +203 -2
- package/build/internal/cjs/meta.js +947 -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 +1220 -70
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +358 -1
- package/build/internal/es/index.typings.mjs +1116 -69
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +203 -2
- package/build/internal/es/meta.mjs +931 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1125,6 +1125,682 @@ function deleteDataCollectionPlugin(payload) {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
return __deleteDataCollectionPlugin;
|
|
1127
1127
|
}
|
|
1128
|
+
function addPublishPlugin(payload) {
|
|
1129
|
+
function __addPublishPlugin({ host }) {
|
|
1130
|
+
const metadata = {
|
|
1131
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1132
|
+
method: "POST",
|
|
1133
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddPublishPlugin",
|
|
1134
|
+
packageName: PACKAGE_NAME,
|
|
1135
|
+
migrationOptions: {
|
|
1136
|
+
optInTransformResponse: true
|
|
1137
|
+
},
|
|
1138
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1139
|
+
{ protoPath: "/v2/collections/add-publish-plugin", data: payload, host }
|
|
1140
|
+
),
|
|
1141
|
+
data: payload,
|
|
1142
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1143
|
+
{
|
|
1144
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1145
|
+
paths: [
|
|
1146
|
+
{ path: "dataCollection.createdDate" },
|
|
1147
|
+
{ path: "dataCollection.updatedDate" },
|
|
1148
|
+
{
|
|
1149
|
+
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1150
|
+
},
|
|
1151
|
+
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1152
|
+
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1153
|
+
{
|
|
1154
|
+
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1161
|
+
}
|
|
1162
|
+
]
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1166
|
+
paths: [
|
|
1167
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
1168
|
+
{ path: "dataCollection.fields.numberRange.max" },
|
|
1169
|
+
{
|
|
1170
|
+
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1171
|
+
},
|
|
1172
|
+
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1173
|
+
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1174
|
+
]
|
|
1175
|
+
}
|
|
1176
|
+
])
|
|
1177
|
+
};
|
|
1178
|
+
return metadata;
|
|
1179
|
+
}
|
|
1180
|
+
return __addPublishPlugin;
|
|
1181
|
+
}
|
|
1182
|
+
function deletePublishPlugin(payload) {
|
|
1183
|
+
function __deletePublishPlugin({ host }) {
|
|
1184
|
+
const metadata = {
|
|
1185
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1186
|
+
method: "POST",
|
|
1187
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeletePublishPlugin",
|
|
1188
|
+
packageName: PACKAGE_NAME,
|
|
1189
|
+
migrationOptions: {
|
|
1190
|
+
optInTransformResponse: true
|
|
1191
|
+
},
|
|
1192
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1193
|
+
{
|
|
1194
|
+
protoPath: "/v2/collections/delete-publish-plugin",
|
|
1195
|
+
data: payload,
|
|
1196
|
+
host
|
|
1197
|
+
}
|
|
1198
|
+
),
|
|
1199
|
+
data: payload,
|
|
1200
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1201
|
+
{
|
|
1202
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1203
|
+
paths: [
|
|
1204
|
+
{ path: "dataCollection.createdDate" },
|
|
1205
|
+
{ path: "dataCollection.updatedDate" },
|
|
1206
|
+
{
|
|
1207
|
+
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1208
|
+
},
|
|
1209
|
+
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1210
|
+
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1211
|
+
{
|
|
1212
|
+
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1219
|
+
}
|
|
1220
|
+
]
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1224
|
+
paths: [
|
|
1225
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
1226
|
+
{ path: "dataCollection.fields.numberRange.max" },
|
|
1227
|
+
{
|
|
1228
|
+
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1229
|
+
},
|
|
1230
|
+
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1231
|
+
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1232
|
+
]
|
|
1233
|
+
}
|
|
1234
|
+
])
|
|
1235
|
+
};
|
|
1236
|
+
return metadata;
|
|
1237
|
+
}
|
|
1238
|
+
return __deletePublishPlugin;
|
|
1239
|
+
}
|
|
1240
|
+
function addUrlizedPlugin(payload) {
|
|
1241
|
+
function __addUrlizedPlugin({ host }) {
|
|
1242
|
+
const metadata = {
|
|
1243
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1244
|
+
method: "POST",
|
|
1245
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddUrlizedPlugin",
|
|
1246
|
+
packageName: PACKAGE_NAME,
|
|
1247
|
+
migrationOptions: {
|
|
1248
|
+
optInTransformResponse: true
|
|
1249
|
+
},
|
|
1250
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1251
|
+
{ protoPath: "/v2/collections/add-urlized-plugin", data: payload, host }
|
|
1252
|
+
),
|
|
1253
|
+
data: payload,
|
|
1254
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1255
|
+
{
|
|
1256
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1257
|
+
paths: [
|
|
1258
|
+
{ path: "dataCollection.createdDate" },
|
|
1259
|
+
{ path: "dataCollection.updatedDate" },
|
|
1260
|
+
{
|
|
1261
|
+
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1262
|
+
},
|
|
1263
|
+
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1264
|
+
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1265
|
+
{
|
|
1266
|
+
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1273
|
+
}
|
|
1274
|
+
]
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1278
|
+
paths: [
|
|
1279
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
1280
|
+
{ path: "dataCollection.fields.numberRange.max" },
|
|
1281
|
+
{
|
|
1282
|
+
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1283
|
+
},
|
|
1284
|
+
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1285
|
+
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1286
|
+
]
|
|
1287
|
+
}
|
|
1288
|
+
])
|
|
1289
|
+
};
|
|
1290
|
+
return metadata;
|
|
1291
|
+
}
|
|
1292
|
+
return __addUrlizedPlugin;
|
|
1293
|
+
}
|
|
1294
|
+
function deleteUrlizedPlugin(payload) {
|
|
1295
|
+
function __deleteUrlizedPlugin({ host }) {
|
|
1296
|
+
const metadata = {
|
|
1297
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1298
|
+
method: "POST",
|
|
1299
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteUrlizedPlugin",
|
|
1300
|
+
packageName: PACKAGE_NAME,
|
|
1301
|
+
migrationOptions: {
|
|
1302
|
+
optInTransformResponse: true
|
|
1303
|
+
},
|
|
1304
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1305
|
+
{
|
|
1306
|
+
protoPath: "/v2/collections/delete-urlized-plugin",
|
|
1307
|
+
data: payload,
|
|
1308
|
+
host
|
|
1309
|
+
}
|
|
1310
|
+
),
|
|
1311
|
+
data: payload,
|
|
1312
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1313
|
+
{
|
|
1314
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1315
|
+
paths: [
|
|
1316
|
+
{ path: "dataCollection.createdDate" },
|
|
1317
|
+
{ path: "dataCollection.updatedDate" },
|
|
1318
|
+
{
|
|
1319
|
+
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1320
|
+
},
|
|
1321
|
+
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1322
|
+
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1323
|
+
{
|
|
1324
|
+
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1331
|
+
}
|
|
1332
|
+
]
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1336
|
+
paths: [
|
|
1337
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
1338
|
+
{ path: "dataCollection.fields.numberRange.max" },
|
|
1339
|
+
{
|
|
1340
|
+
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1341
|
+
},
|
|
1342
|
+
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1343
|
+
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1344
|
+
]
|
|
1345
|
+
}
|
|
1346
|
+
])
|
|
1347
|
+
};
|
|
1348
|
+
return metadata;
|
|
1349
|
+
}
|
|
1350
|
+
return __deleteUrlizedPlugin;
|
|
1351
|
+
}
|
|
1352
|
+
function addMultilingualPlugin(payload) {
|
|
1353
|
+
function __addMultilingualPlugin({ host }) {
|
|
1354
|
+
const metadata = {
|
|
1355
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1356
|
+
method: "POST",
|
|
1357
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddMultilingualPlugin",
|
|
1358
|
+
packageName: PACKAGE_NAME,
|
|
1359
|
+
migrationOptions: {
|
|
1360
|
+
optInTransformResponse: true
|
|
1361
|
+
},
|
|
1362
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1363
|
+
{
|
|
1364
|
+
protoPath: "/v2/collections/add-multilingual-plugin",
|
|
1365
|
+
data: payload,
|
|
1366
|
+
host
|
|
1367
|
+
}
|
|
1368
|
+
),
|
|
1369
|
+
data: payload,
|
|
1370
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1371
|
+
{
|
|
1372
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1373
|
+
paths: [
|
|
1374
|
+
{ path: "dataCollection.createdDate" },
|
|
1375
|
+
{ path: "dataCollection.updatedDate" },
|
|
1376
|
+
{
|
|
1377
|
+
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1378
|
+
},
|
|
1379
|
+
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1380
|
+
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1381
|
+
{
|
|
1382
|
+
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1389
|
+
}
|
|
1390
|
+
]
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1394
|
+
paths: [
|
|
1395
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
1396
|
+
{ path: "dataCollection.fields.numberRange.max" },
|
|
1397
|
+
{
|
|
1398
|
+
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1399
|
+
},
|
|
1400
|
+
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1401
|
+
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1402
|
+
]
|
|
1403
|
+
}
|
|
1404
|
+
])
|
|
1405
|
+
};
|
|
1406
|
+
return metadata;
|
|
1407
|
+
}
|
|
1408
|
+
return __addMultilingualPlugin;
|
|
1409
|
+
}
|
|
1410
|
+
function deleteMultilingualPlugin(payload) {
|
|
1411
|
+
function __deleteMultilingualPlugin({ host }) {
|
|
1412
|
+
const metadata = {
|
|
1413
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1414
|
+
method: "POST",
|
|
1415
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteMultilingualPlugin",
|
|
1416
|
+
packageName: PACKAGE_NAME,
|
|
1417
|
+
migrationOptions: {
|
|
1418
|
+
optInTransformResponse: true
|
|
1419
|
+
},
|
|
1420
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1421
|
+
{
|
|
1422
|
+
protoPath: "/v2/collections/delete-multilingual-plugin",
|
|
1423
|
+
data: payload,
|
|
1424
|
+
host
|
|
1425
|
+
}
|
|
1426
|
+
),
|
|
1427
|
+
data: payload,
|
|
1428
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1429
|
+
{
|
|
1430
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1431
|
+
paths: [
|
|
1432
|
+
{ path: "dataCollection.createdDate" },
|
|
1433
|
+
{ path: "dataCollection.updatedDate" },
|
|
1434
|
+
{
|
|
1435
|
+
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1436
|
+
},
|
|
1437
|
+
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1438
|
+
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1439
|
+
{
|
|
1440
|
+
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1447
|
+
}
|
|
1448
|
+
]
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1452
|
+
paths: [
|
|
1453
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
1454
|
+
{ path: "dataCollection.fields.numberRange.max" },
|
|
1455
|
+
{
|
|
1456
|
+
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1457
|
+
},
|
|
1458
|
+
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1459
|
+
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1460
|
+
]
|
|
1461
|
+
}
|
|
1462
|
+
])
|
|
1463
|
+
};
|
|
1464
|
+
return metadata;
|
|
1465
|
+
}
|
|
1466
|
+
return __deleteMultilingualPlugin;
|
|
1467
|
+
}
|
|
1468
|
+
function addCmsPlugin(payload) {
|
|
1469
|
+
function __addCmsPlugin({ host }) {
|
|
1470
|
+
const metadata = {
|
|
1471
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1472
|
+
method: "POST",
|
|
1473
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddCmsPlugin",
|
|
1474
|
+
packageName: PACKAGE_NAME,
|
|
1475
|
+
migrationOptions: {
|
|
1476
|
+
optInTransformResponse: true
|
|
1477
|
+
},
|
|
1478
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1479
|
+
{ protoPath: "/v2/collections/add-cms-plugin", data: payload, host }
|
|
1480
|
+
),
|
|
1481
|
+
data: payload,
|
|
1482
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1483
|
+
{
|
|
1484
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1485
|
+
paths: [
|
|
1486
|
+
{ path: "dataCollection.createdDate" },
|
|
1487
|
+
{ path: "dataCollection.updatedDate" },
|
|
1488
|
+
{
|
|
1489
|
+
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1490
|
+
},
|
|
1491
|
+
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1492
|
+
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1493
|
+
{
|
|
1494
|
+
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1501
|
+
}
|
|
1502
|
+
]
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1506
|
+
paths: [
|
|
1507
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
1508
|
+
{ path: "dataCollection.fields.numberRange.max" },
|
|
1509
|
+
{
|
|
1510
|
+
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1511
|
+
},
|
|
1512
|
+
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1513
|
+
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1514
|
+
]
|
|
1515
|
+
}
|
|
1516
|
+
])
|
|
1517
|
+
};
|
|
1518
|
+
return metadata;
|
|
1519
|
+
}
|
|
1520
|
+
return __addCmsPlugin;
|
|
1521
|
+
}
|
|
1522
|
+
function deleteCmsPlugin(payload) {
|
|
1523
|
+
function __deleteCmsPlugin({ host }) {
|
|
1524
|
+
const metadata = {
|
|
1525
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1526
|
+
method: "POST",
|
|
1527
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteCmsPlugin",
|
|
1528
|
+
packageName: PACKAGE_NAME,
|
|
1529
|
+
migrationOptions: {
|
|
1530
|
+
optInTransformResponse: true
|
|
1531
|
+
},
|
|
1532
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1533
|
+
{ protoPath: "/v2/collections/delete-cms-plugin", data: payload, host }
|
|
1534
|
+
),
|
|
1535
|
+
data: payload,
|
|
1536
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1537
|
+
{
|
|
1538
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1539
|
+
paths: [
|
|
1540
|
+
{ path: "dataCollection.createdDate" },
|
|
1541
|
+
{ path: "dataCollection.updatedDate" },
|
|
1542
|
+
{
|
|
1543
|
+
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1544
|
+
},
|
|
1545
|
+
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1546
|
+
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1547
|
+
{
|
|
1548
|
+
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1555
|
+
}
|
|
1556
|
+
]
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1560
|
+
paths: [
|
|
1561
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
1562
|
+
{ path: "dataCollection.fields.numberRange.max" },
|
|
1563
|
+
{
|
|
1564
|
+
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1565
|
+
},
|
|
1566
|
+
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1567
|
+
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1568
|
+
]
|
|
1569
|
+
}
|
|
1570
|
+
])
|
|
1571
|
+
};
|
|
1572
|
+
return metadata;
|
|
1573
|
+
}
|
|
1574
|
+
return __deleteCmsPlugin;
|
|
1575
|
+
}
|
|
1576
|
+
function addCatalogPlugin(payload) {
|
|
1577
|
+
function __addCatalogPlugin({ host }) {
|
|
1578
|
+
const metadata = {
|
|
1579
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1580
|
+
method: "POST",
|
|
1581
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddCatalogPlugin",
|
|
1582
|
+
packageName: PACKAGE_NAME,
|
|
1583
|
+
migrationOptions: {
|
|
1584
|
+
optInTransformResponse: true
|
|
1585
|
+
},
|
|
1586
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1587
|
+
{ protoPath: "/v2/collections/add-catalog-plugin", data: payload, host }
|
|
1588
|
+
),
|
|
1589
|
+
data: payload,
|
|
1590
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1591
|
+
{
|
|
1592
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1593
|
+
paths: [
|
|
1594
|
+
{ path: "dataCollection.createdDate" },
|
|
1595
|
+
{ path: "dataCollection.updatedDate" },
|
|
1596
|
+
{
|
|
1597
|
+
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1598
|
+
},
|
|
1599
|
+
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1600
|
+
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1601
|
+
{
|
|
1602
|
+
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1609
|
+
}
|
|
1610
|
+
]
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1614
|
+
paths: [
|
|
1615
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
1616
|
+
{ path: "dataCollection.fields.numberRange.max" },
|
|
1617
|
+
{
|
|
1618
|
+
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1619
|
+
},
|
|
1620
|
+
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1621
|
+
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1622
|
+
]
|
|
1623
|
+
}
|
|
1624
|
+
])
|
|
1625
|
+
};
|
|
1626
|
+
return metadata;
|
|
1627
|
+
}
|
|
1628
|
+
return __addCatalogPlugin;
|
|
1629
|
+
}
|
|
1630
|
+
function deleteCatalogPlugin(payload) {
|
|
1631
|
+
function __deleteCatalogPlugin({ host }) {
|
|
1632
|
+
const metadata = {
|
|
1633
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1634
|
+
method: "POST",
|
|
1635
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteCatalogPlugin",
|
|
1636
|
+
packageName: PACKAGE_NAME,
|
|
1637
|
+
migrationOptions: {
|
|
1638
|
+
optInTransformResponse: true
|
|
1639
|
+
},
|
|
1640
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1641
|
+
{
|
|
1642
|
+
protoPath: "/v2/collections/delete-catalog-plugin",
|
|
1643
|
+
data: payload,
|
|
1644
|
+
host
|
|
1645
|
+
}
|
|
1646
|
+
),
|
|
1647
|
+
data: payload,
|
|
1648
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1649
|
+
{
|
|
1650
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1651
|
+
paths: [
|
|
1652
|
+
{ path: "dataCollection.createdDate" },
|
|
1653
|
+
{ path: "dataCollection.updatedDate" },
|
|
1654
|
+
{
|
|
1655
|
+
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1656
|
+
},
|
|
1657
|
+
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1658
|
+
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1659
|
+
{
|
|
1660
|
+
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1667
|
+
}
|
|
1668
|
+
]
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1672
|
+
paths: [
|
|
1673
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
1674
|
+
{ path: "dataCollection.fields.numberRange.max" },
|
|
1675
|
+
{
|
|
1676
|
+
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1677
|
+
},
|
|
1678
|
+
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1679
|
+
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1680
|
+
]
|
|
1681
|
+
}
|
|
1682
|
+
])
|
|
1683
|
+
};
|
|
1684
|
+
return metadata;
|
|
1685
|
+
}
|
|
1686
|
+
return __deleteCatalogPlugin;
|
|
1687
|
+
}
|
|
1688
|
+
function addDraftItemsPlugin(payload) {
|
|
1689
|
+
function __addDraftItemsPlugin({ host }) {
|
|
1690
|
+
const metadata = {
|
|
1691
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1692
|
+
method: "POST",
|
|
1693
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddDraftItemsPlugin",
|
|
1694
|
+
packageName: PACKAGE_NAME,
|
|
1695
|
+
migrationOptions: {
|
|
1696
|
+
optInTransformResponse: true
|
|
1697
|
+
},
|
|
1698
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1699
|
+
{
|
|
1700
|
+
protoPath: "/v2/collections/add-draft-items-plugin",
|
|
1701
|
+
data: payload,
|
|
1702
|
+
host
|
|
1703
|
+
}
|
|
1704
|
+
),
|
|
1705
|
+
data: payload,
|
|
1706
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1707
|
+
{
|
|
1708
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1709
|
+
paths: [
|
|
1710
|
+
{ path: "dataCollection.createdDate" },
|
|
1711
|
+
{ path: "dataCollection.updatedDate" },
|
|
1712
|
+
{
|
|
1713
|
+
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1714
|
+
},
|
|
1715
|
+
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1716
|
+
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1717
|
+
{
|
|
1718
|
+
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1725
|
+
}
|
|
1726
|
+
]
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1730
|
+
paths: [
|
|
1731
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
1732
|
+
{ path: "dataCollection.fields.numberRange.max" },
|
|
1733
|
+
{
|
|
1734
|
+
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1735
|
+
},
|
|
1736
|
+
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1737
|
+
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1738
|
+
]
|
|
1739
|
+
}
|
|
1740
|
+
])
|
|
1741
|
+
};
|
|
1742
|
+
return metadata;
|
|
1743
|
+
}
|
|
1744
|
+
return __addDraftItemsPlugin;
|
|
1745
|
+
}
|
|
1746
|
+
function deleteDraftItemsPlugin(payload) {
|
|
1747
|
+
function __deleteDraftItemsPlugin({ host }) {
|
|
1748
|
+
const metadata = {
|
|
1749
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
1750
|
+
method: "POST",
|
|
1751
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDraftItemsPlugin",
|
|
1752
|
+
packageName: PACKAGE_NAME,
|
|
1753
|
+
migrationOptions: {
|
|
1754
|
+
optInTransformResponse: true
|
|
1755
|
+
},
|
|
1756
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
1757
|
+
{
|
|
1758
|
+
protoPath: "/v2/collections/delete-draft-items-plugin",
|
|
1759
|
+
data: payload,
|
|
1760
|
+
host
|
|
1761
|
+
}
|
|
1762
|
+
),
|
|
1763
|
+
data: payload,
|
|
1764
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1765
|
+
{
|
|
1766
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1767
|
+
paths: [
|
|
1768
|
+
{ path: "dataCollection.createdDate" },
|
|
1769
|
+
{ path: "dataCollection.updatedDate" },
|
|
1770
|
+
{
|
|
1771
|
+
path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
|
|
1772
|
+
},
|
|
1773
|
+
{ path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
|
|
1774
|
+
{ path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
|
|
1775
|
+
{
|
|
1776
|
+
path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
|
|
1783
|
+
}
|
|
1784
|
+
]
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1788
|
+
paths: [
|
|
1789
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
1790
|
+
{ path: "dataCollection.fields.numberRange.max" },
|
|
1791
|
+
{
|
|
1792
|
+
path: "dataCollection.fields.typeMetadata.number.defaultValue"
|
|
1793
|
+
},
|
|
1794
|
+
{ path: "dataCollection.fields.typeMetadata.number.min" },
|
|
1795
|
+
{ path: "dataCollection.fields.typeMetadata.number.max" }
|
|
1796
|
+
]
|
|
1797
|
+
}
|
|
1798
|
+
])
|
|
1799
|
+
};
|
|
1800
|
+
return metadata;
|
|
1801
|
+
}
|
|
1802
|
+
return __deleteDraftItemsPlugin;
|
|
1803
|
+
}
|
|
1128
1804
|
function patchDataCollectionField(payload) {
|
|
1129
1805
|
function __patchDataCollectionField({ host }) {
|
|
1130
1806
|
const serializedData = transformPaths(payload, [
|
|
@@ -1334,6 +2010,11 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
1334
2010
|
Status2["DRAFT"] = "DRAFT";
|
|
1335
2011
|
return Status2;
|
|
1336
2012
|
})(Status || {});
|
|
2013
|
+
var LifecycleStatus = /* @__PURE__ */ ((LifecycleStatus2) => {
|
|
2014
|
+
LifecycleStatus2["ACTIVE"] = "ACTIVE";
|
|
2015
|
+
LifecycleStatus2["MIGRATING_TO_DRAFT_ITEMS"] = "MIGRATING_TO_DRAFT_ITEMS";
|
|
2016
|
+
return LifecycleStatus2;
|
|
2017
|
+
})(LifecycleStatus || {});
|
|
1337
2018
|
var Format = /* @__PURE__ */ ((Format2) => {
|
|
1338
2019
|
Format2["ORIGINAL"] = "ORIGINAL";
|
|
1339
2020
|
Format2["PLAIN"] = "PLAIN";
|
|
@@ -1374,6 +2055,24 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1374
2055
|
SortOrder2["DESC"] = "DESC";
|
|
1375
2056
|
return SortOrder2;
|
|
1376
2057
|
})(SortOrder || {});
|
|
2058
|
+
var DraftItemsPluginConflictAction = /* @__PURE__ */ ((DraftItemsPluginConflictAction2) => {
|
|
2059
|
+
DraftItemsPluginConflictAction2["FAIL_WHEN_DRAFT_ITEMS_INSTALLED"] = "FAIL_WHEN_DRAFT_ITEMS_INSTALLED";
|
|
2060
|
+
DraftItemsPluginConflictAction2["DISCARD_DRAFT_ITEMS"] = "DISCARD_DRAFT_ITEMS";
|
|
2061
|
+
DraftItemsPluginConflictAction2["PUBLISH_DRAFT_ITEMS"] = "PUBLISH_DRAFT_ITEMS";
|
|
2062
|
+
DraftItemsPluginConflictAction2["COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS"] = "COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS";
|
|
2063
|
+
return DraftItemsPluginConflictAction2;
|
|
2064
|
+
})(DraftItemsPluginConflictAction || {});
|
|
2065
|
+
var PublishPluginConflictAction = /* @__PURE__ */ ((PublishPluginConflictAction2) => {
|
|
2066
|
+
PublishPluginConflictAction2["FAIL_WHEN_PUBLISH_INSTALLED"] = "FAIL_WHEN_PUBLISH_INSTALLED";
|
|
2067
|
+
PublishPluginConflictAction2["COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS"] = "COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS";
|
|
2068
|
+
return PublishPluginConflictAction2;
|
|
2069
|
+
})(PublishPluginConflictAction || {});
|
|
2070
|
+
var DraftItemsRemovalAction = /* @__PURE__ */ ((DraftItemsRemovalAction2) => {
|
|
2071
|
+
DraftItemsRemovalAction2["FAIL_IF_DRAFT_ITEMS_EXIST"] = "FAIL_IF_DRAFT_ITEMS_EXIST";
|
|
2072
|
+
DraftItemsRemovalAction2["DISCARD_EXISTING_DRAFT_ITEMS"] = "DISCARD_EXISTING_DRAFT_ITEMS";
|
|
2073
|
+
DraftItemsRemovalAction2["PUBLISH_EXISTING_DRAFT_ITEMS"] = "PUBLISH_EXISTING_DRAFT_ITEMS";
|
|
2074
|
+
return DraftItemsRemovalAction2;
|
|
2075
|
+
})(DraftItemsRemovalAction || {});
|
|
1377
2076
|
var TenantMode = /* @__PURE__ */ ((TenantMode2) => {
|
|
1378
2077
|
TenantMode2["META_SITE"] = "META_SITE";
|
|
1379
2078
|
TenantMode2["ACCOUNT"] = "ACCOUNT";
|
|
@@ -1412,42 +2111,236 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1412
2111
|
async function createDataCollection2(collection) {
|
|
1413
2112
|
const { httpClient, sideEffects } = arguments[1];
|
|
1414
2113
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1415
|
-
collection
|
|
2114
|
+
collection
|
|
2115
|
+
});
|
|
2116
|
+
const reqOpts = createDataCollection(payload);
|
|
2117
|
+
sideEffects?.onSiteCall?.();
|
|
2118
|
+
try {
|
|
2119
|
+
const result = await httpClient.request(reqOpts);
|
|
2120
|
+
sideEffects?.onSuccess?.(result);
|
|
2121
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.collection;
|
|
2122
|
+
} catch (err) {
|
|
2123
|
+
const transformedError = sdkTransformError(
|
|
2124
|
+
err,
|
|
2125
|
+
{
|
|
2126
|
+
spreadPathsToArguments: {},
|
|
2127
|
+
explicitPathsToArguments: { collection: "$[0]" },
|
|
2128
|
+
singleArgumentUnchanged: false
|
|
2129
|
+
},
|
|
2130
|
+
["collection"]
|
|
2131
|
+
);
|
|
2132
|
+
sideEffects?.onError?.(err);
|
|
2133
|
+
throw transformedError;
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
async function getDataCollection2(dataCollectionId, options) {
|
|
2137
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2138
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2139
|
+
dataCollectionId,
|
|
2140
|
+
consistentRead: options?.consistentRead,
|
|
2141
|
+
includeAllowedDataPermissions: options?.includeAllowedDataPermissions,
|
|
2142
|
+
fields: options?.fields
|
|
2143
|
+
});
|
|
2144
|
+
const reqOpts = getDataCollection(payload);
|
|
2145
|
+
sideEffects?.onSiteCall?.();
|
|
2146
|
+
try {
|
|
2147
|
+
const result = await httpClient.request(reqOpts);
|
|
2148
|
+
sideEffects?.onSuccess?.(result);
|
|
2149
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.collection;
|
|
2150
|
+
} catch (err) {
|
|
2151
|
+
const transformedError = sdkTransformError(
|
|
2152
|
+
err,
|
|
2153
|
+
{
|
|
2154
|
+
spreadPathsToArguments: {},
|
|
2155
|
+
explicitPathsToArguments: {
|
|
2156
|
+
dataCollectionId: "$[0]",
|
|
2157
|
+
consistentRead: "$[1].consistentRead",
|
|
2158
|
+
includeAllowedDataPermissions: "$[1].includeAllowedDataPermissions",
|
|
2159
|
+
fields: "$[1].fields"
|
|
2160
|
+
},
|
|
2161
|
+
singleArgumentUnchanged: false
|
|
2162
|
+
},
|
|
2163
|
+
["dataCollectionId", "options"]
|
|
2164
|
+
);
|
|
2165
|
+
sideEffects?.onError?.(err);
|
|
2166
|
+
throw transformedError;
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
async function listDataCollections2(options) {
|
|
2170
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2171
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2172
|
+
sort: options?.sort,
|
|
2173
|
+
paging: options?.paging,
|
|
2174
|
+
consistentRead: options?.consistentRead,
|
|
2175
|
+
includeAllowedDataPermissions: options?.includeAllowedDataPermissions,
|
|
2176
|
+
fields: options?.fields
|
|
2177
|
+
});
|
|
2178
|
+
const reqOpts = listDataCollections(payload);
|
|
2179
|
+
sideEffects?.onSiteCall?.();
|
|
2180
|
+
try {
|
|
2181
|
+
const result = await httpClient.request(reqOpts);
|
|
2182
|
+
sideEffects?.onSuccess?.(result);
|
|
2183
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2184
|
+
} catch (err) {
|
|
2185
|
+
const transformedError = sdkTransformError(
|
|
2186
|
+
err,
|
|
2187
|
+
{
|
|
2188
|
+
spreadPathsToArguments: {},
|
|
2189
|
+
explicitPathsToArguments: {
|
|
2190
|
+
sort: "$[0].sort",
|
|
2191
|
+
paging: "$[0].paging",
|
|
2192
|
+
consistentRead: "$[0].consistentRead",
|
|
2193
|
+
includeAllowedDataPermissions: "$[0].includeAllowedDataPermissions",
|
|
2194
|
+
fields: "$[0].fields"
|
|
2195
|
+
},
|
|
2196
|
+
singleArgumentUnchanged: false
|
|
2197
|
+
},
|
|
2198
|
+
["options"]
|
|
2199
|
+
);
|
|
2200
|
+
sideEffects?.onError?.(err);
|
|
2201
|
+
throw transformedError;
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
async function updateDataCollection2(collection) {
|
|
2205
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2206
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2207
|
+
collection
|
|
2208
|
+
});
|
|
2209
|
+
const reqOpts = updateDataCollection(payload);
|
|
2210
|
+
sideEffects?.onSiteCall?.();
|
|
2211
|
+
try {
|
|
2212
|
+
const result = await httpClient.request(reqOpts);
|
|
2213
|
+
sideEffects?.onSuccess?.(result);
|
|
2214
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.collection;
|
|
2215
|
+
} catch (err) {
|
|
2216
|
+
const transformedError = sdkTransformError(
|
|
2217
|
+
err,
|
|
2218
|
+
{
|
|
2219
|
+
spreadPathsToArguments: {},
|
|
2220
|
+
explicitPathsToArguments: { collection: "$[0]" },
|
|
2221
|
+
singleArgumentUnchanged: false
|
|
2222
|
+
},
|
|
2223
|
+
["collection"]
|
|
2224
|
+
);
|
|
2225
|
+
sideEffects?.onError?.(err);
|
|
2226
|
+
throw transformedError;
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
async function deleteDataCollection2(dataCollectionId) {
|
|
2230
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2231
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2232
|
+
dataCollectionId
|
|
2233
|
+
});
|
|
2234
|
+
const reqOpts = deleteDataCollection(payload);
|
|
2235
|
+
sideEffects?.onSiteCall?.();
|
|
2236
|
+
try {
|
|
2237
|
+
const result = await httpClient.request(reqOpts);
|
|
2238
|
+
sideEffects?.onSuccess?.(result);
|
|
2239
|
+
} catch (err) {
|
|
2240
|
+
const transformedError = sdkTransformError(
|
|
2241
|
+
err,
|
|
2242
|
+
{
|
|
2243
|
+
spreadPathsToArguments: {},
|
|
2244
|
+
explicitPathsToArguments: { dataCollectionId: "$[0]" },
|
|
2245
|
+
singleArgumentUnchanged: false
|
|
2246
|
+
},
|
|
2247
|
+
["dataCollectionId"]
|
|
2248
|
+
);
|
|
2249
|
+
sideEffects?.onError?.(err);
|
|
2250
|
+
throw transformedError;
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
async function restoreDataCollection2(dataCollectionId) {
|
|
2254
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2255
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2256
|
+
dataCollectionId
|
|
2257
|
+
});
|
|
2258
|
+
const reqOpts = restoreDataCollection(payload);
|
|
2259
|
+
sideEffects?.onSiteCall?.();
|
|
2260
|
+
try {
|
|
2261
|
+
const result = await httpClient.request(reqOpts);
|
|
2262
|
+
sideEffects?.onSuccess?.(result);
|
|
2263
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2264
|
+
} catch (err) {
|
|
2265
|
+
const transformedError = sdkTransformError(
|
|
2266
|
+
err,
|
|
2267
|
+
{
|
|
2268
|
+
spreadPathsToArguments: {},
|
|
2269
|
+
explicitPathsToArguments: { dataCollectionId: "$[0]" },
|
|
2270
|
+
singleArgumentUnchanged: false
|
|
2271
|
+
},
|
|
2272
|
+
["dataCollectionId"]
|
|
2273
|
+
);
|
|
2274
|
+
sideEffects?.onError?.(err);
|
|
2275
|
+
throw transformedError;
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
async function patchDataCollection2(_id, dataCollection) {
|
|
2279
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2280
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2281
|
+
dataCollection: { ...dataCollection, id: _id }
|
|
2282
|
+
});
|
|
2283
|
+
const reqOpts = patchDataCollection(payload);
|
|
2284
|
+
sideEffects?.onSiteCall?.();
|
|
2285
|
+
try {
|
|
2286
|
+
const result = await httpClient.request(reqOpts);
|
|
2287
|
+
sideEffects?.onSuccess?.(result);
|
|
2288
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2289
|
+
} catch (err) {
|
|
2290
|
+
const transformedError = sdkTransformError(
|
|
2291
|
+
err,
|
|
2292
|
+
{
|
|
2293
|
+
spreadPathsToArguments: { dataCollection: "$[1]" },
|
|
2294
|
+
explicitPathsToArguments: { "dataCollection.id": "$[0]" },
|
|
2295
|
+
singleArgumentUnchanged: false
|
|
2296
|
+
},
|
|
2297
|
+
["_id", "dataCollection"]
|
|
2298
|
+
);
|
|
2299
|
+
sideEffects?.onError?.(err);
|
|
2300
|
+
throw transformedError;
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
async function createDataCollectionField2(dataCollectionId, options) {
|
|
2304
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2305
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2306
|
+
dataCollectionId,
|
|
2307
|
+
field: options?.field
|
|
1416
2308
|
});
|
|
1417
|
-
const reqOpts =
|
|
2309
|
+
const reqOpts = createDataCollectionField(payload);
|
|
1418
2310
|
sideEffects?.onSiteCall?.();
|
|
1419
2311
|
try {
|
|
1420
2312
|
const result = await httpClient.request(reqOpts);
|
|
1421
2313
|
sideEffects?.onSuccess?.(result);
|
|
1422
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
2314
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1423
2315
|
} catch (err) {
|
|
1424
2316
|
const transformedError = sdkTransformError(
|
|
1425
2317
|
err,
|
|
1426
2318
|
{
|
|
1427
2319
|
spreadPathsToArguments: {},
|
|
1428
|
-
explicitPathsToArguments: {
|
|
2320
|
+
explicitPathsToArguments: {
|
|
2321
|
+
dataCollectionId: "$[0]",
|
|
2322
|
+
field: "$[1].field"
|
|
2323
|
+
},
|
|
1429
2324
|
singleArgumentUnchanged: false
|
|
1430
2325
|
},
|
|
1431
|
-
["
|
|
2326
|
+
["dataCollectionId", "options"]
|
|
1432
2327
|
);
|
|
1433
2328
|
sideEffects?.onError?.(err);
|
|
1434
2329
|
throw transformedError;
|
|
1435
2330
|
}
|
|
1436
2331
|
}
|
|
1437
|
-
async function
|
|
2332
|
+
async function updateDataCollectionField2(dataCollectionId, options) {
|
|
1438
2333
|
const { httpClient, sideEffects } = arguments[2];
|
|
1439
2334
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1440
2335
|
dataCollectionId,
|
|
1441
|
-
|
|
1442
|
-
includeAllowedDataPermissions: options?.includeAllowedDataPermissions,
|
|
1443
|
-
fields: options?.fields
|
|
2336
|
+
field: options?.field
|
|
1444
2337
|
});
|
|
1445
|
-
const reqOpts =
|
|
2338
|
+
const reqOpts = updateDataCollectionField(payload);
|
|
1446
2339
|
sideEffects?.onSiteCall?.();
|
|
1447
2340
|
try {
|
|
1448
2341
|
const result = await httpClient.request(reqOpts);
|
|
1449
2342
|
sideEffects?.onSuccess?.(result);
|
|
1450
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
2343
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1451
2344
|
} catch (err) {
|
|
1452
2345
|
const transformedError = sdkTransformError(
|
|
1453
2346
|
err,
|
|
@@ -1455,9 +2348,7 @@ async function getDataCollection2(dataCollectionId, options) {
|
|
|
1455
2348
|
spreadPathsToArguments: {},
|
|
1456
2349
|
explicitPathsToArguments: {
|
|
1457
2350
|
dataCollectionId: "$[0]",
|
|
1458
|
-
|
|
1459
|
-
includeAllowedDataPermissions: "$[1].includeAllowedDataPermissions",
|
|
1460
|
-
fields: "$[1].fields"
|
|
2351
|
+
field: "$[1].field"
|
|
1461
2352
|
},
|
|
1462
2353
|
singleArgumentUnchanged: false
|
|
1463
2354
|
},
|
|
@@ -1467,16 +2358,13 @@ async function getDataCollection2(dataCollectionId, options) {
|
|
|
1467
2358
|
throw transformedError;
|
|
1468
2359
|
}
|
|
1469
2360
|
}
|
|
1470
|
-
async function
|
|
1471
|
-
const { httpClient, sideEffects } = arguments[
|
|
2361
|
+
async function deleteDataCollectionField2(dataCollectionId, options) {
|
|
2362
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1472
2363
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
consistentRead: options?.consistentRead,
|
|
1476
|
-
includeAllowedDataPermissions: options?.includeAllowedDataPermissions,
|
|
1477
|
-
fields: options?.fields
|
|
2364
|
+
dataCollectionId,
|
|
2365
|
+
fieldKey: options?.fieldKey
|
|
1478
2366
|
});
|
|
1479
|
-
const reqOpts =
|
|
2367
|
+
const reqOpts = deleteDataCollectionField(payload);
|
|
1480
2368
|
sideEffects?.onSiteCall?.();
|
|
1481
2369
|
try {
|
|
1482
2370
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1488,75 +2376,112 @@ async function listDataCollections2(options) {
|
|
|
1488
2376
|
{
|
|
1489
2377
|
spreadPathsToArguments: {},
|
|
1490
2378
|
explicitPathsToArguments: {
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
consistentRead: "$[0].consistentRead",
|
|
1494
|
-
includeAllowedDataPermissions: "$[0].includeAllowedDataPermissions",
|
|
1495
|
-
fields: "$[0].fields"
|
|
2379
|
+
dataCollectionId: "$[0]",
|
|
2380
|
+
fieldKey: "$[1].fieldKey"
|
|
1496
2381
|
},
|
|
1497
2382
|
singleArgumentUnchanged: false
|
|
1498
2383
|
},
|
|
1499
|
-
["options"]
|
|
2384
|
+
["dataCollectionId", "options"]
|
|
1500
2385
|
);
|
|
1501
2386
|
sideEffects?.onError?.(err);
|
|
1502
2387
|
throw transformedError;
|
|
1503
2388
|
}
|
|
1504
2389
|
}
|
|
1505
|
-
async function
|
|
1506
|
-
const { httpClient, sideEffects } = arguments[
|
|
2390
|
+
async function addDataCollectionPlugin2(dataCollectionId, options) {
|
|
2391
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1507
2392
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1508
|
-
|
|
2393
|
+
dataCollectionId,
|
|
2394
|
+
plugin: options?.plugin
|
|
1509
2395
|
});
|
|
1510
|
-
const reqOpts =
|
|
2396
|
+
const reqOpts = addDataCollectionPlugin(payload);
|
|
1511
2397
|
sideEffects?.onSiteCall?.();
|
|
1512
2398
|
try {
|
|
1513
2399
|
const result = await httpClient.request(reqOpts);
|
|
1514
2400
|
sideEffects?.onSuccess?.(result);
|
|
1515
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
2401
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1516
2402
|
} catch (err) {
|
|
1517
2403
|
const transformedError = sdkTransformError(
|
|
1518
2404
|
err,
|
|
1519
2405
|
{
|
|
1520
2406
|
spreadPathsToArguments: {},
|
|
1521
|
-
explicitPathsToArguments: {
|
|
2407
|
+
explicitPathsToArguments: {
|
|
2408
|
+
dataCollectionId: "$[0]",
|
|
2409
|
+
plugin: "$[1].plugin"
|
|
2410
|
+
},
|
|
1522
2411
|
singleArgumentUnchanged: false
|
|
1523
2412
|
},
|
|
1524
|
-
["
|
|
2413
|
+
["dataCollectionId", "options"]
|
|
1525
2414
|
);
|
|
1526
2415
|
sideEffects?.onError?.(err);
|
|
1527
2416
|
throw transformedError;
|
|
1528
2417
|
}
|
|
1529
2418
|
}
|
|
1530
|
-
async function
|
|
1531
|
-
const { httpClient, sideEffects } = arguments[
|
|
2419
|
+
async function deleteDataCollectionPlugin2(dataCollectionId, options) {
|
|
2420
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1532
2421
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1533
|
-
dataCollectionId
|
|
2422
|
+
dataCollectionId,
|
|
2423
|
+
pluginType: options?.pluginType
|
|
1534
2424
|
});
|
|
1535
|
-
const reqOpts =
|
|
2425
|
+
const reqOpts = deleteDataCollectionPlugin(payload);
|
|
1536
2426
|
sideEffects?.onSiteCall?.();
|
|
1537
2427
|
try {
|
|
1538
2428
|
const result = await httpClient.request(reqOpts);
|
|
1539
2429
|
sideEffects?.onSuccess?.(result);
|
|
2430
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1540
2431
|
} catch (err) {
|
|
1541
2432
|
const transformedError = sdkTransformError(
|
|
1542
2433
|
err,
|
|
1543
2434
|
{
|
|
1544
2435
|
spreadPathsToArguments: {},
|
|
1545
|
-
explicitPathsToArguments: {
|
|
2436
|
+
explicitPathsToArguments: {
|
|
2437
|
+
dataCollectionId: "$[0]",
|
|
2438
|
+
pluginType: "$[1].pluginType"
|
|
2439
|
+
},
|
|
1546
2440
|
singleArgumentUnchanged: false
|
|
1547
2441
|
},
|
|
1548
|
-
["dataCollectionId"]
|
|
2442
|
+
["dataCollectionId", "options"]
|
|
1549
2443
|
);
|
|
1550
2444
|
sideEffects?.onError?.(err);
|
|
1551
2445
|
throw transformedError;
|
|
1552
2446
|
}
|
|
1553
2447
|
}
|
|
1554
|
-
async function
|
|
2448
|
+
async function addPublishPlugin2(dataCollectionId, options) {
|
|
2449
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2450
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2451
|
+
dataCollectionId,
|
|
2452
|
+
publishOptions: options?.publishOptions,
|
|
2453
|
+
draftItemsPluginConflictAction: options?.draftItemsPluginConflictAction
|
|
2454
|
+
});
|
|
2455
|
+
const reqOpts = addPublishPlugin(payload);
|
|
2456
|
+
sideEffects?.onSiteCall?.();
|
|
2457
|
+
try {
|
|
2458
|
+
const result = await httpClient.request(reqOpts);
|
|
2459
|
+
sideEffects?.onSuccess?.(result);
|
|
2460
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2461
|
+
} catch (err) {
|
|
2462
|
+
const transformedError = sdkTransformError(
|
|
2463
|
+
err,
|
|
2464
|
+
{
|
|
2465
|
+
spreadPathsToArguments: {},
|
|
2466
|
+
explicitPathsToArguments: {
|
|
2467
|
+
dataCollectionId: "$[0]",
|
|
2468
|
+
publishOptions: "$[1].publishOptions",
|
|
2469
|
+
draftItemsPluginConflictAction: "$[1].draftItemsPluginConflictAction"
|
|
2470
|
+
},
|
|
2471
|
+
singleArgumentUnchanged: false
|
|
2472
|
+
},
|
|
2473
|
+
["dataCollectionId", "options"]
|
|
2474
|
+
);
|
|
2475
|
+
sideEffects?.onError?.(err);
|
|
2476
|
+
throw transformedError;
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
async function deletePublishPlugin2(dataCollectionId) {
|
|
1555
2480
|
const { httpClient, sideEffects } = arguments[1];
|
|
1556
2481
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1557
2482
|
dataCollectionId
|
|
1558
2483
|
});
|
|
1559
|
-
const reqOpts =
|
|
2484
|
+
const reqOpts = deletePublishPlugin(payload);
|
|
1560
2485
|
sideEffects?.onSiteCall?.();
|
|
1561
2486
|
try {
|
|
1562
2487
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1576,12 +2501,13 @@ async function restoreDataCollection2(dataCollectionId) {
|
|
|
1576
2501
|
throw transformedError;
|
|
1577
2502
|
}
|
|
1578
2503
|
}
|
|
1579
|
-
async function
|
|
2504
|
+
async function addUrlizedPlugin2(dataCollectionId, options) {
|
|
1580
2505
|
const { httpClient, sideEffects } = arguments[2];
|
|
1581
2506
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1582
|
-
|
|
2507
|
+
dataCollectionId,
|
|
2508
|
+
urlizedOptions: options?.urlizedOptions
|
|
1583
2509
|
});
|
|
1584
|
-
const reqOpts =
|
|
2510
|
+
const reqOpts = addUrlizedPlugin(payload);
|
|
1585
2511
|
sideEffects?.onSiteCall?.();
|
|
1586
2512
|
try {
|
|
1587
2513
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1591,23 +2517,51 @@ async function patchDataCollection2(_id, dataCollection) {
|
|
|
1591
2517
|
const transformedError = sdkTransformError(
|
|
1592
2518
|
err,
|
|
1593
2519
|
{
|
|
1594
|
-
spreadPathsToArguments: {
|
|
1595
|
-
explicitPathsToArguments: {
|
|
2520
|
+
spreadPathsToArguments: {},
|
|
2521
|
+
explicitPathsToArguments: {
|
|
2522
|
+
dataCollectionId: "$[0]",
|
|
2523
|
+
urlizedOptions: "$[1].urlizedOptions"
|
|
2524
|
+
},
|
|
1596
2525
|
singleArgumentUnchanged: false
|
|
1597
2526
|
},
|
|
1598
|
-
["
|
|
2527
|
+
["dataCollectionId", "options"]
|
|
1599
2528
|
);
|
|
1600
2529
|
sideEffects?.onError?.(err);
|
|
1601
2530
|
throw transformedError;
|
|
1602
2531
|
}
|
|
1603
2532
|
}
|
|
1604
|
-
async function
|
|
2533
|
+
async function deleteUrlizedPlugin2(dataCollectionId) {
|
|
2534
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2535
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2536
|
+
dataCollectionId
|
|
2537
|
+
});
|
|
2538
|
+
const reqOpts = deleteUrlizedPlugin(payload);
|
|
2539
|
+
sideEffects?.onSiteCall?.();
|
|
2540
|
+
try {
|
|
2541
|
+
const result = await httpClient.request(reqOpts);
|
|
2542
|
+
sideEffects?.onSuccess?.(result);
|
|
2543
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2544
|
+
} catch (err) {
|
|
2545
|
+
const transformedError = sdkTransformError(
|
|
2546
|
+
err,
|
|
2547
|
+
{
|
|
2548
|
+
spreadPathsToArguments: {},
|
|
2549
|
+
explicitPathsToArguments: { dataCollectionId: "$[0]" },
|
|
2550
|
+
singleArgumentUnchanged: false
|
|
2551
|
+
},
|
|
2552
|
+
["dataCollectionId"]
|
|
2553
|
+
);
|
|
2554
|
+
sideEffects?.onError?.(err);
|
|
2555
|
+
throw transformedError;
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
async function addMultilingualPlugin2(dataCollectionId, options) {
|
|
1605
2559
|
const { httpClient, sideEffects } = arguments[2];
|
|
1606
2560
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1607
2561
|
dataCollectionId,
|
|
1608
|
-
|
|
2562
|
+
multilingualOptions: options?.multilingualOptions
|
|
1609
2563
|
});
|
|
1610
|
-
const reqOpts =
|
|
2564
|
+
const reqOpts = addMultilingualPlugin(payload);
|
|
1611
2565
|
sideEffects?.onSiteCall?.();
|
|
1612
2566
|
try {
|
|
1613
2567
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1620,7 +2574,7 @@ async function createDataCollectionField2(dataCollectionId, options) {
|
|
|
1620
2574
|
spreadPathsToArguments: {},
|
|
1621
2575
|
explicitPathsToArguments: {
|
|
1622
2576
|
dataCollectionId: "$[0]",
|
|
1623
|
-
|
|
2577
|
+
multilingualOptions: "$[1].multilingualOptions"
|
|
1624
2578
|
},
|
|
1625
2579
|
singleArgumentUnchanged: false
|
|
1626
2580
|
},
|
|
@@ -1630,13 +2584,38 @@ async function createDataCollectionField2(dataCollectionId, options) {
|
|
|
1630
2584
|
throw transformedError;
|
|
1631
2585
|
}
|
|
1632
2586
|
}
|
|
1633
|
-
async function
|
|
2587
|
+
async function deleteMultilingualPlugin2(dataCollectionId) {
|
|
2588
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2589
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2590
|
+
dataCollectionId
|
|
2591
|
+
});
|
|
2592
|
+
const reqOpts = deleteMultilingualPlugin(payload);
|
|
2593
|
+
sideEffects?.onSiteCall?.();
|
|
2594
|
+
try {
|
|
2595
|
+
const result = await httpClient.request(reqOpts);
|
|
2596
|
+
sideEffects?.onSuccess?.(result);
|
|
2597
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2598
|
+
} catch (err) {
|
|
2599
|
+
const transformedError = sdkTransformError(
|
|
2600
|
+
err,
|
|
2601
|
+
{
|
|
2602
|
+
spreadPathsToArguments: {},
|
|
2603
|
+
explicitPathsToArguments: { dataCollectionId: "$[0]" },
|
|
2604
|
+
singleArgumentUnchanged: false
|
|
2605
|
+
},
|
|
2606
|
+
["dataCollectionId"]
|
|
2607
|
+
);
|
|
2608
|
+
sideEffects?.onError?.(err);
|
|
2609
|
+
throw transformedError;
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2612
|
+
async function addCmsPlugin2(dataCollectionId, options) {
|
|
1634
2613
|
const { httpClient, sideEffects } = arguments[2];
|
|
1635
2614
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1636
2615
|
dataCollectionId,
|
|
1637
|
-
|
|
2616
|
+
cmsOptions: options?.cmsOptions
|
|
1638
2617
|
});
|
|
1639
|
-
const reqOpts =
|
|
2618
|
+
const reqOpts = addCmsPlugin(payload);
|
|
1640
2619
|
sideEffects?.onSiteCall?.();
|
|
1641
2620
|
try {
|
|
1642
2621
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1649,7 +2628,7 @@ async function updateDataCollectionField2(dataCollectionId, options) {
|
|
|
1649
2628
|
spreadPathsToArguments: {},
|
|
1650
2629
|
explicitPathsToArguments: {
|
|
1651
2630
|
dataCollectionId: "$[0]",
|
|
1652
|
-
|
|
2631
|
+
cmsOptions: "$[1].cmsOptions"
|
|
1653
2632
|
},
|
|
1654
2633
|
singleArgumentUnchanged: false
|
|
1655
2634
|
},
|
|
@@ -1659,13 +2638,38 @@ async function updateDataCollectionField2(dataCollectionId, options) {
|
|
|
1659
2638
|
throw transformedError;
|
|
1660
2639
|
}
|
|
1661
2640
|
}
|
|
1662
|
-
async function
|
|
2641
|
+
async function deleteCmsPlugin2(dataCollectionId) {
|
|
2642
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2643
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2644
|
+
dataCollectionId
|
|
2645
|
+
});
|
|
2646
|
+
const reqOpts = deleteCmsPlugin(payload);
|
|
2647
|
+
sideEffects?.onSiteCall?.();
|
|
2648
|
+
try {
|
|
2649
|
+
const result = await httpClient.request(reqOpts);
|
|
2650
|
+
sideEffects?.onSuccess?.(result);
|
|
2651
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2652
|
+
} catch (err) {
|
|
2653
|
+
const transformedError = sdkTransformError(
|
|
2654
|
+
err,
|
|
2655
|
+
{
|
|
2656
|
+
spreadPathsToArguments: {},
|
|
2657
|
+
explicitPathsToArguments: { dataCollectionId: "$[0]" },
|
|
2658
|
+
singleArgumentUnchanged: false
|
|
2659
|
+
},
|
|
2660
|
+
["dataCollectionId"]
|
|
2661
|
+
);
|
|
2662
|
+
sideEffects?.onError?.(err);
|
|
2663
|
+
throw transformedError;
|
|
2664
|
+
}
|
|
2665
|
+
}
|
|
2666
|
+
async function addCatalogPlugin2(dataCollectionId, options) {
|
|
1663
2667
|
const { httpClient, sideEffects } = arguments[2];
|
|
1664
2668
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1665
2669
|
dataCollectionId,
|
|
1666
|
-
|
|
2670
|
+
catalogOptions: options?.catalogOptions
|
|
1667
2671
|
});
|
|
1668
|
-
const reqOpts =
|
|
2672
|
+
const reqOpts = addCatalogPlugin(payload);
|
|
1669
2673
|
sideEffects?.onSiteCall?.();
|
|
1670
2674
|
try {
|
|
1671
2675
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1678,7 +2682,7 @@ async function deleteDataCollectionField2(dataCollectionId, options) {
|
|
|
1678
2682
|
spreadPathsToArguments: {},
|
|
1679
2683
|
explicitPathsToArguments: {
|
|
1680
2684
|
dataCollectionId: "$[0]",
|
|
1681
|
-
|
|
2685
|
+
catalogOptions: "$[1].catalogOptions"
|
|
1682
2686
|
},
|
|
1683
2687
|
singleArgumentUnchanged: false
|
|
1684
2688
|
},
|
|
@@ -1688,13 +2692,39 @@ async function deleteDataCollectionField2(dataCollectionId, options) {
|
|
|
1688
2692
|
throw transformedError;
|
|
1689
2693
|
}
|
|
1690
2694
|
}
|
|
1691
|
-
async function
|
|
2695
|
+
async function deleteCatalogPlugin2(dataCollectionId) {
|
|
2696
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2697
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2698
|
+
dataCollectionId
|
|
2699
|
+
});
|
|
2700
|
+
const reqOpts = deleteCatalogPlugin(payload);
|
|
2701
|
+
sideEffects?.onSiteCall?.();
|
|
2702
|
+
try {
|
|
2703
|
+
const result = await httpClient.request(reqOpts);
|
|
2704
|
+
sideEffects?.onSuccess?.(result);
|
|
2705
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2706
|
+
} catch (err) {
|
|
2707
|
+
const transformedError = sdkTransformError(
|
|
2708
|
+
err,
|
|
2709
|
+
{
|
|
2710
|
+
spreadPathsToArguments: {},
|
|
2711
|
+
explicitPathsToArguments: { dataCollectionId: "$[0]" },
|
|
2712
|
+
singleArgumentUnchanged: false
|
|
2713
|
+
},
|
|
2714
|
+
["dataCollectionId"]
|
|
2715
|
+
);
|
|
2716
|
+
sideEffects?.onError?.(err);
|
|
2717
|
+
throw transformedError;
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
async function addDraftItemsPlugin2(dataCollectionId, options) {
|
|
1692
2721
|
const { httpClient, sideEffects } = arguments[2];
|
|
1693
2722
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1694
2723
|
dataCollectionId,
|
|
1695
|
-
|
|
2724
|
+
draftItemsOptions: options?.draftItemsOptions,
|
|
2725
|
+
publishPluginConflictAction: options?.publishPluginConflictAction
|
|
1696
2726
|
});
|
|
1697
|
-
const reqOpts =
|
|
2727
|
+
const reqOpts = addDraftItemsPlugin(payload);
|
|
1698
2728
|
sideEffects?.onSiteCall?.();
|
|
1699
2729
|
try {
|
|
1700
2730
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1707,7 +2737,8 @@ async function addDataCollectionPlugin2(dataCollectionId, options) {
|
|
|
1707
2737
|
spreadPathsToArguments: {},
|
|
1708
2738
|
explicitPathsToArguments: {
|
|
1709
2739
|
dataCollectionId: "$[0]",
|
|
1710
|
-
|
|
2740
|
+
draftItemsOptions: "$[1].draftItemsOptions",
|
|
2741
|
+
publishPluginConflictAction: "$[1].publishPluginConflictAction"
|
|
1711
2742
|
},
|
|
1712
2743
|
singleArgumentUnchanged: false
|
|
1713
2744
|
},
|
|
@@ -1717,13 +2748,13 @@ async function addDataCollectionPlugin2(dataCollectionId, options) {
|
|
|
1717
2748
|
throw transformedError;
|
|
1718
2749
|
}
|
|
1719
2750
|
}
|
|
1720
|
-
async function
|
|
2751
|
+
async function deleteDraftItemsPlugin2(dataCollectionId, options) {
|
|
1721
2752
|
const { httpClient, sideEffects } = arguments[2];
|
|
1722
2753
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1723
2754
|
dataCollectionId,
|
|
1724
|
-
|
|
2755
|
+
draftItemsRemovalAction: options?.draftItemsRemovalAction
|
|
1725
2756
|
});
|
|
1726
|
-
const reqOpts =
|
|
2757
|
+
const reqOpts = deleteDraftItemsPlugin(payload);
|
|
1727
2758
|
sideEffects?.onSiteCall?.();
|
|
1728
2759
|
try {
|
|
1729
2760
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1736,7 +2767,7 @@ async function deleteDataCollectionPlugin2(dataCollectionId, options) {
|
|
|
1736
2767
|
spreadPathsToArguments: {},
|
|
1737
2768
|
explicitPathsToArguments: {
|
|
1738
2769
|
dataCollectionId: "$[0]",
|
|
1739
|
-
|
|
2770
|
+
draftItemsRemovalAction: "$[1].draftItemsRemovalAction"
|
|
1740
2771
|
},
|
|
1741
2772
|
singleArgumentUnchanged: false
|
|
1742
2773
|
},
|
|
@@ -1778,15 +2809,19 @@ export {
|
|
|
1778
2809
|
CollectionType,
|
|
1779
2810
|
DataOperation,
|
|
1780
2811
|
Direction,
|
|
2812
|
+
DraftItemsPluginConflictAction,
|
|
2813
|
+
DraftItemsRemovalAction,
|
|
1781
2814
|
FieldPluginType,
|
|
1782
2815
|
Format,
|
|
1783
2816
|
IndexSource,
|
|
1784
2817
|
IndexStatus,
|
|
2818
|
+
LifecycleStatus,
|
|
1785
2819
|
Order,
|
|
1786
2820
|
PageLinkType,
|
|
1787
2821
|
PagingMode,
|
|
1788
2822
|
Permission,
|
|
1789
2823
|
PluginType,
|
|
2824
|
+
PublishPluginConflictAction,
|
|
1790
2825
|
QueryOperator,
|
|
1791
2826
|
Role,
|
|
1792
2827
|
Segment,
|
|
@@ -1795,12 +2830,24 @@ export {
|
|
|
1795
2830
|
TenantMode,
|
|
1796
2831
|
Type,
|
|
1797
2832
|
WebhookIdentityType,
|
|
2833
|
+
addCatalogPlugin2 as addCatalogPlugin,
|
|
2834
|
+
addCmsPlugin2 as addCmsPlugin,
|
|
1798
2835
|
addDataCollectionPlugin2 as addDataCollectionPlugin,
|
|
2836
|
+
addDraftItemsPlugin2 as addDraftItemsPlugin,
|
|
2837
|
+
addMultilingualPlugin2 as addMultilingualPlugin,
|
|
2838
|
+
addPublishPlugin2 as addPublishPlugin,
|
|
2839
|
+
addUrlizedPlugin2 as addUrlizedPlugin,
|
|
1799
2840
|
createDataCollection2 as createDataCollection,
|
|
1800
2841
|
createDataCollectionField2 as createDataCollectionField,
|
|
2842
|
+
deleteCatalogPlugin2 as deleteCatalogPlugin,
|
|
2843
|
+
deleteCmsPlugin2 as deleteCmsPlugin,
|
|
1801
2844
|
deleteDataCollection2 as deleteDataCollection,
|
|
1802
2845
|
deleteDataCollectionField2 as deleteDataCollectionField,
|
|
1803
2846
|
deleteDataCollectionPlugin2 as deleteDataCollectionPlugin,
|
|
2847
|
+
deleteDraftItemsPlugin2 as deleteDraftItemsPlugin,
|
|
2848
|
+
deleteMultilingualPlugin2 as deleteMultilingualPlugin,
|
|
2849
|
+
deletePublishPlugin2 as deletePublishPlugin,
|
|
2850
|
+
deleteUrlizedPlugin2 as deleteUrlizedPlugin,
|
|
1804
2851
|
getDataCollection2 as getDataCollection,
|
|
1805
2852
|
listDataCollections2 as listDataCollections,
|
|
1806
2853
|
patchDataCollection2 as patchDataCollection,
|