@salesforce/lds-adapters-industries-clm 1.211.0 → 1.212.1
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.
- package/dist/es/es2018/industries-clm.js +167 -225
- package/dist/es/es2018/types/src/generated/adapters/createContractDocumentVersionReview.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/createExternalReviewDocument.d.ts +14 -0
- package/dist/es/es2018/types/src/generated/adapters/updateContractDocumentVersionReview.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -6
- package/dist/es/es2018/types/src/generated/resources/patchConnectClmContractDocumentVersionReviewByContractDocumentVersionId.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/postConnectClmContractDocumentVersionExternalReviewDocumentByContractDocumentVersionId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectClmContractDocumentVersionReviewByContractDocumentVersionId.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/ContractDocumentVersionReviewInputRepresentationWrapper.d.ts +38 -0
- package/package.json +1 -1
- package/sfdc/index.js +1019 -1126
- package/src/raml/api.raml +13 -6
- package/src/raml/luvio.raml +4 -6
- package/dist/es/es2018/types/src/generated/adapters/getExternalReviewDocument.d.ts +0 -27
- package/dist/es/es2018/types/src/generated/adapters/patchContractDocumentVersionReview.d.ts +0 -16
- package/dist/es/es2018/types/src/generated/adapters/postContractDocumentVersionReview.d.ts +0 -16
- package/dist/es/es2018/types/src/generated/resources/getConnectClmContractDocumentVersionExternalReviewDocumentByContractDocumentVersionId.d.ts +0 -16
|
@@ -72,7 +72,7 @@ function createLink(ref) {
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
function validate$
|
|
75
|
+
function validate$i(obj, path = 'ContractActionInputRepresentation') {
|
|
76
76
|
const v_error = (() => {
|
|
77
77
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
78
78
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -113,7 +113,7 @@ function validate$h(obj, path = 'ContractActionInputRepresentation') {
|
|
|
113
113
|
|
|
114
114
|
const TTL$8 = 60000;
|
|
115
115
|
const VERSION$a = "c8652b5c3ad8c532087704340d3cad55";
|
|
116
|
-
function validate$
|
|
116
|
+
function validate$h(obj, path = 'GenericOutputRepresentation') {
|
|
117
117
|
const v_error = (() => {
|
|
118
118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -134,14 +134,14 @@ 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$
|
|
137
|
+
function keyBuilder$k(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$
|
|
144
|
+
return keyBuilder$k(luvio, keyParams);
|
|
145
145
|
}
|
|
146
146
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
147
147
|
return input;
|
|
@@ -162,7 +162,7 @@ function equals$a(existing, incoming) {
|
|
|
162
162
|
}
|
|
163
163
|
const ingest$9 = function GenericOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
164
164
|
if (process.env.NODE_ENV !== 'production') {
|
|
165
|
-
const validateError = validate$
|
|
165
|
+
const validateError = validate$h(input);
|
|
166
166
|
if (validateError !== null) {
|
|
167
167
|
throw validateError;
|
|
168
168
|
}
|
|
@@ -261,7 +261,7 @@ function typeCheckConfig$i(untrustedConfig) {
|
|
|
261
261
|
contractId: 0 /* String */,
|
|
262
262
|
});
|
|
263
263
|
const untrustedConfig_actionInput = untrustedConfig.actionInput;
|
|
264
|
-
const referenceContractActionInputRepresentationValidationError = validate$
|
|
264
|
+
const referenceContractActionInputRepresentationValidationError = validate$i(untrustedConfig_actionInput);
|
|
265
265
|
if (referenceContractActionInputRepresentationValidationError === null) {
|
|
266
266
|
config.actionInput = untrustedConfig_actionInput;
|
|
267
267
|
}
|
|
@@ -309,7 +309,7 @@ const executeContractActionAdapterFactory = (luvio) => {
|
|
|
309
309
|
};
|
|
310
310
|
};
|
|
311
311
|
|
|
312
|
-
function validate$
|
|
312
|
+
function validate$g(obj, path = 'ContractDocumentVersionRepresentation') {
|
|
313
313
|
const v_error = (() => {
|
|
314
314
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
315
315
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -395,7 +395,7 @@ function validate$f(obj, path = 'ContractDocumentVersionRepresentation') {
|
|
|
395
395
|
|
|
396
396
|
const TTL$7 = 60000;
|
|
397
397
|
const VERSION$9 = "a824de2ee1cbb2f1e15ea8114da78d95";
|
|
398
|
-
function validate$
|
|
398
|
+
function validate$f(obj, path = 'ContractDocumentVersionsListRepresentation') {
|
|
399
399
|
const v_error = (() => {
|
|
400
400
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
401
401
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -414,7 +414,7 @@ function validate$e(obj, path = 'ContractDocumentVersionsListRepresentation') {
|
|
|
414
414
|
for (let i = 0; i < obj_data.length; i++) {
|
|
415
415
|
const obj_data_item = obj_data[i];
|
|
416
416
|
const path_data_item = path_data + '[' + i + ']';
|
|
417
|
-
const referencepath_data_itemValidationError = validate$
|
|
417
|
+
const referencepath_data_itemValidationError = validate$g(obj_data_item, path_data_item);
|
|
418
418
|
if (referencepath_data_itemValidationError !== null) {
|
|
419
419
|
let message = 'Object doesn\'t match ContractDocumentVersionRepresentation (at "' + path_data_item + '")\n';
|
|
420
420
|
message += referencepath_data_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -445,7 +445,7 @@ function equals$9(existing, incoming) {
|
|
|
445
445
|
}
|
|
446
446
|
const ingest$8 = function ContractDocumentVersionsListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
447
447
|
if (process.env.NODE_ENV !== 'production') {
|
|
448
|
-
const validateError = validate$
|
|
448
|
+
const validateError = validate$f(input);
|
|
449
449
|
if (validateError !== null) {
|
|
450
450
|
throw validateError;
|
|
451
451
|
}
|
|
@@ -486,15 +486,15 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
486
486
|
function select$o(luvio, params) {
|
|
487
487
|
return select$p();
|
|
488
488
|
}
|
|
489
|
-
function keyBuilder$
|
|
489
|
+
function keyBuilder$j(luvio, params) {
|
|
490
490
|
return keyPrefix + '::ContractDocumentVersionsListRepresentation:(' + 'contractDocumentVersionId:' + params.queryParams.contractDocumentVersionId + ',' + 'contractId:' + params.urlParams.contractId + ')';
|
|
491
491
|
}
|
|
492
492
|
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
493
|
-
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$
|
|
493
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
|
|
494
494
|
}
|
|
495
495
|
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
496
496
|
const { body } = response;
|
|
497
|
-
const key = keyBuilder$
|
|
497
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
498
498
|
luvio.storeIngest(key, ingest$8, body);
|
|
499
499
|
const snapshot = luvio.storeLookup({
|
|
500
500
|
recordId: key,
|
|
@@ -509,8 +509,8 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
509
509
|
deepFreeze(snapshot.data);
|
|
510
510
|
return snapshot;
|
|
511
511
|
}
|
|
512
|
-
function ingestError$
|
|
513
|
-
const key = keyBuilder$
|
|
512
|
+
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
513
|
+
const key = keyBuilder$j(luvio, params);
|
|
514
514
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
515
515
|
const storeMetadataParams = {
|
|
516
516
|
ttl: TTL$7,
|
|
@@ -553,9 +553,9 @@ function createResourceParams$h(config) {
|
|
|
553
553
|
};
|
|
554
554
|
return resourceParams;
|
|
555
555
|
}
|
|
556
|
-
function keyBuilder$
|
|
556
|
+
function keyBuilder$i(luvio, config) {
|
|
557
557
|
const resourceParams = createResourceParams$h(config);
|
|
558
|
-
return keyBuilder$
|
|
558
|
+
return keyBuilder$j(luvio, resourceParams);
|
|
559
559
|
}
|
|
560
560
|
function typeCheckConfig$h(untrustedConfig) {
|
|
561
561
|
const config = {};
|
|
@@ -578,19 +578,19 @@ function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
|
578
578
|
}
|
|
579
579
|
return config;
|
|
580
580
|
}
|
|
581
|
-
function adapterFragment$
|
|
581
|
+
function adapterFragment$5(luvio, config) {
|
|
582
582
|
createResourceParams$h(config);
|
|
583
583
|
return select$o();
|
|
584
584
|
}
|
|
585
|
-
function onFetchResponseSuccess$
|
|
585
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
586
586
|
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
587
587
|
config,
|
|
588
588
|
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
589
589
|
});
|
|
590
590
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
591
591
|
}
|
|
592
|
-
function onFetchResponseError$
|
|
593
|
-
const snapshot = ingestError$
|
|
592
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
593
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
594
594
|
config,
|
|
595
595
|
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
596
596
|
});
|
|
@@ -601,16 +601,16 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
601
601
|
const request = createResourceRequest$h(resourceParams);
|
|
602
602
|
return luvio.dispatchResourceRequest(request, options)
|
|
603
603
|
.then((response) => {
|
|
604
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
604
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
605
605
|
const cache = new StoreKeyMap();
|
|
606
606
|
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
607
607
|
return cache;
|
|
608
608
|
});
|
|
609
609
|
}, (response) => {
|
|
610
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
610
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
|
-
function buildNetworkSnapshotCachePolicy$
|
|
613
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
614
614
|
const { luvio, config } = context;
|
|
615
615
|
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
616
616
|
const dispatchOptions = {
|
|
@@ -627,11 +627,11 @@ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext
|
|
|
627
627
|
}
|
|
628
628
|
return buildNetworkSnapshot$h(luvio, config, dispatchOptions);
|
|
629
629
|
}
|
|
630
|
-
function buildCachedSnapshotCachePolicy$
|
|
630
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
631
631
|
const { luvio, config } = context;
|
|
632
632
|
const selector = {
|
|
633
|
-
recordId: keyBuilder$
|
|
634
|
-
node: adapterFragment$
|
|
633
|
+
recordId: keyBuilder$i(luvio, config),
|
|
634
|
+
node: adapterFragment$5(luvio, config),
|
|
635
635
|
variables: {},
|
|
636
636
|
};
|
|
637
637
|
const cacheSnapshot = storeLookup(selector, {
|
|
@@ -647,10 +647,10 @@ const getContractDocumentVersionAdapterFactory = (luvio) => function clm__getCon
|
|
|
647
647
|
return null;
|
|
648
648
|
}
|
|
649
649
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
650
|
-
buildCachedSnapshotCachePolicy$
|
|
650
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
651
651
|
};
|
|
652
652
|
|
|
653
|
-
function validate$
|
|
653
|
+
function validate$e(obj, path = 'TemplateInputRepresentation') {
|
|
654
654
|
const v_error = (() => {
|
|
655
655
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
656
656
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -686,7 +686,7 @@ function validate$d(obj, path = 'TemplateInputRepresentation') {
|
|
|
686
686
|
}
|
|
687
687
|
|
|
688
688
|
const VERSION$8 = "f874339705636326163a82467da64b36";
|
|
689
|
-
function validate$
|
|
689
|
+
function validate$d(obj, path = 'ContentDocumentRepresentation') {
|
|
690
690
|
const v_error = (() => {
|
|
691
691
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
692
692
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -829,7 +829,7 @@ function equals$8(existing, incoming) {
|
|
|
829
829
|
|
|
830
830
|
const TTL$6 = 60000;
|
|
831
831
|
const VERSION$7 = "520b4f1213b0e08b197d18564d0a2432";
|
|
832
|
-
function validate$
|
|
832
|
+
function validate$c(obj, path = 'DocumentGenerateRepresentation') {
|
|
833
833
|
const v_error = (() => {
|
|
834
834
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
835
835
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -843,7 +843,7 @@ function validate$b(obj, path = 'DocumentGenerateRepresentation') {
|
|
|
843
843
|
for (let i = 0; i < obj_contentDocuments.length; i++) {
|
|
844
844
|
const obj_contentDocuments_item = obj_contentDocuments[i];
|
|
845
845
|
const path_contentDocuments_item = path_contentDocuments + '[' + i + ']';
|
|
846
|
-
const referencepath_contentDocuments_itemValidationError = validate$
|
|
846
|
+
const referencepath_contentDocuments_itemValidationError = validate$d(obj_contentDocuments_item, path_contentDocuments_item);
|
|
847
847
|
if (referencepath_contentDocuments_itemValidationError !== null) {
|
|
848
848
|
let message = 'Object doesn\'t match ContentDocumentRepresentation (at "' + path_contentDocuments_item + '")\n';
|
|
849
849
|
message += referencepath_contentDocuments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -872,14 +872,14 @@ function validate$b(obj, path = 'DocumentGenerateRepresentation') {
|
|
|
872
872
|
return v_error === undefined ? null : v_error;
|
|
873
873
|
}
|
|
874
874
|
const RepresentationType$7 = 'DocumentGenerateRepresentation';
|
|
875
|
-
function keyBuilder$
|
|
875
|
+
function keyBuilder$h(luvio, config) {
|
|
876
876
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.contractId;
|
|
877
877
|
}
|
|
878
878
|
function keyBuilderFromType$5(luvio, object) {
|
|
879
879
|
const keyParams = {
|
|
880
880
|
contractId: object.contractId
|
|
881
881
|
};
|
|
882
|
-
return keyBuilder$
|
|
882
|
+
return keyBuilder$h(luvio, keyParams);
|
|
883
883
|
}
|
|
884
884
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
885
885
|
return input;
|
|
@@ -900,7 +900,7 @@ function equals$7(existing, incoming) {
|
|
|
900
900
|
}
|
|
901
901
|
const ingest$7 = function DocumentGenerateRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
902
902
|
if (process.env.NODE_ENV !== 'production') {
|
|
903
|
-
const validateError = validate$
|
|
903
|
+
const validateError = validate$c(input);
|
|
904
904
|
if (validateError !== null) {
|
|
905
905
|
throw validateError;
|
|
906
906
|
}
|
|
@@ -999,7 +999,7 @@ function typeCheckConfig$g(untrustedConfig) {
|
|
|
999
999
|
contractId: 0 /* String */,
|
|
1000
1000
|
});
|
|
1001
1001
|
const untrustedConfig_templateInput = untrustedConfig.templateInput;
|
|
1002
|
-
const referenceTemplateInputRepresentationValidationError = validate$
|
|
1002
|
+
const referenceTemplateInputRepresentationValidationError = validate$e(untrustedConfig_templateInput);
|
|
1003
1003
|
if (referenceTemplateInputRepresentationValidationError === null) {
|
|
1004
1004
|
config.templateInput = untrustedConfig_templateInput;
|
|
1005
1005
|
}
|
|
@@ -1047,7 +1047,7 @@ const createContractDocumentVersionAndInitializeGenerateDocumentProcessAdapterFa
|
|
|
1047
1047
|
};
|
|
1048
1048
|
};
|
|
1049
1049
|
|
|
1050
|
-
function validate$
|
|
1050
|
+
function validate$b(obj, path = 'ContractActionRepresentation') {
|
|
1051
1051
|
const v_error = (() => {
|
|
1052
1052
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1053
1053
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1108,7 +1108,7 @@ function validate$a(obj, path = 'ContractActionRepresentation') {
|
|
|
1108
1108
|
|
|
1109
1109
|
const TTL$5 = 60000;
|
|
1110
1110
|
const VERSION$6 = "2caf5349dc6c6aa44ef471df00f65bbd";
|
|
1111
|
-
function validate$
|
|
1111
|
+
function validate$a(obj, path = 'ContractActionListRepresentation') {
|
|
1112
1112
|
const v_error = (() => {
|
|
1113
1113
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1114
1114
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1121,7 +1121,7 @@ function validate$9(obj, path = 'ContractActionListRepresentation') {
|
|
|
1121
1121
|
for (let i = 0; i < obj_actions.length; i++) {
|
|
1122
1122
|
const obj_actions_item = obj_actions[i];
|
|
1123
1123
|
const path_actions_item = path_actions + '[' + i + ']';
|
|
1124
|
-
const referencepath_actions_itemValidationError = validate$
|
|
1124
|
+
const referencepath_actions_itemValidationError = validate$b(obj_actions_item, path_actions_item);
|
|
1125
1125
|
if (referencepath_actions_itemValidationError !== null) {
|
|
1126
1126
|
let message = 'Object doesn\'t match ContractActionRepresentation (at "' + path_actions_item + '")\n';
|
|
1127
1127
|
message += referencepath_actions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1137,14 +1137,14 @@ function validate$9(obj, path = 'ContractActionListRepresentation') {
|
|
|
1137
1137
|
return v_error === undefined ? null : v_error;
|
|
1138
1138
|
}
|
|
1139
1139
|
const RepresentationType$6 = 'ContractActionListRepresentation';
|
|
1140
|
-
function keyBuilder$
|
|
1140
|
+
function keyBuilder$g(luvio, config) {
|
|
1141
1141
|
return keyPrefix + '::' + RepresentationType$6 + ':' + config.contractId;
|
|
1142
1142
|
}
|
|
1143
1143
|
function keyBuilderFromType$4(luvio, object) {
|
|
1144
1144
|
const keyParams = {
|
|
1145
1145
|
contractId: object.contractId
|
|
1146
1146
|
};
|
|
1147
|
-
return keyBuilder$
|
|
1147
|
+
return keyBuilder$g(luvio, keyParams);
|
|
1148
1148
|
}
|
|
1149
1149
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
1150
1150
|
return input;
|
|
@@ -1165,7 +1165,7 @@ function equals$6(existing, incoming) {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
const ingest$6 = function ContractActionListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1167
1167
|
if (process.env.NODE_ENV !== 'production') {
|
|
1168
|
-
const validateError = validate$
|
|
1168
|
+
const validateError = validate$a(input);
|
|
1169
1169
|
if (validateError !== null) {
|
|
1170
1170
|
throw validateError;
|
|
1171
1171
|
}
|
|
@@ -1206,8 +1206,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1206
1206
|
function select$j(luvio, params) {
|
|
1207
1207
|
return select$k();
|
|
1208
1208
|
}
|
|
1209
|
-
function keyBuilder$
|
|
1210
|
-
return keyBuilder$
|
|
1209
|
+
function keyBuilder$f(luvio, params) {
|
|
1210
|
+
return keyBuilder$g(luvio, {
|
|
1211
1211
|
contractId: params.urlParams.contractId
|
|
1212
1212
|
});
|
|
1213
1213
|
}
|
|
@@ -1216,7 +1216,7 @@ function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
1218
1218
|
const { body } = response;
|
|
1219
|
-
const key = keyBuilder$
|
|
1219
|
+
const key = keyBuilder$f(luvio, resourceParams);
|
|
1220
1220
|
luvio.storeIngest(key, ingest$6, body);
|
|
1221
1221
|
const snapshot = luvio.storeLookup({
|
|
1222
1222
|
recordId: key,
|
|
@@ -1231,8 +1231,8 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1231
1231
|
deepFreeze(snapshot.data);
|
|
1232
1232
|
return snapshot;
|
|
1233
1233
|
}
|
|
1234
|
-
function ingestError$
|
|
1235
|
-
const key = keyBuilder$
|
|
1234
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
1235
|
+
const key = keyBuilder$f(luvio, params);
|
|
1236
1236
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1237
1237
|
const storeMetadataParams = {
|
|
1238
1238
|
ttl: TTL$5,
|
|
@@ -1272,9 +1272,9 @@ function createResourceParams$f(config) {
|
|
|
1272
1272
|
};
|
|
1273
1273
|
return resourceParams;
|
|
1274
1274
|
}
|
|
1275
|
-
function keyBuilder$
|
|
1275
|
+
function keyBuilder$e(luvio, config) {
|
|
1276
1276
|
const resourceParams = createResourceParams$f(config);
|
|
1277
|
-
return keyBuilder$
|
|
1277
|
+
return keyBuilder$f(luvio, resourceParams);
|
|
1278
1278
|
}
|
|
1279
1279
|
function typeCheckConfig$f(untrustedConfig) {
|
|
1280
1280
|
const config = {};
|
|
@@ -1296,19 +1296,19 @@ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
return config;
|
|
1298
1298
|
}
|
|
1299
|
-
function adapterFragment$
|
|
1299
|
+
function adapterFragment$4(luvio, config) {
|
|
1300
1300
|
createResourceParams$f(config);
|
|
1301
1301
|
return select$j();
|
|
1302
1302
|
}
|
|
1303
|
-
function onFetchResponseSuccess$
|
|
1303
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
1304
1304
|
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
1305
1305
|
config,
|
|
1306
1306
|
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
1307
1307
|
});
|
|
1308
1308
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1309
1309
|
}
|
|
1310
|
-
function onFetchResponseError$
|
|
1311
|
-
const snapshot = ingestError$
|
|
1310
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
1311
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
1312
1312
|
config,
|
|
1313
1313
|
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
1314
1314
|
});
|
|
@@ -1319,16 +1319,16 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
1319
1319
|
const request = createResourceRequest$f(resourceParams);
|
|
1320
1320
|
return luvio.dispatchResourceRequest(request, options)
|
|
1321
1321
|
.then((response) => {
|
|
1322
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1322
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
1323
1323
|
const cache = new StoreKeyMap();
|
|
1324
1324
|
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
1325
1325
|
return cache;
|
|
1326
1326
|
});
|
|
1327
1327
|
}, (response) => {
|
|
1328
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1328
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
1329
1329
|
});
|
|
1330
1330
|
}
|
|
1331
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1331
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
1332
1332
|
const { luvio, config } = context;
|
|
1333
1333
|
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1334
1334
|
const dispatchOptions = {
|
|
@@ -1345,11 +1345,11 @@ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext
|
|
|
1345
1345
|
}
|
|
1346
1346
|
return buildNetworkSnapshot$f(luvio, config, dispatchOptions);
|
|
1347
1347
|
}
|
|
1348
|
-
function buildCachedSnapshotCachePolicy$
|
|
1348
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
1349
1349
|
const { luvio, config } = context;
|
|
1350
1350
|
const selector = {
|
|
1351
|
-
recordId: keyBuilder$
|
|
1352
|
-
node: adapterFragment$
|
|
1351
|
+
recordId: keyBuilder$e(luvio, config),
|
|
1352
|
+
node: adapterFragment$4(luvio, config),
|
|
1353
1353
|
variables: {},
|
|
1354
1354
|
};
|
|
1355
1355
|
const cacheSnapshot = storeLookup(selector, {
|
|
@@ -1365,7 +1365,7 @@ const getContractActionsAdapterFactory = (luvio) => function clm__getContractAct
|
|
|
1365
1365
|
return null;
|
|
1366
1366
|
}
|
|
1367
1367
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1368
|
-
buildCachedSnapshotCachePolicy$
|
|
1368
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
1369
1369
|
};
|
|
1370
1370
|
|
|
1371
1371
|
function select$i(luvio, params) {
|
|
@@ -1429,7 +1429,7 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
1429
1429
|
contractDocumentVersionId: 0 /* String */,
|
|
1430
1430
|
});
|
|
1431
1431
|
const untrustedConfig_templateInput = untrustedConfig.templateInput;
|
|
1432
|
-
const referenceTemplateInputRepresentationValidationError = validate$
|
|
1432
|
+
const referenceTemplateInputRepresentationValidationError = validate$e(untrustedConfig_templateInput);
|
|
1433
1433
|
if (referenceTemplateInputRepresentationValidationError === null) {
|
|
1434
1434
|
config.templateInput = untrustedConfig_templateInput;
|
|
1435
1435
|
}
|
|
@@ -1639,7 +1639,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
1639
1639
|
contractDocumentVersionId: 0 /* String */,
|
|
1640
1640
|
});
|
|
1641
1641
|
const untrustedConfig_templateInput = untrustedConfig.templateInput;
|
|
1642
|
-
const referenceTemplateInputRepresentationValidationError = validate$
|
|
1642
|
+
const referenceTemplateInputRepresentationValidationError = validate$e(untrustedConfig_templateInput);
|
|
1643
1643
|
if (referenceTemplateInputRepresentationValidationError === null) {
|
|
1644
1644
|
config.templateInput = untrustedConfig_templateInput;
|
|
1645
1645
|
}
|
|
@@ -1689,7 +1689,7 @@ const checkoutContractDocumentVersionAdapterFactory = (luvio) => {
|
|
|
1689
1689
|
|
|
1690
1690
|
const TTL$4 = 60000;
|
|
1691
1691
|
const VERSION$5 = "dce4365dead9ca97204892d274fbf1b7";
|
|
1692
|
-
function validate$
|
|
1692
|
+
function validate$9(obj, path = 'ContentDocumentListRepresentation') {
|
|
1693
1693
|
const v_error = (() => {
|
|
1694
1694
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1695
1695
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1708,7 +1708,7 @@ function validate$8(obj, path = 'ContentDocumentListRepresentation') {
|
|
|
1708
1708
|
for (let i = 0; i < obj_data.length; i++) {
|
|
1709
1709
|
const obj_data_item = obj_data[i];
|
|
1710
1710
|
const path_data_item = path_data + '[' + i + ']';
|
|
1711
|
-
const referencepath_data_itemValidationError = validate$
|
|
1711
|
+
const referencepath_data_itemValidationError = validate$d(obj_data_item, path_data_item);
|
|
1712
1712
|
if (referencepath_data_itemValidationError !== null) {
|
|
1713
1713
|
let message = 'Object doesn\'t match ContentDocumentRepresentation (at "' + path_data_item + '")\n';
|
|
1714
1714
|
message += referencepath_data_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1720,14 +1720,14 @@ function validate$8(obj, path = 'ContentDocumentListRepresentation') {
|
|
|
1720
1720
|
return v_error === undefined ? null : v_error;
|
|
1721
1721
|
}
|
|
1722
1722
|
const RepresentationType$5 = 'ContentDocumentListRepresentation';
|
|
1723
|
-
function keyBuilder$
|
|
1723
|
+
function keyBuilder$d(luvio, config) {
|
|
1724
1724
|
return keyPrefix + '::' + RepresentationType$5 + ':' + config.contractDocumentVersionId;
|
|
1725
1725
|
}
|
|
1726
1726
|
function keyBuilderFromType$3(luvio, object) {
|
|
1727
1727
|
const keyParams = {
|
|
1728
1728
|
contractDocumentVersionId: object.contractDocumentVersionId
|
|
1729
1729
|
};
|
|
1730
|
-
return keyBuilder$
|
|
1730
|
+
return keyBuilder$d(luvio, keyParams);
|
|
1731
1731
|
}
|
|
1732
1732
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
1733
1733
|
return input;
|
|
@@ -1748,7 +1748,7 @@ function equals$5(existing, incoming) {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
const ingest$5 = function ContentDocumentListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1750
1750
|
if (process.env.NODE_ENV !== 'production') {
|
|
1751
|
-
const validateError = validate$
|
|
1751
|
+
const validateError = validate$9(input);
|
|
1752
1752
|
if (validateError !== null) {
|
|
1753
1753
|
throw validateError;
|
|
1754
1754
|
}
|
|
@@ -1786,13 +1786,13 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1786
1786
|
});
|
|
1787
1787
|
}
|
|
1788
1788
|
|
|
1789
|
-
function keyBuilder$
|
|
1790
|
-
return keyBuilder$
|
|
1789
|
+
function keyBuilder$c(luvio, params) {
|
|
1790
|
+
return keyBuilder$d(luvio, {
|
|
1791
1791
|
contractDocumentVersionId: params.urlParams.contractDocumentVersionId
|
|
1792
1792
|
});
|
|
1793
1793
|
}
|
|
1794
1794
|
function getResponseCacheKeys$b(cacheKeyMap, luvio, resourceParams) {
|
|
1795
|
-
const key = keyBuilder$
|
|
1795
|
+
const key = keyBuilder$c(luvio, resourceParams);
|
|
1796
1796
|
cacheKeyMap.set(key, {
|
|
1797
1797
|
namespace: keyPrefix,
|
|
1798
1798
|
representationName: RepresentationType$5,
|
|
@@ -1800,7 +1800,7 @@ function getResponseCacheKeys$b(cacheKeyMap, luvio, resourceParams) {
|
|
|
1800
1800
|
});
|
|
1801
1801
|
}
|
|
1802
1802
|
function evictSuccess$1(luvio, resourceParams) {
|
|
1803
|
-
const key = keyBuilder$
|
|
1803
|
+
const key = keyBuilder$c(luvio, resourceParams);
|
|
1804
1804
|
luvio.storeEvict(key);
|
|
1805
1805
|
}
|
|
1806
1806
|
function createResourceRequest$b(config) {
|
|
@@ -1889,8 +1889,8 @@ const deleteAttachmentAdapterFactory = (luvio) => {
|
|
|
1889
1889
|
function select$e(luvio, params) {
|
|
1890
1890
|
return select$f();
|
|
1891
1891
|
}
|
|
1892
|
-
function keyBuilder$
|
|
1893
|
-
return keyBuilder$
|
|
1892
|
+
function keyBuilder$b(luvio, params) {
|
|
1893
|
+
return keyBuilder$d(luvio, {
|
|
1894
1894
|
contractDocumentVersionId: params.urlParams.contractDocumentVersionId
|
|
1895
1895
|
});
|
|
1896
1896
|
}
|
|
@@ -1899,7 +1899,7 @@ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
1901
1901
|
const { body } = response;
|
|
1902
|
-
const key = keyBuilder$
|
|
1902
|
+
const key = keyBuilder$b(luvio, resourceParams);
|
|
1903
1903
|
luvio.storeIngest(key, ingest$5, body);
|
|
1904
1904
|
const snapshot = luvio.storeLookup({
|
|
1905
1905
|
recordId: key,
|
|
@@ -1914,8 +1914,8 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1914
1914
|
deepFreeze(snapshot.data);
|
|
1915
1915
|
return snapshot;
|
|
1916
1916
|
}
|
|
1917
|
-
function ingestError$
|
|
1918
|
-
const key = keyBuilder$
|
|
1917
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
1918
|
+
const key = keyBuilder$b(luvio, params);
|
|
1919
1919
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1920
1920
|
const storeMetadataParams = {
|
|
1921
1921
|
ttl: TTL$4,
|
|
@@ -1955,9 +1955,9 @@ function createResourceParams$a(config) {
|
|
|
1955
1955
|
};
|
|
1956
1956
|
return resourceParams;
|
|
1957
1957
|
}
|
|
1958
|
-
function keyBuilder$
|
|
1958
|
+
function keyBuilder$a(luvio, config) {
|
|
1959
1959
|
const resourceParams = createResourceParams$a(config);
|
|
1960
|
-
return keyBuilder$
|
|
1960
|
+
return keyBuilder$b(luvio, resourceParams);
|
|
1961
1961
|
}
|
|
1962
1962
|
function typeCheckConfig$a(untrustedConfig) {
|
|
1963
1963
|
const config = {};
|
|
@@ -1979,19 +1979,19 @@ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
|
1979
1979
|
}
|
|
1980
1980
|
return config;
|
|
1981
1981
|
}
|
|
1982
|
-
function adapterFragment$
|
|
1982
|
+
function adapterFragment$3(luvio, config) {
|
|
1983
1983
|
createResourceParams$a(config);
|
|
1984
1984
|
return select$e();
|
|
1985
1985
|
}
|
|
1986
|
-
function onFetchResponseSuccess$
|
|
1986
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
1987
1987
|
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
1988
1988
|
config,
|
|
1989
1989
|
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
1990
1990
|
});
|
|
1991
1991
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1992
1992
|
}
|
|
1993
|
-
function onFetchResponseError$
|
|
1994
|
-
const snapshot = ingestError$
|
|
1993
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
1994
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
1995
1995
|
config,
|
|
1996
1996
|
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
1997
1997
|
});
|
|
@@ -2002,16 +2002,16 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
2002
2002
|
const request = createResourceRequest$a(resourceParams);
|
|
2003
2003
|
return luvio.dispatchResourceRequest(request, options)
|
|
2004
2004
|
.then((response) => {
|
|
2005
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2005
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
2006
2006
|
const cache = new StoreKeyMap();
|
|
2007
2007
|
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
2008
2008
|
return cache;
|
|
2009
2009
|
});
|
|
2010
2010
|
}, (response) => {
|
|
2011
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2011
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
2012
2012
|
});
|
|
2013
2013
|
}
|
|
2014
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2014
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
2015
2015
|
const { luvio, config } = context;
|
|
2016
2016
|
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
2017
2017
|
const dispatchOptions = {
|
|
@@ -2028,11 +2028,11 @@ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext
|
|
|
2028
2028
|
}
|
|
2029
2029
|
return buildNetworkSnapshot$a(luvio, config, dispatchOptions);
|
|
2030
2030
|
}
|
|
2031
|
-
function buildCachedSnapshotCachePolicy$
|
|
2031
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
2032
2032
|
const { luvio, config } = context;
|
|
2033
2033
|
const selector = {
|
|
2034
|
-
recordId: keyBuilder$
|
|
2035
|
-
node: adapterFragment$
|
|
2034
|
+
recordId: keyBuilder$a(luvio, config),
|
|
2035
|
+
node: adapterFragment$3(luvio, config),
|
|
2036
2036
|
variables: {},
|
|
2037
2037
|
};
|
|
2038
2038
|
const cacheSnapshot = storeLookup(selector, {
|
|
@@ -2048,7 +2048,7 @@ const getContentDocumentAdapterFactory = (luvio) => function clm__getContentDocu
|
|
|
2048
2048
|
return null;
|
|
2049
2049
|
}
|
|
2050
2050
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2051
|
-
buildCachedSnapshotCachePolicy$
|
|
2051
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
2052
2052
|
};
|
|
2053
2053
|
|
|
2054
2054
|
function select$d(luvio, params) {
|
|
@@ -2155,23 +2155,18 @@ const lockContractDocumentVersionAdapterFactory = (luvio) => {
|
|
|
2155
2155
|
function select$c(luvio, params) {
|
|
2156
2156
|
return select$r();
|
|
2157
2157
|
}
|
|
2158
|
-
function keyBuilder$b(luvio, params) {
|
|
2159
|
-
return keyBuilder$m(luvio, {
|
|
2160
|
-
id: params.urlParams.contractDocumentVersionId
|
|
2161
|
-
});
|
|
2162
|
-
}
|
|
2163
2158
|
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
2164
2159
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
2165
2160
|
}
|
|
2166
|
-
function ingestSuccess$7(luvio, resourceParams, response
|
|
2161
|
+
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
2167
2162
|
const { body } = response;
|
|
2168
|
-
const key =
|
|
2163
|
+
const key = keyBuilderFromType$6(luvio, body);
|
|
2169
2164
|
luvio.storeIngest(key, ingest$9, body);
|
|
2170
2165
|
const snapshot = luvio.storeLookup({
|
|
2171
2166
|
recordId: key,
|
|
2172
2167
|
node: select$c(),
|
|
2173
2168
|
variables: {},
|
|
2174
|
-
}
|
|
2169
|
+
});
|
|
2175
2170
|
if (process.env.NODE_ENV !== 'production') {
|
|
2176
2171
|
if (snapshot.state !== 'Fulfilled') {
|
|
2177
2172
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
@@ -2180,24 +2175,12 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2180
2175
|
deepFreeze(snapshot.data);
|
|
2181
2176
|
return snapshot;
|
|
2182
2177
|
}
|
|
2183
|
-
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
2184
|
-
const key = keyBuilder$b(luvio, params);
|
|
2185
|
-
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2186
|
-
const storeMetadataParams = {
|
|
2187
|
-
ttl: TTL$8,
|
|
2188
|
-
namespace: keyPrefix,
|
|
2189
|
-
version: VERSION$a,
|
|
2190
|
-
representationName: RepresentationType$9
|
|
2191
|
-
};
|
|
2192
|
-
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2193
|
-
return errorSnapshot;
|
|
2194
|
-
}
|
|
2195
2178
|
function createResourceRequest$8(config) {
|
|
2196
2179
|
const headers = {};
|
|
2197
2180
|
return {
|
|
2198
2181
|
baseUri: '/services/data/v59.0',
|
|
2199
2182
|
basePath: '/connect/clm/contract-document-version/' + config.urlParams.contractDocumentVersionId + '/externalReviewDocument',
|
|
2200
|
-
method: '
|
|
2183
|
+
method: 'post',
|
|
2201
2184
|
body: null,
|
|
2202
2185
|
urlParams: config.urlParams,
|
|
2203
2186
|
queryParams: {},
|
|
@@ -2206,8 +2189,8 @@ function createResourceRequest$8(config) {
|
|
|
2206
2189
|
};
|
|
2207
2190
|
}
|
|
2208
2191
|
|
|
2209
|
-
const
|
|
2210
|
-
displayName: '
|
|
2192
|
+
const createExternalReviewDocument_ConfigPropertyNames = {
|
|
2193
|
+
displayName: 'createExternalReviewDocument',
|
|
2211
2194
|
parameters: {
|
|
2212
2195
|
required: ['contractDocumentVersionId'],
|
|
2213
2196
|
optional: []
|
|
@@ -2221,10 +2204,6 @@ function createResourceParams$8(config) {
|
|
|
2221
2204
|
};
|
|
2222
2205
|
return resourceParams;
|
|
2223
2206
|
}
|
|
2224
|
-
function keyBuilder$a(luvio, config) {
|
|
2225
|
-
const resourceParams = createResourceParams$8(config);
|
|
2226
|
-
return keyBuilder$b(luvio, resourceParams);
|
|
2227
|
-
}
|
|
2228
2207
|
function typeCheckConfig$8(untrustedConfig) {
|
|
2229
2208
|
const config = {};
|
|
2230
2209
|
typeCheckScalars(untrustedConfig, config, {
|
|
@@ -2245,79 +2224,36 @@ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
|
2245
2224
|
}
|
|
2246
2225
|
return config;
|
|
2247
2226
|
}
|
|
2248
|
-
function adapterFragment$3(luvio, config) {
|
|
2249
|
-
createResourceParams$8(config);
|
|
2250
|
-
return select$c();
|
|
2251
|
-
}
|
|
2252
|
-
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
2253
|
-
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
2254
|
-
config,
|
|
2255
|
-
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
2256
|
-
});
|
|
2257
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
2258
|
-
}
|
|
2259
|
-
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
2260
|
-
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
2261
|
-
config,
|
|
2262
|
-
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
2263
|
-
});
|
|
2264
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
2265
|
-
}
|
|
2266
2227
|
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
2267
2228
|
const resourceParams = createResourceParams$8(config);
|
|
2268
2229
|
const request = createResourceRequest$8(resourceParams);
|
|
2269
2230
|
return luvio.dispatchResourceRequest(request, options)
|
|
2270
2231
|
.then((response) => {
|
|
2271
|
-
return luvio.handleSuccessResponse(() =>
|
|
2232
|
+
return luvio.handleSuccessResponse(() => {
|
|
2233
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response);
|
|
2234
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2235
|
+
}, () => {
|
|
2272
2236
|
const cache = new StoreKeyMap();
|
|
2273
2237
|
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
2274
2238
|
return cache;
|
|
2275
2239
|
});
|
|
2276
2240
|
}, (response) => {
|
|
2277
|
-
|
|
2241
|
+
deepFreeze(response);
|
|
2242
|
+
throw response;
|
|
2278
2243
|
});
|
|
2279
2244
|
}
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
eventObservers
|
|
2289
|
-
};
|
|
2290
|
-
if (networkPriority !== 'normal') {
|
|
2291
|
-
dispatchOptions.overrides = {
|
|
2292
|
-
priority: networkPriority
|
|
2293
|
-
};
|
|
2294
|
-
}
|
|
2295
|
-
return buildNetworkSnapshot$8(luvio, config, dispatchOptions);
|
|
2296
|
-
}
|
|
2297
|
-
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
2298
|
-
const { luvio, config } = context;
|
|
2299
|
-
const selector = {
|
|
2300
|
-
recordId: keyBuilder$a(luvio, config),
|
|
2301
|
-
node: adapterFragment$3(luvio, config),
|
|
2302
|
-
variables: {},
|
|
2245
|
+
const createExternalReviewDocumentAdapterFactory = (luvio) => {
|
|
2246
|
+
return function createExternalReviewDocument(untrustedConfig) {
|
|
2247
|
+
const config = validateAdapterConfig$8(untrustedConfig, createExternalReviewDocument_ConfigPropertyNames);
|
|
2248
|
+
// Invalid or incomplete config
|
|
2249
|
+
if (config === null) {
|
|
2250
|
+
throw new Error('Invalid config for "createExternalReviewDocument"');
|
|
2251
|
+
}
|
|
2252
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
2303
2253
|
};
|
|
2304
|
-
const cacheSnapshot = storeLookup(selector, {
|
|
2305
|
-
config,
|
|
2306
|
-
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
2307
|
-
});
|
|
2308
|
-
return cacheSnapshot;
|
|
2309
|
-
}
|
|
2310
|
-
const getExternalReviewDocumentAdapterFactory = (luvio) => function clm__getExternalReviewDocument(untrustedConfig, requestContext) {
|
|
2311
|
-
const config = validateAdapterConfig$8(untrustedConfig, getExternalReviewDocument_ConfigPropertyNames);
|
|
2312
|
-
// Invalid or incomplete config
|
|
2313
|
-
if (config === null) {
|
|
2314
|
-
return null;
|
|
2315
|
-
}
|
|
2316
|
-
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2317
|
-
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
2318
2254
|
};
|
|
2319
2255
|
|
|
2320
|
-
function validate$
|
|
2256
|
+
function validate$8(obj, path = 'ContractDocumentVersionReviewerOutputRepresentation') {
|
|
2321
2257
|
const v_error = (() => {
|
|
2322
2258
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2323
2259
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2348,7 +2284,7 @@ function validate$7(obj, path = 'ContractDocumentVersionReviewerOutputRepresenta
|
|
|
2348
2284
|
|
|
2349
2285
|
const TTL$3 = 60000;
|
|
2350
2286
|
const VERSION$4 = "0899abf561bfd47203236736c120b9da";
|
|
2351
|
-
function validate$
|
|
2287
|
+
function validate$7(obj, path = 'ContractDocumentVersionReviewersListOutputRepresentation') {
|
|
2352
2288
|
const v_error = (() => {
|
|
2353
2289
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2354
2290
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2366,7 +2302,7 @@ function validate$6(obj, path = 'ContractDocumentVersionReviewersListOutputRepre
|
|
|
2366
2302
|
for (let i = 0; i < obj_reviewersData.length; i++) {
|
|
2367
2303
|
const obj_reviewersData_item = obj_reviewersData[i];
|
|
2368
2304
|
const path_reviewersData_item = path_reviewersData + '[' + i + ']';
|
|
2369
|
-
const referencepath_reviewersData_itemValidationError = validate$
|
|
2305
|
+
const referencepath_reviewersData_itemValidationError = validate$8(obj_reviewersData_item, path_reviewersData_item);
|
|
2370
2306
|
if (referencepath_reviewersData_itemValidationError !== null) {
|
|
2371
2307
|
let message = 'Object doesn\'t match ContractDocumentVersionReviewerOutputRepresentation (at "' + path_reviewersData_item + '")\n';
|
|
2372
2308
|
message += referencepath_reviewersData_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2405,7 +2341,7 @@ function equals$4(existing, incoming) {
|
|
|
2405
2341
|
}
|
|
2406
2342
|
const ingest$4 = function ContractDocumentVersionReviewersListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2407
2343
|
if (process.env.NODE_ENV !== 'production') {
|
|
2408
|
-
const validateError = validate$
|
|
2344
|
+
const validateError = validate$7(input);
|
|
2409
2345
|
if (validateError !== null) {
|
|
2410
2346
|
throw validateError;
|
|
2411
2347
|
}
|
|
@@ -2704,6 +2640,32 @@ const getContractDocumentVersionReviewAdapterFactory = (luvio) => function clm__
|
|
|
2704
2640
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
2705
2641
|
};
|
|
2706
2642
|
|
|
2643
|
+
function validate$6(obj, path = 'ContractDocumentVersionReviewInputRepresentation') {
|
|
2644
|
+
const v_error = (() => {
|
|
2645
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2646
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2647
|
+
}
|
|
2648
|
+
const obj_reviewers = obj.reviewers;
|
|
2649
|
+
const path_reviewers = path + '.reviewers';
|
|
2650
|
+
if (!ArrayIsArray(obj_reviewers)) {
|
|
2651
|
+
return new TypeError('Expected "array" but received "' + typeof obj_reviewers + '" (at "' + path_reviewers + '")');
|
|
2652
|
+
}
|
|
2653
|
+
for (let i = 0; i < obj_reviewers.length; i++) {
|
|
2654
|
+
const obj_reviewers_item = obj_reviewers[i];
|
|
2655
|
+
const path_reviewers_item = path_reviewers + '[' + i + ']';
|
|
2656
|
+
if (typeof obj_reviewers_item !== 'object' || ArrayIsArray(obj_reviewers_item) || obj_reviewers_item === null) {
|
|
2657
|
+
return new TypeError('Expected "object" but received "' + typeof obj_reviewers_item + '" (at "' + path_reviewers_item + '")');
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
const obj_sendEmailNotification = obj.sendEmailNotification;
|
|
2661
|
+
const path_sendEmailNotification = path + '.sendEmailNotification';
|
|
2662
|
+
if (typeof obj_sendEmailNotification !== 'boolean') {
|
|
2663
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_sendEmailNotification + '" (at "' + path_sendEmailNotification + '")');
|
|
2664
|
+
}
|
|
2665
|
+
})();
|
|
2666
|
+
return v_error === undefined ? null : v_error;
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2707
2669
|
const TTL$2 = 60000;
|
|
2708
2670
|
const VERSION$3 = "3fc04cc25ff88aa934ddc7949757f34d";
|
|
2709
2671
|
function validate$5(obj, path = 'ContractDocumentVersionReviewOutputRepresentation') {
|
|
@@ -2833,10 +2795,10 @@ function createResourceRequest$5(config) {
|
|
|
2833
2795
|
};
|
|
2834
2796
|
}
|
|
2835
2797
|
|
|
2836
|
-
const
|
|
2837
|
-
displayName: '
|
|
2798
|
+
const updateContractDocumentVersionReview_ConfigPropertyNames = {
|
|
2799
|
+
displayName: 'updateContractDocumentVersionReview',
|
|
2838
2800
|
parameters: {
|
|
2839
|
-
required: ['contractDocumentVersionId', '
|
|
2801
|
+
required: ['contractDocumentVersionId', 'review'],
|
|
2840
2802
|
optional: []
|
|
2841
2803
|
}
|
|
2842
2804
|
};
|
|
@@ -2846,7 +2808,7 @@ function createResourceParams$5(config) {
|
|
|
2846
2808
|
contractDocumentVersionId: config.contractDocumentVersionId
|
|
2847
2809
|
},
|
|
2848
2810
|
body: {
|
|
2849
|
-
|
|
2811
|
+
review: config.review
|
|
2850
2812
|
}
|
|
2851
2813
|
};
|
|
2852
2814
|
return resourceParams;
|
|
@@ -2855,21 +2817,11 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
2855
2817
|
const config = {};
|
|
2856
2818
|
typeCheckScalars(untrustedConfig, config, {
|
|
2857
2819
|
contractDocumentVersionId: 0 /* String */,
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
const
|
|
2861
|
-
if (
|
|
2862
|
-
|
|
2863
|
-
for (let i = 0, arrayLength = untrustedConfig_reviewers.length; i < arrayLength; i++) {
|
|
2864
|
-
const untrustedConfig_reviewers_item = untrustedConfig_reviewers[i];
|
|
2865
|
-
if (untrustedIsObject(untrustedConfig_reviewers_item)) {
|
|
2866
|
-
const untrustedConfig_reviewers_item_object = {};
|
|
2867
|
-
if (untrustedConfig_reviewers_item_object !== undefined && Object.keys(untrustedConfig_reviewers_item_object).length >= 0) {
|
|
2868
|
-
untrustedConfig_reviewers_array.push(untrustedConfig_reviewers_item_object);
|
|
2869
|
-
}
|
|
2870
|
-
}
|
|
2871
|
-
}
|
|
2872
|
-
config.reviewers = untrustedConfig_reviewers_array;
|
|
2820
|
+
});
|
|
2821
|
+
const untrustedConfig_review = untrustedConfig.review;
|
|
2822
|
+
const referenceContractDocumentVersionReviewInputRepresentationValidationError = validate$6(untrustedConfig_review);
|
|
2823
|
+
if (referenceContractDocumentVersionReviewInputRepresentationValidationError === null) {
|
|
2824
|
+
config.review = untrustedConfig_review;
|
|
2873
2825
|
}
|
|
2874
2826
|
return config;
|
|
2875
2827
|
}
|
|
@@ -2904,12 +2856,12 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
2904
2856
|
throw response;
|
|
2905
2857
|
});
|
|
2906
2858
|
}
|
|
2907
|
-
const
|
|
2908
|
-
return function
|
|
2909
|
-
const config = validateAdapterConfig$5(untrustedConfig,
|
|
2859
|
+
const updateContractDocumentVersionReviewAdapterFactory = (luvio) => {
|
|
2860
|
+
return function updateContractDocumentVersionReview(untrustedConfig) {
|
|
2861
|
+
const config = validateAdapterConfig$5(untrustedConfig, updateContractDocumentVersionReview_ConfigPropertyNames);
|
|
2910
2862
|
// Invalid or incomplete config
|
|
2911
2863
|
if (config === null) {
|
|
2912
|
-
throw new Error('Invalid config for "
|
|
2864
|
+
throw new Error('Invalid config for "updateContractDocumentVersionReview"');
|
|
2913
2865
|
}
|
|
2914
2866
|
return buildNetworkSnapshot$5(luvio, config);
|
|
2915
2867
|
};
|
|
@@ -2952,10 +2904,10 @@ function createResourceRequest$4(config) {
|
|
|
2952
2904
|
};
|
|
2953
2905
|
}
|
|
2954
2906
|
|
|
2955
|
-
const
|
|
2956
|
-
displayName: '
|
|
2907
|
+
const createContractDocumentVersionReview_ConfigPropertyNames = {
|
|
2908
|
+
displayName: 'createContractDocumentVersionReview',
|
|
2957
2909
|
parameters: {
|
|
2958
|
-
required: ['contractDocumentVersionId', '
|
|
2910
|
+
required: ['contractDocumentVersionId', 'review'],
|
|
2959
2911
|
optional: []
|
|
2960
2912
|
}
|
|
2961
2913
|
};
|
|
@@ -2965,7 +2917,7 @@ function createResourceParams$4(config) {
|
|
|
2965
2917
|
contractDocumentVersionId: config.contractDocumentVersionId
|
|
2966
2918
|
},
|
|
2967
2919
|
body: {
|
|
2968
|
-
|
|
2920
|
+
review: config.review
|
|
2969
2921
|
}
|
|
2970
2922
|
};
|
|
2971
2923
|
return resourceParams;
|
|
@@ -2974,21 +2926,11 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
2974
2926
|
const config = {};
|
|
2975
2927
|
typeCheckScalars(untrustedConfig, config, {
|
|
2976
2928
|
contractDocumentVersionId: 0 /* String */,
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
const
|
|
2980
|
-
if (
|
|
2981
|
-
|
|
2982
|
-
for (let i = 0, arrayLength = untrustedConfig_reviewers.length; i < arrayLength; i++) {
|
|
2983
|
-
const untrustedConfig_reviewers_item = untrustedConfig_reviewers[i];
|
|
2984
|
-
if (untrustedIsObject(untrustedConfig_reviewers_item)) {
|
|
2985
|
-
const untrustedConfig_reviewers_item_object = {};
|
|
2986
|
-
if (untrustedConfig_reviewers_item_object !== undefined && Object.keys(untrustedConfig_reviewers_item_object).length >= 0) {
|
|
2987
|
-
untrustedConfig_reviewers_array.push(untrustedConfig_reviewers_item_object);
|
|
2988
|
-
}
|
|
2989
|
-
}
|
|
2990
|
-
}
|
|
2991
|
-
config.reviewers = untrustedConfig_reviewers_array;
|
|
2929
|
+
});
|
|
2930
|
+
const untrustedConfig_review = untrustedConfig.review;
|
|
2931
|
+
const referenceContractDocumentVersionReviewInputRepresentationValidationError = validate$6(untrustedConfig_review);
|
|
2932
|
+
if (referenceContractDocumentVersionReviewInputRepresentationValidationError === null) {
|
|
2933
|
+
config.review = untrustedConfig_review;
|
|
2992
2934
|
}
|
|
2993
2935
|
return config;
|
|
2994
2936
|
}
|
|
@@ -3023,12 +2965,12 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
3023
2965
|
throw response;
|
|
3024
2966
|
});
|
|
3025
2967
|
}
|
|
3026
|
-
const
|
|
3027
|
-
return function
|
|
3028
|
-
const config = validateAdapterConfig$4(untrustedConfig,
|
|
2968
|
+
const createContractDocumentVersionReviewAdapterFactory = (luvio) => {
|
|
2969
|
+
return function createContractDocumentVersionReview(untrustedConfig) {
|
|
2970
|
+
const config = validateAdapterConfig$4(untrustedConfig, createContractDocumentVersionReview_ConfigPropertyNames);
|
|
3029
2971
|
// Invalid or incomplete config
|
|
3030
2972
|
if (config === null) {
|
|
3031
|
-
throw new Error('Invalid config for "
|
|
2973
|
+
throw new Error('Invalid config for "createContractDocumentVersionReview"');
|
|
3032
2974
|
}
|
|
3033
2975
|
return buildNetworkSnapshot$4(luvio, config);
|
|
3034
2976
|
};
|
|
@@ -3150,7 +3092,7 @@ function validate$4(obj, path = 'DocumentGenerationProcessStatusRepresentation')
|
|
|
3150
3092
|
for (let i = 0; i < obj_contentDocuments.length; i++) {
|
|
3151
3093
|
const obj_contentDocuments_item = obj_contentDocuments[i];
|
|
3152
3094
|
const path_contentDocuments_item = path_contentDocuments + '[' + i + ']';
|
|
3153
|
-
const referencepath_contentDocuments_itemValidationError = validate$
|
|
3095
|
+
const referencepath_contentDocuments_itemValidationError = validate$d(obj_contentDocuments_item, path_contentDocuments_item);
|
|
3154
3096
|
if (referencepath_contentDocuments_itemValidationError !== null) {
|
|
3155
3097
|
let message = 'Object doesn\'t match ContentDocumentRepresentation (at "' + path_contentDocuments_item + '")\n';
|
|
3156
3098
|
message += referencepath_contentDocuments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4050,4 +3992,4 @@ const saveExternalDocumentAdapterFactory = (luvio) => {
|
|
|
4050
3992
|
};
|
|
4051
3993
|
};
|
|
4052
3994
|
|
|
4053
|
-
export { checkInAdapterFactory, checkoutContractDocumentVersionAdapterFactory, createContractDocumentVersionAndInitializeGenerateDocumentProcessAdapterFactory, deleteAttachmentAdapterFactory, deleteContractDocumentVersionReviewAdapterFactory, executeContractActionAdapterFactory, getContentDocumentAdapterFactory, getContractActionsAdapterFactory, getContractDocumentVersionAdapterFactory, getContractDocumentVersionReviewAdapterFactory, getDocumentGenerationProcessDetailsAdapterFactory,
|
|
3995
|
+
export { checkInAdapterFactory, checkoutContractDocumentVersionAdapterFactory, createContractDocumentVersionAndInitializeGenerateDocumentProcessAdapterFactory, createContractDocumentVersionReviewAdapterFactory, createExternalReviewDocumentAdapterFactory, deleteAttachmentAdapterFactory, deleteContractDocumentVersionReviewAdapterFactory, executeContractActionAdapterFactory, getContentDocumentAdapterFactory, getContractActionsAdapterFactory, getContractDocumentVersionAdapterFactory, getContractDocumentVersionReviewAdapterFactory, getDocumentGenerationProcessDetailsAdapterFactory, getTemplatesAdapterFactory, lockContractDocumentVersionAdapterFactory, saveExternalDocumentAdapterFactory, unlockAdapterFactory, updateContractDocumentVersionReviewAdapterFactory, updateContractDocumentVersionWithTemplateAdapterFactory };
|