@salesforce/lds-adapters-industries-docgen 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$7, 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 = 'docgen';
52
70
 
53
71
  const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
@@ -232,26 +250,8 @@ const ingest$a = function ClauseCategoriesResponseIngest(input, path, luvio, sto
232
250
  }
233
251
  }
234
252
  const key = path.fullPath;
235
- const existingRecord = store.readEntry(key);
236
253
  const ttlToUse = TTL$6;
237
- let incomingRecord = normalize$a(input, store.readEntry(key), {
238
- fullPath: key,
239
- parent: path.parent,
240
- propertyName: path.propertyName,
241
- ttl: ttlToUse
242
- });
243
- if (existingRecord === undefined || equals$g(existingRecord, incomingRecord) === false) {
244
- luvio.storePublish(key, incomingRecord);
245
- }
246
- {
247
- const storeMetadataParams = {
248
- ttl: ttlToUse,
249
- namespace: "docgen",
250
- version: VERSION$g,
251
- representationName: RepresentationType$a,
252
- };
253
- luvio.publishStoreMetadata(key, storeMetadataParams);
254
- }
254
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "docgen", VERSION$g, RepresentationType$a, equals$g);
255
255
  return createLink(key);
256
256
  };
257
257
  function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
@@ -316,13 +316,13 @@ function createResourceRequest$a(config) {
316
316
  };
317
317
  }
318
318
 
319
- const getDocumentClauseSetCategories_ConfigPropertyNames = {
320
- displayName: 'getDocumentClauseSetCategories',
321
- parameters: {
322
- required: [],
323
- optional: ['id', 'name', 'usageType']
324
- }
325
- };
319
+ const adapterName$a = 'getDocumentClauseSetCategories';
320
+ const getDocumentClauseSetCategories_ConfigPropertyMetadata = [
321
+ generateParamConfigMetadata('id', false),
322
+ generateParamConfigMetadata('name', false),
323
+ generateParamConfigMetadata('usageType', false),
324
+ ];
325
+ const getDocumentClauseSetCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getDocumentClauseSetCategories_ConfigPropertyMetadata);
326
326
  function createResourceParams$a(config) {
327
327
  const resourceParams = {
328
328
  queryParams: {
@@ -390,21 +390,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
390
390
  });
391
391
  }
392
392
  function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
393
- const { luvio, config } = context;
394
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
395
- const dispatchOptions = {
396
- resourceRequestContext: {
397
- requestCorrelator,
398
- luvioRequestMethod: undefined,
399
- },
400
- eventObservers
401
- };
402
- if (networkPriority !== 'normal') {
403
- dispatchOptions.overrides = {
404
- priority: networkPriority
405
- };
406
- }
407
- return buildNetworkSnapshot$a(luvio, config, dispatchOptions);
393
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
408
394
  }
409
395
  function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
410
396
  const { luvio, config } = context;
@@ -601,26 +587,8 @@ const ingest$9 = function DocumentClauseSetListResponseIngest(input, path, luvio
601
587
  }
602
588
  }
603
589
  const key = path.fullPath;
604
- const existingRecord = store.readEntry(key);
605
590
  const ttlToUse = TTL$5;
606
- let incomingRecord = normalize$9(input, store.readEntry(key), {
607
- fullPath: key,
608
- parent: path.parent,
609
- propertyName: path.propertyName,
610
- ttl: ttlToUse
611
- });
612
- if (existingRecord === undefined || equals$e(existingRecord, incomingRecord) === false) {
613
- luvio.storePublish(key, incomingRecord);
614
- }
615
- {
616
- const storeMetadataParams = {
617
- ttl: ttlToUse,
618
- namespace: "docgen",
619
- version: VERSION$e,
620
- representationName: RepresentationType$9,
621
- };
622
- luvio.publishStoreMetadata(key, storeMetadataParams);
623
- }
591
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "docgen", VERSION$e, RepresentationType$9, equals$e);
624
592
  return createLink(key);
625
593
  };
626
594
  function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
@@ -685,13 +653,16 @@ function createResourceRequest$9(config) {
685
653
  };
