@salesforce/lds-adapters-industries-context 1.283.0 → 1.284.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 +396 -91
- package/dist/es/es2018/types/src/generated/adapters/getContextServiceDefinition.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectContextDefinitionsByContextDefinitionId.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/types/ContextAttrContextHydrationDetailRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/ContextAttrContextHydrationDetailsInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ContextAttrHydrationDetailListInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ContextAttributeMappingRepresentation.d.ts +8 -1
- package/dist/es/es2018/types/src/generated/types/ContextMappingRepresentation.d.ts +10 -1
- package/dist/es/es2018/types/src/generated/types/ContextMappingsInputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/ContextNodeMappingRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ContextNodeMappingsInputRepresentation.d.ts +4 -1
- package/package.json +4 -4
- package/sfdc/index.js +314 -8
- package/src/raml/api.raml +93 -0
package/sfdc/index.js
CHANGED
|
@@ -122,7 +122,7 @@ function createLink(ref) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
function validate$
|
|
125
|
+
function validate$G(obj, path = 'ContextAttributeMappingInputRepresentation') {
|
|
126
126
|
const v_error = (() => {
|
|
127
127
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
128
128
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -171,6 +171,128 @@ function validate$F(obj, path = 'ContextAttributeMappingInputRepresentation') {
|
|
|
171
171
|
return v_error === undefined ? null : v_error;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
+
const VERSION$r = "40b52866e6f56ae5b7cfb279bcfae6ce";
|
|
175
|
+
function validate$F(obj, path = 'ContextAttrContextHydrationDetailRepresentation') {
|
|
176
|
+
const v_error = (() => {
|
|
177
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
178
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
179
|
+
}
|
|
180
|
+
if (obj.baseReference !== undefined) {
|
|
181
|
+
const obj_baseReference = obj.baseReference;
|
|
182
|
+
const path_baseReference = path + '.baseReference';
|
|
183
|
+
if (typeof obj_baseReference !== 'string') {
|
|
184
|
+
return new TypeError('Expected "string" but received "' + typeof obj_baseReference + '" (at "' + path_baseReference + '")');
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
if (obj.contextAttrContextHydrationDetailId !== undefined) {
|
|
188
|
+
const obj_contextAttrContextHydrationDetailId = obj.contextAttrContextHydrationDetailId;
|
|
189
|
+
const path_contextAttrContextHydrationDetailId = path + '.contextAttrContextHydrationDetailId';
|
|
190
|
+
if (typeof obj_contextAttrContextHydrationDetailId !== 'string') {
|
|
191
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contextAttrContextHydrationDetailId + '" (at "' + path_contextAttrContextHydrationDetailId + '")');
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
if (obj.isSuccess !== undefined) {
|
|
195
|
+
const obj_isSuccess = obj.isSuccess;
|
|
196
|
+
const path_isSuccess = path + '.isSuccess';
|
|
197
|
+
if (typeof obj_isSuccess !== 'boolean') {
|
|
198
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
if (obj.queryAttribute !== undefined) {
|
|
202
|
+
const obj_queryAttribute = obj.queryAttribute;
|
|
203
|
+
const path_queryAttribute = path + '.queryAttribute';
|
|
204
|
+
if (typeof obj_queryAttribute !== 'string') {
|
|
205
|
+
return new TypeError('Expected "string" but received "' + typeof obj_queryAttribute + '" (at "' + path_queryAttribute + '")');
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
})();
|
|
209
|
+
return v_error === undefined ? null : v_error;
|
|
210
|
+
}
|
|
211
|
+
const select$14 = function ContextAttrContextHydrationDetailRepresentationSelect() {
|
|
212
|
+
return {
|
|
213
|
+
kind: 'Fragment',
|
|
214
|
+
version: VERSION$r,
|
|
215
|
+
private: [],
|
|
216
|
+
selections: [
|
|
217
|
+
{
|
|
218
|
+
name: 'baseReference',
|
|
219
|
+
kind: 'Scalar',
|
|
220
|
+
required: false
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: 'contextAttrContextHydrationDetailId',
|
|
224
|
+
kind: 'Scalar',
|
|
225
|
+
required: false
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: 'isSuccess',
|
|
229
|
+
kind: 'Scalar',
|
|
230
|
+
required: false
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
name: 'queryAttribute',
|
|
234
|
+
kind: 'Scalar',
|
|
235
|
+
required: false
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
function equals$r(existing, incoming) {
|
|
241
|
+
const existing_isSuccess = existing.isSuccess;
|
|
242
|
+
const incoming_isSuccess = incoming.isSuccess;
|
|
243
|
+
// if at least one of these optionals is defined
|
|
244
|
+
if (existing_isSuccess !== undefined || incoming_isSuccess !== undefined) {
|
|
245
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
246
|
+
// not equal
|
|
247
|
+
if (existing_isSuccess === undefined || incoming_isSuccess === undefined) {
|
|
248
|
+
return false;
|
|
249
|
+
}
|
|
250
|
+
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
const existing_baseReference = existing.baseReference;
|
|
255
|
+
const incoming_baseReference = incoming.baseReference;
|
|
256
|
+
// if at least one of these optionals is defined
|
|
257
|
+
if (existing_baseReference !== undefined || incoming_baseReference !== undefined) {
|
|
258
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
259
|
+
// not equal
|
|
260
|
+
if (existing_baseReference === undefined || incoming_baseReference === undefined) {
|
|
261
|
+
return false;
|
|
262
|
+
}
|
|
263
|
+
if (!(existing_baseReference === incoming_baseReference)) {
|
|
264
|
+
return false;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
const existing_contextAttrContextHydrationDetailId = existing.contextAttrContextHydrationDetailId;
|
|
268
|
+
const incoming_contextAttrContextHydrationDetailId = incoming.contextAttrContextHydrationDetailId;
|
|
269
|
+
// if at least one of these optionals is defined
|
|
270
|
+
if (existing_contextAttrContextHydrationDetailId !== undefined || incoming_contextAttrContextHydrationDetailId !== undefined) {
|
|
271
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
272
|
+
// not equal
|
|
273
|
+
if (existing_contextAttrContextHydrationDetailId === undefined || incoming_contextAttrContextHydrationDetailId === undefined) {
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
|
+
if (!(existing_contextAttrContextHydrationDetailId === incoming_contextAttrContextHydrationDetailId)) {
|
|
277
|
+
return false;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
const existing_queryAttribute = existing.queryAttribute;
|
|
281
|
+
const incoming_queryAttribute = incoming.queryAttribute;
|
|
282
|
+
// if at least one of these optionals is defined
|
|
283
|
+
if (existing_queryAttribute !== undefined || incoming_queryAttribute !== undefined) {
|
|
284
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
285
|
+
// not equal
|
|
286
|
+
if (existing_queryAttribute === undefined || incoming_queryAttribute === undefined) {
|
|
287
|
+
return false;
|
|
288
|
+
}
|
|
289
|
+
if (!(existing_queryAttribute === incoming_queryAttribute)) {
|
|
290
|
+
return false;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return true;
|
|
294
|
+
}
|
|
295
|
+
|
|
174
296
|
function validate$E(obj, path = 'MappedAttributeDataTypeInfoRepresentation') {
|
|
175
297
|
const v_error = (() => {
|
|
176
298
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -325,7 +447,7 @@ function getTypeCacheKeys$m(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
325
447
|
}
|
|
326
448
|
|
|
327
449
|
const TTL$l = 1000;
|
|
328
|
-
const VERSION$p = "
|
|
450
|
+
const VERSION$p = "539359f9069e5a51a579221aeaef8234";
|
|
329
451
|
function validate$C(obj, path = 'ContextAttributeMappingRepresentation') {
|
|
330
452
|
const v_error = (() => {
|
|
331
453
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -338,6 +460,23 @@ function validate$C(obj, path = 'ContextAttributeMappingRepresentation') {
|
|
|
338
460
|
return new TypeError('Expected "string" but received "' + typeof obj_baseReference + '" (at "' + path_baseReference + '")');
|
|
339
461
|
}
|
|
340
462
|
}
|
|
463
|
+
if (obj.contextAttrContextHydrationDetailList !== undefined) {
|
|
464
|
+
const obj_contextAttrContextHydrationDetailList = obj.contextAttrContextHydrationDetailList;
|
|
465
|
+
const path_contextAttrContextHydrationDetailList = path + '.contextAttrContextHydrationDetailList';
|
|
466
|
+
if (!ArrayIsArray(obj_contextAttrContextHydrationDetailList)) {
|
|
467
|
+
return new TypeError('Expected "array" but received "' + typeof obj_contextAttrContextHydrationDetailList + '" (at "' + path_contextAttrContextHydrationDetailList + '")');
|
|
468
|
+
}
|
|
469
|
+
for (let i = 0; i < obj_contextAttrContextHydrationDetailList.length; i++) {
|
|
470
|
+
const obj_contextAttrContextHydrationDetailList_item = obj_contextAttrContextHydrationDetailList[i];
|
|
471
|
+
const path_contextAttrContextHydrationDetailList_item = path_contextAttrContextHydrationDetailList + '[' + i + ']';
|
|
472
|
+
const referencepath_contextAttrContextHydrationDetailList_itemValidationError = validate$F(obj_contextAttrContextHydrationDetailList_item, path_contextAttrContextHydrationDetailList_item);
|
|
473
|
+
if (referencepath_contextAttrContextHydrationDetailList_itemValidationError !== null) {
|
|
474
|
+
let message = 'Object doesn\'t match ContextAttrContextHydrationDetailRepresentation (at "' + path_contextAttrContextHydrationDetailList_item + '")\n';
|
|
475
|
+
message += referencepath_contextAttrContextHydrationDetailList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
476
|
+
return new TypeError(message);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
341
480
|
const obj_contextAttrHydrationDetailList = obj.contextAttrHydrationDetailList;
|
|
342
481
|
const path_contextAttrHydrationDetailList = path + '.contextAttrHydrationDetailList';
|
|
343
482
|
if (!ArrayIsArray(obj_contextAttrHydrationDetailList)) {
|
|
@@ -362,6 +501,13 @@ function validate$C(obj, path = 'ContextAttributeMappingRepresentation') {
|
|
|
362
501
|
if (typeof obj_contextAttributeMappingId !== 'string') {
|
|
363
502
|
return new TypeError('Expected "string" but received "' + typeof obj_contextAttributeMappingId + '" (at "' + path_contextAttributeMappingId + '")');
|
|
364
503
|
}
|
|
504
|
+
if (obj.contextAttributeName !== undefined) {
|
|
505
|
+
const obj_contextAttributeName = obj.contextAttributeName;
|
|
506
|
+
const path_contextAttributeName = path + '.contextAttributeName';
|
|
507
|
+
if (typeof obj_contextAttributeName !== 'string') {
|
|
508
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contextAttributeName + '" (at "' + path_contextAttributeName + '")');
|
|
509
|
+
}
|
|
510
|
+
}
|
|
365
511
|
if (obj.contextInputAttributeName !== undefined) {
|
|
366
512
|
const obj_contextInputAttributeName = obj.contextInputAttributeName;
|
|
367
513
|
const path_contextInputAttributeName = path + '.contextInputAttributeName';
|
|
@@ -423,6 +569,7 @@ function normalize$l(input, existing, path, luvio, store, timestamp) {
|
|
|
423
569
|
return input;
|
|
424
570
|
}
|
|
425
571
|
const select$12 = function ContextAttributeMappingRepresentationSelect() {
|
|
572
|
+
const { selections: ContextAttrContextHydrationDetailRepresentation__selections, opaque: ContextAttrContextHydrationDetailRepresentation__opaque, } = select$14();
|
|
426
573
|
return {
|
|
427
574
|
kind: 'Fragment',
|
|
428
575
|
version: VERSION$p,
|
|
@@ -433,6 +580,13 @@ const select$12 = function ContextAttributeMappingRepresentationSelect() {
|
|
|
433
580
|
kind: 'Scalar',
|
|
434
581
|
required: false
|
|
435
582
|
},
|
|
583
|
+
{
|
|
584
|
+
name: 'contextAttrContextHydrationDetailList',
|
|
585
|
+
kind: 'Object',
|
|
586
|
+
plural: true,
|
|
587
|
+
selections: ContextAttrContextHydrationDetailRepresentation__selections,
|
|
588
|
+
required: false
|
|
589
|
+
},
|
|
436
590
|
{
|
|
437
591
|
name: 'contextAttrHydrationDetailList',
|
|
438
592
|
kind: 'Link',
|
|
@@ -448,6 +602,11 @@ const select$12 = function ContextAttributeMappingRepresentationSelect() {
|
|
|
448
602
|
name: 'contextAttributeMappingId',
|
|
449
603
|
kind: 'Scalar'
|
|
450
604
|
},
|
|
605
|
+
{
|
|
606
|
+
name: 'contextAttributeName',
|
|
607
|
+
kind: 'Scalar',
|
|
608
|
+
required: false
|
|
609
|
+
},
|
|
451
610
|
{
|
|
452
611
|
name: 'contextInputAttributeName',
|
|
453
612
|
kind: 'Scalar',
|
|
@@ -516,6 +675,19 @@ function equals$p(existing, incoming) {
|
|
|
516
675
|
if (!(existing_contextAttributeMappingId === incoming_contextAttributeMappingId)) {
|
|
517
676
|
return false;
|
|
518
677
|
}
|
|
678
|
+
const existing_contextAttributeName = existing.contextAttributeName;
|
|
679
|
+
const incoming_contextAttributeName = incoming.contextAttributeName;
|
|
680
|
+
// if at least one of these optionals is defined
|
|
681
|
+
if (existing_contextAttributeName !== undefined || incoming_contextAttributeName !== undefined) {
|
|
682
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
683
|
+
// not equal
|
|
684
|
+
if (existing_contextAttributeName === undefined || incoming_contextAttributeName === undefined) {
|
|
685
|
+
return false;
|
|
686
|
+
}
|
|
687
|
+
if (!(existing_contextAttributeName === incoming_contextAttributeName)) {
|
|
688
|
+
return false;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
519
691
|
const existing_contextInputAttributeName = existing.contextInputAttributeName;
|
|
520
692
|
const incoming_contextInputAttributeName = incoming.contextInputAttributeName;
|
|
521
693
|
// if at least one of these optionals is defined
|
|
@@ -555,6 +727,24 @@ function equals$p(existing, incoming) {
|
|
|
555
727
|
return false;
|
|
556
728
|
}
|
|
557
729
|
}
|
|
730
|
+
const existing_contextAttrContextHydrationDetailList = existing.contextAttrContextHydrationDetailList;
|
|
731
|
+
const incoming_contextAttrContextHydrationDetailList = incoming.contextAttrContextHydrationDetailList;
|
|
732
|
+
// if at least one of these optionals is defined
|
|
733
|
+
if (existing_contextAttrContextHydrationDetailList !== undefined || incoming_contextAttrContextHydrationDetailList !== undefined) {
|
|
734
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
735
|
+
// not equal
|
|
736
|
+
if (existing_contextAttrContextHydrationDetailList === undefined || incoming_contextAttrContextHydrationDetailList === undefined) {
|
|
737
|
+
return false;
|
|
738
|
+
}
|
|
739
|
+
const equals_contextAttrContextHydrationDetailList_items = equalsArray(existing_contextAttrContextHydrationDetailList, incoming_contextAttrContextHydrationDetailList, (existing_contextAttrContextHydrationDetailList_item, incoming_contextAttrContextHydrationDetailList_item) => {
|
|
740
|
+
if (!(equals$r(existing_contextAttrContextHydrationDetailList_item, incoming_contextAttrContextHydrationDetailList_item))) {
|
|
741
|
+
return false;
|
|
742
|
+
}
|
|
743
|
+
});
|
|
744
|
+
if (equals_contextAttrContextHydrationDetailList_items === false) {
|
|
745
|
+
return false;
|
|
746
|
+
}
|
|
747
|
+
}
|
|
558
748
|
const existing_contextAttrHydrationDetailList = existing.contextAttrHydrationDetailList;
|
|
559
749
|
const incoming_contextAttrHydrationDetailList = incoming.contextAttrHydrationDetailList;
|
|
560
750
|
const equals_contextAttrHydrationDetailList_items = equalsArray(existing_contextAttrHydrationDetailList, incoming_contextAttrHydrationDetailList, (existing_contextAttrHydrationDetailList_item, incoming_contextAttrHydrationDetailList_item) => {
|
|
@@ -639,7 +829,7 @@ const createResourceParams$O = /*#__PURE__*/ createResourceParams$P(createContex
|
|
|
639
829
|
function typeCheckConfig$O(untrustedConfig) {
|
|
640
830
|
const config = {};
|
|
641
831
|
const untrustedConfig_contextAttributeMappingInput = untrustedConfig.contextAttributeMappingInput;
|
|
642
|
-
const referenceContextAttributeMappingInputRepresentationValidationError = validate$
|
|
832
|
+
const referenceContextAttributeMappingInputRepresentationValidationError = validate$G(untrustedConfig_contextAttributeMappingInput);
|
|
643
833
|
if (referenceContextAttributeMappingInputRepresentationValidationError === null) {
|
|
644
834
|
config.contextAttributeMappingInput = untrustedConfig_contextAttributeMappingInput;
|
|
645
835
|
}
|
|
@@ -1914,7 +2104,7 @@ function validate$v(obj, path = 'ContextMappingInputRepresentation') {
|
|
|
1914
2104
|
}
|
|
1915
2105
|
|
|
1916
2106
|
const TTL$g = 1000;
|
|
1917
|
-
const VERSION$k = "
|
|
2107
|
+
const VERSION$k = "0f7420d3c8dbe149876b673d81e43341";
|
|
1918
2108
|
function validate$u(obj, path = 'ContextNodeMappingRepresentation') {
|
|
1919
2109
|
const v_error = (() => {
|
|
1920
2110
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1965,6 +2155,13 @@ function validate$u(obj, path = 'ContextNodeMappingRepresentation') {
|
|
|
1965
2155
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
1966
2156
|
}
|
|
1967
2157
|
}
|
|
2158
|
+
if (obj.mappedContextNodeId !== undefined) {
|
|
2159
|
+
const obj_mappedContextNodeId = obj.mappedContextNodeId;
|
|
2160
|
+
const path_mappedContextNodeId = path + '.mappedContextNodeId';
|
|
2161
|
+
if (typeof obj_mappedContextNodeId !== 'string') {
|
|
2162
|
+
return new TypeError('Expected "string" but received "' + typeof obj_mappedContextNodeId + '" (at "' + path_mappedContextNodeId + '")');
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
1968
2165
|
if (obj.sObjectName !== undefined) {
|
|
1969
2166
|
const obj_sObjectName = obj.sObjectName;
|
|
1970
2167
|
const path_sObjectName = path + '.sObjectName';
|
|
@@ -2040,6 +2237,11 @@ const select$W = function ContextNodeMappingRepresentationSelect() {
|
|
|
2040
2237
|
kind: 'Scalar',
|
|
2041
2238
|
required: false
|
|
2042
2239
|
},
|
|
2240
|
+
{
|
|
2241
|
+
name: 'mappedContextNodeId',
|
|
2242
|
+
kind: 'Scalar',
|
|
2243
|
+
required: false
|
|
2244
|
+
},
|
|
2043
2245
|
{
|
|
2044
2246
|
name: 'sObjectName',
|
|
2045
2247
|
kind: 'Scalar',
|
|
@@ -2106,6 +2308,19 @@ function equals$k(existing, incoming) {
|
|
|
2106
2308
|
if (!(existing_contextNodeMappingId === incoming_contextNodeMappingId)) {
|
|
2107
2309
|
return false;
|
|
2108
2310
|
}
|
|
2311
|
+
const existing_mappedContextNodeId = existing.mappedContextNodeId;
|
|
2312
|
+
const incoming_mappedContextNodeId = incoming.mappedContextNodeId;
|
|
2313
|
+
// if at least one of these optionals is defined
|
|
2314
|
+
if (existing_mappedContextNodeId !== undefined || incoming_mappedContextNodeId !== undefined) {
|
|
2315
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2316
|
+
// not equal
|
|
2317
|
+
if (existing_mappedContextNodeId === undefined || incoming_mappedContextNodeId === undefined) {
|
|
2318
|
+
return false;
|
|
2319
|
+
}
|
|
2320
|
+
if (!(existing_mappedContextNodeId === incoming_mappedContextNodeId)) {
|
|
2321
|
+
return false;
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2109
2324
|
const existing_sObjectName = existing.sObjectName;
|
|
2110
2325
|
const incoming_sObjectName = incoming.sObjectName;
|
|
2111
2326
|
// if at least one of these optionals is defined
|
|
@@ -2158,7 +2373,7 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2158
2373
|
}
|
|
2159
2374
|
|
|
2160
2375
|
const TTL$f = 1000;
|
|
2161
|
-
const VERSION$j = "
|
|
2376
|
+
const VERSION$j = "6625536779234428522beec438ddd863";
|
|
2162
2377
|
function validate$t(obj, path = 'ContextMappingRepresentation') {
|
|
2163
2378
|
const v_error = (() => {
|
|
2164
2379
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2202,6 +2417,20 @@ function validate$t(obj, path = 'ContextMappingRepresentation') {
|
|
|
2202
2417
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2203
2418
|
}
|
|
2204
2419
|
}
|
|
2420
|
+
if (obj.intents !== undefined) {
|
|
2421
|
+
const obj_intents = obj.intents;
|
|
2422
|
+
const path_intents = path + '.intents';
|
|
2423
|
+
if (!ArrayIsArray(obj_intents)) {
|
|
2424
|
+
return new TypeError('Expected "array" but received "' + typeof obj_intents + '" (at "' + path_intents + '")');
|
|
2425
|
+
}
|
|
2426
|
+
for (let i = 0; i < obj_intents.length; i++) {
|
|
2427
|
+
const obj_intents_item = obj_intents[i];
|
|
2428
|
+
const path_intents_item = path_intents + '[' + i + ']';
|
|
2429
|
+
if (typeof obj_intents_item !== 'string') {
|
|
2430
|
+
return new TypeError('Expected "string" but received "' + typeof obj_intents_item + '" (at "' + path_intents_item + '")');
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
}
|
|
2205
2434
|
if (obj.isDefault !== undefined) {
|
|
2206
2435
|
const obj_isDefault = obj.isDefault;
|
|
2207
2436
|
const path_isDefault = path + '.isDefault';
|
|
@@ -2209,6 +2438,13 @@ function validate$t(obj, path = 'ContextMappingRepresentation') {
|
|
|
2209
2438
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
|
|
2210
2439
|
}
|
|
2211
2440
|
}
|
|
2441
|
+
if (obj.isInputMapped !== undefined) {
|
|
2442
|
+
const obj_isInputMapped = obj.isInputMapped;
|
|
2443
|
+
const path_isInputMapped = path + '.isInputMapped';
|
|
2444
|
+
if (typeof obj_isInputMapped !== 'boolean') {
|
|
2445
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isInputMapped + '" (at "' + path_isInputMapped + '")');
|
|
2446
|
+
}
|
|
2447
|
+
}
|
|
2212
2448
|
if (obj.isSuccess !== undefined) {
|
|
2213
2449
|
const obj_isSuccess = obj.isSuccess;
|
|
2214
2450
|
const path_isSuccess = path + '.isSuccess';
|
|
@@ -2216,6 +2452,13 @@ function validate$t(obj, path = 'ContextMappingRepresentation') {
|
|
|
2216
2452
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
2217
2453
|
}
|
|
2218
2454
|
}
|
|
2455
|
+
if (obj.mappedContextDefinitionName !== undefined) {
|
|
2456
|
+
const obj_mappedContextDefinitionName = obj.mappedContextDefinitionName;
|
|
2457
|
+
const path_mappedContextDefinitionName = path + '.mappedContextDefinitionName';
|
|
2458
|
+
if (typeof obj_mappedContextDefinitionName !== 'string') {
|
|
2459
|
+
return new TypeError('Expected "string" but received "' + typeof obj_mappedContextDefinitionName + '" (at "' + path_mappedContextDefinitionName + '")');
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2219
2462
|
if (obj.name !== undefined) {
|
|
2220
2463
|
const obj_name = obj.name;
|
|
2221
2464
|
const path_name = path + '.name';
|
|
@@ -2286,16 +2529,32 @@ const select$V = function ContextMappingRepresentationSelect() {
|
|
|
2286
2529
|
kind: 'Scalar',
|
|
2287
2530
|
required: false
|
|
2288
2531
|
},
|
|
2532
|
+
{
|
|
2533
|
+
name: 'intents',
|
|
2534
|
+
kind: 'Scalar',
|
|
2535
|
+
plural: true,
|
|
2536
|
+
required: false
|
|
2537
|
+
},
|
|
2289
2538
|
{
|
|
2290
2539
|
name: 'isDefault',
|
|
2291
2540
|
kind: 'Scalar',
|
|
2292
2541
|
required: false
|
|
2293
2542
|
},
|
|
2543
|
+
{
|
|
2544
|
+
name: 'isInputMapped',
|
|
2545
|
+
kind: 'Scalar',
|
|
2546
|
+
required: false
|
|
2547
|
+
},
|
|
2294
2548
|
{
|
|
2295
2549
|
name: 'isSuccess',
|
|
2296
2550
|
kind: 'Scalar',
|
|
2297
2551
|
required: false
|
|
2298
2552
|
},
|
|
2553
|
+
{
|
|
2554
|
+
name: 'mappedContextDefinitionName',
|
|
2555
|
+
kind: 'Scalar',
|
|
2556
|
+
required: false
|
|
2557
|
+
},
|
|
2299
2558
|
{
|
|
2300
2559
|
name: 'name',
|
|
2301
2560
|
kind: 'Scalar',
|
|
@@ -2318,6 +2577,19 @@ function equals$j(existing, incoming) {
|
|
|
2318
2577
|
return false;
|
|
2319
2578
|
}
|
|
2320
2579
|
}
|
|
2580
|
+
const existing_isInputMapped = existing.isInputMapped;
|
|
2581
|
+
const incoming_isInputMapped = incoming.isInputMapped;
|
|
2582
|
+
// if at least one of these optionals is defined
|
|
2583
|
+
if (existing_isInputMapped !== undefined || incoming_isInputMapped !== undefined) {
|
|
2584
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2585
|
+
// not equal
|
|
2586
|
+
if (existing_isInputMapped === undefined || incoming_isInputMapped === undefined) {
|
|
2587
|
+
return false;
|
|
2588
|
+
}
|
|
2589
|
+
if (!(existing_isInputMapped === incoming_isInputMapped)) {
|
|
2590
|
+
return false;
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2321
2593
|
const existing_isSuccess = existing.isSuccess;
|
|
2322
2594
|
const incoming_isSuccess = incoming.isSuccess;
|
|
2323
2595
|
// if at least one of these optionals is defined
|
|
@@ -2375,6 +2647,19 @@ function equals$j(existing, incoming) {
|
|
|
2375
2647
|
return false;
|
|
2376
2648
|
}
|
|
2377
2649
|
}
|
|
2650
|
+
const existing_mappedContextDefinitionName = existing.mappedContextDefinitionName;
|
|
2651
|
+
const incoming_mappedContextDefinitionName = incoming.mappedContextDefinitionName;
|
|
2652
|
+
// if at least one of these optionals is defined
|
|
2653
|
+
if (existing_mappedContextDefinitionName !== undefined || incoming_mappedContextDefinitionName !== undefined) {
|
|
2654
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2655
|
+
// not equal
|
|
2656
|
+
if (existing_mappedContextDefinitionName === undefined || incoming_mappedContextDefinitionName === undefined) {
|
|
2657
|
+
return false;
|
|
2658
|
+
}
|
|
2659
|
+
if (!(existing_mappedContextDefinitionName === incoming_mappedContextDefinitionName)) {
|
|
2660
|
+
return false;
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2378
2663
|
const existing_name = existing.name;
|
|
2379
2664
|
const incoming_name = incoming.name;
|
|
2380
2665
|
// if at least one of these optionals is defined
|
|
@@ -2398,6 +2683,24 @@ function equals$j(existing, incoming) {
|
|
|
2398
2683
|
if (equals_contextNodeMappings_items === false) {
|
|
2399
2684
|
return false;
|
|
2400
2685
|
}
|
|
2686
|
+
const existing_intents = existing.intents;
|
|
2687
|
+
const incoming_intents = incoming.intents;
|
|
2688
|
+
// if at least one of these optionals is defined
|
|
2689
|
+
if (existing_intents !== undefined || incoming_intents !== undefined) {
|
|
2690
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2691
|
+
// not equal
|
|
2692
|
+
if (existing_intents === undefined || incoming_intents === undefined) {
|
|
2693
|
+
return false;
|
|
2694
|
+
}
|
|
2695
|
+
const equals_intents_items = equalsArray(existing_intents, incoming_intents, (existing_intents_item, incoming_intents_item) => {
|
|
2696
|
+
if (!(existing_intents_item === incoming_intents_item)) {
|
|
2697
|
+
return false;
|
|
2698
|
+
}
|
|
2699
|
+
});
|
|
2700
|
+
if (equals_intents_items === false) {
|
|
2701
|
+
return false;
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2401
2704
|
return true;
|
|
2402
2705
|
}
|
|
2403
2706
|
const ingest$f = function ContextMappingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -8306,7 +8609,7 @@ function createResourceRequest$k(config) {
|
|
|
8306
8609
|
method: 'get',
|
|
8307
8610
|
body: null,
|
|
8308
8611
|
urlParams: config.urlParams,
|
|
8309
|
-
queryParams:
|
|
8612
|
+
queryParams: config.queryParams,
|
|
8310
8613
|
headers,
|
|
8311
8614
|
priority: 'normal',
|
|
8312
8615
|
};
|
|
@@ -8314,6 +8617,7 @@ function createResourceRequest$k(config) {
|
|
|
8314
8617
|
function createResourceRequestFromRepresentation$6(representation) {
|
|
8315
8618
|
const config = {
|
|
8316
8619
|
urlParams: {},
|
|
8620
|
+
queryParams: {},
|
|
8317
8621
|
};
|
|
8318
8622
|
config.urlParams.contextDefinitionId = representation.contextDefinitionId;
|
|
8319
8623
|
return createResourceRequest$k(config);
|
|
@@ -8322,6 +8626,8 @@ function createResourceRequestFromRepresentation$6(representation) {
|
|
|
8322
8626
|
const adapterName$k = 'getContextServiceDefinition';
|
|
8323
8627
|
const getContextServiceDefinition_ConfigPropertyMetadata = [
|
|
8324
8628
|
generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8629
|
+
generateParamConfigMetadata('isMappingRequiredExclusively', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
8630
|
+
generateParamConfigMetadata('mappingIdsOrDevelopersNames', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
8325
8631
|
];
|
|
8326
8632
|
const getContextServiceDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getContextServiceDefinition_ConfigPropertyMetadata);
|
|
8327
8633
|
const createResourceParams$k = /*#__PURE__*/ createResourceParams$P(getContextServiceDefinition_ConfigPropertyMetadata);
|
|
@@ -10709,7 +11015,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10709
11015
|
const config = {};
|
|
10710
11016
|
typeCheckConfig$P(untrustedConfig, config, updateContextAttributeMapping_ConfigPropertyMetadata);
|
|
10711
11017
|
const untrustedConfig_contextAttributeMappingInput = untrustedConfig.contextAttributeMappingInput;
|
|
10712
|
-
const referenceContextAttributeMappingInputRepresentationValidationError = validate$
|
|
11018
|
+
const referenceContextAttributeMappingInputRepresentationValidationError = validate$G(untrustedConfig_contextAttributeMappingInput);
|
|
10713
11019
|
if (referenceContextAttributeMappingInputRepresentationValidationError === null) {
|
|
10714
11020
|
config.contextAttributeMappingInput = untrustedConfig_contextAttributeMappingInput;
|
|
10715
11021
|
}
|
|
@@ -12248,4 +12554,4 @@ withDefaultLuvio((luvio) => {
|
|
|
12248
12554
|
});
|
|
12249
12555
|
|
|
12250
12556
|
export { createContextAttributeMapping, createContextAttributeMappings, createContextAttributes, createContextMapping, createContextMappings, createContextNodeMapping, createContextNodeMappings, createContextNodes, createContextQueryRecords, createContextServiceDefinition, createContextTags, deleteContextAttributeMapping, deleteContextMapping, deleteContextNodeMapping, deleteContextServiceAttribute, deleteContextServiceAttributeMapping, deleteContextServiceDefinition, deleteContextServiceMapping, deleteContextServiceNode, deleteContextServiceNodeMapping, deleteContextServiceTag, getContext, getContextAttributeMapping, getContextAttributeMappingNotifyChange, getContextAttributeMapping_imperative, getContextDefinitions, getContextDefinitions_imperative, getContextInfo, getContextInfoNotifyChange, getContextInfo_imperative, getContextMapping, getContextMappingNotifyChange, getContextMapping_imperative, getContextNodeMapping, getContextNodeMappingNotifyChange, getContextNodeMapping_imperative, getContextNotifyChange, getContextServiceAccess, getContextServiceAccessNotifyChange, getContextServiceAccess_imperative, getContextServiceAttribute, getContextServiceAttributeMapping, getContextServiceAttributeMappingNotifyChange, getContextServiceAttributeMapping_imperative, getContextServiceAttributeNotifyChange, getContextServiceAttribute_imperative, getContextServiceDefinition, getContextServiceDefinitionInfo, getContextServiceDefinitionInfoNotifyChange, getContextServiceDefinitionInfo_imperative, getContextServiceDefinitionNotifyChange, getContextServiceDefinition_imperative, getContextServiceMapping, getContextServiceMappingNotifyChange, getContextServiceMapping_imperative, getContextServiceNode, getContextServiceNodeMapping, getContextServiceNodeMappingNotifyChange, getContextServiceNodeMapping_imperative, getContextServiceNodeNotifyChange, getContextServiceNode_imperative, getContextServiceTag, getContextServiceTagNotifyChange, getContextServiceTag_imperative, getContextTags, getContextTagsNotifyChange, getContextTags_imperative, getContextTranslation, getContextTranslation_imperative, getContext_imperative, putContextServiceAccess, queryContextRecordAndChildren, updateContextAttributeMapping, updateContextAttributeMappings, updateContextAttributes, updateContextMapping, updateContextMappings, updateContextNodeMapping, updateContextNodeMappings, updateContextNodes, updateContextServiceDefinition, updateContextTags, upgradeContextServiceDefinition };
|
|
12251
|
-
// version: 1.
|
|
12557
|
+
// version: 1.284.0-8b78b708e
|