@salesforce/lds-adapters-cdp-semantic-authoring 1.332.0-dev3 → 1.332.0-dev5
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 +951 -692
- package/dist/es/es2018/types/src/generated/adapters/deleteGoalFromSubMetric.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticSubMetrics.d.ts +1 -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 +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/deleteSsotSemanticModelsSubMetricsGoalByModelApiNameOrIdAndSubMetricNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsSubMetricsByModelApiNameOrId.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsSubMetricsGoalByModelApiNameOrIdAndSubMetricNameOrId.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/resources/patchSsotSemanticModelsSubMetricsGoalByModelApiNameOrIdAndSubMetricNameOrId.d.ts +3 -5
- package/dist/es/es2018/types/src/generated/types/SemanticCalculatedDimensionOutputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SemanticCalculatedMeasurementOutputRepresentation.d.ts +4 -1
- 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 +8 -12
- package/package.json +3 -3
- package/sfdc/index.js +945 -680
- package/src/raml/api.raml +136 -57
- package/src/raml/luvio.raml +9 -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$9, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9, typeCheckConfig as typeCheckConfig$f, StoreKeyMap, createResourceParams as createResourceParams$f } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -93,7 +93,7 @@ function createLink(ref) {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
const VERSION$t = "a2976cd68e629a917463a3b690cf2527";
|
|
96
|
-
function validate
|
|
96
|
+
function validate$Z(obj, path = 'SemanticTableFieldReferenceOutputRepresentation') {
|
|
97
97
|
const v_error = (() => {
|
|
98
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
99
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -115,7 +115,7 @@ function validate$$(obj, path = 'SemanticTableFieldReferenceOutputRepresentation
|
|
|
115
115
|
})();
|
|
116
116
|
return v_error === undefined ? null : v_error;
|
|
117
117
|
}
|
|
118
|
-
const select$
|
|
118
|
+
const select$G = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
119
119
|
return {
|
|
120
120
|
kind: 'Fragment',
|
|
121
121
|
version: VERSION$t,
|
|
@@ -165,7 +165,7 @@ function equals$t(existing, incoming) {
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
const VERSION$s = "f49a2cbbe308f6f74cda3e2144fa66cd";
|
|
168
|
-
function validate$
|
|
168
|
+
function validate$Y(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
169
169
|
const v_error = (() => {
|
|
170
170
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
171
171
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -180,7 +180,7 @@ function validate$_(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
180
180
|
if (obj.tableFieldReference !== undefined) {
|
|
181
181
|
const obj_tableFieldReference = obj.tableFieldReference;
|
|
182
182
|
const path_tableFieldReference = path + '.tableFieldReference';
|
|
183
|
-
const referencepath_tableFieldReferenceValidationError = validate
|
|
183
|
+
const referencepath_tableFieldReferenceValidationError = validate$Z(obj_tableFieldReference, path_tableFieldReference);
|
|
184
184
|
if (referencepath_tableFieldReferenceValidationError !== null) {
|
|
185
185
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_tableFieldReference + '")\n';
|
|
186
186
|
message += referencepath_tableFieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -190,8 +190,8 @@ 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$F = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
194
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$G();
|
|
195
195
|
return {
|
|
196
196
|
kind: 'Fragment',
|
|
197
197
|
version: VERSION$s,
|
|
@@ -242,7 +242,7 @@ function equals$s(existing, incoming) {
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
const VERSION$r = "9b5a0e85af6a943c95625e2dfe81ab96";
|
|
245
|
-
function validate$
|
|
245
|
+
function validate$X(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
246
246
|
const v_error = (() => {
|
|
247
247
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
248
248
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -271,7 +271,7 @@ 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$E = function SemanticFilterOutputRepresentationSelect() {
|
|
275
275
|
return {
|
|
276
276
|
kind: 'Fragment',
|
|
277
277
|
version: VERSION$r,
|
|
@@ -339,7 +339,7 @@ function equals$r(existing, incoming) {
|
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
const VERSION$q = "a50848c632bb205d5e910bb726d9219e";
|
|
342
|
-
function validate$
|
|
342
|
+
function validate$W(obj, path = 'SemanticIdentifyingDimensionOutputRepresentation') {
|
|
343
343
|
const v_error = (() => {
|
|
344
344
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
345
345
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -347,7 +347,7 @@ function validate$Y(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
347
347
|
if (obj.identifierDimensionReference !== undefined) {
|
|
348
348
|
const obj_identifierDimensionReference = obj.identifierDimensionReference;
|
|
349
349
|
const path_identifierDimensionReference = path + '.identifierDimensionReference';
|
|
350
|
-
const referencepath_identifierDimensionReferenceValidationError = validate$
|
|
350
|
+
const referencepath_identifierDimensionReferenceValidationError = validate$Y(obj_identifierDimensionReference, path_identifierDimensionReference);
|
|
351
351
|
if (referencepath_identifierDimensionReferenceValidationError !== null) {
|
|
352
352
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_identifierDimensionReference + '")\n';
|
|
353
353
|
message += referencepath_identifierDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -357,7 +357,7 @@ function validate$Y(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
357
357
|
if (obj.namingDimensionReference !== undefined) {
|
|
358
358
|
const obj_namingDimensionReference = obj.namingDimensionReference;
|
|
359
359
|
const path_namingDimensionReference = path + '.namingDimensionReference';
|
|
360
|
-
const referencepath_namingDimensionReferenceValidationError = validate$
|
|
360
|
+
const referencepath_namingDimensionReferenceValidationError = validate$Y(obj_namingDimensionReference, path_namingDimensionReference);
|
|
361
361
|
if (referencepath_namingDimensionReferenceValidationError !== null) {
|
|
362
362
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_namingDimensionReference + '")\n';
|
|
363
363
|
message += referencepath_namingDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -367,8 +367,8 @@ 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$D = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
371
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$F();
|
|
372
372
|
return {
|
|
373
373
|
kind: 'Fragment',
|
|
374
374
|
version: VERSION$q,
|
|
@@ -420,7 +420,7 @@ function equals$q(existing, incoming) {
|
|
|
420
420
|
}
|
|
421
421
|
|
|
422
422
|
const VERSION$p = "1b8cf2283d5d5c480459506274f0604c";
|
|
423
|
-
function validate$
|
|
423
|
+
function validate$V(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
424
424
|
const v_error = (() => {
|
|
425
425
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
426
426
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -442,7 +442,7 @@ 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$C = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
446
446
|
return {
|
|
447
447
|
kind: 'Fragment',
|
|
448
448
|
version: VERSION$p,
|
|
@@ -492,7 +492,7 @@ function equals$p(existing, incoming) {
|
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
const VERSION$o = "a3f5972287be7bcf9ca205af56046a58";
|
|
495
|
-
function validate$
|
|
495
|
+
function validate$U(obj, path = 'SemanticInsightsSettingsOutputRepresentation') {
|
|
496
496
|
const v_error = (() => {
|
|
497
497
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
498
498
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -500,7 +500,7 @@ function validate$W(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
500
500
|
if (obj.identifyingDimension !== undefined) {
|
|
501
501
|
const obj_identifyingDimension = obj.identifyingDimension;
|
|
502
502
|
const path_identifyingDimension = path + '.identifyingDimension';
|
|
503
|
-
const referencepath_identifyingDimensionValidationError = validate$
|
|
503
|
+
const referencepath_identifyingDimensionValidationError = validate$W(obj_identifyingDimension, path_identifyingDimension);
|
|
504
504
|
if (referencepath_identifyingDimensionValidationError !== null) {
|
|
505
505
|
let message = 'Object doesn\'t match SemanticIdentifyingDimensionOutputRepresentation (at "' + path_identifyingDimension + '")\n';
|
|
506
506
|
message += referencepath_identifyingDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -516,7 +516,7 @@ function validate$W(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
516
516
|
for (let i = 0; i < obj_insightTypes.length; i++) {
|
|
517
517
|
const obj_insightTypes_item = obj_insightTypes[i];
|
|
518
518
|
const path_insightTypes_item = path_insightTypes + '[' + i + ']';
|
|
519
|
-
const referencepath_insightTypes_itemValidationError = validate$
|
|
519
|
+
const referencepath_insightTypes_itemValidationError = validate$V(obj_insightTypes_item, path_insightTypes_item);
|
|
520
520
|
if (referencepath_insightTypes_itemValidationError !== null) {
|
|
521
521
|
let message = 'Object doesn\'t match SemanticInsightTypeOutputRepresentation (at "' + path_insightTypes_item + '")\n';
|
|
522
522
|
message += referencepath_insightTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -533,7 +533,7 @@ function validate$W(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
533
533
|
for (let i = 0; i < obj_insightsDimensionsReferences.length; i++) {
|
|
534
534
|
const obj_insightsDimensionsReferences_item = obj_insightsDimensionsReferences[i];
|
|
535
535
|
const path_insightsDimensionsReferences_item = path_insightsDimensionsReferences + '[' + i + ']';
|
|
536
|
-
const referencepath_insightsDimensionsReferences_itemValidationError = validate$
|
|
536
|
+
const referencepath_insightsDimensionsReferences_itemValidationError = validate$Y(obj_insightsDimensionsReferences_item, path_insightsDimensionsReferences_item);
|
|
537
537
|
if (referencepath_insightsDimensionsReferences_itemValidationError !== null) {
|
|
538
538
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_insightsDimensionsReferences_item + '")\n';
|
|
539
539
|
message += referencepath_insightsDimensionsReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -565,10 +565,10 @@ 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$B = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
569
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$D();
|
|
570
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$C();
|
|
571
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$F();
|
|
572
572
|
return {
|
|
573
573
|
kind: 'Fragment',
|
|
574
574
|
version: VERSION$o,
|
|
@@ -705,7 +705,7 @@ function equals$o(existing, incoming) {
|
|
|
705
705
|
}
|
|
706
706
|
|
|
707
707
|
const VERSION$n = "0873ccd85b32d14c753931243d20ac8b";
|
|
708
|
-
function validate$
|
|
708
|
+
function validate$T(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
709
709
|
const v_error = (() => {
|
|
710
710
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
711
711
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -719,7 +719,7 @@ function validate$V(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
719
719
|
for (let i = 0; i < obj_additionalDimensions.length; i++) {
|
|
720
720
|
const obj_additionalDimensions_item = obj_additionalDimensions[i];
|
|
721
721
|
const path_additionalDimensions_item = path_additionalDimensions + '[' + i + ']';
|
|
722
|
-
const referencepath_additionalDimensions_itemValidationError = validate$
|
|
722
|
+
const referencepath_additionalDimensions_itemValidationError = validate$Y(obj_additionalDimensions_item, path_additionalDimensions_item);
|
|
723
723
|
if (referencepath_additionalDimensions_itemValidationError !== null) {
|
|
724
724
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_additionalDimensions_item + '")\n';
|
|
725
725
|
message += referencepath_additionalDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -786,7 +786,7 @@ function validate$V(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
786
786
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
787
787
|
const obj_filters_item = obj_filters[i];
|
|
788
788
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
789
|
-
const referencepath_filters_itemValidationError = validate$
|
|
789
|
+
const referencepath_filters_itemValidationError = validate$X(obj_filters_item, path_filters_item);
|
|
790
790
|
if (referencepath_filters_itemValidationError !== null) {
|
|
791
791
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
792
792
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -802,7 +802,7 @@ function validate$V(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
802
802
|
if (obj.insightsSettings !== undefined) {
|
|
803
803
|
const obj_insightsSettings = obj.insightsSettings;
|
|
804
804
|
const path_insightsSettings = path + '.insightsSettings';
|
|
805
|
-
const referencepath_insightsSettingsValidationError = validate$
|
|
805
|
+
const referencepath_insightsSettingsValidationError = validate$U(obj_insightsSettings, path_insightsSettings);
|
|
806
806
|
if (referencepath_insightsSettingsValidationError !== null) {
|
|
807
807
|
let message = 'Object doesn\'t match SemanticInsightsSettingsOutputRepresentation (at "' + path_insightsSettings + '")\n';
|
|
808
808
|
message += referencepath_insightsSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -840,7 +840,7 @@ function validate$V(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
840
840
|
if (obj.measurementReference !== undefined) {
|
|
841
841
|
const obj_measurementReference = obj.measurementReference;
|
|
842
842
|
const path_measurementReference = path + '.measurementReference';
|
|
843
|
-
const referencepath_measurementReferenceValidationError = validate$
|
|
843
|
+
const referencepath_measurementReferenceValidationError = validate$Y(obj_measurementReference, path_measurementReference);
|
|
844
844
|
if (referencepath_measurementReferenceValidationError !== null) {
|
|
845
845
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_measurementReference + '")\n';
|
|
846
846
|
message += referencepath_measurementReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -850,7 +850,7 @@ function validate$V(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
850
850
|
if (obj.timeDimensionReference !== undefined) {
|
|
851
851
|
const obj_timeDimensionReference = obj.timeDimensionReference;
|
|
852
852
|
const path_timeDimensionReference = path + '.timeDimensionReference';
|
|
853
|
-
const referencepath_timeDimensionReferenceValidationError = validate$
|
|
853
|
+
const referencepath_timeDimensionReferenceValidationError = validate$Y(obj_timeDimensionReference, path_timeDimensionReference);
|
|
854
854
|
if (referencepath_timeDimensionReferenceValidationError !== null) {
|
|
855
855
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_timeDimensionReference + '")\n';
|
|
856
856
|
message += referencepath_timeDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -875,22 +875,22 @@ function validate$V(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
875
875
|
return v_error === undefined ? null : v_error;
|
|
876
876
|
}
|
|
877
877
|
const RepresentationType$g = 'SemanticMetricOutputRepresentation';
|
|
878
|
-
function keyBuilder$
|
|
878
|
+
function keyBuilder$v(luvio, config) {
|
|
879
879
|
return keyPrefix + '::' + RepresentationType$g + ':' + 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$v(luvio, keyParams);
|
|
886
886
|
}
|
|
887
887
|
function normalize$g(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$A = function SemanticMetricOutputRepresentationSelect() {
|
|
891
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$F();
|
|
892
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$E();
|
|
893
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$B();
|
|
894
894
|
return {
|
|
895
895
|
kind: 'Fragment',
|
|
896
896
|
version: VERSION$n,
|
|
@@ -1233,7 +1233,7 @@ function equals$n(existing, incoming) {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
const ingest$g = function SemanticMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1235
1235
|
if (process.env.NODE_ENV !== 'production') {
|
|
1236
|
-
const validateError = validate$
|
|
1236
|
+
const validateError = validate$T(input);
|
|
1237
1237
|
if (validateError !== null) {
|
|
1238
1238
|
throw validateError;
|
|
1239
1239
|
}
|
|
@@ -1254,7 +1254,7 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
1256
|
const VERSION$m = "a6709a9f16e02d0d8e3d8423ebc79c2b";
|
|
1257
|
-
function validate$
|
|
1257
|
+
function validate$S(obj, path = 'SemanticMetricCollectionOutputRepresentation') {
|
|
1258
1258
|
const v_error = (() => {
|
|
1259
1259
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1260
1260
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1298,7 +1298,7 @@ function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
return input;
|
|
1300
1300
|
}
|
|
1301
|
-
const select$
|
|
1301
|
+
const select$z = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
1302
1302
|
return {
|
|
1303
1303
|
kind: 'Fragment',
|
|
1304
1304
|
version: VERSION$m,
|
|
@@ -1309,7 +1309,7 @@ const select$y = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
1309
1309
|
kind: 'Link',
|
|
1310
1310
|
plural: true,
|
|
1311
1311
|
required: false,
|
|
1312
|
-
fragment: select$
|
|
1312
|
+
fragment: select$A()
|
|
1313
1313
|
}
|
|
1314
1314
|
]
|
|
1315
1315
|
};
|
|
@@ -1337,7 +1337,7 @@ function equals$m(existing, incoming) {
|
|
|
1337
1337
|
}
|
|
1338
1338
|
const ingest$f = function SemanticMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1339
1339
|
if (process.env.NODE_ENV !== 'production') {
|
|
1340
|
-
const validateError = validate$
|
|
1340
|
+
const validateError = validate$S(input);
|
|
1341
1341
|
if (validateError !== null) {
|
|
1342
1342
|
throw validateError;
|
|
1343
1343
|
}
|
|
@@ -1363,22 +1363,22 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
1366
|
-
function select$
|
|
1367
|
-
return select$
|
|
1366
|
+
function select$y(luvio, params) {
|
|
1367
|
+
return select$z();
|
|
1368
1368
|
}
|
|
1369
|
-
function keyBuilder$
|
|
1369
|
+
function keyBuilder$u(luvio, params) {
|
|
1370
1370
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
1371
1371
|
}
|
|
1372
|
-
function getResponseCacheKeys$
|
|
1373
|
-
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$
|
|
1372
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
1373
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$u(luvio, resourceParams));
|
|
1374
1374
|
}
|
|
1375
|
-
function ingestSuccess$
|
|
1375
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
1376
1376
|
const { body } = response;
|
|
1377
|
-
const key = keyBuilder$
|
|
1377
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
1378
1378
|
luvio.storeIngest(key, ingest$f, body);
|
|
1379
1379
|
const snapshot = luvio.storeLookup({
|
|
1380
1380
|
recordId: key,
|
|
1381
|
-
node: select$
|
|
1381
|
+
node: select$y(),
|
|
1382
1382
|
variables: {},
|
|
1383
1383
|
}, snapshotRefresh);
|
|
1384
1384
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1390,12 +1390,12 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1390
1390
|
return snapshot;
|
|
1391
1391
|
}
|
|
1392
1392
|
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
1393
|
-
const key = keyBuilder$
|
|
1393
|
+
const key = keyBuilder$u(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$e(config) {
|
|
1399
1399
|
const headers = {};
|
|
1400
1400
|
return {
|
|
1401
1401
|
baseUri: '/services/data/v63.0',
|
|
@@ -1409,62 +1409,62 @@ function createResourceRequest$c(config) {
|
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
1411
1411
|
|
|
1412
|
-
const adapterName$
|
|
1412
|
+
const adapterName$e = 'getSemanticMetricsByIds';
|
|
1413
1413
|
const getSemanticMetricsByIds_ConfigPropertyMetadata = [
|
|
1414
1414
|
generateParamConfigMetadata('metricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1415
1415
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1416
1416
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1417
1417
|
];
|
|
1418
|
-
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1419
|
-
const createResourceParams$
|
|
1420
|
-
function keyBuilder$
|
|
1421
|
-
const resourceParams = createResourceParams$
|
|
1422
|
-
return keyBuilder$
|
|
1418
|
+
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1419
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$f(getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1420
|
+
function keyBuilder$t(luvio, config) {
|
|
1421
|
+
const resourceParams = createResourceParams$e(config);
|
|
1422
|
+
return keyBuilder$u(luvio, resourceParams);
|
|
1423
1423
|
}
|
|
1424
|
-
function typeCheckConfig$
|
|
1424
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
1425
1425
|
const config = {};
|
|
1426
|
-
typeCheckConfig$
|
|
1426
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1427
1427
|
return config;
|
|
1428
1428
|
}
|
|
1429
|
-
function validateAdapterConfig$
|
|
1429
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
1430
1430
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1431
1431
|
return null;
|
|
1432
1432
|
}
|
|
1433
1433
|
if (process.env.NODE_ENV !== 'production') {
|
|
1434
1434
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1435
1435
|
}
|
|
1436
|
-
const config = typeCheckConfig$
|
|
1436
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
1437
1437
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1438
1438
|
return null;
|
|
1439
1439
|
}
|
|
1440
1440
|
return config;
|
|
1441
1441
|
}
|
|
1442
1442
|
function adapterFragment$8(luvio, config) {
|
|
1443
|
-
createResourceParams$
|
|
1444
|
-
return select$
|
|
1443
|
+
createResourceParams$e(config);
|
|
1444
|
+
return select$y();
|
|
1445
1445
|
}
|
|
1446
1446
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
1447
|
-
const snapshot = ingestSuccess$
|
|
1447
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
1448
1448
|
config,
|
|
1449
|
-
resolve: () => buildNetworkSnapshot$
|
|
1449
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
1450
1450
|
});
|
|
1451
1451
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1452
1452
|
}
|
|
1453
1453
|
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
1454
1454
|
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
1455
1455
|
config,
|
|
1456
|
-
resolve: () => buildNetworkSnapshot$
|
|
1456
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
1457
1457
|
});
|
|
1458
1458
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1459
1459
|
}
|
|
1460
|
-
function buildNetworkSnapshot$
|
|
1461
|
-
const resourceParams = createResourceParams$
|
|
1462
|
-
const request = createResourceRequest$
|
|
1460
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
1461
|
+
const resourceParams = createResourceParams$e(config);
|
|
1462
|
+
const request = createResourceRequest$e(resourceParams);
|
|
1463
1463
|
return luvio.dispatchResourceRequest(request, options)
|
|
1464
1464
|
.then((response) => {
|
|
1465
1465
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
1466
1466
|
const cache = new StoreKeyMap();
|
|
1467
|
-
getResponseCacheKeys$
|
|
1467
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
1468
1468
|
return cache;
|
|
1469
1469
|
});
|
|
1470
1470
|
}, (response) => {
|
|
@@ -1472,23 +1472,23 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
1472
1472
|
});
|
|
1473
1473
|
}
|
|
1474
1474
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
1475
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1475
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
1476
1476
|
}
|
|
1477
1477
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
1478
1478
|
const { luvio, config } = context;
|
|
1479
1479
|
const selector = {
|
|
1480
|
-
recordId: keyBuilder$
|
|
1480
|
+
recordId: keyBuilder$t(luvio, config),
|
|
1481
1481
|
node: adapterFragment$8(luvio, config),
|
|
1482
1482
|
variables: {},
|
|
1483
1483
|
};
|
|
1484
1484
|
const cacheSnapshot = storeLookup(selector, {
|
|
1485
1485
|
config,
|
|
1486
|
-
resolve: () => buildNetworkSnapshot$
|
|
1486
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
1487
1487
|
});
|
|
1488
1488
|
return cacheSnapshot;
|
|
1489
1489
|
}
|
|
1490
1490
|
const getSemanticMetricsByIdsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsByIds(untrustedConfig, requestContext) {
|
|
1491
|
-
const config = validateAdapterConfig$
|
|
1491
|
+
const config = validateAdapterConfig$e(untrustedConfig, getSemanticMetricsByIds_ConfigPropertyNames);
|
|
1492
1492
|
// Invalid or incomplete config
|
|
1493
1493
|
if (config === null) {
|
|
1494
1494
|
return null;
|
|
@@ -1498,7 +1498,7 @@ const getSemanticMetricsByIdsAdapterFactory = (luvio) => function SemanticAuthor
|
|
|
1498
1498
|
};
|
|
1499
1499
|
|
|
1500
1500
|
const VERSION$l = "3a32d382e7a2268096278aa8e5c6761a";
|
|
1501
|
-
function validate$
|
|
1501
|
+
function validate$R(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
1502
1502
|
const v_error = (() => {
|
|
1503
1503
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1504
1504
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1518,7 +1518,7 @@ function validate$T(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
1518
1518
|
})();
|
|
1519
1519
|
return v_error === undefined ? null : v_error;
|
|
1520
1520
|
}
|
|
1521
|
-
const select$
|
|
1521
|
+
const select$x = function SemanticBaseModelOutputRepresentationSelect() {
|
|
1522
1522
|
return {
|
|
1523
1523
|
kind: 'Fragment',
|
|
1524
1524
|
version: VERSION$l,
|
|
@@ -1559,7 +1559,7 @@ function equals$l(existing, incoming) {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
|
|
1561
1561
|
const VERSION$k = "c9079354cd8127a37c0c13ea6686383c";
|
|
1562
|
-
function validate$
|
|
1562
|
+
function validate$Q(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
1563
1563
|
const v_error = (() => {
|
|
1564
1564
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1565
1565
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1592,7 +1592,7 @@ function validate$S(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
1592
1592
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
1593
1593
|
const obj_baseModels_item = obj_baseModels[i];
|
|
1594
1594
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
1595
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
1595
|
+
const referencepath_baseModels_itemValidationError = validate$R(obj_baseModels_item, path_baseModels_item);
|
|
1596
1596
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
1597
1597
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
1598
1598
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1763,8 +1763,8 @@ function validate$S(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
1763
1763
|
})();
|
|
1764
1764
|
return v_error === undefined ? null : v_error;
|
|
1765
1765
|
}
|
|
1766
|
-
const select$
|
|
1767
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
1766
|
+
const select$w = function SemanticModelPartialOutputRepresentationSelect() {
|
|
1767
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$x();
|
|
1768
1768
|
return {
|
|
1769
1769
|
kind: 'Fragment',
|
|
1770
1770
|
version: VERSION$k,
|
|
@@ -2178,7 +2178,7 @@ function equals$k(existing, incoming) {
|
|
|
2178
2178
|
}
|
|
2179
2179
|
|
|
2180
2180
|
const VERSION$j = "198423ec58354256cc7ea6f4661ef669";
|
|
2181
|
-
function validate$
|
|
2181
|
+
function validate$P(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
2182
2182
|
const v_error = (() => {
|
|
2183
2183
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2184
2184
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2225,7 +2225,7 @@ function validate$R(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
|
2225
2225
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2226
2226
|
const obj_items_item = obj_items[i];
|
|
2227
2227
|
const path_items_item = path_items + '[' + i + ']';
|
|
2228
|
-
const referencepath_items_itemValidationError = validate$
|
|
2228
|
+
const referencepath_items_itemValidationError = validate$Q(obj_items_item, path_items_item);
|
|
2229
2229
|
if (referencepath_items_itemValidationError !== null) {
|
|
2230
2230
|
let message = 'Object doesn\'t match SemanticModelPartialOutputRepresentation (at "' + path_items_item + '")\n';
|
|
2231
2231
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2301,8 +2301,8 @@ const RepresentationType$e = 'SemanticModelCollectionOutputRepresentation';
|
|
|
2301
2301
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
2302
2302
|
return input;
|
|
2303
2303
|
}
|
|
2304
|
-
const select$
|
|
2305
|
-
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$
|
|
2304
|
+
const select$v = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
2305
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$w();
|
|
2306
2306
|
return {
|
|
2307
2307
|
kind: 'Fragment',
|
|
2308
2308
|
version: VERSION$j,
|
|
@@ -2413,7 +2413,7 @@ function equals$j(existing, incoming) {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
const ingest$e = function SemanticModelCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2415
2415
|
if (process.env.NODE_ENV !== 'production') {
|
|
2416
|
-
const validateError = validate$
|
|
2416
|
+
const validateError = validate$P(input);
|
|
2417
2417
|
if (validateError !== null) {
|
|
2418
2418
|
throw validateError;
|
|
2419
2419
|
}
|
|
@@ -2433,22 +2433,22 @@ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2433
2433
|
});
|
|
2434
2434
|
}
|
|
2435
2435
|
|
|
2436
|
-
function select$
|
|
2437
|
-
return select$
|
|
2436
|
+
function select$u(luvio, params) {
|
|
2437
|
+
return select$v();
|
|
2438
2438
|
}
|
|
2439
|
-
function keyBuilder$
|
|
2439
|
+
function keyBuilder$s(luvio, params) {
|
|
2440
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 + ')';
|
|
2441
2441
|
}
|
|
2442
|
-
function getResponseCacheKeys$
|
|
2443
|
-
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$
|
|
2442
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
2443
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$s(luvio, resourceParams));
|
|
2444
2444
|
}
|
|
2445
|
-
function ingestSuccess$
|
|
2445
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
2446
2446
|
const { body } = response;
|
|
2447
|
-
const key = keyBuilder$
|
|
2447
|
+
const key = keyBuilder$s(luvio, resourceParams);
|
|
2448
2448
|
luvio.storeIngest(key, ingest$e, body);
|
|
2449
2449
|
const snapshot = luvio.storeLookup({
|
|
2450
2450
|
recordId: key,
|
|
2451
|
-
node: select$
|
|
2451
|
+
node: select$u(),
|
|
2452
2452
|
variables: {},
|
|
2453
2453
|
}, snapshotRefresh);
|
|
2454
2454
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2460,12 +2460,12 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2460
2460
|
return snapshot;
|
|
2461
2461
|
}
|
|
2462
2462
|
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
2463
|
-
const key = keyBuilder$
|
|
2463
|
+
const key = keyBuilder$s(luvio, params);
|
|
2464
2464
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2465
2465
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2466
2466
|
return errorSnapshot;
|
|
2467
2467
|
}
|
|
2468
|
-
function createResourceRequest$
|
|
2468
|
+
function createResourceRequest$d(config) {
|
|
2469
2469
|
const headers = {};
|
|
2470
2470
|
return {
|
|
2471
2471
|
baseUri: '/services/data/v63.0',
|
|
@@ -2479,7 +2479,7 @@ function createResourceRequest$b(config) {
|
|
|
2479
2479
|
};
|
|
2480
2480
|
}
|
|
2481
2481
|
|
|
2482
|
-
const adapterName$
|
|
2482
|
+
const adapterName$d = 'getSemanticModels';
|
|
2483
2483
|
const getSemanticModels_ConfigPropertyMetadata = [
|
|
2484
2484
|
generateParamConfigMetadata('app', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2485
2485
|
generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -2491,56 +2491,56 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
2491
2491
|
generateParamConfigMetadata('sourceCreation', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2492
2492
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2493
2493
|
];
|
|
2494
|
-
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2495
|
-
const createResourceParams$
|
|
2496
|
-
function keyBuilder$
|
|
2497
|
-
const resourceParams = createResourceParams$
|
|
2498
|
-
return keyBuilder$
|
|
2494
|
+
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSemanticModels_ConfigPropertyMetadata);
|
|
2495
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$f(getSemanticModels_ConfigPropertyMetadata);
|
|
2496
|
+
function keyBuilder$r(luvio, config) {
|
|
2497
|
+
const resourceParams = createResourceParams$d(config);
|
|
2498
|
+
return keyBuilder$s(luvio, resourceParams);
|
|
2499
2499
|
}
|
|
2500
|
-
function typeCheckConfig$
|
|
2500
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
2501
2501
|
const config = {};
|
|
2502
|
-
typeCheckConfig$
|
|
2502
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
2503
2503
|
return config;
|
|
2504
2504
|
}
|
|
2505
|
-
function validateAdapterConfig$
|
|
2505
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
2506
2506
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2507
2507
|
return null;
|
|
2508
2508
|
}
|
|
2509
2509
|
if (process.env.NODE_ENV !== 'production') {
|
|
2510
2510
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2511
2511
|
}
|
|
2512
|
-
const config = typeCheckConfig$
|
|
2512
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
2513
2513
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2514
2514
|
return null;
|
|
2515
2515
|
}
|
|
2516
2516
|
return config;
|
|
2517
2517
|
}
|
|
2518
2518
|
function adapterFragment$7(luvio, config) {
|
|
2519
|
-
createResourceParams$
|
|
2520
|
-
return select$
|
|
2519
|
+
createResourceParams$d(config);
|
|
2520
|
+
return select$u();
|
|
2521
2521
|
}
|
|
2522
2522
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
2523
|
-
const snapshot = ingestSuccess$
|
|
2523
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
2524
2524
|
config,
|
|
2525
|
-
resolve: () => buildNetworkSnapshot$
|
|
2525
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
2526
2526
|
});
|
|
2527
2527
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2528
2528
|
}
|
|
2529
2529
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
2530
2530
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
2531
2531
|
config,
|
|
2532
|
-
resolve: () => buildNetworkSnapshot$
|
|
2532
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
2533
2533
|
});
|
|
2534
2534
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2535
2535
|
}
|
|
2536
|
-
function buildNetworkSnapshot$
|
|
2537
|
-
const resourceParams = createResourceParams$
|
|
2538
|
-
const request = createResourceRequest$
|
|
2536
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
2537
|
+
const resourceParams = createResourceParams$d(config);
|
|
2538
|
+
const request = createResourceRequest$d(resourceParams);
|
|
2539
2539
|
return luvio.dispatchResourceRequest(request, options)
|
|
2540
2540
|
.then((response) => {
|
|
2541
2541
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
2542
2542
|
const cache = new StoreKeyMap();
|
|
2543
|
-
getResponseCacheKeys$
|
|
2543
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
2544
2544
|
return cache;
|
|
2545
2545
|
});
|
|
2546
2546
|
}, (response) => {
|
|
@@ -2548,23 +2548,23 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
2548
2548
|
});
|
|
2549
2549
|
}
|
|
2550
2550
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
2551
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2551
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
2552
2552
|
}
|
|
2553
2553
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
2554
2554
|
const { luvio, config } = context;
|
|
2555
2555
|
const selector = {
|
|
2556
|
-
recordId: keyBuilder$
|
|
2556
|
+
recordId: keyBuilder$r(luvio, config),
|
|
2557
2557
|
node: adapterFragment$7(luvio, config),
|
|
2558
2558
|
variables: {},
|
|
2559
2559
|
};
|
|
2560
2560
|
const cacheSnapshot = storeLookup(selector, {
|
|
2561
2561
|
config,
|
|
2562
|
-
resolve: () => buildNetworkSnapshot$
|
|
2562
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
2563
2563
|
});
|
|
2564
2564
|
return cacheSnapshot;
|
|
2565
2565
|
}
|
|
2566
2566
|
const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
|
|
2567
|
-
const config = validateAdapterConfig$
|
|
2567
|
+
const config = validateAdapterConfig$d(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
2568
2568
|
// Invalid or incomplete config
|
|
2569
2569
|
if (config === null) {
|
|
2570
2570
|
return null;
|
|
@@ -2573,7 +2573,7 @@ const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
2573
2573
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
2574
2574
|
};
|
|
2575
2575
|
|
|
2576
|
-
function validate$
|
|
2576
|
+
function validate$O(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
2577
2577
|
const v_error = (() => {
|
|
2578
2578
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2579
2579
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2589,7 +2589,7 @@ function validate$Q(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
|
2589
2589
|
return v_error === undefined ? null : v_error;
|
|
2590
2590
|
}
|
|
2591
2591
|
|
|
2592
|
-
function validate$
|
|
2592
|
+
function validate$N(obj, path = 'SemanticFilterInputRepresentation') {
|
|
2593
2593
|
const v_error = (() => {
|
|
2594
2594
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2595
2595
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2619,7 +2619,7 @@ function validate$P(obj, path = 'SemanticFilterInputRepresentation') {
|
|
|
2619
2619
|
return v_error === undefined ? null : v_error;
|
|
2620
2620
|
}
|
|
2621
2621
|
|
|
2622
|
-
function validate$
|
|
2622
|
+
function validate$M(obj, path = 'SemanticCalculatedDimensionInputRepresentation') {
|
|
2623
2623
|
const v_error = (() => {
|
|
2624
2624
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2625
2625
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2682,7 +2682,7 @@ function validate$O(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
2682
2682
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
2683
2683
|
const obj_filters_item = obj_filters[i];
|
|
2684
2684
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
2685
|
-
const referencepath_filters_itemValidationError = validate$
|
|
2685
|
+
const referencepath_filters_itemValidationError = validate$N(obj_filters_item, path_filters_item);
|
|
2686
2686
|
if (referencepath_filters_itemValidationError !== null) {
|
|
2687
2687
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
2688
2688
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2729,7 +2729,7 @@ function validate$O(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
2729
2729
|
return v_error === undefined ? null : v_error;
|
|
2730
2730
|
}
|
|
2731
2731
|
|
|
2732
|
-
function validate$
|
|
2732
|
+
function validate$L(obj, path = 'SemanticCalculatedMeasurementInputRepresentation') {
|
|
2733
2733
|
const v_error = (() => {
|
|
2734
2734
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2735
2735
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2806,7 +2806,7 @@ function validate$N(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
2806
2806
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
2807
2807
|
const obj_filters_item = obj_filters[i];
|
|
2808
2808
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
2809
|
-
const referencepath_filters_itemValidationError = validate$
|
|
2809
|
+
const referencepath_filters_itemValidationError = validate$N(obj_filters_item, path_filters_item);
|
|
2810
2810
|
if (referencepath_filters_itemValidationError !== null) {
|
|
2811
2811
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
2812
2812
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2874,7 +2874,7 @@ function validate$N(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
2874
2874
|
return v_error === undefined ? null : v_error;
|
|
2875
2875
|
}
|
|
2876
2876
|
|
|
2877
|
-
function validate$
|
|
2877
|
+
function validate$K(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
2878
2878
|
const v_error = (() => {
|
|
2879
2879
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2880
2880
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2953,7 +2953,7 @@ function validate$M(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
|
2953
2953
|
return v_error === undefined ? null : v_error;
|
|
2954
2954
|
}
|
|
2955
2955
|
|
|
2956
|
-
function validate$
|
|
2956
|
+
function validate$J(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
2957
2957
|
const v_error = (() => {
|
|
2958
2958
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2959
2959
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3060,7 +3060,7 @@ function validate$L(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
|
3060
3060
|
return v_error === undefined ? null : v_error;
|
|
3061
3061
|
}
|
|
3062
3062
|
|
|
3063
|
-
function validate$
|
|
3063
|
+
function validate$I(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
3064
3064
|
const v_error = (() => {
|
|
3065
3065
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3066
3066
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3109,7 +3109,7 @@ function validate$K(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3109
3109
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
3110
3110
|
const obj_filters_item = obj_filters[i];
|
|
3111
3111
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
3112
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3112
|
+
const referencepath_filters_itemValidationError = validate$N(obj_filters_item, path_filters_item);
|
|
3113
3113
|
if (referencepath_filters_itemValidationError !== null) {
|
|
3114
3114
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
3115
3115
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3140,7 +3140,7 @@ function validate$K(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3140
3140
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
3141
3141
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
3142
3142
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
3143
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
3143
|
+
const referencepath_semanticDimensions_itemValidationError = validate$K(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
3144
3144
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
3145
3145
|
let message = 'Object doesn\'t match SemanticDimensionInputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
3146
3146
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3157,7 +3157,7 @@ function validate$K(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3157
3157
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
3158
3158
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
3159
3159
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
3160
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
3160
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$J(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
3161
3161
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
3162
3162
|
let message = 'Object doesn\'t match SemanticMeasurementInputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
3163
3163
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3176,7 +3176,7 @@ function validate$K(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3176
3176
|
return v_error === undefined ? null : v_error;
|
|
3177
3177
|
}
|
|
3178
3178
|
|
|
3179
|
-
function validate$
|
|
3179
|
+
function validate$H(obj, path = 'BinDimensionConfigurationInputRepresentation') {
|
|
3180
3180
|
const v_error = (() => {
|
|
3181
3181
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3182
3182
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3188,7 +3188,7 @@ function validate$J(obj, path = 'BinDimensionConfigurationInputRepresentation')
|
|
|
3188
3188
|
return v_error === undefined ? null : v_error;
|
|
3189
3189
|
}
|
|
3190
3190
|
|
|
3191
|
-
function validate$
|
|
3191
|
+
function validate$G(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
3192
3192
|
const v_error = (() => {
|
|
3193
3193
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3194
3194
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3218,7 +3218,7 @@ function validate$I(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
|
3218
3218
|
return v_error === undefined ? null : v_error;
|
|
3219
3219
|
}
|
|
3220
3220
|
|
|
3221
|
-
function validate$
|
|
3221
|
+
function validate$F(obj, path = 'GroupDimensionConfigurationInputRepresentation') {
|
|
3222
3222
|
const v_error = (() => {
|
|
3223
3223
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3224
3224
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3232,7 +3232,7 @@ function validate$H(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
3232
3232
|
for (let i = 0; i < obj_groups.length; i++) {
|
|
3233
3233
|
const obj_groups_item = obj_groups[i];
|
|
3234
3234
|
const path_groups_item = path_groups + '[' + i + ']';
|
|
3235
|
-
const referencepath_groups_itemValidationError = validate$
|
|
3235
|
+
const referencepath_groups_itemValidationError = validate$G(obj_groups_item, path_groups_item);
|
|
3236
3236
|
if (referencepath_groups_itemValidationError !== null) {
|
|
3237
3237
|
let message = 'Object doesn\'t match GroupDimensionGroupInputRepresentation (at "' + path_groups_item + '")\n';
|
|
3238
3238
|
message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3251,7 +3251,7 @@ function validate$H(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
3251
3251
|
return v_error === undefined ? null : v_error;
|
|
3252
3252
|
}
|
|
3253
3253
|
|
|
3254
|
-
function validate$
|
|
3254
|
+
function validate$E(obj, path = 'SemanticGroupingConfigurationInputRepresentation') {
|
|
3255
3255
|
const v_error = (() => {
|
|
3256
3256
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3257
3257
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3259,7 +3259,7 @@ function validate$G(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
3259
3259
|
if (obj.binDimension !== undefined) {
|
|
3260
3260
|
const obj_binDimension = obj.binDimension;
|
|
3261
3261
|
const path_binDimension = path + '.binDimension';
|
|
3262
|
-
const referencepath_binDimensionValidationError = validate$
|
|
3262
|
+
const referencepath_binDimensionValidationError = validate$H(obj_binDimension, path_binDimension);
|
|
3263
3263
|
if (referencepath_binDimensionValidationError !== null) {
|
|
3264
3264
|
let message = 'Object doesn\'t match BinDimensionConfigurationInputRepresentation (at "' + path_binDimension + '")\n';
|
|
3265
3265
|
message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3269,7 +3269,7 @@ function validate$G(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
3269
3269
|
if (obj.groupDimension !== undefined) {
|
|
3270
3270
|
const obj_groupDimension = obj.groupDimension;
|
|
3271
3271
|
const path_groupDimension = path + '.groupDimension';
|
|
3272
|
-
const referencepath_groupDimensionValidationError = validate$
|
|
3272
|
+
const referencepath_groupDimensionValidationError = validate$F(obj_groupDimension, path_groupDimension);
|
|
3273
3273
|
if (referencepath_groupDimensionValidationError !== null) {
|
|
3274
3274
|
let message = 'Object doesn\'t match GroupDimensionConfigurationInputRepresentation (at "' + path_groupDimension + '")\n';
|
|
3275
3275
|
message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3280,7 +3280,7 @@ function validate$G(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
3280
3280
|
return v_error === undefined ? null : v_error;
|
|
3281
3281
|
}
|
|
3282
3282
|
|
|
3283
|
-
function validate$
|
|
3283
|
+
function validate$D(obj, path = 'SemanticTableFieldReferenceInputRepresentation') {
|
|
3284
3284
|
const v_error = (() => {
|
|
3285
3285
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3286
3286
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3303,7 +3303,7 @@ function validate$F(obj, path = 'SemanticTableFieldReferenceInputRepresentation'
|
|
|
3303
3303
|
return v_error === undefined ? null : v_error;
|
|
3304
3304
|
}
|
|
3305
3305
|
|
|
3306
|
-
function validate$
|
|
3306
|
+
function validate$C(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
3307
3307
|
const v_error = (() => {
|
|
3308
3308
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3309
3309
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3318,7 +3318,7 @@ function validate$E(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
3318
3318
|
if (obj.tableFieldReference !== undefined) {
|
|
3319
3319
|
const obj_tableFieldReference = obj.tableFieldReference;
|
|
3320
3320
|
const path_tableFieldReference = path + '.tableFieldReference';
|
|
3321
|
-
const referencepath_tableFieldReferenceValidationError = validate$
|
|
3321
|
+
const referencepath_tableFieldReferenceValidationError = validate$D(obj_tableFieldReference, path_tableFieldReference);
|
|
3322
3322
|
if (referencepath_tableFieldReferenceValidationError !== null) {
|
|
3323
3323
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceInputRepresentation (at "' + path_tableFieldReference + '")\n';
|
|
3324
3324
|
message += referencepath_tableFieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3329,7 +3329,7 @@ function validate$E(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
3329
3329
|
return v_error === undefined ? null : v_error;
|
|
3330
3330
|
}
|
|
3331
3331
|
|
|
3332
|
-
function validate$
|
|
3332
|
+
function validate$B(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
3333
3333
|
const v_error = (() => {
|
|
3334
3334
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3335
3335
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3344,7 +3344,7 @@ function validate$D(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
3344
3344
|
if (obj.configuration !== undefined) {
|
|
3345
3345
|
const obj_configuration = obj.configuration;
|
|
3346
3346
|
const path_configuration = path + '.configuration';
|
|
3347
|
-
const referencepath_configurationValidationError = validate$
|
|
3347
|
+
const referencepath_configurationValidationError = validate$E(obj_configuration, path_configuration);
|
|
3348
3348
|
if (referencepath_configurationValidationError !== null) {
|
|
3349
3349
|
let message = 'Object doesn\'t match SemanticGroupingConfigurationInputRepresentation (at "' + path_configuration + '")\n';
|
|
3350
3350
|
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3361,7 +3361,7 @@ function validate$D(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
3361
3361
|
if (obj.fieldReference !== undefined) {
|
|
3362
3362
|
const obj_fieldReference = obj.fieldReference;
|
|
3363
3363
|
const path_fieldReference = path + '.fieldReference';
|
|
3364
|
-
const referencepath_fieldReferenceValidationError = validate$
|
|
3364
|
+
const referencepath_fieldReferenceValidationError = validate$C(obj_fieldReference, path_fieldReference);
|
|
3365
3365
|
if (referencepath_fieldReferenceValidationError !== null) {
|
|
3366
3366
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_fieldReference + '")\n';
|
|
3367
3367
|
message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3386,7 +3386,7 @@ function validate$D(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
3386
3386
|
return v_error === undefined ? null : v_error;
|
|
3387
3387
|
}
|
|
3388
3388
|
|
|
3389
|
-
function validate$
|
|
3389
|
+
function validate$A(obj, path = 'SemanticRelationshipCriteriaInputRepresentation') {
|
|
3390
3390
|
const v_error = (() => {
|
|
3391
3391
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3392
3392
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3430,7 +3430,7 @@ function validate$C(obj, path = 'SemanticRelationshipCriteriaInputRepresentation
|
|
|
3430
3430
|
return v_error === undefined ? null : v_error;
|
|
3431
3431
|
}
|
|
3432
3432
|
|
|
3433
|
-
function validate$
|
|
3433
|
+
function validate$z(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
3434
3434
|
const v_error = (() => {
|
|
3435
3435
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3436
3436
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3458,7 +3458,7 @@ function validate$B(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
3458
3458
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
3459
3459
|
const obj_criteria_item = obj_criteria[i];
|
|
3460
3460
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
3461
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
3461
|
+
const referencepath_criteria_itemValidationError = validate$A(obj_criteria_item, path_criteria_item);
|
|
3462
3462
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
3463
3463
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
3464
3464
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3519,7 +3519,7 @@ function validate$B(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
3519
3519
|
return v_error === undefined ? null : v_error;
|
|
3520
3520
|
}
|
|
3521
3521
|
|
|
3522
|
-
function validate$
|
|
3522
|
+
function validate$y(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
3523
3523
|
const v_error = (() => {
|
|
3524
3524
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3525
3525
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3547,7 +3547,7 @@ function validate$A(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3547
3547
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
3548
3548
|
const obj_fields_item = obj_fields[i];
|
|
3549
3549
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
3550
|
-
const referencepath_fields_itemValidationError = validate$
|
|
3550
|
+
const referencepath_fields_itemValidationError = validate$D(obj_fields_item, path_fields_item);
|
|
3551
3551
|
if (referencepath_fields_itemValidationError !== null) {
|
|
3552
3552
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceInputRepresentation (at "' + path_fields_item + '")\n';
|
|
3553
3553
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3572,7 +3572,7 @@ function validate$A(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3572
3572
|
if (obj.semanticDimension !== undefined) {
|
|
3573
3573
|
const obj_semanticDimension = obj.semanticDimension;
|
|
3574
3574
|
const path_semanticDimension = path + '.semanticDimension';
|
|
3575
|
-
const referencepath_semanticDimensionValidationError = validate$
|
|
3575
|
+
const referencepath_semanticDimensionValidationError = validate$K(obj_semanticDimension, path_semanticDimension);
|
|
3576
3576
|
if (referencepath_semanticDimensionValidationError !== null) {
|
|
3577
3577
|
let message = 'Object doesn\'t match SemanticDimensionInputRepresentation (at "' + path_semanticDimension + '")\n';
|
|
3578
3578
|
message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3582,7 +3582,7 @@ function validate$A(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3582
3582
|
if (obj.semanticMeasurement !== undefined) {
|
|
3583
3583
|
const obj_semanticMeasurement = obj.semanticMeasurement;
|
|
3584
3584
|
const path_semanticMeasurement = path + '.semanticMeasurement';
|
|
3585
|
-
const referencepath_semanticMeasurementValidationError = validate$
|
|
3585
|
+
const referencepath_semanticMeasurementValidationError = validate$J(obj_semanticMeasurement, path_semanticMeasurement);
|
|
3586
3586
|
if (referencepath_semanticMeasurementValidationError !== null) {
|
|
3587
3587
|
let message = 'Object doesn\'t match SemanticMeasurementInputRepresentation (at "' + path_semanticMeasurement + '")\n';
|
|
3588
3588
|
message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3593,7 +3593,7 @@ function validate$A(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3593
3593
|
return v_error === undefined ? null : v_error;
|
|
3594
3594
|
}
|
|
3595
3595
|
|
|
3596
|
-
function validate$
|
|
3596
|
+
function validate$x(obj, path = 'SemanticUnionInputRepresentation') {
|
|
3597
3597
|
const v_error = (() => {
|
|
3598
3598
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3599
3599
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3628,7 +3628,7 @@ function validate$z(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
3628
3628
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
3629
3629
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
3630
3630
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
3631
|
-
const referencepath_semanticDataObjects_itemValidationError = validate$
|
|
3631
|
+
const referencepath_semanticDataObjects_itemValidationError = validate$I(obj_semanticDataObjects_item, path_semanticDataObjects_item);
|
|
3632
3632
|
if (referencepath_semanticDataObjects_itemValidationError !== null) {
|
|
3633
3633
|
let message = 'Object doesn\'t match SemanticDataObjectInputRepresentation (at "' + path_semanticDataObjects_item + '")\n';
|
|
3634
3634
|
message += referencepath_semanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3645,7 +3645,7 @@ function validate$z(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
3645
3645
|
for (let i = 0; i < obj_semanticMappedFields.length; i++) {
|
|
3646
3646
|
const obj_semanticMappedFields_item = obj_semanticMappedFields[i];
|
|
3647
3647
|
const path_semanticMappedFields_item = path_semanticMappedFields + '[' + i + ']';
|
|
3648
|
-
const referencepath_semanticMappedFields_itemValidationError = validate$
|
|
3648
|
+
const referencepath_semanticMappedFields_itemValidationError = validate$y(obj_semanticMappedFields_item, path_semanticMappedFields_item);
|
|
3649
3649
|
if (referencepath_semanticMappedFields_itemValidationError !== null) {
|
|
3650
3650
|
let message = 'Object doesn\'t match SemanticMappedFieldInputRepresentation (at "' + path_semanticMappedFields_item + '")\n';
|
|
3651
3651
|
message += referencepath_semanticMappedFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3657,7 +3657,7 @@ function validate$z(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
3657
3657
|
return v_error === undefined ? null : v_error;
|
|
3658
3658
|
}
|
|
3659
3659
|
|
|
3660
|
-
function validate$
|
|
3660
|
+
function validate$w(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
3661
3661
|
const v_error = (() => {
|
|
3662
3662
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3663
3663
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3699,7 +3699,7 @@ function validate$y(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3699
3699
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
3700
3700
|
const obj_filters_item = obj_filters[i];
|
|
3701
3701
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
3702
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3702
|
+
const referencepath_filters_itemValidationError = validate$N(obj_filters_item, path_filters_item);
|
|
3703
3703
|
if (referencepath_filters_itemValidationError !== null) {
|
|
3704
3704
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
3705
3705
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3723,7 +3723,7 @@ function validate$y(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3723
3723
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
3724
3724
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
3725
3725
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
3726
|
-
const referencepath_semanticDataObjects_itemValidationError = validate$
|
|
3726
|
+
const referencepath_semanticDataObjects_itemValidationError = validate$I(obj_semanticDataObjects_item, path_semanticDataObjects_item);
|
|
3727
3727
|
if (referencepath_semanticDataObjects_itemValidationError !== null) {
|
|
3728
3728
|
let message = 'Object doesn\'t match SemanticDataObjectInputRepresentation (at "' + path_semanticDataObjects_item + '")\n';
|
|
3729
3729
|
message += referencepath_semanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3740,7 +3740,7 @@ function validate$y(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3740
3740
|
for (let i = 0; i < obj_semanticRelationships.length; i++) {
|
|
3741
3741
|
const obj_semanticRelationships_item = obj_semanticRelationships[i];
|
|
3742
3742
|
const path_semanticRelationships_item = path_semanticRelationships + '[' + i + ']';
|
|
3743
|
-
const referencepath_semanticRelationships_itemValidationError = validate$
|
|
3743
|
+
const referencepath_semanticRelationships_itemValidationError = validate$z(obj_semanticRelationships_item, path_semanticRelationships_item);
|
|
3744
3744
|
if (referencepath_semanticRelationships_itemValidationError !== null) {
|
|
3745
3745
|
let message = 'Object doesn\'t match SemanticRelationshipInputRepresentation (at "' + path_semanticRelationships_item + '")\n';
|
|
3746
3746
|
message += referencepath_semanticRelationships_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3757,7 +3757,7 @@ function validate$y(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3757
3757
|
for (let i = 0; i < obj_semanticUnions.length; i++) {
|
|
3758
3758
|
const obj_semanticUnions_item = obj_semanticUnions[i];
|
|
3759
3759
|
const path_semanticUnions_item = path_semanticUnions + '[' + i + ']';
|
|
3760
|
-
const referencepath_semanticUnions_itemValidationError = validate$
|
|
3760
|
+
const referencepath_semanticUnions_itemValidationError = validate$x(obj_semanticUnions_item, path_semanticUnions_item);
|
|
3761
3761
|
if (referencepath_semanticUnions_itemValidationError !== null) {
|
|
3762
3762
|
let message = 'Object doesn\'t match SemanticUnionInputRepresentation (at "' + path_semanticUnions_item + '")\n';
|
|
3763
3763
|
message += referencepath_semanticUnions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3769,7 +3769,7 @@ function validate$y(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3769
3769
|
return v_error === undefined ? null : v_error;
|
|
3770
3770
|
}
|
|
3771
3771
|
|
|
3772
|
-
function validate$
|
|
3772
|
+
function validate$v(obj, path = 'SemanticIdentifyingDimensionInputRepresentation') {
|
|
3773
3773
|
const v_error = (() => {
|
|
3774
3774
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3775
3775
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3777,7 +3777,7 @@ function validate$x(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
3777
3777
|
if (obj.identifierDimensionReference !== undefined) {
|
|
3778
3778
|
const obj_identifierDimensionReference = obj.identifierDimensionReference;
|
|
3779
3779
|
const path_identifierDimensionReference = path + '.identifierDimensionReference';
|
|
3780
|
-
const referencepath_identifierDimensionReferenceValidationError = validate$
|
|
3780
|
+
const referencepath_identifierDimensionReferenceValidationError = validate$C(obj_identifierDimensionReference, path_identifierDimensionReference);
|
|
3781
3781
|
if (referencepath_identifierDimensionReferenceValidationError !== null) {
|
|
3782
3782
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_identifierDimensionReference + '")\n';
|
|
3783
3783
|
message += referencepath_identifierDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3787,7 +3787,7 @@ function validate$x(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
3787
3787
|
if (obj.namingDimensionReference !== undefined) {
|
|
3788
3788
|
const obj_namingDimensionReference = obj.namingDimensionReference;
|
|
3789
3789
|
const path_namingDimensionReference = path + '.namingDimensionReference';
|
|
3790
|
-
const referencepath_namingDimensionReferenceValidationError = validate$
|
|
3790
|
+
const referencepath_namingDimensionReferenceValidationError = validate$C(obj_namingDimensionReference, path_namingDimensionReference);
|
|
3791
3791
|
if (referencepath_namingDimensionReferenceValidationError !== null) {
|
|
3792
3792
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_namingDimensionReference + '")\n';
|
|
3793
3793
|
message += referencepath_namingDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3798,7 +3798,7 @@ function validate$x(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
3798
3798
|
return v_error === undefined ? null : v_error;
|
|
3799
3799
|
}
|
|
3800
3800
|
|
|
3801
|
-
function validate$
|
|
3801
|
+
function validate$u(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
3802
3802
|
const v_error = (() => {
|
|
3803
3803
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3804
3804
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3821,7 +3821,7 @@ function validate$w(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
|
3821
3821
|
return v_error === undefined ? null : v_error;
|
|
3822
3822
|
}
|
|
3823
3823
|
|
|
3824
|
-
function validate$
|
|
3824
|
+
function validate$t(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
3825
3825
|
const v_error = (() => {
|
|
3826
3826
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3827
3827
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3829,7 +3829,7 @@ function validate$v(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3829
3829
|
if (obj.identifyingDimension !== undefined) {
|
|
3830
3830
|
const obj_identifyingDimension = obj.identifyingDimension;
|
|
3831
3831
|
const path_identifyingDimension = path + '.identifyingDimension';
|
|
3832
|
-
const referencepath_identifyingDimensionValidationError = validate$
|
|
3832
|
+
const referencepath_identifyingDimensionValidationError = validate$v(obj_identifyingDimension, path_identifyingDimension);
|
|
3833
3833
|
if (referencepath_identifyingDimensionValidationError !== null) {
|
|
3834
3834
|
let message = 'Object doesn\'t match SemanticIdentifyingDimensionInputRepresentation (at "' + path_identifyingDimension + '")\n';
|
|
3835
3835
|
message += referencepath_identifyingDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3845,7 +3845,7 @@ function validate$v(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3845
3845
|
for (let i = 0; i < obj_insightTypes.length; i++) {
|
|
3846
3846
|
const obj_insightTypes_item = obj_insightTypes[i];
|
|
3847
3847
|
const path_insightTypes_item = path_insightTypes + '[' + i + ']';
|
|
3848
|
-
const referencepath_insightTypes_itemValidationError = validate$
|
|
3848
|
+
const referencepath_insightTypes_itemValidationError = validate$u(obj_insightTypes_item, path_insightTypes_item);
|
|
3849
3849
|
if (referencepath_insightTypes_itemValidationError !== null) {
|
|
3850
3850
|
let message = 'Object doesn\'t match SemanticInsightTypeInputRepresentation (at "' + path_insightTypes_item + '")\n';
|
|
3851
3851
|
message += referencepath_insightTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3862,7 +3862,7 @@ function validate$v(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3862
3862
|
for (let i = 0; i < obj_insightsDimensionsReferences.length; i++) {
|
|
3863
3863
|
const obj_insightsDimensionsReferences_item = obj_insightsDimensionsReferences[i];
|
|
3864
3864
|
const path_insightsDimensionsReferences_item = path_insightsDimensionsReferences + '[' + i + ']';
|
|
3865
|
-
const referencepath_insightsDimensionsReferences_itemValidationError = validate$
|
|
3865
|
+
const referencepath_insightsDimensionsReferences_itemValidationError = validate$C(obj_insightsDimensionsReferences_item, path_insightsDimensionsReferences_item);
|
|
3866
3866
|
if (referencepath_insightsDimensionsReferences_itemValidationError !== null) {
|
|
3867
3867
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_insightsDimensionsReferences_item + '")\n';
|
|
3868
3868
|
message += referencepath_insightsDimensionsReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3895,7 +3895,7 @@ function validate$v(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3895
3895
|
return v_error === undefined ? null : v_error;
|
|
3896
3896
|
}
|
|
3897
3897
|
|
|
3898
|
-
function validate$
|
|
3898
|
+
function validate$s(obj, path = 'SemanticMetricInputRepresentation') {
|
|
3899
3899
|
const v_error = (() => {
|
|
3900
3900
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3901
3901
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3909,7 +3909,7 @@ function validate$u(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3909
3909
|
for (let i = 0; i < obj_additionalDimensions.length; i++) {
|
|
3910
3910
|
const obj_additionalDimensions_item = obj_additionalDimensions[i];
|
|
3911
3911
|
const path_additionalDimensions_item = path_additionalDimensions + '[' + i + ']';
|
|
3912
|
-
const referencepath_additionalDimensions_itemValidationError = validate$
|
|
3912
|
+
const referencepath_additionalDimensions_itemValidationError = validate$C(obj_additionalDimensions_item, path_additionalDimensions_item);
|
|
3913
3913
|
if (referencepath_additionalDimensions_itemValidationError !== null) {
|
|
3914
3914
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_additionalDimensions_item + '")\n';
|
|
3915
3915
|
message += referencepath_additionalDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3954,7 +3954,7 @@ function validate$u(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3954
3954
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
3955
3955
|
const obj_filters_item = obj_filters[i];
|
|
3956
3956
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
3957
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3957
|
+
const referencepath_filters_itemValidationError = validate$N(obj_filters_item, path_filters_item);
|
|
3958
3958
|
if (referencepath_filters_itemValidationError !== null) {
|
|
3959
3959
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
3960
3960
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3965,7 +3965,7 @@ function validate$u(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3965
3965
|
if (obj.insightsSettings !== undefined) {
|
|
3966
3966
|
const obj_insightsSettings = obj.insightsSettings;
|
|
3967
3967
|
const path_insightsSettings = path + '.insightsSettings';
|
|
3968
|
-
const referencepath_insightsSettingsValidationError = validate$
|
|
3968
|
+
const referencepath_insightsSettingsValidationError = validate$t(obj_insightsSettings, path_insightsSettings);
|
|
3969
3969
|
if (referencepath_insightsSettingsValidationError !== null) {
|
|
3970
3970
|
let message = 'Object doesn\'t match SemanticInsightsSettingsInputRepresentation (at "' + path_insightsSettings + '")\n';
|
|
3971
3971
|
message += referencepath_insightsSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3989,7 +3989,7 @@ function validate$u(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3989
3989
|
if (obj.measurementReference !== undefined) {
|
|
3990
3990
|
const obj_measurementReference = obj.measurementReference;
|
|
3991
3991
|
const path_measurementReference = path + '.measurementReference';
|
|
3992
|
-
const referencepath_measurementReferenceValidationError = validate$
|
|
3992
|
+
const referencepath_measurementReferenceValidationError = validate$C(obj_measurementReference, path_measurementReference);
|
|
3993
3993
|
if (referencepath_measurementReferenceValidationError !== null) {
|
|
3994
3994
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_measurementReference + '")\n';
|
|
3995
3995
|
message += referencepath_measurementReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3999,7 +3999,7 @@ function validate$u(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3999
3999
|
if (obj.timeDimensionReference !== undefined) {
|
|
4000
4000
|
const obj_timeDimensionReference = obj.timeDimensionReference;
|
|
4001
4001
|
const path_timeDimensionReference = path + '.timeDimensionReference';
|
|
4002
|
-
const referencepath_timeDimensionReferenceValidationError = validate$
|
|
4002
|
+
const referencepath_timeDimensionReferenceValidationError = validate$C(obj_timeDimensionReference, path_timeDimensionReference);
|
|
4003
4003
|
if (referencepath_timeDimensionReferenceValidationError !== null) {
|
|
4004
4004
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_timeDimensionReference + '")\n';
|
|
4005
4005
|
message += referencepath_timeDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4024,7 +4024,7 @@ function validate$u(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
4024
4024
|
return v_error === undefined ? null : v_error;
|
|
4025
4025
|
}
|
|
4026
4026
|
|
|
4027
|
-
function validate$
|
|
4027
|
+
function validate$r(obj, path = 'SemanticParameterInputRepresentation') {
|
|
4028
4028
|
const v_error = (() => {
|
|
4029
4029
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4030
4030
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4110,8 +4110,8 @@ function validate$t(obj, path = 'SemanticParameterInputRepresentation') {
|
|
|
4110
4110
|
return v_error === undefined ? null : v_error;
|
|
4111
4111
|
}
|
|
4112
4112
|
|
|
4113
|
-
const VERSION$i = "
|
|
4114
|
-
function validate$
|
|
4113
|
+
const VERSION$i = "8137018d7bcc1592081ebddf74ddd42a";
|
|
4114
|
+
function validate$q(obj, path = 'SemanticCalculatedDimensionOutputRepresentation') {
|
|
4115
4115
|
const v_error = (() => {
|
|
4116
4116
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4117
4117
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4196,7 +4196,7 @@ function validate$s(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4196
4196
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
4197
4197
|
const obj_filters_item = obj_filters[i];
|
|
4198
4198
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
4199
|
-
const referencepath_filters_itemValidationError = validate$
|
|
4199
|
+
const referencepath_filters_itemValidationError = validate$X(obj_filters_item, path_filters_item);
|
|
4200
4200
|
if (referencepath_filters_itemValidationError !== null) {
|
|
4201
4201
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
4202
4202
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4237,6 +4237,13 @@ function validate$s(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4237
4237
|
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
4238
4238
|
}
|
|
4239
4239
|
}
|
|
4240
|
+
if (obj.level !== undefined) {
|
|
4241
|
+
const obj_level = obj.level;
|
|
4242
|
+
const path_level = path + '.level';
|
|
4243
|
+
if (typeof obj_level !== 'string') {
|
|
4244
|
+
return new TypeError('Expected "string" but received "' + typeof obj_level + '" (at "' + path_level + '")');
|
|
4245
|
+
}
|
|
4246
|
+
}
|
|
4240
4247
|
if (obj.semanticDataType !== undefined) {
|
|
4241
4248
|
const obj_semanticDataType = obj.semanticDataType;
|
|
4242
4249
|
const path_semanticDataType = path + '.semanticDataType';
|
|
@@ -4262,20 +4269,20 @@ function validate$s(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4262
4269
|
return v_error === undefined ? null : v_error;
|
|
4263
4270
|
}
|
|
4264
4271
|
const RepresentationType$d = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
4265
|
-
function keyBuilder$
|
|
4272
|
+
function keyBuilder$q(luvio, config) {
|
|
4266
4273
|
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
4267
4274
|
}
|
|
4268
4275
|
function keyBuilderFromType$a(luvio, object) {
|
|
4269
4276
|
const keyParams = {
|
|
4270
4277
|
name: object.id
|
|
4271
4278
|
};
|
|
4272
|
-
return keyBuilder$
|
|
4279
|
+
return keyBuilder$q(luvio, keyParams);
|
|
4273
4280
|
}
|
|
4274
4281
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
4275
4282
|
return input;
|
|
4276
4283
|
}
|
|
4277
|
-
const select$
|
|
4278
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4284
|
+
const select$t = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
4285
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$E();
|
|
4279
4286
|
return {
|
|
4280
4287
|
kind: 'Fragment',
|
|
4281
4288
|
version: VERSION$i,
|
|
@@ -4364,6 +4371,11 @@ const select$s = function SemanticCalculatedDimensionOutputRepresentationSelect(
|
|
|
4364
4371
|
kind: 'Scalar',
|
|
4365
4372
|
required: false
|
|
4366
4373
|
},
|
|
4374
|
+
{
|
|
4375
|
+
name: 'level',
|
|
4376
|
+
kind: 'Scalar',
|
|
4377
|
+
required: false
|
|
4378
|
+
},
|
|
4367
4379
|
{
|
|
4368
4380
|
name: 'semanticDataType',
|
|
4369
4381
|
kind: 'Scalar',
|
|
@@ -4559,6 +4571,19 @@ function equals$i(existing, incoming) {
|
|
|
4559
4571
|
return false;
|
|
4560
4572
|
}
|
|
4561
4573
|
}
|
|
4574
|
+
const existing_level = existing.level;
|
|
4575
|
+
const incoming_level = incoming.level;
|
|
4576
|
+
// if at least one of these optionals is defined
|
|
4577
|
+
if (existing_level !== undefined || incoming_level !== undefined) {
|
|
4578
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4579
|
+
// not equal
|
|
4580
|
+
if (existing_level === undefined || incoming_level === undefined) {
|
|
4581
|
+
return false;
|
|
4582
|
+
}
|
|
4583
|
+
if (!(existing_level === incoming_level)) {
|
|
4584
|
+
return false;
|
|
4585
|
+
}
|
|
4586
|
+
}
|
|
4562
4587
|
const existing_semanticDataType = existing.semanticDataType;
|
|
4563
4588
|
const incoming_semanticDataType = incoming.semanticDataType;
|
|
4564
4589
|
// if at least one of these optionals is defined
|
|
@@ -4620,7 +4645,7 @@ function equals$i(existing, incoming) {
|
|
|
4620
4645
|
}
|
|
4621
4646
|
const ingest$d = function SemanticCalculatedDimensionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4622
4647
|
if (process.env.NODE_ENV !== 'production') {
|
|
4623
|
-
const validateError = validate$
|
|
4648
|
+
const validateError = validate$q(input);
|
|
4624
4649
|
if (validateError !== null) {
|
|
4625
4650
|
throw validateError;
|
|
4626
4651
|
}
|
|
@@ -4640,8 +4665,8 @@ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4640
4665
|
});
|
|
4641
4666
|
}
|
|
4642
4667
|
|
|
4643
|
-
const VERSION$h = "
|
|
4644
|
-
function validate$
|
|
4668
|
+
const VERSION$h = "4dc83d3583b0937db8808447abe03505";
|
|
4669
|
+
function validate$p(obj, path = 'SemanticCalculatedMeasurementOutputRepresentation') {
|
|
4645
4670
|
const v_error = (() => {
|
|
4646
4671
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4647
4672
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4740,7 +4765,7 @@ function validate$r(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
4740
4765
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
4741
4766
|
const obj_filters_item = obj_filters[i];
|
|
4742
4767
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
4743
|
-
const referencepath_filters_itemValidationError = validate$
|
|
4768
|
+
const referencepath_filters_itemValidationError = validate$X(obj_filters_item, path_filters_item);
|
|
4744
4769
|
if (referencepath_filters_itemValidationError !== null) {
|
|
4745
4770
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
4746
4771
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4788,6 +4813,13 @@ function validate$r(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
4788
4813
|
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
4789
4814
|
}
|
|
4790
4815
|
}
|
|
4816
|
+
if (obj.level !== undefined) {
|
|
4817
|
+
const obj_level = obj.level;
|
|
4818
|
+
const path_level = path + '.level';
|
|
4819
|
+
if (typeof obj_level !== 'string') {
|
|
4820
|
+
return new TypeError('Expected "string" but received "' + typeof obj_level + '" (at "' + path_level + '")');
|
|
4821
|
+
}
|
|
4822
|
+
}
|
|
4791
4823
|
if (obj.semanticDataType !== undefined) {
|
|
4792
4824
|
const obj_semanticDataType = obj.semanticDataType;
|
|
4793
4825
|
const path_semanticDataType = path + '.semanticDataType';
|
|
@@ -4834,20 +4866,20 @@ function validate$r(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
4834
4866
|
return v_error === undefined ? null : v_error;
|
|
4835
4867
|
}
|
|
4836
4868
|
const RepresentationType$c = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
4837
|
-
function keyBuilder$
|
|
4869
|
+
function keyBuilder$p(luvio, config) {
|
|
4838
4870
|
return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
|
|
4839
4871
|
}
|
|
4840
4872
|
function keyBuilderFromType$9(luvio, object) {
|
|
4841
4873
|
const keyParams = {
|
|
4842
4874
|
name: object.id
|
|
4843
4875
|
};
|
|
4844
|
-
return keyBuilder$
|
|
4876
|
+
return keyBuilder$p(luvio, keyParams);
|
|
4845
4877
|
}
|
|
4846
4878
|
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
4847
4879
|
return input;
|
|
4848
4880
|
}
|
|
4849
|
-
const select$
|
|
4850
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4881
|
+
const select$s = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
4882
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$E();
|
|
4851
4883
|
return {
|
|
4852
4884
|
kind: 'Fragment',
|
|
4853
4885
|
version: VERSION$h,
|
|
@@ -4951,6 +4983,11 @@ const select$r = function SemanticCalculatedMeasurementOutputRepresentationSelec
|
|
|
4951
4983
|
kind: 'Scalar',
|
|
4952
4984
|
required: false
|
|
4953
4985
|
},
|
|
4986
|
+
{
|
|
4987
|
+
name: 'level',
|
|
4988
|
+
kind: 'Scalar',
|
|
4989
|
+
required: false
|
|
4990
|
+
},
|
|
4954
4991
|
{
|
|
4955
4992
|
name: 'semanticDataType',
|
|
4956
4993
|
kind: 'Scalar',
|
|
@@ -5213,6 +5250,19 @@ function equals$h(existing, incoming) {
|
|
|
5213
5250
|
return false;
|
|
5214
5251
|
}
|
|
5215
5252
|
}
|
|
5253
|
+
const existing_level = existing.level;
|
|
5254
|
+
const incoming_level = incoming.level;
|
|
5255
|
+
// if at least one of these optionals is defined
|
|
5256
|
+
if (existing_level !== undefined || incoming_level !== undefined) {
|
|
5257
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5258
|
+
// not equal
|
|
5259
|
+
if (existing_level === undefined || incoming_level === undefined) {
|
|
5260
|
+
return false;
|
|
5261
|
+
}
|
|
5262
|
+
if (!(existing_level === incoming_level)) {
|
|
5263
|
+
return false;
|
|
5264
|
+
}
|
|
5265
|
+
}
|
|
5216
5266
|
const existing_semanticDataType = existing.semanticDataType;
|
|
5217
5267
|
const incoming_semanticDataType = incoming.semanticDataType;
|
|
5218
5268
|
// if at least one of these optionals is defined
|
|
@@ -5300,7 +5350,7 @@ function equals$h(existing, incoming) {
|
|
|
5300
5350
|
}
|
|
5301
5351
|
const ingest$c = function SemanticCalculatedMeasurementOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5302
5352
|
if (process.env.NODE_ENV !== 'production') {
|
|
5303
|
-
const validateError = validate$
|
|
5353
|
+
const validateError = validate$p(input);
|
|
5304
5354
|
if (validateError !== null) {
|
|
5305
5355
|
throw validateError;
|
|
5306
5356
|
}
|
|
@@ -5320,7 +5370,7 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5320
5370
|
});
|
|
5321
5371
|
}
|
|
5322
5372
|
|
|
5323
|
-
function validate$
|
|
5373
|
+
function validate$o(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
5324
5374
|
const v_error = (() => {
|
|
5325
5375
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5326
5376
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5461,7 +5511,7 @@ function validate$q(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
|
5461
5511
|
return v_error === undefined ? null : v_error;
|
|
5462
5512
|
}
|
|
5463
5513
|
|
|
5464
|
-
function validate$
|
|
5514
|
+
function validate$n(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
5465
5515
|
const v_error = (() => {
|
|
5466
5516
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5467
5517
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5638,7 +5688,7 @@ function validate$p(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
5638
5688
|
}
|
|
5639
5689
|
|
|
5640
5690
|
const VERSION$g = "4f111b93807b811179eb310384efdc35";
|
|
5641
|
-
function validate$
|
|
5691
|
+
function validate$m(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
5642
5692
|
const v_error = (() => {
|
|
5643
5693
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5644
5694
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5709,7 +5759,7 @@ function validate$o(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5709
5759
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
5710
5760
|
const obj_filters_item = obj_filters[i];
|
|
5711
5761
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
5712
|
-
const referencepath_filters_itemValidationError = validate$
|
|
5762
|
+
const referencepath_filters_itemValidationError = validate$X(obj_filters_item, path_filters_item);
|
|
5713
5763
|
if (referencepath_filters_itemValidationError !== null) {
|
|
5714
5764
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
5715
5765
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5759,7 +5809,7 @@ function validate$o(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5759
5809
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
5760
5810
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
5761
5811
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
5762
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
5812
|
+
const referencepath_semanticDimensions_itemValidationError = validate$o(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
5763
5813
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
5764
5814
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
5765
5815
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5783,7 +5833,7 @@ function validate$o(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5783
5833
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
5784
5834
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
5785
5835
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
5786
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
5836
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$n(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
5787
5837
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
5788
5838
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
5789
5839
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5809,19 +5859,19 @@ function validate$o(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5809
5859
|
return v_error === undefined ? null : v_error;
|
|
5810
5860
|
}
|
|
5811
5861
|
const RepresentationType$b = 'SemanticDataObjectOutputRepresentation';
|
|
5812
|
-
function keyBuilder$
|
|
5862
|
+
function keyBuilder$o(luvio, config) {
|
|
5813
5863
|
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
5814
5864
|
}
|
|
5815
5865
|
function keyBuilderFromType$8(luvio, object) {
|
|
5816
5866
|
const keyParams = {
|
|
5817
5867
|
name: object.id
|
|
5818
5868
|
};
|
|
5819
|
-
return keyBuilder$
|
|
5869
|
+
return keyBuilder$o(luvio, keyParams);
|
|
5820
5870
|
}
|
|
5821
5871
|
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
5822
5872
|
return input;
|
|
5823
5873
|
}
|
|
5824
|
-
const select$
|
|
5874
|
+
const select$r = function SemanticDataObjectOutputRepresentationSelect() {
|
|
5825
5875
|
return {
|
|
5826
5876
|
kind: 'Fragment',
|
|
5827
5877
|
version: VERSION$g,
|
|
@@ -5837,7 +5887,7 @@ function equals$g(existing, incoming) {
|
|
|
5837
5887
|
}
|
|
5838
5888
|
const ingest$b = function SemanticDataObjectOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5839
5889
|
if (process.env.NODE_ENV !== 'production') {
|
|
5840
|
-
const validateError = validate$
|
|
5890
|
+
const validateError = validate$m(input);
|
|
5841
5891
|
if (validateError !== null) {
|
|
5842
5892
|
throw validateError;
|
|
5843
5893
|
}
|
|
@@ -5858,7 +5908,7 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5858
5908
|
}
|
|
5859
5909
|
|
|
5860
5910
|
const VERSION$f = "ed64ca1a99171ace8b53aff11746cc2a";
|
|
5861
|
-
function validate$
|
|
5911
|
+
function validate$l(obj, path = 'BinDimensionConfigurationOutputRepresentation') {
|
|
5862
5912
|
const v_error = (() => {
|
|
5863
5913
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5864
5914
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5867,7 +5917,7 @@ function validate$n(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
5867
5917
|
})();
|
|
5868
5918
|
return v_error === undefined ? null : v_error;
|
|
5869
5919
|
}
|
|
5870
|
-
const select$
|
|
5920
|
+
const select$q = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
5871
5921
|
return {
|
|
5872
5922
|
kind: 'Fragment',
|
|
5873
5923
|
version: VERSION$f,
|
|
@@ -5890,7 +5940,7 @@ function equals$f(existing, incoming) {
|
|
|
5890
5940
|
}
|
|
5891
5941
|
|
|
5892
5942
|
const VERSION$e = "2cdadcd630abb7b981b2d131880a68c0";
|
|
5893
|
-
function validate$
|
|
5943
|
+
function validate$k(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
5894
5944
|
const v_error = (() => {
|
|
5895
5945
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5896
5946
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5917,7 +5967,7 @@ function validate$m(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
5917
5967
|
})();
|
|
5918
5968
|
return v_error === undefined ? null : v_error;
|
|
5919
5969
|
}
|
|
5920
|
-
const select$
|
|
5970
|
+
const select$p = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
5921
5971
|
return {
|
|
5922
5972
|
kind: 'Fragment',
|
|
5923
5973
|
version: VERSION$e,
|
|
@@ -5964,7 +6014,7 @@ function equals$e(existing, incoming) {
|
|
|
5964
6014
|
}
|
|
5965
6015
|
|
|
5966
6016
|
const VERSION$d = "55c60b6207985632192cb4e419822a86";
|
|
5967
|
-
function validate$
|
|
6017
|
+
function validate$j(obj, path = 'GroupDimensionConfigurationOutputRepresentation') {
|
|
5968
6018
|
const v_error = (() => {
|
|
5969
6019
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5970
6020
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5978,7 +6028,7 @@ function validate$l(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
5978
6028
|
for (let i = 0; i < obj_groups.length; i++) {
|
|
5979
6029
|
const obj_groups_item = obj_groups[i];
|
|
5980
6030
|
const path_groups_item = path_groups + '[' + i + ']';
|
|
5981
|
-
const referencepath_groups_itemValidationError = validate$
|
|
6031
|
+
const referencepath_groups_itemValidationError = validate$k(obj_groups_item, path_groups_item);
|
|
5982
6032
|
if (referencepath_groups_itemValidationError !== null) {
|
|
5983
6033
|
let message = 'Object doesn\'t match GroupDimensionGroupOutputRepresentation (at "' + path_groups_item + '")\n';
|
|
5984
6034
|
message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5996,8 +6046,8 @@ function validate$l(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
5996
6046
|
})();
|
|
5997
6047
|
return v_error === undefined ? null : v_error;
|
|
5998
6048
|
}
|
|
5999
|
-
const select$
|
|
6000
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
6049
|
+
const select$o = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
6050
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$p();
|
|
6001
6051
|
return {
|
|
6002
6052
|
kind: 'Fragment',
|
|
6003
6053
|
version: VERSION$d,
|
|
@@ -6054,7 +6104,7 @@ function equals$d(existing, incoming) {
|
|
|
6054
6104
|
}
|
|
6055
6105
|
|
|
6056
6106
|
const VERSION$c = "50dc390b159159afb1945b9a811c9f80";
|
|
6057
|
-
function validate$
|
|
6107
|
+
function validate$i(obj, path = 'SemanticGroupingConfigurationOutputRepresentation') {
|
|
6058
6108
|
const v_error = (() => {
|
|
6059
6109
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6060
6110
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6062,7 +6112,7 @@ function validate$k(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6062
6112
|
if (obj.binDimension !== undefined) {
|
|
6063
6113
|
const obj_binDimension = obj.binDimension;
|
|
6064
6114
|
const path_binDimension = path + '.binDimension';
|
|
6065
|
-
const referencepath_binDimensionValidationError = validate$
|
|
6115
|
+
const referencepath_binDimensionValidationError = validate$l(obj_binDimension, path_binDimension);
|
|
6066
6116
|
if (referencepath_binDimensionValidationError !== null) {
|
|
6067
6117
|
let message = 'Object doesn\'t match BinDimensionConfigurationOutputRepresentation (at "' + path_binDimension + '")\n';
|
|
6068
6118
|
message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6072,7 +6122,7 @@ function validate$k(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6072
6122
|
if (obj.groupDimension !== undefined) {
|
|
6073
6123
|
const obj_groupDimension = obj.groupDimension;
|
|
6074
6124
|
const path_groupDimension = path + '.groupDimension';
|
|
6075
|
-
const referencepath_groupDimensionValidationError = validate$
|
|
6125
|
+
const referencepath_groupDimensionValidationError = validate$j(obj_groupDimension, path_groupDimension);
|
|
6076
6126
|
if (referencepath_groupDimensionValidationError !== null) {
|
|
6077
6127
|
let message = 'Object doesn\'t match GroupDimensionConfigurationOutputRepresentation (at "' + path_groupDimension + '")\n';
|
|
6078
6128
|
message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6082,9 +6132,9 @@ function validate$k(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6082
6132
|
})();
|
|
6083
6133
|
return v_error === undefined ? null : v_error;
|
|
6084
6134
|
}
|
|
6085
|
-
const select$
|
|
6086
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6087
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6135
|
+
const select$n = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
6136
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$q();
|
|
6137
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$o();
|
|
6088
6138
|
return {
|
|
6089
6139
|
kind: 'Fragment',
|
|
6090
6140
|
version: VERSION$c,
|
|
@@ -6136,7 +6186,7 @@ function equals$c(existing, incoming) {
|
|
|
6136
6186
|
}
|
|
6137
6187
|
|
|
6138
6188
|
const VERSION$b = "1daec40706bf767c719fa58831fad462";
|
|
6139
|
-
function validate$
|
|
6189
|
+
function validate$h(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
6140
6190
|
const v_error = (() => {
|
|
6141
6191
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6142
6192
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6162,7 +6212,7 @@ function validate$j(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6162
6212
|
}
|
|
6163
6213
|
const obj_configuration = obj.configuration;
|
|
6164
6214
|
const path_configuration = path + '.configuration';
|
|
6165
|
-
const referencepath_configurationValidationError = validate$
|
|
6215
|
+
const referencepath_configurationValidationError = validate$i(obj_configuration, path_configuration);
|
|
6166
6216
|
if (referencepath_configurationValidationError !== null) {
|
|
6167
6217
|
let message = 'Object doesn\'t match SemanticGroupingConfigurationOutputRepresentation (at "' + path_configuration + '")\n';
|
|
6168
6218
|
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6187,7 +6237,7 @@ function validate$j(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6187
6237
|
}
|
|
6188
6238
|
const obj_fieldReference = obj.fieldReference;
|
|
6189
6239
|
const path_fieldReference = path + '.fieldReference';
|
|
6190
|
-
const referencepath_fieldReferenceValidationError = validate$
|
|
6240
|
+
const referencepath_fieldReferenceValidationError = validate$Y(obj_fieldReference, path_fieldReference);
|
|
6191
6241
|
if (referencepath_fieldReferenceValidationError !== null) {
|
|
6192
6242
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_fieldReference + '")\n';
|
|
6193
6243
|
message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6228,21 +6278,21 @@ function validate$j(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6228
6278
|
return v_error === undefined ? null : v_error;
|
|
6229
6279
|
}
|
|
6230
6280
|
const RepresentationType$a = 'SemanticGroupingOutputRepresentation';
|
|
6231
|
-
function keyBuilder$
|
|
6281
|
+
function keyBuilder$n(luvio, config) {
|
|
6232
6282
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
6233
6283
|
}
|
|
6234
6284
|
function keyBuilderFromType$7(luvio, object) {
|
|
6235
6285
|
const keyParams = {
|
|
6236
6286
|
name: object.id
|
|
6237
6287
|
};
|
|
6238
|
-
return keyBuilder$
|
|
6288
|
+
return keyBuilder$n(luvio, keyParams);
|
|
6239
6289
|
}
|
|
6240
6290
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
6241
6291
|
return input;
|
|
6242
6292
|
}
|
|
6243
|
-
const select$
|
|
6244
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
6245
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6293
|
+
const select$m = function SemanticGroupingOutputRepresentationSelect() {
|
|
6294
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$n();
|
|
6295
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$F();
|
|
6246
6296
|
return {
|
|
6247
6297
|
kind: 'Fragment',
|
|
6248
6298
|
version: VERSION$b,
|
|
@@ -6429,7 +6479,7 @@ function equals$b(existing, incoming) {
|
|
|
6429
6479
|
}
|
|
6430
6480
|
const ingest$a = function SemanticGroupingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6431
6481
|
if (process.env.NODE_ENV !== 'production') {
|
|
6432
|
-
const validateError = validate$
|
|
6482
|
+
const validateError = validate$h(input);
|
|
6433
6483
|
if (validateError !== null) {
|
|
6434
6484
|
throw validateError;
|
|
6435
6485
|
}
|
|
@@ -6450,7 +6500,7 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6450
6500
|
}
|
|
6451
6501
|
|
|
6452
6502
|
const VERSION$a = "c5144c317ac72b60d580cab803514b8d";
|
|
6453
|
-
function validate$
|
|
6503
|
+
function validate$g(obj, path = 'SemanticRelationshipCriteriaOutputRepresentation') {
|
|
6454
6504
|
const v_error = (() => {
|
|
6455
6505
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6456
6506
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6493,7 +6543,7 @@ function validate$i(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
6493
6543
|
})();
|
|
6494
6544
|
return v_error === undefined ? null : v_error;
|
|
6495
6545
|
}
|
|
6496
|
-
const select$
|
|
6546
|
+
const select$l = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
6497
6547
|
return {
|
|
6498
6548
|
kind: 'Fragment',
|
|
6499
6549
|
version: VERSION$a,
|
|
@@ -6597,7 +6647,7 @@ function equals$a(existing, incoming) {
|
|
|
6597
6647
|
}
|
|
6598
6648
|
|
|
6599
6649
|
const VERSION$9 = "b9778dace5726fcb57804d3afd529246";
|
|
6600
|
-
function validate$
|
|
6650
|
+
function validate$f(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
6601
6651
|
const v_error = (() => {
|
|
6602
6652
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6603
6653
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6647,7 +6697,7 @@ function validate$h(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
6647
6697
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
6648
6698
|
const obj_criteria_item = obj_criteria[i];
|
|
6649
6699
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
6650
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
6700
|
+
const referencepath_criteria_itemValidationError = validate$g(obj_criteria_item, path_criteria_item);
|
|
6651
6701
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
6652
6702
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaOutputRepresentation (at "' + path_criteria_item + '")\n';
|
|
6653
6703
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6727,20 +6777,20 @@ function validate$h(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
6727
6777
|
return v_error === undefined ? null : v_error;
|
|
6728
6778
|
}
|
|
6729
6779
|
const RepresentationType$9 = 'SemanticRelationshipOutputRepresentation';
|
|
6730
|
-
function keyBuilder$
|
|
6780
|
+
function keyBuilder$m(luvio, config) {
|
|
6731
6781
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
|
|
6732
6782
|
}
|
|
6733
6783
|
function keyBuilderFromType$6(luvio, object) {
|
|
6734
6784
|
const keyParams = {
|
|
6735
6785
|
name: object.id
|
|
6736
6786
|
};
|
|
6737
|
-
return keyBuilder$
|
|
6787
|
+
return keyBuilder$m(luvio, keyParams);
|
|
6738
6788
|
}
|
|
6739
6789
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
6740
6790
|
return input;
|
|
6741
6791
|
}
|
|
6742
|
-
const select$
|
|
6743
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
6792
|
+
const select$k = function SemanticRelationshipOutputRepresentationSelect() {
|
|
6793
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$l();
|
|
6744
6794
|
return {
|
|
6745
6795
|
kind: 'Fragment',
|
|
6746
6796
|
version: VERSION$9,
|
|
@@ -7031,7 +7081,7 @@ function equals$9(existing, incoming) {
|
|
|
7031
7081
|
}
|
|
7032
7082
|
const ingest$9 = function SemanticRelationshipOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7033
7083
|
if (process.env.NODE_ENV !== 'production') {
|
|
7034
|
-
const validateError = validate$
|
|
7084
|
+
const validateError = validate$f(input);
|
|
7035
7085
|
if (validateError !== null) {
|
|
7036
7086
|
throw validateError;
|
|
7037
7087
|
}
|
|
@@ -7052,7 +7102,7 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7052
7102
|
}
|
|
7053
7103
|
|
|
7054
7104
|
const VERSION$8 = "eaf9b57a92e764fb2b5c27b6e031cfe1";
|
|
7055
|
-
function validate$
|
|
7105
|
+
function validate$e(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
7056
7106
|
const v_error = (() => {
|
|
7057
7107
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7058
7108
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7102,7 +7152,7 @@ function validate$g(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7102
7152
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
7103
7153
|
const obj_fields_item = obj_fields[i];
|
|
7104
7154
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
7105
|
-
const referencepath_fields_itemValidationError = validate
|
|
7155
|
+
const referencepath_fields_itemValidationError = validate$Z(obj_fields_item, path_fields_item);
|
|
7106
7156
|
if (referencepath_fields_itemValidationError !== null) {
|
|
7107
7157
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_fields_item + '")\n';
|
|
7108
7158
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7146,7 +7196,7 @@ function validate$g(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7146
7196
|
if (obj.semanticDimension !== undefined) {
|
|
7147
7197
|
const obj_semanticDimension = obj.semanticDimension;
|
|
7148
7198
|
const path_semanticDimension = path + '.semanticDimension';
|
|
7149
|
-
const referencepath_semanticDimensionValidationError = validate$
|
|
7199
|
+
const referencepath_semanticDimensionValidationError = validate$o(obj_semanticDimension, path_semanticDimension);
|
|
7150
7200
|
if (referencepath_semanticDimensionValidationError !== null) {
|
|
7151
7201
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimension + '")\n';
|
|
7152
7202
|
message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7156,7 +7206,7 @@ function validate$g(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7156
7206
|
if (obj.semanticMeasurement !== undefined) {
|
|
7157
7207
|
const obj_semanticMeasurement = obj.semanticMeasurement;
|
|
7158
7208
|
const path_semanticMeasurement = path + '.semanticMeasurement';
|
|
7159
|
-
const referencepath_semanticMeasurementValidationError = validate$
|
|
7209
|
+
const referencepath_semanticMeasurementValidationError = validate$n(obj_semanticMeasurement, path_semanticMeasurement);
|
|
7160
7210
|
if (referencepath_semanticMeasurementValidationError !== null) {
|
|
7161
7211
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurement + '")\n';
|
|
7162
7212
|
message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7167,19 +7217,19 @@ function validate$g(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7167
7217
|
return v_error === undefined ? null : v_error;
|
|
7168
7218
|
}
|
|
7169
7219
|
const RepresentationType$8 = 'SemanticMappedFieldOutputRepresentation';
|
|
7170
|
-
function keyBuilder$
|
|
7220
|
+
function keyBuilder$l(luvio, config) {
|
|
7171
7221
|
return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
|
|
7172
7222
|
}
|
|
7173
7223
|
function keyBuilderFromType$5(luvio, object) {
|
|
7174
7224
|
const keyParams = {
|
|
7175
7225
|
name: object.id
|
|
7176
7226
|
};
|
|
7177
|
-
return keyBuilder$
|
|
7227
|
+
return keyBuilder$l(luvio, keyParams);
|
|
7178
7228
|
}
|
|
7179
7229
|
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
7180
7230
|
return input;
|
|
7181
7231
|
}
|
|
7182
|
-
const select$
|
|
7232
|
+
const select$j = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
7183
7233
|
return {
|
|
7184
7234
|
kind: 'Fragment',
|
|
7185
7235
|
version: VERSION$8,
|
|
@@ -7195,7 +7245,7 @@ function equals$8(existing, incoming) {
|
|
|
7195
7245
|
}
|
|
7196
7246
|
const ingest$8 = function SemanticMappedFieldOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7197
7247
|
if (process.env.NODE_ENV !== 'production') {
|
|
7198
|
-
const validateError = validate$
|
|
7248
|
+
const validateError = validate$e(input);
|
|
7199
7249
|
if (validateError !== null) {
|
|
7200
7250
|
throw validateError;
|
|
7201
7251
|
}
|
|
@@ -7216,7 +7266,7 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7216
7266
|
}
|
|
7217
7267
|
|
|
7218
7268
|
const VERSION$7 = "69fe23112140e9fae50135dcb15c24c2";
|
|
7219
|
-
function validate$
|
|
7269
|
+
function validate$d(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
7220
7270
|
const v_error = (() => {
|
|
7221
7271
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7222
7272
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7343,14 +7393,14 @@ function validate$f(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
7343
7393
|
return v_error === undefined ? null : v_error;
|
|
7344
7394
|
}
|
|
7345
7395
|
const RepresentationType$7 = 'SemanticUnionOutputRepresentation';
|
|
7346
|
-
function keyBuilder$
|
|
7396
|
+
function keyBuilder$k(luvio, config) {
|
|
7347
7397
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
|
|
7348
7398
|
}
|
|
7349
7399
|
function keyBuilderFromType$4(luvio, object) {
|
|
7350
7400
|
const keyParams = {
|
|
7351
7401
|
name: object.id
|
|
7352
7402
|
};
|
|
7353
|
-
return keyBuilder$
|
|
7403
|
+
return keyBuilder$k(luvio, keyParams);
|
|
7354
7404
|
}
|
|
7355
7405
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
7356
7406
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -7391,7 +7441,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
7391
7441
|
}
|
|
7392
7442
|
return input;
|
|
7393
7443
|
}
|
|
7394
|
-
const select$
|
|
7444
|
+
const select$i = function SemanticUnionOutputRepresentationSelect() {
|
|
7395
7445
|
return {
|
|
7396
7446
|
kind: 'Fragment',
|
|
7397
7447
|
version: VERSION$7,
|
|
@@ -7453,14 +7503,14 @@ const select$h = function SemanticUnionOutputRepresentationSelect() {
|
|
|
7453
7503
|
kind: 'Link',
|
|
7454
7504
|
plural: true,
|
|
7455
7505
|
required: false,
|
|
7456
|
-
fragment: select$
|
|
7506
|
+
fragment: select$r()
|
|
7457
7507
|
},
|
|
7458
7508
|
{
|
|
7459
7509
|
name: 'semanticMappedFields',
|
|
7460
7510
|
kind: 'Link',
|
|
7461
7511
|
plural: true,
|
|
7462
7512
|
required: false,
|
|
7463
|
-
fragment: select$
|
|
7513
|
+
fragment: select$j()
|
|
7464
7514
|
}
|
|
7465
7515
|
]
|
|
7466
7516
|
};
|
|
@@ -7617,7 +7667,7 @@ function equals$7(existing, incoming) {
|
|
|
7617
7667
|
}
|
|
7618
7668
|
const ingest$7 = function SemanticUnionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7619
7669
|
if (process.env.NODE_ENV !== 'production') {
|
|
7620
|
-
const validateError = validate$
|
|
7670
|
+
const validateError = validate$d(input);
|
|
7621
7671
|
if (validateError !== null) {
|
|
7622
7672
|
throw validateError;
|
|
7623
7673
|
}
|
|
@@ -7650,7 +7700,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7650
7700
|
}
|
|
7651
7701
|
|
|
7652
7702
|
const VERSION$6 = "f186bf0514421e7f42e284136d60ea6c";
|
|
7653
|
-
function validate$
|
|
7703
|
+
function validate$c(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
7654
7704
|
const v_error = (() => {
|
|
7655
7705
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7656
7706
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7714,7 +7764,7 @@ function validate$e(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7714
7764
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
7715
7765
|
const obj_filters_item = obj_filters[i];
|
|
7716
7766
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
7717
|
-
const referencepath_filters_itemValidationError = validate$
|
|
7767
|
+
const referencepath_filters_itemValidationError = validate$X(obj_filters_item, path_filters_item);
|
|
7718
7768
|
if (referencepath_filters_itemValidationError !== null) {
|
|
7719
7769
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
7720
7770
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7801,14 +7851,14 @@ function validate$e(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7801
7851
|
return v_error === undefined ? null : v_error;
|
|
7802
7852
|
}
|
|
7803
7853
|
const RepresentationType$6 = 'SemanticLogicalViewOutputRepresentation';
|
|
7804
|
-
function keyBuilder$
|
|
7854
|
+
function keyBuilder$j(luvio, config) {
|
|
7805
7855
|
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
7806
7856
|
}
|
|
7807
7857
|
function keyBuilderFromType$3(luvio, object) {
|
|
7808
7858
|
const keyParams = {
|
|
7809
7859
|
name: object.id
|
|
7810
7860
|
};
|
|
7811
|
-
return keyBuilder$
|
|
7861
|
+
return keyBuilder$j(luvio, keyParams);
|
|
7812
7862
|
}
|
|
7813
7863
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
7814
7864
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -7867,8 +7917,8 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7867
7917
|
}
|
|
7868
7918
|
return input;
|
|
7869
7919
|
}
|
|
7870
|
-
const select$
|
|
7871
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
7920
|
+
const select$h = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
7921
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$E();
|
|
7872
7922
|
return {
|
|
7873
7923
|
kind: 'Fragment',
|
|
7874
7924
|
version: VERSION$6,
|
|
@@ -7942,21 +7992,21 @@ const select$g = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
7942
7992
|
kind: 'Link',
|
|
7943
7993
|
plural: true,
|
|
7944
7994
|
required: false,
|
|
7945
|
-
fragment: select$
|
|
7995
|
+
fragment: select$r()
|
|
7946
7996
|
},
|
|
7947
7997
|
{
|
|
7948
7998
|
name: 'semanticRelationships',
|
|
7949
7999
|
kind: 'Link',
|
|
7950
8000
|
plural: true,
|
|
7951
8001
|
required: false,
|
|
7952
|
-
fragment: select$
|
|
8002
|
+
fragment: select$k()
|
|
7953
8003
|
},
|
|
7954
8004
|
{
|
|
7955
8005
|
name: 'semanticUnions',
|
|
7956
8006
|
kind: 'Link',
|
|
7957
8007
|
plural: true,
|
|
7958
8008
|
required: false,
|
|
7959
|
-
fragment: select$
|
|
8009
|
+
fragment: select$i()
|
|
7960
8010
|
},
|
|
7961
8011
|
{
|
|
7962
8012
|
name: 'semanticViewTypeEnum',
|
|
@@ -8180,7 +8230,7 @@ function equals$6(existing, incoming) {
|
|
|
8180
8230
|
}
|
|
8181
8231
|
const ingest$6 = function SemanticLogicalViewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8182
8232
|
if (process.env.NODE_ENV !== 'production') {
|
|
8183
|
-
const validateError = validate$
|
|
8233
|
+
const validateError = validate$c(input);
|
|
8184
8234
|
if (validateError !== null) {
|
|
8185
8235
|
throw validateError;
|
|
8186
8236
|
}
|
|
@@ -8219,7 +8269,7 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8219
8269
|
}
|
|
8220
8270
|
|
|
8221
8271
|
const VERSION$5 = "562f9618d0de907973cf252f01ea567d";
|
|
8222
|
-
function validate$
|
|
8272
|
+
function validate$b(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
8223
8273
|
const v_error = (() => {
|
|
8224
8274
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8225
8275
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8346,19 +8396,19 @@ function validate$d(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
8346
8396
|
return v_error === undefined ? null : v_error;
|
|
8347
8397
|
}
|
|
8348
8398
|
const RepresentationType$5 = 'SemanticParameterOutputRepresentation';
|
|
8349
|
-
function keyBuilder$
|
|
8399
|
+
function keyBuilder$i(luvio, config) {
|
|
8350
8400
|
return keyPrefix + '::' + RepresentationType$5 + ':' + config.name;
|
|
8351
8401
|
}
|
|
8352
8402
|
function keyBuilderFromType$2(luvio, object) {
|
|
8353
8403
|
const keyParams = {
|
|
8354
8404
|
name: object.id
|
|
8355
8405
|
};
|
|
8356
|
-
return keyBuilder$
|
|
8406
|
+
return keyBuilder$i(luvio, keyParams);
|
|
8357
8407
|
}
|
|
8358
8408
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
8359
8409
|
return input;
|
|
8360
8410
|
}
|
|
8361
|
-
const select$
|
|
8411
|
+
const select$g = function SemanticParameterOutputRepresentationSelect() {
|
|
8362
8412
|
return {
|
|
8363
8413
|
kind: 'Fragment',
|
|
8364
8414
|
version: VERSION$5,
|
|
@@ -8648,7 +8698,7 @@ function equals$5(existing, incoming) {
|
|
|
8648
8698
|
}
|
|
8649
8699
|
const ingest$5 = function SemanticParameterOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8650
8700
|
if (process.env.NODE_ENV !== 'production') {
|
|
8651
|
-
const validateError = validate$
|
|
8701
|
+
const validateError = validate$b(input);
|
|
8652
8702
|
if (validateError !== null) {
|
|
8653
8703
|
throw validateError;
|
|
8654
8704
|
}
|
|
@@ -8669,7 +8719,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8669
8719
|
}
|
|
8670
8720
|
|
|
8671
8721
|
const VERSION$4 = "5cda82e85d7322d459ba16b10b81ee96";
|
|
8672
|
-
function validate$
|
|
8722
|
+
function validate$a(obj, path = 'SemanticModelOutputRepresentation') {
|
|
8673
8723
|
const v_error = (() => {
|
|
8674
8724
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8675
8725
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8702,7 +8752,7 @@ function validate$c(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
8702
8752
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
8703
8753
|
const obj_baseModels_item = obj_baseModels[i];
|
|
8704
8754
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
8705
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
8755
|
+
const referencepath_baseModels_itemValidationError = validate$R(obj_baseModels_item, path_baseModels_item);
|
|
8706
8756
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
8707
8757
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
8708
8758
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8986,14 +9036,14 @@ function validate$c(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
8986
9036
|
return v_error === undefined ? null : v_error;
|
|
8987
9037
|
}
|
|
8988
9038
|
const RepresentationType$4 = 'SemanticModelOutputRepresentation';
|
|
8989
|
-
function keyBuilder$
|
|
9039
|
+
function keyBuilder$h(luvio, config) {
|
|
8990
9040
|
return keyPrefix + '::' + RepresentationType$4 + ':' + config.name;
|
|
8991
9041
|
}
|
|
8992
9042
|
function keyBuilderFromType$1(luvio, object) {
|
|
8993
9043
|
const keyParams = {
|
|
8994
9044
|
name: object.id
|
|
8995
9045
|
};
|
|
8996
|
-
return keyBuilder$
|
|
9046
|
+
return keyBuilder$h(luvio, keyParams);
|
|
8997
9047
|
}
|
|
8998
9048
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
8999
9049
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
@@ -9142,8 +9192,8 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9142
9192
|
}
|
|
9143
9193
|
return input;
|
|
9144
9194
|
}
|
|
9145
|
-
const select$
|
|
9146
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
9195
|
+
const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
9196
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$x();
|
|
9147
9197
|
return {
|
|
9148
9198
|
kind: 'Fragment',
|
|
9149
9199
|
version: VERSION$4,
|
|
@@ -9232,7 +9282,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9232
9282
|
kind: 'Link',
|
|
9233
9283
|
plural: true,
|
|
9234
9284
|
required: false,
|
|
9235
|
-
fragment: select$
|
|
9285
|
+
fragment: select$t()
|
|
9236
9286
|
},
|
|
9237
9287
|
{
|
|
9238
9288
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -9244,7 +9294,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9244
9294
|
kind: 'Link',
|
|
9245
9295
|
plural: true,
|
|
9246
9296
|
required: false,
|
|
9247
|
-
fragment: select$
|
|
9297
|
+
fragment: select$s()
|
|
9248
9298
|
},
|
|
9249
9299
|
{
|
|
9250
9300
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -9256,7 +9306,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9256
9306
|
kind: 'Link',
|
|
9257
9307
|
plural: true,
|
|
9258
9308
|
required: false,
|
|
9259
|
-
fragment: select$
|
|
9309
|
+
fragment: select$r()
|
|
9260
9310
|
},
|
|
9261
9311
|
{
|
|
9262
9312
|
name: 'semanticDataObjectsUrl',
|
|
@@ -9268,7 +9318,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9268
9318
|
kind: 'Link',
|
|
9269
9319
|
plural: true,
|
|
9270
9320
|
required: false,
|
|
9271
|
-
fragment: select$
|
|
9321
|
+
fragment: select$m()
|
|
9272
9322
|
},
|
|
9273
9323
|
{
|
|
9274
9324
|
name: 'semanticGroupingsUrl',
|
|
@@ -9280,21 +9330,21 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9280
9330
|
kind: 'Link',
|
|
9281
9331
|
plural: true,
|
|
9282
9332
|
required: false,
|
|
9283
|
-
fragment: select$
|
|
9333
|
+
fragment: select$h()
|
|
9284
9334
|
},
|
|
9285
9335
|
{
|
|
9286
9336
|
name: 'semanticMetrics',
|
|
9287
9337
|
kind: 'Link',
|
|
9288
9338
|
plural: true,
|
|
9289
9339
|
required: false,
|
|
9290
|
-
fragment: select$
|
|
9340
|
+
fragment: select$A()
|
|
9291
9341
|
},
|
|
9292
9342
|
{
|
|
9293
9343
|
name: 'semanticParameters',
|
|
9294
9344
|
kind: 'Link',
|
|
9295
9345
|
plural: true,
|
|
9296
9346
|
required: false,
|
|
9297
|
-
fragment: select$
|
|
9347
|
+
fragment: select$g()
|
|
9298
9348
|
},
|
|
9299
9349
|
{
|
|
9300
9350
|
name: 'semanticParametersUrl',
|
|
@@ -9306,7 +9356,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9306
9356
|
kind: 'Link',
|
|
9307
9357
|
plural: true,
|
|
9308
9358
|
required: false,
|
|
9309
|
-
fragment: select$
|
|
9359
|
+
fragment: select$k()
|
|
9310
9360
|
},
|
|
9311
9361
|
{
|
|
9312
9362
|
name: 'semanticRelationshipsUrl',
|
|
@@ -9757,7 +9807,7 @@ function equals$4(existing, incoming) {
|
|
|
9757
9807
|
}
|
|
9758
9808
|
const ingest$4 = function SemanticModelOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9759
9809
|
if (process.env.NODE_ENV !== 'production') {
|
|
9760
|
-
const validateError = validate$
|
|
9810
|
+
const validateError = validate$a(input);
|
|
9761
9811
|
if (validateError !== null) {
|
|
9762
9812
|
throw validateError;
|
|
9763
9813
|
}
|
|
@@ -9825,19 +9875,19 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9825
9875
|
}
|
|
9826
9876
|
}
|
|
9827
9877
|
|
|
9828
|
-
function select$
|
|
9829
|
-
return select$
|
|
9878
|
+
function select$e(luvio, params) {
|
|
9879
|
+
return select$f();
|
|
9830
9880
|
}
|
|
9831
|
-
function getResponseCacheKeys$
|
|
9881
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
9832
9882
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
9833
9883
|
}
|
|
9834
|
-
function ingestSuccess$
|
|
9884
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
9835
9885
|
const { body } = response;
|
|
9836
9886
|
const key = keyBuilderFromType$1(luvio, body);
|
|
9837
9887
|
luvio.storeIngest(key, ingest$4, body);
|
|
9838
9888
|
const snapshot = luvio.storeLookup({
|
|
9839
9889
|
recordId: key,
|
|
9840
|
-
node: select$
|
|
9890
|
+
node: select$e(),
|
|
9841
9891
|
variables: {},
|
|
9842
9892
|
});
|
|
9843
9893
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9848,7 +9898,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
9848
9898
|
deepFreeze(snapshot.data);
|
|
9849
9899
|
return snapshot;
|
|
9850
9900
|
}
|
|
9851
|
-
function createResourceRequest$
|
|
9901
|
+
function createResourceRequest$c(config) {
|
|
9852
9902
|
const headers = {};
|
|
9853
9903
|
return {
|
|
9854
9904
|
baseUri: '/services/data/v63.0',
|
|
@@ -9862,7 +9912,7 @@ function createResourceRequest$a(config) {
|
|
|
9862
9912
|
};
|
|
9863
9913
|
}
|
|
9864
9914
|
|
|
9865
|
-
const adapterName$
|
|
9915
|
+
const adapterName$c = 'createSemanticModel';
|
|
9866
9916
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
9867
9917
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
9868
9918
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9883,17 +9933,17 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
9883
9933
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9884
9934
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9885
9935
|
];
|
|
9886
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9887
|
-
const createResourceParams$
|
|
9888
|
-
function typeCheckConfig$
|
|
9936
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createSemanticModel_ConfigPropertyMetadata);
|
|
9937
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$f(createSemanticModel_ConfigPropertyMetadata);
|
|
9938
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
9889
9939
|
const config = {};
|
|
9890
|
-
typeCheckConfig$
|
|
9940
|
+
typeCheckConfig$f(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
9891
9941
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
9892
9942
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
9893
9943
|
const untrustedConfig_baseModels_array = [];
|
|
9894
9944
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
9895
9945
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
9896
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate$
|
|
9946
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$O(untrustedConfig_baseModels_item);
|
|
9897
9947
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
9898
9948
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
9899
9949
|
}
|
|
@@ -9905,7 +9955,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9905
9955
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
9906
9956
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
9907
9957
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
9908
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
9958
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$M(untrustedConfig_semanticCalculatedDimensions_item);
|
|
9909
9959
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
9910
9960
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
9911
9961
|
}
|
|
@@ -9917,7 +9967,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9917
9967
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
9918
9968
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
9919
9969
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
9920
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
9970
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$L(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
9921
9971
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
9922
9972
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
9923
9973
|
}
|
|
@@ -9929,7 +9979,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9929
9979
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
9930
9980
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
9931
9981
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
9932
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
9982
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$I(untrustedConfig_semanticDataObjects_item);
|
|
9933
9983
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
9934
9984
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
9935
9985
|
}
|
|
@@ -9941,7 +9991,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9941
9991
|
const untrustedConfig_semanticGroupings_array = [];
|
|
9942
9992
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
9943
9993
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
9944
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
9994
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$B(untrustedConfig_semanticGroupings_item);
|
|
9945
9995
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
9946
9996
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
9947
9997
|
}
|
|
@@ -9953,7 +10003,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9953
10003
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
9954
10004
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
9955
10005
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
9956
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
10006
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$w(untrustedConfig_semanticLogicalViews_item);
|
|
9957
10007
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
9958
10008
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
9959
10009
|
}
|
|
@@ -9965,7 +10015,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9965
10015
|
const untrustedConfig_semanticMetrics_array = [];
|
|
9966
10016
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
9967
10017
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
9968
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
10018
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$s(untrustedConfig_semanticMetrics_item);
|
|
9969
10019
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
9970
10020
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
9971
10021
|
}
|
|
@@ -9977,7 +10027,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9977
10027
|
const untrustedConfig_semanticParameters_array = [];
|
|
9978
10028
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
9979
10029
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
9980
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
10030
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$r(untrustedConfig_semanticParameters_item);
|
|
9981
10031
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
9982
10032
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
9983
10033
|
}
|
|
@@ -9989,7 +10039,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9989
10039
|
const untrustedConfig_semanticRelationships_array = [];
|
|
9990
10040
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
9991
10041
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
9992
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
10042
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$z(untrustedConfig_semanticRelationships_item);
|
|
9993
10043
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
9994
10044
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
9995
10045
|
}
|
|
@@ -9998,30 +10048,30 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9998
10048
|
}
|
|
9999
10049
|
return config;
|
|
10000
10050
|
}
|
|
10001
|
-
function validateAdapterConfig$
|
|
10051
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
10002
10052
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10003
10053
|
return null;
|
|
10004
10054
|
}
|
|
10005
10055
|
if (process.env.NODE_ENV !== 'production') {
|
|
10006
10056
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10007
10057
|
}
|
|
10008
|
-
const config = typeCheckConfig$
|
|
10058
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
10009
10059
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10010
10060
|
return null;
|
|
10011
10061
|
}
|
|
10012
10062
|
return config;
|
|
10013
10063
|
}
|
|
10014
|
-
function buildNetworkSnapshot$
|
|
10015
|
-
const resourceParams = createResourceParams$
|
|
10016
|
-
const request = createResourceRequest$
|
|
10064
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
10065
|
+
const resourceParams = createResourceParams$c(config);
|
|
10066
|
+
const request = createResourceRequest$c(resourceParams);
|
|
10017
10067
|
return luvio.dispatchResourceRequest(request, options)
|
|
10018
10068
|
.then((response) => {
|
|
10019
10069
|
return luvio.handleSuccessResponse(() => {
|
|
10020
|
-
const snapshot = ingestSuccess$
|
|
10070
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
10021
10071
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10022
10072
|
}, () => {
|
|
10023
10073
|
const cache = new StoreKeyMap();
|
|
10024
|
-
getResponseCacheKeys$
|
|
10074
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
10025
10075
|
return cache;
|
|
10026
10076
|
});
|
|
10027
10077
|
}, (response) => {
|
|
@@ -10031,33 +10081,33 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
10031
10081
|
}
|
|
10032
10082
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
10033
10083
|
return function createSemanticModel(untrustedConfig) {
|
|
10034
|
-
const config = validateAdapterConfig$
|
|
10084
|
+
const config = validateAdapterConfig$c(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
10035
10085
|
// Invalid or incomplete config
|
|
10036
10086
|
if (config === null) {
|
|
10037
10087
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
10038
10088
|
}
|
|
10039
|
-
return buildNetworkSnapshot$
|
|
10089
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
10040
10090
|
};
|
|
10041
10091
|
};
|
|
10042
10092
|
|
|
10043
|
-
function select$
|
|
10044
|
-
return select$
|
|
10093
|
+
function select$d(luvio, params) {
|
|
10094
|
+
return select$f();
|
|
10045
10095
|
}
|
|
10046
|
-
function keyBuilder$
|
|
10047
|
-
return keyBuilder$
|
|
10096
|
+
function keyBuilder$g(luvio, params) {
|
|
10097
|
+
return keyBuilder$h(luvio, {
|
|
10048
10098
|
name: params.urlParams.modelApiNameOrId
|
|
10049
10099
|
});
|
|
10050
10100
|
}
|
|
10051
|
-
function getResponseCacheKeys$
|
|
10101
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
10052
10102
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
10053
10103
|
}
|
|
10054
|
-
function ingestSuccess$
|
|
10104
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
10055
10105
|
const { body } = response;
|
|
10056
|
-
const key = keyBuilder$
|
|
10106
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
10057
10107
|
luvio.storeIngest(key, ingest$4, body);
|
|
10058
10108
|
const snapshot = luvio.storeLookup({
|
|
10059
10109
|
recordId: key,
|
|
10060
|
-
node: select$
|
|
10110
|
+
node: select$d(),
|
|
10061
10111
|
variables: {},
|
|
10062
10112
|
}, snapshotRefresh);
|
|
10063
10113
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10069,12 +10119,12 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
10069
10119
|
return snapshot;
|
|
10070
10120
|
}
|
|
10071
10121
|
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
10072
|
-
const key = keyBuilder$
|
|
10122
|
+
const key = keyBuilder$g(luvio, params);
|
|
10073
10123
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10074
10124
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10075
10125
|
return errorSnapshot;
|
|
10076
10126
|
}
|
|
10077
|
-
function createResourceRequest$
|
|
10127
|
+
function createResourceRequest$b(config) {
|
|
10078
10128
|
const headers = {};
|
|
10079
10129
|
return {
|
|
10080
10130
|
baseUri: '/services/data/v63.0',
|
|
@@ -10088,63 +10138,63 @@ function createResourceRequest$9(config) {
|
|
|
10088
10138
|
};
|
|
10089
10139
|
}
|
|
10090
10140
|
|
|
10091
|
-
const adapterName$
|
|
10141
|
+
const adapterName$b = 'getSemanticModel';
|
|
10092
10142
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
10093
10143
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10094
10144
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10095
10145
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10096
10146
|
generateParamConfigMetadata('includeTableKeys', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10097
10147
|
];
|
|
10098
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10099
|
-
const createResourceParams$
|
|
10100
|
-
function keyBuilder$
|
|
10101
|
-
const resourceParams = createResourceParams$
|
|
10102
|
-
return keyBuilder$
|
|
10148
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSemanticModel_ConfigPropertyMetadata);
|
|
10149
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$f(getSemanticModel_ConfigPropertyMetadata);
|
|
10150
|
+
function keyBuilder$f(luvio, config) {
|
|
10151
|
+
const resourceParams = createResourceParams$b(config);
|
|
10152
|
+
return keyBuilder$g(luvio, resourceParams);
|
|
10103
10153
|
}
|
|
10104
|
-
function typeCheckConfig$
|
|
10154
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
10105
10155
|
const config = {};
|
|
10106
|
-
typeCheckConfig$
|
|
10156
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
10107
10157
|
return config;
|
|
10108
10158
|
}
|
|
10109
|
-
function validateAdapterConfig$
|
|
10159
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
10110
10160
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10111
10161
|
return null;
|
|
10112
10162
|
}
|
|
10113
10163
|
if (process.env.NODE_ENV !== 'production') {
|
|
10114
10164
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10115
10165
|
}
|
|
10116
|
-
const config = typeCheckConfig$
|
|
10166
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
10117
10167
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10118
10168
|
return null;
|
|
10119
10169
|
}
|
|
10120
10170
|
return config;
|
|
10121
10171
|
}
|
|
10122
10172
|
function adapterFragment$6(luvio, config) {
|
|
10123
|
-
createResourceParams$
|
|
10124
|
-
return select$
|
|
10173
|
+
createResourceParams$b(config);
|
|
10174
|
+
return select$d();
|
|
10125
10175
|
}
|
|
10126
10176
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
10127
|
-
const snapshot = ingestSuccess$
|
|
10177
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
10128
10178
|
config,
|
|
10129
|
-
resolve: () => buildNetworkSnapshot$
|
|
10179
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
10130
10180
|
});
|
|
10131
10181
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10132
10182
|
}
|
|
10133
10183
|
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
10134
10184
|
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
10135
10185
|
config,
|
|
10136
|
-
resolve: () => buildNetworkSnapshot$
|
|
10186
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
10137
10187
|
});
|
|
10138
10188
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10139
10189
|
}
|
|
10140
|
-
function buildNetworkSnapshot$
|
|
10141
|
-
const resourceParams = createResourceParams$
|
|
10142
|
-
const request = createResourceRequest$
|
|
10190
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
10191
|
+
const resourceParams = createResourceParams$b(config);
|
|
10192
|
+
const request = createResourceRequest$b(resourceParams);
|
|
10143
10193
|
return luvio.dispatchResourceRequest(request, options)
|
|
10144
10194
|
.then((response) => {
|
|
10145
10195
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
10146
10196
|
const cache = new StoreKeyMap();
|
|
10147
|
-
getResponseCacheKeys$
|
|
10197
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
10148
10198
|
return cache;
|
|
10149
10199
|
});
|
|
10150
10200
|
}, (response) => {
|
|
@@ -10152,23 +10202,23 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
10152
10202
|
});
|
|
10153
10203
|
}
|
|
10154
10204
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
10155
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10205
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
10156
10206
|
}
|
|
10157
10207
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
10158
10208
|
const { luvio, config } = context;
|
|
10159
10209
|
const selector = {
|
|
10160
|
-
recordId: keyBuilder$
|
|
10210
|
+
recordId: keyBuilder$f(luvio, config),
|
|
10161
10211
|
node: adapterFragment$6(luvio, config),
|
|
10162
10212
|
variables: {},
|
|
10163
10213
|
};
|
|
10164
10214
|
const cacheSnapshot = storeLookup(selector, {
|
|
10165
10215
|
config,
|
|
10166
|
-
resolve: () => buildNetworkSnapshot$
|
|
10216
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
10167
10217
|
});
|
|
10168
10218
|
return cacheSnapshot;
|
|
10169
10219
|
}
|
|
10170
10220
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
10171
|
-
const config = validateAdapterConfig$
|
|
10221
|
+
const config = validateAdapterConfig$b(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
10172
10222
|
// Invalid or incomplete config
|
|
10173
10223
|
if (config === null) {
|
|
10174
10224
|
return null;
|
|
@@ -10177,19 +10227,19 @@ const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__ge
|
|
|
10177
10227
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
10178
10228
|
};
|
|
10179
10229
|
|
|
10180
|
-
function select$
|
|
10181
|
-
return select$
|
|
10230
|
+
function select$c(luvio, params) {
|
|
10231
|
+
return select$f();
|
|
10182
10232
|
}
|
|
10183
|
-
function getResponseCacheKeys$
|
|
10233
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
10184
10234
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
10185
10235
|
}
|
|
10186
|
-
function ingestSuccess$
|
|
10236
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
10187
10237
|
const { body } = response;
|
|
10188
10238
|
const key = keyBuilderFromType$1(luvio, body);
|
|
10189
10239
|
luvio.storeIngest(key, ingest$4, body);
|
|
10190
10240
|
const snapshot = luvio.storeLookup({
|
|
10191
10241
|
recordId: key,
|
|
10192
|
-
node: select$
|
|
10242
|
+
node: select$c(),
|
|
10193
10243
|
variables: {},
|
|
10194
10244
|
});
|
|
10195
10245
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10200,7 +10250,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
10200
10250
|
deepFreeze(snapshot.data);
|
|
10201
10251
|
return snapshot;
|
|
10202
10252
|
}
|
|
10203
|
-
function createResourceRequest$
|
|
10253
|
+
function createResourceRequest$a(config) {
|
|
10204
10254
|
const headers = {};
|
|
10205
10255
|
return {
|
|
10206
10256
|
baseUri: '/services/data/v63.0',
|
|
@@ -10214,7 +10264,7 @@ function createResourceRequest$8(config) {
|
|
|
10214
10264
|
};
|
|
10215
10265
|
}
|
|
10216
10266
|
|
|
10217
|
-
const adapterName$
|
|
10267
|
+
const adapterName$a = 'patchSemanticModel';
|
|
10218
10268
|
const patchSemanticModel_ConfigPropertyMetadata = [
|
|
10219
10269
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10220
10270
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -10236,17 +10286,17 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
10236
10286
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10237
10287
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10238
10288
|
];
|
|
10239
|
-
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10240
|
-
const createResourceParams$
|
|
10241
|
-
function typeCheckConfig$
|
|
10289
|
+
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, patchSemanticModel_ConfigPropertyMetadata);
|
|
10290
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$f(patchSemanticModel_ConfigPropertyMetadata);
|
|
10291
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
10242
10292
|
const config = {};
|
|
10243
|
-
typeCheckConfig$
|
|
10293
|
+
typeCheckConfig$f(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
10244
10294
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
10245
10295
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
10246
10296
|
const untrustedConfig_baseModels_array = [];
|
|
10247
10297
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
10248
10298
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
10249
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate$
|
|
10299
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$O(untrustedConfig_baseModels_item);
|
|
10250
10300
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
10251
10301
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
10252
10302
|
}
|
|
@@ -10258,7 +10308,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10258
10308
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
10259
10309
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
10260
10310
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
10261
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
10311
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$M(untrustedConfig_semanticCalculatedDimensions_item);
|
|
10262
10312
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
10263
10313
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
10264
10314
|
}
|
|
@@ -10270,7 +10320,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10270
10320
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
10271
10321
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
10272
10322
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
10273
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
10323
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$L(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
10274
10324
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
10275
10325
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
10276
10326
|
}
|
|
@@ -10282,7 +10332,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10282
10332
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
10283
10333
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
10284
10334
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
10285
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
10335
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$I(untrustedConfig_semanticDataObjects_item);
|
|
10286
10336
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
10287
10337
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
10288
10338
|
}
|
|
@@ -10294,7 +10344,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10294
10344
|
const untrustedConfig_semanticGroupings_array = [];
|
|
10295
10345
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
10296
10346
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
10297
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
10347
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$B(untrustedConfig_semanticGroupings_item);
|
|
10298
10348
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
10299
10349
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
10300
10350
|
}
|
|
@@ -10306,7 +10356,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10306
10356
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
10307
10357
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
10308
10358
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
10309
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
10359
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$w(untrustedConfig_semanticLogicalViews_item);
|
|
10310
10360
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
10311
10361
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
10312
10362
|
}
|
|
@@ -10318,7 +10368,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10318
10368
|
const untrustedConfig_semanticMetrics_array = [];
|
|
10319
10369
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
10320
10370
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
10321
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
10371
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$s(untrustedConfig_semanticMetrics_item);
|
|
10322
10372
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
10323
10373
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
10324
10374
|
}
|
|
@@ -10330,7 +10380,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10330
10380
|
const untrustedConfig_semanticParameters_array = [];
|
|
10331
10381
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
10332
10382
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
10333
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
10383
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$r(untrustedConfig_semanticParameters_item);
|
|
10334
10384
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
10335
10385
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
10336
10386
|
}
|
|
@@ -10342,7 +10392,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10342
10392
|
const untrustedConfig_semanticRelationships_array = [];
|
|
10343
10393
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
10344
10394
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
10345
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
10395
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$z(untrustedConfig_semanticRelationships_item);
|
|
10346
10396
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
10347
10397
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
10348
10398
|
}
|
|
@@ -10351,30 +10401,30 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10351
10401
|
}
|
|
10352
10402
|
return config;
|
|
10353
10403
|
}
|
|
10354
|
-
function validateAdapterConfig$
|
|
10404
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
10355
10405
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10356
10406
|
return null;
|
|
10357
10407
|
}
|
|
10358
10408
|
if (process.env.NODE_ENV !== 'production') {
|
|
10359
10409
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10360
10410
|
}
|
|
10361
|
-
const config = typeCheckConfig$
|
|
10411
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
10362
10412
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10363
10413
|
return null;
|
|
10364
10414
|
}
|
|
10365
10415
|
return config;
|
|
10366
10416
|
}
|
|
10367
|
-
function buildNetworkSnapshot$
|
|
10368
|
-
const resourceParams = createResourceParams$
|
|
10369
|
-
const request = createResourceRequest$
|
|
10417
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
10418
|
+
const resourceParams = createResourceParams$a(config);
|
|
10419
|
+
const request = createResourceRequest$a(resourceParams);
|
|
10370
10420
|
return luvio.dispatchResourceRequest(request, options)
|
|
10371
10421
|
.then((response) => {
|
|
10372
10422
|
return luvio.handleSuccessResponse(() => {
|
|
10373
|
-
const snapshot = ingestSuccess$
|
|
10423
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
10374
10424
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10375
10425
|
}, () => {
|
|
10376
10426
|
const cache = new StoreKeyMap();
|
|
10377
|
-
getResponseCacheKeys$
|
|
10427
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
10378
10428
|
return cache;
|
|
10379
10429
|
});
|
|
10380
10430
|
}, (response) => {
|
|
@@ -10384,81 +10434,86 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
10384
10434
|
}
|
|
10385
10435
|
const patchSemanticModelAdapterFactory = (luvio) => {
|
|
10386
10436
|
return function patchSemanticModel(untrustedConfig) {
|
|
10387
|
-
const config = validateAdapterConfig$
|
|
10437
|
+
const config = validateAdapterConfig$a(untrustedConfig, patchSemanticModel_ConfigPropertyNames);
|
|
10388
10438
|
// Invalid or incomplete config
|
|
10389
10439
|
if (config === null) {
|
|
10390
10440
|
throw new Error('Invalid config for "patchSemanticModel"');
|
|
10391
10441
|
}
|
|
10392
|
-
return buildNetworkSnapshot$
|
|
10442
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
10393
10443
|
};
|
|
10394
10444
|
};
|
|
10395
10445
|
|
|
10396
|
-
function validate$
|
|
10446
|
+
function validate$9(obj, path = 'SemanticGoalStatusConditionOutputRepresentation') {
|
|
10397
10447
|
const v_error = (() => {
|
|
10398
10448
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10399
10449
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10400
10450
|
}
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
|
|
10406
|
-
}
|
|
10451
|
+
const obj_color = obj.color;
|
|
10452
|
+
const path_color = path + '.color';
|
|
10453
|
+
if (typeof obj_color !== 'string') {
|
|
10454
|
+
return new TypeError('Expected "string" but received "' + typeof obj_color + '" (at "' + path_color + '")');
|
|
10407
10455
|
}
|
|
10408
|
-
if (obj.
|
|
10409
|
-
const
|
|
10410
|
-
const
|
|
10411
|
-
if (typeof
|
|
10412
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
10456
|
+
if (obj.currencyIsoCode !== undefined) {
|
|
10457
|
+
const obj_currencyIsoCode = obj.currencyIsoCode;
|
|
10458
|
+
const path_currencyIsoCode = path + '.currencyIsoCode';
|
|
10459
|
+
if (typeof obj_currencyIsoCode !== 'string') {
|
|
10460
|
+
return new TypeError('Expected "string" but received "' + typeof obj_currencyIsoCode + '" (at "' + path_currencyIsoCode + '")');
|
|
10413
10461
|
}
|
|
10414
10462
|
}
|
|
10415
|
-
|
|
10416
|
-
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
|
|
10421
|
-
|
|
10422
|
-
|
|
10463
|
+
const obj_operator = obj.operator;
|
|
10464
|
+
const path_operator = path + '.operator';
|
|
10465
|
+
if (typeof obj_operator !== 'string') {
|
|
10466
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
10467
|
+
}
|
|
10468
|
+
const obj_primary = obj.primary;
|
|
10469
|
+
const path_primary = path + '.primary';
|
|
10470
|
+
if (typeof obj_primary !== 'boolean') {
|
|
10471
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_primary + '" (at "' + path_primary + '")');
|
|
10472
|
+
}
|
|
10473
|
+
const obj_statusName = obj.statusName;
|
|
10474
|
+
const path_statusName = path + '.statusName';
|
|
10475
|
+
if (typeof obj_statusName !== 'string') {
|
|
10476
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusName + '" (at "' + path_statusName + '")');
|
|
10423
10477
|
}
|
|
10424
|
-
|
|
10425
|
-
|
|
10478
|
+
const obj_value = obj.value;
|
|
10479
|
+
const path_value = path + '.value';
|
|
10480
|
+
if (typeof obj_value !== 'string') {
|
|
10481
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
10426
10482
|
}
|
|
10427
10483
|
})();
|
|
10428
10484
|
return v_error === undefined ? null : v_error;
|
|
10429
10485
|
}
|
|
10430
10486
|
|
|
10431
|
-
function validate$
|
|
10487
|
+
function validate$8(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
10432
10488
|
const v_error = (() => {
|
|
10433
10489
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10434
10490
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10435
10491
|
}
|
|
10436
|
-
const
|
|
10437
|
-
const
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
return new TypeError(message);
|
|
10492
|
+
const obj_forecasting = obj.forecasting;
|
|
10493
|
+
const path_forecasting = path + '.forecasting';
|
|
10494
|
+
if (typeof obj_forecasting !== 'boolean') {
|
|
10495
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
10496
|
+
}
|
|
10497
|
+
const obj_statusConditions = obj.statusConditions;
|
|
10498
|
+
const path_statusConditions = path + '.statusConditions';
|
|
10499
|
+
if (!ArrayIsArray(obj_statusConditions)) {
|
|
10500
|
+
return new TypeError('Expected "array" but received "' + typeof obj_statusConditions + '" (at "' + path_statusConditions + '")');
|
|
10501
|
+
}
|
|
10502
|
+
for (let i = 0; i < obj_statusConditions.length; i++) {
|
|
10503
|
+
const obj_statusConditions_item = obj_statusConditions[i];
|
|
10504
|
+
const path_statusConditions_item = path_statusConditions + '[' + i + ']';
|
|
10505
|
+
const referencepath_statusConditions_itemValidationError = validate$9(obj_statusConditions_item, path_statusConditions_item);
|
|
10506
|
+
if (referencepath_statusConditions_itemValidationError !== null) {
|
|
10507
|
+
let message = 'Object doesn\'t match SemanticGoalStatusConditionOutputRepresentation (at "' + path_statusConditions_item + '")\n';
|
|
10508
|
+
message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10509
|
+
return new TypeError(message);
|
|
10510
|
+
}
|
|
10456
10511
|
}
|
|
10457
10512
|
})();
|
|
10458
10513
|
return v_error === undefined ? null : v_error;
|
|
10459
10514
|
}
|
|
10460
10515
|
|
|
10461
|
-
function validate$
|
|
10516
|
+
function validate$7(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
10462
10517
|
const v_error = (() => {
|
|
10463
10518
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10464
10519
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -10489,7 +10544,7 @@ function validate$8(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
|
10489
10544
|
}
|
|
10490
10545
|
|
|
10491
10546
|
const VERSION$3 = "34ece37408ddd80874097c87b829ae97";
|
|
10492
|
-
function validate$
|
|
10547
|
+
function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
10493
10548
|
const v_error = (() => {
|
|
10494
10549
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10495
10550
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -10546,7 +10601,7 @@ function validate$7(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10546
10601
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
10547
10602
|
const obj_filters_item = obj_filters[i];
|
|
10548
10603
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
10549
|
-
const referencepath_filters_itemValidationError = validate$
|
|
10604
|
+
const referencepath_filters_itemValidationError = validate$X(obj_filters_item, path_filters_item);
|
|
10550
10605
|
if (referencepath_filters_itemValidationError !== null) {
|
|
10551
10606
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
10552
10607
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10557,7 +10612,7 @@ function validate$7(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10557
10612
|
if (obj.goal !== undefined) {
|
|
10558
10613
|
const obj_goal = obj.goal;
|
|
10559
10614
|
const path_goal = path + '.goal';
|
|
10560
|
-
const referencepath_goalValidationError = validate$
|
|
10615
|
+
const referencepath_goalValidationError = validate$8(obj_goal, path_goal);
|
|
10561
10616
|
if (referencepath_goalValidationError !== null) {
|
|
10562
10617
|
let message = 'Object doesn\'t match SemanticMetricGoalOutputRepresentation (at "' + path_goal + '")\n';
|
|
10563
10618
|
message += referencepath_goalValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10600,7 +10655,7 @@ function validate$7(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10600
10655
|
if (obj.semanticMetric !== undefined) {
|
|
10601
10656
|
const obj_semanticMetric = obj.semanticMetric;
|
|
10602
10657
|
const path_semanticMetric = path + '.semanticMetric';
|
|
10603
|
-
const referencepath_semanticMetricValidationError = validate$
|
|
10658
|
+
const referencepath_semanticMetricValidationError = validate$T(obj_semanticMetric, path_semanticMetric);
|
|
10604
10659
|
if (referencepath_semanticMetricValidationError !== null) {
|
|
10605
10660
|
let message = 'Object doesn\'t match SemanticMetricOutputRepresentation (at "' + path_semanticMetric + '")\n';
|
|
10606
10661
|
message += referencepath_semanticMetricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10610,7 +10665,7 @@ function validate$7(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10610
10665
|
if (obj.timeRange !== undefined) {
|
|
10611
10666
|
const obj_timeRange = obj.timeRange;
|
|
10612
10667
|
const path_timeRange = path + '.timeRange';
|
|
10613
|
-
const referencepath_timeRangeValidationError = validate$
|
|
10668
|
+
const referencepath_timeRangeValidationError = validate$7(obj_timeRange, path_timeRange);
|
|
10614
10669
|
if (referencepath_timeRangeValidationError !== null) {
|
|
10615
10670
|
let message = 'Object doesn\'t match SemanticTimeRangeOutputRepresentation (at "' + path_timeRange + '")\n';
|
|
10616
10671
|
message += referencepath_timeRangeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10621,19 +10676,19 @@ function validate$7(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10621
10676
|
return v_error === undefined ? null : v_error;
|
|
10622
10677
|
}
|
|
10623
10678
|
const RepresentationType$3 = 'SemanticSubMetricOutputRepresentation';
|
|
10624
|
-
function keyBuilder$
|
|
10679
|
+
function keyBuilder$e(luvio, config) {
|
|
10625
10680
|
return keyPrefix + '::' + RepresentationType$3 + ':' + config.name;
|
|
10626
10681
|
}
|
|
10627
10682
|
function keyBuilderFromType(luvio, object) {
|
|
10628
10683
|
const keyParams = {
|
|
10629
10684
|
name: object.id
|
|
10630
10685
|
};
|
|
10631
|
-
return keyBuilder$
|
|
10686
|
+
return keyBuilder$e(luvio, keyParams);
|
|
10632
10687
|
}
|
|
10633
10688
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
10634
10689
|
return input;
|
|
10635
10690
|
}
|
|
10636
|
-
const select$
|
|
10691
|
+
const select$b = function SemanticSubMetricOutputRepresentationSelect() {
|
|
10637
10692
|
return {
|
|
10638
10693
|
kind: 'Fragment',
|
|
10639
10694
|
version: VERSION$3,
|
|
@@ -10649,7 +10704,7 @@ function equals$3(existing, incoming) {
|
|
|
10649
10704
|
}
|
|
10650
10705
|
const ingest$3 = function SemanticSubMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10651
10706
|
if (process.env.NODE_ENV !== 'production') {
|
|
10652
|
-
const validateError = validate$
|
|
10707
|
+
const validateError = validate$6(input);
|
|
10653
10708
|
if (validateError !== null) {
|
|
10654
10709
|
throw validateError;
|
|
10655
10710
|
}
|
|
@@ -10670,7 +10725,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10670
10725
|
}
|
|
10671
10726
|
|
|
10672
10727
|
const VERSION$2 = "2980e56b9b4f8b3773f2554f67834745";
|
|
10673
|
-
function validate$
|
|
10728
|
+
function validate$5(obj, path = 'SemanticSubMetricsByMetricOutputRepresentation') {
|
|
10674
10729
|
const v_error = (() => {
|
|
10675
10730
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10676
10731
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -10721,7 +10776,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
10721
10776
|
}
|
|
10722
10777
|
return input;
|
|
10723
10778
|
}
|
|
10724
|
-
const select$
|
|
10779
|
+
const select$a = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
|
|
10725
10780
|
return {
|
|
10726
10781
|
kind: 'Fragment',
|
|
10727
10782
|
version: VERSION$2,
|
|
@@ -10737,7 +10792,7 @@ const select$9 = function SemanticSubMetricsByMetricOutputRepresentationSelect()
|
|
|
10737
10792
|
kind: 'Link',
|
|
10738
10793
|
plural: true,
|
|
10739
10794
|
required: false,
|
|
10740
|
-
fragment: select$
|
|
10795
|
+
fragment: select$b()
|
|
10741
10796
|
}
|
|
10742
10797
|
]
|
|
10743
10798
|
};
|
|
@@ -10778,7 +10833,7 @@ function equals$2(existing, incoming) {
|
|
|
10778
10833
|
}
|
|
10779
10834
|
const ingest$2 = function SemanticSubMetricsByMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10780
10835
|
if (process.env.NODE_ENV !== 'production') {
|
|
10781
|
-
const validateError = validate$
|
|
10836
|
+
const validateError = validate$5(input);
|
|
10782
10837
|
if (validateError !== null) {
|
|
10783
10838
|
throw validateError;
|
|
10784
10839
|
}
|
|
@@ -10805,7 +10860,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10805
10860
|
}
|
|
10806
10861
|
|
|
10807
10862
|
const VERSION$1 = "6fbd75e1a154b08c14ba6560c06488db";
|
|
10808
|
-
function validate$
|
|
10863
|
+
function validate$4(obj, path = 'SemanticSubMetricsByMetricCollectionOutputRepresentation') {
|
|
10809
10864
|
const v_error = (() => {
|
|
10810
10865
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10811
10866
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -10849,7 +10904,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
10849
10904
|
}
|
|
10850
10905
|
return input;
|
|
10851
10906
|
}
|
|
10852
|
-
const select$
|
|
10907
|
+
const select$9 = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
|
|
10853
10908
|
return {
|
|
10854
10909
|
kind: 'Fragment',
|
|
10855
10910
|
version: VERSION$1,
|
|
@@ -10860,7 +10915,7 @@ const select$8 = function SemanticSubMetricsByMetricCollectionOutputRepresentati
|
|
|
10860
10915
|
kind: 'Link',
|
|
10861
10916
|
plural: true,
|
|
10862
10917
|
required: false,
|
|
10863
|
-
fragment: select$
|
|
10918
|
+
fragment: select$a()
|
|
10864
10919
|
}
|
|
10865
10920
|
]
|
|
10866
10921
|
};
|
|
@@ -10888,7 +10943,7 @@ function equals$1(existing, incoming) {
|
|
|
10888
10943
|
}
|
|
10889
10944
|
const ingest$1 = function SemanticSubMetricsByMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10890
10945
|
if (process.env.NODE_ENV !== 'production') {
|
|
10891
|
-
const validateError = validate$
|
|
10946
|
+
const validateError = validate$4(input);
|
|
10892
10947
|
if (validateError !== null) {
|
|
10893
10948
|
throw validateError;
|
|
10894
10949
|
}
|
|
@@ -10914,22 +10969,22 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10914
10969
|
}
|
|
10915
10970
|
}
|
|
10916
10971
|
|
|
10917
|
-
function select$
|
|
10918
|
-
return select$
|
|
10972
|
+
function select$8(luvio, params) {
|
|
10973
|
+
return select$9();
|
|
10919
10974
|
}
|
|
10920
|
-
function keyBuilder$
|
|
10975
|
+
function keyBuilder$d(luvio, params) {
|
|
10921
10976
|
return keyPrefix + '::SemanticSubMetricsByMetricCollectionOutputRepresentation:(' + 'metricApiNames:' + params.urlParams.metricApiNames + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10922
10977
|
}
|
|
10923
|
-
function getResponseCacheKeys$
|
|
10924
|
-
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
10978
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
10979
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
10925
10980
|
}
|
|
10926
|
-
function ingestSuccess$
|
|
10981
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
10927
10982
|
const { body } = response;
|
|
10928
|
-
const key = keyBuilder$
|
|
10983
|
+
const key = keyBuilder$d(luvio, resourceParams);
|
|
10929
10984
|
luvio.storeIngest(key, ingest$1, body);
|
|
10930
10985
|
const snapshot = luvio.storeLookup({
|
|
10931
10986
|
recordId: key,
|
|
10932
|
-
node: select$
|
|
10987
|
+
node: select$8(),
|
|
10933
10988
|
variables: {},
|
|
10934
10989
|
}, snapshotRefresh);
|
|
10935
10990
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10941,12 +10996,12 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
10941
10996
|
return snapshot;
|
|
10942
10997
|
}
|
|
10943
10998
|
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
10944
|
-
const key = keyBuilder$
|
|
10999
|
+
const key = keyBuilder$d(luvio, params);
|
|
10945
11000
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10946
11001
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10947
11002
|
return errorSnapshot;
|
|
10948
11003
|
}
|
|
10949
|
-
function createResourceRequest$
|
|
11004
|
+
function createResourceRequest$9(config) {
|
|
10950
11005
|
const headers = {};
|
|
10951
11006
|
return {
|
|
10952
11007
|
baseUri: '/services/data/v63.0',
|
|
@@ -10960,61 +11015,61 @@ function createResourceRequest$7(config) {
|
|
|
10960
11015
|
};
|
|
10961
11016
|
}
|
|
10962
11017
|
|
|
10963
|
-
const adapterName$
|
|
11018
|
+
const adapterName$9 = 'getSemanticMetricsToSubMetrics';
|
|
10964
11019
|
const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
10965
11020
|
generateParamConfigMetadata('metricApiNames', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10966
11021
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10967
11022
|
];
|
|
10968
|
-
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10969
|
-
const createResourceParams$
|
|
10970
|
-
function keyBuilder$
|
|
10971
|
-
const resourceParams = createResourceParams$
|
|
10972
|
-
return keyBuilder$
|
|
11023
|
+
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11024
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$f(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11025
|
+
function keyBuilder$c(luvio, config) {
|
|
11026
|
+
const resourceParams = createResourceParams$9(config);
|
|
11027
|
+
return keyBuilder$d(luvio, resourceParams);
|
|
10973
11028
|
}
|
|
10974
|
-
function typeCheckConfig$
|
|
11029
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
10975
11030
|
const config = {};
|
|
10976
|
-
typeCheckConfig$
|
|
11031
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10977
11032
|
return config;
|
|
10978
11033
|
}
|
|
10979
|
-
function validateAdapterConfig$
|
|
11034
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
10980
11035
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10981
11036
|
return null;
|
|
10982
11037
|
}
|
|
10983
11038
|
if (process.env.NODE_ENV !== 'production') {
|
|
10984
11039
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10985
11040
|
}
|
|
10986
|
-
const config = typeCheckConfig$
|
|
11041
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
10987
11042
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10988
11043
|
return null;
|
|
10989
11044
|
}
|
|
10990
11045
|
return config;
|
|
10991
11046
|
}
|
|
10992
11047
|
function adapterFragment$5(luvio, config) {
|
|
10993
|
-
createResourceParams$
|
|
10994
|
-
return select$
|
|
11048
|
+
createResourceParams$9(config);
|
|
11049
|
+
return select$8();
|
|
10995
11050
|
}
|
|
10996
11051
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
10997
|
-
const snapshot = ingestSuccess$
|
|
11052
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
10998
11053
|
config,
|
|
10999
|
-
resolve: () => buildNetworkSnapshot$
|
|
11054
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
11000
11055
|
});
|
|
11001
11056
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11002
11057
|
}
|
|
11003
11058
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
11004
11059
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
11005
11060
|
config,
|
|
11006
|
-
resolve: () => buildNetworkSnapshot$
|
|
11061
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
11007
11062
|
});
|
|
11008
11063
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11009
11064
|
}
|
|
11010
|
-
function buildNetworkSnapshot$
|
|
11011
|
-
const resourceParams = createResourceParams$
|
|
11012
|
-
const request = createResourceRequest$
|
|
11065
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
11066
|
+
const resourceParams = createResourceParams$9(config);
|
|
11067
|
+
const request = createResourceRequest$9(resourceParams);
|
|
11013
11068
|
return luvio.dispatchResourceRequest(request, options)
|
|
11014
11069
|
.then((response) => {
|
|
11015
11070
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
11016
11071
|
const cache = new StoreKeyMap();
|
|
11017
|
-
getResponseCacheKeys$
|
|
11072
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
11018
11073
|
return cache;
|
|
11019
11074
|
});
|
|
11020
11075
|
}, (response) => {
|
|
@@ -11022,23 +11077,23 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
11022
11077
|
});
|
|
11023
11078
|
}
|
|
11024
11079
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
11025
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11080
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
11026
11081
|
}
|
|
11027
11082
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
11028
11083
|
const { luvio, config } = context;
|
|
11029
11084
|
const selector = {
|
|
11030
|
-
recordId: keyBuilder$
|
|
11085
|
+
recordId: keyBuilder$c(luvio, config),
|
|
11031
11086
|
node: adapterFragment$5(luvio, config),
|
|
11032
11087
|
variables: {},
|
|
11033
11088
|
};
|
|
11034
11089
|
const cacheSnapshot = storeLookup(selector, {
|
|
11035
11090
|
config,
|
|
11036
|
-
resolve: () => buildNetworkSnapshot$
|
|
11091
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
11037
11092
|
});
|
|
11038
11093
|
return cacheSnapshot;
|
|
11039
11094
|
}
|
|
11040
11095
|
const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsToSubMetrics(untrustedConfig, requestContext) {
|
|
11041
|
-
const config = validateAdapterConfig$
|
|
11096
|
+
const config = validateAdapterConfig$9(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
|
|
11042
11097
|
// Invalid or incomplete config
|
|
11043
11098
|
if (config === null) {
|
|
11044
11099
|
return null;
|
|
@@ -11047,22 +11102,22 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
11047
11102
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
11048
11103
|
};
|
|
11049
11104
|
|
|
11050
|
-
function select$
|
|
11051
|
-
return select$
|
|
11105
|
+
function select$7(luvio, params) {
|
|
11106
|
+
return select$z();
|
|
11052
11107
|
}
|
|
11053
|
-
function keyBuilder$
|
|
11108
|
+
function keyBuilder$b(luvio, params) {
|
|
11054
11109
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11055
11110
|
}
|
|
11056
|
-
function getResponseCacheKeys$
|
|
11057
|
-
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$
|
|
11111
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
11112
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
11058
11113
|
}
|
|
11059
|
-
function ingestSuccess$
|
|
11114
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
11060
11115
|
const { body } = response;
|
|
11061
|
-
const key = keyBuilder$
|
|
11116
|
+
const key = keyBuilder$b(luvio, resourceParams);
|
|
11062
11117
|
luvio.storeIngest(key, ingest$f, body);
|
|
11063
11118
|
const snapshot = luvio.storeLookup({
|
|
11064
11119
|
recordId: key,
|
|
11065
|
-
node: select$
|
|
11120
|
+
node: select$7(),
|
|
11066
11121
|
variables: {},
|
|
11067
11122
|
}, snapshotRefresh);
|
|
11068
11123
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11074,12 +11129,12 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11074
11129
|
return snapshot;
|
|
11075
11130
|
}
|
|
11076
11131
|
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
11077
|
-
const key = keyBuilder$
|
|
11132
|
+
const key = keyBuilder$b(luvio, params);
|
|
11078
11133
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11079
11134
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11080
11135
|
return errorSnapshot;
|
|
11081
11136
|
}
|
|
11082
|
-
function createResourceRequest$
|
|
11137
|
+
function createResourceRequest$8(config) {
|
|
11083
11138
|
const headers = {};
|
|
11084
11139
|
return {
|
|
11085
11140
|
baseUri: '/services/data/v63.0',
|
|
@@ -11093,60 +11148,60 @@ function createResourceRequest$6(config) {
|
|
|
11093
11148
|
};
|
|
11094
11149
|
}
|
|
11095
11150
|
|
|
11096
|
-
const adapterName$
|
|
11151
|
+
const adapterName$8 = 'getSemanticMetrics';
|
|
11097
11152
|
const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
11098
11153
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11099
11154
|
];
|
|
11100
|
-
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11101
|
-
const createResourceParams$
|
|
11102
|
-
function keyBuilder$
|
|
11103
|
-
const resourceParams = createResourceParams$
|
|
11104
|
-
return keyBuilder$
|
|
11155
|
+
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11156
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$f(getSemanticMetrics_ConfigPropertyMetadata);
|
|
11157
|
+
function keyBuilder$a(luvio, config) {
|
|
11158
|
+
const resourceParams = createResourceParams$8(config);
|
|
11159
|
+
return keyBuilder$b(luvio, resourceParams);
|
|
11105
11160
|
}
|
|
11106
|
-
function typeCheckConfig$
|
|
11161
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
11107
11162
|
const config = {};
|
|
11108
|
-
typeCheckConfig$
|
|
11163
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11109
11164
|
return config;
|
|
11110
11165
|
}
|
|
11111
|
-
function validateAdapterConfig$
|
|
11166
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
11112
11167
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11113
11168
|
return null;
|
|
11114
11169
|
}
|
|
11115
11170
|
if (process.env.NODE_ENV !== 'production') {
|
|
11116
11171
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11117
11172
|
}
|
|
11118
|
-
const config = typeCheckConfig$
|
|
11173
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
11119
11174
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11120
11175
|
return null;
|
|
11121
11176
|
}
|
|
11122
11177
|
return config;
|
|
11123
11178
|
}
|
|
11124
11179
|
function adapterFragment$4(luvio, config) {
|
|
11125
|
-
createResourceParams$
|
|
11126
|
-
return select$
|
|
11180
|
+
createResourceParams$8(config);
|
|
11181
|
+
return select$7();
|
|
11127
11182
|
}
|
|
11128
11183
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
11129
|
-
const snapshot = ingestSuccess$
|
|
11184
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
11130
11185
|
config,
|
|
11131
|
-
resolve: () => buildNetworkSnapshot$
|
|
11186
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11132
11187
|
});
|
|
11133
11188
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11134
11189
|
}
|
|
11135
11190
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
11136
11191
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
11137
11192
|
config,
|
|
11138
|
-
resolve: () => buildNetworkSnapshot$
|
|
11193
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11139
11194
|
});
|
|
11140
11195
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11141
11196
|
}
|
|
11142
|
-
function buildNetworkSnapshot$
|
|
11143
|
-
const resourceParams = createResourceParams$
|
|
11144
|
-
const request = createResourceRequest$
|
|
11197
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
11198
|
+
const resourceParams = createResourceParams$8(config);
|
|
11199
|
+
const request = createResourceRequest$8(resourceParams);
|
|
11145
11200
|
return luvio.dispatchResourceRequest(request, options)
|
|
11146
11201
|
.then((response) => {
|
|
11147
11202
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
11148
11203
|
const cache = new StoreKeyMap();
|
|
11149
|
-
getResponseCacheKeys$
|
|
11204
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
11150
11205
|
return cache;
|
|
11151
11206
|
});
|
|
11152
11207
|
}, (response) => {
|
|
@@ -11154,23 +11209,23 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
11154
11209
|
});
|
|
11155
11210
|
}
|
|
11156
11211
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
11157
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11212
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
11158
11213
|
}
|
|
11159
11214
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
11160
11215
|
const { luvio, config } = context;
|
|
11161
11216
|
const selector = {
|
|
11162
|
-
recordId: keyBuilder$
|
|
11217
|
+
recordId: keyBuilder$a(luvio, config),
|
|
11163
11218
|
node: adapterFragment$4(luvio, config),
|
|
11164
11219
|
variables: {},
|
|
11165
11220
|
};
|
|
11166
11221
|
const cacheSnapshot = storeLookup(selector, {
|
|
11167
11222
|
config,
|
|
11168
|
-
resolve: () => buildNetworkSnapshot$
|
|
11223
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11169
11224
|
});
|
|
11170
11225
|
return cacheSnapshot;
|
|
11171
11226
|
}
|
|
11172
11227
|
const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
|
|
11173
|
-
const config = validateAdapterConfig$
|
|
11228
|
+
const config = validateAdapterConfig$8(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
|
|
11174
11229
|
// Invalid or incomplete config
|
|
11175
11230
|
if (config === null) {
|
|
11176
11231
|
return null;
|
|
@@ -11179,24 +11234,24 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
11179
11234
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
11180
11235
|
};
|
|
11181
11236
|
|
|
11182
|
-
function select$
|
|
11183
|
-
return select$
|
|
11237
|
+
function select$6(luvio, params) {
|
|
11238
|
+
return select$A();
|
|
11184
11239
|
}
|
|
11185
|
-
function keyBuilder$
|
|
11186
|
-
return keyBuilder$
|
|
11240
|
+
function keyBuilder$9(luvio, params) {
|
|
11241
|
+
return keyBuilder$v(luvio, {
|
|
11187
11242
|
name: params.urlParams.metricNameOrId
|
|
11188
11243
|
});
|
|
11189
11244
|
}
|
|
11190
|
-
function getResponseCacheKeys$
|
|
11245
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
11191
11246
|
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
11192
11247
|
}
|
|
11193
|
-
function ingestSuccess$
|
|
11248
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
11194
11249
|
const { body } = response;
|
|
11195
|
-
const key = keyBuilder$
|
|
11250
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
11196
11251
|
luvio.storeIngest(key, ingest$g, body);
|
|
11197
11252
|
const snapshot = luvio.storeLookup({
|
|
11198
11253
|
recordId: key,
|
|
11199
|
-
node: select$
|
|
11254
|
+
node: select$6(),
|
|
11200
11255
|
variables: {},
|
|
11201
11256
|
}, snapshotRefresh);
|
|
11202
11257
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11208,12 +11263,12 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11208
11263
|
return snapshot;
|
|
11209
11264
|
}
|
|
11210
11265
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
11211
|
-
const key = keyBuilder$
|
|
11266
|
+
const key = keyBuilder$9(luvio, params);
|
|
11212
11267
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11213
11268
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11214
11269
|
return errorSnapshot;
|
|
11215
11270
|
}
|
|
11216
|
-
function createResourceRequest$
|
|
11271
|
+
function createResourceRequest$7(config) {
|
|
11217
11272
|
const headers = {};
|
|
11218
11273
|
return {
|
|
11219
11274
|
baseUri: '/services/data/v63.0',
|
|
@@ -11227,61 +11282,61 @@ function createResourceRequest$5(config) {
|
|
|
11227
11282
|
};
|
|
11228
11283
|
}
|
|
11229
11284
|
|
|
11230
|
-
const adapterName$
|
|
11285
|
+
const adapterName$7 = 'getSemanticMetric';
|
|
11231
11286
|
const getSemanticMetric_ConfigPropertyMetadata = [
|
|
11232
11287
|
generateParamConfigMetadata('metricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11233
11288
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11234
11289
|
];
|
|
11235
|
-
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11236
|
-
const createResourceParams$
|
|
11237
|
-
function keyBuilder$
|
|
11238
|
-
const resourceParams = createResourceParams$
|
|
11239
|
-
return keyBuilder$
|
|
11290
|
+
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetric_ConfigPropertyMetadata);
|
|
11291
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$f(getSemanticMetric_ConfigPropertyMetadata);
|
|
11292
|
+
function keyBuilder$8(luvio, config) {
|
|
11293
|
+
const resourceParams = createResourceParams$7(config);
|
|
11294
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
11240
11295
|
}
|
|
11241
|
-
function typeCheckConfig$
|
|
11296
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
11242
11297
|
const config = {};
|
|
11243
|
-
typeCheckConfig$
|
|
11298
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
11244
11299
|
return config;
|
|
11245
11300
|
}
|
|
11246
|
-
function validateAdapterConfig$
|
|
11301
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
11247
11302
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11248
11303
|
return null;
|
|
11249
11304
|
}
|
|
11250
11305
|
if (process.env.NODE_ENV !== 'production') {
|
|
11251
11306
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11252
11307
|
}
|
|
11253
|
-
const config = typeCheckConfig$
|
|
11308
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
11254
11309
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11255
11310
|
return null;
|
|
11256
11311
|
}
|
|
11257
11312
|
return config;
|
|
11258
11313
|
}
|
|
11259
11314
|
function adapterFragment$3(luvio, config) {
|
|
11260
|
-
createResourceParams$
|
|
11261
|
-
return select$
|
|
11315
|
+
createResourceParams$7(config);
|
|
11316
|
+
return select$6();
|
|
11262
11317
|
}
|
|
11263
11318
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
11264
|
-
const snapshot = ingestSuccess$
|
|
11319
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
11265
11320
|
config,
|
|
11266
|
-
resolve: () => buildNetworkSnapshot$
|
|
11321
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11267
11322
|
});
|
|
11268
11323
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11269
11324
|
}
|
|
11270
11325
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
11271
11326
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
11272
11327
|
config,
|
|
11273
|
-
resolve: () => buildNetworkSnapshot$
|
|
11328
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11274
11329
|
});
|
|
11275
11330
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11276
11331
|
}
|
|
11277
|
-
function buildNetworkSnapshot$
|
|
11278
|
-
const resourceParams = createResourceParams$
|
|
11279
|
-
const request = createResourceRequest$
|
|
11332
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
11333
|
+
const resourceParams = createResourceParams$7(config);
|
|
11334
|
+
const request = createResourceRequest$7(resourceParams);
|
|
11280
11335
|
return luvio.dispatchResourceRequest(request, options)
|
|
11281
11336
|
.then((response) => {
|
|
11282
11337
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
11283
11338
|
const cache = new StoreKeyMap();
|
|
11284
|
-
getResponseCacheKeys$
|
|
11339
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
11285
11340
|
return cache;
|
|
11286
11341
|
});
|
|
11287
11342
|
}, (response) => {
|
|
@@ -11289,23 +11344,23 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
11289
11344
|
});
|
|
11290
11345
|
}
|
|
11291
11346
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
11292
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11347
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
11293
11348
|
}
|
|
11294
11349
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
11295
11350
|
const { luvio, config } = context;
|
|
11296
11351
|
const selector = {
|
|
11297
|
-
recordId: keyBuilder$
|
|
11352
|
+
recordId: keyBuilder$8(luvio, config),
|
|
11298
11353
|
node: adapterFragment$3(luvio, config),
|
|
11299
11354
|
variables: {},
|
|
11300
11355
|
};
|
|
11301
11356
|
const cacheSnapshot = storeLookup(selector, {
|
|
11302
11357
|
config,
|
|
11303
|
-
resolve: () => buildNetworkSnapshot$
|
|
11358
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11304
11359
|
});
|
|
11305
11360
|
return cacheSnapshot;
|
|
11306
11361
|
}
|
|
11307
11362
|
const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetric(untrustedConfig, requestContext) {
|
|
11308
|
-
const config = validateAdapterConfig$
|
|
11363
|
+
const config = validateAdapterConfig$7(untrustedConfig, getSemanticMetric_ConfigPropertyNames);
|
|
11309
11364
|
// Invalid or incomplete config
|
|
11310
11365
|
if (config === null) {
|
|
11311
11366
|
return null;
|
|
@@ -11315,7 +11370,7 @@ const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
11315
11370
|
};
|
|
11316
11371
|
|
|
11317
11372
|
const VERSION = "542f239a7dc422c67d6cdffb0ff866eb";
|
|
11318
|
-
function validate$
|
|
11373
|
+
function validate$3(obj, path = 'SemanticSubMetricCollectionOutputRepresentation') {
|
|
11319
11374
|
const v_error = (() => {
|
|
11320
11375
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11321
11376
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -11359,7 +11414,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
11359
11414
|
}
|
|
11360
11415
|
return input;
|
|
11361
11416
|
}
|
|
11362
|
-
const select$
|
|
11417
|
+
const select$5 = function SemanticSubMetricCollectionOutputRepresentationSelect() {
|
|
11363
11418
|
return {
|
|
11364
11419
|
kind: 'Fragment',
|
|
11365
11420
|
version: VERSION,
|
|
@@ -11370,7 +11425,7 @@ const select$4 = function SemanticSubMetricCollectionOutputRepresentationSelect(
|
|
|
11370
11425
|
kind: 'Link',
|
|
11371
11426
|
plural: true,
|
|
11372
11427
|
required: false,
|
|
11373
|
-
fragment: select$
|
|
11428
|
+
fragment: select$b()
|
|
11374
11429
|
}
|
|
11375
11430
|
]
|
|
11376
11431
|
};
|
|
@@ -11398,7 +11453,7 @@ function equals(existing, incoming) {
|
|
|
11398
11453
|
}
|
|
11399
11454
|
const ingest = function SemanticSubMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
11400
11455
|
if (process.env.NODE_ENV !== 'production') {
|
|
11401
|
-
const validateError = validate$
|
|
11456
|
+
const validateError = validate$3(input);
|
|
11402
11457
|
if (validateError !== null) {
|
|
11403
11458
|
throw validateError;
|
|
11404
11459
|
}
|
|
@@ -11424,22 +11479,22 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11424
11479
|
}
|
|
11425
11480
|
}
|
|
11426
11481
|
|
|
11427
|
-
function select$
|
|
11428
|
-
return select$
|
|
11482
|
+
function select$4(luvio, params) {
|
|
11483
|
+
return select$5();
|
|
11429
11484
|
}
|
|
11430
|
-
function keyBuilder$
|
|
11431
|
-
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11485
|
+
function keyBuilder$7(luvio, params) {
|
|
11486
|
+
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'hasGoal:' + params.queryParams.hasGoal + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11432
11487
|
}
|
|
11433
|
-
function getResponseCacheKeys$
|
|
11434
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$
|
|
11488
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
11489
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
11435
11490
|
}
|
|
11436
|
-
function ingestSuccess$
|
|
11491
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
11437
11492
|
const { body } = response;
|
|
11438
|
-
const key = keyBuilder$
|
|
11493
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
11439
11494
|
luvio.storeIngest(key, ingest, body);
|
|
11440
11495
|
const snapshot = luvio.storeLookup({
|
|
11441
11496
|
recordId: key,
|
|
11442
|
-
node: select$
|
|
11497
|
+
node: select$4(),
|
|
11443
11498
|
variables: {},
|
|
11444
11499
|
}, snapshotRefresh);
|
|
11445
11500
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11451,12 +11506,12 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11451
11506
|
return snapshot;
|
|
11452
11507
|
}
|
|
11453
11508
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
11454
|
-
const key = keyBuilder$
|
|
11509
|
+
const key = keyBuilder$7(luvio, params);
|
|
11455
11510
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11456
11511
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11457
11512
|
return errorSnapshot;
|
|
11458
11513
|
}
|
|
11459
|
-
function createResourceRequest$
|
|
11514
|
+
function createResourceRequest$6(config) {
|
|
11460
11515
|
const headers = {};
|
|
11461
11516
|
return {
|
|
11462
11517
|
baseUri: '/services/data/v63.0',
|
|
@@ -11464,66 +11519,67 @@ function createResourceRequest$4(config) {
|
|
|
11464
11519
|
method: 'get',
|
|
11465
11520
|
body: null,
|
|
11466
11521
|
urlParams: config.urlParams,
|
|
11467
|
-
queryParams:
|
|
11522
|
+
queryParams: config.queryParams,
|
|
11468
11523
|
headers,
|
|
11469
11524
|
priority: 'normal',
|
|
11470
11525
|
};
|
|
11471
11526
|
}
|
|
11472
11527
|
|
|
11473
|
-
const adapterName$
|
|
11528
|
+
const adapterName$6 = 'getSemanticSubMetrics';
|
|
11474
11529
|
const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
11475
11530
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11531
|
+
generateParamConfigMetadata('hasGoal', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
11476
11532
|
];
|
|
11477
|
-
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11478
|
-
const createResourceParams$
|
|
11479
|
-
function keyBuilder$
|
|
11480
|
-
const resourceParams = createResourceParams$
|
|
11481
|
-
return keyBuilder$
|
|
11533
|
+
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11534
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$f(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11535
|
+
function keyBuilder$6(luvio, config) {
|
|
11536
|
+
const resourceParams = createResourceParams$6(config);
|
|
11537
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
11482
11538
|
}
|
|
11483
|
-
function typeCheckConfig$
|
|
11539
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
11484
11540
|
const config = {};
|
|
11485
|
-
typeCheckConfig$
|
|
11541
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11486
11542
|
return config;
|
|
11487
11543
|
}
|
|
11488
|
-
function validateAdapterConfig$
|
|
11544
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
11489
11545
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11490
11546
|
return null;
|
|
11491
11547
|
}
|
|
11492
11548
|
if (process.env.NODE_ENV !== 'production') {
|
|
11493
11549
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11494
11550
|
}
|
|
11495
|
-
const config = typeCheckConfig$
|
|
11551
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
11496
11552
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11497
11553
|
return null;
|
|
11498
11554
|
}
|
|
11499
11555
|
return config;
|
|
11500
11556
|
}
|
|
11501
11557
|
function adapterFragment$2(luvio, config) {
|
|
11502
|
-
createResourceParams$
|
|
11503
|
-
return select$
|
|
11558
|
+
createResourceParams$6(config);
|
|
11559
|
+
return select$4();
|
|
11504
11560
|
}
|
|
11505
11561
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
11506
|
-
const snapshot = ingestSuccess$
|
|
11562
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
11507
11563
|
config,
|
|
11508
|
-
resolve: () => buildNetworkSnapshot$
|
|
11564
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
11509
11565
|
});
|
|
11510
11566
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11511
11567
|
}
|
|
11512
11568
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
11513
11569
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
11514
11570
|
config,
|
|
11515
|
-
resolve: () => buildNetworkSnapshot$
|
|
11571
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
11516
11572
|
});
|
|
11517
11573
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11518
11574
|
}
|
|
11519
|
-
function buildNetworkSnapshot$
|
|
11520
|
-
const resourceParams = createResourceParams$
|
|
11521
|
-
const request = createResourceRequest$
|
|
11575
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
11576
|
+
const resourceParams = createResourceParams$6(config);
|
|
11577
|
+
const request = createResourceRequest$6(resourceParams);
|
|
11522
11578
|
return luvio.dispatchResourceRequest(request, options)
|
|
11523
11579
|
.then((response) => {
|
|
11524
11580
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
11525
11581
|
const cache = new StoreKeyMap();
|
|
11526
|
-
getResponseCacheKeys$
|
|
11582
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
11527
11583
|
return cache;
|
|
11528
11584
|
});
|
|
11529
11585
|
}, (response) => {
|
|
@@ -11531,23 +11587,23 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
11531
11587
|
});
|
|
11532
11588
|
}
|
|
11533
11589
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
11534
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11590
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
11535
11591
|
}
|
|
11536
11592
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
11537
11593
|
const { luvio, config } = context;
|
|
11538
11594
|
const selector = {
|
|
11539
|
-
recordId: keyBuilder$
|
|
11595
|
+
recordId: keyBuilder$6(luvio, config),
|
|
11540
11596
|
node: adapterFragment$2(luvio, config),
|
|
11541
11597
|
variables: {},
|
|
11542
11598
|
};
|
|
11543
11599
|
const cacheSnapshot = storeLookup(selector, {
|
|
11544
11600
|
config,
|
|
11545
|
-
resolve: () => buildNetworkSnapshot$
|
|
11601
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
11546
11602
|
});
|
|
11547
11603
|
return cacheSnapshot;
|
|
11548
11604
|
}
|
|
11549
11605
|
const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetrics(untrustedConfig, requestContext) {
|
|
11550
|
-
const config = validateAdapterConfig$
|
|
11606
|
+
const config = validateAdapterConfig$6(untrustedConfig, getSemanticSubMetrics_ConfigPropertyNames);
|
|
11551
11607
|
// Invalid or incomplete config
|
|
11552
11608
|
if (config === null) {
|
|
11553
11609
|
return null;
|
|
@@ -11556,36 +11612,52 @@ const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthorin
|
|
|
11556
11612
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
11557
11613
|
};
|
|
11558
11614
|
|
|
11559
|
-
function validate$
|
|
11615
|
+
function validate$2(obj, path = 'SemanticGoalStatusConditionInputRepresentation') {
|
|
11560
11616
|
const v_error = (() => {
|
|
11561
11617
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11562
11618
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
11563
11619
|
}
|
|
11564
|
-
if (obj.
|
|
11565
|
-
const
|
|
11566
|
-
const
|
|
11567
|
-
if (typeof
|
|
11568
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
11620
|
+
if (obj.color !== undefined) {
|
|
11621
|
+
const obj_color = obj.color;
|
|
11622
|
+
const path_color = path + '.color';
|
|
11623
|
+
if (typeof obj_color !== 'string') {
|
|
11624
|
+
return new TypeError('Expected "string" but received "' + typeof obj_color + '" (at "' + path_color + '")');
|
|
11569
11625
|
}
|
|
11570
11626
|
}
|
|
11571
|
-
if (obj.
|
|
11572
|
-
const
|
|
11573
|
-
const
|
|
11574
|
-
if (typeof
|
|
11575
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
11627
|
+
if (obj.currencyIsoCode !== undefined) {
|
|
11628
|
+
const obj_currencyIsoCode = obj.currencyIsoCode;
|
|
11629
|
+
const path_currencyIsoCode = path + '.currencyIsoCode';
|
|
11630
|
+
if (typeof obj_currencyIsoCode !== 'string') {
|
|
11631
|
+
return new TypeError('Expected "string" but received "' + typeof obj_currencyIsoCode + '" (at "' + path_currencyIsoCode + '")');
|
|
11576
11632
|
}
|
|
11577
11633
|
}
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11585
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
11634
|
+
if (obj.operator !== undefined) {
|
|
11635
|
+
const obj_operator = obj.operator;
|
|
11636
|
+
const path_operator = path + '.operator';
|
|
11637
|
+
if (typeof obj_operator !== 'string') {
|
|
11638
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
11639
|
+
}
|
|
11586
11640
|
}
|
|
11587
|
-
if (obj.
|
|
11588
|
-
obj.
|
|
11641
|
+
if (obj.primary !== undefined) {
|
|
11642
|
+
const obj_primary = obj.primary;
|
|
11643
|
+
const path_primary = path + '.primary';
|
|
11644
|
+
if (typeof obj_primary !== 'boolean') {
|
|
11645
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_primary + '" (at "' + path_primary + '")');
|
|
11646
|
+
}
|
|
11647
|
+
}
|
|
11648
|
+
if (obj.statusName !== undefined) {
|
|
11649
|
+
const obj_statusName = obj.statusName;
|
|
11650
|
+
const path_statusName = path + '.statusName';
|
|
11651
|
+
if (typeof obj_statusName !== 'string') {
|
|
11652
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusName + '" (at "' + path_statusName + '")');
|
|
11653
|
+
}
|
|
11654
|
+
}
|
|
11655
|
+
if (obj.value !== undefined) {
|
|
11656
|
+
const obj_value = obj.value;
|
|
11657
|
+
const path_value = path + '.value';
|
|
11658
|
+
if (typeof obj_value !== 'string') {
|
|
11659
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
11660
|
+
}
|
|
11589
11661
|
}
|
|
11590
11662
|
})();
|
|
11591
11663
|
return v_error === undefined ? null : v_error;
|
|
@@ -11596,31 +11668,28 @@ function validate$1(obj, path = 'SemanticMetricGoalInputRepresentation') {
|
|
|
11596
11668
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11597
11669
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
11598
11670
|
}
|
|
11599
|
-
if (obj.
|
|
11600
|
-
const
|
|
11601
|
-
const
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
-
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
|
|
11620
|
-
|
|
11621
|
-
let message = 'Object doesn\'t match SemanticGoalValueInputRepresentation (at "' + path_value + '")\n';
|
|
11622
|
-
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
11623
|
-
return new TypeError(message);
|
|
11671
|
+
if (obj.forecasting !== undefined) {
|
|
11672
|
+
const obj_forecasting = obj.forecasting;
|
|
11673
|
+
const path_forecasting = path + '.forecasting';
|
|
11674
|
+
if (typeof obj_forecasting !== 'boolean') {
|
|
11675
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
11676
|
+
}
|
|
11677
|
+
}
|
|
11678
|
+
if (obj.statusConditions !== undefined) {
|
|
11679
|
+
const obj_statusConditions = obj.statusConditions;
|
|
11680
|
+
const path_statusConditions = path + '.statusConditions';
|
|
11681
|
+
if (!ArrayIsArray(obj_statusConditions)) {
|
|
11682
|
+
return new TypeError('Expected "array" but received "' + typeof obj_statusConditions + '" (at "' + path_statusConditions + '")');
|
|
11683
|
+
}
|
|
11684
|
+
for (let i = 0; i < obj_statusConditions.length; i++) {
|
|
11685
|
+
const obj_statusConditions_item = obj_statusConditions[i];
|
|
11686
|
+
const path_statusConditions_item = path_statusConditions + '[' + i + ']';
|
|
11687
|
+
const referencepath_statusConditions_itemValidationError = validate$2(obj_statusConditions_item, path_statusConditions_item);
|
|
11688
|
+
if (referencepath_statusConditions_itemValidationError !== null) {
|
|
11689
|
+
let message = 'Object doesn\'t match SemanticGoalStatusConditionInputRepresentation (at "' + path_statusConditions_item + '")\n';
|
|
11690
|
+
message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
11691
|
+
return new TypeError(message);
|
|
11692
|
+
}
|
|
11624
11693
|
}
|
|
11625
11694
|
}
|
|
11626
11695
|
})();
|
|
@@ -11657,19 +11726,19 @@ function validate(obj, path = 'SemanticTimeRangeInputRepresentation') {
|
|
|
11657
11726
|
return v_error === undefined ? null : v_error;
|
|
11658
11727
|
}
|
|
11659
11728
|
|
|
11660
|
-
function select$
|
|
11661
|
-
return select$
|
|
11729
|
+
function select$3(luvio, params) {
|
|
11730
|
+
return select$b();
|
|
11662
11731
|
}
|
|
11663
|
-
function getResponseCacheKeys$
|
|
11732
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
11664
11733
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
11665
11734
|
}
|
|
11666
|
-
function ingestSuccess$
|
|
11735
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
11667
11736
|
const { body } = response;
|
|
11668
11737
|
const key = keyBuilderFromType(luvio, body);
|
|
11669
11738
|
luvio.storeIngest(key, ingest$3, body);
|
|
11670
11739
|
const snapshot = luvio.storeLookup({
|
|
11671
11740
|
recordId: key,
|
|
11672
|
-
node: select$
|
|
11741
|
+
node: select$3(),
|
|
11673
11742
|
variables: {},
|
|
11674
11743
|
});
|
|
11675
11744
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11680,7 +11749,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
11680
11749
|
deepFreeze(snapshot.data);
|
|
11681
11750
|
return snapshot;
|
|
11682
11751
|
}
|
|
11683
|
-
function createResourceRequest$
|
|
11752
|
+
function createResourceRequest$5(config) {
|
|
11684
11753
|
const headers = {};
|
|
11685
11754
|
return {
|
|
11686
11755
|
baseUri: '/services/data/v63.0',
|
|
@@ -11694,7 +11763,7 @@ function createResourceRequest$3(config) {
|
|
|
11694
11763
|
};
|
|
11695
11764
|
}
|
|
11696
11765
|
|
|
11697
|
-
const adapterName$
|
|
11766
|
+
const adapterName$5 = 'createSemanticSubMetric';
|
|
11698
11767
|
const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
11699
11768
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11700
11769
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -11706,17 +11775,17 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11706
11775
|
generateParamConfigMetadata('semanticMetricDefinitionApiName', false, 2 /* Body */, 0 /* String */),
|
|
11707
11776
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
11708
11777
|
];
|
|
11709
|
-
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11710
|
-
const createResourceParams$
|
|
11711
|
-
function typeCheckConfig$
|
|
11778
|
+
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11779
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$f(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11780
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
11712
11781
|
const config = {};
|
|
11713
|
-
typeCheckConfig$
|
|
11782
|
+
typeCheckConfig$f(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11714
11783
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
11715
11784
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
11716
11785
|
const untrustedConfig_filters_array = [];
|
|
11717
11786
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
11718
11787
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
11719
|
-
const referenceSemanticFilterInputRepresentationValidationError = validate$
|
|
11788
|
+
const referenceSemanticFilterInputRepresentationValidationError = validate$N(untrustedConfig_filters_item);
|
|
11720
11789
|
if (referenceSemanticFilterInputRepresentationValidationError === null) {
|
|
11721
11790
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
11722
11791
|
}
|
|
@@ -11735,30 +11804,30 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
11735
11804
|
}
|
|
11736
11805
|
return config;
|
|
11737
11806
|
}
|
|
11738
|
-
function validateAdapterConfig$
|
|
11807
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
11739
11808
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11740
11809
|
return null;
|
|
11741
11810
|
}
|
|
11742
11811
|
if (process.env.NODE_ENV !== 'production') {
|
|
11743
11812
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11744
11813
|
}
|
|
11745
|
-
const config = typeCheckConfig$
|
|
11814
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
11746
11815
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11747
11816
|
return null;
|
|
11748
11817
|
}
|
|
11749
11818
|
return config;
|
|
11750
11819
|
}
|
|
11751
|
-
function buildNetworkSnapshot$
|
|
11752
|
-
const resourceParams = createResourceParams$
|
|
11753
|
-
const request = createResourceRequest$
|
|
11820
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
11821
|
+
const resourceParams = createResourceParams$5(config);
|
|
11822
|
+
const request = createResourceRequest$5(resourceParams);
|
|
11754
11823
|
return luvio.dispatchResourceRequest(request, options)
|
|
11755
11824
|
.then((response) => {
|
|
11756
11825
|
return luvio.handleSuccessResponse(() => {
|
|
11757
|
-
const snapshot = ingestSuccess$
|
|
11826
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
11758
11827
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11759
11828
|
}, () => {
|
|
11760
11829
|
const cache = new StoreKeyMap();
|
|
11761
|
-
getResponseCacheKeys$
|
|
11830
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
11762
11831
|
return cache;
|
|
11763
11832
|
});
|
|
11764
11833
|
}, (response) => {
|
|
@@ -11768,33 +11837,33 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
11768
11837
|
}
|
|
11769
11838
|
const createSemanticSubMetricAdapterFactory = (luvio) => {
|
|
11770
11839
|
return function createSemanticSubMetric(untrustedConfig) {
|
|
11771
|
-
const config = validateAdapterConfig$
|
|
11840
|
+
const config = validateAdapterConfig$5(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
|
|
11772
11841
|
// Invalid or incomplete config
|
|
11773
11842
|
if (config === null) {
|
|
11774
11843
|
throw new Error('Invalid config for "createSemanticSubMetric"');
|
|
11775
11844
|
}
|
|
11776
|
-
return buildNetworkSnapshot$
|
|
11845
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
11777
11846
|
};
|
|
11778
11847
|
};
|
|
11779
11848
|
|
|
11780
|
-
function keyBuilder$
|
|
11781
|
-
return keyBuilder$
|
|
11849
|
+
function keyBuilder$5(luvio, params) {
|
|
11850
|
+
return keyBuilder$e(luvio, {
|
|
11782
11851
|
name: params.urlParams.subMetricNameOrId
|
|
11783
11852
|
});
|
|
11784
11853
|
}
|
|
11785
|
-
function getResponseCacheKeys$
|
|
11786
|
-
const key = keyBuilder$
|
|
11854
|
+
function getResponseCacheKeys$4(cacheKeyMap, luvio, resourceParams) {
|
|
11855
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
11787
11856
|
cacheKeyMap.set(key, {
|
|
11788
11857
|
namespace: keyPrefix,
|
|
11789
11858
|
representationName: RepresentationType$3,
|
|
11790
11859
|
mergeable: false
|
|
11791
11860
|
});
|
|
11792
11861
|
}
|
|
11793
|
-
function evictSuccess(luvio, resourceParams) {
|
|
11794
|
-
const key = keyBuilder$
|
|
11862
|
+
function evictSuccess$1(luvio, resourceParams) {
|
|
11863
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
11795
11864
|
luvio.storeEvict(key);
|
|
11796
11865
|
}
|
|
11797
|
-
function createResourceRequest$
|
|
11866
|
+
function createResourceRequest$4(config) {
|
|
11798
11867
|
const headers = {};
|
|
11799
11868
|
return {
|
|
11800
11869
|
baseUri: '/services/data/v63.0',
|
|
@@ -11808,42 +11877,42 @@ function createResourceRequest$2(config) {
|
|
|
11808
11877
|
};
|
|
11809
11878
|
}
|
|
11810
11879
|
|
|
11811
|
-
const adapterName$
|
|
11880
|
+
const adapterName$4 = 'deleteSemanticSubMetric';
|
|
11812
11881
|
const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
11813
11882
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11814
11883
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11815
11884
|
];
|
|
11816
|
-
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11817
|
-
const createResourceParams$
|
|
11818
|
-
function typeCheckConfig$
|
|
11885
|
+
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11886
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$f(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11887
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
11819
11888
|
const config = {};
|
|
11820
|
-
typeCheckConfig$
|
|
11889
|
+
typeCheckConfig$f(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11821
11890
|
return config;
|
|
11822
11891
|
}
|
|
11823
|
-
function validateAdapterConfig$
|
|
11892
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
11824
11893
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11825
11894
|
return null;
|
|
11826
11895
|
}
|
|
11827
11896
|
if (process.env.NODE_ENV !== 'production') {
|
|
11828
11897
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11829
11898
|
}
|
|
11830
|
-
const config = typeCheckConfig$
|
|
11899
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
11831
11900
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11832
11901
|
return null;
|
|
11833
11902
|
}
|
|
11834
11903
|
return config;
|
|
11835
11904
|
}
|
|
11836
|
-
function buildNetworkSnapshot$
|
|
11837
|
-
const resourceParams = createResourceParams$
|
|
11838
|
-
const request = createResourceRequest$
|
|
11905
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
11906
|
+
const resourceParams = createResourceParams$4(config);
|
|
11907
|
+
const request = createResourceRequest$4(resourceParams);
|
|
11839
11908
|
return luvio.dispatchResourceRequest(request, options)
|
|
11840
11909
|
.then(() => {
|
|
11841
11910
|
return luvio.handleSuccessResponse(() => {
|
|
11842
|
-
evictSuccess(luvio, resourceParams);
|
|
11911
|
+
evictSuccess$1(luvio, resourceParams);
|
|
11843
11912
|
return luvio.storeBroadcast();
|
|
11844
11913
|
}, () => {
|
|
11845
11914
|
const cache = new StoreKeyMap();
|
|
11846
|
-
getResponseCacheKeys$
|
|
11915
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams);
|
|
11847
11916
|
return cache;
|
|
11848
11917
|
});
|
|
11849
11918
|
}, (response) => {
|
|
@@ -11853,33 +11922,33 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
11853
11922
|
}
|
|
11854
11923
|
const deleteSemanticSubMetricAdapterFactory = (luvio) => {
|
|
11855
11924
|
return function SemanticAuthoringdeleteSemanticSubMetric(untrustedConfig) {
|
|
11856
|
-
const config = validateAdapterConfig$
|
|
11925
|
+
const config = validateAdapterConfig$4(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
|
|
11857
11926
|
// Invalid or incomplete config
|
|
11858
11927
|
if (config === null) {
|
|
11859
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
11928
|
+
throw new Error(`Invalid config for "${adapterName$4}"`);
|
|
11860
11929
|
}
|
|
11861
|
-
return buildNetworkSnapshot$
|
|
11930
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
11862
11931
|
};
|
|
11863
11932
|
};
|
|
11864
11933
|
|
|
11865
|
-
function select$
|
|
11866
|
-
return select$
|
|
11934
|
+
function select$2(luvio, params) {
|
|
11935
|
+
return select$b();
|
|
11867
11936
|
}
|
|
11868
|
-
function keyBuilder$
|
|
11869
|
-
return keyBuilder$
|
|
11937
|
+
function keyBuilder$4(luvio, params) {
|
|
11938
|
+
return keyBuilder$e(luvio, {
|
|
11870
11939
|
name: params.urlParams.subMetricNameOrId
|
|
11871
11940
|
});
|
|
11872
11941
|
}
|
|
11873
|
-
function getResponseCacheKeys$
|
|
11942
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
11874
11943
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
11875
11944
|
}
|
|
11876
|
-
function ingestSuccess$
|
|
11945
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
11877
11946
|
const { body } = response;
|
|
11878
|
-
const key = keyBuilder$
|
|
11947
|
+
const key = keyBuilder$4(luvio, resourceParams);
|
|
11879
11948
|
luvio.storeIngest(key, ingest$3, body);
|
|
11880
11949
|
const snapshot = luvio.storeLookup({
|
|
11881
11950
|
recordId: key,
|
|
11882
|
-
node: select$
|
|
11951
|
+
node: select$2(),
|
|
11883
11952
|
variables: {},
|
|
11884
11953
|
}, snapshotRefresh);
|
|
11885
11954
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11891,12 +11960,12 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11891
11960
|
return snapshot;
|
|
11892
11961
|
}
|
|
11893
11962
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
11894
|
-
const key = keyBuilder$
|
|
11963
|
+
const key = keyBuilder$4(luvio, params);
|
|
11895
11964
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11896
11965
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11897
11966
|
return errorSnapshot;
|
|
11898
11967
|
}
|
|
11899
|
-
function createResourceRequest$
|
|
11968
|
+
function createResourceRequest$3(config) {
|
|
11900
11969
|
const headers = {};
|
|
11901
11970
|
return {
|
|
11902
11971
|
baseUri: '/services/data/v63.0',
|
|
@@ -11910,61 +11979,61 @@ function createResourceRequest$1(config) {
|
|
|
11910
11979
|
};
|
|
11911
11980
|
}
|
|
11912
11981
|
|
|
11913
|
-
const adapterName$
|
|
11982
|
+
const adapterName$3 = 'getSemanticSubMetric';
|
|
11914
11983
|
const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
11915
11984
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11916
11985
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11917
11986
|
];
|
|
11918
|
-
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11919
|
-
const createResourceParams$
|
|
11920
|
-
function keyBuilder$
|
|
11921
|
-
const resourceParams = createResourceParams$
|
|
11922
|
-
return keyBuilder$
|
|
11987
|
+
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11988
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$f(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11989
|
+
function keyBuilder$3(luvio, config) {
|
|
11990
|
+
const resourceParams = createResourceParams$3(config);
|
|
11991
|
+
return keyBuilder$4(luvio, resourceParams);
|
|
11923
11992
|
}
|
|
11924
|
-
function typeCheckConfig$
|
|
11993
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
11925
11994
|
const config = {};
|
|
11926
|
-
typeCheckConfig$
|
|
11995
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11927
11996
|
return config;
|
|
11928
11997
|
}
|
|
11929
|
-
function validateAdapterConfig$
|
|
11998
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
11930
11999
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11931
12000
|
return null;
|
|
11932
12001
|
}
|
|
11933
12002
|
if (process.env.NODE_ENV !== 'production') {
|
|
11934
12003
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11935
12004
|
}
|
|
11936
|
-
const config = typeCheckConfig$
|
|
12005
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
11937
12006
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11938
12007
|
return null;
|
|
11939
12008
|
}
|
|
11940
12009
|
return config;
|
|
11941
12010
|
}
|
|
11942
12011
|
function adapterFragment$1(luvio, config) {
|
|
11943
|
-
createResourceParams$
|
|
11944
|
-
return select$
|
|
12012
|
+
createResourceParams$3(config);
|
|
12013
|
+
return select$2();
|
|
11945
12014
|
}
|
|
11946
12015
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
11947
|
-
const snapshot = ingestSuccess$
|
|
12016
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
11948
12017
|
config,
|
|
11949
|
-
resolve: () => buildNetworkSnapshot$
|
|
12018
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11950
12019
|
});
|
|
11951
12020
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11952
12021
|
}
|
|
11953
12022
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
11954
12023
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
11955
12024
|
config,
|
|
11956
|
-
resolve: () => buildNetworkSnapshot$
|
|
12025
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11957
12026
|
});
|
|
11958
12027
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11959
12028
|
}
|
|
11960
|
-
function buildNetworkSnapshot$
|
|
11961
|
-
const resourceParams = createResourceParams$
|
|
11962
|
-
const request = createResourceRequest$
|
|
12029
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
12030
|
+
const resourceParams = createResourceParams$3(config);
|
|
12031
|
+
const request = createResourceRequest$3(resourceParams);
|
|
11963
12032
|
return luvio.dispatchResourceRequest(request, options)
|
|
11964
12033
|
.then((response) => {
|
|
11965
12034
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
11966
12035
|
const cache = new StoreKeyMap();
|
|
11967
|
-
getResponseCacheKeys$
|
|
12036
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
11968
12037
|
return cache;
|
|
11969
12038
|
});
|
|
11970
12039
|
}, (response) => {
|
|
@@ -11972,23 +12041,23 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
11972
12041
|
});
|
|
11973
12042
|
}
|
|
11974
12043
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
11975
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
12044
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
11976
12045
|
}
|
|
11977
12046
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
11978
12047
|
const { luvio, config } = context;
|
|
11979
12048
|
const selector = {
|
|
11980
|
-
recordId: keyBuilder$
|
|
12049
|
+
recordId: keyBuilder$3(luvio, config),
|
|
11981
12050
|
node: adapterFragment$1(luvio, config),
|
|
11982
12051
|
variables: {},
|
|
11983
12052
|
};
|
|
11984
12053
|
const cacheSnapshot = storeLookup(selector, {
|
|
11985
12054
|
config,
|
|
11986
|
-
resolve: () => buildNetworkSnapshot$
|
|
12055
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11987
12056
|
});
|
|
11988
12057
|
return cacheSnapshot;
|
|
11989
12058
|
}
|
|
11990
12059
|
const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetric(untrustedConfig, requestContext) {
|
|
11991
|
-
const config = validateAdapterConfig$
|
|
12060
|
+
const config = validateAdapterConfig$3(untrustedConfig, getSemanticSubMetric_ConfigPropertyNames);
|
|
11992
12061
|
// Invalid or incomplete config
|
|
11993
12062
|
if (config === null) {
|
|
11994
12063
|
return null;
|
|
@@ -11997,8 +12066,198 @@ const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring
|
|
|
11997
12066
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
11998
12067
|
};
|
|
11999
12068
|
|
|
12069
|
+
function keyBuilder$2(luvio, params) {
|
|
12070
|
+
return keyBuilder$e(luvio, {
|
|
12071
|
+
name: params.urlParams.subMetricNameOrId
|
|
12072
|
+
});
|
|
12073
|
+
}
|
|
12074
|
+
function getResponseCacheKeys$2(cacheKeyMap, luvio, resourceParams) {
|
|
12075
|
+
const key = keyBuilder$2(luvio, resourceParams);
|
|
12076
|
+
cacheKeyMap.set(key, {
|
|
12077
|
+
namespace: keyPrefix,
|
|
12078
|
+
representationName: RepresentationType$3,
|
|
12079
|
+
mergeable: false
|
|
12080
|
+
});
|
|
12081
|
+
}
|
|
12082
|
+
function evictSuccess(luvio, resourceParams) {
|
|
12083
|
+
const key = keyBuilder$2(luvio, resourceParams);
|
|
12084
|
+
luvio.storeEvict(key);
|
|
12085
|
+
}
|
|
12086
|
+
function createResourceRequest$2(config) {
|
|
12087
|
+
const headers = {};
|
|
12088
|
+
return {
|
|
12089
|
+
baseUri: '/services/data/v63.0',
|
|
12090
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '/goal',
|
|
12091
|
+
method: 'delete',
|
|
12092
|
+
body: null,
|
|
12093
|
+
urlParams: config.urlParams,
|
|
12094
|
+
queryParams: {},
|
|
12095
|
+
headers,
|
|
12096
|
+
priority: 'normal',
|
|
12097
|
+
};
|
|
12098
|
+
}
|
|
12099
|
+
|
|
12100
|
+
const adapterName$2 = 'deleteGoalFromSubMetric';
|
|
12101
|
+
const deleteGoalFromSubMetric_ConfigPropertyMetadata = [
|
|
12102
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12103
|
+
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12104
|
+
];
|
|
12105
|
+
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12106
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$f(deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12107
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
12108
|
+
const config = {};
|
|
12109
|
+
typeCheckConfig$f(untrustedConfig, config, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12110
|
+
return config;
|
|
12111
|
+
}
|
|
12112
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
12113
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
12114
|
+
return null;
|
|
12115
|
+
}
|
|
12116
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12117
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
12118
|
+
}
|
|
12119
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
12120
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
12121
|
+
return null;
|
|
12122
|
+
}
|
|
12123
|
+
return config;
|
|
12124
|
+
}
|
|
12125
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
12126
|
+
const resourceParams = createResourceParams$2(config);
|
|
12127
|
+
const request = createResourceRequest$2(resourceParams);
|
|
12128
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
12129
|
+
.then(() => {
|
|
12130
|
+
return luvio.handleSuccessResponse(() => {
|
|
12131
|
+
evictSuccess(luvio, resourceParams);
|
|
12132
|
+
return luvio.storeBroadcast();
|
|
12133
|
+
}, () => {
|
|
12134
|
+
const cache = new StoreKeyMap();
|
|
12135
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams);
|
|
12136
|
+
return cache;
|
|
12137
|
+
});
|
|
12138
|
+
}, (response) => {
|
|
12139
|
+
deepFreeze(response);
|
|
12140
|
+
throw response;
|
|
12141
|
+
});
|
|
12142
|
+
}
|
|
12143
|
+
const deleteGoalFromSubMetricAdapterFactory = (luvio) => {
|
|
12144
|
+
return function SemanticAuthoringdeleteGoalFromSubMetric(untrustedConfig) {
|
|
12145
|
+
const config = validateAdapterConfig$2(untrustedConfig, deleteGoalFromSubMetric_ConfigPropertyNames);
|
|
12146
|
+
// Invalid or incomplete config
|
|
12147
|
+
if (config === null) {
|
|
12148
|
+
throw new Error(`Invalid config for "${adapterName$2}"`);
|
|
12149
|
+
}
|
|
12150
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
12151
|
+
};
|
|
12152
|
+
};
|
|
12153
|
+
|
|
12154
|
+
function select$1(luvio, params) {
|
|
12155
|
+
return select$b();
|
|
12156
|
+
}
|
|
12157
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
12158
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
12159
|
+
}
|
|
12160
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
12161
|
+
const { body } = response;
|
|
12162
|
+
const key = keyBuilderFromType(luvio, body);
|
|
12163
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
12164
|
+
const snapshot = luvio.storeLookup({
|
|
12165
|
+
recordId: key,
|
|
12166
|
+
node: select$1(),
|
|
12167
|
+
variables: {},
|
|
12168
|
+
});
|
|
12169
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12170
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
12171
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
12172
|
+
}
|
|
12173
|
+
}
|
|
12174
|
+
deepFreeze(snapshot.data);
|
|
12175
|
+
return snapshot;
|
|
12176
|
+
}
|
|
12177
|
+
function createResourceRequest$1(config) {
|
|
12178
|
+
const headers = {};
|
|
12179
|
+
return {
|
|
12180
|
+
baseUri: '/services/data/v63.0',
|
|
12181
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '/goal',
|
|
12182
|
+
method: 'patch',
|
|
12183
|
+
body: config.body,
|
|
12184
|
+
urlParams: config.urlParams,
|
|
12185
|
+
queryParams: {},
|
|
12186
|
+
headers,
|
|
12187
|
+
priority: 'normal',
|
|
12188
|
+
};
|
|
12189
|
+
}
|
|
12190
|
+
|
|
12191
|
+
const adapterName$1 = 'patchSemanticMetricGoal';
|
|
12192
|
+
const patchSemanticMetricGoal_ConfigPropertyMetadata = [
|
|
12193
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12194
|
+
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12195
|
+
generateParamConfigMetadata('forecasting', false, 2 /* Body */, 1 /* Boolean */),
|
|
12196
|
+
generateParamConfigMetadata('statusConditions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12197
|
+
];
|
|
12198
|
+
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12199
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$f(patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12200
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
12201
|
+
const config = {};
|
|
12202
|
+
typeCheckConfig$f(untrustedConfig, config, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12203
|
+
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
12204
|
+
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
12205
|
+
const untrustedConfig_statusConditions_array = [];
|
|
12206
|
+
for (let i = 0, arrayLength = untrustedConfig_statusConditions.length; i < arrayLength; i++) {
|
|
12207
|
+
const untrustedConfig_statusConditions_item = untrustedConfig_statusConditions[i];
|
|
12208
|
+
const referenceSemanticGoalStatusConditionInputRepresentationValidationError = validate$2(untrustedConfig_statusConditions_item);
|
|
12209
|
+
if (referenceSemanticGoalStatusConditionInputRepresentationValidationError === null) {
|
|
12210
|
+
untrustedConfig_statusConditions_array.push(untrustedConfig_statusConditions_item);
|
|
12211
|
+
}
|
|
12212
|
+
}
|
|
12213
|
+
config.statusConditions = untrustedConfig_statusConditions_array;
|
|
12214
|
+
}
|
|
12215
|
+
return config;
|
|
12216
|
+
}
|
|
12217
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
12218
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
12219
|
+
return null;
|
|
12220
|
+
}
|
|
12221
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12222
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
12223
|
+
}
|
|
12224
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
12225
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
12226
|
+
return null;
|
|
12227
|
+
}
|
|
12228
|
+
return config;
|
|
12229
|
+
}
|
|
12230
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
12231
|
+
const resourceParams = createResourceParams$1(config);
|
|
12232
|
+
const request = createResourceRequest$1(resourceParams);
|
|
12233
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
12234
|
+
.then((response) => {
|
|
12235
|
+
return luvio.handleSuccessResponse(() => {
|
|
12236
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
12237
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
12238
|
+
}, () => {
|
|
12239
|
+
const cache = new StoreKeyMap();
|
|
12240
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
12241
|
+
return cache;
|
|
12242
|
+
});
|
|
12243
|
+
}, (response) => {
|
|
12244
|
+
deepFreeze(response);
|
|
12245
|
+
throw response;
|
|
12246
|
+
});
|
|
12247
|
+
}
|
|
12248
|
+
const patchSemanticMetricGoalAdapterFactory = (luvio) => {
|
|
12249
|
+
return function patchSemanticMetricGoal(untrustedConfig) {
|
|
12250
|
+
const config = validateAdapterConfig$1(untrustedConfig, patchSemanticMetricGoal_ConfigPropertyNames);
|
|
12251
|
+
// Invalid or incomplete config
|
|
12252
|
+
if (config === null) {
|
|
12253
|
+
throw new Error('Invalid config for "patchSemanticMetricGoal"');
|
|
12254
|
+
}
|
|
12255
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
12256
|
+
};
|
|
12257
|
+
};
|
|
12258
|
+
|
|
12000
12259
|
function select(luvio, params) {
|
|
12001
|
-
return select$
|
|
12260
|
+
return select$5();
|
|
12002
12261
|
}
|
|
12003
12262
|
function keyBuilder$1(luvio, params) {
|
|
12004
12263
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
@@ -12048,14 +12307,14 @@ const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
|
12048
12307
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12049
12308
|
];
|
|
12050
12309
|
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12051
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12310
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$f(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12052
12311
|
function keyBuilder(luvio, config) {
|
|
12053
12312
|
const resourceParams = createResourceParams(config);
|
|
12054
12313
|
return keyBuilder$1(luvio, resourceParams);
|
|
12055
12314
|
}
|
|
12056
12315
|
function typeCheckConfig(untrustedConfig) {
|
|
12057
12316
|
const config = {};
|
|
12058
|
-
typeCheckConfig$
|
|
12317
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12059
12318
|
return config;
|
|
12060
12319
|
}
|
|
12061
12320
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -12129,4 +12388,4 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
12129
12388
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
12130
12389
|
};
|
|
12131
12390
|
|
|
12132
|
-
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsByIdsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticModelAdapterFactory };
|
|
12391
|
+
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteGoalFromSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsByIdsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticMetricGoalAdapterFactory, patchSemanticModelAdapterFactory };
|