686
654
  }
687
655
 
688
- const getDocumentClauseSets_ConfigPropertyNames = {
689
- displayName: 'getDocumentClauseSets',
690
- parameters: {
691
- required: [],
692
- optional: ['category', 'defaultLanguage', 'limit', 'name', 'offset', 'status']
693
- }
694
- };
656
+ const adapterName$9 = 'getDocumentClauseSets';
657
+ const getDocumentClauseSets_ConfigPropertyMetadata = [
658
+ generateParamConfigMetadata('category', false),
659
+ generateParamConfigMetadata('defaultLanguage', false),
660
+ generateParamConfigMetadata('limit', false),
661
+ generateParamConfigMetadata('name', false),
662
+ generateParamConfigMetadata('offset', false),
663
+ generateParamConfigMetadata('status', false),
664
+ ];
665
+ const getDocumentClauseSets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getDocumentClauseSets_ConfigPropertyMetadata);
695
666
  function createResourceParams$9(config) {
696
667
  const resourceParams = {
697
668
  queryParams: {
@@ -762,21 +733,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
762
733
  });
763
734
  }
764
735
  function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
765
- const { luvio, config } = context;
766
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
767
- const dispatchOptions = {
768
- resourceRequestContext: {
769
- requestCorrelator,
770
- luvioRequestMethod: undefined,
771
- },
772
- eventObservers
773
- };
774
- if (networkPriority !== 'normal') {
775
- dispatchOptions.overrides = {
776
- priority: networkPriority
777
- };
778
- }
779
- return buildNetworkSnapshot$9(luvio, config, dispatchOptions);
736
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
780
737
  }
781
738
  function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
782
739
  const { luvio, config } = context;
@@ -877,26 +834,8 @@ const ingest$8 = function DocumentClauseFieldsResponseIngest(input, path, luvio,
877
834
  }
878
835
  }
879
836
  const key = path.fullPath;
880
- const existingRecord = store.readEntry(key);
881
837
  const ttlToUse = TTL$4;
882
- let incomingRecord = normalize$8(input, store.readEntry(key), {
883
- fullPath: key,
884
- parent: path.parent,
885
- propertyName: path.propertyName,
886
- ttl: ttlToUse
887
- });
888
- if (existingRecord === undefined || equals$d(existingRecord, incomingRecord) === false) {
889
- luvio.storePublish(key, incomingRecord);
890
- }
891
- {
892
- const storeMetadataParams = {
893
- ttl: ttlToUse,
894
- namespace: "docgen",
895
- version: VERSION$d,
896
- representationName: RepresentationType$8,
897
- };
898
- luvio.publishStoreMetadata(key, storeMetadataParams);
899
- }
838
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "docgen", VERSION$d, RepresentationType$8, equals$d);
900
839
  return createLink(key);
901
840
  };
902
841
  function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
@@ -961,13 +900,16 @@ function createResourceRequest$8(config) {
961
900
  };
962
901
  }
963
902
 
964
- const getDocumentClauseFields_ConfigPropertyNames = {
965
- displayName: 'getDocumentClauseFields',
966
- parameters: {
967
- required: [],
968
- optional: ['clauseSetId', 'extendedFields', 'fieldName', 'language', 'name', 'status']
969
- }
970
- };
903
+ const adapterName$8 = 'getDocumentClauseFields';
904
+ const getDocumentClauseFields_ConfigPropertyMetadata = [
905
+ generateParamConfigMetadata('clauseSetId', false),
906
+ generateParamConfigMetadata('extendedFields', false),
907
+ generateParamConfigMetadata('fieldName', false),
908
+ generateParamConfigMetadata('language', false),
909
+ generateParamConfigMetadata('name', false),
910
+ generateParamConfigMetadata('status', false),
911
+ ];
912
+ const getDocumentClauseFields_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getDocumentClauseFields_ConfigPropertyMetadata);
971
913
  function createResourceParams$8(config) {
972
914
  const resourceParams = {
973
915
  queryParams: {
@@ -1038,21 +980,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
1038
980
  });
1039
981
  }
