@salesforce/lds-adapters-industries-context 1.223.0 → 1.224.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 +43 -101
- package/dist/es/es2018/types/src/generated/adapters/updateContextServiceDefinition.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/patchConnectContextDefinitionsByContextDefinitionId.d.ts +2 -2
- package/package.json +1 -1
- package/sfdc/index.js +93 -151
|
@@ -112,7 +112,7 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
function validate$
|
|
115
|
+
function validate$B(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$C(obj, path = 'QueryContextRecordInputRepresentation') {
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
const VERSION$n = "6fc1ed5f9fdcaa261c69ec3614505566";
|
|
165
|
-
function validate$
|
|
165
|
+
function validate$A(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 + '")');
|
|
@@ -499,7 +499,7 @@ function equals$n(existing, incoming) {
|
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
const VERSION$m = "49d8c0b4cc8734f68ac1bc90a4614c4a";
|
|
502
|
-
function validate$
|
|
502
|
+
function validate$z(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$A(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$A(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');
|
|
@@ -589,7 +589,7 @@ function equals$m(existing, incoming) {
|
|
|
589
589
|
|
|
590
590
|
const TTL$k = 1000;
|
|
591
591
|
const VERSION$l = "d6e0481a792086c09a70a174a9232ada";
|
|
592
|
-
function validate$
|
|
592
|
+
function validate$y(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$z(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$z(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');
|
|
@@ -731,7 +731,7 @@ function equals$l(existing, incoming) {
|
|
|
731
731
|
}
|
|
732
732
|
const ingest$k = function QueryContextRecordResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
733
733
|
if (process.env.NODE_ENV !== 'production') {
|
|
734
|
-
const validateError = validate$
|
|
734
|
+
const validateError = validate$y(input);
|
|
735
735
|
if (validateError !== null) {
|
|
736
736
|
throw validateError;
|
|
737
737
|
}
|
|
@@ -799,7 +799,7 @@ function typeCheckConfig$M(untrustedConfig) {
|
|
|
799
799
|
const config = {};
|
|
800
800
|
typeCheckConfig$N(untrustedConfig, config, queryContextRecordAndChildren_ConfigPropertyMetadata);
|
|
801
801
|
const untrustedConfig_queryContextRecordInput = untrustedConfig.queryContextRecordInput;
|
|
802
|
-
const referenceQueryContextRecordInputRepresentationValidationError = validate$
|
|
802
|
+
const referenceQueryContextRecordInputRepresentationValidationError = validate$B(untrustedConfig_queryContextRecordInput);
|
|
803
803
|
if (referenceQueryContextRecordInputRepresentationValidationError === null) {
|
|
804
804
|
config.queryContextRecordInput = untrustedConfig_queryContextRecordInput;
|
|
805
805
|
}
|
|
@@ -849,7 +849,7 @@ const queryContextRecordAndChildrenAdapterFactory = (luvio) => {
|
|
|
849
849
|
|
|
850
850
|
const TTL$j = 1000;
|
|
851
851
|
const VERSION$k = "f4529c1d2c50b9cc056022fbea50b225";
|
|
852
|
-
function validate$
|
|
852
|
+
function validate$x(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 + '")');
|
|
@@ -926,7 +926,7 @@ function equals$k(existing, incoming) {
|
|
|
926
926
|
}
|
|
927
927
|
const ingest$j = function ContextInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
928
928
|
if (process.env.NODE_ENV !== 'production') {
|
|
929
|
-
const validateError = validate$
|
|
929
|
+
const validateError = validate$x(input);
|
|
930
930
|
if (validateError !== null) {
|
|
931
931
|
throw validateError;
|
|
932
932
|
}
|
|
@@ -1088,7 +1088,7 @@ const getContextAdapterFactory = (luvio) => function IndustriesContext__getConte
|
|
|
1088
1088
|
|
|
1089
1089
|
const TTL$i = 1000;
|
|
1090
1090
|
const VERSION$j = "1b0916f3207507a1c448dd28ee06df97";
|
|
1091
|
-
function validate$
|
|
1091
|
+
function validate$w(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 + '")');
|
|
@@ -1487,7 +1487,7 @@ function equals$j(existing, incoming) {
|
|
|
1487
1487
|
}
|
|
1488
1488
|
const ingest$i = function ContextDefinitionInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1489
1489
|
if (process.env.NODE_ENV !== 'production') {
|
|
1490
|
-
const validateError = validate$
|
|
1490
|
+
const validateError = validate$w(input);
|
|
1491
1491
|
if (validateError !== null) {
|
|
1492
1492
|
throw validateError;
|
|
1493
1493
|
}
|
|
@@ -1509,7 +1509,7 @@ function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1509
1509
|
|
|
1510
1510
|
const TTL$h = 1000;
|
|
1511
1511
|
const VERSION$i = "9fd2c86ba3bfc49bd6b1b41332fbad4e";
|
|
1512
|
-
function validate$
|
|
1512
|
+
function validate$v(obj, path = 'ContextDefinitionListRepresentation') {
|
|
1513
1513
|
const v_error = (() => {
|
|
1514
1514
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1515
1515
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1618,7 +1618,7 @@ function equals$i(existing, incoming) {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
const ingest$h = function ContextDefinitionListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1620
1620
|
if (process.env.NODE_ENV !== 'production') {
|
|
1621
|
-
const validateError = validate$
|
|
1621
|
+
const validateError = validate$v(input);
|
|
1622
1622
|
if (validateError !== null) {
|
|
1623
1623
|
throw validateError;
|
|
1624
1624
|
}
|
|
@@ -1780,7 +1780,7 @@ const getContextDefinitionsAdapterFactory = (luvio) => function IndustriesContex
|
|
|
1780
1780
|
buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
|
|
1781
1781
|
};
|
|
1782
1782
|
|
|
1783
|
-
function validate$
|
|
1783
|
+
function validate$u(obj, path = 'ContextDefinitionsInputRepresentation') {
|
|
1784
1784
|
const v_error = (() => {
|
|
1785
1785
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1786
1786
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1898,7 +1898,7 @@ const createResourceParams$J = /*#__PURE__*/ createResourceParams$N(createContex
|
|
|
1898
1898
|
function typeCheckConfig$J(untrustedConfig) {
|
|
1899
1899
|
const config = {};
|
|
1900
1900
|
const untrustedConfig_contextDefinitionInput = untrustedConfig.contextDefinitionInput;
|
|
1901
|
-
const referenceContextDefinitionsInputRepresentationValidationError = validate$
|
|
1901
|
+
const referenceContextDefinitionsInputRepresentationValidationError = validate$u(untrustedConfig_contextDefinitionInput);
|
|
1902
1902
|
if (referenceContextDefinitionsInputRepresentationValidationError === null) {
|
|
1903
1903
|
config.contextDefinitionInput = untrustedConfig_contextDefinitionInput;
|
|
1904
1904
|
}
|
|
@@ -2086,7 +2086,7 @@ const getContextServiceDefinitionInfoAdapterFactory = (luvio) => function Indust
|
|
|
2086
2086
|
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
2087
2087
|
};
|
|
2088
2088
|
|
|
2089
|
-
function validate$
|
|
2089
|
+
function validate$t(obj, path = 'MappedAttributeDataTypeInfoRepresentation') {
|
|
2090
2090
|
const v_error = (() => {
|
|
2091
2091
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2092
2092
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2118,7 +2118,7 @@ function validate$u(obj, path = 'MappedAttributeDataTypeInfoRepresentation') {
|
|
|
2118
2118
|
|
|
2119
2119
|
const TTL$g = 1000;
|
|
2120
2120
|
const VERSION$h = "d2590d21bfb4b591939abfe1e50521be";
|
|
2121
|
-
function validate$
|
|
2121
|
+
function validate$s(obj, path = 'ContextAttrHydrationDetailRepresentation') {
|
|
2122
2122
|
const v_error = (() => {
|
|
2123
2123
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2124
2124
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2152,7 +2152,7 @@ function validate$t(obj, path = 'ContextAttrHydrationDetailRepresentation') {
|
|
|
2152
2152
|
if (obj.mappedAttributeDataTypeInfo !== undefined) {
|
|
2153
2153
|
const obj_mappedAttributeDataTypeInfo = obj.mappedAttributeDataTypeInfo;
|
|
2154
2154
|
const path_mappedAttributeDataTypeInfo = path + '.mappedAttributeDataTypeInfo';
|
|
2155
|
-
const referencepath_mappedAttributeDataTypeInfoValidationError = validate$
|
|
2155
|
+
const referencepath_mappedAttributeDataTypeInfoValidationError = validate$t(obj_mappedAttributeDataTypeInfo, path_mappedAttributeDataTypeInfo);
|
|
2156
2156
|
if (referencepath_mappedAttributeDataTypeInfoValidationError !== null) {
|
|
2157
2157
|
let message = 'Object doesn\'t match MappedAttributeDataTypeInfoRepresentation (at "' + path_mappedAttributeDataTypeInfo + '")\n';
|
|
2158
2158
|
message += referencepath_mappedAttributeDataTypeInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2212,7 +2212,7 @@ function equals$h(existing, incoming) {
|
|
|
2212
2212
|
}
|
|
2213
2213
|
const ingest$g = function ContextAttrHydrationDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2214
2214
|
if (process.env.NODE_ENV !== 'production') {
|
|
2215
|
-
const validateError = validate$
|
|
2215
|
+
const validateError = validate$s(input);
|
|
2216
2216
|
if (validateError !== null) {
|
|
2217
2217
|
throw validateError;
|
|
2218
2218
|
}
|
|
@@ -2234,7 +2234,7 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2234
2234
|
|
|
2235
2235
|
const TTL$f = 1000;
|
|
2236
2236
|
const VERSION$g = "1a8ef2806a43e6f2685e46e157f53073";
|
|
2237
|
-
function validate$
|
|
2237
|
+
function validate$r(obj, path = 'ContextAttributeMappingRepresentation') {
|
|
2238
2238
|
const v_error = (() => {
|
|
2239
2239
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2240
2240
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2427,7 +2427,7 @@ function equals$g(existing, incoming) {
|
|
|
2427
2427
|
}
|
|
2428
2428
|
const ingest$f = function ContextAttributeMappingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2429
2429
|
if (process.env.NODE_ENV !== 'production') {
|
|
2430
|
-
const validateError = validate$
|
|
2430
|
+
const validateError = validate$r(input);
|
|
2431
2431
|
if (validateError !== null) {
|
|
2432
2432
|
throw validateError;
|
|
2433
2433
|
}
|
|
@@ -2453,7 +2453,7 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2453
2453
|
|
|
2454
2454
|
const TTL$e = 1000;
|
|
2455
2455
|
const VERSION$f = "5870ced7e33b711ef1f855a5a4a1a858";
|
|
2456
|
-
function validate$
|
|
2456
|
+
function validate$q(obj, path = 'ContextNodeMappingRepresentation') {
|
|
2457
2457
|
const v_error = (() => {
|
|
2458
2458
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2459
2459
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2646,7 +2646,7 @@ function equals$f(existing, incoming) {
|
|
|
2646
2646
|
}
|
|
2647
2647
|
const ingest$e = function ContextNodeMappingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2648
2648
|
if (process.env.NODE_ENV !== 'production') {
|
|
2649
|
-
const validateError = validate$
|
|
2649
|
+
const validateError = validate$q(input);
|
|
2650
2650
|
if (validateError !== null) {
|
|
2651
2651
|
throw validateError;
|
|
2652
2652
|
}
|
|
@@ -2672,7 +2672,7 @@ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2672
2672
|
|
|
2673
2673
|
const TTL$d = 1000;
|
|
2674
2674
|
const VERSION$e = "f10787e7e9d07b8ed4edbe960b8f370c";
|
|
2675
|
-
function validate$
|
|
2675
|
+
function validate$p(obj, path = 'ContextMappingRepresentation') {
|
|
2676
2676
|
const v_error = (() => {
|
|
2677
2677
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2678
2678
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2890,7 +2890,7 @@ function equals$e(existing, incoming) {
|
|
|
2890
2890
|
}
|
|
2891
2891
|
const ingest$d = function ContextMappingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2892
2892
|
if (process.env.NODE_ENV !== 'production') {
|
|
2893
|
-
const validateError = validate$
|
|
2893
|
+
const validateError = validate$p(input);
|
|
2894
2894
|
if (validateError !== null) {
|
|
2895
2895
|
throw validateError;
|
|
2896
2896
|
}
|
|
@@ -2916,7 +2916,7 @@ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2916
2916
|
|
|
2917
2917
|
const TTL$c = 1000;
|
|
2918
2918
|
const VERSION$d = "752cf077f1288e1c4d96154971a184d9";
|
|
2919
|
-
function validate$
|
|
2919
|
+
function validate$o(obj, path = 'ContextAttributeTagRepresentation') {
|
|
2920
2920
|
const v_error = (() => {
|
|
2921
2921
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2922
2922
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3090,7 +3090,7 @@ function equals$d(existing, incoming) {
|
|
|
3090
3090
|
}
|
|
3091
3091
|
const ingest$c = function ContextAttributeTagRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3092
3092
|
if (process.env.NODE_ENV !== 'production') {
|
|
3093
|
-
const validateError = validate$
|
|
3093
|
+
const validateError = validate$o(input);
|
|
3094
3094
|
if (validateError !== null) {
|
|
3095
3095
|
throw validateError;
|
|
3096
3096
|
}
|
|
@@ -3112,7 +3112,7 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3112
3112
|
|
|
3113
3113
|
const TTL$b = 1000;
|
|
3114
3114
|
const VERSION$c = "f668e8eb15a473a71c2a9c3ea8669c35";
|
|
3115
|
-
function validate$
|
|
3115
|
+
function validate$n(obj, path = 'ContextAttributeRepresentation') {
|
|
3116
3116
|
const v_error = (() => {
|
|
3117
3117
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3118
3118
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3405,7 +3405,7 @@ function equals$c(existing, incoming) {
|
|
|
3405
3405
|
}
|
|
3406
3406
|
const ingest$b = function ContextAttributeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3407
3407
|
if (process.env.NODE_ENV !== 'production') {
|
|
3408
|
-
const validateError = validate$
|
|
3408
|
+
const validateError = validate$n(input);
|
|
3409
3409
|
if (validateError !== null) {
|
|
3410
3410
|
throw validateError;
|
|
3411
3411
|
}
|
|
@@ -3431,7 +3431,7 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3431
3431
|
|
|
3432
3432
|
const TTL$a = 1000;
|
|
3433
3433
|
const VERSION$b = "4022adb1f74fc3b3538535fc2e6861ce";
|
|
3434
|
-
function validate$
|
|
3434
|
+
function validate$m(obj, path = 'ContextNodeRepresentation') {
|
|
3435
3435
|
const v_error = (() => {
|
|
3436
3436
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3437
3437
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3445,7 +3445,7 @@ function validate$n(obj, path = 'ContextNodeRepresentation') {
|
|
|
3445
3445
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
3446
3446
|
const obj_attributes_item = obj_attributes[i];
|
|
3447
3447
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
3448
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
3448
|
+
const referencepath_attributes_itemValidationError = validate$n(obj_attributes_item, path_attributes_item);
|
|
3449
3449
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
3450
3450
|
let message = 'Object doesn\'t match ContextAttributeRepresentation (at "' + path_attributes_item + '")\n';
|
|
3451
3451
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3462,7 +3462,7 @@ function validate$n(obj, path = 'ContextNodeRepresentation') {
|
|
|
3462
3462
|
for (let i = 0; i < obj_childNodes.length; i++) {
|
|
3463
3463
|
const obj_childNodes_item = obj_childNodes[i];
|
|
3464
3464
|
const path_childNodes_item = path_childNodes + '[' + i + ']';
|
|
3465
|
-
const referencepath_childNodes_itemValidationError = validate$
|
|
3465
|
+
const referencepath_childNodes_itemValidationError = validate$m(obj_childNodes_item, path_childNodes_item);
|
|
3466
3466
|
if (referencepath_childNodes_itemValidationError !== null) {
|
|
3467
3467
|
let message = 'Object doesn\'t match ContextNodeRepresentation (at "' + path_childNodes_item + '")\n';
|
|
3468
3468
|
message += referencepath_childNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3519,7 +3519,7 @@ function validate$n(obj, path = 'ContextNodeRepresentation') {
|
|
|
3519
3519
|
for (let i = 0; i < obj_tags.length; i++) {
|
|
3520
3520
|
const obj_tags_item = obj_tags[i];
|
|
3521
3521
|
const path_tags_item = path_tags + '[' + i + ']';
|
|
3522
|
-
const referencepath_tags_itemValidationError = validate$
|
|
3522
|
+
const referencepath_tags_itemValidationError = validate$o(obj_tags_item, path_tags_item);
|
|
3523
3523
|
if (referencepath_tags_itemValidationError !== null) {
|
|
3524
3524
|
let message = 'Object doesn\'t match ContextAttributeTagRepresentation (at "' + path_tags_item + '")\n';
|
|
3525
3525
|
message += referencepath_tags_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3559,7 +3559,7 @@ function equals$b(existing, incoming) {
|
|
|
3559
3559
|
}
|
|
3560
3560
|
const ingest$a = function ContextNodeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3561
3561
|
if (process.env.NODE_ENV !== 'production') {
|
|
3562
|
-
const validateError = validate$
|
|
3562
|
+
const validateError = validate$m(input);
|
|
3563
3563
|
if (validateError !== null) {
|
|
3564
3564
|
throw validateError;
|
|
3565
3565
|
}
|
|
@@ -3581,7 +3581,7 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3581
3581
|
|
|
3582
3582
|
const TTL$9 = 1000;
|
|
3583
3583
|
const VERSION$a = "6425fc4d86a786410d0253c23dffe29d";
|
|
3584
|
-
function validate$
|
|
3584
|
+
function validate$l(obj, path = 'ContextDefinitionVersionRepresentation') {
|
|
3585
3585
|
const v_error = (() => {
|
|
3586
3586
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3587
3587
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3607,7 +3607,7 @@ function validate$m(obj, path = 'ContextDefinitionVersionRepresentation') {
|
|
|
3607
3607
|
for (let i = 0; i < obj_contextMappings.length; i++) {
|
|
3608
3608
|
const obj_contextMappings_item = obj_contextMappings[i];
|
|
3609
3609
|
const path_contextMappings_item = path_contextMappings + '[' + i + ']';
|
|
3610
|
-
const referencepath_contextMappings_itemValidationError = validate$
|
|
3610
|
+
const referencepath_contextMappings_itemValidationError = validate$p(obj_contextMappings_item, path_contextMappings_item);
|
|
3611
3611
|
if (referencepath_contextMappings_itemValidationError !== null) {
|
|
3612
3612
|
let message = 'Object doesn\'t match ContextMappingRepresentation (at "' + path_contextMappings_item + '")\n';
|
|
3613
3613
|
message += referencepath_contextMappings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3624,7 +3624,7 @@ function validate$m(obj, path = 'ContextDefinitionVersionRepresentation') {
|
|
|
3624
3624
|
for (let i = 0; i < obj_contextNodes.length; i++) {
|
|
3625
3625
|
const obj_contextNodes_item = obj_contextNodes[i];
|
|
3626
3626
|
const path_contextNodes_item = path_contextNodes + '[' + i + ']';
|
|
3627
|
-
const referencepath_contextNodes_itemValidationError = validate$
|
|
3627
|
+
const referencepath_contextNodes_itemValidationError = validate$m(obj_contextNodes_item, path_contextNodes_item);
|
|
3628
3628
|
if (referencepath_contextNodes_itemValidationError !== null) {
|
|
3629
3629
|
let message = 'Object doesn\'t match ContextNodeRepresentation (at "' + path_contextNodes_item + '")\n';
|
|
3630
3630
|
message += referencepath_contextNodes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3706,7 +3706,7 @@ function equals$a(existing, incoming) {
|
|
|
3706
3706
|
}
|
|
3707
3707
|
const ingest$9 = function ContextDefinitionVersionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3708
3708
|
if (process.env.NODE_ENV !== 'production') {
|
|
3709
|
-
const validateError = validate$
|
|
3709
|
+
const validateError = validate$l(input);
|
|
3710
3710
|
if (validateError !== null) {
|
|
3711
3711
|
throw validateError;
|
|
3712
3712
|
}
|
|
@@ -3728,7 +3728,7 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3728
3728
|
|
|
3729
3729
|
const TTL$8 = 1000;
|
|
3730
3730
|
const VERSION$9 = "f6b572bee28c7e1a5130de722145c310";
|
|
3731
|
-
function validate$
|
|
3731
|
+
function validate$k(obj, path = 'ContextDefinitionRepresentation') {
|
|
3732
3732
|
const v_error = (() => {
|
|
3733
3733
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3734
3734
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4021,7 +4021,7 @@ function equals$9(existing, incoming) {
|
|
|
4021
4021
|
}
|
|
4022
4022
|
const ingest$8 = function ContextDefinitionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4023
4023
|
if (process.env.NODE_ENV !== 'production') {
|
|
4024
|
-
const validateError = validate$
|
|
4024
|
+
const validateError = validate$k(input);
|
|
4025
4025
|
if (validateError !== null) {
|
|
4026
4026
|
throw validateError;
|
|
4027
4027
|
}
|
|
@@ -4269,64 +4269,6 @@ const getContextServiceDefinitionAdapterFactory = (luvio) => function Industries
|
|
|
4269
4269
|
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
4270
4270
|
};
|
|
4271
4271
|
|
|
4272
|
-
function validate$k(obj, path = 'ContextDefinitionInputRepresentation') {
|
|
4273
|
-
const v_error = (() => {
|
|
4274
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4275
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4276
|
-
}
|
|
4277
|
-
if (obj.contextTtl !== undefined) {
|
|
4278
|
-
const obj_contextTtl = obj.contextTtl;
|
|
4279
|
-
const path_contextTtl = path + '.contextTtl';
|
|
4280
|
-
if (typeof obj_contextTtl !== 'number' || (typeof obj_contextTtl === 'number' && Math.floor(obj_contextTtl) !== obj_contextTtl)) {
|
|
4281
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_contextTtl + '" (at "' + path_contextTtl + '")');
|
|
4282
|
-
}
|
|
4283
|
-
}
|
|
4284
|
-
if (obj.definition !== undefined) {
|
|
4285
|
-
const obj_definition = obj.definition;
|
|
4286
|
-
const path_definition = path + '.definition';
|
|
4287
|
-
if (typeof obj_definition !== 'string') {
|
|
4288
|
-
return new TypeError('Expected "string" but received "' + typeof obj_definition + '" (at "' + path_definition + '")');
|
|
4289
|
-
}
|
|
4290
|
-
}
|
|
4291
|
-
if (obj.description !== undefined) {
|
|
4292
|
-
const obj_description = obj.description;
|
|
4293
|
-
const path_description = path + '.description';
|
|
4294
|
-
if (typeof obj_description !== 'string') {
|
|
4295
|
-
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
4296
|
-
}
|
|
4297
|
-
}
|
|
4298
|
-
if (obj.developerName !== undefined) {
|
|
4299
|
-
const obj_developerName = obj.developerName;
|
|
4300
|
-
const path_developerName = path + '.developerName';
|
|
4301
|
-
if (typeof obj_developerName !== 'string') {
|
|
4302
|
-
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
4303
|
-
}
|
|
4304
|
-
}
|
|
4305
|
-
if (obj.endDate !== undefined) {
|
|
4306
|
-
const obj_endDate = obj.endDate;
|
|
4307
|
-
const path_endDate = path + '.endDate';
|
|
4308
|
-
if (typeof obj_endDate !== 'string') {
|
|
4309
|
-
return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
|
|
4310
|
-
}
|
|
4311
|
-
}
|
|
4312
|
-
if (obj.isActive !== undefined) {
|
|
4313
|
-
const obj_isActive = obj.isActive;
|
|
4314
|
-
const path_isActive = path + '.isActive';
|
|
4315
|
-
if (typeof obj_isActive !== 'boolean') {
|
|
4316
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
|
|
4317
|
-
}
|
|
4318
|
-
}
|
|
4319
|
-
if (obj.startDate !== undefined) {
|
|
4320
|
-
const obj_startDate = obj.startDate;
|
|
4321
|
-
const path_startDate = path + '.startDate';
|
|
4322
|
-
if (typeof obj_startDate !== 'string') {
|
|
4323
|
-
return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
|
|
4324
|
-
}
|
|
4325
|
-
}
|
|
4326
|
-
})();
|
|
4327
|
-
return v_error === undefined ? null : v_error;
|
|
4328
|
-
}
|
|
4329
|
-
|
|
4330
4272
|
function select$F(luvio, params) {
|
|
4331
4273
|
return select$U();
|
|
4332
4274
|
}
|
|
@@ -4375,8 +4317,8 @@ function typeCheckConfig$F(untrustedConfig) {
|
|
|
4375
4317
|
const config = {};
|
|
4376
4318
|
typeCheckConfig$N(untrustedConfig, config, updateContextServiceDefinition_ConfigPropertyMetadata);
|
|
4377
4319
|
const untrustedConfig_contextDefinitionInput = untrustedConfig.contextDefinitionInput;
|
|
4378
|
-
const
|
|
4379
|
-
if (
|
|
4320
|
+
const referenceContextDefinitionsInputRepresentationValidationError = validate$u(untrustedConfig_contextDefinitionInput);
|
|
4321
|
+
if (referenceContextDefinitionsInputRepresentationValidationError === null) {
|
|
4380
4322
|
config.contextDefinitionInput = untrustedConfig_contextDefinitionInput;
|
|
4381
4323
|
}
|
|
4382
4324
|
return config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
-
import {
|
|
3
|
+
import { ContextDefinitionsInputRepresentation as types_ContextDefinitionsInputRepresentation_ContextDefinitionsInputRepresentation } from '../types/ContextDefinitionsInputRepresentation';
|
|
4
4
|
import { ResourceRequestConfig as resources_patchConnectContextDefinitionsByContextDefinitionId_ResourceRequestConfig } from '../resources/patchConnectContextDefinitionsByContextDefinitionId';
|
|
5
5
|
import { ContextDefinitionInfoRepresentation as types_ContextDefinitionInfoRepresentation_ContextDefinitionInfoRepresentation } from '../types/ContextDefinitionInfoRepresentation';
|
|
6
6
|
export declare const adapterName = "updateContextServiceDefinition";
|
|
@@ -8,7 +8,7 @@ export declare const updateContextServiceDefinition_ConfigPropertyMetadata: $64$
|
|
|
8
8
|
export declare const updateContextServiceDefinition_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
9
|
export interface UpdateContextServiceDefinitionConfig {
|
|
10
10
|
contextDefinitionId: string;
|
|
11
|
-
contextDefinitionInput:
|
|
11
|
+
contextDefinitionInput: types_ContextDefinitionsInputRepresentation_ContextDefinitionsInputRepresentation;
|
|
12
12
|
}
|
|
13
13
|
export declare const createResourceParams: (config: UpdateContextServiceDefinitionConfig) => resources_patchConnectContextDefinitionsByContextDefinitionId_ResourceRequestConfig;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateContextServiceDefinitionConfig>): adapter$45$utils_Untrusted<UpdateContextServiceDefinitionConfig>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContextDefinitionsInputRepresentation as types_ContextDefinitionsInputRepresentation_ContextDefinitionsInputRepresentation } from '../types/ContextDefinitionsInputRepresentation';
|
|
2
2
|
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
3
3
|
import { ContextDefinitionInfoRepresentation as types_ContextDefinitionInfoRepresentation_ContextDefinitionInfoRepresentation } from '../types/ContextDefinitionInfoRepresentation';
|
|
4
4
|
export interface ResourceRequestConfig {
|
|
@@ -6,7 +6,7 @@ export interface ResourceRequestConfig {
|
|
|
6
6
|
contextDefinitionId: string;
|
|
7
7
|
};
|
|
8
8
|
body: {
|
|
9
|
-
contextDefinitionInput:
|
|
9
|
+
contextDefinitionInput: types_ContextDefinitionsInputRepresentation_ContextDefinitionsInputRepresentation;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
package/package.json
CHANGED