@salesforce/lds-adapters-cdp-semantic-authoring 1.334.0 → 1.336.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/cdp-semantic-authoring.js +1460 -855
- package/dist/es/es2018/types/src/generated/adapters/deleteGoalFromSubMetric.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/adapters/getLeafDependenciesByTypes.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticMetricsByIds.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticSubMetricsById.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/adapters/patchSemanticMetricGoal.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/resources/deleteSsotSemanticModelsSubMetricsGoalByModelApiNameOrIdAndSubMetricNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticMetricsByMetricIds.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsDependenciesByModelApiNameOrId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsSubMetricsGoalByModelApiNameOrIdAndSubMetricNameOrId.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticSubMetricsBySubMetricIds.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/patchSsotSemanticModelsSubMetricsGoalByModelApiNameOrIdAndSubMetricNameOrId.d.ts +3 -5
- package/dist/es/es2018/types/src/generated/types/SemanticGoalStatusConditionInputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/SemanticGoalStatusConditionOutputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/SemanticMetricGoalInputRepresentation.d.ts +8 -12
- package/dist/es/es2018/types/src/generated/types/SemanticMetricGoalOutputRepresentation.d.ts +4 -12
- package/package.json +3 -3
- package/sfdc/index.js +1398 -776
- package/src/raml/api.raml +111 -60
- package/src/raml/luvio.raml +13 -0
- package/dist/es/es2018/types/src/generated/types/SemanticGoalDateRangeInputRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/SemanticGoalDateRangeOutputRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/SemanticGoalValueInputRepresentation.d.ts +0 -28
- package/dist/es/es2018/types/src/generated/types/SemanticGoalValueOutputRepresentation.d.ts +0 -28
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$a, typeCheckConfig as typeCheckConfig$g, StoreKeyMap, createResourceParams as createResourceParams$g } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -92,7 +92,7 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
const VERSION$
|
|
95
|
+
const VERSION$w = "a2976cd68e629a917463a3b690cf2527";
|
|
96
96
|
function validate$$(obj, path = 'SemanticTableFieldReferenceOutputRepresentation') {
|
|
97
97
|
const v_error = (() => {
|
|
98
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -115,10 +115,10 @@ function validate$$(obj, path = 'SemanticTableFieldReferenceOutputRepresentation
|
|
|
115
115
|
})();
|
|
116
116
|
return v_error === undefined ? null : v_error;
|
|
117
117
|
}
|
|
118
|
-
const select$
|
|
118
|
+
const select$K = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
119
119
|
return {
|
|
120
120
|
kind: 'Fragment',
|
|
121
|
-
version: VERSION$
|
|
121
|
+
version: VERSION$w,
|
|
122
122
|
private: [],
|
|
123
123
|
selections: [
|
|
124
124
|
{
|
|
@@ -134,7 +134,7 @@ const select$F = function SemanticTableFieldReferenceOutputRepresentationSelect(
|
|
|
134
134
|
]
|
|
135
135
|
};
|
|
136
136
|
};
|
|
137
|
-
function equals$
|
|
137
|
+
function equals$w(existing, incoming) {
|
|
138
138
|
const existing_fieldApiName = existing.fieldApiName;
|
|
139
139
|
const incoming_fieldApiName = incoming.fieldApiName;
|
|
140
140
|
// if at least one of these optionals is defined
|
|
@@ -164,7 +164,7 @@ function equals$t(existing, incoming) {
|
|
|
164
164
|
return true;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
const VERSION$
|
|
167
|
+
const VERSION$v = "f49a2cbbe308f6f74cda3e2144fa66cd";
|
|
168
168
|
function validate$_(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
169
169
|
const v_error = (() => {
|
|
170
170
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -190,11 +190,11 @@ function validate$_(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
190
190
|
})();
|
|
191
191
|
return v_error === undefined ? null : v_error;
|
|
192
192
|
}
|
|
193
|
-
const select$
|
|
194
|
-
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$
|
|
193
|
+
const select$J = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
194
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$K();
|
|
195
195
|
return {
|
|
196
196
|
kind: 'Fragment',
|
|
197
|
-
version: VERSION$
|
|
197
|
+
version: VERSION$v,
|
|
198
198
|
private: [],
|
|
199
199
|
selections: [
|
|
200
200
|
{
|
|
@@ -211,7 +211,7 @@ const select$E = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
|
211
211
|
]
|
|
212
212
|
};
|
|
213
213
|
};
|
|
214
|
-
function equals$
|
|
214
|
+
function equals$v(existing, incoming) {
|
|
215
215
|
const existing_calculatedFieldApiName = existing.calculatedFieldApiName;
|
|
216
216
|
const incoming_calculatedFieldApiName = incoming.calculatedFieldApiName;
|
|
217
217
|
// if at least one of these optionals is defined
|
|
@@ -234,14 +234,14 @@ function equals$s(existing, incoming) {
|
|
|
234
234
|
if (existing_tableFieldReference === undefined || incoming_tableFieldReference === undefined) {
|
|
235
235
|
return false;
|
|
236
236
|
}
|
|
237
|
-
if (!(equals$
|
|
237
|
+
if (!(equals$w(existing_tableFieldReference, incoming_tableFieldReference))) {
|
|
238
238
|
return false;
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
return true;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
const VERSION$
|
|
244
|
+
const VERSION$u = "9b5a0e85af6a943c95625e2dfe81ab96";
|
|
245
245
|
function validate$Z(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
246
246
|
const v_error = (() => {
|
|
247
247
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -271,10 +271,10 @@ function validate$Z(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
|
271
271
|
})();
|
|
272
272
|
return v_error === undefined ? null : v_error;
|
|
273
273
|
}
|
|
274
|
-
const select$
|
|
274
|
+
const select$I = function SemanticFilterOutputRepresentationSelect() {
|
|
275
275
|
return {
|
|
276
276
|
kind: 'Fragment',
|
|
277
|
-
version: VERSION$
|
|
277
|
+
version: VERSION$u,
|
|
278
278
|
private: [],
|
|
279
279
|
selections: [
|
|
280
280
|
{
|
|
@@ -295,7 +295,7 @@ const select$D = function SemanticFilterOutputRepresentationSelect() {
|
|
|
295
295
|
]
|
|
296
296
|
};
|
|
297
297
|
};
|
|
298
|
-
function equals$
|
|
298
|
+
function equals$u(existing, incoming) {
|
|
299
299
|
const existing_fieldName = existing.fieldName;
|
|
300
300
|
const incoming_fieldName = incoming.fieldName;
|
|
301
301
|
// if at least one of these optionals is defined
|
|
@@ -338,7 +338,7 @@ function equals$r(existing, incoming) {
|
|
|
338
338
|
return true;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
-
const VERSION$
|
|
341
|
+
const VERSION$t = "a50848c632bb205d5e910bb726d9219e";
|
|
342
342
|
function validate$Y(obj, path = 'SemanticIdentifyingDimensionOutputRepresentation') {
|
|
343
343
|
const v_error = (() => {
|
|
344
344
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -367,11 +367,11 @@ function validate$Y(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
367
367
|
})();
|
|
368
368
|
return v_error === undefined ? null : v_error;
|
|
369
369
|
}
|
|
370
|
-
const select$
|
|
371
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
370
|
+
const select$H = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
371
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$J();
|
|
372
372
|
return {
|
|
373
373
|
kind: 'Fragment',
|
|
374
|
-
version: VERSION$
|
|
374
|
+
version: VERSION$t,
|
|
375
375
|
private: [],
|
|
376
376
|
selections: [
|
|
377
377
|
{
|
|
@@ -389,7 +389,7 @@ const select$C = function SemanticIdentifyingDimensionOutputRepresentationSelect
|
|
|
389
389
|
]
|
|
390
390
|
};
|
|
391
391
|
};
|
|
392
|
-
function equals$
|
|
392
|
+
function equals$t(existing, incoming) {
|
|
393
393
|
const existing_identifierDimensionReference = existing.identifierDimensionReference;
|
|
394
394
|
const incoming_identifierDimensionReference = incoming.identifierDimensionReference;
|
|
395
395
|
// if at least one of these optionals is defined
|
|
@@ -399,7 +399,7 @@ function equals$q(existing, incoming) {
|
|
|
399
399
|
if (existing_identifierDimensionReference === undefined || incoming_identifierDimensionReference === undefined) {
|
|
400
400
|
return false;
|
|
401
401
|
}
|
|
402
|
-
if (!(equals$
|
|
402
|
+
if (!(equals$v(existing_identifierDimensionReference, incoming_identifierDimensionReference))) {
|
|
403
403
|
return false;
|
|
404
404
|
}
|
|
405
405
|
}
|
|
@@ -412,14 +412,14 @@ function equals$q(existing, incoming) {
|
|
|
412
412
|
if (existing_namingDimensionReference === undefined || incoming_namingDimensionReference === undefined) {
|
|
413
413
|
return false;
|
|
414
414
|
}
|
|
415
|
-
if (!(equals$
|
|
415
|
+
if (!(equals$v(existing_namingDimensionReference, incoming_namingDimensionReference))) {
|
|
416
416
|
return false;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
return true;
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
const VERSION$
|
|
422
|
+
const VERSION$s = "1b8cf2283d5d5c480459506274f0604c";
|
|
423
423
|
function validate$X(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
424
424
|
const v_error = (() => {
|
|
425
425
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -442,10 +442,10 @@ function validate$X(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
442
442
|
})();
|
|
443
443
|
return v_error === undefined ? null : v_error;
|
|
444
444
|
}
|
|
445
|
-
const select$
|
|
445
|
+
const select$G = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
446
446
|
return {
|
|
447
447
|
kind: 'Fragment',
|
|
448
|
-
version: VERSION$
|
|
448
|
+
version: VERSION$s,
|
|
449
449
|
private: [],
|
|
450
450
|
selections: [
|
|
451
451
|
{
|
|
@@ -461,7 +461,7 @@ const select$B = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
|
461
461
|
]
|
|
462
462
|
};
|
|
463
463
|
};
|
|
464
|
-
function equals$
|
|
464
|
+
function equals$s(existing, incoming) {
|
|
465
465
|
const existing_enabled = existing.enabled;
|
|
466
466
|
const incoming_enabled = incoming.enabled;
|
|
467
467
|
// if at least one of these optionals is defined
|
|
@@ -491,7 +491,7 @@ function equals$p(existing, incoming) {
|
|
|
491
491
|
return true;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
const VERSION$
|
|
494
|
+
const VERSION$r = "a3f5972287be7bcf9ca205af56046a58";
|
|
495
495
|
function validate$W(obj, path = 'SemanticInsightsSettingsOutputRepresentation') {
|
|
496
496
|
const v_error = (() => {
|
|
497
497
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -565,13 +565,13 @@ function validate$W(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
565
565
|
})();
|
|
566
566
|
return v_error === undefined ? null : v_error;
|
|
567
567
|
}
|
|
568
|
-
const select$
|
|
569
|
-
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$
|
|
570
|
-
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$
|
|
571
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
568
|
+
const select$F = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
569
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$H();
|
|
570
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$G();
|
|
571
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$J();
|
|
572
572
|
return {
|
|
573
573
|
kind: 'Fragment',
|
|
574
|
-
version: VERSION$
|
|
574
|
+
version: VERSION$r,
|
|
575
575
|
private: [],
|
|
576
576
|
selections: [
|
|
577
577
|
{
|
|
@@ -612,7 +612,7 @@ const select$A = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
|
612
612
|
]
|
|
613
613
|
};
|
|
614
614
|
};
|
|
615
|
-
function equals$
|
|
615
|
+
function equals$r(existing, incoming) {
|
|
616
616
|
const existing_pluralNoun = existing.pluralNoun;
|
|
617
617
|
const incoming_pluralNoun = incoming.pluralNoun;
|
|
618
618
|
// if at least one of these optionals is defined
|
|
@@ -661,7 +661,7 @@ function equals$o(existing, incoming) {
|
|
|
661
661
|
if (existing_identifyingDimension === undefined || incoming_identifyingDimension === undefined) {
|
|
662
662
|
return false;
|
|
663
663
|
}
|
|
664
|
-
if (!(equals$
|
|
664
|
+
if (!(equals$t(existing_identifyingDimension, incoming_identifyingDimension))) {
|
|
665
665
|
return false;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
@@ -675,7 +675,7 @@ function equals$o(existing, incoming) {
|
|
|
675
675
|
return false;
|
|
676
676
|
}
|
|
677
677
|
const equals_insightTypes_items = equalsArray(existing_insightTypes, incoming_insightTypes, (existing_insightTypes_item, incoming_insightTypes_item) => {
|
|
678
|
-
if (!(equals$
|
|
678
|
+
if (!(equals$s(existing_insightTypes_item, incoming_insightTypes_item))) {
|
|
679
679
|
return false;
|
|
680
680
|
}
|
|
681
681
|
});
|
|
@@ -693,7 +693,7 @@ function equals$o(existing, incoming) {
|
|
|
693
693
|
return false;
|
|
694
694
|
}
|
|
695
695
|
const equals_insightsDimensionsReferences_items = equalsArray(existing_insightsDimensionsReferences, incoming_insightsDimensionsReferences, (existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item) => {
|
|
696
|
-
if (!(equals$
|
|
696
|
+
if (!(equals$v(existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item))) {
|
|
697
697
|
return false;
|
|
698
698
|
}
|
|
699
699
|
});
|
|
@@ -704,7 +704,7 @@ function equals$o(existing, incoming) {
|
|
|
704
704
|
return true;
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
-
const VERSION$
|
|
707
|
+
const VERSION$q = "0873ccd85b32d14c753931243d20ac8b";
|
|
708
708
|
function validate$V(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
709
709
|
const v_error = (() => {
|
|
710
710
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -874,26 +874,26 @@ function validate$V(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
874
874
|
})();
|
|
875
875
|
return v_error === undefined ? null : v_error;
|
|
876
876
|
}
|
|
877
|
-
const RepresentationType$
|
|
878
|
-
function keyBuilder$
|
|
879
|
-
return keyPrefix + '::' + RepresentationType$
|
|
877
|
+
const RepresentationType$h = 'SemanticMetricOutputRepresentation';
|
|
878
|
+
function keyBuilder$x(luvio, config) {
|
|
879
|
+
return keyPrefix + '::' + RepresentationType$h + ':' + config.name;
|
|
880
880
|
}
|
|
881
881
|
function keyBuilderFromType$b(luvio, object) {
|
|
882
882
|
const keyParams = {
|
|
883
883
|
name: object.id
|
|
884
884
|
};
|
|
885
|
-
return keyBuilder$
|
|
885
|
+
return keyBuilder$x(luvio, keyParams);
|
|
886
886
|
}
|
|
887
|
-
function normalize$
|
|
887
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
888
888
|
return input;
|
|
889
889
|
}
|
|
890
|
-
const select$
|
|
891
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
892
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
893
|
-
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$
|
|
890
|
+
const select$E = function SemanticMetricOutputRepresentationSelect() {
|
|
891
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$J();
|
|
892
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$I();
|
|
893
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$F();
|
|
894
894
|
return {
|
|
895
895
|
kind: 'Fragment',
|
|
896
|
-
version: VERSION$
|
|
896
|
+
version: VERSION$q,
|
|
897
897
|
private: [],
|
|
898
898
|
selections: [
|
|
899
899
|
{
|
|
@@ -998,7 +998,7 @@ const select$z = function SemanticMetricOutputRepresentationSelect() {
|
|
|
998
998
|
]
|
|
999
999
|
};
|
|
1000
1000
|
};
|
|
1001
|
-
function equals$
|
|
1001
|
+
function equals$q(existing, incoming) {
|
|
1002
1002
|
const existing_isCumulative = existing.isCumulative;
|
|
1003
1003
|
const incoming_isCumulative = incoming.isCumulative;
|
|
1004
1004
|
// if at least one of these optionals is defined
|
|
@@ -1146,7 +1146,7 @@ function equals$n(existing, incoming) {
|
|
|
1146
1146
|
return false;
|
|
1147
1147
|
}
|
|
1148
1148
|
const equals_additionalDimensions_items = equalsArray(existing_additionalDimensions, incoming_additionalDimensions, (existing_additionalDimensions_item, incoming_additionalDimensions_item) => {
|
|
1149
|
-
if (!(equals$
|
|
1149
|
+
if (!(equals$v(existing_additionalDimensions_item, incoming_additionalDimensions_item))) {
|
|
1150
1150
|
return false;
|
|
1151
1151
|
}
|
|
1152
1152
|
});
|
|
@@ -1164,7 +1164,7 @@ function equals$n(existing, incoming) {
|
|
|
1164
1164
|
return false;
|
|
1165
1165
|
}
|
|
1166
1166
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
1167
|
-
if (!(equals$
|
|
1167
|
+
if (!(equals$u(existing_filters_item, incoming_filters_item))) {
|
|
1168
1168
|
return false;
|
|
1169
1169
|
}
|
|
1170
1170
|
});
|
|
@@ -1181,7 +1181,7 @@ function equals$n(existing, incoming) {
|
|
|
1181
1181
|
if (existing_insightsSettings === undefined || incoming_insightsSettings === undefined) {
|
|
1182
1182
|
return false;
|
|
1183
1183
|
}
|
|
1184
|
-
if (!(equals$
|
|
1184
|
+
if (!(equals$r(existing_insightsSettings, incoming_insightsSettings))) {
|
|
1185
1185
|
return false;
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
@@ -1194,7 +1194,7 @@ function equals$n(existing, incoming) {
|
|
|
1194
1194
|
if (existing_measurementReference === undefined || incoming_measurementReference === undefined) {
|
|
1195
1195
|
return false;
|
|
1196
1196
|
}
|
|
1197
|
-
if (!(equals$
|
|
1197
|
+
if (!(equals$v(existing_measurementReference, incoming_measurementReference))) {
|
|
1198
1198
|
return false;
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
@@ -1207,7 +1207,7 @@ function equals$n(existing, incoming) {
|
|
|
1207
1207
|
if (existing_timeDimensionReference === undefined || incoming_timeDimensionReference === undefined) {
|
|
1208
1208
|
return false;
|
|
1209
1209
|
}
|
|
1210
|
-
if (!(equals$
|
|
1210
|
+
if (!(equals$v(existing_timeDimensionReference, incoming_timeDimensionReference))) {
|
|
1211
1211
|
return false;
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
@@ -1231,7 +1231,7 @@ function equals$n(existing, incoming) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
return true;
|
|
1233
1233
|
}
|
|
1234
|
-
const ingest$
|
|
1234
|
+
const ingest$h = function SemanticMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1235
1235
|
if (process.env.NODE_ENV !== 'production') {
|
|
1236
1236
|
const validateError = validate$V(input);
|
|
1237
1237
|
if (validateError !== null) {
|
|
@@ -1240,20 +1240,20 @@ const ingest$g = function SemanticMetricOutputRepresentationIngest(input, path,
|
|
|
1240
1240
|
}
|
|
1241
1241
|
const key = keyBuilderFromType$b(luvio, input);
|
|
1242
1242
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
1243
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1243
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SemanticAuthoring", VERSION$q, RepresentationType$h, equals$q);
|
|
1244
1244
|
return createLink(key);
|
|
1245
1245
|
};
|
|
1246
|
-
function getTypeCacheKeys$
|
|
1246
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
1247
1247
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1248
1248
|
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
1249
1249
|
rootKeySet.set(rootKey, {
|
|
1250
1250
|
namespace: keyPrefix,
|
|
1251
|
-
representationName: RepresentationType$
|
|
1251
|
+
representationName: RepresentationType$h,
|
|
1252
1252
|
mergeable: false
|
|
1253
1253
|
});
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
|
-
const VERSION$
|
|
1256
|
+
const VERSION$p = "a6709a9f16e02d0d8e3d8423ebc79c2b";
|
|
1257
1257
|
function validate$U(obj, path = 'SemanticMetricCollectionOutputRepresentation') {
|
|
1258
1258
|
const v_error = (() => {
|
|
1259
1259
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1276,15 +1276,15 @@ function validate$U(obj, path = 'SemanticMetricCollectionOutputRepresentation')
|
|
|
1276
1276
|
})();
|
|
1277
1277
|
return v_error === undefined ? null : v_error;
|
|
1278
1278
|
}
|
|
1279
|
-
const RepresentationType$
|
|
1280
|
-
function normalize$
|
|
1279
|
+
const RepresentationType$g = 'SemanticMetricCollectionOutputRepresentation';
|
|
1280
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
1281
1281
|
const input_metrics = input.metrics;
|
|
1282
1282
|
const input_metrics_id = path.fullPath + '__metrics';
|
|
1283
1283
|
if (input_metrics !== undefined) {
|
|
1284
1284
|
for (let i = 0; i < input_metrics.length; i++) {
|
|
1285
1285
|
const input_metrics_item = input_metrics[i];
|
|
1286
1286
|
let input_metrics_item_id = input_metrics_id + '__' + i;
|
|
1287
|
-
input_metrics[i] = ingest$
|
|
1287
|
+
input_metrics[i] = ingest$h(input_metrics_item, {
|
|
1288
1288
|
fullPath: input_metrics_item_id,
|
|
1289
1289
|
propertyName: i,
|
|
1290
1290
|
parent: {
|
|
@@ -1298,10 +1298,10 @@ function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
return input;
|
|
1300
1300
|
}
|
|
1301
|
-
const select$
|
|
1301
|
+
const select$D = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
1302
1302
|
return {
|
|
1303
1303
|
kind: 'Fragment',
|
|
1304
|
-
version: VERSION$
|
|
1304
|
+
version: VERSION$p,
|
|
1305
1305
|
private: [],
|
|
1306
1306
|
selections: [
|
|
1307
1307
|
{
|
|
@@ -1309,12 +1309,12 @@ const select$y = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
1309
1309
|
kind: 'Link',
|
|
1310
1310
|
plural: true,
|
|
1311
1311
|
required: false,
|
|
1312
|
-
fragment: select$
|
|
1312
|
+
fragment: select$E()
|
|
1313
1313
|
}
|
|
1314
1314
|
]
|
|
1315
1315
|
};
|
|
1316
1316
|
};
|
|
1317
|
-
function equals$
|
|
1317
|
+
function equals$p(existing, incoming) {
|
|
1318
1318
|
const existing_metrics = existing.metrics;
|
|
1319
1319
|
const incoming_metrics = incoming.metrics;
|
|
1320
1320
|
// if at least one of these optionals is defined
|
|
@@ -1335,7 +1335,7 @@ function equals$m(existing, incoming) {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
return true;
|
|
1337
1337
|
}
|
|
1338
|
-
const ingest$
|
|
1338
|
+
const ingest$g = function SemanticMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1339
1339
|
if (process.env.NODE_ENV !== 'production') {
|
|
1340
1340
|
const validateError = validate$U(input);
|
|
1341
1341
|
if (validateError !== null) {
|
|
@@ -1344,41 +1344,41 @@ const ingest$f = function SemanticMetricCollectionOutputRepresentationIngest(inp
|
|
|
1344
1344
|
}
|
|
1345
1345
|
const key = path.fullPath;
|
|
1346
1346
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
1347
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1347
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SemanticAuthoring", VERSION$p, RepresentationType$g, equals$p);
|
|
1348
1348
|
return createLink(key);
|
|
1349
1349
|
};
|
|
1350
|
-
function getTypeCacheKeys$
|
|
1350
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
1351
1351
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1352
1352
|
const rootKey = fullPathFactory();
|
|
1353
1353
|
rootKeySet.set(rootKey, {
|
|
1354
1354
|
namespace: keyPrefix,
|
|
1355
|
-
representationName: RepresentationType$
|
|
1355
|
+
representationName: RepresentationType$g,
|
|
1356
1356
|
mergeable: false
|
|
1357
1357
|
});
|
|
1358
1358
|
if (input.metrics !== undefined) {
|
|
1359
1359
|
const input_metrics_length = input.metrics.length;
|
|
1360
1360
|
for (let i = 0; i < input_metrics_length; i++) {
|
|
1361
|
-
getTypeCacheKeys$
|
|
1361
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.metrics[i]);
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
1366
|
-
function select$
|
|
1367
|
-
return select$
|
|
1366
|
+
function select$C(luvio, params) {
|
|
1367
|
+
return select$D();
|
|
1368
1368
|
}
|
|
1369
|
-
function keyBuilder$
|
|
1370
|
-
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
1369
|
+
function keyBuilder$w(luvio, params) {
|
|
1370
|
+
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
1371
1371
|
}
|
|
1372
|
-
function getResponseCacheKeys$
|
|
1373
|
-
getTypeCacheKeys$
|
|
1372
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
1373
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$w(luvio, resourceParams));
|
|
1374
1374
|
}
|
|
1375
|
-
function ingestSuccess$
|
|
1375
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
1376
1376
|
const { body } = response;
|
|
1377
|
-
const key = keyBuilder$
|
|
1378
|
-
luvio.storeIngest(key, ingest$
|
|
1377
|
+
const key = keyBuilder$w(luvio, resourceParams);
|
|
1378
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
1379
1379
|
const snapshot = luvio.storeLookup({
|
|
1380
1380
|
recordId: key,
|
|
1381
|
-
node: select$
|
|
1381
|
+
node: select$C(),
|
|
1382
1382
|
variables: {},
|
|
1383
1383
|
}, snapshotRefresh);
|
|
1384
1384
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1389,113 +1389,115 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1389
1389
|
deepFreeze(snapshot.data);
|
|
1390
1390
|
return snapshot;
|
|
1391
1391
|
}
|
|
1392
|
-
function ingestError$
|
|
1393
|
-
const key = keyBuilder$
|
|
1392
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
1393
|
+
const key = keyBuilder$w(luvio, params);
|
|
1394
1394
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1395
1395
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1396
1396
|
return errorSnapshot;
|
|
1397
1397
|
}
|
|
1398
|
-
function createResourceRequest$
|
|
1398
|
+
function createResourceRequest$f(config) {
|
|
1399
1399
|
const headers = {};
|
|
1400
1400
|
return {
|
|
1401
|
-
baseUri: '/services/data/
|
|
1401
|
+
baseUri: '/services/data/v64.0',
|
|
1402
1402
|
basePath: '/ssot/semantic/metrics/' + config.urlParams.metricIds + '',
|
|
1403
1403
|
method: 'get',
|
|
1404
1404
|
body: null,
|
|
1405
1405
|
urlParams: config.urlParams,
|
|
1406
|
-
queryParams:
|
|
1406
|
+
queryParams: config.queryParams,
|
|
1407
1407
|
headers,
|
|
1408
1408
|
priority: 'normal',
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
1411
1411
|
|
|
1412
|
-
const adapterName$
|
|
1412
|
+
const adapterName$f = 'getSemanticMetricsByIds';
|
|
1413
1413
|
const getSemanticMetricsByIds_ConfigPropertyMetadata = [
|
|
1414
1414
|
generateParamConfigMetadata('metricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1415
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1416
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1415
1417
|
];
|
|
1416
|
-
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1417
|
-
const createResourceParams$
|
|
1418
|
-
function keyBuilder$
|
|
1419
|
-
const resourceParams = createResourceParams$
|
|
1420
|
-
return keyBuilder$
|
|
1418
|
+
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1419
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$g(getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1420
|
+
function keyBuilder$v(luvio, config) {
|
|
1421
|
+
const resourceParams = createResourceParams$f(config);
|
|
1422
|
+
return keyBuilder$w(luvio, resourceParams);
|
|
1421
1423
|
}
|
|
1422
|
-
function typeCheckConfig$
|
|
1424
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
1423
1425
|
const config = {};
|
|
1424
|
-
typeCheckConfig$
|
|
1426
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1425
1427
|
return config;
|
|
1426
1428
|
}
|
|
1427
|
-
function validateAdapterConfig$
|
|
1429
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
1428
1430
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1429
1431
|
return null;
|
|
1430
1432
|
}
|
|
1431
1433
|
if (process.env.NODE_ENV !== 'production') {
|
|
1432
1434
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1433
1435
|
}
|
|
1434
|
-
const config = typeCheckConfig$
|
|
1436
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
1435
1437
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1436
1438
|
return null;
|
|
1437
1439
|
}
|
|
1438
1440
|
return config;
|
|
1439
1441
|
}
|
|
1440
|
-
function adapterFragment$
|
|
1441
|
-
createResourceParams$
|
|
1442
|
-
return select$
|
|
1442
|
+
function adapterFragment$9(luvio, config) {
|
|
1443
|
+
createResourceParams$f(config);
|
|
1444
|
+
return select$C();
|
|
1443
1445
|
}
|
|
1444
|
-
function onFetchResponseSuccess$
|
|
1445
|
-
const snapshot = ingestSuccess$
|
|
1446
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
1447
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
1446
1448
|
config,
|
|
1447
|
-
resolve: () => buildNetworkSnapshot$
|
|
1449
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
1448
1450
|
});
|
|
1449
1451
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1450
1452
|
}
|
|
1451
|
-
function onFetchResponseError$
|
|
1452
|
-
const snapshot = ingestError$
|
|
1453
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
1454
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
1453
1455
|
config,
|
|
1454
|
-
resolve: () => buildNetworkSnapshot$
|
|
1456
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
1455
1457
|
});
|
|
1456
1458
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1457
1459
|
}
|
|
1458
|
-
function buildNetworkSnapshot$
|
|
1459
|
-
const resourceParams = createResourceParams$
|
|
1460
|
-
const request = createResourceRequest$
|
|
1460
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
1461
|
+
const resourceParams = createResourceParams$f(config);
|
|
1462
|
+
const request = createResourceRequest$f(resourceParams);
|
|
1461
1463
|
return luvio.dispatchResourceRequest(request, options)
|
|
1462
1464
|
.then((response) => {
|
|
1463
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1465
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
1464
1466
|
const cache = new StoreKeyMap();
|
|
1465
|
-
getResponseCacheKeys$
|
|
1467
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
1466
1468
|
return cache;
|
|
1467
1469
|
});
|
|
1468
1470
|
}, (response) => {
|
|
1469
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1471
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
1470
1472
|
});
|
|
1471
1473
|
}
|
|
1472
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1473
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1474
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
1475
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
1474
1476
|
}
|
|
1475
|
-
function buildCachedSnapshotCachePolicy$
|
|
1477
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
1476
1478
|
const { luvio, config } = context;
|
|
1477
1479
|
const selector = {
|
|
1478
|
-
recordId: keyBuilder$
|
|
1479
|
-
node: adapterFragment$
|
|
1480
|
+
recordId: keyBuilder$v(luvio, config),
|
|
1481
|
+
node: adapterFragment$9(luvio, config),
|
|
1480
1482
|
variables: {},
|
|
1481
1483
|
};
|
|
1482
1484
|
const cacheSnapshot = storeLookup(selector, {
|
|
1483
1485
|
config,
|
|
1484
|
-
resolve: () => buildNetworkSnapshot$
|
|
1486
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
1485
1487
|
});
|
|
1486
1488
|
return cacheSnapshot;
|
|
1487
1489
|
}
|
|
1488
1490
|
const getSemanticMetricsByIdsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsByIds(untrustedConfig, requestContext) {
|
|
1489
|
-
const config = validateAdapterConfig$
|
|
1491
|
+
const config = validateAdapterConfig$f(untrustedConfig, getSemanticMetricsByIds_ConfigPropertyNames);
|
|
1490
1492
|
// Invalid or incomplete config
|
|
1491
1493
|
if (config === null) {
|
|
1492
1494
|
return null;
|
|
1493
1495
|
}
|
|
1494
1496
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1495
|
-
buildCachedSnapshotCachePolicy$
|
|
1497
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
1496
1498
|
};
|
|
1497
1499
|
|
|
1498
|
-
const VERSION$
|
|
1500
|
+
const VERSION$o = "3a32d382e7a2268096278aa8e5c6761a";
|
|
1499
1501
|
function validate$T(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
1500
1502
|
const v_error = (() => {
|
|
1501
1503
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1516,10 +1518,10 @@ function validate$T(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
1516
1518
|
})();
|
|
1517
1519
|
return v_error === undefined ? null : v_error;
|
|
1518
1520
|
}
|
|
1519
|
-
const select$
|
|
1521
|
+
const select$B = function SemanticBaseModelOutputRepresentationSelect() {
|
|
1520
1522
|
return {
|
|
1521
1523
|
kind: 'Fragment',
|
|
1522
|
-
version: VERSION$
|
|
1524
|
+
version: VERSION$o,
|
|
1523
1525
|
private: [],
|
|
1524
1526
|
selections: [
|
|
1525
1527
|
{
|
|
@@ -1534,7 +1536,7 @@ const select$w = function SemanticBaseModelOutputRepresentationSelect() {
|
|
|
1534
1536
|
]
|
|
1535
1537
|
};
|
|
1536
1538
|
};
|
|
1537
|
-
function equals$
|
|
1539
|
+
function equals$o(existing, incoming) {
|
|
1538
1540
|
const existing_apiName = existing.apiName;
|
|
1539
1541
|
const incoming_apiName = incoming.apiName;
|
|
1540
1542
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -1556,7 +1558,7 @@ function equals$l(existing, incoming) {
|
|
|
1556
1558
|
return true;
|
|
1557
1559
|
}
|
|
1558
1560
|
|
|
1559
|
-
const VERSION$
|
|
1561
|
+
const VERSION$n = "c9079354cd8127a37c0c13ea6686383c";
|
|
1560
1562
|
function validate$S(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
1561
1563
|
const v_error = (() => {
|
|
1562
1564
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1761,11 +1763,11 @@ function validate$S(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
1761
1763
|
})();
|
|
1762
1764
|
return v_error === undefined ? null : v_error;
|
|
1763
1765
|
}
|
|
1764
|
-
const select$
|
|
1765
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
1766
|
+
const select$A = function SemanticModelPartialOutputRepresentationSelect() {
|
|
1767
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$B();
|
|
1766
1768
|
return {
|
|
1767
1769
|
kind: 'Fragment',
|
|
1768
|
-
version: VERSION$
|
|
1770
|
+
version: VERSION$n,
|
|
1769
1771
|
private: [],
|
|
1770
1772
|
selections: [
|
|
1771
1773
|
{
|
|
@@ -1889,7 +1891,7 @@ const select$v = function SemanticModelPartialOutputRepresentationSelect() {
|
|
|
1889
1891
|
]
|
|
1890
1892
|
};
|
|
1891
1893
|
};
|
|
1892
|
-
function equals$
|
|
1894
|
+
function equals$n(existing, incoming) {
|
|
1893
1895
|
const existing_isLocked = existing.isLocked;
|
|
1894
1896
|
const incoming_isLocked = incoming.isLocked;
|
|
1895
1897
|
// if at least one of these optionals is defined
|
|
@@ -2133,7 +2135,7 @@ function equals$k(existing, incoming) {
|
|
|
2133
2135
|
return false;
|
|
2134
2136
|
}
|
|
2135
2137
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
2136
|
-
if (!(equals$
|
|
2138
|
+
if (!(equals$o(existing_baseModels_item, incoming_baseModels_item))) {
|
|
2137
2139
|
return false;
|
|
2138
2140
|
}
|
|
2139
2141
|
});
|
|
@@ -2175,7 +2177,7 @@ function equals$k(existing, incoming) {
|
|
|
2175
2177
|
return true;
|
|
2176
2178
|
}
|
|
2177
2179
|
|
|
2178
|
-
const VERSION$
|
|
2180
|
+
const VERSION$m = "198423ec58354256cc7ea6f4661ef669";
|
|
2179
2181
|
function validate$R(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
2180
2182
|
const v_error = (() => {
|
|
2181
2183
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2295,15 +2297,15 @@ function validate$R(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
|
2295
2297
|
})();
|
|
2296
2298
|
return v_error === undefined ? null : v_error;
|
|
2297
2299
|
}
|
|
2298
|
-
const RepresentationType$
|
|
2299
|
-
function normalize$
|
|
2300
|
+
const RepresentationType$f = 'SemanticModelCollectionOutputRepresentation';
|
|
2301
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
2300
2302
|
return input;
|
|
2301
2303
|
}
|
|
2302
|
-
const select$
|
|
2303
|
-
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$
|
|
2304
|
+
const select$z = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
2305
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$A();
|
|
2304
2306
|
return {
|
|
2305
2307
|
kind: 'Fragment',
|
|
2306
|
-
version: VERSION$
|
|
2308
|
+
version: VERSION$m,
|
|
2307
2309
|
private: [],
|
|
2308
2310
|
selections: [
|
|
2309
2311
|
{
|
|
@@ -2339,7 +2341,7 @@ const select$u = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
|
2339
2341
|
]
|
|
2340
2342
|
};
|
|
2341
2343
|
};
|
|
2342
|
-
function equals$
|
|
2344
|
+
function equals$m(existing, incoming) {
|
|
2343
2345
|
const existing_count = existing.count;
|
|
2344
2346
|
const incoming_count = incoming.count;
|
|
2345
2347
|
if (!(existing_count === incoming_count)) {
|
|
@@ -2373,7 +2375,7 @@ function equals$j(existing, incoming) {
|
|
|
2373
2375
|
return false;
|
|
2374
2376
|
}
|
|
2375
2377
|
const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
|
|
2376
|
-
if (!(equals$
|
|
2378
|
+
if (!(equals$n(existing_items_item, incoming_items_item))) {
|
|
2377
2379
|
return false;
|
|
2378
2380
|
}
|
|
2379
2381
|
});
|
|
@@ -2409,7 +2411,7 @@ function equals$j(existing, incoming) {
|
|
|
2409
2411
|
}
|
|
2410
2412
|
return true;
|
|
2411
2413
|
}
|
|
2412
|
-
const ingest$
|
|
2414
|
+
const ingest$f = function SemanticModelCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2413
2415
|
if (process.env.NODE_ENV !== 'production') {
|
|
2414
2416
|
const validateError = validate$R(input);
|
|
2415
2417
|
if (validateError !== null) {
|
|
@@ -2418,35 +2420,35 @@ const ingest$e = function SemanticModelCollectionOutputRepresentationIngest(inpu
|
|
|
2418
2420
|
}
|
|
2419
2421
|
const key = path.fullPath;
|
|
2420
2422
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
2421
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2423
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SemanticAuthoring", VERSION$m, RepresentationType$f, equals$m);
|
|
2422
2424
|
return createLink(key);
|
|
2423
2425
|
};
|
|
2424
|
-
function getTypeCacheKeys$
|
|
2426
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
2425
2427
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2426
2428
|
const rootKey = fullPathFactory();
|
|
2427
2429
|
rootKeySet.set(rootKey, {
|
|
2428
2430
|
namespace: keyPrefix,
|
|
2429
|
-
representationName: RepresentationType$
|
|
2431
|
+
representationName: RepresentationType$f,
|
|
2430
2432
|
mergeable: false
|
|
2431
2433
|
});
|
|
2432
2434
|
}
|
|
2433
2435
|
|
|
2434
|
-
function select$
|
|
2435
|
-
return select$
|
|
2436
|
+
function select$y(luvio, params) {
|
|
2437
|
+
return select$z();
|
|
2436
2438
|
}
|
|
2437
|
-
function keyBuilder$
|
|
2439
|
+
function keyBuilder$u(luvio, params) {
|
|
2438
2440
|
return keyPrefix + '::SemanticModelCollectionOutputRepresentation:(' + 'app:' + params.queryParams.app + ',' + 'category:' + params.queryParams.category + ',' + 'dataspace:' + params.queryParams.dataspace + ',' + 'label:' + params.queryParams.label + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'sourceCreation:' + params.queryParams.sourceCreation + ',' + 'sourceCreationName:' + params.queryParams.sourceCreationName + ')';
|
|
2439
2441
|
}
|
|
2440
|
-
function getResponseCacheKeys$
|
|
2441
|
-
getTypeCacheKeys$
|
|
2442
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
2443
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$u(luvio, resourceParams));
|
|
2442
2444
|
}
|
|
2443
|
-
function ingestSuccess$
|
|
2445
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
2444
2446
|
const { body } = response;
|
|
2445
|
-
const key = keyBuilder$
|
|
2446
|
-
luvio.storeIngest(key, ingest$
|
|
2447
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
2448
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
2447
2449
|
const snapshot = luvio.storeLookup({
|
|
2448
2450
|
recordId: key,
|
|
2449
|
-
node: select$
|
|
2451
|
+
node: select$y(),
|
|
2450
2452
|
variables: {},
|
|
2451
2453
|
}, snapshotRefresh);
|
|
2452
2454
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2457,16 +2459,16 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2457
2459
|
deepFreeze(snapshot.data);
|
|
2458
2460
|
return snapshot;
|
|
2459
2461
|
}
|
|
2460
|
-
function ingestError$
|
|
2461
|
-
const key = keyBuilder$
|
|
2462
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
2463
|
+
const key = keyBuilder$u(luvio, params);
|
|
2462
2464
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2463
2465
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2464
2466
|
return errorSnapshot;
|
|
2465
2467
|
}
|
|
2466
|
-
function createResourceRequest$
|
|
2468
|
+
function createResourceRequest$e(config) {
|
|
2467
2469
|
const headers = {};
|
|
2468
2470
|
return {
|
|
2469
|
-
baseUri: '/services/data/
|
|
2471
|
+
baseUri: '/services/data/v64.0',
|
|
2470
2472
|
basePath: '/ssot/semantic/models',
|
|
2471
2473
|
method: 'get',
|
|
2472
2474
|
body: null,
|
|
@@ -2477,7 +2479,7 @@ function createResourceRequest$b(config) {
|
|
|
2477
2479
|
};
|
|
2478
2480
|
}
|
|
2479
2481
|
|
|
2480
|
-
const adapterName$
|
|
2482
|
+
const adapterName$e = 'getSemanticModels';
|
|
2481
2483
|
const getSemanticModels_ConfigPropertyMetadata = [
|
|
2482
2484
|
generateParamConfigMetadata('app', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2483
2485
|
generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -2489,86 +2491,86 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
2489
2491
|
generateParamConfigMetadata('sourceCreation', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2490
2492
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2491
2493
|
];
|
|
2492
|
-
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2493
|
-
const createResourceParams$
|
|
2494
|
-
function keyBuilder$
|
|
2495
|
-
const resourceParams = createResourceParams$
|
|
2496
|
-
return keyBuilder$
|
|
2494
|
+
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSemanticModels_ConfigPropertyMetadata);
|
|
2495
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$g(getSemanticModels_ConfigPropertyMetadata);
|
|
2496
|
+
function keyBuilder$t(luvio, config) {
|
|
2497
|
+
const resourceParams = createResourceParams$e(config);
|
|
2498
|
+
return keyBuilder$u(luvio, resourceParams);
|
|
2497
2499
|
}
|
|
2498
|
-
function typeCheckConfig$
|
|
2500
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
2499
2501
|
const config = {};
|
|
2500
|
-
typeCheckConfig$
|
|
2502
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
2501
2503
|
return config;
|
|
2502
2504
|
}
|
|
2503
|
-
function validateAdapterConfig$
|
|
2505
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
2504
2506
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2505
2507
|
return null;
|
|
2506
2508
|
}
|
|
2507
2509
|
if (process.env.NODE_ENV !== 'production') {
|
|
2508
2510
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2509
2511
|
}
|
|
2510
|
-
const config = typeCheckConfig$
|
|
2512
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
2511
2513
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2512
2514
|
return null;
|
|
2513
2515
|
}
|
|
2514
2516
|
return config;
|
|
2515
2517
|
}
|
|
2516
|
-
function adapterFragment$
|
|
2517
|
-
createResourceParams$
|
|
2518
|
-
return select$
|
|
2518
|
+
function adapterFragment$8(luvio, config) {
|
|
2519
|
+
createResourceParams$e(config);
|
|
2520
|
+
return select$y();
|
|
2519
2521
|
}
|
|
2520
|
-
function onFetchResponseSuccess$
|
|
2521
|
-
const snapshot = ingestSuccess$
|
|
2522
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
2523
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
2522
2524
|
config,
|
|
2523
|
-
resolve: () => buildNetworkSnapshot$
|
|
2525
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2524
2526
|
});
|
|
2525
2527
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2526
2528
|
}
|
|
2527
|
-
function onFetchResponseError$
|
|
2528
|
-
const snapshot = ingestError$
|
|
2529
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
2530
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
2529
2531
|
config,
|
|
2530
|
-
resolve: () => buildNetworkSnapshot$
|
|
2532
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2531
2533
|
});
|
|
2532
2534
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2533
2535
|
}
|
|
2534
|
-
function buildNetworkSnapshot$
|
|
2535
|
-
const resourceParams = createResourceParams$
|
|
2536
|
-
const request = createResourceRequest$
|
|
2536
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
2537
|
+
const resourceParams = createResourceParams$e(config);
|
|
2538
|
+
const request = createResourceRequest$e(resourceParams);
|
|
2537
2539
|
return luvio.dispatchResourceRequest(request, options)
|
|
2538
2540
|
.then((response) => {
|
|
2539
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2541
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
2540
2542
|
const cache = new StoreKeyMap();
|
|
2541
|
-
getResponseCacheKeys$
|
|
2543
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
2542
2544
|
return cache;
|
|
2543
2545
|
});
|
|
2544
2546
|
}, (response) => {
|
|
2545
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2547
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
2546
2548
|
});
|
|
2547
2549
|
}
|
|
2548
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2549
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2550
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
2551
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
2550
2552
|
}
|
|
2551
|
-
function buildCachedSnapshotCachePolicy$
|
|
2553
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
2552
2554
|
const { luvio, config } = context;
|
|
2553
2555
|
const selector = {
|
|
2554
|
-
recordId: keyBuilder$
|
|
2555
|
-
node: adapterFragment$
|
|
2556
|
+
recordId: keyBuilder$t(luvio, config),
|
|
2557
|
+
node: adapterFragment$8(luvio, config),
|
|
2556
2558
|
variables: {},
|
|
2557
2559
|
};
|
|
2558
2560
|
const cacheSnapshot = storeLookup(selector, {
|
|
2559
2561
|
config,
|
|
2560
|
-
resolve: () => buildNetworkSnapshot$
|
|
2562
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2561
2563
|
});
|
|
2562
2564
|
return cacheSnapshot;
|
|
2563
2565
|
}
|
|
2564
2566
|
const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
|
|
2565
|
-
const config = validateAdapterConfig$
|
|
2567
|
+
const config = validateAdapterConfig$e(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
2566
2568
|
// Invalid or incomplete config
|
|
2567
2569
|
if (config === null) {
|
|
2568
2570
|
return null;
|
|
2569
2571
|
}
|
|
2570
2572
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2571
|
-
buildCachedSnapshotCachePolicy$
|
|
2573
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
2572
2574
|
};
|
|
2573
2575
|
|
|
2574
2576
|
function validate$Q(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
@@ -4108,7 +4110,7 @@ function validate$t(obj, path = 'SemanticParameterInputRepresentation') {
|
|
|
4108
4110
|
return v_error === undefined ? null : v_error;
|
|
4109
4111
|
}
|
|
4110
4112
|
|
|
4111
|
-
const VERSION$
|
|
4113
|
+
const VERSION$l = "51514a172af5e420504a2143725b4528";
|
|
4112
4114
|
function validate$s(obj, path = 'SemanticCalculatedDimensionOutputRepresentation') {
|
|
4113
4115
|
const v_error = (() => {
|
|
4114
4116
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4259,24 +4261,24 @@ function validate$s(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4259
4261
|
})();
|
|
4260
4262
|
return v_error === undefined ? null : v_error;
|
|
4261
4263
|
}
|
|
4262
|
-
const RepresentationType$
|
|
4263
|
-
function keyBuilder$
|
|
4264
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4264
|
+
const RepresentationType$e = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
4265
|
+
function keyBuilder$s(luvio, config) {
|
|
4266
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.name;
|
|
4265
4267
|
}
|
|
4266
4268
|
function keyBuilderFromType$a(luvio, object) {
|
|
4267
4269
|
const keyParams = {
|
|
4268
4270
|
name: object.id
|
|
4269
4271
|
};
|
|
4270
|
-
return keyBuilder$
|
|
4272
|
+
return keyBuilder$s(luvio, keyParams);
|
|
4271
4273
|
}
|
|
4272
|
-
function normalize$
|
|
4274
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4273
4275
|
return input;
|
|
4274
4276
|
}
|
|
4275
|
-
const select$
|
|
4276
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4277
|
+
const select$x = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
4278
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$I();
|
|
4277
4279
|
return {
|
|
4278
4280
|
kind: 'Fragment',
|
|
4279
|
-
version: VERSION$
|
|
4281
|
+
version: VERSION$l,
|
|
4280
4282
|
private: [],
|
|
4281
4283
|
selections: [
|
|
4282
4284
|
{
|
|
@@ -4380,7 +4382,7 @@ const select$s = function SemanticCalculatedDimensionOutputRepresentationSelect(
|
|
|
4380
4382
|
]
|
|
4381
4383
|
};
|
|
4382
4384
|
};
|
|
4383
|
-
function equals$
|
|
4385
|
+
function equals$l(existing, incoming) {
|
|
4384
4386
|
const existing_isVisible = existing.isVisible;
|
|
4385
4387
|
const incoming_isVisible = incoming.isVisible;
|
|
4386
4388
|
// if at least one of these optionals is defined
|
|
@@ -4606,7 +4608,7 @@ function equals$i(existing, incoming) {
|
|
|
4606
4608
|
return false;
|
|
4607
4609
|
}
|
|
4608
4610
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
4609
|
-
if (!(equals$
|
|
4611
|
+
if (!(equals$u(existing_filters_item, incoming_filters_item))) {
|
|
4610
4612
|
return false;
|
|
4611
4613
|
}
|
|
4612
4614
|
});
|
|
@@ -4616,7 +4618,7 @@ function equals$i(existing, incoming) {
|
|
|
4616
4618
|
}
|
|
4617
4619
|
return true;
|
|
4618
4620
|
}
|
|
4619
|
-
const ingest$
|
|
4621
|
+
const ingest$e = function SemanticCalculatedDimensionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4620
4622
|
if (process.env.NODE_ENV !== 'production') {
|
|
4621
4623
|
const validateError = validate$s(input);
|
|
4622
4624
|
if (validateError !== null) {
|
|
@@ -4625,20 +4627,20 @@ const ingest$d = function SemanticCalculatedDimensionOutputRepresentationIngest(
|
|
|
4625
4627
|
}
|
|
4626
4628
|
const key = keyBuilderFromType$a(luvio, input);
|
|
4627
4629
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
4628
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4630
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SemanticAuthoring", VERSION$l, RepresentationType$e, equals$l);
|
|
4629
4631
|
return createLink(key);
|
|
4630
4632
|
};
|
|
4631
|
-
function getTypeCacheKeys$
|
|
4633
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
4632
4634
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4633
4635
|
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
4634
4636
|
rootKeySet.set(rootKey, {
|
|
4635
4637
|
namespace: keyPrefix,
|
|
4636
|
-
representationName: RepresentationType$
|
|
4638
|
+
representationName: RepresentationType$e,
|
|
4637
4639
|
mergeable: false
|
|
4638
4640
|
});
|
|
4639
4641
|
}
|
|
4640
4642
|
|
|
4641
|
-
const VERSION$
|
|
4643
|
+
const VERSION$k = "6c8d910667cf399d3aa6e5a57e1fdd61";
|
|
4642
4644
|
function validate$r(obj, path = 'SemanticCalculatedMeasurementOutputRepresentation') {
|
|
4643
4645
|
const v_error = (() => {
|
|
4644
4646
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4831,24 +4833,24 @@ function validate$r(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
4831
4833
|
})();
|
|
4832
4834
|
return v_error === undefined ? null : v_error;
|
|
4833
4835
|
}
|
|
4834
|
-
const RepresentationType$
|
|
4835
|
-
function keyBuilder$
|
|
4836
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4836
|
+
const RepresentationType$d = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
4837
|
+
function keyBuilder$r(luvio, config) {
|
|
4838
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
4837
4839
|
}
|
|
4838
4840
|
function keyBuilderFromType$9(luvio, object) {
|
|
4839
4841
|
const keyParams = {
|
|
4840
4842
|
name: object.id
|
|
4841
4843
|
};
|
|
4842
|
-
return keyBuilder$
|
|
4844
|
+
return keyBuilder$r(luvio, keyParams);
|
|
4843
4845
|
}
|
|
4844
|
-
function normalize$
|
|
4846
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
4845
4847
|
return input;
|
|
4846
4848
|
}
|
|
4847
|
-
const select$
|
|
4848
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4849
|
+
const select$w = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
4850
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$I();
|
|
4849
4851
|
return {
|
|
4850
4852
|
kind: 'Fragment',
|
|
4851
|
-
version: VERSION$
|
|
4853
|
+
version: VERSION$k,
|
|
4852
4854
|
private: [],
|
|
4853
4855
|
selections: [
|
|
4854
4856
|
{
|
|
@@ -4982,7 +4984,7 @@ const select$r = function SemanticCalculatedMeasurementOutputRepresentationSelec
|
|
|
4982
4984
|
]
|
|
4983
4985
|
};
|
|
4984
4986
|
};
|
|
4985
|
-
function equals$
|
|
4987
|
+
function equals$k(existing, incoming) {
|
|
4986
4988
|
const existing_isAggregatable = existing.isAggregatable;
|
|
4987
4989
|
const incoming_isAggregatable = incoming.isAggregatable;
|
|
4988
4990
|
// if at least one of these optionals is defined
|
|
@@ -5286,7 +5288,7 @@ function equals$h(existing, incoming) {
|
|
|
5286
5288
|
return false;
|
|
5287
5289
|
}
|
|
5288
5290
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
5289
|
-
if (!(equals$
|
|
5291
|
+
if (!(equals$u(existing_filters_item, incoming_filters_item))) {
|
|
5290
5292
|
return false;
|
|
5291
5293
|
}
|
|
5292
5294
|
});
|
|
@@ -5296,7 +5298,7 @@ function equals$h(existing, incoming) {
|
|
|
5296
5298
|
}
|
|
5297
5299
|
return true;
|
|
5298
5300
|
}
|
|
5299
|
-
const ingest$
|
|
5301
|
+
const ingest$d = function SemanticCalculatedMeasurementOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5300
5302
|
if (process.env.NODE_ENV !== 'production') {
|
|
5301
5303
|
const validateError = validate$r(input);
|
|
5302
5304
|
if (validateError !== null) {
|
|
@@ -5305,15 +5307,15 @@ const ingest$c = function SemanticCalculatedMeasurementOutputRepresentationInges
|
|
|
5305
5307
|
}
|
|
5306
5308
|
const key = keyBuilderFromType$9(luvio, input);
|
|
5307
5309
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5308
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5310
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SemanticAuthoring", VERSION$k, RepresentationType$d, equals$k);
|
|
5309
5311
|
return createLink(key);
|
|
5310
5312
|
};
|
|
5311
|
-
function getTypeCacheKeys$
|
|
5313
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
5312
5314
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5313
5315
|
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
5314
5316
|
rootKeySet.set(rootKey, {
|
|
5315
5317
|
namespace: keyPrefix,
|
|
5316
|
-
representationName: RepresentationType$
|
|
5318
|
+
representationName: RepresentationType$d,
|
|
5317
5319
|
mergeable: false
|
|
5318
5320
|
});
|
|
5319
5321
|
}
|
|
@@ -5635,7 +5637,7 @@ function validate$p(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
5635
5637
|
return v_error === undefined ? null : v_error;
|
|
5636
5638
|
}
|
|
5637
5639
|
|
|
5638
|
-
const VERSION$
|
|
5640
|
+
const VERSION$j = "4f111b93807b811179eb310384efdc35";
|
|
5639
5641
|
function validate$o(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
5640
5642
|
const v_error = (() => {
|
|
5641
5643
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5806,34 +5808,34 @@ function validate$o(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5806
5808
|
})();
|
|
5807
5809
|
return v_error === undefined ? null : v_error;
|
|
5808
5810
|
}
|
|
5809
|
-
const RepresentationType$
|
|
5810
|
-
function keyBuilder$
|
|
5811
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5811
|
+
const RepresentationType$c = 'SemanticDataObjectOutputRepresentation';
|
|
5812
|
+
function keyBuilder$q(luvio, config) {
|
|
5813
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
|
|
5812
5814
|
}
|
|
5813
5815
|
function keyBuilderFromType$8(luvio, object) {
|
|
5814
5816
|
const keyParams = {
|
|
5815
5817
|
name: object.id
|
|
5816
5818
|
};
|
|
5817
|
-
return keyBuilder$
|
|
5819
|
+
return keyBuilder$q(luvio, keyParams);
|
|
5818
5820
|
}
|
|
5819
|
-
function normalize$
|
|
5821
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
5820
5822
|
return input;
|
|
5821
5823
|
}
|
|
5822
|
-
const select$
|
|
5824
|
+
const select$v = function SemanticDataObjectOutputRepresentationSelect() {
|
|
5823
5825
|
return {
|
|
5824
5826
|
kind: 'Fragment',
|
|
5825
|
-
version: VERSION$
|
|
5827
|
+
version: VERSION$j,
|
|
5826
5828
|
private: [],
|
|
5827
5829
|
opaque: true
|
|
5828
5830
|
};
|
|
5829
5831
|
};
|
|
5830
|
-
function equals$
|
|
5832
|
+
function equals$j(existing, incoming) {
|
|
5831
5833
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5832
5834
|
return false;
|
|
5833
5835
|
}
|
|
5834
5836
|
return true;
|
|
5835
5837
|
}
|
|
5836
|
-
const ingest$
|
|
5838
|
+
const ingest$c = function SemanticDataObjectOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5837
5839
|
if (process.env.NODE_ENV !== 'production') {
|
|
5838
5840
|
const validateError = validate$o(input);
|
|
5839
5841
|
if (validateError !== null) {
|
|
@@ -5842,20 +5844,20 @@ const ingest$b = function SemanticDataObjectOutputRepresentationIngest(input, pa
|
|
|
5842
5844
|
}
|
|
5843
5845
|
const key = keyBuilderFromType$8(luvio, input);
|
|
5844
5846
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5845
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5847
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SemanticAuthoring", VERSION$j, RepresentationType$c, equals$j);
|
|
5846
5848
|
return createLink(key);
|
|
5847
5849
|
};
|
|
5848
|
-
function getTypeCacheKeys$
|
|
5850
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
5849
5851
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5850
5852
|
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
5851
5853
|
rootKeySet.set(rootKey, {
|
|
5852
5854
|
namespace: keyPrefix,
|
|
5853
|
-
representationName: RepresentationType$
|
|
5855
|
+
representationName: RepresentationType$c,
|
|
5854
5856
|
mergeable: false
|
|
5855
5857
|
});
|
|
5856
5858
|
}
|
|
5857
5859
|
|
|
5858
|
-
const VERSION$
|
|
5860
|
+
const VERSION$i = "ed64ca1a99171ace8b53aff11746cc2a";
|
|
5859
5861
|
function validate$n(obj, path = 'BinDimensionConfigurationOutputRepresentation') {
|
|
5860
5862
|
const v_error = (() => {
|
|
5861
5863
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5865,10 +5867,10 @@ function validate$n(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
5865
5867
|
})();
|
|
5866
5868
|
return v_error === undefined ? null : v_error;
|
|
5867
5869
|
}
|
|
5868
|
-
const select$
|
|
5870
|
+
const select$u = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
5869
5871
|
return {
|
|
5870
5872
|
kind: 'Fragment',
|
|
5871
|
-
version: VERSION$
|
|
5873
|
+
version: VERSION$i,
|
|
5872
5874
|
private: [],
|
|
5873
5875
|
selections: [
|
|
5874
5876
|
{
|
|
@@ -5878,7 +5880,7 @@ const select$p = function BinDimensionConfigurationOutputRepresentationSelect()
|
|
|
5878
5880
|
]
|
|
5879
5881
|
};
|
|
5880
5882
|
};
|
|
5881
|
-
function equals$
|
|
5883
|
+
function equals$i(existing, incoming) {
|
|
5882
5884
|
const existing_constantBinSize = existing.constantBinSize;
|
|
5883
5885
|
const incoming_constantBinSize = incoming.constantBinSize;
|
|
5884
5886
|
if (!(existing_constantBinSize === incoming_constantBinSize)) {
|
|
@@ -5887,7 +5889,7 @@ function equals$f(existing, incoming) {
|
|
|
5887
5889
|
return true;
|
|
5888
5890
|
}
|
|
5889
5891
|
|
|
5890
|
-
const VERSION$
|
|
5892
|
+
const VERSION$h = "2cdadcd630abb7b981b2d131880a68c0";
|
|
5891
5893
|
function validate$m(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
5892
5894
|
const v_error = (() => {
|
|
5893
5895
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5915,10 +5917,10 @@ function validate$m(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
5915
5917
|
})();
|
|
5916
5918
|
return v_error === undefined ? null : v_error;
|
|
5917
5919
|
}
|
|
5918
|
-
const select$
|
|
5920
|
+
const select$t = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
5919
5921
|
return {
|
|
5920
5922
|
kind: 'Fragment',
|
|
5921
|
-
version: VERSION$
|
|
5923
|
+
version: VERSION$h,
|
|
5922
5924
|
private: [],
|
|
5923
5925
|
selections: [
|
|
5924
5926
|
{
|
|
@@ -5934,7 +5936,7 @@ const select$o = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
|
5934
5936
|
]
|
|
5935
5937
|
};
|
|
5936
5938
|
};
|
|
5937
|
-
function equals$
|
|
5939
|
+
function equals$h(existing, incoming) {
|
|
5938
5940
|
const existing_name = existing.name;
|
|
5939
5941
|
const incoming_name = incoming.name;
|
|
5940
5942
|
if (!(existing_name === incoming_name)) {
|
|
@@ -5961,7 +5963,7 @@ function equals$e(existing, incoming) {
|
|
|
5961
5963
|
return true;
|
|
5962
5964
|
}
|
|
5963
5965
|
|
|
5964
|
-
const VERSION$
|
|
5966
|
+
const VERSION$g = "55c60b6207985632192cb4e419822a86";
|
|
5965
5967
|
function validate$l(obj, path = 'GroupDimensionConfigurationOutputRepresentation') {
|
|
5966
5968
|
const v_error = (() => {
|
|
5967
5969
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5994,11 +5996,11 @@ function validate$l(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
5994
5996
|
})();
|
|
5995
5997
|
return v_error === undefined ? null : v_error;
|
|
5996
5998
|
}
|
|
5997
|
-
const select$
|
|
5998
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
5999
|
+
const select$s = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
6000
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$t();
|
|
5999
6001
|
return {
|
|
6000
6002
|
kind: 'Fragment',
|
|
6001
|
-
version: VERSION$
|
|
6003
|
+
version: VERSION$g,
|
|
6002
6004
|
private: [],
|
|
6003
6005
|
selections: [
|
|
6004
6006
|
{
|
|
@@ -6016,7 +6018,7 @@ const select$n = function GroupDimensionConfigurationOutputRepresentationSelect(
|
|
|
6016
6018
|
]
|
|
6017
6019
|
};
|
|
6018
6020
|
};
|
|
6019
|
-
function equals$
|
|
6021
|
+
function equals$g(existing, incoming) {
|
|
6020
6022
|
const existing_ungroupedValuesGroupName = existing.ungroupedValuesGroupName;
|
|
6021
6023
|
const incoming_ungroupedValuesGroupName = incoming.ungroupedValuesGroupName;
|
|
6022
6024
|
// if at least one of these optionals is defined
|
|
@@ -6040,7 +6042,7 @@ function equals$d(existing, incoming) {
|
|
|
6040
6042
|
return false;
|
|
6041
6043
|
}
|
|
6042
6044
|
const equals_groups_items = equalsArray(existing_groups, incoming_groups, (existing_groups_item, incoming_groups_item) => {
|
|
6043
|
-
if (!(equals$
|
|
6045
|
+
if (!(equals$h(existing_groups_item, incoming_groups_item))) {
|
|
6044
6046
|
return false;
|
|
6045
6047
|
}
|
|
6046
6048
|
});
|
|
@@ -6051,7 +6053,7 @@ function equals$d(existing, incoming) {
|
|
|
6051
6053
|
return true;
|
|
6052
6054
|
}
|
|
6053
6055
|
|
|
6054
|
-
const VERSION$
|
|
6056
|
+
const VERSION$f = "50dc390b159159afb1945b9a811c9f80";
|
|
6055
6057
|
function validate$k(obj, path = 'SemanticGroupingConfigurationOutputRepresentation') {
|
|
6056
6058
|
const v_error = (() => {
|
|
6057
6059
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6080,12 +6082,12 @@ function validate$k(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6080
6082
|
})();
|
|
6081
6083
|
return v_error === undefined ? null : v_error;
|
|
6082
6084
|
}
|
|
6083
|
-
const select$
|
|
6084
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6085
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6085
|
+
const select$r = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
6086
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$u();
|
|
6087
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$s();
|
|
6086
6088
|
return {
|
|
6087
6089
|
kind: 'Fragment',
|
|
6088
|
-
version: VERSION$
|
|
6090
|
+
version: VERSION$f,
|
|
6089
6091
|
private: [],
|
|
6090
6092
|
selections: [
|
|
6091
6093
|
{
|
|
@@ -6103,7 +6105,7 @@ const select$m = function SemanticGroupingConfigurationOutputRepresentationSelec
|
|
|
6103
6105
|
]
|
|
6104
6106
|
};
|
|
6105
6107
|
};
|
|
6106
|
-
function equals$
|
|
6108
|
+
function equals$f(existing, incoming) {
|
|
6107
6109
|
const existing_binDimension = existing.binDimension;
|
|
6108
6110
|
const incoming_binDimension = incoming.binDimension;
|
|
6109
6111
|
// if at least one of these optionals is defined
|
|
@@ -6113,7 +6115,7 @@ function equals$c(existing, incoming) {
|
|
|
6113
6115
|
if (existing_binDimension === undefined || incoming_binDimension === undefined) {
|
|
6114
6116
|
return false;
|
|
6115
6117
|
}
|
|
6116
|
-
if (!(equals$
|
|
6118
|
+
if (!(equals$i(existing_binDimension, incoming_binDimension))) {
|
|
6117
6119
|
return false;
|
|
6118
6120
|
}
|
|
6119
6121
|
}
|
|
@@ -6126,14 +6128,14 @@ function equals$c(existing, incoming) {
|
|
|
6126
6128
|
if (existing_groupDimension === undefined || incoming_groupDimension === undefined) {
|
|
6127
6129
|
return false;
|
|
6128
6130
|
}
|
|
6129
|
-
if (!(equals$
|
|
6131
|
+
if (!(equals$g(existing_groupDimension, incoming_groupDimension))) {
|
|
6130
6132
|
return false;
|
|
6131
6133
|
}
|
|
6132
6134
|
}
|
|
6133
6135
|
return true;
|
|
6134
6136
|
}
|
|
6135
6137
|
|
|
6136
|
-
const VERSION$
|
|
6138
|
+
const VERSION$e = "1daec40706bf767c719fa58831fad462";
|
|
6137
6139
|
function validate$j(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
6138
6140
|
const v_error = (() => {
|
|
6139
6141
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6225,25 +6227,25 @@ function validate$j(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6225
6227
|
})();
|
|
6226
6228
|
return v_error === undefined ? null : v_error;
|
|
6227
6229
|
}
|
|
6228
|
-
const RepresentationType$
|
|
6229
|
-
function keyBuilder$
|
|
6230
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6230
|
+
const RepresentationType$b = 'SemanticGroupingOutputRepresentation';
|
|
6231
|
+
function keyBuilder$p(luvio, config) {
|
|
6232
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
6231
6233
|
}
|
|
6232
6234
|
function keyBuilderFromType$7(luvio, object) {
|
|
6233
6235
|
const keyParams = {
|
|
6234
6236
|
name: object.id
|
|
6235
6237
|
};
|
|
6236
|
-
return keyBuilder$
|
|
6238
|
+
return keyBuilder$p(luvio, keyParams);
|
|
6237
6239
|
}
|
|
6238
|
-
function normalize$
|
|
6240
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
6239
6241
|
return input;
|
|
6240
6242
|
}
|
|
6241
|
-
const select$
|
|
6242
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
6243
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6243
|
+
const select$q = function SemanticGroupingOutputRepresentationSelect() {
|
|
6244
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$r();
|
|
6245
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$J();
|
|
6244
6246
|
return {
|
|
6245
6247
|
kind: 'Fragment',
|
|
6246
|
-
version: VERSION$
|
|
6248
|
+
version: VERSION$e,
|
|
6247
6249
|
private: [],
|
|
6248
6250
|
selections: [
|
|
6249
6251
|
{
|
|
@@ -6309,7 +6311,7 @@ const select$l = function SemanticGroupingOutputRepresentationSelect() {
|
|
|
6309
6311
|
]
|
|
6310
6312
|
};
|
|
6311
6313
|
};
|
|
6312
|
-
function equals$
|
|
6314
|
+
function equals$e(existing, incoming) {
|
|
6313
6315
|
const existing_apiName = existing.apiName;
|
|
6314
6316
|
const incoming_apiName = incoming.apiName;
|
|
6315
6317
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -6415,17 +6417,17 @@ function equals$b(existing, incoming) {
|
|
|
6415
6417
|
}
|
|
6416
6418
|
const existing_configuration = existing.configuration;
|
|
6417
6419
|
const incoming_configuration = incoming.configuration;
|
|
6418
|
-
if (!(equals$
|
|
6420
|
+
if (!(equals$f(existing_configuration, incoming_configuration))) {
|
|
6419
6421
|
return false;
|
|
6420
6422
|
}
|
|
6421
6423
|
const existing_fieldReference = existing.fieldReference;
|
|
6422
6424
|
const incoming_fieldReference = incoming.fieldReference;
|
|
6423
|
-
if (!(equals$
|
|
6425
|
+
if (!(equals$v(existing_fieldReference, incoming_fieldReference))) {
|
|
6424
6426
|
return false;
|
|
6425
6427
|
}
|
|
6426
6428
|
return true;
|
|
6427
6429
|
}
|
|
6428
|
-
const ingest$
|
|
6430
|
+
const ingest$b = function SemanticGroupingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6429
6431
|
if (process.env.NODE_ENV !== 'production') {
|
|
6430
6432
|
const validateError = validate$j(input);
|
|
6431
6433
|
if (validateError !== null) {
|
|
@@ -6434,20 +6436,20 @@ const ingest$a = function SemanticGroupingOutputRepresentationIngest(input, path
|
|
|
6434
6436
|
}
|
|
6435
6437
|
const key = keyBuilderFromType$7(luvio, input);
|
|
6436
6438
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
6437
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6439
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SemanticAuthoring", VERSION$e, RepresentationType$b, equals$e);
|
|
6438
6440
|
return createLink(key);
|
|
6439
6441
|
};
|
|
6440
|
-
function getTypeCacheKeys$
|
|
6442
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
6441
6443
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6442
6444
|
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
6443
6445
|
rootKeySet.set(rootKey, {
|
|
6444
6446
|
namespace: keyPrefix,
|
|
6445
|
-
representationName: RepresentationType$
|
|
6447
|
+
representationName: RepresentationType$b,
|
|
6446
6448
|
mergeable: false
|
|
6447
6449
|
});
|
|
6448
6450
|
}
|
|
6449
6451
|
|
|
6450
|
-
const VERSION$
|
|
6452
|
+
const VERSION$d = "c5144c317ac72b60d580cab803514b8d";
|
|
6451
6453
|
function validate$i(obj, path = 'SemanticRelationshipCriteriaOutputRepresentation') {
|
|
6452
6454
|
const v_error = (() => {
|
|
6453
6455
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6491,10 +6493,10 @@ function validate$i(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
6491
6493
|
})();
|
|
6492
6494
|
return v_error === undefined ? null : v_error;
|
|
6493
6495
|
}
|
|
6494
|
-
const select$
|
|
6496
|
+
const select$p = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
6495
6497
|
return {
|
|
6496
6498
|
kind: 'Fragment',
|
|
6497
|
-
version: VERSION$
|
|
6499
|
+
version: VERSION$d,
|
|
6498
6500
|
private: [],
|
|
6499
6501
|
selections: [
|
|
6500
6502
|
{
|
|
@@ -6525,7 +6527,7 @@ const select$k = function SemanticRelationshipCriteriaOutputRepresentationSelect
|
|
|
6525
6527
|
]
|
|
6526
6528
|
};
|
|
6527
6529
|
};
|
|
6528
|
-
function equals$
|
|
6530
|
+
function equals$d(existing, incoming) {
|
|
6529
6531
|
const existing_joinOperator = existing.joinOperator;
|
|
6530
6532
|
const incoming_joinOperator = incoming.joinOperator;
|
|
6531
6533
|
// if at least one of these optionals is defined
|
|
@@ -6594,7 +6596,7 @@ function equals$a(existing, incoming) {
|
|
|
6594
6596
|
return true;
|
|
6595
6597
|
}
|
|
6596
6598
|
|
|
6597
|
-
const VERSION$
|
|
6599
|
+
const VERSION$c = "b9778dace5726fcb57804d3afd529246";
|
|
6598
6600
|
function validate$h(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
6599
6601
|
const v_error = (() => {
|
|
6600
6602
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6724,24 +6726,24 @@ function validate$h(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
6724
6726
|
})();
|
|
6725
6727
|
return v_error === undefined ? null : v_error;
|
|
6726
6728
|
}
|
|
6727
|
-
const RepresentationType$
|
|
6728
|
-
function keyBuilder$
|
|
6729
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6729
|
+
const RepresentationType$a = 'SemanticRelationshipOutputRepresentation';
|
|
6730
|
+
function keyBuilder$o(luvio, config) {
|
|
6731
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
6730
6732
|
}
|
|
6731
6733
|
function keyBuilderFromType$6(luvio, object) {
|
|
6732
6734
|
const keyParams = {
|
|
6733
6735
|
name: object.id
|
|
6734
6736
|
};
|
|
6735
|
-
return keyBuilder$
|
|
6737
|
+
return keyBuilder$o(luvio, keyParams);
|
|
6736
6738
|
}
|
|
6737
|
-
function normalize$
|
|
6739
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
6738
6740
|
return input;
|
|
6739
6741
|
}
|
|
6740
|
-
const select$
|
|
6741
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
6742
|
+
const select$o = function SemanticRelationshipOutputRepresentationSelect() {
|
|
6743
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$p();
|
|
6742
6744
|
return {
|
|
6743
6745
|
kind: 'Fragment',
|
|
6744
|
-
version: VERSION$
|
|
6746
|
+
version: VERSION$c,
|
|
6745
6747
|
private: [],
|
|
6746
6748
|
selections: [
|
|
6747
6749
|
{
|
|
@@ -6830,7 +6832,7 @@ const select$j = function SemanticRelationshipOutputRepresentationSelect() {
|
|
|
6830
6832
|
]
|
|
6831
6833
|
};
|
|
6832
6834
|
};
|
|
6833
|
-
function equals$
|
|
6835
|
+
function equals$c(existing, incoming) {
|
|
6834
6836
|
const existing_isEnabled = existing.isEnabled;
|
|
6835
6837
|
const incoming_isEnabled = incoming.isEnabled;
|
|
6836
6838
|
// if at least one of these optionals is defined
|
|
@@ -7017,7 +7019,7 @@ function equals$9(existing, incoming) {
|
|
|
7017
7019
|
return false;
|
|
7018
7020
|
}
|
|
7019
7021
|
const equals_criteria_items = equalsArray(existing_criteria, incoming_criteria, (existing_criteria_item, incoming_criteria_item) => {
|
|
7020
|
-
if (!(equals$
|
|
7022
|
+
if (!(equals$d(existing_criteria_item, incoming_criteria_item))) {
|
|
7021
7023
|
return false;
|
|
7022
7024
|
}
|
|
7023
7025
|
});
|
|
@@ -7027,7 +7029,7 @@ function equals$9(existing, incoming) {
|
|
|
7027
7029
|
}
|
|
7028
7030
|
return true;
|
|
7029
7031
|
}
|
|
7030
|
-
const ingest$
|
|
7032
|
+
const ingest$a = function SemanticRelationshipOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7031
7033
|
if (process.env.NODE_ENV !== 'production') {
|
|
7032
7034
|
const validateError = validate$h(input);
|
|
7033
7035
|
if (validateError !== null) {
|
|
@@ -7036,20 +7038,20 @@ const ingest$9 = function SemanticRelationshipOutputRepresentationIngest(input,
|
|
|
7036
7038
|
}
|
|
7037
7039
|
const key = keyBuilderFromType$6(luvio, input);
|
|
7038
7040
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7039
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7041
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SemanticAuthoring", VERSION$c, RepresentationType$a, equals$c);
|
|
7040
7042
|
return createLink(key);
|
|
7041
7043
|
};
|
|
7042
|
-
function getTypeCacheKeys$
|
|
7044
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
7043
7045
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7044
7046
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
7045
7047
|
rootKeySet.set(rootKey, {
|
|
7046
7048
|
namespace: keyPrefix,
|
|
7047
|
-
representationName: RepresentationType$
|
|
7049
|
+
representationName: RepresentationType$a,
|
|
7048
7050
|
mergeable: false
|
|
7049
7051
|
});
|
|
7050
7052
|
}
|
|
7051
7053
|
|
|
7052
|
-
const VERSION$
|
|
7054
|
+
const VERSION$b = "eaf9b57a92e764fb2b5c27b6e031cfe1";
|
|
7053
7055
|
function validate$g(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
7054
7056
|
const v_error = (() => {
|
|
7055
7057
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7164,34 +7166,34 @@ function validate$g(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7164
7166
|
})();
|
|
7165
7167
|
return v_error === undefined ? null : v_error;
|
|
7166
7168
|
}
|
|
7167
|
-
const RepresentationType$
|
|
7168
|
-
function keyBuilder$
|
|
7169
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7169
|
+
const RepresentationType$9 = 'SemanticMappedFieldOutputRepresentation';
|
|
7170
|
+
function keyBuilder$n(luvio, config) {
|
|
7171
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
|
|
7170
7172
|
}
|
|
7171
7173
|
function keyBuilderFromType$5(luvio, object) {
|
|
7172
7174
|
const keyParams = {
|
|
7173
7175
|
name: object.id
|
|
7174
7176
|
};
|
|
7175
|
-
return keyBuilder$
|
|
7177
|
+
return keyBuilder$n(luvio, keyParams);
|
|
7176
7178
|
}
|
|
7177
|
-
function normalize$
|
|
7179
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
7178
7180
|
return input;
|
|
7179
7181
|
}
|
|
7180
|
-
const select$
|
|
7182
|
+
const select$n = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
7181
7183
|
return {
|
|
7182
7184
|
kind: 'Fragment',
|
|
7183
|
-
version: VERSION$
|
|
7185
|
+
version: VERSION$b,
|
|
7184
7186
|
private: [],
|
|
7185
7187
|
opaque: true
|
|
7186
7188
|
};
|
|
7187
7189
|
};
|
|
7188
|
-
function equals$
|
|
7190
|
+
function equals$b(existing, incoming) {
|
|
7189
7191
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
7190
7192
|
return false;
|
|
7191
7193
|
}
|
|
7192
7194
|
return true;
|
|
7193
7195
|
}
|
|
7194
|
-
const ingest$
|
|
7196
|
+
const ingest$9 = function SemanticMappedFieldOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7195
7197
|
if (process.env.NODE_ENV !== 'production') {
|
|
7196
7198
|
const validateError = validate$g(input);
|
|
7197
7199
|
if (validateError !== null) {
|
|
@@ -7200,20 +7202,20 @@ const ingest$8 = function SemanticMappedFieldOutputRepresentationIngest(input, p
|
|
|
7200
7202
|
}
|
|
7201
7203
|
const key = keyBuilderFromType$5(luvio, input);
|
|
7202
7204
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7203
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7205
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SemanticAuthoring", VERSION$b, RepresentationType$9, equals$b);
|
|
7204
7206
|
return createLink(key);
|
|
7205
7207
|
};
|
|
7206
|
-
function getTypeCacheKeys$
|
|
7208
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
7207
7209
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7208
7210
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
7209
7211
|
rootKeySet.set(rootKey, {
|
|
7210
7212
|
namespace: keyPrefix,
|
|
7211
|
-
representationName: RepresentationType$
|
|
7213
|
+
representationName: RepresentationType$9,
|
|
7212
7214
|
mergeable: false
|
|
7213
7215
|
});
|
|
7214
7216
|
}
|
|
7215
7217
|
|
|
7216
|
-
const VERSION$
|
|
7218
|
+
const VERSION$a = "69fe23112140e9fae50135dcb15c24c2";
|
|
7217
7219
|
function validate$f(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
7218
7220
|
const v_error = (() => {
|
|
7219
7221
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7340,24 +7342,24 @@ function validate$f(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
7340
7342
|
})();
|
|
7341
7343
|
return v_error === undefined ? null : v_error;
|
|
7342
7344
|
}
|
|
7343
|
-
const RepresentationType$
|
|
7344
|
-
function keyBuilder$
|
|
7345
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7345
|
+
const RepresentationType$8 = 'SemanticUnionOutputRepresentation';
|
|
7346
|
+
function keyBuilder$m(luvio, config) {
|
|
7347
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
|
|
7346
7348
|
}
|
|
7347
7349
|
function keyBuilderFromType$4(luvio, object) {
|
|
7348
7350
|
const keyParams = {
|
|
7349
7351
|
name: object.id
|
|
7350
7352
|
};
|
|
7351
|
-
return keyBuilder$
|
|
7353
|
+
return keyBuilder$m(luvio, keyParams);
|
|
7352
7354
|
}
|
|
7353
|
-
function normalize$
|
|
7355
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
7354
7356
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
7355
7357
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
7356
7358
|
if (input_semanticDataObjects !== undefined) {
|
|
7357
7359
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
7358
7360
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
7359
7361
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
7360
|
-
input_semanticDataObjects[i] = ingest$
|
|
7362
|
+
input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
|
|
7361
7363
|
fullPath: input_semanticDataObjects_item_id,
|
|
7362
7364
|
propertyName: i,
|
|
7363
7365
|
parent: {
|
|
@@ -7375,7 +7377,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
7375
7377
|
for (let i = 0; i < input_semanticMappedFields.length; i++) {
|
|
7376
7378
|
const input_semanticMappedFields_item = input_semanticMappedFields[i];
|
|
7377
7379
|
let input_semanticMappedFields_item_id = input_semanticMappedFields_id + '__' + i;
|
|
7378
|
-
input_semanticMappedFields[i] = ingest$
|
|
7380
|
+
input_semanticMappedFields[i] = ingest$9(input_semanticMappedFields_item, {
|
|
7379
7381
|
fullPath: input_semanticMappedFields_item_id,
|
|
7380
7382
|
propertyName: i,
|
|
7381
7383
|
parent: {
|
|
@@ -7389,10 +7391,10 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
7389
7391
|
}
|
|
7390
7392
|
return input;
|
|
7391
7393
|
}
|
|
7392
|
-
const select$
|
|
7394
|
+
const select$m = function SemanticUnionOutputRepresentationSelect() {
|
|
7393
7395
|
return {
|
|
7394
7396
|
kind: 'Fragment',
|
|
7395
|
-
version: VERSION$
|
|
7397
|
+
version: VERSION$a,
|
|
7396
7398
|
private: [],
|
|
7397
7399
|
selections: [
|
|
7398
7400
|
{
|
|
@@ -7451,19 +7453,19 @@ const select$h = function SemanticUnionOutputRepresentationSelect() {
|
|
|
7451
7453
|
kind: 'Link',
|
|
7452
7454
|
plural: true,
|
|
7453
7455
|
required: false,
|
|
7454
|
-
fragment: select$
|
|
7456
|
+
fragment: select$v()
|
|
7455
7457
|
},
|
|
7456
7458
|
{
|
|
7457
7459
|
name: 'semanticMappedFields',
|
|
7458
7460
|
kind: 'Link',
|
|
7459
7461
|
plural: true,
|
|
7460
7462
|
required: false,
|
|
7461
|
-
fragment: select$
|
|
7463
|
+
fragment: select$n()
|
|
7462
7464
|
}
|
|
7463
7465
|
]
|
|
7464
7466
|
};
|
|
7465
7467
|
};
|
|
7466
|
-
function equals$
|
|
7468
|
+
function equals$a(existing, incoming) {
|
|
7467
7469
|
const existing_apiName = existing.apiName;
|
|
7468
7470
|
const incoming_apiName = incoming.apiName;
|
|
7469
7471
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -7613,7 +7615,7 @@ function equals$7(existing, incoming) {
|
|
|
7613
7615
|
}
|
|
7614
7616
|
return true;
|
|
7615
7617
|
}
|
|
7616
|
-
const ingest$
|
|
7618
|
+
const ingest$8 = function SemanticUnionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7617
7619
|
if (process.env.NODE_ENV !== 'production') {
|
|
7618
7620
|
const validateError = validate$f(input);
|
|
7619
7621
|
if (validateError !== null) {
|
|
@@ -7622,32 +7624,32 @@ const ingest$7 = function SemanticUnionOutputRepresentationIngest(input, path, l
|
|
|
7622
7624
|
}
|
|
7623
7625
|
const key = keyBuilderFromType$4(luvio, input);
|
|
7624
7626
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7625
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7627
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SemanticAuthoring", VERSION$a, RepresentationType$8, equals$a);
|
|
7626
7628
|
return createLink(key);
|
|
7627
7629
|
};
|
|
7628
|
-
function getTypeCacheKeys$
|
|
7630
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
7629
7631
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7630
7632
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
7631
7633
|
rootKeySet.set(rootKey, {
|
|
7632
7634
|
namespace: keyPrefix,
|
|
7633
|
-
representationName: RepresentationType$
|
|
7635
|
+
representationName: RepresentationType$8,
|
|
7634
7636
|
mergeable: false
|
|
7635
7637
|
});
|
|
7636
7638
|
if (input.semanticDataObjects !== undefined) {
|
|
7637
7639
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
7638
7640
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
7639
|
-
getTypeCacheKeys$
|
|
7641
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
7640
7642
|
}
|
|
7641
7643
|
}
|
|
7642
7644
|
if (input.semanticMappedFields !== undefined) {
|
|
7643
7645
|
const input_semanticMappedFields_length = input.semanticMappedFields.length;
|
|
7644
7646
|
for (let i = 0; i < input_semanticMappedFields_length; i++) {
|
|
7645
|
-
getTypeCacheKeys$
|
|
7647
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.semanticMappedFields[i]);
|
|
7646
7648
|
}
|
|
7647
7649
|
}
|
|
7648
7650
|
}
|
|
7649
7651
|
|
|
7650
|
-
const VERSION$
|
|
7652
|
+
const VERSION$9 = "281e0163ea1fc7d956974394f5310216";
|
|
7651
7653
|
function validate$e(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
7652
7654
|
const v_error = (() => {
|
|
7653
7655
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7798,24 +7800,24 @@ function validate$e(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7798
7800
|
})();
|
|
7799
7801
|
return v_error === undefined ? null : v_error;
|
|
7800
7802
|
}
|
|
7801
|
-
const RepresentationType$
|
|
7802
|
-
function keyBuilder$
|
|
7803
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7803
|
+
const RepresentationType$7 = 'SemanticLogicalViewOutputRepresentation';
|
|
7804
|
+
function keyBuilder$l(luvio, config) {
|
|
7805
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
|
|
7804
7806
|
}
|
|
7805
7807
|
function keyBuilderFromType$3(luvio, object) {
|
|
7806
7808
|
const keyParams = {
|
|
7807
7809
|
name: object.id
|
|
7808
7810
|
};
|
|
7809
|
-
return keyBuilder$
|
|
7811
|
+
return keyBuilder$l(luvio, keyParams);
|
|
7810
7812
|
}
|
|
7811
|
-
function normalize$
|
|
7813
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
7812
7814
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
7813
7815
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
7814
7816
|
if (input_semanticDataObjects !== undefined) {
|
|
7815
7817
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
7816
7818
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
7817
7819
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
7818
|
-
input_semanticDataObjects[i] = ingest$
|
|
7820
|
+
input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
|
|
7819
7821
|
fullPath: input_semanticDataObjects_item_id,
|
|
7820
7822
|
propertyName: i,
|
|
7821
7823
|
parent: {
|
|
@@ -7833,7 +7835,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7833
7835
|
for (let i = 0; i < input_semanticRelationships.length; i++) {
|
|
7834
7836
|
const input_semanticRelationships_item = input_semanticRelationships[i];
|
|
7835
7837
|
let input_semanticRelationships_item_id = input_semanticRelationships_id + '__' + i;
|
|
7836
|
-
input_semanticRelationships[i] = ingest$
|
|
7838
|
+
input_semanticRelationships[i] = ingest$a(input_semanticRelationships_item, {
|
|
7837
7839
|
fullPath: input_semanticRelationships_item_id,
|
|
7838
7840
|
propertyName: i,
|
|
7839
7841
|
parent: {
|
|
@@ -7851,7 +7853,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7851
7853
|
for (let i = 0; i < input_semanticUnions.length; i++) {
|
|
7852
7854
|
const input_semanticUnions_item = input_semanticUnions[i];
|
|
7853
7855
|
let input_semanticUnions_item_id = input_semanticUnions_id + '__' + i;
|
|
7854
|
-
input_semanticUnions[i] = ingest$
|
|
7856
|
+
input_semanticUnions[i] = ingest$8(input_semanticUnions_item, {
|
|
7855
7857
|
fullPath: input_semanticUnions_item_id,
|
|
7856
7858
|
propertyName: i,
|
|
7857
7859
|
parent: {
|
|
@@ -7865,11 +7867,11 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7865
7867
|
}
|
|
7866
7868
|
return input;
|
|
7867
7869
|
}
|
|
7868
|
-
const select$
|
|
7869
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
7870
|
+
const select$l = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
7871
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$I();
|
|
7870
7872
|
return {
|
|
7871
7873
|
kind: 'Fragment',
|
|
7872
|
-
version: VERSION$
|
|
7874
|
+
version: VERSION$9,
|
|
7873
7875
|
private: [],
|
|
7874
7876
|
selections: [
|
|
7875
7877
|
{
|
|
@@ -7940,21 +7942,21 @@ const select$g = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
7940
7942
|
kind: 'Link',
|
|
7941
7943
|
plural: true,
|
|
7942
7944
|
required: false,
|
|
7943
|
-
fragment: select$
|
|
7945
|
+
fragment: select$v()
|
|
7944
7946
|
},
|
|
7945
7947
|
{
|
|
7946
7948
|
name: 'semanticRelationships',
|
|
7947
7949
|
kind: 'Link',
|
|
7948
7950
|
plural: true,
|
|
7949
7951
|
required: false,
|
|
7950
|
-
fragment: select$
|
|
7952
|
+
fragment: select$o()
|
|
7951
7953
|
},
|
|
7952
7954
|
{
|
|
7953
7955
|
name: 'semanticUnions',
|
|
7954
7956
|
kind: 'Link',
|
|
7955
7957
|
plural: true,
|
|
7956
7958
|
required: false,
|
|
7957
|
-
fragment: select$
|
|
7959
|
+
fragment: select$m()
|
|
7958
7960
|
},
|
|
7959
7961
|
{
|
|
7960
7962
|
name: 'semanticViewTypeEnum',
|
|
@@ -7964,7 +7966,7 @@ const select$g = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
7964
7966
|
]
|
|
7965
7967
|
};
|
|
7966
7968
|
};
|
|
7967
|
-
function equals$
|
|
7969
|
+
function equals$9(existing, incoming) {
|
|
7968
7970
|
const existing_apiName = existing.apiName;
|
|
7969
7971
|
const incoming_apiName = incoming.apiName;
|
|
7970
7972
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -8112,7 +8114,7 @@ function equals$6(existing, incoming) {
|
|
|
8112
8114
|
return false;
|
|
8113
8115
|
}
|
|
8114
8116
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
8115
|
-
if (!(equals$
|
|
8117
|
+
if (!(equals$u(existing_filters_item, incoming_filters_item))) {
|
|
8116
8118
|
return false;
|
|
8117
8119
|
}
|
|
8118
8120
|
});
|
|
@@ -8176,7 +8178,7 @@ function equals$6(existing, incoming) {
|
|
|
8176
8178
|
}
|
|
8177
8179
|
return true;
|
|
8178
8180
|
}
|
|
8179
|
-
const ingest$
|
|
8181
|
+
const ingest$7 = function SemanticLogicalViewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8180
8182
|
if (process.env.NODE_ENV !== 'production') {
|
|
8181
8183
|
const validateError = validate$e(input);
|
|
8182
8184
|
if (validateError !== null) {
|
|
@@ -8185,38 +8187,38 @@ const ingest$6 = function SemanticLogicalViewOutputRepresentationIngest(input, p
|
|
|
8185
8187
|
}
|
|
8186
8188
|
const key = keyBuilderFromType$3(luvio, input);
|
|
8187
8189
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8188
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
8190
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SemanticAuthoring", VERSION$9, RepresentationType$7, equals$9);
|
|
8189
8191
|
return createLink(key);
|
|
8190
8192
|
};
|
|
8191
|
-
function getTypeCacheKeys$
|
|
8193
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
8192
8194
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
8193
8195
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
8194
8196
|
rootKeySet.set(rootKey, {
|
|
8195
8197
|
namespace: keyPrefix,
|
|
8196
|
-
representationName: RepresentationType$
|
|
8198
|
+
representationName: RepresentationType$7,
|
|
8197
8199
|
mergeable: false
|
|
8198
8200
|
});
|
|
8199
8201
|
if (input.semanticDataObjects !== undefined) {
|
|
8200
8202
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
8201
8203
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
8202
|
-
getTypeCacheKeys$
|
|
8204
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
8203
8205
|
}
|
|
8204
8206
|
}
|
|
8205
8207
|
if (input.semanticRelationships !== undefined) {
|
|
8206
8208
|
const input_semanticRelationships_length = input.semanticRelationships.length;
|
|
8207
8209
|
for (let i = 0; i < input_semanticRelationships_length; i++) {
|
|
8208
|
-
getTypeCacheKeys$
|
|
8210
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.semanticRelationships[i]);
|
|
8209
8211
|
}
|
|
8210
8212
|
}
|
|
8211
8213
|
if (input.semanticUnions !== undefined) {
|
|
8212
8214
|
const input_semanticUnions_length = input.semanticUnions.length;
|
|
8213
8215
|
for (let i = 0; i < input_semanticUnions_length; i++) {
|
|
8214
|
-
getTypeCacheKeys$
|
|
8216
|
+
getTypeCacheKeys$8(rootKeySet, luvio, input.semanticUnions[i]);
|
|
8215
8217
|
}
|
|
8216
8218
|
}
|
|
8217
8219
|
}
|
|
8218
8220
|
|
|
8219
|
-
const VERSION$
|
|
8221
|
+
const VERSION$8 = "562f9618d0de907973cf252f01ea567d";
|
|
8220
8222
|
function validate$d(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
8221
8223
|
const v_error = (() => {
|
|
8222
8224
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -8343,23 +8345,23 @@ function validate$d(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
8343
8345
|
})();
|
|
8344
8346
|
return v_error === undefined ? null : v_error;
|
|
8345
8347
|
}
|
|
8346
|
-
const RepresentationType$
|
|
8347
|
-
function keyBuilder$
|
|
8348
|
-
return keyPrefix + '::' + RepresentationType$
|
|
8348
|
+
const RepresentationType$6 = 'SemanticParameterOutputRepresentation';
|
|
8349
|
+
function keyBuilder$k(luvio, config) {
|
|
8350
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
8349
8351
|
}
|
|
8350
8352
|
function keyBuilderFromType$2(luvio, object) {
|
|
8351
8353
|
const keyParams = {
|
|
8352
8354
|
name: object.id
|
|
8353
8355
|
};
|
|
8354
|
-
return keyBuilder$
|
|
8356
|
+
return keyBuilder$k(luvio, keyParams);
|
|
8355
8357
|
}
|
|
8356
|
-
function normalize$
|
|
8358
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
8357
8359
|
return input;
|
|
8358
8360
|
}
|
|
8359
|
-
const select$
|
|
8361
|
+
const select$k = function SemanticParameterOutputRepresentationSelect() {
|
|
8360
8362
|
return {
|
|
8361
8363
|
kind: 'Fragment',
|
|
8362
|
-
version: VERSION$
|
|
8364
|
+
version: VERSION$8,
|
|
8363
8365
|
private: [],
|
|
8364
8366
|
selections: [
|
|
8365
8367
|
{
|
|
@@ -8447,7 +8449,7 @@ const select$f = function SemanticParameterOutputRepresentationSelect() {
|
|
|
8447
8449
|
]
|
|
8448
8450
|
};
|
|
8449
8451
|
};
|
|
8450
|
-
function equals$
|
|
8452
|
+
function equals$8(existing, incoming) {
|
|
8451
8453
|
const existing_apiName = existing.apiName;
|
|
8452
8454
|
const incoming_apiName = incoming.apiName;
|
|
8453
8455
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -8644,7 +8646,7 @@ function equals$5(existing, incoming) {
|
|
|
8644
8646
|
}
|
|
8645
8647
|
return true;
|
|
8646
8648
|
}
|
|
8647
|
-
const ingest$
|
|
8649
|
+
const ingest$6 = function SemanticParameterOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8648
8650
|
if (process.env.NODE_ENV !== 'production') {
|
|
8649
8651
|
const validateError = validate$d(input);
|
|
8650
8652
|
if (validateError !== null) {
|
|
@@ -8653,20 +8655,20 @@ const ingest$5 = function SemanticParameterOutputRepresentationIngest(input, pat
|
|
|
8653
8655
|
}
|
|
8654
8656
|
const key = keyBuilderFromType$2(luvio, input);
|
|
8655
8657
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8656
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
8658
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SemanticAuthoring", VERSION$8, RepresentationType$6, equals$8);
|
|
8657
8659
|
return createLink(key);
|
|
8658
8660
|
};
|
|
8659
|
-
function getTypeCacheKeys$
|
|
8661
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
8660
8662
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
8661
8663
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
8662
8664
|
rootKeySet.set(rootKey, {
|
|
8663
8665
|
namespace: keyPrefix,
|
|
8664
|
-
representationName: RepresentationType$
|
|
8666
|
+
representationName: RepresentationType$6,
|
|
8665
8667
|
mergeable: false
|
|
8666
8668
|
});
|
|
8667
8669
|
}
|
|
8668
8670
|
|
|
8669
|
-
const VERSION$
|
|
8671
|
+
const VERSION$7 = "5cda82e85d7322d459ba16b10b81ee96";
|
|
8670
8672
|
function validate$c(obj, path = 'SemanticModelOutputRepresentation') {
|
|
8671
8673
|
const v_error = (() => {
|
|
8672
8674
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -8983,24 +8985,24 @@ function validate$c(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
8983
8985
|
})();
|
|
8984
8986
|
return v_error === undefined ? null : v_error;
|
|
8985
8987
|
}
|
|
8986
|
-
const RepresentationType$
|
|
8987
|
-
function keyBuilder$
|
|
8988
|
-
return keyPrefix + '::' + RepresentationType$
|
|
8988
|
+
const RepresentationType$5 = 'SemanticModelOutputRepresentation';
|
|
8989
|
+
function keyBuilder$j(luvio, config) {
|
|
8990
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.name;
|
|
8989
8991
|
}
|
|
8990
8992
|
function keyBuilderFromType$1(luvio, object) {
|
|
8991
8993
|
const keyParams = {
|
|
8992
8994
|
name: object.id
|
|
8993
8995
|
};
|
|
8994
|
-
return keyBuilder$
|
|
8996
|
+
return keyBuilder$j(luvio, keyParams);
|
|
8995
8997
|
}
|
|
8996
|
-
function normalize$
|
|
8998
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
8997
8999
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
8998
9000
|
const input_semanticCalculatedDimensions_id = path.fullPath + '__semanticCalculatedDimensions';
|
|
8999
9001
|
if (input_semanticCalculatedDimensions !== undefined) {
|
|
9000
9002
|
for (let i = 0; i < input_semanticCalculatedDimensions.length; i++) {
|
|
9001
9003
|
const input_semanticCalculatedDimensions_item = input_semanticCalculatedDimensions[i];
|
|
9002
9004
|
let input_semanticCalculatedDimensions_item_id = input_semanticCalculatedDimensions_id + '__' + i;
|
|
9003
|
-
input_semanticCalculatedDimensions[i] = ingest$
|
|
9005
|
+
input_semanticCalculatedDimensions[i] = ingest$e(input_semanticCalculatedDimensions_item, {
|
|
9004
9006
|
fullPath: input_semanticCalculatedDimensions_item_id,
|
|
9005
9007
|
propertyName: i,
|
|
9006
9008
|
parent: {
|
|
@@ -9018,7 +9020,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9018
9020
|
for (let i = 0; i < input_semanticCalculatedMeasurements.length; i++) {
|
|
9019
9021
|
const input_semanticCalculatedMeasurements_item = input_semanticCalculatedMeasurements[i];
|
|
9020
9022
|
let input_semanticCalculatedMeasurements_item_id = input_semanticCalculatedMeasurements_id + '__' + i;
|
|
9021
|
-
input_semanticCalculatedMeasurements[i] = ingest$
|
|
9023
|
+
input_semanticCalculatedMeasurements[i] = ingest$d(input_semanticCalculatedMeasurements_item, {
|
|
9022
9024
|
fullPath: input_semanticCalculatedMeasurements_item_id,
|
|
9023
9025
|
propertyName: i,
|
|
9024
9026
|
parent: {
|
|
@@ -9036,7 +9038,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9036
9038
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
9037
9039
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
9038
9040
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
9039
|
-
input_semanticDataObjects[i] = ingest$
|
|
9041
|
+
input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
|
|
9040
9042
|
fullPath: input_semanticDataObjects_item_id,
|
|
9041
9043
|
propertyName: i,
|
|
9042
9044
|
parent: {
|
|
@@ -9054,7 +9056,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9054
9056
|
for (let i = 0; i < input_semanticGroupings.length; i++) {
|
|
9055
9057
|
const input_semanticGroupings_item = input_semanticGroupings[i];
|
|
9056
9058
|
let input_semanticGroupings_item_id = input_semanticGroupings_id + '__' + i;
|
|
9057
|
-
input_semanticGroupings[i] = ingest$
|
|
9059
|
+
input_semanticGroupings[i] = ingest$b(input_semanticGroupings_item, {
|
|
9058
9060
|
fullPath: input_semanticGroupings_item_id,
|
|
9059
9061
|
propertyName: i,
|
|
9060
9062
|
parent: {
|
|
@@ -9072,7 +9074,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9072
9074
|
for (let i = 0; i < input_semanticLogicalViews.length; i++) {
|
|
9073
9075
|
const input_semanticLogicalViews_item = input_semanticLogicalViews[i];
|
|
9074
9076
|
let input_semanticLogicalViews_item_id = input_semanticLogicalViews_id + '__' + i;
|
|
9075
|
-
input_semanticLogicalViews[i] = ingest$
|
|
9077
|
+
input_semanticLogicalViews[i] = ingest$7(input_semanticLogicalViews_item, {
|
|
9076
9078
|
fullPath: input_semanticLogicalViews_item_id,
|
|
9077
9079
|
propertyName: i,
|
|
9078
9080
|
parent: {
|
|
@@ -9090,7 +9092,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9090
9092
|
for (let i = 0; i < input_semanticMetrics.length; i++) {
|
|
9091
9093
|
const input_semanticMetrics_item = input_semanticMetrics[i];
|
|
9092
9094
|
let input_semanticMetrics_item_id = input_semanticMetrics_id + '__' + i;
|
|
9093
|
-
input_semanticMetrics[i] = ingest$
|
|
9095
|
+
input_semanticMetrics[i] = ingest$h(input_semanticMetrics_item, {
|
|
9094
9096
|
fullPath: input_semanticMetrics_item_id,
|
|
9095
9097
|
propertyName: i,
|
|
9096
9098
|
parent: {
|
|
@@ -9108,7 +9110,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9108
9110
|
for (let i = 0; i < input_semanticParameters.length; i++) {
|
|
9109
9111
|
const input_semanticParameters_item = input_semanticParameters[i];
|
|
9110
9112
|
let input_semanticParameters_item_id = input_semanticParameters_id + '__' + i;
|
|
9111
|
-
input_semanticParameters[i] = ingest$
|
|
9113
|
+
input_semanticParameters[i] = ingest$6(input_semanticParameters_item, {
|
|
9112
9114
|
fullPath: input_semanticParameters_item_id,
|
|
9113
9115
|
propertyName: i,
|
|
9114
9116
|
parent: {
|
|
@@ -9126,7 +9128,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9126
9128
|
for (let i = 0; i < input_semanticRelationships.length; i++) {
|
|
9127
9129
|
const input_semanticRelationships_item = input_semanticRelationships[i];
|
|
9128
9130
|
let input_semanticRelationships_item_id = input_semanticRelationships_id + '__' + i;
|
|
9129
|
-
input_semanticRelationships[i] = ingest$
|
|
9131
|
+
input_semanticRelationships[i] = ingest$a(input_semanticRelationships_item, {
|
|
9130
9132
|
fullPath: input_semanticRelationships_item_id,
|
|
9131
9133
|
propertyName: i,
|
|
9132
9134
|
parent: {
|
|
@@ -9140,11 +9142,11 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9140
9142
|
}
|
|
9141
9143
|
return input;
|
|
9142
9144
|
}
|
|
9143
|
-
const select$
|
|
9144
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
9145
|
+
const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
9146
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$B();
|
|
9145
9147
|
return {
|
|
9146
9148
|
kind: 'Fragment',
|
|
9147
|
-
version: VERSION$
|
|
9149
|
+
version: VERSION$7,
|
|
9148
9150
|
private: [],
|
|
9149
9151
|
selections: [
|
|
9150
9152
|
{
|
|
@@ -9230,7 +9232,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9230
9232
|
kind: 'Link',
|
|
9231
9233
|
plural: true,
|
|
9232
9234
|
required: false,
|
|
9233
|
-
fragment: select$
|
|
9235
|
+
fragment: select$x()
|
|
9234
9236
|
},
|
|
9235
9237
|
{
|
|
9236
9238
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -9242,7 +9244,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9242
9244
|
kind: 'Link',
|
|
9243
9245
|
plural: true,
|
|
9244
9246
|
required: false,
|
|
9245
|
-
fragment: select$
|
|
9247
|
+
fragment: select$w()
|
|
9246
9248
|
},
|
|
9247
9249
|
{
|
|
9248
9250
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -9254,7 +9256,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9254
9256
|
kind: 'Link',
|
|
9255
9257
|
plural: true,
|
|
9256
9258
|
required: false,
|
|
9257
|
-
fragment: select$
|
|
9259
|
+
fragment: select$v()
|
|
9258
9260
|
},
|
|
9259
9261
|
{
|
|
9260
9262
|
name: 'semanticDataObjectsUrl',
|
|
@@ -9266,7 +9268,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9266
9268
|
kind: 'Link',
|
|
9267
9269
|
plural: true,
|
|
9268
9270
|
required: false,
|
|
9269
|
-
fragment: select$
|
|
9271
|
+
fragment: select$q()
|
|
9270
9272
|
},
|
|
9271
9273
|
{
|
|
9272
9274
|
name: 'semanticGroupingsUrl',
|
|
@@ -9278,21 +9280,21 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9278
9280
|
kind: 'Link',
|
|
9279
9281
|
plural: true,
|
|
9280
9282
|
required: false,
|
|
9281
|
-
fragment: select$
|
|
9283
|
+
fragment: select$l()
|
|
9282
9284
|
},
|
|
9283
9285
|
{
|
|
9284
9286
|
name: 'semanticMetrics',
|
|
9285
9287
|
kind: 'Link',
|
|
9286
9288
|
plural: true,
|
|
9287
9289
|
required: false,
|
|
9288
|
-
fragment: select$
|
|
9290
|
+
fragment: select$E()
|
|
9289
9291
|
},
|
|
9290
9292
|
{
|
|
9291
9293
|
name: 'semanticParameters',
|
|
9292
9294
|
kind: 'Link',
|
|
9293
9295
|
plural: true,
|
|
9294
9296
|
required: false,
|
|
9295
|
-
fragment: select$
|
|
9297
|
+
fragment: select$k()
|
|
9296
9298
|
},
|
|
9297
9299
|
{
|
|
9298
9300
|
name: 'semanticParametersUrl',
|
|
@@ -9304,7 +9306,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9304
9306
|
kind: 'Link',
|
|
9305
9307
|
plural: true,
|
|
9306
9308
|
required: false,
|
|
9307
|
-
fragment: select$
|
|
9309
|
+
fragment: select$o()
|
|
9308
9310
|
},
|
|
9309
9311
|
{
|
|
9310
9312
|
name: 'semanticRelationshipsUrl',
|
|
@@ -9324,7 +9326,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9324
9326
|
]
|
|
9325
9327
|
};
|
|
9326
9328
|
};
|
|
9327
|
-
function equals$
|
|
9329
|
+
function equals$7(existing, incoming) {
|
|
9328
9330
|
const existing_isLocked = existing.isLocked;
|
|
9329
9331
|
const incoming_isLocked = incoming.isLocked;
|
|
9330
9332
|
// if at least one of these optionals is defined
|
|
@@ -9568,7 +9570,7 @@ function equals$4(existing, incoming) {
|
|
|
9568
9570
|
return false;
|
|
9569
9571
|
}
|
|
9570
9572
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
9571
|
-
if (!(equals$
|
|
9573
|
+
if (!(equals$o(existing_baseModels_item, incoming_baseModels_item))) {
|
|
9572
9574
|
return false;
|
|
9573
9575
|
}
|
|
9574
9576
|
});
|
|
@@ -9753,7 +9755,7 @@ function equals$4(existing, incoming) {
|
|
|
9753
9755
|
}
|
|
9754
9756
|
return true;
|
|
9755
9757
|
}
|
|
9756
|
-
const ingest$
|
|
9758
|
+
const ingest$5 = function SemanticModelOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9757
9759
|
if (process.env.NODE_ENV !== 'production') {
|
|
9758
9760
|
const validateError = validate$c(input);
|
|
9759
9761
|
if (validateError !== null) {
|
|
@@ -9762,80 +9764,80 @@ const ingest$4 = function SemanticModelOutputRepresentationIngest(input, path, l
|
|
|
9762
9764
|
}
|
|
9763
9765
|
const key = keyBuilderFromType$1(luvio, input);
|
|
9764
9766
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
9765
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
9767
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SemanticAuthoring", VERSION$7, RepresentationType$5, equals$7);
|
|
9766
9768
|
return createLink(key);
|
|
9767
9769
|
};
|
|
9768
|
-
function getTypeCacheKeys$
|
|
9770
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
9769
9771
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
9770
9772
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
9771
9773
|
rootKeySet.set(rootKey, {
|
|
9772
9774
|
namespace: keyPrefix,
|
|
9773
|
-
representationName: RepresentationType$
|
|
9775
|
+
representationName: RepresentationType$5,
|
|
9774
9776
|
mergeable: false
|
|
9775
9777
|
});
|
|
9776
9778
|
if (input.semanticCalculatedDimensions !== undefined) {
|
|
9777
9779
|
const input_semanticCalculatedDimensions_length = input.semanticCalculatedDimensions.length;
|
|
9778
9780
|
for (let i = 0; i < input_semanticCalculatedDimensions_length; i++) {
|
|
9779
|
-
getTypeCacheKeys$
|
|
9781
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.semanticCalculatedDimensions[i]);
|
|
9780
9782
|
}
|
|
9781
9783
|
}
|
|
9782
9784
|
if (input.semanticCalculatedMeasurements !== undefined) {
|
|
9783
9785
|
const input_semanticCalculatedMeasurements_length = input.semanticCalculatedMeasurements.length;
|
|
9784
9786
|
for (let i = 0; i < input_semanticCalculatedMeasurements_length; i++) {
|
|
9785
|
-
getTypeCacheKeys$
|
|
9787
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.semanticCalculatedMeasurements[i]);
|
|
9786
9788
|
}
|
|
9787
9789
|
}
|
|
9788
9790
|
if (input.semanticDataObjects !== undefined) {
|
|
9789
9791
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
9790
9792
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
9791
|
-
getTypeCacheKeys$
|
|
9793
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
9792
9794
|
}
|
|
9793
9795
|
}
|
|
9794
9796
|
if (input.semanticGroupings !== undefined) {
|
|
9795
9797
|
const input_semanticGroupings_length = input.semanticGroupings.length;
|
|
9796
9798
|
for (let i = 0; i < input_semanticGroupings_length; i++) {
|
|
9797
|
-
getTypeCacheKeys$
|
|
9799
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.semanticGroupings[i]);
|
|
9798
9800
|
}
|
|
9799
9801
|
}
|
|
9800
9802
|
if (input.semanticLogicalViews !== undefined) {
|
|
9801
9803
|
const input_semanticLogicalViews_length = input.semanticLogicalViews.length;
|
|
9802
9804
|
for (let i = 0; i < input_semanticLogicalViews_length; i++) {
|
|
9803
|
-
getTypeCacheKeys$
|
|
9805
|
+
getTypeCacheKeys$7(rootKeySet, luvio, input.semanticLogicalViews[i]);
|
|
9804
9806
|
}
|
|
9805
9807
|
}
|
|
9806
9808
|
if (input.semanticMetrics !== undefined) {
|
|
9807
9809
|
const input_semanticMetrics_length = input.semanticMetrics.length;
|
|
9808
9810
|
for (let i = 0; i < input_semanticMetrics_length; i++) {
|
|
9809
|
-
getTypeCacheKeys$
|
|
9811
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.semanticMetrics[i]);
|
|
9810
9812
|
}
|
|
9811
9813
|
}
|
|
9812
9814
|
if (input.semanticParameters !== undefined) {
|
|
9813
9815
|
const input_semanticParameters_length = input.semanticParameters.length;
|
|
9814
9816
|
for (let i = 0; i < input_semanticParameters_length; i++) {
|
|
9815
|
-
getTypeCacheKeys$
|
|
9817
|
+
getTypeCacheKeys$6(rootKeySet, luvio, input.semanticParameters[i]);
|
|
9816
9818
|
}
|
|
9817
9819
|
}
|
|
9818
9820
|
if (input.semanticRelationships !== undefined) {
|
|
9819
9821
|
const input_semanticRelationships_length = input.semanticRelationships.length;
|
|
9820
9822
|
for (let i = 0; i < input_semanticRelationships_length; i++) {
|
|
9821
|
-
getTypeCacheKeys$
|
|
9823
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.semanticRelationships[i]);
|
|
9822
9824
|
}
|
|
9823
9825
|
}
|
|
9824
9826
|
}
|
|
9825
9827
|
|
|
9826
|
-
function select$
|
|
9827
|
-
return select$
|
|
9828
|
+
function select$i(luvio, params) {
|
|
9829
|
+
return select$j();
|
|
9828
9830
|
}
|
|
9829
|
-
function getResponseCacheKeys$
|
|
9830
|
-
getTypeCacheKeys$
|
|
9831
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
9832
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
9831
9833
|
}
|
|
9832
|
-
function ingestSuccess$
|
|
9834
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
9833
9835
|
const { body } = response;
|
|
9834
9836
|
const key = keyBuilderFromType$1(luvio, body);
|
|
9835
|
-
luvio.storeIngest(key, ingest$
|
|
9837
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
9836
9838
|
const snapshot = luvio.storeLookup({
|
|
9837
9839
|
recordId: key,
|
|
9838
|
-
node: select$
|
|
9840
|
+
node: select$i(),
|
|
9839
9841
|
variables: {},
|
|
9840
9842
|
});
|
|
9841
9843
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9846,10 +9848,10 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
9846
9848
|
deepFreeze(snapshot.data);
|
|
9847
9849
|
return snapshot;
|
|
9848
9850
|
}
|
|
9849
|
-
function createResourceRequest$
|
|
9851
|
+
function createResourceRequest$d(config) {
|
|
9850
9852
|
const headers = {};
|
|
9851
9853
|
return {
|
|
9852
|
-
baseUri: '/services/data/
|
|
9854
|
+
baseUri: '/services/data/v64.0',
|
|
9853
9855
|
basePath: '/ssot/semantic/models',
|
|
9854
9856
|
method: 'post',
|
|
9855
9857
|
body: config.body,
|
|
@@ -9860,7 +9862,7 @@ function createResourceRequest$a(config) {
|
|
|
9860
9862
|
};
|
|
9861
9863
|
}
|
|
9862
9864
|
|
|
9863
|
-
const adapterName$
|
|
9865
|
+
const adapterName$d = 'createSemanticModel';
|
|
9864
9866
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
9865
9867
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
9866
9868
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9881,11 +9883,11 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
9881
9883
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9882
9884
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9883
9885
|
];
|
|
9884
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9885
|
-
const createResourceParams$
|
|
9886
|
-
function typeCheckConfig$
|
|
9886
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createSemanticModel_ConfigPropertyMetadata);
|
|
9887
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$g(createSemanticModel_ConfigPropertyMetadata);
|
|
9888
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
9887
9889
|
const config = {};
|
|
9888
|
-
typeCheckConfig$
|
|
9890
|
+
typeCheckConfig$g(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
9889
9891
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
9890
9892
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
9891
9893
|
const untrustedConfig_baseModels_array = [];
|
|
@@ -9996,30 +9998,30 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9996
9998
|
}
|
|
9997
9999
|
return config;
|
|
9998
10000
|
}
|
|
9999
|
-
function validateAdapterConfig$
|
|
10001
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
10000
10002
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10001
10003
|
return null;
|
|
10002
10004
|
}
|
|
10003
10005
|
if (process.env.NODE_ENV !== 'production') {
|
|
10004
10006
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10005
10007
|
}
|
|
10006
|
-
const config = typeCheckConfig$
|
|
10008
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
10007
10009
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10008
10010
|
return null;
|
|
10009
10011
|
}
|
|
10010
10012
|
return config;
|
|
10011
10013
|
}
|
|
10012
|
-
function buildNetworkSnapshot$
|
|
10013
|
-
const resourceParams = createResourceParams$
|
|
10014
|
-
const request = createResourceRequest$
|
|
10014
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
10015
|
+
const resourceParams = createResourceParams$d(config);
|
|
10016
|
+
const request = createResourceRequest$d(resourceParams);
|
|
10015
10017
|
return luvio.dispatchResourceRequest(request, options)
|
|
10016
10018
|
.then((response) => {
|
|
10017
10019
|
return luvio.handleSuccessResponse(() => {
|
|
10018
|
-
const snapshot = ingestSuccess$
|
|
10020
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
10019
10021
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10020
10022
|
}, () => {
|
|
10021
10023
|
const cache = new StoreKeyMap();
|
|
10022
|
-
getResponseCacheKeys$
|
|
10024
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
10023
10025
|
return cache;
|
|
10024
10026
|
});
|
|
10025
10027
|
}, (response) => {
|
|
@@ -10029,33 +10031,33 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
10029
10031
|
}
|
|
10030
10032
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
10031
10033
|
return function createSemanticModel(untrustedConfig) {
|
|
10032
|
-
const config = validateAdapterConfig$
|
|
10034
|
+
const config = validateAdapterConfig$d(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
10033
10035
|
// Invalid or incomplete config
|
|
10034
10036
|
if (config === null) {
|
|
10035
10037
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
10036
10038
|
}
|
|
10037
|
-
return buildNetworkSnapshot$
|
|
10039
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
10038
10040
|
};
|
|
10039
10041
|
};
|
|
10040
10042
|
|
|
10041
|
-
function select$
|
|
10042
|
-
return select$
|
|
10043
|
+
function select$h(luvio, params) {
|
|
10044
|
+
return select$j();
|
|
10043
10045
|
}
|
|
10044
|
-
function keyBuilder$
|
|
10045
|
-
return keyBuilder$
|
|
10046
|
+
function keyBuilder$i(luvio, params) {
|
|
10047
|
+
return keyBuilder$j(luvio, {
|
|
10046
10048
|
name: params.urlParams.modelApiNameOrId
|
|
10047
10049
|
});
|
|
10048
10050
|
}
|
|
10049
|
-
function getResponseCacheKeys$
|
|
10050
|
-
getTypeCacheKeys$
|
|
10051
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
10052
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
10051
10053
|
}
|
|
10052
|
-
function ingestSuccess$
|
|
10054
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
10053
10055
|
const { body } = response;
|
|
10054
|
-
const key = keyBuilder$
|
|
10055
|
-
luvio.storeIngest(key, ingest$
|
|
10056
|
+
const key = keyBuilder$i(luvio, resourceParams);
|
|
10057
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
10056
10058
|
const snapshot = luvio.storeLookup({
|
|
10057
10059
|
recordId: key,
|
|
10058
|
-
node: select$
|
|
10060
|
+
node: select$h(),
|
|
10059
10061
|
variables: {},
|
|
10060
10062
|
}, snapshotRefresh);
|
|
10061
10063
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10066,16 +10068,16 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
10066
10068
|
deepFreeze(snapshot.data);
|
|
10067
10069
|
return snapshot;
|
|
10068
10070
|
}
|
|
10069
|
-
function ingestError$
|
|
10070
|
-
const key = keyBuilder$
|
|
10071
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
10072
|
+
const key = keyBuilder$i(luvio, params);
|
|
10071
10073
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10072
10074
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10073
10075
|
return errorSnapshot;
|
|
10074
10076
|
}
|
|
10075
|
-
function createResourceRequest$
|
|
10077
|
+
function createResourceRequest$c(config) {
|
|
10076
10078
|
const headers = {};
|
|
10077
10079
|
return {
|
|
10078
|
-
baseUri: '/services/data/
|
|
10080
|
+
baseUri: '/services/data/v64.0',
|
|
10079
10081
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '',
|
|
10080
10082
|
method: 'get',
|
|
10081
10083
|
body: null,
|
|
@@ -10086,108 +10088,108 @@ function createResourceRequest$9(config) {
|
|
|
10086
10088
|
};
|
|
10087
10089
|
}
|
|
10088
10090
|
|
|
10089
|
-
const adapterName$
|
|
10091
|
+
const adapterName$c = 'getSemanticModel';
|
|
10090
10092
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
10091
10093
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10092
10094
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10093
10095
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10094
10096
|
generateParamConfigMetadata('includeTableKeys', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10095
10097
|
];
|
|
10096
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10097
|
-
const createResourceParams$
|
|
10098
|
-
function keyBuilder$
|
|
10099
|
-
const resourceParams = createResourceParams$
|
|
10100
|
-
return keyBuilder$
|
|
10098
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSemanticModel_ConfigPropertyMetadata);
|
|
10099
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$g(getSemanticModel_ConfigPropertyMetadata);
|
|
10100
|
+
function keyBuilder$h(luvio, config) {
|
|
10101
|
+
const resourceParams = createResourceParams$c(config);
|
|
10102
|
+
return keyBuilder$i(luvio, resourceParams);
|
|
10101
10103
|
}
|
|
10102
|
-
function typeCheckConfig$
|
|
10104
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
10103
10105
|
const config = {};
|
|
10104
|
-
typeCheckConfig$
|
|
10106
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
10105
10107
|
return config;
|
|
10106
10108
|
}
|
|
10107
|
-
function validateAdapterConfig$
|
|
10109
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
10108
10110
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10109
10111
|
return null;
|
|
10110
10112
|
}
|
|
10111
10113
|
if (process.env.NODE_ENV !== 'production') {
|
|
10112
10114
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10113
10115
|
}
|
|
10114
|
-
const config = typeCheckConfig$
|
|
10116
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
10115
10117
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10116
10118
|
return null;
|
|
10117
10119
|
}
|
|
10118
10120
|
return config;
|
|
10119
10121
|
}
|
|
10120
|
-
function adapterFragment$
|
|
10121
|
-
createResourceParams$
|
|
10122
|
-
return select$
|
|
10122
|
+
function adapterFragment$7(luvio, config) {
|
|
10123
|
+
createResourceParams$c(config);
|
|
10124
|
+
return select$h();
|
|
10123
10125
|
}
|
|
10124
|
-
function onFetchResponseSuccess$
|
|
10125
|
-
const snapshot = ingestSuccess$
|
|
10126
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
10127
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
10126
10128
|
config,
|
|
10127
|
-
resolve: () => buildNetworkSnapshot$
|
|
10129
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10128
10130
|
});
|
|
10129
10131
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10130
10132
|
}
|
|
10131
|
-
function onFetchResponseError$
|
|
10132
|
-
const snapshot = ingestError$
|
|
10133
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
10134
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
10133
10135
|
config,
|
|
10134
|
-
resolve: () => buildNetworkSnapshot$
|
|
10136
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10135
10137
|
});
|
|
10136
10138
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10137
10139
|
}
|
|
10138
|
-
function buildNetworkSnapshot$
|
|
10139
|
-
const resourceParams = createResourceParams$
|
|
10140
|
-
const request = createResourceRequest$
|
|
10140
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
10141
|
+
const resourceParams = createResourceParams$c(config);
|
|
10142
|
+
const request = createResourceRequest$c(resourceParams);
|
|
10141
10143
|
return luvio.dispatchResourceRequest(request, options)
|
|
10142
10144
|
.then((response) => {
|
|
10143
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
10145
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
10144
10146
|
const cache = new StoreKeyMap();
|
|
10145
|
-
getResponseCacheKeys$
|
|
10147
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
10146
10148
|
return cache;
|
|
10147
10149
|
});
|
|
10148
10150
|
}, (response) => {
|
|
10149
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
10151
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
10150
10152
|
});
|
|
10151
10153
|
}
|
|
10152
|
-
function buildNetworkSnapshotCachePolicy$
|
|
10153
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10154
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
10155
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
10154
10156
|
}
|
|
10155
|
-
function buildCachedSnapshotCachePolicy$
|
|
10157
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
10156
10158
|
const { luvio, config } = context;
|
|
10157
10159
|
const selector = {
|
|
10158
|
-
recordId: keyBuilder$
|
|
10159
|
-
node: adapterFragment$
|
|
10160
|
+
recordId: keyBuilder$h(luvio, config),
|
|
10161
|
+
node: adapterFragment$7(luvio, config),
|
|
10160
10162
|
variables: {},
|
|
10161
10163
|
};
|
|
10162
10164
|
const cacheSnapshot = storeLookup(selector, {
|
|
10163
10165
|
config,
|
|
10164
|
-
resolve: () => buildNetworkSnapshot$
|
|
10166
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10165
10167
|
});
|
|
10166
10168
|
return cacheSnapshot;
|
|
10167
10169
|
}
|
|
10168
10170
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
10169
|
-
const config = validateAdapterConfig$
|
|
10171
|
+
const config = validateAdapterConfig$c(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
10170
10172
|
// Invalid or incomplete config
|
|
10171
10173
|
if (config === null) {
|
|
10172
10174
|
return null;
|
|
10173
10175
|
}
|
|
10174
10176
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
10175
|
-
buildCachedSnapshotCachePolicy$
|
|
10177
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
10176
10178
|
};
|
|
10177
10179
|
|
|
10178
|
-
function select$
|
|
10179
|
-
return select$
|
|
10180
|
+
function select$g(luvio, params) {
|
|
10181
|
+
return select$j();
|
|
10180
10182
|
}
|
|
10181
|
-
function getResponseCacheKeys$
|
|
10182
|
-
getTypeCacheKeys$
|
|
10183
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
10184
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
10183
10185
|
}
|
|
10184
|
-
function ingestSuccess$
|
|
10186
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
10185
10187
|
const { body } = response;
|
|
10186
10188
|
const key = keyBuilderFromType$1(luvio, body);
|
|
10187
|
-
luvio.storeIngest(key, ingest$
|
|
10189
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
10188
10190
|
const snapshot = luvio.storeLookup({
|
|
10189
10191
|
recordId: key,
|
|
10190
|
-
node: select$
|
|
10192
|
+
node: select$g(),
|
|
10191
10193
|
variables: {},
|
|
10192
10194
|
});
|
|
10193
10195
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10198,10 +10200,10 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
10198
10200
|
deepFreeze(snapshot.data);
|
|
10199
10201
|
return snapshot;
|
|
10200
10202
|
}
|
|
10201
|
-
function createResourceRequest$
|
|
10203
|
+
function createResourceRequest$b(config) {
|
|
10202
10204
|
const headers = {};
|
|
10203
10205
|
return {
|
|
10204
|
-
baseUri: '/services/data/
|
|
10206
|
+
baseUri: '/services/data/v64.0',
|
|
10205
10207
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '',
|
|
10206
10208
|
method: 'patch',
|
|
10207
10209
|
body: config.body,
|
|
@@ -10212,7 +10214,7 @@ function createResourceRequest$8(config) {
|
|
|
10212
10214
|
};
|
|
10213
10215
|
}
|
|
10214
10216
|
|
|
10215
|
-
const adapterName$
|
|
10217
|
+
const adapterName$b = 'patchSemanticModel';
|
|
10216
10218
|
const patchSemanticModel_ConfigPropertyMetadata = [
|
|
10217
10219
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10218
10220
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -10234,11 +10236,11 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
10234
10236
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10235
10237
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10236
10238
|
];
|
|
10237
|
-
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10238
|
-
const createResourceParams$
|
|
10239
|
-
function typeCheckConfig$
|
|
10239
|
+
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, patchSemanticModel_ConfigPropertyMetadata);
|
|
10240
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$g(patchSemanticModel_ConfigPropertyMetadata);
|
|
10241
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
10240
10242
|
const config = {};
|
|
10241
|
-
typeCheckConfig$
|
|
10243
|
+
typeCheckConfig$g(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
10242
10244
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
10243
10245
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
10244
10246
|
const untrustedConfig_baseModels_array = [];
|
|
@@ -10349,30 +10351,30 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10349
10351
|
}
|
|
10350
10352
|
return config;
|
|
10351
10353
|
}
|
|
10352
|
-
function validateAdapterConfig$
|
|
10354
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
10353
10355
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10354
10356
|
return null;
|
|
10355
10357
|
}
|
|
10356
10358
|
if (process.env.NODE_ENV !== 'production') {
|
|
10357
10359
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10358
10360
|
}
|
|
10359
|
-
const config = typeCheckConfig$
|
|
10361
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
10360
10362
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10361
10363
|
return null;
|
|
10362
10364
|
}
|
|
10363
10365
|
return config;
|
|
10364
10366
|
}
|
|
10365
|
-
function buildNetworkSnapshot$
|
|
10366
|
-
const resourceParams = createResourceParams$
|
|
10367
|
-
const request = createResourceRequest$
|
|
10367
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
10368
|
+
const resourceParams = createResourceParams$b(config);
|
|
10369
|
+
const request = createResourceRequest$b(resourceParams);
|
|
10368
10370
|
return luvio.dispatchResourceRequest(request, options)
|
|
10369
10371
|
.then((response) => {
|
|
10370
10372
|
return luvio.handleSuccessResponse(() => {
|
|
10371
|
-
const snapshot = ingestSuccess$
|
|
10373
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
10372
10374
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10373
10375
|
}, () => {
|
|
10374
10376
|
const cache = new StoreKeyMap();
|
|
10375
|
-
getResponseCacheKeys$
|
|
10377
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
10376
10378
|
return cache;
|
|
10377
10379
|
});
|
|
10378
10380
|
}, (response) => {
|
|
@@ -10382,122 +10384,520 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
10382
10384
|
}
|
|
10383
10385
|
const patchSemanticModelAdapterFactory = (luvio) => {
|
|
10384
10386
|
return function patchSemanticModel(untrustedConfig) {
|
|
10385
|
-
const config = validateAdapterConfig$
|
|
10387
|
+
const config = validateAdapterConfig$b(untrustedConfig, patchSemanticModel_ConfigPropertyNames);
|
|
10386
10388
|
// Invalid or incomplete config
|
|
10387
10389
|
if (config === null) {
|
|
10388
10390
|
throw new Error('Invalid config for "patchSemanticModel"');
|
|
10389
10391
|
}
|
|
10390
|
-
return buildNetworkSnapshot$
|
|
10392
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
10391
10393
|
};
|
|
10392
10394
|
};
|
|
10393
10395
|
|
|
10394
|
-
|
|
10396
|
+
const VERSION$6 = "e96f6d15d947eadd33aeb16dd9222420";
|
|
10397
|
+
function validate$b(obj, path = 'SemanticDependencyOutputRepresentation') {
|
|
10395
10398
|
const v_error = (() => {
|
|
10396
10399
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10397
10400
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10398
10401
|
}
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10402
|
+
const obj_apiName = obj.apiName;
|
|
10403
|
+
const path_apiName = path + '.apiName';
|
|
10404
|
+
if (typeof obj_apiName !== 'string') {
|
|
10405
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
10406
|
+
}
|
|
10407
|
+
if (obj.definitionType !== undefined) {
|
|
10408
|
+
const obj_definitionType = obj.definitionType;
|
|
10409
|
+
const path_definitionType = path + '.definitionType';
|
|
10410
|
+
if (typeof obj_definitionType !== 'string') {
|
|
10411
|
+
return new TypeError('Expected "string" but received "' + typeof obj_definitionType + '" (at "' + path_definitionType + '")');
|
|
10412
|
+
}
|
|
10413
|
+
}
|
|
10414
|
+
if (obj.label !== undefined) {
|
|
10415
|
+
const obj_label = obj.label;
|
|
10416
|
+
const path_label = path + '.label';
|
|
10417
|
+
if (typeof obj_label !== 'string') {
|
|
10418
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
10404
10419
|
}
|
|
10405
10420
|
}
|
|
10406
|
-
if (obj.
|
|
10407
|
-
const
|
|
10408
|
-
const
|
|
10409
|
-
if (typeof
|
|
10410
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
10421
|
+
if (obj.modelApiName !== undefined) {
|
|
10422
|
+
const obj_modelApiName = obj.modelApiName;
|
|
10423
|
+
const path_modelApiName = path + '.modelApiName';
|
|
10424
|
+
if (typeof obj_modelApiName !== 'string') {
|
|
10425
|
+
return new TypeError('Expected "string" but received "' + typeof obj_modelApiName + '" (at "' + path_modelApiName + '")');
|
|
10411
10426
|
}
|
|
10412
10427
|
}
|
|
10413
10428
|
})();
|
|
10414
10429
|
return v_error === undefined ? null : v_error;
|
|
10415
10430
|
}
|
|
10416
|
-
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
|
|
10431
|
+
const select$f = function SemanticDependencyOutputRepresentationSelect() {
|
|
10432
|
+
return {
|
|
10433
|
+
kind: 'Fragment',
|
|
10434
|
+
version: VERSION$6,
|
|
10435
|
+
private: [],
|
|
10436
|
+
selections: [
|
|
10437
|
+
{
|
|
10438
|
+
name: 'apiName',
|
|
10439
|
+
kind: 'Scalar'
|
|
10440
|
+
},
|
|
10441
|
+
{
|
|
10442
|
+
name: 'definitionType',
|
|
10443
|
+
kind: 'Scalar',
|
|
10444
|
+
required: false
|
|
10445
|
+
},
|
|
10446
|
+
{
|
|
10447
|
+
name: 'label',
|
|
10448
|
+
kind: 'Scalar',
|
|
10449
|
+
required: false
|
|
10450
|
+
},
|
|
10451
|
+
{
|
|
10452
|
+
name: 'modelApiName',
|
|
10453
|
+
kind: 'Scalar',
|
|
10454
|
+
required: false
|
|
10455
|
+
}
|
|
10456
|
+
]
|
|
10457
|
+
};
|
|
10458
|
+
};
|
|
10459
|
+
function equals$6(existing, incoming) {
|
|
10460
|
+
const existing_apiName = existing.apiName;
|
|
10461
|
+
const incoming_apiName = incoming.apiName;
|
|
10462
|
+
if (!(existing_apiName === incoming_apiName)) {
|
|
10463
|
+
return false;
|
|
10464
|
+
}
|
|
10465
|
+
const existing_definitionType = existing.definitionType;
|
|
10466
|
+
const incoming_definitionType = incoming.definitionType;
|
|
10467
|
+
// if at least one of these optionals is defined
|
|
10468
|
+
if (existing_definitionType !== undefined || incoming_definitionType !== undefined) {
|
|
10469
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10470
|
+
// not equal
|
|
10471
|
+
if (existing_definitionType === undefined || incoming_definitionType === undefined) {
|
|
10472
|
+
return false;
|
|
10421
10473
|
}
|
|
10422
|
-
if (
|
|
10423
|
-
|
|
10474
|
+
if (!(existing_definitionType === incoming_definitionType)) {
|
|
10475
|
+
return false;
|
|
10424
10476
|
}
|
|
10425
|
-
}
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10477
|
+
}
|
|
10478
|
+
const existing_label = existing.label;
|
|
10479
|
+
const incoming_label = incoming.label;
|
|
10480
|
+
// if at least one of these optionals is defined
|
|
10481
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
10482
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10483
|
+
// not equal
|
|
10484
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
10485
|
+
return false;
|
|
10433
10486
|
}
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
const referencepath_dateValidationError = validate$b(obj_date, path_date);
|
|
10437
|
-
if (referencepath_dateValidationError !== null) {
|
|
10438
|
-
let message = 'Object doesn\'t match SemanticGoalDateRangeOutputRepresentation (at "' + path_date + '")\n';
|
|
10439
|
-
message += referencepath_dateValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10440
|
-
return new TypeError(message);
|
|
10487
|
+
if (!(existing_label === incoming_label)) {
|
|
10488
|
+
return false;
|
|
10441
10489
|
}
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
let message = 'Object doesn\'t match SemanticGoalValueOutputRepresentation (at "' + path_value + '")\n';
|
|
10452
|
-
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10453
|
-
return new TypeError(message);
|
|
10490
|
+
}
|
|
10491
|
+
const existing_modelApiName = existing.modelApiName;
|
|
10492
|
+
const incoming_modelApiName = incoming.modelApiName;
|
|
10493
|
+
// if at least one of these optionals is defined
|
|
10494
|
+
if (existing_modelApiName !== undefined || incoming_modelApiName !== undefined) {
|
|
10495
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10496
|
+
// not equal
|
|
10497
|
+
if (existing_modelApiName === undefined || incoming_modelApiName === undefined) {
|
|
10498
|
+
return false;
|
|
10454
10499
|
}
|
|
10455
|
-
|
|
10456
|
-
|
|
10500
|
+
if (!(existing_modelApiName === incoming_modelApiName)) {
|
|
10501
|
+
return false;
|
|
10502
|
+
}
|
|
10503
|
+
}
|
|
10504
|
+
return true;
|
|
10457
10505
|
}
|
|
10458
10506
|
|
|
10459
|
-
|
|
10507
|
+
const VERSION$5 = "62e5e0ffeb783cdde37da72d400b0869";
|
|
10508
|
+
function validate$a(obj, path = 'SemanticDependencyInnerCollectionOutputRepresentation') {
|
|
10460
10509
|
const v_error = (() => {
|
|
10461
10510
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10462
10511
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10463
10512
|
}
|
|
10464
|
-
if (obj.
|
|
10465
|
-
const
|
|
10466
|
-
const
|
|
10467
|
-
if (typeof
|
|
10468
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
10469
|
-
}
|
|
10470
|
-
}
|
|
10471
|
-
if (obj.
|
|
10472
|
-
const
|
|
10473
|
-
const
|
|
10474
|
-
if (
|
|
10475
|
-
return new TypeError('Expected "
|
|
10513
|
+
if (obj.definitionApiName !== undefined) {
|
|
10514
|
+
const obj_definitionApiName = obj.definitionApiName;
|
|
10515
|
+
const path_definitionApiName = path + '.definitionApiName';
|
|
10516
|
+
if (typeof obj_definitionApiName !== 'string') {
|
|
10517
|
+
return new TypeError('Expected "string" but received "' + typeof obj_definitionApiName + '" (at "' + path_definitionApiName + '")');
|
|
10518
|
+
}
|
|
10519
|
+
}
|
|
10520
|
+
if (obj.dependencies !== undefined) {
|
|
10521
|
+
const obj_dependencies = obj.dependencies;
|
|
10522
|
+
const path_dependencies = path + '.dependencies';
|
|
10523
|
+
if (!ArrayIsArray(obj_dependencies)) {
|
|
10524
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dependencies + '" (at "' + path_dependencies + '")');
|
|
10525
|
+
}
|
|
10526
|
+
for (let i = 0; i < obj_dependencies.length; i++) {
|
|
10527
|
+
const obj_dependencies_item = obj_dependencies[i];
|
|
10528
|
+
const path_dependencies_item = path_dependencies + '[' + i + ']';
|
|
10529
|
+
const referencepath_dependencies_itemValidationError = validate$b(obj_dependencies_item, path_dependencies_item);
|
|
10530
|
+
if (referencepath_dependencies_itemValidationError !== null) {
|
|
10531
|
+
let message = 'Object doesn\'t match SemanticDependencyOutputRepresentation (at "' + path_dependencies_item + '")\n';
|
|
10532
|
+
message += referencepath_dependencies_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10533
|
+
return new TypeError(message);
|
|
10534
|
+
}
|
|
10476
10535
|
}
|
|
10477
10536
|
}
|
|
10478
|
-
if (obj.
|
|
10479
|
-
const
|
|
10480
|
-
const
|
|
10481
|
-
if (typeof
|
|
10482
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
10537
|
+
if (obj.fieldApiName !== undefined) {
|
|
10538
|
+
const obj_fieldApiName = obj.fieldApiName;
|
|
10539
|
+
const path_fieldApiName = path + '.fieldApiName';
|
|
10540
|
+
if (typeof obj_fieldApiName !== 'string') {
|
|
10541
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
10483
10542
|
}
|
|
10484
10543
|
}
|
|
10485
10544
|
})();
|
|
10486
10545
|
return v_error === undefined ? null : v_error;
|
|
10487
10546
|
}
|
|
10488
|
-
|
|
10489
|
-
const
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
|
|
10500
|
-
|
|
10547
|
+
const select$e = function SemanticDependencyInnerCollectionOutputRepresentationSelect() {
|
|
10548
|
+
const { selections: SemanticDependencyOutputRepresentation__selections, opaque: SemanticDependencyOutputRepresentation__opaque, } = select$f();
|
|
10549
|
+
return {
|
|
10550
|
+
kind: 'Fragment',
|
|
10551
|
+
version: VERSION$5,
|
|
10552
|
+
private: [],
|
|
10553
|
+
selections: [
|
|
10554
|
+
{
|
|
10555
|
+
name: 'definitionApiName',
|
|
10556
|
+
kind: 'Scalar',
|
|
10557
|
+
required: false
|
|
10558
|
+
},
|
|
10559
|
+
{
|
|
10560
|
+
name: 'dependencies',
|
|
10561
|
+
kind: 'Object',
|
|
10562
|
+
plural: true,
|
|
10563
|
+
selections: SemanticDependencyOutputRepresentation__selections,
|
|
10564
|
+
required: false
|
|
10565
|
+
},
|
|
10566
|
+
{
|
|
10567
|
+
name: 'fieldApiName',
|
|
10568
|
+
kind: 'Scalar',
|
|
10569
|
+
required: false
|
|
10570
|
+
}
|
|
10571
|
+
]
|
|
10572
|
+
};
|
|
10573
|
+
};
|
|
10574
|
+
function equals$5(existing, incoming) {
|
|
10575
|
+
const existing_definitionApiName = existing.definitionApiName;
|
|
10576
|
+
const incoming_definitionApiName = incoming.definitionApiName;
|
|
10577
|
+
// if at least one of these optionals is defined
|
|
10578
|
+
if (existing_definitionApiName !== undefined || incoming_definitionApiName !== undefined) {
|
|
10579
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10580
|
+
// not equal
|
|
10581
|
+
if (existing_definitionApiName === undefined || incoming_definitionApiName === undefined) {
|
|
10582
|
+
return false;
|
|
10583
|
+
}
|
|
10584
|
+
if (!(existing_definitionApiName === incoming_definitionApiName)) {
|
|
10585
|
+
return false;
|
|
10586
|
+
}
|
|
10587
|
+
}
|
|
10588
|
+
const existing_fieldApiName = existing.fieldApiName;
|
|
10589
|
+
const incoming_fieldApiName = incoming.fieldApiName;
|
|
10590
|
+
// if at least one of these optionals is defined
|
|
10591
|
+
if (existing_fieldApiName !== undefined || incoming_fieldApiName !== undefined) {
|
|
10592
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10593
|
+
// not equal
|
|
10594
|
+
if (existing_fieldApiName === undefined || incoming_fieldApiName === undefined) {
|
|
10595
|
+
return false;
|
|
10596
|
+
}
|
|
10597
|
+
if (!(existing_fieldApiName === incoming_fieldApiName)) {
|
|
10598
|
+
return false;
|
|
10599
|
+
}
|
|
10600
|
+
}
|
|
10601
|
+
const existing_dependencies = existing.dependencies;
|
|
10602
|
+
const incoming_dependencies = incoming.dependencies;
|
|
10603
|
+
// if at least one of these optionals is defined
|
|
10604
|
+
if (existing_dependencies !== undefined || incoming_dependencies !== undefined) {
|
|
10605
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10606
|
+
// not equal
|
|
10607
|
+
if (existing_dependencies === undefined || incoming_dependencies === undefined) {
|
|
10608
|
+
return false;
|
|
10609
|
+
}
|
|
10610
|
+
const equals_dependencies_items = equalsArray(existing_dependencies, incoming_dependencies, (existing_dependencies_item, incoming_dependencies_item) => {
|
|
10611
|
+
if (!(equals$6(existing_dependencies_item, incoming_dependencies_item))) {
|
|
10612
|
+
return false;
|
|
10613
|
+
}
|
|
10614
|
+
});
|
|
10615
|
+
if (equals_dependencies_items === false) {
|
|
10616
|
+
return false;
|
|
10617
|
+
}
|
|
10618
|
+
}
|
|
10619
|
+
return true;
|
|
10620
|
+
}
|
|
10621
|
+
|
|
10622
|
+
const VERSION$4 = "e710141192798ab103ce7e9b469baad4";
|
|
10623
|
+
function validate$9(obj, path = 'SemanticDependencyCollectionOutputRepresentation') {
|
|
10624
|
+
const v_error = (() => {
|
|
10625
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10626
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10627
|
+
}
|
|
10628
|
+
if (obj.item !== undefined) {
|
|
10629
|
+
const obj_item = obj.item;
|
|
10630
|
+
const path_item = path + '.item';
|
|
10631
|
+
if (!ArrayIsArray(obj_item)) {
|
|
10632
|
+
return new TypeError('Expected "array" but received "' + typeof obj_item + '" (at "' + path_item + '")');
|
|
10633
|
+
}
|
|
10634
|
+
for (let i = 0; i < obj_item.length; i++) {
|
|
10635
|
+
const obj_item_item = obj_item[i];
|
|
10636
|
+
const path_item_item = path_item + '[' + i + ']';
|
|
10637
|
+
const referencepath_item_itemValidationError = validate$a(obj_item_item, path_item_item);
|
|
10638
|
+
if (referencepath_item_itemValidationError !== null) {
|
|
10639
|
+
let message = 'Object doesn\'t match SemanticDependencyInnerCollectionOutputRepresentation (at "' + path_item_item + '")\n';
|
|
10640
|
+
message += referencepath_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10641
|
+
return new TypeError(message);
|
|
10642
|
+
}
|
|
10643
|
+
}
|
|
10644
|
+
}
|
|
10645
|
+
})();
|
|
10646
|
+
return v_error === undefined ? null : v_error;
|
|
10647
|
+
}
|
|
10648
|
+
const RepresentationType$4 = 'SemanticDependencyCollectionOutputRepresentation';
|
|
10649
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
10650
|
+
return input;
|
|
10651
|
+
}
|
|
10652
|
+
const select$d = function SemanticDependencyCollectionOutputRepresentationSelect() {
|
|
10653
|
+
const { selections: SemanticDependencyInnerCollectionOutputRepresentation__selections, opaque: SemanticDependencyInnerCollectionOutputRepresentation__opaque, } = select$e();
|
|
10654
|
+
return {
|
|
10655
|
+
kind: 'Fragment',
|
|
10656
|
+
version: VERSION$4,
|
|
10657
|
+
private: [],
|
|
10658
|
+
selections: [
|
|
10659
|
+
{
|
|
10660
|
+
name: 'item',
|
|
10661
|
+
kind: 'Object',
|
|
10662
|
+
plural: true,
|
|
10663
|
+
selections: SemanticDependencyInnerCollectionOutputRepresentation__selections,
|
|
10664
|
+
required: false
|
|
10665
|
+
}
|
|
10666
|
+
]
|
|
10667
|
+
};
|
|
10668
|
+
};
|
|
10669
|
+
function equals$4(existing, incoming) {
|
|
10670
|
+
const existing_item = existing.item;
|
|
10671
|
+
const incoming_item = incoming.item;
|
|
10672
|
+
// if at least one of these optionals is defined
|
|
10673
|
+
if (existing_item !== undefined || incoming_item !== undefined) {
|
|
10674
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10675
|
+
// not equal
|
|
10676
|
+
if (existing_item === undefined || incoming_item === undefined) {
|
|
10677
|
+
return false;
|
|
10678
|
+
}
|
|
10679
|
+
const equals_item_items = equalsArray(existing_item, incoming_item, (existing_item_item, incoming_item_item) => {
|
|
10680
|
+
if (!(equals$5(existing_item_item, incoming_item_item))) {
|
|
10681
|
+
return false;
|
|
10682
|
+
}
|
|
10683
|
+
});
|
|
10684
|
+
if (equals_item_items === false) {
|
|
10685
|
+
return false;
|
|
10686
|
+
}
|
|
10687
|
+
}
|
|
10688
|
+
return true;
|
|
10689
|
+
}
|
|
10690
|
+
const ingest$4 = function SemanticDependencyCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10691
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
10692
|
+
const validateError = validate$9(input);
|
|
10693
|
+
if (validateError !== null) {
|
|
10694
|
+
throw validateError;
|
|
10695
|
+
}
|
|
10696
|
+
}
|
|
10697
|
+
const key = path.fullPath;
|
|
10698
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
10699
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "SemanticAuthoring", VERSION$4, RepresentationType$4, equals$4);
|
|
10700
|
+
return createLink(key);
|
|
10701
|
+
};
|
|
10702
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
10703
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
10704
|
+
const rootKey = fullPathFactory();
|
|
10705
|
+
rootKeySet.set(rootKey, {
|
|
10706
|
+
namespace: keyPrefix,
|
|
10707
|
+
representationName: RepresentationType$4,
|
|
10708
|
+
mergeable: false
|
|
10709
|
+
});
|
|
10710
|
+
}
|
|
10711
|
+
|
|
10712
|
+
function select$c(luvio, params) {
|
|
10713
|
+
return select$d();
|
|
10714
|
+
}
|
|
10715
|
+
function keyBuilder$g(luvio, params) {
|
|
10716
|
+
return keyPrefix + '::SemanticDependencyCollectionOutputRepresentation:(' + 'types:' + params.queryParams.types + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10717
|
+
}
|
|
10718
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
10719
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
10720
|
+
}
|
|
10721
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
10722
|
+
const { body } = response;
|
|
10723
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
10724
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
10725
|
+
const snapshot = luvio.storeLookup({
|
|
10726
|
+
recordId: key,
|
|
10727
|
+
node: select$c(),
|
|
10728
|
+
variables: {},
|
|
10729
|
+
}, snapshotRefresh);
|
|
10730
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
10731
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
10732
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
10733
|
+
}
|
|
10734
|
+
}
|
|
10735
|
+
deepFreeze(snapshot.data);
|
|
10736
|
+
return snapshot;
|
|
10737
|
+
}
|
|
10738
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
10739
|
+
const key = keyBuilder$g(luvio, params);
|
|
10740
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10741
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
10742
|
+
return errorSnapshot;
|
|
10743
|
+
}
|
|
10744
|
+
function createResourceRequest$a(config) {
|
|
10745
|
+
const headers = {};
|
|
10746
|
+
return {
|
|
10747
|
+
baseUri: '/services/data/v64.0',
|
|
10748
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/dependencies',
|
|
10749
|
+
method: 'get',
|
|
10750
|
+
body: null,
|
|
10751
|
+
urlParams: config.urlParams,
|
|
10752
|
+
queryParams: config.queryParams,
|
|
10753
|
+
headers,
|
|
10754
|
+
priority: 'normal',
|
|
10755
|
+
};
|
|
10756
|
+
}
|
|
10757
|
+
|
|
10758
|
+
const adapterName$a = 'getLeafDependenciesByTypes';
|
|
10759
|
+
const getLeafDependenciesByTypes_ConfigPropertyMetadata = [
|
|
10760
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10761
|
+
generateParamConfigMetadata('types', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
10762
|
+
];
|
|
10763
|
+
const getLeafDependenciesByTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10764
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$g(getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10765
|
+
function keyBuilder$f(luvio, config) {
|
|
10766
|
+
const resourceParams = createResourceParams$a(config);
|
|
10767
|
+
return keyBuilder$g(luvio, resourceParams);
|
|
10768
|
+
}
|
|
10769
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
10770
|
+
const config = {};
|
|
10771
|
+
typeCheckConfig$g(untrustedConfig, config, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10772
|
+
return config;
|
|
10773
|
+
}
|
|
10774
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
10775
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
10776
|
+
return null;
|
|
10777
|
+
}
|
|
10778
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
10779
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
10780
|
+
}
|
|
10781
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
10782
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10783
|
+
return null;
|
|
10784
|
+
}
|
|
10785
|
+
return config;
|
|
10786
|
+
}
|
|
10787
|
+
function adapterFragment$6(luvio, config) {
|
|
10788
|
+
createResourceParams$a(config);
|
|
10789
|
+
return select$c();
|
|
10790
|
+
}
|
|
10791
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
10792
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
10793
|
+
config,
|
|
10794
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
10795
|
+
});
|
|
10796
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
10797
|
+
}
|
|
10798
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
10799
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
10800
|
+
config,
|
|
10801
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
10802
|
+
});
|
|
10803
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
10804
|
+
}
|
|
10805
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
10806
|
+
const resourceParams = createResourceParams$a(config);
|
|
10807
|
+
const request = createResourceRequest$a(resourceParams);
|
|
10808
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
10809
|
+
.then((response) => {
|
|
10810
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
10811
|
+
const cache = new StoreKeyMap();
|
|
10812
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
10813
|
+
return cache;
|
|
10814
|
+
});
|
|
10815
|
+
}, (response) => {
|
|
10816
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
10817
|
+
});
|
|
10818
|
+
}
|
|
10819
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
10820
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
10821
|
+
}
|
|
10822
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
10823
|
+
const { luvio, config } = context;
|
|
10824
|
+
const selector = {
|
|
10825
|
+
recordId: keyBuilder$f(luvio, config),
|
|
10826
|
+
node: adapterFragment$6(luvio, config),
|
|
10827
|
+
variables: {},
|
|
10828
|
+
};
|
|
10829
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
10830
|
+
config,
|
|
10831
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
10832
|
+
});
|
|
10833
|
+
return cacheSnapshot;
|
|
10834
|
+
}
|
|
10835
|
+
const getLeafDependenciesByTypesAdapterFactory = (luvio) => function SemanticAuthoring__getLeafDependenciesByTypes(untrustedConfig, requestContext) {
|
|
10836
|
+
const config = validateAdapterConfig$a(untrustedConfig, getLeafDependenciesByTypes_ConfigPropertyNames);
|
|
10837
|
+
// Invalid or incomplete config
|
|
10838
|
+
if (config === null) {
|
|
10839
|
+
return null;
|
|
10840
|
+
}
|
|
10841
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
10842
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
10843
|
+
};
|
|
10844
|
+
|
|
10845
|
+
function validate$8(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
10846
|
+
const v_error = (() => {
|
|
10847
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10848
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10849
|
+
}
|
|
10850
|
+
const obj_forecasting = obj.forecasting;
|
|
10851
|
+
const path_forecasting = path + '.forecasting';
|
|
10852
|
+
if (typeof obj_forecasting !== 'boolean') {
|
|
10853
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
10854
|
+
}
|
|
10855
|
+
})();
|
|
10856
|
+
return v_error === undefined ? null : v_error;
|
|
10857
|
+
}
|
|
10858
|
+
|
|
10859
|
+
function validate$7(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
10860
|
+
const v_error = (() => {
|
|
10861
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10862
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10863
|
+
}
|
|
10864
|
+
if (obj.customEndDate !== undefined) {
|
|
10865
|
+
const obj_customEndDate = obj.customEndDate;
|
|
10866
|
+
const path_customEndDate = path + '.customEndDate';
|
|
10867
|
+
if (typeof obj_customEndDate !== 'string') {
|
|
10868
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customEndDate + '" (at "' + path_customEndDate + '")');
|
|
10869
|
+
}
|
|
10870
|
+
}
|
|
10871
|
+
if (obj.customStartDate !== undefined) {
|
|
10872
|
+
const obj_customStartDate = obj.customStartDate;
|
|
10873
|
+
const path_customStartDate = path + '.customStartDate';
|
|
10874
|
+
if (typeof obj_customStartDate !== 'string') {
|
|
10875
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customStartDate + '" (at "' + path_customStartDate + '")');
|
|
10876
|
+
}
|
|
10877
|
+
}
|
|
10878
|
+
if (obj.timeRangeType !== undefined) {
|
|
10879
|
+
const obj_timeRangeType = obj.timeRangeType;
|
|
10880
|
+
const path_timeRangeType = path + '.timeRangeType';
|
|
10881
|
+
if (typeof obj_timeRangeType !== 'string') {
|
|
10882
|
+
return new TypeError('Expected "string" but received "' + typeof obj_timeRangeType + '" (at "' + path_timeRangeType + '")');
|
|
10883
|
+
}
|
|
10884
|
+
}
|
|
10885
|
+
})();
|
|
10886
|
+
return v_error === undefined ? null : v_error;
|
|
10887
|
+
}
|
|
10888
|
+
|
|
10889
|
+
const VERSION$3 = "34ece37408ddd80874097c87b829ae97";
|
|
10890
|
+
function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
10891
|
+
const v_error = (() => {
|
|
10892
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10893
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10894
|
+
}
|
|
10895
|
+
const obj_apiName = obj.apiName;
|
|
10896
|
+
const path_apiName = path + '.apiName';
|
|
10897
|
+
if (typeof obj_apiName !== 'string') {
|
|
10898
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
10899
|
+
}
|
|
10900
|
+
if (obj.baseModelApiName !== undefined) {
|
|
10501
10901
|
const obj_baseModelApiName = obj.baseModelApiName;
|
|
10502
10902
|
const path_baseModelApiName = path + '.baseModelApiName';
|
|
10503
10903
|
if (typeof obj_baseModelApiName !== 'string') {
|
|
@@ -10555,7 +10955,7 @@ function validate$7(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10555
10955
|
if (obj.goal !== undefined) {
|
|
10556
10956
|
const obj_goal = obj.goal;
|
|
10557
10957
|
const path_goal = path + '.goal';
|
|
10558
|
-
const referencepath_goalValidationError = validate$
|
|
10958
|
+
const referencepath_goalValidationError = validate$8(obj_goal, path_goal);
|
|
10559
10959
|
if (referencepath_goalValidationError !== null) {
|
|
10560
10960
|
let message = 'Object doesn\'t match SemanticMetricGoalOutputRepresentation (at "' + path_goal + '")\n';
|
|
10561
10961
|
message += referencepath_goalValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10608,7 +11008,7 @@ function validate$7(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10608
11008
|
if (obj.timeRange !== undefined) {
|
|
10609
11009
|
const obj_timeRange = obj.timeRange;
|
|
10610
11010
|
const path_timeRange = path + '.timeRange';
|
|
10611
|
-
const referencepath_timeRangeValidationError = validate$
|
|
11011
|
+
const referencepath_timeRangeValidationError = validate$7(obj_timeRange, path_timeRange);
|
|
10612
11012
|
if (referencepath_timeRangeValidationError !== null) {
|
|
10613
11013
|
let message = 'Object doesn\'t match SemanticTimeRangeOutputRepresentation (at "' + path_timeRange + '")\n';
|
|
10614
11014
|
message += referencepath_timeRangeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10619,19 +11019,19 @@ function validate$7(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10619
11019
|
return v_error === undefined ? null : v_error;
|
|
10620
11020
|
}
|
|
10621
11021
|
const RepresentationType$3 = 'SemanticSubMetricOutputRepresentation';
|
|
10622
|
-
function keyBuilder$
|
|
11022
|
+
function keyBuilder$e(luvio, config) {
|
|
10623
11023
|
return keyPrefix + '::' + RepresentationType$3 + ':' + config.name;
|
|
10624
11024
|
}
|
|
10625
11025
|
function keyBuilderFromType(luvio, object) {
|
|
10626
11026
|
const keyParams = {
|
|
10627
11027
|
name: object.id
|
|
10628
11028
|
};
|
|
10629
|
-
return keyBuilder$
|
|
11029
|
+
return keyBuilder$e(luvio, keyParams);
|
|
10630
11030
|
}
|
|
10631
11031
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
10632
11032
|
return input;
|
|
10633
11033
|
}
|
|
10634
|
-
const select$
|
|
11034
|
+
const select$b = function SemanticSubMetricOutputRepresentationSelect() {
|
|
10635
11035
|
return {
|
|
10636
11036
|
kind: 'Fragment',
|
|
10637
11037
|
version: VERSION$3,
|
|
@@ -10647,7 +11047,7 @@ function equals$3(existing, incoming) {
|
|
|
10647
11047
|
}
|
|
10648
11048
|
const ingest$3 = function SemanticSubMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10649
11049
|
if (process.env.NODE_ENV !== 'production') {
|
|
10650
|
-
const validateError = validate$
|
|
11050
|
+
const validateError = validate$6(input);
|
|
10651
11051
|
if (validateError !== null) {
|
|
10652
11052
|
throw validateError;
|
|
10653
11053
|
}
|
|
@@ -10668,7 +11068,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10668
11068
|
}
|
|
10669
11069
|
|
|
10670
11070
|
const VERSION$2 = "2980e56b9b4f8b3773f2554f67834745";
|
|
10671
|
-
function validate$
|
|
11071
|
+
function validate$5(obj, path = 'SemanticSubMetricsByMetricOutputRepresentation') {
|
|
10672
11072
|
const v_error = (() => {
|
|
10673
11073
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10674
11074
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -10719,7 +11119,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
10719
11119
|
}
|
|
10720
11120
|
return input;
|
|
10721
11121
|
}
|
|
10722
|
-
const select$
|
|
11122
|
+
const select$a = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
|
|
10723
11123
|
return {
|
|
10724
11124
|
kind: 'Fragment',
|
|
10725
11125
|
version: VERSION$2,
|
|
@@ -10735,7 +11135,7 @@ const select$9 = function SemanticSubMetricsByMetricOutputRepresentationSelect()
|
|
|
10735
11135
|
kind: 'Link',
|
|
10736
11136
|
plural: true,
|
|
10737
11137
|
required: false,
|
|
10738
|
-
fragment: select$
|
|
11138
|
+
fragment: select$b()
|
|
10739
11139
|
}
|
|
10740
11140
|
]
|
|
10741
11141
|
};
|
|
@@ -10776,7 +11176,7 @@ function equals$2(existing, incoming) {
|
|
|
10776
11176
|
}
|
|
10777
11177
|
const ingest$2 = function SemanticSubMetricsByMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10778
11178
|
if (process.env.NODE_ENV !== 'production') {
|
|
10779
|
-
const validateError = validate$
|
|
11179
|
+
const validateError = validate$5(input);
|
|
10780
11180
|
if (validateError !== null) {
|
|
10781
11181
|
throw validateError;
|
|
10782
11182
|
}
|
|
@@ -10803,7 +11203,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10803
11203
|
}
|
|
10804
11204
|
|
|
10805
11205
|
const VERSION$1 = "6fbd75e1a154b08c14ba6560c06488db";
|
|
10806
|
-
function validate$
|
|
11206
|
+
function validate$4(obj, path = 'SemanticSubMetricsByMetricCollectionOutputRepresentation') {
|
|
10807
11207
|
const v_error = (() => {
|
|
10808
11208
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10809
11209
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -10847,7 +11247,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
10847
11247
|
}
|
|
10848
11248
|
return input;
|
|
10849
11249
|
}
|
|
10850
|
-
const select$
|
|
11250
|
+
const select$9 = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
|
|
10851
11251
|
return {
|
|
10852
11252
|
kind: 'Fragment',
|
|
10853
11253
|
version: VERSION$1,
|
|
@@ -10858,7 +11258,7 @@ const select$8 = function SemanticSubMetricsByMetricCollectionOutputRepresentati
|
|
|
10858
11258
|
kind: 'Link',
|
|
10859
11259
|
plural: true,
|
|
10860
11260
|
required: false,
|
|
10861
|
-
fragment: select$
|
|
11261
|
+
fragment: select$a()
|
|
10862
11262
|
}
|
|
10863
11263
|
]
|
|
10864
11264
|
};
|
|
@@ -10886,7 +11286,7 @@ function equals$1(existing, incoming) {
|
|
|
10886
11286
|
}
|
|
10887
11287
|
const ingest$1 = function SemanticSubMetricsByMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10888
11288
|
if (process.env.NODE_ENV !== 'production') {
|
|
10889
|
-
const validateError = validate$
|
|
11289
|
+
const validateError = validate$4(input);
|
|
10890
11290
|
if (validateError !== null) {
|
|
10891
11291
|
throw validateError;
|
|
10892
11292
|
}
|
|
@@ -10912,22 +11312,22 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10912
11312
|
}
|
|
10913
11313
|
}
|
|
10914
11314
|
|
|
10915
|
-
function select$
|
|
10916
|
-
return select$
|
|
11315
|
+
function select$8(luvio, params) {
|
|
11316
|
+
return select$9();
|
|
10917
11317
|
}
|
|
10918
|
-
function keyBuilder$
|
|
11318
|
+
function keyBuilder$d(luvio, params) {
|
|
10919
11319
|
return keyPrefix + '::SemanticSubMetricsByMetricCollectionOutputRepresentation:(' + 'metricApiNames:' + params.urlParams.metricApiNames + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10920
11320
|
}
|
|
10921
|
-
function getResponseCacheKeys$
|
|
10922
|
-
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
11321
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
11322
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
10923
11323
|
}
|
|
10924
|
-
function ingestSuccess$
|
|
11324
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
10925
11325
|
const { body } = response;
|
|
10926
|
-
const key = keyBuilder$
|
|
11326
|
+
const key = keyBuilder$d(luvio, resourceParams);
|
|
10927
11327
|
luvio.storeIngest(key, ingest$1, body);
|
|
10928
11328
|
const snapshot = luvio.storeLookup({
|
|
10929
11329
|
recordId: key,
|
|
10930
|
-
node: select$
|
|
11330
|
+
node: select$8(),
|
|
10931
11331
|
variables: {},
|
|
10932
11332
|
}, snapshotRefresh);
|
|
10933
11333
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10939,15 +11339,15 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
10939
11339
|
return snapshot;
|
|
10940
11340
|
}
|
|
10941
11341
|
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
10942
|
-
const key = keyBuilder$
|
|
11342
|
+
const key = keyBuilder$d(luvio, params);
|
|
10943
11343
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10944
11344
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10945
11345
|
return errorSnapshot;
|
|
10946
11346
|
}
|
|
10947
|
-
function createResourceRequest$
|
|
11347
|
+
function createResourceRequest$9(config) {
|
|
10948
11348
|
const headers = {};
|
|
10949
11349
|
return {
|
|
10950
|
-
baseUri: '/services/data/
|
|
11350
|
+
baseUri: '/services/data/v64.0',
|
|
10951
11351
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metric-api-names/' + config.urlParams.metricApiNames + '/sub-metrics',
|
|
10952
11352
|
method: 'get',
|
|
10953
11353
|
body: null,
|
|
@@ -10958,61 +11358,61 @@ function createResourceRequest$7(config) {
|
|
|
10958
11358
|
};
|
|
10959
11359
|
}
|
|
10960
11360
|
|
|
10961
|
-
const adapterName$
|
|
11361
|
+
const adapterName$9 = 'getSemanticMetricsToSubMetrics';
|
|
10962
11362
|
const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
10963
11363
|
generateParamConfigMetadata('metricApiNames', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10964
11364
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10965
11365
|
];
|
|
10966
|
-
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10967
|
-
const createResourceParams$
|
|
10968
|
-
function keyBuilder$
|
|
10969
|
-
const resourceParams = createResourceParams$
|
|
10970
|
-
return keyBuilder$
|
|
11366
|
+
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11367
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$g(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11368
|
+
function keyBuilder$c(luvio, config) {
|
|
11369
|
+
const resourceParams = createResourceParams$9(config);
|
|
11370
|
+
return keyBuilder$d(luvio, resourceParams);
|
|
10971
11371
|
}
|
|
10972
|
-
function typeCheckConfig$
|
|
11372
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
10973
11373
|
const config = {};
|
|
10974
|
-
typeCheckConfig$
|
|
11374
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10975
11375
|
return config;
|
|
10976
11376
|
}
|
|
10977
|
-
function validateAdapterConfig$
|
|
11377
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
10978
11378
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10979
11379
|
return null;
|
|
10980
11380
|
}
|
|
10981
11381
|
if (process.env.NODE_ENV !== 'production') {
|
|
10982
11382
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10983
11383
|
}
|
|
10984
|
-
const config = typeCheckConfig$
|
|
11384
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
10985
11385
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10986
11386
|
return null;
|
|
10987
11387
|
}
|
|
10988
11388
|
return config;
|
|
10989
11389
|
}
|
|
10990
11390
|
function adapterFragment$5(luvio, config) {
|
|
10991
|
-
createResourceParams$
|
|
10992
|
-
return select$
|
|
11391
|
+
createResourceParams$9(config);
|
|
11392
|
+
return select$8();
|
|
10993
11393
|
}
|
|
10994
11394
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
10995
|
-
const snapshot = ingestSuccess$
|
|
11395
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
10996
11396
|
config,
|
|
10997
|
-
resolve: () => buildNetworkSnapshot$
|
|
11397
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
10998
11398
|
});
|
|
10999
11399
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11000
11400
|
}
|
|
11001
11401
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
11002
11402
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
11003
11403
|
config,
|
|
11004
|
-
resolve: () => buildNetworkSnapshot$
|
|
11404
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
11005
11405
|
});
|
|
11006
11406
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11007
11407
|
}
|
|
11008
|
-
function buildNetworkSnapshot$
|
|
11009
|
-
const resourceParams = createResourceParams$
|
|
11010
|
-
const request = createResourceRequest$
|
|
11408
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
11409
|
+
const resourceParams = createResourceParams$9(config);
|
|
11410
|
+
const request = createResourceRequest$9(resourceParams);
|
|
11011
11411
|
return luvio.dispatchResourceRequest(request, options)
|
|
11012
11412
|
.then((response) => {
|
|
11013
11413
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
11014
11414
|
const cache = new StoreKeyMap();
|
|
11015
|
-
getResponseCacheKeys$
|
|
11415
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
11016
11416
|
return cache;
|
|
11017
11417
|
});
|
|
11018
11418
|
}, (response) => {
|
|
@@ -11020,23 +11420,23 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
11020
11420
|
});
|
|
11021
11421
|
}
|
|
11022
11422
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
11023
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11423
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
11024
11424
|
}
|
|
11025
11425
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
11026
11426
|
const { luvio, config } = context;
|
|
11027
11427
|
const selector = {
|
|
11028
|
-
recordId: keyBuilder$
|
|
11428
|
+
recordId: keyBuilder$c(luvio, config),
|
|
11029
11429
|
node: adapterFragment$5(luvio, config),
|
|
11030
11430
|
variables: {},
|
|
11031
11431
|
};
|
|
11032
11432
|
const cacheSnapshot = storeLookup(selector, {
|
|
11033
11433
|
config,
|
|
11034
|
-
resolve: () => buildNetworkSnapshot$
|
|
11434
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
11035
11435
|
});
|
|
11036
11436
|
return cacheSnapshot;
|
|
11037
11437
|
}
|
|
11038
11438
|
const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsToSubMetrics(untrustedConfig, requestContext) {
|
|
11039
|
-
const config = validateAdapterConfig$
|
|
11439
|
+
const config = validateAdapterConfig$9(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
|
|
11040
11440
|
// Invalid or incomplete config
|
|
11041
11441
|
if (config === null) {
|
|
11042
11442
|
return null;
|
|
@@ -11045,22 +11445,22 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
11045
11445
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
11046
11446
|
};
|
|
11047
11447
|
|
|
11048
|
-
function select$
|
|
11049
|
-
return select$
|
|
11448
|
+
function select$7(luvio, params) {
|
|
11449
|
+
return select$D();
|
|
11050
11450
|
}
|
|
11051
|
-
function keyBuilder$
|
|
11451
|
+
function keyBuilder$b(luvio, params) {
|
|
11052
11452
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11053
11453
|
}
|
|
11054
|
-
function getResponseCacheKeys$
|
|
11055
|
-
getTypeCacheKeys$
|
|
11454
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
11455
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
11056
11456
|
}
|
|
11057
|
-
function ingestSuccess$
|
|
11457
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
11058
11458
|
const { body } = response;
|
|
11059
|
-
const key = keyBuilder$
|
|
11060
|
-
luvio.storeIngest(key, ingest$
|
|
11459
|
+
const key = keyBuilder$b(luvio, resourceParams);
|
|
11460
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
11061
11461
|
const snapshot = luvio.storeLookup({
|
|
11062
11462
|
recordId: key,
|
|
11063
|
-
node: select$
|
|
11463
|
+
node: select$7(),
|
|
11064
11464
|
variables: {},
|
|
11065
11465
|
}, snapshotRefresh);
|
|
11066
11466
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11072,15 +11472,15 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11072
11472
|
return snapshot;
|
|
11073
11473
|
}
|
|
11074
11474
|
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
11075
|
-
const key = keyBuilder$
|
|
11475
|
+
const key = keyBuilder$b(luvio, params);
|
|
11076
11476
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11077
11477
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11078
11478
|
return errorSnapshot;
|
|
11079
11479
|
}
|
|
11080
|
-
function createResourceRequest$
|
|
11480
|
+
function createResourceRequest$8(config) {
|
|
11081
11481
|
const headers = {};
|
|
11082
11482
|
return {
|
|
11083
|
-
baseUri: '/services/data/
|
|
11483
|
+
baseUri: '/services/data/v64.0',
|
|
11084
11484
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics',
|
|
11085
11485
|
method: 'get',
|
|
11086
11486
|
body: null,
|
|
@@ -11091,60 +11491,60 @@ function createResourceRequest$6(config) {
|
|
|
11091
11491
|
};
|
|
11092
11492
|
}
|
|
11093
11493
|
|
|
11094
|
-
const adapterName$
|
|
11494
|
+
const adapterName$8 = 'getSemanticMetrics';
|
|
11095
11495
|
const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
11096
11496
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11097
11497
|
];
|
|
11098
|
-
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11099
|
-
const createResourceParams$
|
|
11100
|
-
function keyBuilder$
|
|
11101
|
-
const resourceParams = createResourceParams$
|
|
11102
|
-
return keyBuilder$
|
|
11498
|
+
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11499
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$g(getSemanticMetrics_ConfigPropertyMetadata);
|
|
11500
|
+
function keyBuilder$a(luvio, config) {
|
|
11501
|
+
const resourceParams = createResourceParams$8(config);
|
|
11502
|
+
return keyBuilder$b(luvio, resourceParams);
|
|
11103
11503
|
}
|
|
11104
|
-
function typeCheckConfig$
|
|
11504
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
11105
11505
|
const config = {};
|
|
11106
|
-
typeCheckConfig$
|
|
11506
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11107
11507
|
return config;
|
|
11108
11508
|
}
|
|
11109
|
-
function validateAdapterConfig$
|
|
11509
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
11110
11510
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11111
11511
|
return null;
|
|
11112
11512
|
}
|
|
11113
11513
|
if (process.env.NODE_ENV !== 'production') {
|
|
11114
11514
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11115
11515
|
}
|
|
11116
|
-
const config = typeCheckConfig$
|
|
11516
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
11117
11517
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11118
11518
|
return null;
|
|
11119
11519
|
}
|
|
11120
11520
|
return config;
|
|
11121
11521
|
}
|
|
11122
11522
|
function adapterFragment$4(luvio, config) {
|
|
11123
|
-
createResourceParams$
|
|
11124
|
-
return select$
|
|
11523
|
+
createResourceParams$8(config);
|
|
11524
|
+
return select$7();
|
|
11125
11525
|
}
|
|
11126
11526
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
11127
|
-
const snapshot = ingestSuccess$
|
|
11527
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
11128
11528
|
config,
|
|
11129
|
-
resolve: () => buildNetworkSnapshot$
|
|
11529
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11130
11530
|
});
|
|
11131
11531
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11132
11532
|
}
|
|
11133
11533
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
11134
11534
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
11135
11535
|
config,
|
|
11136
|
-
resolve: () => buildNetworkSnapshot$
|
|
11536
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11137
11537
|
});
|
|
11138
11538
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11139
11539
|
}
|
|
11140
|
-
function buildNetworkSnapshot$
|
|
11141
|
-
const resourceParams = createResourceParams$
|
|
11142
|
-
const request = createResourceRequest$
|
|
11540
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
11541
|
+
const resourceParams = createResourceParams$8(config);
|
|
11542
|
+
const request = createResourceRequest$8(resourceParams);
|
|
11143
11543
|
return luvio.dispatchResourceRequest(request, options)
|
|
11144
11544
|
.then((response) => {
|
|
11145
11545
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
11146
11546
|
const cache = new StoreKeyMap();
|
|
11147
|
-
getResponseCacheKeys$
|
|
11547
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
11148
11548
|
return cache;
|
|
11149
11549
|
});
|
|
11150
11550
|
}, (response) => {
|
|
@@ -11152,23 +11552,23 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
11152
11552
|
});
|
|
11153
11553
|
}
|
|
11154
11554
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
11155
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11555
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
11156
11556
|
}
|
|
11157
11557
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
11158
11558
|
const { luvio, config } = context;
|
|
11159
11559
|
const selector = {
|
|
11160
|
-
recordId: keyBuilder$
|
|
11560
|
+
recordId: keyBuilder$a(luvio, config),
|
|
11161
11561
|
node: adapterFragment$4(luvio, config),
|
|
11162
11562
|
variables: {},
|
|
11163
11563
|
};
|
|
11164
11564
|
const cacheSnapshot = storeLookup(selector, {
|
|
11165
11565
|
config,
|
|
11166
|
-
resolve: () => buildNetworkSnapshot$
|
|
11566
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11167
11567
|
});
|
|
11168
11568
|
return cacheSnapshot;
|
|
11169
11569
|
}
|
|
11170
11570
|
const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
|
|
11171
|
-
const config = validateAdapterConfig$
|
|
11571
|
+
const config = validateAdapterConfig$8(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
|
|
11172
11572
|
// Invalid or incomplete config
|
|
11173
11573
|
if (config === null) {
|
|
11174
11574
|
return null;
|
|
@@ -11177,24 +11577,24 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
11177
11577
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
11178
11578
|
};
|
|
11179
11579
|
|
|
11180
|
-
function select$
|
|
11181
|
-
return select$
|
|
11580
|
+
function select$6(luvio, params) {
|
|
11581
|
+
return select$E();
|
|
11182
11582
|
}
|
|
11183
|
-
function keyBuilder$
|
|
11184
|
-
return keyBuilder$
|
|
11583
|
+
function keyBuilder$9(luvio, params) {
|
|
11584
|
+
return keyBuilder$x(luvio, {
|
|
11185
11585
|
name: params.urlParams.metricNameOrId
|
|
11186
11586
|
});
|
|
11187
11587
|
}
|
|
11188
|
-
function getResponseCacheKeys$
|
|
11189
|
-
getTypeCacheKeys$
|
|
11588
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
11589
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
11190
11590
|
}
|
|
11191
|
-
function ingestSuccess$
|
|
11591
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
11192
11592
|
const { body } = response;
|
|
11193
|
-
const key = keyBuilder$
|
|
11194
|
-
luvio.storeIngest(key, ingest$
|
|
11593
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
11594
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
11195
11595
|
const snapshot = luvio.storeLookup({
|
|
11196
11596
|
recordId: key,
|
|
11197
|
-
node: select$
|
|
11597
|
+
node: select$6(),
|
|
11198
11598
|
variables: {},
|
|
11199
11599
|
}, snapshotRefresh);
|
|
11200
11600
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11206,15 +11606,15 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11206
11606
|
return snapshot;
|
|
11207
11607
|
}
|
|
11208
11608
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
11209
|
-
const key = keyBuilder$
|
|
11609
|
+
const key = keyBuilder$9(luvio, params);
|
|
11210
11610
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11211
11611
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11212
11612
|
return errorSnapshot;
|
|
11213
11613
|
}
|
|
11214
|
-
function createResourceRequest$
|
|
11614
|
+
function createResourceRequest$7(config) {
|
|
11215
11615
|
const headers = {};
|
|
11216
11616
|
return {
|
|
11217
|
-
baseUri: '/services/data/
|
|
11617
|
+
baseUri: '/services/data/v64.0',
|
|
11218
11618
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics/' + config.urlParams.metricNameOrId + '',
|
|
11219
11619
|
method: 'get',
|
|
11220
11620
|
body: null,
|
|
@@ -11225,61 +11625,61 @@ function createResourceRequest$5(config) {
|
|
|
11225
11625
|
};
|
|
11226
11626
|
}
|
|
11227
11627
|
|
|
11228
|
-
const adapterName$
|
|
11628
|
+
const adapterName$7 = 'getSemanticMetric';
|
|
11229
11629
|
const getSemanticMetric_ConfigPropertyMetadata = [
|
|
11230
11630
|
generateParamConfigMetadata('metricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11231
11631
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11232
11632
|
];
|
|
11233
|
-
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11234
|
-
const createResourceParams$
|
|
11235
|
-
function keyBuilder$
|
|
11236
|
-
const resourceParams = createResourceParams$
|
|
11237
|
-
return keyBuilder$
|
|
11633
|
+
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetric_ConfigPropertyMetadata);
|
|
11634
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$g(getSemanticMetric_ConfigPropertyMetadata);
|
|
11635
|
+
function keyBuilder$8(luvio, config) {
|
|
11636
|
+
const resourceParams = createResourceParams$7(config);
|
|
11637
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
11238
11638
|
}
|
|
11239
|
-
function typeCheckConfig$
|
|
11639
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
11240
11640
|
const config = {};
|
|
11241
|
-
typeCheckConfig$
|
|
11641
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
11242
11642
|
return config;
|
|
11243
11643
|
}
|
|
11244
|
-
function validateAdapterConfig$
|
|
11644
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
11245
11645
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11246
11646
|
return null;
|
|
11247
11647
|
}
|
|
11248
11648
|
if (process.env.NODE_ENV !== 'production') {
|
|
11249
11649
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11250
11650
|
}
|
|
11251
|
-
const config = typeCheckConfig$
|
|
11651
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
11252
11652
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11253
11653
|
return null;
|
|
11254
11654
|
}
|
|
11255
11655
|
return config;
|
|
11256
11656
|
}
|
|
11257
11657
|
function adapterFragment$3(luvio, config) {
|
|
11258
|
-
createResourceParams$
|
|
11259
|
-
return select$
|
|
11658
|
+
createResourceParams$7(config);
|
|
11659
|
+
return select$6();
|
|
11260
11660
|
}
|
|
11261
11661
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
11262
|
-
const snapshot = ingestSuccess$
|
|
11662
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
11263
11663
|
config,
|
|
11264
|
-
resolve: () => buildNetworkSnapshot$
|
|
11664
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11265
11665
|
});
|
|
11266
11666
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11267
11667
|
}
|
|
11268
11668
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
11269
11669
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
11270
11670
|
config,
|
|
11271
|
-
resolve: () => buildNetworkSnapshot$
|
|
11671
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11272
11672
|
});
|
|
11273
11673
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11274
11674
|
}
|
|
11275
|
-
function buildNetworkSnapshot$
|
|
11276
|
-
const resourceParams = createResourceParams$
|
|
11277
|
-
const request = createResourceRequest$
|
|
11675
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
11676
|
+
const resourceParams = createResourceParams$7(config);
|
|
11677
|
+
const request = createResourceRequest$7(resourceParams);
|
|
11278
11678
|
return luvio.dispatchResourceRequest(request, options)
|
|
11279
11679
|
.then((response) => {
|
|
11280
11680
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
11281
11681
|
const cache = new StoreKeyMap();
|
|
11282
|
-
getResponseCacheKeys$
|
|
11682
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
11283
11683
|
return cache;
|
|
11284
11684
|
});
|
|
11285
11685
|
}, (response) => {
|
|
@@ -11287,23 +11687,23 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
11287
11687
|
});
|
|
11288
11688
|
}
|
|
11289
11689
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
11290
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11690
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
11291
11691
|
}
|
|
11292
11692
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
11293
11693
|
const { luvio, config } = context;
|
|
11294
11694
|
const selector = {
|
|
11295
|
-
recordId: keyBuilder$
|
|
11695
|
+
recordId: keyBuilder$8(luvio, config),
|
|
11296
11696
|
node: adapterFragment$3(luvio, config),
|
|
11297
11697
|
variables: {},
|
|
11298
11698
|
};
|
|
11299
11699
|
const cacheSnapshot = storeLookup(selector, {
|
|
11300
11700
|
config,
|
|
11301
|
-
resolve: () => buildNetworkSnapshot$
|
|
11701
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11302
11702
|
});
|
|
11303
11703
|
return cacheSnapshot;
|
|
11304
11704
|
}
|
|
11305
11705
|
const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetric(untrustedConfig, requestContext) {
|
|
11306
|
-
const config = validateAdapterConfig$
|
|
11706
|
+
const config = validateAdapterConfig$7(untrustedConfig, getSemanticMetric_ConfigPropertyNames);
|
|
11307
11707
|
// Invalid or incomplete config
|
|
11308
11708
|
if (config === null) {
|
|
11309
11709
|
return null;
|
|
@@ -11313,7 +11713,7 @@ const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
11313
11713
|
};
|
|
11314
11714
|
|
|
11315
11715
|
const VERSION = "542f239a7dc422c67d6cdffb0ff866eb";
|
|
11316
|
-
function validate$
|
|
11716
|
+
function validate$3(obj, path = 'SemanticSubMetricCollectionOutputRepresentation') {
|
|
11317
11717
|
const v_error = (() => {
|
|
11318
11718
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11319
11719
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -11357,7 +11757,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
11357
11757
|
}
|
|
11358
11758
|
return input;
|
|
11359
11759
|
}
|
|
11360
|
-
const select$
|
|
11760
|
+
const select$5 = function SemanticSubMetricCollectionOutputRepresentationSelect() {
|
|
11361
11761
|
return {
|
|
11362
11762
|
kind: 'Fragment',
|
|
11363
11763
|
version: VERSION,
|
|
@@ -11368,7 +11768,7 @@ const select$4 = function SemanticSubMetricCollectionOutputRepresentationSelect(
|
|
|
11368
11768
|
kind: 'Link',
|
|
11369
11769
|
plural: true,
|
|
11370
11770
|
required: false,
|
|
11371
|
-
fragment: select$
|
|
11771
|
+
fragment: select$b()
|
|
11372
11772
|
}
|
|
11373
11773
|
]
|
|
11374
11774
|
};
|
|
@@ -11396,7 +11796,7 @@ function equals(existing, incoming) {
|
|
|
11396
11796
|
}
|
|
11397
11797
|
const ingest = function SemanticSubMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
11398
11798
|
if (process.env.NODE_ENV !== 'production') {
|
|
11399
|
-
const validateError = validate$
|
|
11799
|
+
const validateError = validate$3(input);
|
|
11400
11800
|
if (validateError !== null) {
|
|
11401
11801
|
throw validateError;
|
|
11402
11802
|
}
|
|
@@ -11422,22 +11822,22 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11422
11822
|
}
|
|
11423
11823
|
}
|
|
11424
11824
|
|
|
11425
|
-
function select$
|
|
11426
|
-
return select$
|
|
11825
|
+
function select$4(luvio, params) {
|
|
11826
|
+
return select$5();
|
|
11427
11827
|
}
|
|
11428
|
-
function keyBuilder$
|
|
11828
|
+
function keyBuilder$7(luvio, params) {
|
|
11429
11829
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11430
11830
|
}
|
|
11431
|
-
function getResponseCacheKeys$
|
|
11432
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$
|
|
11831
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
11832
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
11433
11833
|
}
|
|
11434
|
-
function ingestSuccess$
|
|
11834
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
11435
11835
|
const { body } = response;
|
|
11436
|
-
const key = keyBuilder$
|
|
11836
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
11437
11837
|
luvio.storeIngest(key, ingest, body);
|
|
11438
11838
|
const snapshot = luvio.storeLookup({
|
|
11439
11839
|
recordId: key,
|
|
11440
|
-
node: select$
|
|
11840
|
+
node: select$4(),
|
|
11441
11841
|
variables: {},
|
|
11442
11842
|
}, snapshotRefresh);
|
|
11443
11843
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11449,15 +11849,15 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11449
11849
|
return snapshot;
|
|
11450
11850
|
}
|
|
11451
11851
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
11452
|
-
const key = keyBuilder$
|
|
11852
|
+
const key = keyBuilder$7(luvio, params);
|
|
11453
11853
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11454
11854
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11455
11855
|
return errorSnapshot;
|
|
11456
11856
|
}
|
|
11457
|
-
function createResourceRequest$
|
|
11857
|
+
function createResourceRequest$6(config) {
|
|
11458
11858
|
const headers = {};
|
|
11459
11859
|
return {
|
|
11460
|
-
baseUri: '/services/data/
|
|
11860
|
+
baseUri: '/services/data/v64.0',
|
|
11461
11861
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics',
|
|
11462
11862
|
method: 'get',
|
|
11463
11863
|
body: null,
|
|
@@ -11468,60 +11868,60 @@ function createResourceRequest$4(config) {
|
|
|
11468
11868
|
};
|
|
11469
11869
|
}
|
|
11470
11870
|
|
|
11471
|
-
const adapterName$
|
|
11871
|
+
const adapterName$6 = 'getSemanticSubMetrics';
|
|
11472
11872
|
const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
11473
11873
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11474
11874
|
];
|
|
11475
|
-
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11476
|
-
const createResourceParams$
|
|
11477
|
-
function keyBuilder$
|
|
11478
|
-
const resourceParams = createResourceParams$
|
|
11479
|
-
return keyBuilder$
|
|
11875
|
+
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11876
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11877
|
+
function keyBuilder$6(luvio, config) {
|
|
11878
|
+
const resourceParams = createResourceParams$6(config);
|
|
11879
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
11480
11880
|
}
|
|
11481
|
-
function typeCheckConfig$
|
|
11881
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
11482
11882
|
const config = {};
|
|
11483
|
-
typeCheckConfig$
|
|
11883
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11484
11884
|
return config;
|
|
11485
11885
|
}
|
|
11486
|
-
function validateAdapterConfig$
|
|
11886
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
11487
11887
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11488
11888
|
return null;
|
|
11489
11889
|
}
|
|
11490
11890
|
if (process.env.NODE_ENV !== 'production') {
|
|
11491
11891
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11492
11892
|
}
|
|
11493
|
-
const config = typeCheckConfig$
|
|
11893
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
11494
11894
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11495
11895
|
return null;
|
|
11496
11896
|
}
|
|
11497
11897
|
return config;
|
|
11498
11898
|
}
|
|
11499
11899
|
function adapterFragment$2(luvio, config) {
|
|
11500
|
-
createResourceParams$
|
|
11501
|
-
return select$
|
|
11900
|
+
createResourceParams$6(config);
|
|
11901
|
+
return select$4();
|
|
11502
11902
|
}
|
|
11503
11903
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
11504
|
-
const snapshot = ingestSuccess$
|
|
11904
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
11505
11905
|
config,
|
|
11506
|
-
resolve: () => buildNetworkSnapshot$
|
|
11906
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
11507
11907
|
});
|
|
11508
11908
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11509
11909
|
}
|
|
11510
11910
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
11511
11911
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
11512
11912
|
config,
|
|
11513
|
-
resolve: () => buildNetworkSnapshot$
|
|
11913
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
11514
11914
|
});
|
|
11515
11915
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11516
11916
|
}
|
|
11517
|
-
function buildNetworkSnapshot$
|
|
11518
|
-
const resourceParams = createResourceParams$
|
|
11519
|
-
const request = createResourceRequest$
|
|
11917
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
11918
|
+
const resourceParams = createResourceParams$6(config);
|
|
11919
|
+
const request = createResourceRequest$6(resourceParams);
|
|
11520
11920
|
return luvio.dispatchResourceRequest(request, options)
|
|
11521
11921
|
.then((response) => {
|
|
11522
11922
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
11523
11923
|
const cache = new StoreKeyMap();
|
|
11524
|
-
getResponseCacheKeys$
|
|
11924
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
11525
11925
|
return cache;
|
|
11526
11926
|
});
|
|
11527
11927
|
}, (response) => {
|
|
@@ -11529,23 +11929,23 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
11529
11929
|
});
|
|
11530
11930
|
}
|
|
11531
11931
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
11532
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11932
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
11533
11933
|
}
|
|
11534
11934
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
11535
11935
|
const { luvio, config } = context;
|
|
11536
11936
|
const selector = {
|
|
11537
|
-
recordId: keyBuilder$
|
|
11937
|
+
recordId: keyBuilder$6(luvio, config),
|
|
11538
11938
|
node: adapterFragment$2(luvio, config),
|
|
11539
11939
|
variables: {},
|
|
11540
11940
|
};
|
|
11541
11941
|
const cacheSnapshot = storeLookup(selector, {
|
|
11542
11942
|
config,
|
|
11543
|
-
resolve: () => buildNetworkSnapshot$
|
|
11943
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
11544
11944
|
});
|
|
11545
11945
|
return cacheSnapshot;
|
|
11546
11946
|
}
|
|
11547
11947
|
const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetrics(untrustedConfig, requestContext) {
|
|
11548
|
-
const config = validateAdapterConfig$
|
|
11948
|
+
const config = validateAdapterConfig$6(untrustedConfig, getSemanticSubMetrics_ConfigPropertyNames);
|
|
11549
11949
|
// Invalid or incomplete config
|
|
11550
11950
|
if (config === null) {
|
|
11551
11951
|
return null;
|
|
@@ -11554,36 +11954,52 @@ const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthorin
|
|
|
11554
11954
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
11555
11955
|
};
|
|
11556
11956
|
|
|
11557
|
-
function validate$
|
|
11957
|
+
function validate$2(obj, path = 'SemanticGoalStatusConditionInputRepresentation') {
|
|
11558
11958
|
const v_error = (() => {
|
|
11559
11959
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11560
11960
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
11561
11961
|
}
|
|
11562
|
-
if (obj.
|
|
11563
|
-
const
|
|
11564
|
-
const
|
|
11565
|
-
if (typeof
|
|
11566
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
11962
|
+
if (obj.color !== undefined) {
|
|
11963
|
+
const obj_color = obj.color;
|
|
11964
|
+
const path_color = path + '.color';
|
|
11965
|
+
if (typeof obj_color !== 'string') {
|
|
11966
|
+
return new TypeError('Expected "string" but received "' + typeof obj_color + '" (at "' + path_color + '")');
|
|
11967
|
+
}
|
|
11968
|
+
}
|
|
11969
|
+
if (obj.currencyIsoCode !== undefined) {
|
|
11970
|
+
const obj_currencyIsoCode = obj.currencyIsoCode;
|
|
11971
|
+
const path_currencyIsoCode = path + '.currencyIsoCode';
|
|
11972
|
+
if (typeof obj_currencyIsoCode !== 'string') {
|
|
11973
|
+
return new TypeError('Expected "string" but received "' + typeof obj_currencyIsoCode + '" (at "' + path_currencyIsoCode + '")');
|
|
11974
|
+
}
|
|
11975
|
+
}
|
|
11976
|
+
if (obj.operator !== undefined) {
|
|
11977
|
+
const obj_operator = obj.operator;
|
|
11978
|
+
const path_operator = path + '.operator';
|
|
11979
|
+
if (typeof obj_operator !== 'string') {
|
|
11980
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
11567
11981
|
}
|
|
11568
11982
|
}
|
|
11569
|
-
if (obj.
|
|
11570
|
-
const
|
|
11571
|
-
const
|
|
11572
|
-
if (typeof
|
|
11573
|
-
return new TypeError('Expected "
|
|
11983
|
+
if (obj.primary !== undefined) {
|
|
11984
|
+
const obj_primary = obj.primary;
|
|
11985
|
+
const path_primary = path + '.primary';
|
|
11986
|
+
if (typeof obj_primary !== 'boolean') {
|
|
11987
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_primary + '" (at "' + path_primary + '")');
|
|
11574
11988
|
}
|
|
11575
11989
|
}
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11583
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
11990
|
+
if (obj.statusName !== undefined) {
|
|
11991
|
+
const obj_statusName = obj.statusName;
|
|
11992
|
+
const path_statusName = path + '.statusName';
|
|
11993
|
+
if (typeof obj_statusName !== 'string') {
|
|
11994
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusName + '" (at "' + path_statusName + '")');
|
|
11995
|
+
}
|
|
11584
11996
|
}
|
|
11585
|
-
if (obj.
|
|
11586
|
-
obj.
|
|
11997
|
+
if (obj.value !== undefined) {
|
|
11998
|
+
const obj_value = obj.value;
|
|
11999
|
+
const path_value = path + '.value';
|
|
12000
|
+
if (typeof obj_value !== 'string') {
|
|
12001
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
12002
|
+
}
|
|
11587
12003
|
}
|
|
11588
12004
|
})();
|
|
11589
12005
|
return v_error === undefined ? null : v_error;
|
|
@@ -11594,31 +12010,28 @@ function validate$1(obj, path = 'SemanticMetricGoalInputRepresentation') {
|
|
|
11594
12010
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11595
12011
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
11596
12012
|
}
|
|
11597
|
-
if (obj.
|
|
11598
|
-
const
|
|
11599
|
-
const
|
|
11600
|
-
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
-
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
let message = 'Object doesn\'t match SemanticGoalValueInputRepresentation (at "' + path_value + '")\n';
|
|
11620
|
-
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
11621
|
-
return new TypeError(message);
|
|
12013
|
+
if (obj.forecasting !== undefined) {
|
|
12014
|
+
const obj_forecasting = obj.forecasting;
|
|
12015
|
+
const path_forecasting = path + '.forecasting';
|
|
12016
|
+
if (typeof obj_forecasting !== 'boolean') {
|
|
12017
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
12018
|
+
}
|
|
12019
|
+
}
|
|
12020
|
+
if (obj.statusConditions !== undefined) {
|
|
12021
|
+
const obj_statusConditions = obj.statusConditions;
|
|
12022
|
+
const path_statusConditions = path + '.statusConditions';
|
|
12023
|
+
if (!ArrayIsArray(obj_statusConditions)) {
|
|
12024
|
+
return new TypeError('Expected "array" but received "' + typeof obj_statusConditions + '" (at "' + path_statusConditions + '")');
|
|
12025
|
+
}
|
|
12026
|
+
for (let i = 0; i < obj_statusConditions.length; i++) {
|
|
12027
|
+
const obj_statusConditions_item = obj_statusConditions[i];
|
|
12028
|
+
const path_statusConditions_item = path_statusConditions + '[' + i + ']';
|
|
12029
|
+
const referencepath_statusConditions_itemValidationError = validate$2(obj_statusConditions_item, path_statusConditions_item);
|
|
12030
|
+
if (referencepath_statusConditions_itemValidationError !== null) {
|
|
12031
|
+
let message = 'Object doesn\'t match SemanticGoalStatusConditionInputRepresentation (at "' + path_statusConditions_item + '")\n';
|
|
12032
|
+
message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
12033
|
+
return new TypeError(message);
|
|
12034
|
+
}
|
|
11622
12035
|
}
|
|
11623
12036
|
}
|
|
11624
12037
|
})();
|
|
@@ -11655,19 +12068,19 @@ function validate(obj, path = 'SemanticTimeRangeInputRepresentation') {
|
|
|
11655
12068
|
return v_error === undefined ? null : v_error;
|
|
11656
12069
|
}
|
|
11657
12070
|
|
|
11658
|
-
function select$
|
|
11659
|
-
return select$
|
|
12071
|
+
function select$3(luvio, params) {
|
|
12072
|
+
return select$b();
|
|
11660
12073
|
}
|
|
11661
|
-
function getResponseCacheKeys$
|
|
12074
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
11662
12075
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
11663
12076
|
}
|
|
11664
|
-
function ingestSuccess$
|
|
12077
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
11665
12078
|
const { body } = response;
|
|
11666
12079
|
const key = keyBuilderFromType(luvio, body);
|
|
11667
12080
|
luvio.storeIngest(key, ingest$3, body);
|
|
11668
12081
|
const snapshot = luvio.storeLookup({
|
|
11669
12082
|
recordId: key,
|
|
11670
|
-
node: select$
|
|
12083
|
+
node: select$3(),
|
|
11671
12084
|
variables: {},
|
|
11672
12085
|
});
|
|
11673
12086
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11678,10 +12091,10 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
11678
12091
|
deepFreeze(snapshot.data);
|
|
11679
12092
|
return snapshot;
|
|
11680
12093
|
}
|
|
11681
|
-
function createResourceRequest$
|
|
12094
|
+
function createResourceRequest$5(config) {
|
|
11682
12095
|
const headers = {};
|
|
11683
12096
|
return {
|
|
11684
|
-
baseUri: '/services/data/
|
|
12097
|
+
baseUri: '/services/data/v64.0',
|
|
11685
12098
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics',
|
|
11686
12099
|
method: 'post',
|
|
11687
12100
|
body: config.body,
|
|
@@ -11692,7 +12105,7 @@ function createResourceRequest$3(config) {
|
|
|
11692
12105
|
};
|
|
11693
12106
|
}
|
|
11694
12107
|
|
|
11695
|
-
const adapterName$
|
|
12108
|
+
const adapterName$5 = 'createSemanticSubMetric';
|
|
11696
12109
|
const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
11697
12110
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11698
12111
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -11704,11 +12117,11 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11704
12117
|
generateParamConfigMetadata('semanticMetricDefinitionApiName', false, 2 /* Body */, 0 /* String */),
|
|
11705
12118
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
11706
12119
|
];
|
|
11707
|
-
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11708
|
-
const createResourceParams$
|
|
11709
|
-
function typeCheckConfig$
|
|
12120
|
+
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
12121
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$g(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
12122
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
11710
12123
|
const config = {};
|
|
11711
|
-
typeCheckConfig$
|
|
12124
|
+
typeCheckConfig$g(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11712
12125
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
11713
12126
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
11714
12127
|
const untrustedConfig_filters_array = [];
|
|
@@ -11733,30 +12146,30 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
11733
12146
|
}
|
|
11734
12147
|
return config;
|
|
11735
12148
|
}
|
|
11736
|
-
function validateAdapterConfig$
|
|
12149
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
11737
12150
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11738
12151
|
return null;
|
|
11739
12152
|
}
|
|
11740
12153
|
if (process.env.NODE_ENV !== 'production') {
|
|
11741
12154
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11742
12155
|
}
|
|
11743
|
-
const config = typeCheckConfig$
|
|
12156
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
11744
12157
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11745
12158
|
return null;
|
|
11746
12159
|
}
|
|
11747
12160
|
return config;
|
|
11748
12161
|
}
|
|
11749
|
-
function buildNetworkSnapshot$
|
|
11750
|
-
const resourceParams = createResourceParams$
|
|
11751
|
-
const request = createResourceRequest$
|
|
12162
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
12163
|
+
const resourceParams = createResourceParams$5(config);
|
|
12164
|
+
const request = createResourceRequest$5(resourceParams);
|
|
11752
12165
|
return luvio.dispatchResourceRequest(request, options)
|
|
11753
12166
|
.then((response) => {
|
|
11754
12167
|
return luvio.handleSuccessResponse(() => {
|
|
11755
|
-
const snapshot = ingestSuccess$
|
|
12168
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
11756
12169
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11757
12170
|
}, () => {
|
|
11758
12171
|
const cache = new StoreKeyMap();
|
|
11759
|
-
getResponseCacheKeys$
|
|
12172
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
11760
12173
|
return cache;
|
|
11761
12174
|
});
|
|
11762
12175
|
}, (response) => {
|
|
@@ -11766,36 +12179,36 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
11766
12179
|
}
|
|
11767
12180
|
const createSemanticSubMetricAdapterFactory = (luvio) => {
|
|
11768
12181
|
return function createSemanticSubMetric(untrustedConfig) {
|
|
11769
|
-
const config = validateAdapterConfig$
|
|
12182
|
+
const config = validateAdapterConfig$5(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
|
|
11770
12183
|
// Invalid or incomplete config
|
|
11771
12184
|
if (config === null) {
|
|
11772
12185
|
throw new Error('Invalid config for "createSemanticSubMetric"');
|
|
11773
12186
|
}
|
|
11774
|
-
return buildNetworkSnapshot$
|
|
12187
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
11775
12188
|
};
|
|
11776
12189
|
};
|
|
11777
12190
|
|
|
11778
|
-
function keyBuilder$
|
|
11779
|
-
return keyBuilder$
|
|
12191
|
+
function keyBuilder$5(luvio, params) {
|
|
12192
|
+
return keyBuilder$e(luvio, {
|
|
11780
12193
|
name: params.urlParams.subMetricNameOrId
|
|
11781
12194
|
});
|
|
11782
12195
|
}
|
|
11783
|
-
function getResponseCacheKeys$
|
|
11784
|
-
const key = keyBuilder$
|
|
12196
|
+
function getResponseCacheKeys$4(cacheKeyMap, luvio, resourceParams) {
|
|
12197
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
11785
12198
|
cacheKeyMap.set(key, {
|
|
11786
12199
|
namespace: keyPrefix,
|
|
11787
12200
|
representationName: RepresentationType$3,
|
|
11788
12201
|
mergeable: false
|
|
11789
12202
|
});
|
|
11790
12203
|
}
|
|
11791
|
-
function evictSuccess(luvio, resourceParams) {
|
|
11792
|
-
const key = keyBuilder$
|
|
12204
|
+
function evictSuccess$1(luvio, resourceParams) {
|
|
12205
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
11793
12206
|
luvio.storeEvict(key);
|
|
11794
12207
|
}
|
|
11795
|
-
function createResourceRequest$
|
|
12208
|
+
function createResourceRequest$4(config) {
|
|
11796
12209
|
const headers = {};
|
|
11797
12210
|
return {
|
|
11798
|
-
baseUri: '/services/data/
|
|
12211
|
+
baseUri: '/services/data/v64.0',
|
|
11799
12212
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '',
|
|
11800
12213
|
method: 'delete',
|
|
11801
12214
|
body: null,
|
|
@@ -11806,42 +12219,42 @@ function createResourceRequest$2(config) {
|
|
|
11806
12219
|
};
|
|
11807
12220
|
}
|
|
11808
12221
|
|
|
11809
|
-
const adapterName$
|
|
12222
|
+
const adapterName$4 = 'deleteSemanticSubMetric';
|
|
11810
12223
|
const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
11811
12224
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11812
12225
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11813
12226
|
];
|
|
11814
|
-
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11815
|
-
const createResourceParams$
|
|
11816
|
-
function typeCheckConfig$
|
|
12227
|
+
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
12228
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$g(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
12229
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
11817
12230
|
const config = {};
|
|
11818
|
-
typeCheckConfig$
|
|
12231
|
+
typeCheckConfig$g(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11819
12232
|
return config;
|
|
11820
12233
|
}
|
|
11821
|
-
function validateAdapterConfig$
|
|
12234
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
11822
12235
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11823
12236
|
return null;
|
|
11824
12237
|
}
|
|
11825
12238
|
if (process.env.NODE_ENV !== 'production') {
|
|
11826
12239
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11827
12240
|
}
|
|
11828
|
-
const config = typeCheckConfig$
|
|
12241
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
11829
12242
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11830
12243
|
return null;
|
|
11831
12244
|
}
|
|
11832
12245
|
return config;
|
|
11833
12246
|
}
|
|
11834
|
-
function buildNetworkSnapshot$
|
|
11835
|
-
const resourceParams = createResourceParams$
|
|
11836
|
-
const request = createResourceRequest$
|
|
12247
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
12248
|
+
const resourceParams = createResourceParams$4(config);
|
|
12249
|
+
const request = createResourceRequest$4(resourceParams);
|
|
11837
12250
|
return luvio.dispatchResourceRequest(request, options)
|
|
11838
12251
|
.then(() => {
|
|
11839
12252
|
return luvio.handleSuccessResponse(() => {
|
|
11840
|
-
evictSuccess(luvio, resourceParams);
|
|
12253
|
+
evictSuccess$1(luvio, resourceParams);
|
|
11841
12254
|
return luvio.storeBroadcast();
|
|
11842
12255
|
}, () => {
|
|
11843
12256
|
const cache = new StoreKeyMap();
|
|
11844
|
-
getResponseCacheKeys$
|
|
12257
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams);
|
|
11845
12258
|
return cache;
|
|
11846
12259
|
});
|
|
11847
12260
|
}, (response) => {
|
|
@@ -11851,33 +12264,33 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
11851
12264
|
}
|
|
11852
12265
|
const deleteSemanticSubMetricAdapterFactory = (luvio) => {
|
|
11853
12266
|
return function SemanticAuthoringdeleteSemanticSubMetric(untrustedConfig) {
|
|
11854
|
-
const config = validateAdapterConfig$
|
|
12267
|
+
const config = validateAdapterConfig$4(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
|
|
11855
12268
|
// Invalid or incomplete config
|
|
11856
12269
|
if (config === null) {
|
|
11857
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
12270
|
+
throw new Error(`Invalid config for "${adapterName$4}"`);
|
|
11858
12271
|
}
|
|
11859
|
-
return buildNetworkSnapshot$
|
|
12272
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
11860
12273
|
};
|
|
11861
12274
|
};
|
|
11862
12275
|
|
|
11863
|
-
function select$
|
|
11864
|
-
return select$
|
|
12276
|
+
function select$2(luvio, params) {
|
|
12277
|
+
return select$b();
|
|
11865
12278
|
}
|
|
11866
|
-
function keyBuilder$
|
|
11867
|
-
return keyBuilder$
|
|
12279
|
+
function keyBuilder$4(luvio, params) {
|
|
12280
|
+
return keyBuilder$e(luvio, {
|
|
11868
12281
|
name: params.urlParams.subMetricNameOrId
|
|
11869
12282
|
});
|
|
11870
12283
|
}
|
|
11871
|
-
function getResponseCacheKeys$
|
|
12284
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
11872
12285
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
11873
12286
|
}
|
|
11874
|
-
function ingestSuccess$
|
|
12287
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
11875
12288
|
const { body } = response;
|
|
11876
|
-
const key = keyBuilder$
|
|
12289
|
+
const key = keyBuilder$4(luvio, resourceParams);
|
|
11877
12290
|
luvio.storeIngest(key, ingest$3, body);
|
|
11878
12291
|
const snapshot = luvio.storeLookup({
|
|
11879
12292
|
recordId: key,
|
|
11880
|
-
node: select$
|
|
12293
|
+
node: select$2(),
|
|
11881
12294
|
variables: {},
|
|
11882
12295
|
}, snapshotRefresh);
|
|
11883
12296
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11889,15 +12302,15 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11889
12302
|
return snapshot;
|
|
11890
12303
|
}
|
|
11891
12304
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
11892
|
-
const key = keyBuilder$
|
|
12305
|
+
const key = keyBuilder$4(luvio, params);
|
|
11893
12306
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11894
12307
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11895
12308
|
return errorSnapshot;
|
|
11896
12309
|
}
|
|
11897
|
-
function createResourceRequest$
|
|
12310
|
+
function createResourceRequest$3(config) {
|
|
11898
12311
|
const headers = {};
|
|
11899
12312
|
return {
|
|
11900
|
-
baseUri: '/services/data/
|
|
12313
|
+
baseUri: '/services/data/v64.0',
|
|
11901
12314
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '',
|
|
11902
12315
|
method: 'get',
|
|
11903
12316
|
body: null,
|
|
@@ -11908,61 +12321,61 @@ function createResourceRequest$1(config) {
|
|
|
11908
12321
|
};
|
|
11909
12322
|
}
|
|
11910
12323
|
|
|
11911
|
-
const adapterName$
|
|
12324
|
+
const adapterName$3 = 'getSemanticSubMetric';
|
|
11912
12325
|
const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
11913
12326
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11914
12327
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11915
12328
|
];
|
|
11916
|
-
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11917
|
-
const createResourceParams$
|
|
11918
|
-
function keyBuilder$
|
|
11919
|
-
const resourceParams = createResourceParams$
|
|
11920
|
-
return keyBuilder$
|
|
12329
|
+
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
12330
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
12331
|
+
function keyBuilder$3(luvio, config) {
|
|
12332
|
+
const resourceParams = createResourceParams$3(config);
|
|
12333
|
+
return keyBuilder$4(luvio, resourceParams);
|
|
11921
12334
|
}
|
|
11922
|
-
function typeCheckConfig$
|
|
12335
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
11923
12336
|
const config = {};
|
|
11924
|
-
typeCheckConfig$
|
|
12337
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11925
12338
|
return config;
|
|
11926
12339
|
}
|
|
11927
|
-
function validateAdapterConfig$
|
|
12340
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
11928
12341
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11929
12342
|
return null;
|
|
11930
12343
|
}
|
|
11931
12344
|
if (process.env.NODE_ENV !== 'production') {
|
|
11932
12345
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11933
12346
|
}
|
|
11934
|
-
const config = typeCheckConfig$
|
|
12347
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
11935
12348
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11936
12349
|
return null;
|
|
11937
12350
|
}
|
|
11938
12351
|
return config;
|
|
11939
12352
|
}
|
|
11940
12353
|
function adapterFragment$1(luvio, config) {
|
|
11941
|
-
createResourceParams$
|
|
11942
|
-
return select$
|
|
12354
|
+
createResourceParams$3(config);
|
|
12355
|
+
return select$2();
|
|
11943
12356
|
}
|
|
11944
12357
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
11945
|
-
const snapshot = ingestSuccess$
|
|
12358
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
11946
12359
|
config,
|
|
11947
|
-
resolve: () => buildNetworkSnapshot$
|
|
12360
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11948
12361
|
});
|
|
11949
12362
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11950
12363
|
}
|
|
11951
12364
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
11952
12365
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
11953
12366
|
config,
|
|
11954
|
-
resolve: () => buildNetworkSnapshot$
|
|
12367
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11955
12368
|
});
|
|
11956
12369
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11957
12370
|
}
|
|
11958
|
-
function buildNetworkSnapshot$
|
|
11959
|
-
const resourceParams = createResourceParams$
|
|
11960
|
-
const request = createResourceRequest$
|
|
12371
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
12372
|
+
const resourceParams = createResourceParams$3(config);
|
|
12373
|
+
const request = createResourceRequest$3(resourceParams);
|
|
11961
12374
|
return luvio.dispatchResourceRequest(request, options)
|
|
11962
12375
|
.then((response) => {
|
|
11963
12376
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
11964
12377
|
const cache = new StoreKeyMap();
|
|
11965
|
-
getResponseCacheKeys$
|
|
12378
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
11966
12379
|
return cache;
|
|
11967
12380
|
});
|
|
11968
12381
|
}, (response) => {
|
|
@@ -11970,23 +12383,23 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
11970
12383
|
});
|
|
11971
12384
|
}
|
|
11972
12385
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
11973
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12386
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
11974
12387
|
}
|
|
11975
12388
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
11976
12389
|
const { luvio, config } = context;
|
|
11977
12390
|
const selector = {
|
|
11978
|
-
recordId: keyBuilder$
|
|
12391
|
+
recordId: keyBuilder$3(luvio, config),
|
|
11979
12392
|
node: adapterFragment$1(luvio, config),
|
|
11980
12393
|
variables: {},
|
|
11981
12394
|
};
|
|
11982
12395
|
const cacheSnapshot = storeLookup(selector, {
|
|
11983
12396
|
config,
|
|
11984
|
-
resolve: () => buildNetworkSnapshot$
|
|
12397
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11985
12398
|
});
|
|
11986
12399
|
return cacheSnapshot;
|
|
11987
12400
|
}
|
|
11988
12401
|
const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetric(untrustedConfig, requestContext) {
|
|
11989
|
-
const config = validateAdapterConfig$
|
|
12402
|
+
const config = validateAdapterConfig$3(untrustedConfig, getSemanticSubMetric_ConfigPropertyNames);
|
|
11990
12403
|
// Invalid or incomplete config
|
|
11991
12404
|
if (config === null) {
|
|
11992
12405
|
return null;
|
|
@@ -11995,11 +12408,201 @@ const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring
|
|
|
11995
12408
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
11996
12409
|
};
|
|
11997
12410
|
|
|
12411
|
+
function keyBuilder$2(luvio, params) {
|
|
12412
|
+
return keyBuilder$e(luvio, {
|
|
12413
|
+
name: params.urlParams.subMetricNameOrId
|
|
12414
|
+
});
|
|
12415
|
+
}
|
|
12416
|
+
function getResponseCacheKeys$2(cacheKeyMap, luvio, resourceParams) {
|
|
12417
|
+
const key = keyBuilder$2(luvio, resourceParams);
|
|
12418
|
+
cacheKeyMap.set(key, {
|
|
12419
|
+
namespace: keyPrefix,
|
|
12420
|
+
representationName: RepresentationType$3,
|
|
12421
|
+
mergeable: false
|
|
12422
|
+
});
|
|
12423
|
+
}
|
|
12424
|
+
function evictSuccess(luvio, resourceParams) {
|
|
12425
|
+
const key = keyBuilder$2(luvio, resourceParams);
|
|
12426
|
+
luvio.storeEvict(key);
|
|
12427
|
+
}
|
|
12428
|
+
function createResourceRequest$2(config) {
|
|
12429
|
+
const headers = {};
|
|
12430
|
+
return {
|
|
12431
|
+
baseUri: '/services/data/v64.0',
|
|
12432
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '/goal',
|
|
12433
|
+
method: 'delete',
|
|
12434
|
+
body: null,
|
|
12435
|
+
urlParams: config.urlParams,
|
|
12436
|
+
queryParams: {},
|
|
12437
|
+
headers,
|
|
12438
|
+
priority: 'normal',
|
|
12439
|
+
};
|
|
12440
|
+
}
|
|
12441
|
+
|
|
12442
|
+
const adapterName$2 = 'deleteGoalFromSubMetric';
|
|
12443
|
+
const deleteGoalFromSubMetric_ConfigPropertyMetadata = [
|
|
12444
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12445
|
+
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12446
|
+
];
|
|
12447
|
+
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12448
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$g(deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12449
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
12450
|
+
const config = {};
|
|
12451
|
+
typeCheckConfig$g(untrustedConfig, config, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12452
|
+
return config;
|
|
12453
|
+
}
|
|
12454
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
12455
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
12456
|
+
return null;
|
|
12457
|
+
}
|
|
12458
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12459
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
12460
|
+
}
|
|
12461
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
12462
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
12463
|
+
return null;
|
|
12464
|
+
}
|
|
12465
|
+
return config;
|
|
12466
|
+
}
|
|
12467
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
12468
|
+
const resourceParams = createResourceParams$2(config);
|
|
12469
|
+
const request = createResourceRequest$2(resourceParams);
|
|
12470
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
12471
|
+
.then(() => {
|
|
12472
|
+
return luvio.handleSuccessResponse(() => {
|
|
12473
|
+
evictSuccess(luvio, resourceParams);
|
|
12474
|
+
return luvio.storeBroadcast();
|
|
12475
|
+
}, () => {
|
|
12476
|
+
const cache = new StoreKeyMap();
|
|
12477
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams);
|
|
12478
|
+
return cache;
|
|
12479
|
+
});
|
|
12480
|
+
}, (response) => {
|
|
12481
|
+
deepFreeze(response);
|
|
12482
|
+
throw response;
|
|
12483
|
+
});
|
|
12484
|
+
}
|
|
12485
|
+
const deleteGoalFromSubMetricAdapterFactory = (luvio) => {
|
|
12486
|
+
return function SemanticAuthoringdeleteGoalFromSubMetric(untrustedConfig) {
|
|
12487
|
+
const config = validateAdapterConfig$2(untrustedConfig, deleteGoalFromSubMetric_ConfigPropertyNames);
|
|
12488
|
+
// Invalid or incomplete config
|
|
12489
|
+
if (config === null) {
|
|
12490
|
+
throw new Error(`Invalid config for "${adapterName$2}"`);
|
|
12491
|
+
}
|
|
12492
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
12493
|
+
};
|
|
12494
|
+
};
|
|
12495
|
+
|
|
12496
|
+
function select$1(luvio, params) {
|
|
12497
|
+
return select$b();
|
|
12498
|
+
}
|
|
12499
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
12500
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
12501
|
+
}
|
|
12502
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
12503
|
+
const { body } = response;
|
|
12504
|
+
const key = keyBuilderFromType(luvio, body);
|
|
12505
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
12506
|
+
const snapshot = luvio.storeLookup({
|
|
12507
|
+
recordId: key,
|
|
12508
|
+
node: select$1(),
|
|
12509
|
+
variables: {},
|
|
12510
|
+
});
|
|
12511
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12512
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
12513
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
12514
|
+
}
|
|
12515
|
+
}
|
|
12516
|
+
deepFreeze(snapshot.data);
|
|
12517
|
+
return snapshot;
|
|
12518
|
+
}
|
|
12519
|
+
function createResourceRequest$1(config) {
|
|
12520
|
+
const headers = {};
|
|
12521
|
+
return {
|
|
12522
|
+
baseUri: '/services/data/v64.0',
|
|
12523
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '/goal',
|
|
12524
|
+
method: 'patch',
|
|
12525
|
+
body: config.body,
|
|
12526
|
+
urlParams: config.urlParams,
|
|
12527
|
+
queryParams: {},
|
|
12528
|
+
headers,
|
|
12529
|
+
priority: 'normal',
|
|
12530
|
+
};
|
|
12531
|
+
}
|
|
12532
|
+
|
|
12533
|
+
const adapterName$1 = 'patchSemanticMetricGoal';
|
|
12534
|
+
const patchSemanticMetricGoal_ConfigPropertyMetadata = [
|
|
12535
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12536
|
+
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12537
|
+
generateParamConfigMetadata('forecasting', false, 2 /* Body */, 1 /* Boolean */),
|
|
12538
|
+
generateParamConfigMetadata('statusConditions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12539
|
+
];
|
|
12540
|
+
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12541
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$g(patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12542
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
12543
|
+
const config = {};
|
|
12544
|
+
typeCheckConfig$g(untrustedConfig, config, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12545
|
+
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
12546
|
+
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
12547
|
+
const untrustedConfig_statusConditions_array = [];
|
|
12548
|
+
for (let i = 0, arrayLength = untrustedConfig_statusConditions.length; i < arrayLength; i++) {
|
|
12549
|
+
const untrustedConfig_statusConditions_item = untrustedConfig_statusConditions[i];
|
|
12550
|
+
const referenceSemanticGoalStatusConditionInputRepresentationValidationError = validate$2(untrustedConfig_statusConditions_item);
|
|
12551
|
+
if (referenceSemanticGoalStatusConditionInputRepresentationValidationError === null) {
|
|
12552
|
+
untrustedConfig_statusConditions_array.push(untrustedConfig_statusConditions_item);
|
|
12553
|
+
}
|
|
12554
|
+
}
|
|
12555
|
+
config.statusConditions = untrustedConfig_statusConditions_array;
|
|
12556
|
+
}
|
|
12557
|
+
return config;
|
|
12558
|
+
}
|
|
12559
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
12560
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
12561
|
+
return null;
|
|
12562
|
+
}
|
|
12563
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12564
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
12565
|
+
}
|
|
12566
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
12567
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
12568
|
+
return null;
|
|
12569
|
+
}
|
|
12570
|
+
return config;
|
|
12571
|
+
}
|
|
12572
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
12573
|
+
const resourceParams = createResourceParams$1(config);
|
|
12574
|
+
const request = createResourceRequest$1(resourceParams);
|
|
12575
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
12576
|
+
.then((response) => {
|
|
12577
|
+
return luvio.handleSuccessResponse(() => {
|
|
12578
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
12579
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
12580
|
+
}, () => {
|
|
12581
|
+
const cache = new StoreKeyMap();
|
|
12582
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
12583
|
+
return cache;
|
|
12584
|
+
});
|
|
12585
|
+
}, (response) => {
|
|
12586
|
+
deepFreeze(response);
|
|
12587
|
+
throw response;
|
|
12588
|
+
});
|
|
12589
|
+
}
|
|
12590
|
+
const patchSemanticMetricGoalAdapterFactory = (luvio) => {
|
|
12591
|
+
return function patchSemanticMetricGoal(untrustedConfig) {
|
|
12592
|
+
const config = validateAdapterConfig$1(untrustedConfig, patchSemanticMetricGoal_ConfigPropertyNames);
|
|
12593
|
+
// Invalid or incomplete config
|
|
12594
|
+
if (config === null) {
|
|
12595
|
+
throw new Error('Invalid config for "patchSemanticMetricGoal"');
|
|
12596
|
+
}
|
|
12597
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
12598
|
+
};
|
|
12599
|
+
};
|
|
12600
|
+
|
|
11998
12601
|
function select(luvio, params) {
|
|
11999
|
-
return select$
|
|
12602
|
+
return select$5();
|
|
12000
12603
|
}
|
|
12001
12604
|
function keyBuilder$1(luvio, params) {
|
|
12002
|
-
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
12605
|
+
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
12003
12606
|
}
|
|
12004
12607
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
12005
12608
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -12030,12 +12633,12 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
12030
12633
|
function createResourceRequest(config) {
|
|
12031
12634
|
const headers = {};
|
|
12032
12635
|
return {
|
|
12033
|
-
baseUri: '/services/data/
|
|
12636
|
+
baseUri: '/services/data/v64.0',
|
|
12034
12637
|
basePath: '/ssot/semantic/sub-metrics/' + config.urlParams.subMetricIds + '',
|
|
12035
12638
|
method: 'get',
|
|
12036
12639
|
body: null,
|
|
12037
12640
|
urlParams: config.urlParams,
|
|
12038
|
-
queryParams:
|
|
12641
|
+
queryParams: config.queryParams,
|
|
12039
12642
|
headers,
|
|
12040
12643
|
priority: 'normal',
|
|
12041
12644
|
};
|
|
@@ -12044,16 +12647,18 @@ function createResourceRequest(config) {
|
|
|
12044
12647
|
const adapterName = 'getSemanticSubMetricsById';
|
|
12045
12648
|
const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
12046
12649
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12650
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12651
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12047
12652
|
];
|
|
12048
12653
|
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12049
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12654
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12050
12655
|
function keyBuilder(luvio, config) {
|
|
12051
12656
|
const resourceParams = createResourceParams(config);
|
|
12052
12657
|
return keyBuilder$1(luvio, resourceParams);
|
|
12053
12658
|
}
|
|
12054
12659
|
function typeCheckConfig(untrustedConfig) {
|
|
12055
12660
|
const config = {};
|
|
12056
|
-
typeCheckConfig$
|
|
12661
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12057
12662
|
return config;
|
|
12058
12663
|
}
|
|
12059
12664
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -12102,7 +12707,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
12102
12707
|
});
|
|
12103
12708
|
}
|
|
12104
12709
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
12105
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12710
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
12106
12711
|
}
|
|
12107
12712
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
12108
12713
|
const { luvio, config } = context;
|
|
@@ -12127,4 +12732,4 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
12127
12732
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
12128
12733
|
};
|
|
12129
12734
|
|
|
12130
|
-
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsByIdsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticModelAdapterFactory };
|
|
12735
|
+
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteGoalFromSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getLeafDependenciesByTypesAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsByIdsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticMetricGoalAdapterFactory, patchSemanticModelAdapterFactory };
|