1040
982
  function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
1041
- const { luvio, config } = context;
1042
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1043
- const dispatchOptions = {
1044
- resourceRequestContext: {
1045
- requestCorrelator,
1046
- luvioRequestMethod: undefined,
1047
- },
1048
- eventObservers
1049
- };
1050
- if (networkPriority !== 'normal') {
1051
- dispatchOptions.overrides = {
1052
- priority: networkPriority
1053
- };
1054
- }
1055
- return buildNetworkSnapshot$8(luvio, config, dispatchOptions);
983
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
1056
984
  }
1057
985
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
1058
986
  const { luvio, config } = context;
@@ -1158,26 +1086,8 @@ const ingest$7 = function GenericOutputRepresentationIngest(input, path, luvio,
1158
1086
  }
1159
1087
  }
1160
1088
  const key = keyBuilderFromType$3(luvio, input);
1161
- const existingRecord = store.readEntry(key);
1162
1089
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1163
- let incomingRecord = normalize$7(input, store.readEntry(key), {
1164
- fullPath: key,
1165
- parent: path.parent,
1166
- propertyName: path.propertyName,
1167
- ttl: ttlToUse
1168
- });
1169
- if (existingRecord === undefined || equals$c(existingRecord, incomingRecord) === false) {
1170
- luvio.storePublish(key, incomingRecord);
1171
- }
1172
- if (ttlToUse !== undefined) {
1173
- const storeMetadataParams = {
1174
- ttl: ttlToUse,
1175
- namespace: "docgen",
1176
- version: VERSION$c,
1177
- representationName: RepresentationType$7,
1178
- };
1179
- luvio.publishStoreMetadata(key, storeMetadataParams);
1180
- }
1090
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "docgen", VERSION$c, RepresentationType$7, equals$c);
1181
1091
  return createLink(key);
1182
1092
  };
1183
1093
  function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
@@ -1227,13 +1137,12 @@ function createResourceRequest$7(config) {
1227
1137
  };
1228
1138
  }
1229
1139
 
1230
- const performDocGenerationBatchProcessAction_ConfigPropertyNames = {
1231
- displayName: 'performDocGenerationBatchProcessAction',
1232
- parameters: {
1233
- required: ['actionName', 'docGenerationBatchProcessId'],
1234
- optional: []
1235
- }
1236
- };
1140
+ const adapterName$7 = 'performDocGenerationBatchProcessAction';
1141
+ const performDocGenerationBatchProcessAction_ConfigPropertyMetadata = [
1142
+ generateParamConfigMetadata('actionName', true),
1143
+ generateParamConfigMetadata('docGenerationBatchProcessId', true),
1144
+ ];
1145
+ const performDocGenerationBatchProcessAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
1237
1146
  function createResourceParams$7(config) {
1238
1147
  const resourceParams = {
1239
1148
  urlParams: {
@@ -1531,26 +1440,8 @@ const ingest$6 = function DocumentListResponseIngest(input, path, luvio, store,
1531
1440
  }
1532
1441
  }
1533
1442
  const key = path.fullPath;
1534
- const existingRecord = store.readEntry(key);
1535
1443
  const ttlToUse = TTL$3;
1536
- let incomingRecord = normalize$6(input, store.readEntry(key), {
1537
- fullPath: key,
1538
- parent: path.parent,
1539
- propertyName: path.propertyName,
1540
- ttl: ttlToUse
1541
- });
1542
- if (existingRecord === undefined || equals$a(existingRecord, incomingRecord) === false) {
1543
- luvio.storePublish(key, incomingRecord);
1544
- }
1545
- {
1546
- const storeMetadataParams = {
1547
- ttl: ttlToUse,
1548
- namespace: "docgen",
1549
- version: VERSION$a,
1550
- representationName: RepresentationType$6,
1551
- };
1552
- luvio.publishStoreMetadata(key, storeMetadataParams);
1553
- }
1444
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "docgen", VERSION$a, RepresentationType$6, equals$a);
1554
1445
  return createLink(key);
1555
1446
  };
