@salesforce/lds-adapters-industries-context 1.134.1 → 1.134.3
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 +307 -350
- package/dist/es/es2018/types/src/generated/types/ContextAttrHydrationDetailRepresentation.d.ts +15 -5
- package/dist/es/es2018/types/src/generated/types/ContextAttributeMappingRepresentation.d.ts +13 -4
- package/dist/es/es2018/types/src/generated/types/ContextInfoRepresentation.d.ts +15 -5
- package/package.json +1 -1
- package/sfdc/index.js +191 -234
- package/src/raml/api.raml +16 -14
- package/src/raml/luvio.raml +10 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectContextAttributeByContextId.d.ts +0 -18
|
@@ -90,7 +90,7 @@ function createLink(ref) {
|
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
const TTL$
|
|
93
|
+
const TTL$d = 30000;
|
|
94
94
|
const VERSION$d = "05ab63159c5733f63fae9f5eb081ee89";
|
|
95
95
|
function validate$n(obj, path = 'ContextDefinitionInfoRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
@@ -189,17 +189,17 @@ function validate$n(obj, path = 'ContextDefinitionInfoRepresentation') {
|
|
|
189
189
|
})();
|
|
190
190
|
return v_error === undefined ? null : v_error;
|
|
191
191
|
}
|
|
192
|
-
const RepresentationType$
|
|
193
|
-
function keyBuilder$
|
|
194
|
-
return keyPrefix + '::' + RepresentationType$
|
|
192
|
+
const RepresentationType$d = 'ContextDefinitionInfoRepresentation';
|
|
193
|
+
function keyBuilder$H(luvio, config) {
|
|
194
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.id;
|
|
195
195
|
}
|
|
196
|
-
function keyBuilderFromType$
|
|
196
|
+
function keyBuilderFromType$b(luvio, object) {
|
|
197
197
|
const keyParams = {
|
|
198
198
|
id: object.contextDefinitionId
|
|
199
199
|
};
|
|
200
|
-
return keyBuilder$
|
|
200
|
+
return keyBuilder$H(luvio, keyParams);
|
|
201
201
|
}
|
|
202
|
-
function normalize$
|
|
202
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
203
203
|
return input;
|
|
204
204
|
}
|
|
205
205
|
const select$H = function ContextDefinitionInfoRepresentationSelect() {
|
|
@@ -439,17 +439,17 @@ function equals$d(existing, incoming) {
|
|
|
439
439
|
}
|
|
440
440
|
return true;
|
|
441
441
|
}
|
|
442
|
-
const ingest$
|
|
442
|
+
const ingest$d = function ContextDefinitionInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
443
443
|
if (process.env.NODE_ENV !== 'production') {
|
|
444
444
|
const validateError = validate$n(input);
|
|
445
445
|
if (validateError !== null) {
|
|
446
446
|
throw validateError;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
const key = keyBuilderFromType$
|
|
449
|
+
const key = keyBuilderFromType$b(luvio, input);
|
|
450
450
|
const existingRecord = store.readEntry(key);
|
|
451
|
-
const ttlToUse = TTL$
|
|
452
|
-
let incomingRecord = normalize$
|
|
451
|
+
const ttlToUse = TTL$d;
|
|
452
|
+
let incomingRecord = normalize$d(input, store.readEntry(key), {
|
|
453
453
|
fullPath: key,
|
|
454
454
|
parent: path.parent,
|
|
455
455
|
propertyName: path.propertyName,
|
|
@@ -463,25 +463,25 @@ const ingest$c = function ContextDefinitionInfoRepresentationIngest(input, path,
|
|
|
463
463
|
ttl: ttlToUse,
|
|
464
464
|
namespace: "IndustriesContext",
|
|
465
465
|
version: VERSION$d,
|
|
466
|
-
representationName: RepresentationType$
|
|
466
|
+
representationName: RepresentationType$d,
|
|
467
467
|
};
|
|
468
468
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
469
469
|
}
|
|
470
470
|
return createLink(key);
|
|
471
471
|
};
|
|
472
|
-
function getTypeCacheKeys$
|
|
472
|
+
function getTypeCacheKeys$d(luvio, input, fullPathFactory) {
|
|
473
473
|
const rootKeySet = new StoreKeyMap();
|
|
474
474
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
475
|
-
const rootKey = keyBuilderFromType$
|
|
475
|
+
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
476
476
|
rootKeySet.set(rootKey, {
|
|
477
477
|
namespace: keyPrefix,
|
|
478
|
-
representationName: RepresentationType$
|
|
478
|
+
representationName: RepresentationType$d,
|
|
479
479
|
mergeable: false
|
|
480
480
|
});
|
|
481
481
|
return rootKeySet;
|
|
482
482
|
}
|
|
483
483
|
|
|
484
|
-
const TTL$
|
|
484
|
+
const TTL$c = 10000;
|
|
485
485
|
const VERSION$c = "847680af81af4497e1c8078978aa7a7e";
|
|
486
486
|
function validate$m(obj, path = 'ContextDefinitionListRepresentation') {
|
|
487
487
|
const v_error = (() => {
|
|
@@ -510,14 +510,14 @@ function validate$m(obj, path = 'ContextDefinitionListRepresentation') {
|
|
|
510
510
|
})();
|
|
511
511
|
return v_error === undefined ? null : v_error;
|
|
512
512
|
}
|
|
513
|
-
const RepresentationType$
|
|
514
|
-
function normalize$
|
|
513
|
+
const RepresentationType$c = 'ContextDefinitionListRepresentation';
|
|
514
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
515
515
|
const input_contextDefinitionList = input.contextDefinitionList;
|
|
516
516
|
const input_contextDefinitionList_id = path.fullPath + '__contextDefinitionList';
|
|
517
517
|
for (let i = 0; i < input_contextDefinitionList.length; i++) {
|
|
518
518
|
const input_contextDefinitionList_item = input_contextDefinitionList[i];
|
|
519
519
|
let input_contextDefinitionList_item_id = input_contextDefinitionList_id + '__' + i;
|
|
520
|
-
input_contextDefinitionList[i] = ingest$
|
|
520
|
+
input_contextDefinitionList[i] = ingest$d(input_contextDefinitionList_item, {
|
|
521
521
|
fullPath: input_contextDefinitionList_item_id,
|
|
522
522
|
propertyName: i,
|
|
523
523
|
parent: {
|
|
@@ -576,7 +576,7 @@ function equals$c(existing, incoming) {
|
|
|
576
576
|
}
|
|
577
577
|
return true;
|
|
578
578
|
}
|
|
579
|
-
const ingest$
|
|
579
|
+
const ingest$c = function ContextDefinitionListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
580
580
|
if (process.env.NODE_ENV !== 'production') {
|
|
581
581
|
const validateError = validate$m(input);
|
|
582
582
|
if (validateError !== null) {
|
|
@@ -585,8 +585,8 @@ const ingest$b = function ContextDefinitionListRepresentationIngest(input, path,
|
|
|
585
585
|
}
|
|
586
586
|
const key = path.fullPath;
|
|
587
587
|
const existingRecord = store.readEntry(key);
|
|
588
|
-
const ttlToUse = TTL$
|
|
589
|
-
let incomingRecord = normalize$
|
|
588
|
+
const ttlToUse = TTL$c;
|
|
589
|
+
let incomingRecord = normalize$c(input, store.readEntry(key), {
|
|
590
590
|
fullPath: key,
|
|
591
591
|
parent: path.parent,
|
|
592
592
|
propertyName: path.propertyName,
|
|
@@ -600,24 +600,24 @@ const ingest$b = function ContextDefinitionListRepresentationIngest(input, path,
|
|
|
600
600
|
ttl: ttlToUse,
|
|
601
601
|
namespace: "IndustriesContext",
|
|
602
602
|
version: VERSION$c,
|
|
603
|
-
representationName: RepresentationType$
|
|
603
|
+
representationName: RepresentationType$c,
|
|
604
604
|
};
|
|
605
605
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
606
606
|
}
|
|
607
607
|
return createLink(key);
|
|
608
608
|
};
|
|
609
|
-
function getTypeCacheKeys$
|
|
609
|
+
function getTypeCacheKeys$c(luvio, input, fullPathFactory) {
|
|
610
610
|
const rootKeySet = new StoreKeyMap();
|
|
611
611
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
612
612
|
const rootKey = fullPathFactory();
|
|
613
613
|
rootKeySet.set(rootKey, {
|
|
614
614
|
namespace: keyPrefix,
|
|
615
|
-
representationName: RepresentationType$
|
|
615
|
+
representationName: RepresentationType$c,
|
|
616
616
|
mergeable: false
|
|
617
617
|
});
|
|
618
618
|
const input_contextDefinitionList_length = input.contextDefinitionList.length;
|
|
619
619
|
for (let i = 0; i < input_contextDefinitionList_length; i++) {
|
|
620
|
-
rootKeySet.merge(getTypeCacheKeys$
|
|
620
|
+
rootKeySet.merge(getTypeCacheKeys$d(luvio, input.contextDefinitionList[i]));
|
|
621
621
|
}
|
|
622
622
|
return rootKeySet;
|
|
623
623
|
}
|
|
@@ -625,16 +625,16 @@ function getTypeCacheKeys$b(luvio, input, fullPathFactory) {
|
|
|
625
625
|
function select$F(luvio, params) {
|
|
626
626
|
return select$G();
|
|
627
627
|
}
|
|
628
|
-
function keyBuilder$
|
|
628
|
+
function keyBuilder$G(luvio, params) {
|
|
629
629
|
return keyPrefix + '::ContextDefinitionListRepresentation:(' + 'includeInactive:' + params.queryParams.includeInactive + ')';
|
|
630
630
|
}
|
|
631
631
|
function getResponseCacheKeys$B(luvio, resourceParams, response) {
|
|
632
|
-
return getTypeCacheKeys$
|
|
632
|
+
return getTypeCacheKeys$c(luvio, response, () => keyBuilder$G(luvio, resourceParams));
|
|
633
633
|
}
|
|
634
634
|
function ingestSuccess$t(luvio, resourceParams, response, snapshotRefresh) {
|
|
635
635
|
const { body } = response;
|
|
636
|
-
const key = keyBuilder$
|
|
637
|
-
luvio.storeIngest(key, ingest$
|
|
636
|
+
const key = keyBuilder$G(luvio, resourceParams);
|
|
637
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
638
638
|
const snapshot = luvio.storeLookup({
|
|
639
639
|
recordId: key,
|
|
640
640
|
node: select$F(),
|
|
@@ -648,13 +648,13 @@ function ingestSuccess$t(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
648
648
|
return snapshot;
|
|
649
649
|
}
|
|
650
650
|
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
651
|
-
const key = keyBuilder$
|
|
651
|
+
const key = keyBuilder$G(luvio, params);
|
|
652
652
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
653
653
|
const storeMetadataParams = {
|
|
654
|
-
ttl: TTL$
|
|
654
|
+
ttl: TTL$c,
|
|
655
655
|
namespace: keyPrefix,
|
|
656
656
|
version: VERSION$c,
|
|
657
|
-
representationName: RepresentationType$
|
|
657
|
+
representationName: RepresentationType$c
|
|
658
658
|
};
|
|
659
659
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
660
660
|
return errorSnapshot;
|
|
@@ -688,9 +688,9 @@ function createResourceParams$B(config) {
|
|
|
688
688
|
};
|
|
689
689
|
return resourceParams;
|
|
690
690
|
}
|
|
691
|
-
function keyBuilder$
|
|
691
|
+
function keyBuilder$F(luvio, config) {
|
|
692
692
|
const resourceParams = createResourceParams$B(config);
|
|
693
|
-
return keyBuilder$
|
|
693
|
+
return keyBuilder$G(luvio, resourceParams);
|
|
694
694
|
}
|
|
695
695
|
function typeCheckConfig$B(untrustedConfig) {
|
|
696
696
|
const config = {};
|
|
@@ -761,7 +761,7 @@ function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext
|
|
|
761
761
|
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
762
762
|
const { luvio, config } = context;
|
|
763
763
|
const selector = {
|
|
764
|
-
recordId: keyBuilder$
|
|
764
|
+
recordId: keyBuilder$F(luvio, config),
|
|
765
765
|
node: adapterFragment$b(luvio, config),
|
|
766
766
|
variables: {},
|
|
767
767
|
};
|
|
@@ -836,12 +836,12 @@ function select$E(luvio, params) {
|
|
|
836
836
|
return select$H();
|
|
837
837
|
}
|
|
838
838
|
function getResponseCacheKeys$A(luvio, resourceParams, response) {
|
|
839
|
-
return getTypeCacheKeys$
|
|
839
|
+
return getTypeCacheKeys$d(luvio, response);
|
|
840
840
|
}
|
|
841
841
|
function ingestSuccess$s(luvio, resourceParams, response) {
|
|
842
842
|
const { body } = response;
|
|
843
|
-
const key = keyBuilderFromType$
|
|
844
|
-
luvio.storeIngest(key, ingest$
|
|
843
|
+
const key = keyBuilderFromType$b(luvio, body);
|
|
844
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
845
845
|
const snapshot = luvio.storeLookup({
|
|
846
846
|
recordId: key,
|
|
847
847
|
node: select$E(),
|
|
@@ -995,7 +995,7 @@ function validate$k(obj, path = 'ContextAttributeInputRepresentation') {
|
|
|
995
995
|
return v_error === undefined ? null : v_error;
|
|
996
996
|
}
|
|
997
997
|
|
|
998
|
-
const TTL$
|
|
998
|
+
const TTL$b = 30000;
|
|
999
999
|
const VERSION$b = "6cc8b3ef582709be7344b57cb6370543";
|
|
1000
1000
|
function validate$j(obj, path = 'ContextAttributeTagRepresentation') {
|
|
1001
1001
|
const v_error = (() => {
|
|
@@ -1036,17 +1036,17 @@ function validate$j(obj, path = 'ContextAttributeTagRepresentation') {
|
|
|
1036
1036
|
})();
|
|
1037
1037
|
return v_error === undefined ? null : v_error;
|
|
1038
1038
|
}
|
|
1039
|
-
const RepresentationType$
|
|
1040
|
-
function keyBuilder$
|
|
1041
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1039
|
+
const RepresentationType$b = 'ContextAttributeTagRepresentation';
|
|
1040
|
+
function keyBuilder$E(luvio, config) {
|
|
1041
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.id;
|
|
1042
1042
|
}
|
|
1043
|
-
function keyBuilderFromType$
|
|
1043
|
+
function keyBuilderFromType$a(luvio, object) {
|
|
1044
1044
|
const keyParams = {
|
|
1045
1045
|
id: object.contextAttributeTagId
|
|
1046
1046
|
};
|
|
1047
|
-
return keyBuilder$
|
|
1047
|
+
return keyBuilder$E(luvio, keyParams);
|
|
1048
1048
|
}
|
|
1049
|
-
function normalize$
|
|
1049
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
1050
1050
|
return input;
|
|
1051
1051
|
}
|
|
1052
1052
|
const select$D = function ContextAttributeTagRepresentationSelect() {
|
|
@@ -1136,17 +1136,17 @@ function equals$b(existing, incoming) {
|
|
|
1136
1136
|
function deepFreeze$8(input) {
|
|
1137
1137
|
ObjectFreeze(input);
|
|
1138
1138
|
}
|
|
1139
|
-
const ingest$
|
|
1139
|
+
const ingest$b = function ContextAttributeTagRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1140
1140
|
if (process.env.NODE_ENV !== 'production') {
|
|
1141
1141
|
const validateError = validate$j(input);
|
|
1142
1142
|
if (validateError !== null) {
|
|
1143
1143
|
throw validateError;
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
|
-
const key = keyBuilderFromType$
|
|
1146
|
+
const key = keyBuilderFromType$a(luvio, input);
|
|
1147
1147
|
const existingRecord = store.readEntry(key);
|
|
1148
|
-
const ttlToUse = TTL$
|
|
1149
|
-
let incomingRecord = normalize$
|
|
1148
|
+
const ttlToUse = TTL$b;
|
|
1149
|
+
let incomingRecord = normalize$b(input, store.readEntry(key), {
|
|
1150
1150
|
fullPath: key,
|
|
1151
1151
|
parent: path.parent,
|
|
1152
1152
|
propertyName: path.propertyName,
|
|
@@ -1160,25 +1160,25 @@ const ingest$a = function ContextAttributeTagRepresentationIngest(input, path, l
|
|
|
1160
1160
|
ttl: ttlToUse,
|
|
1161
1161
|
namespace: "IndustriesContext",
|
|
1162
1162
|
version: VERSION$b,
|
|
1163
|
-
representationName: RepresentationType$
|
|
1163
|
+
representationName: RepresentationType$b,
|
|
1164
1164
|
};
|
|
1165
1165
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1166
1166
|
}
|
|
1167
1167
|
return createLink(key);
|
|
1168
1168
|
};
|
|
1169
|
-
function getTypeCacheKeys$
|
|
1169
|
+
function getTypeCacheKeys$b(luvio, input, fullPathFactory) {
|
|
1170
1170
|
const rootKeySet = new StoreKeyMap();
|
|
1171
1171
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1172
|
-
const rootKey = keyBuilderFromType$
|
|
1172
|
+
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
1173
1173
|
rootKeySet.set(rootKey, {
|
|
1174
1174
|
namespace: keyPrefix,
|
|
1175
|
-
representationName: RepresentationType$
|
|
1175
|
+
representationName: RepresentationType$b,
|
|
1176
1176
|
mergeable: false
|
|
1177
1177
|
});
|
|
1178
1178
|
return rootKeySet;
|
|
1179
1179
|
}
|
|
1180
1180
|
|
|
1181
|
-
const TTL$
|
|
1181
|
+
const TTL$a = 30000;
|
|
1182
1182
|
const VERSION$a = "6b4da990bdb17903fdbabc1d342a8acb";
|
|
1183
1183
|
function validate$i(obj, path = 'ContextAttributeRepresentation') {
|
|
1184
1184
|
const v_error = (() => {
|
|
@@ -1246,23 +1246,23 @@ function validate$i(obj, path = 'ContextAttributeRepresentation') {
|
|
|
1246
1246
|
})();
|
|
1247
1247
|
return v_error === undefined ? null : v_error;
|
|
1248
1248
|
}
|
|
1249
|
-
const RepresentationType$
|
|
1250
|
-
function keyBuilder$
|
|
1251
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1249
|
+
const RepresentationType$a = 'ContextAttributeRepresentation';
|
|
1250
|
+
function keyBuilder$D(luvio, config) {
|
|
1251
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.id;
|
|
1252
1252
|
}
|
|
1253
|
-
function keyBuilderFromType$
|
|
1253
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
1254
1254
|
const keyParams = {
|
|
1255
1255
|
id: object.contextAttributeId
|
|
1256
1256
|
};
|
|
1257
|
-
return keyBuilder$
|
|
1257
|
+
return keyBuilder$D(luvio, keyParams);
|
|
1258
1258
|
}
|
|
1259
|
-
function normalize$
|
|
1259
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
1260
1260
|
const input_attributeTags = input.attributeTags;
|
|
1261
1261
|
const input_attributeTags_id = path.fullPath + '__attributeTags';
|
|
1262
1262
|
for (let i = 0; i < input_attributeTags.length; i++) {
|
|
1263
1263
|
const input_attributeTags_item = input_attributeTags[i];
|
|
1264
1264
|
let input_attributeTags_item_id = input_attributeTags_id + '__' + i;
|
|
1265
|
-
input_attributeTags[i] = ingest$
|
|
1265
|
+
input_attributeTags[i] = ingest$b(input_attributeTags_item, {
|
|
1266
1266
|
fullPath: input_attributeTags_item_id,
|
|
1267
1267
|
propertyName: i,
|
|
1268
1268
|
parent: {
|
|
@@ -1411,17 +1411,17 @@ function deepFreeze$7(input) {
|
|
|
1411
1411
|
ObjectFreeze(input_attributeTags);
|
|
1412
1412
|
ObjectFreeze(input);
|
|
1413
1413
|
}
|
|
1414
|
-
const ingest$
|
|
1414
|
+
const ingest$a = function ContextAttributeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1415
1415
|
if (process.env.NODE_ENV !== 'production') {
|
|
1416
1416
|
const validateError = validate$i(input);
|
|
1417
1417
|
if (validateError !== null) {
|
|
1418
1418
|
throw validateError;
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
|
-
const key = keyBuilderFromType$
|
|
1421
|
+
const key = keyBuilderFromType$9(luvio, input);
|
|
1422
1422
|
const existingRecord = store.readEntry(key);
|
|
1423
|
-
const ttlToUse = TTL$
|
|
1424
|
-
let incomingRecord = normalize$
|
|
1423
|
+
const ttlToUse = TTL$a;
|
|
1424
|
+
let incomingRecord = normalize$a(input, store.readEntry(key), {
|
|
1425
1425
|
fullPath: key,
|
|
1426
1426
|
parent: path.parent,
|
|
1427
1427
|
propertyName: path.propertyName,
|
|
@@ -1435,24 +1435,24 @@ const ingest$9 = function ContextAttributeRepresentationIngest(input, path, luvi
|
|
|
1435
1435
|
ttl: ttlToUse,
|
|
1436
1436
|
namespace: "IndustriesContext",
|
|
1437
1437
|
version: VERSION$a,
|
|
1438
|
-
representationName: RepresentationType$
|
|
1438
|
+
representationName: RepresentationType$a,
|
|
1439
1439
|
};
|
|
1440
1440
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1441
1441
|
}
|
|
1442
1442
|
return createLink(key);
|
|
1443
1443
|
};
|
|
1444
|
-
function getTypeCacheKeys$
|
|
1444
|
+
function getTypeCacheKeys$a(luvio, input, fullPathFactory) {
|
|
1445
1445
|
const rootKeySet = new StoreKeyMap();
|
|
1446
1446
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1447
|
-
const rootKey = keyBuilderFromType$
|
|
1447
|
+
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
1448
1448
|
rootKeySet.set(rootKey, {
|
|
1449
1449
|
namespace: keyPrefix,
|
|
1450
|
-
representationName: RepresentationType$
|
|
1450
|
+
representationName: RepresentationType$a,
|
|
1451
1451
|
mergeable: false
|
|
1452
1452
|
});
|
|
1453
1453
|
const input_attributeTags_length = input.attributeTags.length;
|
|
1454
1454
|
for (let i = 0; i < input_attributeTags_length; i++) {
|
|
1455
|
-
rootKeySet.merge(getTypeCacheKeys$
|
|
1455
|
+
rootKeySet.merge(getTypeCacheKeys$b(luvio, input.attributeTags[i]));
|
|
1456
1456
|
}
|
|
1457
1457
|
return rootKeySet;
|
|
1458
1458
|
}
|
|
@@ -1461,12 +1461,12 @@ function select$B(luvio, params) {
|
|
|
1461
1461
|
return select$C();
|
|
1462
1462
|
}
|
|
1463
1463
|
function getResponseCacheKeys$z(luvio, resourceParams, response) {
|
|
1464
|
-
return getTypeCacheKeys$
|
|
1464
|
+
return getTypeCacheKeys$a(luvio, response);
|
|
1465
1465
|
}
|
|
1466
1466
|
function ingestSuccess$r(luvio, resourceParams, response) {
|
|
1467
1467
|
const { body } = response;
|
|
1468
|
-
const key = keyBuilderFromType$
|
|
1469
|
-
luvio.storeIngest(key, ingest$
|
|
1468
|
+
const key = keyBuilderFromType$9(luvio, body);
|
|
1469
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
1470
1470
|
const snapshot = luvio.storeLookup({
|
|
1471
1471
|
recordId: key,
|
|
1472
1472
|
node: select$B(),
|
|
@@ -1555,23 +1555,23 @@ const createContextAttributeAdapterFactory = (luvio) => {
|
|
|
1555
1555
|
};
|
|
1556
1556
|
};
|
|
1557
1557
|
|
|
1558
|
-
function keyBuilder$
|
|
1559
|
-
return keyBuilder$
|
|
1558
|
+
function keyBuilder$C(luvio, params) {
|
|
1559
|
+
return keyBuilder$D(luvio, {
|
|
1560
1560
|
id: params.urlParams.contextAttributeId
|
|
1561
1561
|
});
|
|
1562
1562
|
}
|
|
1563
1563
|
function getResponseCacheKeys$y(luvio, resourceParams) {
|
|
1564
|
-
const key = keyBuilder$
|
|
1564
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
1565
1565
|
const cacheKeyMap = new StoreKeyMap();
|
|
1566
1566
|
cacheKeyMap.set(key, {
|
|
1567
1567
|
namespace: keyPrefix,
|
|
1568
|
-
representationName: RepresentationType$
|
|
1568
|
+
representationName: RepresentationType$a,
|
|
1569
1569
|
mergeable: false
|
|
1570
1570
|
});
|
|
1571
1571
|
return cacheKeyMap;
|
|
1572
1572
|
}
|
|
1573
1573
|
function evictSuccess$7(luvio, resourceParams) {
|
|
1574
|
-
const key = keyBuilder$
|
|
1574
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
1575
1575
|
luvio.storeEvict(key);
|
|
1576
1576
|
}
|
|
1577
1577
|
function createResourceRequest$y(config) {
|
|
@@ -1653,18 +1653,18 @@ const deleteContextAttributeAdapterFactory = (luvio) => {
|
|
|
1653
1653
|
function select$A(luvio, params) {
|
|
1654
1654
|
return select$C();
|
|
1655
1655
|
}
|
|
1656
|
-
function keyBuilder$
|
|
1657
|
-
return keyBuilder$
|
|
1656
|
+
function keyBuilder$B(luvio, params) {
|
|
1657
|
+
return keyBuilder$D(luvio, {
|
|
1658
1658
|
id: params.urlParams.contextAttributeId
|
|
1659
1659
|
});
|
|
1660
1660
|
}
|
|
1661
1661
|
function getResponseCacheKeys$x(luvio, resourceParams, response) {
|
|
1662
|
-
return getTypeCacheKeys$
|
|
1662
|
+
return getTypeCacheKeys$a(luvio, response);
|
|
1663
1663
|
}
|
|
1664
1664
|
function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
|
|
1665
1665
|
const { body } = response;
|
|
1666
|
-
const key = keyBuilder$
|
|
1667
|
-
luvio.storeIngest(key, ingest$
|
|
1666
|
+
const key = keyBuilder$B(luvio, resourceParams);
|
|
1667
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
1668
1668
|
const snapshot = luvio.storeLookup({
|
|
1669
1669
|
recordId: key,
|
|
1670
1670
|
node: select$A(),
|
|
@@ -1678,13 +1678,13 @@ function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1678
1678
|
return snapshot;
|
|
1679
1679
|
}
|
|
1680
1680
|
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
1681
|
-
const key = keyBuilder$
|
|
1681
|
+
const key = keyBuilder$B(luvio, params);
|
|
1682
1682
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1683
1683
|
const storeMetadataParams = {
|
|
1684
|
-
ttl: TTL$
|
|
1684
|
+
ttl: TTL$a,
|
|
1685
1685
|
namespace: keyPrefix,
|
|
1686
1686
|
version: VERSION$a,
|
|
1687
|
-
representationName: RepresentationType$
|
|
1687
|
+
representationName: RepresentationType$a
|
|
1688
1688
|
};
|
|
1689
1689
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1690
1690
|
return errorSnapshot;
|
|
@@ -1718,9 +1718,9 @@ function createResourceParams$x(config) {
|
|
|
1718
1718
|
};
|
|
1719
1719
|
return resourceParams;
|
|
1720
1720
|
}
|
|
1721
|
-
function keyBuilder$
|
|
1721
|
+
function keyBuilder$A(luvio, config) {
|
|
1722
1722
|
const resourceParams = createResourceParams$x(config);
|
|
1723
|
-
return keyBuilder$
|
|
1723
|
+
return keyBuilder$B(luvio, resourceParams);
|
|
1724
1724
|
}
|
|
1725
1725
|
function typeCheckConfig$x(untrustedConfig) {
|
|
1726
1726
|
const config = {};
|
|
@@ -1791,7 +1791,7 @@ function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext
|
|
|
1791
1791
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
1792
1792
|
const { luvio, config } = context;
|
|
1793
1793
|
const selector = {
|
|
1794
|
-
recordId: keyBuilder$
|
|
1794
|
+
recordId: keyBuilder$A(luvio, config),
|
|
1795
1795
|
node: adapterFragment$a(luvio, config),
|
|
1796
1796
|
variables: {},
|
|
1797
1797
|
};
|
|
@@ -1815,12 +1815,12 @@ function select$z(luvio, params) {
|
|
|
1815
1815
|
return select$C();
|
|
1816
1816
|
}
|
|
1817
1817
|
function getResponseCacheKeys$w(luvio, resourceParams, response) {
|
|
1818
|
-
return getTypeCacheKeys$
|
|
1818
|
+
return getTypeCacheKeys$a(luvio, response);
|
|
1819
1819
|
}
|
|
1820
1820
|
function ingestSuccess$p(luvio, resourceParams, response) {
|
|
1821
1821
|
const { body } = response;
|
|
1822
|
-
const key = keyBuilderFromType$
|
|
1823
|
-
luvio.storeIngest(key, ingest$
|
|
1822
|
+
const key = keyBuilderFromType$9(luvio, body);
|
|
1823
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
1824
1824
|
const snapshot = luvio.storeLookup({
|
|
1825
1825
|
recordId: key,
|
|
1826
1826
|
node: select$z(),
|
|
@@ -1916,7 +1916,7 @@ const updateContextAttributeAdapterFactory = (luvio) => {
|
|
|
1916
1916
|
};
|
|
1917
1917
|
};
|
|
1918
1918
|
|
|
1919
|
-
const TTL$
|
|
1919
|
+
const TTL$9 = 10000;
|
|
1920
1920
|
const VERSION$9 = "5d7bd042347d78b8c394239649db8f46";
|
|
1921
1921
|
function validate$h(obj, path = 'ContextAttributeTagListRepresentation') {
|
|
1922
1922
|
const v_error = (() => {
|
|
@@ -1950,8 +1950,8 @@ function validate$h(obj, path = 'ContextAttributeTagListRepresentation') {
|
|
|
1950
1950
|
})();
|
|
1951
1951
|
return v_error === undefined ? null : v_error;
|
|
1952
1952
|
}
|
|
1953
|
-
const RepresentationType$
|
|
1954
|
-
function normalize$
|
|
1953
|
+
const RepresentationType$9 = 'ContextAttributeTagListRepresentation';
|
|
1954
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
1955
1955
|
return input;
|
|
1956
1956
|
}
|
|
1957
1957
|
const select$y = function ContextAttributeTagListRepresentationSelect() {
|
|
@@ -1979,7 +1979,7 @@ function deepFreeze$6(input) {
|
|
|
1979
1979
|
}
|
|
1980
1980
|
ObjectFreeze(input);
|
|
1981
1981
|
}
|
|
1982
|
-
const ingest$
|
|
1982
|
+
const ingest$9 = function ContextAttributeTagListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1983
1983
|
if (process.env.NODE_ENV !== 'production') {
|
|
1984
1984
|
const validateError = validate$h(input);
|
|
1985
1985
|
if (validateError !== null) {
|
|
@@ -1988,8 +1988,8 @@ const ingest$8 = function ContextAttributeTagListRepresentationIngest(input, pat
|
|
|
1988
1988
|
}
|
|
1989
1989
|
const key = path.fullPath;
|
|
1990
1990
|
const existingRecord = store.readEntry(key);
|
|
1991
|
-
const ttlToUse = TTL$
|
|
1992
|
-
let incomingRecord = normalize$
|
|
1991
|
+
const ttlToUse = TTL$9;
|
|
1992
|
+
let incomingRecord = normalize$9(input, store.readEntry(key), {
|
|
1993
1993
|
fullPath: key,
|
|
1994
1994
|
parent: path.parent,
|
|
1995
1995
|
propertyName: path.propertyName,
|
|
@@ -2004,19 +2004,19 @@ const ingest$8 = function ContextAttributeTagListRepresentationIngest(input, pat
|
|
|
2004
2004
|
ttl: ttlToUse,
|
|
2005
2005
|
namespace: "IndustriesContext",
|
|
2006
2006
|
version: VERSION$9,
|
|
2007
|
-
representationName: RepresentationType$
|
|
2007
|
+
representationName: RepresentationType$9,
|
|
2008
2008
|
};
|
|
2009
2009
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
2010
2010
|
}
|
|
2011
2011
|
return createLink(key);
|
|
2012
2012
|
};
|
|
2013
|
-
function getTypeCacheKeys$
|
|
2013
|
+
function getTypeCacheKeys$9(luvio, input, fullPathFactory) {
|
|
2014
2014
|
const rootKeySet = new StoreKeyMap();
|
|
2015
2015
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2016
2016
|
const rootKey = fullPathFactory();
|
|
2017
2017
|
rootKeySet.set(rootKey, {
|
|
2018
2018
|
namespace: keyPrefix,
|
|
2019
|
-
representationName: RepresentationType$
|
|
2019
|
+
representationName: RepresentationType$9,
|
|
2020
2020
|
mergeable: false
|
|
2021
2021
|
});
|
|
2022
2022
|
return rootKeySet;
|
|
@@ -2025,16 +2025,16 @@ function getTypeCacheKeys$8(luvio, input, fullPathFactory) {
|
|
|
2025
2025
|
function select$x(luvio, params) {
|
|
2026
2026
|
return select$y();
|
|
2027
2027
|
}
|
|
2028
|
-
function keyBuilder$
|
|
2028
|
+
function keyBuilder$z(luvio, params) {
|
|
2029
2029
|
return keyPrefix + '::ContextAttributeTagListRepresentation:(' + 'contextAttributeId:' + params.urlParams.contextAttributeId + ')';
|
|
2030
2030
|
}
|
|
2031
2031
|
function getResponseCacheKeys$v(luvio, resourceParams, response) {
|
|
2032
|
-
return getTypeCacheKeys$
|
|
2032
|
+
return getTypeCacheKeys$9(luvio, response, () => keyBuilder$z(luvio, resourceParams));
|
|
2033
2033
|
}
|
|
2034
2034
|
function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
2035
2035
|
const { body } = response;
|
|
2036
|
-
const key = keyBuilder$
|
|
2037
|
-
luvio.storeIngest(key, ingest$
|
|
2036
|
+
const key = keyBuilder$z(luvio, resourceParams);
|
|
2037
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
2038
2038
|
const snapshot = luvio.storeLookup({
|
|
2039
2039
|
recordId: key,
|
|
2040
2040
|
node: select$x(),
|
|
@@ -2048,13 +2048,13 @@ function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2048
2048
|
return snapshot;
|
|
2049
2049
|
}
|
|
2050
2050
|
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
2051
|
-
const key = keyBuilder$
|
|
2051
|
+
const key = keyBuilder$z(luvio, params);
|
|
2052
2052
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2053
2053
|
const storeMetadataParams = {
|
|
2054
|
-
ttl: TTL$
|
|
2054
|
+
ttl: TTL$9,
|
|
2055
2055
|
namespace: keyPrefix,
|
|
2056
2056
|
version: VERSION$9,
|
|
2057
|
-
representationName: RepresentationType$
|
|
2057
|
+
representationName: RepresentationType$9
|
|
2058
2058
|
};
|
|
2059
2059
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2060
2060
|
return errorSnapshot;
|
|
@@ -2088,9 +2088,9 @@ function createResourceParams$v(config) {
|
|
|
2088
2088
|
};
|
|
2089
2089
|
return resourceParams;
|
|
2090
2090
|
}
|
|
2091
|
-
function keyBuilder$
|
|
2091
|
+
function keyBuilder$y(luvio, config) {
|
|
2092
2092
|
const resourceParams = createResourceParams$v(config);
|
|
2093
|
-
return keyBuilder$
|
|
2093
|
+
return keyBuilder$z(luvio, resourceParams);
|
|
2094
2094
|
}
|
|
2095
2095
|
function typeCheckConfig$v(untrustedConfig) {
|
|
2096
2096
|
const config = {};
|
|
@@ -2161,7 +2161,7 @@ function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext
|
|
|
2161
2161
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
2162
2162
|
const { luvio, config } = context;
|
|
2163
2163
|
const selector = {
|
|
2164
|
-
recordId: keyBuilder$
|
|
2164
|
+
recordId: keyBuilder$y(luvio, config),
|
|
2165
2165
|
node: adapterFragment$9(luvio, config),
|
|
2166
2166
|
variables: {},
|
|
2167
2167
|
};
|
|
@@ -2213,12 +2213,12 @@ function select$w(luvio, params) {
|
|
|
2213
2213
|
return select$D();
|
|
2214
2214
|
}
|
|
2215
2215
|
function getResponseCacheKeys$u(luvio, resourceParams, response) {
|
|
2216
|
-
return getTypeCacheKeys$
|
|
2216
|
+
return getTypeCacheKeys$b(luvio, response);
|
|
2217
2217
|
}
|
|
2218
2218
|
function ingestSuccess$n(luvio, resourceParams, response) {
|
|
2219
2219
|
const { body } = response;
|
|
2220
|
-
const key = keyBuilderFromType$
|
|
2221
|
-
luvio.storeIngest(key, ingest$
|
|
2220
|
+
const key = keyBuilderFromType$a(luvio, body);
|
|
2221
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
2222
2222
|
const snapshot = luvio.storeLookup({
|
|
2223
2223
|
recordId: key,
|
|
2224
2224
|
node: select$w(),
|
|
@@ -2307,23 +2307,23 @@ const createContextAttributeTagAdapterFactory = (luvio) => {
|
|
|
2307
2307
|
};
|
|
2308
2308
|
};
|
|
2309
2309
|
|
|
2310
|
-
function keyBuilder$
|
|
2311
|
-
return keyBuilder$
|
|
2310
|
+
function keyBuilder$x(luvio, params) {
|
|
2311
|
+
return keyBuilder$E(luvio, {
|
|
2312
2312
|
id: params.urlParams.contextAttributeTagId
|
|
2313
2313
|
});
|
|
2314
2314
|
}
|
|
2315
2315
|
function getResponseCacheKeys$t(luvio, resourceParams) {
|
|
2316
|
-
const key = keyBuilder$
|
|
2316
|
+
const key = keyBuilder$x(luvio, resourceParams);
|
|
2317
2317
|
const cacheKeyMap = new StoreKeyMap();
|
|
2318
2318
|
cacheKeyMap.set(key, {
|
|
2319
2319
|
namespace: keyPrefix,
|
|
2320
|
-
representationName: RepresentationType$
|
|
2320
|
+
representationName: RepresentationType$b,
|
|
2321
2321
|
mergeable: false
|
|
2322
2322
|
});
|
|
2323
2323
|
return cacheKeyMap;
|
|
2324
2324
|
}
|
|
2325
2325
|
function evictSuccess$6(luvio, resourceParams) {
|
|
2326
|
-
const key = keyBuilder$
|
|
2326
|
+
const key = keyBuilder$x(luvio, resourceParams);
|
|
2327
2327
|
luvio.storeEvict(key);
|
|
2328
2328
|
}
|
|
2329
2329
|
function createResourceRequest$t(config) {
|
|
@@ -2405,18 +2405,18 @@ const deleteContextAttributeTagAdapterFactory = (luvio) => {
|
|
|
2405
2405
|
function select$v(luvio, params) {
|
|
2406
2406
|
return select$D();
|
|
2407
2407
|
}
|
|
2408
|
-
function keyBuilder$
|
|
2409
|
-
return keyBuilder$
|
|
2408
|
+
function keyBuilder$w(luvio, params) {
|
|
2409
|
+
return keyBuilder$E(luvio, {
|
|
2410
2410
|
id: params.urlParams.contextAttributeTagId
|
|
2411
2411
|
});
|
|
2412
2412
|
}
|
|
2413
2413
|
function getResponseCacheKeys$s(luvio, resourceParams, response) {
|
|
2414
|
-
return getTypeCacheKeys$
|
|
2414
|
+
return getTypeCacheKeys$b(luvio, response);
|
|
2415
2415
|
}
|
|
2416
2416
|
function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
|
|
2417
2417
|
const { body } = response;
|
|
2418
|
-
const key = keyBuilder$
|
|
2419
|
-
luvio.storeIngest(key, ingest$
|
|
2418
|
+
const key = keyBuilder$w(luvio, resourceParams);
|
|
2419
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
2420
2420
|
const snapshot = luvio.storeLookup({
|
|
2421
2421
|
recordId: key,
|
|
2422
2422
|
node: select$v(),
|
|
@@ -2430,13 +2430,13 @@ function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2430
2430
|
return snapshot;
|
|
2431
2431
|
}
|
|
2432
2432
|
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
2433
|
-
const key = keyBuilder$
|
|
2433
|
+
const key = keyBuilder$w(luvio, params);
|
|
2434
2434
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2435
2435
|
const storeMetadataParams = {
|
|
2436
|
-
ttl: TTL$
|
|
2436
|
+
ttl: TTL$b,
|
|
2437
2437
|
namespace: keyPrefix,
|
|
2438
2438
|
version: VERSION$b,
|
|
2439
|
-
representationName: RepresentationType$
|
|
2439
|
+
representationName: RepresentationType$b
|
|
2440
2440
|
};
|
|
2441
2441
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2442
2442
|
return errorSnapshot;
|
|
@@ -2470,9 +2470,9 @@ function createResourceParams$s(config) {
|
|
|
2470
2470
|
};
|
|
2471
2471
|
return resourceParams;
|
|
2472
2472
|
}
|
|
2473
|
-
function keyBuilder$
|
|
2473
|
+
function keyBuilder$v(luvio, config) {
|
|
2474
2474
|
const resourceParams = createResourceParams$s(config);
|
|
2475
|
-
return keyBuilder$
|
|
2475
|
+
return keyBuilder$w(luvio, resourceParams);
|
|
2476
2476
|
}
|
|
2477
2477
|
function typeCheckConfig$s(untrustedConfig) {
|
|
2478
2478
|
const config = {};
|
|
@@ -2543,7 +2543,7 @@ function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext
|
|
|
2543
2543
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
2544
2544
|
const { luvio, config } = context;
|
|
2545
2545
|
const selector = {
|
|
2546
|
-
recordId: keyBuilder$
|
|
2546
|
+
recordId: keyBuilder$v(luvio, config),
|
|
2547
2547
|
node: adapterFragment$8(luvio, config),
|
|
2548
2548
|
variables: {},
|
|
2549
2549
|
};
|
|
@@ -2567,12 +2567,12 @@ function select$u(luvio, params) {
|
|
|
2567
2567
|
return select$D();
|
|
2568
2568
|
}
|
|
2569
2569
|
function getResponseCacheKeys$r(luvio, resourceParams, response) {
|
|
2570
|
-
return getTypeCacheKeys$
|
|
2570
|
+
return getTypeCacheKeys$b(luvio, response);
|
|
2571
2571
|
}
|
|
2572
2572
|
function ingestSuccess$l(luvio, resourceParams, response) {
|
|
2573
2573
|
const { body } = response;
|
|
2574
|
-
const key = keyBuilderFromType$
|
|
2575
|
-
luvio.storeIngest(key, ingest$
|
|
2574
|
+
const key = keyBuilderFromType$a(luvio, body);
|
|
2575
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
2576
2576
|
const snapshot = luvio.storeLookup({
|
|
2577
2577
|
recordId: key,
|
|
2578
2578
|
node: select$u(),
|
|
@@ -2671,18 +2671,18 @@ const updateContextAttributeTagAdapterFactory = (luvio) => {
|
|
|
2671
2671
|
function select$t(luvio, params) {
|
|
2672
2672
|
return select$H();
|
|
2673
2673
|
}
|
|
2674
|
-
function keyBuilder$
|
|
2675
|
-
return keyBuilder$
|
|
2674
|
+
function keyBuilder$u(luvio, params) {
|
|
2675
|
+
return keyBuilder$H(luvio, {
|
|
2676
2676
|
id: params.urlParams.contextDefinitionId
|
|
2677
2677
|
});
|
|
2678
2678
|
}
|
|
2679
2679
|
function getResponseCacheKeys$q(luvio, resourceParams, response) {
|
|
2680
|
-
return getTypeCacheKeys$
|
|
2680
|
+
return getTypeCacheKeys$d(luvio, response);
|
|
2681
2681
|
}
|
|
2682
2682
|
function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
2683
2683
|
const { body } = response;
|
|
2684
|
-
const key = keyBuilder$
|
|
2685
|
-
luvio.storeIngest(key, ingest$
|
|
2684
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
2685
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
2686
2686
|
const snapshot = luvio.storeLookup({
|
|
2687
2687
|
recordId: key,
|
|
2688
2688
|
node: select$t(),
|
|
@@ -2696,13 +2696,13 @@ function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2696
2696
|
return snapshot;
|
|
2697
2697
|
}
|
|
2698
2698
|
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
2699
|
-
const key = keyBuilder$
|
|
2699
|
+
const key = keyBuilder$u(luvio, params);
|
|
2700
2700
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2701
2701
|
const storeMetadataParams = {
|
|
2702
|
-
ttl: TTL$
|
|
2702
|
+
ttl: TTL$d,
|
|
2703
2703
|
namespace: keyPrefix,
|
|
2704
2704
|
version: VERSION$d,
|
|
2705
|
-
representationName: RepresentationType$
|
|
2705
|
+
representationName: RepresentationType$d
|
|
2706
2706
|
};
|
|
2707
2707
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2708
2708
|
return errorSnapshot;
|
|
@@ -2736,9 +2736,9 @@ function createResourceParams$q(config) {
|
|
|
2736
2736
|
};
|
|
2737
2737
|
return resourceParams;
|
|
2738
2738
|
}
|
|
2739
|
-
function keyBuilder$
|
|
2739
|
+
function keyBuilder$t(luvio, config) {
|
|
2740
2740
|
const resourceParams = createResourceParams$q(config);
|
|
2741
|
-
return keyBuilder$
|
|
2741
|
+
return keyBuilder$u(luvio, resourceParams);
|
|
2742
2742
|
}
|
|
2743
2743
|
function typeCheckConfig$q(untrustedConfig) {
|
|
2744
2744
|
const config = {};
|
|
@@ -2809,7 +2809,7 @@ function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext
|
|
|
2809
2809
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
2810
2810
|
const { luvio, config } = context;
|
|
2811
2811
|
const selector = {
|
|
2812
|
-
recordId: keyBuilder$
|
|
2812
|
+
recordId: keyBuilder$t(luvio, config),
|
|
2813
2813
|
node: adapterFragment$7(luvio, config),
|
|
2814
2814
|
variables: {},
|
|
2815
2815
|
};
|
|
@@ -2904,7 +2904,7 @@ function validate$f(obj, path = 'ContextNodeInputRepresentation') {
|
|
|
2904
2904
|
return v_error === undefined ? null : v_error;
|
|
2905
2905
|
}
|
|
2906
2906
|
|
|
2907
|
-
const TTL$
|
|
2907
|
+
const TTL$8 = 30000;
|
|
2908
2908
|
const VERSION$8 = "cf75cb95b2ed381500c696acf0bf903a";
|
|
2909
2909
|
function validate$e(obj, path = 'ContextNodeRepresentation') {
|
|
2910
2910
|
const v_error = (() => {
|
|
@@ -3001,17 +3001,17 @@ function validate$e(obj, path = 'ContextNodeRepresentation') {
|
|
|
3001
3001
|
})();
|
|
3002
3002
|
return v_error === undefined ? null : v_error;
|
|
3003
3003
|
}
|
|
3004
|
-
const RepresentationType$
|
|
3005
|
-
function keyBuilder$
|
|
3006
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3004
|
+
const RepresentationType$8 = 'ContextNodeRepresentation';
|
|
3005
|
+
function keyBuilder$s(luvio, config) {
|
|
3006
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
|
|
3007
3007
|
}
|
|
3008
|
-
function keyBuilderFromType$
|
|
3008
|
+
function keyBuilderFromType$8(luvio, object) {
|
|
3009
3009
|
const keyParams = {
|
|
3010
3010
|
id: object.contextNodeId
|
|
3011
3011
|
};
|
|
3012
|
-
return keyBuilder$
|
|
3012
|
+
return keyBuilder$s(luvio, keyParams);
|
|
3013
3013
|
}
|
|
3014
|
-
function normalize$
|
|
3014
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
3015
3015
|
return input;
|
|
3016
3016
|
}
|
|
3017
3017
|
const select$s = function ContextNodeRepresentationSelect() {
|
|
@@ -3055,17 +3055,17 @@ function deepFreeze$5(input) {
|
|
|
3055
3055
|
}
|
|
3056
3056
|
ObjectFreeze(input);
|
|
3057
3057
|
}
|
|
3058
|
-
const ingest$
|
|
3058
|
+
const ingest$8 = function ContextNodeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3059
3059
|
if (process.env.NODE_ENV !== 'production') {
|
|
3060
3060
|
const validateError = validate$e(input);
|
|
3061
3061
|
if (validateError !== null) {
|
|
3062
3062
|
throw validateError;
|
|
3063
3063
|
}
|
|
3064
3064
|
}
|
|
3065
|
-
const key = keyBuilderFromType$
|
|
3065
|
+
const key = keyBuilderFromType$8(luvio, input);
|
|
3066
3066
|
const existingRecord = store.readEntry(key);
|
|
3067
|
-
const ttlToUse = TTL$
|
|
3068
|
-
let incomingRecord = normalize$
|
|
3067
|
+
const ttlToUse = TTL$8;
|
|
3068
|
+
let incomingRecord = normalize$8(input, store.readEntry(key), {
|
|
3069
3069
|
fullPath: key,
|
|
3070
3070
|
parent: path.parent,
|
|
3071
3071
|
propertyName: path.propertyName,
|
|
@@ -3080,19 +3080,19 @@ const ingest$7 = function ContextNodeRepresentationIngest(input, path, luvio, st
|
|
|
3080
3080
|
ttl: ttlToUse,
|
|
3081
3081
|
namespace: "IndustriesContext",
|
|
3082
3082
|
version: VERSION$8,
|
|
3083
|
-
representationName: RepresentationType$
|
|
3083
|
+
representationName: RepresentationType$8,
|
|
3084
3084
|
};
|
|
3085
3085
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
3086
3086
|
}
|
|
3087
3087
|
return createLink(key);
|
|
3088
3088
|
};
|
|
3089
|
-
function getTypeCacheKeys$
|
|
3089
|
+
function getTypeCacheKeys$8(luvio, input, fullPathFactory) {
|
|
3090
3090
|
const rootKeySet = new StoreKeyMap();
|
|
3091
3091
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3092
|
-
const rootKey = keyBuilderFromType$
|
|
3092
|
+
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
3093
3093
|
rootKeySet.set(rootKey, {
|
|
3094
3094
|
namespace: keyPrefix,
|
|
3095
|
-
representationName: RepresentationType$
|
|
3095
|
+
representationName: RepresentationType$8,
|
|
3096
3096
|
mergeable: false
|
|
3097
3097
|
});
|
|
3098
3098
|
return rootKeySet;
|
|
@@ -3102,12 +3102,12 @@ function select$r(luvio, params) {
|
|
|
3102
3102
|
return select$s();
|
|
3103
3103
|
}
|
|
3104
3104
|
function getResponseCacheKeys$p(luvio, resourceParams, response) {
|
|
3105
|
-
return getTypeCacheKeys$
|
|
3105
|
+
return getTypeCacheKeys$8(luvio, response);
|
|
3106
3106
|
}
|
|
3107
3107
|
function ingestSuccess$j(luvio, resourceParams, response) {
|
|
3108
3108
|
const { body } = response;
|
|
3109
|
-
const key = keyBuilderFromType$
|
|
3110
|
-
luvio.storeIngest(key, ingest$
|
|
3109
|
+
const key = keyBuilderFromType$8(luvio, body);
|
|
3110
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
3111
3111
|
const snapshot = luvio.storeLookup({
|
|
3112
3112
|
recordId: key,
|
|
3113
3113
|
node: select$r(),
|
|
@@ -3196,23 +3196,23 @@ const createContextNodeAdapterFactory = (luvio) => {
|
|
|
3196
3196
|
};
|
|
3197
3197
|
};
|
|
3198
3198
|
|
|
3199
|
-
function keyBuilder$
|
|
3200
|
-
return keyBuilder$
|
|
3199
|
+
function keyBuilder$r(luvio, params) {
|
|
3200
|
+
return keyBuilder$s(luvio, {
|
|
3201
3201
|
id: params.urlParams.contextNodeId
|
|
3202
3202
|
});
|
|
3203
3203
|
}
|
|
3204
3204
|
function getResponseCacheKeys$o(luvio, resourceParams) {
|
|
3205
|
-
const key = keyBuilder$
|
|
3205
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
3206
3206
|
const cacheKeyMap = new StoreKeyMap();
|
|
3207
3207
|
cacheKeyMap.set(key, {
|
|
3208
3208
|
namespace: keyPrefix,
|
|
3209
|
-
representationName: RepresentationType$
|
|
3209
|
+
representationName: RepresentationType$8,
|
|
3210
3210
|
mergeable: false
|
|
3211
3211
|
});
|
|
3212
3212
|
return cacheKeyMap;
|
|
3213
3213
|
}
|
|
3214
3214
|
function evictSuccess$5(luvio, resourceParams) {
|
|
3215
|
-
const key = keyBuilder$
|
|
3215
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
3216
3216
|
luvio.storeEvict(key);
|
|
3217
3217
|
}
|
|
3218
3218
|
function createResourceRequest$o(config) {
|
|
@@ -3294,18 +3294,18 @@ const deleteContextNodeAdapterFactory = (luvio) => {
|
|
|
3294
3294
|
function select$q(luvio, params) {
|
|
3295
3295
|
return select$s();
|
|
3296
3296
|
}
|
|
3297
|
-
function keyBuilder$
|
|
3298
|
-
return keyBuilder$
|
|
3297
|
+
function keyBuilder$q(luvio, params) {
|
|
3298
|
+
return keyBuilder$s(luvio, {
|
|
3299
3299
|
id: params.urlParams.contextNodeId
|
|
3300
3300
|
});
|
|
3301
3301
|
}
|
|
3302
3302
|
function getResponseCacheKeys$n(luvio, resourceParams, response) {
|
|
3303
|
-
return getTypeCacheKeys$
|
|
3303
|
+
return getTypeCacheKeys$8(luvio, response);
|
|
3304
3304
|
}
|
|
3305
3305
|
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
3306
3306
|
const { body } = response;
|
|
3307
|
-
const key = keyBuilder$
|
|
3308
|
-
luvio.storeIngest(key, ingest$
|
|
3307
|
+
const key = keyBuilder$q(luvio, resourceParams);
|
|
3308
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
3309
3309
|
const snapshot = luvio.storeLookup({
|
|
3310
3310
|
recordId: key,
|
|
3311
3311
|
node: select$q(),
|
|
@@ -3319,13 +3319,13 @@ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3319
3319
|
return snapshot;
|
|
3320
3320
|
}
|
|
3321
3321
|
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
3322
|
-
const key = keyBuilder$
|
|
3322
|
+
const key = keyBuilder$q(luvio, params);
|
|
3323
3323
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3324
3324
|
const storeMetadataParams = {
|
|
3325
|
-
ttl: TTL$
|
|
3325
|
+
ttl: TTL$8,
|
|
3326
3326
|
namespace: keyPrefix,
|
|
3327
3327
|
version: VERSION$8,
|
|
3328
|
-
representationName: RepresentationType$
|
|
3328
|
+
representationName: RepresentationType$8
|
|
3329
3329
|
};
|
|
3330
3330
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3331
3331
|
return errorSnapshot;
|
|
@@ -3359,9 +3359,9 @@ function createResourceParams$n(config) {
|
|
|
3359
3359
|
};
|
|
3360
3360
|
return resourceParams;
|
|
3361
3361
|
}
|
|
3362
|
-
function keyBuilder$
|
|
3362
|
+
function keyBuilder$p(luvio, config) {
|
|
3363
3363
|
const resourceParams = createResourceParams$n(config);
|
|
3364
|
-
return keyBuilder$
|
|
3364
|
+
return keyBuilder$q(luvio, resourceParams);
|
|
3365
3365
|
}
|
|
3366
3366
|
function typeCheckConfig$n(untrustedConfig) {
|
|
3367
3367
|
const config = {};
|
|
@@ -3432,7 +3432,7 @@ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext
|
|
|
3432
3432
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
3433
3433
|
const { luvio, config } = context;
|
|
3434
3434
|
const selector = {
|
|
3435
|
-
recordId: keyBuilder$
|
|
3435
|
+
recordId: keyBuilder$p(luvio, config),
|
|
3436
3436
|
node: adapterFragment$6(luvio, config),
|
|
3437
3437
|
variables: {},
|
|
3438
3438
|
};
|
|
@@ -3456,12 +3456,12 @@ function select$p(luvio, params) {
|
|
|
3456
3456
|
return select$s();
|
|
3457
3457
|
}
|
|
3458
3458
|
function getResponseCacheKeys$m(luvio, resourceParams, response) {
|
|
3459
|
-
return getTypeCacheKeys$
|
|
3459
|
+
return getTypeCacheKeys$8(luvio, response);
|
|
3460
3460
|
}
|
|
3461
3461
|
function ingestSuccess$h(luvio, resourceParams, response) {
|
|
3462
3462
|
const { body } = response;
|
|
3463
|
-
const key = keyBuilderFromType$
|
|
3464
|
-
luvio.storeIngest(key, ingest$
|
|
3463
|
+
const key = keyBuilderFromType$8(luvio, body);
|
|
3464
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
3465
3465
|
const snapshot = luvio.storeLookup({
|
|
3466
3466
|
recordId: key,
|
|
3467
3467
|
node: select$p(),
|
|
@@ -3578,7 +3578,7 @@ function validate$d(obj, path = 'ContextAttributeListInputRepresentation') {
|
|
|
3578
3578
|
return v_error === undefined ? null : v_error;
|
|
3579
3579
|
}
|
|
3580
3580
|
|
|
3581
|
-
const TTL$
|
|
3581
|
+
const TTL$7 = 10000;
|
|
3582
3582
|
const VERSION$7 = "6bbfbaed88b7bd009de04a1002ab7022";
|
|
3583
3583
|
function validate$c(obj, path = 'ContextAttributeListRepresentation') {
|
|
3584
3584
|
const v_error = (() => {
|
|
@@ -3612,23 +3612,23 @@ function validate$c(obj, path = 'ContextAttributeListRepresentation') {
|
|
|
3612
3612
|
})();
|
|
3613
3613
|
return v_error === undefined ? null : v_error;
|
|
3614
3614
|
}
|
|
3615
|
-
const RepresentationType$
|
|
3616
|
-
function keyBuilder$
|
|
3617
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3615
|
+
const RepresentationType$7 = 'ContextAttributeListRepresentation';
|
|
3616
|
+
function keyBuilder$o(luvio, config) {
|
|
3617
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
|
|
3618
3618
|
}
|
|
3619
|
-
function keyBuilderFromType$
|
|
3619
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
3620
3620
|
const keyParams = {
|
|
3621
3621
|
id: object.contextNodeId
|
|
3622
3622
|
};
|
|
3623
|
-
return keyBuilder$
|
|
3623
|
+
return keyBuilder$o(luvio, keyParams);
|
|
3624
3624
|
}
|
|
3625
|
-
function normalize$
|
|
3625
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
3626
3626
|
const input_attributes = input.attributes;
|
|
3627
3627
|
const input_attributes_id = path.fullPath + '__attributes';
|
|
3628
3628
|
for (let i = 0; i < input_attributes.length; i++) {
|
|
3629
3629
|
const input_attributes_item = input_attributes[i];
|
|
3630
3630
|
let input_attributes_item_id = input_attributes_id + '__' + i;
|
|
3631
|
-
input_attributes[i] = ingest$
|
|
3631
|
+
input_attributes[i] = ingest$a(input_attributes_item, {
|
|
3632
3632
|
fullPath: input_attributes_item_id,
|
|
3633
3633
|
propertyName: i,
|
|
3634
3634
|
parent: {
|
|
@@ -3696,17 +3696,17 @@ function equals$7(existing, incoming) {
|
|
|
3696
3696
|
}
|
|
3697
3697
|
return true;
|
|
3698
3698
|
}
|
|
3699
|
-
const ingest$
|
|
3699
|
+
const ingest$7 = function ContextAttributeListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3700
3700
|
if (process.env.NODE_ENV !== 'production') {
|
|
3701
3701
|
const validateError = validate$c(input);
|
|
3702
3702
|
if (validateError !== null) {
|
|
3703
3703
|
throw validateError;
|
|
3704
3704
|
}
|
|
3705
3705
|
}
|
|
3706
|
-
const key = keyBuilderFromType$
|
|
3706
|
+
const key = keyBuilderFromType$7(luvio, input);
|
|
3707
3707
|
const existingRecord = store.readEntry(key);
|
|
3708
|
-
const ttlToUse = TTL$
|
|
3709
|
-
let incomingRecord = normalize$
|
|
3708
|
+
const ttlToUse = TTL$7;
|
|
3709
|
+
let incomingRecord = normalize$7(input, store.readEntry(key), {
|
|
3710
3710
|
fullPath: key,
|
|
3711
3711
|
parent: path.parent,
|
|
3712
3712
|
propertyName: path.propertyName,
|
|
@@ -3720,24 +3720,24 @@ const ingest$6 = function ContextAttributeListRepresentationIngest(input, path,
|
|
|
3720
3720
|
ttl: ttlToUse,
|
|
3721
3721
|
namespace: "IndustriesContext",
|
|
3722
3722
|
version: VERSION$7,
|
|
3723
|
-
representationName: RepresentationType$
|
|
3723
|
+
representationName: RepresentationType$7,
|
|
3724
3724
|
};
|
|
3725
3725
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
3726
3726
|
}
|
|
3727
3727
|
return createLink(key);
|
|
3728
3728
|
};
|
|
3729
|
-
function getTypeCacheKeys$
|
|
3729
|
+
function getTypeCacheKeys$7(luvio, input, fullPathFactory) {
|
|
3730
3730
|
const rootKeySet = new StoreKeyMap();
|
|
3731
3731
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3732
|
-
const rootKey = keyBuilderFromType$
|
|
3732
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
3733
3733
|
rootKeySet.set(rootKey, {
|
|
3734
3734
|
namespace: keyPrefix,
|
|
3735
|
-
representationName: RepresentationType$
|
|
3735
|
+
representationName: RepresentationType$7,
|
|
3736
3736
|
mergeable: false
|
|
3737
3737
|
});
|
|
3738
3738
|
const input_attributes_length = input.attributes.length;
|
|
3739
3739
|
for (let i = 0; i < input_attributes_length; i++) {
|
|
3740
|
-
rootKeySet.merge(getTypeCacheKeys$
|
|
3740
|
+
rootKeySet.merge(getTypeCacheKeys$a(luvio, input.attributes[i]));
|
|
3741
3741
|
}
|
|
3742
3742
|
return rootKeySet;
|
|
3743
3743
|
}
|
|
@@ -3746,12 +3746,12 @@ function select$n(luvio, params) {
|
|
|
3746
3746
|
return select$o();
|
|
3747
3747
|
}
|
|
3748
3748
|
function getResponseCacheKeys$l(luvio, resourceParams, response) {
|
|
3749
|
-
return getTypeCacheKeys$
|
|
3749
|
+
return getTypeCacheKeys$7(luvio, response);
|
|
3750
3750
|
}
|
|
3751
3751
|
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
3752
3752
|
const { body } = response;
|
|
3753
|
-
const key = keyBuilderFromType$
|
|
3754
|
-
luvio.storeIngest(key, ingest$
|
|
3753
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
3754
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
3755
3755
|
const snapshot = luvio.storeLookup({
|
|
3756
3756
|
recordId: key,
|
|
3757
3757
|
node: select$n(),
|
|
@@ -3910,7 +3910,8 @@ function validate$b(obj, path = 'ContextDefinitionVersionInputRepresentation') {
|
|
|
3910
3910
|
return v_error === undefined ? null : v_error;
|
|
3911
3911
|
}
|
|
3912
3912
|
|
|
3913
|
-
const
|
|
3913
|
+
const TTL$6 = 30000;
|
|
3914
|
+
const VERSION$6 = "02db6b8f5f8aa0607d9f784e68a6d867";
|
|
3914
3915
|
function validate$a(obj, path = 'ContextAttrHydrationDetailRepresentation') {
|
|
3915
3916
|
const v_error = (() => {
|
|
3916
3917
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3966,120 +3967,31 @@ function validate$a(obj, path = 'ContextAttrHydrationDetailRepresentation') {
|
|
|
3966
3967
|
})();
|
|
3967
3968
|
return v_error === undefined ? null : v_error;
|
|
3968
3969
|
}
|
|
3970
|
+
const RepresentationType$6 = 'ContextAttrHydrationDetailRepresentation';
|
|
3971
|
+
function keyBuilder$n(luvio, config) {
|
|
3972
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
|
|
3973
|
+
}
|
|
3974
|
+
function keyBuilderFromType$6(luvio, object) {
|
|
3975
|
+
const keyParams = {
|
|
3976
|
+
id: object.contextAttrHydrationDetailId
|
|
3977
|
+
};
|
|
3978
|
+
return keyBuilder$n(luvio, keyParams);
|
|
3979
|
+
}
|
|
3980
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
3981
|
+
return input;
|
|
3982
|
+
}
|
|
3969
3983
|
const select$m = function ContextAttrHydrationDetailRepresentationSelect() {
|
|
3970
3984
|
return {
|
|
3971
3985
|
kind: 'Fragment',
|
|
3972
3986
|
version: VERSION$6,
|
|
3973
3987
|
private: [],
|
|
3974
|
-
|
|
3975
|
-
{
|
|
3976
|
-
name: 'childDetails',
|
|
3977
|
-
kind: 'Object',
|
|
3978
|
-
// any
|
|
3979
|
-
},
|
|
3980
|
-
{
|
|
3981
|
-
name: 'contextAttrHydrationDetailId',
|
|
3982
|
-
kind: 'Scalar'
|
|
3983
|
-
},
|
|
3984
|
-
{
|
|
3985
|
-
name: 'isSuccess',
|
|
3986
|
-
kind: 'Scalar',
|
|
3987
|
-
required: false
|
|
3988
|
-
},
|
|
3989
|
-
{
|
|
3990
|
-
name: 'parentMappingAttributeId',
|
|
3991
|
-
kind: 'Scalar',
|
|
3992
|
-
required: false
|
|
3993
|
-
},
|
|
3994
|
-
{
|
|
3995
|
-
name: 'queryAttribute',
|
|
3996
|
-
kind: 'Scalar',
|
|
3997
|
-
required: false
|
|
3998
|
-
},
|
|
3999
|
-
{
|
|
4000
|
-
name: 'sObjectDomain',
|
|
4001
|
-
kind: 'Scalar',
|
|
4002
|
-
required: false
|
|
4003
|
-
}
|
|
4004
|
-
]
|
|
3988
|
+
opaque: true
|
|
4005
3989
|
};
|
|
4006
3990
|
};
|
|
4007
3991
|
function equals$6(existing, incoming) {
|
|
4008
|
-
|
|
4009
|
-
const incoming_isSuccess = incoming.isSuccess;
|
|
4010
|
-
// if at least one of these optionals is defined
|
|
4011
|
-
if (existing_isSuccess !== undefined || incoming_isSuccess !== undefined) {
|
|
4012
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
4013
|
-
// not equal
|
|
4014
|
-
if (existing_isSuccess === undefined || incoming_isSuccess === undefined) {
|
|
4015
|
-
return false;
|
|
4016
|
-
}
|
|
4017
|
-
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
4018
|
-
return false;
|
|
4019
|
-
}
|
|
4020
|
-
}
|
|
4021
|
-
const existing_contextAttrHydrationDetailId = existing.contextAttrHydrationDetailId;
|
|
4022
|
-
const incoming_contextAttrHydrationDetailId = incoming.contextAttrHydrationDetailId;
|
|
4023
|
-
if (!(existing_contextAttrHydrationDetailId === incoming_contextAttrHydrationDetailId)) {
|
|
3992
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4024
3993
|
return false;
|
|
4025
3994
|
}
|
|
4026
|
-
const existing_parentMappingAttributeId = existing.parentMappingAttributeId;
|
|
4027
|
-
const incoming_parentMappingAttributeId = incoming.parentMappingAttributeId;
|
|
4028
|
-
// if at least one of these optionals is defined
|
|
4029
|
-
if (existing_parentMappingAttributeId !== undefined || incoming_parentMappingAttributeId !== undefined) {
|
|
4030
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
4031
|
-
// not equal
|
|
4032
|
-
if (existing_parentMappingAttributeId === undefined || incoming_parentMappingAttributeId === undefined) {
|
|
4033
|
-
return false;
|
|
4034
|
-
}
|
|
4035
|
-
if (!(existing_parentMappingAttributeId === incoming_parentMappingAttributeId)) {
|
|
4036
|
-
return false;
|
|
4037
|
-
}
|
|
4038
|
-
}
|
|
4039
|
-
const existing_queryAttribute = existing.queryAttribute;
|
|
4040
|
-
const incoming_queryAttribute = incoming.queryAttribute;
|
|
4041
|
-
// if at least one of these optionals is defined
|
|
4042
|
-
if (existing_queryAttribute !== undefined || incoming_queryAttribute !== undefined) {
|
|
4043
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
4044
|
-
// not equal
|
|
4045
|
-
if (existing_queryAttribute === undefined || incoming_queryAttribute === undefined) {
|
|
4046
|
-
return false;
|
|
4047
|
-
}
|
|
4048
|
-
if (!(existing_queryAttribute === incoming_queryAttribute)) {
|
|
4049
|
-
return false;
|
|
4050
|
-
}
|
|
4051
|
-
}
|
|
4052
|
-
const existing_sObjectDomain = existing.sObjectDomain;
|
|
4053
|
-
const incoming_sObjectDomain = incoming.sObjectDomain;
|
|
4054
|
-
// if at least one of these optionals is defined
|
|
4055
|
-
if (existing_sObjectDomain !== undefined || incoming_sObjectDomain !== undefined) {
|
|
4056
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
4057
|
-
// not equal
|
|
4058
|
-
if (existing_sObjectDomain === undefined || incoming_sObjectDomain === undefined) {
|
|
4059
|
-
return false;
|
|
4060
|
-
}
|
|
4061
|
-
if (!(existing_sObjectDomain === incoming_sObjectDomain)) {
|
|
4062
|
-
return false;
|
|
4063
|
-
}
|
|
4064
|
-
}
|
|
4065
|
-
const existing_childDetails = existing.childDetails;
|
|
4066
|
-
const incoming_childDetails = incoming.childDetails;
|
|
4067
|
-
// if at least one of these optionals is defined
|
|
4068
|
-
if (existing_childDetails !== undefined || incoming_childDetails !== undefined) {
|
|
4069
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
4070
|
-
// not equal
|
|
4071
|
-
if (existing_childDetails === undefined || incoming_childDetails === undefined) {
|
|
4072
|
-
return false;
|
|
4073
|
-
}
|
|
4074
|
-
const equals_childDetails_items = equalsArray(existing_childDetails, incoming_childDetails, (existing_childDetails_item, incoming_childDetails_item) => {
|
|
4075
|
-
if (JSONStringify(incoming_childDetails_item) !== JSONStringify(existing_childDetails_item)) {
|
|
4076
|
-
return false;
|
|
4077
|
-
}
|
|
4078
|
-
});
|
|
4079
|
-
if (equals_childDetails_items === false) {
|
|
4080
|
-
return false;
|
|
4081
|
-
}
|
|
4082
|
-
}
|
|
4083
3995
|
return true;
|
|
4084
3996
|
}
|
|
4085
3997
|
function deepFreeze$4(input) {
|
|
@@ -4093,29 +4005,66 @@ function deepFreeze$4(input) {
|
|
|
4093
4005
|
}
|
|
4094
4006
|
ObjectFreeze(input);
|
|
4095
4007
|
}
|
|
4008
|
+
const ingest$6 = function ContextAttrHydrationDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4009
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4010
|
+
const validateError = validate$a(input);
|
|
4011
|
+
if (validateError !== null) {
|
|
4012
|
+
throw validateError;
|
|
4013
|
+
}
|
|
4014
|
+
}
|
|
4015
|
+
const key = keyBuilderFromType$6(luvio, input);
|
|
4016
|
+
const existingRecord = store.readEntry(key);
|
|
4017
|
+
const ttlToUse = TTL$6;
|
|
4018
|
+
let incomingRecord = normalize$6(input, store.readEntry(key), {
|
|
4019
|
+
fullPath: key,
|
|
4020
|
+
parent: path.parent,
|
|
4021
|
+
propertyName: path.propertyName,
|
|
4022
|
+
ttl: ttlToUse
|
|
4023
|
+
});
|
|
4024
|
+
deepFreeze$4(input);
|
|
4025
|
+
if (existingRecord === undefined || equals$6(existingRecord, incomingRecord) === false) {
|
|
4026
|
+
luvio.storePublish(key, incomingRecord);
|
|
4027
|
+
}
|
|
4028
|
+
{
|
|
4029
|
+
const storeMetadataParams = {
|
|
4030
|
+
ttl: ttlToUse,
|
|
4031
|
+
namespace: "IndustriesContext",
|
|
4032
|
+
version: VERSION$6,
|
|
4033
|
+
representationName: RepresentationType$6,
|
|
4034
|
+
};
|
|
4035
|
+
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
4036
|
+
}
|
|
4037
|
+
return createLink(key);
|
|
4038
|
+
};
|
|
4039
|
+
function getTypeCacheKeys$6(luvio, input, fullPathFactory) {
|
|
4040
|
+
const rootKeySet = new StoreKeyMap();
|
|
4041
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4042
|
+
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
4043
|
+
rootKeySet.set(rootKey, {
|
|
4044
|
+
namespace: keyPrefix,
|
|
4045
|
+
representationName: RepresentationType$6,
|
|
4046
|
+
mergeable: false
|
|
4047
|
+
});
|
|
4048
|
+
return rootKeySet;
|
|
4049
|
+
}
|
|
4096
4050
|
|
|
4097
4051
|
const TTL$5 = 30000;
|
|
4098
|
-
const VERSION$5 = "
|
|
4052
|
+
const VERSION$5 = "91b3e2f0127810505fdabe203d64bdbc";
|
|
4099
4053
|
function validate$9(obj, path = 'ContextAttributeMappingRepresentation') {
|
|
4100
4054
|
const v_error = (() => {
|
|
4101
4055
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4102
4056
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4103
4057
|
}
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
if (referencepath_contextAttrHydrationDetailList_itemValidationError !== null) {
|
|
4115
|
-
let message = 'Object doesn\'t match ContextAttrHydrationDetailRepresentation (at "' + path_contextAttrHydrationDetailList_item + '")\n';
|
|
4116
|
-
message += referencepath_contextAttrHydrationDetailList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4117
|
-
return new TypeError(message);
|
|
4118
|
-
}
|
|
4058
|
+
const obj_contextAttrHydrationDetailList = obj.contextAttrHydrationDetailList;
|
|
4059
|
+
const path_contextAttrHydrationDetailList = path + '.contextAttrHydrationDetailList';
|
|
4060
|
+
if (!ArrayIsArray(obj_contextAttrHydrationDetailList)) {
|
|
4061
|
+
return new TypeError('Expected "array" but received "' + typeof obj_contextAttrHydrationDetailList + '" (at "' + path_contextAttrHydrationDetailList + '")');
|
|
4062
|
+
}
|
|
4063
|
+
for (let i = 0; i < obj_contextAttrHydrationDetailList.length; i++) {
|
|
4064
|
+
const obj_contextAttrHydrationDetailList_item = obj_contextAttrHydrationDetailList[i];
|
|
4065
|
+
const path_contextAttrHydrationDetailList_item = path_contextAttrHydrationDetailList + '[' + i + ']';
|
|
4066
|
+
if (typeof obj_contextAttrHydrationDetailList_item !== 'object') {
|
|
4067
|
+
return new TypeError('Expected "object" but received "' + typeof obj_contextAttrHydrationDetailList_item + '" (at "' + path_contextAttrHydrationDetailList_item + '")');
|
|
4119
4068
|
}
|
|
4120
4069
|
}
|
|
4121
4070
|
const obj_contextAttributeId = obj.contextAttributeId;
|
|
@@ -4159,10 +4108,25 @@ function keyBuilderFromType$5(luvio, object) {
|
|
|
4159
4108
|
return keyBuilder$m(luvio, keyParams);
|
|
4160
4109
|
}
|
|
4161
4110
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
4111
|
+
const input_contextAttrHydrationDetailList = input.contextAttrHydrationDetailList;
|
|
4112
|
+
const input_contextAttrHydrationDetailList_id = path.fullPath + '__contextAttrHydrationDetailList';
|
|
4113
|
+
for (let i = 0; i < input_contextAttrHydrationDetailList.length; i++) {
|
|
4114
|
+
const input_contextAttrHydrationDetailList_item = input_contextAttrHydrationDetailList[i];
|
|
4115
|
+
let input_contextAttrHydrationDetailList_item_id = input_contextAttrHydrationDetailList_id + '__' + i;
|
|
4116
|
+
input_contextAttrHydrationDetailList[i] = ingest$6(input_contextAttrHydrationDetailList_item, {
|
|
4117
|
+
fullPath: input_contextAttrHydrationDetailList_item_id,
|
|
4118
|
+
propertyName: i,
|
|
4119
|
+
parent: {
|
|
4120
|
+
data: input,
|
|
4121
|
+
key: path.fullPath,
|
|
4122
|
+
existing: existing,
|
|
4123
|
+
},
|
|
4124
|
+
ttl: path.ttl
|
|
4125
|
+
}, luvio, store);
|
|
4126
|
+
}
|
|
4162
4127
|
return input;
|
|
4163
4128
|
}
|
|
4164
4129
|
const select$l = function ContextAttributeMappingRepresentationSelect() {
|
|
4165
|
-
const { selections: ContextAttrHydrationDetailRepresentation__selections, opaque: ContextAttrHydrationDetailRepresentation__opaque, } = select$m();
|
|
4166
4130
|
return {
|
|
4167
4131
|
kind: 'Fragment',
|
|
4168
4132
|
version: VERSION$5,
|
|
@@ -4170,10 +4134,9 @@ const select$l = function ContextAttributeMappingRepresentationSelect() {
|
|
|
4170
4134
|
selections: [
|
|
4171
4135
|
{
|
|
4172
4136
|
name: 'contextAttrHydrationDetailList',
|
|
4173
|
-
kind: '
|
|
4137
|
+
kind: 'Link',
|
|
4174
4138
|
plural: true,
|
|
4175
|
-
|
|
4176
|
-
required: false
|
|
4139
|
+
fragment: select$m()
|
|
4177
4140
|
},
|
|
4178
4141
|
{
|
|
4179
4142
|
name: 'contextAttributeId',
|
|
@@ -4235,33 +4198,23 @@ function equals$5(existing, incoming) {
|
|
|
4235
4198
|
}
|
|
4236
4199
|
const existing_contextAttrHydrationDetailList = existing.contextAttrHydrationDetailList;
|
|
4237
4200
|
const incoming_contextAttrHydrationDetailList = incoming.contextAttrHydrationDetailList;
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
4241
|
-
// not equal
|
|
4242
|
-
if (existing_contextAttrHydrationDetailList === undefined || incoming_contextAttrHydrationDetailList === undefined) {
|
|
4243
|
-
return false;
|
|
4244
|
-
}
|
|
4245
|
-
const equals_contextAttrHydrationDetailList_items = equalsArray(existing_contextAttrHydrationDetailList, incoming_contextAttrHydrationDetailList, (existing_contextAttrHydrationDetailList_item, incoming_contextAttrHydrationDetailList_item) => {
|
|
4246
|
-
if (!(equals$6(existing_contextAttrHydrationDetailList_item, incoming_contextAttrHydrationDetailList_item))) {
|
|
4247
|
-
return false;
|
|
4248
|
-
}
|
|
4249
|
-
});
|
|
4250
|
-
if (equals_contextAttrHydrationDetailList_items === false) {
|
|
4201
|
+
const equals_contextAttrHydrationDetailList_items = equalsArray(existing_contextAttrHydrationDetailList, incoming_contextAttrHydrationDetailList, (existing_contextAttrHydrationDetailList_item, incoming_contextAttrHydrationDetailList_item) => {
|
|
4202
|
+
if (!(existing_contextAttrHydrationDetailList_item.__ref === incoming_contextAttrHydrationDetailList_item.__ref)) {
|
|
4251
4203
|
return false;
|
|
4252
4204
|
}
|
|
4205
|
+
});
|
|
4206
|
+
if (equals_contextAttrHydrationDetailList_items === false) {
|
|
4207
|
+
return false;
|
|
4253
4208
|
}
|
|
4254
4209
|
return true;
|
|
4255
4210
|
}
|
|
4256
4211
|
function deepFreeze$3(input) {
|
|
4257
4212
|
const input_contextAttrHydrationDetailList = input.contextAttrHydrationDetailList;
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
deepFreeze$4(input_contextAttrHydrationDetailList_item);
|
|
4262
|
-
}
|
|
4263
|
-
ObjectFreeze(input_contextAttrHydrationDetailList);
|
|
4213
|
+
for (let i = 0; i < input_contextAttrHydrationDetailList.length; i++) {
|
|
4214
|
+
const input_contextAttrHydrationDetailList_item = input_contextAttrHydrationDetailList[i];
|
|
4215
|
+
deepFreeze$4(input_contextAttrHydrationDetailList_item);
|
|
4264
4216
|
}
|
|
4217
|
+
ObjectFreeze(input_contextAttrHydrationDetailList);
|
|
4265
4218
|
ObjectFreeze(input);
|
|
4266
4219
|
}
|
|
4267
4220
|
const ingest$5 = function ContextAttributeMappingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -4279,7 +4232,7 @@ const ingest$5 = function ContextAttributeMappingRepresentationIngest(input, pat
|
|
|
4279
4232
|
parent: path.parent,
|
|
4280
4233
|
propertyName: path.propertyName,
|
|
4281
4234
|
ttl: ttlToUse
|
|
4282
|
-
});
|
|
4235
|
+
}, luvio, store);
|
|
4283
4236
|
if (existingRecord === undefined || equals$5(existingRecord, incomingRecord) === false) {
|
|
4284
4237
|
luvio.storePublish(key, incomingRecord);
|
|
4285
4238
|
}
|
|
@@ -4303,6 +4256,10 @@ function getTypeCacheKeys$5(luvio, input, fullPathFactory) {
|
|
|
4303
4256
|
representationName: RepresentationType$5,
|
|
4304
4257
|
mergeable: false
|
|
4305
4258
|
});
|
|
4259
|
+
const input_contextAttrHydrationDetailList_length = input.contextAttrHydrationDetailList.length;
|
|
4260
|
+
for (let i = 0; i < input_contextAttrHydrationDetailList_length; i++) {
|
|
4261
|
+
rootKeySet.merge(getTypeCacheKeys$6(luvio, input.contextAttrHydrationDetailList[i]));
|
|
4262
|
+
}
|
|
4306
4263
|
return rootKeySet;
|
|
4307
4264
|
}
|
|
4308
4265
|
|
|
@@ -5914,12 +5871,12 @@ function select$c(luvio, params) {
|
|
|
5914
5871
|
return select$H();
|
|
5915
5872
|
}
|
|
5916
5873
|
function getResponseCacheKeys$e(luvio, resourceParams, response) {
|
|
5917
|
-
return getTypeCacheKeys$
|
|
5874
|
+
return getTypeCacheKeys$d(luvio, response);
|
|
5918
5875
|
}
|
|
5919
5876
|
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
5920
5877
|
const { body } = response;
|
|
5921
|
-
const key = keyBuilderFromType$
|
|
5922
|
-
luvio.storeIngest(key, ingest$
|
|
5878
|
+
const key = keyBuilderFromType$b(luvio, body);
|
|
5879
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
5923
5880
|
const snapshot = luvio.storeLookup({
|
|
5924
5881
|
recordId: key,
|
|
5925
5882
|
node: select$c(),
|