@salesforce/lds-adapters-industries-scheduler 1.213.0 → 1.213.2

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.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, deepFreeze, typeCheckArrayOfScalars, StoreKeyMap, typeCheckScalars } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckArrayOfScalars, StoreKeyMap, typeCheckScalars } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -48,6 +48,24 @@ const snapshotRefreshOptions = {
48
48
  },
49
49
  }
50
50
  };
51
+ function generateParamConfigMetadata(name, required, coerceFn) {
52
+ return {
53
+ name,
54
+ required,
55
+ coerceFn,
56
+ };
57
+ }
58
+ function buildAdapterValidationConfig(displayName, paramsMeta) {
59
+ const required = paramsMeta.filter(p => p.required).map(p => p.name);
60
+ const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
61
+ return {
62
+ displayName,
63
+ parameters: {
64
+ required,
65
+ optional,
66
+ }
67
+ };
68
+ }
51
69
  const keyPrefix = 'IndustriesScheduler';
52
70
 
53
71
  const { isArray: ArrayIsArray } = Array;
@@ -374,26 +392,8 @@ const ingest$a = function GetEngagementChannelTypeOutputRepresentationIngest(inp
374
392
  }
375
393
  }
376
394
  const key = path.fullPath;
377
- const existingRecord = store.readEntry(key);
378
395
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
379
- let incomingRecord = normalize$a(input, store.readEntry(key), {
380
- fullPath: key,
381
- parent: path.parent,
382
- propertyName: path.propertyName,
383
- ttl: ttlToUse
384
- });
385
- if (existingRecord === undefined || equals$n(existingRecord, incomingRecord) === false) {
386
- luvio.storePublish(key, incomingRecord);
387
- }
388
- if (ttlToUse !== undefined) {
389
- const storeMetadataParams = {
390
- ttl: ttlToUse,
391
- namespace: "IndustriesScheduler",
392
- version: VERSION$n,
393
- representationName: RepresentationType$a,
394
- };
395
- luvio.publishStoreMetadata(key, storeMetadataParams);
396
- }
396
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "IndustriesScheduler", VERSION$n, RepresentationType$a, equals$n);
397
397
  return createLink(key);
398
398
  };
399
399
  function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
@@ -452,13 +452,12 @@ function createResourceRequest$8(config) {
452
452
  };
453
453
  }
454
454
 
455
- const getEngagementChannelTypes_ConfigPropertyNames = {
456
- displayName: 'getEngagementChannelTypes',
457
- parameters: {
458
- required: [],
459
- optional: ['workTypeGroupIds', 'workTypeIds']
460
- }
461
- };
455
+ const adapterName$8 = 'getEngagementChannelTypes';
456
+ const getEngagementChannelTypes_ConfigPropertyMetadata = [
457
+ generateParamConfigMetadata('workTypeGroupIds', false),
458
+ generateParamConfigMetadata('workTypeIds', false),
459
+ ];
460
+ const getEngagementChannelTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getEngagementChannelTypes_ConfigPropertyMetadata);
462
461
  function createResourceParams$8(config) {
463
462
  const resourceParams = {
464
463
  queryParams: {
@@ -525,21 +524,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
525
524
  });
526
525
  }
527
526
  function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
528
- const { luvio, config } = context;
529
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
530
- const dispatchOptions = {
531
- resourceRequestContext: {
532
- requestCorrelator,
533
- luvioRequestMethod: undefined,
534
- },
535
- eventObservers
536
- };
537
- if (networkPriority !== 'normal') {
538
- dispatchOptions.overrides = {
539
- priority: networkPriority
540
- };
541
- }
542
- return buildNetworkSnapshot$8(luvio, config, dispatchOptions);
527
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
543
528
  }
544
529
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
545
530
  const { luvio, config } = context;
@@ -913,26 +898,8 @@ const ingest$9 = function GetNextWaitlistParticipantOutputRepresentationIngest(i
913
898
  }
914
899
  }
915
900
  const key = path.fullPath;