1556
1447
  function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
@@ -1615,13 +1506,12 @@ function createResourceRequest$6(config) {
1615
1506
  };
1616
1507
  }
1617
1508
 
1618
- const getDocuments_ConfigPropertyNames = {
1619
- displayName: 'getDocuments',
1620
- parameters: {
1621
- required: [],
1622
- optional: ['documentSelector', 'sourceObjectId']
1623
- }
1624
- };
1509
+ const adapterName$6 = 'getDocuments';
1510
+ const getDocuments_ConfigPropertyMetadata = [
1511
+ generateParamConfigMetadata('documentSelector', false),
1512
+ generateParamConfigMetadata('sourceObjectId', false),
1513
+ ];
1514
+ const getDocuments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDocuments_ConfigPropertyMetadata);
1625
1515
  function createResourceParams$6(config) {
1626
1516
  const resourceParams = {
1627
1517
  queryParams: {
@@ -1688,21 +1578,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
1688
1578
  });
1689
1579
  }
1690
1580
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
1691
- const { luvio, config } = context;
1692
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1693
- const dispatchOptions = {
1694
- resourceRequestContext: {
1695
- requestCorrelator,
1696
- luvioRequestMethod: undefined,
1697
- },
1698
- eventObservers
1699
- };
1700
- if (networkPriority !== 'normal') {
1701
- dispatchOptions.overrides = {
1702
- priority: networkPriority
1703
- };
1704
- }
1705
- return buildNetworkSnapshot$6(luvio, config, dispatchOptions);
1581
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
1706
1582
  }
1707
1583
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
1708
1584
  const { luvio, config } = context;
@@ -2040,26 +1916,8 @@ const ingest$5 = function NotificationSettingResponseIngest(input, path, luvio,
2040
1916
  }
2041
1917
  }
2042
1918
  const key = path.fullPath;
2043
- const existingRecord = store.readEntry(key);
2044
1919
  const ttlToUse = TTL$2;
2045
- let incomingRecord = normalize$5(input, store.readEntry(key), {
2046
- fullPath: key,
2047
- parent: path.parent,
2048
- propertyName: path.propertyName,
2049
- ttl: ttlToUse
2050
- });
2051
- if (existingRecord === undefined || equals$7(existingRecord, incomingRecord) === false) {
2052
- luvio.storePublish(key, incomingRecord);
2053
- }
2054
- {
2055
- const storeMetadataParams = {
2056
- ttl: ttlToUse,
2057
- namespace: "docgen",
2058
- version: VERSION$7,
2059
- representationName: RepresentationType$5,
2060
- };
2061
- luvio.publishStoreMetadata(key, storeMetadataParams);
2062
- }
1920
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "docgen", VERSION$7, RepresentationType$5, equals$7);
2063
1921
  return createLink(key);
2064
1922
  };
2065
1923
  function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
@@ -2124,13 +1982,11 @@ function createResourceRequest$5(config) {
2124
1982
  };
2125
1983
  }
2126
1984
 
2127
- const getESignNotificationSettings_ConfigPropertyNames = {
2128
- displayName: 'getESignNotificationSettings',
2129
- parameters: {
2130
- required: [],
2131
- optional: ['sourceObjectId']
2132
- }
2133
- };
1985
+ const adapterName$5 = 'getESignNotificationSettings';
1986
+ const getESignNotificationSettings_ConfigPropertyMetadata = [
1987
+ generateParamConfigMetadata('sourceObjectId', false),
1988
+ ];
1989
+ const getESignNotificationSettings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getESignNotificationSettings_ConfigPropertyMetadata);
2134
1990
  function createResourceParams$5(config) {
2135
1991
  const resourceParams = {
2136
1992
  queryParams: {
@@ -2196,21 +2052,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
2196
2052
  });
2197
2053
  }
