@salesforce/lds-adapters-platform-admin-success-guidance 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, typeCheckScalars, StoreKeyMap } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6, typeCheckScalars, StoreKeyMap } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = 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 = 'LEAP';
52
70
 
53
71
  const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
@@ -528,26 +546,8 @@ const ingest$8 = function LightningAssistantQuestionnaireRepresentationIngest(in
528
546
  }
529
547
  }
530
548
  const key = keyBuilderFromType$7(luvio, input);
531
- const existingRecord = store.readEntry(key);
532
549
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
533
- let incomingRecord = normalize$8(input, store.readEntry(key), {
534
- fullPath: key,
535
- parent: path.parent,
536
- propertyName: path.propertyName,
537
- ttl: ttlToUse
538
- });
539
- if (existingRecord === undefined || equals$b(existingRecord, incomingRecord) === false) {
540
- luvio.storePublish(key, incomingRecord);
541
- }
542
- if (ttlToUse !== undefined) {
543
- const storeMetadataParams = {
544
- ttl: ttlToUse,
545
- namespace: "LEAP",
546
- version: VERSION$i,
547
- representationName: RepresentationType$8,
548
- };
549
- luvio.publishStoreMetadata(key, storeMetadataParams);
550
- }
550
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "LEAP", VERSION$i, RepresentationType$8, equals$b);
551
551
  return createLink(key);
552
552
  };
553
553
  function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
@@ -608,13 +608,11 @@ function createResourceRequest$a(config) {
608
608
  };
609
609
  }
610
610
 
611
- const getQuestionnaire_ConfigPropertyNames = {
612
- displayName: 'getQuestionnaire',
613
- parameters: {
614
- required: ['questionnaireName'],
615
- optional: []
616
- }
617
- };
611
+ const adapterName$a = 'getQuestionnaire';
612
+ const getQuestionnaire_ConfigPropertyMetadata = [
613
+ generateParamConfigMetadata('questionnaireName', true),
614
+ ];
615
+ const getQuestionnaire_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getQuestionnaire_ConfigPropertyMetadata);
618
616
  function createResourceParams$a(config) {
619
617
  const resourceParams = {
620
618
  urlParams: {
@@ -680,21 +678,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
680
678
  });
681
679
  }
682
680
  function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
683
- const { luvio, config } = context;
684
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
685
- const dispatchOptions = {
686
- resourceRequestContext: {
687
- requestCorrelator,
688
- luvioRequestMethod: undefined,
689
- },
690
- eventObservers
691
- };
692
- if (networkPriority !== 'normal') {
693
- dispatchOptions.overrides = {
694
- priority: networkPriority
695
- };
696
- }
697
- return buildNetworkSnapshot$a(luvio, config, dispatchOptions);
681
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
698
682
  }
699
683
  function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
700
684
  const { luvio, config } = context;
@@ -784,13 +768,12 @@ function createResourceRequest$9(config) {
784
768
  };
785
769
  }
786
770
 
787
- const saveQuestionnaire_ConfigPropertyNames = {
788
- displayName: 'saveQuestionnaire',
789
- parameters: {
790
- required: ['questionnaireName', 'questionnaireData'],
791
- optional: []
792
- }
793
- };
771
+ const adapterName$9 = 'saveQuestionnaire';
772
+ const saveQuestionnaire_ConfigPropertyMetadata = [
773
+ generateParamConfigMetadata('questionnaireName', true),
774
+ generateParamConfigMetadata('questionnaireData', true),
775
+ ];
776
+ const saveQuestionnaire_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, saveQuestionnaire_ConfigPropertyMetadata);
794
777
  function createResourceParams$9(config) {
795
778
  const resourceParams = {
796
779
  urlParams: {
@@ -1356,26 +1339,8 @@ const ingest$7 = function LightningAssistantStepRepresentationIngest(input, path
1356
1339
  }
1357
1340
  }
1358
1341
  const key = keyBuilderFromType$6(luvio, input);
1359
- const existingRecord = store.readEntry(key);
1360
1342
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
1361
- let incomingRecord = normalize$7(input, store.readEntry(key), {
1362
- fullPath: key,
1363
- parent: path.parent,
1364
- propertyName: path.propertyName,
1365
- ttl: ttlToUse
1366
- });
1367
- if (existingRecord === undefined || equals$9(existingRecord, incomingRecord) === false) {
1368
- luvio.storePublish(key, incomingRecord);
1369
- }
1370
- if (ttlToUse !== undefined) {
1371
- const storeMetadataParams = {
1372
- ttl: ttlToUse,
1373
- namespace: "LEAP",
1374
- version: VERSION$9,
1375
- representationName: RepresentationType$7,
1376
- };
1377
- luvio.publishStoreMetadata(key, storeMetadataParams);
1378
- }
1343
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "LEAP", VERSION$9, RepresentationType$7, equals$9);
1379
1344
  return createLink(key);
1380
1345
  };