916
- const existingRecord = store.readEntry(key);
917
901
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
918
- let incomingRecord = normalize$9(input, store.readEntry(key), {
919
- fullPath: key,
920
- parent: path.parent,
921
- propertyName: path.propertyName,
922
- ttl: ttlToUse
923
- });
924
- if (existingRecord === undefined || equals$j(existingRecord, incomingRecord) === false) {
925
- luvio.storePublish(key, incomingRecord);
926
- }
927
- if (ttlToUse !== undefined) {
928
- const storeMetadataParams = {
929
- ttl: ttlToUse,
930
- namespace: "IndustriesScheduler",
931
- version: VERSION$j,
932
- representationName: RepresentationType$9,
933
- };
934
- luvio.publishStoreMetadata(key, storeMetadataParams);
935
- }
902
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "IndustriesScheduler", VERSION$j, RepresentationType$9, equals$j);
936
903
  return createLink(key);
937
904
  };
938
905
  function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
@@ -991,13 +958,11 @@ function createResourceRequest$7(config) {
991
958
  };
992
959
  }
993
960
 
994
- const getNextWaitlistParticipant_ConfigPropertyNames = {
995
- displayName: 'getNextWaitlistParticipant',
996
- parameters: {
997
- required: [],
998
- optional: ['userId']
999
- }
1000
- };
961
+ const adapterName$7 = 'getNextWaitlistParticipant';
962
+ const getNextWaitlistParticipant_ConfigPropertyMetadata = [
963
+ generateParamConfigMetadata('userId', false),
964
+ ];
965
+ const getNextWaitlistParticipant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getNextWaitlistParticipant_ConfigPropertyMetadata);
1001
966
  function createResourceParams$7(config) {
1002
967
  const resourceParams = {
1003
968
  queryParams: {
@@ -1063,21 +1028,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
1063
1028
  });
1064
1029
  }
1065
1030
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
1066
- const { luvio, config } = context;
1067
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1068
- const dispatchOptions = {
1069
- resourceRequestContext: {
1070
- requestCorrelator,
1071
- luvioRequestMethod: undefined,
1072
- },
1073
- eventObservers
1074
- };
1075
- if (networkPriority !== 'normal') {
1076
- dispatchOptions.overrides = {
1077
- priority: networkPriority
1078
- };
1079
- }
1080
- return buildNetworkSnapshot$7(luvio, config, dispatchOptions);
1031
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
1081
1032
  }
1082
1033
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
1083
1034
  const { luvio, config } = context;
@@ -1280,26 +1231,8 @@ const ingest$8 = function ParticipantRecentInteractionsOutputRepresentationInges
1280
1231
  }
1281
1232
  }
1282
1233
  const key = path.fullPath;
1283
- const existingRecord = store.readEntry(key);
1284
1234
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1285
- let incomingRecord = normalize$8(input, store.readEntry(key), {
1286
- fullPath: key,
1287
- parent: path.parent,
1288
- propertyName: path.propertyName,
1289
- ttl: ttlToUse
1290
- });
1291
- if (existingRecord === undefined || equals$g(existingRecord, incomingRecord) === false) {
1292
- luvio.storePublish(key, incomingRecord);
1293
- }
1294
- if (ttlToUse !== undefined) {
1295
- const storeMetadataParams = {
1296
- ttl: ttlToUse,
1297
- namespace: "IndustriesScheduler",
1298
- version: VERSION$g,
1299
- representationName: RepresentationType$8,
1300
- };
1301
- luvio.publishStoreMetadata(key, storeMetadataParams);
1302
- }
1235
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "IndustriesScheduler", VERSION$g, RepresentationType$8, equals$g);
1303
1236
  return createLink(key);
1304
1237
  };
1305
1238
  function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
@@ -1358,13 +1291,13 @@ function createResourceRequest$6(config) {
1358
1291
  };
1359
1292
  }
1360
1293
 
