@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
package/build/es/index.mjs
CHANGED
|
@@ -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, [
|
|
@@ -1379,6 +2055,24 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1379
2055
|
SortOrder2["DESC"] = "DESC";
|
|
1380
2056
|
return SortOrder2;
|
|
1381
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 || {});
|
|
1382
2076
|
var TenantMode = /* @__PURE__ */ ((TenantMode2) => {
|
|
1383
2077
|
TenantMode2["META_SITE"] = "META_SITE";
|
|
1384
2078
|
TenantMode2["ACCOUNT"] = "ACCOUNT";
|
|
@@ -1417,42 +2111,294 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1417
2111
|
async function createDataCollection2(collection) {
|
|
1418
2112
|
const { httpClient, sideEffects } = arguments[1];
|
|
1419
2113
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1420
|
-
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
|
|
2308
|
+
});
|
|
2309
|
+
const reqOpts = createDataCollectionField(payload);
|
|
2310
|
+
sideEffects?.onSiteCall?.();
|
|
2311
|
+
try {
|
|
2312
|
+
const result = await httpClient.request(reqOpts);
|
|
2313
|
+
sideEffects?.onSuccess?.(result);
|
|
2314
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2315
|
+
} catch (err) {
|
|
2316
|
+
const transformedError = sdkTransformError(
|
|
2317
|
+
err,
|
|
2318
|
+
{
|
|
2319
|
+
spreadPathsToArguments: {},
|
|
2320
|
+
explicitPathsToArguments: {
|
|
2321
|
+
dataCollectionId: "$[0]",
|
|
2322
|
+
field: "$[1].field"
|
|
2323
|
+
},
|
|
2324
|
+
singleArgumentUnchanged: false
|
|
2325
|
+
},
|
|
2326
|
+
["dataCollectionId", "options"]
|
|
2327
|
+
);
|
|
2328
|
+
sideEffects?.onError?.(err);
|
|
2329
|
+
throw transformedError;
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
async function updateDataCollectionField2(dataCollectionId, options) {
|
|
2333
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2334
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2335
|
+
dataCollectionId,
|
|
2336
|
+
field: options?.field
|
|
2337
|
+
});
|
|
2338
|
+
const reqOpts = updateDataCollectionField(payload);
|
|
2339
|
+
sideEffects?.onSiteCall?.();
|
|
2340
|
+
try {
|
|
2341
|
+
const result = await httpClient.request(reqOpts);
|
|
2342
|
+
sideEffects?.onSuccess?.(result);
|
|
2343
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2344
|
+
} catch (err) {
|
|
2345
|
+
const transformedError = sdkTransformError(
|
|
2346
|
+
err,
|
|
2347
|
+
{
|
|
2348
|
+
spreadPathsToArguments: {},
|
|
2349
|
+
explicitPathsToArguments: {
|
|
2350
|
+
dataCollectionId: "$[0]",
|
|
2351
|
+
field: "$[1].field"
|
|
2352
|
+
},
|
|
2353
|
+
singleArgumentUnchanged: false
|
|
2354
|
+
},
|
|
2355
|
+
["dataCollectionId", "options"]
|
|
2356
|
+
);
|
|
2357
|
+
sideEffects?.onError?.(err);
|
|
2358
|
+
throw transformedError;
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
async function deleteDataCollectionField2(dataCollectionId, options) {
|
|
2362
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2363
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2364
|
+
dataCollectionId,
|
|
2365
|
+
fieldKey: options?.fieldKey
|
|
1421
2366
|
});
|
|
1422
|
-
const reqOpts =
|
|
2367
|
+
const reqOpts = deleteDataCollectionField(payload);
|
|
1423
2368
|
sideEffects?.onSiteCall?.();
|
|
1424
2369
|
try {
|
|
1425
2370
|
const result = await httpClient.request(reqOpts);
|
|
1426
2371
|
sideEffects?.onSuccess?.(result);
|
|
1427
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
2372
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1428
2373
|
} catch (err) {
|
|
1429
2374
|
const transformedError = sdkTransformError(
|
|
1430
2375
|
err,
|
|
1431
2376
|
{
|
|
1432
2377
|
spreadPathsToArguments: {},
|
|
1433
|
-
explicitPathsToArguments: {
|
|
2378
|
+
explicitPathsToArguments: {
|
|
2379
|
+
dataCollectionId: "$[0]",
|
|
2380
|
+
fieldKey: "$[1].fieldKey"
|
|
2381
|
+
},
|
|
1434
2382
|
singleArgumentUnchanged: false
|
|
1435
2383
|
},
|
|
1436
|
-
["
|
|
2384
|
+
["dataCollectionId", "options"]
|
|
1437
2385
|
);
|
|
1438
2386
|
sideEffects?.onError?.(err);
|
|
1439
2387
|
throw transformedError;
|
|
1440
2388
|
}
|
|
1441
2389
|
}
|
|
1442
|
-
async function
|
|
2390
|
+
async function addDataCollectionPlugin2(dataCollectionId, options) {
|
|
1443
2391
|
const { httpClient, sideEffects } = arguments[2];
|
|
1444
2392
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1445
2393
|
dataCollectionId,
|
|
1446
|
-
|
|
1447
|
-
includeAllowedDataPermissions: options?.includeAllowedDataPermissions,
|
|
1448
|
-
fields: options?.fields
|
|
2394
|
+
plugin: options?.plugin
|
|
1449
2395
|
});
|
|
1450
|
-
const reqOpts =
|
|
2396
|
+
const reqOpts = addDataCollectionPlugin(payload);
|
|
1451
2397
|
sideEffects?.onSiteCall?.();
|
|
1452
2398
|
try {
|
|
1453
2399
|
const result = await httpClient.request(reqOpts);
|
|
1454
2400
|
sideEffects?.onSuccess?.(result);
|
|
1455
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
2401
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1456
2402
|
} catch (err) {
|
|
1457
2403
|
const transformedError = sdkTransformError(
|
|
1458
2404
|
err,
|
|
@@ -1460,9 +2406,7 @@ async function getDataCollection2(dataCollectionId, options) {
|
|
|
1460
2406
|
spreadPathsToArguments: {},
|
|
1461
2407
|
explicitPathsToArguments: {
|
|
1462
2408
|
dataCollectionId: "$[0]",
|
|
1463
|
-
|
|
1464
|
-
includeAllowedDataPermissions: "$[1].includeAllowedDataPermissions",
|
|
1465
|
-
fields: "$[1].fields"
|
|
2409
|
+
plugin: "$[1].plugin"
|
|
1466
2410
|
},
|
|
1467
2411
|
singleArgumentUnchanged: false
|
|
1468
2412
|
},
|
|
@@ -1472,16 +2416,13 @@ async function getDataCollection2(dataCollectionId, options) {
|
|
|
1472
2416
|
throw transformedError;
|
|
1473
2417
|
}
|
|
1474
2418
|
}
|
|
1475
|
-
async function
|
|
1476
|
-
const { httpClient, sideEffects } = arguments[
|
|
2419
|
+
async function deleteDataCollectionPlugin2(dataCollectionId, options) {
|
|
2420
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1477
2421
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
consistentRead: options?.consistentRead,
|
|
1481
|
-
includeAllowedDataPermissions: options?.includeAllowedDataPermissions,
|
|
1482
|
-
fields: options?.fields
|
|
2422
|
+
dataCollectionId,
|
|
2423
|
+
pluginType: options?.pluginType
|
|
1483
2424
|
});
|
|
1484
|
-
const reqOpts =
|
|
2425
|
+
const reqOpts = deleteDataCollectionPlugin(payload);
|
|
1485
2426
|
sideEffects?.onSiteCall?.();
|
|
1486
2427
|
try {
|
|
1487
2428
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1493,55 +2434,59 @@ async function listDataCollections2(options) {
|
|
|
1493
2434
|
{
|
|
1494
2435
|
spreadPathsToArguments: {},
|
|
1495
2436
|
explicitPathsToArguments: {
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
consistentRead: "$[0].consistentRead",
|
|
1499
|
-
includeAllowedDataPermissions: "$[0].includeAllowedDataPermissions",
|
|
1500
|
-
fields: "$[0].fields"
|
|
2437
|
+
dataCollectionId: "$[0]",
|
|
2438
|
+
pluginType: "$[1].pluginType"
|
|
1501
2439
|
},
|
|
1502
2440
|
singleArgumentUnchanged: false
|
|
1503
2441
|
},
|
|
1504
|
-
["options"]
|
|
2442
|
+
["dataCollectionId", "options"]
|
|
1505
2443
|
);
|
|
1506
2444
|
sideEffects?.onError?.(err);
|
|
1507
2445
|
throw transformedError;
|
|
1508
2446
|
}
|
|
1509
2447
|
}
|
|
1510
|
-
async function
|
|
1511
|
-
const { httpClient, sideEffects } = arguments[
|
|
2448
|
+
async function addPublishPlugin2(dataCollectionId, options) {
|
|
2449
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1512
2450
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1513
|
-
|
|
2451
|
+
dataCollectionId,
|
|
2452
|
+
publishOptions: options?.publishOptions,
|
|
2453
|
+
draftItemsPluginConflictAction: options?.draftItemsPluginConflictAction
|
|
1514
2454
|
});
|
|
1515
|
-
const reqOpts =
|
|
2455
|
+
const reqOpts = addPublishPlugin(payload);
|
|
1516
2456
|
sideEffects?.onSiteCall?.();
|
|
1517
2457
|
try {
|
|
1518
2458
|
const result = await httpClient.request(reqOpts);
|
|
1519
2459
|
sideEffects?.onSuccess?.(result);
|
|
1520
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
2460
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1521
2461
|
} catch (err) {
|
|
1522
2462
|
const transformedError = sdkTransformError(
|
|
1523
2463
|
err,
|
|
1524
2464
|
{
|
|
1525
2465
|
spreadPathsToArguments: {},
|
|
1526
|
-
explicitPathsToArguments: {
|
|
2466
|
+
explicitPathsToArguments: {
|
|
2467
|
+
dataCollectionId: "$[0]",
|
|
2468
|
+
publishOptions: "$[1].publishOptions",
|
|
2469
|
+
draftItemsPluginConflictAction: "$[1].draftItemsPluginConflictAction"
|
|
2470
|
+
},
|
|
1527
2471
|
singleArgumentUnchanged: false
|
|
1528
2472
|
},
|
|
1529
|
-
["
|
|
2473
|
+
["dataCollectionId", "options"]
|
|
1530
2474
|
);
|
|
1531
2475
|
sideEffects?.onError?.(err);
|
|
1532
2476
|
throw transformedError;
|
|
1533
2477
|
}
|
|
1534
2478
|
}
|
|
1535
|
-
async function
|
|
2479
|
+
async function deletePublishPlugin2(dataCollectionId) {
|
|
1536
2480
|
const { httpClient, sideEffects } = arguments[1];
|
|
1537
2481
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1538
2482
|
dataCollectionId
|
|
1539
2483
|
});
|
|
1540
|
-
const reqOpts =
|
|
2484
|
+
const reqOpts = deletePublishPlugin(payload);
|
|
1541
2485
|
sideEffects?.onSiteCall?.();
|
|
1542
2486
|
try {
|
|
1543
2487
|
const result = await httpClient.request(reqOpts);
|
|
1544
2488
|
sideEffects?.onSuccess?.(result);
|
|
2489
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1545
2490
|
} catch (err) {
|
|
1546
2491
|
const transformedError = sdkTransformError(
|
|
1547
2492
|
err,
|
|
@@ -1556,12 +2501,13 @@ async function deleteDataCollection2(dataCollectionId) {
|
|
|
1556
2501
|
throw transformedError;
|
|
1557
2502
|
}
|
|
1558
2503
|
}
|
|
1559
|
-
async function
|
|
1560
|
-
const { httpClient, sideEffects } = arguments[
|
|
2504
|
+
async function addUrlizedPlugin2(dataCollectionId, options) {
|
|
2505
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1561
2506
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1562
|
-
dataCollectionId
|
|
2507
|
+
dataCollectionId,
|
|
2508
|
+
urlizedOptions: options?.urlizedOptions
|
|
1563
2509
|
});
|
|
1564
|
-
const reqOpts =
|
|
2510
|
+
const reqOpts = addUrlizedPlugin(payload);
|
|
1565
2511
|
sideEffects?.onSiteCall?.();
|
|
1566
2512
|
try {
|
|
1567
2513
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1572,21 +2518,24 @@ async function restoreDataCollection2(dataCollectionId) {
|
|
|
1572
2518
|
err,
|
|
1573
2519
|
{
|
|
1574
2520
|
spreadPathsToArguments: {},
|
|
1575
|
-
explicitPathsToArguments: {
|
|
2521
|
+
explicitPathsToArguments: {
|
|
2522
|
+
dataCollectionId: "$[0]",
|
|
2523
|
+
urlizedOptions: "$[1].urlizedOptions"
|
|
2524
|
+
},
|
|
1576
2525
|
singleArgumentUnchanged: false
|
|
1577
2526
|
},
|
|
1578
|
-
["dataCollectionId"]
|
|
2527
|
+
["dataCollectionId", "options"]
|
|
1579
2528
|
);
|
|
1580
2529
|
sideEffects?.onError?.(err);
|
|
1581
2530
|
throw transformedError;
|
|
1582
2531
|
}
|
|
1583
2532
|
}
|
|
1584
|
-
async function
|
|
1585
|
-
const { httpClient, sideEffects } = arguments[
|
|
2533
|
+
async function deleteUrlizedPlugin2(dataCollectionId) {
|
|
2534
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1586
2535
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1587
|
-
|
|
2536
|
+
dataCollectionId
|
|
1588
2537
|
});
|
|
1589
|
-
const reqOpts =
|
|
2538
|
+
const reqOpts = deleteUrlizedPlugin(payload);
|
|
1590
2539
|
sideEffects?.onSiteCall?.();
|
|
1591
2540
|
try {
|
|
1592
2541
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1596,23 +2545,23 @@ async function patchDataCollection2(_id, dataCollection) {
|
|
|
1596
2545
|
const transformedError = sdkTransformError(
|
|
1597
2546
|
err,
|
|
1598
2547
|
{
|
|
1599
|
-
spreadPathsToArguments: {
|
|
1600
|
-
explicitPathsToArguments: {
|
|
2548
|
+
spreadPathsToArguments: {},
|
|
2549
|
+
explicitPathsToArguments: { dataCollectionId: "$[0]" },
|
|
1601
2550
|
singleArgumentUnchanged: false
|
|
1602
2551
|
},
|
|
1603
|
-
["
|
|
2552
|
+
["dataCollectionId"]
|
|
1604
2553
|
);
|
|
1605
2554
|
sideEffects?.onError?.(err);
|
|
1606
2555
|
throw transformedError;
|
|
1607
2556
|
}
|
|
1608
2557
|
}
|
|
1609
|
-
async function
|
|
2558
|
+
async function addMultilingualPlugin2(dataCollectionId, options) {
|
|
1610
2559
|
const { httpClient, sideEffects } = arguments[2];
|
|
1611
2560
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1612
2561
|
dataCollectionId,
|
|
1613
|
-
|
|
2562
|
+
multilingualOptions: options?.multilingualOptions
|
|
1614
2563
|
});
|
|
1615
|
-
const reqOpts =
|
|
2564
|
+
const reqOpts = addMultilingualPlugin(payload);
|
|
1616
2565
|
sideEffects?.onSiteCall?.();
|
|
1617
2566
|
try {
|
|
1618
2567
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1625,7 +2574,7 @@ async function createDataCollectionField2(dataCollectionId, options) {
|
|
|
1625
2574
|
spreadPathsToArguments: {},
|
|
1626
2575
|
explicitPathsToArguments: {
|
|
1627
2576
|
dataCollectionId: "$[0]",
|
|
1628
|
-
|
|
2577
|
+
multilingualOptions: "$[1].multilingualOptions"
|
|
1629
2578
|
},
|
|
1630
2579
|
singleArgumentUnchanged: false
|
|
1631
2580
|
},
|
|
@@ -1635,13 +2584,38 @@ async function createDataCollectionField2(dataCollectionId, options) {
|
|
|
1635
2584
|
throw transformedError;
|
|
1636
2585
|
}
|
|
1637
2586
|
}
|
|
1638
|
-
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) {
|
|
1639
2613
|
const { httpClient, sideEffects } = arguments[2];
|
|
1640
2614
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1641
2615
|
dataCollectionId,
|
|
1642
|
-
|
|
2616
|
+
cmsOptions: options?.cmsOptions
|
|
1643
2617
|
});
|
|
1644
|
-
const reqOpts =
|
|
2618
|
+
const reqOpts = addCmsPlugin(payload);
|
|
1645
2619
|
sideEffects?.onSiteCall?.();
|
|
1646
2620
|
try {
|
|
1647
2621
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1654,7 +2628,7 @@ async function updateDataCollectionField2(dataCollectionId, options) {
|
|
|
1654
2628
|
spreadPathsToArguments: {},
|
|
1655
2629
|
explicitPathsToArguments: {
|
|
1656
2630
|
dataCollectionId: "$[0]",
|
|
1657
|
-
|
|
2631
|
+
cmsOptions: "$[1].cmsOptions"
|
|
1658
2632
|
},
|
|
1659
2633
|
singleArgumentUnchanged: false
|
|
1660
2634
|
},
|
|
@@ -1664,13 +2638,38 @@ async function updateDataCollectionField2(dataCollectionId, options) {
|
|
|
1664
2638
|
throw transformedError;
|
|
1665
2639
|
}
|
|
1666
2640
|
}
|
|
1667
|
-
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) {
|
|
1668
2667
|
const { httpClient, sideEffects } = arguments[2];
|
|
1669
2668
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1670
2669
|
dataCollectionId,
|
|
1671
|
-
|
|
2670
|
+
catalogOptions: options?.catalogOptions
|
|
1672
2671
|
});
|
|
1673
|
-
const reqOpts =
|
|
2672
|
+
const reqOpts = addCatalogPlugin(payload);
|
|
1674
2673
|
sideEffects?.onSiteCall?.();
|
|
1675
2674
|
try {
|
|
1676
2675
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1683,7 +2682,7 @@ async function deleteDataCollectionField2(dataCollectionId, options) {
|
|
|
1683
2682
|
spreadPathsToArguments: {},
|
|
1684
2683
|
explicitPathsToArguments: {
|
|
1685
2684
|
dataCollectionId: "$[0]",
|
|
1686
|
-
|
|
2685
|
+
catalogOptions: "$[1].catalogOptions"
|
|
1687
2686
|
},
|
|
1688
2687
|
singleArgumentUnchanged: false
|
|
1689
2688
|
},
|
|
@@ -1693,13 +2692,39 @@ async function deleteDataCollectionField2(dataCollectionId, options) {
|
|
|
1693
2692
|
throw transformedError;
|
|
1694
2693
|
}
|
|
1695
2694
|
}
|
|
1696
|
-
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) {
|
|
1697
2721
|
const { httpClient, sideEffects } = arguments[2];
|
|
1698
2722
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1699
2723
|
dataCollectionId,
|
|
1700
|
-
|
|
2724
|
+
draftItemsOptions: options?.draftItemsOptions,
|
|
2725
|
+
publishPluginConflictAction: options?.publishPluginConflictAction
|
|
1701
2726
|
});
|
|
1702
|
-
const reqOpts =
|
|
2727
|
+
const reqOpts = addDraftItemsPlugin(payload);
|
|
1703
2728
|
sideEffects?.onSiteCall?.();
|
|
1704
2729
|
try {
|
|
1705
2730
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1712,7 +2737,8 @@ async function addDataCollectionPlugin2(dataCollectionId, options) {
|
|
|
1712
2737
|
spreadPathsToArguments: {},
|
|
1713
2738
|
explicitPathsToArguments: {
|
|
1714
2739
|
dataCollectionId: "$[0]",
|
|
1715
|
-
|
|
2740
|
+
draftItemsOptions: "$[1].draftItemsOptions",
|
|
2741
|
+
publishPluginConflictAction: "$[1].publishPluginConflictAction"
|
|
1716
2742
|
},
|
|
1717
2743
|
singleArgumentUnchanged: false
|
|
1718
2744
|
},
|
|
@@ -1722,13 +2748,13 @@ async function addDataCollectionPlugin2(dataCollectionId, options) {
|
|
|
1722
2748
|
throw transformedError;
|
|
1723
2749
|
}
|
|
1724
2750
|
}
|
|
1725
|
-
async function
|
|
2751
|
+
async function deleteDraftItemsPlugin2(dataCollectionId, options) {
|
|
1726
2752
|
const { httpClient, sideEffects } = arguments[2];
|
|
1727
2753
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1728
2754
|
dataCollectionId,
|
|
1729
|
-
|
|
2755
|
+
draftItemsRemovalAction: options?.draftItemsRemovalAction
|
|
1730
2756
|
});
|
|
1731
|
-
const reqOpts =
|
|
2757
|
+
const reqOpts = deleteDraftItemsPlugin(payload);
|
|
1732
2758
|
sideEffects?.onSiteCall?.();
|
|
1733
2759
|
try {
|
|
1734
2760
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1741,7 +2767,7 @@ async function deleteDataCollectionPlugin2(dataCollectionId, options) {
|
|
|
1741
2767
|
spreadPathsToArguments: {},
|
|
1742
2768
|
explicitPathsToArguments: {
|
|
1743
2769
|
dataCollectionId: "$[0]",
|
|
1744
|
-
|
|
2770
|
+
draftItemsRemovalAction: "$[1].draftItemsRemovalAction"
|
|
1745
2771
|
},
|
|
1746
2772
|
singleArgumentUnchanged: false
|
|
1747
2773
|
},
|
|
@@ -1870,6 +2896,97 @@ function deleteDataCollectionPlugin3(httpClient) {
|
|
|
1870
2896
|
{ httpClient }
|
|
1871
2897
|
);
|
|
1872
2898
|
}
|
|
2899
|
+
function addPublishPlugin3(httpClient) {
|
|
2900
|
+
return (dataCollectionId, options) => addPublishPlugin2(
|
|
2901
|
+
dataCollectionId,
|
|
2902
|
+
options,
|
|
2903
|
+
// @ts-ignore
|
|
2904
|
+
{ httpClient }
|
|
2905
|
+
);
|
|
2906
|
+
}
|
|
2907
|
+
function deletePublishPlugin3(httpClient) {
|
|
2908
|
+
return (dataCollectionId) => deletePublishPlugin2(
|
|
2909
|
+
dataCollectionId,
|
|
2910
|
+
// @ts-ignore
|
|
2911
|
+
{ httpClient }
|
|
2912
|
+
);
|
|
2913
|
+
}
|
|
2914
|
+
function addUrlizedPlugin3(httpClient) {
|
|
2915
|
+
return (dataCollectionId, options) => addUrlizedPlugin2(
|
|
2916
|
+
dataCollectionId,
|
|
2917
|
+
options,
|
|
2918
|
+
// @ts-ignore
|
|
2919
|
+
{ httpClient }
|
|
2920
|
+
);
|
|
2921
|
+
}
|
|
2922
|
+
function deleteUrlizedPlugin3(httpClient) {
|
|
2923
|
+
return (dataCollectionId) => deleteUrlizedPlugin2(
|
|
2924
|
+
dataCollectionId,
|
|
2925
|
+
// @ts-ignore
|
|
2926
|
+
{ httpClient }
|
|
2927
|
+
);
|
|
2928
|
+
}
|
|
2929
|
+
function addMultilingualPlugin3(httpClient) {
|
|
2930
|
+
return (dataCollectionId, options) => addMultilingualPlugin2(
|
|
2931
|
+
dataCollectionId,
|
|
2932
|
+
options,
|
|
2933
|
+
// @ts-ignore
|
|
2934
|
+
{ httpClient }
|
|
2935
|
+
);
|
|
2936
|
+
}
|
|
2937
|
+
function deleteMultilingualPlugin3(httpClient) {
|
|
2938
|
+
return (dataCollectionId) => deleteMultilingualPlugin2(
|
|
2939
|
+
dataCollectionId,
|
|
2940
|
+
// @ts-ignore
|
|
2941
|
+
{ httpClient }
|
|
2942
|
+
);
|
|
2943
|
+
}
|
|
2944
|
+
function addCmsPlugin3(httpClient) {
|
|
2945
|
+
return (dataCollectionId, options) => addCmsPlugin2(
|
|
2946
|
+
dataCollectionId,
|
|
2947
|
+
options,
|
|
2948
|
+
// @ts-ignore
|
|
2949
|
+
{ httpClient }
|
|
2950
|
+
);
|
|
2951
|
+
}
|
|
2952
|
+
function deleteCmsPlugin3(httpClient) {
|
|
2953
|
+
return (dataCollectionId) => deleteCmsPlugin2(
|
|
2954
|
+
dataCollectionId,
|
|
2955
|
+
// @ts-ignore
|
|
2956
|
+
{ httpClient }
|
|
2957
|
+
);
|
|
2958
|
+
}
|
|
2959
|
+
function addCatalogPlugin3(httpClient) {
|
|
2960
|
+
return (dataCollectionId, options) => addCatalogPlugin2(
|
|
2961
|
+
dataCollectionId,
|
|
2962
|
+
options,
|
|
2963
|
+
// @ts-ignore
|
|
2964
|
+
{ httpClient }
|
|
2965
|
+
);
|
|
2966
|
+
}
|
|
2967
|
+
function deleteCatalogPlugin3(httpClient) {
|
|
2968
|
+
return (dataCollectionId) => deleteCatalogPlugin2(
|
|
2969
|
+
dataCollectionId,
|
|
2970
|
+
// @ts-ignore
|
|
2971
|
+
{ httpClient }
|
|
2972
|
+
);
|
|
2973
|
+
}
|
|
2974
|
+
function addDraftItemsPlugin3(httpClient) {
|
|
2975
|
+
return (dataCollectionId, options) => addDraftItemsPlugin2(
|
|
2976
|
+
dataCollectionId,
|
|
2977
|
+
options,
|
|
2978
|
+
// @ts-ignore
|
|
2979
|
+
{ httpClient }
|
|
2980
|
+
);
|
|
2981
|
+
}
|
|
2982
|
+
function deleteDraftItemsPlugin3(httpClient) {
|
|
2983
|
+
return (dataCollectionId, options) => deleteDraftItemsPlugin2(
|
|
2984
|
+
dataCollectionId,
|
|
2985
|
+
options,
|
|
2986
|
+
// @ts-ignore
|
|
2987
|
+
{ httpClient }
|
|
2988
|
+
);
|
|
2989
|
+
}
|
|
1873
2990
|
function patchDataCollectionField3(httpClient) {
|
|
1874
2991
|
return (dataCollectionId, field) => patchDataCollectionField2(
|
|
1875
2992
|
dataCollectionId,
|
|
@@ -1893,6 +3010,18 @@ var updateDataCollectionField4 = /* @__PURE__ */ createRESTModule(updateDataColl
|
|
|
1893
3010
|
var deleteDataCollectionField4 = /* @__PURE__ */ createRESTModule(deleteDataCollectionField3);
|
|
1894
3011
|
var addDataCollectionPlugin4 = /* @__PURE__ */ createRESTModule(addDataCollectionPlugin3);
|
|
1895
3012
|
var deleteDataCollectionPlugin4 = /* @__PURE__ */ createRESTModule(deleteDataCollectionPlugin3);
|
|
3013
|
+
var addPublishPlugin4 = /* @__PURE__ */ createRESTModule(addPublishPlugin3);
|
|
3014
|
+
var deletePublishPlugin4 = /* @__PURE__ */ createRESTModule(deletePublishPlugin3);
|
|
3015
|
+
var addUrlizedPlugin4 = /* @__PURE__ */ createRESTModule(addUrlizedPlugin3);
|
|
3016
|
+
var deleteUrlizedPlugin4 = /* @__PURE__ */ createRESTModule(deleteUrlizedPlugin3);
|
|
3017
|
+
var addMultilingualPlugin4 = /* @__PURE__ */ createRESTModule(addMultilingualPlugin3);
|
|
3018
|
+
var deleteMultilingualPlugin4 = /* @__PURE__ */ createRESTModule(deleteMultilingualPlugin3);
|
|
3019
|
+
var addCmsPlugin4 = /* @__PURE__ */ createRESTModule(addCmsPlugin3);
|
|
3020
|
+
var deleteCmsPlugin4 = /* @__PURE__ */ createRESTModule(deleteCmsPlugin3);
|
|
3021
|
+
var addCatalogPlugin4 = /* @__PURE__ */ createRESTModule(addCatalogPlugin3);
|
|
3022
|
+
var deleteCatalogPlugin4 = /* @__PURE__ */ createRESTModule(deleteCatalogPlugin3);
|
|
3023
|
+
var addDraftItemsPlugin4 = /* @__PURE__ */ createRESTModule(addDraftItemsPlugin3);
|
|
3024
|
+
var deleteDraftItemsPlugin4 = /* @__PURE__ */ createRESTModule(deleteDraftItemsPlugin3);
|
|
1896
3025
|
var patchDataCollectionField4 = /* @__PURE__ */ createRESTModule(patchDataCollectionField3);
|
|
1897
3026
|
export {
|
|
1898
3027
|
AccessLevel,
|
|
@@ -1900,6 +3029,8 @@ export {
|
|
|
1900
3029
|
CollectionType,
|
|
1901
3030
|
DataOperation,
|
|
1902
3031
|
Direction,
|
|
3032
|
+
DraftItemsPluginConflictAction,
|
|
3033
|
+
DraftItemsRemovalAction,
|
|
1903
3034
|
FieldPluginType,
|
|
1904
3035
|
Format,
|
|
1905
3036
|
IndexSource,
|
|
@@ -1910,6 +3041,7 @@ export {
|
|
|
1910
3041
|
PagingMode,
|
|
1911
3042
|
Permission,
|
|
1912
3043
|
PluginType,
|
|
3044
|
+
PublishPluginConflictAction,
|
|
1913
3045
|
QueryOperator,
|
|
1914
3046
|
Role,
|
|
1915
3047
|
Segment,
|
|
@@ -1918,12 +3050,24 @@ export {
|
|
|
1918
3050
|
TenantMode,
|
|
1919
3051
|
Type,
|
|
1920
3052
|
WebhookIdentityType,
|
|
3053
|
+
addCatalogPlugin4 as addCatalogPlugin,
|
|
3054
|
+
addCmsPlugin4 as addCmsPlugin,
|
|
1921
3055
|
addDataCollectionPlugin4 as addDataCollectionPlugin,
|
|
3056
|
+
addDraftItemsPlugin4 as addDraftItemsPlugin,
|
|
3057
|
+
addMultilingualPlugin4 as addMultilingualPlugin,
|
|
3058
|
+
addPublishPlugin4 as addPublishPlugin,
|
|
3059
|
+
addUrlizedPlugin4 as addUrlizedPlugin,
|
|
1922
3060
|
createDataCollection4 as createDataCollection,
|
|
1923
3061
|
createDataCollectionField4 as createDataCollectionField,
|
|
3062
|
+
deleteCatalogPlugin4 as deleteCatalogPlugin,
|
|
3063
|
+
deleteCmsPlugin4 as deleteCmsPlugin,
|
|
1924
3064
|
deleteDataCollection4 as deleteDataCollection,
|
|
1925
3065
|
deleteDataCollectionField4 as deleteDataCollectionField,
|
|
1926
3066
|
deleteDataCollectionPlugin4 as deleteDataCollectionPlugin,
|
|
3067
|
+
deleteDraftItemsPlugin4 as deleteDraftItemsPlugin,
|
|
3068
|
+
deleteMultilingualPlugin4 as deleteMultilingualPlugin,
|
|
3069
|
+
deletePublishPlugin4 as deletePublishPlugin,
|
|
3070
|
+
deleteUrlizedPlugin4 as deleteUrlizedPlugin,
|
|
1927
3071
|
getDataCollection4 as getDataCollection,
|
|
1928
3072
|
listDataCollections4 as listDataCollections,
|
|
1929
3073
|
patchDataCollection4 as patchDataCollection,
|