1381
1346
  function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
@@ -1425,13 +1390,11 @@ function createResourceRequest$8(config) {
1425
1390
  };
1426
1391
  }
1427
1392
 
1428
- const evaluateStep_ConfigPropertyNames = {
1429
- displayName: 'evaluateStep',
1430
- parameters: {
1431
- required: ['stepName'],
1432
- optional: []
1433
- }
1434
- };
1393
+ const adapterName$8 = 'evaluateStep';
1394
+ const evaluateStep_ConfigPropertyMetadata = [
1395
+ generateParamConfigMetadata('stepName', true),
1396
+ ];
1397
+ const evaluateStep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, evaluateStep_ConfigPropertyMetadata);
1435
1398
  function createResourceParams$8(config) {
1436
1399
  const resourceParams = {
1437
1400
  urlParams: {
@@ -1645,7 +1608,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
1645
1608
  existing: existing,
1646
1609
  },
1647
1610
  ttl: path.ttl
1648
- }, luvio, store);
1611
+ }, luvio, store, timestamp);
1649
1612
  }
1650
1613
  return input;
1651
1614
  }
@@ -1751,26 +1714,8 @@ const ingest$6 = function LightningAssistantLayoutNodeRepresentationIngest(input
1751
1714
  }
1752
1715
  }
1753
1716
  const key = path.fullPath;
1754
- const existingRecord = store.readEntry(key);
1755
1717
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
1756
- let incomingRecord = normalize$6(input, store.readEntry(key), {
1757
- fullPath: key,
1758
- parent: path.parent,
1759
- propertyName: path.propertyName,
1760
- ttl: ttlToUse
1761
- }, luvio, store);
1762
- if (existingRecord === undefined || equals$8(existingRecord, incomingRecord) === false) {
1763
- luvio.storePublish(key, incomingRecord);
1764
- }
1765
- if (ttlToUse !== undefined) {
1766
- const storeMetadataParams = {
1767
- ttl: ttlToUse,
1768
- namespace: "LEAP",
1769
- version: VERSION$8,
1770
- representationName: RepresentationType$6,
1771
- };
1772
- luvio.publishStoreMetadata(key, storeMetadataParams);
1773
- }
1718
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "LEAP", VERSION$8, RepresentationType$6, equals$8);
1774
1719
  return createLink(key);
1775
1720
  };
1776
1721
  function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
@@ -1920,7 +1865,7 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
1920
1865
  existing: existing,
1921
1866
  },
1922
1867
  ttl: path.ttl
1923
- }, luvio, store);
1868
+ }, luvio, store, timestamp);
1924
1869
  return input;
1925
1870
  }
1926
1871
  const select$f = function LightningAssistantRepresentationSelect() {
@@ -2157,26 +2102,8 @@ const ingest$5 = function LightningAssistantRepresentationIngest(input, path, lu
2157
2102
  }
2158
2103
  }
2159
2104
  const key = keyBuilderFromType$5(luvio, input);
2160
- const existingRecord = store.readEntry(key);
2161
2105
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
2162
- let incomingRecord = normalize$5(input, store.readEntry(key), {
2163
- fullPath: key,
2164
- parent: path.parent,
2165
- propertyName: path.propertyName,
2166
- ttl: ttlToUse
2167
- }, luvio, store);
2168
- if (existingRecord === undefined || equals$7(existingRecord, incomingRecord) === false) {
2169
- luvio.storePublish(key, incomingRecord);
2170
- }
2171
- if (ttlToUse !== undefined) {
2172
- const storeMetadataParams = {
2173
- ttl: ttlToUse,
2174
- namespace: "LEAP",
2175
- version: VERSION$7,
2176
- representationName: RepresentationType$5,
2177
- };
2178
- luvio.publishStoreMetadata(key, storeMetadataParams);
2179
- }
2106
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "LEAP", VERSION$7, RepresentationType$5, equals$7);
2180
2107
  return createLink(key);
