@wix/auto_sdk_table-reservations_experiences 1.0.15 → 1.0.16

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.
@@ -1264,13 +1264,10 @@ async function createExperience2(experience) {
1264
1264
  "experience.configuration.displayInfo.richContent"
1265
1265
  ]),
1266
1266
  [
1267
- {
1268
- transformFn: transformSDKImageToRESTImage,
1269
- paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1270
- },
1271
1267
  {
1272
1268
  transformFn: transformSDKPageURLV2ToRESTPageURLV2,
1273
1269
  paths: [
1270
+ { path: "experience.experiencePageUrl" },
1274
1271
  {
1275
1272
  path: "experience.configuration.reservationForm.privacyPolicy.url"
1276
1273
  },
@@ -1278,6 +1275,10 @@ async function createExperience2(experience) {
1278
1275
  path: "experience.configuration.reservationForm.termsAndConditions.url"
1279
1276
  }
1280
1277
  ]
1278
+ },
1279
+ {
1280
+ transformFn: transformSDKImageToRESTImage,
1281
+ paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1281
1282
  }
1282
1283
  ]
1283
1284
  );
@@ -1288,13 +1289,10 @@ async function createExperience2(experience) {
1288
1289
  sideEffects?.onSuccess?.(result);
1289
1290
  return renameKeysFromRESTResponseToSDKResponse(
1290
1291
  transformPaths2(result.data, [
1291
- {
1292
- transformFn: transformRESTImageToSDKImage,
1293
- paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1294
- },
1295
1292
  {
1296
1293
  transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1297
1294
  paths: [
1295
+ { path: "experience.experiencePageUrl" },
1298
1296
  {
1299
1297
  path: "experience.configuration.reservationForm.privacyPolicy.url"
1300
1298
  },
@@ -1302,6 +1300,10 @@ async function createExperience2(experience) {
1302
1300
  path: "experience.configuration.reservationForm.termsAndConditions.url"
1303
1301
  }
1304
1302
  ]
1303
+ },
1304
+ {
1305
+ transformFn: transformRESTImageToSDKImage,
1306
+ paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1305
1307
  }
1306
1308
  ]),
1307
1309
  ["experience.configuration.displayInfo.richContent"]
@@ -1333,13 +1335,10 @@ async function getExperience2(experienceId) {
1333
1335
  sideEffects?.onSuccess?.(result);
1334
1336
  return renameKeysFromRESTResponseToSDKResponse(
1335
1337
  transformPaths2(result.data, [
1336
- {
1337
- transformFn: transformRESTImageToSDKImage,
1338
- paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1339
- },
1340
1338
  {
1341
1339
  transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1342
1340
  paths: [
1341
+ { path: "experience.experiencePageUrl" },
1343
1342
  {
1344
1343
  path: "experience.configuration.reservationForm.privacyPolicy.url"
1345
1344
  },
@@ -1347,6 +1346,10 @@ async function getExperience2(experienceId) {
1347
1346
  path: "experience.configuration.reservationForm.termsAndConditions.url"
1348
1347
  }
1349
1348
  ]
1349
+ },
1350
+ {
1351
+ transformFn: transformRESTImageToSDKImage,
1352
+ paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1350
1353
  }
1351
1354
  ]),
1352
1355
  ["experience.configuration.displayInfo.richContent"]
@@ -1373,13 +1376,10 @@ async function updateExperience2(_id, experience) {
1373
1376
  ["experience.configuration.displayInfo.richContent"]
1374
1377
  ),
1375
1378
  [
1376
- {
1377
- transformFn: transformSDKImageToRESTImage,
1378
- paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1379
- },
1380
1379
  {
1381
1380
  transformFn: transformSDKPageURLV2ToRESTPageURLV2,
1382
1381
  paths: [
1382
+ { path: "experience.experiencePageUrl" },
1383
1383
  {
1384
1384
  path: "experience.configuration.reservationForm.privacyPolicy.url"
1385
1385
  },
@@ -1387,6 +1387,10 @@ async function updateExperience2(_id, experience) {
1387
1387
  path: "experience.configuration.reservationForm.termsAndConditions.url"
1388
1388
  }
1389
1389
  ]
1390
+ },
1391
+ {
1392
+ transformFn: transformSDKImageToRESTImage,
1393
+ paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1390
1394
  }
1391
1395
  ]
1392
1396
  );
@@ -1397,13 +1401,10 @@ async function updateExperience2(_id, experience) {
1397
1401
  sideEffects?.onSuccess?.(result);
1398
1402
  return renameKeysFromRESTResponseToSDKResponse(
1399
1403
  transformPaths2(result.data, [
1400
- {
1401
- transformFn: transformRESTImageToSDKImage,
1402
- paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1403
- },
1404
1404
  {
1405
1405
  transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1406
1406
  paths: [
1407
+ { path: "experience.experiencePageUrl" },
1407
1408
  {
1408
1409
  path: "experience.configuration.reservationForm.privacyPolicy.url"
1409
1410
  },
@@ -1411,6 +1412,10 @@ async function updateExperience2(_id, experience) {
1411
1412
  path: "experience.configuration.reservationForm.termsAndConditions.url"
1412
1413
  }
1413
1414
  ]
1415
+ },
1416
+ {
1417
+ transformFn: transformRESTImageToSDKImage,
1418
+ paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1414
1419
  }
1415
1420
  ]),
1416
1421
  ["experience.configuration.displayInfo.richContent"]
@@ -1454,15 +1459,10 @@ function queryExperiences2() {
1454
1459
  responseTransformer: ({ data }) => {
1455
1460
  const transformedData = renameKeysFromRESTResponseToSDKResponse(
1456
1461
  transformPaths2(data, [
1457
- {
1458
- transformFn: transformRESTImageToSDKImage,
1459
- paths: [
1460
- { path: "experiences.configuration.displayInfo.coverImage" }
1461
- ]
1462
- },
1463
1462
  {
1464
1463
  transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1465
1464
  paths: [
1465
+ { path: "experiences.experiencePageUrl" },
1466
1466
  {
1467
1467
  path: "experiences.configuration.reservationForm.privacyPolicy.url"
1468
1468
  },
@@ -1470,6 +1470,12 @@ function queryExperiences2() {
1470
1470
  path: "experiences.configuration.reservationForm.termsAndConditions.url"
1471
1471
  }
1472
1472
  ]
1473
+ },
1474
+ {
1475
+ transformFn: transformRESTImageToSDKImage,
1476
+ paths: [
1477
+ { path: "experiences.configuration.displayInfo.coverImage" }
1478
+ ]
1473
1479
  }
1474
1480
  ]),
1475
1481
  ["experiences.configuration.displayInfo.richContent"]
@@ -1501,13 +1507,10 @@ async function typedQueryExperiences(query) {
1501
1507
  sideEffects?.onSuccess?.(result);
1502
1508
  return renameKeysFromRESTResponseToSDKResponse(
1503
1509
  transformPaths2(result.data, [
1504
- {
1505
- transformFn: transformRESTImageToSDKImage,
1506
- paths: [{ path: "experiences.configuration.displayInfo.coverImage" }]
1507
- },
1508
1510
  {
1509
1511
  transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1510
1512
  paths: [
1513
+ { path: "experiences.experiencePageUrl" },
1511
1514
  {
1512
1515
  path: "experiences.configuration.reservationForm.privacyPolicy.url"
1513
1516
  },
@@ -1515,6 +1518,10 @@ async function typedQueryExperiences(query) {
1515
1518
  path: "experiences.configuration.reservationForm.termsAndConditions.url"
1516
1519
  }
1517
1520
  ]
1521
+ },
1522
+ {
1523
+ transformFn: transformRESTImageToSDKImage,
1524
+ paths: [{ path: "experiences.configuration.displayInfo.coverImage" }]
1518
1525
  }
1519
1526
  ]),
1520
1527
  ["experiences.configuration.displayInfo.richContent"]
@@ -1543,13 +1550,10 @@ async function searchExperiences2(search) {
1543
1550
  sideEffects?.onSuccess?.(result);
1544
1551
  return renameKeysFromRESTResponseToSDKResponse(
1545
1552
  transformPaths2(result.data, [
1546
- {
1547
- transformFn: transformRESTImageToSDKImage,
1548
- paths: [{ path: "experiences.configuration.displayInfo.coverImage" }]
1549
- },
1550
1553
  {
1551
1554
  transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1552
1555
  paths: [
1556
+ { path: "experiences.experiencePageUrl" },
1553
1557
  {
1554
1558
  path: "experiences.configuration.reservationForm.privacyPolicy.url"
1555
1559
  },
@@ -1557,6 +1561,10 @@ async function searchExperiences2(search) {
1557
1561
  path: "experiences.configuration.reservationForm.termsAndConditions.url"
1558
1562
  }
1559
1563
  ]
1564
+ },
1565
+ {
1566
+ transformFn: transformRESTImageToSDKImage,
1567
+ paths: [{ path: "experiences.configuration.displayInfo.coverImage" }]
1560
1568
  }
1561
1569
  ]),
1562
1570
  ["experiences.configuration.displayInfo.richContent"]