@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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +1229 -70
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +216 -1
  5. package/build/cjs/index.typings.js +1125 -69
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +197 -2
  8. package/build/cjs/meta.js +940 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +1214 -70
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +216 -1
  14. package/build/es/index.typings.mjs +1110 -69
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +197 -2
  17. package/build/es/meta.mjs +925 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +135 -3
  20. package/build/internal/cjs/index.js +1229 -70
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +346 -1
  23. package/build/internal/cjs/index.typings.js +1125 -69
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +197 -2
  26. package/build/internal/cjs/meta.js +940 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +135 -3
  29. package/build/internal/es/index.mjs +1214 -70
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +346 -1
  32. package/build/internal/es/index.typings.mjs +1110 -69
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +197 -2
  35. package/build/internal/es/meta.mjs +925 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -25,6 +25,8 @@ __export(meta_exports, {
25
25
  CollectionTypeOriginal: () => CollectionType,
26
26
  DataOperationOriginal: () => DataOperation,
27
27
  DirectionOriginal: () => Direction,
28
+ DraftItemsPluginConflictActionOriginal: () => DraftItemsPluginConflictAction,
29
+ DraftItemsRemovalActionOriginal: () => DraftItemsRemovalAction,
28
30
  FieldPluginTypeOriginal: () => FieldPluginType,
29
31
  FormatOriginal: () => Format,
30
32
  IndexSourceOriginal: () => IndexSource,
@@ -35,6 +37,7 @@ __export(meta_exports, {
35
37
  PagingModeOriginal: () => PagingMode,
36
38
  PermissionOriginal: () => Permission,
37
39
  PluginTypeOriginal: () => PluginType,
40
+ PublishPluginConflictActionOriginal: () => PublishPluginConflictAction,
38
41
  QueryOperatorOriginal: () => QueryOperator,
39
42
  RoleOriginal: () => Role,
40
43
  SegmentOriginal: () => Segment,
@@ -43,12 +46,24 @@ __export(meta_exports, {
43
46
  TenantModeOriginal: () => TenantMode,
44
47
  TypeOriginal: () => Type,
45
48
  WebhookIdentityTypeOriginal: () => WebhookIdentityType,
49
+ addCatalogPlugin: () => addCatalogPlugin2,
50
+ addCmsPlugin: () => addCmsPlugin2,
46
51
  addDataCollectionPlugin: () => addDataCollectionPlugin2,
52
+ addDraftItemsPlugin: () => addDraftItemsPlugin2,
53
+ addMultilingualPlugin: () => addMultilingualPlugin2,
54
+ addPublishPlugin: () => addPublishPlugin2,
55
+ addUrlizedPlugin: () => addUrlizedPlugin2,
47
56
  createDataCollection: () => createDataCollection2,
48
57
  createDataCollectionField: () => createDataCollectionField2,
58
+ deleteCatalogPlugin: () => deleteCatalogPlugin2,
59
+ deleteCmsPlugin: () => deleteCmsPlugin2,
49
60
  deleteDataCollection: () => deleteDataCollection2,
50
61
  deleteDataCollectionField: () => deleteDataCollectionField2,
51
62
  deleteDataCollectionPlugin: () => deleteDataCollectionPlugin2,
63
+ deleteDraftItemsPlugin: () => deleteDraftItemsPlugin2,
64
+ deleteMultilingualPlugin: () => deleteMultilingualPlugin2,
65
+ deletePublishPlugin: () => deletePublishPlugin2,
66
+ deleteUrlizedPlugin: () => deleteUrlizedPlugin2,
52
67
  getDataCollection: () => getDataCollection2,
53
68
  listDataCollections: () => listDataCollections2,
54
69
  patchDataCollection: () => patchDataCollection2,
@@ -1179,6 +1194,682 @@ function deleteDataCollectionPlugin(payload) {
1179
1194
  }
1180
1195
  return __deleteDataCollectionPlugin;
1181
1196
  }
1197
+ function addPublishPlugin(payload) {
1198
+ function __addPublishPlugin({ host }) {
1199
+ const metadata = {
1200
+ entityFqdn: "wix.data.v2.data_collection",
1201
+ method: "POST",
1202
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddPublishPlugin",
1203
+ packageName: PACKAGE_NAME,
1204
+ migrationOptions: {
1205
+ optInTransformResponse: true
1206
+ },
1207
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1208
+ { protoPath: "/v2/collections/add-publish-plugin", data: payload, host }
1209
+ ),
1210
+ data: payload,
1211
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1212
+ {
1213
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1214
+ paths: [
1215
+ { path: "dataCollection.createdDate" },
1216
+ { path: "dataCollection.updatedDate" },
1217
+ {
1218
+ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1219
+ },
1220
+ { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1221
+ { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1222
+ {
1223
+ path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1224
+ },
1225
+ {
1226
+ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1227
+ },
1228
+ {
1229
+ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1230
+ }
1231
+ ]
1232
+ },
1233
+ {
1234
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1235
+ paths: [
1236
+ { path: "dataCollection.fields.numberRange.min" },
1237
+ { path: "dataCollection.fields.numberRange.max" },
1238
+ {
1239
+ path: "dataCollection.fields.typeMetadata.number.defaultValue"
1240
+ },
1241
+ { path: "dataCollection.fields.typeMetadata.number.min" },
1242
+ { path: "dataCollection.fields.typeMetadata.number.max" }
1243
+ ]
1244
+ }
1245
+ ])
1246
+ };
1247
+ return metadata;
1248
+ }
1249
+ return __addPublishPlugin;
1250
+ }
1251
+ function deletePublishPlugin(payload) {
1252
+ function __deletePublishPlugin({ host }) {
1253
+ const metadata = {
1254
+ entityFqdn: "wix.data.v2.data_collection",
1255
+ method: "POST",
1256
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeletePublishPlugin",
1257
+ packageName: PACKAGE_NAME,
1258
+ migrationOptions: {
1259
+ optInTransformResponse: true
1260
+ },
1261
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1262
+ {
1263
+ protoPath: "/v2/collections/delete-publish-plugin",
1264
+ data: payload,
1265
+ host
1266
+ }
1267
+ ),
1268
+ data: payload,
1269
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1270
+ {
1271
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1272
+ paths: [
1273
+ { path: "dataCollection.createdDate" },
1274
+ { path: "dataCollection.updatedDate" },
1275
+ {
1276
+ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1277
+ },
1278
+ { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1279
+ { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1280
+ {
1281
+ path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1282
+ },
1283
+ {
1284
+ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1285
+ },
1286
+ {
1287
+ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1288
+ }
1289
+ ]
1290
+ },
1291
+ {
1292
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1293
+ paths: [
1294
+ { path: "dataCollection.fields.numberRange.min" },
1295
+ { path: "dataCollection.fields.numberRange.max" },
1296
+ {
1297
+ path: "dataCollection.fields.typeMetadata.number.defaultValue"
1298
+ },
1299
+ { path: "dataCollection.fields.typeMetadata.number.min" },
1300
+ { path: "dataCollection.fields.typeMetadata.number.max" }
1301
+ ]
1302
+ }
1303
+ ])
1304
+ };
1305
+ return metadata;
1306
+ }
1307
+ return __deletePublishPlugin;
1308
+ }
1309
+ function addUrlizedPlugin(payload) {
1310
+ function __addUrlizedPlugin({ host }) {
1311
+ const metadata = {
1312
+ entityFqdn: "wix.data.v2.data_collection",
1313
+ method: "POST",
1314
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddUrlizedPlugin",
1315
+ packageName: PACKAGE_NAME,
1316
+ migrationOptions: {
1317
+ optInTransformResponse: true
1318
+ },
1319
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1320
+ { protoPath: "/v2/collections/add-urlized-plugin", data: payload, host }
1321
+ ),
1322
+ data: payload,
1323
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1324
+ {
1325
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1326
+ paths: [
1327
+ { path: "dataCollection.createdDate" },
1328
+ { path: "dataCollection.updatedDate" },
1329
+ {
1330
+ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1331
+ },
1332
+ { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1333
+ { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1334
+ {
1335
+ path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1336
+ },
1337
+ {
1338
+ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1339
+ },
1340
+ {
1341
+ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1342
+ }
1343
+ ]
1344
+ },
1345
+ {
1346
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1347
+ paths: [
1348
+ { path: "dataCollection.fields.numberRange.min" },
1349
+ { path: "dataCollection.fields.numberRange.max" },
1350
+ {
1351
+ path: "dataCollection.fields.typeMetadata.number.defaultValue"
1352
+ },
1353
+ { path: "dataCollection.fields.typeMetadata.number.min" },
1354
+ { path: "dataCollection.fields.typeMetadata.number.max" }
1355
+ ]
1356
+ }
1357
+ ])
1358
+ };
1359
+ return metadata;
1360
+ }
1361
+ return __addUrlizedPlugin;
1362
+ }
1363
+ function deleteUrlizedPlugin(payload) {
1364
+ function __deleteUrlizedPlugin({ host }) {
1365
+ const metadata = {
1366
+ entityFqdn: "wix.data.v2.data_collection",
1367
+ method: "POST",
1368
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteUrlizedPlugin",
1369
+ packageName: PACKAGE_NAME,
1370
+ migrationOptions: {
1371
+ optInTransformResponse: true
1372
+ },
1373
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1374
+ {
1375
+ protoPath: "/v2/collections/delete-urlized-plugin",
1376
+ data: payload,
1377
+ host
1378
+ }
1379
+ ),
1380
+ data: payload,
1381
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1382
+ {
1383
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1384
+ paths: [
1385
+ { path: "dataCollection.createdDate" },
1386
+ { path: "dataCollection.updatedDate" },
1387
+ {
1388
+ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1389
+ },
1390
+ { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1391
+ { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1392
+ {
1393
+ path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1394
+ },
1395
+ {
1396
+ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1397
+ },
1398
+ {
1399
+ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1400
+ }
1401
+ ]
1402
+ },
1403
+ {
1404
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1405
+ paths: [
1406
+ { path: "dataCollection.fields.numberRange.min" },
1407
+ { path: "dataCollection.fields.numberRange.max" },
1408
+ {
1409
+ path: "dataCollection.fields.typeMetadata.number.defaultValue"
1410
+ },
1411
+ { path: "dataCollection.fields.typeMetadata.number.min" },
1412
+ { path: "dataCollection.fields.typeMetadata.number.max" }
1413
+ ]
1414
+ }
1415
+ ])
1416
+ };
1417
+ return metadata;
1418
+ }
1419
+ return __deleteUrlizedPlugin;
1420
+ }
1421
+ function addMultilingualPlugin(payload) {
1422
+ function __addMultilingualPlugin({ host }) {
1423
+ const metadata = {
1424
+ entityFqdn: "wix.data.v2.data_collection",
1425
+ method: "POST",
1426
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddMultilingualPlugin",
1427
+ packageName: PACKAGE_NAME,
1428
+ migrationOptions: {
1429
+ optInTransformResponse: true
1430
+ },
1431
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1432
+ {
1433
+ protoPath: "/v2/collections/add-multilingual-plugin",
1434
+ data: payload,
1435
+ host
1436
+ }
1437
+ ),
1438
+ data: payload,
1439
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1440
+ {
1441
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1442
+ paths: [
1443
+ { path: "dataCollection.createdDate" },
1444
+ { path: "dataCollection.updatedDate" },
1445
+ {
1446
+ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1447
+ },
1448
+ { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1449
+ { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1450
+ {
1451
+ path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1452
+ },
1453
+ {
1454
+ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1455
+ },
1456
+ {
1457
+ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1458
+ }
1459
+ ]
1460
+ },
1461
+ {
1462
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1463
+ paths: [
1464
+ { path: "dataCollection.fields.numberRange.min" },
1465
+ { path: "dataCollection.fields.numberRange.max" },
1466
+ {
1467
+ path: "dataCollection.fields.typeMetadata.number.defaultValue"
1468
+ },
1469
+ { path: "dataCollection.fields.typeMetadata.number.min" },
1470
+ { path: "dataCollection.fields.typeMetadata.number.max" }
1471
+ ]
1472
+ }
1473
+ ])
1474
+ };
1475
+ return metadata;
1476
+ }
1477
+ return __addMultilingualPlugin;
1478
+ }
1479
+ function deleteMultilingualPlugin(payload) {
1480
+ function __deleteMultilingualPlugin({ host }) {
1481
+ const metadata = {
1482
+ entityFqdn: "wix.data.v2.data_collection",
1483
+ method: "POST",
1484
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteMultilingualPlugin",
1485
+ packageName: PACKAGE_NAME,
1486
+ migrationOptions: {
1487
+ optInTransformResponse: true
1488
+ },
1489
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1490
+ {
1491
+ protoPath: "/v2/collections/delete-multilingual-plugin",
1492
+ data: payload,
1493
+ host
1494
+ }
1495
+ ),
1496
+ data: payload,
1497
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1498
+ {
1499
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1500
+ paths: [
1501
+ { path: "dataCollection.createdDate" },
1502
+ { path: "dataCollection.updatedDate" },
1503
+ {
1504
+ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1505
+ },
1506
+ { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1507
+ { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1508
+ {
1509
+ path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1510
+ },
1511
+ {
1512
+ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1513
+ },
1514
+ {
1515
+ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1516
+ }
1517
+ ]
1518
+ },
1519
+ {
1520
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1521
+ paths: [
1522
+ { path: "dataCollection.fields.numberRange.min" },
1523
+ { path: "dataCollection.fields.numberRange.max" },
1524
+ {
1525
+ path: "dataCollection.fields.typeMetadata.number.defaultValue"
1526
+ },
1527
+ { path: "dataCollection.fields.typeMetadata.number.min" },
1528
+ { path: "dataCollection.fields.typeMetadata.number.max" }
1529
+ ]
1530
+ }
1531
+ ])
1532
+ };
1533
+ return metadata;
1534
+ }
1535
+ return __deleteMultilingualPlugin;
1536
+ }
1537
+ function addCmsPlugin(payload) {
1538
+ function __addCmsPlugin({ host }) {
1539
+ const metadata = {
1540
+ entityFqdn: "wix.data.v2.data_collection",
1541
+ method: "POST",
1542
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddCmsPlugin",
1543
+ packageName: PACKAGE_NAME,
1544
+ migrationOptions: {
1545
+ optInTransformResponse: true
1546
+ },
1547
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1548
+ { protoPath: "/v2/collections/add-cms-plugin", data: payload, host }
1549
+ ),
1550
+ data: payload,
1551
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1552
+ {
1553
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1554
+ paths: [
1555
+ { path: "dataCollection.createdDate" },
1556
+ { path: "dataCollection.updatedDate" },
1557
+ {
1558
+ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1559
+ },
1560
+ { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1561
+ { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1562
+ {
1563
+ path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1564
+ },
1565
+ {
1566
+ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1567
+ },
1568
+ {
1569
+ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1570
+ }
1571
+ ]
1572
+ },
1573
+ {
1574
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1575
+ paths: [
1576
+ { path: "dataCollection.fields.numberRange.min" },
1577
+ { path: "dataCollection.fields.numberRange.max" },
1578
+ {
1579
+ path: "dataCollection.fields.typeMetadata.number.defaultValue"
1580
+ },
1581
+ { path: "dataCollection.fields.typeMetadata.number.min" },
1582
+ { path: "dataCollection.fields.typeMetadata.number.max" }
1583
+ ]
1584
+ }
1585
+ ])
1586
+ };
1587
+ return metadata;
1588
+ }
1589
+ return __addCmsPlugin;
1590
+ }
1591
+ function deleteCmsPlugin(payload) {
1592
+ function __deleteCmsPlugin({ host }) {
1593
+ const metadata = {
1594
+ entityFqdn: "wix.data.v2.data_collection",
1595
+ method: "POST",
1596
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteCmsPlugin",
1597
+ packageName: PACKAGE_NAME,
1598
+ migrationOptions: {
1599
+ optInTransformResponse: true
1600
+ },
1601
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1602
+ { protoPath: "/v2/collections/delete-cms-plugin", data: payload, host }
1603
+ ),
1604
+ data: payload,
1605
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1606
+ {
1607
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1608
+ paths: [
1609
+ { path: "dataCollection.createdDate" },
1610
+ { path: "dataCollection.updatedDate" },
1611
+ {
1612
+ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1613
+ },
1614
+ { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1615
+ { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1616
+ {
1617
+ path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1618
+ },
1619
+ {
1620
+ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1621
+ },
1622
+ {
1623
+ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1624
+ }
1625
+ ]
1626
+ },
1627
+ {
1628
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1629
+ paths: [
1630
+ { path: "dataCollection.fields.numberRange.min" },
1631
+ { path: "dataCollection.fields.numberRange.max" },
1632
+ {
1633
+ path: "dataCollection.fields.typeMetadata.number.defaultValue"
1634
+ },
1635
+ { path: "dataCollection.fields.typeMetadata.number.min" },
1636
+ { path: "dataCollection.fields.typeMetadata.number.max" }
1637
+ ]
1638
+ }
1639
+ ])
1640
+ };
1641
+ return metadata;
1642
+ }
1643
+ return __deleteCmsPlugin;
1644
+ }
1645
+ function addCatalogPlugin(payload) {
1646
+ function __addCatalogPlugin({ host }) {
1647
+ const metadata = {
1648
+ entityFqdn: "wix.data.v2.data_collection",
1649
+ method: "POST",
1650
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddCatalogPlugin",
1651
+ packageName: PACKAGE_NAME,
1652
+ migrationOptions: {
1653
+ optInTransformResponse: true
1654
+ },
1655
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1656
+ { protoPath: "/v2/collections/add-catalog-plugin", data: payload, host }
1657
+ ),
1658
+ data: payload,
1659
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1660
+ {
1661
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1662
+ paths: [
1663
+ { path: "dataCollection.createdDate" },
1664
+ { path: "dataCollection.updatedDate" },
1665
+ {
1666
+ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1667
+ },
1668
+ { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1669
+ { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1670
+ {
1671
+ path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1672
+ },
1673
+ {
1674
+ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1675
+ },
1676
+ {
1677
+ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1678
+ }
1679
+ ]
1680
+ },
1681
+ {
1682
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1683
+ paths: [
1684
+ { path: "dataCollection.fields.numberRange.min" },
1685
+ { path: "dataCollection.fields.numberRange.max" },
1686
+ {
1687
+ path: "dataCollection.fields.typeMetadata.number.defaultValue"
1688
+ },
1689
+ { path: "dataCollection.fields.typeMetadata.number.min" },
1690
+ { path: "dataCollection.fields.typeMetadata.number.max" }
1691
+ ]
1692
+ }
1693
+ ])
1694
+ };
1695
+ return metadata;
1696
+ }
1697
+ return __addCatalogPlugin;
1698
+ }
1699
+ function deleteCatalogPlugin(payload) {
1700
+ function __deleteCatalogPlugin({ host }) {
1701
+ const metadata = {
1702
+ entityFqdn: "wix.data.v2.data_collection",
1703
+ method: "POST",
1704
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteCatalogPlugin",
1705
+ packageName: PACKAGE_NAME,
1706
+ migrationOptions: {
1707
+ optInTransformResponse: true
1708
+ },
1709
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1710
+ {
1711
+ protoPath: "/v2/collections/delete-catalog-plugin",
1712
+ data: payload,
1713
+ host
1714
+ }
1715
+ ),
1716
+ data: payload,
1717
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1718
+ {
1719
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1720
+ paths: [
1721
+ { path: "dataCollection.createdDate" },
1722
+ { path: "dataCollection.updatedDate" },
1723
+ {
1724
+ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1725
+ },
1726
+ { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1727
+ { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1728
+ {
1729
+ path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1730
+ },
1731
+ {
1732
+ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1733
+ },
1734
+ {
1735
+ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1736
+ }
1737
+ ]
1738
+ },
1739
+ {
1740
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1741
+ paths: [
1742
+ { path: "dataCollection.fields.numberRange.min" },
1743
+ { path: "dataCollection.fields.numberRange.max" },
1744
+ {
1745
+ path: "dataCollection.fields.typeMetadata.number.defaultValue"
1746
+ },
1747
+ { path: "dataCollection.fields.typeMetadata.number.min" },
1748
+ { path: "dataCollection.fields.typeMetadata.number.max" }
1749
+ ]
1750
+ }
1751
+ ])
1752
+ };
1753
+ return metadata;
1754
+ }
1755
+ return __deleteCatalogPlugin;
1756
+ }
1757
+ function addDraftItemsPlugin(payload) {
1758
+ function __addDraftItemsPlugin({ host }) {
1759
+ const metadata = {
1760
+ entityFqdn: "wix.data.v2.data_collection",
1761
+ method: "POST",
1762
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddDraftItemsPlugin",
1763
+ packageName: PACKAGE_NAME,
1764
+ migrationOptions: {
1765
+ optInTransformResponse: true
1766
+ },
1767
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1768
+ {
1769
+ protoPath: "/v2/collections/add-draft-items-plugin",
1770
+ data: payload,
1771
+ host
1772
+ }
1773
+ ),
1774
+ data: payload,
1775
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1776
+ {
1777
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1778
+ paths: [
1779
+ { path: "dataCollection.createdDate" },
1780
+ { path: "dataCollection.updatedDate" },
1781
+ {
1782
+ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1783
+ },
1784
+ { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1785
+ { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1786
+ {
1787
+ path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1788
+ },
1789
+ {
1790
+ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1791
+ },
1792
+ {
1793
+ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1794
+ }
1795
+ ]
1796
+ },
1797
+ {
1798
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1799
+ paths: [
1800
+ { path: "dataCollection.fields.numberRange.min" },
1801
+ { path: "dataCollection.fields.numberRange.max" },
1802
+ {
1803
+ path: "dataCollection.fields.typeMetadata.number.defaultValue"
1804
+ },
1805
+ { path: "dataCollection.fields.typeMetadata.number.min" },
1806
+ { path: "dataCollection.fields.typeMetadata.number.max" }
1807
+ ]
1808
+ }
1809
+ ])
1810
+ };
1811
+ return metadata;
1812
+ }
1813
+ return __addDraftItemsPlugin;
1814
+ }
1815
+ function deleteDraftItemsPlugin(payload) {
1816
+ function __deleteDraftItemsPlugin({ host }) {
1817
+ const metadata = {
1818
+ entityFqdn: "wix.data.v2.data_collection",
1819
+ method: "POST",
1820
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDraftItemsPlugin",
1821
+ packageName: PACKAGE_NAME,
1822
+ migrationOptions: {
1823
+ optInTransformResponse: true
1824
+ },
1825
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
1826
+ {
1827
+ protoPath: "/v2/collections/delete-draft-items-plugin",
1828
+ data: payload,
1829
+ host
1830
+ }
1831
+ ),
1832
+ data: payload,
1833
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1834
+ {
1835
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1836
+ paths: [
1837
+ { path: "dataCollection.createdDate" },
1838
+ { path: "dataCollection.updatedDate" },
1839
+ {
1840
+ path: "dataCollection.fields.typeMetadata.date.defaultValueFixed"
1841
+ },
1842
+ { path: "dataCollection.fields.typeMetadata.date.minDateFixed" },
1843
+ { path: "dataCollection.fields.typeMetadata.date.maxDateFixed" },
1844
+ {
1845
+ path: "dataCollection.fields.typeMetadata.datetime.defaultValueFixed"
1846
+ },
1847
+ {
1848
+ path: "dataCollection.fields.typeMetadata.datetime.minDateFixed"
1849
+ },
1850
+ {
1851
+ path: "dataCollection.fields.typeMetadata.datetime.maxDateFixed"
1852
+ }
1853
+ ]
1854
+ },
1855
+ {
1856
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1857
+ paths: [
1858
+ { path: "dataCollection.fields.numberRange.min" },
1859
+ { path: "dataCollection.fields.numberRange.max" },
1860
+ {
1861
+ path: "dataCollection.fields.typeMetadata.number.defaultValue"
1862
+ },
1863
+ { path: "dataCollection.fields.typeMetadata.number.min" },
1864
+ { path: "dataCollection.fields.typeMetadata.number.max" }
1865
+ ]
1866
+ }
1867
+ ])
1868
+ };
1869
+ return metadata;
1870
+ }
1871
+ return __deleteDraftItemsPlugin;
1872
+ }
1182
1873
  function patchDataCollectionField(payload) {
1183
1874
  function __patchDataCollectionField({ host }) {
1184
1875
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -1430,6 +2121,24 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1430
2121
  SortOrder2["DESC"] = "DESC";
1431
2122
  return SortOrder2;
1432
2123
  })(SortOrder || {});