2198
2054
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2199
- const { luvio, config } = context;
2200
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
2201
- const dispatchOptions = {
2202
- resourceRequestContext: {
2203
- requestCorrelator,
2204
- luvioRequestMethod: undefined,
2205
- },
2206
- eventObservers
2207
- };
2208
- if (networkPriority !== 'normal') {
2209
- dispatchOptions.overrides = {
2210
- priority: networkPriority
2211
- };
2212
- }
2213
- return buildNetworkSnapshot$5(luvio, config, dispatchOptions);
2055
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2214
2056
  }
2215
2057
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2216
2058
  const { luvio, config } = context;
@@ -2449,26 +2291,8 @@ const ingest$4 = function RecipientListResponseIngest(input, path, luvio, store,
2449
2291
  }
2450
2292
  }
2451
2293
  const key = path.fullPath;
2452
- const existingRecord = store.readEntry(key);
2453
2294
  const ttlToUse = TTL$1;
2454
- let incomingRecord = normalize$4(input, store.readEntry(key), {
2455
- fullPath: key,
2456
- parent: path.parent,
2457
- propertyName: path.propertyName,
2458
- ttl: ttlToUse
2459
- });
2460
- if (existingRecord === undefined || equals$5(existingRecord, incomingRecord) === false) {
2461
- luvio.storePublish(key, incomingRecord);
2462
- }
2463
- {
2464
- const storeMetadataParams = {
2465
- ttl: ttlToUse,
2466
- namespace: "docgen",
2467
- version: VERSION$5,
2468
- representationName: RepresentationType$4,
2469
- };
2470
- luvio.publishStoreMetadata(key, storeMetadataParams);
2471
- }
2295
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "docgen", VERSION$5, RepresentationType$4, equals$5);
2472
2296
  return createLink(key);
2473
2297
  };
2474
2298
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -2533,13 +2357,12 @@ function createResourceRequest$4(config) {
2533
2357
  };
2534
2358
  }
2535
2359
 
2536
- const getRecipients_ConfigPropertyNames = {
2537
- displayName: 'getRecipients',
2538
- parameters: {
2539
- required: [],
2540
- optional: ['recipientSelector', 'sourceObjectId']
2541
- }
2542
- };
2360
+ const adapterName$4 = 'getRecipients';
2361
+ const getRecipients_ConfigPropertyMetadata = [
2362
+ generateParamConfigMetadata('recipientSelector', false),
2363
+ generateParamConfigMetadata('sourceObjectId', false),
2364
+ ];
2365
+ const getRecipients_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getRecipients_ConfigPropertyMetadata);
2543
2366
  function createResourceParams$4(config) {
2544
2367
  const resourceParams = {
2545
2368
  queryParams: {
@@ -2606,21 +2429,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
2606
2429
  });
2607
2430
  }
2608
2431
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2609
- const { luvio, config } = context;
2610
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
2611
- const dispatchOptions = {
2612
- resourceRequestContext: {
2613
- requestCorrelator,
2614
- luvioRequestMethod: undefined,
2615
- },
2616
- eventObservers
2617
- };
2618
- if (networkPriority !== 'normal') {
2619
- dispatchOptions.overrides = {
2620
- priority: networkPriority
2621
- };
2622
- }
2623
- return buildNetworkSnapshot$4(luvio, config, dispatchOptions);
2432
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2624
2433
  }
2625
2434
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2626
2435
  const { luvio, config } = context;
@@ -2774,26 +2583,8 @@ const ingest$3 = function EnvelopeSendResponseIngest(input, path, luvio, store,
2774
2583
  }
2775
2584
  }
2776
2585
  const key = keyBuilderFromType$2(luvio, input);
2777
- const existingRecord = store.readEntry(key);
2778
2586
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
2779
- let incomingRecord = normalize$3(input, store.readEntry(key), {
2780
- fullPath: key,
2781
- parent: path.parent,
2782
- propertyName: path.propertyName,
2783
- ttl: ttlToUse
2784
- });
2785
- if (existingRecord === undefined || equals$4(existingRecord, incomingRecord) === false) {
2786
- luvio.storePublish(key, incomingRecord);
2787
- }
2788
- if (ttlToUse !== undefined) {
2789
- const storeMetadataParams = {
2790
- ttl: ttlToUse,
2791
- namespace: "docgen",
2792
- version: VERSION$4,
2793
- representationName: RepresentationType$3,
2794
- };
2795
- luvio.publishStoreMetadata(key, storeMetadataParams);
2796
- }
2587
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "docgen", VERSION$4, RepresentationType$3, equals$4);
2797
2588
  return createLink(key);
