@salesforce/lds-adapters-industries-clm 1.179.0 → 1.181.0

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.
@@ -134,19 +134,19 @@ function validate$g(obj, path = 'GenericOutputRepresentation') {
134
134
  return v_error === undefined ? null : v_error;
135
135
  }
136
136
  const RepresentationType$9 = 'GenericOutputRepresentation';
137
- function keyBuilder$k(luvio, config) {
137
+ function keyBuilder$m(luvio, config) {
138
138
  return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
139
139
  }
140
140
  function keyBuilderFromType$6(luvio, object) {
141
141
  const keyParams = {
142
142
  id: object.id
143
143
  };
144
- return keyBuilder$k(luvio, keyParams);
144
+ return keyBuilder$m(luvio, keyParams);
145
145
  }
146
146
  function normalize$9(input, existing, path, luvio, store, timestamp) {
147
147
  return input;
148
148
  }
149
- const select$q = function GenericOutputRepresentationSelect() {
149
+ const select$r = function GenericOutputRepresentationSelect() {
150
150
  return {
151
151
  kind: 'Fragment',
152
152
  version: VERSION$a,
@@ -200,19 +200,19 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
200
200
  });
201
201
  }
202
202
 
203
- function select$p(luvio, params) {
204
- return select$q();
203
+ function select$q(luvio, params) {
204
+ return select$r();
205
205
  }
206
- function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
206
+ function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
207
207
  getTypeCacheKeys$9(storeKeyMap, luvio, response);
208
208
  }
209
- function ingestSuccess$f(luvio, resourceParams, response) {
209
+ function ingestSuccess$g(luvio, resourceParams, response) {
210
210
  const { body } = response;
211
211
  const key = keyBuilderFromType$6(luvio, body);
212
212
  luvio.storeIngest(key, ingest$9, body);
213
213
  const snapshot = luvio.storeLookup({
214
214
  recordId: key,
215
- node: select$p(),
215
+ node: select$q(),
216
216
  variables: {},
217
217
  });
218
218
  if (process.env.NODE_ENV !== 'production') {
@@ -223,7 +223,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
223
223
  deepFreeze(snapshot.data);
224
224
  return snapshot;
225
225
  }
226
- function createResourceRequest$h(config) {
226
+ function createResourceRequest$i(config) {
227
227
  const headers = {};
228
228
  return {
229
229
  baseUri: '/services/data/v59.0',
@@ -244,7 +244,7 @@ const executeContractAction_ConfigPropertyNames = {
244
244
  optional: []
245
245
  }
246
246
  };
247
- function createResourceParams$h(config) {
247
+ function createResourceParams$i(config) {
248
248
  const resourceParams = {
249
249
  urlParams: {
250
250
  contractId: config.contractId
@@ -255,7 +255,7 @@ function createResourceParams$h(config) {
255
255
  };
256
256
  return resourceParams;
257
257
  }
258
- function typeCheckConfig$h(untrustedConfig) {
258
+ function typeCheckConfig$i(untrustedConfig) {
259
259
  const config = {};
260
260
  const untrustedConfig_contractId = untrustedConfig.contractId;
261
261
  if (typeof untrustedConfig_contractId === 'string') {
@@ -268,30 +268,30 @@ function typeCheckConfig$h(untrustedConfig) {
268
268
  }
269
269
  return config;
270
270
  }
271
- function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
271
+ function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
272
272
  if (!untrustedIsObject(untrustedConfig)) {
273
273
  return null;
274
274
  }
275
275
  if (process.env.NODE_ENV !== 'production') {
276
276
  validateConfig(untrustedConfig, configPropertyNames);
277
277
  }
278
- const config = typeCheckConfig$h(untrustedConfig);
278
+ const config = typeCheckConfig$i(untrustedConfig);
279
279
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
280
280
  return null;
281
281
  }
282
282
  return config;
283
283
  }
284
- function buildNetworkSnapshot$h(luvio, config, options) {
285
- const resourceParams = createResourceParams$h(config);
286
- const request = createResourceRequest$h(resourceParams);
284
+ function buildNetworkSnapshot$i(luvio, config, options) {
285
+ const resourceParams = createResourceParams$i(config);
286
+ const request = createResourceRequest$i(resourceParams);
287
287
  return luvio.dispatchResourceRequest(request, options)
288
288
  .then((response) => {
289
289
  return luvio.handleSuccessResponse(() => {
290
- const snapshot = ingestSuccess$f(luvio, resourceParams, response);
290
+ const snapshot = ingestSuccess$g(luvio, resourceParams, response);
291
291
  return luvio.storeBroadcast().then(() => snapshot);
292
292
  }, () => {
293
293
  const cache = new StoreKeyMap();
294
- getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
294
+ getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
295
295
  return cache;
296
296
  });
297
297
  }, (response) => {
@@ -301,12 +301,12 @@ function buildNetworkSnapshot$h(luvio, config, options) {
301
301
  }
302
302
  const executeContractActionAdapterFactory = (luvio) => {
303
303
  return function executeContractAction(untrustedConfig) {
304
- const config = validateAdapterConfig$h(untrustedConfig, executeContractAction_ConfigPropertyNames);
304
+ const config = validateAdapterConfig$i(untrustedConfig, executeContractAction_ConfigPropertyNames);
305
305
  // Invalid or incomplete config
306
306
  if (config === null) {
307
307
  throw new Error('Invalid config for "executeContractAction"');
308
308
  }
309
- return buildNetworkSnapshot$h(luvio, config);
309
+ return buildNetworkSnapshot$i(luvio, config);
310
310
  };
311
311
  };
312
312
 
@@ -430,7 +430,7 @@ const RepresentationType$8 = 'ContractDocumentVersionsListRepresentation';
430
430
  function normalize$8(input, existing, path, luvio, store, timestamp) {
431
431
  return input;
432
432
  }
433
- const select$o = function ContractDocumentVersionsListRepresentationSelect() {
433
+ const select$p = function ContractDocumentVersionsListRepresentationSelect() {
434
434
  return {
435
435
  kind: 'Fragment',
436
436
  version: VERSION$9,
@@ -484,22 +484,22 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
484
484
  });
485
485
  }
486
486
 
487
- function select$n(luvio, params) {
488
- return select$o();
487
+ function select$o(luvio, params) {
488
+ return select$p();
489
489
  }
490
- function keyBuilder$j(luvio, params) {
490
+ function keyBuilder$l(luvio, params) {
491
491
  return keyPrefix + '::ContractDocumentVersionsListRepresentation:(' + 'contractDocumentVersionId:' + params.queryParams.contractDocumentVersionId + ',' + 'contractId:' + params.urlParams.contractId + ')';
492
492
  }
493
- function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
494
- getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
493
+ function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
494
+ getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$l(luvio, resourceParams));
495
495
  }
496
- function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
496
+ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
497
497
  const { body } = response;
498
- const key = keyBuilder$j(luvio, resourceParams);
498
+ const key = keyBuilder$l(luvio, resourceParams);
499
499
  luvio.storeIngest(key, ingest$8, body);
500
500
  const snapshot = luvio.storeLookup({
501
501
  recordId: key,
502
- node: select$n(),
502
+ node: select$o(),
503
503
  variables: {},
504
504
  }, snapshotRefresh);
505
505
  if (process.env.NODE_ENV !== 'production') {
@@ -510,8 +510,8 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
510
510
  deepFreeze(snapshot.data);
511
511
  return snapshot;
512
512
  }
513
- function ingestError$5(luvio, params, error, snapshotRefresh) {
514
- const key = keyBuilder$j(luvio, params);
513
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
514
+ const key = keyBuilder$l(luvio, params);
515
515
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
516
516
  const storeMetadataParams = {
517
517
  ttl: TTL$7,
@@ -522,7 +522,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
522
522
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
523
523
  return errorSnapshot;
524
524
  }
525
- function createResourceRequest$g(config) {
525
+ function createResourceRequest$h(config) {
526
526
  const headers = {};
527
527
  return {
528
528
  baseUri: '/services/data/v59.0',
@@ -543,7 +543,7 @@ const getContractDocumentVersion_ConfigPropertyNames = {
543
543
  optional: ['contractDocumentVersionId']
544
544
  }
545
545
  };
546
- function createResourceParams$g(config) {
546
+ function createResourceParams$h(config) {
547
547
  const resourceParams = {
548
548
  urlParams: {
549
549
  contractId: config.contractId
@@ -554,11 +554,11 @@ function createResourceParams$g(config) {
554
554
  };
555
555
  return resourceParams;
556
556
  }
557
- function keyBuilder$i(luvio, config) {
558
- const resourceParams = createResourceParams$g(config);
559
- return keyBuilder$j(luvio, resourceParams);
557
+ function keyBuilder$k(luvio, config) {
558
+ const resourceParams = createResourceParams$h(config);
559
+ return keyBuilder$l(luvio, resourceParams);
560
560
  }
561
- function typeCheckConfig$g(untrustedConfig) {
561
+ function typeCheckConfig$h(untrustedConfig) {
562
562
  const config = {};
563
563
  const untrustedConfig_contractId = untrustedConfig.contractId;
564
564
  if (typeof untrustedConfig_contractId === 'string') {
@@ -570,52 +570,52 @@ function typeCheckConfig$g(untrustedConfig) {
570
570
  }
571
571
  return config;
572
572
  }
573
- function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
573
+ function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
574
574
  if (!untrustedIsObject(untrustedConfig)) {
575
575
  return null;
576
576
  }
577
577
  if (process.env.NODE_ENV !== 'production') {
578
578
  validateConfig(untrustedConfig, configPropertyNames);
579
579
  }
580
- const config = typeCheckConfig$g(untrustedConfig);
580
+ const config = typeCheckConfig$h(untrustedConfig);
581
581
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
582
582
  return null;
583
583
  }
584
584
  return config;
585
585
  }
586
- function adapterFragment$5(luvio, config) {
587
- createResourceParams$g(config);
588
- return select$n();
586
+ function adapterFragment$6(luvio, config) {
587
+ createResourceParams$h(config);
588
+ return select$o();
589
589
  }
590
- function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
591
- const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
590
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
591
+ const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
592
592
  config,
593
- resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
593
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
594
594
  });
595
595
  return luvio.storeBroadcast().then(() => snapshot);
596
596
  }
597
- function onFetchResponseError$5(luvio, config, resourceParams, response) {
598
- const snapshot = ingestError$5(luvio, resourceParams, response, {
597
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
598
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
599
599
  config,
600
- resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
600
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
601
601
  });
602
602
  return luvio.storeBroadcast().then(() => snapshot);
603
603
  }
604
- function buildNetworkSnapshot$g(luvio, config, options) {
605
- const resourceParams = createResourceParams$g(config);
606
- const request = createResourceRequest$g(resourceParams);
604
+ function buildNetworkSnapshot$h(luvio, config, options) {
605
+ const resourceParams = createResourceParams$h(config);
606
+ const request = createResourceRequest$h(resourceParams);
607
607
  return luvio.dispatchResourceRequest(request, options)
608
608
  .then((response) => {
609
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
609
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
610
610
  const cache = new StoreKeyMap();
611
- getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
611
+ getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
612
612
  return cache;
613
613
  });
614
614
  }, (response) => {
615
- return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
615
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
616
616
  });
617
617
  }
618
- function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
618
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
619
619
  const { luvio, config } = context;
620
620
  const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
621
621
  const dispatchOptions = {
@@ -630,29 +630,29 @@ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext
630
630
  priority: networkPriority
631
631
  };
632
632
  }
633
- return buildNetworkSnapshot$g(luvio, config, dispatchOptions);
633
+ return buildNetworkSnapshot$h(luvio, config, dispatchOptions);
634
634
  }
635
- function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
635
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
636
636
  const { luvio, config } = context;
637
637
  const selector = {
638
- recordId: keyBuilder$i(luvio, config),
639
- node: adapterFragment$5(luvio, config),
638
+ recordId: keyBuilder$k(luvio, config),
639
+ node: adapterFragment$6(luvio, config),
640
640
  variables: {},
641
641
  };
642
642
  const cacheSnapshot = storeLookup(selector, {
643
643
  config,
644
- resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
644
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
645
645
  });
646
646
  return cacheSnapshot;
647
647
  }
648
648
  const getContractDocumentVersionAdapterFactory = (luvio) => function clm__getContractDocumentVersion(untrustedConfig, requestContext) {
649
- const config = validateAdapterConfig$g(untrustedConfig, getContractDocumentVersion_ConfigPropertyNames);
649
+ const config = validateAdapterConfig$h(untrustedConfig, getContractDocumentVersion_ConfigPropertyNames);
650
650
  // Invalid or incomplete config
651
651
  if (config === null) {
652
652
  return null;
653
653
  }
654
654
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
655
- buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
655
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
656
656
  };
657
657
 
658
658
  function validate$d(obj, path = 'TemplateInputRepresentation') {
@@ -660,6 +660,13 @@ function validate$d(obj, path = 'TemplateInputRepresentation') {
660
660
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
661
661
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
662
662
  }
663
+ if (obj.isExternalReviewImport !== undefined) {
664
+ const obj_isExternalReviewImport = obj.isExternalReviewImport;
665
+ const path_isExternalReviewImport = path + '.isExternalReviewImport';
666
+ if (typeof obj_isExternalReviewImport !== 'boolean') {
667
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isExternalReviewImport + '" (at "' + path_isExternalReviewImport + '")');
668
+ }
669
+ }
663
670
  if (obj.pdfDocumentId !== undefined) {
664
671
  const obj_pdfDocumentId = obj.pdfDocumentId;
665
672
  const path_pdfDocumentId = path + '.pdfDocumentId';
@@ -731,7 +738,7 @@ function validate$c(obj, path = 'ContentDocumentRepresentation') {
731
738
  })();
732
739
  return v_error === undefined ? null : v_error;
733
740
  }
734
- const select$m = function ContentDocumentRepresentationSelect() {
741
+ const select$n = function ContentDocumentRepresentationSelect() {
735
742
  return {
736
743
  kind: 'Fragment',
737
744
  version: VERSION$8,
@@ -870,19 +877,19 @@ function validate$b(obj, path = 'DocumentGenerateRepresentation') {
870
877
  return v_error === undefined ? null : v_error;
871
878
  }
872
879
  const RepresentationType$7 = 'DocumentGenerateRepresentation';
873
- function keyBuilder$h(luvio, config) {
880
+ function keyBuilder$j(luvio, config) {
874
881
  return keyPrefix + '::' + RepresentationType$7 + ':' + config.contractId;
875
882
  }
876
883
  function keyBuilderFromType$5(luvio, object) {
877
884
  const keyParams = {
878
885
  contractId: object.contractId
879
886
  };
880
- return keyBuilder$h(luvio, keyParams);
887
+ return keyBuilder$j(luvio, keyParams);
881
888
  }
882
889
  function normalize$7(input, existing, path, luvio, store, timestamp) {
883
890
  return input;
884
891
  }
885
- const select$l = function DocumentGenerateRepresentationSelect() {
892
+ const select$m = function DocumentGenerateRepresentationSelect() {
886
893
  return {
887
894
  kind: 'Fragment',
888
895
  version: VERSION$7,
@@ -936,19 +943,19 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
936
943
  });
937
944
  }
938
945
 
939
- function select$k(luvio, params) {
940
- return select$l();
946
+ function select$l(luvio, params) {
947
+ return select$m();
941
948
  }
942
- function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
949
+ function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
943
950
  getTypeCacheKeys$7(storeKeyMap, luvio, response);
944
951
  }
945
- function ingestSuccess$d(luvio, resourceParams, response) {
952
+ function ingestSuccess$e(luvio, resourceParams, response) {
946
953
  const { body } = response;
947
954
  const key = keyBuilderFromType$5(luvio, body);
948
955
  luvio.storeIngest(key, ingest$7, body);
949
956
  const snapshot = luvio.storeLookup({
950
957
  recordId: key,
951
- node: select$k(),
958
+ node: select$l(),
952
959
  variables: {},
953
960
  });
954
961
  if (process.env.NODE_ENV !== 'production') {
@@ -959,7 +966,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
959
966
  deepFreeze(snapshot.data);
960
967
  return snapshot;
961
968
  }
962
- function createResourceRequest$f(config) {
969
+ function createResourceRequest$g(config) {
963
970
  const headers = {};
964
971
  return {
965
972
  baseUri: '/services/data/v59.0',
@@ -980,7 +987,7 @@ const createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPr
980
987
  optional: []
981
988
  }
982
989
  };
983
- function createResourceParams$f(config) {
990
+ function createResourceParams$g(config) {
984
991
  const resourceParams = {
985
992
  urlParams: {
986
993
  contractId: config.contractId
@@ -991,7 +998,7 @@ function createResourceParams$f(config) {
991
998
  };
992
999
  return resourceParams;
993
1000
  }
994
- function typeCheckConfig$f(untrustedConfig) {
1001
+ function typeCheckConfig$g(untrustedConfig) {
995
1002
  const config = {};
996
1003
  const untrustedConfig_contractId = untrustedConfig.contractId;
997
1004
  if (typeof untrustedConfig_contractId === 'string') {
@@ -1004,30 +1011,30 @@ function typeCheckConfig$f(untrustedConfig) {
1004
1011
  }
1005
1012
  return config;
1006
1013
  }
1007
- function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
1014
+ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
1008
1015
  if (!untrustedIsObject(untrustedConfig)) {
1009
1016
  return null;
1010
1017
  }
1011
1018
  if (process.env.NODE_ENV !== 'production') {
1012
1019
  validateConfig(untrustedConfig, configPropertyNames);
1013
1020
  }
1014
- const config = typeCheckConfig$f(untrustedConfig);
1021
+ const config = typeCheckConfig$g(untrustedConfig);
1015
1022
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1016
1023
  return null;
1017
1024
  }
1018
1025
  return config;
1019
1026
  }
1020
- function buildNetworkSnapshot$f(luvio, config, options) {
1021
- const resourceParams = createResourceParams$f(config);
1022
- const request = createResourceRequest$f(resourceParams);
1027
+ function buildNetworkSnapshot$g(luvio, config, options) {
1028
+ const resourceParams = createResourceParams$g(config);
1029
+ const request = createResourceRequest$g(resourceParams);
1023
1030
  return luvio.dispatchResourceRequest(request, options)
1024
1031
  .then((response) => {
1025
1032
  return luvio.handleSuccessResponse(() => {
1026
- const snapshot = ingestSuccess$d(luvio, resourceParams, response);
1033
+ const snapshot = ingestSuccess$e(luvio, resourceParams, response);
1027
1034
  return luvio.storeBroadcast().then(() => snapshot);
1028
1035
  }, () => {
1029
1036
  const cache = new StoreKeyMap();
1030
- getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
1037
+ getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
1031
1038
  return cache;
1032
1039
  });
1033
1040
  }, (response) => {
@@ -1037,12 +1044,12 @@ function buildNetworkSnapshot$f(luvio, config, options) {
1037
1044
  }
1038
1045
  const createContractDocumentVersionAndInitializeGenerateDocumentProcessAdapterFactory = (luvio) => {
1039
1046
  return function createContractDocumentVersionAndInitializeGenerateDocumentProcess(untrustedConfig) {
1040
- const config = validateAdapterConfig$f(untrustedConfig, createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyNames);
1047
+ const config = validateAdapterConfig$g(untrustedConfig, createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyNames);
1041
1048
  // Invalid or incomplete config
1042
1049
  if (config === null) {
1043
1050
  throw new Error('Invalid config for "createContractDocumentVersionAndInitializeGenerateDocumentProcess"');
1044
1051
  }
1045
- return buildNetworkSnapshot$f(luvio, config);
1052
+ return buildNetworkSnapshot$g(luvio, config);
1046
1053
  };
1047
1054
  };
1048
1055
 
@@ -1136,19 +1143,19 @@ function validate$9(obj, path = 'ContractActionListRepresentation') {
1136
1143
  return v_error === undefined ? null : v_error;
1137
1144
  }
1138
1145
  const RepresentationType$6 = 'ContractActionListRepresentation';
1139
- function keyBuilder$g(luvio, config) {
1146
+ function keyBuilder$i(luvio, config) {
1140
1147
  return keyPrefix + '::' + RepresentationType$6 + ':' + config.contractId;
1141
1148
  }
1142
1149
  function keyBuilderFromType$4(luvio, object) {
1143
1150
  const keyParams = {
1144
1151
  contractId: object.contractId
1145
1152
  };
1146
- return keyBuilder$g(luvio, keyParams);
1153
+ return keyBuilder$i(luvio, keyParams);
1147
1154
  }
1148
1155
  function normalize$6(input, existing, path, luvio, store, timestamp) {
1149
1156
  return input;
1150
1157
  }
1151
- const select$j = function ContractActionListRepresentationSelect() {
1158
+ const select$k = function ContractActionListRepresentationSelect() {
1152
1159
  return {
1153
1160
  kind: 'Fragment',
1154
1161
  version: VERSION$6,
@@ -1202,24 +1209,24 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1202
1209
  });
1203
1210
  }
1204
1211
 
1205
- function select$i(luvio, params) {
1206
- return select$j();
1212
+ function select$j(luvio, params) {
1213
+ return select$k();
1207
1214
  }
1208
- function keyBuilder$f(luvio, params) {
1209
- return keyBuilder$g(luvio, {
1215
+ function keyBuilder$h(luvio, params) {
1216
+ return keyBuilder$i(luvio, {
1210
1217
  contractId: params.urlParams.contractId
1211
1218
  });
1212
1219
  }
1213
- function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
1220
+ function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
1214
1221
  getTypeCacheKeys$6(storeKeyMap, luvio, response);
1215
1222
  }
1216
- function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
1223
+ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
1217
1224
  const { body } = response;
1218
- const key = keyBuilder$f(luvio, resourceParams);
1225
+ const key = keyBuilder$h(luvio, resourceParams);
1219
1226
  luvio.storeIngest(key, ingest$6, body);
1220
1227
  const snapshot = luvio.storeLookup({
1221
1228
  recordId: key,
1222
- node: select$i(),
1229
+ node: select$j(),
1223
1230
  variables: {},
1224
1231
  }, snapshotRefresh);
1225
1232
  if (process.env.NODE_ENV !== 'production') {
@@ -1230,8 +1237,8 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
1230
1237
  deepFreeze(snapshot.data);
1231
1238
  return snapshot;
1232
1239
  }
1233
- function ingestError$4(luvio, params, error, snapshotRefresh) {
1234
- const key = keyBuilder$f(luvio, params);
1240
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
1241
+ const key = keyBuilder$h(luvio, params);
1235
1242
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1236
1243
  const storeMetadataParams = {
1237
1244
  ttl: TTL$5,
@@ -1242,7 +1249,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
1242
1249
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1243
1250
  return errorSnapshot;
1244
1251
  }
1245
- function createResourceRequest$e(config) {
1252
+ function createResourceRequest$f(config) {
1246
1253
  const headers = {};
1247
1254
  return {
1248
1255
  baseUri: '/services/data/v59.0',
@@ -1263,7 +1270,7 @@ const getContractActions_ConfigPropertyNames = {
1263
1270
  optional: []
1264
1271
  }
1265
1272
  };
1266
- function createResourceParams$e(config) {
1273
+ function createResourceParams$f(config) {
1267
1274
  const resourceParams = {
1268
1275
  urlParams: {
1269
1276
  contractId: config.contractId
@@ -1271,11 +1278,11 @@ function createResourceParams$e(config) {
1271
1278
  };
1272
1279
  return resourceParams;
1273
1280
  }
1274
- function keyBuilder$e(luvio, config) {
1275
- const resourceParams = createResourceParams$e(config);
1276
- return keyBuilder$f(luvio, resourceParams);
1281
+ function keyBuilder$g(luvio, config) {
1282
+ const resourceParams = createResourceParams$f(config);
1283
+ return keyBuilder$h(luvio, resourceParams);
1277
1284
  }
1278
- function typeCheckConfig$e(untrustedConfig) {
1285
+ function typeCheckConfig$f(untrustedConfig) {
1279
1286
  const config = {};
1280
1287
  const untrustedConfig_contractId = untrustedConfig.contractId;
1281
1288
  if (typeof untrustedConfig_contractId === 'string') {
@@ -1283,52 +1290,52 @@ function typeCheckConfig$e(untrustedConfig) {
1283
1290
  }
1284
1291
  return config;
1285
1292
  }
1286
- function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
1293
+ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
1287
1294
  if (!untrustedIsObject(untrustedConfig)) {
1288
1295
  return null;
1289
1296
  }
1290
1297
  if (process.env.NODE_ENV !== 'production') {
1291
1298
  validateConfig(untrustedConfig, configPropertyNames);
1292
1299
  }
1293
- const config = typeCheckConfig$e(untrustedConfig);
1300
+ const config = typeCheckConfig$f(untrustedConfig);
1294
1301
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1295
1302
  return null;
1296
1303
  }
1297
1304
  return config;
1298
1305
  }
1299
- function adapterFragment$4(luvio, config) {
1300
- createResourceParams$e(config);
1301
- return select$i();
1306
+ function adapterFragment$5(luvio, config) {
1307
+ createResourceParams$f(config);
1308
+ return select$j();
1302
1309
  }
1303
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
1304
- const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
1310
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
1311
+ const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
1305
1312
  config,
1306
- resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
1313
+ resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
1307
1314
  });
1308
1315
  return luvio.storeBroadcast().then(() => snapshot);
1309
1316
  }
1310
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
1311
- const snapshot = ingestError$4(luvio, resourceParams, response, {
1317
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
1318
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
1312
1319
  config,
1313
- resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
1320
+ resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
1314
1321
  });
1315
1322
  return luvio.storeBroadcast().then(() => snapshot);
1316
1323
  }
1317
- function buildNetworkSnapshot$e(luvio, config, options) {
1318
- const resourceParams = createResourceParams$e(config);
1319
- const request = createResourceRequest$e(resourceParams);
1324
+ function buildNetworkSnapshot$f(luvio, config, options) {
1325
+ const resourceParams = createResourceParams$f(config);
1326
+ const request = createResourceRequest$f(resourceParams);
1320
1327
  return luvio.dispatchResourceRequest(request, options)
1321
1328
  .then((response) => {
1322
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
1329
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
1323
1330
  const cache = new StoreKeyMap();
1324
- getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
1331
+ getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
1325
1332
  return cache;
1326
1333
  });
1327
1334
  }, (response) => {
1328
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
1335
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
1329
1336
  });
1330
1337
  }
1331
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
1338
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
1332
1339
  const { luvio, config } = context;
1333
1340
  const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1334
1341
  const dispatchOptions = {
@@ -1343,44 +1350,44 @@ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext
1343
1350
  priority: networkPriority
1344
1351
  };
1345
1352
  }
1346
- return buildNetworkSnapshot$e(luvio, config, dispatchOptions);
1353
+ return buildNetworkSnapshot$f(luvio, config, dispatchOptions);
1347
1354
  }
1348
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
1355
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
1349
1356
  const { luvio, config } = context;
1350
1357
  const selector = {
1351
- recordId: keyBuilder$e(luvio, config),
1352
- node: adapterFragment$4(luvio, config),
1358
+ recordId: keyBuilder$g(luvio, config),
1359
+ node: adapterFragment$5(luvio, config),
1353
1360
  variables: {},
1354
1361
  };
1355
1362
  const cacheSnapshot = storeLookup(selector, {
1356
1363
  config,
1357
- resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
1364
+ resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
1358
1365
  });
1359
1366
  return cacheSnapshot;
1360
1367
  }
1361
1368
  const getContractActionsAdapterFactory = (luvio) => function clm__getContractActions(untrustedConfig, requestContext) {
1362
- const config = validateAdapterConfig$e(untrustedConfig, getContractActions_ConfigPropertyNames);
1369
+ const config = validateAdapterConfig$f(untrustedConfig, getContractActions_ConfigPropertyNames);
1363
1370
  // Invalid or incomplete config
1364
1371
  if (config === null) {
1365
1372
  return null;
1366
1373
  }
1367
1374
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1368
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
1375
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
1369
1376
  };
1370
1377
 
1371
- function select$h(luvio, params) {
1372
- return select$l();
1378
+ function select$i(luvio, params) {
1379
+ return select$m();
1373
1380
  }
1374
- function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
1381
+ function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
1375
1382
  getTypeCacheKeys$7(storeKeyMap, luvio, response);
1376
1383
  }
1377
- function ingestSuccess$b(luvio, resourceParams, response) {
1384
+ function ingestSuccess$c(luvio, resourceParams, response) {
1378
1385
  const { body } = response;
1379
1386
  const key = keyBuilderFromType$5(luvio, body);
1380
1387
  luvio.storeIngest(key, ingest$7, body);
1381
1388
  const snapshot = luvio.storeLookup({
1382
1389
  recordId: key,
1383
- node: select$h(),
1390
+ node: select$i(),
1384
1391
  variables: {},
1385
1392
  });
1386
1393
  if (process.env.NODE_ENV !== 'production') {
@@ -1391,7 +1398,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
1391
1398
  deepFreeze(snapshot.data);
1392
1399
  return snapshot;
1393
1400
  }
1394
- function createResourceRequest$d(config) {
1401
+ function createResourceRequest$e(config) {
1395
1402
  const headers = {};
1396
1403
  return {
1397
1404
  baseUri: '/services/data/v59.0',
@@ -1412,7 +1419,7 @@ const updateContractDocumentVersionWithTemplate_ConfigPropertyNames = {
1412
1419
  optional: []
1413
1420
  }
1414
1421
  };
1415
- function createResourceParams$d(config) {
1422
+ function createResourceParams$e(config) {
1416
1423
  const resourceParams = {
1417
1424
  urlParams: {
1418
1425
  contractDocumentVersionId: config.contractDocumentVersionId
@@ -1423,7 +1430,7 @@ function createResourceParams$d(config) {
1423
1430
  };
1424
1431
  return resourceParams;
1425
1432
  }
1426
- function typeCheckConfig$d(untrustedConfig) {
1433
+ function typeCheckConfig$e(untrustedConfig) {
1427
1434
  const config = {};
1428
1435
  const untrustedConfig_contractDocumentVersionId = untrustedConfig.contractDocumentVersionId;
1429
1436
  if (typeof untrustedConfig_contractDocumentVersionId === 'string') {
@@ -1436,30 +1443,30 @@ function typeCheckConfig$d(untrustedConfig) {
1436
1443
  }
1437
1444
  return config;
1438
1445
  }
1439
- function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
1446
+ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
1440
1447
  if (!untrustedIsObject(untrustedConfig)) {
1441
1448
  return null;
1442
1449
  }
1443
1450
  if (process.env.NODE_ENV !== 'production') {
1444
1451
  validateConfig(untrustedConfig, configPropertyNames);
1445
1452
  }
1446
- const config = typeCheckConfig$d(untrustedConfig);
1453
+ const config = typeCheckConfig$e(untrustedConfig);
1447
1454
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1448
1455
  return null;
1449
1456
  }
1450
1457
  return config;
1451
1458
  }
1452
- function buildNetworkSnapshot$d(luvio, config, options) {
1453
- const resourceParams = createResourceParams$d(config);
1454
- const request = createResourceRequest$d(resourceParams);
1459
+ function buildNetworkSnapshot$e(luvio, config, options) {
1460
+ const resourceParams = createResourceParams$e(config);
1461
+ const request = createResourceRequest$e(resourceParams);
1455
1462
  return luvio.dispatchResourceRequest(request, options)
1456
1463
  .then((response) => {
1457
1464
  return luvio.handleSuccessResponse(() => {
1458
- const snapshot = ingestSuccess$b(luvio, resourceParams, response);
1465
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response);
1459
1466
  return luvio.storeBroadcast().then(() => snapshot);
1460
1467
  }, () => {
1461
1468
  const cache = new StoreKeyMap();
1462
- getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
1469
+ getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
1463
1470
  return cache;
1464
1471
  });
1465
1472
  }, (response) => {
@@ -1469,28 +1476,28 @@ function buildNetworkSnapshot$d(luvio, config, options) {
1469
1476
  }
1470
1477
  const updateContractDocumentVersionWithTemplateAdapterFactory = (luvio) => {
1471
1478
  return function updateContractDocumentVersionWithTemplate(untrustedConfig) {
1472
- const config = validateAdapterConfig$d(untrustedConfig, updateContractDocumentVersionWithTemplate_ConfigPropertyNames);
1479
+ const config = validateAdapterConfig$e(untrustedConfig, updateContractDocumentVersionWithTemplate_ConfigPropertyNames);
1473
1480
  // Invalid or incomplete config
1474
1481
  if (config === null) {
1475
1482
  throw new Error('Invalid config for "updateContractDocumentVersionWithTemplate"');
1476
1483
  }
1477
- return buildNetworkSnapshot$d(luvio, config);
1484
+ return buildNetworkSnapshot$e(luvio, config);
1478
1485
  };
1479
1486
  };
1480
1487
 
1481
- function select$g(luvio, params) {
1482
- return select$q();
1488
+ function select$h(luvio, params) {
1489
+ return select$r();
1483
1490
  }
1484
- function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
1491
+ function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
1485
1492
  getTypeCacheKeys$9(storeKeyMap, luvio, response);
1486
1493
  }
1487
- function ingestSuccess$a(luvio, resourceParams, response) {
1494
+ function ingestSuccess$b(luvio, resourceParams, response) {
1488
1495
  const { body } = response;
1489
1496
  const key = keyBuilderFromType$6(luvio, body);
1490
1497
  luvio.storeIngest(key, ingest$9, body);
1491
1498
  const snapshot = luvio.storeLookup({
1492
1499
  recordId: key,
1493
- node: select$g(),
1500
+ node: select$h(),
1494
1501
  variables: {},
1495
1502
  });
1496
1503
  if (process.env.NODE_ENV !== 'production') {
@@ -1501,7 +1508,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
1501
1508
  deepFreeze(snapshot.data);
1502
1509
  return snapshot;
1503
1510
  }
1504
- function createResourceRequest$c(config) {
1511
+ function createResourceRequest$d(config) {
1505
1512
  const headers = {};
1506
1513
  return {
1507
1514
  baseUri: '/services/data/v59.0',
@@ -1522,7 +1529,7 @@ const checkIn_ConfigPropertyNames = {
1522
1529
  optional: []
1523
1530
  }
1524
1531
  };
1525
- function createResourceParams$c(config) {
1532
+ function createResourceParams$d(config) {
1526
1533
  const resourceParams = {
1527
1534
  urlParams: {
1528
1535
  contractDocumentVersionId: config.contractDocumentVersionId
@@ -1530,7 +1537,7 @@ function createResourceParams$c(config) {
1530
1537
  };
1531
1538
  return resourceParams;
1532
1539
  }
1533
- function typeCheckConfig$c(untrustedConfig) {
1540
+ function typeCheckConfig$d(untrustedConfig) {
1534
1541
  const config = {};
1535
1542
  const untrustedConfig_contractDocumentVersionId = untrustedConfig.contractDocumentVersionId;
1536
1543
  if (typeof untrustedConfig_contractDocumentVersionId === 'string') {
@@ -1538,30 +1545,30 @@ function typeCheckConfig$c(untrustedConfig) {
1538
1545
  }
1539
1546
  return config;
1540
1547
  }
1541
- function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
1548
+ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
1542
1549
  if (!untrustedIsObject(untrustedConfig)) {
1543
1550
  return null;
1544
1551
  }
1545
1552
  if (process.env.NODE_ENV !== 'production') {
1546
1553
  validateConfig(untrustedConfig, configPropertyNames);
1547
1554
  }
1548
- const config = typeCheckConfig$c(untrustedConfig);
1555
+ const config = typeCheckConfig$d(untrustedConfig);
1549
1556
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1550
1557
  return null;
1551
1558
  }
1552
1559
  return config;
1553
1560
  }
1554
- function buildNetworkSnapshot$c(luvio, config, options) {
1555
- const resourceParams = createResourceParams$c(config);
1556
- const request = createResourceRequest$c(resourceParams);
1561
+ function buildNetworkSnapshot$d(luvio, config, options) {
1562
+ const resourceParams = createResourceParams$d(config);
1563
+ const request = createResourceRequest$d(resourceParams);
1557
1564
  return luvio.dispatchResourceRequest(request, options)
1558
1565
  .then((response) => {
1559
1566
  return luvio.handleSuccessResponse(() => {
1560
- const snapshot = ingestSuccess$a(luvio, resourceParams, response);
1567
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response);
1561
1568
  return luvio.storeBroadcast().then(() => snapshot);
1562
1569
  }, () => {
1563
1570
  const cache = new StoreKeyMap();
1564
- getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
1571
+ getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
1565
1572
  return cache;
1566
1573
  });
1567
1574
  }, (response) => {
@@ -1571,28 +1578,28 @@ function buildNetworkSnapshot$c(luvio, config, options) {
1571
1578
  }
1572
1579
  const checkInAdapterFactory = (luvio) => {
1573
1580
  return function checkIn(untrustedConfig) {
1574
- const config = validateAdapterConfig$c(untrustedConfig, checkIn_ConfigPropertyNames);
1581
+ const config = validateAdapterConfig$d(untrustedConfig, checkIn_ConfigPropertyNames);
1575
1582
  // Invalid or incomplete config
1576
1583
  if (config === null) {
1577
1584
  throw new Error('Invalid config for "checkIn"');
1578
1585
  }
1579
- return buildNetworkSnapshot$c(luvio, config);
1586
+ return buildNetworkSnapshot$d(luvio, config);
1580
1587
  };
1581
1588
  };
1582
1589
 
1583
- function select$f(luvio, params) {
1584
- return select$l();
1590
+ function select$g(luvio, params) {
1591
+ return select$m();
1585
1592
  }
1586
- function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
1593
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
1587
1594
  getTypeCacheKeys$7(storeKeyMap, luvio, response);
1588
1595
  }
1589
- function ingestSuccess$9(luvio, resourceParams, response) {
1596
+ function ingestSuccess$a(luvio, resourceParams, response) {
1590
1597
  const { body } = response;
1591
1598
  const key = keyBuilderFromType$5(luvio, body);
1592
1599
  luvio.storeIngest(key, ingest$7, body);
1593
1600
  const snapshot = luvio.storeLookup({
1594
1601
  recordId: key,
1595
- node: select$f(),
1602
+ node: select$g(),
1596
1603
  variables: {},
1597
1604
  });
1598
1605
  if (process.env.NODE_ENV !== 'production') {
@@ -1603,7 +1610,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
1603
1610
  deepFreeze(snapshot.data);
1604
1611
  return snapshot;
1605
1612
  }
1606
- function createResourceRequest$b(config) {
1613
+ function createResourceRequest$c(config) {
1607
1614
  const headers = {};
1608
1615
  return {
1609
1616
  baseUri: '/services/data/v59.0',
@@ -1624,7 +1631,7 @@ const checkoutContractDocumentVersion_ConfigPropertyNames = {
1624
1631
  optional: []
1625
1632
  }
1626
1633
  };
1627
- function createResourceParams$b(config) {
1634
+ function createResourceParams$c(config) {
1628
1635
  const resourceParams = {
1629
1636
  urlParams: {
1630
1637
  contractDocumentVersionId: config.contractDocumentVersionId
@@ -1635,7 +1642,7 @@ function createResourceParams$b(config) {
1635
1642
  };
1636
1643
  return resourceParams;
1637
1644
  }
1638
- function typeCheckConfig$b(untrustedConfig) {
1645
+ function typeCheckConfig$c(untrustedConfig) {
1639
1646
  const config = {};
1640
1647
  const untrustedConfig_contractDocumentVersionId = untrustedConfig.contractDocumentVersionId;
1641
1648
  if (typeof untrustedConfig_contractDocumentVersionId === 'string') {
@@ -1648,30 +1655,30 @@ function typeCheckConfig$b(untrustedConfig) {
1648
1655
  }
1649
1656
  return config;
1650
1657
  }
1651
- function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
1658
+ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
1652
1659
  if (!untrustedIsObject(untrustedConfig)) {
1653
1660
  return null;
1654
1661
  }
1655
1662
  if (process.env.NODE_ENV !== 'production') {
1656
1663
  validateConfig(untrustedConfig, configPropertyNames);
1657
1664
  }
1658
- const config = typeCheckConfig$b(untrustedConfig);
1665
+ const config = typeCheckConfig$c(untrustedConfig);
1659
1666
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1660
1667
  return null;
1661
1668
  }
1662
1669
  return config;
1663
1670
  }
1664
- function buildNetworkSnapshot$b(luvio, config, options) {
1665
- const resourceParams = createResourceParams$b(config);
1666
- const request = createResourceRequest$b(resourceParams);
1671
+ function buildNetworkSnapshot$c(luvio, config, options) {
1672
+ const resourceParams = createResourceParams$c(config);
1673
+ const request = createResourceRequest$c(resourceParams);
1667
1674
  return luvio.dispatchResourceRequest(request, options)
1668
1675
  .then((response) => {
1669
1676
  return luvio.handleSuccessResponse(() => {
1670
- const snapshot = ingestSuccess$9(luvio, resourceParams, response);
1677
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response);
1671
1678
  return luvio.storeBroadcast().then(() => snapshot);
1672
1679
  }, () => {
1673
1680
  const cache = new StoreKeyMap();
1674
- getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
1681
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
1675
1682
  return cache;
1676
1683
  });
1677
1684
  }, (response) => {
@@ -1681,12 +1688,12 @@ function buildNetworkSnapshot$b(luvio, config, options) {
1681
1688
  }
1682
1689
  const checkoutContractDocumentVersionAdapterFactory = (luvio) => {
1683
1690
  return function checkoutContractDocumentVersion(untrustedConfig) {
1684
- const config = validateAdapterConfig$b(untrustedConfig, checkoutContractDocumentVersion_ConfigPropertyNames);
1691
+ const config = validateAdapterConfig$c(untrustedConfig, checkoutContractDocumentVersion_ConfigPropertyNames);
1685
1692
  // Invalid or incomplete config
1686
1693
  if (config === null) {
1687
1694
  throw new Error('Invalid config for "checkoutContractDocumentVersion"');
1688
1695
  }
1689
- return buildNetworkSnapshot$b(luvio, config);
1696
+ return buildNetworkSnapshot$c(luvio, config);
1690
1697
  };
1691
1698
  };
1692
1699
 
@@ -1723,19 +1730,19 @@ function validate$8(obj, path = 'ContentDocumentListRepresentation') {
1723
1730
  return v_error === undefined ? null : v_error;
1724
1731
  }
1725
1732
  const RepresentationType$5 = 'ContentDocumentListRepresentation';
1726
- function keyBuilder$d(luvio, config) {
1733
+ function keyBuilder$f(luvio, config) {
1727
1734
  return keyPrefix + '::' + RepresentationType$5 + ':' + config.contractDocumentVersionId;
1728
1735
  }
1729
1736
  function keyBuilderFromType$3(luvio, object) {
1730
1737
  const keyParams = {
1731
1738
  contractDocumentVersionId: object.contractDocumentVersionId
1732
1739
  };
1733
- return keyBuilder$d(luvio, keyParams);
1740
+ return keyBuilder$f(luvio, keyParams);
1734
1741
  }
1735
1742
  function normalize$5(input, existing, path, luvio, store, timestamp) {
1736
1743
  return input;
1737
1744
  }
1738
- const select$e = function ContentDocumentListRepresentationSelect() {
1745
+ const select$f = function ContentDocumentListRepresentationSelect() {
1739
1746
  return {
1740
1747
  kind: 'Fragment',
1741
1748
  version: VERSION$5,
@@ -1789,13 +1796,13 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1789
1796
  });
1790
1797
  }
1791
1798
 
1792
- function keyBuilder$c(luvio, params) {
1793
- return keyBuilder$d(luvio, {
1799
+ function keyBuilder$e(luvio, params) {
1800
+ return keyBuilder$f(luvio, {
1794
1801
  contractDocumentVersionId: params.urlParams.contractDocumentVersionId
1795
1802
  });
1796
1803
  }
1797
- function getResponseCacheKeys$a(cacheKeyMap, luvio, resourceParams) {
1798
- const key = keyBuilder$c(luvio, resourceParams);
1804
+ function getResponseCacheKeys$b(cacheKeyMap, luvio, resourceParams) {
1805
+ const key = keyBuilder$e(luvio, resourceParams);
1799
1806
  cacheKeyMap.set(key, {
1800
1807
  namespace: keyPrefix,
1801
1808
  representationName: RepresentationType$5,
@@ -1803,10 +1810,10 @@ function getResponseCacheKeys$a(cacheKeyMap, luvio, resourceParams) {
1803
1810
  });
1804
1811
  }
1805
1812
  function evictSuccess$1(luvio, resourceParams) {
1806
- const key = keyBuilder$c(luvio, resourceParams);
1813
+ const key = keyBuilder$e(luvio, resourceParams);
1807
1814
  luvio.storeEvict(key);
1808
1815
  }
1809
- function createResourceRequest$a(config) {
1816
+ function createResourceRequest$b(config) {
1810
1817
  const headers = {};
1811
1818
  return {
1812
1819
  baseUri: '/services/data/v59.0',
@@ -1828,7 +1835,7 @@ const deleteAttachment_ConfigPropertyNames = {
1828
1835
  optional: ['contentDocumentId']
1829
1836
  }
1830
1837
  };
1831
- function createResourceParams$a(config) {
1838
+ function createResourceParams$b(config) {
1832
1839
  const resourceParams = {
1833
1840
  urlParams: {
1834
1841
  contractDocumentVersionId: config.contractDocumentVersionId
@@ -1839,7 +1846,7 @@ function createResourceParams$a(config) {
1839
1846
  };
1840
1847
  return resourceParams;
1841
1848
  }
1842
- function typeCheckConfig$a(untrustedConfig) {
1849
+ function typeCheckConfig$b(untrustedConfig) {
1843
1850
  const config = {};
1844
1851
  const untrustedConfig_contractDocumentVersionId = untrustedConfig.contractDocumentVersionId;
1845
1852
  if (typeof untrustedConfig_contractDocumentVersionId === 'string') {
@@ -1851,22 +1858,22 @@ function typeCheckConfig$a(untrustedConfig) {
1851
1858
  }
1852
1859
  return config;
1853
1860
  }
1854
- function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
1861
+ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
1855
1862
  if (!untrustedIsObject(untrustedConfig)) {
1856
1863
  return null;
1857
1864
  }
1858
1865
  if (process.env.NODE_ENV !== 'production') {
1859
1866
  validateConfig(untrustedConfig, configPropertyNames);
1860
1867
  }
1861
- const config = typeCheckConfig$a(untrustedConfig);
1868
+ const config = typeCheckConfig$b(untrustedConfig);
1862
1869
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1863
1870
  return null;
1864
1871
  }
1865
1872
  return config;
1866
1873
  }
1867
- function buildNetworkSnapshot$a(luvio, config, options) {
1868
- const resourceParams = createResourceParams$a(config);
1869
- const request = createResourceRequest$a(resourceParams);
1874
+ function buildNetworkSnapshot$b(luvio, config, options) {
1875
+ const resourceParams = createResourceParams$b(config);
1876
+ const request = createResourceRequest$b(resourceParams);
1870
1877
  return luvio.dispatchResourceRequest(request, options)
1871
1878
  .then(() => {
1872
1879
  return luvio.handleSuccessResponse(() => {
@@ -1874,7 +1881,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
1874
1881
  return luvio.storeBroadcast();
1875
1882
  }, () => {
1876
1883
  const cache = new StoreKeyMap();
1877
- getResponseCacheKeys$a(cache, luvio, resourceParams);
1884
+ getResponseCacheKeys$b(cache, luvio, resourceParams);
1878
1885
  return cache;
1879
1886
  });
1880
1887
  }, (response) => {
@@ -1884,33 +1891,33 @@ function buildNetworkSnapshot$a(luvio, config, options) {
1884
1891
  }
1885
1892
  const deleteAttachmentAdapterFactory = (luvio) => {
1886
1893
  return function clmdeleteAttachment(untrustedConfig) {
1887
- const config = validateAdapterConfig$a(untrustedConfig, deleteAttachment_ConfigPropertyNames);
1894
+ const config = validateAdapterConfig$b(untrustedConfig, deleteAttachment_ConfigPropertyNames);
1888
1895
  // Invalid or incomplete config
1889
1896
  if (config === null) {
1890
1897
  throw new Error(`Invalid config for "${adapterName$1}"`);
1891
1898
  }
1892
- return buildNetworkSnapshot$a(luvio, config);
1899
+ return buildNetworkSnapshot$b(luvio, config);
1893
1900
  };
1894
1901
  };
1895
1902
 
1896
- function select$d(luvio, params) {
1897
- return select$e();
1903
+ function select$e(luvio, params) {
1904
+ return select$f();
1898
1905
  }
1899
- function keyBuilder$b(luvio, params) {
1900
- return keyBuilder$d(luvio, {
1906
+ function keyBuilder$d(luvio, params) {
1907
+ return keyBuilder$f(luvio, {
1901
1908
  contractDocumentVersionId: params.urlParams.contractDocumentVersionId
1902
1909
  });
1903
1910
  }
1904
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1911
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
1905
1912
  getTypeCacheKeys$5(storeKeyMap, luvio, response);
1906
1913
  }
1907
- function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
1914
+ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
1908
1915
  const { body } = response;
1909
- const key = keyBuilder$b(luvio, resourceParams);
1916
+ const key = keyBuilder$d(luvio, resourceParams);
1910
1917
  luvio.storeIngest(key, ingest$5, body);
1911
1918
  const snapshot = luvio.storeLookup({
1912
1919
  recordId: key,
1913
- node: select$d(),
1920
+ node: select$e(),
1914
1921
  variables: {},
1915
1922
  }, snapshotRefresh);
1916
1923
  if (process.env.NODE_ENV !== 'production') {
@@ -1921,8 +1928,8 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
1921
1928
  deepFreeze(snapshot.data);
1922
1929
  return snapshot;
1923
1930
  }
1924
- function ingestError$3(luvio, params, error, snapshotRefresh) {
1925
- const key = keyBuilder$b(luvio, params);
1931
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
1932
+ const key = keyBuilder$d(luvio, params);
1926
1933
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1927
1934
  const storeMetadataParams = {
1928
1935
  ttl: TTL$4,
@@ -1933,7 +1940,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
1933
1940
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1934
1941
  return errorSnapshot;
1935
1942
  }
1936
- function createResourceRequest$9(config) {
1943
+ function createResourceRequest$a(config) {
1937
1944
  const headers = {};
1938
1945
  return {
1939
1946
  baseUri: '/services/data/v59.0',
@@ -1954,7 +1961,7 @@ const getContentDocument_ConfigPropertyNames = {
1954
1961
  optional: []
1955
1962
  }
1956
1963
  };
1957
- function createResourceParams$9(config) {
1964
+ function createResourceParams$a(config) {
1958
1965
  const resourceParams = {
1959
1966
  urlParams: {
1960
1967
  contractDocumentVersionId: config.contractDocumentVersionId
@@ -1962,11 +1969,11 @@ function createResourceParams$9(config) {
1962
1969
  };
1963
1970
  return resourceParams;
1964
1971
  }
1965
- function keyBuilder$a(luvio, config) {
1966
- const resourceParams = createResourceParams$9(config);
1967
- return keyBuilder$b(luvio, resourceParams);
1972
+ function keyBuilder$c(luvio, config) {
1973
+ const resourceParams = createResourceParams$a(config);
1974
+ return keyBuilder$d(luvio, resourceParams);
1968
1975
  }
1969
- function typeCheckConfig$9(untrustedConfig) {
1976
+ function typeCheckConfig$a(untrustedConfig) {
1970
1977
  const config = {};
1971
1978
  const untrustedConfig_contractDocumentVersionId = untrustedConfig.contractDocumentVersionId;
1972
1979
  if (typeof untrustedConfig_contractDocumentVersionId === 'string') {
@@ -1974,52 +1981,52 @@ function typeCheckConfig$9(untrustedConfig) {
1974
1981
  }
1975
1982
  return config;
1976
1983
  }
1977
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1984
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
1978
1985
  if (!untrustedIsObject(untrustedConfig)) {
1979
1986
  return null;
1980
1987
  }
1981
1988
  if (process.env.NODE_ENV !== 'production') {
1982
1989
  validateConfig(untrustedConfig, configPropertyNames);
1983
1990
  }
1984
- const config = typeCheckConfig$9(untrustedConfig);
1991
+ const config = typeCheckConfig$a(untrustedConfig);
1985
1992
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1986
1993
  return null;
1987
1994
  }
1988
1995
  return config;
1989
1996
  }
1990
- function adapterFragment$3(luvio, config) {
1991
- createResourceParams$9(config);
1992
- return select$d();
1997
+ function adapterFragment$4(luvio, config) {
1998
+ createResourceParams$a(config);
1999
+ return select$e();
1993
2000
  }
1994
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
1995
- const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
2001
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2002
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
1996
2003
  config,
1997
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
2004
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
1998
2005
  });
1999
2006
  return luvio.storeBroadcast().then(() => snapshot);
2000
2007
  }
2001
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
2002
- const snapshot = ingestError$3(luvio, resourceParams, response, {
2008
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
2009
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
2003
2010
  config,
2004
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
2011
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
2005
2012
  });
2006
2013
  return luvio.storeBroadcast().then(() => snapshot);
2007
2014
  }
2008
- function buildNetworkSnapshot$9(luvio, config, options) {
2009
- const resourceParams = createResourceParams$9(config);
2010
- const request = createResourceRequest$9(resourceParams);
2015
+ function buildNetworkSnapshot$a(luvio, config, options) {
2016
+ const resourceParams = createResourceParams$a(config);
2017
+ const request = createResourceRequest$a(resourceParams);
2011
2018
  return luvio.dispatchResourceRequest(request, options)
2012
2019
  .then((response) => {
2013
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2020
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2014
2021
  const cache = new StoreKeyMap();
2015
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
2022
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
2016
2023
  return cache;
2017
2024
  });
2018
2025
  }, (response) => {
2019
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
2026
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2020
2027
  });
2021
2028
  }
2022
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2029
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2023
2030
  const { luvio, config } = context;
2024
2031
  const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
2025
2032
  const dispatchOptions = {
@@ -2034,44 +2041,44 @@ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext
2034
2041
  priority: networkPriority
2035
2042
  };
2036
2043
  }
2037
- return buildNetworkSnapshot$9(luvio, config, dispatchOptions);
2044
+ return buildNetworkSnapshot$a(luvio, config, dispatchOptions);
2038
2045
  }
2039
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2046
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2040
2047
  const { luvio, config } = context;
2041
2048
  const selector = {
2042
- recordId: keyBuilder$a(luvio, config),
2043
- node: adapterFragment$3(luvio, config),
2049
+ recordId: keyBuilder$c(luvio, config),
2050
+ node: adapterFragment$4(luvio, config),
2044
2051
  variables: {},
2045
2052
  };
2046
2053
  const cacheSnapshot = storeLookup(selector, {
2047
2054
  config,
2048
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
2055
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
2049
2056
  });
2050
2057
  return cacheSnapshot;
2051
2058
  }
2052
2059
  const getContentDocumentAdapterFactory = (luvio) => function clm__getContentDocument(untrustedConfig, requestContext) {
2053
- const config = validateAdapterConfig$9(untrustedConfig, getContentDocument_ConfigPropertyNames);
2060
+ const config = validateAdapterConfig$a(untrustedConfig, getContentDocument_ConfigPropertyNames);
2054
2061
  // Invalid or incomplete config
2055
2062
  if (config === null) {
2056
2063
  return null;
2057
2064
  }
2058
2065
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2059
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
2066
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2060
2067
  };
2061
2068
 
2062
- function select$c(luvio, params) {
2063
- return select$q();
2069
+ function select$d(luvio, params) {
2070
+ return select$r();
2064
2071
  }
2065
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
2072
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
2066
2073
  getTypeCacheKeys$9(storeKeyMap, luvio, response);
2067
2074
  }
2068
- function ingestSuccess$7(luvio, resourceParams, response) {
2075
+ function ingestSuccess$8(luvio, resourceParams, response) {
2069
2076
  const { body } = response;
2070
2077
  const key = keyBuilderFromType$6(luvio, body);
2071
2078
  luvio.storeIngest(key, ingest$9, body);
2072
2079
  const snapshot = luvio.storeLookup({
2073
2080
  recordId: key,
2074
- node: select$c(),
2081
+ node: select$d(),
2075
2082
  variables: {},
2076
2083
  });
2077
2084
  if (process.env.NODE_ENV !== 'production') {
@@ -2082,7 +2089,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
2082
2089
  deepFreeze(snapshot.data);
2083
2090
  return snapshot;
2084
2091
  }
2085
- function createResourceRequest$8(config) {
2092
+ function createResourceRequest$9(config) {
2086
2093
  const headers = {};
2087
2094
  return {
2088
2095
  baseUri: '/services/data/v59.0',
@@ -2103,7 +2110,7 @@ const lockContractDocumentVersion_ConfigPropertyNames = {
2103
2110
  optional: []
2104
2111
  }
2105
2112
  };
2106
- function createResourceParams$8(config) {
2113
+ function createResourceParams$9(config) {
2107
2114
  const resourceParams = {
2108
2115
  urlParams: {
2109
2116
  contractDocumentVersionId: config.contractDocumentVersionId
@@ -2111,7 +2118,7 @@ function createResourceParams$8(config) {
2111
2118
  };
2112
2119
  return resourceParams;
2113
2120
  }
2114
- function typeCheckConfig$8(untrustedConfig) {
2121
+ function typeCheckConfig$9(untrustedConfig) {
2115
2122
  const config = {};
2116
2123
  const untrustedConfig_contractDocumentVersionId = untrustedConfig.contractDocumentVersionId;
2117
2124
  if (typeof untrustedConfig_contractDocumentVersionId === 'string') {
@@ -2119,30 +2126,30 @@ function typeCheckConfig$8(untrustedConfig) {
2119
2126
  }
2120
2127
  return config;
2121
2128
  }
2122
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
2129
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
2123
2130
  if (!untrustedIsObject(untrustedConfig)) {
2124
2131
  return null;
2125
2132
  }
2126
2133
  if (process.env.NODE_ENV !== 'production') {
2127
2134
  validateConfig(untrustedConfig, configPropertyNames);
2128
2135
  }
2129
- const config = typeCheckConfig$8(untrustedConfig);
2136
+ const config = typeCheckConfig$9(untrustedConfig);
2130
2137
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2131
2138
  return null;
2132
2139
  }
2133
2140
  return config;
2134
2141
  }
2135
- function buildNetworkSnapshot$8(luvio, config, options) {
2136
- const resourceParams = createResourceParams$8(config);
2137
- const request = createResourceRequest$8(resourceParams);
2142
+ function buildNetworkSnapshot$9(luvio, config, options) {
2143
+ const resourceParams = createResourceParams$9(config);
2144
+ const request = createResourceRequest$9(resourceParams);
2138
2145
  return luvio.dispatchResourceRequest(request, options)
2139
2146
  .then((response) => {
2140
2147
  return luvio.handleSuccessResponse(() => {
2141
- const snapshot = ingestSuccess$7(luvio, resourceParams, response);
2148
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
2142
2149
  return luvio.storeBroadcast().then(() => snapshot);
2143
2150
  }, () => {
2144
2151
  const cache = new StoreKeyMap();
2145
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
2152
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
2146
2153
  return cache;
2147
2154
  });
2148
2155
  }, (response) => {
@@ -2152,15 +2159,179 @@ function buildNetworkSnapshot$8(luvio, config, options) {
2152
2159
  }
2153
2160
  const lockContractDocumentVersionAdapterFactory = (luvio) => {
2154
2161
  return function lockContractDocumentVersion(untrustedConfig) {
2155
- const config = validateAdapterConfig$8(untrustedConfig, lockContractDocumentVersion_ConfigPropertyNames);
2162
+ const config = validateAdapterConfig$9(untrustedConfig, lockContractDocumentVersion_ConfigPropertyNames);
2156
2163
  // Invalid or incomplete config
2157
2164
  if (config === null) {
2158
2165
  throw new Error('Invalid config for "lockContractDocumentVersion"');
2159
2166
  }
2160
- return buildNetworkSnapshot$8(luvio, config);
2167
+ return buildNetworkSnapshot$9(luvio, config);
2161
2168
  };
2162
2169
  };
2163
2170
 
2171
+ function select$c(luvio, params) {
2172
+ return select$r();
2173
+ }
2174
+ function keyBuilder$b(luvio, params) {
2175
+ return keyPrefix + '::GenericOutputRepresentation:(' + 'contractDocumentVersionId:' + params.urlParams.contractDocumentVersionId + ')';
2176
+ }
2177
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
2178
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
2179
+ }
2180
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
2181
+ const { body } = response;
2182
+ const key = keyBuilder$b(luvio, resourceParams);
2183
+ luvio.storeIngest(key, ingest$9, body);
2184
+ const snapshot = luvio.storeLookup({
2185
+ recordId: key,
2186
+ node: select$c(),
2187
+ variables: {},
2188
+ }, snapshotRefresh);
2189
+ if (process.env.NODE_ENV !== 'production') {
2190
+ if (snapshot.state !== 'Fulfilled') {
2191
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2192
+ }
2193
+ }
2194
+ deepFreeze(snapshot.data);
2195
+ return snapshot;
2196
+ }
2197
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
2198
+ const key = keyBuilder$b(luvio, params);
2199
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2200
+ const storeMetadataParams = {
2201
+ ttl: TTL$8,
2202
+ namespace: keyPrefix,
2203
+ version: VERSION$a,
2204
+ representationName: RepresentationType$9
2205
+ };
2206
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2207
+ return errorSnapshot;
2208
+ }
2209
+ function createResourceRequest$8(config) {
2210
+ const headers = {};
2211
+ return {
2212
+ baseUri: '/services/data/v59.0',
2213
+ basePath: '/connect/clm/contract-document-version/' + config.urlParams.contractDocumentVersionId + '/externalReviewDocument',
2214
+ method: 'get',
2215
+ body: null,
2216
+ urlParams: config.urlParams,
2217
+ queryParams: {},
2218
+ headers,
2219
+ priority: 'normal',
2220
+ };
2221
+ }
2222
+
2223
+ const getExternalReviewDocument_ConfigPropertyNames = {
2224
+ displayName: 'getExternalReviewDocument',
2225
+ parameters: {
2226
+ required: ['contractDocumentVersionId'],
2227
+ optional: []
2228
+ }
2229
+ };
2230
+ function createResourceParams$8(config) {
2231
+ const resourceParams = {
2232
+ urlParams: {
2233
+ contractDocumentVersionId: config.contractDocumentVersionId
2234
+ }
2235
+ };
2236
+ return resourceParams;
2237
+ }
2238
+ function keyBuilder$a(luvio, config) {
2239
+ const resourceParams = createResourceParams$8(config);
2240
+ return keyBuilder$b(luvio, resourceParams);
2241
+ }
2242
+ function typeCheckConfig$8(untrustedConfig) {
2243
+ const config = {};
2244
+ const untrustedConfig_contractDocumentVersionId = untrustedConfig.contractDocumentVersionId;
2245
+ if (typeof untrustedConfig_contractDocumentVersionId === 'string') {
2246
+ config.contractDocumentVersionId = untrustedConfig_contractDocumentVersionId;
2247
+ }
2248
+ return config;
2249
+ }
2250
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
2251
+ if (!untrustedIsObject(untrustedConfig)) {
2252
+ return null;
2253
+ }
2254
+ if (process.env.NODE_ENV !== 'production') {
2255
+ validateConfig(untrustedConfig, configPropertyNames);
2256
+ }
2257
+ const config = typeCheckConfig$8(untrustedConfig);
2258
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2259
+ return null;
2260
+ }
2261
+ return config;
2262
+ }
2263
+ function adapterFragment$3(luvio, config) {
2264
+ createResourceParams$8(config);
2265
+ return select$c();
2266
+ }
2267
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
2268
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
2269
+ config,
2270
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
2271
+ });
2272
+ return luvio.storeBroadcast().then(() => snapshot);
2273
+ }
2274
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
2275
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
2276
+ config,
2277
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
2278
+ });
2279
+ return luvio.storeBroadcast().then(() => snapshot);
2280
+ }
2281
+ function buildNetworkSnapshot$8(luvio, config, options) {
2282
+ const resourceParams = createResourceParams$8(config);
2283
+ const request = createResourceRequest$8(resourceParams);
2284
+ return luvio.dispatchResourceRequest(request, options)
2285
+ .then((response) => {
2286
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2287
+ const cache = new StoreKeyMap();
2288
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
2289
+ return cache;
2290
+ });
2291
+ }, (response) => {
2292
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
2293
+ });
2294
+ }
2295
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2296
+ const { luvio, config } = context;
2297
+ const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
2298
+ const dispatchOptions = {
2299
+ resourceRequestContext: {
2300
+ requestCorrelator,
2301
+ luvioRequestMethod: undefined,
2302
+ },
2303
+ eventObservers
2304
+ };
2305
+ if (networkPriority !== 'normal') {
2306
+ dispatchOptions.overrides = {
2307
+ priority: networkPriority
2308
+ };
2309
+ }
2310
+ return buildNetworkSnapshot$8(luvio, config, dispatchOptions);
2311
+ }
2312
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2313
+ const { luvio, config } = context;
2314
+ const selector = {
2315
+ recordId: keyBuilder$a(luvio, config),
2316
+ node: adapterFragment$3(luvio, config),
2317
+ variables: {},
2318
+ };
2319
+ const cacheSnapshot = storeLookup(selector, {
2320
+ config,
2321
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
2322
+ });
2323
+ return cacheSnapshot;
2324
+ }
2325
+ const getExternalReviewDocumentAdapterFactory = (luvio) => function clm__getExternalReviewDocument(untrustedConfig, requestContext) {
2326
+ const config = validateAdapterConfig$8(untrustedConfig, getExternalReviewDocument_ConfigPropertyNames);
2327
+ // Invalid or incomplete config
2328
+ if (config === null) {
2329
+ return null;
2330
+ }
2331
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2332
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
2333
+ };
2334
+
2164
2335
  function validate$7(obj, path = 'ContractDocumentVersionReviewerOutputRepresentation') {
2165
2336
  const v_error = (() => {
2166
2337
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2889,7 +3060,7 @@ const postContractDocumentVersionReviewAdapterFactory = (luvio) => {
2889
3060
  };
2890
3061
 
2891
3062
  function select$6(luvio, params) {
2892
- return select$q();
3063
+ return select$r();
2893
3064
  }
2894
3065
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2895
3066
  getTypeCacheKeys$9(storeKeyMap, luvio, response);
@@ -3061,7 +3232,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
3061
3232
  return input;
3062
3233
  }
3063
3234
  const select$5 = function DocumentGenerationProcessStatusRepresentationSelect() {
3064
- const { selections: ContentDocumentRepresentation__selections, opaque: ContentDocumentRepresentation__opaque, } = select$m();
3235
+ const { selections: ContentDocumentRepresentation__selections, opaque: ContentDocumentRepresentation__opaque, } = select$n();
3065
3236
  return {
3066
3237
  kind: 'Fragment',
3067
3238
  version: VERSION$2,
@@ -3924,4 +4095,4 @@ const saveExternalDocumentAdapterFactory = (luvio) => {
3924
4095
  };
3925
4096
  };
3926
4097
 
3927
- export { checkInAdapterFactory, checkoutContractDocumentVersionAdapterFactory, createContractDocumentVersionAndInitializeGenerateDocumentProcessAdapterFactory, deleteAttachmentAdapterFactory, deleteContractDocumentVersionReviewAdapterFactory, executeContractActionAdapterFactory, getContentDocumentAdapterFactory, getContractActionsAdapterFactory, getContractDocumentVersionAdapterFactory, getContractDocumentVersionReviewAdapterFactory, getDocumentGenerationProcessDetailsAdapterFactory, getTemplatesAdapterFactory, lockContractDocumentVersionAdapterFactory, patchContractDocumentVersionReviewAdapterFactory, postContractDocumentVersionReviewAdapterFactory, saveExternalDocumentAdapterFactory, unlockAdapterFactory, updateContractDocumentVersionWithTemplateAdapterFactory };
4098
+ export { checkInAdapterFactory, checkoutContractDocumentVersionAdapterFactory, createContractDocumentVersionAndInitializeGenerateDocumentProcessAdapterFactory, deleteAttachmentAdapterFactory, deleteContractDocumentVersionReviewAdapterFactory, executeContractActionAdapterFactory, getContentDocumentAdapterFactory, getContractActionsAdapterFactory, getContractDocumentVersionAdapterFactory, getContractDocumentVersionReviewAdapterFactory, getDocumentGenerationProcessDetailsAdapterFactory, getExternalReviewDocumentAdapterFactory, getTemplatesAdapterFactory, lockContractDocumentVersionAdapterFactory, patchContractDocumentVersionReviewAdapterFactory, postContractDocumentVersionReviewAdapterFactory, saveExternalDocumentAdapterFactory, unlockAdapterFactory, updateContractDocumentVersionWithTemplateAdapterFactory };