2124
+ var DraftItemsPluginConflictAction = /* @__PURE__ */ ((DraftItemsPluginConflictAction2) => {
2125
+ DraftItemsPluginConflictAction2["FAIL_WHEN_DRAFT_ITEMS_INSTALLED"] = "FAIL_WHEN_DRAFT_ITEMS_INSTALLED";
2126
+ DraftItemsPluginConflictAction2["DISCARD_DRAFT_ITEMS"] = "DISCARD_DRAFT_ITEMS";
2127
+ DraftItemsPluginConflictAction2["PUBLISH_DRAFT_ITEMS"] = "PUBLISH_DRAFT_ITEMS";
2128
+ DraftItemsPluginConflictAction2["COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS"] = "COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS";
2129
+ return DraftItemsPluginConflictAction2;
2130
+ })(DraftItemsPluginConflictAction || {});
2131
+ var PublishPluginConflictAction = /* @__PURE__ */ ((PublishPluginConflictAction2) => {
2132
+ PublishPluginConflictAction2["FAIL_WHEN_PUBLISH_INSTALLED"] = "FAIL_WHEN_PUBLISH_INSTALLED";
2133
+ PublishPluginConflictAction2["COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS"] = "COPY_DRAFT_ITEMS_WITH_DRAFT_STATUS";
2134
+ return PublishPluginConflictAction2;
2135
+ })(PublishPluginConflictAction || {});
2136
+ var DraftItemsRemovalAction = /* @__PURE__ */ ((DraftItemsRemovalAction2) => {
2137
+ DraftItemsRemovalAction2["FAIL_IF_DRAFT_ITEMS_EXIST"] = "FAIL_IF_DRAFT_ITEMS_EXIST";
2138
+ DraftItemsRemovalAction2["DISCARD_EXISTING_DRAFT_ITEMS"] = "DISCARD_EXISTING_DRAFT_ITEMS";
2139
+ DraftItemsRemovalAction2["PUBLISH_EXISTING_DRAFT_ITEMS"] = "PUBLISH_EXISTING_DRAFT_ITEMS";
2140
+ return DraftItemsRemovalAction2;
2141
+ })(DraftItemsRemovalAction || {});
1433
2142
  var TenantMode = /* @__PURE__ */ ((TenantMode2) => {
1434
2143
  TenantMode2["META_SITE"] = "META_SITE";
1435
2144
  TenantMode2["ACCOUNT"] = "ACCOUNT";
@@ -1683,6 +2392,222 @@ function deleteDataCollectionPlugin2() {
1683
2392
  __originalResponseType: null
1684
2393
  };
1685
2394
  }
2395
+ function addPublishPlugin2() {
2396
+ const payload = {};
2397
+ const getRequestOptions = addPublishPlugin(payload);
2398
+ const getUrl = (context) => {
2399
+ const { url } = getRequestOptions(context);
2400
+ return url;
2401
+ };
2402
+ return {
2403
+ getUrl,
2404
+ httpMethod: "POST",
2405
+ path: "/v2/collections/add-publish-plugin",
2406
+ pathParams: {},
2407
+ __requestType: null,
2408
+ __originalRequestType: null,
2409
+ __responseType: null,
2410
+ __originalResponseType: null
2411
+ };
2412
+ }
2413
+ function deletePublishPlugin2() {
2414
+ const payload = {};
2415
+ const getRequestOptions = deletePublishPlugin(payload);
2416
+ const getUrl = (context) => {
2417
+ const { url } = getRequestOptions(context);
2418
+ return url;
2419
+ };
2420
+ return {
2421
+ getUrl,
2422
+ httpMethod: "POST",
2423
+ path: "/v2/collections/delete-publish-plugin",
2424
+ pathParams: {},
2425
+ __requestType: null,
2426
+ __originalRequestType: null,
2427
+ __responseType: null,
2428
+ __originalResponseType: null
2429
+ };
2430
+ }
2431
+ function addUrlizedPlugin2() {
2432
+ const payload = {};
2433
+ const getRequestOptions = addUrlizedPlugin(payload);
2434
+ const getUrl = (context) => {
2435
+ const { url } = getRequestOptions(context);
2436
+ return url;
2437
+ };
2438
+ return {
2439
+ getUrl,
2440
+ httpMethod: "POST",
2441
+ path: "/v2/collections/add-urlized-plugin",
2442
+ pathParams: {},
2443
+ __requestType: null,
2444
+ __originalRequestType: null,
2445
+ __responseType: null,
2446
+ __originalResponseType: null
2447
+ };
2448
+ }
2449
+ function deleteUrlizedPlugin2() {
2450
+ const payload = {};
2451
+ const getRequestOptions = deleteUrlizedPlugin(payload);
2452
+ const getUrl = (context) => {
2453
+ const { url } = getRequestOptions(context);
2454
+ return url;
2455
+ };
2456
+ return {
2457
+ getUrl,
2458
+ httpMethod: "POST",
2459
+ path: "/v2/collections/delete-urlized-plugin",
2460
+ pathParams: {},
2461
+ __requestType: null,
2462
+ __originalRequestType: null,
2463
+ __responseType: null,
2464
+ __originalResponseType: null
2465
+ };
2466
+ }
2467
+ function addMultilingualPlugin2() {
2468
+ const payload = {};
2469
+ const getRequestOptions = addMultilingualPlugin(payload);
2470
+ const getUrl = (context) => {
2471
+ const { url } = getRequestOptions(context);
2472
+ return url;
2473
+ };
2474
+ return {
2475
+ getUrl,
2476
+ httpMethod: "POST",
2477
+ path: "/v2/collections/add-multilingual-plugin",
2478
+ pathParams: {},
2479
+ __requestType: null,
2480
+ __originalRequestType: null,
2481
+ __responseType: null,
2482
+ __originalResponseType: null
2483
+ };
2484
+ }
2485
+ function deleteMultilingualPlugin2() {
2486
+ const payload = {};
2487
+ const getRequestOptions = deleteMultilingualPlugin(payload);
2488
+ const getUrl = (context) => {
2489
+ const { url } = getRequestOptions(context);
2490
+ return url;
2491
+ };
2492
+ return {
2493
+ getUrl,
2494
+ httpMethod: "POST",
2495
+ path: "/v2/collections/delete-multilingual-plugin",
2496
+ pathParams: {},
2497
+ __requestType: null,
2498
+ __originalRequestType: null,
2499
+ __responseType: null,
2500
+ __originalResponseType: null
2501
+ };
2502
+ }
2503
+ function addCmsPlugin2() {
2504
+ const payload = {};
2505
+ const getRequestOptions = addCmsPlugin(payload);
2506
+ const getUrl = (context) => {
2507
+ const { url } = getRequestOptions(context);
2508
+ return url;
2509
+ };
2510
+ return {
2511
+ getUrl,
2512
+ httpMethod: "POST",
2513
+ path: "/v2/collections/add-cms-plugin",
2514
+ pathParams: {},
2515
+ __requestType: null,
2516
+ __originalRequestType: null,
2517
+ __responseType: null,
2518
+ __originalResponseType: null
2519
+ };
2520
+ }
2521
+ function deleteCmsPlugin2() {
2522
+ const payload = {};
2523
+ const getRequestOptions = deleteCmsPlugin(payload);
2524
+ const getUrl = (context) => {
2525
+ const { url } = getRequestOptions(context);
2526
+ return url;
2527
+ };
2528
+ return {
2529
+ getUrl,
2530
+ httpMethod: "POST",
2531
+ path: "/v2/collections/delete-cms-plugin",
2532
+ pathParams: {},
2533
+ __requestType: null,
2534
+ __originalRequestType: null,
2535
+ __responseType: null,
2536
+ __originalResponseType: null
2537
+ };
2538
+ }
2539
+ function addCatalogPlugin2() {
2540
+ const payload = {};
2541
+ const getRequestOptions = addCatalogPlugin(payload);
2542
+ const getUrl = (context) => {
2543
+ const { url } = getRequestOptions(context);
2544
+ return url;
2545
+ };
2546
+ return {
2547
+ getUrl,
2548
+ httpMethod: "POST",
2549
+ path: "/v2/collections/add-catalog-plugin",
2550
+ pathParams: {},
2551
+ __requestType: null,
2552
+ __originalRequestType: null,
2553
+ __responseType: null,
2554
+ __originalResponseType: null
2555
+ };
2556
+ }
2557
+ function deleteCatalogPlugin2() {
2558
+ const payload = {};
2559
+ const getRequestOptions = deleteCatalogPlugin(payload);
2560
+ const getUrl = (context) => {
2561
+ const { url } = getRequestOptions(context);
2562
+ return url;
2563
+ };
2564
+ return {
2565
+ getUrl,
2566
+ httpMethod: "POST",
2567
+ path: "/v2/collections/delete-catalog-plugin",
2568
+ pathParams: {},
2569
+ __requestType: null,
2570
+ __originalRequestType: null,
2571
+ __responseType: null,
2572
+ __originalResponseType: null
2573
+ };
2574
+ }
2575
+ function addDraftItemsPlugin2() {
2576
+ const payload = {};
2577
+ const getRequestOptions = addDraftItemsPlugin(payload);
2578
+ const getUrl = (context) => {
2579
+ const { url } = getRequestOptions(context);
2580
+ return url;
2581
+ };
2582
+ return {
2583
+ getUrl,
2584
+ httpMethod: "POST",
2585
+ path: "/v2/collections/add-draft-items-plugin",
2586
+ pathParams: {},
2587
+ __requestType: null,
2588
+ __originalRequestType: null,
2589
+ __responseType: null,
2590
+ __originalResponseType: null
2591
+ };
2592
+ }
2593
+ function deleteDraftItemsPlugin2() {
2594
+ const payload = {};
2595
+ const getRequestOptions = deleteDraftItemsPlugin(payload);
2596
+ const getUrl = (context) => {
2597
+ const { url } = getRequestOptions(context);
2598
+ return url;
2599
+ };
2600
+ return {
2601
+ getUrl,
2602
+ httpMethod: "POST",
2603
+ path: "/v2/collections/delete-draft-items-plugin",
2604
+ pathParams: {},
2605
+ __requestType: null,
2606
+ __originalRequestType: null,
2607
+ __responseType: null,
2608
+ __originalResponseType: null
2609
+ };
2610
+ }
1686
2611
  function patchDataCollectionField2() {
1687
2612
  const payload = { dataCollectionId: ":dataCollectionId" };
1688
2613
  const getRequestOptions = patchDataCollectionField(payload);
@@ -1708,6 +2633,8 @@ function patchDataCollectionField2() {
1708
2633
  CollectionTypeOriginal,
1709
2634
  DataOperationOriginal,
1710
2635
  DirectionOriginal,
2636
+ DraftItemsPluginConflictActionOriginal,
2637
+ DraftItemsRemovalActionOriginal,
1711
2638
  FieldPluginTypeOriginal,
1712
2639
  FormatOriginal,
1713
2640
  IndexSourceOriginal,
@@ -1718,6 +2645,7 @@ function patchDataCollectionField2() {
1718
2645
  PagingModeOriginal,
1719
2646
  PermissionOriginal,
1720
2647
  PluginTypeOriginal,
2648
+ PublishPluginConflictActionOriginal,
1721
2649
  QueryOperatorOriginal,
1722
2650
  RoleOriginal,
1723
2651
  SegmentOriginal,
@@ -1726,12 +2654,24 @@ function patchDataCollectionField2() {
1726
2654
  TenantModeOriginal,
1727
2655
  TypeOriginal,
1728
2656
  WebhookIdentityTypeOriginal,
2657
+ addCatalogPlugin,
2658
+ addCmsPlugin,
1729
2659
  addDataCollectionPlugin,
2660
+ addDraftItemsPlugin,
2661
+ addMultilingualPlugin,
2662
+ addPublishPlugin,
2663
+ addUrlizedPlugin,
1730
2664
  createDataCollection,
1731
2665
  createDataCollectionField,
2666
+ deleteCatalogPlugin,
2667
+ deleteCmsPlugin,
1732
2668
  deleteDataCollection,
1733
2669
  deleteDataCollectionField,
1734
2670
  deleteDataCollectionPlugin,
2671
+ deleteDraftItemsPlugin,
2672
+ deleteMultilingualPlugin,
2673
+ deletePublishPlugin,
2674
+ deleteUrlizedPlugin,
1735
2675
  getDataCollection,
1736
2676
  listDataCollections,
1737
2677
  patchDataCollection,