1361
- const getParticipantRecentInteractions_ConfigPropertyNames = {
1362
- displayName: 'getParticipantRecentInteractions',
1363
- parameters: {
1364
- required: [],
1365
- optional: ['filterByResourceIds', 'participantId', 'territoryId']
1366
- }
1367
- };
1294
+ const adapterName$6 = 'getParticipantRecentInteractions';
1295
+ const getParticipantRecentInteractions_ConfigPropertyMetadata = [
1296
+ generateParamConfigMetadata('filterByResourceIds', false),
1297
+ generateParamConfigMetadata('participantId', false),
1298
+ generateParamConfigMetadata('territoryId', false),
1299
+ ];
1300
+ const getParticipantRecentInteractions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getParticipantRecentInteractions_ConfigPropertyMetadata);
1368
1301
  function createResourceParams$6(config) {
1369
1302
  const resourceParams = {
1370
1303
  queryParams: {
@@ -1434,21 +1367,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
1434
1367
  });
1435
1368
  }
1436
1369
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
1437
- const { luvio, config } = context;
1438
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1439
- const dispatchOptions = {
1440
- resourceRequestContext: {
1441
- requestCorrelator,
1442
- luvioRequestMethod: undefined,
1443
- },
1444
- eventObservers
1445
- };
1446
- if (networkPriority !== 'normal') {
1447
- dispatchOptions.overrides = {
1448
- priority: networkPriority
1449
- };
1450
- }
1451
- return buildNetworkSnapshot$6(luvio, config, dispatchOptions);
1370
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
1452
1371
  }
1453
1372
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1454
1373
  const { luvio, config } = context;
@@ -1628,26 +1547,8 @@ const ingest$7 = function ServiceAppointmentResultIngest(input, path, luvio, sto
1628
1547
  }
1629
1548
  }
1630
1549
  const key = keyBuilderFromType$5(luvio, input);
1631
- const existingRecord = store.readEntry(key);
1632
1550
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1633
- let incomingRecord = normalize$7(input, store.readEntry(key), {
1634
- fullPath: key,
1635
- parent: path.parent,
1636
- propertyName: path.propertyName,
1637
- ttl: ttlToUse
1638
- });
1639
- if (existingRecord === undefined || equals$f(existingRecord, incomingRecord) === false) {
1640
- luvio.storePublish(key, incomingRecord);
1641
- }
1642
- if (ttlToUse !== undefined) {
1643
- const storeMetadataParams = {
1644
- ttl: ttlToUse,
1645
- namespace: "IndustriesScheduler",
1646
- version: VERSION$f,
1647
- representationName: RepresentationType$7,
1648
- };
1649
- luvio.publishStoreMetadata(key, storeMetadataParams);
1650
- }
1551
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "IndustriesScheduler", VERSION$f, RepresentationType$7, equals$f);
1651
1552
  return createLink(key);
1652
1553
  };
1653
1554
  function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
@@ -1696,7 +1597,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
1696
1597
  existing: existing,
1697
1598
  },
1698
1599
  ttl: path.ttl
1699
- }, luvio, store);
1600
+ }, luvio, store, timestamp);
1700
1601
  return input;
1701
1602
  }
1702
1603
  const select$k = function ServiceAppointmentOutputRepresentationSelect() {
@@ -1729,26 +1630,8 @@ const ingest$6 = function ServiceAppointmentOutputRepresentationIngest(input, pa
1729
1630
  }
1730
1631
  }
1731
1632
  const key = keyBuilderFromType$4(luvio, input);
1732
- const existingRecord = store.readEntry(key);
1733
1633
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1734
- let incomingRecord = normalize$6(input, store.readEntry(key), {
1735
- fullPath: key,
1736
- parent: path.parent,
1737
- propertyName: path.propertyName,
1738
- ttl: ttlToUse
1739
- }, luvio, store);
1740
- if (existingRecord === undefined || equals$e(existingRecord, incomingRecord) === false) {
1741
- luvio.storePublish(key, incomingRecord);
1742
- }
1743
- if (ttlToUse !== undefined) {
1744
- const storeMetadataParams = {
1745
- ttl: ttlToUse,
1746
- namespace: "IndustriesScheduler",
1747
- version: VERSION$e,
1748
- representationName: RepresentationType$6,
1749
- };
1750
- luvio.publishStoreMetadata(key, storeMetadataParams);
1751
- }
1634
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "IndustriesScheduler", VERSION$e, RepresentationType$6, equals$e);
1752
1635
  return createLink(key);
