@salesforce/lds-adapters-cdp-semantic-authoring 1.332.0-dev16 → 1.332.0-dev18
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 +720 -827
- package/dist/es/es2018/types/src/generated/adapters/createSemanticGoal.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/adapters/deleteSemanticGoal.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticGoal.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/adapters/updateSemanticGoal.d.ts +27 -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/deleteSsotSemanticModelsGoalsByModelApiNameOrId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsGoalsByModelApiNameOrId.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsGoalsByModelApiNameOrId.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsGoalsByModelApiNameOrId.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/SemanticGoalDateRangeOutputRepresentation.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/SemanticGoalInputRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/SemanticGoalOutputRepresentation.d.ts +12 -6
- package/package.json +3 -3
- package/sfdc/index.js +777 -876
- package/src/raml/api.raml +53 -8
- package/src/raml/luvio.raml +17 -2
|
@@ -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$b, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$b, typeCheckConfig as typeCheckConfig$k, StoreKeyMap, createResourceParams as createResourceParams$k } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -92,7 +92,7 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
const VERSION$
|
|
95
|
+
const VERSION$y = "a2976cd68e629a917463a3b690cf2527";
|
|
96
96
|
function validate$14(obj, path = 'SemanticTableFieldReferenceOutputRepresentation') {
|
|
97
97
|
const v_error = (() => {
|
|
98
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -115,10 +115,10 @@ function validate$14(obj, path = 'SemanticTableFieldReferenceOutputRepresentatio
|
|
|
115
115
|
})();
|
|
116
116
|
return v_error === undefined ? null : v_error;
|
|
117
117
|
}
|
|
118
|
-
const select$
|
|
118
|
+
const select$P = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
119
119
|
return {
|
|
120
120
|
kind: 'Fragment',
|
|
121
|
-
version: VERSION$
|
|
121
|
+
version: VERSION$y,
|
|
122
122
|
private: [],
|
|
123
123
|
selections: [
|
|
124
124
|
{
|
|
@@ -134,7 +134,7 @@ const select$Q = function SemanticTableFieldReferenceOutputRepresentationSelect(
|
|
|
134
134
|
]
|
|
135
135
|
};
|
|
136
136
|
};
|
|
137
|
-
function equals$
|
|
137
|
+
function equals$y(existing, incoming) {
|
|
138
138
|
const existing_fieldApiName = existing.fieldApiName;
|
|
139
139
|
const incoming_fieldApiName = incoming.fieldApiName;
|
|
140
140
|
// if at least one of these optionals is defined
|
|
@@ -164,7 +164,7 @@ function equals$A(existing, incoming) {
|
|
|
164
164
|
return true;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
const VERSION$
|
|
167
|
+
const VERSION$x = "f49a2cbbe308f6f74cda3e2144fa66cd";
|
|
168
168
|
function validate$13(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
169
169
|
const v_error = (() => {
|
|
170
170
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -190,11 +190,11 @@ function validate$13(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$O = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
194
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$P();
|
|
195
195
|
return {
|
|
196
196
|
kind: 'Fragment',
|
|
197
|
-
version: VERSION$
|
|
197
|
+
version: VERSION$x,
|
|
198
198
|
private: [],
|
|
199
199
|
selections: [
|
|
200
200
|
{
|
|
@@ -211,7 +211,7 @@ const select$P = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
|
211
211
|
]
|
|
212
212
|
};
|
|
213
213
|
};
|
|
214
|
-
function equals$
|
|
214
|
+
function equals$x(existing, incoming) {
|
|
215
215
|
const existing_calculatedFieldApiName = existing.calculatedFieldApiName;
|
|
216
216
|
const incoming_calculatedFieldApiName = incoming.calculatedFieldApiName;
|
|
217
217
|
// if at least one of these optionals is defined
|
|
@@ -234,14 +234,14 @@ function equals$z(existing, incoming) {
|
|
|
234
234
|
if (existing_tableFieldReference === undefined || incoming_tableFieldReference === undefined) {
|
|
235
235
|
return false;
|
|
236
236
|
}
|
|
237
|
-
if (!(equals$
|
|
237
|
+
if (!(equals$y(existing_tableFieldReference, incoming_tableFieldReference))) {
|
|
238
238
|
return false;
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
return true;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
const VERSION$
|
|
244
|
+
const VERSION$w = "9b5a0e85af6a943c95625e2dfe81ab96";
|
|
245
245
|
function validate$12(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
246
246
|
const v_error = (() => {
|
|
247
247
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -271,10 +271,10 @@ function validate$12(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
|
271
271
|
})();
|
|
272
272
|
return v_error === undefined ? null : v_error;
|
|
273
273
|
}
|
|
274
|
-
const select$
|
|
274
|
+
const select$N = function SemanticFilterOutputRepresentationSelect() {
|
|
275
275
|
return {
|
|
276
276
|
kind: 'Fragment',
|
|
277
|
-
version: VERSION$
|
|
277
|
+
version: VERSION$w,
|
|
278
278
|
private: [],
|
|
279
279
|
selections: [
|
|
280
280
|
{
|
|
@@ -295,7 +295,7 @@ const select$O = function SemanticFilterOutputRepresentationSelect() {
|
|
|
295
295
|
]
|
|
296
296
|
};
|
|
297
297
|
};
|
|
298
|
-
function equals$
|
|
298
|
+
function equals$w(existing, incoming) {
|
|
299
299
|
const existing_fieldName = existing.fieldName;
|
|
300
300
|
const incoming_fieldName = incoming.fieldName;
|
|
301
301
|
// if at least one of these optionals is defined
|
|
@@ -338,7 +338,7 @@ function equals$y(existing, incoming) {
|
|
|
338
338
|
return true;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
-
const VERSION$
|
|
341
|
+
const VERSION$v = "a50848c632bb205d5e910bb726d9219e";
|
|
342
342
|
function validate$11(obj, path = 'SemanticIdentifyingDimensionOutputRepresentation') {
|
|
343
343
|
const v_error = (() => {
|
|
344
344
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -367,11 +367,11 @@ function validate$11(obj, path = 'SemanticIdentifyingDimensionOutputRepresentati
|
|
|
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$M = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
371
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$O();
|
|
372
372
|
return {
|
|
373
373
|
kind: 'Fragment',
|
|
374
|
-
version: VERSION$
|
|
374
|
+
version: VERSION$v,
|
|
375
375
|
private: [],
|
|
376
376
|
selections: [
|
|
377
377
|
{
|
|
@@ -389,7 +389,7 @@ const select$N = function SemanticIdentifyingDimensionOutputRepresentationSelect
|
|
|
389
389
|
]
|
|
390
390
|
};
|
|
391
391
|
};
|
|
392
|
-
function equals$
|
|
392
|
+
function equals$v(existing, incoming) {
|
|
393
393
|
const existing_identifierDimensionReference = existing.identifierDimensionReference;
|
|
394
394
|
const incoming_identifierDimensionReference = incoming.identifierDimensionReference;
|
|
395
395
|
// if at least one of these optionals is defined
|
|
@@ -399,7 +399,7 @@ function equals$x(existing, incoming) {
|
|
|
399
399
|
if (existing_identifierDimensionReference === undefined || incoming_identifierDimensionReference === undefined) {
|
|
400
400
|
return false;
|
|
401
401
|
}
|
|
402
|
-
if (!(equals$
|
|
402
|
+
if (!(equals$x(existing_identifierDimensionReference, incoming_identifierDimensionReference))) {
|
|
403
403
|
return false;
|
|
404
404
|
}
|
|
405
405
|
}
|
|
@@ -412,14 +412,14 @@ function equals$x(existing, incoming) {
|
|
|
412
412
|
if (existing_namingDimensionReference === undefined || incoming_namingDimensionReference === undefined) {
|
|
413
413
|
return false;
|
|
414
414
|
}
|
|
415
|
-
if (!(equals$
|
|
415
|
+
if (!(equals$x(existing_namingDimensionReference, incoming_namingDimensionReference))) {
|
|
416
416
|
return false;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
return true;
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
const VERSION$
|
|
422
|
+
const VERSION$u = "1b8cf2283d5d5c480459506274f0604c";
|
|
423
423
|
function validate$10(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
424
424
|
const v_error = (() => {
|
|
425
425
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -442,10 +442,10 @@ function validate$10(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
442
442
|
})();
|
|
443
443
|
return v_error === undefined ? null : v_error;
|
|
444
444
|
}
|
|
445
|
-
const select$
|
|
445
|
+
const select$L = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
446
446
|
return {
|
|
447
447
|
kind: 'Fragment',
|
|
448
|
-
version: VERSION$
|
|
448
|
+
version: VERSION$u,
|
|
449
449
|
private: [],
|
|
450
450
|
selections: [
|
|
451
451
|
{
|
|
@@ -461,7 +461,7 @@ const select$M = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
|
461
461
|
]
|
|
462
462
|
};
|
|
463
463
|
};
|
|
464
|
-
function equals$
|
|
464
|
+
function equals$u(existing, incoming) {
|
|
465
465
|
const existing_enabled = existing.enabled;
|
|
466
466
|
const incoming_enabled = incoming.enabled;
|
|
467
467
|
// if at least one of these optionals is defined
|
|
@@ -491,7 +491,7 @@ function equals$w(existing, incoming) {
|
|
|
491
491
|
return true;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
const VERSION$
|
|
494
|
+
const VERSION$t = "a3f5972287be7bcf9ca205af56046a58";
|
|
495
495
|
function validate$$(obj, path = 'SemanticInsightsSettingsOutputRepresentation') {
|
|
496
496
|
const v_error = (() => {
|
|
497
497
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -565,13 +565,13 @@ function validate$$(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$K = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
569
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$M();
|
|
570
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$L();
|
|
571
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$O();
|
|
572
572
|
return {
|
|
573
573
|
kind: 'Fragment',
|
|
574
|
-
version: VERSION$
|
|
574
|
+
version: VERSION$t,
|
|
575
575
|
private: [],
|
|
576
576
|
selections: [
|
|
577
577
|
{
|
|
@@ -612,7 +612,7 @@ const select$L = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
|
612
612
|
]
|
|
613
613
|
};
|
|
614
614
|
};
|
|
615
|
-
function equals$
|
|
615
|
+
function equals$t(existing, incoming) {
|
|
616
616
|
const existing_pluralNoun = existing.pluralNoun;
|
|
617
617
|
const incoming_pluralNoun = incoming.pluralNoun;
|
|
618
618
|
// if at least one of these optionals is defined
|
|
@@ -661,7 +661,7 @@ function equals$v(existing, incoming) {
|
|
|
661
661
|
if (existing_identifyingDimension === undefined || incoming_identifyingDimension === undefined) {
|
|
662
662
|
return false;
|
|
663
663
|
}
|
|
664
|
-
if (!(equals$
|
|
664
|
+
if (!(equals$v(existing_identifyingDimension, incoming_identifyingDimension))) {
|
|
665
665
|
return false;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
@@ -675,7 +675,7 @@ function equals$v(existing, incoming) {
|
|
|
675
675
|
return false;
|
|
676
676
|
}
|
|
677
677
|
const equals_insightTypes_items = equalsArray(existing_insightTypes, incoming_insightTypes, (existing_insightTypes_item, incoming_insightTypes_item) => {
|
|
678
|
-
if (!(equals$
|
|
678
|
+
if (!(equals$u(existing_insightTypes_item, incoming_insightTypes_item))) {
|
|
679
679
|
return false;
|
|
680
680
|
}
|
|
681
681
|
});
|
|
@@ -693,7 +693,7 @@ function equals$v(existing, incoming) {
|
|
|
693
693
|
return false;
|
|
694
694
|
}
|
|
695
695
|
const equals_insightsDimensionsReferences_items = equalsArray(existing_insightsDimensionsReferences, incoming_insightsDimensionsReferences, (existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item) => {
|
|
696
|
-
if (!(equals$
|
|
696
|
+
if (!(equals$x(existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item))) {
|
|
697
697
|
return false;
|
|
698
698
|
}
|
|
699
699
|
});
|
|
@@ -704,7 +704,7 @@ function equals$v(existing, incoming) {
|
|
|
704
704
|
return true;
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
-
const VERSION$
|
|
707
|
+
const VERSION$s = "0873ccd85b32d14c753931243d20ac8b";
|
|
708
708
|
function validate$_(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
709
709
|
const v_error = (() => {
|
|
710
710
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -875,25 +875,25 @@ function validate$_(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
875
875
|
return v_error === undefined ? null : v_error;
|
|
876
876
|
}
|
|
877
877
|
const RepresentationType$i = 'SemanticMetricOutputRepresentation';
|
|
878
|
-
function keyBuilder$
|
|
878
|
+
function keyBuilder$B(luvio, config) {
|
|
879
879
|
return keyPrefix + '::' + RepresentationType$i + ':' + config.name;
|
|
880
880
|
}
|
|
881
881
|
function keyBuilderFromType$c(luvio, object) {
|
|
882
882
|
const keyParams = {
|
|
883
883
|
name: object.id
|
|
884
884
|
};
|
|
885
|
-
return keyBuilder$
|
|
885
|
+
return keyBuilder$B(luvio, keyParams);
|
|
886
886
|
}
|
|
887
887
|
function normalize$i(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$J = function SemanticMetricOutputRepresentationSelect() {
|
|
891
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$O();
|
|
892
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$N();
|
|
893
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$K();
|
|
894
894
|
return {
|
|
895
895
|
kind: 'Fragment',
|
|
896
|
-
version: VERSION$
|
|
896
|
+
version: VERSION$s,
|
|
897
897
|
private: [],
|
|
898
898
|
selections: [
|
|
899
899
|
{
|
|
@@ -998,7 +998,7 @@ const select$K = function SemanticMetricOutputRepresentationSelect() {
|
|
|
998
998
|
]
|
|
999
999
|
};
|
|
1000
1000
|
};
|
|
1001
|
-
function equals$
|
|
1001
|
+
function equals$s(existing, incoming) {
|
|
1002
1002
|
const existing_isCumulative = existing.isCumulative;
|
|
1003
1003
|
const incoming_isCumulative = incoming.isCumulative;
|
|
1004
1004
|
// if at least one of these optionals is defined
|
|
@@ -1146,7 +1146,7 @@ function equals$u(existing, incoming) {
|
|
|
1146
1146
|
return false;
|
|
1147
1147
|
}
|
|
1148
1148
|
const equals_additionalDimensions_items = equalsArray(existing_additionalDimensions, incoming_additionalDimensions, (existing_additionalDimensions_item, incoming_additionalDimensions_item) => {
|
|
1149
|
-
if (!(equals$
|
|
1149
|
+
if (!(equals$x(existing_additionalDimensions_item, incoming_additionalDimensions_item))) {
|
|
1150
1150
|
return false;
|
|
1151
1151
|
}
|
|
1152
1152
|
});
|
|
@@ -1164,7 +1164,7 @@ function equals$u(existing, incoming) {
|
|
|
1164
1164
|
return false;
|
|
1165
1165
|
}
|
|
1166
1166
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
1167
|
-
if (!(equals$
|
|
1167
|
+
if (!(equals$w(existing_filters_item, incoming_filters_item))) {
|
|
1168
1168
|
return false;
|
|
1169
1169
|
}
|
|
1170
1170
|
});
|
|
@@ -1181,7 +1181,7 @@ function equals$u(existing, incoming) {
|
|
|
1181
1181
|
if (existing_insightsSettings === undefined || incoming_insightsSettings === undefined) {
|
|
1182
1182
|
return false;
|
|
1183
1183
|
}
|
|
1184
|
-
if (!(equals$
|
|
1184
|
+
if (!(equals$t(existing_insightsSettings, incoming_insightsSettings))) {
|
|
1185
1185
|
return false;
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
@@ -1194,7 +1194,7 @@ function equals$u(existing, incoming) {
|
|
|
1194
1194
|
if (existing_measurementReference === undefined || incoming_measurementReference === undefined) {
|
|
1195
1195
|
return false;
|
|
1196
1196
|
}
|
|
1197
|
-
if (!(equals$
|
|
1197
|
+
if (!(equals$x(existing_measurementReference, incoming_measurementReference))) {
|
|
1198
1198
|
return false;
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
@@ -1207,7 +1207,7 @@ function equals$u(existing, incoming) {
|
|
|
1207
1207
|
if (existing_timeDimensionReference === undefined || incoming_timeDimensionReference === undefined) {
|
|
1208
1208
|
return false;
|
|
1209
1209
|
}
|
|
1210
|
-
if (!(equals$
|
|
1210
|
+
if (!(equals$x(existing_timeDimensionReference, incoming_timeDimensionReference))) {
|
|
1211
1211
|
return false;
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
@@ -1240,7 +1240,7 @@ const ingest$i = function SemanticMetricOutputRepresentationIngest(input, path,
|
|
|
1240
1240
|
}
|
|
1241
1241
|
const key = keyBuilderFromType$c(luvio, input);
|
|
1242
1242
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
1243
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "SemanticAuthoring", VERSION$
|
|
1243
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "SemanticAuthoring", VERSION$s, RepresentationType$i, equals$s);
|
|
1244
1244
|
return createLink(key);
|
|
1245
1245
|
};
|
|
1246
1246
|
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1253,7 +1253,7 @@ function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1253
1253
|
});
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
|
-
const VERSION$
|
|
1256
|
+
const VERSION$r = "a6709a9f16e02d0d8e3d8423ebc79c2b";
|
|
1257
1257
|
function validate$Z(obj, path = 'SemanticMetricCollectionOutputRepresentation') {
|
|
1258
1258
|
const v_error = (() => {
|
|
1259
1259
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1298,10 +1298,10 @@ function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
return input;
|
|
1300
1300
|
}
|
|
1301
|
-
const select$
|
|
1301
|
+
const select$I = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
1302
1302
|
return {
|
|
1303
1303
|
kind: 'Fragment',
|
|
1304
|
-
version: VERSION$
|
|
1304
|
+
version: VERSION$r,
|
|
1305
1305
|
private: [],
|
|
1306
1306
|
selections: [
|
|
1307
1307
|
{
|
|
@@ -1309,12 +1309,12 @@ const select$J = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
1309
1309
|
kind: 'Link',
|
|
1310
1310
|
plural: true,
|
|
1311
1311
|
required: false,
|
|
1312
|
-
fragment: select$
|
|
1312
|
+
fragment: select$J()
|
|
1313
1313
|
}
|
|
1314
1314
|
]
|
|
1315
1315
|
};
|
|
1316
1316
|
};
|
|
1317
|
-
function equals$
|
|
1317
|
+
function equals$r(existing, incoming) {
|
|
1318
1318
|
const existing_metrics = existing.metrics;
|
|
1319
1319
|
const incoming_metrics = incoming.metrics;
|
|
1320
1320
|
// if at least one of these optionals is defined
|
|
@@ -1344,7 +1344,7 @@ const ingest$h = function SemanticMetricCollectionOutputRepresentationIngest(inp
|
|
|
1344
1344
|
}
|
|
1345
1345
|
const key = path.fullPath;
|
|
1346
1346
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
1347
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SemanticAuthoring", VERSION$
|
|
1347
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SemanticAuthoring", VERSION$r, RepresentationType$h, equals$r);
|
|
1348
1348
|
return createLink(key);
|
|
1349
1349
|
};
|
|
1350
1350
|
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1363,22 +1363,22 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
1366
|
-
function select$
|
|
1367
|
-
return select$
|
|
1366
|
+
function select$H(luvio, params) {
|
|
1367
|
+
return select$I();
|
|
1368
1368
|
}
|
|
1369
|
-
function keyBuilder$
|
|
1369
|
+
function keyBuilder$A(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$h(storeKeyMap, luvio, response, () => keyBuilder$
|
|
1372
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
1373
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response, () => keyBuilder$A(luvio, resourceParams));
|
|
1374
1374
|
}
|
|
1375
|
-
function ingestSuccess$
|
|
1375
|
+
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
1376
1376
|
const { body } = response;
|
|
1377
|
-
const key = keyBuilder$
|
|
1377
|
+
const key = keyBuilder$A(luvio, resourceParams);
|
|
1378
1378
|
luvio.storeIngest(key, ingest$h, body);
|
|
1379
1379
|
const snapshot = luvio.storeLookup({
|
|
1380
1380
|
recordId: key,
|
|
1381
|
-
node: select$
|
|
1381
|
+
node: select$H(),
|
|
1382
1382
|
variables: {},
|
|
1383
1383
|
}, snapshotRefresh);
|
|
1384
1384
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1390,12 +1390,12 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1390
1390
|
return snapshot;
|
|
1391
1391
|
}
|
|
1392
1392
|
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
1393
|
-
const key = keyBuilder$
|
|
1393
|
+
const key = keyBuilder$A(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$j(config) {
|
|
1399
1399
|
const headers = {};
|
|
1400
1400
|
return {
|
|
1401
1401
|
baseUri: '/services/data/v63.0',
|
|
@@ -1409,62 +1409,62 @@ function createResourceRequest$h(config) {
|
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
1411
1411
|
|
|
1412
|
-
const adapterName$
|
|
1412
|
+
const adapterName$j = '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$j, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1419
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$k(getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1420
|
+
function keyBuilder$z(luvio, config) {
|
|
1421
|
+
const resourceParams = createResourceParams$j(config);
|
|
1422
|
+
return keyBuilder$A(luvio, resourceParams);
|
|
1423
1423
|
}
|
|
1424
|
-
function typeCheckConfig$
|
|
1424
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
1425
1425
|
const config = {};
|
|
1426
|
-
typeCheckConfig$
|
|
1426
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1427
1427
|
return config;
|
|
1428
1428
|
}
|
|
1429
|
-
function validateAdapterConfig$
|
|
1429
|
+
function validateAdapterConfig$j(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$j(untrustedConfig);
|
|
1437
1437
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1438
1438
|
return null;
|
|
1439
1439
|
}
|
|
1440
1440
|
return config;
|
|
1441
1441
|
}
|
|
1442
1442
|
function adapterFragment$a(luvio, config) {
|
|
1443
|
-
createResourceParams$
|
|
1444
|
-
return select$
|
|
1443
|
+
createResourceParams$j(config);
|
|
1444
|
+
return select$H();
|
|
1445
1445
|
}
|
|
1446
1446
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
1447
|
-
const snapshot = ingestSuccess$
|
|
1447
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
1448
1448
|
config,
|
|
1449
|
-
resolve: () => buildNetworkSnapshot$
|
|
1449
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
1450
1450
|
});
|
|
1451
1451
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1452
1452
|
}
|
|
1453
1453
|
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
1454
1454
|
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
1455
1455
|
config,
|
|
1456
|
-
resolve: () => buildNetworkSnapshot$
|
|
1456
|
+
resolve: () => buildNetworkSnapshot$j(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$j(luvio, config, options) {
|
|
1461
|
+
const resourceParams = createResourceParams$j(config);
|
|
1462
|
+
const request = createResourceRequest$j(resourceParams);
|
|
1463
1463
|
return luvio.dispatchResourceRequest(request, options)
|
|
1464
1464
|
.then((response) => {
|
|
1465
1465
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
1466
1466
|
const cache = new StoreKeyMap();
|
|
1467
|
-
getResponseCacheKeys$
|
|
1467
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
1468
1468
|
return cache;
|
|
1469
1469
|
});
|
|
1470
1470
|
}, (response) => {
|
|
@@ -1472,23 +1472,23 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
1472
1472
|
});
|
|
1473
1473
|
}
|
|
1474
1474
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
1475
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1475
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
1476
1476
|
}
|
|
1477
1477
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
1478
1478
|
const { luvio, config } = context;
|
|
1479
1479
|
const selector = {
|
|
1480
|
-
recordId: keyBuilder$
|
|
1480
|
+
recordId: keyBuilder$z(luvio, config),
|
|
1481
1481
|
node: adapterFragment$a(luvio, config),
|
|
1482
1482
|
variables: {},
|
|
1483
1483
|
};
|
|
1484
1484
|
const cacheSnapshot = storeLookup(selector, {
|
|
1485
1485
|
config,
|
|
1486
|
-
resolve: () => buildNetworkSnapshot$
|
|
1486
|
+
resolve: () => buildNetworkSnapshot$j(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$j(untrustedConfig, getSemanticMetricsByIds_ConfigPropertyNames);
|
|
1492
1492
|
// Invalid or incomplete config
|
|
1493
1493
|
if (config === null) {
|
|
1494
1494
|
return null;
|
|
@@ -1497,7 +1497,7 @@ const getSemanticMetricsByIdsAdapterFactory = (luvio) => function SemanticAuthor
|
|
|
1497
1497
|
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
1498
1498
|
};
|
|
1499
1499
|
|
|
1500
|
-
const VERSION$
|
|
1500
|
+
const VERSION$q = "3a32d382e7a2268096278aa8e5c6761a";
|
|
1501
1501
|
function validate$Y(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
1502
1502
|
const v_error = (() => {
|
|
1503
1503
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1518,10 +1518,10 @@ function validate$Y(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
1518
1518
|
})();
|
|
1519
1519
|
return v_error === undefined ? null : v_error;
|
|
1520
1520
|
}
|
|
1521
|
-
const select$
|
|
1521
|
+
const select$G = function SemanticBaseModelOutputRepresentationSelect() {
|
|
1522
1522
|
return {
|
|
1523
1523
|
kind: 'Fragment',
|
|
1524
|
-
version: VERSION$
|
|
1524
|
+
version: VERSION$q,
|
|
1525
1525
|
private: [],
|
|
1526
1526
|
selections: [
|
|
1527
1527
|
{
|
|
@@ -1536,7 +1536,7 @@ const select$H = function SemanticBaseModelOutputRepresentationSelect() {
|
|
|
1536
1536
|
]
|
|
1537
1537
|
};
|
|
1538
1538
|
};
|
|
1539
|
-
function equals$
|
|
1539
|
+
function equals$q(existing, incoming) {
|
|
1540
1540
|
const existing_apiName = existing.apiName;
|
|
1541
1541
|
const incoming_apiName = incoming.apiName;
|
|
1542
1542
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -1558,7 +1558,7 @@ function equals$s(existing, incoming) {
|
|
|
1558
1558
|
return true;
|
|
1559
1559
|
}
|
|
1560
1560
|
|
|
1561
|
-
const VERSION$
|
|
1561
|
+
const VERSION$p = "c9079354cd8127a37c0c13ea6686383c";
|
|
1562
1562
|
function validate$X(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
1563
1563
|
const v_error = (() => {
|
|
1564
1564
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1763,11 +1763,11 @@ function validate$X(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$F = function SemanticModelPartialOutputRepresentationSelect() {
|
|
1767
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$G();
|
|
1768
1768
|
return {
|
|
1769
1769
|
kind: 'Fragment',
|
|
1770
|
-
version: VERSION$
|
|
1770
|
+
version: VERSION$p,
|
|
1771
1771
|
private: [],
|
|
1772
1772
|
selections: [
|
|
1773
1773
|
{
|
|
@@ -1891,7 +1891,7 @@ const select$G = function SemanticModelPartialOutputRepresentationSelect() {
|
|
|
1891
1891
|
]
|
|
1892
1892
|
};
|
|
1893
1893
|
};
|
|
1894
|
-
function equals$
|
|
1894
|
+
function equals$p(existing, incoming) {
|
|
1895
1895
|
const existing_isLocked = existing.isLocked;
|
|
1896
1896
|
const incoming_isLocked = incoming.isLocked;
|
|
1897
1897
|
// if at least one of these optionals is defined
|
|
@@ -2135,7 +2135,7 @@ function equals$r(existing, incoming) {
|
|
|
2135
2135
|
return false;
|
|
2136
2136
|
}
|
|
2137
2137
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
2138
|
-
if (!(equals$
|
|
2138
|
+
if (!(equals$q(existing_baseModels_item, incoming_baseModels_item))) {
|
|
2139
2139
|
return false;
|
|
2140
2140
|
}
|
|
2141
2141
|
});
|
|
@@ -2177,7 +2177,7 @@ function equals$r(existing, incoming) {
|
|
|
2177
2177
|
return true;
|
|
2178
2178
|
}
|
|
2179
2179
|
|
|
2180
|
-
const VERSION$
|
|
2180
|
+
const VERSION$o = "198423ec58354256cc7ea6f4661ef669";
|
|
2181
2181
|
function validate$W(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
2182
2182
|
const v_error = (() => {
|
|
2183
2183
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2301,11 +2301,11 @@ const RepresentationType$g = 'SemanticModelCollectionOutputRepresentation';
|
|
|
2301
2301
|
function normalize$g(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$E = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
2305
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$F();
|
|
2306
2306
|
return {
|
|
2307
2307
|
kind: 'Fragment',
|
|
2308
|
-
version: VERSION$
|
|
2308
|
+
version: VERSION$o,
|
|
2309
2309
|
private: [],
|
|
2310
2310
|
selections: [
|
|
2311
2311
|
{
|
|
@@ -2341,7 +2341,7 @@ const select$F = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
|
2341
2341
|
]
|
|
2342
2342
|
};
|
|
2343
2343
|
};
|
|
2344
|
-
function equals$
|
|
2344
|
+
function equals$o(existing, incoming) {
|
|
2345
2345
|
const existing_count = existing.count;
|
|
2346
2346
|
const incoming_count = incoming.count;
|
|
2347
2347
|
if (!(existing_count === incoming_count)) {
|
|
@@ -2375,7 +2375,7 @@ function equals$q(existing, incoming) {
|
|
|
2375
2375
|
return false;
|
|
2376
2376
|
}
|
|
2377
2377
|
const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
|
|
2378
|
-
if (!(equals$
|
|
2378
|
+
if (!(equals$p(existing_items_item, incoming_items_item))) {
|
|
2379
2379
|
return false;
|
|
2380
2380
|
}
|
|
2381
2381
|
});
|
|
@@ -2420,7 +2420,7 @@ const ingest$g = function SemanticModelCollectionOutputRepresentationIngest(inpu
|
|
|
2420
2420
|
}
|
|
2421
2421
|
const key = path.fullPath;
|
|
2422
2422
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
2423
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SemanticAuthoring", VERSION$
|
|
2423
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SemanticAuthoring", VERSION$o, RepresentationType$g, equals$o);
|
|
2424
2424
|
return createLink(key);
|
|
2425
2425
|
};
|
|
2426
2426
|
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2433,22 +2433,22 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2433
2433
|
});
|
|
2434
2434
|
}
|
|
2435
2435
|
|
|
2436
|
-
function select$
|
|
2437
|
-
return select$
|
|
2436
|
+
function select$D(luvio, params) {
|
|
2437
|
+
return select$E();
|
|
2438
2438
|
}
|
|
2439
|
-
function keyBuilder$
|
|
2439
|
+
function keyBuilder$y(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$g(storeKeyMap, luvio, response, () => keyBuilder$
|
|
2442
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
2443
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$y(luvio, resourceParams));
|
|
2444
2444
|
}
|
|
2445
|
-
function ingestSuccess$
|
|
2445
|
+
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
2446
2446
|
const { body } = response;
|
|
2447
|
-
const key = keyBuilder$
|
|
2447
|
+
const key = keyBuilder$y(luvio, resourceParams);
|
|
2448
2448
|
luvio.storeIngest(key, ingest$g, body);
|
|
2449
2449
|
const snapshot = luvio.storeLookup({
|
|
2450
2450
|
recordId: key,
|
|
2451
|
-
node: select$
|
|
2451
|
+
node: select$D(),
|
|
2452
2452
|
variables: {},
|
|
2453
2453
|
}, snapshotRefresh);
|
|
2454
2454
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2460,12 +2460,12 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2460
2460
|
return snapshot;
|
|
2461
2461
|
}
|
|
2462
2462
|
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
2463
|
-
const key = keyBuilder$
|
|
2463
|
+
const key = keyBuilder$y(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$i(config) {
|
|
2469
2469
|
const headers = {};
|
|
2470
2470
|
return {
|
|
2471
2471
|
baseUri: '/services/data/v63.0',
|
|
@@ -2479,7 +2479,7 @@ function createResourceRequest$g(config) {
|
|
|
2479
2479
|
};
|
|
2480
2480
|
}
|
|
2481
2481
|
|
|
2482
|
-
const adapterName$
|
|
2482
|
+
const adapterName$i = '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$i, getSemanticModels_ConfigPropertyMetadata);
|
|
2495
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$k(getSemanticModels_ConfigPropertyMetadata);
|
|
2496
|
+
function keyBuilder$x(luvio, config) {
|
|
2497
|
+
const resourceParams = createResourceParams$i(config);
|
|
2498
|
+
return keyBuilder$y(luvio, resourceParams);
|
|
2499
2499
|
}
|
|
2500
|
-
function typeCheckConfig$
|
|
2500
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
2501
2501
|
const config = {};
|
|
2502
|
-
typeCheckConfig$
|
|
2502
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
2503
2503
|
return config;
|
|
2504
2504
|
}
|
|
2505
|
-
function validateAdapterConfig$
|
|
2505
|
+
function validateAdapterConfig$i(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$i(untrustedConfig);
|
|
2513
2513
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2514
2514
|
return null;
|
|
2515
2515
|
}
|
|
2516
2516
|
return config;
|
|
2517
2517
|
}
|
|
2518
2518
|
function adapterFragment$9(luvio, config) {
|
|
2519
|
-
createResourceParams$
|
|
2520
|
-
return select$
|
|
2519
|
+
createResourceParams$i(config);
|
|
2520
|
+
return select$D();
|
|
2521
2521
|
}
|
|
2522
2522
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
2523
|
-
const snapshot = ingestSuccess$
|
|
2523
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
2524
2524
|
config,
|
|
2525
|
-
resolve: () => buildNetworkSnapshot$
|
|
2525
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
2526
2526
|
});
|
|
2527
2527
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2528
2528
|
}
|
|
2529
2529
|
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
2530
2530
|
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
2531
2531
|
config,
|
|
2532
|
-
resolve: () => buildNetworkSnapshot$
|
|
2532
|
+
resolve: () => buildNetworkSnapshot$i(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$i(luvio, config, options) {
|
|
2537
|
+
const resourceParams = createResourceParams$i(config);
|
|
2538
|
+
const request = createResourceRequest$i(resourceParams);
|
|
2539
2539
|
return luvio.dispatchResourceRequest(request, options)
|
|
2540
2540
|
.then((response) => {
|
|
2541
2541
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
2542
2542
|
const cache = new StoreKeyMap();
|
|
2543
|
-
getResponseCacheKeys$
|
|
2543
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
2544
2544
|
return cache;
|
|
2545
2545
|
});
|
|
2546
2546
|
}, (response) => {
|
|
@@ -2548,23 +2548,23 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
2548
2548
|
});
|
|
2549
2549
|
}
|
|
2550
2550
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
2551
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2551
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
2552
2552
|
}
|
|
2553
2553
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
2554
2554
|
const { luvio, config } = context;
|
|
2555
2555
|
const selector = {
|
|
2556
|
-
recordId: keyBuilder$
|
|
2556
|
+
recordId: keyBuilder$x(luvio, config),
|
|
2557
2557
|
node: adapterFragment$9(luvio, config),
|
|
2558
2558
|
variables: {},
|
|
2559
2559
|
};
|
|
2560
2560
|
const cacheSnapshot = storeLookup(selector, {
|
|
2561
2561
|
config,
|
|
2562
|
-
resolve: () => buildNetworkSnapshot$
|
|
2562
|
+
resolve: () => buildNetworkSnapshot$i(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$i(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
2568
2568
|
// Invalid or incomplete config
|
|
2569
2569
|
if (config === null) {
|
|
2570
2570
|
return null;
|
|
@@ -4124,7 +4124,7 @@ function validate$y(obj, path = 'SemanticParameterInputRepresentation') {
|
|
|
4124
4124
|
return v_error === undefined ? null : v_error;
|
|
4125
4125
|
}
|
|
4126
4126
|
|
|
4127
|
-
const VERSION$
|
|
4127
|
+
const VERSION$n = "8137018d7bcc1592081ebddf74ddd42a";
|
|
4128
4128
|
function validate$x(obj, path = 'SemanticCalculatedDimensionOutputRepresentation') {
|
|
4129
4129
|
const v_error = (() => {
|
|
4130
4130
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4283,23 +4283,23 @@ function validate$x(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4283
4283
|
return v_error === undefined ? null : v_error;
|
|
4284
4284
|
}
|
|
4285
4285
|
const RepresentationType$f = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
4286
|
-
function keyBuilder$
|
|
4286
|
+
function keyBuilder$w(luvio, config) {
|
|
4287
4287
|
return keyPrefix + '::' + RepresentationType$f + ':' + config.name;
|
|
4288
4288
|
}
|
|
4289
4289
|
function keyBuilderFromType$b(luvio, object) {
|
|
4290
4290
|
const keyParams = {
|
|
4291
4291
|
name: object.id
|
|
4292
4292
|
};
|
|
4293
|
-
return keyBuilder$
|
|
4293
|
+
return keyBuilder$w(luvio, keyParams);
|
|
4294
4294
|
}
|
|
4295
4295
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
4296
4296
|
return input;
|
|
4297
4297
|
}
|
|
4298
|
-
const select$
|
|
4299
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4298
|
+
const select$C = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
4299
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$N();
|
|
4300
4300
|
return {
|
|
4301
4301
|
kind: 'Fragment',
|
|
4302
|
-
version: VERSION$
|
|
4302
|
+
version: VERSION$n,
|
|
4303
4303
|
private: [],
|
|
4304
4304
|
selections: [
|
|
4305
4305
|
{
|
|
@@ -4408,7 +4408,7 @@ const select$D = function SemanticCalculatedDimensionOutputRepresentationSelect(
|
|
|
4408
4408
|
]
|
|
4409
4409
|
};
|
|
4410
4410
|
};
|
|
4411
|
-
function equals$
|
|
4411
|
+
function equals$n(existing, incoming) {
|
|
4412
4412
|
const existing_isVisible = existing.isVisible;
|
|
4413
4413
|
const incoming_isVisible = incoming.isVisible;
|
|
4414
4414
|
// if at least one of these optionals is defined
|
|
@@ -4647,7 +4647,7 @@ function equals$p(existing, incoming) {
|
|
|
4647
4647
|
return false;
|
|
4648
4648
|
}
|
|
4649
4649
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
4650
|
-
if (!(equals$
|
|
4650
|
+
if (!(equals$w(existing_filters_item, incoming_filters_item))) {
|
|
4651
4651
|
return false;
|
|
4652
4652
|
}
|
|
4653
4653
|
});
|
|
@@ -4666,7 +4666,7 @@ const ingest$f = function SemanticCalculatedDimensionOutputRepresentationIngest(
|
|
|
4666
4666
|
}
|
|
4667
4667
|
const key = keyBuilderFromType$b(luvio, input);
|
|
4668
4668
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
4669
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SemanticAuthoring", VERSION$
|
|
4669
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SemanticAuthoring", VERSION$n, RepresentationType$f, equals$n);
|
|
4670
4670
|
return createLink(key);
|
|
4671
4671
|
};
|
|
4672
4672
|
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -4679,7 +4679,7 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4679
4679
|
});
|
|
4680
4680
|
}
|
|
4681
4681
|
|
|
4682
|
-
const VERSION$
|
|
4682
|
+
const VERSION$m = "4dc83d3583b0937db8808447abe03505";
|
|
4683
4683
|
function validate$w(obj, path = 'SemanticCalculatedMeasurementOutputRepresentation') {
|
|
4684
4684
|
const v_error = (() => {
|
|
4685
4685
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4880,23 +4880,23 @@ function validate$w(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
4880
4880
|
return v_error === undefined ? null : v_error;
|
|
4881
4881
|
}
|
|
4882
4882
|
const RepresentationType$e = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
4883
|
-
function keyBuilder$
|
|
4883
|
+
function keyBuilder$v(luvio, config) {
|
|
4884
4884
|
return keyPrefix + '::' + RepresentationType$e + ':' + config.name;
|
|
4885
4885
|
}
|
|
4886
4886
|
function keyBuilderFromType$a(luvio, object) {
|
|
4887
4887
|
const keyParams = {
|
|
4888
4888
|
name: object.id
|
|
4889
4889
|
};
|
|
4890
|
-
return keyBuilder$
|
|
4890
|
+
return keyBuilder$v(luvio, keyParams);
|
|
4891
4891
|
}
|
|
4892
4892
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4893
4893
|
return input;
|
|
4894
4894
|
}
|
|
4895
|
-
const select$
|
|
4896
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4895
|
+
const select$B = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
4896
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$N();
|
|
4897
4897
|
return {
|
|
4898
4898
|
kind: 'Fragment',
|
|
4899
|
-
version: VERSION$
|
|
4899
|
+
version: VERSION$m,
|
|
4900
4900
|
private: [],
|
|
4901
4901
|
selections: [
|
|
4902
4902
|
{
|
|
@@ -5035,7 +5035,7 @@ const select$C = function SemanticCalculatedMeasurementOutputRepresentationSelec
|
|
|
5035
5035
|
]
|
|
5036
5036
|
};
|
|
5037
5037
|
};
|
|
5038
|
-
function equals$
|
|
5038
|
+
function equals$m(existing, incoming) {
|
|
5039
5039
|
const existing_isAggregatable = existing.isAggregatable;
|
|
5040
5040
|
const incoming_isAggregatable = incoming.isAggregatable;
|
|
5041
5041
|
// if at least one of these optionals is defined
|
|
@@ -5352,7 +5352,7 @@ function equals$o(existing, incoming) {
|
|
|
5352
5352
|
return false;
|
|
5353
5353
|
}
|
|
5354
5354
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
5355
|
-
if (!(equals$
|
|
5355
|
+
if (!(equals$w(existing_filters_item, incoming_filters_item))) {
|
|
5356
5356
|
return false;
|
|
5357
5357
|
}
|
|
5358
5358
|
});
|
|
@@ -5371,7 +5371,7 @@ const ingest$e = function SemanticCalculatedMeasurementOutputRepresentationInges
|
|
|
5371
5371
|
}
|
|
5372
5372
|
const key = keyBuilderFromType$a(luvio, input);
|
|
5373
5373
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5374
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SemanticAuthoring", VERSION$
|
|
5374
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SemanticAuthoring", VERSION$m, RepresentationType$e, equals$m);
|
|
5375
5375
|
return createLink(key);
|
|
5376
5376
|
};
|
|
5377
5377
|
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -5701,7 +5701,7 @@ function validate$u(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
5701
5701
|
return v_error === undefined ? null : v_error;
|
|
5702
5702
|
}
|
|
5703
5703
|
|
|
5704
|
-
const VERSION$
|
|
5704
|
+
const VERSION$l = "4f111b93807b811179eb310384efdc35";
|
|
5705
5705
|
function validate$t(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
5706
5706
|
const v_error = (() => {
|
|
5707
5707
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5873,27 +5873,27 @@ function validate$t(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5873
5873
|
return v_error === undefined ? null : v_error;
|
|
5874
5874
|
}
|
|
5875
5875
|
const RepresentationType$d = 'SemanticDataObjectOutputRepresentation';
|
|
5876
|
-
function keyBuilder$
|
|
5876
|
+
function keyBuilder$u(luvio, config) {
|
|
5877
5877
|
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
5878
5878
|
}
|
|
5879
5879
|
function keyBuilderFromType$9(luvio, object) {
|
|
5880
5880
|
const keyParams = {
|
|
5881
5881
|
name: object.id
|
|
5882
5882
|
};
|
|
5883
|
-
return keyBuilder$
|
|
5883
|
+
return keyBuilder$u(luvio, keyParams);
|
|
5884
5884
|
}
|
|
5885
5885
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
5886
5886
|
return input;
|
|
5887
5887
|
}
|
|
5888
|
-
const select$
|
|
5888
|
+
const select$A = function SemanticDataObjectOutputRepresentationSelect() {
|
|
5889
5889
|
return {
|
|
5890
5890
|
kind: 'Fragment',
|
|
5891
|
-
version: VERSION$
|
|
5891
|
+
version: VERSION$l,
|
|
5892
5892
|
private: [],
|
|
5893
5893
|
opaque: true
|
|
5894
5894
|
};
|
|
5895
5895
|
};
|
|
5896
|
-
function equals$
|
|
5896
|
+
function equals$l(existing, incoming) {
|
|
5897
5897
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5898
5898
|
return false;
|
|
5899
5899
|
}
|
|
@@ -5908,7 +5908,7 @@ const ingest$d = function SemanticDataObjectOutputRepresentationIngest(input, pa
|
|
|
5908
5908
|
}
|
|
5909
5909
|
const key = keyBuilderFromType$9(luvio, input);
|
|
5910
5910
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5911
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SemanticAuthoring", VERSION$
|
|
5911
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SemanticAuthoring", VERSION$l, RepresentationType$d, equals$l);
|
|
5912
5912
|
return createLink(key);
|
|
5913
5913
|
};
|
|
5914
5914
|
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -5921,7 +5921,7 @@ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5921
5921
|
});
|
|
5922
5922
|
}
|
|
5923
5923
|
|
|
5924
|
-
const VERSION$
|
|
5924
|
+
const VERSION$k = "ed64ca1a99171ace8b53aff11746cc2a";
|
|
5925
5925
|
function validate$s(obj, path = 'BinDimensionConfigurationOutputRepresentation') {
|
|
5926
5926
|
const v_error = (() => {
|
|
5927
5927
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5931,10 +5931,10 @@ function validate$s(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
5931
5931
|
})();
|
|
5932
5932
|
return v_error === undefined ? null : v_error;
|
|
5933
5933
|
}
|
|
5934
|
-
const select$
|
|
5934
|
+
const select$z = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
5935
5935
|
return {
|
|
5936
5936
|
kind: 'Fragment',
|
|
5937
|
-
version: VERSION$
|
|
5937
|
+
version: VERSION$k,
|
|
5938
5938
|
private: [],
|
|
5939
5939
|
selections: [
|
|
5940
5940
|
{
|
|
@@ -5944,7 +5944,7 @@ const select$A = function BinDimensionConfigurationOutputRepresentationSelect()
|
|
|
5944
5944
|
]
|
|
5945
5945
|
};
|
|
5946
5946
|
};
|
|
5947
|
-
function equals$
|
|
5947
|
+
function equals$k(existing, incoming) {
|
|
5948
5948
|
const existing_constantBinSize = existing.constantBinSize;
|
|
5949
5949
|
const incoming_constantBinSize = incoming.constantBinSize;
|
|
5950
5950
|
if (!(existing_constantBinSize === incoming_constantBinSize)) {
|
|
@@ -5953,7 +5953,7 @@ function equals$m(existing, incoming) {
|
|
|
5953
5953
|
return true;
|
|
5954
5954
|
}
|
|
5955
5955
|
|
|
5956
|
-
const VERSION$
|
|
5956
|
+
const VERSION$j = "2cdadcd630abb7b981b2d131880a68c0";
|
|
5957
5957
|
function validate$r(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
5958
5958
|
const v_error = (() => {
|
|
5959
5959
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5981,10 +5981,10 @@ function validate$r(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
5981
5981
|
})();
|
|
5982
5982
|
return v_error === undefined ? null : v_error;
|
|
5983
5983
|
}
|
|
5984
|
-
const select$
|
|
5984
|
+
const select$y = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
5985
5985
|
return {
|
|
5986
5986
|
kind: 'Fragment',
|
|
5987
|
-
version: VERSION$
|
|
5987
|
+
version: VERSION$j,
|
|
5988
5988
|
private: [],
|
|
5989
5989
|
selections: [
|
|
5990
5990
|
{
|
|
@@ -6000,7 +6000,7 @@ const select$z = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
|
6000
6000
|
]
|
|
6001
6001
|
};
|
|
6002
6002
|
};
|
|
6003
|
-
function equals$
|
|
6003
|
+
function equals$j(existing, incoming) {
|
|
6004
6004
|
const existing_name = existing.name;
|
|
6005
6005
|
const incoming_name = incoming.name;
|
|
6006
6006
|
if (!(existing_name === incoming_name)) {
|
|
@@ -6027,7 +6027,7 @@ function equals$l(existing, incoming) {
|
|
|
6027
6027
|
return true;
|
|
6028
6028
|
}
|
|
6029
6029
|
|
|
6030
|
-
const VERSION$
|
|
6030
|
+
const VERSION$i = "55c60b6207985632192cb4e419822a86";
|
|
6031
6031
|
function validate$q(obj, path = 'GroupDimensionConfigurationOutputRepresentation') {
|
|
6032
6032
|
const v_error = (() => {
|
|
6033
6033
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6060,11 +6060,11 @@ function validate$q(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
6060
6060
|
})();
|
|
6061
6061
|
return v_error === undefined ? null : v_error;
|
|
6062
6062
|
}
|
|
6063
|
-
const select$
|
|
6064
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
6063
|
+
const select$x = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
6064
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$y();
|
|
6065
6065
|
return {
|
|
6066
6066
|
kind: 'Fragment',
|
|
6067
|
-
version: VERSION$
|
|
6067
|
+
version: VERSION$i,
|
|
6068
6068
|
private: [],
|
|
6069
6069
|
selections: [
|
|
6070
6070
|
{
|
|
@@ -6082,7 +6082,7 @@ const select$y = function GroupDimensionConfigurationOutputRepresentationSelect(
|
|
|
6082
6082
|
]
|
|
6083
6083
|
};
|
|
6084
6084
|
};
|
|
6085
|
-
function equals$
|
|
6085
|
+
function equals$i(existing, incoming) {
|
|
6086
6086
|
const existing_ungroupedValuesGroupName = existing.ungroupedValuesGroupName;
|
|
6087
6087
|
const incoming_ungroupedValuesGroupName = incoming.ungroupedValuesGroupName;
|
|
6088
6088
|
// if at least one of these optionals is defined
|
|
@@ -6106,7 +6106,7 @@ function equals$k(existing, incoming) {
|
|
|
6106
6106
|
return false;
|
|
6107
6107
|
}
|
|
6108
6108
|
const equals_groups_items = equalsArray(existing_groups, incoming_groups, (existing_groups_item, incoming_groups_item) => {
|
|
6109
|
-
if (!(equals$
|
|
6109
|
+
if (!(equals$j(existing_groups_item, incoming_groups_item))) {
|
|
6110
6110
|
return false;
|
|
6111
6111
|
}
|
|
6112
6112
|
});
|
|
@@ -6117,7 +6117,7 @@ function equals$k(existing, incoming) {
|
|
|
6117
6117
|
return true;
|
|
6118
6118
|
}
|
|
6119
6119
|
|
|
6120
|
-
const VERSION$
|
|
6120
|
+
const VERSION$h = "50dc390b159159afb1945b9a811c9f80";
|
|
6121
6121
|
function validate$p(obj, path = 'SemanticGroupingConfigurationOutputRepresentation') {
|
|
6122
6122
|
const v_error = (() => {
|
|
6123
6123
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6146,12 +6146,12 @@ function validate$p(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6146
6146
|
})();
|
|
6147
6147
|
return v_error === undefined ? null : v_error;
|
|
6148
6148
|
}
|
|
6149
|
-
const select$
|
|
6150
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6151
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6149
|
+
const select$w = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
6150
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$z();
|
|
6151
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$x();
|
|
6152
6152
|
return {
|
|
6153
6153
|
kind: 'Fragment',
|
|
6154
|
-
version: VERSION$
|
|
6154
|
+
version: VERSION$h,
|
|
6155
6155
|
private: [],
|
|
6156
6156
|
selections: [
|
|
6157
6157
|
{
|
|
@@ -6169,7 +6169,7 @@ const select$x = function SemanticGroupingConfigurationOutputRepresentationSelec
|
|
|
6169
6169
|
]
|
|
6170
6170
|
};
|
|
6171
6171
|
};
|
|
6172
|
-
function equals$
|
|
6172
|
+
function equals$h(existing, incoming) {
|
|
6173
6173
|
const existing_binDimension = existing.binDimension;
|
|
6174
6174
|
const incoming_binDimension = incoming.binDimension;
|
|
6175
6175
|
// if at least one of these optionals is defined
|
|
@@ -6179,7 +6179,7 @@ function equals$j(existing, incoming) {
|
|
|
6179
6179
|
if (existing_binDimension === undefined || incoming_binDimension === undefined) {
|
|
6180
6180
|
return false;
|
|
6181
6181
|
}
|
|
6182
|
-
if (!(equals$
|
|
6182
|
+
if (!(equals$k(existing_binDimension, incoming_binDimension))) {
|
|
6183
6183
|
return false;
|
|
6184
6184
|
}
|
|
6185
6185
|
}
|
|
@@ -6192,14 +6192,14 @@ function equals$j(existing, incoming) {
|
|
|
6192
6192
|
if (existing_groupDimension === undefined || incoming_groupDimension === undefined) {
|
|
6193
6193
|
return false;
|
|
6194
6194
|
}
|
|
6195
|
-
if (!(equals$
|
|
6195
|
+
if (!(equals$i(existing_groupDimension, incoming_groupDimension))) {
|
|
6196
6196
|
return false;
|
|
6197
6197
|
}
|
|
6198
6198
|
}
|
|
6199
6199
|
return true;
|
|
6200
6200
|
}
|
|
6201
6201
|
|
|
6202
|
-
const VERSION$
|
|
6202
|
+
const VERSION$g = "1daec40706bf767c719fa58831fad462";
|
|
6203
6203
|
function validate$o(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
6204
6204
|
const v_error = (() => {
|
|
6205
6205
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6292,24 +6292,24 @@ function validate$o(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6292
6292
|
return v_error === undefined ? null : v_error;
|
|
6293
6293
|
}
|
|
6294
6294
|
const RepresentationType$c = 'SemanticGroupingOutputRepresentation';
|
|
6295
|
-
function keyBuilder$
|
|
6295
|
+
function keyBuilder$t(luvio, config) {
|
|
6296
6296
|
return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
|
|
6297
6297
|
}
|
|
6298
6298
|
function keyBuilderFromType$8(luvio, object) {
|
|
6299
6299
|
const keyParams = {
|
|
6300
6300
|
name: object.id
|
|
6301
6301
|
};
|
|
6302
|
-
return keyBuilder$
|
|
6302
|
+
return keyBuilder$t(luvio, keyParams);
|
|
6303
6303
|
}
|
|
6304
6304
|
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
6305
6305
|
return input;
|
|
6306
6306
|
}
|
|
6307
|
-
const select$
|
|
6308
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
6309
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6307
|
+
const select$v = function SemanticGroupingOutputRepresentationSelect() {
|
|
6308
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$w();
|
|
6309
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$O();
|
|
6310
6310
|
return {
|
|
6311
6311
|
kind: 'Fragment',
|
|
6312
|
-
version: VERSION$
|
|
6312
|
+
version: VERSION$g,
|
|
6313
6313
|
private: [],
|
|
6314
6314
|
selections: [
|
|
6315
6315
|
{
|
|
@@ -6375,7 +6375,7 @@ const select$w = function SemanticGroupingOutputRepresentationSelect() {
|
|
|
6375
6375
|
]
|
|
6376
6376
|
};
|
|
6377
6377
|
};
|
|
6378
|
-
function equals$
|
|
6378
|
+
function equals$g(existing, incoming) {
|
|
6379
6379
|
const existing_apiName = existing.apiName;
|
|
6380
6380
|
const incoming_apiName = incoming.apiName;
|
|
6381
6381
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -6481,12 +6481,12 @@ function equals$i(existing, incoming) {
|
|
|
6481
6481
|
}
|
|
6482
6482
|
const existing_configuration = existing.configuration;
|
|
6483
6483
|
const incoming_configuration = incoming.configuration;
|
|
6484
|
-
if (!(equals$
|
|
6484
|
+
if (!(equals$h(existing_configuration, incoming_configuration))) {
|
|
6485
6485
|
return false;
|
|
6486
6486
|
}
|
|
6487
6487
|
const existing_fieldReference = existing.fieldReference;
|
|
6488
6488
|
const incoming_fieldReference = incoming.fieldReference;
|
|
6489
|
-
if (!(equals$
|
|
6489
|
+
if (!(equals$x(existing_fieldReference, incoming_fieldReference))) {
|
|
6490
6490
|
return false;
|
|
6491
6491
|
}
|
|
6492
6492
|
return true;
|
|
@@ -6500,7 +6500,7 @@ const ingest$c = function SemanticGroupingOutputRepresentationIngest(input, path
|
|
|
6500
6500
|
}
|
|
6501
6501
|
const key = keyBuilderFromType$8(luvio, input);
|
|
6502
6502
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
6503
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SemanticAuthoring", VERSION$
|
|
6503
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SemanticAuthoring", VERSION$g, RepresentationType$c, equals$g);
|
|
6504
6504
|
return createLink(key);
|
|
6505
6505
|
};
|
|
6506
6506
|
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -6513,7 +6513,7 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6513
6513
|
});
|
|
6514
6514
|
}
|
|
6515
6515
|
|
|
6516
|
-
const VERSION$
|
|
6516
|
+
const VERSION$f = "c5144c317ac72b60d580cab803514b8d";
|
|
6517
6517
|
function validate$n(obj, path = 'SemanticRelationshipCriteriaOutputRepresentation') {
|
|
6518
6518
|
const v_error = (() => {
|
|
6519
6519
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6557,10 +6557,10 @@ function validate$n(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
6557
6557
|
})();
|
|
6558
6558
|
return v_error === undefined ? null : v_error;
|
|
6559
6559
|
}
|
|
6560
|
-
const select$
|
|
6560
|
+
const select$u = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
6561
6561
|
return {
|
|
6562
6562
|
kind: 'Fragment',
|
|
6563
|
-
version: VERSION$
|
|
6563
|
+
version: VERSION$f,
|
|
6564
6564
|
private: [],
|
|
6565
6565
|
selections: [
|
|
6566
6566
|
{
|
|
@@ -6591,7 +6591,7 @@ const select$v = function SemanticRelationshipCriteriaOutputRepresentationSelect
|
|
|
6591
6591
|
]
|
|
6592
6592
|
};
|
|
6593
6593
|
};
|
|
6594
|
-
function equals$
|
|
6594
|
+
function equals$f(existing, incoming) {
|
|
6595
6595
|
const existing_joinOperator = existing.joinOperator;
|
|
6596
6596
|
const incoming_joinOperator = incoming.joinOperator;
|
|
6597
6597
|
// if at least one of these optionals is defined
|
|
@@ -6660,7 +6660,7 @@ function equals$h(existing, incoming) {
|
|
|
6660
6660
|
return true;
|
|
6661
6661
|
}
|
|
6662
6662
|
|
|
6663
|
-
const VERSION$
|
|
6663
|
+
const VERSION$e = "b9778dace5726fcb57804d3afd529246";
|
|
6664
6664
|
function validate$m(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
6665
6665
|
const v_error = (() => {
|
|
6666
6666
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6791,23 +6791,23 @@ function validate$m(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
6791
6791
|
return v_error === undefined ? null : v_error;
|
|
6792
6792
|
}
|
|
6793
6793
|
const RepresentationType$b = 'SemanticRelationshipOutputRepresentation';
|
|
6794
|
-
function keyBuilder$
|
|
6794
|
+
function keyBuilder$s(luvio, config) {
|
|
6795
6795
|
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
6796
6796
|
}
|
|
6797
6797
|
function keyBuilderFromType$7(luvio, object) {
|
|
6798
6798
|
const keyParams = {
|
|
6799
6799
|
name: object.id
|
|
6800
6800
|
};
|
|
6801
|
-
return keyBuilder$
|
|
6801
|
+
return keyBuilder$s(luvio, keyParams);
|
|
6802
6802
|
}
|
|
6803
6803
|
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
6804
6804
|
return input;
|
|
6805
6805
|
}
|
|
6806
|
-
const select$
|
|
6807
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
6806
|
+
const select$t = function SemanticRelationshipOutputRepresentationSelect() {
|
|
6807
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$u();
|
|
6808
6808
|
return {
|
|
6809
6809
|
kind: 'Fragment',
|
|
6810
|
-
version: VERSION$
|
|
6810
|
+
version: VERSION$e,
|
|
6811
6811
|
private: [],
|
|
6812
6812
|
selections: [
|
|
6813
6813
|
{
|
|
@@ -6896,7 +6896,7 @@ const select$u = function SemanticRelationshipOutputRepresentationSelect() {
|
|
|
6896
6896
|
]
|
|
6897
6897
|
};
|
|
6898
6898
|
};
|
|
6899
|
-
function equals$
|
|
6899
|
+
function equals$e(existing, incoming) {
|
|
6900
6900
|
const existing_isEnabled = existing.isEnabled;
|
|
6901
6901
|
const incoming_isEnabled = incoming.isEnabled;
|
|
6902
6902
|
// if at least one of these optionals is defined
|
|
@@ -7083,7 +7083,7 @@ function equals$g(existing, incoming) {
|
|
|
7083
7083
|
return false;
|
|
7084
7084
|
}
|
|
7085
7085
|
const equals_criteria_items = equalsArray(existing_criteria, incoming_criteria, (existing_criteria_item, incoming_criteria_item) => {
|
|
7086
|
-
if (!(equals$
|
|
7086
|
+
if (!(equals$f(existing_criteria_item, incoming_criteria_item))) {
|
|
7087
7087
|
return false;
|
|
7088
7088
|
}
|
|
7089
7089
|
});
|
|
@@ -7102,7 +7102,7 @@ const ingest$b = function SemanticRelationshipOutputRepresentationIngest(input,
|
|
|
7102
7102
|
}
|
|
7103
7103
|
const key = keyBuilderFromType$7(luvio, input);
|
|
7104
7104
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7105
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SemanticAuthoring", VERSION$
|
|
7105
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SemanticAuthoring", VERSION$e, RepresentationType$b, equals$e);
|
|
7106
7106
|
return createLink(key);
|
|
7107
7107
|
};
|
|
7108
7108
|
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -7115,7 +7115,7 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7115
7115
|
});
|
|
7116
7116
|
}
|
|
7117
7117
|
|
|
7118
|
-
const VERSION$
|
|
7118
|
+
const VERSION$d = "eaf9b57a92e764fb2b5c27b6e031cfe1";
|
|
7119
7119
|
function validate$l(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
7120
7120
|
const v_error = (() => {
|
|
7121
7121
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7231,27 +7231,27 @@ function validate$l(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7231
7231
|
return v_error === undefined ? null : v_error;
|
|
7232
7232
|
}
|
|
7233
7233
|
const RepresentationType$a = 'SemanticMappedFieldOutputRepresentation';
|
|
7234
|
-
function keyBuilder$
|
|
7234
|
+
function keyBuilder$r(luvio, config) {
|
|
7235
7235
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
7236
7236
|
}
|
|
7237
7237
|
function keyBuilderFromType$6(luvio, object) {
|
|
7238
7238
|
const keyParams = {
|
|
7239
7239
|
name: object.id
|
|
7240
7240
|
};
|
|
7241
|
-
return keyBuilder$
|
|
7241
|
+
return keyBuilder$r(luvio, keyParams);
|
|
7242
7242
|
}
|
|
7243
7243
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
7244
7244
|
return input;
|
|
7245
7245
|
}
|
|
7246
|
-
const select$
|
|
7246
|
+
const select$s = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
7247
7247
|
return {
|
|
7248
7248
|
kind: 'Fragment',
|
|
7249
|
-
version: VERSION$
|
|
7249
|
+
version: VERSION$d,
|
|
7250
7250
|
private: [],
|
|
7251
7251
|
opaque: true
|
|
7252
7252
|
};
|
|
7253
7253
|
};
|
|
7254
|
-
function equals$
|
|
7254
|
+
function equals$d(existing, incoming) {
|
|
7255
7255
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
7256
7256
|
return false;
|
|
7257
7257
|
}
|
|
@@ -7266,7 +7266,7 @@ const ingest$a = function SemanticMappedFieldOutputRepresentationIngest(input, p
|
|
|
7266
7266
|
}
|
|
7267
7267
|
const key = keyBuilderFromType$6(luvio, input);
|
|
7268
7268
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7269
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SemanticAuthoring", VERSION$
|
|
7269
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SemanticAuthoring", VERSION$d, RepresentationType$a, equals$d);
|
|
7270
7270
|
return createLink(key);
|
|
7271
7271
|
};
|
|
7272
7272
|
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -7279,7 +7279,7 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7279
7279
|
});
|
|
7280
7280
|
}
|
|
7281
7281
|
|
|
7282
|
-
const VERSION$
|
|
7282
|
+
const VERSION$c = "69fe23112140e9fae50135dcb15c24c2";
|
|
7283
7283
|
function validate$k(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
7284
7284
|
const v_error = (() => {
|
|
7285
7285
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7407,14 +7407,14 @@ function validate$k(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
7407
7407
|
return v_error === undefined ? null : v_error;
|
|
7408
7408
|
}
|
|
7409
7409
|
const RepresentationType$9 = 'SemanticUnionOutputRepresentation';
|
|
7410
|
-
function keyBuilder$
|
|
7410
|
+
function keyBuilder$q(luvio, config) {
|
|
7411
7411
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
|
|
7412
7412
|
}
|
|
7413
7413
|
function keyBuilderFromType$5(luvio, object) {
|
|
7414
7414
|
const keyParams = {
|
|
7415
7415
|
name: object.id
|
|
7416
7416
|
};
|
|
7417
|
-
return keyBuilder$
|
|
7417
|
+
return keyBuilder$q(luvio, keyParams);
|
|
7418
7418
|
}
|
|
7419
7419
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
7420
7420
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -7455,10 +7455,10 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
7455
7455
|
}
|
|
7456
7456
|
return input;
|
|
7457
7457
|
}
|
|
7458
|
-
const select$
|
|
7458
|
+
const select$r = function SemanticUnionOutputRepresentationSelect() {
|
|
7459
7459
|
return {
|
|
7460
7460
|
kind: 'Fragment',
|
|
7461
|
-
version: VERSION$
|
|
7461
|
+
version: VERSION$c,
|
|
7462
7462
|
private: [],
|
|
7463
7463
|
selections: [
|
|
7464
7464
|
{
|
|
@@ -7517,19 +7517,19 @@ const select$s = function SemanticUnionOutputRepresentationSelect() {
|
|
|
7517
7517
|
kind: 'Link',
|
|
7518
7518
|
plural: true,
|
|
7519
7519
|
required: false,
|
|
7520
|
-
fragment: select$
|
|
7520
|
+
fragment: select$A()
|
|
7521
7521
|
},
|
|
7522
7522
|
{
|
|
7523
7523
|
name: 'semanticMappedFields',
|
|
7524
7524
|
kind: 'Link',
|
|
7525
7525
|
plural: true,
|
|
7526
7526
|
required: false,
|
|
7527
|
-
fragment: select$
|
|
7527
|
+
fragment: select$s()
|
|
7528
7528
|
}
|
|
7529
7529
|
]
|
|
7530
7530
|
};
|
|
7531
7531
|
};
|
|
7532
|
-
function equals$
|
|
7532
|
+
function equals$c(existing, incoming) {
|
|
7533
7533
|
const existing_apiName = existing.apiName;
|
|
7534
7534
|
const incoming_apiName = incoming.apiName;
|
|
7535
7535
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -7688,7 +7688,7 @@ const ingest$9 = function SemanticUnionOutputRepresentationIngest(input, path, l
|
|
|
7688
7688
|
}
|
|
7689
7689
|
const key = keyBuilderFromType$5(luvio, input);
|
|
7690
7690
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7691
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SemanticAuthoring", VERSION$
|
|
7691
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SemanticAuthoring", VERSION$c, RepresentationType$9, equals$c);
|
|
7692
7692
|
return createLink(key);
|
|
7693
7693
|
};
|
|
7694
7694
|
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -7713,7 +7713,7 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7713
7713
|
}
|
|
7714
7714
|
}
|
|
7715
7715
|
|
|
7716
|
-
const VERSION$
|
|
7716
|
+
const VERSION$b = "f186bf0514421e7f42e284136d60ea6c";
|
|
7717
7717
|
function validate$j(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
7718
7718
|
const v_error = (() => {
|
|
7719
7719
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7865,14 +7865,14 @@ function validate$j(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7865
7865
|
return v_error === undefined ? null : v_error;
|
|
7866
7866
|
}
|
|
7867
7867
|
const RepresentationType$8 = 'SemanticLogicalViewOutputRepresentation';
|
|
7868
|
-
function keyBuilder$
|
|
7868
|
+
function keyBuilder$p(luvio, config) {
|
|
7869
7869
|
return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
|
|
7870
7870
|
}
|
|
7871
7871
|
function keyBuilderFromType$4(luvio, object) {
|
|
7872
7872
|
const keyParams = {
|
|
7873
7873
|
name: object.id
|
|
7874
7874
|
};
|
|
7875
|
-
return keyBuilder$
|
|
7875
|
+
return keyBuilder$p(luvio, keyParams);
|
|
7876
7876
|
}
|
|
7877
7877
|
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
7878
7878
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -7931,11 +7931,11 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
7931
7931
|
}
|
|
7932
7932
|
return input;
|
|
7933
7933
|
}
|
|
7934
|
-
const select$
|
|
7935
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
7934
|
+
const select$q = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
7935
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$N();
|
|
7936
7936
|
return {
|
|
7937
7937
|
kind: 'Fragment',
|
|
7938
|
-
version: VERSION$
|
|
7938
|
+
version: VERSION$b,
|
|
7939
7939
|
private: [],
|
|
7940
7940
|
selections: [
|
|
7941
7941
|
{
|
|
@@ -8006,21 +8006,21 @@ const select$r = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
8006
8006
|
kind: 'Link',
|
|
8007
8007
|
plural: true,
|
|
8008
8008
|
required: false,
|
|
8009
|
-
fragment: select$
|
|
8009
|
+
fragment: select$A()
|
|
8010
8010
|
},
|
|
8011
8011
|
{
|
|
8012
8012
|
name: 'semanticRelationships',
|
|
8013
8013
|
kind: 'Link',
|
|
8014
8014
|
plural: true,
|
|
8015
8015
|
required: false,
|
|
8016
|
-
fragment: select$
|
|
8016
|
+
fragment: select$t()
|
|
8017
8017
|
},
|
|
8018
8018
|
{
|
|
8019
8019
|
name: 'semanticUnions',
|
|
8020
8020
|
kind: 'Link',
|
|
8021
8021
|
plural: true,
|
|
8022
8022
|
required: false,
|
|
8023
|
-
fragment: select$
|
|
8023
|
+
fragment: select$r()
|
|
8024
8024
|
},
|
|
8025
8025
|
{
|
|
8026
8026
|
name: 'semanticViewTypeEnum',
|
|
@@ -8030,7 +8030,7 @@ const select$r = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
8030
8030
|
]
|
|
8031
8031
|
};
|
|
8032
8032
|
};
|
|
8033
|
-
function equals$
|
|
8033
|
+
function equals$b(existing, incoming) {
|
|
8034
8034
|
const existing_apiName = existing.apiName;
|
|
8035
8035
|
const incoming_apiName = incoming.apiName;
|
|
8036
8036
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -8178,7 +8178,7 @@ function equals$d(existing, incoming) {
|
|
|
8178
8178
|
return false;
|
|
8179
8179
|
}
|
|
8180
8180
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
8181
|
-
if (!(equals$
|
|
8181
|
+
if (!(equals$w(existing_filters_item, incoming_filters_item))) {
|
|
8182
8182
|
return false;
|
|
8183
8183
|
}
|
|
8184
8184
|
});
|
|
@@ -8251,7 +8251,7 @@ const ingest$8 = function SemanticLogicalViewOutputRepresentationIngest(input, p
|
|
|
8251
8251
|
}
|
|
8252
8252
|
const key = keyBuilderFromType$4(luvio, input);
|
|
8253
8253
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8254
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SemanticAuthoring", VERSION$
|
|
8254
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SemanticAuthoring", VERSION$b, RepresentationType$8, equals$b);
|
|
8255
8255
|
return createLink(key);
|
|
8256
8256
|
};
|
|
8257
8257
|
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -8282,7 +8282,7 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8282
8282
|
}
|
|
8283
8283
|
}
|
|
8284
8284
|
|
|
8285
|
-
const VERSION$
|
|
8285
|
+
const VERSION$a = "158d115be773406f841e4351d481d398";
|
|
8286
8286
|
function validate$i(obj, path = 'SemanticParameterListValueOutputRepresentation') {
|
|
8287
8287
|
const v_error = (() => {
|
|
8288
8288
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -8305,10 +8305,10 @@ function validate$i(obj, path = 'SemanticParameterListValueOutputRepresentation'
|
|
|
8305
8305
|
})();
|
|
8306
8306
|
return v_error === undefined ? null : v_error;
|
|
8307
8307
|
}
|
|
8308
|
-
const select$
|
|
8308
|
+
const select$p = function SemanticParameterListValueOutputRepresentationSelect() {
|
|
8309
8309
|
return {
|
|
8310
8310
|
kind: 'Fragment',
|
|
8311
|
-
version: VERSION$
|
|
8311
|
+
version: VERSION$a,
|
|
8312
8312
|
private: [],
|
|
8313
8313
|
selections: [
|
|
8314
8314
|
{
|
|
@@ -8324,7 +8324,7 @@ const select$q = function SemanticParameterListValueOutputRepresentationSelect()
|
|
|
8324
8324
|
]
|
|
8325
8325
|
};
|
|
8326
8326
|
};
|
|
8327
|
-
function equals$
|
|
8327
|
+
function equals$a(existing, incoming) {
|
|
8328
8328
|
const existing_displayName = existing.displayName;
|
|
8329
8329
|
const incoming_displayName = incoming.displayName;
|
|
8330
8330
|
// if at least one of these optionals is defined
|
|
@@ -8354,7 +8354,7 @@ function equals$c(existing, incoming) {
|
|
|
8354
8354
|
return true;
|
|
8355
8355
|
}
|
|
8356
8356
|
|
|
8357
|
-
const VERSION$
|
|
8357
|
+
const VERSION$9 = "6ed89c4ce77235d13ce6bb395ae49d8e";
|
|
8358
8358
|
function validate$h(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
8359
8359
|
const v_error = (() => {
|
|
8360
8360
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -8499,23 +8499,23 @@ function validate$h(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
8499
8499
|
return v_error === undefined ? null : v_error;
|
|
8500
8500
|
}
|
|
8501
8501
|
const RepresentationType$7 = 'SemanticParameterOutputRepresentation';
|
|
8502
|
-
function keyBuilder$
|
|
8502
|
+
function keyBuilder$o(luvio, config) {
|
|
8503
8503
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
|
|
8504
8504
|
}
|
|
8505
8505
|
function keyBuilderFromType$3(luvio, object) {
|
|
8506
8506
|
const keyParams = {
|
|
8507
8507
|
name: object.id
|
|
8508
8508
|
};
|
|
8509
|
-
return keyBuilder$
|
|
8509
|
+
return keyBuilder$o(luvio, keyParams);
|
|
8510
8510
|
}
|
|
8511
8511
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
8512
8512
|
return input;
|
|
8513
8513
|
}
|
|
8514
|
-
const select$
|
|
8515
|
-
const { selections: SemanticParameterListValueOutputRepresentation__selections, opaque: SemanticParameterListValueOutputRepresentation__opaque, } = select$
|
|
8514
|
+
const select$o = function SemanticParameterOutputRepresentationSelect() {
|
|
8515
|
+
const { selections: SemanticParameterListValueOutputRepresentation__selections, opaque: SemanticParameterListValueOutputRepresentation__opaque, } = select$p();
|
|
8516
8516
|
return {
|
|
8517
8517
|
kind: 'Fragment',
|
|
8518
|
-
version: VERSION$
|
|
8518
|
+
version: VERSION$9,
|
|
8519
8519
|
private: [],
|
|
8520
8520
|
selections: [
|
|
8521
8521
|
{
|
|
@@ -8610,7 +8610,7 @@ const select$p = function SemanticParameterOutputRepresentationSelect() {
|
|
|
8610
8610
|
]
|
|
8611
8611
|
};
|
|
8612
8612
|
};
|
|
8613
|
-
function equals$
|
|
8613
|
+
function equals$9(existing, incoming) {
|
|
8614
8614
|
const existing_apiName = existing.apiName;
|
|
8615
8615
|
const incoming_apiName = incoming.apiName;
|
|
8616
8616
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -8797,7 +8797,7 @@ function equals$b(existing, incoming) {
|
|
|
8797
8797
|
return false;
|
|
8798
8798
|
}
|
|
8799
8799
|
const equals_allowedValues_items = equalsArray(existing_allowedValues, incoming_allowedValues, (existing_allowedValues_item, incoming_allowedValues_item) => {
|
|
8800
|
-
if (!(equals$
|
|
8800
|
+
if (!(equals$a(existing_allowedValues_item, incoming_allowedValues_item))) {
|
|
8801
8801
|
return false;
|
|
8802
8802
|
}
|
|
8803
8803
|
});
|
|
@@ -8834,7 +8834,7 @@ const ingest$7 = function SemanticParameterOutputRepresentationIngest(input, pat
|
|
|
8834
8834
|
}
|
|
8835
8835
|
const key = keyBuilderFromType$3(luvio, input);
|
|
8836
8836
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8837
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SemanticAuthoring", VERSION$
|
|
8837
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SemanticAuthoring", VERSION$9, RepresentationType$7, equals$9);
|
|
8838
8838
|
return createLink(key);
|
|
8839
8839
|
};
|
|
8840
8840
|
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -8847,7 +8847,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8847
8847
|
});
|
|
8848
8848
|
}
|
|
8849
8849
|
|
|
8850
|
-
const VERSION$
|
|
8850
|
+
const VERSION$8 = "5cda82e85d7322d459ba16b10b81ee96";
|
|
8851
8851
|
function validate$g(obj, path = 'SemanticModelOutputRepresentation') {
|
|
8852
8852
|
const v_error = (() => {
|
|
8853
8853
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -9165,14 +9165,14 @@ function validate$g(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
9165
9165
|
return v_error === undefined ? null : v_error;
|
|
9166
9166
|
}
|
|
9167
9167
|
const RepresentationType$6 = 'SemanticModelOutputRepresentation';
|
|
9168
|
-
function keyBuilder$
|
|
9168
|
+
function keyBuilder$n(luvio, config) {
|
|
9169
9169
|
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
9170
9170
|
}
|
|
9171
9171
|
function keyBuilderFromType$2(luvio, object) {
|
|
9172
9172
|
const keyParams = {
|
|
9173
9173
|
name: object.id
|
|
9174
9174
|
};
|
|
9175
|
-
return keyBuilder$
|
|
9175
|
+
return keyBuilder$n(luvio, keyParams);
|
|
9176
9176
|
}
|
|
9177
9177
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
9178
9178
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
@@ -9321,11 +9321,11 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
9321
9321
|
}
|
|
9322
9322
|
return input;
|
|
9323
9323
|
}
|
|
9324
|
-
const select$
|
|
9325
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
9324
|
+
const select$n = function SemanticModelOutputRepresentationSelect() {
|
|
9325
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$G();
|
|
9326
9326
|
return {
|
|
9327
9327
|
kind: 'Fragment',
|
|
9328
|
-
version: VERSION$
|
|
9328
|
+
version: VERSION$8,
|
|
9329
9329
|
private: [],
|
|
9330
9330
|
selections: [
|
|
9331
9331
|
{
|
|
@@ -9411,7 +9411,7 @@ const select$o = function SemanticModelOutputRepresentationSelect() {
|
|
|
9411
9411
|
kind: 'Link',
|
|
9412
9412
|
plural: true,
|
|
9413
9413
|
required: false,
|
|
9414
|
-
fragment: select$
|
|
9414
|
+
fragment: select$C()
|
|
9415
9415
|
},
|
|
9416
9416
|
{
|
|
9417
9417
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -9423,7 +9423,7 @@ const select$o = function SemanticModelOutputRepresentationSelect() {
|
|
|
9423
9423
|
kind: 'Link',
|
|
9424
9424
|
plural: true,
|
|
9425
9425
|
required: false,
|
|
9426
|
-
fragment: select$
|
|
9426
|
+
fragment: select$B()
|
|
9427
9427
|
},
|
|
9428
9428
|
{
|
|
9429
9429
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -9435,7 +9435,7 @@ const select$o = function SemanticModelOutputRepresentationSelect() {
|
|
|
9435
9435
|
kind: 'Link',
|
|
9436
9436
|
plural: true,
|
|
9437
9437
|
required: false,
|
|
9438
|
-
fragment: select$
|
|
9438
|
+
fragment: select$A()
|
|
9439
9439
|
},
|
|
9440
9440
|
{
|
|
9441
9441
|
name: 'semanticDataObjectsUrl',
|
|
@@ -9447,7 +9447,7 @@ const select$o = function SemanticModelOutputRepresentationSelect() {
|
|
|
9447
9447
|
kind: 'Link',
|
|
9448
9448
|
plural: true,
|
|
9449
9449
|
required: false,
|
|
9450
|
-
fragment: select$
|
|
9450
|
+
fragment: select$v()
|
|
9451
9451
|
},
|
|
9452
9452
|
{
|
|
9453
9453
|
name: 'semanticGroupingsUrl',
|
|
@@ -9459,21 +9459,21 @@ const select$o = function SemanticModelOutputRepresentationSelect() {
|
|
|
9459
9459
|
kind: 'Link',
|
|
9460
9460
|
plural: true,
|
|
9461
9461
|
required: false,
|
|
9462
|
-
fragment: select$
|
|
9462
|
+
fragment: select$q()
|
|
9463
9463
|
},
|
|
9464
9464
|
{
|
|
9465
9465
|
name: 'semanticMetrics',
|
|
9466
9466
|
kind: 'Link',
|
|
9467
9467
|
plural: true,
|
|
9468
9468
|
required: false,
|
|
9469
|
-
fragment: select$
|
|
9469
|
+
fragment: select$J()
|
|
9470
9470
|
},
|
|
9471
9471
|
{
|
|
9472
9472
|
name: 'semanticParameters',
|
|
9473
9473
|
kind: 'Link',
|
|
9474
9474
|
plural: true,
|
|
9475
9475
|
required: false,
|
|
9476
|
-
fragment: select$
|
|
9476
|
+
fragment: select$o()
|
|
9477
9477
|
},
|
|
9478
9478
|
{
|
|
9479
9479
|
name: 'semanticParametersUrl',
|
|
@@ -9485,7 +9485,7 @@ const select$o = function SemanticModelOutputRepresentationSelect() {
|
|
|
9485
9485
|
kind: 'Link',
|
|
9486
9486
|
plural: true,
|
|
9487
9487
|
required: false,
|
|
9488
|
-
fragment: select$
|
|
9488
|
+
fragment: select$t()
|
|
9489
9489
|
},
|
|
9490
9490
|
{
|
|
9491
9491
|
name: 'semanticRelationshipsUrl',
|
|
@@ -9505,7 +9505,7 @@ const select$o = function SemanticModelOutputRepresentationSelect() {
|
|
|
9505
9505
|
]
|
|
9506
9506
|
};
|
|
9507
9507
|
};
|
|
9508
|
-
function equals$
|
|
9508
|
+
function equals$8(existing, incoming) {
|
|
9509
9509
|
const existing_isLocked = existing.isLocked;
|
|
9510
9510
|
const incoming_isLocked = incoming.isLocked;
|
|
9511
9511
|
// if at least one of these optionals is defined
|
|
@@ -9749,7 +9749,7 @@ function equals$a(existing, incoming) {
|
|
|
9749
9749
|
return false;
|
|
9750
9750
|
}
|
|
9751
9751
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
9752
|
-
if (!(equals$
|
|
9752
|
+
if (!(equals$q(existing_baseModels_item, incoming_baseModels_item))) {
|
|
9753
9753
|
return false;
|
|
9754
9754
|
}
|
|
9755
9755
|
});
|
|
@@ -9943,7 +9943,7 @@ const ingest$6 = function SemanticModelOutputRepresentationIngest(input, path, l
|
|
|
9943
9943
|
}
|
|
9944
9944
|
const key = keyBuilderFromType$2(luvio, input);
|
|
9945
9945
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
9946
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SemanticAuthoring", VERSION$
|
|
9946
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SemanticAuthoring", VERSION$8, RepresentationType$6, equals$8);
|
|
9947
9947
|
return createLink(key);
|
|
9948
9948
|
};
|
|
9949
9949
|
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -10004,19 +10004,19 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10004
10004
|
}
|
|
10005
10005
|
}
|
|
10006
10006
|
|
|
10007
|
-
function select$
|
|
10008
|
-
return select$
|
|
10007
|
+
function select$m(luvio, params) {
|
|
10008
|
+
return select$n();
|
|
10009
10009
|
}
|
|
10010
|
-
function getResponseCacheKeys$
|
|
10010
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
10011
10011
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
10012
10012
|
}
|
|
10013
|
-
function ingestSuccess$
|
|
10013
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
10014
10014
|
const { body } = response;
|
|
10015
10015
|
const key = keyBuilderFromType$2(luvio, body);
|
|
10016
10016
|
luvio.storeIngest(key, ingest$6, body);
|
|
10017
10017
|
const snapshot = luvio.storeLookup({
|
|
10018
10018
|
recordId: key,
|
|
10019
|
-
node: select$
|
|
10019
|
+
node: select$m(),
|
|
10020
10020
|
variables: {},
|
|
10021
10021
|
});
|
|
10022
10022
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10027,7 +10027,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
10027
10027
|
deepFreeze(snapshot.data);
|
|
10028
10028
|
return snapshot;
|
|
10029
10029
|
}
|
|
10030
|
-
function createResourceRequest$
|
|
10030
|
+
function createResourceRequest$h(config) {
|
|
10031
10031
|
const headers = {};
|
|
10032
10032
|
return {
|
|
10033
10033
|
baseUri: '/services/data/v63.0',
|
|
@@ -10041,7 +10041,7 @@ function createResourceRequest$f(config) {
|
|
|
10041
10041
|
};
|
|
10042
10042
|
}
|
|
10043
10043
|
|
|
10044
|
-
const adapterName$
|
|
10044
|
+
const adapterName$h = 'createSemanticModel';
|
|
10045
10045
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
10046
10046
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
10047
10047
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -10062,11 +10062,11 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
10062
10062
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10063
10063
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10064
10064
|
];
|
|
10065
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10066
|
-
const createResourceParams$
|
|
10067
|
-
function typeCheckConfig$
|
|
10065
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, createSemanticModel_ConfigPropertyMetadata);
|
|
10066
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$k(createSemanticModel_ConfigPropertyMetadata);
|
|
10067
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
10068
10068
|
const config = {};
|
|
10069
|
-
typeCheckConfig$
|
|
10069
|
+
typeCheckConfig$k(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
10070
10070
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
10071
10071
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
10072
10072
|
const untrustedConfig_baseModels_array = [];
|
|
@@ -10177,30 +10177,30 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
10177
10177
|
}
|
|
10178
10178
|
return config;
|
|
10179
10179
|
}
|
|
10180
|
-
function validateAdapterConfig$
|
|
10180
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
10181
10181
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10182
10182
|
return null;
|
|
10183
10183
|
}
|
|
10184
10184
|
if (process.env.NODE_ENV !== 'production') {
|
|
10185
10185
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10186
10186
|
}
|
|
10187
|
-
const config = typeCheckConfig$
|
|
10187
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
10188
10188
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10189
10189
|
return null;
|
|
10190
10190
|
}
|
|
10191
10191
|
return config;
|
|
10192
10192
|
}
|
|
10193
|
-
function buildNetworkSnapshot$
|
|
10194
|
-
const resourceParams = createResourceParams$
|
|
10195
|
-
const request = createResourceRequest$
|
|
10193
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
10194
|
+
const resourceParams = createResourceParams$h(config);
|
|
10195
|
+
const request = createResourceRequest$h(resourceParams);
|
|
10196
10196
|
return luvio.dispatchResourceRequest(request, options)
|
|
10197
10197
|
.then((response) => {
|
|
10198
10198
|
return luvio.handleSuccessResponse(() => {
|
|
10199
|
-
const snapshot = ingestSuccess$
|
|
10199
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
10200
10200
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10201
10201
|
}, () => {
|
|
10202
10202
|
const cache = new StoreKeyMap();
|
|
10203
|
-
getResponseCacheKeys$
|
|
10203
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
10204
10204
|
return cache;
|
|
10205
10205
|
});
|
|
10206
10206
|
}, (response) => {
|
|
@@ -10210,33 +10210,33 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
10210
10210
|
}
|
|
10211
10211
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
10212
10212
|
return function createSemanticModel(untrustedConfig) {
|
|
10213
|
-
const config = validateAdapterConfig$
|
|
10213
|
+
const config = validateAdapterConfig$h(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
10214
10214
|
// Invalid or incomplete config
|
|
10215
10215
|
if (config === null) {
|
|
10216
10216
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
10217
10217
|
}
|
|
10218
|
-
return buildNetworkSnapshot$
|
|
10218
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
10219
10219
|
};
|
|
10220
10220
|
};
|
|
10221
10221
|
|
|
10222
|
-
function select$
|
|
10223
|
-
return select$
|
|
10222
|
+
function select$l(luvio, params) {
|
|
10223
|
+
return select$n();
|
|
10224
10224
|
}
|
|
10225
|
-
function keyBuilder$
|
|
10226
|
-
return keyBuilder$
|
|
10225
|
+
function keyBuilder$m(luvio, params) {
|
|
10226
|
+
return keyBuilder$n(luvio, {
|
|
10227
10227
|
name: params.urlParams.modelApiNameOrId
|
|
10228
10228
|
});
|
|
10229
10229
|
}
|
|
10230
|
-
function getResponseCacheKeys$
|
|
10230
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
10231
10231
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
10232
10232
|
}
|
|
10233
|
-
function ingestSuccess$
|
|
10233
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
10234
10234
|
const { body } = response;
|
|
10235
|
-
const key = keyBuilder$
|
|
10235
|
+
const key = keyBuilder$m(luvio, resourceParams);
|
|
10236
10236
|
luvio.storeIngest(key, ingest$6, body);
|
|
10237
10237
|
const snapshot = luvio.storeLookup({
|
|
10238
10238
|
recordId: key,
|
|
10239
|
-
node: select$
|
|
10239
|
+
node: select$l(),
|
|
10240
10240
|
variables: {},
|
|
10241
10241
|
}, snapshotRefresh);
|
|
10242
10242
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10248,12 +10248,12 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
10248
10248
|
return snapshot;
|
|
10249
10249
|
}
|
|
10250
10250
|
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
10251
|
-
const key = keyBuilder$
|
|
10251
|
+
const key = keyBuilder$m(luvio, params);
|
|
10252
10252
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10253
10253
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10254
10254
|
return errorSnapshot;
|
|
10255
10255
|
}
|
|
10256
|
-
function createResourceRequest$
|
|
10256
|
+
function createResourceRequest$g(config) {
|
|
10257
10257
|
const headers = {};
|
|
10258
10258
|
return {
|
|
10259
10259
|
baseUri: '/services/data/v63.0',
|
|
@@ -10267,63 +10267,63 @@ function createResourceRequest$e(config) {
|
|
|
10267
10267
|
};
|
|
10268
10268
|
}
|
|
10269
10269
|
|
|
10270
|
-
const adapterName$
|
|
10270
|
+
const adapterName$g = 'getSemanticModel';
|
|
10271
10271
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
10272
10272
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10273
10273
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10274
10274
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10275
10275
|
generateParamConfigMetadata('includeTableKeys', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10276
10276
|
];
|
|
10277
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10278
|
-
const createResourceParams$
|
|
10279
|
-
function keyBuilder$
|
|
10280
|
-
const resourceParams = createResourceParams$
|
|
10281
|
-
return keyBuilder$
|
|
10277
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getSemanticModel_ConfigPropertyMetadata);
|
|
10278
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$k(getSemanticModel_ConfigPropertyMetadata);
|
|
10279
|
+
function keyBuilder$l(luvio, config) {
|
|
10280
|
+
const resourceParams = createResourceParams$g(config);
|
|
10281
|
+
return keyBuilder$m(luvio, resourceParams);
|
|
10282
10282
|
}
|
|
10283
|
-
function typeCheckConfig$
|
|
10283
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
10284
10284
|
const config = {};
|
|
10285
|
-
typeCheckConfig$
|
|
10285
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
10286
10286
|
return config;
|
|
10287
10287
|
}
|
|
10288
|
-
function validateAdapterConfig$
|
|
10288
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
10289
10289
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10290
10290
|
return null;
|
|
10291
10291
|
}
|
|
10292
10292
|
if (process.env.NODE_ENV !== 'production') {
|
|
10293
10293
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10294
10294
|
}
|
|
10295
|
-
const config = typeCheckConfig$
|
|
10295
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
10296
10296
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10297
10297
|
return null;
|
|
10298
10298
|
}
|
|
10299
10299
|
return config;
|
|
10300
10300
|
}
|
|
10301
10301
|
function adapterFragment$8(luvio, config) {
|
|
10302
|
-
createResourceParams$
|
|
10303
|
-
return select$
|
|
10302
|
+
createResourceParams$g(config);
|
|
10303
|
+
return select$l();
|
|
10304
10304
|
}
|
|
10305
10305
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
10306
|
-
const snapshot = ingestSuccess$
|
|
10306
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
10307
10307
|
config,
|
|
10308
|
-
resolve: () => buildNetworkSnapshot$
|
|
10308
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
10309
10309
|
});
|
|
10310
10310
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10311
10311
|
}
|
|
10312
10312
|
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
10313
10313
|
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
10314
10314
|
config,
|
|
10315
|
-
resolve: () => buildNetworkSnapshot$
|
|
10315
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
10316
10316
|
});
|
|
10317
10317
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10318
10318
|
}
|
|
10319
|
-
function buildNetworkSnapshot$
|
|
10320
|
-
const resourceParams = createResourceParams$
|
|
10321
|
-
const request = createResourceRequest$
|
|
10319
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
10320
|
+
const resourceParams = createResourceParams$g(config);
|
|
10321
|
+
const request = createResourceRequest$g(resourceParams);
|
|
10322
10322
|
return luvio.dispatchResourceRequest(request, options)
|
|
10323
10323
|
.then((response) => {
|
|
10324
10324
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
10325
10325
|
const cache = new StoreKeyMap();
|
|
10326
|
-
getResponseCacheKeys$
|
|
10326
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
10327
10327
|
return cache;
|
|
10328
10328
|
});
|
|
10329
10329
|
}, (response) => {
|
|
@@ -10331,23 +10331,23 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
10331
10331
|
});
|
|
10332
10332
|
}
|
|
10333
10333
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
10334
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10334
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
10335
10335
|
}
|
|
10336
10336
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
10337
10337
|
const { luvio, config } = context;
|
|
10338
10338
|
const selector = {
|
|
10339
|
-
recordId: keyBuilder$
|
|
10339
|
+
recordId: keyBuilder$l(luvio, config),
|
|
10340
10340
|
node: adapterFragment$8(luvio, config),
|
|
10341
10341
|
variables: {},
|
|
10342
10342
|
};
|
|
10343
10343
|
const cacheSnapshot = storeLookup(selector, {
|
|
10344
10344
|
config,
|
|
10345
|
-
resolve: () => buildNetworkSnapshot$
|
|
10345
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
10346
10346
|
});
|
|
10347
10347
|
return cacheSnapshot;
|
|
10348
10348
|
}
|
|
10349
10349
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
10350
|
-
const config = validateAdapterConfig$
|
|
10350
|
+
const config = validateAdapterConfig$g(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
10351
10351
|
// Invalid or incomplete config
|
|
10352
10352
|
if (config === null) {
|
|
10353
10353
|
return null;
|
|
@@ -10356,19 +10356,19 @@ const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__ge
|
|
|
10356
10356
|
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
10357
10357
|
};
|
|
10358
10358
|
|
|
10359
|
-
function select$
|
|
10360
|
-
return select$
|
|
10359
|
+
function select$k(luvio, params) {
|
|
10360
|
+
return select$n();
|
|
10361
10361
|
}
|
|
10362
|
-
function getResponseCacheKeys$
|
|
10362
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
10363
10363
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
10364
10364
|
}
|
|
10365
|
-
function ingestSuccess$
|
|
10365
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
10366
10366
|
const { body } = response;
|
|
10367
10367
|
const key = keyBuilderFromType$2(luvio, body);
|
|
10368
10368
|
luvio.storeIngest(key, ingest$6, body);
|
|
10369
10369
|
const snapshot = luvio.storeLookup({
|
|
10370
10370
|
recordId: key,
|
|
10371
|
-
node: select$
|
|
10371
|
+
node: select$k(),
|
|
10372
10372
|
variables: {},
|
|
10373
10373
|
});
|
|
10374
10374
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10379,7 +10379,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
10379
10379
|
deepFreeze(snapshot.data);
|
|
10380
10380
|
return snapshot;
|
|
10381
10381
|
}
|
|
10382
|
-
function createResourceRequest$
|
|
10382
|
+
function createResourceRequest$f(config) {
|
|
10383
10383
|
const headers = {};
|
|
10384
10384
|
return {
|
|
10385
10385
|
baseUri: '/services/data/v63.0',
|
|
@@ -10393,7 +10393,7 @@ function createResourceRequest$d(config) {
|
|
|
10393
10393
|
};
|
|
10394
10394
|
}
|
|
10395
10395
|
|
|
10396
|
-
const adapterName$
|
|
10396
|
+
const adapterName$f = 'patchSemanticModel';
|
|
10397
10397
|
const patchSemanticModel_ConfigPropertyMetadata = [
|
|
10398
10398
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10399
10399
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -10415,11 +10415,11 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
10415
10415
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10416
10416
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10417
10417
|
];
|
|
10418
|
-
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10419
|
-
const createResourceParams$
|
|
10420
|
-
function typeCheckConfig$
|
|
10418
|
+
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, patchSemanticModel_ConfigPropertyMetadata);
|
|
10419
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$k(patchSemanticModel_ConfigPropertyMetadata);
|
|
10420
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
10421
10421
|
const config = {};
|
|
10422
|
-
typeCheckConfig$
|
|
10422
|
+
typeCheckConfig$k(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
10423
10423
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
10424
10424
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
10425
10425
|
const untrustedConfig_baseModels_array = [];
|
|
@@ -10530,30 +10530,30 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
10530
10530
|
}
|
|
10531
10531
|
return config;
|
|
10532
10532
|
}
|
|
10533
|
-
function validateAdapterConfig$
|
|
10533
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
10534
10534
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10535
10535
|
return null;
|
|
10536
10536
|
}
|
|
10537
10537
|
if (process.env.NODE_ENV !== 'production') {
|
|
10538
10538
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10539
10539
|
}
|
|
10540
|
-
const config = typeCheckConfig$
|
|
10540
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
10541
10541
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10542
10542
|
return null;
|
|
10543
10543
|
}
|
|
10544
10544
|
return config;
|
|
10545
10545
|
}
|
|
10546
|
-
function buildNetworkSnapshot$
|
|
10547
|
-
const resourceParams = createResourceParams$
|
|
10548
|
-
const request = createResourceRequest$
|
|
10546
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
10547
|
+
const resourceParams = createResourceParams$f(config);
|
|
10548
|
+
const request = createResourceRequest$f(resourceParams);
|
|
10549
10549
|
return luvio.dispatchResourceRequest(request, options)
|
|
10550
10550
|
.then((response) => {
|
|
10551
10551
|
return luvio.handleSuccessResponse(() => {
|
|
10552
|
-
const snapshot = ingestSuccess$
|
|
10552
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
10553
10553
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10554
10554
|
}, () => {
|
|
10555
10555
|
const cache = new StoreKeyMap();
|
|
10556
|
-
getResponseCacheKeys$
|
|
10556
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
10557
10557
|
return cache;
|
|
10558
10558
|
});
|
|
10559
10559
|
}, (response) => {
|
|
@@ -10563,16 +10563,16 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
10563
10563
|
}
|
|
10564
10564
|
const patchSemanticModelAdapterFactory = (luvio) => {
|
|
10565
10565
|
return function patchSemanticModel(untrustedConfig) {
|
|
10566
|
-
const config = validateAdapterConfig$
|
|
10566
|
+
const config = validateAdapterConfig$f(untrustedConfig, patchSemanticModel_ConfigPropertyNames);
|
|
10567
10567
|
// Invalid or incomplete config
|
|
10568
10568
|
if (config === null) {
|
|
10569
10569
|
throw new Error('Invalid config for "patchSemanticModel"');
|
|
10570
10570
|
}
|
|
10571
|
-
return buildNetworkSnapshot$
|
|
10571
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
10572
10572
|
};
|
|
10573
10573
|
};
|
|
10574
10574
|
|
|
10575
|
-
const VERSION$
|
|
10575
|
+
const VERSION$7 = "e96f6d15d947eadd33aeb16dd9222420";
|
|
10576
10576
|
function validate$f(obj, path = 'SemanticDependencyOutputRepresentation') {
|
|
10577
10577
|
const v_error = (() => {
|
|
10578
10578
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -10607,10 +10607,10 @@ function validate$f(obj, path = 'SemanticDependencyOutputRepresentation') {
|
|
|
10607
10607
|
})();
|
|
10608
10608
|
return v_error === undefined ? null : v_error;
|
|
10609
10609
|
}
|
|
10610
|
-
const select$
|
|
10610
|
+
const select$j = function SemanticDependencyOutputRepresentationSelect() {
|
|
10611
10611
|
return {
|
|
10612
10612
|
kind: 'Fragment',
|
|
10613
|
-
version: VERSION$
|
|
10613
|
+
version: VERSION$7,
|
|
10614
10614
|
private: [],
|
|
10615
10615
|
selections: [
|
|
10616
10616
|
{
|
|
@@ -10635,7 +10635,7 @@ const select$k = function SemanticDependencyOutputRepresentationSelect() {
|
|
|
10635
10635
|
]
|
|
10636
10636
|
};
|
|
10637
10637
|
};
|
|
10638
|
-
function equals$
|
|
10638
|
+
function equals$7(existing, incoming) {
|
|
10639
10639
|
const existing_apiName = existing.apiName;
|
|
10640
10640
|
const incoming_apiName = incoming.apiName;
|
|
10641
10641
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -10683,7 +10683,7 @@ function equals$9(existing, incoming) {
|
|
|
10683
10683
|
return true;
|
|
10684
10684
|
}
|
|
10685
10685
|
|
|
10686
|
-
const VERSION$
|
|
10686
|
+
const VERSION$6 = "62e5e0ffeb783cdde37da72d400b0869";
|
|
10687
10687
|
function validate$e(obj, path = 'SemanticDependencyInnerCollectionOutputRepresentation') {
|
|
10688
10688
|
const v_error = (() => {
|
|
10689
10689
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -10723,11 +10723,11 @@ function validate$e(obj, path = 'SemanticDependencyInnerCollectionOutputRepresen
|
|
|
10723
10723
|
})();
|
|
10724
10724
|
return v_error === undefined ? null : v_error;
|
|
10725
10725
|
}
|
|
10726
|
-
const select$
|
|
10727
|
-
const { selections: SemanticDependencyOutputRepresentation__selections, opaque: SemanticDependencyOutputRepresentation__opaque, } = select$
|
|
10726
|
+
const select$i = function SemanticDependencyInnerCollectionOutputRepresentationSelect() {
|
|
10727
|
+
const { selections: SemanticDependencyOutputRepresentation__selections, opaque: SemanticDependencyOutputRepresentation__opaque, } = select$j();
|
|
10728
10728
|
return {
|
|
10729
10729
|
kind: 'Fragment',
|
|
10730
|
-
version: VERSION$
|
|
10730
|
+
version: VERSION$6,
|
|
10731
10731
|
private: [],
|
|
10732
10732
|
selections: [
|
|
10733
10733
|
{
|
|
@@ -10750,7 +10750,7 @@ const select$j = function SemanticDependencyInnerCollectionOutputRepresentationS
|
|
|
10750
10750
|
]
|
|
10751
10751
|
};
|
|
10752
10752
|
};
|
|
10753
|
-
function equals$
|
|
10753
|
+
function equals$6(existing, incoming) {
|
|
10754
10754
|
const existing_definitionApiName = existing.definitionApiName;
|
|
10755
10755
|
const incoming_definitionApiName = incoming.definitionApiName;
|
|
10756
10756
|
// if at least one of these optionals is defined
|
|
@@ -10787,7 +10787,7 @@ function equals$8(existing, incoming) {
|
|
|
10787
10787
|
return false;
|
|
10788
10788
|
}
|
|
10789
10789
|
const equals_dependencies_items = equalsArray(existing_dependencies, incoming_dependencies, (existing_dependencies_item, incoming_dependencies_item) => {
|
|
10790
|
-
if (!(equals$
|
|
10790
|
+
if (!(equals$7(existing_dependencies_item, incoming_dependencies_item))) {
|
|
10791
10791
|
return false;
|
|
10792
10792
|
}
|
|
10793
10793
|
});
|
|
@@ -10798,7 +10798,7 @@ function equals$8(existing, incoming) {
|
|
|
10798
10798
|
return true;
|
|
10799
10799
|
}
|
|
10800
10800
|
|
|
10801
|
-
const VERSION$
|
|
10801
|
+
const VERSION$5 = "e710141192798ab103ce7e9b469baad4";
|
|
10802
10802
|
function validate$d(obj, path = 'SemanticDependencyCollectionOutputRepresentation') {
|
|
10803
10803
|
const v_error = (() => {
|
|
10804
10804
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -10828,11 +10828,11 @@ const RepresentationType$5 = 'SemanticDependencyCollectionOutputRepresentation';
|
|
|
10828
10828
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
10829
10829
|
return input;
|
|
10830
10830
|
}
|
|
10831
|
-
const select$
|
|
10832
|
-
const { selections: SemanticDependencyInnerCollectionOutputRepresentation__selections, opaque: SemanticDependencyInnerCollectionOutputRepresentation__opaque, } = select$
|
|
10831
|
+
const select$h = function SemanticDependencyCollectionOutputRepresentationSelect() {
|
|
10832
|
+
const { selections: SemanticDependencyInnerCollectionOutputRepresentation__selections, opaque: SemanticDependencyInnerCollectionOutputRepresentation__opaque, } = select$i();
|
|
10833
10833
|
return {
|
|
10834
10834
|
kind: 'Fragment',
|
|
10835
|
-
version: VERSION$
|
|
10835
|
+
version: VERSION$5,
|
|
10836
10836
|
private: [],
|
|
10837
10837
|
selections: [
|
|
10838
10838
|
{
|
|
@@ -10845,7 +10845,7 @@ const select$i = function SemanticDependencyCollectionOutputRepresentationSelect
|
|
|
10845
10845
|
]
|
|
10846
10846
|
};
|
|
10847
10847
|
};
|
|
10848
|
-
function equals$
|
|
10848
|
+
function equals$5(existing, incoming) {
|
|
10849
10849
|
const existing_item = existing.item;
|
|
10850
10850
|
const incoming_item = incoming.item;
|
|
10851
10851
|
// if at least one of these optionals is defined
|
|
@@ -10856,7 +10856,7 @@ function equals$7(existing, incoming) {
|
|
|
10856
10856
|
return false;
|
|
10857
10857
|
}
|
|
10858
10858
|
const equals_item_items = equalsArray(existing_item, incoming_item, (existing_item_item, incoming_item_item) => {
|
|
10859
|
-
if (!(equals$
|
|
10859
|
+
if (!(equals$6(existing_item_item, incoming_item_item))) {
|
|
10860
10860
|
return false;
|
|
10861
10861
|
}
|
|
10862
10862
|
});
|
|
@@ -10875,7 +10875,7 @@ const ingest$5 = function SemanticDependencyCollectionOutputRepresentationIngest
|
|
|
10875
10875
|
}
|
|
10876
10876
|
const key = path.fullPath;
|
|
10877
10877
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
10878
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SemanticAuthoring", VERSION$
|
|
10878
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SemanticAuthoring", VERSION$5, RepresentationType$5, equals$5);
|
|
10879
10879
|
return createLink(key);
|
|
10880
10880
|
};
|
|
10881
10881
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -10888,22 +10888,22 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10888
10888
|
});
|
|
10889
10889
|
}
|
|
10890
10890
|
|
|
10891
|
-
function select$
|
|
10892
|
-
return select$
|
|
10891
|
+
function select$g(luvio, params) {
|
|
10892
|
+
return select$h();
|
|
10893
10893
|
}
|
|
10894
|
-
function keyBuilder$
|
|
10894
|
+
function keyBuilder$k(luvio, params) {
|
|
10895
10895
|
return keyPrefix + '::SemanticDependencyCollectionOutputRepresentation:(' + 'types:' + params.queryParams.types + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10896
10896
|
}
|
|
10897
|
-
function getResponseCacheKeys$
|
|
10898
|
-
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$
|
|
10897
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
10898
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$k(luvio, resourceParams));
|
|
10899
10899
|
}
|
|
10900
|
-
function ingestSuccess$
|
|
10900
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
10901
10901
|
const { body } = response;
|
|
10902
|
-
const key = keyBuilder$
|
|
10902
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
10903
10903
|
luvio.storeIngest(key, ingest$5, body);
|
|
10904
10904
|
const snapshot = luvio.storeLookup({
|
|
10905
10905
|
recordId: key,
|
|
10906
|
-
node: select$
|
|
10906
|
+
node: select$g(),
|
|
10907
10907
|
variables: {},
|
|
10908
10908
|
}, snapshotRefresh);
|
|
10909
10909
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10915,12 +10915,12 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
10915
10915
|
return snapshot;
|
|
10916
10916
|
}
|
|
10917
10917
|
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
10918
|
-
const key = keyBuilder$
|
|
10918
|
+
const key = keyBuilder$k(luvio, params);
|
|
10919
10919
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10920
10920
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10921
10921
|
return errorSnapshot;
|
|
10922
10922
|
}
|
|
10923
|
-
function createResourceRequest$
|
|
10923
|
+
function createResourceRequest$e(config) {
|
|
10924
10924
|
const headers = {};
|
|
10925
10925
|
return {
|
|
10926
10926
|
baseUri: '/services/data/v63.0',
|
|
@@ -10934,61 +10934,61 @@ function createResourceRequest$c(config) {
|
|
|
10934
10934
|
};
|
|
10935
10935
|
}
|
|
10936
10936
|
|
|
10937
|
-
const adapterName$
|
|
10937
|
+
const adapterName$e = 'getLeafDependenciesByTypes';
|
|
10938
10938
|
const getLeafDependenciesByTypes_ConfigPropertyMetadata = [
|
|
10939
10939
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10940
10940
|
generateParamConfigMetadata('types', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
10941
10941
|
];
|
|
10942
|
-
const getLeafDependenciesByTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10943
|
-
const createResourceParams$
|
|
10944
|
-
function keyBuilder$
|
|
10945
|
-
const resourceParams = createResourceParams$
|
|
10946
|
-
return keyBuilder$
|
|
10942
|
+
const getLeafDependenciesByTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10943
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$k(getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10944
|
+
function keyBuilder$j(luvio, config) {
|
|
10945
|
+
const resourceParams = createResourceParams$e(config);
|
|
10946
|
+
return keyBuilder$k(luvio, resourceParams);
|
|
10947
10947
|
}
|
|
10948
|
-
function typeCheckConfig$
|
|
10948
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
10949
10949
|
const config = {};
|
|
10950
|
-
typeCheckConfig$
|
|
10950
|
+
typeCheckConfig$k(untrustedConfig, config, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10951
10951
|
return config;
|
|
10952
10952
|
}
|
|
10953
|
-
function validateAdapterConfig$
|
|
10953
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
10954
10954
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10955
10955
|
return null;
|
|
10956
10956
|
}
|
|
10957
10957
|
if (process.env.NODE_ENV !== 'production') {
|
|
10958
10958
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10959
10959
|
}
|
|
10960
|
-
const config = typeCheckConfig$
|
|
10960
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
10961
10961
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10962
10962
|
return null;
|
|
10963
10963
|
}
|
|
10964
10964
|
return config;
|
|
10965
10965
|
}
|
|
10966
10966
|
function adapterFragment$7(luvio, config) {
|
|
10967
|
-
createResourceParams$
|
|
10968
|
-
return select$
|
|
10967
|
+
createResourceParams$e(config);
|
|
10968
|
+
return select$g();
|
|
10969
10969
|
}
|
|
10970
10970
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
10971
|
-
const snapshot = ingestSuccess$
|
|
10971
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
10972
10972
|
config,
|
|
10973
|
-
resolve: () => buildNetworkSnapshot$
|
|
10973
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
10974
10974
|
});
|
|
10975
10975
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10976
10976
|
}
|
|
10977
10977
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
10978
10978
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
10979
10979
|
config,
|
|
10980
|
-
resolve: () => buildNetworkSnapshot$
|
|
10980
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
10981
10981
|
});
|
|
10982
10982
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10983
10983
|
}
|
|
10984
|
-
function buildNetworkSnapshot$
|
|
10985
|
-
const resourceParams = createResourceParams$
|
|
10986
|
-
const request = createResourceRequest$
|
|
10984
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
10985
|
+
const resourceParams = createResourceParams$e(config);
|
|
10986
|
+
const request = createResourceRequest$e(resourceParams);
|
|
10987
10987
|
return luvio.dispatchResourceRequest(request, options)
|
|
10988
10988
|
.then((response) => {
|
|
10989
10989
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
10990
10990
|
const cache = new StoreKeyMap();
|
|
10991
|
-
getResponseCacheKeys$
|
|
10991
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
10992
10992
|
return cache;
|
|
10993
10993
|
});
|
|
10994
10994
|
}, (response) => {
|
|
@@ -10996,23 +10996,23 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
10996
10996
|
});
|
|
10997
10997
|
}
|
|
10998
10998
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
10999
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10999
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
11000
11000
|
}
|
|
11001
11001
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
11002
11002
|
const { luvio, config } = context;
|
|
11003
11003
|
const selector = {
|
|
11004
|
-
recordId: keyBuilder$
|
|
11004
|
+
recordId: keyBuilder$j(luvio, config),
|
|
11005
11005
|
node: adapterFragment$7(luvio, config),
|
|
11006
11006
|
variables: {},
|
|
11007
11007
|
};
|
|
11008
11008
|
const cacheSnapshot = storeLookup(selector, {
|
|
11009
11009
|
config,
|
|
11010
|
-
resolve: () => buildNetworkSnapshot$
|
|
11010
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
11011
11011
|
});
|
|
11012
11012
|
return cacheSnapshot;
|
|
11013
11013
|
}
|
|
11014
11014
|
const getLeafDependenciesByTypesAdapterFactory = (luvio) => function SemanticAuthoring__getLeafDependenciesByTypes(untrustedConfig, requestContext) {
|
|
11015
|
-
const config = validateAdapterConfig$
|
|
11015
|
+
const config = validateAdapterConfig$e(untrustedConfig, getLeafDependenciesByTypes_ConfigPropertyNames);
|
|
11016
11016
|
// Invalid or incomplete config
|
|
11017
11017
|
if (config === null) {
|
|
11018
11018
|
return null;
|
|
@@ -11021,79 +11021,25 @@ const getLeafDependenciesByTypesAdapterFactory = (luvio) => function SemanticAut
|
|
|
11021
11021
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
11022
11022
|
};
|
|
11023
11023
|
|
|
11024
|
-
const VERSION$6 = "d8d5260b9a2483297bc9bf979347739e";
|
|
11025
11024
|
function validate$c(obj, path = 'SemanticGoalDateRangeOutputRepresentation') {
|
|
11026
11025
|
const v_error = (() => {
|
|
11027
11026
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11028
11027
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
11029
11028
|
}
|
|
11030
|
-
|
|
11031
|
-
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
|
|
11035
|
-
}
|
|
11029
|
+
const obj_endDate = obj.endDate;
|
|
11030
|
+
const path_endDate = path + '.endDate';
|
|
11031
|
+
if (typeof obj_endDate !== 'string') {
|
|
11032
|
+
return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
|
|
11036
11033
|
}
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
11040
|
-
|
|
11041
|
-
return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
|
|
11042
|
-
}
|
|
11034
|
+
const obj_startDate = obj.startDate;
|
|
11035
|
+
const path_startDate = path + '.startDate';
|
|
11036
|
+
if (typeof obj_startDate !== 'string') {
|
|
11037
|
+
return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
|
|
11043
11038
|
}
|
|
11044
11039
|
})();
|
|
11045
11040
|
return v_error === undefined ? null : v_error;
|
|
11046
11041
|
}
|
|
11047
|
-
const select$g = function SemanticGoalDateRangeOutputRepresentationSelect() {
|
|
11048
|
-
return {
|
|
11049
|
-
kind: 'Fragment',
|
|
11050
|
-
version: VERSION$6,
|
|
11051
|
-
private: [],
|
|
11052
|
-
selections: [
|
|
11053
|
-
{
|
|
11054
|
-
name: 'endDate',
|
|
11055
|
-
kind: 'Scalar',
|
|
11056
|
-
required: false
|
|
11057
|
-
},
|
|
11058
|
-
{
|
|
11059
|
-
name: 'startDate',
|
|
11060
|
-
kind: 'Scalar',
|
|
11061
|
-
required: false
|
|
11062
|
-
}
|
|
11063
|
-
]
|
|
11064
|
-
};
|
|
11065
|
-
};
|
|
11066
|
-
function equals$6(existing, incoming) {
|
|
11067
|
-
const existing_endDate = existing.endDate;
|
|
11068
|
-
const incoming_endDate = incoming.endDate;
|
|
11069
|
-
// if at least one of these optionals is defined
|
|
11070
|
-
if (existing_endDate !== undefined || incoming_endDate !== undefined) {
|
|
11071
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11072
|
-
// not equal
|
|
11073
|
-
if (existing_endDate === undefined || incoming_endDate === undefined) {
|
|
11074
|
-
return false;
|
|
11075
|
-
}
|
|
11076
|
-
if (!(existing_endDate === incoming_endDate)) {
|
|
11077
|
-
return false;
|
|
11078
|
-
}
|
|
11079
|
-
}
|
|
11080
|
-
const existing_startDate = existing.startDate;
|
|
11081
|
-
const incoming_startDate = incoming.startDate;
|
|
11082
|
-
// if at least one of these optionals is defined
|
|
11083
|
-
if (existing_startDate !== undefined || incoming_startDate !== undefined) {
|
|
11084
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11085
|
-
// not equal
|
|
11086
|
-
if (existing_startDate === undefined || incoming_startDate === undefined) {
|
|
11087
|
-
return false;
|
|
11088
|
-
}
|
|
11089
|
-
if (!(existing_startDate === incoming_startDate)) {
|
|
11090
|
-
return false;
|
|
11091
|
-
}
|
|
11092
|
-
}
|
|
11093
|
-
return true;
|
|
11094
|
-
}
|
|
11095
11042
|
|
|
11096
|
-
const VERSION$5 = "77130f1cc25bfe67384d6074027e3f3c";
|
|
11097
11043
|
function validate$b(obj, path = 'SemanticGoalStatusConditionOutputRepresentation') {
|
|
11098
11044
|
const v_error = (() => {
|
|
11099
11045
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -11134,83 +11080,8 @@ function validate$b(obj, path = 'SemanticGoalStatusConditionOutputRepresentation
|
|
|
11134
11080
|
})();
|
|
11135
11081
|
return v_error === undefined ? null : v_error;
|
|
11136
11082
|
}
|
|
11137
|
-
const select$f = function SemanticGoalStatusConditionOutputRepresentationSelect() {
|
|
11138
|
-
return {
|
|
11139
|
-
kind: 'Fragment',
|
|
11140
|
-
version: VERSION$5,
|
|
11141
|
-
private: [],
|
|
11142
|
-
selections: [
|
|
11143
|
-
{
|
|
11144
|
-
name: 'color',
|
|
11145
|
-
kind: 'Scalar'
|
|
11146
|
-
},
|
|
11147
|
-
{
|
|
11148
|
-
name: 'currencyIsoCode',
|
|
11149
|
-
kind: 'Scalar',
|
|
11150
|
-
required: false
|
|
11151
|
-
},
|
|
11152
|
-
{
|
|
11153
|
-
name: 'operator',
|
|
11154
|
-
kind: 'Scalar'
|
|
11155
|
-
},
|
|
11156
|
-
{
|
|
11157
|
-
name: 'primary',
|
|
11158
|
-
kind: 'Scalar'
|
|
11159
|
-
},
|
|
11160
|
-
{
|
|
11161
|
-
name: 'statusName',
|
|
11162
|
-
kind: 'Scalar'
|
|
11163
|
-
},
|
|
11164
|
-
{
|
|
11165
|
-
name: 'value',
|
|
11166
|
-
kind: 'Scalar'
|
|
11167
|
-
}
|
|
11168
|
-
]
|
|
11169
|
-
};
|
|
11170
|
-
};
|
|
11171
|
-
function equals$5(existing, incoming) {
|
|
11172
|
-
const existing_primary = existing.primary;
|
|
11173
|
-
const incoming_primary = incoming.primary;
|
|
11174
|
-
if (!(existing_primary === incoming_primary)) {
|
|
11175
|
-
return false;
|
|
11176
|
-
}
|
|
11177
|
-
const existing_color = existing.color;
|
|
11178
|
-
const incoming_color = incoming.color;
|
|
11179
|
-
if (!(existing_color === incoming_color)) {
|
|
11180
|
-
return false;
|
|
11181
|
-
}
|
|
11182
|
-
const existing_currencyIsoCode = existing.currencyIsoCode;
|
|
11183
|
-
const incoming_currencyIsoCode = incoming.currencyIsoCode;
|
|
11184
|
-
// if at least one of these optionals is defined
|
|
11185
|
-
if (existing_currencyIsoCode !== undefined || incoming_currencyIsoCode !== undefined) {
|
|
11186
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11187
|
-
// not equal
|
|
11188
|
-
if (existing_currencyIsoCode === undefined || incoming_currencyIsoCode === undefined) {
|
|
11189
|
-
return false;
|
|
11190
|
-
}
|
|
11191
|
-
if (!(existing_currencyIsoCode === incoming_currencyIsoCode)) {
|
|
11192
|
-
return false;
|
|
11193
|
-
}
|
|
11194
|
-
}
|
|
11195
|
-
const existing_operator = existing.operator;
|
|
11196
|
-
const incoming_operator = incoming.operator;
|
|
11197
|
-
if (!(existing_operator === incoming_operator)) {
|
|
11198
|
-
return false;
|
|
11199
|
-
}
|
|
11200
|
-
const existing_statusName = existing.statusName;
|
|
11201
|
-
const incoming_statusName = incoming.statusName;
|
|
11202
|
-
if (!(existing_statusName === incoming_statusName)) {
|
|
11203
|
-
return false;
|
|
11204
|
-
}
|
|
11205
|
-
const existing_value = existing.value;
|
|
11206
|
-
const incoming_value = incoming.value;
|
|
11207
|
-
if (!(existing_value === incoming_value)) {
|
|
11208
|
-
return false;
|
|
11209
|
-
}
|
|
11210
|
-
return true;
|
|
11211
|
-
}
|
|
11212
11083
|
|
|
11213
|
-
const VERSION$4 = "
|
|
11084
|
+
const VERSION$4 = "a6367e92be7c02cf72fcdd9bad3cf81d";
|
|
11214
11085
|
function validate$a(obj, path = 'SemanticGoalOutputRepresentation') {
|
|
11215
11086
|
const v_error = (() => {
|
|
11216
11087
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -11296,235 +11167,49 @@ function validate$a(obj, path = 'SemanticGoalOutputRepresentation') {
|
|
|
11296
11167
|
if (!ArrayIsArray(obj_statusConditions)) {
|
|
11297
11168
|
return new TypeError('Expected "array" but received "' + typeof obj_statusConditions + '" (at "' + path_statusConditions + '")');
|
|
11298
11169
|
}
|
|
11299
|
-
for (let i = 0; i < obj_statusConditions.length; i++) {
|
|
11300
|
-
const obj_statusConditions_item = obj_statusConditions[i];
|
|
11301
|
-
const path_statusConditions_item = path_statusConditions + '[' + i + ']';
|
|
11302
|
-
const referencepath_statusConditions_itemValidationError = validate$b(obj_statusConditions_item, path_statusConditions_item);
|
|
11303
|
-
if (referencepath_statusConditions_itemValidationError !== null) {
|
|
11304
|
-
let message = 'Object doesn\'t match SemanticGoalStatusConditionOutputRepresentation (at "' + path_statusConditions_item + '")\n';
|
|
11305
|
-
message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
11306
|
-
return new TypeError(message);
|
|
11307
|
-
}
|
|
11308
|
-
}
|
|
11309
|
-
const obj_subMetricDefinitionApiName = obj.subMetricDefinitionApiName;
|
|
11310
|
-
const path_subMetricDefinitionApiName = path + '.subMetricDefinitionApiName';
|
|
11311
|
-
if (typeof obj_subMetricDefinitionApiName !== 'string') {
|
|
11312
|
-
return new TypeError('Expected "string" but received "' + typeof obj_subMetricDefinitionApiName + '" (at "' + path_subMetricDefinitionApiName + '")');
|
|
11313
|
-
}
|
|
11314
|
-
})();
|
|
11315
|
-
return v_error === undefined ? null : v_error;
|
|
11316
|
-
}
|
|
11317
|
-
const RepresentationType$4 = 'SemanticGoalOutputRepresentation';
|
|
11318
|
-
function keyBuilder$h(luvio, config) {
|
|
11319
|
-
return keyPrefix + '::' + RepresentationType$4 + ':' + config.name;
|
|
11320
|
-
}
|
|
11321
|
-
function keyBuilderFromType$1(luvio, object) {
|
|
11322
|
-
const keyParams = {
|
|
11323
|
-
name: object.id
|
|
11324
|
-
};
|
|
11325
|
-
return keyBuilder$h(luvio, keyParams);
|
|
11326
|
-
}
|
|
11327
|
-
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
11328
|
-
return input;
|
|
11329
|
-
}
|
|
11330
|
-
const select$e = function SemanticGoalOutputRepresentationSelect() {
|
|
11331
|
-
const { selections: SemanticGoalDateRangeOutputRepresentation__selections, opaque: SemanticGoalDateRangeOutputRepresentation__opaque, } = select$g();
|
|
11332
|
-
const { selections: SemanticGoalStatusConditionOutputRepresentation__selections, opaque: SemanticGoalStatusConditionOutputRepresentation__opaque, } = select$f();
|
|
11333
|
-
return {
|
|
11334
|
-
kind: 'Fragment',
|
|
11335
|
-
version: VERSION$4,
|
|
11336
|
-
private: [],
|
|
11337
|
-
selections: [
|
|
11338
|
-
{
|
|
11339
|
-
name: 'apiName',
|
|
11340
|
-
kind: 'Scalar'
|
|
11341
|
-
},
|
|
11342
|
-
{
|
|
11343
|
-
name: 'baseModelApiName',
|
|
11344
|
-
kind: 'Scalar',
|
|
11345
|
-
required: false
|
|
11346
|
-
},
|
|
11347
|
-
{
|
|
11348
|
-
name: 'cacheKey',
|
|
11349
|
-
kind: 'Scalar',
|
|
11350
|
-
required: false
|
|
11351
|
-
},
|
|
11352
|
-
{
|
|
11353
|
-
name: 'createdBy',
|
|
11354
|
-
kind: 'Scalar'
|
|
11355
|
-
},
|
|
11356
|
-
{
|
|
11357
|
-
name: 'createdDate',
|
|
11358
|
-
kind: 'Scalar'
|
|
11359
|
-
},
|
|
11360
|
-
{
|
|
11361
|
-
name: 'dateRange',
|
|
11362
|
-
kind: 'Object',
|
|
11363
|
-
selections: SemanticGoalDateRangeOutputRepresentation__selections
|
|
11364
|
-
},
|
|
11365
|
-
{
|
|
11366
|
-
name: 'description',
|
|
11367
|
-
kind: 'Scalar',
|
|
11368
|
-
required: false
|
|
11369
|
-
},
|
|
11370
|
-
{
|
|
11371
|
-
name: 'forecasting',
|
|
11372
|
-
kind: 'Scalar'
|
|
11373
|
-
},
|
|
11374
|
-
{
|
|
11375
|
-
name: 'id',
|
|
11376
|
-
kind: 'Scalar'
|
|
11377
|
-
},
|
|
11378
|
-
{
|
|
11379
|
-
name: 'label',
|
|
11380
|
-
kind: 'Scalar',
|
|
11381
|
-
required: false
|
|
11382
|
-
},
|
|
11383
|
-
{
|
|
11384
|
-
name: 'lastModifiedBy',
|
|
11385
|
-
kind: 'Scalar',
|
|
11386
|
-
required: false
|
|
11387
|
-
},
|
|
11388
|
-
{
|
|
11389
|
-
name: 'lastModifiedDate',
|
|
11390
|
-
kind: 'Scalar',
|
|
11391
|
-
required: false
|
|
11392
|
-
},
|
|
11393
|
-
{
|
|
11394
|
-
name: 'statusConditions',
|
|
11395
|
-
kind: 'Object',
|
|
11396
|
-
plural: true,
|
|
11397
|
-
selections: SemanticGoalStatusConditionOutputRepresentation__selections
|
|
11398
|
-
},
|
|
11399
|
-
{
|
|
11400
|
-
name: 'subMetricDefinitionApiName',
|
|
11401
|
-
kind: 'Scalar'
|
|
11402
|
-
}
|
|
11403
|
-
]
|
|
11404
|
-
};
|
|
11405
|
-
};
|
|
11406
|
-
function equals$4(existing, incoming) {
|
|
11407
|
-
const existing_forecasting = existing.forecasting;
|
|
11408
|
-
const incoming_forecasting = incoming.forecasting;
|
|
11409
|
-
if (!(existing_forecasting === incoming_forecasting)) {
|
|
11410
|
-
return false;
|
|
11411
|
-
}
|
|
11412
|
-
const existing_apiName = existing.apiName;
|
|
11413
|
-
const incoming_apiName = incoming.apiName;
|
|
11414
|
-
if (!(existing_apiName === incoming_apiName)) {
|
|
11415
|
-
return false;
|
|
11416
|
-
}
|
|
11417
|
-
const existing_baseModelApiName = existing.baseModelApiName;
|
|
11418
|
-
const incoming_baseModelApiName = incoming.baseModelApiName;
|
|
11419
|
-
// if at least one of these optionals is defined
|
|
11420
|
-
if (existing_baseModelApiName !== undefined || incoming_baseModelApiName !== undefined) {
|
|
11421
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11422
|
-
// not equal
|
|
11423
|
-
if (existing_baseModelApiName === undefined || incoming_baseModelApiName === undefined) {
|
|
11424
|
-
return false;
|
|
11425
|
-
}
|
|
11426
|
-
if (!(existing_baseModelApiName === incoming_baseModelApiName)) {
|
|
11427
|
-
return false;
|
|
11428
|
-
}
|
|
11429
|
-
}
|
|
11430
|
-
const existing_cacheKey = existing.cacheKey;
|
|
11431
|
-
const incoming_cacheKey = incoming.cacheKey;
|
|
11432
|
-
// if at least one of these optionals is defined
|
|
11433
|
-
if (existing_cacheKey !== undefined || incoming_cacheKey !== undefined) {
|
|
11434
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11435
|
-
// not equal
|
|
11436
|
-
if (existing_cacheKey === undefined || incoming_cacheKey === undefined) {
|
|
11437
|
-
return false;
|
|
11438
|
-
}
|
|
11439
|
-
if (!(existing_cacheKey === incoming_cacheKey)) {
|
|
11440
|
-
return false;
|
|
11441
|
-
}
|
|
11442
|
-
}
|
|
11443
|
-
const existing_createdBy = existing.createdBy;
|
|
11444
|
-
const incoming_createdBy = incoming.createdBy;
|
|
11445
|
-
if (!(existing_createdBy === incoming_createdBy)) {
|
|
11446
|
-
return false;
|
|
11447
|
-
}
|
|
11448
|
-
const existing_createdDate = existing.createdDate;
|
|
11449
|
-
const incoming_createdDate = incoming.createdDate;
|
|
11450
|
-
if (!(existing_createdDate === incoming_createdDate)) {
|
|
11451
|
-
return false;
|
|
11452
|
-
}
|
|
11453
|
-
const existing_description = existing.description;
|
|
11454
|
-
const incoming_description = incoming.description;
|
|
11455
|
-
// if at least one of these optionals is defined
|
|
11456
|
-
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
11457
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11458
|
-
// not equal
|
|
11459
|
-
if (existing_description === undefined || incoming_description === undefined) {
|
|
11460
|
-
return false;
|
|
11461
|
-
}
|
|
11462
|
-
if (!(existing_description === incoming_description)) {
|
|
11463
|
-
return false;
|
|
11464
|
-
}
|
|
11465
|
-
}
|
|
11466
|
-
const existing_id = existing.id;
|
|
11467
|
-
const incoming_id = incoming.id;
|
|
11468
|
-
if (!(existing_id === incoming_id)) {
|
|
11469
|
-
return false;
|
|
11470
|
-
}
|
|
11471
|
-
const existing_label = existing.label;
|
|
11472
|
-
const incoming_label = incoming.label;
|
|
11473
|
-
// if at least one of these optionals is defined
|
|
11474
|
-
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
11475
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11476
|
-
// not equal
|
|
11477
|
-
if (existing_label === undefined || incoming_label === undefined) {
|
|
11478
|
-
return false;
|
|
11479
|
-
}
|
|
11480
|
-
if (!(existing_label === incoming_label)) {
|
|
11481
|
-
return false;
|
|
11482
|
-
}
|
|
11483
|
-
}
|
|
11484
|
-
const existing_lastModifiedBy = existing.lastModifiedBy;
|
|
11485
|
-
const incoming_lastModifiedBy = incoming.lastModifiedBy;
|
|
11486
|
-
// if at least one of these optionals is defined
|
|
11487
|
-
if (existing_lastModifiedBy !== undefined || incoming_lastModifiedBy !== undefined) {
|
|
11488
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11489
|
-
// not equal
|
|
11490
|
-
if (existing_lastModifiedBy === undefined || incoming_lastModifiedBy === undefined) {
|
|
11491
|
-
return false;
|
|
11492
|
-
}
|
|
11493
|
-
if (!(existing_lastModifiedBy === incoming_lastModifiedBy)) {
|
|
11494
|
-
return false;
|
|
11495
|
-
}
|
|
11496
|
-
}
|
|
11497
|
-
const existing_lastModifiedDate = existing.lastModifiedDate;
|
|
11498
|
-
const incoming_lastModifiedDate = incoming.lastModifiedDate;
|
|
11499
|
-
// if at least one of these optionals is defined
|
|
11500
|
-
if (existing_lastModifiedDate !== undefined || incoming_lastModifiedDate !== undefined) {
|
|
11501
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11502
|
-
// not equal
|
|
11503
|
-
if (existing_lastModifiedDate === undefined || incoming_lastModifiedDate === undefined) {
|
|
11504
|
-
return false;
|
|
11505
|
-
}
|
|
11506
|
-
if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
|
|
11507
|
-
return false;
|
|
11170
|
+
for (let i = 0; i < obj_statusConditions.length; i++) {
|
|
11171
|
+
const obj_statusConditions_item = obj_statusConditions[i];
|
|
11172
|
+
const path_statusConditions_item = path_statusConditions + '[' + i + ']';
|
|
11173
|
+
const referencepath_statusConditions_itemValidationError = validate$b(obj_statusConditions_item, path_statusConditions_item);
|
|
11174
|
+
if (referencepath_statusConditions_itemValidationError !== null) {
|
|
11175
|
+
let message = 'Object doesn\'t match SemanticGoalStatusConditionOutputRepresentation (at "' + path_statusConditions_item + '")\n';
|
|
11176
|
+
message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
11177
|
+
return new TypeError(message);
|
|
11178
|
+
}
|
|
11508
11179
|
}
|
|
11509
|
-
|
|
11510
|
-
|
|
11511
|
-
|
|
11512
|
-
|
|
11513
|
-
return false;
|
|
11514
|
-
}
|
|
11515
|
-
const existing_dateRange = existing.dateRange;
|
|
11516
|
-
const incoming_dateRange = incoming.dateRange;
|
|
11517
|
-
if (!(equals$6(existing_dateRange, incoming_dateRange))) {
|
|
11518
|
-
return false;
|
|
11519
|
-
}
|
|
11520
|
-
const existing_statusConditions = existing.statusConditions;
|
|
11521
|
-
const incoming_statusConditions = incoming.statusConditions;
|
|
11522
|
-
const equals_statusConditions_items = equalsArray(existing_statusConditions, incoming_statusConditions, (existing_statusConditions_item, incoming_statusConditions_item) => {
|
|
11523
|
-
if (!(equals$5(existing_statusConditions_item, incoming_statusConditions_item))) {
|
|
11524
|
-
return false;
|
|
11180
|
+
const obj_subMetricDefinitionApiName = obj.subMetricDefinitionApiName;
|
|
11181
|
+
const path_subMetricDefinitionApiName = path + '.subMetricDefinitionApiName';
|
|
11182
|
+
if (typeof obj_subMetricDefinitionApiName !== 'string') {
|
|
11183
|
+
return new TypeError('Expected "string" but received "' + typeof obj_subMetricDefinitionApiName + '" (at "' + path_subMetricDefinitionApiName + '")');
|
|
11525
11184
|
}
|
|
11526
|
-
});
|
|
11527
|
-
|
|
11185
|
+
})();
|
|
11186
|
+
return v_error === undefined ? null : v_error;
|
|
11187
|
+
}
|
|
11188
|
+
const RepresentationType$4 = 'SemanticGoalOutputRepresentation';
|
|
11189
|
+
function keyBuilder$i(luvio, config) {
|
|
11190
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.subMetricNameOrId + ':' + config.startDate + ':' + config.endDate;
|
|
11191
|
+
}
|
|
11192
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
11193
|
+
const keyParams = {
|
|
11194
|
+
subMetricNameOrId: object.subMetricDefinitionApiName,
|
|
11195
|
+
startDate: object.dateRange.startDate,
|
|
11196
|
+
endDate: object.dateRange.endDate
|
|
11197
|
+
};
|
|
11198
|
+
return keyBuilder$i(luvio, keyParams);
|
|
11199
|
+
}
|
|
11200
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
11201
|
+
return input;
|
|
11202
|
+
}
|
|
11203
|
+
const select$f = function SemanticGoalOutputRepresentationSelect() {
|
|
11204
|
+
return {
|
|
11205
|
+
kind: 'Fragment',
|
|
11206
|
+
version: VERSION$4,
|
|
11207
|
+
private: [],
|
|
11208
|
+
opaque: true
|
|
11209
|
+
};
|
|
11210
|
+
};
|
|
11211
|
+
function equals$4(existing, incoming) {
|
|
11212
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
11528
11213
|
return false;
|
|
11529
11214
|
}
|
|
11530
11215
|
return true;
|
|
@@ -11551,24 +11236,115 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11551
11236
|
});
|
|
11552
11237
|
}
|
|
11553
11238
|
|
|
11554
|
-
function
|
|
11555
|
-
return
|
|
11239
|
+
function keyBuilder$h(luvio, params) {
|
|
11240
|
+
return keyBuilder$i(luvio, {
|
|
11241
|
+
subMetricNameOrId: params.queryParams.subMetricApiNameOrId,
|
|
11242
|
+
startDate: params.queryParams.startDate,
|
|
11243
|
+
endDate: params.queryParams.endDate
|
|
11244
|
+
});
|
|
11245
|
+
}
|
|
11246
|
+
function getResponseCacheKeys$d(cacheKeyMap, luvio, resourceParams) {
|
|
11247
|
+
const key = keyBuilder$h(luvio, resourceParams);
|
|
11248
|
+
cacheKeyMap.set(key, {
|
|
11249
|
+
namespace: keyPrefix,
|
|
11250
|
+
representationName: RepresentationType$4,
|
|
11251
|
+
mergeable: false
|
|
11252
|
+
});
|
|
11253
|
+
}
|
|
11254
|
+
function evictSuccess$2(luvio, resourceParams) {
|
|
11255
|
+
const key = keyBuilder$h(luvio, resourceParams);
|
|
11256
|
+
luvio.storeEvict(key);
|
|
11257
|
+
}
|
|
11258
|
+
function createResourceRequest$d(config) {
|
|
11259
|
+
const headers = {};
|
|
11260
|
+
return {
|
|
11261
|
+
baseUri: '/services/data/v63.0',
|
|
11262
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/goals',
|
|
11263
|
+
method: 'delete',
|
|
11264
|
+
body: null,
|
|
11265
|
+
urlParams: config.urlParams,
|
|
11266
|
+
queryParams: config.queryParams,
|
|
11267
|
+
headers,
|
|
11268
|
+
priority: 'normal',
|
|
11269
|
+
};
|
|
11270
|
+
}
|
|
11271
|
+
|
|
11272
|
+
const adapterName$d = 'deleteSemanticGoal';
|
|
11273
|
+
const deleteSemanticGoal_ConfigPropertyMetadata = [
|
|
11274
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11275
|
+
generateParamConfigMetadata('endDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
11276
|
+
generateParamConfigMetadata('startDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
11277
|
+
generateParamConfigMetadata('subMetricApiNameOrId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
11278
|
+
];
|
|
11279
|
+
const deleteSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, deleteSemanticGoal_ConfigPropertyMetadata);
|
|
11280
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$k(deleteSemanticGoal_ConfigPropertyMetadata);
|
|
11281
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
11282
|
+
const config = {};
|
|
11283
|
+
typeCheckConfig$k(untrustedConfig, config, deleteSemanticGoal_ConfigPropertyMetadata);
|
|
11284
|
+
return config;
|
|
11285
|
+
}
|
|
11286
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
11287
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
11288
|
+
return null;
|
|
11289
|
+
}
|
|
11290
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
11291
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
11292
|
+
}
|
|
11293
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
11294
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11295
|
+
return null;
|
|
11296
|
+
}
|
|
11297
|
+
return config;
|
|
11298
|
+
}
|
|
11299
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
11300
|
+
const resourceParams = createResourceParams$d(config);
|
|
11301
|
+
const request = createResourceRequest$d(resourceParams);
|
|
11302
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
11303
|
+
.then(() => {
|
|
11304
|
+
return luvio.handleSuccessResponse(() => {
|
|
11305
|
+
evictSuccess$2(luvio, resourceParams);
|
|
11306
|
+
return luvio.storeBroadcast();
|
|
11307
|
+
}, () => {
|
|
11308
|
+
const cache = new StoreKeyMap();
|
|
11309
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams);
|
|
11310
|
+
return cache;
|
|
11311
|
+
});
|
|
11312
|
+
}, (response) => {
|
|
11313
|
+
deepFreeze(response);
|
|
11314
|
+
throw response;
|
|
11315
|
+
});
|
|
11316
|
+
}
|
|
11317
|
+
const deleteSemanticGoalAdapterFactory = (luvio) => {
|
|
11318
|
+
return function SemanticAuthoringdeleteSemanticGoal(untrustedConfig) {
|
|
11319
|
+
const config = validateAdapterConfig$d(untrustedConfig, deleteSemanticGoal_ConfigPropertyNames);
|
|
11320
|
+
// Invalid or incomplete config
|
|
11321
|
+
if (config === null) {
|
|
11322
|
+
throw new Error(`Invalid config for "${adapterName$d}"`);
|
|
11323
|
+
}
|
|
11324
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
11325
|
+
};
|
|
11326
|
+
};
|
|
11327
|
+
|
|
11328
|
+
function select$e(luvio, params) {
|
|
11329
|
+
return select$f();
|
|
11556
11330
|
}
|
|
11557
11331
|
function keyBuilder$g(luvio, params) {
|
|
11558
|
-
return keyBuilder$
|
|
11559
|
-
|
|
11332
|
+
return keyBuilder$i(luvio, {
|
|
11333
|
+
subMetricNameOrId: params.queryParams.subMetricApiNameOrId,
|
|
11334
|
+
startDate: params.queryParams.startDate,
|
|
11335
|
+
endDate: params.queryParams.endDate
|
|
11560
11336
|
});
|
|
11561
11337
|
}
|
|
11562
|
-
function getResponseCacheKeys$
|
|
11338
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
11563
11339
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
11564
11340
|
}
|
|
11565
|
-
function ingestSuccess$
|
|
11341
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
11566
11342
|
const { body } = response;
|
|
11567
11343
|
const key = keyBuilder$g(luvio, resourceParams);
|
|
11568
11344
|
luvio.storeIngest(key, ingest$4, body);
|
|
11569
11345
|
const snapshot = luvio.storeLookup({
|
|
11570
11346
|
recordId: key,
|
|
11571
|
-
node: select$
|
|
11347
|
+
node: select$e(),
|
|
11572
11348
|
variables: {},
|
|
11573
11349
|
}, snapshotRefresh);
|
|
11574
11350
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11585,7 +11361,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
11585
11361
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11586
11362
|
return errorSnapshot;
|
|
11587
11363
|
}
|
|
11588
|
-
function createResourceRequest$
|
|
11364
|
+
function createResourceRequest$c(config) {
|
|
11589
11365
|
const headers = {};
|
|
11590
11366
|
return {
|
|
11591
11367
|
baseUri: '/services/data/v63.0',
|
|
@@ -11599,63 +11375,63 @@ function createResourceRequest$b(config) {
|
|
|
11599
11375
|
};
|
|
11600
11376
|
}
|
|
11601
11377
|
|
|
11602
|
-
const adapterName$
|
|
11378
|
+
const adapterName$c = 'getSemanticGoal';
|
|
11603
11379
|
const getSemanticGoal_ConfigPropertyMetadata = [
|
|
11604
11380
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11605
|
-
generateParamConfigMetadata('endDate',
|
|
11606
|
-
generateParamConfigMetadata('startDate',
|
|
11607
|
-
generateParamConfigMetadata('subMetricApiNameOrId',
|
|
11381
|
+
generateParamConfigMetadata('endDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
11382
|
+
generateParamConfigMetadata('startDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
11383
|
+
generateParamConfigMetadata('subMetricApiNameOrId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
11608
11384
|
];
|
|
11609
|
-
const getSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11610
|
-
const createResourceParams$
|
|
11385
|
+
const getSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSemanticGoal_ConfigPropertyMetadata);
|
|
11386
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$k(getSemanticGoal_ConfigPropertyMetadata);
|
|
11611
11387
|
function keyBuilder$f(luvio, config) {
|
|
11612
|
-
const resourceParams = createResourceParams$
|
|
11388
|
+
const resourceParams = createResourceParams$c(config);
|
|
11613
11389
|
return keyBuilder$g(luvio, resourceParams);
|
|
11614
11390
|
}
|
|
11615
|
-
function typeCheckConfig$
|
|
11391
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
11616
11392
|
const config = {};
|
|
11617
|
-
typeCheckConfig$
|
|
11393
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticGoal_ConfigPropertyMetadata);
|
|
11618
11394
|
return config;
|
|
11619
11395
|
}
|
|
11620
|
-
function validateAdapterConfig$
|
|
11396
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
11621
11397
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11622
11398
|
return null;
|
|
11623
11399
|
}
|
|
11624
11400
|
if (process.env.NODE_ENV !== 'production') {
|
|
11625
11401
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11626
11402
|
}
|
|
11627
|
-
const config = typeCheckConfig$
|
|
11403
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
11628
11404
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11629
11405
|
return null;
|
|
11630
11406
|
}
|
|
11631
11407
|
return config;
|
|
11632
11408
|
}
|
|
11633
11409
|
function adapterFragment$6(luvio, config) {
|
|
11634
|
-
createResourceParams$
|
|
11635
|
-
return select$
|
|
11410
|
+
createResourceParams$c(config);
|
|
11411
|
+
return select$e();
|
|
11636
11412
|
}
|
|
11637
11413
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
11638
|
-
const snapshot = ingestSuccess$
|
|
11414
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
11639
11415
|
config,
|
|
11640
|
-
resolve: () => buildNetworkSnapshot$
|
|
11416
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
11641
11417
|
});
|
|
11642
11418
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11643
11419
|
}
|
|
11644
11420
|
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
11645
11421
|
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
11646
11422
|
config,
|
|
11647
|
-
resolve: () => buildNetworkSnapshot$
|
|
11423
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
11648
11424
|
});
|
|
11649
11425
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11650
11426
|
}
|
|
11651
|
-
function buildNetworkSnapshot$
|
|
11652
|
-
const resourceParams = createResourceParams$
|
|
11653
|
-
const request = createResourceRequest$
|
|
11427
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
11428
|
+
const resourceParams = createResourceParams$c(config);
|
|
11429
|
+
const request = createResourceRequest$c(resourceParams);
|
|
11654
11430
|
return luvio.dispatchResourceRequest(request, options)
|
|
11655
11431
|
.then((response) => {
|
|
11656
11432
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
11657
11433
|
const cache = new StoreKeyMap();
|
|
11658
|
-
getResponseCacheKeys$
|
|
11434
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
11659
11435
|
return cache;
|
|
11660
11436
|
});
|
|
11661
11437
|
}, (response) => {
|
|
@@ -11663,7 +11439,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
11663
11439
|
});
|
|
11664
11440
|
}
|
|
11665
11441
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
11666
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11442
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
11667
11443
|
}
|
|
11668
11444
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
11669
11445
|
const { luvio, config } = context;
|
|
@@ -11674,12 +11450,12 @@ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
|
11674
11450
|
};
|
|
11675
11451
|
const cacheSnapshot = storeLookup(selector, {
|
|
11676
11452
|
config,
|
|
11677
|
-
resolve: () => buildNetworkSnapshot$
|
|
11453
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
11678
11454
|
});
|
|
11679
11455
|
return cacheSnapshot;
|
|
11680
11456
|
}
|
|
11681
11457
|
const getSemanticGoalAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticGoal(untrustedConfig, requestContext) {
|
|
11682
|
-
const config = validateAdapterConfig$
|
|
11458
|
+
const config = validateAdapterConfig$c(untrustedConfig, getSemanticGoal_ConfigPropertyNames);
|
|
11683
11459
|
// Invalid or incomplete config
|
|
11684
11460
|
if (config === null) {
|
|
11685
11461
|
return null;
|
|
@@ -11762,8 +11538,122 @@ function validate$8(obj, path = 'SemanticGoalStatusConditionInputRepresentation'
|
|
|
11762
11538
|
return v_error === undefined ? null : v_error;
|
|
11763
11539
|
}
|
|
11764
11540
|
|
|
11541
|
+
function select$d(luvio, params) {
|
|
11542
|
+
return select$f();
|
|
11543
|
+
}
|
|
11544
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
11545
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
11546
|
+
}
|
|
11547
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
11548
|
+
const { body } = response;
|
|
11549
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
11550
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
11551
|
+
const snapshot = luvio.storeLookup({
|
|
11552
|
+
recordId: key,
|
|
11553
|
+
node: select$d(),
|
|
11554
|
+
variables: {},
|
|
11555
|
+
});
|
|
11556
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
11557
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
11558
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
11559
|
+
}
|
|
11560
|
+
}
|
|
11561
|
+
deepFreeze(snapshot.data);
|
|
11562
|
+
return snapshot;
|
|
11563
|
+
}
|
|
11564
|
+
function createResourceRequest$b(config) {
|
|
11565
|
+
const headers = {};
|
|
11566
|
+
return {
|
|
11567
|
+
baseUri: '/services/data/v63.0',
|
|
11568
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/goals',
|
|
11569
|
+
method: 'post',
|
|
11570
|
+
body: config.body,
|
|
11571
|
+
urlParams: config.urlParams,
|
|
11572
|
+
queryParams: {},
|
|
11573
|
+
headers,
|
|
11574
|
+
priority: 'normal',
|
|
11575
|
+
};
|
|
11576
|
+
}
|
|
11577
|
+
|
|
11578
|
+
const adapterName$b = 'createSemanticGoal';
|
|
11579
|
+
const createSemanticGoal_ConfigPropertyMetadata = [
|
|
11580
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11581
|
+
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
11582
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
11583
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
11584
|
+
generateParamConfigMetadata('dateRange', true, 2 /* Body */, 4 /* Unsupported */),
|
|
11585
|
+
generateParamConfigMetadata('forecasting', false, 2 /* Body */, 1 /* Boolean */),
|
|
11586
|
+
generateParamConfigMetadata('statusConditions', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11587
|
+
generateParamConfigMetadata('subMetricDefinitionApiName', true, 2 /* Body */, 0 /* String */),
|
|
11588
|
+
];
|
|
11589
|
+
const createSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createSemanticGoal_ConfigPropertyMetadata);
|
|
11590
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$k(createSemanticGoal_ConfigPropertyMetadata);
|
|
11591
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
11592
|
+
const config = {};
|
|
11593
|
+
typeCheckConfig$k(untrustedConfig, config, createSemanticGoal_ConfigPropertyMetadata);
|
|
11594
|
+
const untrustedConfig_dateRange = untrustedConfig.dateRange;
|
|
11595
|
+
const referenceSemanticGoalDateRangeInputRepresentationValidationError = validate$9(untrustedConfig_dateRange);
|
|
11596
|
+
if (referenceSemanticGoalDateRangeInputRepresentationValidationError === null) {
|
|
11597
|
+
config.dateRange = untrustedConfig_dateRange;
|
|
11598
|
+
}
|
|
11599
|
+
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
11600
|
+
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
11601
|
+
const untrustedConfig_statusConditions_array = [];
|
|
11602
|
+
for (let i = 0, arrayLength = untrustedConfig_statusConditions.length; i < arrayLength; i++) {
|
|
11603
|
+
const untrustedConfig_statusConditions_item = untrustedConfig_statusConditions[i];
|
|
11604
|
+
const referenceSemanticGoalStatusConditionInputRepresentationValidationError = validate$8(untrustedConfig_statusConditions_item);
|
|
11605
|
+
if (referenceSemanticGoalStatusConditionInputRepresentationValidationError === null) {
|
|
11606
|
+
untrustedConfig_statusConditions_array.push(untrustedConfig_statusConditions_item);
|
|
11607
|
+
}
|
|
11608
|
+
}
|
|
11609
|
+
config.statusConditions = untrustedConfig_statusConditions_array;
|
|
11610
|
+
}
|
|
11611
|
+
return config;
|
|
11612
|
+
}
|
|
11613
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
11614
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
11615
|
+
return null;
|
|
11616
|
+
}
|
|
11617
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
11618
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
11619
|
+
}
|
|
11620
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
11621
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11622
|
+
return null;
|
|
11623
|
+
}
|
|
11624
|
+
return config;
|
|
11625
|
+
}
|
|
11626
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
11627
|
+
const resourceParams = createResourceParams$b(config);
|
|
11628
|
+
const request = createResourceRequest$b(resourceParams);
|
|
11629
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
11630
|
+
.then((response) => {
|
|
11631
|
+
return luvio.handleSuccessResponse(() => {
|
|
11632
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
11633
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
11634
|
+
}, () => {
|
|
11635
|
+
const cache = new StoreKeyMap();
|
|
11636
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
11637
|
+
return cache;
|
|
11638
|
+
});
|
|
11639
|
+
}, (response) => {
|
|
11640
|
+
deepFreeze(response);
|
|
11641
|
+
throw response;
|
|
11642
|
+
});
|
|
11643
|
+
}
|
|
11644
|
+
const createSemanticGoalAdapterFactory = (luvio) => {
|
|
11645
|
+
return function createSemanticGoal(untrustedConfig) {
|
|
11646
|
+
const config = validateAdapterConfig$b(untrustedConfig, createSemanticGoal_ConfigPropertyNames);
|
|
11647
|
+
// Invalid or incomplete config
|
|
11648
|
+
if (config === null) {
|
|
11649
|
+
throw new Error('Invalid config for "createSemanticGoal"');
|
|
11650
|
+
}
|
|
11651
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
11652
|
+
};
|
|
11653
|
+
};
|
|
11654
|
+
|
|
11765
11655
|
function select$c(luvio, params) {
|
|
11766
|
-
return select$
|
|
11656
|
+
return select$f();
|
|
11767
11657
|
}
|
|
11768
11658
|
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
11769
11659
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
@@ -11790,31 +11680,34 @@ function createResourceRequest$a(config) {
|
|
|
11790
11680
|
return {
|
|
11791
11681
|
baseUri: '/services/data/v63.0',
|
|
11792
11682
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/goals',
|
|
11793
|
-
method: '
|
|
11683
|
+
method: 'put',
|
|
11794
11684
|
body: config.body,
|
|
11795
11685
|
urlParams: config.urlParams,
|
|
11796
|
-
queryParams:
|
|
11686
|
+
queryParams: config.queryParams,
|
|
11797
11687
|
headers,
|
|
11798
11688
|
priority: 'normal',
|
|
11799
11689
|
};
|
|
11800
11690
|
}
|
|
11801
11691
|
|
|
11802
|
-
const adapterName$a = '
|
|
11803
|
-
const
|
|
11692
|
+
const adapterName$a = 'updateSemanticGoal';
|
|
11693
|
+
const updateSemanticGoal_ConfigPropertyMetadata = [
|
|
11804
11694
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11695
|
+
generateParamConfigMetadata('endDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
11696
|
+
generateParamConfigMetadata('startDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
11697
|
+
generateParamConfigMetadata('subMetricApiNameOrId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
11805
11698
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
11806
11699
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
11807
11700
|
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
11808
|
-
generateParamConfigMetadata('dateRange',
|
|
11701
|
+
generateParamConfigMetadata('dateRange', true, 2 /* Body */, 4 /* Unsupported */),
|
|
11809
11702
|
generateParamConfigMetadata('forecasting', false, 2 /* Body */, 1 /* Boolean */),
|
|
11810
|
-
generateParamConfigMetadata('statusConditions',
|
|
11811
|
-
generateParamConfigMetadata('subMetricDefinitionApiName',
|
|
11703
|
+
generateParamConfigMetadata('statusConditions', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11704
|
+
generateParamConfigMetadata('subMetricDefinitionApiName', true, 2 /* Body */, 0 /* String */),
|
|
11812
11705
|
];
|
|
11813
|
-
const
|
|
11814
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
11706
|
+
const updateSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, updateSemanticGoal_ConfigPropertyMetadata);
|
|
11707
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$k(updateSemanticGoal_ConfigPropertyMetadata);
|
|
11815
11708
|
function typeCheckConfig$a(untrustedConfig) {
|
|
11816
11709
|
const config = {};
|
|
11817
|
-
typeCheckConfig$
|
|
11710
|
+
typeCheckConfig$k(untrustedConfig, config, updateSemanticGoal_ConfigPropertyMetadata);
|
|
11818
11711
|
const untrustedConfig_dateRange = untrustedConfig.dateRange;
|
|
11819
11712
|
const referenceSemanticGoalDateRangeInputRepresentationValidationError = validate$9(untrustedConfig_dateRange);
|
|
11820
11713
|
if (referenceSemanticGoalDateRangeInputRepresentationValidationError === null) {
|
|
@@ -11865,12 +11758,12 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
11865
11758
|
throw response;
|
|
11866
11759
|
});
|
|
11867
11760
|
}
|
|
11868
|
-
const
|
|
11869
|
-
return function
|
|
11870
|
-
const config = validateAdapterConfig$a(untrustedConfig,
|
|
11761
|
+
const updateSemanticGoalAdapterFactory = (luvio) => {
|
|
11762
|
+
return function updateSemanticGoal(untrustedConfig) {
|
|
11763
|
+
const config = validateAdapterConfig$a(untrustedConfig, updateSemanticGoal_ConfigPropertyNames);
|
|
11871
11764
|
// Invalid or incomplete config
|
|
11872
11765
|
if (config === null) {
|
|
11873
|
-
throw new Error('Invalid config for "
|
|
11766
|
+
throw new Error('Invalid config for "updateSemanticGoal"');
|
|
11874
11767
|
}
|
|
11875
11768
|
return buildNetworkSnapshot$a(luvio, config);
|
|
11876
11769
|
};
|
|
@@ -12413,14 +12306,14 @@ const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
|
12413
12306
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12414
12307
|
];
|
|
12415
12308
|
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
12416
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
12309
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$k(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
12417
12310
|
function keyBuilder$c(luvio, config) {
|
|
12418
12311
|
const resourceParams = createResourceParams$9(config);
|
|
12419
12312
|
return keyBuilder$d(luvio, resourceParams);
|
|
12420
12313
|
}
|
|
12421
12314
|
function typeCheckConfig$9(untrustedConfig) {
|
|
12422
12315
|
const config = {};
|
|
12423
|
-
typeCheckConfig$
|
|
12316
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
12424
12317
|
return config;
|
|
12425
12318
|
}
|
|
12426
12319
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -12495,7 +12388,7 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
12495
12388
|
};
|
|
12496
12389
|
|
|
12497
12390
|
function select$7(luvio, params) {
|
|
12498
|
-
return select$
|
|
12391
|
+
return select$I();
|
|
12499
12392
|
}
|
|
12500
12393
|
function keyBuilder$b(luvio, params) {
|
|
12501
12394
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
@@ -12545,14 +12438,14 @@ const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
|
12545
12438
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12546
12439
|
];
|
|
12547
12440
|
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetrics_ConfigPropertyMetadata);
|
|
12548
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
12441
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$k(getSemanticMetrics_ConfigPropertyMetadata);
|
|
12549
12442
|
function keyBuilder$a(luvio, config) {
|
|
12550
12443
|
const resourceParams = createResourceParams$8(config);
|
|
12551
12444
|
return keyBuilder$b(luvio, resourceParams);
|
|
12552
12445
|
}
|
|
12553
12446
|
function typeCheckConfig$8(untrustedConfig) {
|
|
12554
12447
|
const config = {};
|
|
12555
|
-
typeCheckConfig$
|
|
12448
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
12556
12449
|
return config;
|
|
12557
12450
|
}
|
|
12558
12451
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -12627,10 +12520,10 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
12627
12520
|
};
|
|
12628
12521
|
|
|
12629
12522
|
function select$6(luvio, params) {
|
|
12630
|
-
return select$
|
|
12523
|
+
return select$J();
|
|
12631
12524
|
}
|
|
12632
12525
|
function keyBuilder$9(luvio, params) {
|
|
12633
|
-
return keyBuilder$
|
|
12526
|
+
return keyBuilder$B(luvio, {
|
|
12634
12527
|
name: params.urlParams.metricNameOrId
|
|
12635
12528
|
});
|
|
12636
12529
|
}
|
|
@@ -12680,14 +12573,14 @@ const getSemanticMetric_ConfigPropertyMetadata = [
|
|
|
12680
12573
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12681
12574
|
];
|
|
12682
12575
|
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetric_ConfigPropertyMetadata);
|
|
12683
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
12576
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$k(getSemanticMetric_ConfigPropertyMetadata);
|
|
12684
12577
|
function keyBuilder$8(luvio, config) {
|
|
12685
12578
|
const resourceParams = createResourceParams$7(config);
|
|
12686
12579
|
return keyBuilder$9(luvio, resourceParams);
|
|
12687
12580
|
}
|
|
12688
12581
|
function typeCheckConfig$7(untrustedConfig) {
|
|
12689
12582
|
const config = {};
|
|
12690
|
-
typeCheckConfig$
|
|
12583
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
12691
12584
|
return config;
|
|
12692
12585
|
}
|
|
12693
12586
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -12923,14 +12816,14 @@ const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
|
12923
12816
|
generateParamConfigMetadata('hasGoal', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
12924
12817
|
];
|
|
12925
12818
|
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
12926
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
12819
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$k(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
12927
12820
|
function keyBuilder$6(luvio, config) {
|
|
12928
12821
|
const resourceParams = createResourceParams$6(config);
|
|
12929
12822
|
return keyBuilder$7(luvio, resourceParams);
|
|
12930
12823
|
}
|
|
12931
12824
|
function typeCheckConfig$6(untrustedConfig) {
|
|
12932
12825
|
const config = {};
|
|
12933
|
-
typeCheckConfig$
|
|
12826
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
12934
12827
|
return config;
|
|
12935
12828
|
}
|
|
12936
12829
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -13117,10 +13010,10 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
13117
13010
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
13118
13011
|
];
|
|
13119
13012
|
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
13120
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
13013
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$k(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
13121
13014
|
function typeCheckConfig$5(untrustedConfig) {
|
|
13122
13015
|
const config = {};
|
|
13123
|
-
typeCheckConfig$
|
|
13016
|
+
typeCheckConfig$k(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
13124
13017
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
13125
13018
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
13126
13019
|
const untrustedConfig_filters_array = [];
|
|
@@ -13224,10 +13117,10 @@ const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
13224
13117
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13225
13118
|
];
|
|
13226
13119
|
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
13227
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
13120
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$k(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
13228
13121
|
function typeCheckConfig$4(untrustedConfig) {
|
|
13229
13122
|
const config = {};
|
|
13230
|
-
typeCheckConfig$
|
|
13123
|
+
typeCheckConfig$k(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
13231
13124
|
return config;
|
|
13232
13125
|
}
|
|
13233
13126
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -13326,14 +13219,14 @@ const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
13326
13219
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13327
13220
|
];
|
|
13328
13221
|
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
13329
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
13222
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$k(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
13330
13223
|
function keyBuilder$3(luvio, config) {
|
|
13331
13224
|
const resourceParams = createResourceParams$3(config);
|
|
13332
13225
|
return keyBuilder$4(luvio, resourceParams);
|
|
13333
13226
|
}
|
|
13334
13227
|
function typeCheckConfig$3(untrustedConfig) {
|
|
13335
13228
|
const config = {};
|
|
13336
|
-
typeCheckConfig$
|
|
13229
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
13337
13230
|
return config;
|
|
13338
13231
|
}
|
|
13339
13232
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -13444,10 +13337,10 @@ const deleteGoalFromSubMetric_ConfigPropertyMetadata = [
|
|
|
13444
13337
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13445
13338
|
];
|
|
13446
13339
|
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
13447
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
13340
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$k(deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
13448
13341
|
function typeCheckConfig$2(untrustedConfig) {
|
|
13449
13342
|
const config = {};
|
|
13450
|
-
typeCheckConfig$
|
|
13343
|
+
typeCheckConfig$k(untrustedConfig, config, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
13451
13344
|
return config;
|
|
13452
13345
|
}
|
|
13453
13346
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -13537,10 +13430,10 @@ const patchSemanticMetricGoal_ConfigPropertyMetadata = [
|
|
|
13537
13430
|
generateParamConfigMetadata('statusConditions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
13538
13431
|
];
|
|
13539
13432
|
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
13540
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
13433
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$k(patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
13541
13434
|
function typeCheckConfig$1(untrustedConfig) {
|
|
13542
13435
|
const config = {};
|
|
13543
|
-
typeCheckConfig$
|
|
13436
|
+
typeCheckConfig$k(untrustedConfig, config, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
13544
13437
|
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
13545
13438
|
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
13546
13439
|
const untrustedConfig_statusConditions_array = [];
|
|
@@ -13650,14 +13543,14 @@ const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
|
13650
13543
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
13651
13544
|
];
|
|
13652
13545
|
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
13653
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
13546
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$k(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
13654
13547
|
function keyBuilder(luvio, config) {
|
|
13655
13548
|
const resourceParams = createResourceParams(config);
|
|
13656
13549
|
return keyBuilder$1(luvio, resourceParams);
|
|
13657
13550
|
}
|
|
13658
13551
|
function typeCheckConfig(untrustedConfig) {
|
|
13659
13552
|
const config = {};
|
|
13660
|
-
typeCheckConfig$
|
|
13553
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
13661
13554
|
return config;
|
|
13662
13555
|
}
|
|
13663
13556
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -13731,4 +13624,4 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
13731
13624
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
13732
13625
|
};
|
|
13733
13626
|
|
|
13734
|
-
export { createSemanticGoalAdapterFactory, createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteGoalFromSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getLeafDependenciesByTypesAdapterFactory, getSemanticGoalAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsByIdsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticMetricGoalAdapterFactory, patchSemanticModelAdapterFactory };
|
|
13627
|
+
export { createSemanticGoalAdapterFactory, createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteGoalFromSubMetricAdapterFactory, deleteSemanticGoalAdapterFactory, deleteSemanticSubMetricAdapterFactory, getLeafDependenciesByTypesAdapterFactory, getSemanticGoalAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsByIdsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticMetricGoalAdapterFactory, patchSemanticModelAdapterFactory, updateSemanticGoalAdapterFactory };
|