2181
2108
  };
2182
2109
  function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
@@ -2238,13 +2165,11 @@ function createResourceRequest$7(config) {
2238
2165
  };
2239
2166
  }
2240
2167
 
2241
- const getAssistant_ConfigPropertyNames = {
2242
- displayName: 'getAssistant',
2243
- parameters: {
2244
- required: ['assistantName'],
2245
- optional: []
2246
- }
2247
- };
2168
+ const adapterName$7 = 'getAssistant';
2169
+ const getAssistant_ConfigPropertyMetadata = [
2170
+ generateParamConfigMetadata('assistantName', true),
2171
+ ];
2172
+ const getAssistant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getAssistant_ConfigPropertyMetadata);
2248
2173
  function createResourceParams$7(config) {
2249
2174
  const resourceParams = {
2250
2175
  urlParams: {
@@ -2310,21 +2235,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
2310
2235
  });
2311
2236
  }
2312
2237
  function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2313
- const { luvio, config } = context;
2314
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
2315
- const dispatchOptions = {
2316
- resourceRequestContext: {
2317
- requestCorrelator,
2318
- luvioRequestMethod: undefined,
2319
- },
2320
- eventObservers
2321
- };
2322
- if (networkPriority !== 'normal') {
2323
- dispatchOptions.overrides = {
2324
- priority: networkPriority
2325
- };
2326
- }
2327
- return buildNetworkSnapshot$7(luvio, config, dispatchOptions);
2238
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
2328
2239
  }
2329
2240
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2330
2241
  const { luvio, config } = context;
@@ -2409,13 +2320,12 @@ function createResourceRequest$6(config) {
2409
2320
  };
2410
2321
  }
2411
2322
 
2412
- const saveAssistant_ConfigPropertyNames = {
2413
- displayName: 'saveAssistant',
2414
- parameters: {
2415
- required: ['assistantName', 'assistantData'],
2416
- optional: []
2417
- }
2418
- };
2323
+ const adapterName$6 = 'saveAssistant';
2324
+ const saveAssistant_ConfigPropertyMetadata = [
2325
+ generateParamConfigMetadata('assistantName', true),
2326
+ generateParamConfigMetadata('assistantData', true),
2327
+ ];
2328
+ const saveAssistant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, saveAssistant_ConfigPropertyMetadata);
2419
2329
  function createResourceParams$6(config) {
2420
2330
  const resourceParams = {
2421
2331
  urlParams: {
@@ -2564,26 +2474,8 @@ const ingest$4 = function LightningAssistantQuestionnaireListRepresentationInges
2564
2474
  }
2565
2475
  }
2566
2476
  const key = keyBuilderFromType$4(luvio, input);
2567
- const existingRecord = store.readEntry(key);
2568
2477
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
2569
- let incomingRecord = normalize$4(input, store.readEntry(key), {
2570
- fullPath: key,
2571
- parent: path.parent,
2572
- propertyName: path.propertyName,
2573
- ttl: ttlToUse
2574
- });
2575
- if (existingRecord === undefined || equals$6(existingRecord, incomingRecord) === false) {
2576
- luvio.storePublish(key, incomingRecord);
2577
- }
2578
- if (ttlToUse !== undefined) {
2579
- const storeMetadataParams = {
2580
- ttl: ttlToUse,
2581
- namespace: "LEAP",
2582
- version: VERSION$6,
2583
- representationName: RepresentationType$4,
2584
- };
2585
- luvio.publishStoreMetadata(key, storeMetadataParams);
2586
- }
2478
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "LEAP", VERSION$6, RepresentationType$4, equals$6);
2587
2479
  return createLink(key);
2588
2480
  };
2589
2481
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -2644,13 +2536,11 @@ function createResourceRequest$5(config) {
2644
2536
  };
2645
2537
  }
2646
2538
 