1753
1636
  };
1754
1637
  function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
@@ -1799,13 +1682,11 @@ function createResourceRequest$5(config) {
1799
1682
  };
1800
1683
  }
1801
1684
 
1802
- const updateServiceAppointment_ConfigPropertyNames = {
1803
- displayName: 'updateServiceAppointment',
1804
- parameters: {
1805
- required: ['updateServiceAppointmentInput'],
1806
- optional: []
1807
- }
1808
- };
1685
+ const adapterName$5 = 'updateServiceAppointment';
1686
+ const updateServiceAppointment_ConfigPropertyMetadata = [
1687
+ generateParamConfigMetadata('updateServiceAppointmentInput', true),
1688
+ ];
1689
+ const updateServiceAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateServiceAppointment_ConfigPropertyMetadata);
1809
1690
  function createResourceParams$5(config) {
1810
1691
  const resourceParams = {
1811
1692
  body: {
@@ -1953,13 +1834,11 @@ function createResourceRequest$4(config) {
1953
1834
  };
1954
1835
  }
1955
1836
 
1956
- const createServiceAppointment_ConfigPropertyNames = {
1957
- displayName: 'createServiceAppointment',
1958
- parameters: {
1959
- required: ['createServiceAppointmentInput'],
1960
- optional: []
1961
- }
1962
- };
1837
+ const adapterName$4 = 'createServiceAppointment';
1838
+ const createServiceAppointment_ConfigPropertyMetadata = [
1839
+ generateParamConfigMetadata('createServiceAppointmentInput', true),
1840
+ ];
1841
+ const createServiceAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createServiceAppointment_ConfigPropertyMetadata);
1963
1842
  function createResourceParams$4(config) {
1964
1843
  const resourceParams = {
1965
1844
  body: {
@@ -2144,26 +2023,8 @@ const ingest$5 = function WaitlistAppointmentResultIngest(input, path, luvio, st
2144
2023
  }
2145
2024
  }
2146
2025
  const key = keyBuilderFromType$3(luvio, input);
2147
- const existingRecord = store.readEntry(key);
2148
2026
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
2149
- let incomingRecord = normalize$5(input, store.readEntry(key), {
2150
- fullPath: key,
2151
- parent: path.parent,
2152
- propertyName: path.propertyName,
2153
- ttl: ttlToUse
2154
- });
2155
- if (existingRecord === undefined || equals$d(existingRecord, incomingRecord) === false) {
2156
- luvio.storePublish(key, incomingRecord);
2157
- }
2158
- if (ttlToUse !== undefined) {
2159
- const storeMetadataParams = {
2160
- ttl: ttlToUse,
2161
- namespace: "IndustriesScheduler",
2162
- version: VERSION$d,
2163
- representationName: RepresentationType$5,
2164
- };
2165
- luvio.publishStoreMetadata(key, storeMetadataParams);
2166
- }
2027
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "IndustriesScheduler", VERSION$d, RepresentationType$5, equals$d);
2167
2028
  return createLink(key);
2168
2029
  };
2169
2030
  function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
@@ -2212,7 +2073,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
2212
2073
  existing: existing,
2213
2074
  },
2214
2075
  ttl: path.ttl
2215
- }, luvio, store);
2076
+ }, luvio, store, timestamp);
2216
2077
  return input;
2217
2078
  }
2218
2079
  const select$g = function WaitlistAppointmentOutputRepresentationSelect() {
@@ -2245,26 +2106,8 @@ const ingest$4 = function WaitlistAppointmentOutputRepresentationIngest(input, p
2245
2106
  }
2246
2107
  }
2247
2108
  const key = keyBuilderFromType$2(luvio, input);
