@salesforce/lds-adapters-industries-context 1.133.2 → 1.134.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 +110 -73
- package/dist/es/es2018/types/src/generated/adapters/getContextServiceAccess.d.ts +5 -4
- package/dist/es/es2018/types/src/generated/adapters/putContextServiceAccess.d.ts +5 -3
- package/dist/es/es2018/types/src/generated/resources/{getConnectContextserviceAccessByPreferenceName.d.ts → getConnectContextserviceAccessByPreferenceNameAndUniqueIdentifier.d.ts} +1 -0
- package/dist/es/es2018/types/src/generated/resources/{putConnectContextserviceAccessByPreferenceName.d.ts → putConnectContextserviceAccessByPreferenceNameAndUniqueIdentifier.d.ts} +3 -1
- package/dist/es/es2018/types/src/generated/types/ContextServiceAccessInputWrapperRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/ContextServiceAccessRepresentation.d.ts +8 -5
- package/package.json +1 -1
- package/sfdc/index.js +114 -77
- package/src/raml/api.raml +16 -2
- package/src/raml/luvio.raml +8 -3
|
@@ -92,7 +92,7 @@ function createLink(ref) {
|
|
|
92
92
|
|
|
93
93
|
const TTL$c = 30000;
|
|
94
94
|
const VERSION$d = "05ab63159c5733f63fae9f5eb081ee89";
|
|
95
|
-
function validate$
|
|
95
|
+
function validate$n(obj, path = 'ContextDefinitionInfoRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -441,7 +441,7 @@ function equals$d(existing, incoming) {
|
|
|
441
441
|
}
|
|
442
442
|
const ingest$c = function ContextDefinitionInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
443
443
|
if (process.env.NODE_ENV !== 'production') {
|
|
444
|
-
const validateError = validate$
|
|
444
|
+
const validateError = validate$n(input);
|
|
445
445
|
if (validateError !== null) {
|
|
446
446
|
throw validateError;
|
|
447
447
|
}
|
|
@@ -483,7 +483,7 @@ function getTypeCacheKeys$c(luvio, input, fullPathFactory) {
|
|
|
483
483
|
|
|
484
484
|
const TTL$b = 10000;
|
|
485
485
|
const VERSION$c = "847680af81af4497e1c8078978aa7a7e";
|
|
486
|
-
function validate$
|
|
486
|
+
function validate$m(obj, path = 'ContextDefinitionListRepresentation') {
|
|
487
487
|
const v_error = (() => {
|
|
488
488
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
489
489
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -578,7 +578,7 @@ function equals$c(existing, incoming) {
|
|
|
578
578
|
}
|
|
579
579
|
const ingest$b = function ContextDefinitionListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
580
580
|
if (process.env.NODE_ENV !== 'production') {
|
|
581
|
-
const validateError = validate$
|
|
581
|
+
const validateError = validate$m(input);
|
|
582
582
|
if (validateError !== null) {
|
|
583
583
|
throw validateError;
|
|
584
584
|
}
|
|
@@ -781,7 +781,7 @@ const getContextDefinitionListAdapterFactory = (luvio) => function IndustriesCon
|
|
|
781
781
|
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
782
782
|
};
|
|
783
783
|
|
|
784
|
-
function validate$
|
|
784
|
+
function validate$l(obj, path = 'ContextDefinitionInputRepresentation') {
|
|
785
785
|
const v_error = (() => {
|
|
786
786
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
787
787
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -886,7 +886,7 @@ function createResourceParams$A(config) {
|
|
|
886
886
|
function typeCheckConfig$A(untrustedConfig) {
|
|
887
887
|
const config = {};
|
|
888
888
|
const untrustedConfig_contextDefinitionInput = untrustedConfig.contextDefinitionInput;
|
|
889
|
-
const referenceContextDefinitionInputRepresentationValidationError = validate$
|
|
889
|
+
const referenceContextDefinitionInputRepresentationValidationError = validate$l(untrustedConfig_contextDefinitionInput);
|
|
890
890
|
if (referenceContextDefinitionInputRepresentationValidationError === null) {
|
|
891
891
|
config.contextDefinitionInput = untrustedConfig_contextDefinitionInput;
|
|
892
892
|
}
|
|
@@ -930,7 +930,7 @@ const createContextDefinitionAdapterFactory = (luvio) => {
|
|
|
930
930
|
};
|
|
931
931
|
};
|
|
932
932
|
|
|
933
|
-
function validate$
|
|
933
|
+
function validate$k(obj, path = 'ContextAttributeInputRepresentation') {
|
|
934
934
|
const v_error = (() => {
|
|
935
935
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
936
936
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -997,7 +997,7 @@ function validate$j(obj, path = 'ContextAttributeInputRepresentation') {
|
|
|
997
997
|
|
|
998
998
|
const TTL$a = 30000;
|
|
999
999
|
const VERSION$b = "6cc8b3ef582709be7344b57cb6370543";
|
|
1000
|
-
function validate$
|
|
1000
|
+
function validate$j(obj, path = 'ContextAttributeTagRepresentation') {
|
|
1001
1001
|
const v_error = (() => {
|
|
1002
1002
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1003
1003
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1138,7 +1138,7 @@ function deepFreeze$8(input) {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
const ingest$a = function ContextAttributeTagRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1140
1140
|
if (process.env.NODE_ENV !== 'production') {
|
|
1141
|
-
const validateError = validate$
|
|
1141
|
+
const validateError = validate$j(input);
|
|
1142
1142
|
if (validateError !== null) {
|
|
1143
1143
|
throw validateError;
|
|
1144
1144
|
}
|
|
@@ -1180,7 +1180,7 @@ function getTypeCacheKeys$a(luvio, input, fullPathFactory) {
|
|
|
1180
1180
|
|
|
1181
1181
|
const TTL$9 = 30000;
|
|
1182
1182
|
const VERSION$a = "6b4da990bdb17903fdbabc1d342a8acb";
|
|
1183
|
-
function validate$
|
|
1183
|
+
function validate$i(obj, path = 'ContextAttributeRepresentation') {
|
|
1184
1184
|
const v_error = (() => {
|
|
1185
1185
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1186
1186
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1413,7 +1413,7 @@ function deepFreeze$7(input) {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
const ingest$9 = function ContextAttributeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1415
1415
|
if (process.env.NODE_ENV !== 'production') {
|
|
1416
|
-
const validateError = validate$
|
|
1416
|
+
const validateError = validate$i(input);
|
|
1417
1417
|
if (validateError !== null) {
|
|
1418
1418
|
throw validateError;
|
|
1419
1419
|
}
|
|
@@ -1511,7 +1511,7 @@ function createResourceParams$z(config) {
|
|
|
1511
1511
|
function typeCheckConfig$z(untrustedConfig) {
|
|
1512
1512
|
const config = {};
|
|
1513
1513
|
const untrustedConfig_contextAttributeInput = untrustedConfig.contextAttributeInput;
|
|
1514
|
-
const referenceContextAttributeInputRepresentationValidationError = validate$
|
|
1514
|
+
const referenceContextAttributeInputRepresentationValidationError = validate$k(untrustedConfig_contextAttributeInput);
|
|
1515
1515
|
if (referenceContextAttributeInputRepresentationValidationError === null) {
|
|
1516
1516
|
config.contextAttributeInput = untrustedConfig_contextAttributeInput;
|
|
1517
1517
|
}
|
|
@@ -1872,7 +1872,7 @@ function typeCheckConfig$w(untrustedConfig) {
|
|
|
1872
1872
|
config.contextAttributeId = untrustedConfig_contextAttributeId;
|
|
1873
1873
|
}
|
|
1874
1874
|
const untrustedConfig_contextAttributeInput = untrustedConfig.contextAttributeInput;
|
|
1875
|
-
const referenceContextAttributeInputRepresentationValidationError = validate$
|
|
1875
|
+
const referenceContextAttributeInputRepresentationValidationError = validate$k(untrustedConfig_contextAttributeInput);
|
|
1876
1876
|
if (referenceContextAttributeInputRepresentationValidationError === null) {
|
|
1877
1877
|
config.contextAttributeInput = untrustedConfig_contextAttributeInput;
|
|
1878
1878
|
}
|
|
@@ -1918,7 +1918,7 @@ const updateContextAttributeAdapterFactory = (luvio) => {
|
|
|
1918
1918
|
|
|
1919
1919
|
const TTL$8 = 10000;
|
|
1920
1920
|
const VERSION$9 = "5d7bd042347d78b8c394239649db8f46";
|
|
1921
|
-
function validate$
|
|
1921
|
+
function validate$h(obj, path = 'ContextAttributeTagListRepresentation') {
|
|
1922
1922
|
const v_error = (() => {
|
|
1923
1923
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1924
1924
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1932,7 +1932,7 @@ function validate$g(obj, path = 'ContextAttributeTagListRepresentation') {
|
|
|
1932
1932
|
for (let i = 0; i < obj_attributeTags.length; i++) {
|
|
1933
1933
|
const obj_attributeTags_item = obj_attributeTags[i];
|
|
1934
1934
|
const path_attributeTags_item = path_attributeTags + '[' + i + ']';
|
|
1935
|
-
const referencepath_attributeTags_itemValidationError = validate$
|
|
1935
|
+
const referencepath_attributeTags_itemValidationError = validate$j(obj_attributeTags_item, path_attributeTags_item);
|
|
1936
1936
|
if (referencepath_attributeTags_itemValidationError !== null) {
|
|
1937
1937
|
let message = 'Object doesn\'t match ContextAttributeTagRepresentation (at "' + path_attributeTags_item + '")\n';
|
|
1938
1938
|
message += referencepath_attributeTags_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1981,7 +1981,7 @@ function deepFreeze$6(input) {
|
|
|
1981
1981
|
}
|
|
1982
1982
|
const ingest$8 = function ContextAttributeTagListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1983
1983
|
if (process.env.NODE_ENV !== 'production') {
|
|
1984
|
-
const validateError = validate$
|
|
1984
|
+
const validateError = validate$h(input);
|
|
1985
1985
|
if (validateError !== null) {
|
|
1986
1986
|
throw validateError;
|
|
1987
1987
|
}
|
|
@@ -2181,7 +2181,7 @@ const getContextAttributeTagsByAttributeIdAdapterFactory = (luvio) => function I
|
|
|
2181
2181
|
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
2182
2182
|
};
|
|
2183
2183
|
|
|
2184
|
-
function validate$
|
|
2184
|
+
function validate$g(obj, path = 'ContextAttributeTagInputRepresentation') {
|
|
2185
2185
|
const v_error = (() => {
|
|
2186
2186
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2187
2187
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2263,7 +2263,7 @@ function createResourceParams$u(config) {
|
|
|
2263
2263
|
function typeCheckConfig$u(untrustedConfig) {
|
|
2264
2264
|
const config = {};
|
|
2265
2265
|
const untrustedConfig_contextAttributeTagInput = untrustedConfig.contextAttributeTagInput;
|
|
2266
|
-
const referenceContextAttributeTagInputRepresentationValidationError = validate$
|
|
2266
|
+
const referenceContextAttributeTagInputRepresentationValidationError = validate$g(untrustedConfig_contextAttributeTagInput);
|
|
2267
2267
|
if (referenceContextAttributeTagInputRepresentationValidationError === null) {
|
|
2268
2268
|
config.contextAttributeTagInput = untrustedConfig_contextAttributeTagInput;
|
|
2269
2269
|
}
|
|
@@ -2624,7 +2624,7 @@ function typeCheckConfig$r(untrustedConfig) {
|
|
|
2624
2624
|
config.contextAttributeTagId = untrustedConfig_contextAttributeTagId;
|
|
2625
2625
|
}
|
|
2626
2626
|
const untrustedConfig_contextAttributeTagInput = untrustedConfig.contextAttributeTagInput;
|
|
2627
|
-
const referenceContextAttributeTagInputRepresentationValidationError = validate$
|
|
2627
|
+
const referenceContextAttributeTagInputRepresentationValidationError = validate$g(untrustedConfig_contextAttributeTagInput);
|
|
2628
2628
|
if (referenceContextAttributeTagInputRepresentationValidationError === null) {
|
|
2629
2629
|
config.contextAttributeTagInput = untrustedConfig_contextAttributeTagInput;
|
|
2630
2630
|
}
|
|
@@ -2829,7 +2829,7 @@ const getContextDefinitionInfoAdapterFactory = (luvio) => function IndustriesCon
|
|
|
2829
2829
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
2830
2830
|
};
|
|
2831
2831
|
|
|
2832
|
-
function validate$
|
|
2832
|
+
function validate$f(obj, path = 'ContextNodeInputRepresentation') {
|
|
2833
2833
|
const v_error = (() => {
|
|
2834
2834
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2835
2835
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2906,7 +2906,7 @@ function validate$e(obj, path = 'ContextNodeInputRepresentation') {
|
|
|
2906
2906
|
|
|
2907
2907
|
const TTL$7 = 30000;
|
|
2908
2908
|
const VERSION$8 = "cf75cb95b2ed381500c696acf0bf903a";
|
|
2909
|
-
function validate$
|
|
2909
|
+
function validate$e(obj, path = 'ContextNodeRepresentation') {
|
|
2910
2910
|
const v_error = (() => {
|
|
2911
2911
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2912
2912
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2920,7 +2920,7 @@ function validate$d(obj, path = 'ContextNodeRepresentation') {
|
|
|
2920
2920
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
2921
2921
|
const obj_attributes_item = obj_attributes[i];
|
|
2922
2922
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
2923
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
2923
|
+
const referencepath_attributes_itemValidationError = validate$i(obj_attributes_item, path_attributes_item);
|
|
2924
2924
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
2925
2925
|
let message = 'Object doesn\'t match ContextAttributeRepresentation (at "' + path_attributes_item + '")\n';
|
|
2926
2926
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2937,7 +2937,7 @@ function validate$d(obj, path = 'ContextNodeRepresentation') {
|
|
|
2937
2937
|
for (let i = 0; i < obj_childNodes.length; i++) {
|
|
2938
2938
|
const obj_childNodes_item = obj_childNodes[i];
|
|
2939
2939
|
const path_childNodes_item = path_childNodes + '[' + i + ']';
|
|
2940
|
-
const referencepath_childNodes_itemValidationError = validate$
|
|
2940
|
+
const referencepath_childNodes_itemValidationError = validate$e(obj_childNodes_item, path_childNodes_item);
|
|
2941
2941
|
if (referencepath_childNodes_itemValidationError !== null) {
|
|
2942
2942
|
let message = 'Object doesn\'t match ContextNodeRepresentation (at "' + path_childNodes_item + '")\n';
|
|
2943
2943
|
message += referencepath_childNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2990,7 +2990,7 @@ function validate$d(obj, path = 'ContextNodeRepresentation') {
|
|
|
2990
2990
|
for (let i = 0; i < obj_tags.length; i++) {
|
|
2991
2991
|
const obj_tags_item = obj_tags[i];
|
|
2992
2992
|
const path_tags_item = path_tags + '[' + i + ']';
|
|
2993
|
-
const referencepath_tags_itemValidationError = validate$
|
|
2993
|
+
const referencepath_tags_itemValidationError = validate$j(obj_tags_item, path_tags_item);
|
|
2994
2994
|
if (referencepath_tags_itemValidationError !== null) {
|
|
2995
2995
|
let message = 'Object doesn\'t match ContextAttributeTagRepresentation (at "' + path_tags_item + '")\n';
|
|
2996
2996
|
message += referencepath_tags_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3057,7 +3057,7 @@ function deepFreeze$5(input) {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
const ingest$7 = function ContextNodeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3059
3059
|
if (process.env.NODE_ENV !== 'production') {
|
|
3060
|
-
const validateError = validate$
|
|
3060
|
+
const validateError = validate$e(input);
|
|
3061
3061
|
if (validateError !== null) {
|
|
3062
3062
|
throw validateError;
|
|
3063
3063
|
}
|
|
@@ -3152,7 +3152,7 @@ function createResourceParams$p(config) {
|
|
|
3152
3152
|
function typeCheckConfig$p(untrustedConfig) {
|
|
3153
3153
|
const config = {};
|
|
3154
3154
|
const untrustedConfig_contextNodeInput = untrustedConfig.contextNodeInput;
|
|
3155
|
-
const referenceContextNodeInputRepresentationValidationError = validate$
|
|
3155
|
+
const referenceContextNodeInputRepresentationValidationError = validate$f(untrustedConfig_contextNodeInput);
|
|
3156
3156
|
if (referenceContextNodeInputRepresentationValidationError === null) {
|
|
3157
3157
|
config.contextNodeInput = untrustedConfig_contextNodeInput;
|
|
3158
3158
|
}
|
|
@@ -3513,7 +3513,7 @@ function typeCheckConfig$m(untrustedConfig) {
|
|
|
3513
3513
|
config.contextNodeId = untrustedConfig_contextNodeId;
|
|
3514
3514
|
}
|
|
3515
3515
|
const untrustedConfig_contextNodeInput = untrustedConfig.contextNodeInput;
|
|
3516
|
-
const referenceContextNodeInputRepresentationValidationError = validate$
|
|
3516
|
+
const referenceContextNodeInputRepresentationValidationError = validate$f(untrustedConfig_contextNodeInput);
|
|
3517
3517
|
if (referenceContextNodeInputRepresentationValidationError === null) {
|
|
3518
3518
|
config.contextNodeInput = untrustedConfig_contextNodeInput;
|
|
3519
3519
|
}
|
|
@@ -3557,7 +3557,7 @@ const updateContextNodeAdapterFactory = (luvio) => {
|
|
|
3557
3557
|
};
|
|
3558
3558
|
};
|
|
3559
3559
|
|
|
3560
|
-
function validate$
|
|
3560
|
+
function validate$d(obj, path = 'ContextAttributeListInputRepresentation') {
|
|
3561
3561
|
const v_error = (() => {
|
|
3562
3562
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3563
3563
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3580,7 +3580,7 @@ function validate$c(obj, path = 'ContextAttributeListInputRepresentation') {
|
|
|
3580
3580
|
|
|
3581
3581
|
const TTL$6 = 10000;
|
|
3582
3582
|
const VERSION$7 = "6bbfbaed88b7bd009de04a1002ab7022";
|
|
3583
|
-
function validate$
|
|
3583
|
+
function validate$c(obj, path = 'ContextAttributeListRepresentation') {
|
|
3584
3584
|
const v_error = (() => {
|
|
3585
3585
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3586
3586
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3698,7 +3698,7 @@ function equals$7(existing, incoming) {
|
|
|
3698
3698
|
}
|
|
3699
3699
|
const ingest$6 = function ContextAttributeListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3700
3700
|
if (process.env.NODE_ENV !== 'production') {
|
|
3701
|
-
const validateError = validate$
|
|
3701
|
+
const validateError = validate$c(input);
|
|
3702
3702
|
if (validateError !== null) {
|
|
3703
3703
|
throw validateError;
|
|
3704
3704
|
}
|
|
@@ -3803,7 +3803,7 @@ function typeCheckConfig$l(untrustedConfig) {
|
|
|
3803
3803
|
config.contextNodeId = untrustedConfig_contextNodeId;
|
|
3804
3804
|
}
|
|
3805
3805
|
const untrustedConfig_contextAttributeListInput = untrustedConfig.contextAttributeListInput;
|
|
3806
|
-
const referenceContextAttributeListInputRepresentationValidationError = validate$
|
|
3806
|
+
const referenceContextAttributeListInputRepresentationValidationError = validate$d(untrustedConfig_contextAttributeListInput);
|
|
3807
3807
|
if (referenceContextAttributeListInputRepresentationValidationError === null) {
|
|
3808
3808
|
config.contextAttributeListInput = untrustedConfig_contextAttributeListInput;
|
|
3809
3809
|
}
|
|
@@ -3847,7 +3847,7 @@ const createContextAttributeListAdapterFactory = (luvio) => {
|
|
|
3847
3847
|
};
|
|
3848
3848
|
};
|
|
3849
3849
|
|
|
3850
|
-
function validate$
|
|
3850
|
+
function validate$b(obj, path = 'ContextDefinitionVersionInputRepresentation') {
|
|
3851
3851
|
const v_error = (() => {
|
|
3852
3852
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3853
3853
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3911,7 +3911,7 @@ function validate$a(obj, path = 'ContextDefinitionVersionInputRepresentation') {
|
|
|
3911
3911
|
}
|
|
3912
3912
|
|
|
3913
3913
|
const VERSION$6 = "0198779900530411087eeae93310fd16";
|
|
3914
|
-
function validate$
|
|
3914
|
+
function validate$a(obj, path = 'ContextAttrHydrationDetailRepresentation') {
|
|
3915
3915
|
const v_error = (() => {
|
|
3916
3916
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3917
3917
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4096,7 +4096,7 @@ function deepFreeze$4(input) {
|
|
|
4096
4096
|
|
|
4097
4097
|
const TTL$5 = 30000;
|
|
4098
4098
|
const VERSION$5 = "9b6f863445ba97e3cf74be37379582e1";
|
|
4099
|
-
function validate$
|
|
4099
|
+
function validate$9(obj, path = 'ContextAttributeMappingRepresentation') {
|
|
4100
4100
|
const v_error = (() => {
|
|
4101
4101
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4102
4102
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4110,7 +4110,7 @@ function validate$8(obj, path = 'ContextAttributeMappingRepresentation') {
|
|
|
4110
4110
|
for (let i = 0; i < obj_contextAttrHydrationDetailList.length; i++) {
|
|
4111
4111
|
const obj_contextAttrHydrationDetailList_item = obj_contextAttrHydrationDetailList[i];
|
|
4112
4112
|
const path_contextAttrHydrationDetailList_item = path_contextAttrHydrationDetailList + '[' + i + ']';
|
|
4113
|
-
const referencepath_contextAttrHydrationDetailList_itemValidationError = validate$
|
|
4113
|
+
const referencepath_contextAttrHydrationDetailList_itemValidationError = validate$a(obj_contextAttrHydrationDetailList_item, path_contextAttrHydrationDetailList_item);
|
|
4114
4114
|
if (referencepath_contextAttrHydrationDetailList_itemValidationError !== null) {
|
|
4115
4115
|
let message = 'Object doesn\'t match ContextAttrHydrationDetailRepresentation (at "' + path_contextAttrHydrationDetailList_item + '")\n';
|
|
4116
4116
|
message += referencepath_contextAttrHydrationDetailList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4266,7 +4266,7 @@ function deepFreeze$3(input) {
|
|
|
4266
4266
|
}
|
|
4267
4267
|
const ingest$5 = function ContextAttributeMappingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4268
4268
|
if (process.env.NODE_ENV !== 'production') {
|
|
4269
|
-
const validateError = validate$
|
|
4269
|
+
const validateError = validate$9(input);
|
|
4270
4270
|
if (validateError !== null) {
|
|
4271
4271
|
throw validateError;
|
|
4272
4272
|
}
|
|
@@ -4308,7 +4308,7 @@ function getTypeCacheKeys$5(luvio, input, fullPathFactory) {
|
|
|
4308
4308
|
|
|
4309
4309
|
const TTL$4 = 30000;
|
|
4310
4310
|
const VERSION$4 = "973e05478626e454b1189885e90a0f5c";
|
|
4311
|
-
function validate$
|
|
4311
|
+
function validate$8(obj, path = 'ContextNodeMappingRepresentation') {
|
|
4312
4312
|
const v_error = (() => {
|
|
4313
4313
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4314
4314
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4488,7 +4488,7 @@ function deepFreeze$2(input) {
|
|
|
4488
4488
|
}
|
|
4489
4489
|
const ingest$4 = function ContextNodeMappingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4490
4490
|
if (process.env.NODE_ENV !== 'production') {
|
|
4491
|
-
const validateError = validate$
|
|
4491
|
+
const validateError = validate$8(input);
|
|
4492
4492
|
if (validateError !== null) {
|
|
4493
4493
|
throw validateError;
|
|
4494
4494
|
}
|
|
@@ -4534,7 +4534,7 @@ function getTypeCacheKeys$4(luvio, input, fullPathFactory) {
|
|
|
4534
4534
|
|
|
4535
4535
|
const TTL$3 = 30000;
|
|
4536
4536
|
const VERSION$3 = "55d0eba91b557939fe8acf7a1ad6939c";
|
|
4537
|
-
function validate$
|
|
4537
|
+
function validate$7(obj, path = 'ContextMappingRepresentation') {
|
|
4538
4538
|
const v_error = (() => {
|
|
4539
4539
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4540
4540
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4714,7 +4714,7 @@ function deepFreeze$1(input) {
|
|
|
4714
4714
|
}
|
|
4715
4715
|
const ingest$3 = function ContextMappingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4716
4716
|
if (process.env.NODE_ENV !== 'production') {
|
|
4717
|
-
const validateError = validate$
|
|
4717
|
+
const validateError = validate$7(input);
|
|
4718
4718
|
if (validateError !== null) {
|
|
4719
4719
|
throw validateError;
|
|
4720
4720
|
}
|
|
@@ -4760,7 +4760,7 @@ function getTypeCacheKeys$3(luvio, input, fullPathFactory) {
|
|
|
4760
4760
|
|
|
4761
4761
|
const TTL$2 = 30000;
|
|
4762
4762
|
const VERSION$2 = "3158779e25300fbcfd5a77c94e2da2d1";
|
|
4763
|
-
function validate$
|
|
4763
|
+
function validate$6(obj, path = 'ContextDefinitionVersionRepresentation') {
|
|
4764
4764
|
const v_error = (() => {
|
|
4765
4765
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4766
4766
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4783,7 +4783,7 @@ function validate$5(obj, path = 'ContextDefinitionVersionRepresentation') {
|
|
|
4783
4783
|
for (let i = 0; i < obj_contextMappings.length; i++) {
|
|
4784
4784
|
const obj_contextMappings_item = obj_contextMappings[i];
|
|
4785
4785
|
const path_contextMappings_item = path_contextMappings + '[' + i + ']';
|
|
4786
|
-
const referencepath_contextMappings_itemValidationError = validate$
|
|
4786
|
+
const referencepath_contextMappings_itemValidationError = validate$7(obj_contextMappings_item, path_contextMappings_item);
|
|
4787
4787
|
if (referencepath_contextMappings_itemValidationError !== null) {
|
|
4788
4788
|
let message = 'Object doesn\'t match ContextMappingRepresentation (at "' + path_contextMappings_item + '")\n';
|
|
4789
4789
|
message += referencepath_contextMappings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4798,7 +4798,7 @@ function validate$5(obj, path = 'ContextDefinitionVersionRepresentation') {
|
|
|
4798
4798
|
for (let i = 0; i < obj_contextNodes.length; i++) {
|
|
4799
4799
|
const obj_contextNodes_item = obj_contextNodes[i];
|
|
4800
4800
|
const path_contextNodes_item = path_contextNodes + '[' + i + ']';
|
|
4801
|
-
const referencepath_contextNodes_itemValidationError = validate$
|
|
4801
|
+
const referencepath_contextNodes_itemValidationError = validate$e(obj_contextNodes_item, path_contextNodes_item);
|
|
4802
4802
|
if (referencepath_contextNodes_itemValidationError !== null) {
|
|
4803
4803
|
let message = 'Object doesn\'t match ContextNodeRepresentation (at "' + path_contextNodes_item + '")\n';
|
|
4804
4804
|
message += referencepath_contextNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4887,7 +4887,7 @@ function deepFreeze(input) {
|
|
|
4887
4887
|
}
|
|
4888
4888
|
const ingest$2 = function ContextDefinitionVersionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4889
4889
|
if (process.env.NODE_ENV !== 'production') {
|
|
4890
|
-
const validateError = validate$
|
|
4890
|
+
const validateError = validate$6(input);
|
|
4891
4891
|
if (validateError !== null) {
|
|
4892
4892
|
throw validateError;
|
|
4893
4893
|
}
|
|
@@ -4982,7 +4982,7 @@ function createResourceParams$k(config) {
|
|
|
4982
4982
|
function typeCheckConfig$k(untrustedConfig) {
|
|
4983
4983
|
const config = {};
|
|
4984
4984
|
const untrustedConfig_contextDefinitionVersionInput = untrustedConfig.contextDefinitionVersionInput;
|
|
4985
|
-
const referenceContextDefinitionVersionInputRepresentationValidationError = validate$
|
|
4985
|
+
const referenceContextDefinitionVersionInputRepresentationValidationError = validate$b(untrustedConfig_contextDefinitionVersionInput);
|
|
4986
4986
|
if (referenceContextDefinitionVersionInputRepresentationValidationError === null) {
|
|
4987
4987
|
config.contextDefinitionVersionInput = untrustedConfig_contextDefinitionVersionInput;
|
|
4988
4988
|
}
|
|
@@ -5343,7 +5343,7 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
5343
5343
|
config.contextDefinitionVersionId = untrustedConfig_contextDefinitionVersionId;
|
|
5344
5344
|
}
|
|
5345
5345
|
const untrustedConfig_contextDefinitionVersionInput = untrustedConfig.contextDefinitionVersionInput;
|
|
5346
|
-
const referenceContextDefinitionVersionInputRepresentationValidationError = validate$
|
|
5346
|
+
const referenceContextDefinitionVersionInputRepresentationValidationError = validate$b(untrustedConfig_contextDefinitionVersionInput);
|
|
5347
5347
|
if (referenceContextDefinitionVersionInputRepresentationValidationError === null) {
|
|
5348
5348
|
config.contextDefinitionVersionInput = untrustedConfig_contextDefinitionVersionInput;
|
|
5349
5349
|
}
|
|
@@ -5389,7 +5389,7 @@ const updateContextDefinitionVersionAdapterFactory = (luvio) => {
|
|
|
5389
5389
|
|
|
5390
5390
|
const TTL$1 = 30000;
|
|
5391
5391
|
const VERSION$1 = "1ba01f4b3eafae59f3d6860e1fe35f97";
|
|
5392
|
-
function validate$
|
|
5392
|
+
function validate$5(obj, path = 'ContextDefinitionRepresentation') {
|
|
5393
5393
|
const v_error = (() => {
|
|
5394
5394
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5395
5395
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5610,7 +5610,7 @@ function equals$1(existing, incoming) {
|
|
|
5610
5610
|
}
|
|
5611
5611
|
const ingest$1 = function ContextDefinitionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5612
5612
|
if (process.env.NODE_ENV !== 'production') {
|
|
5613
|
-
const validateError = validate$
|
|
5613
|
+
const validateError = validate$5(input);
|
|
5614
5614
|
if (validateError !== null) {
|
|
5615
5615
|
throw validateError;
|
|
5616
5616
|
}
|
|
@@ -5971,7 +5971,7 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
5971
5971
|
config.contextDefinitionId = untrustedConfig_contextDefinitionId;
|
|
5972
5972
|
}
|
|
5973
5973
|
const untrustedConfig_contextDefinitionInput = untrustedConfig.contextDefinitionInput;
|
|
5974
|
-
const referenceContextDefinitionInputRepresentationValidationError = validate$
|
|
5974
|
+
const referenceContextDefinitionInputRepresentationValidationError = validate$l(untrustedConfig_contextDefinitionInput);
|
|
5975
5975
|
if (referenceContextDefinitionInputRepresentationValidationError === null) {
|
|
5976
5976
|
config.contextDefinitionInput = untrustedConfig_contextDefinitionInput;
|
|
5977
5977
|
}
|
|
@@ -6015,7 +6015,7 @@ const updateContextDefinitionAdapterFactory = (luvio) => {
|
|
|
6015
6015
|
};
|
|
6016
6016
|
};
|
|
6017
6017
|
|
|
6018
|
-
function validate$
|
|
6018
|
+
function validate$4(obj, path = 'ContextMappingInputRepresentation') {
|
|
6019
6019
|
const v_error = (() => {
|
|
6020
6020
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6021
6021
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6109,7 +6109,7 @@ function createResourceParams$d(config) {
|
|
|
6109
6109
|
function typeCheckConfig$d(untrustedConfig) {
|
|
6110
6110
|
const config = {};
|
|
6111
6111
|
const untrustedConfig_contextMappingInput = untrustedConfig.contextMappingInput;
|
|
6112
|
-
const referenceContextMappingInputRepresentationValidationError = validate$
|
|
6112
|
+
const referenceContextMappingInputRepresentationValidationError = validate$4(untrustedConfig_contextMappingInput);
|
|
6113
6113
|
if (referenceContextMappingInputRepresentationValidationError === null) {
|
|
6114
6114
|
config.contextMappingInput = untrustedConfig_contextMappingInput;
|
|
6115
6115
|
}
|
|
@@ -6153,7 +6153,7 @@ const createContextMappingAdapterFactory = (luvio) => {
|
|
|
6153
6153
|
};
|
|
6154
6154
|
};
|
|
6155
6155
|
|
|
6156
|
-
function validate$
|
|
6156
|
+
function validate$3(obj, path = 'ContextAttributeMappingInputRepresentation') {
|
|
6157
6157
|
const v_error = (() => {
|
|
6158
6158
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6159
6159
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6254,7 +6254,7 @@ function createResourceParams$c(config) {
|
|
|
6254
6254
|
function typeCheckConfig$c(untrustedConfig) {
|
|
6255
6255
|
const config = {};
|
|
6256
6256
|
const untrustedConfig_contextAttributeMappingInput = untrustedConfig.contextAttributeMappingInput;
|
|
6257
|
-
const referenceContextAttributeMappingInputRepresentationValidationError = validate$
|
|
6257
|
+
const referenceContextAttributeMappingInputRepresentationValidationError = validate$3(untrustedConfig_contextAttributeMappingInput);
|
|
6258
6258
|
if (referenceContextAttributeMappingInputRepresentationValidationError === null) {
|
|
6259
6259
|
config.contextAttributeMappingInput = untrustedConfig_contextAttributeMappingInput;
|
|
6260
6260
|
}
|
|
@@ -6615,7 +6615,7 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
6615
6615
|
config.contextAttributeMappingId = untrustedConfig_contextAttributeMappingId;
|
|
6616
6616
|
}
|
|
6617
6617
|
const untrustedConfig_contextAttributeMappingInput = untrustedConfig.contextAttributeMappingInput;
|
|
6618
|
-
const referenceContextAttributeMappingInputRepresentationValidationError = validate$
|
|
6618
|
+
const referenceContextAttributeMappingInputRepresentationValidationError = validate$3(untrustedConfig_contextAttributeMappingInput);
|
|
6619
6619
|
if (referenceContextAttributeMappingInputRepresentationValidationError === null) {
|
|
6620
6620
|
config.contextAttributeMappingInput = untrustedConfig_contextAttributeMappingInput;
|
|
6621
6621
|
}
|
|
@@ -6659,7 +6659,7 @@ const updateContextAttributeMappingAdapterFactory = (luvio) => {
|
|
|
6659
6659
|
};
|
|
6660
6660
|
};
|
|
6661
6661
|
|
|
6662
|
-
function validate$
|
|
6662
|
+
function validate$2(obj, path = 'ContextNodeMappingInputRepresentation') {
|
|
6663
6663
|
const v_error = (() => {
|
|
6664
6664
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6665
6665
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6749,7 +6749,7 @@ function createResourceParams$8(config) {
|
|
|
6749
6749
|
function typeCheckConfig$8(untrustedConfig) {
|
|
6750
6750
|
const config = {};
|
|
6751
6751
|
const untrustedConfig_contextNodeMappingInput = untrustedConfig.contextNodeMappingInput;
|
|
6752
|
-
const referenceContextNodeMappingInputRepresentationValidationError = validate$
|
|
6752
|
+
const referenceContextNodeMappingInputRepresentationValidationError = validate$2(untrustedConfig_contextNodeMappingInput);
|
|
6753
6753
|
if (referenceContextNodeMappingInputRepresentationValidationError === null) {
|
|
6754
6754
|
config.contextNodeMappingInput = untrustedConfig_contextNodeMappingInput;
|
|
6755
6755
|
}
|
|
@@ -7110,7 +7110,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
7110
7110
|
config.contextNodeMappingId = untrustedConfig_contextNodeMappingId;
|
|
7111
7111
|
}
|
|
7112
7112
|
const untrustedConfig_contextNodeMappingInput = untrustedConfig.contextNodeMappingInput;
|
|
7113
|
-
const referenceContextNodeMappingInputRepresentationValidationError = validate$
|
|
7113
|
+
const referenceContextNodeMappingInputRepresentationValidationError = validate$2(untrustedConfig_contextNodeMappingInput);
|
|
7114
7114
|
if (referenceContextNodeMappingInputRepresentationValidationError === null) {
|
|
7115
7115
|
config.contextNodeMappingInput = untrustedConfig_contextNodeMappingInput;
|
|
7116
7116
|
}
|
|
@@ -7471,7 +7471,7 @@ function typeCheckConfig$2(untrustedConfig) {
|
|
|
7471
7471
|
config.contextMappingId = untrustedConfig_contextMappingId;
|
|
7472
7472
|
}
|
|
7473
7473
|
const untrustedConfig_contextMappingInput = untrustedConfig.contextMappingInput;
|
|
7474
|
-
const referenceContextMappingInputRepresentationValidationError = validate$
|
|
7474
|
+
const referenceContextMappingInputRepresentationValidationError = validate$4(untrustedConfig_contextMappingInput);
|
|
7475
7475
|
if (referenceContextMappingInputRepresentationValidationError === null) {
|
|
7476
7476
|
config.contextMappingInput = untrustedConfig_contextMappingInput;
|
|
7477
7477
|
}
|
|
@@ -7515,9 +7515,9 @@ const updateContextMappingAdapterFactory = (luvio) => {
|
|
|
7515
7515
|
};
|
|
7516
7516
|
};
|
|
7517
7517
|
|
|
7518
|
-
const TTL =
|
|
7519
|
-
const VERSION = "
|
|
7520
|
-
function validate(obj, path = 'ContextServiceAccessRepresentation') {
|
|
7518
|
+
const TTL = 100;
|
|
7519
|
+
const VERSION = "fad837a75b7f3c134d4024917b0b787a";
|
|
7520
|
+
function validate$1(obj, path = 'ContextServiceAccessRepresentation') {
|
|
7521
7521
|
const v_error = (() => {
|
|
7522
7522
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7523
7523
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7529,6 +7529,11 @@ function validate(obj, path = 'ContextServiceAccessRepresentation') {
|
|
|
7529
7529
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isEnabled + '" (at "' + path_isEnabled + '")');
|
|
7530
7530
|
}
|
|
7531
7531
|
}
|
|
7532
|
+
const obj_uniqueIdentifier = obj.uniqueIdentifier;
|
|
7533
|
+
const path_uniqueIdentifier = path + '.uniqueIdentifier';
|
|
7534
|
+
if (typeof obj_uniqueIdentifier !== 'string') {
|
|
7535
|
+
return new TypeError('Expected "string" but received "' + typeof obj_uniqueIdentifier + '" (at "' + path_uniqueIdentifier + '")');
|
|
7536
|
+
}
|
|
7532
7537
|
})();
|
|
7533
7538
|
return v_error === undefined ? null : v_error;
|
|
7534
7539
|
}
|
|
@@ -7538,7 +7543,7 @@ function keyBuilder$2(luvio, config) {
|
|
|
7538
7543
|
}
|
|
7539
7544
|
function keyBuilderFromType(luvio, object) {
|
|
7540
7545
|
const keyParams = {
|
|
7541
|
-
id: object.
|
|
7546
|
+
id: object.uniqueIdentifier
|
|
7542
7547
|
};
|
|
7543
7548
|
return keyBuilder$2(luvio, keyParams);
|
|
7544
7549
|
}
|
|
@@ -7555,6 +7560,10 @@ const select$2 = function ContextServiceAccessRepresentationSelect() {
|
|
|
7555
7560
|
name: 'isEnabled',
|
|
7556
7561
|
kind: 'Scalar',
|
|
7557
7562
|
required: false
|
|
7563
|
+
},
|
|
7564
|
+
{
|
|
7565
|
+
name: 'uniqueIdentifier',
|
|
7566
|
+
kind: 'Scalar'
|
|
7558
7567
|
}
|
|
7559
7568
|
]
|
|
7560
7569
|
};
|
|
@@ -7573,11 +7582,16 @@ function equals(existing, incoming) {
|
|
|
7573
7582
|
return false;
|
|
7574
7583
|
}
|
|
7575
7584
|
}
|
|
7585
|
+
const existing_uniqueIdentifier = existing.uniqueIdentifier;
|
|
7586
|
+
const incoming_uniqueIdentifier = incoming.uniqueIdentifier;
|
|
7587
|
+
if (!(existing_uniqueIdentifier === incoming_uniqueIdentifier)) {
|
|
7588
|
+
return false;
|
|
7589
|
+
}
|
|
7576
7590
|
return true;
|
|
7577
7591
|
}
|
|
7578
7592
|
const ingest = function ContextServiceAccessRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7579
7593
|
if (process.env.NODE_ENV !== 'production') {
|
|
7580
|
-
const validateError = validate(input);
|
|
7594
|
+
const validateError = validate$1(input);
|
|
7581
7595
|
if (validateError !== null) {
|
|
7582
7596
|
throw validateError;
|
|
7583
7597
|
}
|
|
@@ -7660,7 +7674,7 @@ function createResourceRequest$1(config) {
|
|
|
7660
7674
|
const headers = {};
|
|
7661
7675
|
return {
|
|
7662
7676
|
baseUri: '/services/data/v58.0',
|
|
7663
|
-
basePath: '/connect/contextservice/access/' + config.urlParams.preferenceName + '',
|
|
7677
|
+
basePath: '/connect/contextservice/access/' + config.urlParams.preferenceName + '/' + config.urlParams.uniqueIdentifier + '',
|
|
7664
7678
|
method: 'get',
|
|
7665
7679
|
body: null,
|
|
7666
7680
|
urlParams: config.urlParams,
|
|
@@ -7673,14 +7687,14 @@ function createResourceRequest$1(config) {
|
|
|
7673
7687
|
const getContextServiceAccess_ConfigPropertyNames = {
|
|
7674
7688
|
displayName: 'getContextServiceAccess',
|
|
7675
7689
|
parameters: {
|
|
7676
|
-
required: ['preferenceName'],
|
|
7690
|
+
required: ['preferenceName', 'uniqueIdentifier'],
|
|
7677
7691
|
optional: []
|
|
7678
7692
|
}
|
|
7679
7693
|
};
|
|
7680
7694
|
function createResourceParams$1(config) {
|
|
7681
7695
|
const resourceParams = {
|
|
7682
7696
|
urlParams: {
|
|
7683
|
-
preferenceName: config.preferenceName
|
|
7697
|
+
preferenceName: config.preferenceName, uniqueIdentifier: config.uniqueIdentifier
|
|
7684
7698
|
}
|
|
7685
7699
|
};
|
|
7686
7700
|
return resourceParams;
|
|
@@ -7695,6 +7709,10 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
7695
7709
|
if (typeof untrustedConfig_preferenceName === 'string') {
|
|
7696
7710
|
config.preferenceName = untrustedConfig_preferenceName;
|
|
7697
7711
|
}
|
|
7712
|
+
const untrustedConfig_uniqueIdentifier = untrustedConfig.uniqueIdentifier;
|
|
7713
|
+
if (typeof untrustedConfig_uniqueIdentifier === 'string') {
|
|
7714
|
+
config.uniqueIdentifier = untrustedConfig_uniqueIdentifier;
|
|
7715
|
+
}
|
|
7698
7716
|
return config;
|
|
7699
7717
|
}
|
|
7700
7718
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7778,6 +7796,20 @@ const getContextServiceAccessAdapterFactory = (luvio) => function IndustriesCont
|
|
|
7778
7796
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
7779
7797
|
};
|
|
7780
7798
|
|
|
7799
|
+
function validate(obj, path = 'ContextServiceAccessInputRepresentation') {
|
|
7800
|
+
const v_error = (() => {
|
|
7801
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7802
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7803
|
+
}
|
|
7804
|
+
const obj_isEnabled = obj.isEnabled;
|
|
7805
|
+
const path_isEnabled = path + '.isEnabled';
|
|
7806
|
+
if (typeof obj_isEnabled !== 'boolean') {
|
|
7807
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isEnabled + '" (at "' + path_isEnabled + '")');
|
|
7808
|
+
}
|
|
7809
|
+
})();
|
|
7810
|
+
return v_error === undefined ? null : v_error;
|
|
7811
|
+
}
|
|
7812
|
+
|
|
7781
7813
|
function select(luvio, params) {
|
|
7782
7814
|
return select$2();
|
|
7783
7815
|
}
|
|
@@ -7804,7 +7836,7 @@ function createResourceRequest(config) {
|
|
|
7804
7836
|
const headers = {};
|
|
7805
7837
|
return {
|
|
7806
7838
|
baseUri: '/services/data/v58.0',
|
|
7807
|
-
basePath: '/connect/contextservice/access/' + config.urlParams.preferenceName + '',
|
|
7839
|
+
basePath: '/connect/contextservice/access/' + config.urlParams.preferenceName + '/' + config.urlParams.uniqueIdentifier + '',
|
|
7808
7840
|
method: 'put',
|
|
7809
7841
|
body: config.body,
|
|
7810
7842
|
urlParams: config.urlParams,
|
|
@@ -7817,17 +7849,17 @@ function createResourceRequest(config) {
|
|
|
7817
7849
|
const putContextServiceAccess_ConfigPropertyNames = {
|
|
7818
7850
|
displayName: 'putContextServiceAccess',
|
|
7819
7851
|
parameters: {
|
|
7820
|
-
required: ['preferenceName', '
|
|
7852
|
+
required: ['preferenceName', 'uniqueIdentifier', 'contextServiceAccessInput'],
|
|
7821
7853
|
optional: []
|
|
7822
7854
|
}
|
|
7823
7855
|
};
|
|
7824
7856
|
function createResourceParams(config) {
|
|
7825
7857
|
const resourceParams = {
|
|
7826
7858
|
urlParams: {
|
|
7827
|
-
preferenceName: config.preferenceName
|
|
7859
|
+
preferenceName: config.preferenceName, uniqueIdentifier: config.uniqueIdentifier
|
|
7828
7860
|
},
|
|
7829
7861
|
body: {
|
|
7830
|
-
|
|
7862
|
+
contextServiceAccessInput: config.contextServiceAccessInput
|
|
7831
7863
|
}
|
|
7832
7864
|
};
|
|
7833
7865
|
return resourceParams;
|
|
@@ -7838,9 +7870,14 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
7838
7870
|
if (typeof untrustedConfig_preferenceName === 'string') {
|
|
7839
7871
|
config.preferenceName = untrustedConfig_preferenceName;
|
|
7840
7872
|
}
|
|
7841
|
-
const
|
|
7842
|
-
if (typeof
|
|
7843
|
-
config.
|
|
7873
|
+
const untrustedConfig_uniqueIdentifier = untrustedConfig.uniqueIdentifier;
|
|
7874
|
+
if (typeof untrustedConfig_uniqueIdentifier === 'string') {
|
|
7875
|
+
config.uniqueIdentifier = untrustedConfig_uniqueIdentifier;
|
|
7876
|
+
}
|
|
7877
|
+
const untrustedConfig_contextServiceAccessInput = untrustedConfig.contextServiceAccessInput;
|
|
7878
|
+
const referenceContextServiceAccessInputRepresentationValidationError = validate(untrustedConfig_contextServiceAccessInput);
|
|
7879
|
+
if (referenceContextServiceAccessInputRepresentationValidationError === null) {
|
|
7880
|
+
config.contextServiceAccessInput = untrustedConfig_contextServiceAccessInput;
|
|
7844
7881
|
}
|
|
7845
7882
|
return config;
|
|
7846
7883
|
}
|