2647
- const getQuestionnaires_ConfigPropertyNames = {
2648
- displayName: 'getQuestionnaires',
2649
- parameters: {
2650
- required: ['assistantName'],
2651
- optional: []
2652
- }
2653
- };
2539
+ const adapterName$5 = 'getQuestionnaires';
2540
+ const getQuestionnaires_ConfigPropertyMetadata = [
2541
+ generateParamConfigMetadata('assistantName', true),
2542
+ ];
2543
+ const getQuestionnaires_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getQuestionnaires_ConfigPropertyMetadata);
2654
2544
  function createResourceParams$5(config) {
2655
2545
  const resourceParams = {
2656
2546
  urlParams: {
@@ -2716,21 +2606,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
2716
2606
  });
2717
2607
  }
2718
2608
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2719
- const { luvio, config } = context;
2720
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
2721
- const dispatchOptions = {
2722
- resourceRequestContext: {
2723
- requestCorrelator,
2724
- luvioRequestMethod: undefined,
2725
- },
2726
- eventObservers
2727
- };
2728
- if (networkPriority !== 'normal') {
2729
- dispatchOptions.overrides = {
2730
- priority: networkPriority
2731
- };
2732
- }
2733
- return buildNetworkSnapshot$5(luvio, config, dispatchOptions);
2609
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2734
2610
  }
2735
2611
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2736
2612
  const { luvio, config } = context;
@@ -2907,26 +2783,8 @@ const ingest$3 = function LightningAssistantTargetRepresentationIngest(input, pa
2907
2783
  }
2908
2784
  }
2909
2785
  const key = keyBuilderFromType$3(luvio, input);
2910
- const existingRecord = store.readEntry(key);
2911
2786
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
2912
- let incomingRecord = normalize$3(input, store.readEntry(key), {
2913
- fullPath: key,
2914
- parent: path.parent,
2915
- propertyName: path.propertyName,
2916
- ttl: ttlToUse
2917
- });
2918
- if (existingRecord === undefined || equals$4(existingRecord, incomingRecord) === false) {
2919
- luvio.storePublish(key, incomingRecord);
2920
- }
2921
- if (ttlToUse !== undefined) {
2922
- const storeMetadataParams = {
2923
- ttl: ttlToUse,
2924
- namespace: "LEAP",
2925
- version: VERSION$4,
2926
- representationName: RepresentationType$3,
2927
- };
2928
- luvio.publishStoreMetadata(key, storeMetadataParams);
2929
- }
2787
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "LEAP", VERSION$4, RepresentationType$3, equals$4);
2930
2788
  return createLink(key);
2931
2789
  };
2932
2790
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -2987,13 +2845,11 @@ function createResourceRequest$4(config) {
2987
2845
  };
2988
2846
  }
2989
2847
 
2990
- const getAssistantTarget_ConfigPropertyNames = {
2991
- displayName: 'getAssistantTarget',
2992
- parameters: {
2993
- required: ['assistantTarget'],
2994
- optional: []
2995
- }
2996
- };
2848
+ const adapterName$4 = 'getAssistantTarget';
2849
+ const getAssistantTarget_ConfigPropertyMetadata = [
2850
+ generateParamConfigMetadata('assistantTarget', true),
2851
+ ];
2852
+ const getAssistantTarget_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAssistantTarget_ConfigPropertyMetadata);
2997
2853
  function createResourceParams$4(config) {
2998
2854
  const resourceParams = {
2999
2855
  urlParams: {
@@ -3059,21 +2915,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
3059
2915
  });
3060
2916
  }
3061
2917
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
3062
- const { luvio, config } = context;
3063
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
3064
- const dispatchOptions = {
3065
- resourceRequestContext: {
3066
- requestCorrelator,
3067
- luvioRequestMethod: undefined,
3068
- },
3069
- eventObservers
3070
- };
3071
- if (networkPriority !== 'normal') {
3072
- dispatchOptions.overrides = {
3073
- priority: networkPriority
3074
- };
3075
- }
3076
- return buildNetworkSnapshot$4(luvio, config, dispatchOptions);
2918
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
3077
2919
  }
3078
2920
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3079
2921
  const { luvio, config } = context;
@@ -3169,26 +3011,8 @@ const ingest$2 = function LightningAssistantInitializationRepresentationIngest(i
3169
3011
  }
3170
3012
  }
3171
3013
  const key = keyBuilderFromType$2(luvio, input);