2248
- const existingRecord = store.readEntry(key);
2249
2109
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
2250
- let incomingRecord = normalize$4(input, store.readEntry(key), {
2251
- fullPath: key,
2252
- parent: path.parent,
2253
- propertyName: path.propertyName,
2254
- ttl: ttlToUse
2255
- }, luvio, store);
2256
- if (existingRecord === undefined || equals$c(existingRecord, incomingRecord) === false) {
2257
- luvio.storePublish(key, incomingRecord);
2258
- }
2259
- if (ttlToUse !== undefined) {
2260
- const storeMetadataParams = {
2261
- ttl: ttlToUse,
2262
- namespace: "IndustriesScheduler",
2263
- version: VERSION$c,
2264
- representationName: RepresentationType$4,
2265
- };
2266
- luvio.publishStoreMetadata(key, storeMetadataParams);
2267
- }
2110
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "IndustriesScheduler", VERSION$c, RepresentationType$4, equals$c);
2268
2111
  return createLink(key);
2269
2112
  };
2270
2113
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -2315,13 +2158,11 @@ function createResourceRequest$3(config) {
2315
2158
  };
2316
2159
  }
2317
2160
 
2318
- const createWaitlistAppointment_ConfigPropertyNames = {
2319
- displayName: 'createWaitlistAppointment',
2320
- parameters: {
2321
- required: ['waitlistAppointmentInput'],
2322
- optional: []
2323
- }
2324
- };
2161
+ const adapterName$3 = 'createWaitlistAppointment';
2162
+ const createWaitlistAppointment_ConfigPropertyMetadata = [
2163
+ generateParamConfigMetadata('waitlistAppointmentInput', true),
2164
+ ];
2165
+ const createWaitlistAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createWaitlistAppointment_ConfigPropertyMetadata);
2325
2166
  function createResourceParams$3(config) {
2326
2167
  const resourceParams = {
2327
2168
  body: {
@@ -2557,26 +2398,8 @@ const ingest$3 = function WaitlistCheckInResultIngest(input, path, luvio, store,
2557
2398
  }
2558
2399
  }
2559
2400
  const key = keyBuilderFromType$1(luvio, input);
2560
- const existingRecord = store.readEntry(key);
2561
2401
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
2562
- let incomingRecord = normalize$3(input, store.readEntry(key), {
2563
- fullPath: key,
2564
- parent: path.parent,
2565
- propertyName: path.propertyName,
2566
- ttl: ttlToUse
2567
- });
2568
- if (existingRecord === undefined || equals$b(existingRecord, incomingRecord) === false) {
2569
- luvio.storePublish(key, incomingRecord);
2570
- }
2571
- if (ttlToUse !== undefined) {
2572
- const storeMetadataParams = {
2573
- ttl: ttlToUse,
2574
- namespace: "IndustriesScheduler",
2575
- version: VERSION$b,
2576
- representationName: RepresentationType$3,
2577
- };
2578
- luvio.publishStoreMetadata(key, storeMetadataParams);
2579
- }
2402
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "IndustriesScheduler", VERSION$b, RepresentationType$3, equals$b);
2580
2403
  return createLink(key);
2581
2404
  };
2582
2405
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -2625,7 +2448,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
2625
2448
  existing: existing,
2626
2449
  },
2627
2450
  ttl: path.ttl
2628
- }, luvio, store);
2451
+ }, luvio, store, timestamp);
2629
2452
  return input;
2630
2453
  }
2631
2454
  const select$d = function WaitlistCheckInOutputRepresentationSelect() {
@@ -2658,26 +2481,8 @@ const ingest$2 = function WaitlistCheckInOutputRepresentationIngest(input, path,
2658
2481
  }
2659
2482
  }
2660
2483
  const key = keyBuilderFromType(luvio, input);
