@salesforce/lds-adapters-cdp-semantic-authoring 1.308.0-dev7 → 1.309.0-dev10
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
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$c, typeCheckConfig as typeCheckConfig$c, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8 } 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$E = 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$D = function SemanticFilterOutputRepresentationSelect() {
|
|
1713
1713
|
return {
|
|
1714
1714
|
kind: 'Fragment',
|
|
1715
1715
|
version: VERSION$s,
|
|
@@ -1933,8 +1933,8 @@ function keyBuilderFromType$b(luvio, object) {
|
|
|
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$C = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
1937
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$D();
|
|
1938
1938
|
return {
|
|
1939
1939
|
kind: 'Fragment',
|
|
1940
1940
|
version: VERSION$r,
|
|
@@ -2473,8 +2473,8 @@ function keyBuilderFromType$a(luvio, object) {
|
|
|
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$B = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
2477
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$D();
|
|
2478
2478
|
return {
|
|
2479
2479
|
kind: 'Fragment',
|
|
2480
2480
|
version: VERSION$q,
|
|
@@ -3342,7 +3342,7 @@ function keyBuilderFromType$9(luvio, object) {
|
|
|
3342
3342
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
3343
3343
|
return input;
|
|
3344
3344
|
}
|
|
3345
|
-
const select$
|
|
3345
|
+
const select$A = 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$z = 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$y = 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$x = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
3521
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$y();
|
|
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$w = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
3607
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$z();
|
|
3608
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$x();
|
|
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$v = 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$u = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
3758
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$v();
|
|
3759
3759
|
return {
|
|
3760
3760
|
kind: 'Fragment',
|
|
3761
3761
|
version: VERSION$j,
|
|
@@ -3903,9 +3903,9 @@ function keyBuilderFromType$8(luvio, object) {
|
|
|
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$t = function SemanticGroupingOutputRepresentationSelect() {
|
|
3907
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$w();
|
|
3908
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$u();
|
|
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$s = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
4142
4142
|
return {
|
|
4143
4143
|
kind: 'Fragment',
|
|
4144
4144
|
version: VERSION$h,
|
|
@@ -4377,8 +4377,8 @@ function keyBuilderFromType$7(luvio, object) {
|
|
|
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$r = function SemanticRelationshipOutputRepresentationSelect() {
|
|
4381
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$s();
|
|
4382
4382
|
return {
|
|
4383
4383
|
kind: 'Fragment',
|
|
4384
4384
|
version: VERSION$g,
|
|
@@ -4792,7 +4792,7 @@ function keyBuilderFromType$6(luvio, object) {
|
|
|
4792
4792
|
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
4793
4793
|
return input;
|
|
4794
4794
|
}
|
|
4795
|
-
const select$
|
|
4795
|
+
const select$q = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
4796
4796
|
return {
|
|
4797
4797
|
kind: 'Fragment',
|
|
4798
4798
|
version: VERSION$f,
|
|
@@ -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$p = function SemanticUnionOutputRepresentationSelect() {
|
|
5001
5001
|
return {
|
|
5002
5002
|
kind: 'Fragment',
|
|
5003
5003
|
version: VERSION$e,
|
|
@@ -5054,14 +5054,14 @@ const select$o = function SemanticUnionOutputRepresentationSelect() {
|
|
|
5054
5054
|
kind: 'Link',
|
|
5055
5055
|
plural: true,
|
|
5056
5056
|
required: false,
|
|
5057
|
-
fragment: select$
|
|
5057
|
+
fragment: select$A()
|
|
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$q()
|
|
5065
5065
|
}
|
|
5066
5066
|
]
|
|
5067
5067
|
};
|
|
@@ -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$o = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
5438
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$D();
|
|
5439
5439
|
return {
|
|
5440
5440
|
kind: 'Fragment',
|
|
5441
5441
|
version: VERSION$d,
|
|
@@ -5499,21 +5499,21 @@ const select$n = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
5499
5499
|
kind: 'Link',
|
|
5500
5500
|
plural: true,
|
|
5501
5501
|
required: false,
|
|
5502
|
-
fragment: select$
|
|
5502
|
+
fragment: select$A()
|
|
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$r()
|
|
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$p()
|
|
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$n = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
5764
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$u();
|
|
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$m = 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$l = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
5962
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$n();
|
|
5963
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$m();
|
|
5964
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$u();
|
|
5965
5965
|
return {
|
|
5966
5966
|
kind: 'Fragment',
|
|
5967
5967
|
version: VERSION$a,
|
|
@@ -6273,10 +6273,10 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
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$k = function SemanticMetricOutputRepresentationSelect() {
|
|
6277
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$u();
|
|
6278
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$D();
|
|
6279
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$l();
|
|
6280
6280
|
return {
|
|
6281
6281
|
kind: 'Fragment',
|
|
6282
6282
|
version: VERSION$9,
|
|
@@ -6754,7 +6754,7 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
6754
6754
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
6755
6755
|
return input;
|
|
6756
6756
|
}
|
|
6757
|
-
const select$
|
|
6757
|
+
const select$j = function SemanticParameterOutputRepresentationSelect() {
|
|
6758
6758
|
return {
|
|
6759
6759
|
kind: 'Fragment',
|
|
6760
6760
|
version: VERSION$8,
|
|
@@ -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$i = function SemanticModelOutputRepresentationSelect() {
|
|
7510
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$E();
|
|
7511
7511
|
return {
|
|
7512
7512
|
kind: 'Fragment',
|
|
7513
7513
|
version: VERSION$7,
|
|
@@ -7586,7 +7586,7 @@ const select$h = function SemanticModelOutputRepresentationSelect() {
|
|
|
7586
7586
|
kind: 'Link',
|
|
7587
7587
|
plural: true,
|
|
7588
7588
|
required: false,
|
|
7589
|
-
fragment: select$
|
|
7589
|
+
fragment: select$C()
|
|
7590
7590
|
},
|
|
7591
7591
|
{
|
|
7592
7592
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -7598,7 +7598,7 @@ const select$h = function SemanticModelOutputRepresentationSelect() {
|
|
|
7598
7598
|
kind: 'Link',
|
|
7599
7599
|
plural: true,
|
|
7600
7600
|
required: false,
|
|
7601
|
-
fragment: select$
|
|
7601
|
+
fragment: select$B()
|
|
7602
7602
|
},
|
|
7603
7603
|
{
|
|
7604
7604
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -7610,7 +7610,7 @@ const select$h = function SemanticModelOutputRepresentationSelect() {
|
|
|
7610
7610
|
kind: 'Link',
|
|
7611
7611
|
plural: true,
|
|
7612
7612
|
required: false,
|
|
7613
|
-
fragment: select$
|
|
7613
|
+
fragment: select$A()
|
|
7614
7614
|
},
|
|
7615
7615
|
{
|
|
7616
7616
|
name: 'semanticDataObjectsUrl',
|
|
@@ -7622,7 +7622,7 @@ const select$h = function SemanticModelOutputRepresentationSelect() {
|
|
|
7622
7622
|
kind: 'Link',
|
|
7623
7623
|
plural: true,
|
|
7624
7624
|
required: false,
|
|
7625
|
-
fragment: select$
|
|
7625
|
+
fragment: select$t()
|
|
7626
7626
|
},
|
|
7627
7627
|
{
|
|
7628
7628
|
name: 'semanticGroupingsUrl',
|
|
@@ -7634,21 +7634,21 @@ const select$h = function SemanticModelOutputRepresentationSelect() {
|
|
|
7634
7634
|
kind: 'Link',
|
|
7635
7635
|
plural: true,
|
|
7636
7636
|
required: false,
|
|
7637
|
-
fragment: select$
|
|
7637
|
+
fragment: select$o()
|
|
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$k()
|
|
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$j()
|
|
7652
7652
|
},
|
|
7653
7653
|
{
|
|
7654
7654
|
name: 'semanticParametersUrl',
|
|
@@ -7660,7 +7660,7 @@ const select$h = function SemanticModelOutputRepresentationSelect() {
|
|
|
7660
7660
|
kind: 'Link',
|
|
7661
7661
|
plural: true,
|
|
7662
7662
|
required: false,
|
|
7663
|
-
fragment: select$
|
|
7663
|
+
fragment: select$r()
|
|
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$h(luvio, params) {
|
|
8157
|
+
return select$i();
|
|
8158
8158
|
}
|
|
8159
|
-
function getResponseCacheKeys$
|
|
8159
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
8160
8160
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
8161
8161
|
}
|
|
8162
|
-
function ingestSuccess$
|
|
8162
|
+
function ingestSuccess$a(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$h(),
|
|
8169
8169
|
variables: {},
|
|
8170
8170
|
});
|
|
8171
8171
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8176,7 +8176,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
8176
8176
|
deepFreeze(snapshot.data);
|
|
8177
8177
|
return snapshot;
|
|
8178
8178
|
}
|
|
8179
|
-
function createResourceRequest$
|
|
8179
|
+
function createResourceRequest$b(config) {
|
|
8180
8180
|
const headers = {};
|
|
8181
8181
|
return {
|
|
8182
8182
|
baseUri: '/services/data/v62.0',
|
|
@@ -8190,7 +8190,7 @@ function createResourceRequest$a(config) {
|
|
|
8190
8190
|
};
|
|
8191
8191
|
}
|
|
8192
8192
|
|
|
8193
|
-
const adapterName$
|
|
8193
|
+
const adapterName$b = '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$b, createSemanticModel_ConfigPropertyMetadata);
|
|
8215
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(createSemanticModel_ConfigPropertyMetadata);
|
|
8216
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
8217
8217
|
const config = {};
|
|
8218
|
-
typeCheckConfig$
|
|
8218
|
+
typeCheckConfig$c(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$a(untrustedConfig) {
|
|
|
8326
8326
|
}
|
|
8327
8327
|
return config;
|
|
8328
8328
|
}
|
|
8329
|
-
function validateAdapterConfig$
|
|
8329
|
+
function validateAdapterConfig$b(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$b(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$b(luvio, config, options) {
|
|
8343
|
+
const resourceParams = createResourceParams$b(config);
|
|
8344
|
+
const request = createResourceRequest$b(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$a(luvio, resourceParams, response);
|
|
8349
8349
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8350
8350
|
}, () => {
|
|
8351
8351
|
const cache = new StoreKeyMap();
|
|
8352
|
-
getResponseCacheKeys$
|
|
8352
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
8353
8353
|
return cache;
|
|
8354
8354
|
});
|
|
8355
8355
|
}, (response) => {
|
|
@@ -8359,12 +8359,12 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
8359
8359
|
}
|
|
8360
8360
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
8361
8361
|
return function createSemanticModel(untrustedConfig) {
|
|
8362
|
-
const config = validateAdapterConfig$
|
|
8362
|
+
const config = validateAdapterConfig$b(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$b(luvio, config);
|
|
8368
8368
|
};
|
|
8369
8369
|
};
|
|
8370
8370
|
|
|
@@ -8556,7 +8556,7 @@ function keyBuilderFromType(luvio, object) {
|
|
|
8556
8556
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
8557
8557
|
return input;
|
|
8558
8558
|
}
|
|
8559
|
-
const select$
|
|
8559
|
+
const select$g = function SemanticSubMetricOutputRepresentationSelect() {
|
|
8560
8560
|
return {
|
|
8561
8561
|
kind: 'Fragment',
|
|
8562
8562
|
version: VERSION$6,
|
|
@@ -8592,19 +8592,19 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8592
8592
|
});
|
|
8593
8593
|
}
|
|
8594
8594
|
|
|
8595
|
-
function select$
|
|
8596
|
-
return select$
|
|
8595
|
+
function select$f(luvio, params) {
|
|
8596
|
+
return select$g();
|
|
8597
8597
|
}
|
|
8598
|
-
function getResponseCacheKeys$
|
|
8598
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
8599
8599
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
8600
8600
|
}
|
|
8601
|
-
function ingestSuccess$
|
|
8601
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
8602
8602
|
const { body } = response;
|
|
8603
8603
|
const key = keyBuilderFromType(luvio, body);
|
|
8604
8604
|
luvio.storeIngest(key, ingest$5, body);
|
|
8605
8605
|
const snapshot = luvio.storeLookup({
|
|
8606
8606
|
recordId: key,
|
|
8607
|
-
node: select$
|
|
8607
|
+
node: select$f(),
|
|
8608
8608
|
variables: {},
|
|
8609
8609
|
});
|
|
8610
8610
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8615,7 +8615,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
8615
8615
|
deepFreeze(snapshot.data);
|
|
8616
8616
|
return snapshot;
|
|
8617
8617
|
}
|
|
8618
|
-
function createResourceRequest$
|
|
8618
|
+
function createResourceRequest$a(config) {
|
|
8619
8619
|
const headers = {};
|
|
8620
8620
|
return {
|
|
8621
8621
|
baseUri: '/services/data/v62.0',
|
|
@@ -8629,7 +8629,7 @@ function createResourceRequest$9(config) {
|
|
|
8629
8629
|
};
|
|
8630
8630
|
}
|
|
8631
8631
|
|
|
8632
|
-
const adapterName$
|
|
8632
|
+
const adapterName$a = 'createSemanticSubMetric';
|
|
8633
8633
|
const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
8634
8634
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8635
8635
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -8640,11 +8640,11 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
8640
8640
|
generateParamConfigMetadata('semanticMetricDefinitionApiName', false, 2 /* Body */, 0 /* String */),
|
|
8641
8641
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
8642
8642
|
];
|
|
8643
|
-
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8644
|
-
const createResourceParams$
|
|
8645
|
-
function typeCheckConfig$
|
|
8643
|
+
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
8644
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
8645
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
8646
8646
|
const config = {};
|
|
8647
|
-
typeCheckConfig$
|
|
8647
|
+
typeCheckConfig$c(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
8648
8648
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
8649
8649
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
8650
8650
|
const untrustedConfig_filters_array = [];
|
|
@@ -8664,30 +8664,30 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
8664
8664
|
}
|
|
8665
8665
|
return config;
|
|
8666
8666
|
}
|
|
8667
|
-
function validateAdapterConfig$
|
|
8667
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
8668
8668
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
8669
8669
|
return null;
|
|
8670
8670
|
}
|
|
8671
8671
|
if (process.env.NODE_ENV !== 'production') {
|
|
8672
8672
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
8673
8673
|
}
|
|
8674
|
-
const config = typeCheckConfig$
|
|
8674
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
8675
8675
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8676
8676
|
return null;
|
|
8677
8677
|
}
|
|
8678
8678
|
return config;
|
|
8679
8679
|
}
|
|
8680
|
-
function buildNetworkSnapshot$
|
|
8681
|
-
const resourceParams = createResourceParams$
|
|
8682
|
-
const request = createResourceRequest$
|
|
8680
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
8681
|
+
const resourceParams = createResourceParams$a(config);
|
|
8682
|
+
const request = createResourceRequest$a(resourceParams);
|
|
8683
8683
|
return luvio.dispatchResourceRequest(request, options)
|
|
8684
8684
|
.then((response) => {
|
|
8685
8685
|
return luvio.handleSuccessResponse(() => {
|
|
8686
|
-
const snapshot = ingestSuccess$
|
|
8686
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
8687
8687
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8688
8688
|
}, () => {
|
|
8689
8689
|
const cache = new StoreKeyMap();
|
|
8690
|
-
getResponseCacheKeys$
|
|
8690
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
8691
8691
|
return cache;
|
|
8692
8692
|
});
|
|
8693
8693
|
}, (response) => {
|
|
@@ -8697,12 +8697,12 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
8697
8697
|
}
|
|
8698
8698
|
const createSemanticSubMetricAdapterFactory = (luvio) => {
|
|
8699
8699
|
return function createSemanticSubMetric(untrustedConfig) {
|
|
8700
|
-
const config = validateAdapterConfig$
|
|
8700
|
+
const config = validateAdapterConfig$a(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
|
|
8701
8701
|
// Invalid or incomplete config
|
|
8702
8702
|
if (config === null) {
|
|
8703
8703
|
throw new Error('Invalid config for "createSemanticSubMetric"');
|
|
8704
8704
|
}
|
|
8705
|
-
return buildNetworkSnapshot$
|
|
8705
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
8706
8706
|
};
|
|
8707
8707
|
};
|
|
8708
8708
|
|
|
@@ -8711,7 +8711,7 @@ function keyBuilder$g(luvio, params) {
|
|
|
8711
8711
|
name: params.urlParams.subMetricNameOrId
|
|
8712
8712
|
});
|
|
8713
8713
|
}
|
|
8714
|
-
function getResponseCacheKeys$
|
|
8714
|
+
function getResponseCacheKeys$9(cacheKeyMap, luvio, resourceParams) {
|
|
8715
8715
|
const key = keyBuilder$g(luvio, resourceParams);
|
|
8716
8716
|
cacheKeyMap.set(key, {
|
|
8717
8717
|
namespace: keyPrefix,
|
|
@@ -8723,7 +8723,7 @@ function evictSuccess(luvio, resourceParams) {
|
|
|
8723
8723
|
const key = keyBuilder$g(luvio, resourceParams);
|
|
8724
8724
|
luvio.storeEvict(key);
|
|
8725
8725
|
}
|
|
8726
|
-
function createResourceRequest$
|
|
8726
|
+
function createResourceRequest$9(config) {
|
|
8727
8727
|
const headers = {};
|
|
8728
8728
|
return {
|
|
8729
8729
|
baseUri: '/services/data/v62.0',
|
|
@@ -8737,34 +8737,34 @@ function createResourceRequest$8(config) {
|
|
|
8737
8737
|
};
|
|
8738
8738
|
}
|
|
8739
8739
|
|
|
8740
|
-
const adapterName$
|
|
8740
|
+
const adapterName$9 = 'deleteSemanticSubMetric';
|
|
8741
8741
|
const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
8742
8742
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8743
8743
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8744
8744
|
];
|
|
8745
|
-
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8746
|
-
const createResourceParams$
|
|
8747
|
-
function typeCheckConfig$
|
|
8745
|
+
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
8746
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
8747
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
8748
8748
|
const config = {};
|
|
8749
|
-
typeCheckConfig$
|
|
8749
|
+
typeCheckConfig$c(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
8750
8750
|
return config;
|
|
8751
8751
|
}
|
|
8752
|
-
function validateAdapterConfig$
|
|
8752
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
8753
8753
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
8754
8754
|
return null;
|
|
8755
8755
|
}
|
|
8756
8756
|
if (process.env.NODE_ENV !== 'production') {
|
|
8757
8757
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
8758
8758
|
}
|
|
8759
|
-
const config = typeCheckConfig$
|
|
8759
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
8760
8760
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8761
8761
|
return null;
|
|
8762
8762
|
}
|
|
8763
8763
|
return config;
|
|
8764
8764
|
}
|
|
8765
|
-
function buildNetworkSnapshot$
|
|
8766
|
-
const resourceParams = createResourceParams$
|
|
8767
|
-
const request = createResourceRequest$
|
|
8765
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
8766
|
+
const resourceParams = createResourceParams$9(config);
|
|
8767
|
+
const request = createResourceRequest$9(resourceParams);
|
|
8768
8768
|
return luvio.dispatchResourceRequest(request, options)
|
|
8769
8769
|
.then(() => {
|
|
8770
8770
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -8772,7 +8772,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
8772
8772
|
return luvio.storeBroadcast();
|
|
8773
8773
|
}, () => {
|
|
8774
8774
|
const cache = new StoreKeyMap();
|
|
8775
|
-
getResponseCacheKeys$
|
|
8775
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams);
|
|
8776
8776
|
return cache;
|
|
8777
8777
|
});
|
|
8778
8778
|
}, (response) => {
|
|
@@ -8782,33 +8782,33 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
8782
8782
|
}
|
|
8783
8783
|
const deleteSemanticSubMetricAdapterFactory = (luvio) => {
|
|
8784
8784
|
return function SemanticAuthoringdeleteSemanticSubMetric(untrustedConfig) {
|
|
8785
|
-
const config = validateAdapterConfig$
|
|
8785
|
+
const config = validateAdapterConfig$9(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
|
|
8786
8786
|
// Invalid or incomplete config
|
|
8787
8787
|
if (config === null) {
|
|
8788
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
8788
|
+
throw new Error(`Invalid config for "${adapterName$9}"`);
|
|
8789
8789
|
}
|
|
8790
|
-
return buildNetworkSnapshot$
|
|
8790
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
8791
8791
|
};
|
|
8792
8792
|
};
|
|
8793
8793
|
|
|
8794
|
-
function select$
|
|
8795
|
-
return select$
|
|
8794
|
+
function select$e(luvio, params) {
|
|
8795
|
+
return select$k();
|
|
8796
8796
|
}
|
|
8797
8797
|
function keyBuilder$f(luvio, params) {
|
|
8798
8798
|
return keyBuilder$k(luvio, {
|
|
8799
8799
|
name: params.urlParams.metricNameOrId
|
|
8800
8800
|
});
|
|
8801
8801
|
}
|
|
8802
|
-
function getResponseCacheKeys$
|
|
8802
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
8803
8803
|
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
8804
8804
|
}
|
|
8805
|
-
function ingestSuccess$
|
|
8805
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
8806
8806
|
const { body } = response;
|
|
8807
8807
|
const key = keyBuilder$f(luvio, resourceParams);
|
|
8808
8808
|
luvio.storeIngest(key, ingest$8, body);
|
|
8809
8809
|
const snapshot = luvio.storeLookup({
|
|
8810
8810
|
recordId: key,
|
|
8811
|
-
node: select$
|
|
8811
|
+
node: select$e(),
|
|
8812
8812
|
variables: {},
|
|
8813
8813
|
}, snapshotRefresh);
|
|
8814
8814
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8825,7 +8825,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
8825
8825
|
luvio.storeIngestError(key, errorSnapshot);
|
|
8826
8826
|
return errorSnapshot;
|
|
8827
8827
|
}
|
|
8828
|
-
function createResourceRequest$
|
|
8828
|
+
function createResourceRequest$8(config) {
|
|
8829
8829
|
const headers = {};
|
|
8830
8830
|
return {
|
|
8831
8831
|
baseUri: '/services/data/v62.0',
|
|
@@ -8843,64 +8843,64 @@ function createResourceRequestFromRepresentation$2(representation) {
|
|
|
8843
8843
|
urlParams: {},
|
|
8844
8844
|
};
|
|
8845
8845
|
config.urlParams.metricNameOrId = representation.id;
|
|
8846
|
-
return createResourceRequest$
|
|
8846
|
+
return createResourceRequest$8(config);
|
|
8847
8847
|
}
|
|
8848
8848
|
|
|
8849
|
-
const adapterName$
|
|
8849
|
+
const adapterName$8 = 'getSemanticMetric';
|
|
8850
8850
|
const getSemanticMetric_ConfigPropertyMetadata = [
|
|
8851
8851
|
generateParamConfigMetadata('metricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8852
8852
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8853
8853
|
];
|
|
8854
|
-
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8855
|
-
const createResourceParams$
|
|
8854
|
+
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetric_ConfigPropertyMetadata);
|
|
8855
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(getSemanticMetric_ConfigPropertyMetadata);
|
|
8856
8856
|
function keyBuilder$e(luvio, config) {
|
|
8857
|
-
const resourceParams = createResourceParams$
|
|
8857
|
+
const resourceParams = createResourceParams$8(config);
|
|
8858
8858
|
return keyBuilder$f(luvio, resourceParams);
|
|
8859
8859
|
}
|
|
8860
|
-
function typeCheckConfig$
|
|
8860
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
8861
8861
|
const config = {};
|
|
8862
|
-
typeCheckConfig$
|
|
8862
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
8863
8863
|
return config;
|
|
8864
8864
|
}
|
|
8865
|
-
function validateAdapterConfig$
|
|
8865
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
8866
8866
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
8867
8867
|
return null;
|
|
8868
8868
|
}
|
|
8869
8869
|
if (process.env.NODE_ENV !== 'production') {
|
|
8870
8870
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
8871
8871
|
}
|
|
8872
|
-
const config = typeCheckConfig$
|
|
8872
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
8873
8873
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8874
8874
|
return null;
|
|
8875
8875
|
}
|
|
8876
8876
|
return config;
|
|
8877
8877
|
}
|
|
8878
8878
|
function adapterFragment$7(luvio, config) {
|
|
8879
|
-
createResourceParams$
|
|
8880
|
-
return select$
|
|
8879
|
+
createResourceParams$8(config);
|
|
8880
|
+
return select$e();
|
|
8881
8881
|
}
|
|
8882
8882
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
8883
|
-
const snapshot = ingestSuccess$
|
|
8883
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
8884
8884
|
config,
|
|
8885
|
-
resolve: () => buildNetworkSnapshot$
|
|
8885
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
8886
8886
|
});
|
|
8887
8887
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8888
8888
|
}
|
|
8889
8889
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
8890
8890
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
8891
8891
|
config,
|
|
8892
|
-
resolve: () => buildNetworkSnapshot$
|
|
8892
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
8893
8893
|
});
|
|
8894
8894
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8895
8895
|
}
|
|
8896
|
-
function buildNetworkSnapshot$
|
|
8897
|
-
const resourceParams = createResourceParams$
|
|
8898
|
-
const request = createResourceRequest$
|
|
8896
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
8897
|
+
const resourceParams = createResourceParams$8(config);
|
|
8898
|
+
const request = createResourceRequest$8(resourceParams);
|
|
8899
8899
|
return luvio.dispatchResourceRequest(request, options)
|
|
8900
8900
|
.then((response) => {
|
|
8901
8901
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
8902
8902
|
const cache = new StoreKeyMap();
|
|
8903
|
-
getResponseCacheKeys$
|
|
8903
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
8904
8904
|
return cache;
|
|
8905
8905
|
});
|
|
8906
8906
|
}, (response) => {
|
|
@@ -8908,7 +8908,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
8908
8908
|
});
|
|
8909
8909
|
}
|
|
8910
8910
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
8911
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
8911
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
8912
8912
|
}
|
|
8913
8913
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
8914
8914
|
const { luvio, config } = context;
|
|
@@ -8919,12 +8919,12 @@ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
|
8919
8919
|
};
|
|
8920
8920
|
const cacheSnapshot = storeLookup(selector, {
|
|
8921
8921
|
config,
|
|
8922
|
-
resolve: () => buildNetworkSnapshot$
|
|
8922
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
8923
8923
|
});
|
|
8924
8924
|
return cacheSnapshot;
|
|
8925
8925
|
}
|
|
8926
8926
|
const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetric(untrustedConfig, requestContext) {
|
|
8927
|
-
const config = validateAdapterConfig$
|
|
8927
|
+
const config = validateAdapterConfig$8(untrustedConfig, getSemanticMetric_ConfigPropertyNames);
|
|
8928
8928
|
// Invalid or incomplete config
|
|
8929
8929
|
if (config === null) {
|
|
8930
8930
|
return null;
|
|
@@ -9007,7 +9007,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9007
9007
|
}
|
|
9008
9008
|
return input;
|
|
9009
9009
|
}
|
|
9010
|
-
const select$
|
|
9010
|
+
const select$d = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
9011
9011
|
return {
|
|
9012
9012
|
kind: 'Fragment',
|
|
9013
9013
|
version: VERSION$5,
|
|
@@ -9018,7 +9018,7 @@ const select$c = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
9018
9018
|
kind: 'Link',
|
|
9019
9019
|
plural: true,
|
|
9020
9020
|
required: false,
|
|
9021
|
-
fragment: select$
|
|
9021
|
+
fragment: select$k()
|
|
9022
9022
|
}
|
|
9023
9023
|
]
|
|
9024
9024
|
};
|
|
@@ -9072,22 +9072,22 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9072
9072
|
}
|
|
9073
9073
|
}
|
|
9074
9074
|
|
|
9075
|
-
function select$
|
|
9076
|
-
return select$
|
|
9075
|
+
function select$c(luvio, params) {
|
|
9076
|
+
return select$d();
|
|
9077
9077
|
}
|
|
9078
9078
|
function keyBuilder$d(luvio, params) {
|
|
9079
9079
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
9080
9080
|
}
|
|
9081
|
-
function getResponseCacheKeys$
|
|
9081
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
9082
9082
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
9083
9083
|
}
|
|
9084
|
-
function ingestSuccess$
|
|
9084
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
9085
9085
|
const { body } = response;
|
|
9086
9086
|
const key = keyBuilder$d(luvio, resourceParams);
|
|
9087
9087
|
luvio.storeIngest(key, ingest$4, body);
|
|
9088
9088
|
const snapshot = luvio.storeLookup({
|
|
9089
9089
|
recordId: key,
|
|
9090
|
-
node: select$
|
|
9090
|
+
node: select$c(),
|
|
9091
9091
|
variables: {},
|
|
9092
9092
|
}, snapshotRefresh);
|
|
9093
9093
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9104,7 +9104,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
9104
9104
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9105
9105
|
return errorSnapshot;
|
|
9106
9106
|
}
|
|
9107
|
-
function createResourceRequest$
|
|
9107
|
+
function createResourceRequest$7(config) {
|
|
9108
9108
|
const headers = {};
|
|
9109
9109
|
return {
|
|
9110
9110
|
baseUri: '/services/data/v62.0',
|
|
@@ -9118,60 +9118,60 @@ function createResourceRequest$6(config) {
|
|
|
9118
9118
|
};
|
|
9119
9119
|
}
|
|
9120
9120
|
|
|
9121
|
-
const adapterName$
|
|
9121
|
+
const adapterName$7 = 'getSemanticMetrics';
|
|
9122
9122
|
const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
9123
9123
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9124
9124
|
];
|
|
9125
|
-
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9126
|
-
const createResourceParams$
|
|
9125
|
+
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9126
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(getSemanticMetrics_ConfigPropertyMetadata);
|
|
9127
9127
|
function keyBuilder$c(luvio, config) {
|
|
9128
|
-
const resourceParams = createResourceParams$
|
|
9128
|
+
const resourceParams = createResourceParams$7(config);
|
|
9129
9129
|
return keyBuilder$d(luvio, resourceParams);
|
|
9130
9130
|
}
|
|
9131
|
-
function typeCheckConfig$
|
|
9131
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
9132
9132
|
const config = {};
|
|
9133
|
-
typeCheckConfig$
|
|
9133
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9134
9134
|
return config;
|
|
9135
9135
|
}
|
|
9136
|
-
function validateAdapterConfig$
|
|
9136
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
9137
9137
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9138
9138
|
return null;
|
|
9139
9139
|
}
|
|
9140
9140
|
if (process.env.NODE_ENV !== 'production') {
|
|
9141
9141
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9142
9142
|
}
|
|
9143
|
-
const config = typeCheckConfig$
|
|
9143
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
9144
9144
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9145
9145
|
return null;
|
|
9146
9146
|
}
|
|
9147
9147
|
return config;
|
|
9148
9148
|
}
|
|
9149
9149
|
function adapterFragment$6(luvio, config) {
|
|
9150
|
-
createResourceParams$
|
|
9151
|
-
return select$
|
|
9150
|
+
createResourceParams$7(config);
|
|
9151
|
+
return select$c();
|
|
9152
9152
|
}
|
|
9153
9153
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
9154
|
-
const snapshot = ingestSuccess$
|
|
9154
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
9155
9155
|
config,
|
|
9156
|
-
resolve: () => buildNetworkSnapshot$
|
|
9156
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
9157
9157
|
});
|
|
9158
9158
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9159
9159
|
}
|
|
9160
9160
|
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
9161
9161
|
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
9162
9162
|
config,
|
|
9163
|
-
resolve: () => buildNetworkSnapshot$
|
|
9163
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
9164
9164
|
});
|
|
9165
9165
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9166
9166
|
}
|
|
9167
|
-
function buildNetworkSnapshot$
|
|
9168
|
-
const resourceParams = createResourceParams$
|
|
9169
|
-
const request = createResourceRequest$
|
|
9167
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
9168
|
+
const resourceParams = createResourceParams$7(config);
|
|
9169
|
+
const request = createResourceRequest$7(resourceParams);
|
|
9170
9170
|
return luvio.dispatchResourceRequest(request, options)
|
|
9171
9171
|
.then((response) => {
|
|
9172
9172
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
9173
9173
|
const cache = new StoreKeyMap();
|
|
9174
|
-
getResponseCacheKeys$
|
|
9174
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
9175
9175
|
return cache;
|
|
9176
9176
|
});
|
|
9177
9177
|
}, (response) => {
|
|
@@ -9179,7 +9179,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
9179
9179
|
});
|
|
9180
9180
|
}
|
|
9181
9181
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
9182
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
9182
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
9183
9183
|
}
|
|
9184
9184
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
9185
9185
|
const { luvio, config } = context;
|
|
@@ -9190,12 +9190,12 @@ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
|
9190
9190
|
};
|
|
9191
9191
|
const cacheSnapshot = storeLookup(selector, {
|
|
9192
9192
|
config,
|
|
9193
|
-
resolve: () => buildNetworkSnapshot$
|
|
9193
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
9194
9194
|
});
|
|
9195
9195
|
return cacheSnapshot;
|
|
9196
9196
|
}
|
|
9197
9197
|
const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
|
|
9198
|
-
const config = validateAdapterConfig$
|
|
9198
|
+
const config = validateAdapterConfig$7(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
|
|
9199
9199
|
// Invalid or incomplete config
|
|
9200
9200
|
if (config === null) {
|
|
9201
9201
|
return null;
|
|
@@ -9256,7 +9256,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
9256
9256
|
}
|
|
9257
9257
|
return input;
|
|
9258
9258
|
}
|
|
9259
|
-
const select$
|
|
9259
|
+
const select$b = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
|
|
9260
9260
|
return {
|
|
9261
9261
|
kind: 'Fragment',
|
|
9262
9262
|
version: VERSION$4,
|
|
@@ -9272,7 +9272,7 @@ const select$a = function SemanticSubMetricsByMetricOutputRepresentationSelect()
|
|
|
9272
9272
|
kind: 'Link',
|
|
9273
9273
|
plural: true,
|
|
9274
9274
|
required: false,
|
|
9275
|
-
fragment: select$
|
|
9275
|
+
fragment: select$g()
|
|
9276
9276
|
}
|
|
9277
9277
|
]
|
|
9278
9278
|
};
|
|
@@ -9384,7 +9384,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
9384
9384
|
}
|
|
9385
9385
|
return input;
|
|
9386
9386
|
}
|
|
9387
|
-
const select$
|
|
9387
|
+
const select$a = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
|
|
9388
9388
|
return {
|
|
9389
9389
|
kind: 'Fragment',
|
|
9390
9390
|
version: VERSION$3,
|
|
@@ -9395,7 +9395,7 @@ const select$9 = function SemanticSubMetricsByMetricCollectionOutputRepresentati
|
|
|
9395
9395
|
kind: 'Link',
|
|
9396
9396
|
plural: true,
|
|
9397
9397
|
required: false,
|
|
9398
|
-
fragment: select$
|
|
9398
|
+
fragment: select$b()
|
|
9399
9399
|
}
|
|
9400
9400
|
]
|
|
9401
9401
|
};
|
|
@@ -9449,22 +9449,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9449
9449
|
}
|
|
9450
9450
|
}
|
|
9451
9451
|
|
|
9452
|
-
function select$
|
|
9453
|
-
return select$
|
|
9452
|
+
function select$9(luvio, params) {
|
|
9453
|
+
return select$a();
|
|
9454
9454
|
}
|
|
9455
9455
|
function keyBuilder$b(luvio, params) {
|
|
9456
9456
|
return keyPrefix + '::SemanticSubMetricsByMetricCollectionOutputRepresentation:(' + 'metricApiNames:' + params.urlParams.metricApiNames + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
9457
9457
|
}
|
|
9458
|
-
function getResponseCacheKeys$
|
|
9458
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
9459
9459
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
9460
9460
|
}
|
|
9461
|
-
function ingestSuccess$
|
|
9461
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
9462
9462
|
const { body } = response;
|
|
9463
9463
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
9464
9464
|
luvio.storeIngest(key, ingest$2, body);
|
|
9465
9465
|
const snapshot = luvio.storeLookup({
|
|
9466
9466
|
recordId: key,
|
|
9467
|
-
node: select$
|
|
9467
|
+
node: select$9(),
|
|
9468
9468
|
variables: {},
|
|
9469
9469
|
}, snapshotRefresh);
|
|
9470
9470
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9481,7 +9481,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
9481
9481
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9482
9482
|
return errorSnapshot;
|
|
9483
9483
|
}
|
|
9484
|
-
function createResourceRequest$
|
|
9484
|
+
function createResourceRequest$6(config) {
|
|
9485
9485
|
const headers = {};
|
|
9486
9486
|
return {
|
|
9487
9487
|
baseUri: '/services/data/v62.0',
|
|
@@ -9495,61 +9495,61 @@ function createResourceRequest$5(config) {
|
|
|
9495
9495
|
};
|
|
9496
9496
|
}
|
|
9497
9497
|
|
|
9498
|
-
const adapterName$
|
|
9498
|
+
const adapterName$6 = 'getSemanticMetricsToSubMetrics';
|
|
9499
9499
|
const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
9500
9500
|
generateParamConfigMetadata('metricApiNames', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9501
9501
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9502
9502
|
];
|
|
9503
|
-
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9504
|
-
const createResourceParams$
|
|
9503
|
+
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9504
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9505
9505
|
function keyBuilder$a(luvio, config) {
|
|
9506
|
-
const resourceParams = createResourceParams$
|
|
9506
|
+
const resourceParams = createResourceParams$6(config);
|
|
9507
9507
|
return keyBuilder$b(luvio, resourceParams);
|
|
9508
9508
|
}
|
|
9509
|
-
function typeCheckConfig$
|
|
9509
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
9510
9510
|
const config = {};
|
|
9511
|
-
typeCheckConfig$
|
|
9511
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9512
9512
|
return config;
|
|
9513
9513
|
}
|
|
9514
|
-
function validateAdapterConfig$
|
|
9514
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
9515
9515
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9516
9516
|
return null;
|
|
9517
9517
|
}
|
|
9518
9518
|
if (process.env.NODE_ENV !== 'production') {
|
|
9519
9519
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9520
9520
|
}
|
|
9521
|
-
const config = typeCheckConfig$
|
|
9521
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
9522
9522
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9523
9523
|
return null;
|
|
9524
9524
|
}
|
|
9525
9525
|
return config;
|
|
9526
9526
|
}
|
|
9527
9527
|
function adapterFragment$5(luvio, config) {
|
|
9528
|
-
createResourceParams$
|
|
9529
|
-
return select$
|
|
9528
|
+
createResourceParams$6(config);
|
|
9529
|
+
return select$9();
|
|
9530
9530
|
}
|
|
9531
9531
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
9532
|
-
const snapshot = ingestSuccess$
|
|
9532
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
9533
9533
|
config,
|
|
9534
|
-
resolve: () => buildNetworkSnapshot$
|
|
9534
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
9535
9535
|
});
|
|
9536
9536
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9537
9537
|
}
|
|
9538
9538
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
9539
9539
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
9540
9540
|
config,
|
|
9541
|
-
resolve: () => buildNetworkSnapshot$
|
|
9541
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
9542
9542
|
});
|
|
9543
9543
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9544
9544
|
}
|
|
9545
|
-
function buildNetworkSnapshot$
|
|
9546
|
-
const resourceParams = createResourceParams$
|
|
9547
|
-
const request = createResourceRequest$
|
|
9545
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
9546
|
+
const resourceParams = createResourceParams$6(config);
|
|
9547
|
+
const request = createResourceRequest$6(resourceParams);
|
|
9548
9548
|
return luvio.dispatchResourceRequest(request, options)
|
|
9549
9549
|
.then((response) => {
|
|
9550
9550
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
9551
9551
|
const cache = new StoreKeyMap();
|
|
9552
|
-
getResponseCacheKeys$
|
|
9552
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
9553
9553
|
return cache;
|
|
9554
9554
|
});
|
|
9555
9555
|
}, (response) => {
|
|
@@ -9557,7 +9557,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
9557
9557
|
});
|
|
9558
9558
|
}
|
|
9559
9559
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
9560
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
9560
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
9561
9561
|
}
|
|
9562
9562
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
9563
9563
|
const { luvio, config } = context;
|
|
@@ -9568,12 +9568,12 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
9568
9568
|
};
|
|
9569
9569
|
const cacheSnapshot = storeLookup(selector, {
|
|
9570
9570
|
config,
|
|
9571
|
-
resolve: () => buildNetworkSnapshot$
|
|
9571
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
9572
9572
|
});
|
|
9573
9573
|
return cacheSnapshot;
|
|
9574
9574
|
}
|
|
9575
9575
|
const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsToSubMetrics(untrustedConfig, requestContext) {
|
|
9576
|
-
const config = validateAdapterConfig$
|
|
9576
|
+
const config = validateAdapterConfig$6(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
|
|
9577
9577
|
// Invalid or incomplete config
|
|
9578
9578
|
if (config === null) {
|
|
9579
9579
|
return null;
|
|
@@ -9582,24 +9582,24 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
9582
9582
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
9583
9583
|
};
|
|
9584
9584
|
|
|
9585
|
-
function select$
|
|
9586
|
-
return select$
|
|
9585
|
+
function select$8(luvio, params) {
|
|
9586
|
+
return select$i();
|
|
9587
9587
|
}
|
|
9588
9588
|
function keyBuilder$9(luvio, params) {
|
|
9589
9589
|
return keyBuilder$i(luvio, {
|
|
9590
9590
|
name: params.urlParams.modelApiNameOrId
|
|
9591
9591
|
});
|
|
9592
9592
|
}
|
|
9593
|
-
function getResponseCacheKeys$
|
|
9593
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
9594
9594
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
9595
9595
|
}
|
|
9596
|
-
function ingestSuccess$
|
|
9596
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
9597
9597
|
const { body } = response;
|
|
9598
9598
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
9599
9599
|
luvio.storeIngest(key, ingest$6, body);
|
|
9600
9600
|
const snapshot = luvio.storeLookup({
|
|
9601
9601
|
recordId: key,
|
|
9602
|
-
node: select$
|
|
9602
|
+
node: select$8(),
|
|
9603
9603
|
variables: {},
|
|
9604
9604
|
}, snapshotRefresh);
|
|
9605
9605
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9616,7 +9616,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
9616
9616
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9617
9617
|
return errorSnapshot;
|
|
9618
9618
|
}
|
|
9619
|
-
function createResourceRequest$
|
|
9619
|
+
function createResourceRequest$5(config) {
|
|
9620
9620
|
const headers = {};
|
|
9621
9621
|
return {
|
|
9622
9622
|
baseUri: '/services/data/v62.0',
|
|
@@ -9635,65 +9635,65 @@ function createResourceRequestFromRepresentation$1(representation) {
|
|
|
9635
9635
|
queryParams: {},
|
|
9636
9636
|
};
|
|
9637
9637
|
config.urlParams.modelApiNameOrId = representation.id;
|
|
9638
|
-
return createResourceRequest$
|
|
9638
|
+
return createResourceRequest$5(config);
|
|
9639
9639
|
}
|
|
9640
9640
|
|
|
9641
|
-
const adapterName$
|
|
9641
|
+
const adapterName$5 = 'getSemanticModel';
|
|
9642
9642
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
9643
9643
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9644
9644
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9645
9645
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
9646
9646
|
];
|
|
9647
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9648
|
-
const createResourceParams$
|
|
9647
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSemanticModel_ConfigPropertyMetadata);
|
|
9648
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(getSemanticModel_ConfigPropertyMetadata);
|
|
9649
9649
|
function keyBuilder$8(luvio, config) {
|
|
9650
|
-
const resourceParams = createResourceParams$
|
|
9650
|
+
const resourceParams = createResourceParams$5(config);
|
|
9651
9651
|
return keyBuilder$9(luvio, resourceParams);
|
|
9652
9652
|
}
|
|
9653
|
-
function typeCheckConfig$
|
|
9653
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
9654
9654
|
const config = {};
|
|
9655
|
-
typeCheckConfig$
|
|
9655
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
9656
9656
|
return config;
|
|
9657
9657
|
}
|
|
9658
|
-
function validateAdapterConfig$
|
|
9658
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
9659
9659
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9660
9660
|
return null;
|
|
9661
9661
|
}
|
|
9662
9662
|
if (process.env.NODE_ENV !== 'production') {
|
|
9663
9663
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9664
9664
|
}
|
|
9665
|
-
const config = typeCheckConfig$
|
|
9665
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
9666
9666
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9667
9667
|
return null;
|
|
9668
9668
|
}
|
|
9669
9669
|
return config;
|
|
9670
9670
|
}
|
|
9671
9671
|
function adapterFragment$4(luvio, config) {
|
|
9672
|
-
createResourceParams$
|
|
9673
|
-
return select$
|
|
9672
|
+
createResourceParams$5(config);
|
|
9673
|
+
return select$8();
|
|
9674
9674
|
}
|
|
9675
9675
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
9676
|
-
const snapshot = ingestSuccess$
|
|
9676
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
9677
9677
|
config,
|
|
9678
|
-
resolve: () => buildNetworkSnapshot$
|
|
9678
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
9679
9679
|
});
|
|
9680
9680
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9681
9681
|
}
|
|
9682
9682
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
9683
9683
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
9684
9684
|
config,
|
|
9685
|
-
resolve: () => buildNetworkSnapshot$
|
|
9685
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
9686
9686
|
});
|
|
9687
9687
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9688
9688
|
}
|
|
9689
|
-
function buildNetworkSnapshot$
|
|
9690
|
-
const resourceParams = createResourceParams$
|
|
9691
|
-
const request = createResourceRequest$
|
|
9689
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
9690
|
+
const resourceParams = createResourceParams$5(config);
|
|
9691
|
+
const request = createResourceRequest$5(resourceParams);
|
|
9692
9692
|
return luvio.dispatchResourceRequest(request, options)
|
|
9693
9693
|
.then((response) => {
|
|
9694
9694
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
9695
9695
|
const cache = new StoreKeyMap();
|
|
9696
|
-
getResponseCacheKeys$
|
|
9696
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
9697
9697
|
return cache;
|
|
9698
9698
|
});
|
|
9699
9699
|
}, (response) => {
|
|
@@ -9701,7 +9701,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
9701
9701
|
});
|
|
9702
9702
|
}
|
|
9703
9703
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
9704
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
9704
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
9705
9705
|
}
|
|
9706
9706
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
9707
9707
|
const { luvio, config } = context;
|
|
@@ -9712,12 +9712,12 @@ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
|
9712
9712
|
};
|
|
9713
9713
|
const cacheSnapshot = storeLookup(selector, {
|
|
9714
9714
|
config,
|
|
9715
|
-
resolve: () => buildNetworkSnapshot$
|
|
9715
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
9716
9716
|
});
|
|
9717
9717
|
return cacheSnapshot;
|
|
9718
9718
|
}
|
|
9719
9719
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
9720
|
-
const config = validateAdapterConfig$
|
|
9720
|
+
const config = validateAdapterConfig$5(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
9721
9721
|
// Invalid or incomplete config
|
|
9722
9722
|
if (config === null) {
|
|
9723
9723
|
return null;
|
|
@@ -9946,8 +9946,8 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
9946
9946
|
})();
|
|
9947
9947
|
return v_error === undefined ? null : v_error;
|
|
9948
9948
|
}
|
|
9949
|
-
const select$
|
|
9950
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
9949
|
+
const select$7 = function SemanticModelPartialOutputRepresentationSelect() {
|
|
9950
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$E();
|
|
9951
9951
|
return {
|
|
9952
9952
|
kind: 'Fragment',
|
|
9953
9953
|
version: VERSION$2,
|
|
@@ -10448,8 +10448,8 @@ const RepresentationType$1 = 'SemanticModelCollectionOutputRepresentation';
|
|
|
10448
10448
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
10449
10449
|
return input;
|
|
10450
10450
|
}
|
|
10451
|
-
const select$
|
|
10452
|
-
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$
|
|
10451
|
+
const select$6 = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
10452
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$7();
|
|
10453
10453
|
return {
|
|
10454
10454
|
kind: 'Fragment',
|
|
10455
10455
|
version: VERSION$1,
|
|
@@ -10580,22 +10580,22 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10580
10580
|
});
|
|
10581
10581
|
}
|
|
10582
10582
|
|
|
10583
|
-
function select$
|
|
10584
|
-
return select$
|
|
10583
|
+
function select$5(luvio, params) {
|
|
10584
|
+
return select$6();
|
|
10585
10585
|
}
|
|
10586
10586
|
function keyBuilder$7(luvio, params) {
|
|
10587
10587
|
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 + ')';
|
|
10588
10588
|
}
|
|
10589
|
-
function getResponseCacheKeys$
|
|
10589
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
10590
10590
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
10591
10591
|
}
|
|
10592
|
-
function ingestSuccess$
|
|
10592
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
10593
10593
|
const { body } = response;
|
|
10594
10594
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
10595
10595
|
luvio.storeIngest(key, ingest$1, body);
|
|
10596
10596
|
const snapshot = luvio.storeLookup({
|
|
10597
10597
|
recordId: key,
|
|
10598
|
-
node: select$
|
|
10598
|
+
node: select$5(),
|
|
10599
10599
|
variables: {},
|
|
10600
10600
|
}, snapshotRefresh);
|
|
10601
10601
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10612,7 +10612,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
10612
10612
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10613
10613
|
return errorSnapshot;
|
|
10614
10614
|
}
|
|
10615
|
-
function createResourceRequest$
|
|
10615
|
+
function createResourceRequest$4(config) {
|
|
10616
10616
|
const headers = {};
|
|
10617
10617
|
return {
|
|
10618
10618
|
baseUri: '/services/data/v62.0',
|
|
@@ -10626,7 +10626,7 @@ function createResourceRequest$3(config) {
|
|
|
10626
10626
|
};
|
|
10627
10627
|
}
|
|
10628
10628
|
|
|
10629
|
-
const adapterName$
|
|
10629
|
+
const adapterName$4 = 'getSemanticModels';
|
|
10630
10630
|
const getSemanticModels_ConfigPropertyMetadata = [
|
|
10631
10631
|
generateParamConfigMetadata('app', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10632
10632
|
generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -10638,56 +10638,56 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
10638
10638
|
generateParamConfigMetadata('sourceCreation', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10639
10639
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10640
10640
|
];
|
|
10641
|
-
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10642
|
-
const createResourceParams$
|
|
10641
|
+
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticModels_ConfigPropertyMetadata);
|
|
10642
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(getSemanticModels_ConfigPropertyMetadata);
|
|
10643
10643
|
function keyBuilder$6(luvio, config) {
|
|
10644
|
-
const resourceParams = createResourceParams$
|
|
10644
|
+
const resourceParams = createResourceParams$4(config);
|
|
10645
10645
|
return keyBuilder$7(luvio, resourceParams);
|
|
10646
10646
|
}
|
|
10647
|
-
function typeCheckConfig$
|
|
10647
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
10648
10648
|
const config = {};
|
|
10649
|
-
typeCheckConfig$
|
|
10649
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
10650
10650
|
return config;
|
|
10651
10651
|
}
|
|
10652
|
-
function validateAdapterConfig$
|
|
10652
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
10653
10653
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10654
10654
|
return null;
|
|
10655
10655
|
}
|
|
10656
10656
|
if (process.env.NODE_ENV !== 'production') {
|
|
10657
10657
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10658
10658
|
}
|
|
10659
|
-
const config = typeCheckConfig$
|
|
10659
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
10660
10660
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10661
10661
|
return null;
|
|
10662
10662
|
}
|
|
10663
10663
|
return config;
|
|
10664
10664
|
}
|
|
10665
10665
|
function adapterFragment$3(luvio, config) {
|
|
10666
|
-
createResourceParams$
|
|
10667
|
-
return select$
|
|
10666
|
+
createResourceParams$4(config);
|
|
10667
|
+
return select$5();
|
|
10668
10668
|
}
|
|
10669
10669
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
10670
|
-
const snapshot = ingestSuccess$
|
|
10670
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
10671
10671
|
config,
|
|
10672
|
-
resolve: () => buildNetworkSnapshot$
|
|
10672
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
10673
10673
|
});
|
|
10674
10674
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10675
10675
|
}
|
|
10676
10676
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
10677
10677
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
10678
10678
|
config,
|
|
10679
|
-
resolve: () => buildNetworkSnapshot$
|
|
10679
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
10680
10680
|
});
|
|
10681
10681
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10682
10682
|
}
|
|
10683
|
-
function buildNetworkSnapshot$
|
|
10684
|
-
const resourceParams = createResourceParams$
|
|
10685
|
-
const request = createResourceRequest$
|
|
10683
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
10684
|
+
const resourceParams = createResourceParams$4(config);
|
|
10685
|
+
const request = createResourceRequest$4(resourceParams);
|
|
10686
10686
|
return luvio.dispatchResourceRequest(request, options)
|
|
10687
10687
|
.then((response) => {
|
|
10688
10688
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
10689
10689
|
const cache = new StoreKeyMap();
|
|
10690
|
-
getResponseCacheKeys$
|
|
10690
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
10691
10691
|
return cache;
|
|
10692
10692
|
});
|
|
10693
10693
|
}, (response) => {
|
|
@@ -10695,7 +10695,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
10695
10695
|
});
|
|
10696
10696
|
}
|
|
10697
10697
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
10698
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10698
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
10699
10699
|
}
|
|
10700
10700
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
10701
10701
|
const { luvio, config } = context;
|
|
@@ -10706,12 +10706,12 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
10706
10706
|
};
|
|
10707
10707
|
const cacheSnapshot = storeLookup(selector, {
|
|
10708
10708
|
config,
|
|
10709
|
-
resolve: () => buildNetworkSnapshot$
|
|
10709
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
10710
10710
|
});
|
|
10711
10711
|
return cacheSnapshot;
|
|
10712
10712
|
}
|
|
10713
10713
|
const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
|
|
10714
|
-
const config = validateAdapterConfig$
|
|
10714
|
+
const config = validateAdapterConfig$4(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
10715
10715
|
// Invalid or incomplete config
|
|
10716
10716
|
if (config === null) {
|
|
10717
10717
|
return null;
|
|
@@ -10720,24 +10720,24 @@ const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
10720
10720
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
10721
10721
|
};
|
|
10722
10722
|
|
|
10723
|
-
function select$
|
|
10724
|
-
return select$
|
|
10723
|
+
function select$4(luvio, params) {
|
|
10724
|
+
return select$g();
|
|
10725
10725
|
}
|
|
10726
10726
|
function keyBuilder$5(luvio, params) {
|
|
10727
10727
|
return keyBuilder$h(luvio, {
|
|
10728
10728
|
name: params.urlParams.subMetricNameOrId
|
|
10729
10729
|
});
|
|
10730
10730
|
}
|
|
10731
|
-
function getResponseCacheKeys$
|
|
10731
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
10732
10732
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
10733
10733
|
}
|
|
10734
|
-
function ingestSuccess$
|
|
10734
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
10735
10735
|
const { body } = response;
|
|
10736
10736
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
10737
10737
|
luvio.storeIngest(key, ingest$5, body);
|
|
10738
10738
|
const snapshot = luvio.storeLookup({
|
|
10739
10739
|
recordId: key,
|
|
10740
|
-
node: select$
|
|
10740
|
+
node: select$4(),
|
|
10741
10741
|
variables: {},
|
|
10742
10742
|
}, snapshotRefresh);
|
|
10743
10743
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10754,7 +10754,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
10754
10754
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10755
10755
|
return errorSnapshot;
|
|
10756
10756
|
}
|
|
10757
|
-
function createResourceRequest$
|
|
10757
|
+
function createResourceRequest$3(config) {
|
|
10758
10758
|
const headers = {};
|
|
10759
10759
|
return {
|
|
10760
10760
|
baseUri: '/services/data/v62.0',
|
|
@@ -10772,64 +10772,64 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
10772
10772
|
urlParams: {},
|
|
10773
10773
|
};
|
|
10774
10774
|
config.urlParams.subMetricNameOrId = representation.id;
|
|
10775
|
-
return createResourceRequest$
|
|
10775
|
+
return createResourceRequest$3(config);
|
|
10776
10776
|
}
|
|
10777
10777
|
|
|
10778
|
-
const adapterName$
|
|
10778
|
+
const adapterName$3 = 'getSemanticSubMetric';
|
|
10779
10779
|
const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
10780
10780
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10781
10781
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10782
10782
|
];
|
|
10783
|
-
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10784
|
-
const createResourceParams$
|
|
10783
|
+
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
10784
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
10785
10785
|
function keyBuilder$4(luvio, config) {
|
|
10786
|
-
const resourceParams = createResourceParams$
|
|
10786
|
+
const resourceParams = createResourceParams$3(config);
|
|
10787
10787
|
return keyBuilder$5(luvio, resourceParams);
|
|
10788
10788
|
}
|
|
10789
|
-
function typeCheckConfig$
|
|
10789
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
10790
10790
|
const config = {};
|
|
10791
|
-
typeCheckConfig$
|
|
10791
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
10792
10792
|
return config;
|
|
10793
10793
|
}
|
|
10794
|
-
function validateAdapterConfig$
|
|
10794
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
10795
10795
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10796
10796
|
return null;
|
|
10797
10797
|
}
|
|
10798
10798
|
if (process.env.NODE_ENV !== 'production') {
|
|
10799
10799
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10800
10800
|
}
|
|
10801
|
-
const config = typeCheckConfig$
|
|
10801
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
10802
10802
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10803
10803
|
return null;
|
|
10804
10804
|
}
|
|
10805
10805
|
return config;
|
|
10806
10806
|
}
|
|
10807
10807
|
function adapterFragment$2(luvio, config) {
|
|
10808
|
-
createResourceParams$
|
|
10809
|
-
return select$
|
|
10808
|
+
createResourceParams$3(config);
|
|
10809
|
+
return select$4();
|
|
10810
10810
|
}
|
|
10811
10811
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
10812
|
-
const snapshot = ingestSuccess$
|
|
10812
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
10813
10813
|
config,
|
|
10814
|
-
resolve: () => buildNetworkSnapshot$
|
|
10814
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
10815
10815
|
});
|
|
10816
10816
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10817
10817
|
}
|
|
10818
10818
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
10819
10819
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
10820
10820
|
config,
|
|
10821
|
-
resolve: () => buildNetworkSnapshot$
|
|
10821
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
10822
10822
|
});
|
|
10823
10823
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10824
10824
|
}
|
|
10825
|
-
function buildNetworkSnapshot$
|
|
10826
|
-
const resourceParams = createResourceParams$
|
|
10827
|
-
const request = createResourceRequest$
|
|
10825
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
10826
|
+
const resourceParams = createResourceParams$3(config);
|
|
10827
|
+
const request = createResourceRequest$3(resourceParams);
|
|
10828
10828
|
return luvio.dispatchResourceRequest(request, options)
|
|
10829
10829
|
.then((response) => {
|
|
10830
10830
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
10831
10831
|
const cache = new StoreKeyMap();
|
|
10832
|
-
getResponseCacheKeys$
|
|
10832
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
10833
10833
|
return cache;
|
|
10834
10834
|
});
|
|
10835
10835
|
}, (response) => {
|
|
@@ -10837,7 +10837,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
10837
10837
|
});
|
|
10838
10838
|
}
|
|
10839
10839
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
10840
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10840
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
10841
10841
|
}
|
|
10842
10842
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
10843
10843
|
const { luvio, config } = context;
|
|
@@ -10848,12 +10848,12 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
10848
10848
|
};
|
|
10849
10849
|
const cacheSnapshot = storeLookup(selector, {
|
|
10850
10850
|
config,
|
|
10851
|
-
resolve: () => buildNetworkSnapshot$
|
|
10851
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
10852
10852
|
});
|
|
10853
10853
|
return cacheSnapshot;
|
|
10854
10854
|
}
|
|
10855
10855
|
const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetric(untrustedConfig, requestContext) {
|
|
10856
|
-
const config = validateAdapterConfig$
|
|
10856
|
+
const config = validateAdapterConfig$3(untrustedConfig, getSemanticSubMetric_ConfigPropertyNames);
|
|
10857
10857
|
// Invalid or incomplete config
|
|
10858
10858
|
if (config === null) {
|
|
10859
10859
|
return null;
|
|
@@ -10936,7 +10936,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
10936
10936
|
}
|
|
10937
10937
|
return input;
|
|
10938
10938
|
}
|
|
10939
|
-
const select$
|
|
10939
|
+
const select$3 = function SemanticSubMetricCollectionOutputRepresentationSelect() {
|
|
10940
10940
|
return {
|
|
10941
10941
|
kind: 'Fragment',
|
|
10942
10942
|
version: VERSION,
|
|
@@ -10947,7 +10947,7 @@ const select$2 = function SemanticSubMetricCollectionOutputRepresentationSelect(
|
|
|
10947
10947
|
kind: 'Link',
|
|
10948
10948
|
plural: true,
|
|
10949
10949
|
required: false,
|
|
10950
|
-
fragment: select$
|
|
10950
|
+
fragment: select$g()
|
|
10951
10951
|
}
|
|
10952
10952
|
]
|
|
10953
10953
|
};
|
|
@@ -11001,22 +11001,22 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11001
11001
|
}
|
|
11002
11002
|
}
|
|
11003
11003
|
|
|
11004
|
-
function select$
|
|
11005
|
-
return select$
|
|
11004
|
+
function select$2(luvio, params) {
|
|
11005
|
+
return select$3();
|
|
11006
11006
|
}
|
|
11007
11007
|
function keyBuilder$3(luvio, params) {
|
|
11008
11008
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11009
11009
|
}
|
|
11010
|
-
function getResponseCacheKeys$
|
|
11010
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
11011
11011
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
11012
11012
|
}
|
|
11013
|
-
function ingestSuccess$
|
|
11013
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
11014
11014
|
const { body } = response;
|
|
11015
11015
|
const key = keyBuilder$3(luvio, resourceParams);
|
|
11016
11016
|
luvio.storeIngest(key, ingest, body);
|
|
11017
11017
|
const snapshot = luvio.storeLookup({
|
|
11018
11018
|
recordId: key,
|
|
11019
|
-
node: select$
|
|
11019
|
+
node: select$2(),
|
|
11020
11020
|
variables: {},
|
|
11021
11021
|
}, snapshotRefresh);
|
|
11022
11022
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11033,7 +11033,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
11033
11033
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11034
11034
|
return errorSnapshot;
|
|
11035
11035
|
}
|
|
11036
|
-
function createResourceRequest$
|
|
11036
|
+
function createResourceRequest$2(config) {
|
|
11037
11037
|
const headers = {};
|
|
11038
11038
|
return {
|
|
11039
11039
|
baseUri: '/services/data/v62.0',
|
|
@@ -11047,60 +11047,60 @@ function createResourceRequest$1(config) {
|
|
|
11047
11047
|
};
|
|
11048
11048
|
}
|
|
11049
11049
|
|
|
11050
|
-
const adapterName$
|
|
11050
|
+
const adapterName$2 = 'getSemanticSubMetrics';
|
|
11051
11051
|
const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
11052
11052
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11053
11053
|
];
|
|
11054
|
-
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11055
|
-
const createResourceParams$
|
|
11054
|
+
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11055
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11056
11056
|
function keyBuilder$2(luvio, config) {
|
|
11057
|
-
const resourceParams = createResourceParams$
|
|
11057
|
+
const resourceParams = createResourceParams$2(config);
|
|
11058
11058
|
return keyBuilder$3(luvio, resourceParams);
|
|
11059
11059
|
}
|
|
11060
|
-
function typeCheckConfig$
|
|
11060
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
11061
11061
|
const config = {};
|
|
11062
|
-
typeCheckConfig$
|
|
11062
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11063
11063
|
return config;
|
|
11064
11064
|
}
|
|
11065
|
-
function validateAdapterConfig$
|
|
11065
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
11066
11066
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11067
11067
|
return null;
|
|
11068
11068
|
}
|
|
11069
11069
|
if (process.env.NODE_ENV !== 'production') {
|
|
11070
11070
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11071
11071
|
}
|
|
11072
|
-
const config = typeCheckConfig$
|
|
11072
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
11073
11073
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11074
11074
|
return null;
|
|
11075
11075
|
}
|
|
11076
11076
|
return config;
|
|
11077
11077
|
}
|
|
11078
11078
|
function adapterFragment$1(luvio, config) {
|
|
11079
|
-
createResourceParams$
|
|
11080
|
-
return select$
|
|
11079
|
+
createResourceParams$2(config);
|
|
11080
|
+
return select$2();
|
|
11081
11081
|
}
|
|
11082
11082
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
11083
|
-
const snapshot = ingestSuccess$
|
|
11083
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
11084
11084
|
config,
|
|
11085
|
-
resolve: () => buildNetworkSnapshot$
|
|
11085
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
11086
11086
|
});
|
|
11087
11087
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11088
11088
|
}
|
|
11089
11089
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
11090
11090
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
11091
11091
|
config,
|
|
11092
|
-
resolve: () => buildNetworkSnapshot$
|
|
11092
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
11093
11093
|
});
|
|
11094
11094
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11095
11095
|
}
|
|
11096
|
-
function buildNetworkSnapshot$
|
|
11097
|
-
const resourceParams = createResourceParams$
|
|
11098
|
-
const request = createResourceRequest$
|
|
11096
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
11097
|
+
const resourceParams = createResourceParams$2(config);
|
|
11098
|
+
const request = createResourceRequest$2(resourceParams);
|
|
11099
11099
|
return luvio.dispatchResourceRequest(request, options)
|
|
11100
11100
|
.then((response) => {
|
|
11101
11101
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
11102
11102
|
const cache = new StoreKeyMap();
|
|
11103
|
-
getResponseCacheKeys$
|
|
11103
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
11104
11104
|
return cache;
|
|
11105
11105
|
});
|
|
11106
11106
|
}, (response) => {
|
|
@@ -11108,7 +11108,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
11108
11108
|
});
|
|
11109
11109
|
}
|
|
11110
11110
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
11111
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11111
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
11112
11112
|
}
|
|
11113
11113
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
11114
11114
|
const { luvio, config } = context;
|
|
@@ -11119,12 +11119,12 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
11119
11119
|
};
|
|
11120
11120
|
const cacheSnapshot = storeLookup(selector, {
|
|
11121
11121
|
config,
|
|
11122
|
-
resolve: () => buildNetworkSnapshot$
|
|
11122
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
11123
11123
|
});
|
|
11124
11124
|
return cacheSnapshot;
|
|
11125
11125
|
}
|
|
11126
11126
|
const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetrics(untrustedConfig, requestContext) {
|
|
11127
|
-
const config = validateAdapterConfig$
|
|
11127
|
+
const config = validateAdapterConfig$2(untrustedConfig, getSemanticSubMetrics_ConfigPropertyNames);
|
|
11128
11128
|
// Invalid or incomplete config
|
|
11129
11129
|
if (config === null) {
|
|
11130
11130
|
return null;
|
|
@@ -11133,22 +11133,22 @@ const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthorin
|
|
|
11133
11133
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
11134
11134
|
};
|
|
11135
11135
|
|
|
11136
|
-
function select(luvio, params) {
|
|
11137
|
-
return select$
|
|
11136
|
+
function select$1(luvio, params) {
|
|
11137
|
+
return select$3();
|
|
11138
11138
|
}
|
|
11139
11139
|
function keyBuilder$1(luvio, params) {
|
|
11140
11140
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
11141
11141
|
}
|
|
11142
|
-
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
11142
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
11143
11143
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
11144
11144
|
}
|
|
11145
|
-
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
11145
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
11146
11146
|
const { body } = response;
|
|
11147
11147
|
const key = keyBuilder$1(luvio, resourceParams);
|
|
11148
11148
|
luvio.storeIngest(key, ingest, body);
|
|
11149
11149
|
const snapshot = luvio.storeLookup({
|
|
11150
11150
|
recordId: key,
|
|
11151
|
-
node: select(),
|
|
11151
|
+
node: select$1(),
|
|
11152
11152
|
variables: {},
|
|
11153
11153
|
}, snapshotRefresh);
|
|
11154
11154
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11165,7 +11165,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
11165
11165
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11166
11166
|
return errorSnapshot;
|
|
11167
11167
|
}
|
|
11168
|
-
function createResourceRequest(config) {
|
|
11168
|
+
function createResourceRequest$1(config) {
|
|
11169
11169
|
const headers = {};
|
|
11170
11170
|
return {
|
|
11171
11171
|
baseUri: '/services/data/v62.0',
|
|
@@ -11179,60 +11179,60 @@ function createResourceRequest(config) {
|
|
|
11179
11179
|
};
|
|
11180
11180
|
}
|
|
11181
11181
|
|
|
11182
|
-
const adapterName = 'getSemanticSubMetricsById';
|
|
11182
|
+
const adapterName$1 = 'getSemanticSubMetricsById';
|
|
11183
11183
|
const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
11184
11184
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11185
11185
|
];
|
|
11186
|
-
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11187
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
11186
|
+
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11187
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11188
11188
|
function keyBuilder(luvio, config) {
|
|
11189
|
-
const resourceParams = createResourceParams(config);
|
|
11189
|
+
const resourceParams = createResourceParams$1(config);
|
|
11190
11190
|
return keyBuilder$1(luvio, resourceParams);
|
|
11191
11191
|
}
|
|
11192
|
-
function typeCheckConfig(untrustedConfig) {
|
|
11192
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
11193
11193
|
const config = {};
|
|
11194
|
-
typeCheckConfig$
|
|
11194
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11195
11195
|
return config;
|
|
11196
11196
|
}
|
|
11197
|
-
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
11197
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
11198
11198
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11199
11199
|
return null;
|
|
11200
11200
|
}
|
|
11201
11201
|
if (process.env.NODE_ENV !== 'production') {
|
|
11202
11202
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11203
11203
|
}
|
|
11204
|
-
const config = typeCheckConfig(untrustedConfig);
|
|
11204
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
11205
11205
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11206
11206
|
return null;
|
|
11207
11207
|
}
|
|
11208
11208
|
return config;
|
|
11209
11209
|
}
|
|
11210
11210
|
function adapterFragment(luvio, config) {
|
|
11211
|
-
createResourceParams(config);
|
|
11212
|
-
return select();
|
|
11211
|
+
createResourceParams$1(config);
|
|
11212
|
+
return select$1();
|
|
11213
11213
|
}
|
|
11214
11214
|
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
11215
|
-
const snapshot = ingestSuccess(luvio, resourceParams, response, {
|
|
11215
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
11216
11216
|
config,
|
|
11217
|
-
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
11217
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
11218
11218
|
});
|
|
11219
11219
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11220
11220
|
}
|
|
11221
11221
|
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
11222
11222
|
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
11223
11223
|
config,
|
|
11224
|
-
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
11224
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
11225
11225
|
});
|
|
11226
11226
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11227
11227
|
}
|
|
11228
|
-
function buildNetworkSnapshot(luvio, config, options) {
|
|
11229
|
-
const resourceParams = createResourceParams(config);
|
|
11230
|
-
const request = createResourceRequest(resourceParams);
|
|
11228
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
11229
|
+
const resourceParams = createResourceParams$1(config);
|
|
11230
|
+
const request = createResourceRequest$1(resourceParams);
|
|
11231
11231
|
return luvio.dispatchResourceRequest(request, options)
|
|
11232
11232
|
.then((response) => {
|
|
11233
11233
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
11234
11234
|
const cache = new StoreKeyMap();
|
|
11235
|
-
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
11235
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
11236
11236
|
return cache;
|
|
11237
11237
|
});
|
|
11238
11238
|
}, (response) => {
|
|
@@ -11240,7 +11240,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
11240
11240
|
});
|
|
11241
11241
|
}
|
|
11242
11242
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
11243
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
11243
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
11244
11244
|
}
|
|
11245
11245
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
11246
11246
|
const { luvio, config } = context;
|
|
@@ -11251,12 +11251,12 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
11251
11251
|
};
|
|
11252
11252
|
const cacheSnapshot = storeLookup(selector, {
|
|
11253
11253
|
config,
|
|
11254
|
-
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
11254
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
11255
11255
|
});
|
|
11256
11256
|
return cacheSnapshot;
|
|
11257
11257
|
}
|
|
11258
11258
|
const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetricsById(untrustedConfig, requestContext) {
|
|
11259
|
-
const config = validateAdapterConfig(untrustedConfig, getSemanticSubMetricsById_ConfigPropertyNames);
|
|
11259
|
+
const config = validateAdapterConfig$1(untrustedConfig, getSemanticSubMetricsById_ConfigPropertyNames);
|
|
11260
11260
|
// Invalid or incomplete config
|
|
11261
11261
|
if (config === null) {
|
|
11262
11262
|
return null;
|
|
@@ -11265,6 +11265,222 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
11265
11265
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
11266
11266
|
};
|
|
11267
11267
|
|
|
11268
|
+
function select(luvio, params) {
|
|
11269
|
+
return select$i();
|
|
11270
|
+
}
|
|
11271
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
11272
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
11273
|
+
}
|
|
11274
|
+
function ingestSuccess(luvio, resourceParams, response) {
|
|
11275
|
+
const { body } = response;
|
|
11276
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
11277
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
11278
|
+
const snapshot = luvio.storeLookup({
|
|
11279
|
+
recordId: key,
|
|
11280
|
+
node: select(),
|
|
11281
|
+
variables: {},
|
|
11282
|
+
});
|
|
11283
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
11284
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
11285
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
11286
|
+
}
|
|
11287
|
+
}
|
|
11288
|
+
deepFreeze(snapshot.data);
|
|
11289
|
+
return snapshot;
|
|
11290
|
+
}
|
|
11291
|
+
function createResourceRequest(config) {
|
|
11292
|
+
const headers = {};
|
|
11293
|
+
return {
|
|
11294
|
+
baseUri: '/services/data/v62.0',
|
|
11295
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '',
|
|
11296
|
+
method: 'patch',
|
|
11297
|
+
body: config.body,
|
|
11298
|
+
urlParams: config.urlParams,
|
|
11299
|
+
queryParams: {},
|
|
11300
|
+
headers,
|
|
11301
|
+
priority: 'normal',
|
|
11302
|
+
};
|
|
11303
|
+
}
|
|
11304
|
+
|
|
11305
|
+
const adapterName = 'patchSemanticModel';
|
|
11306
|
+
const patchSemanticModel_ConfigPropertyMetadata = [
|
|
11307
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11308
|
+
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
11309
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
11310
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
11311
|
+
generateParamConfigMetadata('app', false, 2 /* Body */, 0 /* String */),
|
|
11312
|
+
generateParamConfigMetadata('categories', false, 2 /* Body */, 0 /* String */, true),
|
|
11313
|
+
generateParamConfigMetadata('dataspace', false, 2 /* Body */, 0 /* String */),
|
|
11314
|
+
generateParamConfigMetadata('queryUnrelatedDataObjects', false, 2 /* Body */, 0 /* String */),
|
|
11315
|
+
generateParamConfigMetadata('sourceCreation', false, 2 /* Body */, 0 /* String */),
|
|
11316
|
+
generateParamConfigMetadata('sourceCreationName', false, 2 /* Body */, 0 /* String */),
|
|
11317
|
+
generateParamConfigMetadata('baseModels', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11318
|
+
generateParamConfigMetadata('semanticCalculatedDimensions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11319
|
+
generateParamConfigMetadata('semanticCalculatedMeasurements', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11320
|
+
generateParamConfigMetadata('semanticDataObjects', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11321
|
+
generateParamConfigMetadata('semanticGroupings', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11322
|
+
generateParamConfigMetadata('semanticLogicalViews', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11323
|
+
generateParamConfigMetadata('semanticMetrics', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11324
|
+
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11325
|
+
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11326
|
+
];
|
|
11327
|
+
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, patchSemanticModel_ConfigPropertyMetadata);
|
|
11328
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$c(patchSemanticModel_ConfigPropertyMetadata);
|
|
11329
|
+
function typeCheckConfig(untrustedConfig) {
|
|
11330
|
+
const config = {};
|
|
11331
|
+
typeCheckConfig$c(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
11332
|
+
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
11333
|
+
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
11334
|
+
const untrustedConfig_baseModels_array = [];
|
|
11335
|
+
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
11336
|
+
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
11337
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$V(untrustedConfig_baseModels_item);
|
|
11338
|
+
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
11339
|
+
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
11340
|
+
}
|
|
11341
|
+
}
|
|
11342
|
+
config.baseModels = untrustedConfig_baseModels_array;
|
|
11343
|
+
}
|
|
11344
|
+
const untrustedConfig_semanticCalculatedDimensions = untrustedConfig.semanticCalculatedDimensions;
|
|
11345
|
+
if (ArrayIsArray$1(untrustedConfig_semanticCalculatedDimensions)) {
|
|
11346
|
+
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
11347
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
11348
|
+
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
11349
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$T(untrustedConfig_semanticCalculatedDimensions_item);
|
|
11350
|
+
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
11351
|
+
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
11352
|
+
}
|
|
11353
|
+
}
|
|
11354
|
+
config.semanticCalculatedDimensions = untrustedConfig_semanticCalculatedDimensions_array;
|
|
11355
|
+
}
|
|
11356
|
+
const untrustedConfig_semanticCalculatedMeasurements = untrustedConfig.semanticCalculatedMeasurements;
|
|
11357
|
+
if (ArrayIsArray$1(untrustedConfig_semanticCalculatedMeasurements)) {
|
|
11358
|
+
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
11359
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
11360
|
+
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
11361
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$S(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
11362
|
+
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
11363
|
+
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
11364
|
+
}
|
|
11365
|
+
}
|
|
11366
|
+
config.semanticCalculatedMeasurements = untrustedConfig_semanticCalculatedMeasurements_array;
|
|
11367
|
+
}
|
|
11368
|
+
const untrustedConfig_semanticDataObjects = untrustedConfig.semanticDataObjects;
|
|
11369
|
+
if (ArrayIsArray$1(untrustedConfig_semanticDataObjects)) {
|
|
11370
|
+
const untrustedConfig_semanticDataObjects_array = [];
|
|
11371
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
11372
|
+
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
11373
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$P(untrustedConfig_semanticDataObjects_item);
|
|
11374
|
+
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
11375
|
+
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
11376
|
+
}
|
|
11377
|
+
}
|
|
11378
|
+
config.semanticDataObjects = untrustedConfig_semanticDataObjects_array;
|
|
11379
|
+
}
|
|
11380
|
+
const untrustedConfig_semanticGroupings = untrustedConfig.semanticGroupings;
|
|
11381
|
+
if (ArrayIsArray$1(untrustedConfig_semanticGroupings)) {
|
|
11382
|
+
const untrustedConfig_semanticGroupings_array = [];
|
|
11383
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
11384
|
+
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
11385
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$I(untrustedConfig_semanticGroupings_item);
|
|
11386
|
+
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
11387
|
+
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
11388
|
+
}
|
|
11389
|
+
}
|
|
11390
|
+
config.semanticGroupings = untrustedConfig_semanticGroupings_array;
|
|
11391
|
+
}
|
|
11392
|
+
const untrustedConfig_semanticLogicalViews = untrustedConfig.semanticLogicalViews;
|
|
11393
|
+
if (ArrayIsArray$1(untrustedConfig_semanticLogicalViews)) {
|
|
11394
|
+
const untrustedConfig_semanticLogicalViews_array = [];
|
|
11395
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
11396
|
+
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
11397
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$D(untrustedConfig_semanticLogicalViews_item);
|
|
11398
|
+
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
11399
|
+
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
11400
|
+
}
|
|
11401
|
+
}
|
|
11402
|
+
config.semanticLogicalViews = untrustedConfig_semanticLogicalViews_array;
|
|
11403
|
+
}
|
|
11404
|
+
const untrustedConfig_semanticMetrics = untrustedConfig.semanticMetrics;
|
|
11405
|
+
if (ArrayIsArray$1(untrustedConfig_semanticMetrics)) {
|
|
11406
|
+
const untrustedConfig_semanticMetrics_array = [];
|
|
11407
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
11408
|
+
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
11409
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$z(untrustedConfig_semanticMetrics_item);
|
|
11410
|
+
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
11411
|
+
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
11412
|
+
}
|
|
11413
|
+
}
|
|
11414
|
+
config.semanticMetrics = untrustedConfig_semanticMetrics_array;
|
|
11415
|
+
}
|
|
11416
|
+
const untrustedConfig_semanticParameters = untrustedConfig.semanticParameters;
|
|
11417
|
+
if (ArrayIsArray$1(untrustedConfig_semanticParameters)) {
|
|
11418
|
+
const untrustedConfig_semanticParameters_array = [];
|
|
11419
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
11420
|
+
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
11421
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$y(untrustedConfig_semanticParameters_item);
|
|
11422
|
+
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
11423
|
+
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
11424
|
+
}
|
|
11425
|
+
}
|
|
11426
|
+
config.semanticParameters = untrustedConfig_semanticParameters_array;
|
|
11427
|
+
}
|
|
11428
|
+
const untrustedConfig_semanticRelationships = untrustedConfig.semanticRelationships;
|
|
11429
|
+
if (ArrayIsArray$1(untrustedConfig_semanticRelationships)) {
|
|
11430
|
+
const untrustedConfig_semanticRelationships_array = [];
|
|
11431
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
11432
|
+
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
11433
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$G(untrustedConfig_semanticRelationships_item);
|
|
11434
|
+
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
11435
|
+
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
11436
|
+
}
|
|
11437
|
+
}
|
|
11438
|
+
config.semanticRelationships = untrustedConfig_semanticRelationships_array;
|
|
11439
|
+
}
|
|
11440
|
+
return config;
|
|
11441
|
+
}
|
|
11442
|
+
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
11443
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
11444
|
+
return null;
|
|
11445
|
+
}
|
|
11446
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
11447
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
11448
|
+
}
|
|
11449
|
+
const config = typeCheckConfig(untrustedConfig);
|
|
11450
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11451
|
+
return null;
|
|
11452
|
+
}
|
|
11453
|
+
return config;
|
|
11454
|
+
}
|
|
11455
|
+
function buildNetworkSnapshot(luvio, config, options) {
|
|
11456
|
+
const resourceParams = createResourceParams(config);
|
|
11457
|
+
const request = createResourceRequest(resourceParams);
|
|
11458
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
11459
|
+
.then((response) => {
|
|
11460
|
+
return luvio.handleSuccessResponse(() => {
|
|
11461
|
+
const snapshot = ingestSuccess(luvio, resourceParams, response);
|
|
11462
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
11463
|
+
}, () => {
|
|
11464
|
+
const cache = new StoreKeyMap();
|
|
11465
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
11466
|
+
return cache;
|
|
11467
|
+
});
|
|
11468
|
+
}, (response) => {
|
|
11469
|
+
deepFreeze(response);
|
|
11470
|
+
throw response;
|
|
11471
|
+
});
|
|
11472
|
+
}
|
|
11473
|
+
const patchSemanticModelAdapterFactory = (luvio) => {
|
|
11474
|
+
return function patchSemanticModel(untrustedConfig) {
|
|
11475
|
+
const config = validateAdapterConfig(untrustedConfig, patchSemanticModel_ConfigPropertyNames);
|
|
11476
|
+
// Invalid or incomplete config
|
|
11477
|
+
if (config === null) {
|
|
11478
|
+
throw new Error('Invalid config for "patchSemanticModel"');
|
|
11479
|
+
}
|
|
11480
|
+
return buildNetworkSnapshot(luvio, config);
|
|
11481
|
+
};
|
|
11482
|
+
};
|
|
11483
|
+
|
|
11268
11484
|
let createSemanticModel;
|
|
11269
11485
|
let createSemanticSubMetric;
|
|
11270
11486
|
let deleteSemanticSubMetric;
|
|
@@ -11279,6 +11495,7 @@ let getSemanticSubMetric;
|
|
|
11279
11495
|
let getSemanticSubMetricNotifyChange;
|
|
11280
11496
|
let getSemanticSubMetrics;
|
|
11281
11497
|
let getSemanticSubMetricsById;
|
|
11498
|
+
let patchSemanticModel;
|
|
11282
11499
|
// Imperative GET Adapters
|
|
11283
11500
|
let getSemanticMetric_imperative;
|
|
11284
11501
|
let getSemanticMetrics_imperative;
|
|
@@ -11326,7 +11543,7 @@ function bindExportsTo(luvio) {
|
|
|
11326
11543
|
return {
|
|
11327
11544
|
createSemanticModel: unwrapSnapshotData(createSemanticModelAdapterFactory),
|
|
11328
11545
|
createSemanticSubMetric: unwrapSnapshotData(createSemanticSubMetricAdapterFactory),
|
|
11329
|
-
deleteSemanticSubMetric: createLDSAdapter(luvio, adapterName$
|
|
11546
|
+
deleteSemanticSubMetric: createLDSAdapter(luvio, adapterName$9, deleteSemanticSubMetricAdapterFactory),
|
|
11330
11547
|
getSemanticMetric: createWireAdapterConstructor(luvio, getSemanticMetric_ldsAdapter, getSemanticMetricMetadata),
|
|
11331
11548
|
getSemanticMetricNotifyChange: createLDSAdapter(luvio, 'getSemanticMetricNotifyChange', notifyChangeFactory$2),
|
|
11332
11549
|
getSemanticMetrics: createWireAdapterConstructor(luvio, getSemanticMetrics_ldsAdapter, getSemanticMetricsMetadata),
|
|
@@ -11338,6 +11555,7 @@ function bindExportsTo(luvio) {
|
|
|
11338
11555
|
getSemanticSubMetricNotifyChange: createLDSAdapter(luvio, 'getSemanticSubMetricNotifyChange', notifyChangeFactory),
|
|
11339
11556
|
getSemanticSubMetrics: createWireAdapterConstructor(luvio, getSemanticSubMetrics_ldsAdapter, getSemanticSubMetricsMetadata),
|
|
11340
11557
|
getSemanticSubMetricsById: createWireAdapterConstructor(luvio, getSemanticSubMetricsById_ldsAdapter, getSemanticSubMetricsByIdMetadata),
|
|
11558
|
+
patchSemanticModel: unwrapSnapshotData(patchSemanticModelAdapterFactory),
|
|
11341
11559
|
// Imperative GET Adapters
|
|
11342
11560
|
getSemanticMetric_imperative: createImperativeAdapter(luvio, getSemanticMetric_ldsAdapter, getSemanticMetricMetadata),
|
|
11343
11561
|
getSemanticMetrics_imperative: createImperativeAdapter(luvio, getSemanticMetrics_ldsAdapter, getSemanticMetricsMetadata),
|
|
@@ -11366,6 +11584,7 @@ withDefaultLuvio((luvio) => {
|
|
|
11366
11584
|
getSemanticSubMetricNotifyChange,
|
|
11367
11585
|
getSemanticSubMetrics,
|
|
11368
11586
|
getSemanticSubMetricsById,
|
|
11587
|
+
patchSemanticModel,
|
|
11369
11588
|
getSemanticMetric_imperative,
|
|
11370
11589
|
getSemanticMetrics_imperative,
|
|
11371
11590
|
getSemanticMetricsToSubMetrics_imperative,
|
|
@@ -11377,5 +11596,5 @@ withDefaultLuvio((luvio) => {
|
|
|
11377
11596
|
} = bindExportsTo(luvio));
|
|
11378
11597
|
});
|
|
11379
11598
|
|
|
11380
|
-
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 };
|
|
11381
|
-
// version: 1.
|
|
11599
|
+
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 };
|
|
11600
|
+
// version: 1.309.0-dev10-96422fc06f
|