3172
- const existingRecord = store.readEntry(key);
3173
3014
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
3174
- let incomingRecord = normalize$2(input, store.readEntry(key), {
3175
- fullPath: key,
3176
- parent: path.parent,
3177
- propertyName: path.propertyName,
3178
- ttl: ttlToUse
3179
- });
3180
- if (existingRecord === undefined || equals$3(existingRecord, incomingRecord) === false) {
3181
- luvio.storePublish(key, incomingRecord);
3182
- }
3183
- if (ttlToUse !== undefined) {
3184
- const storeMetadataParams = {
3185
- ttl: ttlToUse,
3186
- namespace: "LEAP",
3187
- version: VERSION$3,
3188
- representationName: RepresentationType$2,
3189
- };
3190
- luvio.publishStoreMetadata(key, storeMetadataParams);
3191
- }
3015
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "LEAP", VERSION$3, RepresentationType$2, equals$3);
3192
3016
  return createLink(key);
3193
3017
  };
3194
3018
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -3238,13 +3062,11 @@ function createResourceRequest$3(config) {
3238
3062
  };
3239
3063
  }
3240
3064
 
3241
- const initialize_ConfigPropertyNames = {
3242
- displayName: 'initialize',
3243
- parameters: {
3244
- required: ['assistantTarget'],
3245
- optional: []
3246
- }
3247
- };
3065
+ const adapterName$3 = 'initialize';
3066
+ const initialize_ConfigPropertyMetadata = [
3067
+ generateParamConfigMetadata('assistantTarget', true),
3068
+ ];
3069
+ const initialize_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, initialize_ConfigPropertyMetadata);
3248
3070
  function createResourceParams$3(config) {
3249
3071
  const resourceParams = {
3250
3072
  urlParams: {
@@ -3353,7 +3175,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
3353
3175
  existing: existing,
3354
3176
  },
3355
3177
  ttl: path.ttl
3356
- }, luvio, store);
3178
+ }, luvio, store, timestamp);
3357
3179
  }
3358
3180
  return input;
3359
3181
  }
@@ -3402,26 +3224,8 @@ const ingest$1 = function LightningAssistantListRepresentationIngest(input, path
3402
3224
  }
3403
3225
  }
3404
3226
  const key = keyBuilderFromType$1(luvio, input);
3405
- const existingRecord = store.readEntry(key);
3406
3227
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
3407
- let incomingRecord = normalize$1(input, store.readEntry(key), {
3408
- fullPath: key,
3409
- parent: path.parent,
3410
- propertyName: path.propertyName,
3411
- ttl: ttlToUse
3412
- }, luvio, store);
3413
- if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
3414
- luvio.storePublish(key, incomingRecord);
3415
- }
3416
- if (ttlToUse !== undefined) {
3417
- const storeMetadataParams = {
3418
- ttl: ttlToUse,
3419
- namespace: "LEAP",
3420
- version: VERSION$2,
3421
- representationName: RepresentationType$1,
3422
- };
3423
- luvio.publishStoreMetadata(key, storeMetadataParams);
3424
- }
3228
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "LEAP", VERSION$2, RepresentationType$1, equals$2);
3425
3229
  return createLink(key);
3426
3230
  };
3427
3231
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -3486,13 +3290,11 @@ function createResourceRequest$2(config) {
3486
3290
  };
3487
3291
  }
3488
3292
 
3489
- const getAssistantList_ConfigPropertyNames = {
3490
- displayName: 'getAssistantList',
3491
- parameters: {
3492
- required: ['assistantTarget'],
3493
- optional: []
3494
- }
3495
- };
3293
+ const adapterName$2 = 'getAssistantList';
3294
+ const getAssistantList_ConfigPropertyMetadata = [
3295
+ generateParamConfigMetadata('assistantTarget', true),
3296
+ ];
3297
+ const getAssistantList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getAssistantList_ConfigPropertyMetadata);
3496
3298
  function createResourceParams$2(config) {
3497
3299
  const resourceParams = {
3498
3300
  urlParams: {
@@ -3558,21 +3360,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
3558
3360
  });
3559
3361
  }
3560
3362
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3561
- const { luvio, config } = context;
3562
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
3563
- const dispatchOptions = {
3564
- resourceRequestContext: {
3565
- requestCorrelator,
3566
- luvioRequestMethod: undefined,
3567
- },
3568
- eventObservers
3569
- };
3570
- if (networkPriority !== 'normal') {
3571
- dispatchOptions.overrides = {
3572
- priority: networkPriority
3573
- };
3574
- }
3575
- return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
3363
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3576
3364
  }