2798
2589
  };
2799
2590
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -2843,13 +2634,12 @@ function createResourceRequest$3(config) {
2843
2634
  };
2844
2635
  }
2845
2636
 
2846
- const createDocumentEnvelopeForEsign_ConfigPropertyNames = {
2847
- displayName: 'createDocumentEnvelopeForEsign',
2848
- parameters: {
2849
- required: ['sourceObjectId', 'envelope'],
2850
- optional: []
2851
- }
2852
- };
2637
+ const adapterName$3 = 'createDocumentEnvelopeForEsign';
2638
+ const createDocumentEnvelopeForEsign_ConfigPropertyMetadata = [
2639
+ generateParamConfigMetadata('sourceObjectId', true),
2640
+ generateParamConfigMetadata('envelope', true),
2641
+ ];
2642
+ const createDocumentEnvelopeForEsign_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
2853
2643
  function createResourceParams$3(config) {
2854
2644
  const resourceParams = {
2855
2645
  urlParams: {
@@ -3145,26 +2935,8 @@ const ingest$2 = function EnvelopeStatusListResponseIngest(input, path, luvio, s
3145
2935
  }
3146
2936
  }
3147
2937
  const key = keyBuilderFromType$1(luvio, input);
3148
- const existingRecord = store.readEntry(key);
3149
2938
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
3150
- let incomingRecord = normalize$2(input, store.readEntry(key), {
3151
- fullPath: key,
3152
- parent: path.parent,
3153
- propertyName: path.propertyName,
3154
- ttl: ttlToUse
3155
- });
3156
- if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
3157
- luvio.storePublish(key, incomingRecord);
3158
- }
3159
- if (ttlToUse !== undefined) {
3160
- const storeMetadataParams = {
3161
- ttl: ttlToUse,
3162
- namespace: "docgen",
3163
- version: VERSION$2,
3164
- representationName: RepresentationType$2,
3165
- };
3166
- luvio.publishStoreMetadata(key, storeMetadataParams);
3167
- }
2939
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "docgen", VERSION$2, RepresentationType$2, equals$2);
3168
2940
  return createLink(key);
3169
2941
  };
3170
2942
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -3214,13 +2986,11 @@ function createResourceRequest$2(config) {
3214
2986
  };
3215
2987
  }
3216
2988
 
3217
- const updateEnvelope_ConfigPropertyNames = {
3218
- displayName: 'updateEnvelope',
3219
- parameters: {
3220
- required: ['sourceObjectId'],
3221
- optional: []
3222
- }
3223
- };
2989
+ const adapterName$2 = 'updateEnvelope';
2990
+ const updateEnvelope_ConfigPropertyMetadata = [
2991
+ generateParamConfigMetadata('sourceObjectId', true),
2992
+ ];
2993
+ const updateEnvelope_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updateEnvelope_ConfigPropertyMetadata);
3224
2994
  function createResourceParams$2(config) {
3225
2995
  const resourceParams = {
3226
2996
  urlParams: {
@@ -3440,26 +3210,8 @@ const ingest$1 = function EnvelopeVoidResponseIngest(input, path, luvio, store,
3440
3210
  }
3441
3211
  }
3442
3212
  const key = keyBuilderFromType(luvio, input);
3443
- const existingRecord = store.readEntry(key);
3444
3213
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
3445
- let incomingRecord = normalize$1(input, store.readEntry(key), {
3446
- fullPath: key,
3447
- parent: path.parent,
3448
- propertyName: path.propertyName,
3449
- ttl: ttlToUse
3450
- });
3451
- if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
3452
- luvio.storePublish(key, incomingRecord);
3453
- }
3454
- if (ttlToUse !== undefined) {
3455
- const storeMetadataParams = {
3456
- ttl: ttlToUse,
3457
- namespace: "docgen",
3458
- version: VERSION$1,
3459
- representationName: RepresentationType$1,
3460
- };
3461
- luvio.publishStoreMetadata(key, storeMetadataParams);
3462
- }
3214
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "docgen", VERSION$1, RepresentationType$1, equals$1);
3463
3215
  return createLink(key);