2661
- const existingRecord = store.readEntry(key);
2662
2484
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
2663
- let incomingRecord = normalize$2(input, store.readEntry(key), {
2664
- fullPath: key,
2665
- parent: path.parent,
2666
- propertyName: path.propertyName,
2667
- ttl: ttlToUse
2668
- }, luvio, store);
2669
- if (existingRecord === undefined || equals$a(existingRecord, incomingRecord) === false) {
2670
- luvio.storePublish(key, incomingRecord);
2671
- }
2672
- if (ttlToUse !== undefined) {
2673
- const storeMetadataParams = {
2674
- ttl: ttlToUse,
2675
- namespace: "IndustriesScheduler",
2676
- version: VERSION$a,
2677
- representationName: RepresentationType$2,
2678
- };
2679
- luvio.publishStoreMetadata(key, storeMetadataParams);
2680
- }
2485
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "IndustriesScheduler", VERSION$a, RepresentationType$2, equals$a);
2681
2486
  return createLink(key);
2682
2487
  };
2683
2488
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -2728,13 +2533,11 @@ function createResourceRequest$2(config) {
2728
2533
  };
2729
2534
  }
2730
2535
 
2731
- const createWaitlistCheckIn_ConfigPropertyNames = {
2732
- displayName: 'createWaitlistCheckIn',
2733
- parameters: {
2734
- required: ['waitlistCheckInInput'],
2735
- optional: []
2736
- }
2737
- };
2536
+ const adapterName$2 = 'createWaitlistCheckIn';
2537
+ const createWaitlistCheckIn_ConfigPropertyMetadata = [
2538
+ generateParamConfigMetadata('waitlistCheckInInput', true),
2539
+ ];
2540
+ const createWaitlistCheckIn_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createWaitlistCheckIn_ConfigPropertyMetadata);
2738
2541
  function createResourceParams$2(config) {
2739
2542
  const resourceParams = {
2740
2543
  body: {
@@ -3850,26 +3653,8 @@ const ingest$1 = function WaitlistRelationshipsOutputRepresentationIngest(input,
3850
3653
  }
3851
3654
  }
3852
3655
  const key = path.fullPath;
3853
- const existingRecord = store.readEntry(key);
3854
3656
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
3855
- let incomingRecord = normalize$1(input, store.readEntry(key), {
3856
- fullPath: key,
3857
- parent: path.parent,
3858
- propertyName: path.propertyName,
3859
- ttl: ttlToUse
3860
- });
3861
- if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
3862
- luvio.storePublish(key, incomingRecord);
3863
- }
3864
- if (ttlToUse !== undefined) {
3865
- const storeMetadataParams = {
3866
- ttl: ttlToUse,
3867
- namespace: "IndustriesScheduler",
3868
- version: VERSION$2,
3869
- representationName: RepresentationType$1,
3870
- };
3871
- luvio.publishStoreMetadata(key, storeMetadataParams);
3872
- }
3657
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "IndustriesScheduler", VERSION$2, RepresentationType$1, equals$2);
3873
3658
  return createLink(key);
3874
3659
  };
3875
3660
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -3928,13 +3713,13 @@ function createResourceRequest$1(config) {
3928
3713
  };
3929
3714
  }
3930
3715
 
3931
- const getWaitlistRelationships_ConfigPropertyNames = {
3932
- displayName: 'getWaitlistRelationships',
3933
- parameters: {
3934
- required: [],
3935
- optional: ['serviceTerritoryId', 'waitlistIds', 'workTypeIds']
3936
- }
3937
- };
3716
+ const adapterName$1 = 'getWaitlistRelationships';
3717
+ const getWaitlistRelationships_ConfigPropertyMetadata = [
3718
+ generateParamConfigMetadata('serviceTerritoryId', false),
3719
+ generateParamConfigMetadata('waitlistIds', false),
3720
+ generateParamConfigMetadata('workTypeIds', false),
3721
+ ];
3722
+ const getWaitlistRelationships_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getWaitlistRelationships_ConfigPropertyMetadata);
3938
3723
  function createResourceParams$1(config) {
3939
3724
  const resourceParams = {
3940
3725
  queryParams: {
@@ -4004,21 +3789,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
4004
3789
  });
4005
3790
  }
4006
3791
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
4007
- const { luvio, config } = context;
4008
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
4009
- const dispatchOptions = {
4010
- resourceRequestContext: {
4011
- requestCorrelator,
4012
- luvioRequestMethod: undefined,
4013
- },
4014
- eventObservers
4015
- };
4016
- if (networkPriority !== 'normal') {
4017
- dispatchOptions.overrides = {
4018
- priority: networkPriority
4019
- };
4020
- }
4021
- return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
3792
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4022
3793
  }
