@salesforce/lds-adapters-cdp-semantic-authoring 1.314.0 → 1.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/cdp-semantic-authoring.js +5556 -5424
- package/dist/es/es2018/types/src/generated/adapters/getSemanticMetricsByIds.d.ts +27 -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 +3 -1
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticMetricsByMetricIds.d.ts +15 -0
- package/package.json +3 -3
- package/sfdc/index.js +376 -233
- package/src/raml/api.raml +14 -0
- package/src/raml/luvio.raml +5 -0
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$d, typeCheckConfig as typeCheckConfig$d, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -1639,7 +1639,7 @@ function validate$x(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
1639
1639
|
})();
|
|
1640
1640
|
return v_error === undefined ? null : v_error;
|
|
1641
1641
|
}
|
|
1642
|
-
const select$
|
|
1642
|
+
const select$F = function SemanticBaseModelOutputRepresentationSelect() {
|
|
1643
1643
|
return {
|
|
1644
1644
|
kind: 'Fragment',
|
|
1645
1645
|
version: VERSION$t,
|
|
@@ -1709,7 +1709,7 @@ function validate$w(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
|
1709
1709
|
})();
|
|
1710
1710
|
return v_error === undefined ? null : v_error;
|
|
1711
1711
|
}
|
|
1712
|
-
const select$
|
|
1712
|
+
const select$E = function SemanticFilterOutputRepresentationSelect() {
|
|
1713
1713
|
return {
|
|
1714
1714
|
kind: 'Fragment',
|
|
1715
1715
|
version: VERSION$s,
|
|
@@ -1921,20 +1921,20 @@ function validate$v(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
1921
1921
|
return v_error === undefined ? null : v_error;
|
|
1922
1922
|
}
|
|
1923
1923
|
const RepresentationType$g = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
1924
|
-
function keyBuilder$
|
|
1924
|
+
function keyBuilder$u(luvio, config) {
|
|
1925
1925
|
return keyPrefix + '::' + RepresentationType$g + ':' + config.name;
|
|
1926
1926
|
}
|
|
1927
1927
|
function keyBuilderFromType$b(luvio, object) {
|
|
1928
1928
|
const keyParams = {
|
|
1929
1929
|
name: object.id
|
|
1930
1930
|
};
|
|
1931
|
-
return keyBuilder$
|
|
1931
|
+
return keyBuilder$u(luvio, keyParams);
|
|
1932
1932
|
}
|
|
1933
1933
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
1934
1934
|
return input;
|
|
1935
1935
|
}
|
|
1936
|
-
const select$
|
|
1937
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
1936
|
+
const select$D = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
1937
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$E();
|
|
1938
1938
|
return {
|
|
1939
1939
|
kind: 'Fragment',
|
|
1940
1940
|
version: VERSION$r,
|
|
@@ -2461,20 +2461,20 @@ function validate$u(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
2461
2461
|
return v_error === undefined ? null : v_error;
|
|
2462
2462
|
}
|
|
2463
2463
|
const RepresentationType$f = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
2464
|
-
function keyBuilder$
|
|
2464
|
+
function keyBuilder$t(luvio, config) {
|
|
2465
2465
|
return keyPrefix + '::' + RepresentationType$f + ':' + config.name;
|
|
2466
2466
|
}
|
|
2467
2467
|
function keyBuilderFromType$a(luvio, object) {
|
|
2468
2468
|
const keyParams = {
|
|
2469
2469
|
name: object.id
|
|
2470
2470
|
};
|
|
2471
|
-
return keyBuilder$
|
|
2471
|
+
return keyBuilder$t(luvio, keyParams);
|
|
2472
2472
|
}
|
|
2473
2473
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
2474
2474
|
return input;
|
|
2475
2475
|
}
|
|
2476
|
-
const select$
|
|
2477
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
2476
|
+
const select$C = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
2477
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$E();
|
|
2478
2478
|
return {
|
|
2479
2479
|
kind: 'Fragment',
|
|
2480
2480
|
version: VERSION$q,
|
|
@@ -3330,19 +3330,19 @@ function validate$r(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
3330
3330
|
return v_error === undefined ? null : v_error;
|
|
3331
3331
|
}
|
|
3332
3332
|
const RepresentationType$e = 'SemanticDataObjectOutputRepresentation';
|
|
3333
|
-
function keyBuilder$
|
|
3333
|
+
function keyBuilder$s(luvio, config) {
|
|
3334
3334
|
return keyPrefix + '::' + RepresentationType$e + ':' + config.name;
|
|
3335
3335
|
}
|
|
3336
3336
|
function keyBuilderFromType$9(luvio, object) {
|
|
3337
3337
|
const keyParams = {
|
|
3338
3338
|
name: object.id
|
|
3339
3339
|
};
|
|
3340
|
-
return keyBuilder$
|
|
3340
|
+
return keyBuilder$s(luvio, keyParams);
|
|
3341
3341
|
}
|
|
3342
3342
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
3343
3343
|
return input;
|
|
3344
3344
|
}
|
|
3345
|
-
const select$
|
|
3345
|
+
const select$B = function SemanticDataObjectOutputRepresentationSelect() {
|
|
3346
3346
|
return {
|
|
3347
3347
|
kind: 'Fragment',
|
|
3348
3348
|
version: VERSION$p,
|
|
@@ -3388,7 +3388,7 @@ function validate$q(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
3388
3388
|
})();
|
|
3389
3389
|
return v_error === undefined ? null : v_error;
|
|
3390
3390
|
}
|
|
3391
|
-
const select$
|
|
3391
|
+
const select$A = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
3392
3392
|
return {
|
|
3393
3393
|
kind: 'Fragment',
|
|
3394
3394
|
version: VERSION$o,
|
|
@@ -3438,7 +3438,7 @@ function validate$p(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
3438
3438
|
})();
|
|
3439
3439
|
return v_error === undefined ? null : v_error;
|
|
3440
3440
|
}
|
|
3441
|
-
const select$
|
|
3441
|
+
const select$z = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
3442
3442
|
return {
|
|
3443
3443
|
kind: 'Fragment',
|
|
3444
3444
|
version: VERSION$n,
|
|
@@ -3517,8 +3517,8 @@ function validate$o(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
3517
3517
|
})();
|
|
3518
3518
|
return v_error === undefined ? null : v_error;
|
|
3519
3519
|
}
|
|
3520
|
-
const select$
|
|
3521
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
3520
|
+
const select$y = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
3521
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$z();
|
|
3522
3522
|
return {
|
|
3523
3523
|
kind: 'Fragment',
|
|
3524
3524
|
version: VERSION$m,
|
|
@@ -3603,9 +3603,9 @@ function validate$n(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
3603
3603
|
})();
|
|
3604
3604
|
return v_error === undefined ? null : v_error;
|
|
3605
3605
|
}
|
|
3606
|
-
const select$
|
|
3607
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
3608
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
3606
|
+
const select$x = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
3607
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$A();
|
|
3608
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$y();
|
|
3609
3609
|
return {
|
|
3610
3610
|
kind: 'Fragment',
|
|
3611
3611
|
version: VERSION$l,
|
|
@@ -3679,7 +3679,7 @@ function validate$m(obj, path = 'SemanticTableFieldReferenceOutputRepresentation
|
|
|
3679
3679
|
})();
|
|
3680
3680
|
return v_error === undefined ? null : v_error;
|
|
3681
3681
|
}
|
|
3682
|
-
const select$
|
|
3682
|
+
const select$w = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
3683
3683
|
return {
|
|
3684
3684
|
kind: 'Fragment',
|
|
3685
3685
|
version: VERSION$k,
|
|
@@ -3754,8 +3754,8 @@ function validate$l(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
3754
3754
|
})();
|
|
3755
3755
|
return v_error === undefined ? null : v_error;
|
|
3756
3756
|
}
|
|
3757
|
-
const select$
|
|
3758
|
-
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$
|
|
3757
|
+
const select$v = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
3758
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$w();
|
|
3759
3759
|
return {
|
|
3760
3760
|
kind: 'Fragment',
|
|
3761
3761
|
version: VERSION$j,
|
|
@@ -3891,21 +3891,21 @@ function validate$k(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
3891
3891
|
return v_error === undefined ? null : v_error;
|
|
3892
3892
|
}
|
|
3893
3893
|
const RepresentationType$d = 'SemanticGroupingOutputRepresentation';
|
|
3894
|
-
function keyBuilder$
|
|
3894
|
+
function keyBuilder$r(luvio, config) {
|
|
3895
3895
|
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
3896
3896
|
}
|
|
3897
3897
|
function keyBuilderFromType$8(luvio, object) {
|
|
3898
3898
|
const keyParams = {
|
|
3899
3899
|
name: object.id
|
|
3900
3900
|
};
|
|
3901
|
-
return keyBuilder$
|
|
3901
|
+
return keyBuilder$r(luvio, keyParams);
|
|
3902
3902
|
}
|
|
3903
3903
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
3904
3904
|
return input;
|
|
3905
3905
|
}
|
|
3906
|
-
const select$
|
|
3907
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
3908
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
3906
|
+
const select$u = function SemanticGroupingOutputRepresentationSelect() {
|
|
3907
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$x();
|
|
3908
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$v();
|
|
3909
3909
|
return {
|
|
3910
3910
|
kind: 'Fragment',
|
|
3911
3911
|
version: VERSION$i,
|
|
@@ -4138,7 +4138,7 @@ function validate$j(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
4138
4138
|
})();
|
|
4139
4139
|
return v_error === undefined ? null : v_error;
|
|
4140
4140
|
}
|
|
4141
|
-
const select$
|
|
4141
|
+
const select$t = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
4142
4142
|
return {
|
|
4143
4143
|
kind: 'Fragment',
|
|
4144
4144
|
version: VERSION$h,
|
|
@@ -4365,20 +4365,20 @@ function validate$i(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
4365
4365
|
return v_error === undefined ? null : v_error;
|
|
4366
4366
|
}
|
|
4367
4367
|
const RepresentationType$c = 'SemanticRelationshipOutputRepresentation';
|
|
4368
|
-
function keyBuilder$
|
|
4368
|
+
function keyBuilder$q(luvio, config) {
|
|
4369
4369
|
return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
|
|
4370
4370
|
}
|
|
4371
4371
|
function keyBuilderFromType$7(luvio, object) {
|
|
4372
4372
|
const keyParams = {
|
|
4373
4373
|
name: object.id
|
|
4374
4374
|
};
|
|
4375
|
-
return keyBuilder$
|
|
4375
|
+
return keyBuilder$q(luvio, keyParams);
|
|
4376
4376
|
}
|
|
4377
4377
|
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
4378
4378
|
return input;
|
|
4379
4379
|
}
|
|
4380
|
-
const select$
|
|
4381
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
4380
|
+
const select$s = function SemanticRelationshipOutputRepresentationSelect() {
|
|
4381
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$t();
|
|
4382
4382
|
return {
|
|
4383
4383
|
kind: 'Fragment',
|
|
4384
4384
|
version: VERSION$g,
|
|
@@ -4780,19 +4780,19 @@ function validate$h(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
4780
4780
|
return v_error === undefined ? null : v_error;
|
|
4781
4781
|
}
|
|
4782
4782
|
const RepresentationType$b = 'SemanticMappedFieldOutputRepresentation';
|
|
4783
|
-
function keyBuilder$
|
|
4783
|
+
function keyBuilder$p(luvio, config) {
|
|
4784
4784
|
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
4785
4785
|
}
|
|
4786
4786
|
function keyBuilderFromType$6(luvio, object) {
|
|
4787
4787
|
const keyParams = {
|
|
4788
4788
|
name: object.id
|
|
4789
4789
|
};
|
|
4790
|
-
return keyBuilder$
|
|
4790
|
+
return keyBuilder$p(luvio, keyParams);
|
|
4791
4791
|
}
|
|
4792
4792
|
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
4793
4793
|
return input;
|
|
4794
4794
|
}
|
|
4795
|
-
const select$
|
|
4795
|
+
const select$r = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
4796
4796
|
return {
|
|
4797
4797
|
kind: 'Fragment',
|
|
4798
4798
|
version: VERSION$f,
|
|
@@ -4949,14 +4949,14 @@ function validate$g(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
4949
4949
|
return v_error === undefined ? null : v_error;
|
|
4950
4950
|
}
|
|
4951
4951
|
const RepresentationType$a = 'SemanticUnionOutputRepresentation';
|
|
4952
|
-
function keyBuilder$
|
|
4952
|
+
function keyBuilder$o(luvio, config) {
|
|
4953
4953
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
4954
4954
|
}
|
|
4955
4955
|
function keyBuilderFromType$5(luvio, object) {
|
|
4956
4956
|
const keyParams = {
|
|
4957
4957
|
name: object.id
|
|
4958
4958
|
};
|
|
4959
|
-
return keyBuilder$
|
|
4959
|
+
return keyBuilder$o(luvio, keyParams);
|
|
4960
4960
|
}
|
|
4961
4961
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
4962
4962
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -4997,7 +4997,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
4997
4997
|
}
|
|
4998
4998
|
return input;
|
|
4999
4999
|
}
|
|
5000
|
-
const select$
|
|
5000
|
+
const select$q = function SemanticUnionOutputRepresentationSelect() {
|
|
5001
5001
|
return {
|
|
5002
5002
|
kind: 'Fragment',
|
|
5003
5003
|
version: VERSION$e,
|
|
@@ -5054,14 +5054,14 @@ const select$p = function SemanticUnionOutputRepresentationSelect() {
|
|
|
5054
5054
|
kind: 'Link',
|
|
5055
5055
|
plural: true,
|
|
5056
5056
|
required: false,
|
|
5057
|
-
fragment: select$
|
|
5057
|
+
fragment: select$B()
|
|
5058
5058
|
},
|
|
5059
5059
|
{
|
|
5060
5060
|
name: 'semanticMappedFields',
|
|
5061
5061
|
kind: 'Link',
|
|
5062
5062
|
plural: true,
|
|
5063
5063
|
required: false,
|
|
5064
|
-
fragment: select$
|
|
5064
|
+
fragment: select$r()
|
|
5065
5065
|
}
|
|
5066
5066
|
]
|
|
5067
5067
|
};
|
|
@@ -5368,14 +5368,14 @@ function validate$f(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
5368
5368
|
return v_error === undefined ? null : v_error;
|
|
5369
5369
|
}
|
|
5370
5370
|
const RepresentationType$9 = 'SemanticLogicalViewOutputRepresentation';
|
|
5371
|
-
function keyBuilder$
|
|
5371
|
+
function keyBuilder$n(luvio, config) {
|
|
5372
5372
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
|
|
5373
5373
|
}
|
|
5374
5374
|
function keyBuilderFromType$4(luvio, object) {
|
|
5375
5375
|
const keyParams = {
|
|
5376
5376
|
name: object.id
|
|
5377
5377
|
};
|
|
5378
|
-
return keyBuilder$
|
|
5378
|
+
return keyBuilder$n(luvio, keyParams);
|
|
5379
5379
|
}
|
|
5380
5380
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
5381
5381
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -5434,8 +5434,8 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
5434
5434
|
}
|
|
5435
5435
|
return input;
|
|
5436
5436
|
}
|
|
5437
|
-
const select$
|
|
5438
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
5437
|
+
const select$p = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
5438
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$E();
|
|
5439
5439
|
return {
|
|
5440
5440
|
kind: 'Fragment',
|
|
5441
5441
|
version: VERSION$d,
|
|
@@ -5499,21 +5499,21 @@ const select$o = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
5499
5499
|
kind: 'Link',
|
|
5500
5500
|
plural: true,
|
|
5501
5501
|
required: false,
|
|
5502
|
-
fragment: select$
|
|
5502
|
+
fragment: select$B()
|
|
5503
5503
|
},
|
|
5504
5504
|
{
|
|
5505
5505
|
name: 'semanticRelationships',
|
|
5506
5506
|
kind: 'Link',
|
|
5507
5507
|
plural: true,
|
|
5508
5508
|
required: false,
|
|
5509
|
-
fragment: select$
|
|
5509
|
+
fragment: select$s()
|
|
5510
5510
|
},
|
|
5511
5511
|
{
|
|
5512
5512
|
name: 'semanticUnions',
|
|
5513
5513
|
kind: 'Link',
|
|
5514
5514
|
plural: true,
|
|
5515
5515
|
required: false,
|
|
5516
|
-
fragment: select$
|
|
5516
|
+
fragment: select$q()
|
|
5517
5517
|
}
|
|
5518
5518
|
]
|
|
5519
5519
|
};
|
|
@@ -5760,8 +5760,8 @@ function validate$e(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
5760
5760
|
})();
|
|
5761
5761
|
return v_error === undefined ? null : v_error;
|
|
5762
5762
|
}
|
|
5763
|
-
const select$
|
|
5764
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
5763
|
+
const select$o = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
5764
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$v();
|
|
5765
5765
|
return {
|
|
5766
5766
|
kind: 'Fragment',
|
|
5767
5767
|
version: VERSION$c,
|
|
@@ -5835,7 +5835,7 @@ function validate$d(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
5835
5835
|
})();
|
|
5836
5836
|
return v_error === undefined ? null : v_error;
|
|
5837
5837
|
}
|
|
5838
|
-
const select$
|
|
5838
|
+
const select$n = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
5839
5839
|
return {
|
|
5840
5840
|
kind: 'Fragment',
|
|
5841
5841
|
version: VERSION$b,
|
|
@@ -5958,10 +5958,10 @@ function validate$c(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
5958
5958
|
})();
|
|
5959
5959
|
return v_error === undefined ? null : v_error;
|
|
5960
5960
|
}
|
|
5961
|
-
const select$
|
|
5962
|
-
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$
|
|
5963
|
-
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$
|
|
5964
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
5961
|
+
const select$m = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
5962
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$o();
|
|
5963
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$n();
|
|
5964
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$v();
|
|
5965
5965
|
return {
|
|
5966
5966
|
kind: 'Fragment',
|
|
5967
5967
|
version: VERSION$a,
|
|
@@ -6261,22 +6261,22 @@ function validate$b(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6261
6261
|
return v_error === undefined ? null : v_error;
|
|
6262
6262
|
}
|
|
6263
6263
|
const RepresentationType$8 = 'SemanticMetricOutputRepresentation';
|
|
6264
|
-
function keyBuilder$
|
|
6264
|
+
function keyBuilder$m(luvio, config) {
|
|
6265
6265
|
return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
|
|
6266
6266
|
}
|
|
6267
6267
|
function keyBuilderFromType$3(luvio, object) {
|
|
6268
6268
|
const keyParams = {
|
|
6269
6269
|
name: object.id
|
|
6270
6270
|
};
|
|
6271
|
-
return keyBuilder$
|
|
6271
|
+
return keyBuilder$m(luvio, keyParams);
|
|
6272
6272
|
}
|
|
6273
6273
|
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
6274
6274
|
return input;
|
|
6275
6275
|
}
|
|
6276
|
-
const select$
|
|
6277
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6278
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
6279
|
-
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$
|
|
6276
|
+
const select$l = function SemanticMetricOutputRepresentationSelect() {
|
|
6277
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$v();
|
|
6278
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$E();
|
|
6279
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$m();
|
|
6280
6280
|
return {
|
|
6281
6281
|
kind: 'Fragment',
|
|
6282
6282
|
version: VERSION$9,
|
|
@@ -6742,19 +6742,19 @@ function validate$a(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
6742
6742
|
return v_error === undefined ? null : v_error;
|
|
6743
6743
|
}
|
|
6744
6744
|
const RepresentationType$7 = 'SemanticParameterOutputRepresentation';
|
|
6745
|
-
function keyBuilder$
|
|
6745
|
+
function keyBuilder$l(luvio, config) {
|
|
6746
6746
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
|
|
6747
6747
|
}
|
|
6748
6748
|
function keyBuilderFromType$2(luvio, object) {
|
|
6749
6749
|
const keyParams = {
|
|
6750
6750
|
name: object.id
|
|
6751
6751
|
};
|
|
6752
|
-
return keyBuilder$
|
|
6752
|
+
return keyBuilder$l(luvio, keyParams);
|
|
6753
6753
|
}
|
|
6754
6754
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
6755
6755
|
return input;
|
|
6756
6756
|
}
|
|
6757
|
-
const select$
|
|
6757
|
+
const select$k = function SemanticParameterOutputRepresentationSelect() {
|
|
6758
6758
|
return {
|
|
6759
6759
|
kind: 'Fragment',
|
|
6760
6760
|
version: VERSION$8,
|
|
@@ -7350,14 +7350,14 @@ function validate$9(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7350
7350
|
return v_error === undefined ? null : v_error;
|
|
7351
7351
|
}
|
|
7352
7352
|
const RepresentationType$6 = 'SemanticModelOutputRepresentation';
|
|
7353
|
-
function keyBuilder$
|
|
7353
|
+
function keyBuilder$k(luvio, config) {
|
|
7354
7354
|
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
7355
7355
|
}
|
|
7356
7356
|
function keyBuilderFromType$1(luvio, object) {
|
|
7357
7357
|
const keyParams = {
|
|
7358
7358
|
name: object.id
|
|
7359
7359
|
};
|
|
7360
|
-
return keyBuilder$
|
|
7360
|
+
return keyBuilder$k(luvio, keyParams);
|
|
7361
7361
|
}
|
|
7362
7362
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
7363
7363
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
@@ -7506,8 +7506,8 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7506
7506
|
}
|
|
7507
7507
|
return input;
|
|
7508
7508
|
}
|
|
7509
|
-
const select$
|
|
7510
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
7509
|
+
const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
7510
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$F();
|
|
7511
7511
|
return {
|
|
7512
7512
|
kind: 'Fragment',
|
|
7513
7513
|
version: VERSION$7,
|
|
@@ -7586,7 +7586,7 @@ const select$i = function SemanticModelOutputRepresentationSelect() {
|
|
|
7586
7586
|
kind: 'Link',
|
|
7587
7587
|
plural: true,
|
|
7588
7588
|
required: false,
|
|
7589
|
-
fragment: select$
|
|
7589
|
+
fragment: select$D()
|
|
7590
7590
|
},
|
|
7591
7591
|
{
|
|
7592
7592
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -7598,7 +7598,7 @@ const select$i = function SemanticModelOutputRepresentationSelect() {
|
|
|
7598
7598
|
kind: 'Link',
|
|
7599
7599
|
plural: true,
|
|
7600
7600
|
required: false,
|
|
7601
|
-
fragment: select$
|
|
7601
|
+
fragment: select$C()
|
|
7602
7602
|
},
|
|
7603
7603
|
{
|
|
7604
7604
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -7610,7 +7610,7 @@ const select$i = function SemanticModelOutputRepresentationSelect() {
|
|
|
7610
7610
|
kind: 'Link',
|
|
7611
7611
|
plural: true,
|
|
7612
7612
|
required: false,
|
|
7613
|
-
fragment: select$
|
|
7613
|
+
fragment: select$B()
|
|
7614
7614
|
},
|
|
7615
7615
|
{
|
|
7616
7616
|
name: 'semanticDataObjectsUrl',
|
|
@@ -7622,7 +7622,7 @@ const select$i = function SemanticModelOutputRepresentationSelect() {
|
|
|
7622
7622
|
kind: 'Link',
|
|
7623
7623
|
plural: true,
|
|
7624
7624
|
required: false,
|
|
7625
|
-
fragment: select$
|
|
7625
|
+
fragment: select$u()
|
|
7626
7626
|
},
|
|
7627
7627
|
{
|
|
7628
7628
|
name: 'semanticGroupingsUrl',
|
|
@@ -7634,21 +7634,21 @@ const select$i = function SemanticModelOutputRepresentationSelect() {
|
|
|
7634
7634
|
kind: 'Link',
|
|
7635
7635
|
plural: true,
|
|
7636
7636
|
required: false,
|
|
7637
|
-
fragment: select$
|
|
7637
|
+
fragment: select$p()
|
|
7638
7638
|
},
|
|
7639
7639
|
{
|
|
7640
7640
|
name: 'semanticMetrics',
|
|
7641
7641
|
kind: 'Link',
|
|
7642
7642
|
plural: true,
|
|
7643
7643
|
required: false,
|
|
7644
|
-
fragment: select$
|
|
7644
|
+
fragment: select$l()
|
|
7645
7645
|
},
|
|
7646
7646
|
{
|
|
7647
7647
|
name: 'semanticParameters',
|
|
7648
7648
|
kind: 'Link',
|
|
7649
7649
|
plural: true,
|
|
7650
7650
|
required: false,
|
|
7651
|
-
fragment: select$
|
|
7651
|
+
fragment: select$k()
|
|
7652
7652
|
},
|
|
7653
7653
|
{
|
|
7654
7654
|
name: 'semanticParametersUrl',
|
|
@@ -7660,7 +7660,7 @@ const select$i = function SemanticModelOutputRepresentationSelect() {
|
|
|
7660
7660
|
kind: 'Link',
|
|
7661
7661
|
plural: true,
|
|
7662
7662
|
required: false,
|
|
7663
|
-
fragment: select$
|
|
7663
|
+
fragment: select$s()
|
|
7664
7664
|
},
|
|
7665
7665
|
{
|
|
7666
7666
|
name: 'semanticRelationshipsUrl',
|
|
@@ -8153,19 +8153,19 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8153
8153
|
}
|
|
8154
8154
|
}
|
|
8155
8155
|
|
|
8156
|
-
function select$
|
|
8157
|
-
return select$
|
|
8156
|
+
function select$i(luvio, params) {
|
|
8157
|
+
return select$j();
|
|
8158
8158
|
}
|
|
8159
|
-
function getResponseCacheKeys$
|
|
8159
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
8160
8160
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
8161
8161
|
}
|
|
8162
|
-
function ingestSuccess$
|
|
8162
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
8163
8163
|
const { body } = response;
|
|
8164
8164
|
const key = keyBuilderFromType$1(luvio, body);
|
|
8165
8165
|
luvio.storeIngest(key, ingest$6, body);
|
|
8166
8166
|
const snapshot = luvio.storeLookup({
|
|
8167
8167
|
recordId: key,
|
|
8168
|
-
node: select$
|
|
8168
|
+
node: select$i(),
|
|
8169
8169
|
variables: {},
|
|
8170
8170
|
});
|
|
8171
8171
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8176,7 +8176,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
8176
8176
|
deepFreeze(snapshot.data);
|
|
8177
8177
|
return snapshot;
|
|
8178
8178
|
}
|
|
8179
|
-
function createResourceRequest$
|
|
8179
|
+
function createResourceRequest$c(config) {
|
|
8180
8180
|
const headers = {};
|
|
8181
8181
|
return {
|
|
8182
8182
|
baseUri: '/services/data/v63.0',
|
|
@@ -8190,7 +8190,7 @@ function createResourceRequest$b(config) {
|
|
|
8190
8190
|
};
|
|
8191
8191
|
}
|
|
8192
8192
|
|
|
8193
|
-
const adapterName$
|
|
8193
|
+
const adapterName$c = 'createSemanticModel';
|
|
8194
8194
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
8195
8195
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
8196
8196
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -8211,11 +8211,11 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
8211
8211
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8212
8212
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8213
8213
|
];
|
|
8214
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8215
|
-
const createResourceParams$
|
|
8216
|
-
function typeCheckConfig$
|
|
8214
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createSemanticModel_ConfigPropertyMetadata);
|
|
8215
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$d(createSemanticModel_ConfigPropertyMetadata);
|
|
8216
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
8217
8217
|
const config = {};
|
|
8218
|
-
typeCheckConfig$
|
|
8218
|
+
typeCheckConfig$d(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
8219
8219
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
8220
8220
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
8221
8221
|
const untrustedConfig_baseModels_array = [];
|
|
@@ -8326,30 +8326,30 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
8326
8326
|
}
|
|
8327
8327
|
return config;
|
|
8328
8328
|
}
|
|
8329
|
-
function validateAdapterConfig$
|
|
8329
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
8330
8330
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
8331
8331
|
return null;
|
|
8332
8332
|
}
|
|
8333
8333
|
if (process.env.NODE_ENV !== 'production') {
|
|
8334
8334
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
8335
8335
|
}
|
|
8336
|
-
const config = typeCheckConfig$
|
|
8336
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
8337
8337
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8338
8338
|
return null;
|
|
8339
8339
|
}
|
|
8340
8340
|
return config;
|
|
8341
8341
|
}
|
|
8342
|
-
function buildNetworkSnapshot$
|
|
8343
|
-
const resourceParams = createResourceParams$
|
|
8344
|
-
const request = createResourceRequest$
|
|
8342
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
8343
|
+
const resourceParams = createResourceParams$c(config);
|
|
8344
|
+
const request = createResourceRequest$c(resourceParams);
|
|
8345
8345
|
return luvio.dispatchResourceRequest(request, options)
|
|
8346
8346
|
.then((response) => {
|
|
8347
8347
|
return luvio.handleSuccessResponse(() => {
|
|
8348
|
-
const snapshot = ingestSuccess$
|
|
8348
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
8349
8349
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8350
8350
|
}, () => {
|
|
8351
8351
|
const cache = new StoreKeyMap();
|
|
8352
|
-
getResponseCacheKeys$
|
|
8352
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
8353
8353
|
return cache;
|
|
8354
8354
|
});
|
|
8355
8355
|
}, (response) => {
|
|
@@ -8359,12 +8359,12 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
8359
8359
|
}
|
|
8360
8360
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
8361
8361
|
return function createSemanticModel(untrustedConfig) {
|
|
8362
|
-
const config = validateAdapterConfig$
|
|
8362
|
+
const config = validateAdapterConfig$c(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
8363
8363
|
// Invalid or incomplete config
|
|
8364
8364
|
if (config === null) {
|
|
8365
8365
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
8366
8366
|
}
|
|
8367
|
-
return buildNetworkSnapshot$
|
|
8367
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
8368
8368
|
};
|
|
8369
8369
|
};
|
|
8370
8370
|
|
|
@@ -8516,19 +8516,19 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
8516
8516
|
return v_error === undefined ? null : v_error;
|
|
8517
8517
|
}
|
|
8518
8518
|
const RepresentationType$5 = 'SemanticSubMetricOutputRepresentation';
|
|
8519
|
-
function keyBuilder$
|
|
8519
|
+
function keyBuilder$j(luvio, config) {
|
|
8520
8520
|
return keyPrefix + '::' + RepresentationType$5 + ':' + config.name;
|
|
8521
8521
|
}
|
|
8522
8522
|
function keyBuilderFromType(luvio, object) {
|
|
8523
8523
|
const keyParams = {
|
|
8524
8524
|
name: object.id
|
|
8525
8525
|
};
|
|
8526
|
-
return keyBuilder$
|
|
8526
|
+
return keyBuilder$j(luvio, keyParams);
|
|
8527
8527
|
}
|
|
8528
8528
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
8529
8529
|
return input;
|
|
8530
8530
|
}
|
|
8531
|
-
const select$
|
|
8531
|
+
const select$h = function SemanticSubMetricOutputRepresentationSelect() {
|
|
8532
8532
|
return {
|
|
8533
8533
|
kind: 'Fragment',
|
|
8534
8534
|
version: VERSION$6,
|
|
@@ -8564,19 +8564,19 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8564
8564
|
});
|
|
8565
8565
|
}
|
|
8566
8566
|
|
|
8567
|
-
function select$
|
|
8568
|
-
return select$
|
|
8567
|
+
function select$g(luvio, params) {
|
|
8568
|
+
return select$h();
|
|
8569
8569
|
}
|
|
8570
|
-
function getResponseCacheKeys$
|
|
8570
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
8571
8571
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
8572
8572
|
}
|
|
8573
|
-
function ingestSuccess$
|
|
8573
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
8574
8574
|
const { body } = response;
|
|
8575
8575
|
const key = keyBuilderFromType(luvio, body);
|
|
8576
8576
|
luvio.storeIngest(key, ingest$5, body);
|
|
8577
8577
|
const snapshot = luvio.storeLookup({
|
|
8578
8578
|
recordId: key,
|
|
8579
|
-
node: select$
|
|
8579
|
+
node: select$g(),
|
|
8580
8580
|
variables: {},
|
|
8581
8581
|
});
|
|
8582
8582
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8587,7 +8587,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
8587
8587
|
deepFreeze(snapshot.data);
|
|
8588
8588
|
return snapshot;
|
|
8589
8589
|
}
|
|
8590
|
-
function createResourceRequest$
|
|
8590
|
+
function createResourceRequest$b(config) {
|
|
8591
8591
|
const headers = {};
|
|
8592
8592
|
return {
|
|
8593
8593
|
baseUri: '/services/data/v63.0',
|
|
@@ -8601,7 +8601,7 @@ function createResourceRequest$a(config) {
|
|
|
8601
8601
|
};
|
|
8602
8602
|
}
|
|
8603
8603
|
|
|
8604
|
-
const adapterName$
|
|
8604
|
+
const adapterName$b = 'createSemanticSubMetric';
|
|
8605
8605
|
const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
8606
8606
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8607
8607
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -8612,11 +8612,11 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
8612
8612
|
generateParamConfigMetadata('semanticMetricDefinitionApiName', false, 2 /* Body */, 0 /* String */),
|
|
8613
8613
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
8614
8614
|
];
|
|
8615
|
-
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8616
|
-
const createResourceParams$
|
|
8617
|
-
function typeCheckConfig$
|
|
8615
|
+
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
8616
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$d(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
8617
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
8618
8618
|
const config = {};
|
|
8619
|
-
typeCheckConfig$
|
|
8619
|
+
typeCheckConfig$d(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
8620
8620
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
8621
8621
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
8622
8622
|
const untrustedConfig_filters_array = [];
|
|
@@ -8636,30 +8636,30 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
8636
8636
|
}
|
|
8637
8637
|
return config;
|
|
8638
8638
|
}
|
|
8639
|
-
function validateAdapterConfig$
|
|
8639
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
8640
8640
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
8641
8641
|
return null;
|
|
8642
8642
|
}
|
|
8643
8643
|
if (process.env.NODE_ENV !== 'production') {
|
|
8644
8644
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
8645
8645
|
}
|
|
8646
|
-
const config = typeCheckConfig$
|
|
8646
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
8647
8647
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8648
8648
|
return null;
|
|
8649
8649
|
}
|
|
8650
8650
|
return config;
|
|
8651
8651
|
}
|
|
8652
|
-
function buildNetworkSnapshot$
|
|
8653
|
-
const resourceParams = createResourceParams$
|
|
8654
|
-
const request = createResourceRequest$
|
|
8652
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
8653
|
+
const resourceParams = createResourceParams$b(config);
|
|
8654
|
+
const request = createResourceRequest$b(resourceParams);
|
|
8655
8655
|
return luvio.dispatchResourceRequest(request, options)
|
|
8656
8656
|
.then((response) => {
|
|
8657
8657
|
return luvio.handleSuccessResponse(() => {
|
|
8658
|
-
const snapshot = ingestSuccess$
|
|
8658
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
8659
8659
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8660
8660
|
}, () => {
|
|
8661
8661
|
const cache = new StoreKeyMap();
|
|
8662
|
-
getResponseCacheKeys$
|
|
8662
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
8663
8663
|
return cache;
|
|
8664
8664
|
});
|
|
8665
8665
|
}, (response) => {
|
|
@@ -8669,22 +8669,22 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
8669
8669
|
}
|
|
8670
8670
|
const createSemanticSubMetricAdapterFactory = (luvio) => {
|
|
8671
8671
|
return function createSemanticSubMetric(untrustedConfig) {
|
|
8672
|
-
const config = validateAdapterConfig$
|
|
8672
|
+
const config = validateAdapterConfig$b(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
|
|
8673
8673
|
// Invalid or incomplete config
|
|
8674
8674
|
if (config === null) {
|
|
8675
8675
|
throw new Error('Invalid config for "createSemanticSubMetric"');
|
|
8676
8676
|
}
|
|
8677
|
-
return buildNetworkSnapshot$
|
|
8677
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
8678
8678
|
};
|
|
8679
8679
|
};
|
|
8680
8680
|
|
|
8681
|
-
function keyBuilder$
|
|
8682
|
-
return keyBuilder$
|
|
8681
|
+
function keyBuilder$i(luvio, params) {
|
|
8682
|
+
return keyBuilder$j(luvio, {
|
|
8683
8683
|
name: params.urlParams.subMetricNameOrId
|
|
8684
8684
|
});
|
|
8685
8685
|
}
|
|
8686
|
-
function getResponseCacheKeys$
|
|
8687
|
-
const key = keyBuilder$
|
|
8686
|
+
function getResponseCacheKeys$a(cacheKeyMap, luvio, resourceParams) {
|
|
8687
|
+
const key = keyBuilder$i(luvio, resourceParams);
|
|
8688
8688
|
cacheKeyMap.set(key, {
|
|
8689
8689
|
namespace: keyPrefix,
|
|
8690
8690
|
representationName: RepresentationType$5,
|
|
@@ -8692,10 +8692,10 @@ function getResponseCacheKeys$9(cacheKeyMap, luvio, resourceParams) {
|
|
|
8692
8692
|
});
|
|
8693
8693
|
}
|
|
8694
8694
|
function evictSuccess(luvio, resourceParams) {
|
|
8695
|
-
const key = keyBuilder$
|
|
8695
|
+
const key = keyBuilder$i(luvio, resourceParams);
|
|
8696
8696
|
luvio.storeEvict(key);
|
|
8697
8697
|
}
|
|
8698
|
-
function createResourceRequest$
|
|
8698
|
+
function createResourceRequest$a(config) {
|
|
8699
8699
|
const headers = {};
|
|
8700
8700
|
return {
|
|
8701
8701
|
baseUri: '/services/data/v63.0',
|
|
@@ -8709,34 +8709,34 @@ function createResourceRequest$9(config) {
|
|
|
8709
8709
|
};
|
|
8710
8710
|
}
|
|
8711
8711
|
|
|
8712
|
-
const adapterName$
|
|
8712
|
+
const adapterName$a = 'deleteSemanticSubMetric';
|
|
8713
8713
|
const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
8714
8714
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8715
8715
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8716
8716
|
];
|
|
8717
|
-
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8718
|
-
const createResourceParams$
|
|
8719
|
-
function typeCheckConfig$
|
|
8717
|
+
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
8718
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$d(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
8719
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
8720
8720
|
const config = {};
|
|
8721
|
-
typeCheckConfig$
|
|
8721
|
+
typeCheckConfig$d(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
8722
8722
|
return config;
|
|
8723
8723
|
}
|
|
8724
|
-
function validateAdapterConfig$
|
|
8724
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
8725
8725
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
8726
8726
|
return null;
|
|
8727
8727
|
}
|
|
8728
8728
|
if (process.env.NODE_ENV !== 'production') {
|
|
8729
8729
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
8730
8730
|
}
|
|
8731
|
-
const config = typeCheckConfig$
|
|
8731
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
8732
8732
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8733
8733
|
return null;
|
|
8734
8734
|
}
|
|
8735
8735
|
return config;
|
|
8736
8736
|
}
|
|
8737
|
-
function buildNetworkSnapshot$
|
|
8738
|
-
const resourceParams = createResourceParams$
|
|
8739
|
-
const request = createResourceRequest$
|
|
8737
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
8738
|
+
const resourceParams = createResourceParams$a(config);
|
|
8739
|
+
const request = createResourceRequest$a(resourceParams);
|
|
8740
8740
|
return luvio.dispatchResourceRequest(request, options)
|
|
8741
8741
|
.then(() => {
|
|
8742
8742
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -8744,7 +8744,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
8744
8744
|
return luvio.storeBroadcast();
|
|
8745
8745
|
}, () => {
|
|
8746
8746
|
const cache = new StoreKeyMap();
|
|
8747
|
-
getResponseCacheKeys$
|
|
8747
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams);
|
|
8748
8748
|
return cache;
|
|
8749
8749
|
});
|
|
8750
8750
|
}, (response) => {
|
|
@@ -8754,33 +8754,33 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
8754
8754
|
}
|
|
8755
8755
|
const deleteSemanticSubMetricAdapterFactory = (luvio) => {
|
|
8756
8756
|
return function SemanticAuthoringdeleteSemanticSubMetric(untrustedConfig) {
|
|
8757
|
-
const config = validateAdapterConfig$
|
|
8757
|
+
const config = validateAdapterConfig$a(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
|
|
8758
8758
|
// Invalid or incomplete config
|
|
8759
8759
|
if (config === null) {
|
|
8760
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
8760
|
+
throw new Error(`Invalid config for "${adapterName$a}"`);
|
|
8761
8761
|
}
|
|
8762
|
-
return buildNetworkSnapshot$
|
|
8762
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
8763
8763
|
};
|
|
8764
8764
|
};
|
|
8765
8765
|
|
|
8766
|
-
function select$
|
|
8767
|
-
return select$
|
|
8766
|
+
function select$f(luvio, params) {
|
|
8767
|
+
return select$l();
|
|
8768
8768
|
}
|
|
8769
|
-
function keyBuilder$
|
|
8770
|
-
return keyBuilder$
|
|
8769
|
+
function keyBuilder$h(luvio, params) {
|
|
8770
|
+
return keyBuilder$m(luvio, {
|
|
8771
8771
|
name: params.urlParams.metricNameOrId
|
|
8772
8772
|
});
|
|
8773
8773
|
}
|
|
8774
|
-
function getResponseCacheKeys$
|
|
8774
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
8775
8775
|
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
8776
8776
|
}
|
|
8777
|
-
function ingestSuccess$
|
|
8777
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
8778
8778
|
const { body } = response;
|
|
8779
|
-
const key = keyBuilder$
|
|
8779
|
+
const key = keyBuilder$h(luvio, resourceParams);
|
|
8780
8780
|
luvio.storeIngest(key, ingest$8, body);
|
|
8781
8781
|
const snapshot = luvio.storeLookup({
|
|
8782
8782
|
recordId: key,
|
|
8783
|
-
node: select$
|
|
8783
|
+
node: select$f(),
|
|
8784
8784
|
variables: {},
|
|
8785
8785
|
}, snapshotRefresh);
|
|
8786
8786
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8791,13 +8791,13 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
8791
8791
|
deepFreeze(snapshot.data);
|
|
8792
8792
|
return snapshot;
|
|
8793
8793
|
}
|
|
8794
|
-
function ingestError$
|
|
8795
|
-
const key = keyBuilder$
|
|
8794
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
8795
|
+
const key = keyBuilder$h(luvio, params);
|
|
8796
8796
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
8797
8797
|
luvio.storeIngestError(key, errorSnapshot);
|
|
8798
8798
|
return errorSnapshot;
|
|
8799
8799
|
}
|
|
8800
|
-
function createResourceRequest$
|
|
8800
|
+
function createResourceRequest$9(config) {
|
|
8801
8801
|
const headers = {};
|
|
8802
8802
|
return {
|
|
8803
8803
|
baseUri: '/services/data/v63.0',
|
|
@@ -8815,98 +8815,98 @@ function createResourceRequestFromRepresentation$2(representation) {
|
|
|
8815
8815
|
urlParams: {},
|
|
8816
8816
|
};
|
|
8817
8817
|
config.urlParams.metricNameOrId = representation.id;
|
|
8818
|
-
return createResourceRequest$
|
|
8818
|
+
return createResourceRequest$9(config);
|
|
8819
8819
|
}
|
|
8820
8820
|
|
|
8821
|
-
const adapterName$
|
|
8821
|
+
const adapterName$9 = 'getSemanticMetric';
|
|
8822
8822
|
const getSemanticMetric_ConfigPropertyMetadata = [
|
|
8823
8823
|
generateParamConfigMetadata('metricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8824
8824
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8825
8825
|
];
|
|
8826
|
-
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8827
|
-
const createResourceParams$
|
|
8828
|
-
function keyBuilder$
|
|
8829
|
-
const resourceParams = createResourceParams$
|
|
8830
|
-
return keyBuilder$
|
|
8826
|
+
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetric_ConfigPropertyMetadata);
|
|
8827
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$d(getSemanticMetric_ConfigPropertyMetadata);
|
|
8828
|
+
function keyBuilder$g(luvio, config) {
|
|
8829
|
+
const resourceParams = createResourceParams$9(config);
|
|
8830
|
+
return keyBuilder$h(luvio, resourceParams);
|
|
8831
8831
|
}
|
|
8832
|
-
function typeCheckConfig$
|
|
8832
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
8833
8833
|
const config = {};
|
|
8834
|
-
typeCheckConfig$
|
|
8834
|
+
typeCheckConfig$d(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
8835
8835
|
return config;
|
|
8836
8836
|
}
|
|
8837
|
-
function validateAdapterConfig$
|
|
8837
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
8838
8838
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
8839
8839
|
return null;
|
|
8840
8840
|
}
|
|
8841
8841
|
if (process.env.NODE_ENV !== 'production') {
|
|
8842
8842
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
8843
8843
|
}
|
|
8844
|
-
const config = typeCheckConfig$
|
|
8844
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
8845
8845
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8846
8846
|
return null;
|
|
8847
8847
|
}
|
|
8848
8848
|
return config;
|
|
8849
8849
|
}
|
|
8850
|
-
function adapterFragment$
|
|
8851
|
-
createResourceParams$
|
|
8852
|
-
return select$
|
|
8850
|
+
function adapterFragment$8(luvio, config) {
|
|
8851
|
+
createResourceParams$9(config);
|
|
8852
|
+
return select$f();
|
|
8853
8853
|
}
|
|
8854
|
-
function onFetchResponseSuccess$
|
|
8855
|
-
const snapshot = ingestSuccess$
|
|
8854
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
8855
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
8856
8856
|
config,
|
|
8857
|
-
resolve: () => buildNetworkSnapshot$
|
|
8857
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
8858
8858
|
});
|
|
8859
8859
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8860
8860
|
}
|
|
8861
|
-
function onFetchResponseError$
|
|
8862
|
-
const snapshot = ingestError$
|
|
8861
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
8862
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
8863
8863
|
config,
|
|
8864
|
-
resolve: () => buildNetworkSnapshot$
|
|
8864
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
8865
8865
|
});
|
|
8866
8866
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8867
8867
|
}
|
|
8868
|
-
function buildNetworkSnapshot$
|
|
8869
|
-
const resourceParams = createResourceParams$
|
|
8870
|
-
const request = createResourceRequest$
|
|
8868
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
8869
|
+
const resourceParams = createResourceParams$9(config);
|
|
8870
|
+
const request = createResourceRequest$9(resourceParams);
|
|
8871
8871
|
return luvio.dispatchResourceRequest(request, options)
|
|
8872
8872
|
.then((response) => {
|
|
8873
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
8873
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
8874
8874
|
const cache = new StoreKeyMap();
|
|
8875
|
-
getResponseCacheKeys$
|
|
8875
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
8876
8876
|
return cache;
|
|
8877
8877
|
});
|
|
8878
8878
|
}, (response) => {
|
|
8879
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
8879
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
8880
8880
|
});
|
|
8881
8881
|
}
|
|
8882
|
-
function buildNetworkSnapshotCachePolicy$
|
|
8883
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8882
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
8883
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
8884
8884
|
}
|
|
8885
|
-
function buildCachedSnapshotCachePolicy$
|
|
8885
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
8886
8886
|
const { luvio, config } = context;
|
|
8887
8887
|
const selector = {
|
|
8888
|
-
recordId: keyBuilder$
|
|
8889
|
-
node: adapterFragment$
|
|
8888
|
+
recordId: keyBuilder$g(luvio, config),
|
|
8889
|
+
node: adapterFragment$8(luvio, config),
|
|
8890
8890
|
variables: {},
|
|
8891
8891
|
};
|
|
8892
8892
|
const cacheSnapshot = storeLookup(selector, {
|
|
8893
8893
|
config,
|
|
8894
|
-
resolve: () => buildNetworkSnapshot$
|
|
8894
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
8895
8895
|
});
|
|
8896
8896
|
return cacheSnapshot;
|
|
8897
8897
|
}
|
|
8898
8898
|
const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetric(untrustedConfig, requestContext) {
|
|
8899
|
-
const config = validateAdapterConfig$
|
|
8899
|
+
const config = validateAdapterConfig$9(untrustedConfig, getSemanticMetric_ConfigPropertyNames);
|
|
8900
8900
|
// Invalid or incomplete config
|
|
8901
8901
|
if (config === null) {
|
|
8902
8902
|
return null;
|
|
8903
8903
|
}
|
|
8904
8904
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
8905
|
-
buildCachedSnapshotCachePolicy$
|
|
8905
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
8906
8906
|
};
|
|
8907
8907
|
const notifyChangeFactory$2 = (luvio, options) => {
|
|
8908
8908
|
return function getSsotSemanticModelsMetricsByMetricNameOrIdAndModelApiNameOrIdNotifyChange(configs) {
|
|
8909
|
-
const keys = configs.map(c => keyBuilder$
|
|
8909
|
+
const keys = configs.map(c => keyBuilder$m(luvio, c));
|
|
8910
8910
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
8911
8911
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
8912
8912
|
const { key, record: val } = entries[i];
|
|
@@ -8979,7 +8979,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
8979
8979
|
}
|
|
8980
8980
|
return input;
|
|
8981
8981
|
}
|
|
8982
|
-
const select$
|
|
8982
|
+
const select$e = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
8983
8983
|
return {
|
|
8984
8984
|
kind: 'Fragment',
|
|
8985
8985
|
version: VERSION$5,
|
|
@@ -8990,7 +8990,7 @@ const select$d = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
8990
8990
|
kind: 'Link',
|
|
8991
8991
|
plural: true,
|
|
8992
8992
|
required: false,
|
|
8993
|
-
fragment: select$
|
|
8993
|
+
fragment: select$l()
|
|
8994
8994
|
}
|
|
8995
8995
|
]
|
|
8996
8996
|
};
|
|
@@ -9044,11 +9044,143 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9044
9044
|
}
|
|
9045
9045
|
}
|
|
9046
9046
|
|
|
9047
|
-
function select$
|
|
9047
|
+
function select$d(luvio, params) {
|
|
9048
|
+
return select$e();
|
|
9049
|
+
}
|
|
9050
|
+
function keyBuilder$f(luvio, params) {
|
|
9051
|
+
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
9052
|
+
}
|
|
9053
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
9054
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
|
|
9055
|
+
}
|
|
9056
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
9057
|
+
const { body } = response;
|
|
9058
|
+
const key = keyBuilder$f(luvio, resourceParams);
|
|
9059
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
9060
|
+
const snapshot = luvio.storeLookup({
|
|
9061
|
+
recordId: key,
|
|
9062
|
+
node: select$d(),
|
|
9063
|
+
variables: {},
|
|
9064
|
+
}, snapshotRefresh);
|
|
9065
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9066
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
9067
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
9068
|
+
}
|
|
9069
|
+
}
|
|
9070
|
+
deepFreeze(snapshot.data);
|
|
9071
|
+
return snapshot;
|
|
9072
|
+
}
|
|
9073
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
9074
|
+
const key = keyBuilder$f(luvio, params);
|
|
9075
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
9076
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
9077
|
+
return errorSnapshot;
|
|
9078
|
+
}
|
|
9079
|
+
function createResourceRequest$8(config) {
|
|
9080
|
+
const headers = {};
|
|
9081
|
+
return {
|
|
9082
|
+
baseUri: '/services/data/v63.0',
|
|
9083
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics',
|
|
9084
|
+
method: 'get',
|
|
9085
|
+
body: null,
|
|
9086
|
+
urlParams: config.urlParams,
|
|
9087
|
+
queryParams: {},
|
|
9088
|
+
headers,
|
|
9089
|
+
priority: 'normal',
|
|
9090
|
+
};
|
|
9091
|
+
}
|
|
9092
|
+
|
|
9093
|
+
const adapterName$8 = 'getSemanticMetrics';
|
|
9094
|
+
const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
9095
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9096
|
+
];
|
|
9097
|
+
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9098
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$d(getSemanticMetrics_ConfigPropertyMetadata);
|
|
9099
|
+
function keyBuilder$e(luvio, config) {
|
|
9100
|
+
const resourceParams = createResourceParams$8(config);
|
|
9101
|
+
return keyBuilder$f(luvio, resourceParams);
|
|
9102
|
+
}
|
|
9103
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
9104
|
+
const config = {};
|
|
9105
|
+
typeCheckConfig$d(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9106
|
+
return config;
|
|
9107
|
+
}
|
|
9108
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
9109
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
9110
|
+
return null;
|
|
9111
|
+
}
|
|
9112
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9113
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
9114
|
+
}
|
|
9115
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
9116
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9117
|
+
return null;
|
|
9118
|
+
}
|
|
9119
|
+
return config;
|
|
9120
|
+
}
|
|
9121
|
+
function adapterFragment$7(luvio, config) {
|
|
9122
|
+
createResourceParams$8(config);
|
|
9048
9123
|
return select$d();
|
|
9049
9124
|
}
|
|
9125
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
9126
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
9127
|
+
config,
|
|
9128
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
9129
|
+
});
|
|
9130
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9131
|
+
}
|
|
9132
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
9133
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
9134
|
+
config,
|
|
9135
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
9136
|
+
});
|
|
9137
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9138
|
+
}
|
|
9139
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
9140
|
+
const resourceParams = createResourceParams$8(config);
|
|
9141
|
+
const request = createResourceRequest$8(resourceParams);
|
|
9142
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
9143
|
+
.then((response) => {
|
|
9144
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
9145
|
+
const cache = new StoreKeyMap();
|
|
9146
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
9147
|
+
return cache;
|
|
9148
|
+
});
|
|
9149
|
+
}, (response) => {
|
|
9150
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
9151
|
+
});
|
|
9152
|
+
}
|
|
9153
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
9154
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
9155
|
+
}
|
|
9156
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
9157
|
+
const { luvio, config } = context;
|
|
9158
|
+
const selector = {
|
|
9159
|
+
recordId: keyBuilder$e(luvio, config),
|
|
9160
|
+
node: adapterFragment$7(luvio, config),
|
|
9161
|
+
variables: {},
|
|
9162
|
+
};
|
|
9163
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
9164
|
+
config,
|
|
9165
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
9166
|
+
});
|
|
9167
|
+
return cacheSnapshot;
|
|
9168
|
+
}
|
|
9169
|
+
const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
|
|
9170
|
+
const config = validateAdapterConfig$8(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
|
|
9171
|
+
// Invalid or incomplete config
|
|
9172
|
+
if (config === null) {
|
|
9173
|
+
return null;
|
|
9174
|
+
}
|
|
9175
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
9176
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
9177
|
+
};
|
|
9178
|
+
|
|
9179
|
+
function select$c(luvio, params) {
|
|
9180
|
+
return select$e();
|
|
9181
|
+
}
|
|
9050
9182
|
function keyBuilder$d(luvio, params) {
|
|
9051
|
-
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + '
|
|
9183
|
+
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
9052
9184
|
}
|
|
9053
9185
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
9054
9186
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
@@ -9080,7 +9212,7 @@ function createResourceRequest$7(config) {
|
|
|
9080
9212
|
const headers = {};
|
|
9081
9213
|
return {
|
|
9082
9214
|
baseUri: '/services/data/v63.0',
|
|
9083
|
-
basePath: '/ssot/semantic/
|
|
9215
|
+
basePath: '/ssot/semantic/metrics/' + config.urlParams.metricIds + '',
|
|
9084
9216
|
method: 'get',
|
|
9085
9217
|
body: null,
|
|
9086
9218
|
urlParams: config.urlParams,
|
|
@@ -9090,19 +9222,19 @@ function createResourceRequest$7(config) {
|
|
|
9090
9222
|
};
|
|
9091
9223
|
}
|
|
9092
9224
|
|
|
9093
|
-
const adapterName$7 = '
|
|
9094
|
-
const
|
|
9095
|
-
generateParamConfigMetadata('
|
|
9225
|
+
const adapterName$7 = 'getSemanticMetricsByIds';
|
|
9226
|
+
const getSemanticMetricsByIds_ConfigPropertyMetadata = [
|
|
9227
|
+
generateParamConfigMetadata('metricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9096
9228
|
];
|
|
9097
|
-
const
|
|
9098
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
9229
|
+
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
9230
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$d(getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
9099
9231
|
function keyBuilder$c(luvio, config) {
|
|
9100
9232
|
const resourceParams = createResourceParams$7(config);
|
|
9101
9233
|
return keyBuilder$d(luvio, resourceParams);
|
|
9102
9234
|
}
|
|
9103
9235
|
function typeCheckConfig$7(untrustedConfig) {
|
|
9104
9236
|
const config = {};
|
|
9105
|
-
typeCheckConfig$
|
|
9237
|
+
typeCheckConfig$d(untrustedConfig, config, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
9106
9238
|
return config;
|
|
9107
9239
|
}
|
|
9108
9240
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -9151,7 +9283,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
9151
9283
|
});
|
|
9152
9284
|
}
|
|
9153
9285
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
9154
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9286
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
9155
9287
|
}
|
|
9156
9288
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
9157
9289
|
const { luvio, config } = context;
|
|
@@ -9166,8 +9298,8 @@ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
|
9166
9298
|
});
|
|
9167
9299
|
return cacheSnapshot;
|
|
9168
9300
|
}
|
|
9169
|
-
const
|
|
9170
|
-
const config = validateAdapterConfig$7(untrustedConfig,
|
|
9301
|
+
const getSemanticMetricsByIdsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsByIds(untrustedConfig, requestContext) {
|
|
9302
|
+
const config = validateAdapterConfig$7(untrustedConfig, getSemanticMetricsByIds_ConfigPropertyNames);
|
|
9171
9303
|
// Invalid or incomplete config
|
|
9172
9304
|
if (config === null) {
|
|
9173
9305
|
return null;
|
|
@@ -9244,7 +9376,7 @@ const select$b = function SemanticSubMetricsByMetricOutputRepresentationSelect()
|
|
|
9244
9376
|
kind: 'Link',
|
|
9245
9377
|
plural: true,
|
|
9246
9378
|
required: false,
|
|
9247
|
-
fragment: select$
|
|
9379
|
+
fragment: select$h()
|
|
9248
9380
|
}
|
|
9249
9381
|
]
|
|
9250
9382
|
};
|
|
@@ -9473,14 +9605,14 @@ const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
|
9473
9605
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9474
9606
|
];
|
|
9475
9607
|
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9476
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
9608
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$d(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9477
9609
|
function keyBuilder$a(luvio, config) {
|
|
9478
9610
|
const resourceParams = createResourceParams$6(config);
|
|
9479
9611
|
return keyBuilder$b(luvio, resourceParams);
|
|
9480
9612
|
}
|
|
9481
9613
|
function typeCheckConfig$6(untrustedConfig) {
|
|
9482
9614
|
const config = {};
|
|
9483
|
-
typeCheckConfig$
|
|
9615
|
+
typeCheckConfig$d(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9484
9616
|
return config;
|
|
9485
9617
|
}
|
|
9486
9618
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -9529,7 +9661,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
9529
9661
|
});
|
|
9530
9662
|
}
|
|
9531
9663
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
9532
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9664
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
9533
9665
|
}
|
|
9534
9666
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
9535
9667
|
const { luvio, config } = context;
|
|
@@ -9555,10 +9687,10 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
9555
9687
|
};
|
|
9556
9688
|
|
|
9557
9689
|
function select$8(luvio, params) {
|
|
9558
|
-
return select$
|
|
9690
|
+
return select$j();
|
|
9559
9691
|
}
|
|
9560
9692
|
function keyBuilder$9(luvio, params) {
|
|
9561
|
-
return keyBuilder$
|
|
9693
|
+
return keyBuilder$k(luvio, {
|
|
9562
9694
|
name: params.urlParams.modelApiNameOrId
|
|
9563
9695
|
});
|
|
9564
9696
|
}
|
|
@@ -9617,14 +9749,14 @@ const getSemanticModel_ConfigPropertyMetadata = [
|
|
|
9617
9749
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
9618
9750
|
];
|
|
9619
9751
|
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSemanticModel_ConfigPropertyMetadata);
|
|
9620
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
9752
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$d(getSemanticModel_ConfigPropertyMetadata);
|
|
9621
9753
|
function keyBuilder$8(luvio, config) {
|
|
9622
9754
|
const resourceParams = createResourceParams$5(config);
|
|
9623
9755
|
return keyBuilder$9(luvio, resourceParams);
|
|
9624
9756
|
}
|
|
9625
9757
|
function typeCheckConfig$5(untrustedConfig) {
|
|
9626
9758
|
const config = {};
|
|
9627
|
-
typeCheckConfig$
|
|
9759
|
+
typeCheckConfig$d(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
9628
9760
|
return config;
|
|
9629
9761
|
}
|
|
9630
9762
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -9673,7 +9805,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
9673
9805
|
});
|
|
9674
9806
|
}
|
|
9675
9807
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
9676
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9808
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
9677
9809
|
}
|
|
9678
9810
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
9679
9811
|
const { luvio, config } = context;
|
|
@@ -9699,7 +9831,7 @@ const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__ge
|
|
|
9699
9831
|
};
|
|
9700
9832
|
const notifyChangeFactory$1 = (luvio, options) => {
|
|
9701
9833
|
return function getSsotSemanticModelsByModelApiNameOrIdNotifyChange(configs) {
|
|
9702
|
-
const keys = configs.map(c => keyBuilder$
|
|
9834
|
+
const keys = configs.map(c => keyBuilder$k(luvio, c));
|
|
9703
9835
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
9704
9836
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
9705
9837
|
const { key, record: val } = entries[i];
|
|
@@ -9919,7 +10051,7 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
9919
10051
|
return v_error === undefined ? null : v_error;
|
|
9920
10052
|
}
|
|
9921
10053
|
const select$7 = function SemanticModelPartialOutputRepresentationSelect() {
|
|
9922
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
10054
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$F();
|
|
9923
10055
|
return {
|
|
9924
10056
|
kind: 'Fragment',
|
|
9925
10057
|
version: VERSION$2,
|
|
@@ -10611,14 +10743,14 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
10611
10743
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10612
10744
|
];
|
|
10613
10745
|
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticModels_ConfigPropertyMetadata);
|
|
10614
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
10746
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$d(getSemanticModels_ConfigPropertyMetadata);
|
|
10615
10747
|
function keyBuilder$6(luvio, config) {
|
|
10616
10748
|
const resourceParams = createResourceParams$4(config);
|
|
10617
10749
|
return keyBuilder$7(luvio, resourceParams);
|
|
10618
10750
|
}
|
|
10619
10751
|
function typeCheckConfig$4(untrustedConfig) {
|
|
10620
10752
|
const config = {};
|
|
10621
|
-
typeCheckConfig$
|
|
10753
|
+
typeCheckConfig$d(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
10622
10754
|
return config;
|
|
10623
10755
|
}
|
|
10624
10756
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -10667,7 +10799,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
10667
10799
|
});
|
|
10668
10800
|
}
|
|
10669
10801
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
10670
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10802
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
10671
10803
|
}
|
|
10672
10804
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
10673
10805
|
const { luvio, config } = context;
|
|
@@ -10693,10 +10825,10 @@ const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
10693
10825
|
};
|
|
10694
10826
|
|
|
10695
10827
|
function select$4(luvio, params) {
|
|
10696
|
-
return select$
|
|
10828
|
+
return select$h();
|
|
10697
10829
|
}
|
|
10698
10830
|
function keyBuilder$5(luvio, params) {
|
|
10699
|
-
return keyBuilder$
|
|
10831
|
+
return keyBuilder$j(luvio, {
|
|
10700
10832
|
name: params.urlParams.subMetricNameOrId
|
|
10701
10833
|
});
|
|
10702
10834
|
}
|
|
@@ -10753,14 +10885,14 @@ const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
10753
10885
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10754
10886
|
];
|
|
10755
10887
|
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
10756
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
10888
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$d(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
10757
10889
|
function keyBuilder$4(luvio, config) {
|
|
10758
10890
|
const resourceParams = createResourceParams$3(config);
|
|
10759
10891
|
return keyBuilder$5(luvio, resourceParams);
|
|
10760
10892
|
}
|
|
10761
10893
|
function typeCheckConfig$3(untrustedConfig) {
|
|
10762
10894
|
const config = {};
|
|
10763
|
-
typeCheckConfig$
|
|
10895
|
+
typeCheckConfig$d(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
10764
10896
|
return config;
|
|
10765
10897
|
}
|
|
10766
10898
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -10809,7 +10941,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
10809
10941
|
});
|
|
10810
10942
|
}
|
|
10811
10943
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
10812
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10944
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
10813
10945
|
}
|
|
10814
10946
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
10815
10947
|
const { luvio, config } = context;
|
|
@@ -10835,7 +10967,7 @@ const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring
|
|
|
10835
10967
|
};
|
|
10836
10968
|
const notifyChangeFactory = (luvio, options) => {
|
|
10837
10969
|
return function getSsotSemanticModelsSubMetricsByModelApiNameOrIdAndSubMetricNameOrIdNotifyChange(configs) {
|
|
10838
|
-
const keys = configs.map(c => keyBuilder$
|
|
10970
|
+
const keys = configs.map(c => keyBuilder$j(luvio, c));
|
|
10839
10971
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
10840
10972
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
10841
10973
|
const { key, record: val } = entries[i];
|
|
@@ -10919,7 +11051,7 @@ const select$3 = function SemanticSubMetricCollectionOutputRepresentationSelect(
|
|
|
10919
11051
|
kind: 'Link',
|
|
10920
11052
|
plural: true,
|
|
10921
11053
|
required: false,
|
|
10922
|
-
fragment: select$
|
|
11054
|
+
fragment: select$h()
|
|
10923
11055
|
}
|
|
10924
11056
|
]
|
|
10925
11057
|
};
|
|
@@ -11024,14 +11156,14 @@ const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
|
11024
11156
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11025
11157
|
];
|
|
11026
11158
|
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11027
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
11159
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$d(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11028
11160
|
function keyBuilder$2(luvio, config) {
|
|
11029
11161
|
const resourceParams = createResourceParams$2(config);
|
|
11030
11162
|
return keyBuilder$3(luvio, resourceParams);
|
|
11031
11163
|
}
|
|
11032
11164
|
function typeCheckConfig$2(untrustedConfig) {
|
|
11033
11165
|
const config = {};
|
|
11034
|
-
typeCheckConfig$
|
|
11166
|
+
typeCheckConfig$d(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11035
11167
|
return config;
|
|
11036
11168
|
}
|
|
11037
11169
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -11080,7 +11212,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
11080
11212
|
});
|
|
11081
11213
|
}
|
|
11082
11214
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
11083
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11215
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
11084
11216
|
}
|
|
11085
11217
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
11086
11218
|
const { luvio, config } = context;
|
|
@@ -11156,14 +11288,14 @@ const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
|
11156
11288
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11157
11289
|
];
|
|
11158
11290
|
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11159
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
11291
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$d(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11160
11292
|
function keyBuilder(luvio, config) {
|
|
11161
11293
|
const resourceParams = createResourceParams$1(config);
|
|
11162
11294
|
return keyBuilder$1(luvio, resourceParams);
|
|
11163
11295
|
}
|
|
11164
11296
|
function typeCheckConfig$1(untrustedConfig) {
|
|
11165
11297
|
const config = {};
|
|
11166
|
-
typeCheckConfig$
|
|
11298
|
+
typeCheckConfig$d(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11167
11299
|
return config;
|
|
11168
11300
|
}
|
|
11169
11301
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -11212,7 +11344,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
11212
11344
|
});
|
|
11213
11345
|
}
|
|
11214
11346
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
11215
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11347
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
11216
11348
|
}
|
|
11217
11349
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
11218
11350
|
const { luvio, config } = context;
|
|
@@ -11238,7 +11370,7 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
11238
11370
|
};
|
|
11239
11371
|
|
|
11240
11372
|
function select(luvio, params) {
|
|
11241
|
-
return select$
|
|
11373
|
+
return select$j();
|
|
11242
11374
|
}
|
|
11243
11375
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
11244
11376
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
@@ -11297,10 +11429,10 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
11297
11429
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11298
11430
|
];
|
|
11299
11431
|
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, patchSemanticModel_ConfigPropertyMetadata);
|
|
11300
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
11432
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$d(patchSemanticModel_ConfigPropertyMetadata);
|
|
11301
11433
|
function typeCheckConfig(untrustedConfig) {
|
|
11302
11434
|
const config = {};
|
|
11303
|
-
typeCheckConfig$
|
|
11435
|
+
typeCheckConfig$d(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
11304
11436
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
11305
11437
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
11306
11438
|
const untrustedConfig_baseModels_array = [];
|
|
@@ -11459,6 +11591,7 @@ let deleteSemanticSubMetric;
|
|
|
11459
11591
|
let getSemanticMetric;
|
|
11460
11592
|
let getSemanticMetricNotifyChange;
|
|
11461
11593
|
let getSemanticMetrics;
|
|
11594
|
+
let getSemanticMetricsByIds;
|
|
11462
11595
|
let getSemanticMetricsToSubMetrics;
|
|
11463
11596
|
let getSemanticModel;
|
|
11464
11597
|
let getSemanticModelNotifyChange;
|
|
@@ -11471,6 +11604,7 @@ let patchSemanticModel;
|
|
|
11471
11604
|
// Imperative GET Adapters
|
|
11472
11605
|
let getSemanticMetric_imperative;
|
|
11473
11606
|
let getSemanticMetrics_imperative;
|
|
11607
|
+
let getSemanticMetricsByIds_imperative;
|
|
11474
11608
|
let getSemanticMetricsToSubMetrics_imperative;
|
|
11475
11609
|
let getSemanticModel_imperative;
|
|
11476
11610
|
let getSemanticModels_imperative;
|
|
@@ -11479,6 +11613,10 @@ let getSemanticSubMetrics_imperative;
|
|
|
11479
11613
|
let getSemanticSubMetricsById_imperative;
|
|
11480
11614
|
const getSemanticMetricMetadata = { apiFamily: 'SemanticAuthoring', name: 'getSemanticMetric' };
|
|
11481
11615
|
const getSemanticMetricsMetadata = { apiFamily: 'SemanticAuthoring', name: 'getSemanticMetrics' };
|
|
11616
|
+
const getSemanticMetricsByIdsMetadata = {
|
|
11617
|
+
apiFamily: 'SemanticAuthoring',
|
|
11618
|
+
name: 'getSemanticMetricsByIds',
|
|
11619
|
+
};
|
|
11482
11620
|
const getSemanticMetricsToSubMetricsMetadata = {
|
|
11483
11621
|
apiFamily: 'SemanticAuthoring',
|
|
11484
11622
|
name: 'getSemanticMetricsToSubMetrics',
|
|
@@ -11502,6 +11640,7 @@ function bindExportsTo(luvio) {
|
|
|
11502
11640
|
// LDS Adapters
|
|
11503
11641
|
const getSemanticMetric_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticMetric', getSemanticMetricAdapterFactory), getSemanticMetricMetadata);
|
|
11504
11642
|
const getSemanticMetrics_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticMetrics', getSemanticMetricsAdapterFactory), getSemanticMetricsMetadata);
|
|
11643
|
+
const getSemanticMetricsByIds_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticMetricsByIds', getSemanticMetricsByIdsAdapterFactory), getSemanticMetricsByIdsMetadata);
|
|
11505
11644
|
const getSemanticMetricsToSubMetrics_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticMetricsToSubMetrics', getSemanticMetricsToSubMetricsAdapterFactory), getSemanticMetricsToSubMetricsMetadata);
|
|
11506
11645
|
const getSemanticModel_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticModel', getSemanticModelAdapterFactory), getSemanticModelMetadata);
|
|
11507
11646
|
const getSemanticModels_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticModels', getSemanticModelsAdapterFactory), getSemanticModelsMetadata);
|
|
@@ -11515,10 +11654,11 @@ function bindExportsTo(luvio) {
|
|
|
11515
11654
|
return {
|
|
11516
11655
|
createSemanticModel: unwrapSnapshotData(createSemanticModelAdapterFactory),
|
|
11517
11656
|
createSemanticSubMetric: unwrapSnapshotData(createSemanticSubMetricAdapterFactory),
|
|
11518
|
-
deleteSemanticSubMetric: createLDSAdapter(luvio, adapterName$
|
|
11657
|
+
deleteSemanticSubMetric: createLDSAdapter(luvio, adapterName$a, deleteSemanticSubMetricAdapterFactory),
|
|
11519
11658
|
getSemanticMetric: createWireAdapterConstructor(luvio, getSemanticMetric_ldsAdapter, getSemanticMetricMetadata),
|
|
11520
11659
|
getSemanticMetricNotifyChange: createLDSAdapter(luvio, 'getSemanticMetricNotifyChange', notifyChangeFactory$2),
|
|
11521
11660
|
getSemanticMetrics: createWireAdapterConstructor(luvio, getSemanticMetrics_ldsAdapter, getSemanticMetricsMetadata),
|
|
11661
|
+
getSemanticMetricsByIds: createWireAdapterConstructor(luvio, getSemanticMetricsByIds_ldsAdapter, getSemanticMetricsByIdsMetadata),
|
|
11522
11662
|
getSemanticMetricsToSubMetrics: createWireAdapterConstructor(luvio, getSemanticMetricsToSubMetrics_ldsAdapter, getSemanticMetricsToSubMetricsMetadata),
|
|
11523
11663
|
getSemanticModel: createWireAdapterConstructor(luvio, getSemanticModel_ldsAdapter, getSemanticModelMetadata),
|
|
11524
11664
|
getSemanticModelNotifyChange: createLDSAdapter(luvio, 'getSemanticModelNotifyChange', notifyChangeFactory$1),
|
|
@@ -11531,6 +11671,7 @@ function bindExportsTo(luvio) {
|
|
|
11531
11671
|
// Imperative GET Adapters
|
|
11532
11672
|
getSemanticMetric_imperative: createImperativeAdapter(luvio, getSemanticMetric_ldsAdapter, getSemanticMetricMetadata),
|
|
11533
11673
|
getSemanticMetrics_imperative: createImperativeAdapter(luvio, getSemanticMetrics_ldsAdapter, getSemanticMetricsMetadata),
|
|
11674
|
+
getSemanticMetricsByIds_imperative: createImperativeAdapter(luvio, getSemanticMetricsByIds_ldsAdapter, getSemanticMetricsByIdsMetadata),
|
|
11534
11675
|
getSemanticMetricsToSubMetrics_imperative: createImperativeAdapter(luvio, getSemanticMetricsToSubMetrics_ldsAdapter, getSemanticMetricsToSubMetricsMetadata),
|
|
11535
11676
|
getSemanticModel_imperative: createImperativeAdapter(luvio, getSemanticModel_ldsAdapter, getSemanticModelMetadata),
|
|
11536
11677
|
getSemanticModels_imperative: createImperativeAdapter(luvio, getSemanticModels_ldsAdapter, getSemanticModelsMetadata),
|
|
@@ -11548,6 +11689,7 @@ withDefaultLuvio((luvio) => {
|
|
|
11548
11689
|
getSemanticMetric,
|
|
11549
11690
|
getSemanticMetricNotifyChange,
|
|
11550
11691
|
getSemanticMetrics,
|
|
11692
|
+
getSemanticMetricsByIds,
|
|
11551
11693
|
getSemanticMetricsToSubMetrics,
|
|
11552
11694
|
getSemanticModel,
|
|
11553
11695
|
getSemanticModelNotifyChange,
|
|
@@ -11559,6 +11701,7 @@ withDefaultLuvio((luvio) => {
|
|
|
11559
11701
|
patchSemanticModel,
|
|
11560
11702
|
getSemanticMetric_imperative,
|
|
11561
11703
|
getSemanticMetrics_imperative,
|
|
11704
|
+
getSemanticMetricsByIds_imperative,
|
|
11562
11705
|
getSemanticMetricsToSubMetrics_imperative,
|
|
11563
11706
|
getSemanticModel_imperative,
|
|
11564
11707
|
getSemanticModels_imperative,
|
|
@@ -11568,5 +11711,5 @@ withDefaultLuvio((luvio) => {
|
|
|
11568
11711
|
} = bindExportsTo(luvio));
|
|
11569
11712
|
});
|
|
11570
11713
|
|
|
11571
|
-
export { createSemanticModel, createSemanticSubMetric, deleteSemanticSubMetric, getSemanticMetric, getSemanticMetricNotifyChange, getSemanticMetric_imperative, getSemanticMetrics, getSemanticMetricsToSubMetrics, getSemanticMetricsToSubMetrics_imperative, getSemanticMetrics_imperative, getSemanticModel, getSemanticModelNotifyChange, getSemanticModel_imperative, getSemanticModels, getSemanticModels_imperative, getSemanticSubMetric, getSemanticSubMetricNotifyChange, getSemanticSubMetric_imperative, getSemanticSubMetrics, getSemanticSubMetricsById, getSemanticSubMetricsById_imperative, getSemanticSubMetrics_imperative, patchSemanticModel };
|
|
11572
|
-
// version: 1.
|
|
11714
|
+
export { createSemanticModel, createSemanticSubMetric, deleteSemanticSubMetric, getSemanticMetric, getSemanticMetricNotifyChange, getSemanticMetric_imperative, getSemanticMetrics, getSemanticMetricsByIds, getSemanticMetricsByIds_imperative, getSemanticMetricsToSubMetrics, getSemanticMetricsToSubMetrics_imperative, getSemanticMetrics_imperative, getSemanticModel, getSemanticModelNotifyChange, getSemanticModel_imperative, getSemanticModels, getSemanticModels_imperative, getSemanticSubMetric, getSemanticSubMetricNotifyChange, getSemanticSubMetric_imperative, getSemanticSubMetrics, getSemanticSubMetricsById, getSemanticSubMetricsById_imperative, getSemanticSubMetrics_imperative, patchSemanticModel };
|
|
11715
|
+
// version: 1.316.0-4453f1e2b6
|