@salesforce/lds-adapters-service-ecm 1.388.0 → 1.389.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/service-ecm.js +594 -391
- package/dist/es/es2018/types/src/generated/adapters/downloadServiceProcessTemplate.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectServiceAutomationServiceProcessDownloadByProductId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/ServiceProcessTemplateDownloadOutputRepresentation.d.ts +35 -0
- package/package.json +3 -3
- package/sfdc/index.js +552 -337
- package/src/raml/api.raml +28 -0
- package/src/raml/luvio.raml +7 -0
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$e, typeCheckConfig as typeCheckConfig$e, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -122,8 +122,8 @@ function createLink(ref) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
const VERSION$
|
|
126
|
-
function validate$
|
|
125
|
+
const VERSION$p = "5df1d4fd0e2e95371d19680f89716ea9";
|
|
126
|
+
function validate$F(obj, path = 'AgentActionAttributeOutputRepresentation') {
|
|
127
127
|
const v_error = (() => {
|
|
128
128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
129
129
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -210,10 +210,10 @@ function validate$E(obj, path = 'AgentActionAttributeOutputRepresentation') {
|
|
|
210
210
|
})();
|
|
211
211
|
return v_error === undefined ? null : v_error;
|
|
212
212
|
}
|
|
213
|
-
const select$
|
|
213
|
+
const select$D = function AgentActionAttributeOutputRepresentationSelect() {
|
|
214
214
|
return {
|
|
215
215
|
kind: 'Fragment',
|
|
216
|
-
version: VERSION$
|
|
216
|
+
version: VERSION$p,
|
|
217
217
|
private: [],
|
|
218
218
|
selections: [
|
|
219
219
|
{
|
|
@@ -278,7 +278,7 @@ const select$B = function AgentActionAttributeOutputRepresentationSelect() {
|
|
|
278
278
|
]
|
|
279
279
|
};
|
|
280
280
|
};
|
|
281
|
-
function equals$
|
|
281
|
+
function equals$p(existing, incoming) {
|
|
282
282
|
const existing_displayable = existing.displayable;
|
|
283
283
|
const incoming_displayable = incoming.displayable;
|
|
284
284
|
// if at least one of these optionals is defined
|
|
@@ -403,9 +403,9 @@ function equals$o(existing, incoming) {
|
|
|
403
403
|
return true;
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
const TTL$
|
|
407
|
-
const VERSION$
|
|
408
|
-
function validate$
|
|
406
|
+
const TTL$a = 500;
|
|
407
|
+
const VERSION$o = "0a5a9a38d481c4e8bad16be490eacce9";
|
|
408
|
+
function validate$E(obj, path = 'EinsteinAgentActionOutputRepresentation') {
|
|
409
409
|
const v_error = (() => {
|
|
410
410
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
411
411
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -418,7 +418,7 @@ function validate$D(obj, path = 'EinsteinAgentActionOutputRepresentation') {
|
|
|
418
418
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
419
419
|
const obj_attributes_item = obj_attributes[i];
|
|
420
420
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
421
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
421
|
+
const referencepath_attributes_itemValidationError = validate$F(obj_attributes_item, path_attributes_item);
|
|
422
422
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
423
423
|
let message = 'Object doesn\'t match AgentActionAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
424
424
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -495,24 +495,24 @@ function validate$D(obj, path = 'EinsteinAgentActionOutputRepresentation') {
|
|
|
495
495
|
})();
|
|
496
496
|
return v_error === undefined ? null : v_error;
|
|
497
497
|
}
|
|
498
|
-
const RepresentationType$
|
|
499
|
-
function keyBuilder$
|
|
500
|
-
return keyPrefix + '::' + RepresentationType$
|
|
498
|
+
const RepresentationType$b = 'EinsteinAgentActionOutputRepresentation';
|
|
499
|
+
function keyBuilder$i(luvio, config) {
|
|
500
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.id;
|
|
501
501
|
}
|
|
502
502
|
function keyBuilderFromType$6(luvio, object) {
|
|
503
503
|
const keyParams = {
|
|
504
504
|
id: object.id
|
|
505
505
|
};
|
|
506
|
-
return keyBuilder$
|
|
506
|
+
return keyBuilder$i(luvio, keyParams);
|
|
507
507
|
}
|
|
508
|
-
function normalize$
|
|
508
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
509
509
|
return input;
|
|
510
510
|
}
|
|
511
|
-
const select$
|
|
512
|
-
const { selections: AgentActionAttributeOutputRepresentation__selections, opaque: AgentActionAttributeOutputRepresentation__opaque, } = select$
|
|
511
|
+
const select$C = function EinsteinAgentActionOutputRepresentationSelect() {
|
|
512
|
+
const { selections: AgentActionAttributeOutputRepresentation__selections, opaque: AgentActionAttributeOutputRepresentation__opaque, } = select$D();
|
|
513
513
|
return {
|
|
514
514
|
kind: 'Fragment',
|
|
515
|
-
version: VERSION$
|
|
515
|
+
version: VERSION$o,
|
|
516
516
|
private: [],
|
|
517
517
|
selections: [
|
|
518
518
|
{
|
|
@@ -574,7 +574,7 @@ const select$A = function EinsteinAgentActionOutputRepresentationSelect() {
|
|
|
574
574
|
]
|
|
575
575
|
};
|
|
576
576
|
};
|
|
577
|
-
function equals$
|
|
577
|
+
function equals$o(existing, incoming) {
|
|
578
578
|
const existing_includeInProgressIndicator = existing.includeInProgressIndicator;
|
|
579
579
|
const incoming_includeInProgressIndicator = incoming.includeInProgressIndicator;
|
|
580
580
|
// if at least one of these optionals is defined
|
|
@@ -681,7 +681,7 @@ function equals$n(existing, incoming) {
|
|
|
681
681
|
const existing_attributes = existing.attributes;
|
|
682
682
|
const incoming_attributes = incoming.attributes;
|
|
683
683
|
const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
|
|
684
|
-
if (!(equals$
|
|
684
|
+
if (!(equals$p(existing_attributes_item, incoming_attributes_item))) {
|
|
685
685
|
return false;
|
|
686
686
|
}
|
|
687
687
|
});
|
|
@@ -690,41 +690,41 @@ function equals$n(existing, incoming) {
|
|
|
690
690
|
}
|
|
691
691
|
return true;
|
|
692
692
|
}
|
|
693
|
-
const ingest$
|
|
693
|
+
const ingest$b = function EinsteinAgentActionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
694
694
|
if (process.env.NODE_ENV !== 'production') {
|
|
695
|
-
const validateError = validate$
|
|
695
|
+
const validateError = validate$E(input);
|
|
696
696
|
if (validateError !== null) {
|
|
697
697
|
throw validateError;
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
const key = keyBuilderFromType$6(luvio, input);
|
|
701
|
-
const ttlToUse = TTL$
|
|
702
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
701
|
+
const ttlToUse = TTL$a;
|
|
702
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "ecm", VERSION$o, RepresentationType$b, equals$o);
|
|
703
703
|
return createLink(key);
|
|
704
704
|
};
|
|
705
|
-
function getTypeCacheKeys$
|
|
705
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
706
706
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
707
707
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
708
708
|
rootKeySet.set(rootKey, {
|
|
709
709
|
namespace: keyPrefix,
|
|
710
|
-
representationName: RepresentationType$
|
|
710
|
+
representationName: RepresentationType$b,
|
|
711
711
|
mergeable: false
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
714
|
|
|
715
|
-
function select$
|
|
716
|
-
return select$
|
|
715
|
+
function select$B(luvio, params) {
|
|
716
|
+
return select$C();
|
|
717
717
|
}
|
|
718
|
-
function getResponseCacheKeys$
|
|
719
|
-
getTypeCacheKeys$
|
|
718
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
719
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
720
720
|
}
|
|
721
|
-
function ingestSuccess$
|
|
721
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
722
722
|
const { body } = response;
|
|
723
723
|
const key = keyBuilderFromType$6(luvio, body);
|
|
724
|
-
luvio.storeIngest(key, ingest$
|
|
724
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
725
725
|
const snapshot = luvio.storeLookup({
|
|
726
726
|
recordId: key,
|
|
727
|
-
node: select$
|
|
727
|
+
node: select$B(),
|
|
728
728
|
variables: {},
|
|
729
729
|
});
|
|
730
730
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -735,7 +735,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
735
735
|
deepFreeze(snapshot.data);
|
|
736
736
|
return snapshot;
|
|
737
737
|
}
|
|
738
|
-
function createResourceRequest$
|
|
738
|
+
function createResourceRequest$d(config) {
|
|
739
739
|
const headers = {};
|
|
740
740
|
return {
|
|
741
741
|
baseUri: '/services/data/v66.0',
|
|
@@ -749,7 +749,7 @@ function createResourceRequest$c(config) {
|
|
|
749
749
|
};
|
|
750
750
|
}
|
|
751
751
|
|
|
752
|
-
const adapterName$
|
|
752
|
+
const adapterName$d = 'createAgentAction';
|
|
753
753
|
const createAgentAction_ConfigPropertyMetadata = [
|
|
754
754
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
755
755
|
generateParamConfigMetadata('developerName', true, 2 /* Body */, 0 /* String */),
|
|
@@ -758,37 +758,37 @@ const createAgentAction_ConfigPropertyMetadata = [
|
|
|
758
758
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
759
759
|
generateParamConfigMetadata('serviceProcessId', true, 2 /* Body */, 0 /* String */),
|
|
760
760
|
];
|
|
761
|
-
const createAgentAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
762
|
-
const createResourceParams$
|
|
763
|
-
function typeCheckConfig$
|
|
761
|
+
const createAgentAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createAgentAction_ConfigPropertyMetadata);
|
|
762
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$e(createAgentAction_ConfigPropertyMetadata);
|
|
763
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
764
764
|
const config = {};
|
|
765
|
-
typeCheckConfig$
|
|
765
|
+
typeCheckConfig$e(untrustedConfig, config, createAgentAction_ConfigPropertyMetadata);
|
|
766
766
|
return config;
|
|
767
767
|
}
|
|
768
|
-
function validateAdapterConfig$
|
|
768
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
769
769
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
770
770
|
return null;
|
|
771
771
|
}
|
|
772
772
|
if (process.env.NODE_ENV !== 'production') {
|
|
773
773
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
774
774
|
}
|
|
775
|
-
const config = typeCheckConfig$
|
|
775
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
776
776
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
777
777
|
return null;
|
|
778
778
|
}
|
|
779
779
|
return config;
|
|
780
780
|
}
|
|
781
|
-
function buildNetworkSnapshot$
|
|
782
|
-
const resourceParams = createResourceParams$
|
|
783
|
-
const request = createResourceRequest$
|
|
781
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
782
|
+
const resourceParams = createResourceParams$d(config);
|
|
783
|
+
const request = createResourceRequest$d(resourceParams);
|
|
784
784
|
return luvio.dispatchResourceRequest(request, options)
|
|
785
785
|
.then((response) => {
|
|
786
786
|
return luvio.handleSuccessResponse(() => {
|
|
787
|
-
const snapshot = ingestSuccess$
|
|
787
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response);
|
|
788
788
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
789
789
|
}, () => {
|
|
790
790
|
const cache = new StoreKeyMap();
|
|
791
|
-
getResponseCacheKeys$
|
|
791
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
792
792
|
return cache;
|
|
793
793
|
});
|
|
794
794
|
}, (response) => {
|
|
@@ -798,17 +798,17 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
798
798
|
}
|
|
799
799
|
const createAgentActionAdapterFactory = (luvio) => {
|
|
800
800
|
return function createAgentAction(untrustedConfig) {
|
|
801
|
-
const config = validateAdapterConfig$
|
|
801
|
+
const config = validateAdapterConfig$d(untrustedConfig, createAgentAction_ConfigPropertyNames);
|
|
802
802
|
// Invalid or incomplete config
|
|
803
803
|
if (config === null) {
|
|
804
804
|
throw new Error('Invalid config for "createAgentAction"');
|
|
805
805
|
}
|
|
806
|
-
return buildNetworkSnapshot$
|
|
806
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
807
807
|
};
|
|
808
808
|
};
|
|
809
809
|
|
|
810
|
-
const VERSION$
|
|
811
|
-
function validate$
|
|
810
|
+
const VERSION$n = "18356685b1dcb3cf1226dcc54a7465de";
|
|
811
|
+
function validate$D(obj, path = 'AgentAutolaunchedFlowStatusRepresentation') {
|
|
812
812
|
const v_error = (() => {
|
|
813
813
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
814
814
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -826,10 +826,10 @@ function validate$C(obj, path = 'AgentAutolaunchedFlowStatusRepresentation') {
|
|
|
826
826
|
})();
|
|
827
827
|
return v_error === undefined ? null : v_error;
|
|
828
828
|
}
|
|
829
|
-
const select$
|
|
829
|
+
const select$A = function AgentAutolaunchedFlowStatusRepresentationSelect() {
|
|
830
830
|
return {
|
|
831
831
|
kind: 'Fragment',
|
|
832
|
-
version: VERSION$
|
|
832
|
+
version: VERSION$n,
|
|
833
833
|
private: [],
|
|
834
834
|
selections: [
|
|
835
835
|
{
|
|
@@ -843,7 +843,7 @@ const select$y = function AgentAutolaunchedFlowStatusRepresentationSelect() {
|
|
|
843
843
|
]
|
|
844
844
|
};
|
|
845
845
|
};
|
|
846
|
-
function equals$
|
|
846
|
+
function equals$n(existing, incoming) {
|
|
847
847
|
const existing_code = existing.code;
|
|
848
848
|
const incoming_code = incoming.code;
|
|
849
849
|
if (!(existing_code === incoming_code)) {
|
|
@@ -857,9 +857,9 @@ function equals$m(existing, incoming) {
|
|
|
857
857
|
return true;
|
|
858
858
|
}
|
|
859
859
|
|
|
860
|
-
const TTL$
|
|
861
|
-
const VERSION$
|
|
862
|
-
function validate$
|
|
860
|
+
const TTL$9 = 500;
|
|
861
|
+
const VERSION$m = "9a585247768eba0bf6edb1791e738701";
|
|
862
|
+
function validate$C(obj, path = 'AgentAutolaunchedFlowRepresentation') {
|
|
863
863
|
const v_error = (() => {
|
|
864
864
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
865
865
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -944,7 +944,7 @@ function validate$B(obj, path = 'AgentAutolaunchedFlowRepresentation') {
|
|
|
944
944
|
}
|
|
945
945
|
const obj_status = obj.status;
|
|
946
946
|
const path_status = path + '.status';
|
|
947
|
-
const referencepath_statusValidationError = validate$
|
|
947
|
+
const referencepath_statusValidationError = validate$D(obj_status, path_status);
|
|
948
948
|
if (referencepath_statusValidationError !== null) {
|
|
949
949
|
let message = 'Object doesn\'t match AgentAutolaunchedFlowStatusRepresentation (at "' + path_status + '")\n';
|
|
950
950
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -953,24 +953,24 @@ function validate$B(obj, path = 'AgentAutolaunchedFlowRepresentation') {
|
|
|
953
953
|
})();
|
|
954
954
|
return v_error === undefined ? null : v_error;
|
|
955
955
|
}
|
|
956
|
-
const RepresentationType$
|
|
957
|
-
function keyBuilder$
|
|
958
|
-
return keyPrefix + '::' + RepresentationType$
|
|
956
|
+
const RepresentationType$a = 'AgentAutolaunchedFlowRepresentation';
|
|
957
|
+
function keyBuilder$h(luvio, config) {
|
|
958
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + (config.id === null ? '' : config.id);
|
|
959
959
|
}
|
|
960
960
|
function keyBuilderFromType$5(luvio, object) {
|
|
961
961
|
const keyParams = {
|
|
962
962
|
id: object.flowDefinitionId
|
|
963
963
|
};
|
|
964
|
-
return keyBuilder$
|
|
964
|
+
return keyBuilder$h(luvio, keyParams);
|
|
965
965
|
}
|
|
966
|
-
function normalize$
|
|
966
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
967
967
|
return input;
|
|
968
968
|
}
|
|
969
|
-
const select$
|
|
970
|
-
const { selections: AgentAutolaunchedFlowStatusRepresentation__selections, opaque: AgentAutolaunchedFlowStatusRepresentation__opaque, } = select$
|
|
969
|
+
const select$z = function AgentAutolaunchedFlowRepresentationSelect() {
|
|
970
|
+
const { selections: AgentAutolaunchedFlowStatusRepresentation__selections, opaque: AgentAutolaunchedFlowStatusRepresentation__opaque, } = select$A();
|
|
971
971
|
return {
|
|
972
972
|
kind: 'Fragment',
|
|
973
|
-
version: VERSION$
|
|
973
|
+
version: VERSION$m,
|
|
974
974
|
private: [],
|
|
975
975
|
selections: [
|
|
976
976
|
{
|
|
@@ -993,7 +993,7 @@ const select$x = function AgentAutolaunchedFlowRepresentationSelect() {
|
|
|
993
993
|
]
|
|
994
994
|
};
|
|
995
995
|
};
|
|
996
|
-
function equals$
|
|
996
|
+
function equals$m(existing, incoming) {
|
|
997
997
|
const existing_flowDefinitionId = existing.flowDefinitionId;
|
|
998
998
|
const incoming_flowDefinitionId = incoming.flowDefinitionId;
|
|
999
999
|
if (!(existing_flowDefinitionId === incoming_flowDefinitionId)) {
|
|
@@ -1011,46 +1011,46 @@ function equals$l(existing, incoming) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
const existing_status = existing.status;
|
|
1013
1013
|
const incoming_status = incoming.status;
|
|
1014
|
-
if (!(equals$
|
|
1014
|
+
if (!(equals$n(existing_status, incoming_status))) {
|
|
1015
1015
|
return false;
|
|
1016
1016
|
}
|
|
1017
1017
|
return true;
|
|
1018
1018
|
}
|
|
1019
|
-
const ingest$
|
|
1019
|
+
const ingest$a = function AgentAutolaunchedFlowRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1020
1020
|
if (process.env.NODE_ENV !== 'production') {
|
|
1021
|
-
const validateError = validate$
|
|
1021
|
+
const validateError = validate$C(input);
|
|
1022
1022
|
if (validateError !== null) {
|
|
1023
1023
|
throw validateError;
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
1026
|
const key = keyBuilderFromType$5(luvio, input);
|
|
1027
|
-
const ttlToUse = TTL$
|
|
1028
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1027
|
+
const ttlToUse = TTL$9;
|
|
1028
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "ecm", VERSION$m, RepresentationType$a, equals$m);
|
|
1029
1029
|
return createLink(key);
|
|
1030
1030
|
};
|
|
1031
|
-
function getTypeCacheKeys$
|
|
1031
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
1032
1032
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1033
1033
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
1034
1034
|
rootKeySet.set(rootKey, {
|
|
1035
1035
|
namespace: keyPrefix,
|
|
1036
|
-
representationName: RepresentationType$
|
|
1036
|
+
representationName: RepresentationType$a,
|
|
1037
1037
|
mergeable: false
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
1040
|
|
|
1041
|
-
function select$
|
|
1042
|
-
return select$
|
|
1041
|
+
function select$y(luvio, params) {
|
|
1042
|
+
return select$z();
|
|
1043
1043
|
}
|
|
1044
|
-
function getResponseCacheKeys$
|
|
1045
|
-
getTypeCacheKeys$
|
|
1044
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
1045
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
1046
1046
|
}
|
|
1047
|
-
function ingestSuccess$
|
|
1047
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
1048
1048
|
const { body } = response;
|
|
1049
1049
|
const key = keyBuilderFromType$5(luvio, body);
|
|
1050
|
-
luvio.storeIngest(key, ingest$
|
|
1050
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
1051
1051
|
const snapshot = luvio.storeLookup({
|
|
1052
1052
|
recordId: key,
|
|
1053
|
-
node: select$
|
|
1053
|
+
node: select$y(),
|
|
1054
1054
|
variables: {},
|
|
1055
1055
|
});
|
|
1056
1056
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1061,7 +1061,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
1061
1061
|
deepFreeze(snapshot.data);
|
|
1062
1062
|
return snapshot;
|
|
1063
1063
|
}
|
|
1064
|
-
function createResourceRequest$
|
|
1064
|
+
function createResourceRequest$c(config) {
|
|
1065
1065
|
const headers = {};
|
|
1066
1066
|
return {
|
|
1067
1067
|
baseUri: '/services/data/v66.0',
|
|
@@ -1075,44 +1075,44 @@ function createResourceRequest$b(config) {
|
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
1077
|
|
|
1078
|
-
const adapterName$
|
|
1078
|
+
const adapterName$c = 'createAgentFlow';
|
|
1079
1079
|
const createAgentFlow_ConfigPropertyMetadata = [
|
|
1080
1080
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
1081
1081
|
generateParamConfigMetadata('developerName', true, 2 /* Body */, 0 /* String */),
|
|
1082
1082
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
1083
1083
|
generateParamConfigMetadata('serviceProcessId', true, 2 /* Body */, 0 /* String */),
|
|
1084
1084
|
];
|
|
1085
|
-
const createAgentFlow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1086
|
-
const createResourceParams$
|
|
1087
|
-
function typeCheckConfig$
|
|
1085
|
+
const createAgentFlow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createAgentFlow_ConfigPropertyMetadata);
|
|
1086
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$e(createAgentFlow_ConfigPropertyMetadata);
|
|
1087
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
1088
1088
|
const config = {};
|
|
1089
|
-
typeCheckConfig$
|
|
1089
|
+
typeCheckConfig$e(untrustedConfig, config, createAgentFlow_ConfigPropertyMetadata);
|
|
1090
1090
|
return config;
|
|
1091
1091
|
}
|
|
1092
|
-
function validateAdapterConfig$
|
|
1092
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
1093
1093
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1094
1094
|
return null;
|
|
1095
1095
|
}
|
|
1096
1096
|
if (process.env.NODE_ENV !== 'production') {
|
|
1097
1097
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1098
1098
|
}
|
|
1099
|
-
const config = typeCheckConfig$
|
|
1099
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
1100
1100
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1101
1101
|
return null;
|
|
1102
1102
|
}
|
|
1103
1103
|
return config;
|
|
1104
1104
|
}
|
|
1105
|
-
function buildNetworkSnapshot$
|
|
1106
|
-
const resourceParams = createResourceParams$
|
|
1107
|
-
const request = createResourceRequest$
|
|
1105
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
1106
|
+
const resourceParams = createResourceParams$c(config);
|
|
1107
|
+
const request = createResourceRequest$c(resourceParams);
|
|
1108
1108
|
return luvio.dispatchResourceRequest(request, options)
|
|
1109
1109
|
.then((response) => {
|
|
1110
1110
|
return luvio.handleSuccessResponse(() => {
|
|
1111
|
-
const snapshot = ingestSuccess$
|
|
1111
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
1112
1112
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1113
1113
|
}, () => {
|
|
1114
1114
|
const cache = new StoreKeyMap();
|
|
1115
|
-
getResponseCacheKeys$
|
|
1115
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
1116
1116
|
return cache;
|
|
1117
1117
|
});
|
|
1118
1118
|
}, (response) => {
|
|
@@ -1122,16 +1122,16 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
const createAgentFlowAdapterFactory = (luvio) => {
|
|
1124
1124
|
return function createAgentFlow(untrustedConfig) {
|
|
1125
|
-
const config = validateAdapterConfig$
|
|
1125
|
+
const config = validateAdapterConfig$c(untrustedConfig, createAgentFlow_ConfigPropertyNames);
|
|
1126
1126
|
// Invalid or incomplete config
|
|
1127
1127
|
if (config === null) {
|
|
1128
1128
|
throw new Error('Invalid config for "createAgentFlow"');
|
|
1129
1129
|
}
|
|
1130
|
-
return buildNetworkSnapshot$
|
|
1130
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
1131
1131
|
};
|
|
1132
1132
|
};
|
|
1133
1133
|
|
|
1134
|
-
function validate$
|
|
1134
|
+
function validate$B(obj, path = 'AgentActionInputRepresentation') {
|
|
1135
1135
|
const v_error = (() => {
|
|
1136
1136
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1137
1137
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1252,7 +1252,7 @@ function validate$A(obj, path = 'AgentActionInputRepresentation') {
|
|
|
1252
1252
|
return v_error === undefined ? null : v_error;
|
|
1253
1253
|
}
|
|
1254
1254
|
|
|
1255
|
-
function validate$
|
|
1255
|
+
function validate$A(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
1256
1256
|
const v_error = (() => {
|
|
1257
1257
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1258
1258
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1345,7 +1345,7 @@ function validate$z(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
|
1345
1345
|
return v_error === undefined ? null : v_error;
|
|
1346
1346
|
}
|
|
1347
1347
|
|
|
1348
|
-
function validate$
|
|
1348
|
+
function validate$z(obj, path = 'PicklistAttributeTypeInputRepresentation') {
|
|
1349
1349
|
const v_error = (() => {
|
|
1350
1350
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1351
1351
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1424,7 +1424,7 @@ function validate$y(obj, path = 'PicklistAttributeTypeInputRepresentation') {
|
|
|
1424
1424
|
return v_error === undefined ? null : v_error;
|
|
1425
1425
|
}
|
|
1426
1426
|
|
|
1427
|
-
function validate$
|
|
1427
|
+
function validate$y(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
1428
1428
|
const v_error = (() => {
|
|
1429
1429
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1430
1430
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1790,7 +1790,7 @@ function validate$x(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
1790
1790
|
const path_picklistOptions_item = path_picklistOptions + '[' + i + ']';
|
|
1791
1791
|
let obj_picklistOptions_item_union0 = null;
|
|
1792
1792
|
const obj_picklistOptions_item_union0_error = (() => {
|
|
1793
|
-
const referencepath_picklistOptions_itemValidationError = validate$
|
|
1793
|
+
const referencepath_picklistOptions_itemValidationError = validate$z(obj_picklistOptions_item, path_picklistOptions_item);
|
|
1794
1794
|
if (referencepath_picklistOptions_itemValidationError !== null) {
|
|
1795
1795
|
let message = 'Object doesn\'t match PicklistAttributeTypeInputRepresentation (at "' + path_picklistOptions_item + '")\n';
|
|
1796
1796
|
message += referencepath_picklistOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1849,7 +1849,7 @@ function validate$x(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
1849
1849
|
return v_error === undefined ? null : v_error;
|
|
1850
1850
|
}
|
|
1851
1851
|
|
|
1852
|
-
function validate$
|
|
1852
|
+
function validate$x(obj, path = 'SectionInputRepresentation') {
|
|
1853
1853
|
const v_error = (() => {
|
|
1854
1854
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1855
1855
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1991,7 +1991,7 @@ function validate$w(obj, path = 'SectionInputRepresentation') {
|
|
|
1991
1991
|
return v_error === undefined ? null : v_error;
|
|
1992
1992
|
}
|
|
1993
1993
|
|
|
1994
|
-
function validate$
|
|
1994
|
+
function validate$w(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
1995
1995
|
const v_error = (() => {
|
|
1996
1996
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1997
1997
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2056,7 +2056,7 @@ function validate$v(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
|
2056
2056
|
return v_error === undefined ? null : v_error;
|
|
2057
2057
|
}
|
|
2058
2058
|
|
|
2059
|
-
function validate$
|
|
2059
|
+
function validate$v(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
2060
2060
|
const v_error = (() => {
|
|
2061
2061
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2062
2062
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2177,7 +2177,7 @@ function validate$u(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
|
2177
2177
|
return v_error === undefined ? null : v_error;
|
|
2178
2178
|
}
|
|
2179
2179
|
|
|
2180
|
-
function validate$
|
|
2180
|
+
function validate$u(obj, path = 'IntakeFormInputRepresentation') {
|
|
2181
2181
|
const v_error = (() => {
|
|
2182
2182
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2183
2183
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2298,7 +2298,7 @@ function validate$t(obj, path = 'IntakeFormInputRepresentation') {
|
|
|
2298
2298
|
return v_error === undefined ? null : v_error;
|
|
2299
2299
|
}
|
|
2300
2300
|
|
|
2301
|
-
function validate$
|
|
2301
|
+
function validate$t(obj, path = 'IntegrationDefInputRepresentation') {
|
|
2302
2302
|
const v_error = (() => {
|
|
2303
2303
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2304
2304
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2391,7 +2391,7 @@ function validate$s(obj, path = 'IntegrationDefInputRepresentation') {
|
|
|
2391
2391
|
return v_error === undefined ? null : v_error;
|
|
2392
2392
|
}
|
|
2393
2393
|
|
|
2394
|
-
function validate$
|
|
2394
|
+
function validate$s(obj, path = 'PreprocessorInputRepresentation') {
|
|
2395
2395
|
const v_error = (() => {
|
|
2396
2396
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2397
2397
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2484,7 +2484,7 @@ function validate$r(obj, path = 'PreprocessorInputRepresentation') {
|
|
|
2484
2484
|
return v_error === undefined ? null : v_error;
|
|
2485
2485
|
}
|
|
2486
2486
|
|
|
2487
|
-
function validate$
|
|
2487
|
+
function validate$r(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
2488
2488
|
const v_error = (() => {
|
|
2489
2489
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2490
2490
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2675,8 +2675,8 @@ function validate$q(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
|
2675
2675
|
return v_error === undefined ? null : v_error;
|
|
2676
2676
|
}
|
|
2677
2677
|
|
|
2678
|
-
const VERSION$
|
|
2679
|
-
function validate$
|
|
2678
|
+
const VERSION$l = "ac94c0c52190d3f2f063659052e5b46e";
|
|
2679
|
+
function validate$q(obj, path = 'AgentActionOutputRepresentation') {
|
|
2680
2680
|
const v_error = (() => {
|
|
2681
2681
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2682
2682
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2768,10 +2768,10 @@ function validate$p(obj, path = 'AgentActionOutputRepresentation') {
|
|
|
2768
2768
|
})();
|
|
2769
2769
|
return v_error === undefined ? null : v_error;
|
|
2770
2770
|
}
|
|
2771
|
-
const select$
|
|
2771
|
+
const select$x = function AgentActionOutputRepresentationSelect() {
|
|
2772
2772
|
return {
|
|
2773
2773
|
kind: 'Fragment',
|
|
2774
|
-
version: VERSION$
|
|
2774
|
+
version: VERSION$l,
|
|
2775
2775
|
private: [],
|
|
2776
2776
|
selections: [
|
|
2777
2777
|
{
|
|
@@ -2792,7 +2792,7 @@ const select$v = function AgentActionOutputRepresentationSelect() {
|
|
|
2792
2792
|
]
|
|
2793
2793
|
};
|
|
2794
2794
|
};
|
|
2795
|
-
function equals$
|
|
2795
|
+
function equals$l(existing, incoming) {
|
|
2796
2796
|
const existing_agentActionId = existing.agentActionId;
|
|
2797
2797
|
const incoming_agentActionId = incoming.agentActionId;
|
|
2798
2798
|
// if at least one of these optionals is defined
|
|
@@ -2835,8 +2835,8 @@ function equals$k(existing, incoming) {
|
|
|
2835
2835
|
return true;
|
|
2836
2836
|
}
|
|
2837
2837
|
|
|
2838
|
-
const VERSION$
|
|
2839
|
-
function validate$
|
|
2838
|
+
const VERSION$k = "0b2080174fe6d4ee4f4a0de27011fc7d";
|
|
2839
|
+
function validate$p(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
2840
2840
|
const v_error = (() => {
|
|
2841
2841
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2842
2842
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2900,10 +2900,10 @@ function validate$o(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
|
2900
2900
|
})();
|
|
2901
2901
|
return v_error === undefined ? null : v_error;
|
|
2902
2902
|
}
|
|
2903
|
-
const select$
|
|
2903
|
+
const select$w = function AssociatedArticleOutputRepresentationSelect() {
|
|
2904
2904
|
return {
|
|
2905
2905
|
kind: 'Fragment',
|
|
2906
|
-
version: VERSION$
|
|
2906
|
+
version: VERSION$k,
|
|
2907
2907
|
private: [],
|
|
2908
2908
|
selections: [
|
|
2909
2909
|
{
|
|
@@ -2919,7 +2919,7 @@ const select$u = function AssociatedArticleOutputRepresentationSelect() {
|
|
|
2919
2919
|
]
|
|
2920
2920
|
};
|
|
2921
2921
|
};
|
|
2922
|
-
function equals$
|
|
2922
|
+
function equals$k(existing, incoming) {
|
|
2923
2923
|
const existing_id = existing.id;
|
|
2924
2924
|
const incoming_id = incoming.id;
|
|
2925
2925
|
// if at least one of these optionals is defined
|
|
@@ -2949,8 +2949,8 @@ function equals$j(existing, incoming) {
|
|
|
2949
2949
|
return true;
|
|
2950
2950
|
}
|
|
2951
2951
|
|
|
2952
|
-
const VERSION$
|
|
2953
|
-
function validate$
|
|
2952
|
+
const VERSION$j = "6859d872ce6d03f8f07819eb40c43fe6";
|
|
2953
|
+
function validate$o(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
2954
2954
|
const v_error = (() => {
|
|
2955
2955
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2956
2956
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3014,10 +3014,10 @@ function validate$n(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
|
3014
3014
|
})();
|
|
3015
3015
|
return v_error === undefined ? null : v_error;
|
|
3016
3016
|
}
|
|
3017
|
-
const select$
|
|
3017
|
+
const select$v = function EligibilityRuleOutputRepresentationSelect() {
|
|
3018
3018
|
return {
|
|
3019
3019
|
kind: 'Fragment',
|
|
3020
|
-
version: VERSION$
|
|
3020
|
+
version: VERSION$j,
|
|
3021
3021
|
private: [],
|
|
3022
3022
|
selections: [
|
|
3023
3023
|
{
|
|
@@ -3033,7 +3033,7 @@ const select$t = function EligibilityRuleOutputRepresentationSelect() {
|
|
|
3033
3033
|
]
|
|
3034
3034
|
};
|
|
3035
3035
|
};
|
|
3036
|
-
function equals$
|
|
3036
|
+
function equals$j(existing, incoming) {
|
|
3037
3037
|
const existing_eligibilityRuleId = existing.eligibilityRuleId;
|
|
3038
3038
|
const incoming_eligibilityRuleId = incoming.eligibilityRuleId;
|
|
3039
3039
|
// if at least one of these optionals is defined
|
|
@@ -3063,8 +3063,8 @@ function equals$i(existing, incoming) {
|
|
|
3063
3063
|
return true;
|
|
3064
3064
|
}
|
|
3065
3065
|
|
|
3066
|
-
const VERSION$
|
|
3067
|
-
function validate$
|
|
3066
|
+
const VERSION$i = "b5216beece7c04763cff6924e6953f93";
|
|
3067
|
+
function validate$n(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
3068
3068
|
const v_error = (() => {
|
|
3069
3069
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3070
3070
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3156,10 +3156,10 @@ function validate$m(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
|
3156
3156
|
})();
|
|
3157
3157
|
return v_error === undefined ? null : v_error;
|
|
3158
3158
|
}
|
|
3159
|
-
const select$
|
|
3159
|
+
const select$u = function FulfillmentFlowOutputRepresentationSelect() {
|
|
3160
3160
|
return {
|
|
3161
3161
|
kind: 'Fragment',
|
|
3162
|
-
version: VERSION$
|
|
3162
|
+
version: VERSION$i,
|
|
3163
3163
|
private: [],
|
|
3164
3164
|
selections: [
|
|
3165
3165
|
{
|
|
@@ -3180,7 +3180,7 @@ const select$s = function FulfillmentFlowOutputRepresentationSelect() {
|
|
|
3180
3180
|
]
|
|
3181
3181
|
};
|
|
3182
3182
|
};
|
|
3183
|
-
function equals$
|
|
3183
|
+
function equals$i(existing, incoming) {
|
|
3184
3184
|
const existing_fulFillmentFlowId = existing.fulFillmentFlowId;
|
|
3185
3185
|
const incoming_fulFillmentFlowId = incoming.fulFillmentFlowId;
|
|
3186
3186
|
// if at least one of these optionals is defined
|
|
@@ -3223,8 +3223,8 @@ function equals$h(existing, incoming) {
|
|
|
3223
3223
|
return true;
|
|
3224
3224
|
}
|
|
3225
3225
|
|
|
3226
|
-
const VERSION$
|
|
3227
|
-
function validate$
|
|
3226
|
+
const VERSION$h = "dc8ba723ca754951db42f9d0e6891a06";
|
|
3227
|
+
function validate$m(obj, path = 'IntakeFormOutputRepresentation') {
|
|
3228
3228
|
const v_error = (() => {
|
|
3229
3229
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3230
3230
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3456,10 +3456,10 @@ function validate$l(obj, path = 'IntakeFormOutputRepresentation') {
|
|
|
3456
3456
|
})();
|
|
3457
3457
|
return v_error === undefined ? null : v_error;
|
|
3458
3458
|
}
|
|
3459
|
-
const select$
|
|
3459
|
+
const select$t = function IntakeFormOutputRepresentationSelect() {
|
|
3460
3460
|
return {
|
|
3461
3461
|
kind: 'Fragment',
|
|
3462
|
-
version: VERSION$
|
|
3462
|
+
version: VERSION$h,
|
|
3463
3463
|
private: [],
|
|
3464
3464
|
selections: [
|
|
3465
3465
|
{
|
|
@@ -3505,7 +3505,7 @@ const select$r = function IntakeFormOutputRepresentationSelect() {
|
|
|
3505
3505
|
]
|
|
3506
3506
|
};
|
|
3507
3507
|
};
|
|
3508
|
-
function equals$
|
|
3508
|
+
function equals$h(existing, incoming) {
|
|
3509
3509
|
const existing_id = existing.id;
|
|
3510
3510
|
const incoming_id = incoming.id;
|
|
3511
3511
|
// if at least one of these optionals is defined
|
|
@@ -3613,8 +3613,8 @@ function equals$g(existing, incoming) {
|
|
|
3613
3613
|
return true;
|
|
3614
3614
|
}
|
|
3615
3615
|
|
|
3616
|
-
const VERSION$
|
|
3617
|
-
function validate$
|
|
3616
|
+
const VERSION$g = "1006a153c933b8bc4b1d44663893e206";
|
|
3617
|
+
function validate$l(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
3618
3618
|
const v_error = (() => {
|
|
3619
3619
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3620
3620
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3678,10 +3678,10 @@ function validate$k(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
|
3678
3678
|
})();
|
|
3679
3679
|
return v_error === undefined ? null : v_error;
|
|
3680
3680
|
}
|
|
3681
|
-
const select$
|
|
3681
|
+
const select$s = function IntegrationDefinitionOutputPresentationSelect() {
|
|
3682
3682
|
return {
|
|
3683
3683
|
kind: 'Fragment',
|
|
3684
|
-
version: VERSION$
|
|
3684
|
+
version: VERSION$g,
|
|
3685
3685
|
private: [],
|
|
3686
3686
|
selections: [
|
|
3687
3687
|
{
|
|
@@ -3697,7 +3697,7 @@ const select$q = function IntegrationDefinitionOutputPresentationSelect() {
|
|
|
3697
3697
|
]
|
|
3698
3698
|
};
|
|
3699
3699
|
};
|
|
3700
|
-
function equals$
|
|
3700
|
+
function equals$g(existing, incoming) {
|
|
3701
3701
|
const existing_id = existing.id;
|
|
3702
3702
|
const incoming_id = incoming.id;
|
|
3703
3703
|
// if at least one of these optionals is defined
|
|
@@ -3727,8 +3727,8 @@ function equals$f(existing, incoming) {
|
|
|
3727
3727
|
return true;
|
|
3728
3728
|
}
|
|
3729
3729
|
|
|
3730
|
-
const VERSION$
|
|
3731
|
-
function validate$
|
|
3730
|
+
const VERSION$f = "2d685b1e467eb8d61276e834ea3b74a3";
|
|
3731
|
+
function validate$k(obj, path = 'PreprocessorOutputRepresentation') {
|
|
3732
3732
|
const v_error = (() => {
|
|
3733
3733
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3734
3734
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3792,10 +3792,10 @@ function validate$j(obj, path = 'PreprocessorOutputRepresentation') {
|
|
|
3792
3792
|
})();
|
|
3793
3793
|
return v_error === undefined ? null : v_error;
|
|
3794
3794
|
}
|
|
3795
|
-
const select$
|
|
3795
|
+
const select$r = function PreprocessorOutputRepresentationSelect() {
|
|
3796
3796
|
return {
|
|
3797
3797
|
kind: 'Fragment',
|
|
3798
|
-
version: VERSION$
|
|
3798
|
+
version: VERSION$f,
|
|
3799
3799
|
private: [],
|
|
3800
3800
|
selections: [
|
|
3801
3801
|
{
|
|
@@ -3811,7 +3811,7 @@ const select$p = function PreprocessorOutputRepresentationSelect() {
|
|
|
3811
3811
|
]
|
|
3812
3812
|
};
|
|
3813
3813
|
};
|
|
3814
|
-
function equals$
|
|
3814
|
+
function equals$f(existing, incoming) {
|
|
3815
3815
|
const existing_id = existing.id;
|
|
3816
3816
|
const incoming_id = incoming.id;
|
|
3817
3817
|
// if at least one of these optionals is defined
|
|
@@ -3841,8 +3841,8 @@ function equals$e(existing, incoming) {
|
|
|
3841
3841
|
return true;
|
|
3842
3842
|
}
|
|
3843
3843
|
|
|
3844
|
-
const VERSION$
|
|
3845
|
-
function validate$
|
|
3844
|
+
const VERSION$e = "bb9dde3a26e01fbcb2b943119fcb279a";
|
|
3845
|
+
function validate$j(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
3846
3846
|
const v_error = (() => {
|
|
3847
3847
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3848
3848
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4018,10 +4018,10 @@ function validate$i(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
|
4018
4018
|
})();
|
|
4019
4019
|
return v_error === undefined ? null : v_error;
|
|
4020
4020
|
}
|
|
4021
|
-
const select$
|
|
4021
|
+
const select$q = function ProductDetailsOutputRepresentationSelect() {
|
|
4022
4022
|
return {
|
|
4023
4023
|
kind: 'Fragment',
|
|
4024
|
-
version: VERSION$
|
|
4024
|
+
version: VERSION$e,
|
|
4025
4025
|
private: [],
|
|
4026
4026
|
selections: [
|
|
4027
4027
|
{
|
|
@@ -4057,7 +4057,7 @@ const select$o = function ProductDetailsOutputRepresentationSelect() {
|
|
|
4057
4057
|
]
|
|
4058
4058
|
};
|
|
4059
4059
|
};
|
|
4060
|
-
function equals$
|
|
4060
|
+
function equals$e(existing, incoming) {
|
|
4061
4061
|
const existing_description = existing.description;
|
|
4062
4062
|
const incoming_description = incoming.description;
|
|
4063
4063
|
// if at least one of these optionals is defined
|
|
@@ -4139,8 +4139,8 @@ function equals$d(existing, incoming) {
|
|
|
4139
4139
|
return true;
|
|
4140
4140
|
}
|
|
4141
4141
|
|
|
4142
|
-
const VERSION$
|
|
4143
|
-
function validate$
|
|
4142
|
+
const VERSION$d = "dc18ee4b99b0510d2c89ddf9261ea1e7";
|
|
4143
|
+
function validate$i(obj, path = 'ProductRequestOutputRepresentation') {
|
|
4144
4144
|
const v_error = (() => {
|
|
4145
4145
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4146
4146
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4154,7 +4154,7 @@ function validate$h(obj, path = 'ProductRequestOutputRepresentation') {
|
|
|
4154
4154
|
for (let i = 0; i < obj_productDetails.length; i++) {
|
|
4155
4155
|
const obj_productDetails_item = obj_productDetails[i];
|
|
4156
4156
|
const path_productDetails_item = path_productDetails + '[' + i + ']';
|
|
4157
|
-
const referencepath_productDetails_itemValidationError = validate$
|
|
4157
|
+
const referencepath_productDetails_itemValidationError = validate$j(obj_productDetails_item, path_productDetails_item);
|
|
4158
4158
|
if (referencepath_productDetails_itemValidationError !== null) {
|
|
4159
4159
|
let message = 'Object doesn\'t match ProductDetailsOutputRepresentation (at "' + path_productDetails_item + '")\n';
|
|
4160
4160
|
message += referencepath_productDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4333,11 +4333,11 @@ function validate$h(obj, path = 'ProductRequestOutputRepresentation') {
|
|
|
4333
4333
|
})();
|
|
4334
4334
|
return v_error === undefined ? null : v_error;
|
|
4335
4335
|
}
|
|
4336
|
-
const select$
|
|
4337
|
-
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$
|
|
4336
|
+
const select$p = function ProductRequestOutputRepresentationSelect() {
|
|
4337
|
+
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$q();
|
|
4338
4338
|
return {
|
|
4339
4339
|
kind: 'Fragment',
|
|
4340
|
-
version: VERSION$
|
|
4340
|
+
version: VERSION$d,
|
|
4341
4341
|
private: [],
|
|
4342
4342
|
selections: [
|
|
4343
4343
|
{
|
|
@@ -4380,7 +4380,7 @@ const select$n = function ProductRequestOutputRepresentationSelect() {
|
|
|
4380
4380
|
]
|
|
4381
4381
|
};
|
|
4382
4382
|
};
|
|
4383
|
-
function equals$
|
|
4383
|
+
function equals$d(existing, incoming) {
|
|
4384
4384
|
const existing_productDetails = existing.productDetails;
|
|
4385
4385
|
const incoming_productDetails = incoming.productDetails;
|
|
4386
4386
|
// if at least one of these optionals is defined
|
|
@@ -4391,7 +4391,7 @@ function equals$c(existing, incoming) {
|
|
|
4391
4391
|
return false;
|
|
4392
4392
|
}
|
|
4393
4393
|
const equals_productDetails_items = equalsArray(existing_productDetails, incoming_productDetails, (existing_productDetails_item, incoming_productDetails_item) => {
|
|
4394
|
-
if (!(equals$
|
|
4394
|
+
if (!(equals$e(existing_productDetails_item, incoming_productDetails_item))) {
|
|
4395
4395
|
return false;
|
|
4396
4396
|
}
|
|
4397
4397
|
});
|
|
@@ -4480,8 +4480,8 @@ function equals$c(existing, incoming) {
|
|
|
4480
4480
|
return true;
|
|
4481
4481
|
}
|
|
4482
4482
|
|
|
4483
|
-
const VERSION$
|
|
4484
|
-
function validate$
|
|
4483
|
+
const VERSION$c = "96012ee7981543ddc90b7a4d3e505ffb";
|
|
4484
|
+
function validate$h(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
|
|
4485
4485
|
const v_error = (() => {
|
|
4486
4486
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4487
4487
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4531,10 +4531,10 @@ function validate$g(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
|
|
|
4531
4531
|
})();
|
|
4532
4532
|
return v_error === undefined ? null : v_error;
|
|
4533
4533
|
}
|
|
4534
|
-
const select$
|
|
4534
|
+
const select$o = function PicklistAttributeTypeOutputRepresentationSelect() {
|
|
4535
4535
|
return {
|
|
4536
4536
|
kind: 'Fragment',
|
|
4537
|
-
version: VERSION$
|
|
4537
|
+
version: VERSION$c,
|
|
4538
4538
|
private: [],
|
|
4539
4539
|
selections: [
|
|
4540
4540
|
{
|
|
@@ -4570,7 +4570,7 @@ const select$m = function PicklistAttributeTypeOutputRepresentationSelect() {
|
|
|
4570
4570
|
]
|
|
4571
4571
|
};
|
|
4572
4572
|
};
|
|
4573
|
-
function equals$
|
|
4573
|
+
function equals$c(existing, incoming) {
|
|
4574
4574
|
const existing_isDefault = existing.isDefault;
|
|
4575
4575
|
const incoming_isDefault = incoming.isDefault;
|
|
4576
4576
|
// if at least one of these optionals is defined
|
|
@@ -4652,8 +4652,8 @@ function equals$b(existing, incoming) {
|
|
|
4652
4652
|
return true;
|
|
4653
4653
|
}
|
|
4654
4654
|
|
|
4655
|
-
const VERSION$
|
|
4656
|
-
function validate$
|
|
4655
|
+
const VERSION$b = "564fd7f64d997ab6ecc936f5787a27f9";
|
|
4656
|
+
function validate$g(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
4657
4657
|
const v_error = (() => {
|
|
4658
4658
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4659
4659
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5047,7 +5047,7 @@ function validate$f(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
5047
5047
|
const path_picklistOptions_item = path_picklistOptions + '[' + i + ']';
|
|
5048
5048
|
let obj_picklistOptions_item_union0 = null;
|
|
5049
5049
|
const obj_picklistOptions_item_union0_error = (() => {
|
|
5050
|
-
const referencepath_picklistOptions_itemValidationError = validate$
|
|
5050
|
+
const referencepath_picklistOptions_itemValidationError = validate$h(obj_picklistOptions_item, path_picklistOptions_item);
|
|
5051
5051
|
if (referencepath_picklistOptions_itemValidationError !== null) {
|
|
5052
5052
|
let message = 'Object doesn\'t match PicklistAttributeTypeOutputRepresentation (at "' + path_picklistOptions_item + '")\n';
|
|
5053
5053
|
message += referencepath_picklistOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5105,11 +5105,11 @@ function validate$f(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
5105
5105
|
})();
|
|
5106
5106
|
return v_error === undefined ? null : v_error;
|
|
5107
5107
|
}
|
|
5108
|
-
const select$
|
|
5109
|
-
const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$
|
|
5108
|
+
const select$n = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
5109
|
+
const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$o();
|
|
5110
5110
|
return {
|
|
5111
5111
|
kind: 'Fragment',
|
|
5112
|
-
version: VERSION$
|
|
5112
|
+
version: VERSION$b,
|
|
5113
5113
|
private: [],
|
|
5114
5114
|
selections: [
|
|
5115
5115
|
{
|
|
@@ -5203,7 +5203,7 @@ const select$l = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
5203
5203
|
]
|
|
5204
5204
|
};
|
|
5205
5205
|
};
|
|
5206
|
-
function equals$
|
|
5206
|
+
function equals$b(existing, incoming) {
|
|
5207
5207
|
const existing_isEditable = existing.isEditable;
|
|
5208
5208
|
const incoming_isEditable = incoming.isEditable;
|
|
5209
5209
|
// if at least one of these optionals is defined
|
|
@@ -5412,7 +5412,7 @@ function equals$a(existing, incoming) {
|
|
|
5412
5412
|
if (!(existing_picklistOptions_item === incoming_picklistOptions_item
|
|
5413
5413
|
|| (existing_picklistOptions_item != null &&
|
|
5414
5414
|
incoming_picklistOptions_item != null &&
|
|
5415
|
-
equals$
|
|
5415
|
+
equals$c(existing_picklistOptions_item, incoming_picklistOptions_item)))) {
|
|
5416
5416
|
return false;
|
|
5417
5417
|
}
|
|
5418
5418
|
});
|
|
@@ -5436,8 +5436,8 @@ function equals$a(existing, incoming) {
|
|
|
5436
5436
|
return true;
|
|
5437
5437
|
}
|
|
5438
5438
|
|
|
5439
|
-
const VERSION$
|
|
5440
|
-
function validate$
|
|
5439
|
+
const VERSION$a = "eed5c7a2ef3082b1059e48f5742cd44f";
|
|
5440
|
+
function validate$f(obj, path = 'SectionOutputRepresentation') {
|
|
5441
5441
|
const v_error = (() => {
|
|
5442
5442
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5443
5443
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5453,7 +5453,7 @@ function validate$e(obj, path = 'SectionOutputRepresentation') {
|
|
|
5453
5453
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
5454
5454
|
let obj_attributes_item_union0 = null;
|
|
5455
5455
|
const obj_attributes_item_union0_error = (() => {
|
|
5456
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
5456
|
+
const referencepath_attributes_itemValidationError = validate$g(obj_attributes_item, path_attributes_item);
|
|
5457
5457
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
5458
5458
|
let message = 'Object doesn\'t match CatalogItemAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
5459
5459
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5574,11 +5574,11 @@ function validate$e(obj, path = 'SectionOutputRepresentation') {
|
|
|
5574
5574
|
})();
|
|
5575
5575
|
return v_error === undefined ? null : v_error;
|
|
5576
5576
|
}
|
|
5577
|
-
const select$
|
|
5578
|
-
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$
|
|
5577
|
+
const select$m = function SectionOutputRepresentationSelect() {
|
|
5578
|
+
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$n();
|
|
5579
5579
|
return {
|
|
5580
5580
|
kind: 'Fragment',
|
|
5581
|
-
version: VERSION$
|
|
5581
|
+
version: VERSION$a,
|
|
5582
5582
|
private: [],
|
|
5583
5583
|
selections: [
|
|
5584
5584
|
{
|
|
@@ -5612,7 +5612,7 @@ const select$k = function SectionOutputRepresentationSelect() {
|
|
|
5612
5612
|
]
|
|
5613
5613
|
};
|
|
5614
5614
|
};
|
|
5615
|
-
function equals$
|
|
5615
|
+
function equals$a(existing, incoming) {
|
|
5616
5616
|
const existing_sequence = existing.sequence;
|
|
5617
5617
|
const incoming_sequence = incoming.sequence;
|
|
5618
5618
|
// if at least one of these optionals is defined
|
|
@@ -5639,7 +5639,7 @@ function equals$9(existing, incoming) {
|
|
|
5639
5639
|
if (!(existing_attributes_item === incoming_attributes_item
|
|
5640
5640
|
|| (existing_attributes_item != null &&
|
|
5641
5641
|
incoming_attributes_item != null &&
|
|
5642
|
-
equals$
|
|
5642
|
+
equals$b(existing_attributes_item, incoming_attributes_item)))) {
|
|
5643
5643
|
return false;
|
|
5644
5644
|
}
|
|
5645
5645
|
});
|
|
@@ -5689,9 +5689,9 @@ function equals$9(existing, incoming) {
|
|
|
5689
5689
|
return true;
|
|
5690
5690
|
}
|
|
5691
5691
|
|
|
5692
|
-
const TTL$
|
|
5693
|
-
const VERSION$
|
|
5694
|
-
function validate$
|
|
5692
|
+
const TTL$8 = 6000;
|
|
5693
|
+
const VERSION$9 = "9cce3c8a5131820b99e02e05c1d95d43";
|
|
5694
|
+
function validate$e(obj, path = 'CatalogItemOutputRepresentation') {
|
|
5695
5695
|
const v_error = (() => {
|
|
5696
5696
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5697
5697
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5701,7 +5701,7 @@ function validate$d(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5701
5701
|
const path_agentAction = path + '.agentAction';
|
|
5702
5702
|
let obj_agentAction_union0 = null;
|
|
5703
5703
|
const obj_agentAction_union0_error = (() => {
|
|
5704
|
-
const referencepath_agentActionValidationError = validate$
|
|
5704
|
+
const referencepath_agentActionValidationError = validate$q(obj_agentAction, path_agentAction);
|
|
5705
5705
|
if (referencepath_agentActionValidationError !== null) {
|
|
5706
5706
|
let message = 'Object doesn\'t match AgentActionOutputRepresentation (at "' + path_agentAction + '")\n';
|
|
5707
5707
|
message += referencepath_agentActionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5738,7 +5738,7 @@ function validate$d(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5738
5738
|
const path_associatedArticles_item = path_associatedArticles + '[' + i + ']';
|
|
5739
5739
|
let obj_associatedArticles_item_union0 = null;
|
|
5740
5740
|
const obj_associatedArticles_item_union0_error = (() => {
|
|
5741
|
-
const referencepath_associatedArticles_itemValidationError = validate$
|
|
5741
|
+
const referencepath_associatedArticles_itemValidationError = validate$p(obj_associatedArticles_item, path_associatedArticles_item);
|
|
5742
5742
|
if (referencepath_associatedArticles_itemValidationError !== null) {
|
|
5743
5743
|
let message = 'Object doesn\'t match AssociatedArticleOutputRepresentation (at "' + path_associatedArticles_item + '")\n';
|
|
5744
5744
|
message += referencepath_associatedArticles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5886,7 +5886,7 @@ function validate$d(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5886
5886
|
const path_eligibilityRules_item = path_eligibilityRules + '[' + i + ']';
|
|
5887
5887
|
let obj_eligibilityRules_item_union0 = null;
|
|
5888
5888
|
const obj_eligibilityRules_item_union0_error = (() => {
|
|
5889
|
-
const referencepath_eligibilityRules_itemValidationError = validate$
|
|
5889
|
+
const referencepath_eligibilityRules_itemValidationError = validate$o(obj_eligibilityRules_item, path_eligibilityRules_item);
|
|
5890
5890
|
if (referencepath_eligibilityRules_itemValidationError !== null) {
|
|
5891
5891
|
let message = 'Object doesn\'t match EligibilityRuleOutputRepresentation (at "' + path_eligibilityRules_item + '")\n';
|
|
5892
5892
|
message += referencepath_eligibilityRules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5918,7 +5918,7 @@ function validate$d(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5918
5918
|
const path_fulfillmentFlow = path + '.fulfillmentFlow';
|
|
5919
5919
|
let obj_fulfillmentFlow_union0 = null;
|
|
5920
5920
|
const obj_fulfillmentFlow_union0_error = (() => {
|
|
5921
|
-
const referencepath_fulfillmentFlowValidationError = validate$
|
|
5921
|
+
const referencepath_fulfillmentFlowValidationError = validate$n(obj_fulfillmentFlow, path_fulfillmentFlow);
|
|
5922
5922
|
if (referencepath_fulfillmentFlowValidationError !== null) {
|
|
5923
5923
|
let message = 'Object doesn\'t match FulfillmentFlowOutputRepresentation (at "' + path_fulfillmentFlow + '")\n';
|
|
5924
5924
|
message += referencepath_fulfillmentFlowValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5949,7 +5949,7 @@ function validate$d(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5949
5949
|
const path_intakeForm = path + '.intakeForm';
|
|
5950
5950
|
let obj_intakeForm_union0 = null;
|
|
5951
5951
|
const obj_intakeForm_union0_error = (() => {
|
|
5952
|
-
const referencepath_intakeFormValidationError = validate$
|
|
5952
|
+
const referencepath_intakeFormValidationError = validate$m(obj_intakeForm, path_intakeForm);
|
|
5953
5953
|
if (referencepath_intakeFormValidationError !== null) {
|
|
5954
5954
|
let message = 'Object doesn\'t match IntakeFormOutputRepresentation (at "' + path_intakeForm + '")\n';
|
|
5955
5955
|
message += referencepath_intakeFormValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5986,7 +5986,7 @@ function validate$d(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5986
5986
|
const path_integrations_item = path_integrations + '[' + i + ']';
|
|
5987
5987
|
let obj_integrations_item_union0 = null;
|
|
5988
5988
|
const obj_integrations_item_union0_error = (() => {
|
|
5989
|
-
const referencepath_integrations_itemValidationError = validate$
|
|
5989
|
+
const referencepath_integrations_itemValidationError = validate$l(obj_integrations_item, path_integrations_item);
|
|
5990
5990
|
if (referencepath_integrations_itemValidationError !== null) {
|
|
5991
5991
|
let message = 'Object doesn\'t match IntegrationDefinitionOutputPresentation (at "' + path_integrations_item + '")\n';
|
|
5992
5992
|
message += referencepath_integrations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6080,7 +6080,7 @@ function validate$d(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
6080
6080
|
const path_preProcessors_item = path_preProcessors + '[' + i + ']';
|
|
6081
6081
|
let obj_preProcessors_item_union0 = null;
|
|
6082
6082
|
const obj_preProcessors_item_union0_error = (() => {
|
|
6083
|
-
const referencepath_preProcessors_itemValidationError = validate$
|
|
6083
|
+
const referencepath_preProcessors_itemValidationError = validate$k(obj_preProcessors_item, path_preProcessors_item);
|
|
6084
6084
|
if (referencepath_preProcessors_itemValidationError !== null) {
|
|
6085
6085
|
let message = 'Object doesn\'t match PreprocessorOutputRepresentation (at "' + path_preProcessors_item + '")\n';
|
|
6086
6086
|
message += referencepath_preProcessors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6146,7 +6146,7 @@ function validate$d(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
6146
6146
|
const path_productRequests_item = path_productRequests + '[' + i + ']';
|
|
6147
6147
|
let obj_productRequests_item_union0 = null;
|
|
6148
6148
|
const obj_productRequests_item_union0_error = (() => {
|
|
6149
|
-
const referencepath_productRequests_itemValidationError = validate$
|
|
6149
|
+
const referencepath_productRequests_itemValidationError = validate$i(obj_productRequests_item, path_productRequests_item);
|
|
6150
6150
|
if (referencepath_productRequests_itemValidationError !== null) {
|
|
6151
6151
|
let message = 'Object doesn\'t match ProductRequestOutputRepresentation (at "' + path_productRequests_item + '")\n';
|
|
6152
6152
|
message += referencepath_productRequests_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6178,7 +6178,7 @@ function validate$d(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
6178
6178
|
const path_section = path + '.section';
|
|
6179
6179
|
let obj_section_union0 = null;
|
|
6180
6180
|
const obj_section_union0_error = (() => {
|
|
6181
|
-
const referencepath_sectionValidationError = validate$
|
|
6181
|
+
const referencepath_sectionValidationError = validate$f(obj_section, path_section);
|
|
6182
6182
|
if (referencepath_sectionValidationError !== null) {
|
|
6183
6183
|
let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_section + '")\n';
|
|
6184
6184
|
message += referencepath_sectionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6215,7 +6215,7 @@ function validate$d(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
6215
6215
|
const path_sections_item = path_sections + '[' + i + ']';
|
|
6216
6216
|
let obj_sections_item_union0 = null;
|
|
6217
6217
|
const obj_sections_item_union0_error = (() => {
|
|
6218
|
-
const referencepath_sections_itemValidationError = validate$
|
|
6218
|
+
const referencepath_sections_itemValidationError = validate$f(obj_sections_item, path_sections_item);
|
|
6219
6219
|
if (referencepath_sections_itemValidationError !== null) {
|
|
6220
6220
|
let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_sections_item + '")\n';
|
|
6221
6221
|
message += referencepath_sections_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6301,32 +6301,32 @@ function validate$d(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
6301
6301
|
})();
|
|
6302
6302
|
return v_error === undefined ? null : v_error;
|
|
6303
6303
|
}
|
|
6304
|
-
const RepresentationType$
|
|
6305
|
-
function keyBuilder$
|
|
6306
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6304
|
+
const RepresentationType$9 = 'CatalogItemOutputRepresentation';
|
|
6305
|
+
function keyBuilder$g(luvio, config) {
|
|
6306
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + (config.catalogItemId === null ? '' : config.catalogItemId);
|
|
6307
6307
|
}
|
|
6308
6308
|
function keyBuilderFromType$4(luvio, object) {
|
|
6309
6309
|
const keyParams = {
|
|
6310
6310
|
catalogItemId: object.catalogItemId
|
|
6311
6311
|
};
|
|
6312
|
-
return keyBuilder$
|
|
6312
|
+
return keyBuilder$g(luvio, keyParams);
|
|
6313
6313
|
}
|
|
6314
|
-
function normalize$
|
|
6314
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
6315
6315
|
return input;
|
|
6316
6316
|
}
|
|
6317
|
-
const select$
|
|
6318
|
-
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$
|
|
6319
|
-
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$
|
|
6320
|
-
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$
|
|
6321
|
-
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$
|
|
6322
|
-
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$
|
|
6323
|
-
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$
|
|
6324
|
-
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$
|
|
6325
|
-
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$
|
|
6326
|
-
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$
|
|
6317
|
+
const select$l = function CatalogItemOutputRepresentationSelect() {
|
|
6318
|
+
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$x();
|
|
6319
|
+
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$w();
|
|
6320
|
+
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$v();
|
|
6321
|
+
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$u();
|
|
6322
|
+
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$t();
|
|
6323
|
+
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$s();
|
|
6324
|
+
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$r();
|
|
6325
|
+
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$p();
|
|
6326
|
+
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$m();
|
|
6327
6327
|
return {
|
|
6328
6328
|
kind: 'Fragment',
|
|
6329
|
-
version: VERSION$
|
|
6329
|
+
version: VERSION$9,
|
|
6330
6330
|
private: [],
|
|
6331
6331
|
selections: [
|
|
6332
6332
|
{
|
|
@@ -6452,7 +6452,7 @@ const select$j = function CatalogItemOutputRepresentationSelect() {
|
|
|
6452
6452
|
]
|
|
6453
6453
|
};
|
|
6454
6454
|
};
|
|
6455
|
-
function equals$
|
|
6455
|
+
function equals$9(existing, incoming) {
|
|
6456
6456
|
const existing_agentAction = existing.agentAction;
|
|
6457
6457
|
const incoming_agentAction = incoming.agentAction;
|
|
6458
6458
|
// if at least one of these optionals is defined
|
|
@@ -6465,7 +6465,7 @@ function equals$8(existing, incoming) {
|
|
|
6465
6465
|
if (!(existing_agentAction === incoming_agentAction
|
|
6466
6466
|
|| (existing_agentAction != null &&
|
|
6467
6467
|
incoming_agentAction != null &&
|
|
6468
|
-
equals$
|
|
6468
|
+
equals$l(existing_agentAction, incoming_agentAction)))) {
|
|
6469
6469
|
return false;
|
|
6470
6470
|
}
|
|
6471
6471
|
}
|
|
@@ -6482,7 +6482,7 @@ function equals$8(existing, incoming) {
|
|
|
6482
6482
|
if (!(existing_associatedArticles_item === incoming_associatedArticles_item
|
|
6483
6483
|
|| (existing_associatedArticles_item != null &&
|
|
6484
6484
|
incoming_associatedArticles_item != null &&
|
|
6485
|
-
equals$
|
|
6485
|
+
equals$k(existing_associatedArticles_item, incoming_associatedArticles_item)))) {
|
|
6486
6486
|
return false;
|
|
6487
6487
|
}
|
|
6488
6488
|
});
|
|
@@ -6547,7 +6547,7 @@ function equals$8(existing, incoming) {
|
|
|
6547
6547
|
if (!(existing_eligibilityRules_item === incoming_eligibilityRules_item
|
|
6548
6548
|
|| (existing_eligibilityRules_item != null &&
|
|
6549
6549
|
incoming_eligibilityRules_item != null &&
|
|
6550
|
-
equals$
|
|
6550
|
+
equals$j(existing_eligibilityRules_item, incoming_eligibilityRules_item)))) {
|
|
6551
6551
|
return false;
|
|
6552
6552
|
}
|
|
6553
6553
|
});
|
|
@@ -6567,7 +6567,7 @@ function equals$8(existing, incoming) {
|
|
|
6567
6567
|
if (!(existing_fulfillmentFlow === incoming_fulfillmentFlow
|
|
6568
6568
|
|| (existing_fulfillmentFlow != null &&
|
|
6569
6569
|
incoming_fulfillmentFlow != null &&
|
|
6570
|
-
equals$
|
|
6570
|
+
equals$i(existing_fulfillmentFlow, incoming_fulfillmentFlow)))) {
|
|
6571
6571
|
return false;
|
|
6572
6572
|
}
|
|
6573
6573
|
}
|
|
@@ -6583,7 +6583,7 @@ function equals$8(existing, incoming) {
|
|
|
6583
6583
|
if (!(existing_intakeForm === incoming_intakeForm
|
|
6584
6584
|
|| (existing_intakeForm != null &&
|
|
6585
6585
|
incoming_intakeForm != null &&
|
|
6586
|
-
equals$
|
|
6586
|
+
equals$h(existing_intakeForm, incoming_intakeForm)))) {
|
|
6587
6587
|
return false;
|
|
6588
6588
|
}
|
|
6589
6589
|
}
|
|
@@ -6600,7 +6600,7 @@ function equals$8(existing, incoming) {
|
|
|
6600
6600
|
if (!(existing_integrations_item === incoming_integrations_item
|
|
6601
6601
|
|| (existing_integrations_item != null &&
|
|
6602
6602
|
incoming_integrations_item != null &&
|
|
6603
|
-
equals$
|
|
6603
|
+
equals$g(existing_integrations_item, incoming_integrations_item)))) {
|
|
6604
6604
|
return false;
|
|
6605
6605
|
}
|
|
6606
6606
|
});
|
|
@@ -6647,7 +6647,7 @@ function equals$8(existing, incoming) {
|
|
|
6647
6647
|
if (!(existing_preProcessors_item === incoming_preProcessors_item
|
|
6648
6648
|
|| (existing_preProcessors_item != null &&
|
|
6649
6649
|
incoming_preProcessors_item != null &&
|
|
6650
|
-
equals$
|
|
6650
|
+
equals$f(existing_preProcessors_item, incoming_preProcessors_item)))) {
|
|
6651
6651
|
return false;
|
|
6652
6652
|
}
|
|
6653
6653
|
});
|
|
@@ -6681,7 +6681,7 @@ function equals$8(existing, incoming) {
|
|
|
6681
6681
|
if (!(existing_productRequests_item === incoming_productRequests_item
|
|
6682
6682
|
|| (existing_productRequests_item != null &&
|
|
6683
6683
|
incoming_productRequests_item != null &&
|
|
6684
|
-
equals$
|
|
6684
|
+
equals$d(existing_productRequests_item, incoming_productRequests_item)))) {
|
|
6685
6685
|
return false;
|
|
6686
6686
|
}
|
|
6687
6687
|
});
|
|
@@ -6701,7 +6701,7 @@ function equals$8(existing, incoming) {
|
|
|
6701
6701
|
if (!(existing_section === incoming_section
|
|
6702
6702
|
|| (existing_section != null &&
|
|
6703
6703
|
incoming_section != null &&
|
|
6704
|
-
equals$
|
|
6704
|
+
equals$a(existing_section, incoming_section)))) {
|
|
6705
6705
|
return false;
|
|
6706
6706
|
}
|
|
6707
6707
|
}
|
|
@@ -6718,7 +6718,7 @@ function equals$8(existing, incoming) {
|
|
|
6718
6718
|
if (!(existing_sections_item === incoming_sections_item
|
|
6719
6719
|
|| (existing_sections_item != null &&
|
|
6720
6720
|
incoming_sections_item != null &&
|
|
6721
|
-
equals$
|
|
6721
|
+
equals$a(existing_sections_item, incoming_sections_item)))) {
|
|
6722
6722
|
return false;
|
|
6723
6723
|
}
|
|
6724
6724
|
});
|
|
@@ -6754,41 +6754,41 @@ function equals$8(existing, incoming) {
|
|
|
6754
6754
|
}
|
|
6755
6755
|
return true;
|
|
6756
6756
|
}
|
|
6757
|
-
const ingest$
|
|
6757
|
+
const ingest$9 = function CatalogItemOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6758
6758
|
if (process.env.NODE_ENV !== 'production') {
|
|
6759
|
-
const validateError = validate$
|
|
6759
|
+
const validateError = validate$e(input);
|
|
6760
6760
|
if (validateError !== null) {
|
|
6761
6761
|
throw validateError;
|
|
6762
6762
|
}
|
|
6763
6763
|
}
|
|
6764
6764
|
const key = keyBuilderFromType$4(luvio, input);
|
|
6765
|
-
const ttlToUse = TTL$
|
|
6766
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6765
|
+
const ttlToUse = TTL$8;
|
|
6766
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "ecm", VERSION$9, RepresentationType$9, equals$9);
|
|
6767
6767
|
return createLink(key);
|
|
6768
6768
|
};
|
|
6769
|
-
function getTypeCacheKeys$
|
|
6769
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
6770
6770
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6771
6771
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
6772
6772
|
rootKeySet.set(rootKey, {
|
|
6773
6773
|
namespace: keyPrefix,
|
|
6774
|
-
representationName: RepresentationType$
|
|
6774
|
+
representationName: RepresentationType$9,
|
|
6775
6775
|
mergeable: false
|
|
6776
6776
|
});
|
|
6777
6777
|
}
|
|
6778
6778
|
|
|
6779
|
-
function select$
|
|
6780
|
-
return select$
|
|
6779
|
+
function select$k(luvio, params) {
|
|
6780
|
+
return select$l();
|
|
6781
6781
|
}
|
|
6782
|
-
function getResponseCacheKeys$
|
|
6783
|
-
getTypeCacheKeys$
|
|
6782
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
6783
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
6784
6784
|
}
|
|
6785
|
-
function ingestSuccess$
|
|
6785
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
6786
6786
|
const { body } = response;
|
|
6787
6787
|
const key = keyBuilderFromType$4(luvio, body);
|
|
6788
|
-
luvio.storeIngest(key, ingest$
|
|
6788
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
6789
6789
|
const snapshot = luvio.storeLookup({
|
|
6790
6790
|
recordId: key,
|
|
6791
|
-
node: select$
|
|
6791
|
+
node: select$k(),
|
|
6792
6792
|
variables: {},
|
|
6793
6793
|
});
|
|
6794
6794
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6799,7 +6799,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
6799
6799
|
deepFreeze(snapshot.data);
|
|
6800
6800
|
return snapshot;
|
|
6801
6801
|
}
|
|
6802
|
-
function createResourceRequest$
|
|
6802
|
+
function createResourceRequest$b(config) {
|
|
6803
6803
|
const headers = {};
|
|
6804
6804
|
return {
|
|
6805
6805
|
baseUri: '/services/data/v66.0',
|
|
@@ -6813,7 +6813,7 @@ function createResourceRequest$a(config) {
|
|
|
6813
6813
|
};
|
|
6814
6814
|
}
|
|
6815
6815
|
|
|
6816
|
-
const adapterName$
|
|
6816
|
+
const adapterName$b = 'createCatalogItem';
|
|
6817
6817
|
const createCatalogItem_ConfigPropertyMetadata = [
|
|
6818
6818
|
generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
|
|
6819
6819
|
generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
@@ -6833,12 +6833,12 @@ const createCatalogItem_ConfigPropertyMetadata = [
|
|
|
6833
6833
|
generateParamConfigMetadata('targetObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
6834
6834
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
6835
6835
|
];
|
|
6836
|
-
const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6837
|
-
const createResourceParams$
|
|
6838
|
-
function typeCheckConfig$
|
|
6836
|
+
const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createCatalogItem_ConfigPropertyMetadata);
|
|
6837
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$e(createCatalogItem_ConfigPropertyMetadata);
|
|
6838
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
6839
6839
|
const config = {};
|
|
6840
6840
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
6841
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
6841
|
+
const referenceAgentActionInputRepresentationValidationError = validate$B(untrustedConfig_agentAction);
|
|
6842
6842
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
6843
6843
|
config.agentAction = untrustedConfig_agentAction;
|
|
6844
6844
|
}
|
|
@@ -6850,7 +6850,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
6850
6850
|
const untrustedConfig_associatedArticles_array = [];
|
|
6851
6851
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
6852
6852
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
6853
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
6853
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$A(untrustedConfig_associatedArticles_item);
|
|
6854
6854
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
6855
6855
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
6856
6856
|
}
|
|
@@ -6865,7 +6865,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
6865
6865
|
const untrustedConfig_attributes_array = [];
|
|
6866
6866
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
6867
6867
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
6868
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
6868
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$y(untrustedConfig_attributes_item);
|
|
6869
6869
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
6870
6870
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
6871
6871
|
}
|
|
@@ -6880,7 +6880,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
6880
6880
|
const untrustedConfig_sections_array = [];
|
|
6881
6881
|
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
6882
6882
|
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
6883
|
-
const referenceSectionInputRepresentationValidationError = validate$
|
|
6883
|
+
const referenceSectionInputRepresentationValidationError = validate$x(untrustedConfig_sections_item);
|
|
6884
6884
|
if (referenceSectionInputRepresentationValidationError === null) {
|
|
6885
6885
|
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
6886
6886
|
}
|
|
@@ -6916,7 +6916,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
6916
6916
|
const untrustedConfig_eligibilityRules_array = [];
|
|
6917
6917
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
6918
6918
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
6919
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
6919
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$w(untrustedConfig_eligibilityRules_item);
|
|
6920
6920
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
6921
6921
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
6922
6922
|
}
|
|
@@ -6927,7 +6927,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
6927
6927
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
6928
6928
|
}
|
|
6929
6929
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
6930
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
6930
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$v(untrustedConfig_fulfillmentFlow);
|
|
6931
6931
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
6932
6932
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
6933
6933
|
}
|
|
@@ -6935,7 +6935,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
6935
6935
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
6936
6936
|
}
|
|
6937
6937
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
6938
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
6938
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$u(untrustedConfig_intakeForm);
|
|
6939
6939
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
6940
6940
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
6941
6941
|
}
|
|
@@ -6947,7 +6947,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
6947
6947
|
const untrustedConfig_integrations_array = [];
|
|
6948
6948
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
6949
6949
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
6950
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
6950
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$t(untrustedConfig_integrations_item);
|
|
6951
6951
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
6952
6952
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
6953
6953
|
}
|
|
@@ -6976,7 +6976,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
6976
6976
|
const untrustedConfig_preProcessors_array = [];
|
|
6977
6977
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
6978
6978
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
6979
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
6979
|
+
const referencePreprocessorInputRepresentationValidationError = validate$s(untrustedConfig_preProcessors_item);
|
|
6980
6980
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
6981
6981
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
6982
6982
|
}
|
|
@@ -6991,7 +6991,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
6991
6991
|
const untrustedConfig_productRequests_array = [];
|
|
6992
6992
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
6993
6993
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
6994
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
6994
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$r(untrustedConfig_productRequests_item);
|
|
6995
6995
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
6996
6996
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
6997
6997
|
}
|
|
@@ -7017,30 +7017,30 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
7017
7017
|
}
|
|
7018
7018
|
return config;
|
|
7019
7019
|
}
|
|
7020
|
-
function validateAdapterConfig$
|
|
7020
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
7021
7021
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
7022
7022
|
return null;
|
|
7023
7023
|
}
|
|
7024
7024
|
if (process.env.NODE_ENV !== 'production') {
|
|
7025
7025
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
7026
7026
|
}
|
|
7027
|
-
const config = typeCheckConfig$
|
|
7027
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
7028
7028
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
7029
7029
|
return null;
|
|
7030
7030
|
}
|
|
7031
7031
|
return config;
|
|
7032
7032
|
}
|
|
7033
|
-
function buildNetworkSnapshot$
|
|
7034
|
-
const resourceParams = createResourceParams$
|
|
7035
|
-
const request = createResourceRequest$
|
|
7033
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
7034
|
+
const resourceParams = createResourceParams$b(config);
|
|
7035
|
+
const request = createResourceRequest$b(resourceParams);
|
|
7036
7036
|
return luvio.dispatchResourceRequest(request, options)
|
|
7037
7037
|
.then((response) => {
|
|
7038
7038
|
return luvio.handleSuccessResponse(() => {
|
|
7039
|
-
const snapshot = ingestSuccess$
|
|
7039
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
7040
7040
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
7041
7041
|
}, () => {
|
|
7042
7042
|
const cache = new StoreKeyMap();
|
|
7043
|
-
getResponseCacheKeys$
|
|
7043
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
7044
7044
|
return cache;
|
|
7045
7045
|
});
|
|
7046
7046
|
}, (response) => {
|
|
@@ -7050,18 +7050,18 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
7050
7050
|
}
|
|
7051
7051
|
const createCatalogItemAdapterFactory = (luvio) => {
|
|
7052
7052
|
return function createCatalogItem(untrustedConfig) {
|
|
7053
|
-
const config = validateAdapterConfig$
|
|
7053
|
+
const config = validateAdapterConfig$b(untrustedConfig, createCatalogItem_ConfigPropertyNames);
|
|
7054
7054
|
// Invalid or incomplete config
|
|
7055
7055
|
if (config === null) {
|
|
7056
7056
|
throw new Error('Invalid config for "createCatalogItem"');
|
|
7057
7057
|
}
|
|
7058
|
-
return buildNetworkSnapshot$
|
|
7058
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
7059
7059
|
};
|
|
7060
7060
|
};
|
|
7061
7061
|
|
|
7062
|
-
const TTL$
|
|
7063
|
-
const VERSION$
|
|
7064
|
-
function validate$
|
|
7062
|
+
const TTL$7 = 6000;
|
|
7063
|
+
const VERSION$8 = "86e4694b8895fc704a6e48475634556a";
|
|
7064
|
+
function validate$d(obj, path = 'DeploymentOutputRepresentation') {
|
|
7065
7065
|
const v_error = (() => {
|
|
7066
7066
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7067
7067
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7084,23 +7084,23 @@ function validate$c(obj, path = 'DeploymentOutputRepresentation') {
|
|
|
7084
7084
|
})();
|
|
7085
7085
|
return v_error === undefined ? null : v_error;
|
|
7086
7086
|
}
|
|
7087
|
-
const RepresentationType$
|
|
7088
|
-
function keyBuilder$
|
|
7089
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7087
|
+
const RepresentationType$8 = 'DeploymentOutputRepresentation';
|
|
7088
|
+
function keyBuilder$f(luvio, config) {
|
|
7089
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.templateId;
|
|
7090
7090
|
}
|
|
7091
7091
|
function keyBuilderFromType$3(luvio, object) {
|
|
7092
7092
|
const keyParams = {
|
|
7093
7093
|
templateId: object.templateId
|
|
7094
7094
|
};
|
|
7095
|
-
return keyBuilder$
|
|
7095
|
+
return keyBuilder$f(luvio, keyParams);
|
|
7096
7096
|
}
|
|
7097
|
-
function normalize$
|
|
7097
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
7098
7098
|
return input;
|
|
7099
7099
|
}
|
|
7100
|
-
const select$
|
|
7100
|
+
const select$j = function DeploymentOutputRepresentationSelect() {
|
|
7101
7101
|
return {
|
|
7102
7102
|
kind: 'Fragment',
|
|
7103
|
-
version: VERSION$
|
|
7103
|
+
version: VERSION$8,
|
|
7104
7104
|
private: [],
|
|
7105
7105
|
selections: [
|
|
7106
7106
|
{
|
|
@@ -7118,7 +7118,7 @@ const select$h = function DeploymentOutputRepresentationSelect() {
|
|
|
7118
7118
|
]
|
|
7119
7119
|
};
|
|
7120
7120
|
};
|
|
7121
|
-
function equals$
|
|
7121
|
+
function equals$8(existing, incoming) {
|
|
7122
7122
|
const existing_deploymentResult = existing.deploymentResult;
|
|
7123
7123
|
const incoming_deploymentResult = incoming.deploymentResult;
|
|
7124
7124
|
if (!(existing_deploymentResult === incoming_deploymentResult)) {
|
|
@@ -7136,41 +7136,41 @@ function equals$7(existing, incoming) {
|
|
|
7136
7136
|
}
|
|
7137
7137
|
return true;
|
|
7138
7138
|
}
|
|
7139
|
-
const ingest$
|
|
7139
|
+
const ingest$8 = function DeploymentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7140
7140
|
if (process.env.NODE_ENV !== 'production') {
|
|
7141
|
-
const validateError = validate$
|
|
7141
|
+
const validateError = validate$d(input);
|
|
7142
7142
|
if (validateError !== null) {
|
|
7143
7143
|
throw validateError;
|
|
7144
7144
|
}
|
|
7145
7145
|
}
|
|
7146
7146
|
const key = keyBuilderFromType$3(luvio, input);
|
|
7147
|
-
const ttlToUse = TTL$
|
|
7148
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7147
|
+
const ttlToUse = TTL$7;
|
|
7148
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "ecm", VERSION$8, RepresentationType$8, equals$8);
|
|
7149
7149
|
return createLink(key);
|
|
7150
7150
|
};
|
|
7151
|
-
function getTypeCacheKeys$
|
|
7151
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
7152
7152
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7153
7153
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
7154
7154
|
rootKeySet.set(rootKey, {
|
|
7155
7155
|
namespace: keyPrefix,
|
|
7156
|
-
representationName: RepresentationType$
|
|
7156
|
+
representationName: RepresentationType$8,
|
|
7157
7157
|
mergeable: false
|
|
7158
7158
|
});
|
|
7159
7159
|
}
|
|
7160
7160
|
|
|
7161
|
-
function select$
|
|
7162
|
-
return select$
|
|
7161
|
+
function select$i(luvio, params) {
|
|
7162
|
+
return select$j();
|
|
7163
7163
|
}
|
|
7164
|
-
function getResponseCacheKeys$
|
|
7165
|
-
getTypeCacheKeys$
|
|
7164
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
7165
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
7166
7166
|
}
|
|
7167
|
-
function ingestSuccess$
|
|
7167
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
7168
7168
|
const { body } = response;
|
|
7169
7169
|
const key = keyBuilderFromType$3(luvio, body);
|
|
7170
|
-
luvio.storeIngest(key, ingest$
|
|
7170
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
7171
7171
|
const snapshot = luvio.storeLookup({
|
|
7172
7172
|
recordId: key,
|
|
7173
|
-
node: select$
|
|
7173
|
+
node: select$i(),
|
|
7174
7174
|
variables: {},
|
|
7175
7175
|
});
|
|
7176
7176
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -7181,7 +7181,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
7181
7181
|
deepFreeze(snapshot.data);
|
|
7182
7182
|
return snapshot;
|
|
7183
7183
|
}
|
|
7184
|
-
function createResourceRequest$
|
|
7184
|
+
function createResourceRequest$a(config) {
|
|
7185
7185
|
const headers = {};
|
|
7186
7186
|
return {
|
|
7187
7187
|
baseUri: '/services/data/v66.0',
|
|
@@ -7195,41 +7195,41 @@ function createResourceRequest$9(config) {
|
|
|
7195
7195
|
};
|
|
7196
7196
|
}
|
|
7197
7197
|
|
|
7198
|
-
const adapterName$
|
|
7198
|
+
const adapterName$a = 'deployTemplate';
|
|
7199
7199
|
const deployTemplate_ConfigPropertyMetadata = [
|
|
7200
7200
|
generateParamConfigMetadata('templateId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7201
7201
|
];
|
|
7202
|
-
const deployTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
7203
|
-
const createResourceParams$
|
|
7204
|
-
function typeCheckConfig$
|
|
7202
|
+
const deployTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deployTemplate_ConfigPropertyMetadata);
|
|
7203
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$e(deployTemplate_ConfigPropertyMetadata);
|
|
7204
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
7205
7205
|
const config = {};
|
|
7206
|
-
typeCheckConfig$
|
|
7206
|
+
typeCheckConfig$e(untrustedConfig, config, deployTemplate_ConfigPropertyMetadata);
|
|
7207
7207
|
return config;
|
|
7208
7208
|
}
|
|
7209
|
-
function validateAdapterConfig$
|
|
7209
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
7210
7210
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
7211
7211
|
return null;
|
|
7212
7212
|
}
|
|
7213
7213
|
if (process.env.NODE_ENV !== 'production') {
|
|
7214
7214
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
7215
7215
|
}
|
|
7216
|
-
const config = typeCheckConfig$
|
|
7216
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
7217
7217
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
7218
7218
|
return null;
|
|
7219
7219
|
}
|
|
7220
7220
|
return config;
|
|
7221
7221
|
}
|
|
7222
|
-
function buildNetworkSnapshot$
|
|
7223
|
-
const resourceParams = createResourceParams$
|
|
7224
|
-
const request = createResourceRequest$
|
|
7222
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
7223
|
+
const resourceParams = createResourceParams$a(config);
|
|
7224
|
+
const request = createResourceRequest$a(resourceParams);
|
|
7225
7225
|
return luvio.dispatchResourceRequest(request, options)
|
|
7226
7226
|
.then((response) => {
|
|
7227
7227
|
return luvio.handleSuccessResponse(() => {
|
|
7228
|
-
const snapshot = ingestSuccess$
|
|
7228
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
7229
7229
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
7230
7230
|
}, () => {
|
|
7231
7231
|
const cache = new StoreKeyMap();
|
|
7232
|
-
getResponseCacheKeys$
|
|
7232
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
7233
7233
|
return cache;
|
|
7234
7234
|
});
|
|
7235
7235
|
}, (response) => {
|
|
@@ -7239,13 +7239,216 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
7239
7239
|
}
|
|
7240
7240
|
const deployTemplateAdapterFactory = (luvio) => {
|
|
7241
7241
|
return function deployTemplate(untrustedConfig) {
|
|
7242
|
-
const config = validateAdapterConfig$
|
|
7242
|
+
const config = validateAdapterConfig$a(untrustedConfig, deployTemplate_ConfigPropertyNames);
|
|
7243
7243
|
// Invalid or incomplete config
|
|
7244
7244
|
if (config === null) {
|
|
7245
7245
|
throw new Error('Invalid config for "deployTemplate"');
|
|
7246
7246
|
}
|
|
7247
|
-
return buildNetworkSnapshot$
|
|
7247
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
7248
|
+
};
|
|
7249
|
+
};
|
|
7250
|
+
|
|
7251
|
+
const TTL$6 = 6000;
|
|
7252
|
+
const VERSION$7 = "2ae2759347becfbc75aebc8851b6d848";
|
|
7253
|
+
function validate$c(obj, path = 'ServiceProcessTemplateDownloadOutputRepresentation') {
|
|
7254
|
+
const v_error = (() => {
|
|
7255
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7256
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7257
|
+
}
|
|
7258
|
+
const obj_contentDocId = obj.contentDocId;
|
|
7259
|
+
const path_contentDocId = path + '.contentDocId';
|
|
7260
|
+
if (typeof obj_contentDocId !== 'string') {
|
|
7261
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contentDocId + '" (at "' + path_contentDocId + '")');
|
|
7262
|
+
}
|
|
7263
|
+
const obj_downloadUrl = obj.downloadUrl;
|
|
7264
|
+
const path_downloadUrl = path + '.downloadUrl';
|
|
7265
|
+
if (typeof obj_downloadUrl !== 'string') {
|
|
7266
|
+
return new TypeError('Expected "string" but received "' + typeof obj_downloadUrl + '" (at "' + path_downloadUrl + '")');
|
|
7267
|
+
}
|
|
7268
|
+
const obj_fileName = obj.fileName;
|
|
7269
|
+
const path_fileName = path + '.fileName';
|
|
7270
|
+
if (typeof obj_fileName !== 'string') {
|
|
7271
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fileName + '" (at "' + path_fileName + '")');
|
|
7272
|
+
}
|
|
7273
|
+
})();
|
|
7274
|
+
return v_error === undefined ? null : v_error;
|
|
7275
|
+
}
|
|
7276
|
+
const RepresentationType$7 = 'ServiceProcessTemplateDownloadOutputRepresentation';
|
|
7277
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
7278
|
+
return input;
|
|
7279
|
+
}
|
|
7280
|
+
const select$h = function ServiceProcessTemplateDownloadOutputRepresentationSelect() {
|
|
7281
|
+
return {
|
|
7282
|
+
kind: 'Fragment',
|
|
7283
|
+
version: VERSION$7,
|
|
7284
|
+
private: [],
|
|
7285
|
+
opaque: true
|
|
7286
|
+
};
|
|
7287
|
+
};
|
|
7288
|
+
function equals$7(existing, incoming) {
|
|
7289
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
7290
|
+
return false;
|
|
7291
|
+
}
|
|
7292
|
+
return true;
|
|
7293
|
+
}
|
|
7294
|
+
const ingest$7 = function ServiceProcessTemplateDownloadOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7295
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7296
|
+
const validateError = validate$c(input);
|
|
7297
|
+
if (validateError !== null) {
|
|
7298
|
+
throw validateError;
|
|
7299
|
+
}
|
|
7300
|
+
}
|
|
7301
|
+
const key = path.fullPath;
|
|
7302
|
+
const ttlToUse = TTL$6;
|
|
7303
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "ecm", VERSION$7, RepresentationType$7, equals$7);
|
|
7304
|
+
return createLink(key);
|
|
7305
|
+
};
|
|
7306
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
7307
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7308
|
+
const rootKey = fullPathFactory();
|
|
7309
|
+
rootKeySet.set(rootKey, {
|
|
7310
|
+
namespace: keyPrefix,
|
|
7311
|
+
representationName: RepresentationType$7,
|
|
7312
|
+
mergeable: false
|
|
7313
|
+
});
|
|
7314
|
+
}
|
|
7315
|
+
|
|
7316
|
+
function select$g(luvio, params) {
|
|
7317
|
+
return select$h();
|
|
7318
|
+
}
|
|
7319
|
+
function keyBuilder$e(luvio, params) {
|
|
7320
|
+
return keyPrefix + '::ServiceProcessTemplateDownloadOutputRepresentation:(' + 'productId:' + params.urlParams.productId + ')';
|
|
7321
|
+
}
|
|
7322
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
7323
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$e(luvio, resourceParams));
|
|
7324
|
+
}
|
|
7325
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
7326
|
+
const { body } = response;
|
|
7327
|
+
const key = keyBuilder$e(luvio, resourceParams);
|
|
7328
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
7329
|
+
const snapshot = luvio.storeLookup({
|
|
7330
|
+
recordId: key,
|
|
7331
|
+
node: select$g(),
|
|
7332
|
+
variables: {},
|
|
7333
|
+
}, snapshotRefresh);
|
|
7334
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7335
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
7336
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
7337
|
+
}
|
|
7338
|
+
}
|
|
7339
|
+
deepFreeze(snapshot.data);
|
|
7340
|
+
return snapshot;
|
|
7341
|
+
}
|
|
7342
|
+
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
7343
|
+
const key = keyBuilder$e(luvio, params);
|
|
7344
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7345
|
+
const storeMetadataParams = {
|
|
7346
|
+
ttl: TTL$6,
|
|
7347
|
+
namespace: keyPrefix,
|
|
7348
|
+
version: VERSION$7,
|
|
7349
|
+
representationName: RepresentationType$7
|
|
7350
|
+
};
|
|
7351
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
7352
|
+
return errorSnapshot;
|
|
7353
|
+
}
|
|
7354
|
+
function createResourceRequest$9(config) {
|
|
7355
|
+
const headers = {};
|
|
7356
|
+
return {
|
|
7357
|
+
baseUri: '/services/data/v66.0',
|
|
7358
|
+
basePath: '/connect/service-automation/service-process/download/' + config.urlParams.productId + '',
|
|
7359
|
+
method: 'get',
|
|
7360
|
+
body: null,
|
|
7361
|
+
urlParams: config.urlParams,
|
|
7362
|
+
queryParams: {},
|
|
7363
|
+
headers,
|
|
7364
|
+
priority: 'normal',
|
|
7365
|
+
};
|
|
7366
|
+
}
|
|
7367
|
+
|
|
7368
|
+
const adapterName$9 = 'downloadServiceProcessTemplate';
|
|
7369
|
+
const downloadServiceProcessTemplate_ConfigPropertyMetadata = [
|
|
7370
|
+
generateParamConfigMetadata('productId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7371
|
+
];
|
|
7372
|
+
const downloadServiceProcessTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, downloadServiceProcessTemplate_ConfigPropertyMetadata);
|
|
7373
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$e(downloadServiceProcessTemplate_ConfigPropertyMetadata);
|
|
7374
|
+
function keyBuilder$d(luvio, config) {
|
|
7375
|
+
const resourceParams = createResourceParams$9(config);
|
|
7376
|
+
return keyBuilder$e(luvio, resourceParams);
|
|
7377
|
+
}
|
|
7378
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
7379
|
+
const config = {};
|
|
7380
|
+
typeCheckConfig$e(untrustedConfig, config, downloadServiceProcessTemplate_ConfigPropertyMetadata);
|
|
7381
|
+
return config;
|
|
7382
|
+
}
|
|
7383
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
7384
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
7385
|
+
return null;
|
|
7386
|
+
}
|
|
7387
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7388
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
7389
|
+
}
|
|
7390
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
7391
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
7392
|
+
return null;
|
|
7393
|
+
}
|
|
7394
|
+
return config;
|
|
7395
|
+
}
|
|
7396
|
+
function adapterFragment$5(luvio, config) {
|
|
7397
|
+
createResourceParams$9(config);
|
|
7398
|
+
return select$g();
|
|
7399
|
+
}
|
|
7400
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
7401
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
7402
|
+
config,
|
|
7403
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
7404
|
+
});
|
|
7405
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
7406
|
+
}
|
|
7407
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
7408
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
7409
|
+
config,
|
|
7410
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
7411
|
+
});
|
|
7412
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
7413
|
+
}
|
|
7414
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
7415
|
+
const resourceParams = createResourceParams$9(config);
|
|
7416
|
+
const request = createResourceRequest$9(resourceParams);
|
|
7417
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
7418
|
+
.then((response) => {
|
|
7419
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
7420
|
+
const cache = new StoreKeyMap();
|
|
7421
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
7422
|
+
return cache;
|
|
7423
|
+
});
|
|
7424
|
+
}, (response) => {
|
|
7425
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
7426
|
+
});
|
|
7427
|
+
}
|
|
7428
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
7429
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
7430
|
+
}
|
|
7431
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
7432
|
+
const { luvio, config } = context;
|
|
7433
|
+
const selector = {
|
|
7434
|
+
recordId: keyBuilder$d(luvio, config),
|
|
7435
|
+
node: adapterFragment$5(luvio, config),
|
|
7436
|
+
variables: {},
|
|
7248
7437
|
};
|
|
7438
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
7439
|
+
config,
|
|
7440
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
7441
|
+
});
|
|
7442
|
+
return cacheSnapshot;
|
|
7443
|
+
}
|
|
7444
|
+
const downloadServiceProcessTemplateAdapterFactory = (luvio) => function ecm__downloadServiceProcessTemplate(untrustedConfig, requestContext) {
|
|
7445
|
+
const config = validateAdapterConfig$9(untrustedConfig, downloadServiceProcessTemplate_ConfigPropertyNames);
|
|
7446
|
+
// Invalid or incomplete config
|
|
7447
|
+
if (config === null) {
|
|
7448
|
+
return null;
|
|
7449
|
+
}
|
|
7450
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
7451
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
7249
7452
|
};
|
|
7250
7453
|
|
|
7251
7454
|
const TTL$5 = 6000;
|
|
@@ -7439,10 +7642,10 @@ const generateIntakeForm_ConfigPropertyMetadata = [
|
|
|
7439
7642
|
generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
|
|
7440
7643
|
];
|
|
7441
7644
|
const generateIntakeForm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, generateIntakeForm_ConfigPropertyMetadata);
|
|
7442
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
7645
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$e(generateIntakeForm_ConfigPropertyMetadata);
|
|
7443
7646
|
function typeCheckConfig$8(untrustedConfig) {
|
|
7444
7647
|
const config = {};
|
|
7445
|
-
typeCheckConfig$
|
|
7648
|
+
typeCheckConfig$e(untrustedConfig, config, generateIntakeForm_ConfigPropertyMetadata);
|
|
7446
7649
|
return config;
|
|
7447
7650
|
}
|
|
7448
7651
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -7700,10 +7903,10 @@ const generateOmniScript_ConfigPropertyMetadata = [
|
|
|
7700
7903
|
generateParamConfigMetadata('scriptName', true, 2 /* Body */, 0 /* String */),
|
|
7701
7904
|
];
|
|
7702
7905
|
const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, generateOmniScript_ConfigPropertyMetadata);
|
|
7703
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
7906
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$e(generateOmniScript_ConfigPropertyMetadata);
|
|
7704
7907
|
function typeCheckConfig$7(untrustedConfig) {
|
|
7705
7908
|
const config = {};
|
|
7706
|
-
typeCheckConfig$
|
|
7909
|
+
typeCheckConfig$e(untrustedConfig, config, generateOmniScript_ConfigPropertyMetadata);
|
|
7707
7910
|
return config;
|
|
7708
7911
|
}
|
|
7709
7912
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -7763,7 +7966,7 @@ function validate$9(obj, path = 'EinsteinAgentActionsOutputRepresentation') {
|
|
|
7763
7966
|
for (let i = 0; i < obj_actions.length; i++) {
|
|
7764
7967
|
const obj_actions_item = obj_actions[i];
|
|
7765
7968
|
const path_actions_item = path_actions + '[' + i + ']';
|
|
7766
|
-
const referencepath_actions_itemValidationError = validate$
|
|
7969
|
+
const referencepath_actions_itemValidationError = validate$E(obj_actions_item, path_actions_item);
|
|
7767
7970
|
if (referencepath_actions_itemValidationError !== null) {
|
|
7768
7971
|
let message = 'Object doesn\'t match EinsteinAgentActionOutputRepresentation (at "' + path_actions_item + '")\n';
|
|
7769
7972
|
message += referencepath_actions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7871,14 +8074,14 @@ const getAgentActions_ConfigPropertyMetadata = [
|
|
|
7871
8074
|
generateParamConfigMetadata('resourceType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7872
8075
|
];
|
|
7873
8076
|
const getAgentActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getAgentActions_ConfigPropertyMetadata);
|
|
7874
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
8077
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$e(getAgentActions_ConfigPropertyMetadata);
|
|
7875
8078
|
function keyBuilder$9(luvio, config) {
|
|
7876
8079
|
const resourceParams = createResourceParams$6(config);
|
|
7877
8080
|
return keyBuilder$a(luvio, resourceParams);
|
|
7878
8081
|
}
|
|
7879
8082
|
function typeCheckConfig$6(untrustedConfig) {
|
|
7880
8083
|
const config = {};
|
|
7881
|
-
typeCheckConfig$
|
|
8084
|
+
typeCheckConfig$e(untrustedConfig, config, getAgentActions_ConfigPropertyMetadata);
|
|
7882
8085
|
return config;
|
|
7883
8086
|
}
|
|
7884
8087
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -7927,7 +8130,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
7927
8130
|
});
|
|
7928
8131
|
}
|
|
7929
8132
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
7930
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8133
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
7931
8134
|
}
|
|
7932
8135
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
7933
8136
|
const { luvio, config } = context;
|
|
@@ -8129,14 +8332,14 @@ const getAllServiceAutomationDep_ConfigPropertyMetadata = [
|
|
|
8129
8332
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 4 /* Unsupported */),
|
|
8130
8333
|
];
|
|
8131
8334
|
const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
8132
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
8335
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$e(getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
8133
8336
|
function keyBuilder$7(luvio, config) {
|
|
8134
8337
|
const resourceParams = createResourceParams$5(config);
|
|
8135
8338
|
return keyBuilder$8(luvio, resourceParams);
|
|
8136
8339
|
}
|
|
8137
8340
|
function typeCheckConfig$5(untrustedConfig) {
|
|
8138
8341
|
const config = {};
|
|
8139
|
-
typeCheckConfig$
|
|
8342
|
+
typeCheckConfig$e(untrustedConfig, config, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
8140
8343
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
8141
8344
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
8142
8345
|
const untrustedConfig_filters_array = [];
|
|
@@ -8204,7 +8407,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
8204
8407
|
});
|
|
8205
8408
|
}
|
|
8206
8409
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
8207
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8410
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, 'get', false);
|
|
8208
8411
|
}
|
|
8209
8412
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
8210
8413
|
const { luvio, config } = context;
|
|
@@ -8388,7 +8591,7 @@ function createResourceRequest$4(config) {
|
|
|
8388
8591
|
const adapterName$4 = 'getAllServiceProcessTemplate';
|
|
8389
8592
|
const getAllServiceProcessTemplate_ConfigPropertyMetadata = [];
|
|
8390
8593
|
const getAllServiceProcessTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAllServiceProcessTemplate_ConfigPropertyMetadata);
|
|
8391
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
8594
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$e(getAllServiceProcessTemplate_ConfigPropertyMetadata);
|
|
8392
8595
|
function keyBuilder$5(luvio, config) {
|
|
8393
8596
|
createResourceParams$4(config);
|
|
8394
8597
|
return keyBuilder$6();
|
|
@@ -8443,7 +8646,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
8443
8646
|
});
|
|
8444
8647
|
}
|
|
8445
8648
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
8446
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8649
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
8447
8650
|
}
|
|
8448
8651
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
8449
8652
|
const { luvio, config } = context;
|
|
@@ -8469,20 +8672,20 @@ const getAllServiceProcessTemplateAdapterFactory = (luvio) => function ecm__getA
|
|
|
8469
8672
|
};
|
|
8470
8673
|
|
|
8471
8674
|
function select$5(luvio, params) {
|
|
8472
|
-
return select$
|
|
8675
|
+
return select$l();
|
|
8473
8676
|
}
|
|
8474
8677
|
function keyBuilder$4(luvio, params) {
|
|
8475
|
-
return keyBuilder$
|
|
8678
|
+
return keyBuilder$g(luvio, {
|
|
8476
8679
|
catalogItemId: params.urlParams.catalogItemId
|
|
8477
8680
|
});
|
|
8478
8681
|
}
|
|
8479
8682
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
8480
|
-
getTypeCacheKeys$
|
|
8683
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
8481
8684
|
}
|
|
8482
8685
|
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
8483
8686
|
const { body } = response;
|
|
8484
8687
|
const key = keyBuilder$4(luvio, resourceParams);
|
|
8485
|
-
luvio.storeIngest(key, ingest$
|
|
8688
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
8486
8689
|
const snapshot = luvio.storeLookup({
|
|
8487
8690
|
recordId: key,
|
|
8488
8691
|
node: select$5(),
|
|
@@ -8500,10 +8703,10 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
8500
8703
|
const key = keyBuilder$4(luvio, params);
|
|
8501
8704
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
8502
8705
|
const storeMetadataParams = {
|
|
8503
|
-
ttl: TTL$
|
|
8706
|
+
ttl: TTL$8,
|
|
8504
8707
|
namespace: keyPrefix,
|
|
8505
|
-
version: VERSION$
|
|
8506
|
-
representationName: RepresentationType$
|
|
8708
|
+
version: VERSION$9,
|
|
8709
|
+
representationName: RepresentationType$9
|
|
8507
8710
|
};
|
|
8508
8711
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
8509
8712
|
return errorSnapshot;
|
|
@@ -8528,14 +8731,14 @@ const getCatalogItem_ConfigPropertyMetadata = [
|
|
|
8528
8731
|
generateParamConfigMetadata('isRuntime', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
8529
8732
|
];
|
|
8530
8733
|
const getCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getCatalogItem_ConfigPropertyMetadata);
|
|
8531
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
8734
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$e(getCatalogItem_ConfigPropertyMetadata);
|
|
8532
8735
|
function keyBuilder$3(luvio, config) {
|
|
8533
8736
|
const resourceParams = createResourceParams$3(config);
|
|
8534
8737
|
return keyBuilder$4(luvio, resourceParams);
|
|
8535
8738
|
}
|
|
8536
8739
|
function typeCheckConfig$3(untrustedConfig) {
|
|
8537
8740
|
const config = {};
|
|
8538
|
-
typeCheckConfig$
|
|
8741
|
+
typeCheckConfig$e(untrustedConfig, config, getCatalogItem_ConfigPropertyMetadata);
|
|
8539
8742
|
return config;
|
|
8540
8743
|
}
|
|
8541
8744
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -8584,7 +8787,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
8584
8787
|
});
|
|
8585
8788
|
}
|
|
8586
8789
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
8587
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8790
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
8588
8791
|
}
|
|
8589
8792
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
8590
8793
|
const { luvio, config } = context;
|
|
@@ -8824,14 +9027,14 @@ const getServiceRequest_ConfigPropertyMetadata = [
|
|
|
8824
9027
|
generateParamConfigMetadata('serviceRequestId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8825
9028
|
];
|
|
8826
9029
|
const getServiceRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getServiceRequest_ConfigPropertyMetadata);
|
|
8827
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
9030
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$e(getServiceRequest_ConfigPropertyMetadata);
|
|
8828
9031
|
function keyBuilder$1(luvio, config) {
|
|
8829
9032
|
const resourceParams = createResourceParams$2(config);
|
|
8830
9033
|
return keyBuilder$2(luvio, resourceParams);
|
|
8831
9034
|
}
|
|
8832
9035
|
function typeCheckConfig$2(untrustedConfig) {
|
|
8833
9036
|
const config = {};
|
|
8834
|
-
typeCheckConfig$
|
|
9037
|
+
typeCheckConfig$e(untrustedConfig, config, getServiceRequest_ConfigPropertyMetadata);
|
|
8835
9038
|
return config;
|
|
8836
9039
|
}
|
|
8837
9040
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -8880,7 +9083,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
8880
9083
|
});
|
|
8881
9084
|
}
|
|
8882
9085
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
8883
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9086
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
8884
9087
|
}
|
|
8885
9088
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
8886
9089
|
const { luvio, config } = context;
|
|
@@ -8906,15 +9109,15 @@ const getServiceRequestAdapterFactory = (luvio) => function ecm__getServiceReque
|
|
|
8906
9109
|
};
|
|
8907
9110
|
|
|
8908
9111
|
function select$2(luvio, params) {
|
|
8909
|
-
return select$
|
|
9112
|
+
return select$l();
|
|
8910
9113
|
}
|
|
8911
9114
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
8912
|
-
getTypeCacheKeys$
|
|
9115
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
8913
9116
|
}
|
|
8914
9117
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
8915
9118
|
const { body } = response;
|
|
8916
9119
|
const key = keyBuilderFromType$4(luvio, body);
|
|
8917
|
-
luvio.storeIngest(key, ingest$
|
|
9120
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
8918
9121
|
const snapshot = luvio.storeLookup({
|
|
8919
9122
|
recordId: key,
|
|
8920
9123
|
node: select$2(),
|
|
@@ -8965,12 +9168,12 @@ const updateCatalogItem_ConfigPropertyMetadata = [
|
|
|
8965
9168
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
8966
9169
|
];
|
|
8967
9170
|
const updateCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateCatalogItem_ConfigPropertyMetadata);
|
|
8968
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
9171
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$e(updateCatalogItem_ConfigPropertyMetadata);
|
|
8969
9172
|
function typeCheckConfig$1(untrustedConfig) {
|
|
8970
9173
|
const config = {};
|
|
8971
|
-
typeCheckConfig$
|
|
9174
|
+
typeCheckConfig$e(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
|
|
8972
9175
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
8973
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
9176
|
+
const referenceAgentActionInputRepresentationValidationError = validate$B(untrustedConfig_agentAction);
|
|
8974
9177
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
8975
9178
|
config.agentAction = untrustedConfig_agentAction;
|
|
8976
9179
|
}
|
|
@@ -8989,7 +9192,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8989
9192
|
const untrustedConfig_associatedArticles_array = [];
|
|
8990
9193
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
8991
9194
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
8992
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
9195
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$A(untrustedConfig_associatedArticles_item);
|
|
8993
9196
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
8994
9197
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
8995
9198
|
}
|
|
@@ -9004,7 +9207,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
9004
9207
|
const untrustedConfig_attributes_array = [];
|
|
9005
9208
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
9006
9209
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
9007
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
9210
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$y(untrustedConfig_attributes_item);
|
|
9008
9211
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
9009
9212
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
9010
9213
|
}
|
|
@@ -9019,7 +9222,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
9019
9222
|
const untrustedConfig_sections_array = [];
|
|
9020
9223
|
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
9021
9224
|
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
9022
|
-
const referenceSectionInputRepresentationValidationError = validate$
|
|
9225
|
+
const referenceSectionInputRepresentationValidationError = validate$x(untrustedConfig_sections_item);
|
|
9023
9226
|
if (referenceSectionInputRepresentationValidationError === null) {
|
|
9024
9227
|
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
9025
9228
|
}
|
|
@@ -9055,7 +9258,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
9055
9258
|
const untrustedConfig_eligibilityRules_array = [];
|
|
9056
9259
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
9057
9260
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
9058
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
9261
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$w(untrustedConfig_eligibilityRules_item);
|
|
9059
9262
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
9060
9263
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
9061
9264
|
}
|
|
@@ -9066,7 +9269,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
9066
9269
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
9067
9270
|
}
|
|
9068
9271
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
9069
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
9272
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$v(untrustedConfig_fulfillmentFlow);
|
|
9070
9273
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
9071
9274
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
9072
9275
|
}
|
|
@@ -9074,7 +9277,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
9074
9277
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
9075
9278
|
}
|
|
9076
9279
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
9077
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
9280
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$u(untrustedConfig_intakeForm);
|
|
9078
9281
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
9079
9282
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
9080
9283
|
}
|
|
@@ -9086,7 +9289,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
9086
9289
|
const untrustedConfig_integrations_array = [];
|
|
9087
9290
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
9088
9291
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
9089
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
9292
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$t(untrustedConfig_integrations_item);
|
|
9090
9293
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
9091
9294
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
9092
9295
|
}
|
|
@@ -9115,7 +9318,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
9115
9318
|
const untrustedConfig_preProcessors_array = [];
|
|
9116
9319
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
9117
9320
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
9118
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
9321
|
+
const referencePreprocessorInputRepresentationValidationError = validate$s(untrustedConfig_preProcessors_item);
|
|
9119
9322
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
9120
9323
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
9121
9324
|
}
|
|
@@ -9130,7 +9333,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
9130
9333
|
const untrustedConfig_productRequests_array = [];
|
|
9131
9334
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
9132
9335
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
9133
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
9336
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$r(untrustedConfig_productRequests_item);
|
|
9134
9337
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
9135
9338
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
9136
9339
|
}
|
|
@@ -9370,10 +9573,10 @@ const updateEpcCategories_ConfigPropertyMetadata = [
|
|
|
9370
9573
|
generateParamConfigMetadata('categories', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9371
9574
|
];
|
|
9372
9575
|
const updateEpcCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateEpcCategories_ConfigPropertyMetadata);
|
|
9373
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
9576
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$e(updateEpcCategories_ConfigPropertyMetadata);
|
|
9374
9577
|
function typeCheckConfig(untrustedConfig) {
|
|
9375
9578
|
const config = {};
|
|
9376
|
-
typeCheckConfig$
|
|
9579
|
+
typeCheckConfig$e(untrustedConfig, config, updateEpcCategories_ConfigPropertyMetadata);
|
|
9377
9580
|
const untrustedConfig_categories = untrustedConfig.categories;
|
|
9378
9581
|
if (ArrayIsArray$1(untrustedConfig_categories)) {
|
|
9379
9582
|
const untrustedConfig_categories_array = [];
|
|
@@ -9434,6 +9637,7 @@ let createAgentAction;
|
|
|
9434
9637
|
let createAgentFlow;
|
|
9435
9638
|
let createCatalogItem;
|
|
9436
9639
|
let deployTemplate;
|
|
9640
|
+
let downloadServiceProcessTemplate;
|
|
9437
9641
|
let generateIntakeForm;
|
|
9438
9642
|
let generateOmniScript;
|
|
9439
9643
|
let getAgentActions;
|
|
@@ -9444,11 +9648,17 @@ let getServiceRequest;
|
|
|
9444
9648
|
let updateCatalogItem;
|
|
9445
9649
|
let updateEpcCategories;
|
|
9446
9650
|
// Imperative GET Adapters
|
|
9651
|
+
let downloadServiceProcessTemplate_imperative;
|
|
9447
9652
|
let getAgentActions_imperative;
|
|
9448
9653
|
let getAllServiceAutomationDep_imperative;
|
|
9449
9654
|
let getAllServiceProcessTemplate_imperative;
|
|
9450
9655
|
let getCatalogItem_imperative;
|
|
9451
9656
|
let getServiceRequest_imperative;
|
|
9657
|
+
const downloadServiceProcessTemplateMetadata = {
|
|
9658
|
+
apiFamily: 'ecm',
|
|
9659
|
+
name: 'downloadServiceProcessTemplate',
|
|
9660
|
+
ttl: 6000,
|
|
9661
|
+
};
|
|
9452
9662
|
const getAgentActionsMetadata = { apiFamily: 'ecm', name: 'getAgentActions', ttl: 600000 };
|
|
9453
9663
|
const getAllServiceAutomationDepMetadata = {
|
|
9454
9664
|
apiFamily: 'ecm',
|
|
@@ -9465,6 +9675,7 @@ const getServiceRequestMetadata = { apiFamily: 'ecm', name: 'getServiceRequest'
|
|
|
9465
9675
|
// Notify Update Available
|
|
9466
9676
|
function bindExportsTo(luvio) {
|
|
9467
9677
|
// LDS Adapters
|
|
9678
|
+
const downloadServiceProcessTemplate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'downloadServiceProcessTemplate', downloadServiceProcessTemplateAdapterFactory), downloadServiceProcessTemplateMetadata);
|
|
9468
9679
|
const getAgentActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAgentActions', getAgentActionsAdapterFactory), getAgentActionsMetadata);
|
|
9469
9680
|
const getAllServiceAutomationDep_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllServiceAutomationDep', getAllServiceAutomationDepAdapterFactory), getAllServiceAutomationDepMetadata);
|
|
9470
9681
|
const getAllServiceProcessTemplate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllServiceProcessTemplate', getAllServiceProcessTemplateAdapterFactory), getAllServiceProcessTemplateMetadata);
|
|
@@ -9479,6 +9690,7 @@ function bindExportsTo(luvio) {
|
|
|
9479
9690
|
createAgentFlow: unwrapSnapshotData(createAgentFlowAdapterFactory),
|
|
9480
9691
|
createCatalogItem: unwrapSnapshotData(createCatalogItemAdapterFactory),
|
|
9481
9692
|
deployTemplate: unwrapSnapshotData(deployTemplateAdapterFactory),
|
|
9693
|
+
downloadServiceProcessTemplate: createWireAdapterConstructor(luvio, downloadServiceProcessTemplate_ldsAdapter, downloadServiceProcessTemplateMetadata),
|
|
9482
9694
|
generateIntakeForm: unwrapSnapshotData(generateIntakeFormAdapterFactory),
|
|
9483
9695
|
generateOmniScript: unwrapSnapshotData(generateOmniScriptAdapterFactory),
|
|
9484
9696
|
getAgentActions: createWireAdapterConstructor(luvio, getAgentActions_ldsAdapter, getAgentActionsMetadata),
|
|
@@ -9489,6 +9701,7 @@ function bindExportsTo(luvio) {
|
|
|
9489
9701
|
updateCatalogItem: unwrapSnapshotData(updateCatalogItemAdapterFactory),
|
|
9490
9702
|
updateEpcCategories: unwrapSnapshotData(updateEpcCategoriesAdapterFactory),
|
|
9491
9703
|
// Imperative GET Adapters
|
|
9704
|
+
downloadServiceProcessTemplate_imperative: createImperativeAdapter(luvio, downloadServiceProcessTemplate_ldsAdapter, downloadServiceProcessTemplateMetadata),
|
|
9492
9705
|
getAgentActions_imperative: createImperativeAdapter(luvio, getAgentActions_ldsAdapter, getAgentActionsMetadata),
|
|
9493
9706
|
getAllServiceAutomationDep_imperative: createImperativeAdapter(luvio, getAllServiceAutomationDep_ldsAdapter, getAllServiceAutomationDepMetadata),
|
|
9494
9707
|
getAllServiceProcessTemplate_imperative: createImperativeAdapter(luvio, getAllServiceProcessTemplate_ldsAdapter, getAllServiceProcessTemplateMetadata),
|
|
@@ -9503,6 +9716,7 @@ withDefaultLuvio((luvio) => {
|
|
|
9503
9716
|
createAgentFlow,
|
|
9504
9717
|
createCatalogItem,
|
|
9505
9718
|
deployTemplate,
|
|
9719
|
+
downloadServiceProcessTemplate,
|
|
9506
9720
|
generateIntakeForm,
|
|
9507
9721
|
generateOmniScript,
|
|
9508
9722
|
getAgentActions,
|
|
@@ -9512,6 +9726,7 @@ withDefaultLuvio((luvio) => {
|
|
|
9512
9726
|
getServiceRequest,
|
|
9513
9727
|
updateCatalogItem,
|
|
9514
9728
|
updateEpcCategories,
|
|
9729
|
+
downloadServiceProcessTemplate_imperative,
|
|
9515
9730
|
getAgentActions_imperative,
|
|
9516
9731
|
getAllServiceAutomationDep_imperative,
|
|
9517
9732
|
getAllServiceProcessTemplate_imperative,
|
|
@@ -9520,5 +9735,5 @@ withDefaultLuvio((luvio) => {
|
|
|
9520
9735
|
} = bindExportsTo(luvio));
|
|
9521
9736
|
});
|
|
9522
9737
|
|
|
9523
|
-
export { createAgentAction, createAgentFlow, createCatalogItem, deployTemplate, generateIntakeForm, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getAllServiceProcessTemplate, getAllServiceProcessTemplate_imperative, getCatalogItem, getCatalogItem_imperative, getServiceRequest, getServiceRequest_imperative, updateCatalogItem, updateEpcCategories };
|
|
9524
|
-
// version: 1.
|
|
9738
|
+
export { createAgentAction, createAgentFlow, createCatalogItem, deployTemplate, downloadServiceProcessTemplate, downloadServiceProcessTemplate_imperative, generateIntakeForm, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getAllServiceProcessTemplate, getAllServiceProcessTemplate_imperative, getCatalogItem, getCatalogItem_imperative, getServiceRequest, getServiceRequest_imperative, updateCatalogItem, updateEpcCategories };
|
|
9739
|
+
// version: 1.389.1-c0c26cd070
|