4023
3794
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
4024
3795
  const { luvio, config } = context;
@@ -4149,26 +3920,8 @@ const ingest = function WaitlistOutputRepresentationIngest(input, path, luvio, s
4149
3920
  }
4150
3921
  }
4151
3922
  const key = path.fullPath;
4152
- const existingRecord = store.readEntry(key);
4153
3923
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
4154
- let incomingRecord = normalize(input, store.readEntry(key), {
4155
- fullPath: key,
4156
- parent: path.parent,
4157
- propertyName: path.propertyName,
4158
- ttl: ttlToUse
4159
- });
4160
- if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
4161
- luvio.storePublish(key, incomingRecord);
4162
- }
4163
- if (ttlToUse !== undefined) {
4164
- const storeMetadataParams = {
4165
- ttl: ttlToUse,
4166
- namespace: "IndustriesScheduler",
4167
- version: VERSION,
4168
- representationName: RepresentationType,
4169
- };
4170
- luvio.publishStoreMetadata(key, storeMetadataParams);
4171
- }
3924
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "IndustriesScheduler", VERSION, RepresentationType, equals);
4172
3925
  return createLink(key);
4173
3926
  };
4174
3927
  function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
@@ -4227,13 +3980,17 @@ function createResourceRequest(config) {
4227
3980
  };
4228
3981
  }
4229
3982
 
4230
- const getWaitlists_ConfigPropertyNames = {
4231
- displayName: 'getWaitlists',
4232
- parameters: {
4233
- required: [],
4234
- optional: ['isActive', 'maxLimit', 'offset', 'participantFields', 'requestId', 'serviceTerritoryId', 'waitlistIds']
4235
- }
4236
- };
3983
+ const adapterName = 'getWaitlists';
3984
+ const getWaitlists_ConfigPropertyMetadata = [
3985
+ generateParamConfigMetadata('isActive', false),
3986
+ generateParamConfigMetadata('maxLimit', false),
3987
+ generateParamConfigMetadata('offset', false),
3988
+ generateParamConfigMetadata('participantFields', false),
3989
+ generateParamConfigMetadata('requestId', false),
3990
+ generateParamConfigMetadata('serviceTerritoryId', false),
3991
+ generateParamConfigMetadata('waitlistIds', false),
3992
+ ];
3993
+ const getWaitlists_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getWaitlists_ConfigPropertyMetadata);
4237
3994
  function createResourceParams(config) {
4238
3995
  const resourceParams = {
4239
3996
  queryParams: {
@@ -4307,21 +4064,7 @@ function buildNetworkSnapshot(luvio, config, options) {
4307
4064
  });
4308
4065
  }
4309
4066
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
4310
- const { luvio, config } = context;
4311
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
4312
- const dispatchOptions = {
4313
- resourceRequestContext: {
4314
- requestCorrelator,
4315
- luvioRequestMethod: undefined,
4316
- },
4317
- eventObservers
4318
- };
4319
- if (networkPriority !== 'normal') {
4320
- dispatchOptions.overrides = {
4321
- priority: networkPriority
4322
- };
4323
- }
4324
- return buildNetworkSnapshot(luvio, config, dispatchOptions);
4067
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4325
4068
  }
4326
4069
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
4327
4070
  const { luvio, config } = context;
@@ -1,4 +1,4 @@
1
- import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
1
+ import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
2
2
  export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
3
  declare const ObjectKeys: {
4
4
  (o: object): string[];
@@ -57,4 +57,6 @@ export declare const snapshotRefreshOptions: {
57
57
  export declare function stableJSONStringify(node: any): string | undefined;
58
58
  export declare function getFetchResponseStatusText(status: number): string;
59
59
  export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
60
+ export declare function generateParamConfigMetadata(name: string, required: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
61
+ export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
60
62
  export declare const keyPrefix = "IndustriesScheduler";