@salesforce/lds-adapters-industries-context 1.313.0 → 1.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/industries-context.js +813 -676
- package/dist/es/es2018/types/src/generated/adapters/cloneContextMappings.d.ts +16 -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 +2 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectContextMappingsClone.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/ContextMappingCloneInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ContextMappingCloneInputWrapperRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/ContextMappingCloneListInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/ContextMappingCloneListInputWrapperRepresentation.d.ts +29 -0
- package/package.json +4 -4
- package/sfdc/index.js +1917 -1777
- package/src/raml/api.raml +52 -0
- package/src/raml/luvio.raml +4 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$R, typeCheckConfig as typeCheckConfig$R, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$i } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -112,7 +112,7 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
function validate$
|
|
115
|
+
function validate$L(obj, path = 'QueryContextRecordInputRepresentation') {
|
|
116
116
|
const v_error = (() => {
|
|
117
117
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
118
118
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -162,7 +162,7 @@ function validate$J(obj, path = 'QueryContextRecordInputRepresentation') {
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
const VERSION$u = "6fc1ed5f9fdcaa261c69ec3614505566";
|
|
165
|
-
function validate$
|
|
165
|
+
function validate$K(obj, path = 'ContextDataRecordRepresentation') {
|
|
166
166
|
const v_error = (() => {
|
|
167
167
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
168
168
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -270,7 +270,7 @@ function validate$I(obj, path = 'ContextDataRecordRepresentation') {
|
|
|
270
270
|
})();
|
|
271
271
|
return v_error === undefined ? null : v_error;
|
|
272
272
|
}
|
|
273
|
-
const select$
|
|
273
|
+
const select$19 = function ContextDataRecordRepresentationSelect() {
|
|
274
274
|
return {
|
|
275
275
|
kind: 'Fragment',
|
|
276
276
|
version: VERSION$u,
|
|
@@ -499,7 +499,7 @@ function equals$u(existing, incoming) {
|
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
const VERSION$t = "49d8c0b4cc8734f68ac1bc90a4614c4a";
|
|
502
|
-
function validate$
|
|
502
|
+
function validate$J(obj, path = 'ContextQueryRecordRepresentation') {
|
|
503
503
|
const v_error = (() => {
|
|
504
504
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
505
505
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -521,7 +521,7 @@ function validate$H(obj, path = 'ContextQueryRecordRepresentation') {
|
|
|
521
521
|
if (obj.record !== undefined) {
|
|
522
522
|
const obj_record = obj.record;
|
|
523
523
|
const path_record = path + '.record';
|
|
524
|
-
const referencepath_recordValidationError = validate$
|
|
524
|
+
const referencepath_recordValidationError = validate$K(obj_record, path_record);
|
|
525
525
|
if (referencepath_recordValidationError !== null) {
|
|
526
526
|
let message = 'Object doesn\'t match ContextDataRecordRepresentation (at "' + path_record + '")\n';
|
|
527
527
|
message += referencepath_recordValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -531,8 +531,8 @@ function validate$H(obj, path = 'ContextQueryRecordRepresentation') {
|
|
|
531
531
|
})();
|
|
532
532
|
return v_error === undefined ? null : v_error;
|
|
533
533
|
}
|
|
534
|
-
const select$
|
|
535
|
-
const { selections: ContextDataRecordRepresentation__selections, opaque: ContextDataRecordRepresentation__opaque, } = select$
|
|
534
|
+
const select$18 = function ContextQueryRecordRepresentationSelect() {
|
|
535
|
+
const { selections: ContextDataRecordRepresentation__selections, opaque: ContextDataRecordRepresentation__opaque, } = select$19();
|
|
536
536
|
return {
|
|
537
537
|
kind: 'Fragment',
|
|
538
538
|
version: VERSION$t,
|
|
@@ -589,7 +589,7 @@ function equals$t(existing, incoming) {
|
|
|
589
589
|
|
|
590
590
|
const TTL$n = 1000;
|
|
591
591
|
const VERSION$s = "d6e0481a792086c09a70a174a9232ada";
|
|
592
|
-
function validate$
|
|
592
|
+
function validate$I(obj, path = 'QueryContextRecordResultRepresentation') {
|
|
593
593
|
const v_error = (() => {
|
|
594
594
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
595
595
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -622,7 +622,7 @@ function validate$G(obj, path = 'QueryContextRecordResultRepresentation') {
|
|
|
622
622
|
for (let i = 0; i < obj_queryRecords.length; i++) {
|
|
623
623
|
const obj_queryRecords_item = obj_queryRecords[i];
|
|
624
624
|
const path_queryRecords_item = path_queryRecords + '[' + i + ']';
|
|
625
|
-
const referencepath_queryRecords_itemValidationError = validate$
|
|
625
|
+
const referencepath_queryRecords_itemValidationError = validate$J(obj_queryRecords_item, path_queryRecords_item);
|
|
626
626
|
if (referencepath_queryRecords_itemValidationError !== null) {
|
|
627
627
|
let message = 'Object doesn\'t match ContextQueryRecordRepresentation (at "' + path_queryRecords_item + '")\n';
|
|
628
628
|
message += referencepath_queryRecords_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -646,8 +646,8 @@ function keyBuilderFromType$l(luvio, object) {
|
|
|
646
646
|
function normalize$p(input, existing, path, luvio, store, timestamp) {
|
|
647
647
|
return input;
|
|
648
648
|
}
|
|
649
|
-
const select$
|
|
650
|
-
const { selections: ContextQueryRecordRepresentation__selections, opaque: ContextQueryRecordRepresentation__opaque, } = select$
|
|
649
|
+
const select$17 = function QueryContextRecordResultRepresentationSelect() {
|
|
650
|
+
const { selections: ContextQueryRecordRepresentation__selections, opaque: ContextQueryRecordRepresentation__opaque, } = select$18();
|
|
651
651
|
return {
|
|
652
652
|
kind: 'Fragment',
|
|
653
653
|
version: VERSION$s,
|
|
@@ -731,7 +731,7 @@ function equals$s(existing, incoming) {
|
|
|
731
731
|
}
|
|
732
732
|
const ingest$p = function QueryContextRecordResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
733
733
|
if (process.env.NODE_ENV !== 'production') {
|
|
734
|
-
const validateError = validate$
|
|
734
|
+
const validateError = validate$I(input);
|
|
735
735
|
if (validateError !== null) {
|
|
736
736
|
throw validateError;
|
|
737
737
|
}
|
|
@@ -751,19 +751,19 @@ function getTypeCacheKeys$p(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
751
751
|
});
|
|
752
752
|
}
|
|
753
753
|
|
|
754
|
-
function select$
|
|
755
|
-
return select$
|
|
754
|
+
function select$16(luvio, params) {
|
|
755
|
+
return select$17();
|
|
756
756
|
}
|
|
757
|
-
function getResponseCacheKeys$
|
|
757
|
+
function getResponseCacheKeys$Q(storeKeyMap, luvio, resourceParams, response) {
|
|
758
758
|
getTypeCacheKeys$p(storeKeyMap, luvio, response);
|
|
759
759
|
}
|
|
760
|
-
function ingestSuccess$
|
|
760
|
+
function ingestSuccess$G(luvio, resourceParams, response) {
|
|
761
761
|
const { body } = response;
|
|
762
762
|
const key = keyBuilderFromType$l(luvio, body);
|
|
763
763
|
luvio.storeIngest(key, ingest$p, body);
|
|
764
764
|
const snapshot = luvio.storeLookup({
|
|
765
765
|
recordId: key,
|
|
766
|
-
node: select$
|
|
766
|
+
node: select$16(),
|
|
767
767
|
variables: {},
|
|
768
768
|
});
|
|
769
769
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -774,7 +774,7 @@ function ingestSuccess$F(luvio, resourceParams, response) {
|
|
|
774
774
|
deepFreeze(snapshot.data);
|
|
775
775
|
return snapshot;
|
|
776
776
|
}
|
|
777
|
-
function createResourceRequest$
|
|
777
|
+
function createResourceRequest$Q(config) {
|
|
778
778
|
const headers = {};
|
|
779
779
|
return {
|
|
780
780
|
baseUri: '/services/data/v63.0',
|
|
@@ -788,47 +788,47 @@ function createResourceRequest$P(config) {
|
|
|
788
788
|
};
|
|
789
789
|
}
|
|
790
790
|
|
|
791
|
-
const adapterName$
|
|
791
|
+
const adapterName$Q = 'queryContextRecordAndChildren';
|
|
792
792
|
const queryContextRecordAndChildren_ConfigPropertyMetadata = [
|
|
793
793
|
generateParamConfigMetadata('children', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
794
794
|
generateParamConfigMetadata('queryContextRecordInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
795
795
|
];
|
|
796
|
-
const queryContextRecordAndChildren_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
797
|
-
const createResourceParams$
|
|
798
|
-
function typeCheckConfig$
|
|
796
|
+
const queryContextRecordAndChildren_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Q, queryContextRecordAndChildren_ConfigPropertyMetadata);
|
|
797
|
+
const createResourceParams$Q = /*#__PURE__*/ createResourceParams$R(queryContextRecordAndChildren_ConfigPropertyMetadata);
|
|
798
|
+
function typeCheckConfig$Q(untrustedConfig) {
|
|
799
799
|
const config = {};
|
|
800
|
-
typeCheckConfig$
|
|
800
|
+
typeCheckConfig$R(untrustedConfig, config, queryContextRecordAndChildren_ConfigPropertyMetadata);
|
|
801
801
|
const untrustedConfig_queryContextRecordInput = untrustedConfig.queryContextRecordInput;
|
|
802
|
-
const referenceQueryContextRecordInputRepresentationValidationError = validate$
|
|
802
|
+
const referenceQueryContextRecordInputRepresentationValidationError = validate$L(untrustedConfig_queryContextRecordInput);
|
|
803
803
|
if (referenceQueryContextRecordInputRepresentationValidationError === null) {
|
|
804
804
|
config.queryContextRecordInput = untrustedConfig_queryContextRecordInput;
|
|
805
805
|
}
|
|
806
806
|
return config;
|
|
807
807
|
}
|
|
808
|
-
function validateAdapterConfig$
|
|
808
|
+
function validateAdapterConfig$Q(untrustedConfig, configPropertyNames) {
|
|
809
809
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
810
810
|
return null;
|
|
811
811
|
}
|
|
812
812
|
if (process.env.NODE_ENV !== 'production') {
|
|
813
813
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
814
814
|
}
|
|
815
|
-
const config = typeCheckConfig$
|
|
815
|
+
const config = typeCheckConfig$Q(untrustedConfig);
|
|
816
816
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
817
817
|
return null;
|
|
818
818
|
}
|
|
819
819
|
return config;
|
|
820
820
|
}
|
|
821
|
-
function buildNetworkSnapshot$
|
|
822
|
-
const resourceParams = createResourceParams$
|
|
823
|
-
const request = createResourceRequest$
|
|
821
|
+
function buildNetworkSnapshot$Q(luvio, config, options) {
|
|
822
|
+
const resourceParams = createResourceParams$Q(config);
|
|
823
|
+
const request = createResourceRequest$Q(resourceParams);
|
|
824
824
|
return luvio.dispatchResourceRequest(request, options)
|
|
825
825
|
.then((response) => {
|
|
826
826
|
return luvio.handleSuccessResponse(() => {
|
|
827
|
-
const snapshot = ingestSuccess$
|
|
827
|
+
const snapshot = ingestSuccess$G(luvio, resourceParams, response);
|
|
828
828
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
829
829
|
}, () => {
|
|
830
830
|
const cache = new StoreKeyMap();
|
|
831
|
-
getResponseCacheKeys$
|
|
831
|
+
getResponseCacheKeys$Q(cache, luvio, resourceParams, response.body);
|
|
832
832
|
return cache;
|
|
833
833
|
});
|
|
834
834
|
}, (response) => {
|
|
@@ -838,18 +838,18 @@ function buildNetworkSnapshot$P(luvio, config, options) {
|
|
|
838
838
|
}
|
|
839
839
|
const queryContextRecordAndChildrenAdapterFactory = (luvio) => {
|
|
840
840
|
return function queryContextRecordAndChildren(untrustedConfig) {
|
|
841
|
-
const config = validateAdapterConfig$
|
|
841
|
+
const config = validateAdapterConfig$Q(untrustedConfig, queryContextRecordAndChildren_ConfigPropertyNames);
|
|
842
842
|
// Invalid or incomplete config
|
|
843
843
|
if (config === null) {
|
|
844
844
|
throw new Error('Invalid config for "queryContextRecordAndChildren"');
|
|
845
845
|
}
|
|
846
|
-
return buildNetworkSnapshot$
|
|
846
|
+
return buildNetworkSnapshot$Q(luvio, config);
|
|
847
847
|
};
|
|
848
848
|
};
|
|
849
849
|
|
|
850
850
|
const TTL$m = 1000;
|
|
851
851
|
const VERSION$r = "f4529c1d2c50b9cc056022fbea50b225";
|
|
852
|
-
function validate$
|
|
852
|
+
function validate$H(obj, path = 'ContextInfoRepresentation') {
|
|
853
853
|
const v_error = (() => {
|
|
854
854
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
855
855
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -910,7 +910,7 @@ function keyBuilderFromType$k(luvio, object) {
|
|
|
910
910
|
function normalize$o(input, existing, path, luvio, store, timestamp) {
|
|
911
911
|
return input;
|
|
912
912
|
}
|
|
913
|
-
const select$
|
|
913
|
+
const select$15 = function ContextInfoRepresentationSelect() {
|
|
914
914
|
return {
|
|
915
915
|
kind: 'Fragment',
|
|
916
916
|
version: VERSION$r,
|
|
@@ -926,7 +926,7 @@ function equals$r(existing, incoming) {
|
|
|
926
926
|
}
|
|
927
927
|
const ingest$o = function ContextInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
928
928
|
if (process.env.NODE_ENV !== 'production') {
|
|
929
|
-
const validateError = validate$
|
|
929
|
+
const validateError = validate$H(input);
|
|
930
930
|
if (validateError !== null) {
|
|
931
931
|
throw validateError;
|
|
932
932
|
}
|
|
@@ -946,24 +946,24 @@ function getTypeCacheKeys$o(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
946
946
|
});
|
|
947
947
|
}
|
|
948
948
|
|
|
949
|
-
function select$
|
|
950
|
-
return select$
|
|
949
|
+
function select$14(luvio, params) {
|
|
950
|
+
return select$15();
|
|
951
951
|
}
|
|
952
952
|
function keyBuilder$11(luvio, params) {
|
|
953
953
|
return keyBuilder$12(luvio, {
|
|
954
954
|
id: params.urlParams.contextId
|
|
955
955
|
});
|
|
956
956
|
}
|
|
957
|
-
function getResponseCacheKeys$
|
|
957
|
+
function getResponseCacheKeys$P(storeKeyMap, luvio, resourceParams, response) {
|
|
958
958
|
getTypeCacheKeys$o(storeKeyMap, luvio, response);
|
|
959
959
|
}
|
|
960
|
-
function ingestSuccess$
|
|
960
|
+
function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
|
|
961
961
|
const { body } = response;
|
|
962
962
|
const key = keyBuilder$11(luvio, resourceParams);
|
|
963
963
|
luvio.storeIngest(key, ingest$o, body);
|
|
964
964
|
const snapshot = luvio.storeLookup({
|
|
965
965
|
recordId: key,
|
|
966
|
-
node: select$
|
|
966
|
+
node: select$14(),
|
|
967
967
|
variables: {},
|
|
968
968
|
}, snapshotRefresh);
|
|
969
969
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -986,7 +986,7 @@ function ingestError$h(luvio, params, error, snapshotRefresh) {
|
|
|
986
986
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
987
987
|
return errorSnapshot;
|
|
988
988
|
}
|
|
989
|
-
function createResourceRequest$
|
|
989
|
+
function createResourceRequest$P(config) {
|
|
990
990
|
const headers = {};
|
|
991
991
|
return {
|
|
992
992
|
baseUri: '/services/data/v63.0',
|
|
@@ -1000,60 +1000,60 @@ function createResourceRequest$O(config) {
|
|
|
1000
1000
|
};
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
|
-
const adapterName$
|
|
1003
|
+
const adapterName$P = 'getContext';
|
|
1004
1004
|
const getContext_ConfigPropertyMetadata = [
|
|
1005
1005
|
generateParamConfigMetadata('contextId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1006
1006
|
];
|
|
1007
|
-
const getContext_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1008
|
-
const createResourceParams$
|
|
1007
|
+
const getContext_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$P, getContext_ConfigPropertyMetadata);
|
|
1008
|
+
const createResourceParams$P = /*#__PURE__*/ createResourceParams$R(getContext_ConfigPropertyMetadata);
|
|
1009
1009
|
function keyBuilder$10(luvio, config) {
|
|
1010
|
-
const resourceParams = createResourceParams$
|
|
1010
|
+
const resourceParams = createResourceParams$P(config);
|
|
1011
1011
|
return keyBuilder$11(luvio, resourceParams);
|
|
1012
1012
|
}
|
|
1013
|
-
function typeCheckConfig$
|
|
1013
|
+
function typeCheckConfig$P(untrustedConfig) {
|
|
1014
1014
|
const config = {};
|
|
1015
|
-
typeCheckConfig$
|
|
1015
|
+
typeCheckConfig$R(untrustedConfig, config, getContext_ConfigPropertyMetadata);
|
|
1016
1016
|
return config;
|
|
1017
1017
|
}
|
|
1018
|
-
function validateAdapterConfig$
|
|
1018
|
+
function validateAdapterConfig$P(untrustedConfig, configPropertyNames) {
|
|
1019
1019
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1020
1020
|
return null;
|
|
1021
1021
|
}
|
|
1022
1022
|
if (process.env.NODE_ENV !== 'production') {
|
|
1023
1023
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1024
1024
|
}
|
|
1025
|
-
const config = typeCheckConfig$
|
|
1025
|
+
const config = typeCheckConfig$P(untrustedConfig);
|
|
1026
1026
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1027
1027
|
return null;
|
|
1028
1028
|
}
|
|
1029
1029
|
return config;
|
|
1030
1030
|
}
|
|
1031
1031
|
function adapterFragment$h(luvio, config) {
|
|
1032
|
-
createResourceParams$
|
|
1033
|
-
return select$
|
|
1032
|
+
createResourceParams$P(config);
|
|
1033
|
+
return select$14();
|
|
1034
1034
|
}
|
|
1035
1035
|
function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
|
|
1036
|
-
const snapshot = ingestSuccess$
|
|
1036
|
+
const snapshot = ingestSuccess$F(luvio, resourceParams, response, {
|
|
1037
1037
|
config,
|
|
1038
|
-
resolve: () => buildNetworkSnapshot$
|
|
1038
|
+
resolve: () => buildNetworkSnapshot$P(luvio, config, snapshotRefreshOptions)
|
|
1039
1039
|
});
|
|
1040
1040
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1041
1041
|
}
|
|
1042
1042
|
function onFetchResponseError$h(luvio, config, resourceParams, response) {
|
|
1043
1043
|
const snapshot = ingestError$h(luvio, resourceParams, response, {
|
|
1044
1044
|
config,
|
|
1045
|
-
resolve: () => buildNetworkSnapshot$
|
|
1045
|
+
resolve: () => buildNetworkSnapshot$P(luvio, config, snapshotRefreshOptions)
|
|
1046
1046
|
});
|
|
1047
1047
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1048
1048
|
}
|
|
1049
|
-
function buildNetworkSnapshot$
|
|
1050
|
-
const resourceParams = createResourceParams$
|
|
1051
|
-
const request = createResourceRequest$
|
|
1049
|
+
function buildNetworkSnapshot$P(luvio, config, options) {
|
|
1050
|
+
const resourceParams = createResourceParams$P(config);
|
|
1051
|
+
const request = createResourceRequest$P(resourceParams);
|
|
1052
1052
|
return luvio.dispatchResourceRequest(request, options)
|
|
1053
1053
|
.then((response) => {
|
|
1054
1054
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$h(luvio, config, resourceParams, response), () => {
|
|
1055
1055
|
const cache = new StoreKeyMap();
|
|
1056
|
-
getResponseCacheKeys$
|
|
1056
|
+
getResponseCacheKeys$P(cache, luvio, resourceParams, response.body);
|
|
1057
1057
|
return cache;
|
|
1058
1058
|
});
|
|
1059
1059
|
}, (response) => {
|
|
@@ -1061,7 +1061,7 @@ function buildNetworkSnapshot$O(luvio, config, options) {
|
|
|
1061
1061
|
});
|
|
1062
1062
|
}
|
|
1063
1063
|
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
1064
|
-
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1064
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$P, undefined, false);
|
|
1065
1065
|
}
|
|
1066
1066
|
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
1067
1067
|
const { luvio, config } = context;
|
|
@@ -1072,12 +1072,12 @@ function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
|
1072
1072
|
};
|
|
1073
1073
|
const cacheSnapshot = storeLookup(selector, {
|
|
1074
1074
|
config,
|
|
1075
|
-
resolve: () => buildNetworkSnapshot$
|
|
1075
|
+
resolve: () => buildNetworkSnapshot$P(luvio, config, snapshotRefreshOptions)
|
|
1076
1076
|
});
|
|
1077
1077
|
return cacheSnapshot;
|
|
1078
1078
|
}
|
|
1079
1079
|
const getContextAdapterFactory = (luvio) => function IndustriesContext__getContext(untrustedConfig, requestContext) {
|
|
1080
|
-
const config = validateAdapterConfig$
|
|
1080
|
+
const config = validateAdapterConfig$P(untrustedConfig, getContext_ConfigPropertyNames);
|
|
1081
1081
|
// Invalid or incomplete config
|
|
1082
1082
|
if (config === null) {
|
|
1083
1083
|
return null;
|
|
@@ -1088,7 +1088,7 @@ const getContextAdapterFactory = (luvio) => function IndustriesContext__getConte
|
|
|
1088
1088
|
|
|
1089
1089
|
const TTL$l = 1000;
|
|
1090
1090
|
const VERSION$q = "ad70f246fe62dc8126e558799bc7a155";
|
|
1091
|
-
function validate$
|
|
1091
|
+
function validate$G(obj, path = 'ContextDefinitionInfoRepresentation') {
|
|
1092
1092
|
const v_error = (() => {
|
|
1093
1093
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1094
1094
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1233,7 +1233,7 @@ function keyBuilderFromType$j(luvio, object) {
|
|
|
1233
1233
|
function normalize$n(input, existing, path, luvio, store, timestamp) {
|
|
1234
1234
|
return input;
|
|
1235
1235
|
}
|
|
1236
|
-
const select$
|
|
1236
|
+
const select$13 = function ContextDefinitionInfoRepresentationSelect() {
|
|
1237
1237
|
return {
|
|
1238
1238
|
kind: 'Fragment',
|
|
1239
1239
|
version: VERSION$q,
|
|
@@ -1562,7 +1562,7 @@ function equals$q(existing, incoming) {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
const ingest$n = function ContextDefinitionInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1564
1564
|
if (process.env.NODE_ENV !== 'production') {
|
|
1565
|
-
const validateError = validate$
|
|
1565
|
+
const validateError = validate$G(input);
|
|
1566
1566
|
if (validateError !== null) {
|
|
1567
1567
|
throw validateError;
|
|
1568
1568
|
}
|
|
@@ -1584,7 +1584,7 @@ function getTypeCacheKeys$n(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1584
1584
|
|
|
1585
1585
|
const TTL$k = 1000;
|
|
1586
1586
|
const VERSION$p = "9fd2c86ba3bfc49bd6b1b41332fbad4e";
|
|
1587
|
-
function validate$
|
|
1587
|
+
function validate$F(obj, path = 'ContextDefinitionListRepresentation') {
|
|
1588
1588
|
const v_error = (() => {
|
|
1589
1589
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1590
1590
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1636,7 +1636,7 @@ function normalize$m(input, existing, path, luvio, store, timestamp) {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
return input;
|
|
1638
1638
|
}
|
|
1639
|
-
const select$
|
|
1639
|
+
const select$12 = function ContextDefinitionListRepresentationSelect() {
|
|
1640
1640
|
return {
|
|
1641
1641
|
kind: 'Fragment',
|
|
1642
1642
|
version: VERSION$p,
|
|
@@ -1646,7 +1646,7 @@ const select$11 = function ContextDefinitionListRepresentationSelect() {
|
|
|
1646
1646
|
name: 'contextDefinitionList',
|
|
1647
1647
|
kind: 'Link',
|
|
1648
1648
|
plural: true,
|
|
1649
|
-
fragment: select$
|
|
1649
|
+
fragment: select$13()
|
|
1650
1650
|
},
|
|
1651
1651
|
{
|
|
1652
1652
|
name: 'contextDefinitionListId',
|
|
@@ -1693,7 +1693,7 @@ function equals$p(existing, incoming) {
|
|
|
1693
1693
|
}
|
|
1694
1694
|
const ingest$m = function ContextDefinitionListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1695
1695
|
if (process.env.NODE_ENV !== 'production') {
|
|
1696
|
-
const validateError = validate$
|
|
1696
|
+
const validateError = validate$F(input);
|
|
1697
1697
|
if (validateError !== null) {
|
|
1698
1698
|
throw validateError;
|
|
1699
1699
|
}
|
|
@@ -1717,22 +1717,22 @@ function getTypeCacheKeys$m(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
}
|
|
1719
1719
|
|
|
1720
|
-
function select$
|
|
1721
|
-
return select$
|
|
1720
|
+
function select$11(luvio, params) {
|
|
1721
|
+
return select$12();
|
|
1722
1722
|
}
|
|
1723
1723
|
function keyBuilder$_(luvio, params) {
|
|
1724
1724
|
return keyPrefix + '::ContextDefinitionListRepresentation:(' + 'includeInactive:' + params.queryParams.includeInactive + ',' + 'includeUpgrade:' + params.queryParams.includeUpgrade + ')';
|
|
1725
1725
|
}
|
|
1726
|
-
function getResponseCacheKeys$
|
|
1726
|
+
function getResponseCacheKeys$O(storeKeyMap, luvio, resourceParams, response) {
|
|
1727
1727
|
getTypeCacheKeys$m(storeKeyMap, luvio, response, () => keyBuilder$_(luvio, resourceParams));
|
|
1728
1728
|
}
|
|
1729
|
-
function ingestSuccess$
|
|
1729
|
+
function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
1730
1730
|
const { body } = response;
|
|
1731
1731
|
const key = keyBuilder$_(luvio, resourceParams);
|
|
1732
1732
|
luvio.storeIngest(key, ingest$m, body);
|
|
1733
1733
|
const snapshot = luvio.storeLookup({
|
|
1734
1734
|
recordId: key,
|
|
1735
|
-
node: select$
|
|
1735
|
+
node: select$11(),
|
|
1736
1736
|
variables: {},
|
|
1737
1737
|
}, snapshotRefresh);
|
|
1738
1738
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1755,7 +1755,7 @@ function ingestError$g(luvio, params, error, snapshotRefresh) {
|
|
|
1755
1755
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1756
1756
|
return errorSnapshot;
|
|
1757
1757
|
}
|
|
1758
|
-
function createResourceRequest$
|
|
1758
|
+
function createResourceRequest$O(config) {
|
|
1759
1759
|
const headers = {};
|
|
1760
1760
|
return {
|
|
1761
1761
|
baseUri: '/services/data/v63.0',
|
|
@@ -1769,61 +1769,61 @@ function createResourceRequest$N(config) {
|
|
|
1769
1769
|
};
|
|
1770
1770
|
}
|
|
1771
1771
|
|
|
1772
|
-
const adapterName$
|
|
1772
|
+
const adapterName$O = 'getContextDefinitions';
|
|
1773
1773
|
const getContextDefinitions_ConfigPropertyMetadata = [
|
|
1774
1774
|
generateParamConfigMetadata('includeInactive', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1775
1775
|
generateParamConfigMetadata('includeUpgrade', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1776
1776
|
];
|
|
1777
|
-
const getContextDefinitions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1778
|
-
const createResourceParams$
|
|
1777
|
+
const getContextDefinitions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$O, getContextDefinitions_ConfigPropertyMetadata);
|
|
1778
|
+
const createResourceParams$O = /*#__PURE__*/ createResourceParams$R(getContextDefinitions_ConfigPropertyMetadata);
|
|
1779
1779
|
function keyBuilder$Z(luvio, config) {
|
|
1780
|
-
const resourceParams = createResourceParams$
|
|
1780
|
+
const resourceParams = createResourceParams$O(config);
|
|
1781
1781
|
return keyBuilder$_(luvio, resourceParams);
|
|
1782
1782
|
}
|
|
1783
|
-
function typeCheckConfig$
|
|
1783
|
+
function typeCheckConfig$O(untrustedConfig) {
|
|
1784
1784
|
const config = {};
|
|
1785
|
-
typeCheckConfig$
|
|
1785
|
+
typeCheckConfig$R(untrustedConfig, config, getContextDefinitions_ConfigPropertyMetadata);
|
|
1786
1786
|
return config;
|
|
1787
1787
|
}
|
|
1788
|
-
function validateAdapterConfig$
|
|
1788
|
+
function validateAdapterConfig$O(untrustedConfig, configPropertyNames) {
|
|
1789
1789
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1790
1790
|
return null;
|
|
1791
1791
|
}
|
|
1792
1792
|
if (process.env.NODE_ENV !== 'production') {
|
|
1793
1793
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1794
1794
|
}
|
|
1795
|
-
const config = typeCheckConfig$
|
|
1795
|
+
const config = typeCheckConfig$O(untrustedConfig);
|
|
1796
1796
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1797
1797
|
return null;
|
|
1798
1798
|
}
|
|
1799
1799
|
return config;
|
|
1800
1800
|
}
|
|
1801
1801
|
function adapterFragment$g(luvio, config) {
|
|
1802
|
-
createResourceParams$
|
|
1803
|
-
return select$
|
|
1802
|
+
createResourceParams$O(config);
|
|
1803
|
+
return select$11();
|
|
1804
1804
|
}
|
|
1805
1805
|
function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
|
|
1806
|
-
const snapshot = ingestSuccess$
|
|
1806
|
+
const snapshot = ingestSuccess$E(luvio, resourceParams, response, {
|
|
1807
1807
|
config,
|
|
1808
|
-
resolve: () => buildNetworkSnapshot$
|
|
1808
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
1809
1809
|
});
|
|
1810
1810
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1811
1811
|
}
|
|
1812
1812
|
function onFetchResponseError$g(luvio, config, resourceParams, response) {
|
|
1813
1813
|
const snapshot = ingestError$g(luvio, resourceParams, response, {
|
|
1814
1814
|
config,
|
|
1815
|
-
resolve: () => buildNetworkSnapshot$
|
|
1815
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
1816
1816
|
});
|
|
1817
1817
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1818
1818
|
}
|
|
1819
|
-
function buildNetworkSnapshot$
|
|
1820
|
-
const resourceParams = createResourceParams$
|
|
1821
|
-
const request = createResourceRequest$
|
|
1819
|
+
function buildNetworkSnapshot$O(luvio, config, options) {
|
|
1820
|
+
const resourceParams = createResourceParams$O(config);
|
|
1821
|
+
const request = createResourceRequest$O(resourceParams);
|
|
1822
1822
|
return luvio.dispatchResourceRequest(request, options)
|
|
1823
1823
|
.then((response) => {
|
|
1824
1824
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$g(luvio, config, resourceParams, response), () => {
|
|
1825
1825
|
const cache = new StoreKeyMap();
|
|
1826
|
-
getResponseCacheKeys$
|
|
1826
|
+
getResponseCacheKeys$O(cache, luvio, resourceParams, response.body);
|
|
1827
1827
|
return cache;
|
|
1828
1828
|
});
|
|
1829
1829
|
}, (response) => {
|
|
@@ -1831,7 +1831,7 @@ function buildNetworkSnapshot$N(luvio, config, options) {
|
|
|
1831
1831
|
});
|
|
1832
1832
|
}
|
|
1833
1833
|
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
1834
|
-
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1834
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$O, undefined, false);
|
|
1835
1835
|
}
|
|
1836
1836
|
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
1837
1837
|
const { luvio, config } = context;
|
|
@@ -1842,12 +1842,12 @@ function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
|
1842
1842
|
};
|
|
1843
1843
|
const cacheSnapshot = storeLookup(selector, {
|
|
1844
1844
|
config,
|
|
1845
|
-
resolve: () => buildNetworkSnapshot$
|
|
1845
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
1846
1846
|
});
|
|
1847
1847
|
return cacheSnapshot;
|
|
1848
1848
|
}
|
|
1849
1849
|
const getContextDefinitionsAdapterFactory = (luvio) => function IndustriesContext__getContextDefinitions(untrustedConfig, requestContext) {
|
|
1850
|
-
const config = validateAdapterConfig$
|
|
1850
|
+
const config = validateAdapterConfig$O(untrustedConfig, getContextDefinitions_ConfigPropertyNames);
|
|
1851
1851
|
// Invalid or incomplete config
|
|
1852
1852
|
if (config === null) {
|
|
1853
1853
|
return null;
|
|
@@ -1856,7 +1856,7 @@ const getContextDefinitionsAdapterFactory = (luvio) => function IndustriesContex
|
|
|
1856
1856
|
buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
|
|
1857
1857
|
};
|
|
1858
1858
|
|
|
1859
|
-
function validate$
|
|
1859
|
+
function validate$E(obj, path = 'ContextDefinitionsInputRepresentation') {
|
|
1860
1860
|
const v_error = (() => {
|
|
1861
1861
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1862
1862
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1935,19 +1935,19 @@ function validate$C(obj, path = 'ContextDefinitionsInputRepresentation') {
|
|
|
1935
1935
|
return v_error === undefined ? null : v_error;
|
|
1936
1936
|
}
|
|
1937
1937
|
|
|
1938
|
-
function select
|
|
1939
|
-
return select$
|
|
1938
|
+
function select$10(luvio, params) {
|
|
1939
|
+
return select$13();
|
|
1940
1940
|
}
|
|
1941
|
-
function getResponseCacheKeys$
|
|
1941
|
+
function getResponseCacheKeys$N(storeKeyMap, luvio, resourceParams, response) {
|
|
1942
1942
|
getTypeCacheKeys$n(storeKeyMap, luvio, response);
|
|
1943
1943
|
}
|
|
1944
|
-
function ingestSuccess$
|
|
1944
|
+
function ingestSuccess$D(luvio, resourceParams, response) {
|
|
1945
1945
|
const { body } = response;
|
|
1946
1946
|
const key = keyBuilderFromType$j(luvio, body);
|
|
1947
1947
|
luvio.storeIngest(key, ingest$n, body);
|
|
1948
1948
|
const snapshot = luvio.storeLookup({
|
|
1949
1949
|
recordId: key,
|
|
1950
|
-
node: select
|
|
1950
|
+
node: select$10(),
|
|
1951
1951
|
variables: {},
|
|
1952
1952
|
});
|
|
1953
1953
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1958,7 +1958,7 @@ function ingestSuccess$C(luvio, resourceParams, response) {
|
|
|
1958
1958
|
deepFreeze(snapshot.data);
|
|
1959
1959
|
return snapshot;
|
|
1960
1960
|
}
|
|
1961
|
-
function createResourceRequest$
|
|
1961
|
+
function createResourceRequest$N(config) {
|
|
1962
1962
|
const headers = {};
|
|
1963
1963
|
return {
|
|
1964
1964
|
baseUri: '/services/data/v63.0',
|
|
@@ -1972,45 +1972,45 @@ function createResourceRequest$M(config) {
|
|
|
1972
1972
|
};
|
|
1973
1973
|
}
|
|
1974
1974
|
|
|
1975
|
-
const adapterName$
|
|
1975
|
+
const adapterName$N = 'createContextServiceDefinition';
|
|
1976
1976
|
const createContextServiceDefinition_ConfigPropertyMetadata = [
|
|
1977
1977
|
generateParamConfigMetadata('contextDefinitionInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1978
1978
|
];
|
|
1979
|
-
const createContextServiceDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1980
|
-
const createResourceParams$
|
|
1981
|
-
function typeCheckConfig$
|
|
1979
|
+
const createContextServiceDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$N, createContextServiceDefinition_ConfigPropertyMetadata);
|
|
1980
|
+
const createResourceParams$N = /*#__PURE__*/ createResourceParams$R(createContextServiceDefinition_ConfigPropertyMetadata);
|
|
1981
|
+
function typeCheckConfig$N(untrustedConfig) {
|
|
1982
1982
|
const config = {};
|
|
1983
1983
|
const untrustedConfig_contextDefinitionInput = untrustedConfig.contextDefinitionInput;
|
|
1984
|
-
const referenceContextDefinitionsInputRepresentationValidationError = validate$
|
|
1984
|
+
const referenceContextDefinitionsInputRepresentationValidationError = validate$E(untrustedConfig_contextDefinitionInput);
|
|
1985
1985
|
if (referenceContextDefinitionsInputRepresentationValidationError === null) {
|
|
1986
1986
|
config.contextDefinitionInput = untrustedConfig_contextDefinitionInput;
|
|
1987
1987
|
}
|
|
1988
1988
|
return config;
|
|
1989
1989
|
}
|
|
1990
|
-
function validateAdapterConfig$
|
|
1990
|
+
function validateAdapterConfig$N(untrustedConfig, configPropertyNames) {
|
|
1991
1991
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1992
1992
|
return null;
|
|
1993
1993
|
}
|
|
1994
1994
|
if (process.env.NODE_ENV !== 'production') {
|
|
1995
1995
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1996
1996
|
}
|
|
1997
|
-
const config = typeCheckConfig$
|
|
1997
|
+
const config = typeCheckConfig$N(untrustedConfig);
|
|
1998
1998
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1999
1999
|
return null;
|
|
2000
2000
|
}
|
|
2001
2001
|
return config;
|
|
2002
2002
|
}
|
|
2003
|
-
function buildNetworkSnapshot$
|
|
2004
|
-
const resourceParams = createResourceParams$
|
|
2005
|
-
const request = createResourceRequest$
|
|
2003
|
+
function buildNetworkSnapshot$N(luvio, config, options) {
|
|
2004
|
+
const resourceParams = createResourceParams$N(config);
|
|
2005
|
+
const request = createResourceRequest$N(resourceParams);
|
|
2006
2006
|
return luvio.dispatchResourceRequest(request, options)
|
|
2007
2007
|
.then((response) => {
|
|
2008
2008
|
return luvio.handleSuccessResponse(() => {
|
|
2009
|
-
const snapshot = ingestSuccess$
|
|
2009
|
+
const snapshot = ingestSuccess$D(luvio, resourceParams, response);
|
|
2010
2010
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2011
2011
|
}, () => {
|
|
2012
2012
|
const cache = new StoreKeyMap();
|
|
2013
|
-
getResponseCacheKeys$
|
|
2013
|
+
getResponseCacheKeys$N(cache, luvio, resourceParams, response.body);
|
|
2014
2014
|
return cache;
|
|
2015
2015
|
});
|
|
2016
2016
|
}, (response) => {
|
|
@@ -2020,33 +2020,33 @@ function buildNetworkSnapshot$M(luvio, config, options) {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
const createContextServiceDefinitionAdapterFactory = (luvio) => {
|
|
2022
2022
|
return function createContextServiceDefinition(untrustedConfig) {
|
|
2023
|
-
const config = validateAdapterConfig$
|
|
2023
|
+
const config = validateAdapterConfig$N(untrustedConfig, createContextServiceDefinition_ConfigPropertyNames);
|
|
2024
2024
|
// Invalid or incomplete config
|
|
2025
2025
|
if (config === null) {
|
|
2026
2026
|
throw new Error('Invalid config for "createContextServiceDefinition"');
|
|
2027
2027
|
}
|
|
2028
|
-
return buildNetworkSnapshot$
|
|
2028
|
+
return buildNetworkSnapshot$N(luvio, config);
|
|
2029
2029
|
};
|
|
2030
2030
|
};
|
|
2031
2031
|
|
|
2032
|
-
function select
|
|
2033
|
-
return select$
|
|
2032
|
+
function select$$(luvio, params) {
|
|
2033
|
+
return select$13();
|
|
2034
2034
|
}
|
|
2035
2035
|
function keyBuilder$Y(luvio, params) {
|
|
2036
2036
|
return keyBuilder$$(luvio, {
|
|
2037
2037
|
id: params.urlParams.contextDefinitionId
|
|
2038
2038
|
});
|
|
2039
2039
|
}
|
|
2040
|
-
function getResponseCacheKeys$
|
|
2040
|
+
function getResponseCacheKeys$M(storeKeyMap, luvio, resourceParams, response) {
|
|
2041
2041
|
getTypeCacheKeys$n(storeKeyMap, luvio, response);
|
|
2042
2042
|
}
|
|
2043
|
-
function ingestSuccess$
|
|
2043
|
+
function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
|
|
2044
2044
|
const { body } = response;
|
|
2045
2045
|
const key = keyBuilder$Y(luvio, resourceParams);
|
|
2046
2046
|
luvio.storeIngest(key, ingest$n, body);
|
|
2047
2047
|
const snapshot = luvio.storeLookup({
|
|
2048
2048
|
recordId: key,
|
|
2049
|
-
node: select
|
|
2049
|
+
node: select$$(),
|
|
2050
2050
|
variables: {},
|
|
2051
2051
|
}, snapshotRefresh);
|
|
2052
2052
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2069,7 +2069,7 @@ function ingestError$f(luvio, params, error, snapshotRefresh) {
|
|
|
2069
2069
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2070
2070
|
return errorSnapshot;
|
|
2071
2071
|
}
|
|
2072
|
-
function createResourceRequest$
|
|
2072
|
+
function createResourceRequest$M(config) {
|
|
2073
2073
|
const headers = {};
|
|
2074
2074
|
return {
|
|
2075
2075
|
baseUri: '/services/data/v63.0',
|
|
@@ -2083,60 +2083,60 @@ function createResourceRequest$L(config) {
|
|
|
2083
2083
|
};
|
|
2084
2084
|
}
|
|
2085
2085
|
|
|
2086
|
-
const adapterName$
|
|
2086
|
+
const adapterName$M = 'getContextServiceDefinitionInfo';
|
|
2087
2087
|
const getContextServiceDefinitionInfo_ConfigPropertyMetadata = [
|
|
2088
2088
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2089
2089
|
];
|
|
2090
|
-
const getContextServiceDefinitionInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2091
|
-
const createResourceParams$
|
|
2090
|
+
const getContextServiceDefinitionInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$M, getContextServiceDefinitionInfo_ConfigPropertyMetadata);
|
|
2091
|
+
const createResourceParams$M = /*#__PURE__*/ createResourceParams$R(getContextServiceDefinitionInfo_ConfigPropertyMetadata);
|
|
2092
2092
|
function keyBuilder$X(luvio, config) {
|
|
2093
|
-
const resourceParams = createResourceParams$
|
|
2093
|
+
const resourceParams = createResourceParams$M(config);
|
|
2094
2094
|
return keyBuilder$Y(luvio, resourceParams);
|
|
2095
2095
|
}
|
|
2096
|
-
function typeCheckConfig$
|
|
2096
|
+
function typeCheckConfig$M(untrustedConfig) {
|
|
2097
2097
|
const config = {};
|
|
2098
|
-
typeCheckConfig$
|
|
2098
|
+
typeCheckConfig$R(untrustedConfig, config, getContextServiceDefinitionInfo_ConfigPropertyMetadata);
|
|
2099
2099
|
return config;
|
|
2100
2100
|
}
|
|
2101
|
-
function validateAdapterConfig$
|
|
2101
|
+
function validateAdapterConfig$M(untrustedConfig, configPropertyNames) {
|
|
2102
2102
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2103
2103
|
return null;
|
|
2104
2104
|
}
|
|
2105
2105
|
if (process.env.NODE_ENV !== 'production') {
|
|
2106
2106
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2107
2107
|
}
|
|
2108
|
-
const config = typeCheckConfig$
|
|
2108
|
+
const config = typeCheckConfig$M(untrustedConfig);
|
|
2109
2109
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2110
2110
|
return null;
|
|
2111
2111
|
}
|
|
2112
2112
|
return config;
|
|
2113
2113
|
}
|
|
2114
2114
|
function adapterFragment$f(luvio, config) {
|
|
2115
|
-
createResourceParams$
|
|
2116
|
-
return select
|
|
2115
|
+
createResourceParams$M(config);
|
|
2116
|
+
return select$$();
|
|
2117
2117
|
}
|
|
2118
2118
|
function onFetchResponseSuccess$f(luvio, config, resourceParams, response) {
|
|
2119
|
-
const snapshot = ingestSuccess$
|
|
2119
|
+
const snapshot = ingestSuccess$C(luvio, resourceParams, response, {
|
|
2120
2120
|
config,
|
|
2121
|
-
resolve: () => buildNetworkSnapshot$
|
|
2121
|
+
resolve: () => buildNetworkSnapshot$M(luvio, config, snapshotRefreshOptions)
|
|
2122
2122
|
});
|
|
2123
2123
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2124
2124
|
}
|
|
2125
2125
|
function onFetchResponseError$f(luvio, config, resourceParams, response) {
|
|
2126
2126
|
const snapshot = ingestError$f(luvio, resourceParams, response, {
|
|
2127
2127
|
config,
|
|
2128
|
-
resolve: () => buildNetworkSnapshot$
|
|
2128
|
+
resolve: () => buildNetworkSnapshot$M(luvio, config, snapshotRefreshOptions)
|
|
2129
2129
|
});
|
|
2130
2130
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2131
2131
|
}
|
|
2132
|
-
function buildNetworkSnapshot$
|
|
2133
|
-
const resourceParams = createResourceParams$
|
|
2134
|
-
const request = createResourceRequest$
|
|
2132
|
+
function buildNetworkSnapshot$M(luvio, config, options) {
|
|
2133
|
+
const resourceParams = createResourceParams$M(config);
|
|
2134
|
+
const request = createResourceRequest$M(resourceParams);
|
|
2135
2135
|
return luvio.dispatchResourceRequest(request, options)
|
|
2136
2136
|
.then((response) => {
|
|
2137
2137
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$f(luvio, config, resourceParams, response), () => {
|
|
2138
2138
|
const cache = new StoreKeyMap();
|
|
2139
|
-
getResponseCacheKeys$
|
|
2139
|
+
getResponseCacheKeys$M(cache, luvio, resourceParams, response.body);
|
|
2140
2140
|
return cache;
|
|
2141
2141
|
});
|
|
2142
2142
|
}, (response) => {
|
|
@@ -2144,7 +2144,7 @@ function buildNetworkSnapshot$L(luvio, config, options) {
|
|
|
2144
2144
|
});
|
|
2145
2145
|
}
|
|
2146
2146
|
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
2147
|
-
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2147
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$M, undefined, false);
|
|
2148
2148
|
}
|
|
2149
2149
|
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
2150
2150
|
const { luvio, config } = context;
|
|
@@ -2155,12 +2155,12 @@ function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
|
2155
2155
|
};
|
|
2156
2156
|
const cacheSnapshot = storeLookup(selector, {
|
|
2157
2157
|
config,
|
|
2158
|
-
resolve: () => buildNetworkSnapshot$
|
|
2158
|
+
resolve: () => buildNetworkSnapshot$M(luvio, config, snapshotRefreshOptions)
|
|
2159
2159
|
});
|
|
2160
2160
|
return cacheSnapshot;
|
|
2161
2161
|
}
|
|
2162
2162
|
const getContextServiceDefinitionInfoAdapterFactory = (luvio) => function IndustriesContext__getContextServiceDefinitionInfo(untrustedConfig, requestContext) {
|
|
2163
|
-
const config = validateAdapterConfig$
|
|
2163
|
+
const config = validateAdapterConfig$M(untrustedConfig, getContextServiceDefinitionInfo_ConfigPropertyNames);
|
|
2164
2164
|
// Invalid or incomplete config
|
|
2165
2165
|
if (config === null) {
|
|
2166
2166
|
return null;
|
|
@@ -2169,7 +2169,7 @@ const getContextServiceDefinitionInfoAdapterFactory = (luvio) => function Indust
|
|
|
2169
2169
|
buildCachedSnapshotCachePolicy$f, buildNetworkSnapshotCachePolicy$f);
|
|
2170
2170
|
};
|
|
2171
2171
|
|
|
2172
|
-
function validate$
|
|
2172
|
+
function validate$D(obj, path = 'ContextDefinitionUpgradeListInputRepresentation') {
|
|
2173
2173
|
const v_error = (() => {
|
|
2174
2174
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2175
2175
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2194,7 +2194,7 @@ function validate$B(obj, path = 'ContextDefinitionUpgradeListInputRepresentation
|
|
|
2194
2194
|
|
|
2195
2195
|
const TTL$j = 1000;
|
|
2196
2196
|
const VERSION$o = "0f55f143dba32bcf6d4a3ba8ced13b41";
|
|
2197
|
-
function validate$
|
|
2197
|
+
function validate$C(obj, path = 'ContextDefinitionUpgradeListRepresentation') {
|
|
2198
2198
|
const v_error = (() => {
|
|
2199
2199
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2200
2200
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2255,7 +2255,7 @@ function normalize$l(input, existing, path, luvio, store, timestamp) {
|
|
|
2255
2255
|
}
|
|
2256
2256
|
return input;
|
|
2257
2257
|
}
|
|
2258
|
-
const select$
|
|
2258
|
+
const select$_ = function ContextDefinitionUpgradeListRepresentationSelect() {
|
|
2259
2259
|
return {
|
|
2260
2260
|
kind: 'Fragment',
|
|
2261
2261
|
version: VERSION$o,
|
|
@@ -2265,7 +2265,7 @@ const select$Z = function ContextDefinitionUpgradeListRepresentationSelect() {
|
|
|
2265
2265
|
name: 'contextDefinitionList',
|
|
2266
2266
|
kind: 'Link',
|
|
2267
2267
|
plural: true,
|
|
2268
|
-
fragment: select$
|
|
2268
|
+
fragment: select$13()
|
|
2269
2269
|
},
|
|
2270
2270
|
{
|
|
2271
2271
|
name: 'contextDefinitionListId',
|
|
@@ -2312,7 +2312,7 @@ function equals$o(existing, incoming) {
|
|
|
2312
2312
|
}
|
|
2313
2313
|
const ingest$l = function ContextDefinitionUpgradeListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2314
2314
|
if (process.env.NODE_ENV !== 'production') {
|
|
2315
|
-
const validateError = validate$
|
|
2315
|
+
const validateError = validate$C(input);
|
|
2316
2316
|
if (validateError !== null) {
|
|
2317
2317
|
throw validateError;
|
|
2318
2318
|
}
|
|
@@ -2336,19 +2336,19 @@ function getTypeCacheKeys$l(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2336
2336
|
}
|
|
2337
2337
|
}
|
|
2338
2338
|
|
|
2339
|
-
function select$
|
|
2340
|
-
return select$
|
|
2339
|
+
function select$Z(luvio, params) {
|
|
2340
|
+
return select$_();
|
|
2341
2341
|
}
|
|
2342
|
-
function getResponseCacheKeys$
|
|
2342
|
+
function getResponseCacheKeys$L(storeKeyMap, luvio, resourceParams, response) {
|
|
2343
2343
|
getTypeCacheKeys$l(storeKeyMap, luvio, response);
|
|
2344
2344
|
}
|
|
2345
|
-
function ingestSuccess$
|
|
2345
|
+
function ingestSuccess$B(luvio, resourceParams, response) {
|
|
2346
2346
|
const { body } = response;
|
|
2347
2347
|
const key = keyBuilderFromType$i(luvio, body);
|
|
2348
2348
|
luvio.storeIngest(key, ingest$l, body);
|
|
2349
2349
|
const snapshot = luvio.storeLookup({
|
|
2350
2350
|
recordId: key,
|
|
2351
|
-
node: select$
|
|
2351
|
+
node: select$Z(),
|
|
2352
2352
|
variables: {},
|
|
2353
2353
|
});
|
|
2354
2354
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2359,7 +2359,7 @@ function ingestSuccess$A(luvio, resourceParams, response) {
|
|
|
2359
2359
|
deepFreeze(snapshot.data);
|
|
2360
2360
|
return snapshot;
|
|
2361
2361
|
}
|
|
2362
|
-
function createResourceRequest$
|
|
2362
|
+
function createResourceRequest$L(config) {
|
|
2363
2363
|
const headers = {};
|
|
2364
2364
|
return {
|
|
2365
2365
|
baseUri: '/services/data/v63.0',
|
|
@@ -2373,45 +2373,45 @@ function createResourceRequest$K(config) {
|
|
|
2373
2373
|
};
|
|
2374
2374
|
}
|
|
2375
2375
|
|
|
2376
|
-
const adapterName$
|
|
2376
|
+
const adapterName$L = 'upgradeContextServiceDefinition';
|
|
2377
2377
|
const upgradeContextServiceDefinition_ConfigPropertyMetadata = [
|
|
2378
2378
|
generateParamConfigMetadata('contextDefinitionUpgradesInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2379
2379
|
];
|
|
2380
|
-
const upgradeContextServiceDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2381
|
-
const createResourceParams$
|
|
2382
|
-
function typeCheckConfig$
|
|
2380
|
+
const upgradeContextServiceDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$L, upgradeContextServiceDefinition_ConfigPropertyMetadata);
|
|
2381
|
+
const createResourceParams$L = /*#__PURE__*/ createResourceParams$R(upgradeContextServiceDefinition_ConfigPropertyMetadata);
|
|
2382
|
+
function typeCheckConfig$L(untrustedConfig) {
|
|
2383
2383
|
const config = {};
|
|
2384
2384
|
const untrustedConfig_contextDefinitionUpgradesInput = untrustedConfig.contextDefinitionUpgradesInput;
|
|
2385
|
-
const referenceContextDefinitionUpgradeListInputRepresentationValidationError = validate$
|
|
2385
|
+
const referenceContextDefinitionUpgradeListInputRepresentationValidationError = validate$D(untrustedConfig_contextDefinitionUpgradesInput);
|
|
2386
2386
|
if (referenceContextDefinitionUpgradeListInputRepresentationValidationError === null) {
|
|
2387
2387
|
config.contextDefinitionUpgradesInput = untrustedConfig_contextDefinitionUpgradesInput;
|
|
2388
2388
|
}
|
|
2389
2389
|
return config;
|
|
2390
2390
|
}
|
|
2391
|
-
function validateAdapterConfig$
|
|
2391
|
+
function validateAdapterConfig$L(untrustedConfig, configPropertyNames) {
|
|
2392
2392
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2393
2393
|
return null;
|
|
2394
2394
|
}
|
|
2395
2395
|
if (process.env.NODE_ENV !== 'production') {
|
|
2396
2396
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2397
2397
|
}
|
|
2398
|
-
const config = typeCheckConfig$
|
|
2398
|
+
const config = typeCheckConfig$L(untrustedConfig);
|
|
2399
2399
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2400
2400
|
return null;
|
|
2401
2401
|
}
|
|
2402
2402
|
return config;
|
|
2403
2403
|
}
|
|
2404
|
-
function buildNetworkSnapshot$
|
|
2405
|
-
const resourceParams = createResourceParams$
|
|
2406
|
-
const request = createResourceRequest$
|
|
2404
|
+
function buildNetworkSnapshot$L(luvio, config, options) {
|
|
2405
|
+
const resourceParams = createResourceParams$L(config);
|
|
2406
|
+
const request = createResourceRequest$L(resourceParams);
|
|
2407
2407
|
return luvio.dispatchResourceRequest(request, options)
|
|
2408
2408
|
.then((response) => {
|
|
2409
2409
|
return luvio.handleSuccessResponse(() => {
|
|
2410
|
-
const snapshot = ingestSuccess$
|
|
2410
|
+
const snapshot = ingestSuccess$B(luvio, resourceParams, response);
|
|
2411
2411
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2412
2412
|
}, () => {
|
|
2413
2413
|
const cache = new StoreKeyMap();
|
|
2414
|
-
getResponseCacheKeys$
|
|
2414
|
+
getResponseCacheKeys$L(cache, luvio, resourceParams, response.body);
|
|
2415
2415
|
return cache;
|
|
2416
2416
|
});
|
|
2417
2417
|
}, (response) => {
|
|
@@ -2421,17 +2421,17 @@ function buildNetworkSnapshot$K(luvio, config, options) {
|
|
|
2421
2421
|
}
|
|
2422
2422
|
const upgradeContextServiceDefinitionAdapterFactory = (luvio) => {
|
|
2423
2423
|
return function upgradeContextServiceDefinition(untrustedConfig) {
|
|
2424
|
-
const config = validateAdapterConfig$
|
|
2424
|
+
const config = validateAdapterConfig$L(untrustedConfig, upgradeContextServiceDefinition_ConfigPropertyNames);
|
|
2425
2425
|
// Invalid or incomplete config
|
|
2426
2426
|
if (config === null) {
|
|
2427
2427
|
throw new Error('Invalid config for "upgradeContextServiceDefinition"');
|
|
2428
2428
|
}
|
|
2429
|
-
return buildNetworkSnapshot$
|
|
2429
|
+
return buildNetworkSnapshot$L(luvio, config);
|
|
2430
2430
|
};
|
|
2431
2431
|
};
|
|
2432
2432
|
|
|
2433
2433
|
const VERSION$n = "40b52866e6f56ae5b7cfb279bcfae6ce";
|
|
2434
|
-
function validate$
|
|
2434
|
+
function validate$B(obj, path = 'ContextAttrContextHydrationDetailRepresentation') {
|
|
2435
2435
|
const v_error = (() => {
|
|
2436
2436
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2437
2437
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2467,7 +2467,7 @@ function validate$z(obj, path = 'ContextAttrContextHydrationDetailRepresentation
|
|
|
2467
2467
|
})();
|
|
2468
2468
|
return v_error === undefined ? null : v_error;
|
|
2469
2469
|
}
|
|
2470
|
-
const select$
|
|
2470
|
+
const select$Y = function ContextAttrContextHydrationDetailRepresentationSelect() {
|
|
2471
2471
|
return {
|
|
2472
2472
|
kind: 'Fragment',
|
|
2473
2473
|
version: VERSION$n,
|
|
@@ -2552,7 +2552,7 @@ function equals$n(existing, incoming) {
|
|
|
2552
2552
|
return true;
|
|
2553
2553
|
}
|
|
2554
2554
|
|
|
2555
|
-
function validate$
|
|
2555
|
+
function validate$A(obj, path = 'MappedAttributeDataTypeInfoRepresentation') {
|
|
2556
2556
|
const v_error = (() => {
|
|
2557
2557
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2558
2558
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2584,7 +2584,7 @@ function validate$y(obj, path = 'MappedAttributeDataTypeInfoRepresentation') {
|
|
|
2584
2584
|
|
|
2585
2585
|
const TTL$i = 1000;
|
|
2586
2586
|
const VERSION$m = "c80a3e493f49341d9f4ab684e28db7ba";
|
|
2587
|
-
function validate$
|
|
2587
|
+
function validate$z(obj, path = 'ContextAttrHydrationDetailRepresentation') {
|
|
2588
2588
|
const v_error = (() => {
|
|
2589
2589
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2590
2590
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2625,7 +2625,7 @@ function validate$x(obj, path = 'ContextAttrHydrationDetailRepresentation') {
|
|
|
2625
2625
|
if (obj.mappedAttributeDataTypeInfo !== undefined) {
|
|
2626
2626
|
const obj_mappedAttributeDataTypeInfo = obj.mappedAttributeDataTypeInfo;
|
|
2627
2627
|
const path_mappedAttributeDataTypeInfo = path + '.mappedAttributeDataTypeInfo';
|
|
2628
|
-
const referencepath_mappedAttributeDataTypeInfoValidationError = validate$
|
|
2628
|
+
const referencepath_mappedAttributeDataTypeInfoValidationError = validate$A(obj_mappedAttributeDataTypeInfo, path_mappedAttributeDataTypeInfo);
|
|
2629
2629
|
if (referencepath_mappedAttributeDataTypeInfoValidationError !== null) {
|
|
2630
2630
|
let message = 'Object doesn\'t match MappedAttributeDataTypeInfoRepresentation (at "' + path_mappedAttributeDataTypeInfo + '")\n';
|
|
2631
2631
|
message += referencepath_mappedAttributeDataTypeInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2669,7 +2669,7 @@ function keyBuilderFromType$h(luvio, object) {
|
|
|
2669
2669
|
function normalize$k(input, existing, path, luvio, store, timestamp) {
|
|
2670
2670
|
return input;
|
|
2671
2671
|
}
|
|
2672
|
-
const select$
|
|
2672
|
+
const select$X = function ContextAttrHydrationDetailRepresentationSelect() {
|
|
2673
2673
|
return {
|
|
2674
2674
|
kind: 'Fragment',
|
|
2675
2675
|
version: VERSION$m,
|
|
@@ -2685,7 +2685,7 @@ function equals$m(existing, incoming) {
|
|
|
2685
2685
|
}
|
|
2686
2686
|
const ingest$k = function ContextAttrHydrationDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2687
2687
|
if (process.env.NODE_ENV !== 'production') {
|
|
2688
|
-
const validateError = validate$
|
|
2688
|
+
const validateError = validate$z(input);
|
|
2689
2689
|
if (validateError !== null) {
|
|
2690
2690
|
throw validateError;
|
|
2691
2691
|
}
|
|
@@ -2707,7 +2707,7 @@ function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2707
2707
|
|
|
2708
2708
|
const TTL$h = 1000;
|
|
2709
2709
|
const VERSION$l = "539359f9069e5a51a579221aeaef8234";
|
|
2710
|
-
function validate$
|
|
2710
|
+
function validate$y(obj, path = 'ContextAttributeMappingRepresentation') {
|
|
2711
2711
|
const v_error = (() => {
|
|
2712
2712
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2713
2713
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2728,7 +2728,7 @@ function validate$w(obj, path = 'ContextAttributeMappingRepresentation') {
|
|
|
2728
2728
|
for (let i = 0; i < obj_contextAttrContextHydrationDetailList.length; i++) {
|
|
2729
2729
|
const obj_contextAttrContextHydrationDetailList_item = obj_contextAttrContextHydrationDetailList[i];
|
|
2730
2730
|
const path_contextAttrContextHydrationDetailList_item = path_contextAttrContextHydrationDetailList + '[' + i + ']';
|
|
2731
|
-
const referencepath_contextAttrContextHydrationDetailList_itemValidationError = validate$
|
|
2731
|
+
const referencepath_contextAttrContextHydrationDetailList_itemValidationError = validate$B(obj_contextAttrContextHydrationDetailList_item, path_contextAttrContextHydrationDetailList_item);
|
|
2732
2732
|
if (referencepath_contextAttrContextHydrationDetailList_itemValidationError !== null) {
|
|
2733
2733
|
let message = 'Object doesn\'t match ContextAttrContextHydrationDetailRepresentation (at "' + path_contextAttrContextHydrationDetailList_item + '")\n';
|
|
2734
2734
|
message += referencepath_contextAttrContextHydrationDetailList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2827,8 +2827,8 @@ function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
|
2827
2827
|
}
|
|
2828
2828
|
return input;
|
|
2829
2829
|
}
|
|
2830
|
-
const select$
|
|
2831
|
-
const { selections: ContextAttrContextHydrationDetailRepresentation__selections, opaque: ContextAttrContextHydrationDetailRepresentation__opaque, } = select$
|
|
2830
|
+
const select$W = function ContextAttributeMappingRepresentationSelect() {
|
|
2831
|
+
const { selections: ContextAttrContextHydrationDetailRepresentation__selections, opaque: ContextAttrContextHydrationDetailRepresentation__opaque, } = select$Y();
|
|
2832
2832
|
return {
|
|
2833
2833
|
kind: 'Fragment',
|
|
2834
2834
|
version: VERSION$l,
|
|
@@ -2850,7 +2850,7 @@ const select$V = function ContextAttributeMappingRepresentationSelect() {
|
|
|
2850
2850
|
name: 'contextAttrHydrationDetailList',
|
|
2851
2851
|
kind: 'Link',
|
|
2852
2852
|
plural: true,
|
|
2853
|
-
fragment: select$
|
|
2853
|
+
fragment: select$X()
|
|
2854
2854
|
},
|
|
2855
2855
|
{
|
|
2856
2856
|
name: 'contextAttributeId',
|
|
@@ -3018,7 +3018,7 @@ function equals$l(existing, incoming) {
|
|
|
3018
3018
|
}
|
|
3019
3019
|
const ingest$j = function ContextAttributeMappingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3020
3020
|
if (process.env.NODE_ENV !== 'production') {
|
|
3021
|
-
const validateError = validate$
|
|
3021
|
+
const validateError = validate$y(input);
|
|
3022
3022
|
if (validateError !== null) {
|
|
3023
3023
|
throw validateError;
|
|
3024
3024
|
}
|
|
@@ -3044,7 +3044,7 @@ function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3044
3044
|
|
|
3045
3045
|
const TTL$g = 1000;
|
|
3046
3046
|
const VERSION$k = "0f7420d3c8dbe149876b673d81e43341";
|
|
3047
|
-
function validate$
|
|
3047
|
+
function validate$x(obj, path = 'ContextNodeMappingRepresentation') {
|
|
3048
3048
|
const v_error = (() => {
|
|
3049
3049
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3050
3050
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3140,7 +3140,7 @@ function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
|
3140
3140
|
}
|
|
3141
3141
|
return input;
|
|
3142
3142
|
}
|
|
3143
|
-
const select$
|
|
3143
|
+
const select$V = function ContextNodeMappingRepresentationSelect() {
|
|
3144
3144
|
return {
|
|
3145
3145
|
kind: 'Fragment',
|
|
3146
3146
|
version: VERSION$k,
|
|
@@ -3150,7 +3150,7 @@ const select$U = function ContextNodeMappingRepresentationSelect() {
|
|
|
3150
3150
|
name: 'attributeMappings',
|
|
3151
3151
|
kind: 'Link',
|
|
3152
3152
|
plural: true,
|
|
3153
|
-
fragment: select$
|
|
3153
|
+
fragment: select$W()
|
|
3154
3154
|
},
|
|
3155
3155
|
{
|
|
3156
3156
|
name: 'baseReference',
|
|
@@ -3287,7 +3287,7 @@ function equals$k(existing, incoming) {
|
|
|
3287
3287
|
}
|
|
3288
3288
|
const ingest$i = function ContextNodeMappingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3289
3289
|
if (process.env.NODE_ENV !== 'production') {
|
|
3290
|
-
const validateError = validate$
|
|
3290
|
+
const validateError = validate$x(input);
|
|
3291
3291
|
if (validateError !== null) {
|
|
3292
3292
|
throw validateError;
|
|
3293
3293
|
}
|
|
@@ -3313,7 +3313,7 @@ function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3313
3313
|
|
|
3314
3314
|
const TTL$f = 1000;
|
|
3315
3315
|
const VERSION$j = "6625536779234428522beec438ddd863";
|
|
3316
|
-
function validate$
|
|
3316
|
+
function validate$w(obj, path = 'ContextMappingRepresentation') {
|
|
3317
3317
|
const v_error = (() => {
|
|
3318
3318
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3319
3319
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3437,7 +3437,7 @@ function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
|
3437
3437
|
}
|
|
3438
3438
|
return input;
|
|
3439
3439
|
}
|
|
3440
|
-
const select$
|
|
3440
|
+
const select$U = function ContextMappingRepresentationSelect() {
|
|
3441
3441
|
return {
|
|
3442
3442
|
kind: 'Fragment',
|
|
3443
3443
|
version: VERSION$j,
|
|
@@ -3461,7 +3461,7 @@ const select$T = function ContextMappingRepresentationSelect() {
|
|
|
3461
3461
|
name: 'contextNodeMappings',
|
|
3462
3462
|
kind: 'Link',
|
|
3463
3463
|
plural: true,
|
|
3464
|
-
fragment: select$
|
|
3464
|
+
fragment: select$V()
|
|
3465
3465
|
},
|
|
3466
3466
|
{
|
|
3467
3467
|
name: 'description',
|
|
@@ -3644,7 +3644,7 @@ function equals$j(existing, incoming) {
|
|
|
3644
3644
|
}
|
|
3645
3645
|
const ingest$h = function ContextMappingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3646
3646
|
if (process.env.NODE_ENV !== 'production') {
|
|
3647
|
-
const validateError = validate$
|
|
3647
|
+
const validateError = validate$w(input);
|
|
3648
3648
|
if (validateError !== null) {
|
|
3649
3649
|
throw validateError;
|
|
3650
3650
|
}
|
|
@@ -3670,7 +3670,7 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3670
3670
|
|
|
3671
3671
|
const TTL$e = 1000;
|
|
3672
3672
|
const VERSION$i = "a300c24f902a30815a81527b587d20c1";
|
|
3673
|
-
function validate$
|
|
3673
|
+
function validate$v(obj, path = 'ContextAttributeTagRepresentation') {
|
|
3674
3674
|
const v_error = (() => {
|
|
3675
3675
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3676
3676
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3731,7 +3731,7 @@ function keyBuilderFromType$d(luvio, object) {
|
|
|
3731
3731
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
3732
3732
|
return input;
|
|
3733
3733
|
}
|
|
3734
|
-
const select$
|
|
3734
|
+
const select$T = function ContextAttributeTagRepresentationSelect() {
|
|
3735
3735
|
return {
|
|
3736
3736
|
kind: 'Fragment',
|
|
3737
3737
|
version: VERSION$i,
|
|
@@ -3844,7 +3844,7 @@ function equals$i(existing, incoming) {
|
|
|
3844
3844
|
}
|
|
3845
3845
|
const ingest$g = function ContextAttributeTagRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3846
3846
|
if (process.env.NODE_ENV !== 'production') {
|
|
3847
|
-
const validateError = validate$
|
|
3847
|
+
const validateError = validate$v(input);
|
|
3848
3848
|
if (validateError !== null) {
|
|
3849
3849
|
throw validateError;
|
|
3850
3850
|
}
|
|
@@ -3866,7 +3866,7 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3866
3866
|
|
|
3867
3867
|
const TTL$d = 1000;
|
|
3868
3868
|
const VERSION$h = "282c9c4929283780bca9810492255898";
|
|
3869
|
-
function validate$
|
|
3869
|
+
function validate$u(obj, path = 'ContextAttributeRepresentation') {
|
|
3870
3870
|
const v_error = (() => {
|
|
3871
3871
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3872
3872
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4011,7 +4011,7 @@ function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
|
4011
4011
|
}
|
|
4012
4012
|
return input;
|
|
4013
4013
|
}
|
|
4014
|
-
const select$
|
|
4014
|
+
const select$S = function ContextAttributeRepresentationSelect() {
|
|
4015
4015
|
return {
|
|
4016
4016
|
kind: 'Fragment',
|
|
4017
4017
|
version: VERSION$h,
|
|
@@ -4031,7 +4031,7 @@ const select$R = function ContextAttributeRepresentationSelect() {
|
|
|
4031
4031
|
name: 'attributeTags',
|
|
4032
4032
|
kind: 'Link',
|
|
4033
4033
|
plural: true,
|
|
4034
|
-
fragment: select$
|
|
4034
|
+
fragment: select$T()
|
|
4035
4035
|
},
|
|
4036
4036
|
{
|
|
4037
4037
|
name: 'baseReference',
|
|
@@ -4284,7 +4284,7 @@ function equals$h(existing, incoming) {
|
|
|
4284
4284
|
}
|
|
4285
4285
|
const ingest$f = function ContextAttributeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4286
4286
|
if (process.env.NODE_ENV !== 'production') {
|
|
4287
|
-
const validateError = validate$
|
|
4287
|
+
const validateError = validate$u(input);
|
|
4288
4288
|
if (validateError !== null) {
|
|
4289
4289
|
throw validateError;
|
|
4290
4290
|
}
|
|
@@ -4310,7 +4310,7 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4310
4310
|
|
|
4311
4311
|
const TTL$c = 1000;
|
|
4312
4312
|
const VERSION$g = "a2112475391d5036b4b433a57296e868";
|
|
4313
|
-
function validate$
|
|
4313
|
+
function validate$t(obj, path = 'ContextNodeRepresentation') {
|
|
4314
4314
|
const v_error = (() => {
|
|
4315
4315
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4316
4316
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4324,7 +4324,7 @@ function validate$r(obj, path = 'ContextNodeRepresentation') {
|
|
|
4324
4324
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
4325
4325
|
const obj_attributes_item = obj_attributes[i];
|
|
4326
4326
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
4327
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
4327
|
+
const referencepath_attributes_itemValidationError = validate$u(obj_attributes_item, path_attributes_item);
|
|
4328
4328
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
4329
4329
|
let message = 'Object doesn\'t match ContextAttributeRepresentation (at "' + path_attributes_item + '")\n';
|
|
4330
4330
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4348,7 +4348,7 @@ function validate$r(obj, path = 'ContextNodeRepresentation') {
|
|
|
4348
4348
|
for (let i = 0; i < obj_childNodes.length; i++) {
|
|
4349
4349
|
const obj_childNodes_item = obj_childNodes[i];
|
|
4350
4350
|
const path_childNodes_item = path_childNodes + '[' + i + ']';
|
|
4351
|
-
const referencepath_childNodes_itemValidationError = validate$
|
|
4351
|
+
const referencepath_childNodes_itemValidationError = validate$t(obj_childNodes_item, path_childNodes_item);
|
|
4352
4352
|
if (referencepath_childNodes_itemValidationError !== null) {
|
|
4353
4353
|
let message = 'Object doesn\'t match ContextNodeRepresentation (at "' + path_childNodes_item + '")\n';
|
|
4354
4354
|
message += referencepath_childNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4405,7 +4405,7 @@ function validate$r(obj, path = 'ContextNodeRepresentation') {
|
|
|
4405
4405
|
for (let i = 0; i < obj_tags.length; i++) {
|
|
4406
4406
|
const obj_tags_item = obj_tags[i];
|
|
4407
4407
|
const path_tags_item = path_tags + '[' + i + ']';
|
|
4408
|
-
const referencepath_tags_itemValidationError = validate$
|
|
4408
|
+
const referencepath_tags_itemValidationError = validate$v(obj_tags_item, path_tags_item);
|
|
4409
4409
|
if (referencepath_tags_itemValidationError !== null) {
|
|
4410
4410
|
let message = 'Object doesn\'t match ContextAttributeTagRepresentation (at "' + path_tags_item + '")\n';
|
|
4411
4411
|
message += referencepath_tags_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4429,7 +4429,7 @@ function keyBuilderFromType$b(luvio, object) {
|
|
|
4429
4429
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4430
4430
|
return input;
|
|
4431
4431
|
}
|
|
4432
|
-
const select$
|
|
4432
|
+
const select$R = function ContextNodeRepresentationSelect() {
|
|
4433
4433
|
return {
|
|
4434
4434
|
kind: 'Fragment',
|
|
4435
4435
|
version: VERSION$g,
|
|
@@ -4445,7 +4445,7 @@ function equals$g(existing, incoming) {
|
|
|
4445
4445
|
}
|
|
4446
4446
|
const ingest$e = function ContextNodeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4447
4447
|
if (process.env.NODE_ENV !== 'production') {
|
|
4448
|
-
const validateError = validate$
|
|
4448
|
+
const validateError = validate$t(input);
|
|
4449
4449
|
if (validateError !== null) {
|
|
4450
4450
|
throw validateError;
|
|
4451
4451
|
}
|
|
@@ -4467,7 +4467,7 @@ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4467
4467
|
|
|
4468
4468
|
const TTL$b = 1000;
|
|
4469
4469
|
const VERSION$f = "6425fc4d86a786410d0253c23dffe29d";
|
|
4470
|
-
function validate$
|
|
4470
|
+
function validate$s(obj, path = 'ContextDefinitionVersionRepresentation') {
|
|
4471
4471
|
const v_error = (() => {
|
|
4472
4472
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4473
4473
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4493,7 +4493,7 @@ function validate$q(obj, path = 'ContextDefinitionVersionRepresentation') {
|
|
|
4493
4493
|
for (let i = 0; i < obj_contextMappings.length; i++) {
|
|
4494
4494
|
const obj_contextMappings_item = obj_contextMappings[i];
|
|
4495
4495
|
const path_contextMappings_item = path_contextMappings + '[' + i + ']';
|
|
4496
|
-
const referencepath_contextMappings_itemValidationError = validate$
|
|
4496
|
+
const referencepath_contextMappings_itemValidationError = validate$w(obj_contextMappings_item, path_contextMappings_item);
|
|
4497
4497
|
if (referencepath_contextMappings_itemValidationError !== null) {
|
|
4498
4498
|
let message = 'Object doesn\'t match ContextMappingRepresentation (at "' + path_contextMappings_item + '")\n';
|
|
4499
4499
|
message += referencepath_contextMappings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4510,7 +4510,7 @@ function validate$q(obj, path = 'ContextDefinitionVersionRepresentation') {
|
|
|
4510
4510
|
for (let i = 0; i < obj_contextNodes.length; i++) {
|
|
4511
4511
|
const obj_contextNodes_item = obj_contextNodes[i];
|
|
4512
4512
|
const path_contextNodes_item = path_contextNodes + '[' + i + ']';
|
|
4513
|
-
const referencepath_contextNodes_itemValidationError = validate$
|
|
4513
|
+
const referencepath_contextNodes_itemValidationError = validate$t(obj_contextNodes_item, path_contextNodes_item);
|
|
4514
4514
|
if (referencepath_contextNodes_itemValidationError !== null) {
|
|
4515
4515
|
let message = 'Object doesn\'t match ContextNodeRepresentation (at "' + path_contextNodes_item + '")\n';
|
|
4516
4516
|
message += referencepath_contextNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4576,7 +4576,7 @@ function keyBuilderFromType$a(luvio, object) {
|
|
|
4576
4576
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
4577
4577
|
return input;
|
|
4578
4578
|
}
|
|
4579
|
-
const select$
|
|
4579
|
+
const select$Q = function ContextDefinitionVersionRepresentationSelect() {
|
|
4580
4580
|
return {
|
|
4581
4581
|
kind: 'Fragment',
|
|
4582
4582
|
version: VERSION$f,
|
|
@@ -4592,7 +4592,7 @@ function equals$f(existing, incoming) {
|
|
|
4592
4592
|
}
|
|
4593
4593
|
const ingest$d = function ContextDefinitionVersionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4594
4594
|
if (process.env.NODE_ENV !== 'production') {
|
|
4595
|
-
const validateError = validate$
|
|
4595
|
+
const validateError = validate$s(input);
|
|
4596
4596
|
if (validateError !== null) {
|
|
4597
4597
|
throw validateError;
|
|
4598
4598
|
}
|
|
@@ -4614,7 +4614,7 @@ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4614
4614
|
|
|
4615
4615
|
const TTL$a = 1000;
|
|
4616
4616
|
const VERSION$e = "99ff491146690a2811567bddaad66d11";
|
|
4617
|
-
function validate$
|
|
4617
|
+
function validate$r(obj, path = 'ContextDefinitionRepresentation') {
|
|
4618
4618
|
const v_error = (() => {
|
|
4619
4619
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4620
4620
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4745,7 +4745,7 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
4745
4745
|
}
|
|
4746
4746
|
return input;
|
|
4747
4747
|
}
|
|
4748
|
-
const select$
|
|
4748
|
+
const select$P = function ContextDefinitionRepresentationSelect() {
|
|
4749
4749
|
return {
|
|
4750
4750
|
kind: 'Fragment',
|
|
4751
4751
|
version: VERSION$e,
|
|
@@ -4769,7 +4769,7 @@ const select$O = function ContextDefinitionRepresentationSelect() {
|
|
|
4769
4769
|
name: 'contextDefinitionVersionList',
|
|
4770
4770
|
kind: 'Link',
|
|
4771
4771
|
plural: true,
|
|
4772
|
-
fragment: select$
|
|
4772
|
+
fragment: select$Q()
|
|
4773
4773
|
},
|
|
4774
4774
|
{
|
|
4775
4775
|
name: 'contextTtl',
|
|
@@ -4982,7 +4982,7 @@ function equals$e(existing, incoming) {
|
|
|
4982
4982
|
}
|
|
4983
4983
|
const ingest$c = function ContextDefinitionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4984
4984
|
if (process.env.NODE_ENV !== 'production') {
|
|
4985
|
-
const validateError = validate$
|
|
4985
|
+
const validateError = validate$r(input);
|
|
4986
4986
|
if (validateError !== null) {
|
|
4987
4987
|
throw validateError;
|
|
4988
4988
|
}
|
|
@@ -5011,7 +5011,7 @@ function keyBuilder$M(luvio, params) {
|
|
|
5011
5011
|
id: params.urlParams.contextDefinitionId
|
|
5012
5012
|
});
|
|
5013
5013
|
}
|
|
5014
|
-
function getResponseCacheKeys$
|
|
5014
|
+
function getResponseCacheKeys$K(cacheKeyMap, luvio, resourceParams) {
|
|
5015
5015
|
const key = keyBuilder$M(luvio, resourceParams);
|
|
5016
5016
|
cacheKeyMap.set(key, {
|
|
5017
5017
|
namespace: keyPrefix,
|
|
@@ -5023,7 +5023,7 @@ function evictSuccess$9(luvio, resourceParams) {
|
|
|
5023
5023
|
const key = keyBuilder$M(luvio, resourceParams);
|
|
5024
5024
|
luvio.storeEvict(key);
|
|
5025
5025
|
}
|
|
5026
|
-
function createResourceRequest$
|
|
5026
|
+
function createResourceRequest$K(config) {
|
|
5027
5027
|
const headers = {};
|
|
5028
5028
|
return {
|
|
5029
5029
|
baseUri: '/services/data/v63.0',
|
|
@@ -5037,33 +5037,33 @@ function createResourceRequest$J(config) {
|
|
|
5037
5037
|
};
|
|
5038
5038
|
}
|
|
5039
5039
|
|
|
5040
|
-
const adapterName$
|
|
5040
|
+
const adapterName$K = 'deleteContextServiceDefinition';
|
|
5041
5041
|
const deleteContextServiceDefinition_ConfigPropertyMetadata = [
|
|
5042
5042
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5043
5043
|
];
|
|
5044
|
-
const deleteContextServiceDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5045
|
-
const createResourceParams$
|
|
5046
|
-
function typeCheckConfig$
|
|
5044
|
+
const deleteContextServiceDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$K, deleteContextServiceDefinition_ConfigPropertyMetadata);
|
|
5045
|
+
const createResourceParams$K = /*#__PURE__*/ createResourceParams$R(deleteContextServiceDefinition_ConfigPropertyMetadata);
|
|
5046
|
+
function typeCheckConfig$K(untrustedConfig) {
|
|
5047
5047
|
const config = {};
|
|
5048
|
-
typeCheckConfig$
|
|
5048
|
+
typeCheckConfig$R(untrustedConfig, config, deleteContextServiceDefinition_ConfigPropertyMetadata);
|
|
5049
5049
|
return config;
|
|
5050
5050
|
}
|
|
5051
|
-
function validateAdapterConfig$
|
|
5051
|
+
function validateAdapterConfig$K(untrustedConfig, configPropertyNames) {
|
|
5052
5052
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5053
5053
|
return null;
|
|
5054
5054
|
}
|
|
5055
5055
|
if (process.env.NODE_ENV !== 'production') {
|
|
5056
5056
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5057
5057
|
}
|
|
5058
|
-
const config = typeCheckConfig$
|
|
5058
|
+
const config = typeCheckConfig$K(untrustedConfig);
|
|
5059
5059
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5060
5060
|
return null;
|
|
5061
5061
|
}
|
|
5062
5062
|
return config;
|
|
5063
5063
|
}
|
|
5064
|
-
function buildNetworkSnapshot$
|
|
5065
|
-
const resourceParams = createResourceParams$
|
|
5066
|
-
const request = createResourceRequest$
|
|
5064
|
+
function buildNetworkSnapshot$K(luvio, config, options) {
|
|
5065
|
+
const resourceParams = createResourceParams$K(config);
|
|
5066
|
+
const request = createResourceRequest$K(resourceParams);
|
|
5067
5067
|
return luvio.dispatchResourceRequest(request, options)
|
|
5068
5068
|
.then(() => {
|
|
5069
5069
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -5071,7 +5071,7 @@ function buildNetworkSnapshot$J(luvio, config, options) {
|
|
|
5071
5071
|
return luvio.storeBroadcast();
|
|
5072
5072
|
}, () => {
|
|
5073
5073
|
const cache = new StoreKeyMap();
|
|
5074
|
-
getResponseCacheKeys$
|
|
5074
|
+
getResponseCacheKeys$K(cache, luvio, resourceParams);
|
|
5075
5075
|
return cache;
|
|
5076
5076
|
});
|
|
5077
5077
|
}, (response) => {
|
|
@@ -5081,33 +5081,33 @@ function buildNetworkSnapshot$J(luvio, config, options) {
|
|
|
5081
5081
|
}
|
|
5082
5082
|
const deleteContextServiceDefinitionAdapterFactory = (luvio) => {
|
|
5083
5083
|
return function IndustriesContextdeleteContextServiceDefinition(untrustedConfig) {
|
|
5084
|
-
const config = validateAdapterConfig$
|
|
5084
|
+
const config = validateAdapterConfig$K(untrustedConfig, deleteContextServiceDefinition_ConfigPropertyNames);
|
|
5085
5085
|
// Invalid or incomplete config
|
|
5086
5086
|
if (config === null) {
|
|
5087
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
5087
|
+
throw new Error(`Invalid config for "${adapterName$K}"`);
|
|
5088
5088
|
}
|
|
5089
|
-
return buildNetworkSnapshot$
|
|
5089
|
+
return buildNetworkSnapshot$K(luvio, config);
|
|
5090
5090
|
};
|
|
5091
5091
|
};
|
|
5092
5092
|
|
|
5093
|
-
function select$
|
|
5094
|
-
return select$
|
|
5093
|
+
function select$O(luvio, params) {
|
|
5094
|
+
return select$P();
|
|
5095
5095
|
}
|
|
5096
5096
|
function keyBuilder$L(luvio, params) {
|
|
5097
5097
|
return keyBuilder$N(luvio, {
|
|
5098
5098
|
id: params.urlParams.contextDefinitionId
|
|
5099
5099
|
});
|
|
5100
5100
|
}
|
|
5101
|
-
function getResponseCacheKeys$
|
|
5101
|
+
function getResponseCacheKeys$J(storeKeyMap, luvio, resourceParams, response) {
|
|
5102
5102
|
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
5103
5103
|
}
|
|
5104
|
-
function ingestSuccess$
|
|
5104
|
+
function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
|
|
5105
5105
|
const { body } = response;
|
|
5106
5106
|
const key = keyBuilder$L(luvio, resourceParams);
|
|
5107
5107
|
luvio.storeIngest(key, ingest$c, body);
|
|
5108
5108
|
const snapshot = luvio.storeLookup({
|
|
5109
5109
|
recordId: key,
|
|
5110
|
-
node: select$
|
|
5110
|
+
node: select$O(),
|
|
5111
5111
|
variables: {},
|
|
5112
5112
|
}, snapshotRefresh);
|
|
5113
5113
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5130,7 +5130,7 @@ function ingestError$e(luvio, params, error, snapshotRefresh) {
|
|
|
5130
5130
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5131
5131
|
return errorSnapshot;
|
|
5132
5132
|
}
|
|
5133
|
-
function createResourceRequest$
|
|
5133
|
+
function createResourceRequest$J(config) {
|
|
5134
5134
|
const headers = {};
|
|
5135
5135
|
return {
|
|
5136
5136
|
baseUri: '/services/data/v63.0',
|
|
@@ -5144,62 +5144,62 @@ function createResourceRequest$I(config) {
|
|
|
5144
5144
|
};
|
|
5145
5145
|
}
|
|
5146
5146
|
|
|
5147
|
-
const adapterName$
|
|
5147
|
+
const adapterName$J = 'getContextServiceDefinition';
|
|
5148
5148
|
const getContextServiceDefinition_ConfigPropertyMetadata = [
|
|
5149
5149
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5150
5150
|
generateParamConfigMetadata('isMappingRequiredExclusively', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
5151
5151
|
generateParamConfigMetadata('mappingIdsOrDevelopersNames', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5152
5152
|
];
|
|
5153
|
-
const getContextServiceDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5154
|
-
const createResourceParams$
|
|
5153
|
+
const getContextServiceDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$J, getContextServiceDefinition_ConfigPropertyMetadata);
|
|
5154
|
+
const createResourceParams$J = /*#__PURE__*/ createResourceParams$R(getContextServiceDefinition_ConfigPropertyMetadata);
|
|
5155
5155
|
function keyBuilder$K(luvio, config) {
|
|
5156
|
-
const resourceParams = createResourceParams$
|
|
5156
|
+
const resourceParams = createResourceParams$J(config);
|
|
5157
5157
|
return keyBuilder$L(luvio, resourceParams);
|
|
5158
5158
|
}
|
|
5159
|
-
function typeCheckConfig$
|
|
5159
|
+
function typeCheckConfig$J(untrustedConfig) {
|
|
5160
5160
|
const config = {};
|
|
5161
|
-
typeCheckConfig$
|
|
5161
|
+
typeCheckConfig$R(untrustedConfig, config, getContextServiceDefinition_ConfigPropertyMetadata);
|
|
5162
5162
|
return config;
|
|
5163
5163
|
}
|
|
5164
|
-
function validateAdapterConfig$
|
|
5164
|
+
function validateAdapterConfig$J(untrustedConfig, configPropertyNames) {
|
|
5165
5165
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5166
5166
|
return null;
|
|
5167
5167
|
}
|
|
5168
5168
|
if (process.env.NODE_ENV !== 'production') {
|
|
5169
5169
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5170
5170
|
}
|
|
5171
|
-
const config = typeCheckConfig$
|
|
5171
|
+
const config = typeCheckConfig$J(untrustedConfig);
|
|
5172
5172
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5173
5173
|
return null;
|
|
5174
5174
|
}
|
|
5175
5175
|
return config;
|
|
5176
5176
|
}
|
|
5177
5177
|
function adapterFragment$e(luvio, config) {
|
|
5178
|
-
createResourceParams$
|
|
5179
|
-
return select$
|
|
5178
|
+
createResourceParams$J(config);
|
|
5179
|
+
return select$O();
|
|
5180
5180
|
}
|
|
5181
5181
|
function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
|
|
5182
|
-
const snapshot = ingestSuccess$
|
|
5182
|
+
const snapshot = ingestSuccess$A(luvio, resourceParams, response, {
|
|
5183
5183
|
config,
|
|
5184
|
-
resolve: () => buildNetworkSnapshot$
|
|
5184
|
+
resolve: () => buildNetworkSnapshot$J(luvio, config, snapshotRefreshOptions)
|
|
5185
5185
|
});
|
|
5186
5186
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5187
5187
|
}
|
|
5188
5188
|
function onFetchResponseError$e(luvio, config, resourceParams, response) {
|
|
5189
5189
|
const snapshot = ingestError$e(luvio, resourceParams, response, {
|
|
5190
5190
|
config,
|
|
5191
|
-
resolve: () => buildNetworkSnapshot$
|
|
5191
|
+
resolve: () => buildNetworkSnapshot$J(luvio, config, snapshotRefreshOptions)
|
|
5192
5192
|
});
|
|
5193
5193
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5194
5194
|
}
|
|
5195
|
-
function buildNetworkSnapshot$
|
|
5196
|
-
const resourceParams = createResourceParams$
|
|
5197
|
-
const request = createResourceRequest$
|
|
5195
|
+
function buildNetworkSnapshot$J(luvio, config, options) {
|
|
5196
|
+
const resourceParams = createResourceParams$J(config);
|
|
5197
|
+
const request = createResourceRequest$J(resourceParams);
|
|
5198
5198
|
return luvio.dispatchResourceRequest(request, options)
|
|
5199
5199
|
.then((response) => {
|
|
5200
5200
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$e(luvio, config, resourceParams, response), () => {
|
|
5201
5201
|
const cache = new StoreKeyMap();
|
|
5202
|
-
getResponseCacheKeys$
|
|
5202
|
+
getResponseCacheKeys$J(cache, luvio, resourceParams, response.body);
|
|
5203
5203
|
return cache;
|
|
5204
5204
|
});
|
|
5205
5205
|
}, (response) => {
|
|
@@ -5207,7 +5207,7 @@ function buildNetworkSnapshot$I(luvio, config, options) {
|
|
|
5207
5207
|
});
|
|
5208
5208
|
}
|
|
5209
5209
|
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
5210
|
-
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5210
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$J, undefined, false);
|
|
5211
5211
|
}
|
|
5212
5212
|
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
5213
5213
|
const { luvio, config } = context;
|
|
@@ -5218,12 +5218,12 @@ function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
|
5218
5218
|
};
|
|
5219
5219
|
const cacheSnapshot = storeLookup(selector, {
|
|
5220
5220
|
config,
|
|
5221
|
-
resolve: () => buildNetworkSnapshot$
|
|
5221
|
+
resolve: () => buildNetworkSnapshot$J(luvio, config, snapshotRefreshOptions)
|
|
5222
5222
|
});
|
|
5223
5223
|
return cacheSnapshot;
|
|
5224
5224
|
}
|
|
5225
5225
|
const getContextServiceDefinitionAdapterFactory = (luvio) => function IndustriesContext__getContextServiceDefinition(untrustedConfig, requestContext) {
|
|
5226
|
-
const config = validateAdapterConfig$
|
|
5226
|
+
const config = validateAdapterConfig$J(untrustedConfig, getContextServiceDefinition_ConfigPropertyNames);
|
|
5227
5227
|
// Invalid or incomplete config
|
|
5228
5228
|
if (config === null) {
|
|
5229
5229
|
return null;
|
|
@@ -5232,19 +5232,19 @@ const getContextServiceDefinitionAdapterFactory = (luvio) => function Industries
|
|
|
5232
5232
|
buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
|
|
5233
5233
|
};
|
|
5234
5234
|
|
|
5235
|
-
function select$
|
|
5236
|
-
return select$
|
|
5235
|
+
function select$N(luvio, params) {
|
|
5236
|
+
return select$13();
|
|
5237
5237
|
}
|
|
5238
|
-
function getResponseCacheKeys$
|
|
5238
|
+
function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
|
|
5239
5239
|
getTypeCacheKeys$n(storeKeyMap, luvio, response);
|
|
5240
5240
|
}
|
|
5241
|
-
function ingestSuccess$
|
|
5241
|
+
function ingestSuccess$z(luvio, resourceParams, response) {
|
|
5242
5242
|
const { body } = response;
|
|
5243
5243
|
const key = keyBuilderFromType$j(luvio, body);
|
|
5244
5244
|
luvio.storeIngest(key, ingest$n, body);
|
|
5245
5245
|
const snapshot = luvio.storeLookup({
|
|
5246
5246
|
recordId: key,
|
|
5247
|
-
node: select$
|
|
5247
|
+
node: select$N(),
|
|
5248
5248
|
variables: {},
|
|
5249
5249
|
});
|
|
5250
5250
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5255,7 +5255,7 @@ function ingestSuccess$y(luvio, resourceParams, response) {
|
|
|
5255
5255
|
deepFreeze(snapshot.data);
|
|
5256
5256
|
return snapshot;
|
|
5257
5257
|
}
|
|
5258
|
-
function createResourceRequest$
|
|
5258
|
+
function createResourceRequest$I(config) {
|
|
5259
5259
|
const headers = {};
|
|
5260
5260
|
return {
|
|
5261
5261
|
baseUri: '/services/data/v63.0',
|
|
@@ -5269,47 +5269,47 @@ function createResourceRequest$H(config) {
|
|
|
5269
5269
|
};
|
|
5270
5270
|
}
|
|
5271
5271
|
|
|
5272
|
-
const adapterName$
|
|
5272
|
+
const adapterName$I = 'updateContextServiceDefinition';
|
|
5273
5273
|
const updateContextServiceDefinition_ConfigPropertyMetadata = [
|
|
5274
5274
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5275
5275
|
generateParamConfigMetadata('contextDefinitionInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5276
5276
|
];
|
|
5277
|
-
const updateContextServiceDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5278
|
-
const createResourceParams$
|
|
5279
|
-
function typeCheckConfig$
|
|
5277
|
+
const updateContextServiceDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$I, updateContextServiceDefinition_ConfigPropertyMetadata);
|
|
5278
|
+
const createResourceParams$I = /*#__PURE__*/ createResourceParams$R(updateContextServiceDefinition_ConfigPropertyMetadata);
|
|
5279
|
+
function typeCheckConfig$I(untrustedConfig) {
|
|
5280
5280
|
const config = {};
|
|
5281
|
-
typeCheckConfig$
|
|
5281
|
+
typeCheckConfig$R(untrustedConfig, config, updateContextServiceDefinition_ConfigPropertyMetadata);
|
|
5282
5282
|
const untrustedConfig_contextDefinitionInput = untrustedConfig.contextDefinitionInput;
|
|
5283
|
-
const referenceContextDefinitionsInputRepresentationValidationError = validate$
|
|
5283
|
+
const referenceContextDefinitionsInputRepresentationValidationError = validate$E(untrustedConfig_contextDefinitionInput);
|
|
5284
5284
|
if (referenceContextDefinitionsInputRepresentationValidationError === null) {
|
|
5285
5285
|
config.contextDefinitionInput = untrustedConfig_contextDefinitionInput;
|
|
5286
5286
|
}
|
|
5287
5287
|
return config;
|
|
5288
5288
|
}
|
|
5289
|
-
function validateAdapterConfig$
|
|
5289
|
+
function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
|
|
5290
5290
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5291
5291
|
return null;
|
|
5292
5292
|
}
|
|
5293
5293
|
if (process.env.NODE_ENV !== 'production') {
|
|
5294
5294
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5295
5295
|
}
|
|
5296
|
-
const config = typeCheckConfig$
|
|
5296
|
+
const config = typeCheckConfig$I(untrustedConfig);
|
|
5297
5297
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5298
5298
|
return null;
|
|
5299
5299
|
}
|
|
5300
5300
|
return config;
|
|
5301
5301
|
}
|
|
5302
|
-
function buildNetworkSnapshot$
|
|
5303
|
-
const resourceParams = createResourceParams$
|
|
5304
|
-
const request = createResourceRequest$
|
|
5302
|
+
function buildNetworkSnapshot$I(luvio, config, options) {
|
|
5303
|
+
const resourceParams = createResourceParams$I(config);
|
|
5304
|
+
const request = createResourceRequest$I(resourceParams);
|
|
5305
5305
|
return luvio.dispatchResourceRequest(request, options)
|
|
5306
5306
|
.then((response) => {
|
|
5307
5307
|
return luvio.handleSuccessResponse(() => {
|
|
5308
|
-
const snapshot = ingestSuccess$
|
|
5308
|
+
const snapshot = ingestSuccess$z(luvio, resourceParams, response);
|
|
5309
5309
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5310
5310
|
}, () => {
|
|
5311
5311
|
const cache = new StoreKeyMap();
|
|
5312
|
-
getResponseCacheKeys$
|
|
5312
|
+
getResponseCacheKeys$I(cache, luvio, resourceParams, response.body);
|
|
5313
5313
|
return cache;
|
|
5314
5314
|
});
|
|
5315
5315
|
}, (response) => {
|
|
@@ -5319,16 +5319,16 @@ function buildNetworkSnapshot$H(luvio, config, options) {
|
|
|
5319
5319
|
}
|
|
5320
5320
|
const updateContextServiceDefinitionAdapterFactory = (luvio) => {
|
|
5321
5321
|
return function updateContextServiceDefinition(untrustedConfig) {
|
|
5322
|
-
const config = validateAdapterConfig$
|
|
5322
|
+
const config = validateAdapterConfig$I(untrustedConfig, updateContextServiceDefinition_ConfigPropertyNames);
|
|
5323
5323
|
// Invalid or incomplete config
|
|
5324
5324
|
if (config === null) {
|
|
5325
5325
|
throw new Error('Invalid config for "updateContextServiceDefinition"');
|
|
5326
5326
|
}
|
|
5327
|
-
return buildNetworkSnapshot$
|
|
5327
|
+
return buildNetworkSnapshot$I(luvio, config);
|
|
5328
5328
|
};
|
|
5329
5329
|
};
|
|
5330
5330
|
|
|
5331
|
-
function validate$
|
|
5331
|
+
function validate$q(obj, path = 'ContextMappingListInputRepresentation') {
|
|
5332
5332
|
const v_error = (() => {
|
|
5333
5333
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5334
5334
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5365,7 +5365,7 @@ function validate$o(obj, path = 'ContextMappingListInputRepresentation') {
|
|
|
5365
5365
|
|
|
5366
5366
|
const TTL$9 = 1000;
|
|
5367
5367
|
const VERSION$d = "d7c8141e7fbfa6da28615ba495c4b07e";
|
|
5368
|
-
function validate$
|
|
5368
|
+
function validate$p(obj, path = 'ContextMappingListRepresentation') {
|
|
5369
5369
|
const v_error = (() => {
|
|
5370
5370
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5371
5371
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5430,7 +5430,7 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
5430
5430
|
}
|
|
5431
5431
|
return input;
|
|
5432
5432
|
}
|
|
5433
|
-
const select$
|
|
5433
|
+
const select$M = function ContextMappingListRepresentationSelect() {
|
|
5434
5434
|
return {
|
|
5435
5435
|
kind: 'Fragment',
|
|
5436
5436
|
version: VERSION$d,
|
|
@@ -5445,7 +5445,7 @@ const select$L = function ContextMappingListRepresentationSelect() {
|
|
|
5445
5445
|
kind: 'Link',
|
|
5446
5446
|
plural: true,
|
|
5447
5447
|
required: false,
|
|
5448
|
-
fragment: select$
|
|
5448
|
+
fragment: select$U()
|
|
5449
5449
|
},
|
|
5450
5450
|
{
|
|
5451
5451
|
name: 'isSuccess',
|
|
@@ -5496,7 +5496,7 @@ function equals$d(existing, incoming) {
|
|
|
5496
5496
|
}
|
|
5497
5497
|
const ingest$b = function ContextMappingListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5498
5498
|
if (process.env.NODE_ENV !== 'production') {
|
|
5499
|
-
const validateError = validate$
|
|
5499
|
+
const validateError = validate$p(input);
|
|
5500
5500
|
if (validateError !== null) {
|
|
5501
5501
|
throw validateError;
|
|
5502
5502
|
}
|
|
@@ -5522,19 +5522,19 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5522
5522
|
}
|
|
5523
5523
|
}
|
|
5524
5524
|
|
|
5525
|
-
function select$
|
|
5526
|
-
return select$
|
|
5525
|
+
function select$L(luvio, params) {
|
|
5526
|
+
return select$M();
|
|
5527
5527
|
}
|
|
5528
|
-
function getResponseCacheKeys$
|
|
5528
|
+
function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
|
|
5529
5529
|
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
5530
5530
|
}
|
|
5531
|
-
function ingestSuccess$
|
|
5531
|
+
function ingestSuccess$y(luvio, resourceParams, response) {
|
|
5532
5532
|
const { body } = response;
|
|
5533
5533
|
const key = keyBuilderFromType$8(luvio, body);
|
|
5534
5534
|
luvio.storeIngest(key, ingest$b, body);
|
|
5535
5535
|
const snapshot = luvio.storeLookup({
|
|
5536
5536
|
recordId: key,
|
|
5537
|
-
node: select$
|
|
5537
|
+
node: select$L(),
|
|
5538
5538
|
variables: {},
|
|
5539
5539
|
});
|
|
5540
5540
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5545,7 +5545,7 @@ function ingestSuccess$x(luvio, resourceParams, response) {
|
|
|
5545
5545
|
deepFreeze(snapshot.data);
|
|
5546
5546
|
return snapshot;
|
|
5547
5547
|
}
|
|
5548
|
-
function createResourceRequest$
|
|
5548
|
+
function createResourceRequest$H(config) {
|
|
5549
5549
|
const headers = {};
|
|
5550
5550
|
return {
|
|
5551
5551
|
baseUri: '/services/data/v63.0',
|
|
@@ -5559,47 +5559,47 @@ function createResourceRequest$G(config) {
|
|
|
5559
5559
|
};
|
|
5560
5560
|
}
|
|
5561
5561
|
|
|
5562
|
-
const adapterName$
|
|
5562
|
+
const adapterName$H = 'updateContextMappings';
|
|
5563
5563
|
const updateContextMappings_ConfigPropertyMetadata = [
|
|
5564
5564
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5565
5565
|
generateParamConfigMetadata('contextMappingInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5566
5566
|
];
|
|
5567
|
-
const updateContextMappings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5568
|
-
const createResourceParams$
|
|
5569
|
-
function typeCheckConfig$
|
|
5567
|
+
const updateContextMappings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$H, updateContextMappings_ConfigPropertyMetadata);
|
|
5568
|
+
const createResourceParams$H = /*#__PURE__*/ createResourceParams$R(updateContextMappings_ConfigPropertyMetadata);
|
|
5569
|
+
function typeCheckConfig$H(untrustedConfig) {
|
|
5570
5570
|
const config = {};
|
|
5571
|
-
typeCheckConfig$
|
|
5571
|
+
typeCheckConfig$R(untrustedConfig, config, updateContextMappings_ConfigPropertyMetadata);
|
|
5572
5572
|
const untrustedConfig_contextMappingInput = untrustedConfig.contextMappingInput;
|
|
5573
|
-
const referenceContextMappingListInputRepresentationValidationError = validate$
|
|
5573
|
+
const referenceContextMappingListInputRepresentationValidationError = validate$q(untrustedConfig_contextMappingInput);
|
|
5574
5574
|
if (referenceContextMappingListInputRepresentationValidationError === null) {
|
|
5575
5575
|
config.contextMappingInput = untrustedConfig_contextMappingInput;
|
|
5576
5576
|
}
|
|
5577
5577
|
return config;
|
|
5578
5578
|
}
|
|
5579
|
-
function validateAdapterConfig$
|
|
5579
|
+
function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
|
|
5580
5580
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5581
5581
|
return null;
|
|
5582
5582
|
}
|
|
5583
5583
|
if (process.env.NODE_ENV !== 'production') {
|
|
5584
5584
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5585
5585
|
}
|
|
5586
|
-
const config = typeCheckConfig$
|
|
5586
|
+
const config = typeCheckConfig$H(untrustedConfig);
|
|
5587
5587
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5588
5588
|
return null;
|
|
5589
5589
|
}
|
|
5590
5590
|
return config;
|
|
5591
5591
|
}
|
|
5592
|
-
function buildNetworkSnapshot$
|
|
5593
|
-
const resourceParams = createResourceParams$
|
|
5594
|
-
const request = createResourceRequest$
|
|
5592
|
+
function buildNetworkSnapshot$H(luvio, config, options) {
|
|
5593
|
+
const resourceParams = createResourceParams$H(config);
|
|
5594
|
+
const request = createResourceRequest$H(resourceParams);
|
|
5595
5595
|
return luvio.dispatchResourceRequest(request, options)
|
|
5596
5596
|
.then((response) => {
|
|
5597
5597
|
return luvio.handleSuccessResponse(() => {
|
|
5598
|
-
const snapshot = ingestSuccess$
|
|
5598
|
+
const snapshot = ingestSuccess$y(luvio, resourceParams, response);
|
|
5599
5599
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5600
5600
|
}, () => {
|
|
5601
5601
|
const cache = new StoreKeyMap();
|
|
5602
|
-
getResponseCacheKeys$
|
|
5602
|
+
getResponseCacheKeys$H(cache, luvio, resourceParams, response.body);
|
|
5603
5603
|
return cache;
|
|
5604
5604
|
});
|
|
5605
5605
|
}, (response) => {
|
|
@@ -5609,28 +5609,28 @@ function buildNetworkSnapshot$G(luvio, config, options) {
|
|
|
5609
5609
|
}
|
|
5610
5610
|
const updateContextMappingsAdapterFactory = (luvio) => {
|
|
5611
5611
|
return function updateContextMappings(untrustedConfig) {
|
|
5612
|
-
const config = validateAdapterConfig$
|
|
5612
|
+
const config = validateAdapterConfig$H(untrustedConfig, updateContextMappings_ConfigPropertyNames);
|
|
5613
5613
|
// Invalid or incomplete config
|
|
5614
5614
|
if (config === null) {
|
|
5615
5615
|
throw new Error('Invalid config for "updateContextMappings"');
|
|
5616
5616
|
}
|
|
5617
|
-
return buildNetworkSnapshot$
|
|
5617
|
+
return buildNetworkSnapshot$H(luvio, config);
|
|
5618
5618
|
};
|
|
5619
5619
|
};
|
|
5620
5620
|
|
|
5621
|
-
function select$
|
|
5622
|
-
return select$
|
|
5621
|
+
function select$K(luvio, params) {
|
|
5622
|
+
return select$M();
|
|
5623
5623
|
}
|
|
5624
|
-
function getResponseCacheKeys$
|
|
5624
|
+
function getResponseCacheKeys$G(storeKeyMap, luvio, resourceParams, response) {
|
|
5625
5625
|
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
5626
5626
|
}
|
|
5627
|
-
function ingestSuccess$
|
|
5627
|
+
function ingestSuccess$x(luvio, resourceParams, response) {
|
|
5628
5628
|
const { body } = response;
|
|
5629
5629
|
const key = keyBuilderFromType$8(luvio, body);
|
|
5630
5630
|
luvio.storeIngest(key, ingest$b, body);
|
|
5631
5631
|
const snapshot = luvio.storeLookup({
|
|
5632
5632
|
recordId: key,
|
|
5633
|
-
node: select$
|
|
5633
|
+
node: select$K(),
|
|
5634
5634
|
variables: {},
|
|
5635
5635
|
});
|
|
5636
5636
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5641,7 +5641,7 @@ function ingestSuccess$w(luvio, resourceParams, response) {
|
|
|
5641
5641
|
deepFreeze(snapshot.data);
|
|
5642
5642
|
return snapshot;
|
|
5643
5643
|
}
|
|
5644
|
-
function createResourceRequest$
|
|
5644
|
+
function createResourceRequest$G(config) {
|
|
5645
5645
|
const headers = {};
|
|
5646
5646
|
return {
|
|
5647
5647
|
baseUri: '/services/data/v63.0',
|
|
@@ -5655,47 +5655,47 @@ function createResourceRequest$F(config) {
|
|
|
5655
5655
|
};
|
|
5656
5656
|
}
|
|
5657
5657
|
|
|
5658
|
-
const adapterName$
|
|
5658
|
+
const adapterName$G = 'createContextMappings';
|
|
5659
5659
|
const createContextMappings_ConfigPropertyMetadata = [
|
|
5660
5660
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5661
5661
|
generateParamConfigMetadata('contextMappingInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5662
5662
|
];
|
|
5663
|
-
const createContextMappings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5664
|
-
const createResourceParams$
|
|
5665
|
-
function typeCheckConfig$
|
|
5663
|
+
const createContextMappings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$G, createContextMappings_ConfigPropertyMetadata);
|
|
5664
|
+
const createResourceParams$G = /*#__PURE__*/ createResourceParams$R(createContextMappings_ConfigPropertyMetadata);
|
|
5665
|
+
function typeCheckConfig$G(untrustedConfig) {
|
|
5666
5666
|
const config = {};
|
|
5667
|
-
typeCheckConfig$
|
|
5667
|
+
typeCheckConfig$R(untrustedConfig, config, createContextMappings_ConfigPropertyMetadata);
|
|
5668
5668
|
const untrustedConfig_contextMappingInput = untrustedConfig.contextMappingInput;
|
|
5669
|
-
const referenceContextMappingListInputRepresentationValidationError = validate$
|
|
5669
|
+
const referenceContextMappingListInputRepresentationValidationError = validate$q(untrustedConfig_contextMappingInput);
|
|
5670
5670
|
if (referenceContextMappingListInputRepresentationValidationError === null) {
|
|
5671
5671
|
config.contextMappingInput = untrustedConfig_contextMappingInput;
|
|
5672
5672
|
}
|
|
5673
5673
|
return config;
|
|
5674
5674
|
}
|
|
5675
|
-
function validateAdapterConfig$
|
|
5675
|
+
function validateAdapterConfig$G(untrustedConfig, configPropertyNames) {
|
|
5676
5676
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5677
5677
|
return null;
|
|
5678
5678
|
}
|
|
5679
5679
|
if (process.env.NODE_ENV !== 'production') {
|
|
5680
5680
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5681
5681
|
}
|
|
5682
|
-
const config = typeCheckConfig$
|
|
5682
|
+
const config = typeCheckConfig$G(untrustedConfig);
|
|
5683
5683
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5684
5684
|
return null;
|
|
5685
5685
|
}
|
|
5686
5686
|
return config;
|
|
5687
5687
|
}
|
|
5688
|
-
function buildNetworkSnapshot$
|
|
5689
|
-
const resourceParams = createResourceParams$
|
|
5690
|
-
const request = createResourceRequest$
|
|
5688
|
+
function buildNetworkSnapshot$G(luvio, config, options) {
|
|
5689
|
+
const resourceParams = createResourceParams$G(config);
|
|
5690
|
+
const request = createResourceRequest$G(resourceParams);
|
|
5691
5691
|
return luvio.dispatchResourceRequest(request, options)
|
|
5692
5692
|
.then((response) => {
|
|
5693
5693
|
return luvio.handleSuccessResponse(() => {
|
|
5694
|
-
const snapshot = ingestSuccess$
|
|
5694
|
+
const snapshot = ingestSuccess$x(luvio, resourceParams, response);
|
|
5695
5695
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5696
5696
|
}, () => {
|
|
5697
5697
|
const cache = new StoreKeyMap();
|
|
5698
|
-
getResponseCacheKeys$
|
|
5698
|
+
getResponseCacheKeys$G(cache, luvio, resourceParams, response.body);
|
|
5699
5699
|
return cache;
|
|
5700
5700
|
});
|
|
5701
5701
|
}, (response) => {
|
|
@@ -5705,12 +5705,12 @@ function buildNetworkSnapshot$F(luvio, config, options) {
|
|
|
5705
5705
|
}
|
|
5706
5706
|
const createContextMappingsAdapterFactory = (luvio) => {
|
|
5707
5707
|
return function createContextMappings(untrustedConfig) {
|
|
5708
|
-
const config = validateAdapterConfig$
|
|
5708
|
+
const config = validateAdapterConfig$G(untrustedConfig, createContextMappings_ConfigPropertyNames);
|
|
5709
5709
|
// Invalid or incomplete config
|
|
5710
5710
|
if (config === null) {
|
|
5711
5711
|
throw new Error('Invalid config for "createContextMappings"');
|
|
5712
5712
|
}
|
|
5713
|
-
return buildNetworkSnapshot$
|
|
5713
|
+
return buildNetworkSnapshot$G(luvio, config);
|
|
5714
5714
|
};
|
|
5715
5715
|
};
|
|
5716
5716
|
|
|
@@ -5719,7 +5719,7 @@ function keyBuilder$I(luvio, params) {
|
|
|
5719
5719
|
id: params.urlParams.contextMappingId
|
|
5720
5720
|
});
|
|
5721
5721
|
}
|
|
5722
|
-
function getResponseCacheKeys$
|
|
5722
|
+
function getResponseCacheKeys$F(cacheKeyMap, luvio, resourceParams) {
|
|
5723
5723
|
const key = keyBuilder$I(luvio, resourceParams);
|
|
5724
5724
|
cacheKeyMap.set(key, {
|
|
5725
5725
|
namespace: keyPrefix,
|
|
@@ -5731,7 +5731,7 @@ function evictSuccess$8(luvio, resourceParams) {
|
|
|
5731
5731
|
const key = keyBuilder$I(luvio, resourceParams);
|
|
5732
5732
|
luvio.storeEvict(key);
|
|
5733
5733
|
}
|
|
5734
|
-
function createResourceRequest$
|
|
5734
|
+
function createResourceRequest$F(config) {
|
|
5735
5735
|
const headers = {};
|
|
5736
5736
|
return {
|
|
5737
5737
|
baseUri: '/services/data/v63.0',
|
|
@@ -5745,34 +5745,34 @@ function createResourceRequest$E(config) {
|
|
|
5745
5745
|
};
|
|
5746
5746
|
}
|
|
5747
5747
|
|
|
5748
|
-
const adapterName$
|
|
5748
|
+
const adapterName$F = 'deleteContextServiceMapping';
|
|
5749
5749
|
const deleteContextServiceMapping_ConfigPropertyMetadata = [
|
|
5750
5750
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5751
5751
|
generateParamConfigMetadata('contextMappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5752
5752
|
];
|
|
5753
|
-
const deleteContextServiceMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5754
|
-
const createResourceParams$
|
|
5755
|
-
function typeCheckConfig$
|
|
5753
|
+
const deleteContextServiceMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, deleteContextServiceMapping_ConfigPropertyMetadata);
|
|
5754
|
+
const createResourceParams$F = /*#__PURE__*/ createResourceParams$R(deleteContextServiceMapping_ConfigPropertyMetadata);
|
|
5755
|
+
function typeCheckConfig$F(untrustedConfig) {
|
|
5756
5756
|
const config = {};
|
|
5757
|
-
typeCheckConfig$
|
|
5757
|
+
typeCheckConfig$R(untrustedConfig, config, deleteContextServiceMapping_ConfigPropertyMetadata);
|
|
5758
5758
|
return config;
|
|
5759
5759
|
}
|
|
5760
|
-
function validateAdapterConfig$
|
|
5760
|
+
function validateAdapterConfig$F(untrustedConfig, configPropertyNames) {
|
|
5761
5761
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5762
5762
|
return null;
|
|
5763
5763
|
}
|
|
5764
5764
|
if (process.env.NODE_ENV !== 'production') {
|
|
5765
5765
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5766
5766
|
}
|
|
5767
|
-
const config = typeCheckConfig$
|
|
5767
|
+
const config = typeCheckConfig$F(untrustedConfig);
|
|
5768
5768
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5769
5769
|
return null;
|
|
5770
5770
|
}
|
|
5771
5771
|
return config;
|
|
5772
5772
|
}
|
|
5773
|
-
function buildNetworkSnapshot$
|
|
5774
|
-
const resourceParams = createResourceParams$
|
|
5775
|
-
const request = createResourceRequest$
|
|
5773
|
+
function buildNetworkSnapshot$F(luvio, config, options) {
|
|
5774
|
+
const resourceParams = createResourceParams$F(config);
|
|
5775
|
+
const request = createResourceRequest$F(resourceParams);
|
|
5776
5776
|
return luvio.dispatchResourceRequest(request, options)
|
|
5777
5777
|
.then(() => {
|
|
5778
5778
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -5780,7 +5780,7 @@ function buildNetworkSnapshot$E(luvio, config, options) {
|
|
|
5780
5780
|
return luvio.storeBroadcast();
|
|
5781
5781
|
}, () => {
|
|
5782
5782
|
const cache = new StoreKeyMap();
|
|
5783
|
-
getResponseCacheKeys$
|
|
5783
|
+
getResponseCacheKeys$F(cache, luvio, resourceParams);
|
|
5784
5784
|
return cache;
|
|
5785
5785
|
});
|
|
5786
5786
|
}, (response) => {
|
|
@@ -5790,33 +5790,33 @@ function buildNetworkSnapshot$E(luvio, config, options) {
|
|
|
5790
5790
|
}
|
|
5791
5791
|
const deleteContextServiceMappingAdapterFactory = (luvio) => {
|
|
5792
5792
|
return function IndustriesContextdeleteContextServiceMapping(untrustedConfig) {
|
|
5793
|
-
const config = validateAdapterConfig$
|
|
5793
|
+
const config = validateAdapterConfig$F(untrustedConfig, deleteContextServiceMapping_ConfigPropertyNames);
|
|
5794
5794
|
// Invalid or incomplete config
|
|
5795
5795
|
if (config === null) {
|
|
5796
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
5796
|
+
throw new Error(`Invalid config for "${adapterName$F}"`);
|
|
5797
5797
|
}
|
|
5798
|
-
return buildNetworkSnapshot$
|
|
5798
|
+
return buildNetworkSnapshot$F(luvio, config);
|
|
5799
5799
|
};
|
|
5800
5800
|
};
|
|
5801
5801
|
|
|
5802
|
-
function select$
|
|
5803
|
-
return select$
|
|
5802
|
+
function select$J(luvio, params) {
|
|
5803
|
+
return select$U();
|
|
5804
5804
|
}
|
|
5805
5805
|
function keyBuilder$H(luvio, params) {
|
|
5806
5806
|
return keyBuilder$S(luvio, {
|
|
5807
5807
|
id: params.urlParams.contextMappingId
|
|
5808
5808
|
});
|
|
5809
5809
|
}
|
|
5810
|
-
function getResponseCacheKeys$
|
|
5810
|
+
function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
|
|
5811
5811
|
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
5812
5812
|
}
|
|
5813
|
-
function ingestSuccess$
|
|
5813
|
+
function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
5814
5814
|
const { body } = response;
|
|
5815
5815
|
const key = keyBuilder$H(luvio, resourceParams);
|
|
5816
5816
|
luvio.storeIngest(key, ingest$h, body);
|
|
5817
5817
|
const snapshot = luvio.storeLookup({
|
|
5818
5818
|
recordId: key,
|
|
5819
|
-
node: select$
|
|
5819
|
+
node: select$J(),
|
|
5820
5820
|
variables: {},
|
|
5821
5821
|
}, snapshotRefresh);
|
|
5822
5822
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5839,7 +5839,7 @@ function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
|
5839
5839
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5840
5840
|
return errorSnapshot;
|
|
5841
5841
|
}
|
|
5842
|
-
function createResourceRequest$
|
|
5842
|
+
function createResourceRequest$E(config) {
|
|
5843
5843
|
const headers = {};
|
|
5844
5844
|
return {
|
|
5845
5845
|
baseUri: '/services/data/v63.0',
|
|
@@ -5853,61 +5853,61 @@ function createResourceRequest$D(config) {
|
|
|
5853
5853
|
};
|
|
5854
5854
|
}
|
|
5855
5855
|
|
|
5856
|
-
const adapterName$
|
|
5856
|
+
const adapterName$E = 'getContextServiceMapping';
|
|
5857
5857
|
const getContextServiceMapping_ConfigPropertyMetadata = [
|
|
5858
5858
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5859
5859
|
generateParamConfigMetadata('contextMappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5860
5860
|
];
|
|
5861
|
-
const getContextServiceMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5862
|
-
const createResourceParams$
|
|
5861
|
+
const getContextServiceMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, getContextServiceMapping_ConfigPropertyMetadata);
|
|
5862
|
+
const createResourceParams$E = /*#__PURE__*/ createResourceParams$R(getContextServiceMapping_ConfigPropertyMetadata);
|
|
5863
5863
|
function keyBuilder$G(luvio, config) {
|
|
5864
|
-
const resourceParams = createResourceParams$
|
|
5864
|
+
const resourceParams = createResourceParams$E(config);
|
|
5865
5865
|
return keyBuilder$H(luvio, resourceParams);
|
|
5866
5866
|
}
|
|
5867
|
-
function typeCheckConfig$
|
|
5867
|
+
function typeCheckConfig$E(untrustedConfig) {
|
|
5868
5868
|
const config = {};
|
|
5869
|
-
typeCheckConfig$
|
|
5869
|
+
typeCheckConfig$R(untrustedConfig, config, getContextServiceMapping_ConfigPropertyMetadata);
|
|
5870
5870
|
return config;
|
|
5871
5871
|
}
|
|
5872
|
-
function validateAdapterConfig$
|
|
5872
|
+
function validateAdapterConfig$E(untrustedConfig, configPropertyNames) {
|
|
5873
5873
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5874
5874
|
return null;
|
|
5875
5875
|
}
|
|
5876
5876
|
if (process.env.NODE_ENV !== 'production') {
|
|
5877
5877
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5878
5878
|
}
|
|
5879
|
-
const config = typeCheckConfig$
|
|
5879
|
+
const config = typeCheckConfig$E(untrustedConfig);
|
|
5880
5880
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5881
5881
|
return null;
|
|
5882
5882
|
}
|
|
5883
5883
|
return config;
|
|
5884
5884
|
}
|
|
5885
5885
|
function adapterFragment$d(luvio, config) {
|
|
5886
|
-
createResourceParams$
|
|
5887
|
-
return select$
|
|
5886
|
+
createResourceParams$E(config);
|
|
5887
|
+
return select$J();
|
|
5888
5888
|
}
|
|
5889
5889
|
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
5890
|
-
const snapshot = ingestSuccess$
|
|
5890
|
+
const snapshot = ingestSuccess$w(luvio, resourceParams, response, {
|
|
5891
5891
|
config,
|
|
5892
|
-
resolve: () => buildNetworkSnapshot$
|
|
5892
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
5893
5893
|
});
|
|
5894
5894
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5895
5895
|
}
|
|
5896
5896
|
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
5897
5897
|
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
5898
5898
|
config,
|
|
5899
|
-
resolve: () => buildNetworkSnapshot$
|
|
5899
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
5900
5900
|
});
|
|
5901
5901
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5902
5902
|
}
|
|
5903
|
-
function buildNetworkSnapshot$
|
|
5904
|
-
const resourceParams = createResourceParams$
|
|
5905
|
-
const request = createResourceRequest$
|
|
5903
|
+
function buildNetworkSnapshot$E(luvio, config, options) {
|
|
5904
|
+
const resourceParams = createResourceParams$E(config);
|
|
5905
|
+
const request = createResourceRequest$E(resourceParams);
|
|
5906
5906
|
return luvio.dispatchResourceRequest(request, options)
|
|
5907
5907
|
.then((response) => {
|
|
5908
5908
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
5909
5909
|
const cache = new StoreKeyMap();
|
|
5910
|
-
getResponseCacheKeys$
|
|
5910
|
+
getResponseCacheKeys$E(cache, luvio, resourceParams, response.body);
|
|
5911
5911
|
return cache;
|
|
5912
5912
|
});
|
|
5913
5913
|
}, (response) => {
|
|
@@ -5915,7 +5915,7 @@ function buildNetworkSnapshot$D(luvio, config, options) {
|
|
|
5915
5915
|
});
|
|
5916
5916
|
}
|
|
5917
5917
|
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
5918
|
-
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
5918
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$E, undefined, false);
|
|
5919
5919
|
}
|
|
5920
5920
|
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
5921
5921
|
const { luvio, config } = context;
|
|
@@ -5926,12 +5926,12 @@ function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
|
5926
5926
|
};
|
|
5927
5927
|
const cacheSnapshot = storeLookup(selector, {
|
|
5928
5928
|
config,
|
|
5929
|
-
resolve: () => buildNetworkSnapshot$
|
|
5929
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
5930
5930
|
});
|
|
5931
5931
|
return cacheSnapshot;
|
|
5932
5932
|
}
|
|
5933
5933
|
const getContextServiceMappingAdapterFactory = (luvio) => function IndustriesContext__getContextServiceMapping(untrustedConfig, requestContext) {
|
|
5934
|
-
const config = validateAdapterConfig$
|
|
5934
|
+
const config = validateAdapterConfig$E(untrustedConfig, getContextServiceMapping_ConfigPropertyNames);
|
|
5935
5935
|
// Invalid or incomplete config
|
|
5936
5936
|
if (config === null) {
|
|
5937
5937
|
return null;
|
|
@@ -5940,7 +5940,7 @@ const getContextServiceMappingAdapterFactory = (luvio) => function IndustriesCon
|
|
|
5940
5940
|
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
5941
5941
|
};
|
|
5942
5942
|
|
|
5943
|
-
function validate$
|
|
5943
|
+
function validate$o(obj, path = 'ContextNodeListInputRepresentation') {
|
|
5944
5944
|
const v_error = (() => {
|
|
5945
5945
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5946
5946
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5965,7 +5965,7 @@ function validate$m(obj, path = 'ContextNodeListInputRepresentation') {
|
|
|
5965
5965
|
|
|
5966
5966
|
const TTL$8 = 1000;
|
|
5967
5967
|
const VERSION$c = "2846b17386c4627d73c9b82f1333605f";
|
|
5968
|
-
function validate$
|
|
5968
|
+
function validate$n(obj, path = 'ContextNodeListRepresentation') {
|
|
5969
5969
|
const v_error = (() => {
|
|
5970
5970
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5971
5971
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6030,7 +6030,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
6030
6030
|
}
|
|
6031
6031
|
return input;
|
|
6032
6032
|
}
|
|
6033
|
-
const select$
|
|
6033
|
+
const select$I = function ContextNodeListRepresentationSelect() {
|
|
6034
6034
|
return {
|
|
6035
6035
|
kind: 'Fragment',
|
|
6036
6036
|
version: VERSION$c,
|
|
@@ -6045,7 +6045,7 @@ const select$H = function ContextNodeListRepresentationSelect() {
|
|
|
6045
6045
|
kind: 'Link',
|
|
6046
6046
|
plural: true,
|
|
6047
6047
|
required: false,
|
|
6048
|
-
fragment: select$
|
|
6048
|
+
fragment: select$R()
|
|
6049
6049
|
},
|
|
6050
6050
|
{
|
|
6051
6051
|
name: 'isSuccess',
|
|
@@ -6096,7 +6096,7 @@ function equals$c(existing, incoming) {
|
|
|
6096
6096
|
}
|
|
6097
6097
|
const ingest$a = function ContextNodeListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6098
6098
|
if (process.env.NODE_ENV !== 'production') {
|
|
6099
|
-
const validateError = validate$
|
|
6099
|
+
const validateError = validate$n(input);
|
|
6100
6100
|
if (validateError !== null) {
|
|
6101
6101
|
throw validateError;
|
|
6102
6102
|
}
|
|
@@ -6122,19 +6122,19 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6122
6122
|
}
|
|
6123
6123
|
}
|
|
6124
6124
|
|
|
6125
|
-
function select$
|
|
6126
|
-
return select$
|
|
6125
|
+
function select$H(luvio, params) {
|
|
6126
|
+
return select$I();
|
|
6127
6127
|
}
|
|
6128
|
-
function getResponseCacheKeys$
|
|
6128
|
+
function getResponseCacheKeys$D(storeKeyMap, luvio, resourceParams, response) {
|
|
6129
6129
|
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
6130
6130
|
}
|
|
6131
|
-
function ingestSuccess$
|
|
6131
|
+
function ingestSuccess$v(luvio, resourceParams, response) {
|
|
6132
6132
|
const { body } = response;
|
|
6133
6133
|
const key = keyBuilderFromType$7(luvio, body);
|
|
6134
6134
|
luvio.storeIngest(key, ingest$a, body);
|
|
6135
6135
|
const snapshot = luvio.storeLookup({
|
|
6136
6136
|
recordId: key,
|
|
6137
|
-
node: select$
|
|
6137
|
+
node: select$H(),
|
|
6138
6138
|
variables: {},
|
|
6139
6139
|
});
|
|
6140
6140
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6145,7 +6145,7 @@ function ingestSuccess$u(luvio, resourceParams, response) {
|
|
|
6145
6145
|
deepFreeze(snapshot.data);
|
|
6146
6146
|
return snapshot;
|
|
6147
6147
|
}
|
|
6148
|
-
function createResourceRequest$
|
|
6148
|
+
function createResourceRequest$D(config) {
|
|
6149
6149
|
const headers = {};
|
|
6150
6150
|
return {
|
|
6151
6151
|
baseUri: '/services/data/v63.0',
|
|
@@ -6159,47 +6159,47 @@ function createResourceRequest$C(config) {
|
|
|
6159
6159
|
};
|
|
6160
6160
|
}
|
|
6161
6161
|
|
|
6162
|
-
const adapterName$
|
|
6162
|
+
const adapterName$D = 'updateContextNodes';
|
|
6163
6163
|
const updateContextNodes_ConfigPropertyMetadata = [
|
|
6164
6164
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6165
6165
|
generateParamConfigMetadata('contextNodeInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
6166
6166
|
];
|
|
6167
|
-
const updateContextNodes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6168
|
-
const createResourceParams$
|
|
6169
|
-
function typeCheckConfig$
|
|
6167
|
+
const updateContextNodes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$D, updateContextNodes_ConfigPropertyMetadata);
|
|
6168
|
+
const createResourceParams$D = /*#__PURE__*/ createResourceParams$R(updateContextNodes_ConfigPropertyMetadata);
|
|
6169
|
+
function typeCheckConfig$D(untrustedConfig) {
|
|
6170
6170
|
const config = {};
|
|
6171
|
-
typeCheckConfig$
|
|
6171
|
+
typeCheckConfig$R(untrustedConfig, config, updateContextNodes_ConfigPropertyMetadata);
|
|
6172
6172
|
const untrustedConfig_contextNodeInput = untrustedConfig.contextNodeInput;
|
|
6173
|
-
const referenceContextNodeListInputRepresentationValidationError = validate$
|
|
6173
|
+
const referenceContextNodeListInputRepresentationValidationError = validate$o(untrustedConfig_contextNodeInput);
|
|
6174
6174
|
if (referenceContextNodeListInputRepresentationValidationError === null) {
|
|
6175
6175
|
config.contextNodeInput = untrustedConfig_contextNodeInput;
|
|
6176
6176
|
}
|
|
6177
6177
|
return config;
|
|
6178
6178
|
}
|
|
6179
|
-
function validateAdapterConfig$
|
|
6179
|
+
function validateAdapterConfig$D(untrustedConfig, configPropertyNames) {
|
|
6180
6180
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6181
6181
|
return null;
|
|
6182
6182
|
}
|
|
6183
6183
|
if (process.env.NODE_ENV !== 'production') {
|
|
6184
6184
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6185
6185
|
}
|
|
6186
|
-
const config = typeCheckConfig$
|
|
6186
|
+
const config = typeCheckConfig$D(untrustedConfig);
|
|
6187
6187
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6188
6188
|
return null;
|
|
6189
6189
|
}
|
|
6190
6190
|
return config;
|
|
6191
6191
|
}
|
|
6192
|
-
function buildNetworkSnapshot$
|
|
6193
|
-
const resourceParams = createResourceParams$
|
|
6194
|
-
const request = createResourceRequest$
|
|
6192
|
+
function buildNetworkSnapshot$D(luvio, config, options) {
|
|
6193
|
+
const resourceParams = createResourceParams$D(config);
|
|
6194
|
+
const request = createResourceRequest$D(resourceParams);
|
|
6195
6195
|
return luvio.dispatchResourceRequest(request, options)
|
|
6196
6196
|
.then((response) => {
|
|
6197
6197
|
return luvio.handleSuccessResponse(() => {
|
|
6198
|
-
const snapshot = ingestSuccess$
|
|
6198
|
+
const snapshot = ingestSuccess$v(luvio, resourceParams, response);
|
|
6199
6199
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6200
6200
|
}, () => {
|
|
6201
6201
|
const cache = new StoreKeyMap();
|
|
6202
|
-
getResponseCacheKeys$
|
|
6202
|
+
getResponseCacheKeys$D(cache, luvio, resourceParams, response.body);
|
|
6203
6203
|
return cache;
|
|
6204
6204
|
});
|
|
6205
6205
|
}, (response) => {
|
|
@@ -6209,28 +6209,28 @@ function buildNetworkSnapshot$C(luvio, config, options) {
|
|
|
6209
6209
|
}
|
|
6210
6210
|
const updateContextNodesAdapterFactory = (luvio) => {
|
|
6211
6211
|
return function updateContextNodes(untrustedConfig) {
|
|
6212
|
-
const config = validateAdapterConfig$
|
|
6212
|
+
const config = validateAdapterConfig$D(untrustedConfig, updateContextNodes_ConfigPropertyNames);
|
|
6213
6213
|
// Invalid or incomplete config
|
|
6214
6214
|
if (config === null) {
|
|
6215
6215
|
throw new Error('Invalid config for "updateContextNodes"');
|
|
6216
6216
|
}
|
|
6217
|
-
return buildNetworkSnapshot$
|
|
6217
|
+
return buildNetworkSnapshot$D(luvio, config);
|
|
6218
6218
|
};
|
|
6219
6219
|
};
|
|
6220
6220
|
|
|
6221
|
-
function select$
|
|
6222
|
-
return select$
|
|
6221
|
+
function select$G(luvio, params) {
|
|
6222
|
+
return select$I();
|
|
6223
6223
|
}
|
|
6224
|
-
function getResponseCacheKeys$
|
|
6224
|
+
function getResponseCacheKeys$C(storeKeyMap, luvio, resourceParams, response) {
|
|
6225
6225
|
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
6226
6226
|
}
|
|
6227
|
-
function ingestSuccess$
|
|
6227
|
+
function ingestSuccess$u(luvio, resourceParams, response) {
|
|
6228
6228
|
const { body } = response;
|
|
6229
6229
|
const key = keyBuilderFromType$7(luvio, body);
|
|
6230
6230
|
luvio.storeIngest(key, ingest$a, body);
|
|
6231
6231
|
const snapshot = luvio.storeLookup({
|
|
6232
6232
|
recordId: key,
|
|
6233
|
-
node: select$
|
|
6233
|
+
node: select$G(),
|
|
6234
6234
|
variables: {},
|
|
6235
6235
|
});
|
|
6236
6236
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6241,7 +6241,7 @@ function ingestSuccess$t(luvio, resourceParams, response) {
|
|
|
6241
6241
|
deepFreeze(snapshot.data);
|
|
6242
6242
|
return snapshot;
|
|
6243
6243
|
}
|
|
6244
|
-
function createResourceRequest$
|
|
6244
|
+
function createResourceRequest$C(config) {
|
|
6245
6245
|
const headers = {};
|
|
6246
6246
|
return {
|
|
6247
6247
|
baseUri: '/services/data/v63.0',
|
|
@@ -6255,47 +6255,47 @@ function createResourceRequest$B(config) {
|
|
|
6255
6255
|
};
|
|
6256
6256
|
}
|
|
6257
6257
|
|
|
6258
|
-
const adapterName$
|
|
6258
|
+
const adapterName$C = 'createContextNodes';
|
|
6259
6259
|
const createContextNodes_ConfigPropertyMetadata = [
|
|
6260
6260
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6261
6261
|
generateParamConfigMetadata('contextNodeInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
6262
6262
|
];
|
|
6263
|
-
const createContextNodes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6264
|
-
const createResourceParams$
|
|
6265
|
-
function typeCheckConfig$
|
|
6263
|
+
const createContextNodes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, createContextNodes_ConfigPropertyMetadata);
|
|
6264
|
+
const createResourceParams$C = /*#__PURE__*/ createResourceParams$R(createContextNodes_ConfigPropertyMetadata);
|
|
6265
|
+
function typeCheckConfig$C(untrustedConfig) {
|
|
6266
6266
|
const config = {};
|
|
6267
|
-
typeCheckConfig$
|
|
6267
|
+
typeCheckConfig$R(untrustedConfig, config, createContextNodes_ConfigPropertyMetadata);
|
|
6268
6268
|
const untrustedConfig_contextNodeInput = untrustedConfig.contextNodeInput;
|
|
6269
|
-
const referenceContextNodeListInputRepresentationValidationError = validate$
|
|
6269
|
+
const referenceContextNodeListInputRepresentationValidationError = validate$o(untrustedConfig_contextNodeInput);
|
|
6270
6270
|
if (referenceContextNodeListInputRepresentationValidationError === null) {
|
|
6271
6271
|
config.contextNodeInput = untrustedConfig_contextNodeInput;
|
|
6272
6272
|
}
|
|
6273
6273
|
return config;
|
|
6274
6274
|
}
|
|
6275
|
-
function validateAdapterConfig$
|
|
6275
|
+
function validateAdapterConfig$C(untrustedConfig, configPropertyNames) {
|
|
6276
6276
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6277
6277
|
return null;
|
|
6278
6278
|
}
|
|
6279
6279
|
if (process.env.NODE_ENV !== 'production') {
|
|
6280
6280
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6281
6281
|
}
|
|
6282
|
-
const config = typeCheckConfig$
|
|
6282
|
+
const config = typeCheckConfig$C(untrustedConfig);
|
|
6283
6283
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6284
6284
|
return null;
|
|
6285
6285
|
}
|
|
6286
6286
|
return config;
|
|
6287
6287
|
}
|
|
6288
|
-
function buildNetworkSnapshot$
|
|
6289
|
-
const resourceParams = createResourceParams$
|
|
6290
|
-
const request = createResourceRequest$
|
|
6288
|
+
function buildNetworkSnapshot$C(luvio, config, options) {
|
|
6289
|
+
const resourceParams = createResourceParams$C(config);
|
|
6290
|
+
const request = createResourceRequest$C(resourceParams);
|
|
6291
6291
|
return luvio.dispatchResourceRequest(request, options)
|
|
6292
6292
|
.then((response) => {
|
|
6293
6293
|
return luvio.handleSuccessResponse(() => {
|
|
6294
|
-
const snapshot = ingestSuccess$
|
|
6294
|
+
const snapshot = ingestSuccess$u(luvio, resourceParams, response);
|
|
6295
6295
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6296
6296
|
}, () => {
|
|
6297
6297
|
const cache = new StoreKeyMap();
|
|
6298
|
-
getResponseCacheKeys$
|
|
6298
|
+
getResponseCacheKeys$C(cache, luvio, resourceParams, response.body);
|
|
6299
6299
|
return cache;
|
|
6300
6300
|
});
|
|
6301
6301
|
}, (response) => {
|
|
@@ -6305,18 +6305,18 @@ function buildNetworkSnapshot$B(luvio, config, options) {
|
|
|
6305
6305
|
}
|
|
6306
6306
|
const createContextNodesAdapterFactory = (luvio) => {
|
|
6307
6307
|
return function createContextNodes(untrustedConfig) {
|
|
6308
|
-
const config = validateAdapterConfig$
|
|
6308
|
+
const config = validateAdapterConfig$C(untrustedConfig, createContextNodes_ConfigPropertyNames);
|
|
6309
6309
|
// Invalid or incomplete config
|
|
6310
6310
|
if (config === null) {
|
|
6311
6311
|
throw new Error('Invalid config for "createContextNodes"');
|
|
6312
6312
|
}
|
|
6313
|
-
return buildNetworkSnapshot$
|
|
6313
|
+
return buildNetworkSnapshot$C(luvio, config);
|
|
6314
6314
|
};
|
|
6315
6315
|
};
|
|
6316
6316
|
|
|
6317
6317
|
const TTL$7 = 1000;
|
|
6318
6318
|
const VERSION$b = "7c2b99efe7855de7c9740011ae3df6c9";
|
|
6319
|
-
function validate$
|
|
6319
|
+
function validate$m(obj, path = 'ContextTagListRepresentation') {
|
|
6320
6320
|
const v_error = (() => {
|
|
6321
6321
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6322
6322
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6381,7 +6381,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
6381
6381
|
}
|
|
6382
6382
|
return input;
|
|
6383
6383
|
}
|
|
6384
|
-
const select$
|
|
6384
|
+
const select$F = function ContextTagListRepresentationSelect() {
|
|
6385
6385
|
return {
|
|
6386
6386
|
kind: 'Fragment',
|
|
6387
6387
|
version: VERSION$b,
|
|
@@ -6396,7 +6396,7 @@ const select$E = function ContextTagListRepresentationSelect() {
|
|
|
6396
6396
|
kind: 'Link',
|
|
6397
6397
|
plural: true,
|
|
6398
6398
|
required: false,
|
|
6399
|
-
fragment: select$
|
|
6399
|
+
fragment: select$T()
|
|
6400
6400
|
},
|
|
6401
6401
|
{
|
|
6402
6402
|
name: 'isSuccess',
|
|
@@ -6447,7 +6447,7 @@ function equals$b(existing, incoming) {
|
|
|
6447
6447
|
}
|
|
6448
6448
|
const ingest$9 = function ContextTagListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6449
6449
|
if (process.env.NODE_ENV !== 'production') {
|
|
6450
|
-
const validateError = validate$
|
|
6450
|
+
const validateError = validate$m(input);
|
|
6451
6451
|
if (validateError !== null) {
|
|
6452
6452
|
throw validateError;
|
|
6453
6453
|
}
|
|
@@ -6473,24 +6473,24 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6473
6473
|
}
|
|
6474
6474
|
}
|
|
6475
6475
|
|
|
6476
|
-
function select$
|
|
6477
|
-
return select$
|
|
6476
|
+
function select$E(luvio, params) {
|
|
6477
|
+
return select$F();
|
|
6478
6478
|
}
|
|
6479
6479
|
function keyBuilder$D(luvio, params) {
|
|
6480
6480
|
return keyBuilder$E(luvio, {
|
|
6481
6481
|
id: params.urlParams.contextDefinitionId
|
|
6482
6482
|
});
|
|
6483
6483
|
}
|
|
6484
|
-
function getResponseCacheKeys$
|
|
6484
|
+
function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
|
|
6485
6485
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
6486
6486
|
}
|
|
6487
|
-
function ingestSuccess$
|
|
6487
|
+
function ingestSuccess$t(luvio, resourceParams, response, snapshotRefresh) {
|
|
6488
6488
|
const { body } = response;
|
|
6489
6489
|
const key = keyBuilder$D(luvio, resourceParams);
|
|
6490
6490
|
luvio.storeIngest(key, ingest$9, body);
|
|
6491
6491
|
const snapshot = luvio.storeLookup({
|
|
6492
6492
|
recordId: key,
|
|
6493
|
-
node: select$
|
|
6493
|
+
node: select$E(),
|
|
6494
6494
|
variables: {},
|
|
6495
6495
|
}, snapshotRefresh);
|
|
6496
6496
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6513,7 +6513,7 @@ function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
|
6513
6513
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6514
6514
|
return errorSnapshot;
|
|
6515
6515
|
}
|
|
6516
|
-
function createResourceRequest$
|
|
6516
|
+
function createResourceRequest$B(config) {
|
|
6517
6517
|
const headers = {};
|
|
6518
6518
|
return {
|
|
6519
6519
|
baseUri: '/services/data/v63.0',
|
|
@@ -6527,60 +6527,60 @@ function createResourceRequest$A(config) {
|
|
|
6527
6527
|
};
|
|
6528
6528
|
}
|
|
6529
6529
|
|
|
6530
|
-
const adapterName$
|
|
6530
|
+
const adapterName$B = 'getContextTags';
|
|
6531
6531
|
const getContextTags_ConfigPropertyMetadata = [
|
|
6532
6532
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6533
6533
|
];
|
|
6534
|
-
const getContextTags_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6535
|
-
const createResourceParams$
|
|
6534
|
+
const getContextTags_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, getContextTags_ConfigPropertyMetadata);
|
|
6535
|
+
const createResourceParams$B = /*#__PURE__*/ createResourceParams$R(getContextTags_ConfigPropertyMetadata);
|
|
6536
6536
|
function keyBuilder$C(luvio, config) {
|
|
6537
|
-
const resourceParams = createResourceParams$
|
|
6537
|
+
const resourceParams = createResourceParams$B(config);
|
|
6538
6538
|
return keyBuilder$D(luvio, resourceParams);
|
|
6539
6539
|
}
|
|
6540
|
-
function typeCheckConfig$
|
|
6540
|
+
function typeCheckConfig$B(untrustedConfig) {
|
|
6541
6541
|
const config = {};
|
|
6542
|
-
typeCheckConfig$
|
|
6542
|
+
typeCheckConfig$R(untrustedConfig, config, getContextTags_ConfigPropertyMetadata);
|
|
6543
6543
|
return config;
|
|
6544
6544
|
}
|
|
6545
|
-
function validateAdapterConfig$
|
|
6545
|
+
function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
|
|
6546
6546
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6547
6547
|
return null;
|
|
6548
6548
|
}
|
|
6549
6549
|
if (process.env.NODE_ENV !== 'production') {
|
|
6550
6550
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6551
6551
|
}
|
|
6552
|
-
const config = typeCheckConfig$
|
|
6552
|
+
const config = typeCheckConfig$B(untrustedConfig);
|
|
6553
6553
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6554
6554
|
return null;
|
|
6555
6555
|
}
|
|
6556
6556
|
return config;
|
|
6557
6557
|
}
|
|
6558
6558
|
function adapterFragment$c(luvio, config) {
|
|
6559
|
-
createResourceParams$
|
|
6560
|
-
return select$
|
|
6559
|
+
createResourceParams$B(config);
|
|
6560
|
+
return select$E();
|
|
6561
6561
|
}
|
|
6562
6562
|
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
6563
|
-
const snapshot = ingestSuccess$
|
|
6563
|
+
const snapshot = ingestSuccess$t(luvio, resourceParams, response, {
|
|
6564
6564
|
config,
|
|
6565
|
-
resolve: () => buildNetworkSnapshot$
|
|
6565
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
6566
6566
|
});
|
|
6567
6567
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6568
6568
|
}
|
|
6569
6569
|
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
6570
6570
|
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
6571
6571
|
config,
|
|
6572
|
-
resolve: () => buildNetworkSnapshot$
|
|
6572
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
6573
6573
|
});
|
|
6574
6574
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6575
6575
|
}
|
|
6576
|
-
function buildNetworkSnapshot$
|
|
6577
|
-
const resourceParams = createResourceParams$
|
|
6578
|
-
const request = createResourceRequest$
|
|
6576
|
+
function buildNetworkSnapshot$B(luvio, config, options) {
|
|
6577
|
+
const resourceParams = createResourceParams$B(config);
|
|
6578
|
+
const request = createResourceRequest$B(resourceParams);
|
|
6579
6579
|
return luvio.dispatchResourceRequest(request, options)
|
|
6580
6580
|
.then((response) => {
|
|
6581
6581
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
6582
6582
|
const cache = new StoreKeyMap();
|
|
6583
|
-
getResponseCacheKeys$
|
|
6583
|
+
getResponseCacheKeys$B(cache, luvio, resourceParams, response.body);
|
|
6584
6584
|
return cache;
|
|
6585
6585
|
});
|
|
6586
6586
|
}, (response) => {
|
|
@@ -6588,7 +6588,7 @@ function buildNetworkSnapshot$A(luvio, config, options) {
|
|
|
6588
6588
|
});
|
|
6589
6589
|
}
|
|
6590
6590
|
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
6591
|
-
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
6591
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$B, undefined, false);
|
|
6592
6592
|
}
|
|
6593
6593
|
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
6594
6594
|
const { luvio, config } = context;
|
|
@@ -6599,12 +6599,12 @@ function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
|
6599
6599
|
};
|
|
6600
6600
|
const cacheSnapshot = storeLookup(selector, {
|
|
6601
6601
|
config,
|
|
6602
|
-
resolve: () => buildNetworkSnapshot$
|
|
6602
|
+
resolve: () => buildNetworkSnapshot$B(luvio, config, snapshotRefreshOptions)
|
|
6603
6603
|
});
|
|
6604
6604
|
return cacheSnapshot;
|
|
6605
6605
|
}
|
|
6606
6606
|
const getContextTagsAdapterFactory = (luvio) => function IndustriesContext__getContextTags(untrustedConfig, requestContext) {
|
|
6607
|
-
const config = validateAdapterConfig$
|
|
6607
|
+
const config = validateAdapterConfig$B(untrustedConfig, getContextTags_ConfigPropertyNames);
|
|
6608
6608
|
// Invalid or incomplete config
|
|
6609
6609
|
if (config === null) {
|
|
6610
6610
|
return null;
|
|
@@ -6613,7 +6613,7 @@ const getContextTagsAdapterFactory = (luvio) => function IndustriesContext__getC
|
|
|
6613
6613
|
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
6614
6614
|
};
|
|
6615
6615
|
|
|
6616
|
-
function validate$
|
|
6616
|
+
function validate$l(obj, path = 'ContextTagListInputRepresentation') {
|
|
6617
6617
|
const v_error = (() => {
|
|
6618
6618
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6619
6619
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6634,19 +6634,19 @@ function validate$j(obj, path = 'ContextTagListInputRepresentation') {
|
|
|
6634
6634
|
return v_error === undefined ? null : v_error;
|
|
6635
6635
|
}
|
|
6636
6636
|
|
|
6637
|
-
function select$
|
|
6638
|
-
return select$
|
|
6637
|
+
function select$D(luvio, params) {
|
|
6638
|
+
return select$F();
|
|
6639
6639
|
}
|
|
6640
|
-
function getResponseCacheKeys$
|
|
6640
|
+
function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
|
|
6641
6641
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
6642
6642
|
}
|
|
6643
|
-
function ingestSuccess$
|
|
6643
|
+
function ingestSuccess$s(luvio, resourceParams, response) {
|
|
6644
6644
|
const { body } = response;
|
|
6645
6645
|
const key = keyBuilderFromType$6(luvio, body);
|
|
6646
6646
|
luvio.storeIngest(key, ingest$9, body);
|
|
6647
6647
|
const snapshot = luvio.storeLookup({
|
|
6648
6648
|
recordId: key,
|
|
6649
|
-
node: select$
|
|
6649
|
+
node: select$D(),
|
|
6650
6650
|
variables: {},
|
|
6651
6651
|
});
|
|
6652
6652
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6657,7 +6657,7 @@ function ingestSuccess$r(luvio, resourceParams, response) {
|
|
|
6657
6657
|
deepFreeze(snapshot.data);
|
|
6658
6658
|
return snapshot;
|
|
6659
6659
|
}
|
|
6660
|
-
function createResourceRequest$
|
|
6660
|
+
function createResourceRequest$A(config) {
|
|
6661
6661
|
const headers = {};
|
|
6662
6662
|
return {
|
|
6663
6663
|
baseUri: '/services/data/v63.0',
|
|
@@ -6671,47 +6671,47 @@ function createResourceRequest$z(config) {
|
|
|
6671
6671
|
};
|
|
6672
6672
|
}
|
|
6673
6673
|
|
|
6674
|
-
const adapterName$
|
|
6674
|
+
const adapterName$A = 'updateContextTags';
|
|
6675
6675
|
const updateContextTags_ConfigPropertyMetadata = [
|
|
6676
6676
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6677
6677
|
generateParamConfigMetadata('contextTagInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
6678
6678
|
];
|
|
6679
|
-
const updateContextTags_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6680
|
-
const createResourceParams$
|
|
6681
|
-
function typeCheckConfig$
|
|
6679
|
+
const updateContextTags_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, updateContextTags_ConfigPropertyMetadata);
|
|
6680
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$R(updateContextTags_ConfigPropertyMetadata);
|
|
6681
|
+
function typeCheckConfig$A(untrustedConfig) {
|
|
6682
6682
|
const config = {};
|
|
6683
|
-
typeCheckConfig$
|
|
6683
|
+
typeCheckConfig$R(untrustedConfig, config, updateContextTags_ConfigPropertyMetadata);
|
|
6684
6684
|
const untrustedConfig_contextTagInput = untrustedConfig.contextTagInput;
|
|
6685
|
-
const referenceContextTagListInputRepresentationValidationError = validate$
|
|
6685
|
+
const referenceContextTagListInputRepresentationValidationError = validate$l(untrustedConfig_contextTagInput);
|
|
6686
6686
|
if (referenceContextTagListInputRepresentationValidationError === null) {
|
|
6687
6687
|
config.contextTagInput = untrustedConfig_contextTagInput;
|
|
6688
6688
|
}
|
|
6689
6689
|
return config;
|
|
6690
6690
|
}
|
|
6691
|
-
function validateAdapterConfig$
|
|
6691
|
+
function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
|
|
6692
6692
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6693
6693
|
return null;
|
|
6694
6694
|
}
|
|
6695
6695
|
if (process.env.NODE_ENV !== 'production') {
|
|
6696
6696
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6697
6697
|
}
|
|
6698
|
-
const config = typeCheckConfig$
|
|
6698
|
+
const config = typeCheckConfig$A(untrustedConfig);
|
|
6699
6699
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6700
6700
|
return null;
|
|
6701
6701
|
}
|
|
6702
6702
|
return config;
|
|
6703
6703
|
}
|
|
6704
|
-
function buildNetworkSnapshot$
|
|
6705
|
-
const resourceParams = createResourceParams$
|
|
6706
|
-
const request = createResourceRequest$
|
|
6704
|
+
function buildNetworkSnapshot$A(luvio, config, options) {
|
|
6705
|
+
const resourceParams = createResourceParams$A(config);
|
|
6706
|
+
const request = createResourceRequest$A(resourceParams);
|
|
6707
6707
|
return luvio.dispatchResourceRequest(request, options)
|
|
6708
6708
|
.then((response) => {
|
|
6709
6709
|
return luvio.handleSuccessResponse(() => {
|
|
6710
|
-
const snapshot = ingestSuccess$
|
|
6710
|
+
const snapshot = ingestSuccess$s(luvio, resourceParams, response);
|
|
6711
6711
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6712
6712
|
}, () => {
|
|
6713
6713
|
const cache = new StoreKeyMap();
|
|
6714
|
-
getResponseCacheKeys$
|
|
6714
|
+
getResponseCacheKeys$A(cache, luvio, resourceParams, response.body);
|
|
6715
6715
|
return cache;
|
|
6716
6716
|
});
|
|
6717
6717
|
}, (response) => {
|
|
@@ -6721,28 +6721,28 @@ function buildNetworkSnapshot$z(luvio, config, options) {
|
|
|
6721
6721
|
}
|
|
6722
6722
|
const updateContextTagsAdapterFactory = (luvio) => {
|
|
6723
6723
|
return function updateContextTags(untrustedConfig) {
|
|
6724
|
-
const config = validateAdapterConfig$
|
|
6724
|
+
const config = validateAdapterConfig$A(untrustedConfig, updateContextTags_ConfigPropertyNames);
|
|
6725
6725
|
// Invalid or incomplete config
|
|
6726
6726
|
if (config === null) {
|
|
6727
6727
|
throw new Error('Invalid config for "updateContextTags"');
|
|
6728
6728
|
}
|
|
6729
|
-
return buildNetworkSnapshot$
|
|
6729
|
+
return buildNetworkSnapshot$A(luvio, config);
|
|
6730
6730
|
};
|
|
6731
6731
|
};
|
|
6732
6732
|
|
|
6733
|
-
function select$
|
|
6734
|
-
return select$
|
|
6733
|
+
function select$C(luvio, params) {
|
|
6734
|
+
return select$F();
|
|
6735
6735
|
}
|
|
6736
|
-
function getResponseCacheKeys$
|
|
6736
|
+
function getResponseCacheKeys$z(storeKeyMap, luvio, resourceParams, response) {
|
|
6737
6737
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
6738
6738
|
}
|
|
6739
|
-
function ingestSuccess$
|
|
6739
|
+
function ingestSuccess$r(luvio, resourceParams, response) {
|
|
6740
6740
|
const { body } = response;
|
|
6741
6741
|
const key = keyBuilderFromType$6(luvio, body);
|
|
6742
6742
|
luvio.storeIngest(key, ingest$9, body);
|
|
6743
6743
|
const snapshot = luvio.storeLookup({
|
|
6744
6744
|
recordId: key,
|
|
6745
|
-
node: select$
|
|
6745
|
+
node: select$C(),
|
|
6746
6746
|
variables: {},
|
|
6747
6747
|
});
|
|
6748
6748
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6753,7 +6753,7 @@ function ingestSuccess$q(luvio, resourceParams, response) {
|
|
|
6753
6753
|
deepFreeze(snapshot.data);
|
|
6754
6754
|
return snapshot;
|
|
6755
6755
|
}
|
|
6756
|
-
function createResourceRequest$
|
|
6756
|
+
function createResourceRequest$z(config) {
|
|
6757
6757
|
const headers = {};
|
|
6758
6758
|
return {
|
|
6759
6759
|
baseUri: '/services/data/v63.0',
|
|
@@ -6767,47 +6767,47 @@ function createResourceRequest$y(config) {
|
|
|
6767
6767
|
};
|
|
6768
6768
|
}
|
|
6769
6769
|
|
|
6770
|
-
const adapterName$
|
|
6770
|
+
const adapterName$z = 'createContextTags';
|
|
6771
6771
|
const createContextTags_ConfigPropertyMetadata = [
|
|
6772
6772
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6773
6773
|
generateParamConfigMetadata('contextTagInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
6774
6774
|
];
|
|
6775
|
-
const createContextTags_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6776
|
-
const createResourceParams$
|
|
6777
|
-
function typeCheckConfig$
|
|
6775
|
+
const createContextTags_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, createContextTags_ConfigPropertyMetadata);
|
|
6776
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$R(createContextTags_ConfigPropertyMetadata);
|
|
6777
|
+
function typeCheckConfig$z(untrustedConfig) {
|
|
6778
6778
|
const config = {};
|
|
6779
|
-
typeCheckConfig$
|
|
6779
|
+
typeCheckConfig$R(untrustedConfig, config, createContextTags_ConfigPropertyMetadata);
|
|
6780
6780
|
const untrustedConfig_contextTagInput = untrustedConfig.contextTagInput;
|
|
6781
|
-
const referenceContextTagListInputRepresentationValidationError = validate$
|
|
6781
|
+
const referenceContextTagListInputRepresentationValidationError = validate$l(untrustedConfig_contextTagInput);
|
|
6782
6782
|
if (referenceContextTagListInputRepresentationValidationError === null) {
|
|
6783
6783
|
config.contextTagInput = untrustedConfig_contextTagInput;
|
|
6784
6784
|
}
|
|
6785
6785
|
return config;
|
|
6786
6786
|
}
|
|
6787
|
-
function validateAdapterConfig$
|
|
6787
|
+
function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
|
|
6788
6788
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6789
6789
|
return null;
|
|
6790
6790
|
}
|
|
6791
6791
|
if (process.env.NODE_ENV !== 'production') {
|
|
6792
6792
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6793
6793
|
}
|
|
6794
|
-
const config = typeCheckConfig$
|
|
6794
|
+
const config = typeCheckConfig$z(untrustedConfig);
|
|
6795
6795
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6796
6796
|
return null;
|
|
6797
6797
|
}
|
|
6798
6798
|
return config;
|
|
6799
6799
|
}
|
|
6800
|
-
function buildNetworkSnapshot$
|
|
6801
|
-
const resourceParams = createResourceParams$
|
|
6802
|
-
const request = createResourceRequest$
|
|
6800
|
+
function buildNetworkSnapshot$z(luvio, config, options) {
|
|
6801
|
+
const resourceParams = createResourceParams$z(config);
|
|
6802
|
+
const request = createResourceRequest$z(resourceParams);
|
|
6803
6803
|
return luvio.dispatchResourceRequest(request, options)
|
|
6804
6804
|
.then((response) => {
|
|
6805
6805
|
return luvio.handleSuccessResponse(() => {
|
|
6806
|
-
const snapshot = ingestSuccess$
|
|
6806
|
+
const snapshot = ingestSuccess$r(luvio, resourceParams, response);
|
|
6807
6807
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6808
6808
|
}, () => {
|
|
6809
6809
|
const cache = new StoreKeyMap();
|
|
6810
|
-
getResponseCacheKeys$
|
|
6810
|
+
getResponseCacheKeys$z(cache, luvio, resourceParams, response.body);
|
|
6811
6811
|
return cache;
|
|
6812
6812
|
});
|
|
6813
6813
|
}, (response) => {
|
|
@@ -6817,12 +6817,12 @@ function buildNetworkSnapshot$y(luvio, config, options) {
|
|
|
6817
6817
|
}
|
|
6818
6818
|
const createContextTagsAdapterFactory = (luvio) => {
|
|
6819
6819
|
return function createContextTags(untrustedConfig) {
|
|
6820
|
-
const config = validateAdapterConfig$
|
|
6820
|
+
const config = validateAdapterConfig$z(untrustedConfig, createContextTags_ConfigPropertyNames);
|
|
6821
6821
|
// Invalid or incomplete config
|
|
6822
6822
|
if (config === null) {
|
|
6823
6823
|
throw new Error('Invalid config for "createContextTags"');
|
|
6824
6824
|
}
|
|
6825
|
-
return buildNetworkSnapshot$
|
|
6825
|
+
return buildNetworkSnapshot$z(luvio, config);
|
|
6826
6826
|
};
|
|
6827
6827
|
};
|
|
6828
6828
|
|
|
@@ -6831,7 +6831,7 @@ function keyBuilder$B(luvio, params) {
|
|
|
6831
6831
|
id: params.urlParams.contextNodeId
|
|
6832
6832
|
});
|
|
6833
6833
|
}
|
|
6834
|
-
function getResponseCacheKeys$
|
|
6834
|
+
function getResponseCacheKeys$y(cacheKeyMap, luvio, resourceParams) {
|
|
6835
6835
|
const key = keyBuilder$B(luvio, resourceParams);
|
|
6836
6836
|
cacheKeyMap.set(key, {
|
|
6837
6837
|
namespace: keyPrefix,
|
|
@@ -6843,7 +6843,7 @@ function evictSuccess$7(luvio, resourceParams) {
|
|
|
6843
6843
|
const key = keyBuilder$B(luvio, resourceParams);
|
|
6844
6844
|
luvio.storeEvict(key);
|
|
6845
6845
|
}
|
|
6846
|
-
function createResourceRequest$
|
|
6846
|
+
function createResourceRequest$y(config) {
|
|
6847
6847
|
const headers = {};
|
|
6848
6848
|
return {
|
|
6849
6849
|
baseUri: '/services/data/v63.0',
|
|
@@ -6857,34 +6857,34 @@ function createResourceRequest$x(config) {
|
|
|
6857
6857
|
};
|
|
6858
6858
|
}
|
|
6859
6859
|
|
|
6860
|
-
const adapterName$
|
|
6860
|
+
const adapterName$y = 'deleteContextServiceNode';
|
|
6861
6861
|
const deleteContextServiceNode_ConfigPropertyMetadata = [
|
|
6862
6862
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6863
6863
|
generateParamConfigMetadata('contextNodeId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6864
6864
|
];
|
|
6865
|
-
const deleteContextServiceNode_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6866
|
-
const createResourceParams$
|
|
6867
|
-
function typeCheckConfig$
|
|
6865
|
+
const deleteContextServiceNode_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, deleteContextServiceNode_ConfigPropertyMetadata);
|
|
6866
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$R(deleteContextServiceNode_ConfigPropertyMetadata);
|
|
6867
|
+
function typeCheckConfig$y(untrustedConfig) {
|
|
6868
6868
|
const config = {};
|
|
6869
|
-
typeCheckConfig$
|
|
6869
|
+
typeCheckConfig$R(untrustedConfig, config, deleteContextServiceNode_ConfigPropertyMetadata);
|
|
6870
6870
|
return config;
|
|
6871
6871
|
}
|
|
6872
|
-
function validateAdapterConfig$
|
|
6872
|
+
function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
6873
6873
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6874
6874
|
return null;
|
|
6875
6875
|
}
|
|
6876
6876
|
if (process.env.NODE_ENV !== 'production') {
|
|
6877
6877
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6878
6878
|
}
|
|
6879
|
-
const config = typeCheckConfig$
|
|
6879
|
+
const config = typeCheckConfig$y(untrustedConfig);
|
|
6880
6880
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6881
6881
|
return null;
|
|
6882
6882
|
}
|
|
6883
6883
|
return config;
|
|
6884
6884
|
}
|
|
6885
|
-
function buildNetworkSnapshot$
|
|
6886
|
-
const resourceParams = createResourceParams$
|
|
6887
|
-
const request = createResourceRequest$
|
|
6885
|
+
function buildNetworkSnapshot$y(luvio, config, options) {
|
|
6886
|
+
const resourceParams = createResourceParams$y(config);
|
|
6887
|
+
const request = createResourceRequest$y(resourceParams);
|
|
6888
6888
|
return luvio.dispatchResourceRequest(request, options)
|
|
6889
6889
|
.then(() => {
|
|
6890
6890
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -6892,7 +6892,7 @@ function buildNetworkSnapshot$x(luvio, config, options) {
|
|
|
6892
6892
|
return luvio.storeBroadcast();
|
|
6893
6893
|
}, () => {
|
|
6894
6894
|
const cache = new StoreKeyMap();
|
|
6895
|
-
getResponseCacheKeys$
|
|
6895
|
+
getResponseCacheKeys$y(cache, luvio, resourceParams);
|
|
6896
6896
|
return cache;
|
|
6897
6897
|
});
|
|
6898
6898
|
}, (response) => {
|
|
@@ -6902,33 +6902,33 @@ function buildNetworkSnapshot$x(luvio, config, options) {
|
|
|
6902
6902
|
}
|
|
6903
6903
|
const deleteContextServiceNodeAdapterFactory = (luvio) => {
|
|
6904
6904
|
return function IndustriesContextdeleteContextServiceNode(untrustedConfig) {
|
|
6905
|
-
const config = validateAdapterConfig$
|
|
6905
|
+
const config = validateAdapterConfig$y(untrustedConfig, deleteContextServiceNode_ConfigPropertyNames);
|
|
6906
6906
|
// Invalid or incomplete config
|
|
6907
6907
|
if (config === null) {
|
|
6908
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
6908
|
+
throw new Error(`Invalid config for "${adapterName$y}"`);
|
|
6909
6909
|
}
|
|
6910
|
-
return buildNetworkSnapshot$
|
|
6910
|
+
return buildNetworkSnapshot$y(luvio, config);
|
|
6911
6911
|
};
|
|
6912
6912
|
};
|
|
6913
6913
|
|
|
6914
|
-
function select$
|
|
6915
|
-
return select$
|
|
6914
|
+
function select$B(luvio, params) {
|
|
6915
|
+
return select$R();
|
|
6916
6916
|
}
|
|
6917
6917
|
function keyBuilder$A(luvio, params) {
|
|
6918
6918
|
return keyBuilder$P(luvio, {
|
|
6919
6919
|
id: params.urlParams.contextNodeId
|
|
6920
6920
|
});
|
|
6921
6921
|
}
|
|
6922
|
-
function getResponseCacheKeys$
|
|
6922
|
+
function getResponseCacheKeys$x(storeKeyMap, luvio, resourceParams, response) {
|
|
6923
6923
|
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
6924
6924
|
}
|
|
6925
|
-
function ingestSuccess$
|
|
6925
|
+
function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
|
|
6926
6926
|
const { body } = response;
|
|
6927
6927
|
const key = keyBuilder$A(luvio, resourceParams);
|
|
6928
6928
|
luvio.storeIngest(key, ingest$e, body);
|
|
6929
6929
|
const snapshot = luvio.storeLookup({
|
|
6930
6930
|
recordId: key,
|
|
6931
|
-
node: select$
|
|
6931
|
+
node: select$B(),
|
|
6932
6932
|
variables: {},
|
|
6933
6933
|
}, snapshotRefresh);
|
|
6934
6934
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6951,7 +6951,7 @@ function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
|
6951
6951
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6952
6952
|
return errorSnapshot;
|
|
6953
6953
|
}
|
|
6954
|
-
function createResourceRequest$
|
|
6954
|
+
function createResourceRequest$x(config) {
|
|
6955
6955
|
const headers = {};
|
|
6956
6956
|
return {
|
|
6957
6957
|
baseUri: '/services/data/v63.0',
|
|
@@ -6965,61 +6965,61 @@ function createResourceRequest$w(config) {
|
|
|
6965
6965
|
};
|
|
6966
6966
|
}
|
|
6967
6967
|
|
|
6968
|
-
const adapterName$
|
|
6968
|
+
const adapterName$x = 'getContextServiceNode';
|
|
6969
6969
|
const getContextServiceNode_ConfigPropertyMetadata = [
|
|
6970
6970
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6971
6971
|
generateParamConfigMetadata('contextNodeId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6972
6972
|
];
|
|
6973
|
-
const getContextServiceNode_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6974
|
-
const createResourceParams$
|
|
6973
|
+
const getContextServiceNode_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, getContextServiceNode_ConfigPropertyMetadata);
|
|
6974
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$R(getContextServiceNode_ConfigPropertyMetadata);
|
|
6975
6975
|
function keyBuilder$z(luvio, config) {
|
|
6976
|
-
const resourceParams = createResourceParams$
|
|
6976
|
+
const resourceParams = createResourceParams$x(config);
|
|
6977
6977
|
return keyBuilder$A(luvio, resourceParams);
|
|
6978
6978
|
}
|
|
6979
|
-
function typeCheckConfig$
|
|
6979
|
+
function typeCheckConfig$x(untrustedConfig) {
|
|
6980
6980
|
const config = {};
|
|
6981
|
-
typeCheckConfig$
|
|
6981
|
+
typeCheckConfig$R(untrustedConfig, config, getContextServiceNode_ConfigPropertyMetadata);
|
|
6982
6982
|
return config;
|
|
6983
6983
|
}
|
|
6984
|
-
function validateAdapterConfig$
|
|
6984
|
+
function validateAdapterConfig$x(untrustedConfig, configPropertyNames) {
|
|
6985
6985
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6986
6986
|
return null;
|
|
6987
6987
|
}
|
|
6988
6988
|
if (process.env.NODE_ENV !== 'production') {
|
|
6989
6989
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6990
6990
|
}
|
|
6991
|
-
const config = typeCheckConfig$
|
|
6991
|
+
const config = typeCheckConfig$x(untrustedConfig);
|
|
6992
6992
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6993
6993
|
return null;
|
|
6994
6994
|
}
|
|
6995
6995
|
return config;
|
|
6996
6996
|
}
|
|
6997
6997
|
function adapterFragment$b(luvio, config) {
|
|
6998
|
-
createResourceParams$
|
|
6999
|
-
return select$
|
|
6998
|
+
createResourceParams$x(config);
|
|
6999
|
+
return select$B();
|
|
7000
7000
|
}
|
|
7001
7001
|
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
7002
|
-
const snapshot = ingestSuccess$
|
|
7002
|
+
const snapshot = ingestSuccess$q(luvio, resourceParams, response, {
|
|
7003
7003
|
config,
|
|
7004
|
-
resolve: () => buildNetworkSnapshot$
|
|
7004
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
7005
7005
|
});
|
|
7006
7006
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
7007
7007
|
}
|
|
7008
7008
|
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
7009
7009
|
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
7010
7010
|
config,
|
|
7011
|
-
resolve: () => buildNetworkSnapshot$
|
|
7011
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
7012
7012
|
});
|
|
7013
7013
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
7014
7014
|
}
|
|
7015
|
-
function buildNetworkSnapshot$
|
|
7016
|
-
const resourceParams = createResourceParams$
|
|
7017
|
-
const request = createResourceRequest$
|
|
7015
|
+
function buildNetworkSnapshot$x(luvio, config, options) {
|
|
7016
|
+
const resourceParams = createResourceParams$x(config);
|
|
7017
|
+
const request = createResourceRequest$x(resourceParams);
|
|
7018
7018
|
return luvio.dispatchResourceRequest(request, options)
|
|
7019
7019
|
.then((response) => {
|
|
7020
7020
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
7021
7021
|
const cache = new StoreKeyMap();
|
|
7022
|
-
getResponseCacheKeys$
|
|
7022
|
+
getResponseCacheKeys$x(cache, luvio, resourceParams, response.body);
|
|
7023
7023
|
return cache;
|
|
7024
7024
|
});
|
|
7025
7025
|
}, (response) => {
|
|
@@ -7027,7 +7027,7 @@ function buildNetworkSnapshot$w(luvio, config, options) {
|
|
|
7027
7027
|
});
|
|
7028
7028
|
}
|
|
7029
7029
|
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
7030
|
-
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
7030
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$x, undefined, false);
|
|
7031
7031
|
}
|
|
7032
7032
|
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
7033
7033
|
const { luvio, config } = context;
|
|
@@ -7038,12 +7038,12 @@ function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
|
7038
7038
|
};
|
|
7039
7039
|
const cacheSnapshot = storeLookup(selector, {
|
|
7040
7040
|
config,
|
|
7041
|
-
resolve: () => buildNetworkSnapshot$
|
|
7041
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
7042
7042
|
});
|
|
7043
7043
|
return cacheSnapshot;
|
|
7044
7044
|
}
|
|
7045
7045
|
const getContextServiceNodeAdapterFactory = (luvio) => function IndustriesContext__getContextServiceNode(untrustedConfig, requestContext) {
|
|
7046
|
-
const config = validateAdapterConfig$
|
|
7046
|
+
const config = validateAdapterConfig$x(untrustedConfig, getContextServiceNode_ConfigPropertyNames);
|
|
7047
7047
|
// Invalid or incomplete config
|
|
7048
7048
|
if (config === null) {
|
|
7049
7049
|
return null;
|
|
@@ -7057,7 +7057,7 @@ function keyBuilder$y(luvio, params) {
|
|
|
7057
7057
|
id: params.urlParams.contextTagId
|
|
7058
7058
|
});
|
|
7059
7059
|
}
|
|
7060
|
-
function getResponseCacheKeys$
|
|
7060
|
+
function getResponseCacheKeys$w(cacheKeyMap, luvio, resourceParams) {
|
|
7061
7061
|
const key = keyBuilder$y(luvio, resourceParams);
|
|
7062
7062
|
cacheKeyMap.set(key, {
|
|
7063
7063
|
namespace: keyPrefix,
|
|
@@ -7069,7 +7069,7 @@ function evictSuccess$6(luvio, resourceParams) {
|
|
|
7069
7069
|
const key = keyBuilder$y(luvio, resourceParams);
|
|
7070
7070
|
luvio.storeEvict(key);
|
|
7071
7071
|
}
|
|
7072
|
-
function createResourceRequest$
|
|
7072
|
+
function createResourceRequest$w(config) {
|
|
7073
7073
|
const headers = {};
|
|
7074
7074
|
return {
|
|
7075
7075
|
baseUri: '/services/data/v63.0',
|
|
@@ -7083,34 +7083,34 @@ function createResourceRequest$v(config) {
|
|
|
7083
7083
|
};
|
|
7084
7084
|
}
|
|
7085
7085
|
|
|
7086
|
-
const adapterName$
|
|
7086
|
+
const adapterName$w = 'deleteContextServiceTag';
|
|
7087
7087
|
const deleteContextServiceTag_ConfigPropertyMetadata = [
|
|
7088
7088
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7089
7089
|
generateParamConfigMetadata('contextTagId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7090
7090
|
];
|
|
7091
|
-
const deleteContextServiceTag_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
7092
|
-
const createResourceParams$
|
|
7093
|
-
function typeCheckConfig$
|
|
7091
|
+
const deleteContextServiceTag_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, deleteContextServiceTag_ConfigPropertyMetadata);
|
|
7092
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$R(deleteContextServiceTag_ConfigPropertyMetadata);
|
|
7093
|
+
function typeCheckConfig$w(untrustedConfig) {
|
|
7094
7094
|
const config = {};
|
|
7095
|
-
typeCheckConfig$
|
|
7095
|
+
typeCheckConfig$R(untrustedConfig, config, deleteContextServiceTag_ConfigPropertyMetadata);
|
|
7096
7096
|
return config;
|
|
7097
7097
|
}
|
|
7098
|
-
function validateAdapterConfig$
|
|
7098
|
+
function validateAdapterConfig$w(untrustedConfig, configPropertyNames) {
|
|
7099
7099
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
7100
7100
|
return null;
|
|
7101
7101
|
}
|
|
7102
7102
|
if (process.env.NODE_ENV !== 'production') {
|
|
7103
7103
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
7104
7104
|
}
|
|
7105
|
-
const config = typeCheckConfig$
|
|
7105
|
+
const config = typeCheckConfig$w(untrustedConfig);
|
|
7106
7106
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
7107
7107
|
return null;
|
|
7108
7108
|
}
|
|
7109
7109
|
return config;
|
|
7110
7110
|
}
|
|
7111
|
-
function buildNetworkSnapshot$
|
|
7112
|
-
const resourceParams = createResourceParams$
|
|
7113
|
-
const request = createResourceRequest$
|
|
7111
|
+
function buildNetworkSnapshot$w(luvio, config, options) {
|
|
7112
|
+
const resourceParams = createResourceParams$w(config);
|
|
7113
|
+
const request = createResourceRequest$w(resourceParams);
|
|
7114
7114
|
return luvio.dispatchResourceRequest(request, options)
|
|
7115
7115
|
.then(() => {
|
|
7116
7116
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -7118,7 +7118,7 @@ function buildNetworkSnapshot$v(luvio, config, options) {
|
|
|
7118
7118
|
return luvio.storeBroadcast();
|
|
7119
7119
|
}, () => {
|
|
7120
7120
|
const cache = new StoreKeyMap();
|
|
7121
|
-
getResponseCacheKeys$
|
|
7121
|
+
getResponseCacheKeys$w(cache, luvio, resourceParams);
|
|
7122
7122
|
return cache;
|
|
7123
7123
|
});
|
|
7124
7124
|
}, (response) => {
|
|
@@ -7128,33 +7128,33 @@ function buildNetworkSnapshot$v(luvio, config, options) {
|
|
|
7128
7128
|
}
|
|
7129
7129
|
const deleteContextServiceTagAdapterFactory = (luvio) => {
|
|
7130
7130
|
return function IndustriesContextdeleteContextServiceTag(untrustedConfig) {
|
|
7131
|
-
const config = validateAdapterConfig$
|
|
7131
|
+
const config = validateAdapterConfig$w(untrustedConfig, deleteContextServiceTag_ConfigPropertyNames);
|
|
7132
7132
|
// Invalid or incomplete config
|
|
7133
7133
|
if (config === null) {
|
|
7134
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
7134
|
+
throw new Error(`Invalid config for "${adapterName$w}"`);
|
|
7135
7135
|
}
|
|
7136
|
-
return buildNetworkSnapshot$
|
|
7136
|
+
return buildNetworkSnapshot$w(luvio, config);
|
|
7137
7137
|
};
|
|
7138
7138
|
};
|
|
7139
7139
|
|
|
7140
|
-
function select$
|
|
7141
|
-
return select$
|
|
7140
|
+
function select$A(luvio, params) {
|
|
7141
|
+
return select$T();
|
|
7142
7142
|
}
|
|
7143
7143
|
function keyBuilder$x(luvio, params) {
|
|
7144
7144
|
return keyBuilder$R(luvio, {
|
|
7145
7145
|
id: params.urlParams.contextTagId
|
|
7146
7146
|
});
|
|
7147
7147
|
}
|
|
7148
|
-
function getResponseCacheKeys$
|
|
7148
|
+
function getResponseCacheKeys$v(storeKeyMap, luvio, resourceParams, response) {
|
|
7149
7149
|
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
7150
7150
|
}
|
|
7151
|
-
function ingestSuccess$
|
|
7151
|
+
function ingestSuccess$p(luvio, resourceParams, response, snapshotRefresh) {
|
|
7152
7152
|
const { body } = response;
|
|
7153
7153
|
const key = keyBuilder$x(luvio, resourceParams);
|
|
7154
7154
|
luvio.storeIngest(key, ingest$g, body);
|
|
7155
7155
|
const snapshot = luvio.storeLookup({
|
|
7156
7156
|
recordId: key,
|
|
7157
|
-
node: select$
|
|
7157
|
+
node: select$A(),
|
|
7158
7158
|
variables: {},
|
|
7159
7159
|
}, snapshotRefresh);
|
|
7160
7160
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -7177,7 +7177,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
|
7177
7177
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
7178
7178
|
return errorSnapshot;
|
|
7179
7179
|
}
|
|
7180
|
-
function createResourceRequest$
|
|
7180
|
+
function createResourceRequest$v(config) {
|
|
7181
7181
|
const headers = {};
|
|
7182
7182
|
return {
|
|
7183
7183
|
baseUri: '/services/data/v63.0',
|
|
@@ -7191,61 +7191,61 @@ function createResourceRequest$u(config) {
|
|
|
7191
7191
|
};
|
|
7192
7192
|
}
|
|
7193
7193
|
|
|
7194
|
-
const adapterName$
|
|
7194
|
+
const adapterName$v = 'getContextServiceTag';
|
|
7195
7195
|
const getContextServiceTag_ConfigPropertyMetadata = [
|
|
7196
7196
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7197
7197
|
generateParamConfigMetadata('contextTagId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7198
7198
|
];
|
|
7199
|
-
const getContextServiceTag_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
7200
|
-
const createResourceParams$
|
|
7199
|
+
const getContextServiceTag_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, getContextServiceTag_ConfigPropertyMetadata);
|
|
7200
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$R(getContextServiceTag_ConfigPropertyMetadata);
|
|
7201
7201
|
function keyBuilder$w(luvio, config) {
|
|
7202
|
-
const resourceParams = createResourceParams$
|
|
7202
|
+
const resourceParams = createResourceParams$v(config);
|
|
7203
7203
|
return keyBuilder$x(luvio, resourceParams);
|
|
7204
7204
|
}
|
|
7205
|
-
function typeCheckConfig$
|
|
7205
|
+
function typeCheckConfig$v(untrustedConfig) {
|
|
7206
7206
|
const config = {};
|
|
7207
|
-
typeCheckConfig$
|
|
7207
|
+
typeCheckConfig$R(untrustedConfig, config, getContextServiceTag_ConfigPropertyMetadata);
|
|
7208
7208
|
return config;
|
|
7209
7209
|
}
|
|
7210
|
-
function validateAdapterConfig$
|
|
7210
|
+
function validateAdapterConfig$v(untrustedConfig, configPropertyNames) {
|
|
7211
7211
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
7212
7212
|
return null;
|
|
7213
7213
|
}
|
|
7214
7214
|
if (process.env.NODE_ENV !== 'production') {
|
|
7215
7215
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
7216
7216
|
}
|
|
7217
|
-
const config = typeCheckConfig$
|
|
7217
|
+
const config = typeCheckConfig$v(untrustedConfig);
|
|
7218
7218
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
7219
7219
|
return null;
|
|
7220
7220
|
}
|
|
7221
7221
|
return config;
|
|
7222
7222
|
}
|
|
7223
7223
|
function adapterFragment$a(luvio, config) {
|
|
7224
|
-
createResourceParams$
|
|
7225
|
-
return select$
|
|
7224
|
+
createResourceParams$v(config);
|
|
7225
|
+
return select$A();
|
|
7226
7226
|
}
|
|
7227
7227
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
7228
|
-
const snapshot = ingestSuccess$
|
|
7228
|
+
const snapshot = ingestSuccess$p(luvio, resourceParams, response, {
|
|
7229
7229
|
config,
|
|
7230
|
-
resolve: () => buildNetworkSnapshot$
|
|
7230
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions)
|
|
7231
7231
|
});
|
|
7232
7232
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
7233
7233
|
}
|
|
7234
7234
|
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
7235
7235
|
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
7236
7236
|
config,
|
|
7237
|
-
resolve: () => buildNetworkSnapshot$
|
|
7237
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions)
|
|
7238
7238
|
});
|
|
7239
7239
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
7240
7240
|
}
|
|
7241
|
-
function buildNetworkSnapshot$
|
|
7242
|
-
const resourceParams = createResourceParams$
|
|
7243
|
-
const request = createResourceRequest$
|
|
7241
|
+
function buildNetworkSnapshot$v(luvio, config, options) {
|
|
7242
|
+
const resourceParams = createResourceParams$v(config);
|
|
7243
|
+
const request = createResourceRequest$v(resourceParams);
|
|
7244
7244
|
return luvio.dispatchResourceRequest(request, options)
|
|
7245
7245
|
.then((response) => {
|
|
7246
7246
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
7247
7247
|
const cache = new StoreKeyMap();
|
|
7248
|
-
getResponseCacheKeys$
|
|
7248
|
+
getResponseCacheKeys$v(cache, luvio, resourceParams, response.body);
|
|
7249
7249
|
return cache;
|
|
7250
7250
|
});
|
|
7251
7251
|
}, (response) => {
|
|
@@ -7253,7 +7253,7 @@ function buildNetworkSnapshot$u(luvio, config, options) {
|
|
|
7253
7253
|
});
|
|
7254
7254
|
}
|
|
7255
7255
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
7256
|
-
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
7256
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$v, undefined, false);
|
|
7257
7257
|
}
|
|
7258
7258
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
7259
7259
|
const { luvio, config } = context;
|
|
@@ -7264,12 +7264,12 @@ function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
|
7264
7264
|
};
|
|
7265
7265
|
const cacheSnapshot = storeLookup(selector, {
|
|
7266
7266
|
config,
|
|
7267
|
-
resolve: () => buildNetworkSnapshot$
|
|
7267
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions)
|
|
7268
7268
|
});
|
|
7269
7269
|
return cacheSnapshot;
|
|
7270
7270
|
}
|
|
7271
7271
|
const getContextServiceTagAdapterFactory = (luvio) => function IndustriesContext__getContextServiceTag(untrustedConfig, requestContext) {
|
|
7272
|
-
const config = validateAdapterConfig$
|
|
7272
|
+
const config = validateAdapterConfig$v(untrustedConfig, getContextServiceTag_ConfigPropertyNames);
|
|
7273
7273
|
// Invalid or incomplete config
|
|
7274
7274
|
if (config === null) {
|
|
7275
7275
|
return null;
|
|
@@ -7279,7 +7279,7 @@ const getContextServiceTagAdapterFactory = (luvio) => function IndustriesContext
|
|
|
7279
7279
|
};
|
|
7280
7280
|
|
|
7281
7281
|
const VERSION$a = "6b02738fb793fef48f1ebf9412aba59c";
|
|
7282
|
-
function validate$
|
|
7282
|
+
function validate$k(obj, path = 'DynamicAttributeByNodeSearchResultRepresentation') {
|
|
7283
7283
|
const v_error = (() => {
|
|
7284
7284
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7285
7285
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7324,7 +7324,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
7324
7324
|
}
|
|
7325
7325
|
return input;
|
|
7326
7326
|
}
|
|
7327
|
-
const select$
|
|
7327
|
+
const select$z = function DynamicAttributeByNodeSearchResultRepresentationSelect() {
|
|
7328
7328
|
return {
|
|
7329
7329
|
kind: 'Fragment',
|
|
7330
7330
|
version: VERSION$a,
|
|
@@ -7334,7 +7334,7 @@ const select$y = function DynamicAttributeByNodeSearchResultRepresentationSelect
|
|
|
7334
7334
|
name: 'dynamicContextAttributes',
|
|
7335
7335
|
kind: 'Link',
|
|
7336
7336
|
plural: true,
|
|
7337
|
-
fragment: select$
|
|
7337
|
+
fragment: select$S()
|
|
7338
7338
|
},
|
|
7339
7339
|
{
|
|
7340
7340
|
name: 'nodeName',
|
|
@@ -7363,7 +7363,7 @@ function equals$a(existing, incoming) {
|
|
|
7363
7363
|
}
|
|
7364
7364
|
const ingest$8 = function DynamicAttributeByNodeSearchResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7365
7365
|
if (process.env.NODE_ENV !== 'production') {
|
|
7366
|
-
const validateError = validate$
|
|
7366
|
+
const validateError = validate$k(input);
|
|
7367
7367
|
if (validateError !== null) {
|
|
7368
7368
|
throw validateError;
|
|
7369
7369
|
}
|
|
@@ -7388,7 +7388,7 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7388
7388
|
}
|
|
7389
7389
|
|
|
7390
7390
|
const VERSION$9 = "f481df563d73ee379020a8f181180b5b";
|
|
7391
|
-
function validate$
|
|
7391
|
+
function validate$j(obj, path = 'DynamicAttributeByMappingSearchResultRepresentation') {
|
|
7392
7392
|
const v_error = (() => {
|
|
7393
7393
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7394
7394
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7433,7 +7433,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
7433
7433
|
}
|
|
7434
7434
|
return input;
|
|
7435
7435
|
}
|
|
7436
|
-
const select$
|
|
7436
|
+
const select$y = function DynamicAttributeByMappingSearchResultRepresentationSelect() {
|
|
7437
7437
|
return {
|
|
7438
7438
|
kind: 'Fragment',
|
|
7439
7439
|
version: VERSION$9,
|
|
@@ -7443,7 +7443,7 @@ const select$x = function DynamicAttributeByMappingSearchResultRepresentationSel
|
|
|
7443
7443
|
name: 'dynamicAttributeByNodeSearchResults',
|
|
7444
7444
|
kind: 'Link',
|
|
7445
7445
|
plural: true,
|
|
7446
|
-
fragment: select$
|
|
7446
|
+
fragment: select$z()
|
|
7447
7447
|
},
|
|
7448
7448
|
{
|
|
7449
7449
|
name: 'mappingIdOrName',
|
|
@@ -7472,7 +7472,7 @@ function equals$9(existing, incoming) {
|
|
|
7472
7472
|
}
|
|
7473
7473
|
const ingest$7 = function DynamicAttributeByMappingSearchResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7474
7474
|
if (process.env.NODE_ENV !== 'production') {
|
|
7475
|
-
const validateError = validate$
|
|
7475
|
+
const validateError = validate$j(input);
|
|
7476
7476
|
if (validateError !== null) {
|
|
7477
7477
|
throw validateError;
|
|
7478
7478
|
}
|
|
@@ -7498,7 +7498,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7498
7498
|
|
|
7499
7499
|
const TTL$6 = 100;
|
|
7500
7500
|
const VERSION$8 = "e51ab88fcee2a0fe63212268fc4ce730";
|
|
7501
|
-
function validate$
|
|
7501
|
+
function validate$i(obj, path = 'DynamicAttributeSearchResultRepresentation') {
|
|
7502
7502
|
const v_error = (() => {
|
|
7503
7503
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7504
7504
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7562,7 +7562,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7562
7562
|
}
|
|
7563
7563
|
return input;
|
|
7564
7564
|
}
|
|
7565
|
-
const select$
|
|
7565
|
+
const select$x = function DynamicAttributeSearchResultRepresentationSelect() {
|
|
7566
7566
|
return {
|
|
7567
7567
|
kind: 'Fragment',
|
|
7568
7568
|
version: VERSION$8,
|
|
@@ -7572,7 +7572,7 @@ const select$w = function DynamicAttributeSearchResultRepresentationSelect() {
|
|
|
7572
7572
|
name: 'dynAttributeByMappingSearchResults',
|
|
7573
7573
|
kind: 'Link',
|
|
7574
7574
|
plural: true,
|
|
7575
|
-
fragment: select$
|
|
7575
|
+
fragment: select$y()
|
|
7576
7576
|
},
|
|
7577
7577
|
{
|
|
7578
7578
|
name: 'dynamicAttributeSearchResultId',
|
|
@@ -7619,7 +7619,7 @@ function equals$8(existing, incoming) {
|
|
|
7619
7619
|
}
|
|
7620
7620
|
const ingest$6 = function DynamicAttributeSearchResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7621
7621
|
if (process.env.NODE_ENV !== 'production') {
|
|
7622
|
-
const validateError = validate$
|
|
7622
|
+
const validateError = validate$i(input);
|
|
7623
7623
|
if (validateError !== null) {
|
|
7624
7624
|
throw validateError;
|
|
7625
7625
|
}
|
|
@@ -7643,24 +7643,24 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7643
7643
|
}
|
|
7644
7644
|
}
|
|
7645
7645
|
|
|
7646
|
-
function select$
|
|
7647
|
-
return select$
|
|
7646
|
+
function select$w(luvio, params) {
|
|
7647
|
+
return select$x();
|
|
7648
7648
|
}
|
|
7649
7649
|
function keyBuilder$u(luvio, params) {
|
|
7650
7650
|
return keyBuilder$v(luvio, {
|
|
7651
7651
|
id: params.urlParams.contextDefinitionId
|
|
7652
7652
|
});
|
|
7653
7653
|
}
|
|
7654
|
-
function getResponseCacheKeys$
|
|
7654
|
+
function getResponseCacheKeys$u(storeKeyMap, luvio, resourceParams, response) {
|
|
7655
7655
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
7656
7656
|
}
|
|
7657
|
-
function ingestSuccess$
|
|
7657
|
+
function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
7658
7658
|
const { body } = response;
|
|
7659
7659
|
const key = keyBuilder$u(luvio, resourceParams);
|
|
7660
7660
|
luvio.storeIngest(key, ingest$6, body);
|
|
7661
7661
|
const snapshot = luvio.storeLookup({
|
|
7662
7662
|
recordId: key,
|
|
7663
|
-
node: select$
|
|
7663
|
+
node: select$w(),
|
|
7664
7664
|
variables: {},
|
|
7665
7665
|
}, snapshotRefresh);
|
|
7666
7666
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -7683,7 +7683,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
|
7683
7683
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
7684
7684
|
return errorSnapshot;
|
|
7685
7685
|
}
|
|
7686
|
-
function createResourceRequest$
|
|
7686
|
+
function createResourceRequest$u(config) {
|
|
7687
7687
|
const headers = {};
|
|
7688
7688
|
return {
|
|
7689
7689
|
baseUri: '/services/data/v63.0',
|
|
@@ -7697,7 +7697,7 @@ function createResourceRequest$t(config) {
|
|
|
7697
7697
|
};
|
|
7698
7698
|
}
|
|
7699
7699
|
|
|
7700
|
-
const adapterName$
|
|
7700
|
+
const adapterName$u = 'getDynamicAttributes';
|
|
7701
7701
|
const getDynamicAttributes_ConfigPropertyMetadata = [
|
|
7702
7702
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7703
7703
|
generateParamConfigMetadata('keyword', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -7705,56 +7705,56 @@ const getDynamicAttributes_ConfigPropertyMetadata = [
|
|
|
7705
7705
|
generateParamConfigMetadata('mappingIdOrName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7706
7706
|
generateParamConfigMetadata('nodeName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7707
7707
|
];
|
|
7708
|
-
const getDynamicAttributes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
7709
|
-
const createResourceParams$
|
|
7708
|
+
const getDynamicAttributes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, getDynamicAttributes_ConfigPropertyMetadata);
|
|
7709
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$R(getDynamicAttributes_ConfigPropertyMetadata);
|
|
7710
7710
|
function keyBuilder$t(luvio, config) {
|
|
7711
|
-
const resourceParams = createResourceParams$
|
|
7711
|
+
const resourceParams = createResourceParams$u(config);
|
|
7712
7712
|
return keyBuilder$u(luvio, resourceParams);
|
|
7713
7713
|
}
|
|
7714
|
-
function typeCheckConfig$
|
|
7714
|
+
function typeCheckConfig$u(untrustedConfig) {
|
|
7715
7715
|
const config = {};
|
|
7716
|
-
typeCheckConfig$
|
|
7716
|
+
typeCheckConfig$R(untrustedConfig, config, getDynamicAttributes_ConfigPropertyMetadata);
|
|
7717
7717
|
return config;
|
|
7718
7718
|
}
|
|
7719
|
-
function validateAdapterConfig$
|
|
7719
|
+
function validateAdapterConfig$u(untrustedConfig, configPropertyNames) {
|
|
7720
7720
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
7721
7721
|
return null;
|
|
7722
7722
|
}
|
|
7723
7723
|
if (process.env.NODE_ENV !== 'production') {
|
|
7724
7724
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
7725
7725
|
}
|
|
7726
|
-
const config = typeCheckConfig$
|
|
7726
|
+
const config = typeCheckConfig$u(untrustedConfig);
|
|
7727
7727
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
7728
7728
|
return null;
|
|
7729
7729
|
}
|
|
7730
7730
|
return config;
|
|
7731
7731
|
}
|
|
7732
7732
|
function adapterFragment$9(luvio, config) {
|
|
7733
|
-
createResourceParams$
|
|
7734
|
-
return select$
|
|
7733
|
+
createResourceParams$u(config);
|
|
7734
|
+
return select$w();
|
|
7735
7735
|
}
|
|
7736
7736
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
7737
|
-
const snapshot = ingestSuccess$
|
|
7737
|
+
const snapshot = ingestSuccess$o(luvio, resourceParams, response, {
|
|
7738
7738
|
config,
|
|
7739
|
-
resolve: () => buildNetworkSnapshot$
|
|
7739
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions)
|
|
7740
7740
|
});
|
|
7741
7741
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
7742
7742
|
}
|
|
7743
7743
|
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
7744
7744
|
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
7745
7745
|
config,
|
|
7746
|
-
resolve: () => buildNetworkSnapshot$
|
|
7746
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions)
|
|
7747
7747
|
});
|
|
7748
7748
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
7749
7749
|
}
|
|
7750
|
-
function buildNetworkSnapshot$
|
|
7751
|
-
const resourceParams = createResourceParams$
|
|
7752
|
-
const request = createResourceRequest$
|
|
7750
|
+
function buildNetworkSnapshot$u(luvio, config, options) {
|
|
7751
|
+
const resourceParams = createResourceParams$u(config);
|
|
7752
|
+
const request = createResourceRequest$u(resourceParams);
|
|
7753
7753
|
return luvio.dispatchResourceRequest(request, options)
|
|
7754
7754
|
.then((response) => {
|
|
7755
7755
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
7756
7756
|
const cache = new StoreKeyMap();
|
|
7757
|
-
getResponseCacheKeys$
|
|
7757
|
+
getResponseCacheKeys$u(cache, luvio, resourceParams, response.body);
|
|
7758
7758
|
return cache;
|
|
7759
7759
|
});
|
|
7760
7760
|
}, (response) => {
|
|
@@ -7762,7 +7762,7 @@ function buildNetworkSnapshot$t(luvio, config, options) {
|
|
|
7762
7762
|
});
|
|
7763
7763
|
}
|
|
7764
7764
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
7765
|
-
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
7765
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$u, undefined, false);
|
|
7766
7766
|
}
|
|
7767
7767
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
7768
7768
|
const { luvio, config } = context;
|
|
@@ -7773,12 +7773,12 @@ function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
|
7773
7773
|
};
|
|
7774
7774
|
const cacheSnapshot = storeLookup(selector, {
|
|
7775
7775
|
config,
|
|
7776
|
-
resolve: () => buildNetworkSnapshot$
|
|
7776
|
+
resolve: () => buildNetworkSnapshot$u(luvio, config, snapshotRefreshOptions)
|
|
7777
7777
|
});
|
|
7778
7778
|
return cacheSnapshot;
|
|
7779
7779
|
}
|
|
7780
7780
|
const getDynamicAttributesAdapterFactory = (luvio) => function IndustriesContext__getDynamicAttributes(untrustedConfig, requestContext) {
|
|
7781
|
-
const config = validateAdapterConfig$
|
|
7781
|
+
const config = validateAdapterConfig$u(untrustedConfig, getDynamicAttributes_ConfigPropertyNames);
|
|
7782
7782
|
// Invalid or incomplete config
|
|
7783
7783
|
if (config === null) {
|
|
7784
7784
|
return null;
|
|
@@ -7787,6 +7787,143 @@ const getDynamicAttributesAdapterFactory = (luvio) => function IndustriesContext
|
|
|
7787
7787
|
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
7788
7788
|
};
|
|
7789
7789
|
|
|
7790
|
+
function validate$h(obj, path = 'ContextMappingCloneInputRepresentation') {
|
|
7791
|
+
const v_error = (() => {
|
|
7792
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7793
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7794
|
+
}
|
|
7795
|
+
const obj_contextMappingName = obj.contextMappingName;
|
|
7796
|
+
const path_contextMappingName = path + '.contextMappingName';
|
|
7797
|
+
if (typeof obj_contextMappingName !== 'string') {
|
|
7798
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contextMappingName + '" (at "' + path_contextMappingName + '")');
|
|
7799
|
+
}
|
|
7800
|
+
const obj_originalContextMappingId = obj.originalContextMappingId;
|
|
7801
|
+
const path_originalContextMappingId = path + '.originalContextMappingId';
|
|
7802
|
+
if (typeof obj_originalContextMappingId !== 'string') {
|
|
7803
|
+
return new TypeError('Expected "string" but received "' + typeof obj_originalContextMappingId + '" (at "' + path_originalContextMappingId + '")');
|
|
7804
|
+
}
|
|
7805
|
+
})();
|
|
7806
|
+
return v_error === undefined ? null : v_error;
|
|
7807
|
+
}
|
|
7808
|
+
|
|
7809
|
+
function validate$g(obj, path = 'ContextMappingCloneListInputRepresentation') {
|
|
7810
|
+
const v_error = (() => {
|
|
7811
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7812
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7813
|
+
}
|
|
7814
|
+
const obj_contextMappingClones = obj.contextMappingClones;
|
|
7815
|
+
const path_contextMappingClones = path + '.contextMappingClones';
|
|
7816
|
+
if (!ArrayIsArray(obj_contextMappingClones)) {
|
|
7817
|
+
return new TypeError('Expected "array" but received "' + typeof obj_contextMappingClones + '" (at "' + path_contextMappingClones + '")');
|
|
7818
|
+
}
|
|
7819
|
+
for (let i = 0; i < obj_contextMappingClones.length; i++) {
|
|
7820
|
+
const obj_contextMappingClones_item = obj_contextMappingClones[i];
|
|
7821
|
+
const path_contextMappingClones_item = path_contextMappingClones + '[' + i + ']';
|
|
7822
|
+
const referencepath_contextMappingClones_itemValidationError = validate$h(obj_contextMappingClones_item, path_contextMappingClones_item);
|
|
7823
|
+
if (referencepath_contextMappingClones_itemValidationError !== null) {
|
|
7824
|
+
let message = 'Object doesn\'t match ContextMappingCloneInputRepresentation (at "' + path_contextMappingClones_item + '")\n';
|
|
7825
|
+
message += referencepath_contextMappingClones_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
7826
|
+
return new TypeError(message);
|
|
7827
|
+
}
|
|
7828
|
+
}
|
|
7829
|
+
})();
|
|
7830
|
+
return v_error === undefined ? null : v_error;
|
|
7831
|
+
}
|
|
7832
|
+
|
|
7833
|
+
function select$v(luvio, params) {
|
|
7834
|
+
return select$M();
|
|
7835
|
+
}
|
|
7836
|
+
function getResponseCacheKeys$t(storeKeyMap, luvio, resourceParams, response) {
|
|
7837
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
7838
|
+
}
|
|
7839
|
+
function ingestSuccess$n(luvio, resourceParams, response) {
|
|
7840
|
+
const { body } = response;
|
|
7841
|
+
const key = keyBuilderFromType$8(luvio, body);
|
|
7842
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
7843
|
+
const snapshot = luvio.storeLookup({
|
|
7844
|
+
recordId: key,
|
|
7845
|
+
node: select$v(),
|
|
7846
|
+
variables: {},
|
|
7847
|
+
});
|
|
7848
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7849
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
7850
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
7851
|
+
}
|
|
7852
|
+
}
|
|
7853
|
+
deepFreeze(snapshot.data);
|
|
7854
|
+
return snapshot;
|
|
7855
|
+
}
|
|
7856
|
+
function createResourceRequest$t(config) {
|
|
7857
|
+
const headers = {};
|
|
7858
|
+
return {
|
|
7859
|
+
baseUri: '/services/data/v63.0',
|
|
7860
|
+
basePath: '/connect/context-mappings/clone',
|
|
7861
|
+
method: 'post',
|
|
7862
|
+
body: config.body,
|
|
7863
|
+
urlParams: {},
|
|
7864
|
+
queryParams: {},
|
|
7865
|
+
headers,
|
|
7866
|
+
priority: 'normal',
|
|
7867
|
+
};
|
|
7868
|
+
}
|
|
7869
|
+
|
|
7870
|
+
const adapterName$t = 'cloneContextMappings';
|
|
7871
|
+
const cloneContextMappings_ConfigPropertyMetadata = [
|
|
7872
|
+
generateParamConfigMetadata('contextMappingCloneInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
7873
|
+
];
|
|
7874
|
+
const cloneContextMappings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, cloneContextMappings_ConfigPropertyMetadata);
|
|
7875
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$R(cloneContextMappings_ConfigPropertyMetadata);
|
|
7876
|
+
function typeCheckConfig$t(untrustedConfig) {
|
|
7877
|
+
const config = {};
|
|
7878
|
+
const untrustedConfig_contextMappingCloneInput = untrustedConfig.contextMappingCloneInput;
|
|
7879
|
+
const referenceContextMappingCloneListInputRepresentationValidationError = validate$g(untrustedConfig_contextMappingCloneInput);
|
|
7880
|
+
if (referenceContextMappingCloneListInputRepresentationValidationError === null) {
|
|
7881
|
+
config.contextMappingCloneInput = untrustedConfig_contextMappingCloneInput;
|
|
7882
|
+
}
|
|
7883
|
+
return config;
|
|
7884
|
+
}
|
|
7885
|
+
function validateAdapterConfig$t(untrustedConfig, configPropertyNames) {
|
|
7886
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
7887
|
+
return null;
|
|
7888
|
+
}
|
|
7889
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7890
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
7891
|
+
}
|
|
7892
|
+
const config = typeCheckConfig$t(untrustedConfig);
|
|
7893
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
7894
|
+
return null;
|
|
7895
|
+
}
|
|
7896
|
+
return config;
|
|
7897
|
+
}
|
|
7898
|
+
function buildNetworkSnapshot$t(luvio, config, options) {
|
|
7899
|
+
const resourceParams = createResourceParams$t(config);
|
|
7900
|
+
const request = createResourceRequest$t(resourceParams);
|
|
7901
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
7902
|
+
.then((response) => {
|
|
7903
|
+
return luvio.handleSuccessResponse(() => {
|
|
7904
|
+
const snapshot = ingestSuccess$n(luvio, resourceParams, response);
|
|
7905
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
7906
|
+
}, () => {
|
|
7907
|
+
const cache = new StoreKeyMap();
|
|
7908
|
+
getResponseCacheKeys$t(cache, luvio, resourceParams, response.body);
|
|
7909
|
+
return cache;
|
|
7910
|
+
});
|
|
7911
|
+
}, (response) => {
|
|
7912
|
+
deepFreeze(response);
|
|
7913
|
+
throw response;
|
|
7914
|
+
});
|
|
7915
|
+
}
|
|
7916
|
+
const cloneContextMappingsAdapterFactory = (luvio) => {
|
|
7917
|
+
return function cloneContextMappings(untrustedConfig) {
|
|
7918
|
+
const config = validateAdapterConfig$t(untrustedConfig, cloneContextMappings_ConfigPropertyNames);
|
|
7919
|
+
// Invalid or incomplete config
|
|
7920
|
+
if (config === null) {
|
|
7921
|
+
throw new Error('Invalid config for "cloneContextMappings"');
|
|
7922
|
+
}
|
|
7923
|
+
return buildNetworkSnapshot$t(luvio, config);
|
|
7924
|
+
};
|
|
7925
|
+
};
|
|
7926
|
+
|
|
7790
7927
|
function validate$f(obj, path = 'ContextNodeMappingListInputRepresentation') {
|
|
7791
7928
|
const v_error = (() => {
|
|
7792
7929
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7890,7 +8027,7 @@ const select$u = function ContextNodeMappingListRepresentationSelect() {
|
|
|
7890
8027
|
kind: 'Link',
|
|
7891
8028
|
plural: true,
|
|
7892
8029
|
required: false,
|
|
7893
|
-
fragment: select$
|
|
8030
|
+
fragment: select$V()
|
|
7894
8031
|
},
|
|
7895
8032
|
{
|
|
7896
8033
|
name: 'isSuccess',
|
|
@@ -8010,10 +8147,10 @@ const updateContextNodeMappings_ConfigPropertyMetadata = [
|
|
|
8010
8147
|
generateParamConfigMetadata('contextNodeMappingInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
8011
8148
|
];
|
|
8012
8149
|
const updateContextNodeMappings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, updateContextNodeMappings_ConfigPropertyMetadata);
|
|
8013
|
-
const createResourceParams$s = /*#__PURE__*/ createResourceParams$
|
|
8150
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$R(updateContextNodeMappings_ConfigPropertyMetadata);
|
|
8014
8151
|
function typeCheckConfig$s(untrustedConfig) {
|
|
8015
8152
|
const config = {};
|
|
8016
|
-
typeCheckConfig$
|
|
8153
|
+
typeCheckConfig$R(untrustedConfig, config, updateContextNodeMappings_ConfigPropertyMetadata);
|
|
8017
8154
|
const untrustedConfig_contextNodeMappingInput = untrustedConfig.contextNodeMappingInput;
|
|
8018
8155
|
const referenceContextNodeMappingListInputRepresentationValidationError = validate$f(untrustedConfig_contextNodeMappingInput);
|
|
8019
8156
|
if (referenceContextNodeMappingListInputRepresentationValidationError === null) {
|
|
@@ -8106,10 +8243,10 @@ const createContextNodeMappings_ConfigPropertyMetadata = [
|
|
|
8106
8243
|
generateParamConfigMetadata('contextNodeMappingInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
8107
8244
|
];
|
|
8108
8245
|
const createContextNodeMappings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, createContextNodeMappings_ConfigPropertyMetadata);
|
|
8109
|
-
const createResourceParams$r = /*#__PURE__*/ createResourceParams$
|
|
8246
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$R(createContextNodeMappings_ConfigPropertyMetadata);
|
|
8110
8247
|
function typeCheckConfig$r(untrustedConfig) {
|
|
8111
8248
|
const config = {};
|
|
8112
|
-
typeCheckConfig$
|
|
8249
|
+
typeCheckConfig$R(untrustedConfig, config, createContextNodeMappings_ConfigPropertyMetadata);
|
|
8113
8250
|
const untrustedConfig_contextNodeMappingInput = untrustedConfig.contextNodeMappingInput;
|
|
8114
8251
|
const referenceContextNodeMappingListInputRepresentationValidationError = validate$f(untrustedConfig_contextNodeMappingInput);
|
|
8115
8252
|
if (referenceContextNodeMappingListInputRepresentationValidationError === null) {
|
|
@@ -8196,10 +8333,10 @@ const deleteContextServiceNodeMapping_ConfigPropertyMetadata = [
|
|
|
8196
8333
|
generateParamConfigMetadata('contextMappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8197
8334
|
];
|
|
8198
8335
|
const deleteContextServiceNodeMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, deleteContextServiceNodeMapping_ConfigPropertyMetadata);
|
|
8199
|
-
const createResourceParams$q = /*#__PURE__*/ createResourceParams$
|
|
8336
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$R(deleteContextServiceNodeMapping_ConfigPropertyMetadata);
|
|
8200
8337
|
function typeCheckConfig$q(untrustedConfig) {
|
|
8201
8338
|
const config = {};
|
|
8202
|
-
typeCheckConfig$
|
|
8339
|
+
typeCheckConfig$R(untrustedConfig, config, deleteContextServiceNodeMapping_ConfigPropertyMetadata);
|
|
8203
8340
|
return config;
|
|
8204
8341
|
}
|
|
8205
8342
|
function validateAdapterConfig$q(untrustedConfig, configPropertyNames) {
|
|
@@ -8245,7 +8382,7 @@ const deleteContextServiceNodeMappingAdapterFactory = (luvio) => {
|
|
|
8245
8382
|
};
|
|
8246
8383
|
|
|
8247
8384
|
function select$r(luvio, params) {
|
|
8248
|
-
return select$
|
|
8385
|
+
return select$V();
|
|
8249
8386
|
}
|
|
8250
8387
|
function keyBuilder$q(luvio, params) {
|
|
8251
8388
|
return keyBuilder$T(luvio, {
|
|
@@ -8304,14 +8441,14 @@ const getContextServiceNodeMapping_ConfigPropertyMetadata = [
|
|
|
8304
8441
|
generateParamConfigMetadata('contextMappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8305
8442
|
];
|
|
8306
8443
|
const getContextServiceNodeMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, getContextServiceNodeMapping_ConfigPropertyMetadata);
|
|
8307
|
-
const createResourceParams$p = /*#__PURE__*/ createResourceParams$
|
|
8444
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$R(getContextServiceNodeMapping_ConfigPropertyMetadata);
|
|
8308
8445
|
function keyBuilder$p(luvio, config) {
|
|
8309
8446
|
const resourceParams = createResourceParams$p(config);
|
|
8310
8447
|
return keyBuilder$q(luvio, resourceParams);
|
|
8311
8448
|
}
|
|
8312
8449
|
function typeCheckConfig$p(untrustedConfig) {
|
|
8313
8450
|
const config = {};
|
|
8314
|
-
typeCheckConfig$
|
|
8451
|
+
typeCheckConfig$R(untrustedConfig, config, getContextServiceNodeMapping_ConfigPropertyMetadata);
|
|
8315
8452
|
return config;
|
|
8316
8453
|
}
|
|
8317
8454
|
function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
|
|
@@ -8497,7 +8634,7 @@ const select$q = function ContextAttributeMappingListRepresentationSelect() {
|
|
|
8497
8634
|
kind: 'Link',
|
|
8498
8635
|
plural: true,
|
|
8499
8636
|
required: false,
|
|
8500
|
-
fragment: select$
|
|
8637
|
+
fragment: select$W()
|
|
8501
8638
|
},
|
|
8502
8639
|
{
|
|
8503
8640
|
name: 'isSuccess',
|
|
@@ -8617,10 +8754,10 @@ const updateContextAttributeMappings_ConfigPropertyMetadata = [
|
|
|
8617
8754
|
generateParamConfigMetadata('contextAttributeMappingInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
8618
8755
|
];
|
|
8619
8756
|
const updateContextAttributeMappings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, updateContextAttributeMappings_ConfigPropertyMetadata);
|
|
8620
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams$
|
|
8757
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$R(updateContextAttributeMappings_ConfigPropertyMetadata);
|
|
8621
8758
|
function typeCheckConfig$o(untrustedConfig) {
|
|
8622
8759
|
const config = {};
|
|
8623
|
-
typeCheckConfig$
|
|
8760
|
+
typeCheckConfig$R(untrustedConfig, config, updateContextAttributeMappings_ConfigPropertyMetadata);
|
|
8624
8761
|
const untrustedConfig_contextAttributeMappingInput = untrustedConfig.contextAttributeMappingInput;
|
|
8625
8762
|
const referenceContextAttributeMappingListInputRepresentationValidationError = validate$d(untrustedConfig_contextAttributeMappingInput);
|
|
8626
8763
|
if (referenceContextAttributeMappingListInputRepresentationValidationError === null) {
|
|
@@ -8713,10 +8850,10 @@ const createContextAttributeMappings_ConfigPropertyMetadata = [
|
|
|
8713
8850
|
generateParamConfigMetadata('contextAttributeMappingInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
8714
8851
|
];
|
|
8715
8852
|
const createContextAttributeMappings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, createContextAttributeMappings_ConfigPropertyMetadata);
|
|
8716
|
-
const createResourceParams$n = /*#__PURE__*/ createResourceParams$
|
|
8853
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$R(createContextAttributeMappings_ConfigPropertyMetadata);
|
|
8717
8854
|
function typeCheckConfig$n(untrustedConfig) {
|
|
8718
8855
|
const config = {};
|
|
8719
|
-
typeCheckConfig$
|
|
8856
|
+
typeCheckConfig$R(untrustedConfig, config, createContextAttributeMappings_ConfigPropertyMetadata);
|
|
8720
8857
|
const untrustedConfig_contextAttributeMappingInput = untrustedConfig.contextAttributeMappingInput;
|
|
8721
8858
|
const referenceContextAttributeMappingListInputRepresentationValidationError = validate$d(untrustedConfig_contextAttributeMappingInput);
|
|
8722
8859
|
if (referenceContextAttributeMappingListInputRepresentationValidationError === null) {
|
|
@@ -8803,10 +8940,10 @@ const deleteContextServiceAttributeMapping_ConfigPropertyMetadata = [
|
|
|
8803
8940
|
generateParamConfigMetadata('contextNodeMappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8804
8941
|
];
|
|
8805
8942
|
const deleteContextServiceAttributeMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, deleteContextServiceAttributeMapping_ConfigPropertyMetadata);
|
|
8806
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams$
|
|
8943
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$R(deleteContextServiceAttributeMapping_ConfigPropertyMetadata);
|
|
8807
8944
|
function typeCheckConfig$m(untrustedConfig) {
|
|
8808
8945
|
const config = {};
|
|
8809
|
-
typeCheckConfig$
|
|
8946
|
+
typeCheckConfig$R(untrustedConfig, config, deleteContextServiceAttributeMapping_ConfigPropertyMetadata);
|
|
8810
8947
|
return config;
|
|
8811
8948
|
}
|
|
8812
8949
|
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
@@ -8852,7 +8989,7 @@ const deleteContextServiceAttributeMappingAdapterFactory = (luvio) => {
|
|
|
8852
8989
|
};
|
|
8853
8990
|
|
|
8854
8991
|
function select$n(luvio, params) {
|
|
8855
|
-
return select$
|
|
8992
|
+
return select$W();
|
|
8856
8993
|
}
|
|
8857
8994
|
function keyBuilder$m(luvio, params) {
|
|
8858
8995
|
return keyBuilder$U(luvio, {
|
|
@@ -8911,14 +9048,14 @@ const getContextServiceAttributeMapping_ConfigPropertyMetadata = [
|
|
|
8911
9048
|
generateParamConfigMetadata('contextNodeMappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8912
9049
|
];
|
|
8913
9050
|
const getContextServiceAttributeMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, getContextServiceAttributeMapping_ConfigPropertyMetadata);
|
|
8914
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams$
|
|
9051
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$R(getContextServiceAttributeMapping_ConfigPropertyMetadata);
|
|
8915
9052
|
function keyBuilder$l(luvio, config) {
|
|
8916
9053
|
const resourceParams = createResourceParams$l(config);
|
|
8917
9054
|
return keyBuilder$m(luvio, resourceParams);
|
|
8918
9055
|
}
|
|
8919
9056
|
function typeCheckConfig$l(untrustedConfig) {
|
|
8920
9057
|
const config = {};
|
|
8921
|
-
typeCheckConfig$
|
|
9058
|
+
typeCheckConfig$R(untrustedConfig, config, getContextServiceAttributeMapping_ConfigPropertyMetadata);
|
|
8922
9059
|
return config;
|
|
8923
9060
|
}
|
|
8924
9061
|
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
@@ -9096,7 +9233,7 @@ const select$m = function ContextAttributeListRepresentationSelect() {
|
|
|
9096
9233
|
kind: 'Link',
|
|
9097
9234
|
plural: true,
|
|
9098
9235
|
required: false,
|
|
9099
|
-
fragment: select$
|
|
9236
|
+
fragment: select$S()
|
|
9100
9237
|
},
|
|
9101
9238
|
{
|
|
9102
9239
|
name: 'contextAttributeListId',
|
|
@@ -9229,10 +9366,10 @@ const updateContextAttributes_ConfigPropertyMetadata = [
|
|
|
9229
9366
|
generateParamConfigMetadata('contextAttributeListInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
9230
9367
|
];
|
|
9231
9368
|
const updateContextAttributes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, updateContextAttributes_ConfigPropertyMetadata);
|
|
9232
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams$
|
|
9369
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$R(updateContextAttributes_ConfigPropertyMetadata);
|
|
9233
9370
|
function typeCheckConfig$k(untrustedConfig) {
|
|
9234
9371
|
const config = {};
|
|
9235
|
-
typeCheckConfig$
|
|
9372
|
+
typeCheckConfig$R(untrustedConfig, config, updateContextAttributes_ConfigPropertyMetadata);
|
|
9236
9373
|
const untrustedConfig_contextAttributeListInput = untrustedConfig.contextAttributeListInput;
|
|
9237
9374
|
const referenceContextAttributesListInputRepresentationValidationError = validate$b(untrustedConfig_contextAttributeListInput);
|
|
9238
9375
|
if (referenceContextAttributesListInputRepresentationValidationError === null) {
|
|
@@ -9325,10 +9462,10 @@ const createContextAttributes_ConfigPropertyMetadata = [
|
|
|
9325
9462
|
generateParamConfigMetadata('contextAttributeListInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
9326
9463
|
];
|
|
9327
9464
|
const createContextAttributes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, createContextAttributes_ConfigPropertyMetadata);
|
|
9328
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams$
|
|
9465
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$R(createContextAttributes_ConfigPropertyMetadata);
|
|
9329
9466
|
function typeCheckConfig$j(untrustedConfig) {
|
|
9330
9467
|
const config = {};
|
|
9331
|
-
typeCheckConfig$
|
|
9468
|
+
typeCheckConfig$R(untrustedConfig, config, createContextAttributes_ConfigPropertyMetadata);
|
|
9332
9469
|
const untrustedConfig_contextAttributeListInput = untrustedConfig.contextAttributeListInput;
|
|
9333
9470
|
const referenceContextAttributesListInputRepresentationValidationError = validate$b(untrustedConfig_contextAttributeListInput);
|
|
9334
9471
|
if (referenceContextAttributesListInputRepresentationValidationError === null) {
|
|
@@ -9415,10 +9552,10 @@ const deleteContextServiceAttribute_ConfigPropertyMetadata = [
|
|
|
9415
9552
|
generateParamConfigMetadata('contextNodeId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9416
9553
|
];
|
|
9417
9554
|
const deleteContextServiceAttribute_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, deleteContextServiceAttribute_ConfigPropertyMetadata);
|
|
9418
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams$
|
|
9555
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$R(deleteContextServiceAttribute_ConfigPropertyMetadata);
|
|
9419
9556
|
function typeCheckConfig$i(untrustedConfig) {
|
|
9420
9557
|
const config = {};
|
|
9421
|
-
typeCheckConfig$
|
|
9558
|
+
typeCheckConfig$R(untrustedConfig, config, deleteContextServiceAttribute_ConfigPropertyMetadata);
|
|
9422
9559
|
return config;
|
|
9423
9560
|
}
|
|
9424
9561
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -9464,7 +9601,7 @@ const deleteContextServiceAttributeAdapterFactory = (luvio) => {
|
|
|
9464
9601
|
};
|
|
9465
9602
|
|
|
9466
9603
|
function select$j(luvio, params) {
|
|
9467
|
-
return select$
|
|
9604
|
+
return select$S();
|
|
9468
9605
|
}
|
|
9469
9606
|
function keyBuilder$i(luvio, params) {
|
|
9470
9607
|
return keyBuilder$Q(luvio, {
|
|
@@ -9523,14 +9660,14 @@ const getContextServiceAttribute_ConfigPropertyMetadata = [
|
|
|
9523
9660
|
generateParamConfigMetadata('contextNodeId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9524
9661
|
];
|
|
9525
9662
|
const getContextServiceAttribute_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getContextServiceAttribute_ConfigPropertyMetadata);
|
|
9526
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
9663
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$R(getContextServiceAttribute_ConfigPropertyMetadata);
|
|
9527
9664
|
function keyBuilder$h(luvio, config) {
|
|
9528
9665
|
const resourceParams = createResourceParams$h(config);
|
|
9529
9666
|
return keyBuilder$i(luvio, resourceParams);
|
|
9530
9667
|
}
|
|
9531
9668
|
function typeCheckConfig$h(untrustedConfig) {
|
|
9532
9669
|
const config = {};
|
|
9533
|
-
typeCheckConfig$
|
|
9670
|
+
typeCheckConfig$R(untrustedConfig, config, getContextServiceAttribute_ConfigPropertyMetadata);
|
|
9534
9671
|
return config;
|
|
9535
9672
|
}
|
|
9536
9673
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -9666,7 +9803,7 @@ function validate$9(obj, path = 'ContextMappingInputRepresentation') {
|
|
|
9666
9803
|
}
|
|
9667
9804
|
|
|
9668
9805
|
function select$i(luvio, params) {
|
|
9669
|
-
return select$
|
|
9806
|
+
return select$U();
|
|
9670
9807
|
}
|
|
9671
9808
|
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
9672
9809
|
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
@@ -9707,7 +9844,7 @@ const createContextMapping_ConfigPropertyMetadata = [
|
|
|
9707
9844
|
generateParamConfigMetadata('contextMappingInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
9708
9845
|
];
|
|
9709
9846
|
const createContextMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, createContextMapping_ConfigPropertyMetadata);
|
|
9710
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
9847
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$R(createContextMapping_ConfigPropertyMetadata);
|
|
9711
9848
|
function typeCheckConfig$g(untrustedConfig) {
|
|
9712
9849
|
const config = {};
|
|
9713
9850
|
const untrustedConfig_contextMappingInput = untrustedConfig.contextMappingInput;
|
|
@@ -9809,7 +9946,7 @@ function validate$8(obj, path = 'ContextAttributeMappingInputRepresentation') {
|
|
|
9809
9946
|
}
|
|
9810
9947
|
|
|
9811
9948
|
function select$h(luvio, params) {
|
|
9812
|
-
return select$
|
|
9949
|
+
return select$W();
|
|
9813
9950
|
}
|
|
9814
9951
|
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
9815
9952
|
getTypeCacheKeys$j(storeKeyMap, luvio, response);
|
|
@@ -9850,7 +9987,7 @@ const createContextAttributeMapping_ConfigPropertyMetadata = [
|
|
|
9850
9987
|
generateParamConfigMetadata('contextAttributeMappingInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
9851
9988
|
];
|
|
9852
9989
|
const createContextAttributeMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, createContextAttributeMapping_ConfigPropertyMetadata);
|
|
9853
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
9990
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$R(createContextAttributeMapping_ConfigPropertyMetadata);
|
|
9854
9991
|
function typeCheckConfig$f(untrustedConfig) {
|
|
9855
9992
|
const config = {};
|
|
9856
9993
|
const untrustedConfig_contextAttributeMappingInput = untrustedConfig.contextAttributeMappingInput;
|
|
@@ -9938,10 +10075,10 @@ const deleteContextAttributeMapping_ConfigPropertyMetadata = [
|
|
|
9938
10075
|
generateParamConfigMetadata('contextAttributeMappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9939
10076
|
];
|
|
9940
10077
|
const deleteContextAttributeMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, deleteContextAttributeMapping_ConfigPropertyMetadata);
|
|
9941
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
10078
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$R(deleteContextAttributeMapping_ConfigPropertyMetadata);
|
|
9942
10079
|
function typeCheckConfig$e(untrustedConfig) {
|
|
9943
10080
|
const config = {};
|
|
9944
|
-
typeCheckConfig$
|
|
10081
|
+
typeCheckConfig$R(untrustedConfig, config, deleteContextAttributeMapping_ConfigPropertyMetadata);
|
|
9945
10082
|
return config;
|
|
9946
10083
|
}
|
|
9947
10084
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -9987,7 +10124,7 @@ const deleteContextAttributeMappingAdapterFactory = (luvio) => {
|
|
|
9987
10124
|
};
|
|
9988
10125
|
|
|
9989
10126
|
function select$g(luvio, params) {
|
|
9990
|
-
return select$
|
|
10127
|
+
return select$W();
|
|
9991
10128
|
}
|
|
9992
10129
|
function keyBuilder$f(luvio, params) {
|
|
9993
10130
|
return keyBuilder$U(luvio, {
|
|
@@ -10045,14 +10182,14 @@ const getContextAttributeMapping_ConfigPropertyMetadata = [
|
|
|
10045
10182
|
generateParamConfigMetadata('contextAttributeMappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10046
10183
|
];
|
|
10047
10184
|
const getContextAttributeMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getContextAttributeMapping_ConfigPropertyMetadata);
|
|
10048
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
10185
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$R(getContextAttributeMapping_ConfigPropertyMetadata);
|
|
10049
10186
|
function keyBuilder$e(luvio, config) {
|
|
10050
10187
|
const resourceParams = createResourceParams$d(config);
|
|
10051
10188
|
return keyBuilder$f(luvio, resourceParams);
|
|
10052
10189
|
}
|
|
10053
10190
|
function typeCheckConfig$d(untrustedConfig) {
|
|
10054
10191
|
const config = {};
|
|
10055
|
-
typeCheckConfig$
|
|
10192
|
+
typeCheckConfig$R(untrustedConfig, config, getContextAttributeMapping_ConfigPropertyMetadata);
|
|
10056
10193
|
return config;
|
|
10057
10194
|
}
|
|
10058
10195
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -10127,7 +10264,7 @@ const getContextAttributeMappingAdapterFactory = (luvio) => function IndustriesC
|
|
|
10127
10264
|
};
|
|
10128
10265
|
|
|
10129
10266
|
function select$f(luvio, params) {
|
|
10130
|
-
return select$
|
|
10267
|
+
return select$W();
|
|
10131
10268
|
}
|
|
10132
10269
|
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
10133
10270
|
getTypeCacheKeys$j(storeKeyMap, luvio, response);
|
|
@@ -10169,10 +10306,10 @@ const updateContextAttributeMapping_ConfigPropertyMetadata = [
|
|
|
10169
10306
|
generateParamConfigMetadata('contextAttributeMappingInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
10170
10307
|
];
|
|
10171
10308
|
const updateContextAttributeMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, updateContextAttributeMapping_ConfigPropertyMetadata);
|
|
10172
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
10309
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$R(updateContextAttributeMapping_ConfigPropertyMetadata);
|
|
10173
10310
|
function typeCheckConfig$c(untrustedConfig) {
|
|
10174
10311
|
const config = {};
|
|
10175
|
-
typeCheckConfig$
|
|
10312
|
+
typeCheckConfig$R(untrustedConfig, config, updateContextAttributeMapping_ConfigPropertyMetadata);
|
|
10176
10313
|
const untrustedConfig_contextAttributeMappingInput = untrustedConfig.contextAttributeMappingInput;
|
|
10177
10314
|
const referenceContextAttributeMappingInputRepresentationValidationError = validate$8(untrustedConfig_contextAttributeMappingInput);
|
|
10178
10315
|
if (referenceContextAttributeMappingInputRepresentationValidationError === null) {
|
|
@@ -10259,7 +10396,7 @@ function validate$7(obj, path = 'ContextNodeMappingInputRepresentation') {
|
|
|
10259
10396
|
}
|
|
10260
10397
|
|
|
10261
10398
|
function select$e(luvio, params) {
|
|
10262
|
-
return select$
|
|
10399
|
+
return select$V();
|
|
10263
10400
|
}
|
|
10264
10401
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
10265
10402
|
getTypeCacheKeys$i(storeKeyMap, luvio, response);
|
|
@@ -10300,7 +10437,7 @@ const createContextNodeMapping_ConfigPropertyMetadata = [
|
|
|
10300
10437
|
generateParamConfigMetadata('contextNodeMappingInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
10301
10438
|
];
|
|
10302
10439
|
const createContextNodeMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createContextNodeMapping_ConfigPropertyMetadata);
|
|
10303
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
10440
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$R(createContextNodeMapping_ConfigPropertyMetadata);
|
|
10304
10441
|
function typeCheckConfig$b(untrustedConfig) {
|
|
10305
10442
|
const config = {};
|
|
10306
10443
|
const untrustedConfig_contextNodeMappingInput = untrustedConfig.contextNodeMappingInput;
|
|
@@ -10388,10 +10525,10 @@ const deleteContextNodeMapping_ConfigPropertyMetadata = [
|
|
|
10388
10525
|
generateParamConfigMetadata('contextNodeMappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10389
10526
|
];
|
|
10390
10527
|
const deleteContextNodeMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deleteContextNodeMapping_ConfigPropertyMetadata);
|
|
10391
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
10528
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$R(deleteContextNodeMapping_ConfigPropertyMetadata);
|
|
10392
10529
|
function typeCheckConfig$a(untrustedConfig) {
|
|
10393
10530
|
const config = {};
|
|
10394
|
-
typeCheckConfig$
|
|
10531
|
+
typeCheckConfig$R(untrustedConfig, config, deleteContextNodeMapping_ConfigPropertyMetadata);
|
|
10395
10532
|
return config;
|
|
10396
10533
|
}
|
|
10397
10534
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -10437,7 +10574,7 @@ const deleteContextNodeMappingAdapterFactory = (luvio) => {
|
|
|
10437
10574
|
};
|
|
10438
10575
|
|
|
10439
10576
|
function select$d(luvio, params) {
|
|
10440
|
-
return select$
|
|
10577
|
+
return select$V();
|
|
10441
10578
|
}
|
|
10442
10579
|
function keyBuilder$c(luvio, params) {
|
|
10443
10580
|
return keyBuilder$T(luvio, {
|
|
@@ -10495,14 +10632,14 @@ const getContextNodeMapping_ConfigPropertyMetadata = [
|
|
|
10495
10632
|
generateParamConfigMetadata('contextNodeMappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10496
10633
|
];
|
|
10497
10634
|
const getContextNodeMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getContextNodeMapping_ConfigPropertyMetadata);
|
|
10498
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
10635
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$R(getContextNodeMapping_ConfigPropertyMetadata);
|
|
10499
10636
|
function keyBuilder$b(luvio, config) {
|
|
10500
10637
|
const resourceParams = createResourceParams$9(config);
|
|
10501
10638
|
return keyBuilder$c(luvio, resourceParams);
|
|
10502
10639
|
}
|
|
10503
10640
|
function typeCheckConfig$9(untrustedConfig) {
|
|
10504
10641
|
const config = {};
|
|
10505
|
-
typeCheckConfig$
|
|
10642
|
+
typeCheckConfig$R(untrustedConfig, config, getContextNodeMapping_ConfigPropertyMetadata);
|
|
10506
10643
|
return config;
|
|
10507
10644
|
}
|
|
10508
10645
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -10577,7 +10714,7 @@ const getContextNodeMappingAdapterFactory = (luvio) => function IndustriesContex
|
|
|
10577
10714
|
};
|
|
10578
10715
|
|
|
10579
10716
|
function select$c(luvio, params) {
|
|
10580
|
-
return select$
|
|
10717
|
+
return select$V();
|
|
10581
10718
|
}
|
|
10582
10719
|
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
10583
10720
|
getTypeCacheKeys$i(storeKeyMap, luvio, response);
|
|
@@ -10619,10 +10756,10 @@ const updateContextNodeMapping_ConfigPropertyMetadata = [
|
|
|
10619
10756
|
generateParamConfigMetadata('contextNodeMappingInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
10620
10757
|
];
|
|
10621
10758
|
const updateContextNodeMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, updateContextNodeMapping_ConfigPropertyMetadata);
|
|
10622
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
10759
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$R(updateContextNodeMapping_ConfigPropertyMetadata);
|
|
10623
10760
|
function typeCheckConfig$8(untrustedConfig) {
|
|
10624
10761
|
const config = {};
|
|
10625
|
-
typeCheckConfig$
|
|
10762
|
+
typeCheckConfig$R(untrustedConfig, config, updateContextNodeMapping_ConfigPropertyMetadata);
|
|
10626
10763
|
const untrustedConfig_contextNodeMappingInput = untrustedConfig.contextNodeMappingInput;
|
|
10627
10764
|
const referenceContextNodeMappingInputRepresentationValidationError = validate$7(untrustedConfig_contextNodeMappingInput);
|
|
10628
10765
|
if (referenceContextNodeMappingInputRepresentationValidationError === null) {
|
|
@@ -10708,10 +10845,10 @@ const deleteContextMapping_ConfigPropertyMetadata = [
|
|
|
10708
10845
|
generateParamConfigMetadata('contextMappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10709
10846
|
];
|
|
10710
10847
|
const deleteContextMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deleteContextMapping_ConfigPropertyMetadata);
|
|
10711
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
10848
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$R(deleteContextMapping_ConfigPropertyMetadata);
|
|
10712
10849
|
function typeCheckConfig$7(untrustedConfig) {
|
|
10713
10850
|
const config = {};
|
|
10714
|
-
typeCheckConfig$
|
|
10851
|
+
typeCheckConfig$R(untrustedConfig, config, deleteContextMapping_ConfigPropertyMetadata);
|
|
10715
10852
|
return config;
|
|
10716
10853
|
}
|
|
10717
10854
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -10757,7 +10894,7 @@ const deleteContextMappingAdapterFactory = (luvio) => {
|
|
|
10757
10894
|
};
|
|
10758
10895
|
|
|
10759
10896
|
function select$b(luvio, params) {
|
|
10760
|
-
return select$
|
|
10897
|
+
return select$U();
|
|
10761
10898
|
}
|
|
10762
10899
|
function keyBuilder$9(luvio, params) {
|
|
10763
10900
|
return keyBuilder$S(luvio, {
|
|
@@ -10815,14 +10952,14 @@ const getContextMapping_ConfigPropertyMetadata = [
|
|
|
10815
10952
|
generateParamConfigMetadata('contextMappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10816
10953
|
];
|
|
10817
10954
|
const getContextMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getContextMapping_ConfigPropertyMetadata);
|
|
10818
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
10955
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$R(getContextMapping_ConfigPropertyMetadata);
|
|
10819
10956
|
function keyBuilder$8(luvio, config) {
|
|
10820
10957
|
const resourceParams = createResourceParams$6(config);
|
|
10821
10958
|
return keyBuilder$9(luvio, resourceParams);
|
|
10822
10959
|
}
|
|
10823
10960
|
function typeCheckConfig$6(untrustedConfig) {
|
|
10824
10961
|
const config = {};
|
|
10825
|
-
typeCheckConfig$
|
|
10962
|
+
typeCheckConfig$R(untrustedConfig, config, getContextMapping_ConfigPropertyMetadata);
|
|
10826
10963
|
return config;
|
|
10827
10964
|
}
|
|
10828
10965
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -10897,7 +11034,7 @@ const getContextMappingAdapterFactory = (luvio) => function IndustriesContext__g
|
|
|
10897
11034
|
};
|
|
10898
11035
|
|
|
10899
11036
|
function select$a(luvio, params) {
|
|
10900
|
-
return select$
|
|
11037
|
+
return select$U();
|
|
10901
11038
|
}
|
|
10902
11039
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
10903
11040
|
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
@@ -10939,10 +11076,10 @@ const updateContextMapping_ConfigPropertyMetadata = [
|
|
|
10939
11076
|
generateParamConfigMetadata('contextMappingInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
10940
11077
|
];
|
|
10941
11078
|
const updateContextMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateContextMapping_ConfigPropertyMetadata);
|
|
10942
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
11079
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$R(updateContextMapping_ConfigPropertyMetadata);
|
|
10943
11080
|
function typeCheckConfig$5(untrustedConfig) {
|
|
10944
11081
|
const config = {};
|
|
10945
|
-
typeCheckConfig$
|
|
11082
|
+
typeCheckConfig$R(untrustedConfig, config, updateContextMapping_ConfigPropertyMetadata);
|
|
10946
11083
|
const untrustedConfig_contextMappingInput = untrustedConfig.contextMappingInput;
|
|
10947
11084
|
const referenceContextMappingInputRepresentationValidationError = validate$9(untrustedConfig_contextMappingInput);
|
|
10948
11085
|
if (referenceContextMappingInputRepresentationValidationError === null) {
|
|
@@ -11295,7 +11432,7 @@ const createContextQueryRecords_ConfigPropertyMetadata = [
|
|
|
11295
11432
|
generateParamConfigMetadata('queryRecordsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
11296
11433
|
];
|
|
11297
11434
|
const createContextQueryRecords_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createContextQueryRecords_ConfigPropertyMetadata);
|
|
11298
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
11435
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$R(createContextQueryRecords_ConfigPropertyMetadata);
|
|
11299
11436
|
function typeCheckConfig$4(untrustedConfig) {
|
|
11300
11437
|
const config = {};
|
|
11301
11438
|
const untrustedConfig_queryRecordsInput = untrustedConfig.queryRecordsInput;
|
|
@@ -11348,7 +11485,7 @@ const createContextQueryRecordsAdapterFactory = (luvio) => {
|
|
|
11348
11485
|
};
|
|
11349
11486
|
|
|
11350
11487
|
function select$6(luvio, params) {
|
|
11351
|
-
return select$
|
|
11488
|
+
return select$15();
|
|
11352
11489
|
}
|
|
11353
11490
|
function keyBuilder$6(luvio, params) {
|
|
11354
11491
|
return keyBuilder$12(luvio, {
|
|
@@ -11406,14 +11543,14 @@ const getContextInfo_ConfigPropertyMetadata = [
|
|
|
11406
11543
|
generateParamConfigMetadata('contextId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11407
11544
|
];
|
|
11408
11545
|
const getContextInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getContextInfo_ConfigPropertyMetadata);
|
|
11409
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
11546
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$R(getContextInfo_ConfigPropertyMetadata);
|
|
11410
11547
|
function keyBuilder$5(luvio, config) {
|
|
11411
11548
|
const resourceParams = createResourceParams$3(config);
|
|
11412
11549
|
return keyBuilder$6(luvio, resourceParams);
|
|
11413
11550
|
}
|
|
11414
11551
|
function typeCheckConfig$3(untrustedConfig) {
|
|
11415
11552
|
const config = {};
|
|
11416
|
-
typeCheckConfig$
|
|
11553
|
+
typeCheckConfig$R(untrustedConfig, config, getContextInfo_ConfigPropertyMetadata);
|
|
11417
11554
|
return config;
|
|
11418
11555
|
}
|
|
11419
11556
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -11692,14 +11829,14 @@ const getContextTranslation_ConfigPropertyMetadata = [
|
|
|
11692
11829
|
generateParamConfigMetadata('removeRestrictedFields', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
11693
11830
|
];
|
|
11694
11831
|
const getContextTranslation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getContextTranslation_ConfigPropertyMetadata);
|
|
11695
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
11832
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$R(getContextTranslation_ConfigPropertyMetadata);
|
|
11696
11833
|
function keyBuilder$3(luvio, config) {
|
|
11697
11834
|
const resourceParams = createResourceParams$2(config);
|
|
11698
11835
|
return keyBuilder$4(luvio, resourceParams);
|
|
11699
11836
|
}
|
|
11700
11837
|
function typeCheckConfig$2(untrustedConfig) {
|
|
11701
11838
|
const config = {};
|
|
11702
|
-
typeCheckConfig$
|
|
11839
|
+
typeCheckConfig$R(untrustedConfig, config, getContextTranslation_ConfigPropertyMetadata);
|
|
11703
11840
|
return config;
|
|
11704
11841
|
}
|
|
11705
11842
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -11929,14 +12066,14 @@ const getContextServiceAccess_ConfigPropertyMetadata = [
|
|
|
11929
12066
|
generateParamConfigMetadata('uniqueIdentifier', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11930
12067
|
];
|
|
11931
12068
|
const getContextServiceAccess_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getContextServiceAccess_ConfigPropertyMetadata);
|
|
11932
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
12069
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$R(getContextServiceAccess_ConfigPropertyMetadata);
|
|
11933
12070
|
function keyBuilder(luvio, config) {
|
|
11934
12071
|
const resourceParams = createResourceParams$1(config);
|
|
11935
12072
|
return keyBuilder$1(luvio, resourceParams);
|
|
11936
12073
|
}
|
|
11937
12074
|
function typeCheckConfig$1(untrustedConfig) {
|
|
11938
12075
|
const config = {};
|
|
11939
|
-
typeCheckConfig$
|
|
12076
|
+
typeCheckConfig$R(untrustedConfig, config, getContextServiceAccess_ConfigPropertyMetadata);
|
|
11940
12077
|
return config;
|
|
11941
12078
|
}
|
|
11942
12079
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -12068,10 +12205,10 @@ const putContextServiceAccess_ConfigPropertyMetadata = [
|
|
|
12068
12205
|
generateParamConfigMetadata('contextServiceAccessInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
12069
12206
|
];
|
|
12070
12207
|
const putContextServiceAccess_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, putContextServiceAccess_ConfigPropertyMetadata);
|
|
12071
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12208
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$R(putContextServiceAccess_ConfigPropertyMetadata);
|
|
12072
12209
|
function typeCheckConfig(untrustedConfig) {
|
|
12073
12210
|
const config = {};
|
|
12074
|
-
typeCheckConfig$
|
|
12211
|
+
typeCheckConfig$R(untrustedConfig, config, putContextServiceAccess_ConfigPropertyMetadata);
|
|
12075
12212
|
const untrustedConfig_contextServiceAccessInput = untrustedConfig.contextServiceAccessInput;
|
|
12076
12213
|
const referenceContextServiceAccessInputRepresentationValidationError = validate(untrustedConfig_contextServiceAccessInput);
|
|
12077
12214
|
if (referenceContextServiceAccessInputRepresentationValidationError === null) {
|
|
@@ -12121,4 +12258,4 @@ const putContextServiceAccessAdapterFactory = (luvio) => {
|
|
|
12121
12258
|
};
|
|
12122
12259
|
};
|
|
12123
12260
|
|
|
12124
|
-
export { createContextAttributeMappingAdapterFactory, createContextAttributeMappingsAdapterFactory, createContextAttributesAdapterFactory, createContextMappingAdapterFactory, createContextMappingsAdapterFactory, createContextNodeMappingAdapterFactory, createContextNodeMappingsAdapterFactory, createContextNodesAdapterFactory, createContextQueryRecordsAdapterFactory, createContextServiceDefinitionAdapterFactory, createContextTagsAdapterFactory, deleteContextAttributeMappingAdapterFactory, deleteContextMappingAdapterFactory, deleteContextNodeMappingAdapterFactory, deleteContextServiceAttributeAdapterFactory, deleteContextServiceAttributeMappingAdapterFactory, deleteContextServiceDefinitionAdapterFactory, deleteContextServiceMappingAdapterFactory, deleteContextServiceNodeAdapterFactory, deleteContextServiceNodeMappingAdapterFactory, deleteContextServiceTagAdapterFactory, getContextAdapterFactory, getContextAttributeMappingAdapterFactory, getContextDefinitionsAdapterFactory, getContextInfoAdapterFactory, getContextMappingAdapterFactory, getContextNodeMappingAdapterFactory, getContextServiceAccessAdapterFactory, getContextServiceAttributeAdapterFactory, getContextServiceAttributeMappingAdapterFactory, getContextServiceDefinitionAdapterFactory, getContextServiceDefinitionInfoAdapterFactory, getContextServiceMappingAdapterFactory, getContextServiceNodeAdapterFactory, getContextServiceNodeMappingAdapterFactory, getContextServiceTagAdapterFactory, getContextTagsAdapterFactory, getContextTranslationAdapterFactory, getDynamicAttributesAdapterFactory, putContextServiceAccessAdapterFactory, queryContextRecordAndChildrenAdapterFactory, updateContextAttributeMappingAdapterFactory, updateContextAttributeMappingsAdapterFactory, updateContextAttributesAdapterFactory, updateContextMappingAdapterFactory, updateContextMappingsAdapterFactory, updateContextNodeMappingAdapterFactory, updateContextNodeMappingsAdapterFactory, updateContextNodesAdapterFactory, updateContextServiceDefinitionAdapterFactory, updateContextTagsAdapterFactory, upgradeContextServiceDefinitionAdapterFactory };
|
|
12261
|
+
export { cloneContextMappingsAdapterFactory, createContextAttributeMappingAdapterFactory, createContextAttributeMappingsAdapterFactory, createContextAttributesAdapterFactory, createContextMappingAdapterFactory, createContextMappingsAdapterFactory, createContextNodeMappingAdapterFactory, createContextNodeMappingsAdapterFactory, createContextNodesAdapterFactory, createContextQueryRecordsAdapterFactory, createContextServiceDefinitionAdapterFactory, createContextTagsAdapterFactory, deleteContextAttributeMappingAdapterFactory, deleteContextMappingAdapterFactory, deleteContextNodeMappingAdapterFactory, deleteContextServiceAttributeAdapterFactory, deleteContextServiceAttributeMappingAdapterFactory, deleteContextServiceDefinitionAdapterFactory, deleteContextServiceMappingAdapterFactory, deleteContextServiceNodeAdapterFactory, deleteContextServiceNodeMappingAdapterFactory, deleteContextServiceTagAdapterFactory, getContextAdapterFactory, getContextAttributeMappingAdapterFactory, getContextDefinitionsAdapterFactory, getContextInfoAdapterFactory, getContextMappingAdapterFactory, getContextNodeMappingAdapterFactory, getContextServiceAccessAdapterFactory, getContextServiceAttributeAdapterFactory, getContextServiceAttributeMappingAdapterFactory, getContextServiceDefinitionAdapterFactory, getContextServiceDefinitionInfoAdapterFactory, getContextServiceMappingAdapterFactory, getContextServiceNodeAdapterFactory, getContextServiceNodeMappingAdapterFactory, getContextServiceTagAdapterFactory, getContextTagsAdapterFactory, getContextTranslationAdapterFactory, getDynamicAttributesAdapterFactory, putContextServiceAccessAdapterFactory, queryContextRecordAndChildrenAdapterFactory, updateContextAttributeMappingAdapterFactory, updateContextAttributeMappingsAdapterFactory, updateContextAttributesAdapterFactory, updateContextMappingAdapterFactory, updateContextMappingsAdapterFactory, updateContextNodeMappingAdapterFactory, updateContextNodeMappingsAdapterFactory, updateContextNodesAdapterFactory, updateContextServiceDefinitionAdapterFactory, updateContextTagsAdapterFactory, upgradeContextServiceDefinitionAdapterFactory };
|