3577
3365
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3578
3366
  const { luvio, config } = context;
@@ -3657,13 +3445,12 @@ function createResourceRequest$1(config) {
3657
3445
  };
3658
3446
  }
3659
3447
 
3660
- const saveAssistantList_ConfigPropertyNames = {
3661
- displayName: 'saveAssistantList',
3662
- parameters: {
3663
- required: ['assistantTarget', 'assistantData'],
3664
- optional: []
3665
- }
3666
- };
3448
+ const adapterName$1 = 'saveAssistantList';
3449
+ const saveAssistantList_ConfigPropertyMetadata = [
3450
+ generateParamConfigMetadata('assistantTarget', true),
3451
+ generateParamConfigMetadata('assistantData', true),
3452
+ ];
3453
+ const saveAssistantList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, saveAssistantList_ConfigPropertyMetadata);
3667
3454
  function createResourceParams$1(config) {
3668
3455
  const resourceParams = {
3669
3456
  urlParams: {
@@ -4001,26 +3788,8 @@ const ingest = function LightningAssistantInfoListRepresentationIngest(input, pa
4001
3788
  }
4002
3789
  }
4003
3790
  const key = keyBuilderFromType(luvio, input);
4004
- const existingRecord = store.readEntry(key);
4005
3791
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
4006
- let incomingRecord = normalize(input, store.readEntry(key), {
4007
- fullPath: key,
4008
- parent: path.parent,
4009
- propertyName: path.propertyName,
4010
- ttl: ttlToUse
4011
- });
4012
- if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
4013
- luvio.storePublish(key, incomingRecord);
4014
- }
4015
- if (ttlToUse !== undefined) {
4016
- const storeMetadataParams = {
4017
- ttl: ttlToUse,
4018
- namespace: "LEAP",
4019
- version: VERSION,
4020
- representationName: RepresentationType,
4021
- };
4022
- luvio.publishStoreMetadata(key, storeMetadataParams);
4023
- }
3792
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "LEAP", VERSION, RepresentationType, equals);
4024
3793
  return createLink(key);
4025
3794
  };
4026
3795
  function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
@@ -4081,13 +3850,11 @@ function createResourceRequest(config) {
4081
3850
  };
4082
3851
  }
4083
3852
 
4084
- const getAssistantInfoList_ConfigPropertyNames = {
4085
- displayName: 'getAssistantInfoList',
4086
- parameters: {
4087
- required: ['assistantTarget'],
4088
- optional: []
4089
- }
4090
- };
3853
+ const adapterName = 'getAssistantInfoList';
3854
+ const getAssistantInfoList_ConfigPropertyMetadata = [
3855
+ generateParamConfigMetadata('assistantTarget', true),
3856
+ ];
3857
+ const getAssistantInfoList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAssistantInfoList_ConfigPropertyMetadata);
4091
3858
  function createResourceParams(config) {
4092
3859
  const resourceParams = {
4093
3860
  urlParams: {
@@ -4153,21 +3920,7 @@ function buildNetworkSnapshot(luvio, config, options) {
4153
3920
  });
4154
3921
  }
4155
3922
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
4156
- const { luvio, config } = context;
4157
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
4158
- const dispatchOptions = {
4159
- resourceRequestContext: {
4160
- requestCorrelator,
4161
- luvioRequestMethod: undefined,
4162
- },
4163
- eventObservers
4164
- };
4165
- if (networkPriority !== 'normal') {
4166
- dispatchOptions.overrides = {
4167
- priority: networkPriority
4168
- };
4169
- }
4170
- return buildNetworkSnapshot(luvio, config, dispatchOptions);
3923
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4171
3924
  }
4172
3925
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
4173
3926
  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 = "LEAP";
@@ -1,8 +1,9 @@
1
- import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
2
3
  import { ResourceRequestConfig as resources_patchAssistantPlatformStepByStepName_ResourceRequestConfig } from '../resources/patchAssistantPlatformStepByStepName';
3
- import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
4
4
  import { LightningAssistantStepRepresentation as types_LightningAssistantStepRepresentation_LightningAssistantStepRepresentation } from '../types/LightningAssistantStepRepresentation';
5
5
  export declare const adapterName = "evaluateStep";
6
+ export declare const evaluateStep_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
6
7
  export declare const evaluateStep_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
8
  export interface EvaluateStepConfig {
8
9
  stepName: string;