3464
3216
  };
3465
3217
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -3509,13 +3261,12 @@ function createResourceRequest$1(config) {
3509
3261
  };
3510
3262
  }
3511
3263
 
3512
- const updateVoidedEnvelope_ConfigPropertyNames = {
3513
- displayName: 'updateVoidedEnvelope',
3514
- parameters: {
3515
- required: ['sourceObjectId', 'voidParam'],
3516
- optional: []
3517
- }
3518
- };
3264
+ const adapterName$1 = 'updateVoidedEnvelope';
3265
+ const updateVoidedEnvelope_ConfigPropertyMetadata = [
3266
+ generateParamConfigMetadata('sourceObjectId', true),
3267
+ generateParamConfigMetadata('voidParam', true),
3268
+ ];
3269
+ const updateVoidedEnvelope_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateVoidedEnvelope_ConfigPropertyMetadata);
3519
3270
  function createResourceParams$1(config) {
3520
3271
  const resourceParams = {
3521
3272
  urlParams: {
@@ -3653,26 +3404,8 @@ const ingest = function SignerRolesResponseIngest(input, path, luvio, store, tim
3653
3404
  }
3654
3405
  }
3655
3406
  const key = path.fullPath;
3656
- const existingRecord = store.readEntry(key);
3657
3407
  const ttlToUse = TTL;
3658
- let incomingRecord = normalize(input, store.readEntry(key), {
3659
- fullPath: key,
3660
- parent: path.parent,
3661
- propertyName: path.propertyName,
3662
- ttl: ttlToUse
3663
- });
3664
- if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
3665
- luvio.storePublish(key, incomingRecord);
3666
- }
3667
- {
3668
- const storeMetadataParams = {
3669
- ttl: ttlToUse,
3670
- namespace: "docgen",
3671
- version: VERSION,
3672
- representationName: RepresentationType,
3673
- };
3674
- luvio.publishStoreMetadata(key, storeMetadataParams);
3675
- }
3408
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "docgen", VERSION, RepresentationType, equals);
3676
3409
  return createLink(key);
3677
3410
  };
3678
3411
  function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
@@ -3737,13 +3470,9 @@ function createResourceRequest(config) {
3737
3470
  };
3738
3471
  }
3739
3472
 
3740
- const getSignerRoles_ConfigPropertyNames = {
3741
- displayName: 'getSignerRoles',
3742
- parameters: {
3743
- required: [],
3744
- optional: []
3745
- }
3746
- };
3473
+ const adapterName = 'getSignerRoles';
3474
+ const getSignerRoles_ConfigPropertyMetadata = [];
3475
+ const getSignerRoles_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSignerRoles_ConfigPropertyMetadata);
3747
3476
  function createResourceParams(config) {
3748
3477
  const resourceParams = {};
3749
3478
  return resourceParams;
@@ -3800,21 +3529,7 @@ function buildNetworkSnapshot(luvio, config, options) {
3800
3529
  });
3801
3530
  }
3802
3531
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3803
- const { luvio, config } = context;
3804
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
3805
- const dispatchOptions = {
3806
- resourceRequestContext: {
3807
- requestCorrelator,
3808
- luvioRequestMethod: undefined,
3809
- },
3810
- eventObservers
3811
- };
3812
- if (networkPriority !== 'normal') {
3813
- dispatchOptions.overrides = {
3814
- priority: networkPriority
3815
- };
3816
- }
3817
- return buildNetworkSnapshot(luvio, config, dispatchOptions);
3532
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3818
3533
  }
3819
3534
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
3820
3535
  const { luvio, config } = context;