@salesforce/lds-adapters-cdp-semantic-authoring 1.309.0-dev8 → 1.309.0-dev9
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 +366 -150
- package/dist/es/es2018/types/src/generated/adapters/patchSemanticModel.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/package.json +3 -3
- package/sfdc/index.js +557 -338
- package/src/raml/luvio.raml +3 -0
|
@@ -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$8, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8, typeCheckConfig as typeCheckConfig$c, StoreKeyMap, createResourceParams as createResourceParams$c } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -113,7 +113,7 @@ function validate$V(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
113
113
|
})();
|
|
114
114
|
return v_error === undefined ? null : v_error;
|
|
115
115
|
}
|
|
116
|
-
const select$
|
|
116
|
+
const select$E = function SemanticBaseModelOutputRepresentationSelect() {
|
|
117
117
|
return {
|
|
118
118
|
kind: 'Fragment',
|
|
119
119
|
version: VERSION$t,
|
|
@@ -344,8 +344,8 @@ function validate$U(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
344
344
|
})();
|
|
345
345
|
return v_error === undefined ? null : v_error;
|
|
346
346
|
}
|
|
347
|
-
const select$
|
|
348
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
347
|
+
const select$D = function SemanticModelPartialOutputRepresentationSelect() {
|
|
348
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$E();
|
|
349
349
|
return {
|
|
350
350
|
kind: 'Fragment',
|
|
351
351
|
version: VERSION$s,
|
|
@@ -846,8 +846,8 @@ const RepresentationType$g = 'SemanticModelCollectionOutputRepresentation';
|
|
|
846
846
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
847
847
|
return input;
|
|
848
848
|
}
|
|
849
|
-
const select$
|
|
850
|
-
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$
|
|
849
|
+
const select$C = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
850
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$D();
|
|
851
851
|
return {
|
|
852
852
|
kind: 'Fragment',
|
|
853
853
|
version: VERSION$r,
|
|
@@ -978,22 +978,22 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
978
978
|
});
|
|
979
979
|
}
|
|
980
980
|
|
|
981
|
-
function select$
|
|
982
|
-
return select$
|
|
981
|
+
function select$B(luvio, params) {
|
|
982
|
+
return select$C();
|
|
983
983
|
}
|
|
984
984
|
function keyBuilder$s(luvio, params) {
|
|
985
985
|
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 + ')';
|
|
986
986
|
}
|
|
987
|
-
function getResponseCacheKeys$
|
|
987
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
988
988
|
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$s(luvio, resourceParams));
|
|
989
989
|
}
|
|
990
|
-
function ingestSuccess$
|
|
990
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
991
991
|
const { body } = response;
|
|
992
992
|
const key = keyBuilder$s(luvio, resourceParams);
|
|
993
993
|
luvio.storeIngest(key, ingest$g, body);
|
|
994
994
|
const snapshot = luvio.storeLookup({
|
|
995
995
|
recordId: key,
|
|
996
|
-
node: select$
|
|
996
|
+
node: select$B(),
|
|
997
997
|
variables: {},
|
|
998
998
|
}, snapshotRefresh);
|
|
999
999
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1010,7 +1010,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
1010
1010
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1011
1011
|
return errorSnapshot;
|
|
1012
1012
|
}
|
|
1013
|
-
function createResourceRequest$
|
|
1013
|
+
function createResourceRequest$b(config) {
|
|
1014
1014
|
const headers = {};
|
|
1015
1015
|
return {
|
|
1016
1016
|
baseUri: '/services/data/v62.0',
|
|
@@ -1024,7 +1024,7 @@ function createResourceRequest$a(config) {
|
|
|
1024
1024
|
};
|
|
1025
1025
|
}
|
|
1026
1026
|
|
|
1027
|
-
const adapterName$
|
|
1027
|
+
const adapterName$b = 'getSemanticModels';
|
|
1028
1028
|
const getSemanticModels_ConfigPropertyMetadata = [
|
|
1029
1029
|
generateParamConfigMetadata('app', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1030
1030
|
generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -1036,56 +1036,56 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
1036
1036
|
generateParamConfigMetadata('sourceCreation', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1037
1037
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1038
1038
|
];
|
|
1039
|
-
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1040
|
-
const createResourceParams$
|
|
1039
|
+
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSemanticModels_ConfigPropertyMetadata);
|
|
1040
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(getSemanticModels_ConfigPropertyMetadata);
|
|
1041
1041
|
function keyBuilder$r(luvio, config) {
|
|
1042
|
-
const resourceParams = createResourceParams$
|
|
1042
|
+
const resourceParams = createResourceParams$b(config);
|
|
1043
1043
|
return keyBuilder$s(luvio, resourceParams);
|
|
1044
1044
|
}
|
|
1045
|
-
function typeCheckConfig$
|
|
1045
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
1046
1046
|
const config = {};
|
|
1047
|
-
typeCheckConfig$
|
|
1047
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
1048
1048
|
return config;
|
|
1049
1049
|
}
|
|
1050
|
-
function validateAdapterConfig$
|
|
1050
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
1051
1051
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1052
1052
|
return null;
|
|
1053
1053
|
}
|
|
1054
1054
|
if (process.env.NODE_ENV !== 'production') {
|
|
1055
1055
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1056
1056
|
}
|
|
1057
|
-
const config = typeCheckConfig$
|
|
1057
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
1058
1058
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1059
1059
|
return null;
|
|
1060
1060
|
}
|
|
1061
1061
|
return config;
|
|
1062
1062
|
}
|
|
1063
1063
|
function adapterFragment$7(luvio, config) {
|
|
1064
|
-
createResourceParams$
|
|
1065
|
-
return select$
|
|
1064
|
+
createResourceParams$b(config);
|
|
1065
|
+
return select$B();
|
|
1066
1066
|
}
|
|
1067
1067
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
1068
|
-
const snapshot = ingestSuccess$
|
|
1068
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
1069
1069
|
config,
|
|
1070
|
-
resolve: () => buildNetworkSnapshot$
|
|
1070
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
1071
1071
|
});
|
|
1072
1072
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1073
1073
|
}
|
|
1074
1074
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
1075
1075
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
1076
1076
|
config,
|
|
1077
|
-
resolve: () => buildNetworkSnapshot$
|
|
1077
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
1078
1078
|
});
|
|
1079
1079
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1080
1080
|
}
|
|
1081
|
-
function buildNetworkSnapshot$
|
|
1082
|
-
const resourceParams = createResourceParams$
|
|
1083
|
-
const request = createResourceRequest$
|
|
1081
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
1082
|
+
const resourceParams = createResourceParams$b(config);
|
|
1083
|
+
const request = createResourceRequest$b(resourceParams);
|
|
1084
1084
|
return luvio.dispatchResourceRequest(request, options)
|
|
1085
1085
|
.then((response) => {
|
|
1086
1086
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
1087
1087
|
const cache = new StoreKeyMap();
|
|
1088
|
-
getResponseCacheKeys$
|
|
1088
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
1089
1089
|
return cache;
|
|
1090
1090
|
});
|
|
1091
1091
|
}, (response) => {
|
|
@@ -1093,7 +1093,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
1093
1093
|
});
|
|
1094
1094
|
}
|
|
1095
1095
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
1096
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1096
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
1097
1097
|
}
|
|
1098
1098
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
1099
1099
|
const { luvio, config } = context;
|
|
@@ -1104,12 +1104,12 @@ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
|
1104
1104
|
};
|
|
1105
1105
|
const cacheSnapshot = storeLookup(selector, {
|
|
1106
1106
|
config,
|
|
1107
|
-
resolve: () => buildNetworkSnapshot$
|
|
1107
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
1108
1108
|
});
|
|
1109
1109
|
return cacheSnapshot;
|
|
1110
1110
|
}
|
|
1111
1111
|
const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
|
|
1112
|
-
const config = validateAdapterConfig$
|
|
1112
|
+
const config = validateAdapterConfig$b(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
1113
1113
|
// Invalid or incomplete config
|
|
1114
1114
|
if (config === null) {
|
|
1115
1115
|
return null;
|
|
@@ -2664,7 +2664,7 @@ function validate$u(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
|
2664
2664
|
})();
|
|
2665
2665
|
return v_error === undefined ? null : v_error;
|
|
2666
2666
|
}
|
|
2667
|
-
const select$
|
|
2667
|
+
const select$A = function SemanticFilterOutputRepresentationSelect() {
|
|
2668
2668
|
return {
|
|
2669
2669
|
kind: 'Fragment',
|
|
2670
2670
|
version: VERSION$q,
|
|
@@ -2888,8 +2888,8 @@ function keyBuilderFromType$b(luvio, object) {
|
|
|
2888
2888
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
2889
2889
|
return input;
|
|
2890
2890
|
}
|
|
2891
|
-
const select$
|
|
2892
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
2891
|
+
const select$z = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
2892
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$A();
|
|
2893
2893
|
return {
|
|
2894
2894
|
kind: 'Fragment',
|
|
2895
2895
|
version: VERSION$p,
|
|
@@ -3428,8 +3428,8 @@ function keyBuilderFromType$a(luvio, object) {
|
|
|
3428
3428
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
3429
3429
|
return input;
|
|
3430
3430
|
}
|
|
3431
|
-
const select$
|
|
3432
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
3431
|
+
const select$y = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
3432
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$A();
|
|
3433
3433
|
return {
|
|
3434
3434
|
kind: 'Fragment',
|
|
3435
3435
|
version: VERSION$o,
|
|
@@ -4297,7 +4297,7 @@ function keyBuilderFromType$9(luvio, object) {
|
|
|
4297
4297
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
4298
4298
|
return input;
|
|
4299
4299
|
}
|
|
4300
|
-
const select$
|
|
4300
|
+
const select$x = function SemanticDataObjectOutputRepresentationSelect() {
|
|
4301
4301
|
return {
|
|
4302
4302
|
kind: 'Fragment',
|
|
4303
4303
|
version: VERSION$n,
|
|
@@ -4343,7 +4343,7 @@ function validate$o(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
4343
4343
|
})();
|
|
4344
4344
|
return v_error === undefined ? null : v_error;
|
|
4345
4345
|
}
|
|
4346
|
-
const select$
|
|
4346
|
+
const select$w = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
4347
4347
|
return {
|
|
4348
4348
|
kind: 'Fragment',
|
|
4349
4349
|
version: VERSION$m,
|
|
@@ -4393,7 +4393,7 @@ function validate$n(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
4393
4393
|
})();
|
|
4394
4394
|
return v_error === undefined ? null : v_error;
|
|
4395
4395
|
}
|
|
4396
|
-
const select$
|
|
4396
|
+
const select$v = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
4397
4397
|
return {
|
|
4398
4398
|
kind: 'Fragment',
|
|
4399
4399
|
version: VERSION$l,
|
|
@@ -4472,8 +4472,8 @@ function validate$m(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
4472
4472
|
})();
|
|
4473
4473
|
return v_error === undefined ? null : v_error;
|
|
4474
4474
|
}
|
|
4475
|
-
const select$
|
|
4476
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
4475
|
+
const select$u = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
4476
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$v();
|
|
4477
4477
|
return {
|
|
4478
4478
|
kind: 'Fragment',
|
|
4479
4479
|
version: VERSION$k,
|
|
@@ -4558,9 +4558,9 @@ function validate$l(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
4558
4558
|
})();
|
|
4559
4559
|
return v_error === undefined ? null : v_error;
|
|
4560
4560
|
}
|
|
4561
|
-
const select$
|
|
4562
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
4563
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
4561
|
+
const select$t = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
4562
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$w();
|
|
4563
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$u();
|
|
4564
4564
|
return {
|
|
4565
4565
|
kind: 'Fragment',
|
|
4566
4566
|
version: VERSION$j,
|
|
@@ -4634,7 +4634,7 @@ function validate$k(obj, path = 'SemanticTableFieldReferenceOutputRepresentation
|
|
|
4634
4634
|
})();
|
|
4635
4635
|
return v_error === undefined ? null : v_error;
|
|
4636
4636
|
}
|
|
4637
|
-
const select$
|
|
4637
|
+
const select$s = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
4638
4638
|
return {
|
|
4639
4639
|
kind: 'Fragment',
|
|
4640
4640
|
version: VERSION$i,
|
|
@@ -4709,8 +4709,8 @@ function validate$j(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
4709
4709
|
})();
|
|
4710
4710
|
return v_error === undefined ? null : v_error;
|
|
4711
4711
|
}
|
|
4712
|
-
const select$
|
|
4713
|
-
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$
|
|
4712
|
+
const select$r = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
4713
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$s();
|
|
4714
4714
|
return {
|
|
4715
4715
|
kind: 'Fragment',
|
|
4716
4716
|
version: VERSION$h,
|
|
@@ -4858,9 +4858,9 @@ function keyBuilderFromType$8(luvio, object) {
|
|
|
4858
4858
|
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
4859
4859
|
return input;
|
|
4860
4860
|
}
|
|
4861
|
-
const select$
|
|
4862
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
4863
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
4861
|
+
const select$q = function SemanticGroupingOutputRepresentationSelect() {
|
|
4862
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$t();
|
|
4863
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$r();
|
|
4864
4864
|
return {
|
|
4865
4865
|
kind: 'Fragment',
|
|
4866
4866
|
version: VERSION$g,
|
|
@@ -5093,7 +5093,7 @@ function validate$h(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
5093
5093
|
})();
|
|
5094
5094
|
return v_error === undefined ? null : v_error;
|
|
5095
5095
|
}
|
|
5096
|
-
const select$
|
|
5096
|
+
const select$p = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
5097
5097
|
return {
|
|
5098
5098
|
kind: 'Fragment',
|
|
5099
5099
|
version: VERSION$f,
|
|
@@ -5332,8 +5332,8 @@ function keyBuilderFromType$7(luvio, object) {
|
|
|
5332
5332
|
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
5333
5333
|
return input;
|
|
5334
5334
|
}
|
|
5335
|
-
const select$
|
|
5336
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
5335
|
+
const select$o = function SemanticRelationshipOutputRepresentationSelect() {
|
|
5336
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$p();
|
|
5337
5337
|
return {
|
|
5338
5338
|
kind: 'Fragment',
|
|
5339
5339
|
version: VERSION$e,
|
|
@@ -5747,7 +5747,7 @@ function keyBuilderFromType$6(luvio, object) {
|
|
|
5747
5747
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
5748
5748
|
return input;
|
|
5749
5749
|
}
|
|
5750
|
-
const select$
|
|
5750
|
+
const select$n = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
5751
5751
|
return {
|
|
5752
5752
|
kind: 'Fragment',
|
|
5753
5753
|
version: VERSION$d,
|
|
@@ -5952,7 +5952,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
5952
5952
|
}
|
|
5953
5953
|
return input;
|
|
5954
5954
|
}
|
|
5955
|
-
const select$
|
|
5955
|
+
const select$m = function SemanticUnionOutputRepresentationSelect() {
|
|
5956
5956
|
return {
|
|
5957
5957
|
kind: 'Fragment',
|
|
5958
5958
|
version: VERSION$c,
|
|
@@ -6009,14 +6009,14 @@ const select$l = function SemanticUnionOutputRepresentationSelect() {
|
|
|
6009
6009
|
kind: 'Link',
|
|
6010
6010
|
plural: true,
|
|
6011
6011
|
required: false,
|
|
6012
|
-
fragment: select$
|
|
6012
|
+
fragment: select$x()
|
|
6013
6013
|
},
|
|
6014
6014
|
{
|
|
6015
6015
|
name: 'semanticMappedFields',
|
|
6016
6016
|
kind: 'Link',
|
|
6017
6017
|
plural: true,
|
|
6018
6018
|
required: false,
|
|
6019
|
-
fragment: select$
|
|
6019
|
+
fragment: select$n()
|
|
6020
6020
|
}
|
|
6021
6021
|
]
|
|
6022
6022
|
};
|
|
@@ -6389,8 +6389,8 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
6389
6389
|
}
|
|
6390
6390
|
return input;
|
|
6391
6391
|
}
|
|
6392
|
-
const select$
|
|
6393
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
6392
|
+
const select$l = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
6393
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$A();
|
|
6394
6394
|
return {
|
|
6395
6395
|
kind: 'Fragment',
|
|
6396
6396
|
version: VERSION$b,
|
|
@@ -6454,21 +6454,21 @@ const select$k = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
6454
6454
|
kind: 'Link',
|
|
6455
6455
|
plural: true,
|
|
6456
6456
|
required: false,
|
|
6457
|
-
fragment: select$
|
|
6457
|
+
fragment: select$x()
|
|
6458
6458
|
},
|
|
6459
6459
|
{
|
|
6460
6460
|
name: 'semanticRelationships',
|
|
6461
6461
|
kind: 'Link',
|
|
6462
6462
|
plural: true,
|
|
6463
6463
|
required: false,
|
|
6464
|
-
fragment: select$
|
|
6464
|
+
fragment: select$o()
|
|
6465
6465
|
},
|
|
6466
6466
|
{
|
|
6467
6467
|
name: 'semanticUnions',
|
|
6468
6468
|
kind: 'Link',
|
|
6469
6469
|
plural: true,
|
|
6470
6470
|
required: false,
|
|
6471
|
-
fragment: select$
|
|
6471
|
+
fragment: select$m()
|
|
6472
6472
|
}
|
|
6473
6473
|
]
|
|
6474
6474
|
};
|
|
@@ -6715,8 +6715,8 @@ function validate$c(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
6715
6715
|
})();
|
|
6716
6716
|
return v_error === undefined ? null : v_error;
|
|
6717
6717
|
}
|
|
6718
|
-
const select$
|
|
6719
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6718
|
+
const select$k = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
6719
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$r();
|
|
6720
6720
|
return {
|
|
6721
6721
|
kind: 'Fragment',
|
|
6722
6722
|
version: VERSION$a,
|
|
@@ -6790,7 +6790,7 @@ function validate$b(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
6790
6790
|
})();
|
|
6791
6791
|
return v_error === undefined ? null : v_error;
|
|
6792
6792
|
}
|
|
6793
|
-
const select$
|
|
6793
|
+
const select$j = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
6794
6794
|
return {
|
|
6795
6795
|
kind: 'Fragment',
|
|
6796
6796
|
version: VERSION$9,
|
|
@@ -6913,10 +6913,10 @@ function validate$a(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
6913
6913
|
})();
|
|
6914
6914
|
return v_error === undefined ? null : v_error;
|
|
6915
6915
|
}
|
|
6916
|
-
const select$
|
|
6917
|
-
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$
|
|
6918
|
-
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$
|
|
6919
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6916
|
+
const select$i = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
6917
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$k();
|
|
6918
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$j();
|
|
6919
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$r();
|
|
6920
6920
|
return {
|
|
6921
6921
|
kind: 'Fragment',
|
|
6922
6922
|
version: VERSION$8,
|
|
@@ -7228,10 +7228,10 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
7228
7228
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
7229
7229
|
return input;
|
|
7230
7230
|
}
|
|
7231
|
-
const select$
|
|
7232
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
7233
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
7234
|
-
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$
|
|
7231
|
+
const select$h = function SemanticMetricOutputRepresentationSelect() {
|
|
7232
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$r();
|
|
7233
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$A();
|
|
7234
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$i();
|
|
7235
7235
|
return {
|
|
7236
7236
|
kind: 'Fragment',
|
|
7237
7237
|
version: VERSION$7,
|
|
@@ -7709,7 +7709,7 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
7709
7709
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
7710
7710
|
return input;
|
|
7711
7711
|
}
|
|
7712
|
-
const select$
|
|
7712
|
+
const select$g = function SemanticParameterOutputRepresentationSelect() {
|
|
7713
7713
|
return {
|
|
7714
7714
|
kind: 'Fragment',
|
|
7715
7715
|
version: VERSION$6,
|
|
@@ -8461,8 +8461,8 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
8461
8461
|
}
|
|
8462
8462
|
return input;
|
|
8463
8463
|
}
|
|
8464
|
-
const select$
|
|
8465
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
8464
|
+
const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
8465
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$E();
|
|
8466
8466
|
return {
|
|
8467
8467
|
kind: 'Fragment',
|
|
8468
8468
|
version: VERSION$5,
|
|
@@ -8541,7 +8541,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
8541
8541
|
kind: 'Link',
|
|
8542
8542
|
plural: true,
|
|
8543
8543
|
required: false,
|
|
8544
|
-
fragment: select$
|
|
8544
|
+
fragment: select$z()
|
|
8545
8545
|
},
|
|
8546
8546
|
{
|
|
8547
8547
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -8553,7 +8553,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
8553
8553
|
kind: 'Link',
|
|
8554
8554
|
plural: true,
|
|
8555
8555
|
required: false,
|
|
8556
|
-
fragment: select$
|
|
8556
|
+
fragment: select$y()
|
|
8557
8557
|
},
|
|
8558
8558
|
{
|
|
8559
8559
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -8565,7 +8565,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
8565
8565
|
kind: 'Link',
|
|
8566
8566
|
plural: true,
|
|
8567
8567
|
required: false,
|
|
8568
|
-
fragment: select$
|
|
8568
|
+
fragment: select$x()
|
|
8569
8569
|
},
|
|
8570
8570
|
{
|
|
8571
8571
|
name: 'semanticDataObjectsUrl',
|
|
@@ -8577,7 +8577,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
8577
8577
|
kind: 'Link',
|
|
8578
8578
|
plural: true,
|
|
8579
8579
|
required: false,
|
|
8580
|
-
fragment: select$
|
|
8580
|
+
fragment: select$q()
|
|
8581
8581
|
},
|
|
8582
8582
|
{
|
|
8583
8583
|
name: 'semanticGroupingsUrl',
|
|
@@ -8589,21 +8589,21 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
8589
8589
|
kind: 'Link',
|
|
8590
8590
|
plural: true,
|
|
8591
8591
|
required: false,
|
|
8592
|
-
fragment: select$
|
|
8592
|
+
fragment: select$l()
|
|
8593
8593
|
},
|
|
8594
8594
|
{
|
|
8595
8595
|
name: 'semanticMetrics',
|
|
8596
8596
|
kind: 'Link',
|
|
8597
8597
|
plural: true,
|
|
8598
8598
|
required: false,
|
|
8599
|
-
fragment: select$
|
|
8599
|
+
fragment: select$h()
|
|
8600
8600
|
},
|
|
8601
8601
|
{
|
|
8602
8602
|
name: 'semanticParameters',
|
|
8603
8603
|
kind: 'Link',
|
|
8604
8604
|
plural: true,
|
|
8605
8605
|
required: false,
|
|
8606
|
-
fragment: select$
|
|
8606
|
+
fragment: select$g()
|
|
8607
8607
|
},
|
|
8608
8608
|
{
|
|
8609
8609
|
name: 'semanticParametersUrl',
|
|
@@ -8615,7 +8615,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
8615
8615
|
kind: 'Link',
|
|
8616
8616
|
plural: true,
|
|
8617
8617
|
required: false,
|
|
8618
|
-
fragment: select$
|
|
8618
|
+
fragment: select$o()
|
|
8619
8619
|
},
|
|
8620
8620
|
{
|
|
8621
8621
|
name: 'semanticRelationshipsUrl',
|
|
@@ -9108,19 +9108,19 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9108
9108
|
}
|
|
9109
9109
|
}
|
|
9110
9110
|
|
|
9111
|
-
function select$
|
|
9112
|
-
return select$
|
|
9111
|
+
function select$e(luvio, params) {
|
|
9112
|
+
return select$f();
|
|
9113
9113
|
}
|
|
9114
|
-
function getResponseCacheKeys$
|
|
9114
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
9115
9115
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
9116
9116
|
}
|
|
9117
|
-
function ingestSuccess$
|
|
9117
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
9118
9118
|
const { body } = response;
|
|
9119
9119
|
const key = keyBuilderFromType$1(luvio, body);
|
|
9120
9120
|
luvio.storeIngest(key, ingest$5, body);
|
|
9121
9121
|
const snapshot = luvio.storeLookup({
|
|
9122
9122
|
recordId: key,
|
|
9123
|
-
node: select$
|
|
9123
|
+
node: select$e(),
|
|
9124
9124
|
variables: {},
|
|
9125
9125
|
});
|
|
9126
9126
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9131,7 +9131,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
9131
9131
|
deepFreeze(snapshot.data);
|
|
9132
9132
|
return snapshot;
|
|
9133
9133
|
}
|
|
9134
|
-
function createResourceRequest$
|
|
9134
|
+
function createResourceRequest$a(config) {
|
|
9135
9135
|
const headers = {};
|
|
9136
9136
|
return {
|
|
9137
9137
|
baseUri: '/services/data/v62.0',
|
|
@@ -9145,7 +9145,7 @@ function createResourceRequest$9(config) {
|
|
|
9145
9145
|
};
|
|
9146
9146
|
}
|
|
9147
9147
|
|
|
9148
|
-
const adapterName$
|
|
9148
|
+
const adapterName$a = 'createSemanticModel';
|
|
9149
9149
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
9150
9150
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
9151
9151
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9166,11 +9166,11 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
9166
9166
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9167
9167
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9168
9168
|
];
|
|
9169
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9170
|
-
const createResourceParams$
|
|
9171
|
-
function typeCheckConfig$
|
|
9169
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createSemanticModel_ConfigPropertyMetadata);
|
|
9170
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(createSemanticModel_ConfigPropertyMetadata);
|
|
9171
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
9172
9172
|
const config = {};
|
|
9173
|
-
typeCheckConfig$
|
|
9173
|
+
typeCheckConfig$c(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
9174
9174
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
9175
9175
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
9176
9176
|
const untrustedConfig_baseModels_array = [];
|
|
@@ -9281,30 +9281,30 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
9281
9281
|
}
|
|
9282
9282
|
return config;
|
|
9283
9283
|
}
|
|
9284
|
-
function validateAdapterConfig$
|
|
9284
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
9285
9285
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9286
9286
|
return null;
|
|
9287
9287
|
}
|
|
9288
9288
|
if (process.env.NODE_ENV !== 'production') {
|
|
9289
9289
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9290
9290
|
}
|
|
9291
|
-
const config = typeCheckConfig$
|
|
9291
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
9292
9292
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9293
9293
|
return null;
|
|
9294
9294
|
}
|
|
9295
9295
|
return config;
|
|
9296
9296
|
}
|
|
9297
|
-
function buildNetworkSnapshot$
|
|
9298
|
-
const resourceParams = createResourceParams$
|
|
9299
|
-
const request = createResourceRequest$
|
|
9297
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
9298
|
+
const resourceParams = createResourceParams$a(config);
|
|
9299
|
+
const request = createResourceRequest$a(resourceParams);
|
|
9300
9300
|
return luvio.dispatchResourceRequest(request, options)
|
|
9301
9301
|
.then((response) => {
|
|
9302
9302
|
return luvio.handleSuccessResponse(() => {
|
|
9303
|
-
const snapshot = ingestSuccess$
|
|
9303
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
9304
9304
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9305
9305
|
}, () => {
|
|
9306
9306
|
const cache = new StoreKeyMap();
|
|
9307
|
-
getResponseCacheKeys$
|
|
9307
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
9308
9308
|
return cache;
|
|
9309
9309
|
});
|
|
9310
9310
|
}, (response) => {
|
|
@@ -9314,33 +9314,33 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
9314
9314
|
}
|
|
9315
9315
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
9316
9316
|
return function createSemanticModel(untrustedConfig) {
|
|
9317
|
-
const config = validateAdapterConfig$
|
|
9317
|
+
const config = validateAdapterConfig$a(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
9318
9318
|
// Invalid or incomplete config
|
|
9319
9319
|
if (config === null) {
|
|
9320
9320
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
9321
9321
|
}
|
|
9322
|
-
return buildNetworkSnapshot$
|
|
9322
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
9323
9323
|
};
|
|
9324
9324
|
};
|
|
9325
9325
|
|
|
9326
|
-
function select$
|
|
9327
|
-
return select$
|
|
9326
|
+
function select$d(luvio, params) {
|
|
9327
|
+
return select$f();
|
|
9328
9328
|
}
|
|
9329
9329
|
function keyBuilder$f(luvio, params) {
|
|
9330
9330
|
return keyBuilder$g(luvio, {
|
|
9331
9331
|
name: params.urlParams.modelApiNameOrId
|
|
9332
9332
|
});
|
|
9333
9333
|
}
|
|
9334
|
-
function getResponseCacheKeys$
|
|
9334
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
9335
9335
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
9336
9336
|
}
|
|
9337
|
-
function ingestSuccess$
|
|
9337
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
9338
9338
|
const { body } = response;
|
|
9339
9339
|
const key = keyBuilder$f(luvio, resourceParams);
|
|
9340
9340
|
luvio.storeIngest(key, ingest$5, body);
|
|
9341
9341
|
const snapshot = luvio.storeLookup({
|
|
9342
9342
|
recordId: key,
|
|
9343
|
-
node: select$
|
|
9343
|
+
node: select$d(),
|
|
9344
9344
|
variables: {},
|
|
9345
9345
|
}, snapshotRefresh);
|
|
9346
9346
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9357,7 +9357,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
9357
9357
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9358
9358
|
return errorSnapshot;
|
|
9359
9359
|
}
|
|
9360
|
-
function createResourceRequest$
|
|
9360
|
+
function createResourceRequest$9(config) {
|
|
9361
9361
|
const headers = {};
|
|
9362
9362
|
return {
|
|
9363
9363
|
baseUri: '/services/data/v62.0',
|
|
@@ -9371,62 +9371,62 @@ function createResourceRequest$8(config) {
|
|
|
9371
9371
|
};
|
|
9372
9372
|
}
|
|
9373
9373
|
|
|
9374
|
-
const adapterName$
|
|
9374
|
+
const adapterName$9 = 'getSemanticModel';
|
|
9375
9375
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
9376
9376
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9377
9377
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9378
9378
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
9379
9379
|
];
|
|
9380
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9381
|
-
const createResourceParams$
|
|
9380
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticModel_ConfigPropertyMetadata);
|
|
9381
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(getSemanticModel_ConfigPropertyMetadata);
|
|
9382
9382
|
function keyBuilder$e(luvio, config) {
|
|
9383
|
-
const resourceParams = createResourceParams$
|
|
9383
|
+
const resourceParams = createResourceParams$9(config);
|
|
9384
9384
|
return keyBuilder$f(luvio, resourceParams);
|
|
9385
9385
|
}
|
|
9386
|
-
function typeCheckConfig$
|
|
9386
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
9387
9387
|
const config = {};
|
|
9388
|
-
typeCheckConfig$
|
|
9388
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
9389
9389
|
return config;
|
|
9390
9390
|
}
|
|
9391
|
-
function validateAdapterConfig$
|
|
9391
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
9392
9392
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9393
9393
|
return null;
|
|
9394
9394
|
}
|
|
9395
9395
|
if (process.env.NODE_ENV !== 'production') {
|
|
9396
9396
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9397
9397
|
}
|
|
9398
|
-
const config = typeCheckConfig$
|
|
9398
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
9399
9399
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9400
9400
|
return null;
|
|
9401
9401
|
}
|
|
9402
9402
|
return config;
|
|
9403
9403
|
}
|
|
9404
9404
|
function adapterFragment$6(luvio, config) {
|
|
9405
|
-
createResourceParams$
|
|
9406
|
-
return select$
|
|
9405
|
+
createResourceParams$9(config);
|
|
9406
|
+
return select$d();
|
|
9407
9407
|
}
|
|
9408
9408
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
9409
|
-
const snapshot = ingestSuccess$
|
|
9409
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
9410
9410
|
config,
|
|
9411
|
-
resolve: () => buildNetworkSnapshot$
|
|
9411
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
9412
9412
|
});
|
|
9413
9413
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9414
9414
|
}
|
|
9415
9415
|
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
9416
9416
|
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
9417
9417
|
config,
|
|
9418
|
-
resolve: () => buildNetworkSnapshot$
|
|
9418
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
9419
9419
|
});
|
|
9420
9420
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9421
9421
|
}
|
|
9422
|
-
function buildNetworkSnapshot$
|
|
9423
|
-
const resourceParams = createResourceParams$
|
|
9424
|
-
const request = createResourceRequest$
|
|
9422
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
9423
|
+
const resourceParams = createResourceParams$9(config);
|
|
9424
|
+
const request = createResourceRequest$9(resourceParams);
|
|
9425
9425
|
return luvio.dispatchResourceRequest(request, options)
|
|
9426
9426
|
.then((response) => {
|
|
9427
9427
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
9428
9428
|
const cache = new StoreKeyMap();
|
|
9429
|
-
getResponseCacheKeys$
|
|
9429
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
9430
9430
|
return cache;
|
|
9431
9431
|
});
|
|
9432
9432
|
}, (response) => {
|
|
@@ -9434,7 +9434,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
9434
9434
|
});
|
|
9435
9435
|
}
|
|
9436
9436
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
9437
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
9437
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
9438
9438
|
}
|
|
9439
9439
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
9440
9440
|
const { luvio, config } = context;
|
|
@@ -9445,12 +9445,12 @@ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
|
9445
9445
|
};
|
|
9446
9446
|
const cacheSnapshot = storeLookup(selector, {
|
|
9447
9447
|
config,
|
|
9448
|
-
resolve: () => buildNetworkSnapshot$
|
|
9448
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
9449
9449
|
});
|
|
9450
9450
|
return cacheSnapshot;
|
|
9451
9451
|
}
|
|
9452
9452
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
9453
|
-
const config = validateAdapterConfig$
|
|
9453
|
+
const config = validateAdapterConfig$9(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
9454
9454
|
// Invalid or incomplete config
|
|
9455
9455
|
if (config === null) {
|
|
9456
9456
|
return null;
|
|
@@ -9459,6 +9459,222 @@ const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__ge
|
|
|
9459
9459
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
9460
9460
|
};
|
|
9461
9461
|
|
|
9462
|
+
function select$c(luvio, params) {
|
|
9463
|
+
return select$f();
|
|
9464
|
+
}
|
|
9465
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
9466
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
9467
|
+
}
|
|
9468
|
+
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
9469
|
+
const { body } = response;
|
|
9470
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
9471
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
9472
|
+
const snapshot = luvio.storeLookup({
|
|
9473
|
+
recordId: key,
|
|
9474
|
+
node: select$c(),
|
|
9475
|
+
variables: {},
|
|
9476
|
+
});
|
|
9477
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9478
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
9479
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
9480
|
+
}
|
|
9481
|
+
}
|
|
9482
|
+
deepFreeze(snapshot.data);
|
|
9483
|
+
return snapshot;
|
|
9484
|
+
}
|
|
9485
|
+
function createResourceRequest$8(config) {
|
|
9486
|
+
const headers = {};
|
|
9487
|
+
return {
|
|
9488
|
+
baseUri: '/services/data/v62.0',
|
|
9489
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '',
|
|
9490
|
+
method: 'patch',
|
|
9491
|
+
body: config.body,
|
|
9492
|
+
urlParams: config.urlParams,
|
|
9493
|
+
queryParams: {},
|
|
9494
|
+
headers,
|
|
9495
|
+
priority: 'normal',
|
|
9496
|
+
};
|
|
9497
|
+
}
|
|
9498
|
+
|
|
9499
|
+
const adapterName$8 = 'patchSemanticModel';
|
|
9500
|
+
const patchSemanticModel_ConfigPropertyMetadata = [
|
|
9501
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9502
|
+
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
9503
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
9504
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
9505
|
+
generateParamConfigMetadata('app', false, 2 /* Body */, 0 /* String */),
|
|
9506
|
+
generateParamConfigMetadata('categories', false, 2 /* Body */, 0 /* String */, true),
|
|
9507
|
+
generateParamConfigMetadata('dataspace', false, 2 /* Body */, 0 /* String */),
|
|
9508
|
+
generateParamConfigMetadata('queryUnrelatedDataObjects', false, 2 /* Body */, 0 /* String */),
|
|
9509
|
+
generateParamConfigMetadata('sourceCreation', false, 2 /* Body */, 0 /* String */),
|
|
9510
|
+
generateParamConfigMetadata('sourceCreationName', false, 2 /* Body */, 0 /* String */),
|
|
9511
|
+
generateParamConfigMetadata('baseModels', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9512
|
+
generateParamConfigMetadata('semanticCalculatedDimensions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9513
|
+
generateParamConfigMetadata('semanticCalculatedMeasurements', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9514
|
+
generateParamConfigMetadata('semanticDataObjects', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9515
|
+
generateParamConfigMetadata('semanticGroupings', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9516
|
+
generateParamConfigMetadata('semanticLogicalViews', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9517
|
+
generateParamConfigMetadata('semanticMetrics', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9518
|
+
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9519
|
+
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9520
|
+
];
|
|
9521
|
+
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, patchSemanticModel_ConfigPropertyMetadata);
|
|
9522
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(patchSemanticModel_ConfigPropertyMetadata);
|
|
9523
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
9524
|
+
const config = {};
|
|
9525
|
+
typeCheckConfig$c(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
9526
|
+
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
9527
|
+
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
9528
|
+
const untrustedConfig_baseModels_array = [];
|
|
9529
|
+
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
9530
|
+
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
9531
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$S(untrustedConfig_baseModels_item);
|
|
9532
|
+
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
9533
|
+
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
9534
|
+
}
|
|
9535
|
+
}
|
|
9536
|
+
config.baseModels = untrustedConfig_baseModels_array;
|
|
9537
|
+
}
|
|
9538
|
+
const untrustedConfig_semanticCalculatedDimensions = untrustedConfig.semanticCalculatedDimensions;
|
|
9539
|
+
if (ArrayIsArray$1(untrustedConfig_semanticCalculatedDimensions)) {
|
|
9540
|
+
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
9541
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
9542
|
+
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
9543
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$Q(untrustedConfig_semanticCalculatedDimensions_item);
|
|
9544
|
+
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
9545
|
+
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
9546
|
+
}
|
|
9547
|
+
}
|
|
9548
|
+
config.semanticCalculatedDimensions = untrustedConfig_semanticCalculatedDimensions_array;
|
|
9549
|
+
}
|
|
9550
|
+
const untrustedConfig_semanticCalculatedMeasurements = untrustedConfig.semanticCalculatedMeasurements;
|
|
9551
|
+
if (ArrayIsArray$1(untrustedConfig_semanticCalculatedMeasurements)) {
|
|
9552
|
+
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
9553
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
9554
|
+
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
9555
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$P(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
9556
|
+
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
9557
|
+
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
9558
|
+
}
|
|
9559
|
+
}
|
|
9560
|
+
config.semanticCalculatedMeasurements = untrustedConfig_semanticCalculatedMeasurements_array;
|
|
9561
|
+
}
|
|
9562
|
+
const untrustedConfig_semanticDataObjects = untrustedConfig.semanticDataObjects;
|
|
9563
|
+
if (ArrayIsArray$1(untrustedConfig_semanticDataObjects)) {
|
|
9564
|
+
const untrustedConfig_semanticDataObjects_array = [];
|
|
9565
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
9566
|
+
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
9567
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$M(untrustedConfig_semanticDataObjects_item);
|
|
9568
|
+
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
9569
|
+
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
9570
|
+
}
|
|
9571
|
+
}
|
|
9572
|
+
config.semanticDataObjects = untrustedConfig_semanticDataObjects_array;
|
|
9573
|
+
}
|
|
9574
|
+
const untrustedConfig_semanticGroupings = untrustedConfig.semanticGroupings;
|
|
9575
|
+
if (ArrayIsArray$1(untrustedConfig_semanticGroupings)) {
|
|
9576
|
+
const untrustedConfig_semanticGroupings_array = [];
|
|
9577
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
9578
|
+
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
9579
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$F(untrustedConfig_semanticGroupings_item);
|
|
9580
|
+
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
9581
|
+
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
9582
|
+
}
|
|
9583
|
+
}
|
|
9584
|
+
config.semanticGroupings = untrustedConfig_semanticGroupings_array;
|
|
9585
|
+
}
|
|
9586
|
+
const untrustedConfig_semanticLogicalViews = untrustedConfig.semanticLogicalViews;
|
|
9587
|
+
if (ArrayIsArray$1(untrustedConfig_semanticLogicalViews)) {
|
|
9588
|
+
const untrustedConfig_semanticLogicalViews_array = [];
|
|
9589
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
9590
|
+
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
9591
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$A(untrustedConfig_semanticLogicalViews_item);
|
|
9592
|
+
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
9593
|
+
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
9594
|
+
}
|
|
9595
|
+
}
|
|
9596
|
+
config.semanticLogicalViews = untrustedConfig_semanticLogicalViews_array;
|
|
9597
|
+
}
|
|
9598
|
+
const untrustedConfig_semanticMetrics = untrustedConfig.semanticMetrics;
|
|
9599
|
+
if (ArrayIsArray$1(untrustedConfig_semanticMetrics)) {
|
|
9600
|
+
const untrustedConfig_semanticMetrics_array = [];
|
|
9601
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
9602
|
+
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
9603
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$w(untrustedConfig_semanticMetrics_item);
|
|
9604
|
+
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
9605
|
+
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
9606
|
+
}
|
|
9607
|
+
}
|
|
9608
|
+
config.semanticMetrics = untrustedConfig_semanticMetrics_array;
|
|
9609
|
+
}
|
|
9610
|
+
const untrustedConfig_semanticParameters = untrustedConfig.semanticParameters;
|
|
9611
|
+
if (ArrayIsArray$1(untrustedConfig_semanticParameters)) {
|
|
9612
|
+
const untrustedConfig_semanticParameters_array = [];
|
|
9613
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
9614
|
+
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
9615
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$v(untrustedConfig_semanticParameters_item);
|
|
9616
|
+
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
9617
|
+
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
9618
|
+
}
|
|
9619
|
+
}
|
|
9620
|
+
config.semanticParameters = untrustedConfig_semanticParameters_array;
|
|
9621
|
+
}
|
|
9622
|
+
const untrustedConfig_semanticRelationships = untrustedConfig.semanticRelationships;
|
|
9623
|
+
if (ArrayIsArray$1(untrustedConfig_semanticRelationships)) {
|
|
9624
|
+
const untrustedConfig_semanticRelationships_array = [];
|
|
9625
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
9626
|
+
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
9627
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$D(untrustedConfig_semanticRelationships_item);
|
|
9628
|
+
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
9629
|
+
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
9630
|
+
}
|
|
9631
|
+
}
|
|
9632
|
+
config.semanticRelationships = untrustedConfig_semanticRelationships_array;
|
|
9633
|
+
}
|
|
9634
|
+
return config;
|
|
9635
|
+
}
|
|
9636
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
9637
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
9638
|
+
return null;
|
|
9639
|
+
}
|
|
9640
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9641
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
9642
|
+
}
|
|
9643
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
9644
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9645
|
+
return null;
|
|
9646
|
+
}
|
|
9647
|
+
return config;
|
|
9648
|
+
}
|
|
9649
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
9650
|
+
const resourceParams = createResourceParams$8(config);
|
|
9651
|
+
const request = createResourceRequest$8(resourceParams);
|
|
9652
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
9653
|
+
.then((response) => {
|
|
9654
|
+
return luvio.handleSuccessResponse(() => {
|
|
9655
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response);
|
|
9656
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9657
|
+
}, () => {
|
|
9658
|
+
const cache = new StoreKeyMap();
|
|
9659
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
9660
|
+
return cache;
|
|
9661
|
+
});
|
|
9662
|
+
}, (response) => {
|
|
9663
|
+
deepFreeze(response);
|
|
9664
|
+
throw response;
|
|
9665
|
+
});
|
|
9666
|
+
}
|
|
9667
|
+
const patchSemanticModelAdapterFactory = (luvio) => {
|
|
9668
|
+
return function patchSemanticModel(untrustedConfig) {
|
|
9669
|
+
const config = validateAdapterConfig$8(untrustedConfig, patchSemanticModel_ConfigPropertyNames);
|
|
9670
|
+
// Invalid or incomplete config
|
|
9671
|
+
if (config === null) {
|
|
9672
|
+
throw new Error('Invalid config for "patchSemanticModel"');
|
|
9673
|
+
}
|
|
9674
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
9675
|
+
};
|
|
9676
|
+
};
|
|
9677
|
+
|
|
9462
9678
|
function validate$6(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
9463
9679
|
const v_error = (() => {
|
|
9464
9680
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -9950,14 +10166,14 @@ const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
|
9950
10166
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9951
10167
|
];
|
|
9952
10168
|
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9953
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
10169
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9954
10170
|
function keyBuilder$b(luvio, config) {
|
|
9955
10171
|
const resourceParams = createResourceParams$7(config);
|
|
9956
10172
|
return keyBuilder$c(luvio, resourceParams);
|
|
9957
10173
|
}
|
|
9958
10174
|
function typeCheckConfig$7(untrustedConfig) {
|
|
9959
10175
|
const config = {};
|
|
9960
|
-
typeCheckConfig$
|
|
10176
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9961
10177
|
return config;
|
|
9962
10178
|
}
|
|
9963
10179
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -10087,7 +10303,7 @@ const select$7 = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
10087
10303
|
kind: 'Link',
|
|
10088
10304
|
plural: true,
|
|
10089
10305
|
required: false,
|
|
10090
|
-
fragment: select$
|
|
10306
|
+
fragment: select$h()
|
|
10091
10307
|
}
|
|
10092
10308
|
]
|
|
10093
10309
|
};
|
|
@@ -10192,14 +10408,14 @@ const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
|
10192
10408
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10193
10409
|
];
|
|
10194
10410
|
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticMetrics_ConfigPropertyMetadata);
|
|
10195
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
10411
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(getSemanticMetrics_ConfigPropertyMetadata);
|
|
10196
10412
|
function keyBuilder$9(luvio, config) {
|
|
10197
10413
|
const resourceParams = createResourceParams$6(config);
|
|
10198
10414
|
return keyBuilder$a(luvio, resourceParams);
|
|
10199
10415
|
}
|
|
10200
10416
|
function typeCheckConfig$6(untrustedConfig) {
|
|
10201
10417
|
const config = {};
|
|
10202
|
-
typeCheckConfig$
|
|
10418
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
10203
10419
|
return config;
|
|
10204
10420
|
}
|
|
10205
10421
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -10274,7 +10490,7 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
10274
10490
|
};
|
|
10275
10491
|
|
|
10276
10492
|
function select$5(luvio, params) {
|
|
10277
|
-
return select$
|
|
10493
|
+
return select$h();
|
|
10278
10494
|
}
|
|
10279
10495
|
function keyBuilder$8(luvio, params) {
|
|
10280
10496
|
return keyBuilder$i(luvio, {
|
|
@@ -10327,14 +10543,14 @@ const getSemanticMetric_ConfigPropertyMetadata = [
|
|
|
10327
10543
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10328
10544
|
];
|
|
10329
10545
|
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSemanticMetric_ConfigPropertyMetadata);
|
|
10330
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
10546
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(getSemanticMetric_ConfigPropertyMetadata);
|
|
10331
10547
|
function keyBuilder$7(luvio, config) {
|
|
10332
10548
|
const resourceParams = createResourceParams$5(config);
|
|
10333
10549
|
return keyBuilder$8(luvio, resourceParams);
|
|
10334
10550
|
}
|
|
10335
10551
|
function typeCheckConfig$5(untrustedConfig) {
|
|
10336
10552
|
const config = {};
|
|
10337
|
-
typeCheckConfig$
|
|
10553
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
10338
10554
|
return config;
|
|
10339
10555
|
}
|
|
10340
10556
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -10569,14 +10785,14 @@ const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
|
10569
10785
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10570
10786
|
];
|
|
10571
10787
|
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
10572
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
10788
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
10573
10789
|
function keyBuilder$5(luvio, config) {
|
|
10574
10790
|
const resourceParams = createResourceParams$4(config);
|
|
10575
10791
|
return keyBuilder$6(luvio, resourceParams);
|
|
10576
10792
|
}
|
|
10577
10793
|
function typeCheckConfig$4(untrustedConfig) {
|
|
10578
10794
|
const config = {};
|
|
10579
|
-
typeCheckConfig$
|
|
10795
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
10580
10796
|
return config;
|
|
10581
10797
|
}
|
|
10582
10798
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -10729,10 +10945,10 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
10729
10945
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
10730
10946
|
];
|
|
10731
10947
|
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
10732
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
10948
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
10733
10949
|
function typeCheckConfig$3(untrustedConfig) {
|
|
10734
10950
|
const config = {};
|
|
10735
|
-
typeCheckConfig$
|
|
10951
|
+
typeCheckConfig$c(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
10736
10952
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
10737
10953
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
10738
10954
|
const untrustedConfig_filters_array = [];
|
|
@@ -10831,10 +11047,10 @@ const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
10831
11047
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10832
11048
|
];
|
|
10833
11049
|
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
10834
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
11050
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
10835
11051
|
function typeCheckConfig$2(untrustedConfig) {
|
|
10836
11052
|
const config = {};
|
|
10837
|
-
typeCheckConfig$
|
|
11053
|
+
typeCheckConfig$c(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
10838
11054
|
return config;
|
|
10839
11055
|
}
|
|
10840
11056
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -10933,14 +11149,14 @@ const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
10933
11149
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10934
11150
|
];
|
|
10935
11151
|
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
10936
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
11152
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
10937
11153
|
function keyBuilder$2(luvio, config) {
|
|
10938
11154
|
const resourceParams = createResourceParams$1(config);
|
|
10939
11155
|
return keyBuilder$3(luvio, resourceParams);
|
|
10940
11156
|
}
|
|
10941
11157
|
function typeCheckConfig$1(untrustedConfig) {
|
|
10942
11158
|
const config = {};
|
|
10943
|
-
typeCheckConfig$
|
|
11159
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
10944
11160
|
return config;
|
|
10945
11161
|
}
|
|
10946
11162
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -11065,14 +11281,14 @@ const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
|
11065
11281
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11066
11282
|
];
|
|
11067
11283
|
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11068
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
11284
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$c(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11069
11285
|
function keyBuilder(luvio, config) {
|
|
11070
11286
|
const resourceParams = createResourceParams(config);
|
|
11071
11287
|
return keyBuilder$1(luvio, resourceParams);
|
|
11072
11288
|
}
|
|
11073
11289
|
function typeCheckConfig(untrustedConfig) {
|
|
11074
11290
|
const config = {};
|
|
11075
|
-
typeCheckConfig$
|
|
11291
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11076
11292
|
return config;
|
|
11077
11293
|
}
|
|
11078
11294
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -11146,4 +11362,4 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
11146
11362
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
11147
11363
|
};
|
|
11148
11364
|
|
|
11149
|
-
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory };
|
|
11365
|
+
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticModelAdapterFactory };
|