@salesforce/lds-adapters-industries-context 1.322.0 → 1.324.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 +125 -30
- package/dist/es/es2018/types/src/generated/adapters/getContextTags.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectContextDefinitionsContextTagsByContextDefinitionId.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/types/ContextDefinitionReferenceInputRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/ContextDefinitionReferenceRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ContextDefinitionsInputRepresentation.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/ContextTagListRepresentation.d.ts +6 -3
- package/package.json +7 -4
- package/sfdc/index.js +176 -80
- package/src/raml/api.raml +16 -3
- package/src/raml/luvio.raml +6 -1
|
@@ -112,7 +112,7 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
function validate$
|
|
115
|
+
function validate$N(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$L(obj, path = 'QueryContextRecordInputRepresentation') {
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
const VERSION$v = "6fc1ed5f9fdcaa261c69ec3614505566";
|
|
165
|
-
function validate$
|
|
165
|
+
function validate$M(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$v(existing, incoming) {
|
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
const VERSION$u = "49d8c0b4cc8734f68ac1bc90a4614c4a";
|
|
502
|
-
function validate$
|
|
502
|
+
function validate$L(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$J(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$M(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$u(existing, incoming) {
|
|
|
589
589
|
|
|
590
590
|
const TTL$n = 1000;
|
|
591
591
|
const VERSION$t = "d6e0481a792086c09a70a174a9232ada";
|
|
592
|
-
function validate$
|
|
592
|
+
function validate$K(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$I(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$L(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$t(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$K(input);
|
|
735
735
|
if (validateError !== null) {
|
|
736
736
|
throw validateError;
|
|
737
737
|
}
|
|
@@ -799,7 +799,7 @@ function typeCheckConfig$R(untrustedConfig) {
|
|
|
799
799
|
const config = {};
|
|
800
800
|
typeCheckConfig$S(untrustedConfig, config, queryContextRecordAndChildren_ConfigPropertyMetadata);
|
|
801
801
|
const untrustedConfig_queryContextRecordInput = untrustedConfig.queryContextRecordInput;
|
|
802
|
-
const referenceQueryContextRecordInputRepresentationValidationError = validate$
|
|
802
|
+
const referenceQueryContextRecordInputRepresentationValidationError = validate$N(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$m = 1000;
|
|
851
851
|
const VERSION$s = "f4529c1d2c50b9cc056022fbea50b225";
|
|
852
|
-
function validate$
|
|
852
|
+
function validate$J(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$s(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$J(input);
|
|
930
930
|
if (validateError !== null) {
|
|
931
931
|
throw validateError;
|
|
932
932
|
}
|
|
@@ -1086,8 +1086,8 @@ const getContextAdapterFactory = (luvio) => function IndustriesContext__getConte
|
|
|
1086
1086
|
buildCachedSnapshotCachePolicy$h, buildNetworkSnapshotCachePolicy$h);
|
|
1087
1087
|
};
|
|
1088
1088
|
|
|
1089
|
-
const VERSION$r = "
|
|
1090
|
-
function validate$
|
|
1089
|
+
const VERSION$r = "2c271b63db74c2f2a79442370f6b5044";
|
|
1090
|
+
function validate$I(obj, path = 'ContextDefinitionReferenceRepresentation') {
|
|
1091
1091
|
const v_error = (() => {
|
|
1092
1092
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1093
1093
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1118,6 +1118,13 @@ function validate$G(obj, path = 'ContextDefinitionReferenceRepresentation') {
|
|
|
1118
1118
|
return new TypeError('Expected "string" but received "' + typeof obj_referenceContextDefinition + '" (at "' + path_referenceContextDefinition + '")');
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
|
+
if (obj.referenceContextDefinitionName !== undefined) {
|
|
1122
|
+
const obj_referenceContextDefinitionName = obj.referenceContextDefinitionName;
|
|
1123
|
+
const path_referenceContextDefinitionName = path + '.referenceContextDefinitionName';
|
|
1124
|
+
if (typeof obj_referenceContextDefinitionName !== 'string') {
|
|
1125
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceContextDefinitionName + '" (at "' + path_referenceContextDefinitionName + '")');
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1121
1128
|
})();
|
|
1122
1129
|
return v_error === undefined ? null : v_error;
|
|
1123
1130
|
}
|
|
@@ -1145,6 +1152,11 @@ const select$14 = function ContextDefinitionReferenceRepresentationSelect() {
|
|
|
1145
1152
|
name: 'referenceContextDefinition',
|
|
1146
1153
|
kind: 'Scalar',
|
|
1147
1154
|
required: false
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
name: 'referenceContextDefinitionName',
|
|
1158
|
+
kind: 'Scalar',
|
|
1159
|
+
required: false
|
|
1148
1160
|
}
|
|
1149
1161
|
]
|
|
1150
1162
|
};
|
|
@@ -1194,12 +1206,25 @@ function equals$r(existing, incoming) {
|
|
|
1194
1206
|
return false;
|
|
1195
1207
|
}
|
|
1196
1208
|
}
|
|
1209
|
+
const existing_referenceContextDefinitionName = existing.referenceContextDefinitionName;
|
|
1210
|
+
const incoming_referenceContextDefinitionName = incoming.referenceContextDefinitionName;
|
|
1211
|
+
// if at least one of these optionals is defined
|
|
1212
|
+
if (existing_referenceContextDefinitionName !== undefined || incoming_referenceContextDefinitionName !== undefined) {
|
|
1213
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1214
|
+
// not equal
|
|
1215
|
+
if (existing_referenceContextDefinitionName === undefined || incoming_referenceContextDefinitionName === undefined) {
|
|
1216
|
+
return false;
|
|
1217
|
+
}
|
|
1218
|
+
if (!(existing_referenceContextDefinitionName === incoming_referenceContextDefinitionName)) {
|
|
1219
|
+
return false;
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1197
1222
|
return true;
|
|
1198
1223
|
}
|
|
1199
1224
|
|
|
1200
1225
|
const TTL$l = 1000;
|
|
1201
1226
|
const VERSION$q = "2a28e324b830c55d64e597f1df00c73a";
|
|
1202
|
-
function validate$
|
|
1227
|
+
function validate$H(obj, path = 'ContextDefinitionInfoRepresentation') {
|
|
1203
1228
|
const v_error = (() => {
|
|
1204
1229
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1205
1230
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1344,7 +1369,7 @@ function validate$F(obj, path = 'ContextDefinitionInfoRepresentation') {
|
|
|
1344
1369
|
for (let i = 0; i < obj_referenceContextDefinitions.length; i++) {
|
|
1345
1370
|
const obj_referenceContextDefinitions_item = obj_referenceContextDefinitions[i];
|
|
1346
1371
|
const path_referenceContextDefinitions_item = path_referenceContextDefinitions + '[' + i + ']';
|
|
1347
|
-
const referencepath_referenceContextDefinitions_itemValidationError = validate$
|
|
1372
|
+
const referencepath_referenceContextDefinitions_itemValidationError = validate$I(obj_referenceContextDefinitions_item, path_referenceContextDefinitions_item);
|
|
1348
1373
|
if (referencepath_referenceContextDefinitions_itemValidationError !== null) {
|
|
1349
1374
|
let message = 'Object doesn\'t match ContextDefinitionReferenceRepresentation (at "' + path_referenceContextDefinitions_item + '")\n';
|
|
1350
1375
|
message += referencepath_referenceContextDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1816,7 +1841,7 @@ function equals$q(existing, incoming) {
|
|
|
1816
1841
|
}
|
|
1817
1842
|
const ingest$n = function ContextDefinitionInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1818
1843
|
if (process.env.NODE_ENV !== 'production') {
|
|
1819
|
-
const validateError = validate$
|
|
1844
|
+
const validateError = validate$H(input);
|
|
1820
1845
|
if (validateError !== null) {
|
|
1821
1846
|
throw validateError;
|
|
1822
1847
|
}
|
|
@@ -1838,7 +1863,7 @@ function getTypeCacheKeys$n(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1838
1863
|
|
|
1839
1864
|
const TTL$k = 1000;
|
|
1840
1865
|
const VERSION$p = "9fd2c86ba3bfc49bd6b1b41332fbad4e";
|
|
1841
|
-
function validate$
|
|
1866
|
+
function validate$G(obj, path = 'ContextDefinitionListRepresentation') {
|
|
1842
1867
|
const v_error = (() => {
|
|
1843
1868
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1844
1869
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1947,7 +1972,7 @@ function equals$p(existing, incoming) {
|
|
|
1947
1972
|
}
|
|
1948
1973
|
const ingest$m = function ContextDefinitionListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1949
1974
|
if (process.env.NODE_ENV !== 'production') {
|
|
1950
|
-
const validateError = validate$
|
|
1975
|
+
const validateError = validate$G(input);
|
|
1951
1976
|
if (validateError !== null) {
|
|
1952
1977
|
throw validateError;
|
|
1953
1978
|
}
|
|
@@ -2110,6 +2135,65 @@ const getContextDefinitionsAdapterFactory = (luvio) => function IndustriesContex
|
|
|
2110
2135
|
buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
|
|
2111
2136
|
};
|
|
2112
2137
|
|
|
2138
|
+
function validate$F(obj, path = 'ContextDefinitionReferenceInputRepresentation') {
|
|
2139
|
+
const v_error = (() => {
|
|
2140
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2141
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2142
|
+
}
|
|
2143
|
+
if (obj.baseReference !== undefined) {
|
|
2144
|
+
const obj_baseReference = obj.baseReference;
|
|
2145
|
+
const path_baseReference = path + '.baseReference';
|
|
2146
|
+
if (typeof obj_baseReference !== 'string') {
|
|
2147
|
+
return new TypeError('Expected "string" but received "' + typeof obj_baseReference + '" (at "' + path_baseReference + '")');
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
if (obj.contextDefinitionId !== undefined) {
|
|
2151
|
+
const obj_contextDefinitionId = obj.contextDefinitionId;
|
|
2152
|
+
const path_contextDefinitionId = path + '.contextDefinitionId';
|
|
2153
|
+
if (typeof obj_contextDefinitionId !== 'string') {
|
|
2154
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contextDefinitionId + '" (at "' + path_contextDefinitionId + '")');
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
if (obj.contextDefinitionReferenceId !== undefined) {
|
|
2158
|
+
const obj_contextDefinitionReferenceId = obj.contextDefinitionReferenceId;
|
|
2159
|
+
const path_contextDefinitionReferenceId = path + '.contextDefinitionReferenceId';
|
|
2160
|
+
if (typeof obj_contextDefinitionReferenceId !== 'string') {
|
|
2161
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contextDefinitionReferenceId + '" (at "' + path_contextDefinitionReferenceId + '")');
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
const obj_referenceContextDefinition = obj.referenceContextDefinition;
|
|
2165
|
+
const path_referenceContextDefinition = path + '.referenceContextDefinition';
|
|
2166
|
+
if (typeof obj_referenceContextDefinition !== 'string') {
|
|
2167
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceContextDefinition + '" (at "' + path_referenceContextDefinition + '")');
|
|
2168
|
+
}
|
|
2169
|
+
})();
|
|
2170
|
+
return v_error === undefined ? null : v_error;
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
function validate$E(obj, path = 'ContextDefinitionReferenceListInputRepresentation') {
|
|
2174
|
+
const v_error = (() => {
|
|
2175
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2176
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2177
|
+
}
|
|
2178
|
+
const obj_contextDefinitionReferences = obj.contextDefinitionReferences;
|
|
2179
|
+
const path_contextDefinitionReferences = path + '.contextDefinitionReferences';
|
|
2180
|
+
if (!ArrayIsArray(obj_contextDefinitionReferences)) {
|
|
2181
|
+
return new TypeError('Expected "array" but received "' + typeof obj_contextDefinitionReferences + '" (at "' + path_contextDefinitionReferences + '")');
|
|
2182
|
+
}
|
|
2183
|
+
for (let i = 0; i < obj_contextDefinitionReferences.length; i++) {
|
|
2184
|
+
const obj_contextDefinitionReferences_item = obj_contextDefinitionReferences[i];
|
|
2185
|
+
const path_contextDefinitionReferences_item = path_contextDefinitionReferences + '[' + i + ']';
|
|
2186
|
+
const referencepath_contextDefinitionReferences_itemValidationError = validate$F(obj_contextDefinitionReferences_item, path_contextDefinitionReferences_item);
|
|
2187
|
+
if (referencepath_contextDefinitionReferences_itemValidationError !== null) {
|
|
2188
|
+
let message = 'Object doesn\'t match ContextDefinitionReferenceInputRepresentation (at "' + path_contextDefinitionReferences_item + '")\n';
|
|
2189
|
+
message += referencepath_contextDefinitionReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2190
|
+
return new TypeError(message);
|
|
2191
|
+
}
|
|
2192
|
+
}
|
|
2193
|
+
})();
|
|
2194
|
+
return v_error === undefined ? null : v_error;
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2113
2197
|
function validate$D(obj, path = 'ContextDefinitionsInputRepresentation') {
|
|
2114
2198
|
const v_error = (() => {
|
|
2115
2199
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2188,15 +2272,11 @@ function validate$D(obj, path = 'ContextDefinitionsInputRepresentation') {
|
|
|
2188
2272
|
if (obj.referenceContextDefinitions !== undefined) {
|
|
2189
2273
|
const obj_referenceContextDefinitions = obj.referenceContextDefinitions;
|
|
2190
2274
|
const path_referenceContextDefinitions = path + '.referenceContextDefinitions';
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
const path_referenceContextDefinitions_item = path_referenceContextDefinitions + '[' + i + ']';
|
|
2197
|
-
if (typeof obj_referenceContextDefinitions_item !== 'object' || ArrayIsArray(obj_referenceContextDefinitions_item) || obj_referenceContextDefinitions_item === null) {
|
|
2198
|
-
return new TypeError('Expected "object" but received "' + typeof obj_referenceContextDefinitions_item + '" (at "' + path_referenceContextDefinitions_item + '")');
|
|
2199
|
-
}
|
|
2275
|
+
const referencepath_referenceContextDefinitionsValidationError = validate$E(obj_referenceContextDefinitions, path_referenceContextDefinitions);
|
|
2276
|
+
if (referencepath_referenceContextDefinitionsValidationError !== null) {
|
|
2277
|
+
let message = 'Object doesn\'t match ContextDefinitionReferenceListInputRepresentation (at "' + path_referenceContextDefinitions + '")\n';
|
|
2278
|
+
message += referencepath_referenceContextDefinitionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2279
|
+
return new TypeError(message);
|
|
2200
2280
|
}
|
|
2201
2281
|
}
|
|
2202
2282
|
if (obj.sourceDefinitionId !== undefined) {
|
|
@@ -5043,7 +5123,7 @@ function validate$q(obj, path = 'ContextDefinitionRepresentation') {
|
|
|
5043
5123
|
for (let i = 0; i < obj_referenceContextDefinitions.length; i++) {
|
|
5044
5124
|
const obj_referenceContextDefinitions_item = obj_referenceContextDefinitions[i];
|
|
5045
5125
|
const path_referenceContextDefinitions_item = path_referenceContextDefinitions + '[' + i + ']';
|
|
5046
|
-
const referencepath_referenceContextDefinitions_itemValidationError = validate$
|
|
5126
|
+
const referencepath_referenceContextDefinitions_itemValidationError = validate$I(obj_referenceContextDefinitions_item, path_referenceContextDefinitions_item);
|
|
5047
5127
|
if (referencepath_referenceContextDefinitions_itemValidationError !== null) {
|
|
5048
5128
|
let message = 'Object doesn\'t match ContextDefinitionReferenceRepresentation (at "' + path_referenceContextDefinitions_item + '")\n';
|
|
5049
5129
|
message += referencepath_referenceContextDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6715,12 +6795,17 @@ const createContextNodesAdapterFactory = (luvio) => {
|
|
|
6715
6795
|
};
|
|
6716
6796
|
|
|
6717
6797
|
const TTL$7 = 1000;
|
|
6718
|
-
const VERSION$b = "
|
|
6798
|
+
const VERSION$b = "77e1968b7de548cadef229fa37b7730d";
|
|
6719
6799
|
function validate$l(obj, path = 'ContextTagListRepresentation') {
|
|
6720
6800
|
const v_error = (() => {
|
|
6721
6801
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6722
6802
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6723
6803
|
}
|
|
6804
|
+
const obj_contextDefinitionId = obj.contextDefinitionId;
|
|
6805
|
+
const path_contextDefinitionId = path + '.contextDefinitionId';
|
|
6806
|
+
if (typeof obj_contextDefinitionId !== 'string') {
|
|
6807
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contextDefinitionId + '" (at "' + path_contextDefinitionId + '")');
|
|
6808
|
+
}
|
|
6724
6809
|
const obj_contextTagListId = obj.contextTagListId;
|
|
6725
6810
|
const path_contextTagListId = path + '.contextTagListId';
|
|
6726
6811
|
if (typeof obj_contextTagListId !== 'string') {
|
|
@@ -6756,7 +6841,7 @@ function keyBuilder$F(luvio, config) {
|
|
|
6756
6841
|
}
|
|
6757
6842
|
function keyBuilderFromType$6(luvio, object) {
|
|
6758
6843
|
const keyParams = {
|
|
6759
|
-
id: object.
|
|
6844
|
+
id: object.contextDefinitionId
|
|
6760
6845
|
};
|
|
6761
6846
|
return keyBuilder$F(luvio, keyParams);
|
|
6762
6847
|
}
|
|
@@ -6787,6 +6872,10 @@ const select$F = function ContextTagListRepresentationSelect() {
|
|
|
6787
6872
|
version: VERSION$b,
|
|
6788
6873
|
private: [],
|
|
6789
6874
|
selections: [
|
|
6875
|
+
{
|
|
6876
|
+
name: 'contextDefinitionId',
|
|
6877
|
+
kind: 'Scalar'
|
|
6878
|
+
},
|
|
6790
6879
|
{
|
|
6791
6880
|
name: 'contextTagListId',
|
|
6792
6881
|
kind: 'Scalar'
|
|
@@ -6820,6 +6909,11 @@ function equals$b(existing, incoming) {
|
|
|
6820
6909
|
return false;
|
|
6821
6910
|
}
|
|
6822
6911
|
}
|
|
6912
|
+
const existing_contextDefinitionId = existing.contextDefinitionId;
|
|
6913
|
+
const incoming_contextDefinitionId = incoming.contextDefinitionId;
|
|
6914
|
+
if (!(existing_contextDefinitionId === incoming_contextDefinitionId)) {
|
|
6915
|
+
return false;
|
|
6916
|
+
}
|
|
6823
6917
|
const existing_contextTagListId = existing.contextTagListId;
|
|
6824
6918
|
const incoming_contextTagListId = incoming.contextTagListId;
|
|
6825
6919
|
if (!(existing_contextTagListId === incoming_contextTagListId)) {
|
|
@@ -6921,7 +7015,7 @@ function createResourceRequest$C(config) {
|
|
|
6921
7015
|
method: 'get',
|
|
6922
7016
|
body: null,
|
|
6923
7017
|
urlParams: config.urlParams,
|
|
6924
|
-
queryParams:
|
|
7018
|
+
queryParams: config.queryParams,
|
|
6925
7019
|
headers,
|
|
6926
7020
|
priority: 'normal',
|
|
6927
7021
|
};
|
|
@@ -6930,6 +7024,7 @@ function createResourceRequest$C(config) {
|
|
|
6930
7024
|
const adapterName$C = 'getContextTags';
|
|
6931
7025
|
const getContextTags_ConfigPropertyMetadata = [
|
|
6932
7026
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7027
|
+
generateParamConfigMetadata('includeReferencedDefinitionTags', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
6933
7028
|
];
|
|
6934
7029
|
const getContextTags_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, getContextTags_ConfigPropertyMetadata);
|
|
6935
7030
|
const createResourceParams$C = /*#__PURE__*/ createResourceParams$S(getContextTags_ConfigPropertyMetadata);
|
|
@@ -7,6 +7,7 @@ export declare const getContextTags_ConfigPropertyMetadata: $64$luvio_engine_Ada
|
|
|
7
7
|
export declare const getContextTags_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetContextTagsConfig {
|
|
9
9
|
contextDefinitionId: string;
|
|
10
|
+
includeReferencedDefinitionTags?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export declare const createResourceParams: (config: GetContextTagsConfig) => resources_getConnectContextDefinitionsContextTagsByContextDefinitionId_ResourceRequestConfig;
|
|
12
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetContextTagsConfig): string;
|
|
@@ -4,6 +4,9 @@ export interface ResourceRequestConfig {
|
|
|
4
4
|
urlParams: {
|
|
5
5
|
contextDefinitionId: string;
|
|
6
6
|
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
includeReferencedDefinitionTags?: boolean;
|
|
9
|
+
};
|
|
7
10
|
}
|
|
8
11
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
package/dist/es/es2018/types/src/generated/types/ContextDefinitionReferenceInputRepresentation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "3da85855a2813d012677fc1853a75261";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: ContextDefinitionReferenceInputRepresentation, existing: ContextDefinitionReferenceInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ContextDefinitionReferenceInputRepresentationNormalized;
|
|
@@ -15,11 +15,11 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
*/
|
|
16
16
|
export interface ContextDefinitionReferenceInputRepresentationNormalized {
|
|
17
17
|
/** Parent Reference */
|
|
18
|
-
baseReference
|
|
18
|
+
baseReference?: string;
|
|
19
19
|
/** Context Definition Id */
|
|
20
|
-
contextDefinitionId
|
|
20
|
+
contextDefinitionId?: string;
|
|
21
21
|
/** ID of this Context Definition Reference - Required for Update */
|
|
22
|
-
contextDefinitionReferenceId
|
|
22
|
+
contextDefinitionReferenceId?: string;
|
|
23
23
|
/** DeveloperName/ID of Reference Context Definition */
|
|
24
24
|
referenceContextDefinition: string;
|
|
25
25
|
}
|
|
@@ -30,8 +30,8 @@ export interface ContextDefinitionReferenceInputRepresentationNormalized {
|
|
|
30
30
|
* (none)
|
|
31
31
|
*/
|
|
32
32
|
export interface ContextDefinitionReferenceInputRepresentation {
|
|
33
|
-
baseReference
|
|
34
|
-
contextDefinitionId
|
|
35
|
-
contextDefinitionReferenceId
|
|
33
|
+
baseReference?: string;
|
|
34
|
+
contextDefinitionId?: string;
|
|
35
|
+
contextDefinitionReferenceId?: string;
|
|
36
36
|
referenceContextDefinition: string;
|
|
37
37
|
}
|
package/dist/es/es2018/types/src/generated/types/ContextDefinitionReferenceRepresentation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "2c271b63db74c2f2a79442370f6b5044";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: ContextDefinitionReferenceRepresentation, existing: ContextDefinitionReferenceRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ContextDefinitionReferenceRepresentationNormalized;
|
|
@@ -22,6 +22,8 @@ export interface ContextDefinitionReferenceRepresentationNormalized {
|
|
|
22
22
|
inheritedFrom?: string;
|
|
23
23
|
/** ReferenceContextDefinition */
|
|
24
24
|
referenceContextDefinition?: string;
|
|
25
|
+
/** ReferenceContextDefinitionName */
|
|
26
|
+
referenceContextDefinitionName?: string;
|
|
25
27
|
}
|
|
26
28
|
/**
|
|
27
29
|
* Output representation of Context Definition Reference
|
|
@@ -34,4 +36,5 @@ export interface ContextDefinitionReferenceRepresentation {
|
|
|
34
36
|
contextDefinitionReferenceId: string;
|
|
35
37
|
inheritedFrom?: string;
|
|
36
38
|
referenceContextDefinition?: string;
|
|
39
|
+
referenceContextDefinitionName?: string;
|
|
37
40
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ContextDefinitionReferenceListInputRepresentation as ContextDefinitionReferenceListInputRepresentation_ContextDefinitionReferenceListInputRepresentation } from './ContextDefinitionReferenceListInputRepresentation';
|
|
1
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "3be6d400c7c85016a2aa2d52acaf95c5";
|
|
3
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
5
|
export declare const RepresentationType: string;
|
|
5
6
|
export declare function normalize(input: ContextDefinitionsInputRepresentation, existing: ContextDefinitionsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ContextDefinitionsInputRepresentationNormalized;
|
|
@@ -35,7 +36,7 @@ export interface ContextDefinitionsInputRepresentationNormalized {
|
|
|
35
36
|
/** JSON Payload to create ContextDefinition */
|
|
36
37
|
payload?: string;
|
|
37
38
|
/** Reference Context Definitions */
|
|
38
|
-
referenceContextDefinitions?:
|
|
39
|
+
referenceContextDefinitions?: ContextDefinitionReferenceListInputRepresentation_ContextDefinitionReferenceListInputRepresentation;
|
|
39
40
|
/** Id of ContextDefinition to be Cloned */
|
|
40
41
|
sourceDefinitionId?: string;
|
|
41
42
|
/** Start Date */
|
|
@@ -58,7 +59,7 @@ export interface ContextDefinitionsInputRepresentation {
|
|
|
58
59
|
isActive?: boolean;
|
|
59
60
|
name?: string;
|
|
60
61
|
payload?: string;
|
|
61
|
-
referenceContextDefinitions?:
|
|
62
|
+
referenceContextDefinitions?: ContextDefinitionReferenceListInputRepresentation_ContextDefinitionReferenceListInputRepresentation;
|
|
62
63
|
sourceDefinitionId?: string;
|
|
63
64
|
startDate?: string;
|
|
64
65
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
2
|
import { ContextAttributeTagRepresentation as ContextAttributeTagRepresentation_ContextAttributeTagRepresentation } from './ContextAttributeTagRepresentation';
|
|
3
3
|
export declare const TTL = 1000;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "77e1968b7de548cadef229fa37b7730d";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -31,9 +31,11 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
|
|
|
31
31
|
* Output representation of List of Context Tags
|
|
32
32
|
*
|
|
33
33
|
* Keys:
|
|
34
|
-
* id (string):
|
|
34
|
+
* id (string): contextDefinitionId
|
|
35
35
|
*/
|
|
36
36
|
export interface ContextTagListRepresentationNormalized {
|
|
37
|
+
/** Context Definition Id */
|
|
38
|
+
contextDefinitionId: string;
|
|
37
39
|
/** Unique Id - Required for LDS */
|
|
38
40
|
contextTagListId: string;
|
|
39
41
|
/** List of ContextTags */
|
|
@@ -45,9 +47,10 @@ export interface ContextTagListRepresentationNormalized {
|
|
|
45
47
|
* Output representation of List of Context Tags
|
|
46
48
|
*
|
|
47
49
|
* Keys:
|
|
48
|
-
* id (string):
|
|
50
|
+
* id (string): contextDefinitionId
|
|
49
51
|
*/
|
|
50
52
|
export interface ContextTagListRepresentation {
|
|
53
|
+
contextDefinitionId: string;
|
|
51
54
|
contextTagListId: string;
|
|
52
55
|
contextTags?: Array<ContextAttributeTagRepresentation_ContextAttributeTagRepresentation>;
|
|
53
56
|
isSuccess?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-context",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.324.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Normandy Context Service",
|
|
6
6
|
"main": "dist/es/es2018/industries-context.js",
|
|
@@ -44,11 +44,14 @@
|
|
|
44
44
|
"test:unit": "jest --config=./jest.config.js"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@salesforce/lds-bindings": "^1.
|
|
47
|
+
"@salesforce/lds-bindings": "^1.324.0"
|
|
48
|
+
},
|
|
49
|
+
"volta": {
|
|
50
|
+
"extends": "../../package.json"
|
|
48
51
|
},
|
|
49
52
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
53
|
+
"@salesforce/lds-compiler-plugins": "^1.324.0",
|
|
54
|
+
"@salesforce/lds-karma": "^1.324.0"
|
|
52
55
|
},
|
|
53
56
|
"nx": {
|
|
54
57
|
"targets": {
|