@salesforce/lds-adapters-cdp-semantic-authoring 1.312.1 → 1.314.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/cdp-semantic-authoring.js +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/v63.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
|
|
|
@@ -8528,7 +8528,7 @@ function keyBuilderFromType(luvio, object) {
|
|
|
8528
8528
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
8529
8529
|
return input;
|
|
8530
8530
|
}
|
|
8531
|
-
const select$
|
|
8531
|
+
const select$g = function SemanticSubMetricOutputRepresentationSelect() {
|
|
8532
8532
|
return {
|
|
8533
8533
|
kind: 'Fragment',
|
|
8534
8534
|
version: VERSION$6,
|
|
@@ -8564,19 +8564,19 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8564
8564
|
});
|
|
8565
8565
|
}
|
|
8566
8566
|
|
|
8567
|
-
function select$
|
|
8568
|
-
return select$
|
|
8567
|
+
function select$f(luvio, params) {
|
|
8568
|
+
return select$g();
|
|
8569
8569
|
}
|
|
8570
|
-
function getResponseCacheKeys$
|
|
8570
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
8571
8571
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
8572
8572
|
}
|
|
8573
|
-
function ingestSuccess$
|
|
8573
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
8574
8574
|
const { body } = response;
|
|
8575
8575
|
const key = keyBuilderFromType(luvio, body);
|
|
8576
8576
|
luvio.storeIngest(key, ingest$5, body);
|
|
8577
8577
|
const snapshot = luvio.storeLookup({
|
|
8578
8578
|
recordId: key,
|
|
8579
|
-
node: select$
|
|
8579
|
+
node: select$f(),
|
|
8580
8580
|
variables: {},
|
|
8581
8581
|
});
|
|
8582
8582
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8587,7 +8587,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
8587
8587
|
deepFreeze(snapshot.data);
|
|
8588
8588
|
return snapshot;
|
|
8589
8589
|
}
|
|
8590
|
-
function createResourceRequest$
|
|
8590
|
+
function createResourceRequest$a(config) {
|
|
8591
8591
|
const headers = {};
|
|
8592
8592
|
return {
|
|
8593
8593
|
baseUri: '/services/data/v63.0',
|
|
@@ -8601,7 +8601,7 @@ function createResourceRequest$9(config) {
|
|
|
8601
8601
|
};
|
|
8602
8602
|
}
|
|
8603
8603
|
|
|
8604
|
-
const adapterName$
|
|
8604
|
+
const adapterName$a = 'createSemanticSubMetric';
|
|
8605
8605
|
const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
8606
8606
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8607
8607
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -8612,11 +8612,11 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
8612
8612
|
generateParamConfigMetadata('semanticMetricDefinitionApiName', false, 2 /* Body */, 0 /* String */),
|
|
8613
8613
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
8614
8614
|
];
|
|
8615
|
-
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8616
|
-
const createResourceParams$
|
|
8617
|
-
function typeCheckConfig$
|
|
8615
|
+
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
8616
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
8617
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
8618
8618
|
const config = {};
|
|
8619
|
-
typeCheckConfig$
|
|
8619
|
+
typeCheckConfig$c(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
8620
8620
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
8621
8621
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
8622
8622
|
const untrustedConfig_filters_array = [];
|
|
@@ -8636,30 +8636,30 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
8636
8636
|
}
|
|
8637
8637
|
return config;
|
|
8638
8638
|
}
|
|
8639
|
-
function validateAdapterConfig$
|
|
8639
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
8640
8640
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
8641
8641
|
return null;
|
|
8642
8642
|
}
|
|
8643
8643
|
if (process.env.NODE_ENV !== 'production') {
|
|
8644
8644
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
8645
8645
|
}
|
|
8646
|
-
const config = typeCheckConfig$
|
|
8646
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
8647
8647
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8648
8648
|
return null;
|
|
8649
8649
|
}
|
|
8650
8650
|
return config;
|
|
8651
8651
|
}
|
|
8652
|
-
function buildNetworkSnapshot$
|
|
8653
|
-
const resourceParams = createResourceParams$
|
|
8654
|
-
const request = createResourceRequest$
|
|
8652
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
8653
|
+
const resourceParams = createResourceParams$a(config);
|
|
8654
|
+
const request = createResourceRequest$a(resourceParams);
|
|
8655
8655
|
return luvio.dispatchResourceRequest(request, options)
|
|
8656
8656
|
.then((response) => {
|
|
8657
8657
|
return luvio.handleSuccessResponse(() => {
|
|
8658
|
-
const snapshot = ingestSuccess$
|
|
8658
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
8659
8659
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8660
8660
|
}, () => {
|
|
8661
8661
|
const cache = new StoreKeyMap();
|
|
8662
|
-
getResponseCacheKeys$
|
|
8662
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
8663
8663
|
return cache;
|
|
8664
8664
|
});
|
|
8665
8665
|
}, (response) => {
|
|
@@ -8669,12 +8669,12 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
8669
8669
|
}
|
|
8670
8670
|
const createSemanticSubMetricAdapterFactory = (luvio) => {
|
|
8671
8671
|
return function createSemanticSubMetric(untrustedConfig) {
|
|
8672
|
-
const config = validateAdapterConfig$
|
|
8672
|
+
const config = validateAdapterConfig$a(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
|
|
8673
8673
|
// Invalid or incomplete config
|
|
8674
8674
|
if (config === null) {
|
|
8675
8675
|
throw new Error('Invalid config for "createSemanticSubMetric"');
|
|
8676
8676
|
}
|
|
8677
|
-
return buildNetworkSnapshot$
|
|
8677
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
8678
8678
|
};
|
|
8679
8679
|
};
|
|
8680
8680
|
|
|
@@ -8683,7 +8683,7 @@ function keyBuilder$g(luvio, params) {
|
|
|
8683
8683
|
name: params.urlParams.subMetricNameOrId
|
|
8684
8684
|
});
|
|
8685
8685
|
}
|
|
8686
|
-
function getResponseCacheKeys$
|
|
8686
|
+
function getResponseCacheKeys$9(cacheKeyMap, luvio, resourceParams) {
|
|
8687
8687
|
const key = keyBuilder$g(luvio, resourceParams);
|
|
8688
8688
|
cacheKeyMap.set(key, {
|
|
8689
8689
|
namespace: keyPrefix,
|
|
@@ -8695,7 +8695,7 @@ function evictSuccess(luvio, resourceParams) {
|
|
|
8695
8695
|
const key = keyBuilder$g(luvio, resourceParams);
|
|
8696
8696
|
luvio.storeEvict(key);
|
|
8697
8697
|
}
|
|
8698
|
-
function createResourceRequest$
|
|
8698
|
+
function createResourceRequest$9(config) {
|
|
8699
8699
|
const headers = {};
|
|
8700
8700
|
return {
|
|
8701
8701
|
baseUri: '/services/data/v63.0',
|
|
@@ -8709,34 +8709,34 @@ function createResourceRequest$8(config) {
|
|
|
8709
8709
|
};
|
|
8710
8710
|
}
|
|
8711
8711
|
|
|
8712
|
-
const adapterName$
|
|
8712
|
+
const adapterName$9 = 'deleteSemanticSubMetric';
|
|
8713
8713
|
const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
8714
8714
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8715
8715
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8716
8716
|
];
|
|
8717
|
-
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8718
|
-
const createResourceParams$
|
|
8719
|
-
function typeCheckConfig$
|
|
8717
|
+
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
8718
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
8719
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
8720
8720
|
const config = {};
|
|
8721
|
-
typeCheckConfig$
|
|
8721
|
+
typeCheckConfig$c(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
8722
8722
|
return config;
|
|
8723
8723
|
}
|
|
8724
|
-
function validateAdapterConfig$
|
|
8724
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
8725
8725
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
8726
8726
|
return null;
|
|
8727
8727
|
}
|
|
8728
8728
|
if (process.env.NODE_ENV !== 'production') {
|
|
8729
8729
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
8730
8730
|
}
|
|
8731
|
-
const config = typeCheckConfig$
|
|
8731
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
8732
8732
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8733
8733
|
return null;
|
|
8734
8734
|
}
|
|
8735
8735
|
return config;
|
|
8736
8736
|
}
|
|
8737
|
-
function buildNetworkSnapshot$
|
|
8738
|
-
const resourceParams = createResourceParams$
|
|
8739
|
-
const request = createResourceRequest$
|
|
8737
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
8738
|
+
const resourceParams = createResourceParams$9(config);
|
|
8739
|
+
const request = createResourceRequest$9(resourceParams);
|
|
8740
8740
|
return luvio.dispatchResourceRequest(request, options)
|
|
8741
8741
|
.then(() => {
|
|
8742
8742
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -8744,7 +8744,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
8744
8744
|
return luvio.storeBroadcast();
|
|
8745
8745
|
}, () => {
|
|
8746
8746
|
const cache = new StoreKeyMap();
|
|
8747
|
-
getResponseCacheKeys$
|
|
8747
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams);
|
|
8748
8748
|
return cache;
|
|
8749
8749
|
});
|
|
8750
8750
|
}, (response) => {
|
|
@@ -8754,33 +8754,33 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
8754
8754
|
}
|
|
8755
8755
|
const deleteSemanticSubMetricAdapterFactory = (luvio) => {
|
|
8756
8756
|
return function SemanticAuthoringdeleteSemanticSubMetric(untrustedConfig) {
|
|
8757
|
-
const config = validateAdapterConfig$
|
|
8757
|
+
const config = validateAdapterConfig$9(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
|
|
8758
8758
|
// Invalid or incomplete config
|
|
8759
8759
|
if (config === null) {
|
|
8760
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
8760
|
+
throw new Error(`Invalid config for "${adapterName$9}"`);
|
|
8761
8761
|
}
|
|
8762
|
-
return buildNetworkSnapshot$
|
|
8762
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
8763
8763
|
};
|
|
8764
8764
|
};
|
|
8765
8765
|
|
|
8766
|
-
function select$
|
|
8767
|
-
return select$
|
|
8766
|
+
function select$e(luvio, params) {
|
|
8767
|
+
return select$k();
|
|
8768
8768
|
}
|
|
8769
8769
|
function keyBuilder$f(luvio, params) {
|
|
8770
8770
|
return keyBuilder$k(luvio, {
|
|
8771
8771
|
name: params.urlParams.metricNameOrId
|
|
8772
8772
|
});
|
|
8773
8773
|
}
|
|
8774
|
-
function getResponseCacheKeys$
|
|
8774
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
8775
8775
|
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
8776
8776
|
}
|
|
8777
|
-
function ingestSuccess$
|
|
8777
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
8778
8778
|
const { body } = response;
|
|
8779
8779
|
const key = keyBuilder$f(luvio, resourceParams);
|
|
8780
8780
|
luvio.storeIngest(key, ingest$8, body);
|
|
8781
8781
|
const snapshot = luvio.storeLookup({
|
|
8782
8782
|
recordId: key,
|
|
8783
|
-
node: select$
|
|
8783
|
+
node: select$e(),
|
|
8784
8784
|
variables: {},
|
|
8785
8785
|
}, snapshotRefresh);
|
|
8786
8786
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8797,7 +8797,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
8797
8797
|
luvio.storeIngestError(key, errorSnapshot);
|
|
8798
8798
|
return errorSnapshot;
|
|
8799
8799
|
}
|
|
8800
|
-
function createResourceRequest$
|
|
8800
|
+
function createResourceRequest$8(config) {
|
|
8801
8801
|
const headers = {};
|
|
8802
8802
|
return {
|
|
8803
8803
|
baseUri: '/services/data/v63.0',
|
|
@@ -8815,64 +8815,64 @@ function createResourceRequestFromRepresentation$2(representation) {
|
|
|
8815
8815
|
urlParams: {},
|
|
8816
8816
|
};
|
|
8817
8817
|
config.urlParams.metricNameOrId = representation.id;
|
|
8818
|
-
return createResourceRequest$
|
|
8818
|
+
return createResourceRequest$8(config);
|
|
8819
8819
|
}
|
|
8820
8820
|
|
|
8821
|
-
const adapterName$
|
|
8821
|
+
const adapterName$8 = 'getSemanticMetric';
|
|
8822
8822
|
const getSemanticMetric_ConfigPropertyMetadata = [
|
|
8823
8823
|
generateParamConfigMetadata('metricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8824
8824
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8825
8825
|
];
|
|
8826
|
-
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8827
|
-
const createResourceParams$
|
|
8826
|
+
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetric_ConfigPropertyMetadata);
|
|
8827
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(getSemanticMetric_ConfigPropertyMetadata);
|
|
8828
8828
|
function keyBuilder$e(luvio, config) {
|
|
8829
|
-
const resourceParams = createResourceParams$
|
|
8829
|
+
const resourceParams = createResourceParams$8(config);
|
|
8830
8830
|
return keyBuilder$f(luvio, resourceParams);
|
|
8831
8831
|
}
|
|
8832
|
-
function typeCheckConfig$
|
|
8832
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
8833
8833
|
const config = {};
|
|
8834
|
-
typeCheckConfig$
|
|
8834
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
8835
8835
|
return config;
|
|
8836
8836
|
}
|
|
8837
|
-
function validateAdapterConfig$
|
|
8837
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
8838
8838
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
8839
8839
|
return null;
|
|
8840
8840
|
}
|
|
8841
8841
|
if (process.env.NODE_ENV !== 'production') {
|
|
8842
8842
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
8843
8843
|
}
|
|
8844
|
-
const config = typeCheckConfig$
|
|
8844
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
8845
8845
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8846
8846
|
return null;
|
|
8847
8847
|
}
|
|
8848
8848
|
return config;
|
|
8849
8849
|
}
|
|
8850
8850
|
function adapterFragment$7(luvio, config) {
|
|
8851
|
-
createResourceParams$
|
|
8852
|
-
return select$
|
|
8851
|
+
createResourceParams$8(config);
|
|
8852
|
+
return select$e();
|
|
8853
8853
|
}
|
|
8854
8854
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
8855
|
-
const snapshot = ingestSuccess$
|
|
8855
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
8856
8856
|
config,
|
|
8857
|
-
resolve: () => buildNetworkSnapshot$
|
|
8857
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
8858
8858
|
});
|
|
8859
8859
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8860
8860
|
}
|
|
8861
8861
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
8862
8862
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
8863
8863
|
config,
|
|
8864
|
-
resolve: () => buildNetworkSnapshot$
|
|
8864
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
8865
8865
|
});
|
|
8866
8866
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8867
8867
|
}
|
|
8868
|
-
function buildNetworkSnapshot$
|
|
8869
|
-
const resourceParams = createResourceParams$
|
|
8870
|
-
const request = createResourceRequest$
|
|
8868
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
8869
|
+
const resourceParams = createResourceParams$8(config);
|
|
8870
|
+
const request = createResourceRequest$8(resourceParams);
|
|
8871
8871
|
return luvio.dispatchResourceRequest(request, options)
|
|
8872
8872
|
.then((response) => {
|
|
8873
8873
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
8874
8874
|
const cache = new StoreKeyMap();
|
|
8875
|
-
getResponseCacheKeys$
|
|
8875
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
8876
8876
|
return cache;
|
|
8877
8877
|
});
|
|
8878
8878
|
}, (response) => {
|
|
@@ -8880,7 +8880,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
8880
8880
|
});
|
|
8881
8881
|
}
|
|
8882
8882
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
8883
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
8883
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
8884
8884
|
}
|
|
8885
8885
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
8886
8886
|
const { luvio, config } = context;
|
|
@@ -8891,12 +8891,12 @@ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
|
8891
8891
|
};
|
|
8892
8892
|
const cacheSnapshot = storeLookup(selector, {
|
|
8893
8893
|
config,
|
|
8894
|
-
resolve: () => buildNetworkSnapshot$
|
|
8894
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
8895
8895
|
});
|
|
8896
8896
|
return cacheSnapshot;
|
|
8897
8897
|
}
|
|
8898
8898
|
const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetric(untrustedConfig, requestContext) {
|
|
8899
|
-
const config = validateAdapterConfig$
|
|
8899
|
+
const config = validateAdapterConfig$8(untrustedConfig, getSemanticMetric_ConfigPropertyNames);
|
|
8900
8900
|
// Invalid or incomplete config
|
|
8901
8901
|
if (config === null) {
|
|
8902
8902
|
return null;
|
|
@@ -8979,7 +8979,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
8979
8979
|
}
|
|
8980
8980
|
return input;
|
|
8981
8981
|
}
|
|
8982
|
-
const select$
|
|
8982
|
+
const select$d = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
8983
8983
|
return {
|
|
8984
8984
|
kind: 'Fragment',
|
|
8985
8985
|
version: VERSION$5,
|
|
@@ -8990,7 +8990,7 @@ const select$c = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
8990
8990
|
kind: 'Link',
|
|
8991
8991
|
plural: true,
|
|
8992
8992
|
required: false,
|
|
8993
|
-
fragment: select$
|
|
8993
|
+
fragment: select$k()
|
|
8994
8994
|
}
|
|
8995
8995
|
]
|
|
8996
8996
|
};
|
|
@@ -9044,22 +9044,22 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9044
9044
|
}
|
|
9045
9045
|
}
|
|
9046
9046
|
|
|
9047
|
-
function select$
|
|
9048
|
-
return select$
|
|
9047
|
+
function select$c(luvio, params) {
|
|
9048
|
+
return select$d();
|
|
9049
9049
|
}
|
|
9050
9050
|
function keyBuilder$d(luvio, params) {
|
|
9051
9051
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
9052
9052
|
}
|
|
9053
|
-
function getResponseCacheKeys$
|
|
9053
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
9054
9054
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
9055
9055
|
}
|
|
9056
|
-
function ingestSuccess$
|
|
9056
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
9057
9057
|
const { body } = response;
|
|
9058
9058
|
const key = keyBuilder$d(luvio, resourceParams);
|
|
9059
9059
|
luvio.storeIngest(key, ingest$4, body);
|
|
9060
9060
|
const snapshot = luvio.storeLookup({
|
|
9061
9061
|
recordId: key,
|
|
9062
|
-
node: select$
|
|
9062
|
+
node: select$c(),
|
|
9063
9063
|
variables: {},
|
|
9064
9064
|
}, snapshotRefresh);
|
|
9065
9065
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9076,7 +9076,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
9076
9076
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9077
9077
|
return errorSnapshot;
|
|
9078
9078
|
}
|
|
9079
|
-
function createResourceRequest$
|
|
9079
|
+
function createResourceRequest$7(config) {
|
|
9080
9080
|
const headers = {};
|
|
9081
9081
|
return {
|
|
9082
9082
|
baseUri: '/services/data/v63.0',
|
|
@@ -9090,60 +9090,60 @@ function createResourceRequest$6(config) {
|
|
|
9090
9090
|
};
|
|
9091
9091
|
}
|
|
9092
9092
|
|
|
9093
|
-
const adapterName$
|
|
9093
|
+
const adapterName$7 = 'getSemanticMetrics';
|
|
9094
9094
|
const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
9095
9095
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9096
9096
|
];
|
|
9097
|
-
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9098
|
-
const createResourceParams$
|
|
9097
|
+
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9098
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(getSemanticMetrics_ConfigPropertyMetadata);
|
|
9099
9099
|
function keyBuilder$c(luvio, config) {
|
|
9100
|
-
const resourceParams = createResourceParams$
|
|
9100
|
+
const resourceParams = createResourceParams$7(config);
|
|
9101
9101
|
return keyBuilder$d(luvio, resourceParams);
|
|
9102
9102
|
}
|
|
9103
|
-
function typeCheckConfig$
|
|
9103
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
9104
9104
|
const config = {};
|
|
9105
|
-
typeCheckConfig$
|
|
9105
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9106
9106
|
return config;
|
|
9107
9107
|
}
|
|
9108
|
-
function validateAdapterConfig$
|
|
9108
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
9109
9109
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9110
9110
|
return null;
|
|
9111
9111
|
}
|
|
9112
9112
|
if (process.env.NODE_ENV !== 'production') {
|
|
9113
9113
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9114
9114
|
}
|
|
9115
|
-
const config = typeCheckConfig$
|
|
9115
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
9116
9116
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9117
9117
|
return null;
|
|
9118
9118
|
}
|
|
9119
9119
|
return config;
|
|
9120
9120
|
}
|
|
9121
9121
|
function adapterFragment$6(luvio, config) {
|
|
9122
|
-
createResourceParams$
|
|
9123
|
-
return select$
|
|
9122
|
+
createResourceParams$7(config);
|
|
9123
|
+
return select$c();
|
|
9124
9124
|
}
|
|
9125
9125
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
9126
|
-
const snapshot = ingestSuccess$
|
|
9126
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
9127
9127
|
config,
|
|
9128
|
-
resolve: () => buildNetworkSnapshot$
|
|
9128
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
9129
9129
|
});
|
|
9130
9130
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9131
9131
|
}
|
|
9132
9132
|
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
9133
9133
|
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
9134
9134
|
config,
|
|
9135
|
-
resolve: () => buildNetworkSnapshot$
|
|
9135
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
9136
9136
|
});
|
|
9137
9137
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9138
9138
|
}
|
|
9139
|
-
function buildNetworkSnapshot$
|
|
9140
|
-
const resourceParams = createResourceParams$
|
|
9141
|
-
const request = createResourceRequest$
|
|
9139
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
9140
|
+
const resourceParams = createResourceParams$7(config);
|
|
9141
|
+
const request = createResourceRequest$7(resourceParams);
|
|
9142
9142
|
return luvio.dispatchResourceRequest(request, options)
|
|
9143
9143
|
.then((response) => {
|
|
9144
9144
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
9145
9145
|
const cache = new StoreKeyMap();
|
|
9146
|
-
getResponseCacheKeys$
|
|
9146
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
9147
9147
|
return cache;
|
|
9148
9148
|
});
|
|
9149
9149
|
}, (response) => {
|
|
@@ -9151,7 +9151,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
9151
9151
|
});
|
|
9152
9152
|
}
|
|
9153
9153
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
9154
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
9154
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
9155
9155
|
}
|
|
9156
9156
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
9157
9157
|
const { luvio, config } = context;
|
|
@@ -9162,12 +9162,12 @@ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
|
9162
9162
|
};
|
|
9163
9163
|
const cacheSnapshot = storeLookup(selector, {
|
|
9164
9164
|
config,
|
|
9165
|
-
resolve: () => buildNetworkSnapshot$
|
|
9165
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
9166
9166
|
});
|
|
9167
9167
|
return cacheSnapshot;
|
|
9168
9168
|
}
|
|
9169
9169
|
const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
|
|
9170
|
-
const config = validateAdapterConfig$
|
|
9170
|
+
const config = validateAdapterConfig$7(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
|
|
9171
9171
|
// Invalid or incomplete config
|
|
9172
9172
|
if (config === null) {
|
|
9173
9173
|
return null;
|
|
@@ -9228,7 +9228,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
9228
9228
|
}
|
|
9229
9229
|
return input;
|
|
9230
9230
|
}
|
|
9231
|
-
const select$
|
|
9231
|
+
const select$b = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
|
|
9232
9232
|
return {
|
|
9233
9233
|
kind: 'Fragment',
|
|
9234
9234
|
version: VERSION$4,
|
|
@@ -9244,7 +9244,7 @@ const select$a = function SemanticSubMetricsByMetricOutputRepresentationSelect()
|
|
|
9244
9244
|
kind: 'Link',
|
|
9245
9245
|
plural: true,
|
|
9246
9246
|
required: false,
|
|
9247
|
-
fragment: select$
|
|
9247
|
+
fragment: select$g()
|
|
9248
9248
|
}
|
|
9249
9249
|
]
|
|
9250
9250
|
};
|
|
@@ -9356,7 +9356,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
9356
9356
|
}
|
|
9357
9357
|
return input;
|
|
9358
9358
|
}
|
|
9359
|
-
const select$
|
|
9359
|
+
const select$a = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
|
|
9360
9360
|
return {
|
|
9361
9361
|
kind: 'Fragment',
|
|
9362
9362
|
version: VERSION$3,
|
|
@@ -9367,7 +9367,7 @@ const select$9 = function SemanticSubMetricsByMetricCollectionOutputRepresentati
|
|
|
9367
9367
|
kind: 'Link',
|
|
9368
9368
|
plural: true,
|
|
9369
9369
|
required: false,
|
|
9370
|
-
fragment: select$
|
|
9370
|
+
fragment: select$b()
|
|
9371
9371
|
}
|
|
9372
9372
|
]
|
|
9373
9373
|
};
|
|
@@ -9421,22 +9421,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9421
9421
|
}
|
|
9422
9422
|
}
|
|
9423
9423
|
|
|
9424
|
-
function select$
|
|
9425
|
-
return select$
|
|
9424
|
+
function select$9(luvio, params) {
|
|
9425
|
+
return select$a();
|
|
9426
9426
|
}
|
|
9427
9427
|
function keyBuilder$b(luvio, params) {
|
|
9428
9428
|
return keyPrefix + '::SemanticSubMetricsByMetricCollectionOutputRepresentation:(' + 'metricApiNames:' + params.urlParams.metricApiNames + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
9429
9429
|
}
|
|
9430
|
-
function getResponseCacheKeys$
|
|
9430
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
9431
9431
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
9432
9432
|
}
|
|
9433
|
-
function ingestSuccess$
|
|
9433
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
9434
9434
|
const { body } = response;
|
|
9435
9435
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
9436
9436
|
luvio.storeIngest(key, ingest$2, body);
|
|
9437
9437
|
const snapshot = luvio.storeLookup({
|
|
9438
9438
|
recordId: key,
|
|
9439
|
-
node: select$
|
|
9439
|
+
node: select$9(),
|
|
9440
9440
|
variables: {},
|
|
9441
9441
|
}, snapshotRefresh);
|
|
9442
9442
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9453,7 +9453,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
9453
9453
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9454
9454
|
return errorSnapshot;
|
|
9455
9455
|
}
|
|
9456
|
-
function createResourceRequest$
|
|
9456
|
+
function createResourceRequest$6(config) {
|
|
9457
9457
|
const headers = {};
|
|
9458
9458
|
return {
|
|
9459
9459
|
baseUri: '/services/data/v63.0',
|
|
@@ -9467,61 +9467,61 @@ function createResourceRequest$5(config) {
|
|
|
9467
9467
|
};
|
|
9468
9468
|
}
|
|
9469
9469
|
|
|
9470
|
-
const adapterName$
|
|
9470
|
+
const adapterName$6 = 'getSemanticMetricsToSubMetrics';
|
|
9471
9471
|
const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
9472
9472
|
generateParamConfigMetadata('metricApiNames', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9473
9473
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9474
9474
|
];
|
|
9475
|
-
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9476
|
-
const createResourceParams$
|
|
9475
|
+
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9476
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9477
9477
|
function keyBuilder$a(luvio, config) {
|
|
9478
|
-
const resourceParams = createResourceParams$
|
|
9478
|
+
const resourceParams = createResourceParams$6(config);
|
|
9479
9479
|
return keyBuilder$b(luvio, resourceParams);
|
|
9480
9480
|
}
|
|
9481
|
-
function typeCheckConfig$
|
|
9481
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
9482
9482
|
const config = {};
|
|
9483
|
-
typeCheckConfig$
|
|
9483
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
9484
9484
|
return config;
|
|
9485
9485
|
}
|
|
9486
|
-
function validateAdapterConfig$
|
|
9486
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
9487
9487
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9488
9488
|
return null;
|
|
9489
9489
|
}
|
|
9490
9490
|
if (process.env.NODE_ENV !== 'production') {
|
|
9491
9491
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9492
9492
|
}
|
|
9493
|
-
const config = typeCheckConfig$
|
|
9493
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
9494
9494
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9495
9495
|
return null;
|
|
9496
9496
|
}
|
|
9497
9497
|
return config;
|
|
9498
9498
|
}
|
|
9499
9499
|
function adapterFragment$5(luvio, config) {
|
|
9500
|
-
createResourceParams$
|
|
9501
|
-
return select$
|
|
9500
|
+
createResourceParams$6(config);
|
|
9501
|
+
return select$9();
|
|
9502
9502
|
}
|
|
9503
9503
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
9504
|
-
const snapshot = ingestSuccess$
|
|
9504
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
9505
9505
|
config,
|
|
9506
|
-
resolve: () => buildNetworkSnapshot$
|
|
9506
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
9507
9507
|
});
|
|
9508
9508
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9509
9509
|
}
|
|
9510
9510
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
9511
9511
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
9512
9512
|
config,
|
|
9513
|
-
resolve: () => buildNetworkSnapshot$
|
|
9513
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
9514
9514
|
});
|
|
9515
9515
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9516
9516
|
}
|
|
9517
|
-
function buildNetworkSnapshot$
|
|
9518
|
-
const resourceParams = createResourceParams$
|
|
9519
|
-
const request = createResourceRequest$
|
|
9517
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
9518
|
+
const resourceParams = createResourceParams$6(config);
|
|
9519
|
+
const request = createResourceRequest$6(resourceParams);
|
|
9520
9520
|
return luvio.dispatchResourceRequest(request, options)
|
|
9521
9521
|
.then((response) => {
|
|
9522
9522
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
9523
9523
|
const cache = new StoreKeyMap();
|
|
9524
|
-
getResponseCacheKeys$
|
|
9524
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
9525
9525
|
return cache;
|
|
9526
9526
|
});
|
|
9527
9527
|
}, (response) => {
|
|
@@ -9529,7 +9529,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
9529
9529
|
});
|
|
9530
9530
|
}
|
|
9531
9531
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
9532
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
9532
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
9533
9533
|
}
|
|
9534
9534
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
9535
9535
|
const { luvio, config } = context;
|
|
@@ -9540,12 +9540,12 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
9540
9540
|
};
|
|
9541
9541
|
const cacheSnapshot = storeLookup(selector, {
|
|
9542
9542
|
config,
|
|
9543
|
-
resolve: () => buildNetworkSnapshot$
|
|
9543
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
9544
9544
|
});
|
|
9545
9545
|
return cacheSnapshot;
|
|
9546
9546
|
}
|
|
9547
9547
|
const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsToSubMetrics(untrustedConfig, requestContext) {
|
|
9548
|
-
const config = validateAdapterConfig$
|
|
9548
|
+
const config = validateAdapterConfig$6(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
|
|
9549
9549
|
// Invalid or incomplete config
|
|
9550
9550
|
if (config === null) {
|
|
9551
9551
|
return null;
|
|
@@ -9554,24 +9554,24 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
9554
9554
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
9555
9555
|
};
|
|
9556
9556
|
|
|
9557
|
-
function select$
|
|
9558
|
-
return select$
|
|
9557
|
+
function select$8(luvio, params) {
|
|
9558
|
+
return select$i();
|
|
9559
9559
|
}
|
|
9560
9560
|
function keyBuilder$9(luvio, params) {
|
|
9561
9561
|
return keyBuilder$i(luvio, {
|
|
9562
9562
|
name: params.urlParams.modelApiNameOrId
|
|
9563
9563
|
});
|
|
9564
9564
|
}
|
|
9565
|
-
function getResponseCacheKeys$
|
|
9565
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
9566
9566
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
9567
9567
|
}
|
|
9568
|
-
function ingestSuccess$
|
|
9568
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
9569
9569
|
const { body } = response;
|
|
9570
9570
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
9571
9571
|
luvio.storeIngest(key, ingest$6, body);
|
|
9572
9572
|
const snapshot = luvio.storeLookup({
|
|
9573
9573
|
recordId: key,
|
|
9574
|
-
node: select$
|
|
9574
|
+
node: select$8(),
|
|
9575
9575
|
variables: {},
|
|
9576
9576
|
}, snapshotRefresh);
|
|
9577
9577
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9588,7 +9588,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
9588
9588
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9589
9589
|
return errorSnapshot;
|
|
9590
9590
|
}
|
|
9591
|
-
function createResourceRequest$
|
|
9591
|
+
function createResourceRequest$5(config) {
|
|
9592
9592
|
const headers = {};
|
|
9593
9593
|
return {
|
|
9594
9594
|
baseUri: '/services/data/v63.0',
|
|
@@ -9607,65 +9607,65 @@ function createResourceRequestFromRepresentation$1(representation) {
|
|
|
9607
9607
|
queryParams: {},
|
|
9608
9608
|
};
|
|
9609
9609
|
config.urlParams.modelApiNameOrId = representation.id;
|
|
9610
|
-
return createResourceRequest$
|
|
9610
|
+
return createResourceRequest$5(config);
|
|
9611
9611
|
}
|
|
9612
9612
|
|
|
9613
|
-
const adapterName$
|
|
9613
|
+
const adapterName$5 = 'getSemanticModel';
|
|
9614
9614
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
9615
9615
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9616
9616
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9617
9617
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
9618
9618
|
];
|
|
9619
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9620
|
-
const createResourceParams$
|
|
9619
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSemanticModel_ConfigPropertyMetadata);
|
|
9620
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(getSemanticModel_ConfigPropertyMetadata);
|
|
9621
9621
|
function keyBuilder$8(luvio, config) {
|
|
9622
|
-
const resourceParams = createResourceParams$
|
|
9622
|
+
const resourceParams = createResourceParams$5(config);
|
|
9623
9623
|
return keyBuilder$9(luvio, resourceParams);
|
|
9624
9624
|
}
|
|
9625
|
-
function typeCheckConfig$
|
|
9625
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
9626
9626
|
const config = {};
|
|
9627
|
-
typeCheckConfig$
|
|
9627
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
9628
9628
|
return config;
|
|
9629
9629
|
}
|
|
9630
|
-
function validateAdapterConfig$
|
|
9630
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
9631
9631
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9632
9632
|
return null;
|
|
9633
9633
|
}
|
|
9634
9634
|
if (process.env.NODE_ENV !== 'production') {
|
|
9635
9635
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9636
9636
|
}
|
|
9637
|
-
const config = typeCheckConfig$
|
|
9637
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
9638
9638
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9639
9639
|
return null;
|
|
9640
9640
|
}
|
|
9641
9641
|
return config;
|
|
9642
9642
|
}
|
|
9643
9643
|
function adapterFragment$4(luvio, config) {
|
|
9644
|
-
createResourceParams$
|
|
9645
|
-
return select$
|
|
9644
|
+
createResourceParams$5(config);
|
|
9645
|
+
return select$8();
|
|
9646
9646
|
}
|
|
9647
9647
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
9648
|
-
const snapshot = ingestSuccess$
|
|
9648
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
9649
9649
|
config,
|
|
9650
|
-
resolve: () => buildNetworkSnapshot$
|
|
9650
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
9651
9651
|
});
|
|
9652
9652
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9653
9653
|
}
|
|
9654
9654
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
9655
9655
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
9656
9656
|
config,
|
|
9657
|
-
resolve: () => buildNetworkSnapshot$
|
|
9657
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
9658
9658
|
});
|
|
9659
9659
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9660
9660
|
}
|
|
9661
|
-
function buildNetworkSnapshot$
|
|
9662
|
-
const resourceParams = createResourceParams$
|
|
9663
|
-
const request = createResourceRequest$
|
|
9661
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
9662
|
+
const resourceParams = createResourceParams$5(config);
|
|
9663
|
+
const request = createResourceRequest$5(resourceParams);
|
|
9664
9664
|
return luvio.dispatchResourceRequest(request, options)
|
|
9665
9665
|
.then((response) => {
|
|
9666
9666
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
9667
9667
|
const cache = new StoreKeyMap();
|
|
9668
|
-
getResponseCacheKeys$
|
|
9668
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
9669
9669
|
return cache;
|
|
9670
9670
|
});
|
|
9671
9671
|
}, (response) => {
|
|
@@ -9673,7 +9673,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
9673
9673
|
});
|
|
9674
9674
|
}
|
|
9675
9675
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
9676
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
9676
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
9677
9677
|
}
|
|
9678
9678
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
9679
9679
|
const { luvio, config } = context;
|
|
@@ -9684,12 +9684,12 @@ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
|
9684
9684
|
};
|
|
9685
9685
|
const cacheSnapshot = storeLookup(selector, {
|
|
9686
9686
|
config,
|
|
9687
|
-
resolve: () => buildNetworkSnapshot$
|
|
9687
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
9688
9688
|
});
|
|
9689
9689
|
return cacheSnapshot;
|
|
9690
9690
|
}
|
|
9691
9691
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
9692
|
-
const config = validateAdapterConfig$
|
|
9692
|
+
const config = validateAdapterConfig$5(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
9693
9693
|
// Invalid or incomplete config
|
|
9694
9694
|
if (config === null) {
|
|
9695
9695
|
return null;
|
|
@@ -9918,8 +9918,8 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
9918
9918
|
})();
|
|
9919
9919
|
return v_error === undefined ? null : v_error;
|
|
9920
9920
|
}
|
|
9921
|
-
const select$
|
|
9922
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
9921
|
+
const select$7 = function SemanticModelPartialOutputRepresentationSelect() {
|
|
9922
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$E();
|
|
9923
9923
|
return {
|
|
9924
9924
|
kind: 'Fragment',
|
|
9925
9925
|
version: VERSION$2,
|
|
@@ -10420,8 +10420,8 @@ const RepresentationType$1 = 'SemanticModelCollectionOutputRepresentation';
|
|
|
10420
10420
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
10421
10421
|
return input;
|
|
10422
10422
|
}
|
|
10423
|
-
const select$
|
|
10424
|
-
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$
|
|
10423
|
+
const select$6 = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
10424
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$7();
|
|
10425
10425
|
return {
|
|
10426
10426
|
kind: 'Fragment',
|
|
10427
10427
|
version: VERSION$1,
|
|
@@ -10552,22 +10552,22 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10552
10552
|
});
|
|
10553
10553
|
}
|
|
10554
10554
|
|
|
10555
|
-
function select$
|
|
10556
|
-
return select$
|
|
10555
|
+
function select$5(luvio, params) {
|
|
10556
|
+
return select$6();
|
|
10557
10557
|
}
|
|
10558
10558
|
function keyBuilder$7(luvio, params) {
|
|
10559
10559
|
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 + ')';
|
|
10560
10560
|
}
|
|
10561
|
-
function getResponseCacheKeys$
|
|
10561
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
10562
10562
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
10563
10563
|
}
|
|
10564
|
-
function ingestSuccess$
|
|
10564
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
10565
10565
|
const { body } = response;
|
|
10566
10566
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
10567
10567
|
luvio.storeIngest(key, ingest$1, body);
|
|
10568
10568
|
const snapshot = luvio.storeLookup({
|
|
10569
10569
|
recordId: key,
|
|
10570
|
-
node: select$
|
|
10570
|
+
node: select$5(),
|
|
10571
10571
|
variables: {},
|
|
10572
10572
|
}, snapshotRefresh);
|
|
10573
10573
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10584,7 +10584,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
10584
10584
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10585
10585
|
return errorSnapshot;
|
|
10586
10586
|
}
|
|
10587
|
-
function createResourceRequest$
|
|
10587
|
+
function createResourceRequest$4(config) {
|
|
10588
10588
|
const headers = {};
|
|
10589
10589
|
return {
|
|
10590
10590
|
baseUri: '/services/data/v63.0',
|
|
@@ -10598,7 +10598,7 @@ function createResourceRequest$3(config) {
|
|
|
10598
10598
|
};
|
|
10599
10599
|
}
|
|
10600
10600
|
|
|
10601
|
-
const adapterName$
|
|
10601
|
+
const adapterName$4 = 'getSemanticModels';
|
|
10602
10602
|
const getSemanticModels_ConfigPropertyMetadata = [
|
|
10603
10603
|
generateParamConfigMetadata('app', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10604
10604
|
generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -10610,56 +10610,56 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
10610
10610
|
generateParamConfigMetadata('sourceCreation', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10611
10611
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10612
10612
|
];
|
|
10613
|
-
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10614
|
-
const createResourceParams$
|
|
10613
|
+
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticModels_ConfigPropertyMetadata);
|
|
10614
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(getSemanticModels_ConfigPropertyMetadata);
|
|
10615
10615
|
function keyBuilder$6(luvio, config) {
|
|
10616
|
-
const resourceParams = createResourceParams$
|
|
10616
|
+
const resourceParams = createResourceParams$4(config);
|
|
10617
10617
|
return keyBuilder$7(luvio, resourceParams);
|
|
10618
10618
|
}
|
|
10619
|
-
function typeCheckConfig$
|
|
10619
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
10620
10620
|
const config = {};
|
|
10621
|
-
typeCheckConfig$
|
|
10621
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
10622
10622
|
return config;
|
|
10623
10623
|
}
|
|
10624
|
-
function validateAdapterConfig$
|
|
10624
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
10625
10625
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10626
10626
|
return null;
|
|
10627
10627
|
}
|
|
10628
10628
|
if (process.env.NODE_ENV !== 'production') {
|
|
10629
10629
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10630
10630
|
}
|
|
10631
|
-
const config = typeCheckConfig$
|
|
10631
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
10632
10632
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10633
10633
|
return null;
|
|
10634
10634
|
}
|
|
10635
10635
|
return config;
|
|
10636
10636
|
}
|
|
10637
10637
|
function adapterFragment$3(luvio, config) {
|
|
10638
|
-
createResourceParams$
|
|
10639
|
-
return select$
|
|
10638
|
+
createResourceParams$4(config);
|
|
10639
|
+
return select$5();
|
|
10640
10640
|
}
|
|
10641
10641
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
10642
|
-
const snapshot = ingestSuccess$
|
|
10642
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
10643
10643
|
config,
|
|
10644
|
-
resolve: () => buildNetworkSnapshot$
|
|
10644
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
10645
10645
|
});
|
|
10646
10646
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10647
10647
|
}
|
|
10648
10648
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
10649
10649
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
10650
10650
|
config,
|
|
10651
|
-
resolve: () => buildNetworkSnapshot$
|
|
10651
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
10652
10652
|
});
|
|
10653
10653
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10654
10654
|
}
|
|
10655
|
-
function buildNetworkSnapshot$
|
|
10656
|
-
const resourceParams = createResourceParams$
|
|
10657
|
-
const request = createResourceRequest$
|
|
10655
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
10656
|
+
const resourceParams = createResourceParams$4(config);
|
|
10657
|
+
const request = createResourceRequest$4(resourceParams);
|
|
10658
10658
|
return luvio.dispatchResourceRequest(request, options)
|
|
10659
10659
|
.then((response) => {
|
|
10660
10660
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
10661
10661
|
const cache = new StoreKeyMap();
|
|
10662
|
-
getResponseCacheKeys$
|
|
10662
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
10663
10663
|
return cache;
|
|
10664
10664
|
});
|
|
10665
10665
|
}, (response) => {
|
|
@@ -10667,7 +10667,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
10667
10667
|
});
|
|
10668
10668
|
}
|
|
10669
10669
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
10670
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10670
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
10671
10671
|
}
|
|
10672
10672
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
10673
10673
|
const { luvio, config } = context;
|
|
@@ -10678,12 +10678,12 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
10678
10678
|
};
|
|
10679
10679
|
const cacheSnapshot = storeLookup(selector, {
|
|
10680
10680
|
config,
|
|
10681
|
-
resolve: () => buildNetworkSnapshot$
|
|
10681
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
10682
10682
|
});
|
|
10683
10683
|
return cacheSnapshot;
|
|
10684
10684
|
}
|
|
10685
10685
|
const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
|
|
10686
|
-
const config = validateAdapterConfig$
|
|
10686
|
+
const config = validateAdapterConfig$4(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
10687
10687
|
// Invalid or incomplete config
|
|
10688
10688
|
if (config === null) {
|
|
10689
10689
|
return null;
|
|
@@ -10692,24 +10692,24 @@ const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
10692
10692
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
10693
10693
|
};
|
|
10694
10694
|
|
|
10695
|
-
function select$
|
|
10696
|
-
return select$
|
|
10695
|
+
function select$4(luvio, params) {
|
|
10696
|
+
return select$g();
|
|
10697
10697
|
}
|
|
10698
10698
|
function keyBuilder$5(luvio, params) {
|
|
10699
10699
|
return keyBuilder$h(luvio, {
|
|
10700
10700
|
name: params.urlParams.subMetricNameOrId
|
|
10701
10701
|
});
|
|
10702
10702
|
}
|
|
10703
|
-
function getResponseCacheKeys$
|
|
10703
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
10704
10704
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
10705
10705
|
}
|
|
10706
|
-
function ingestSuccess$
|
|
10706
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
10707
10707
|
const { body } = response;
|
|
10708
10708
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
10709
10709
|
luvio.storeIngest(key, ingest$5, body);
|
|
10710
10710
|
const snapshot = luvio.storeLookup({
|
|
10711
10711
|
recordId: key,
|
|
10712
|
-
node: select$
|
|
10712
|
+
node: select$4(),
|
|
10713
10713
|
variables: {},
|
|
10714
10714
|
}, snapshotRefresh);
|
|
10715
10715
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10726,7 +10726,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
10726
10726
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10727
10727
|
return errorSnapshot;
|
|
10728
10728
|
}
|
|
10729
|
-
function createResourceRequest$
|
|
10729
|
+
function createResourceRequest$3(config) {
|
|
10730
10730
|
const headers = {};
|
|
10731
10731
|
return {
|
|
10732
10732
|
baseUri: '/services/data/v63.0',
|
|
@@ -10744,64 +10744,64 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
10744
10744
|
urlParams: {},
|
|
10745
10745
|
};
|
|
10746
10746
|
config.urlParams.subMetricNameOrId = representation.id;
|
|
10747
|
-
return createResourceRequest$
|
|
10747
|
+
return createResourceRequest$3(config);
|
|
10748
10748
|
}
|
|
10749
10749
|
|
|
10750
|
-
const adapterName$
|
|
10750
|
+
const adapterName$3 = 'getSemanticSubMetric';
|
|
10751
10751
|
const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
10752
10752
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10753
10753
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10754
10754
|
];
|
|
10755
|
-
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10756
|
-
const createResourceParams$
|
|
10755
|
+
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
10756
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
10757
10757
|
function keyBuilder$4(luvio, config) {
|
|
10758
|
-
const resourceParams = createResourceParams$
|
|
10758
|
+
const resourceParams = createResourceParams$3(config);
|
|
10759
10759
|
return keyBuilder$5(luvio, resourceParams);
|
|
10760
10760
|
}
|
|
10761
|
-
function typeCheckConfig$
|
|
10761
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
10762
10762
|
const config = {};
|
|
10763
|
-
typeCheckConfig$
|
|
10763
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
10764
10764
|
return config;
|
|
10765
10765
|
}
|
|
10766
|
-
function validateAdapterConfig$
|
|
10766
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
10767
10767
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10768
10768
|
return null;
|
|
10769
10769
|
}
|
|
10770
10770
|
if (process.env.NODE_ENV !== 'production') {
|
|
10771
10771
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10772
10772
|
}
|
|
10773
|
-
const config = typeCheckConfig$
|
|
10773
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
10774
10774
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10775
10775
|
return null;
|
|
10776
10776
|
}
|
|
10777
10777
|
return config;
|
|
10778
10778
|
}
|
|
10779
10779
|
function adapterFragment$2(luvio, config) {
|
|
10780
|
-
createResourceParams$
|
|
10781
|
-
return select$
|
|
10780
|
+
createResourceParams$3(config);
|
|
10781
|
+
return select$4();
|
|
10782
10782
|
}
|
|
10783
10783
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
10784
|
-
const snapshot = ingestSuccess$
|
|
10784
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
10785
10785
|
config,
|
|
10786
|
-
resolve: () => buildNetworkSnapshot$
|
|
10786
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
10787
10787
|
});
|
|
10788
10788
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10789
10789
|
}
|
|
10790
10790
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
10791
10791
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
10792
10792
|
config,
|
|
10793
|
-
resolve: () => buildNetworkSnapshot$
|
|
10793
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
10794
10794
|
});
|
|
10795
10795
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10796
10796
|
}
|
|
10797
|
-
function buildNetworkSnapshot$
|
|
10798
|
-
const resourceParams = createResourceParams$
|
|
10799
|
-
const request = createResourceRequest$
|
|
10797
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
10798
|
+
const resourceParams = createResourceParams$3(config);
|
|
10799
|
+
const request = createResourceRequest$3(resourceParams);
|
|
10800
10800
|
return luvio.dispatchResourceRequest(request, options)
|
|
10801
10801
|
.then((response) => {
|
|
10802
10802
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
10803
10803
|
const cache = new StoreKeyMap();
|
|
10804
|
-
getResponseCacheKeys$
|
|
10804
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
10805
10805
|
return cache;
|
|
10806
10806
|
});
|
|
10807
10807
|
}, (response) => {
|
|
@@ -10809,7 +10809,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
10809
10809
|
});
|
|
10810
10810
|
}
|
|
10811
10811
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
10812
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10812
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
10813
10813
|
}
|
|
10814
10814
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
10815
10815
|
const { luvio, config } = context;
|
|
@@ -10820,12 +10820,12 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
10820
10820
|
};
|
|
10821
10821
|
const cacheSnapshot = storeLookup(selector, {
|
|
10822
10822
|
config,
|
|
10823
|
-
resolve: () => buildNetworkSnapshot$
|
|
10823
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
10824
10824
|
});
|
|
10825
10825
|
return cacheSnapshot;
|
|
10826
10826
|
}
|
|
10827
10827
|
const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetric(untrustedConfig, requestContext) {
|
|
10828
|
-
const config = validateAdapterConfig$
|
|
10828
|
+
const config = validateAdapterConfig$3(untrustedConfig, getSemanticSubMetric_ConfigPropertyNames);
|
|
10829
10829
|
// Invalid or incomplete config
|
|
10830
10830
|
if (config === null) {
|
|
10831
10831
|
return null;
|
|
@@ -10908,7 +10908,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
10908
10908
|
}
|
|
10909
10909
|
return input;
|
|
10910
10910
|
}
|
|
10911
|
-
const select$
|
|
10911
|
+
const select$3 = function SemanticSubMetricCollectionOutputRepresentationSelect() {
|
|
10912
10912
|
return {
|
|
10913
10913
|
kind: 'Fragment',
|
|
10914
10914
|
version: VERSION,
|
|
@@ -10919,7 +10919,7 @@ const select$2 = function SemanticSubMetricCollectionOutputRepresentationSelect(
|
|
|
10919
10919
|
kind: 'Link',
|
|
10920
10920
|
plural: true,
|
|
10921
10921
|
required: false,
|
|
10922
|
-
fragment: select$
|
|
10922
|
+
fragment: select$g()
|
|
10923
10923
|
}
|
|
10924
10924
|
]
|
|
10925
10925
|
};
|
|
@@ -10973,22 +10973,22 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10973
10973
|
}
|
|
10974
10974
|
}
|
|
10975
10975
|
|
|
10976
|
-
function select$
|
|
10977
|
-
return select$
|
|
10976
|
+
function select$2(luvio, params) {
|
|
10977
|
+
return select$3();
|
|
10978
10978
|
}
|
|
10979
10979
|
function keyBuilder$3(luvio, params) {
|
|
10980
10980
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10981
10981
|
}
|
|
10982
|
-
function getResponseCacheKeys$
|
|
10982
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
10983
10983
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
10984
10984
|
}
|
|
10985
|
-
function ingestSuccess$
|
|
10985
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
10986
10986
|
const { body } = response;
|
|
10987
10987
|
const key = keyBuilder$3(luvio, resourceParams);
|
|
10988
10988
|
luvio.storeIngest(key, ingest, body);
|
|
10989
10989
|
const snapshot = luvio.storeLookup({
|
|
10990
10990
|
recordId: key,
|
|
10991
|
-
node: select$
|
|
10991
|
+
node: select$2(),
|
|
10992
10992
|
variables: {},
|
|
10993
10993
|
}, snapshotRefresh);
|
|
10994
10994
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11005,7 +11005,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
11005
11005
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11006
11006
|
return errorSnapshot;
|
|
11007
11007
|
}
|
|
11008
|
-
function createResourceRequest$
|
|
11008
|
+
function createResourceRequest$2(config) {
|
|
11009
11009
|
const headers = {};
|
|
11010
11010
|
return {
|
|
11011
11011
|
baseUri: '/services/data/v63.0',
|
|
@@ -11019,60 +11019,60 @@ function createResourceRequest$1(config) {
|
|
|
11019
11019
|
};
|
|
11020
11020
|
}
|
|
11021
11021
|
|
|
11022
|
-
const adapterName$
|
|
11022
|
+
const adapterName$2 = 'getSemanticSubMetrics';
|
|
11023
11023
|
const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
11024
11024
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11025
11025
|
];
|
|
11026
|
-
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11027
|
-
const createResourceParams$
|
|
11026
|
+
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11027
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11028
11028
|
function keyBuilder$2(luvio, config) {
|
|
11029
|
-
const resourceParams = createResourceParams$
|
|
11029
|
+
const resourceParams = createResourceParams$2(config);
|
|
11030
11030
|
return keyBuilder$3(luvio, resourceParams);
|
|
11031
11031
|
}
|
|
11032
|
-
function typeCheckConfig$
|
|
11032
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
11033
11033
|
const config = {};
|
|
11034
|
-
typeCheckConfig$
|
|
11034
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11035
11035
|
return config;
|
|
11036
11036
|
}
|
|
11037
|
-
function validateAdapterConfig$
|
|
11037
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
11038
11038
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11039
11039
|
return null;
|
|
11040
11040
|
}
|
|
11041
11041
|
if (process.env.NODE_ENV !== 'production') {
|
|
11042
11042
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11043
11043
|
}
|
|
11044
|
-
const config = typeCheckConfig$
|
|
11044
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
11045
11045
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11046
11046
|
return null;
|
|
11047
11047
|
}
|
|
11048
11048
|
return config;
|
|
11049
11049
|
}
|
|
11050
11050
|
function adapterFragment$1(luvio, config) {
|
|
11051
|
-
createResourceParams$
|
|
11052
|
-
return select$
|
|
11051
|
+
createResourceParams$2(config);
|
|
11052
|
+
return select$2();
|
|
11053
11053
|
}
|
|
11054
11054
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
11055
|
-
const snapshot = ingestSuccess$
|
|
11055
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
11056
11056
|
config,
|
|
11057
|
-
resolve: () => buildNetworkSnapshot$
|
|
11057
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
11058
11058
|
});
|
|
11059
11059
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11060
11060
|
}
|
|
11061
11061
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
11062
11062
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
11063
11063
|
config,
|
|
11064
|
-
resolve: () => buildNetworkSnapshot$
|
|
11064
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
11065
11065
|
});
|
|
11066
11066
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11067
11067
|
}
|
|
11068
|
-
function buildNetworkSnapshot$
|
|
11069
|
-
const resourceParams = createResourceParams$
|
|
11070
|
-
const request = createResourceRequest$
|
|
11068
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
11069
|
+
const resourceParams = createResourceParams$2(config);
|
|
11070
|
+
const request = createResourceRequest$2(resourceParams);
|
|
11071
11071
|
return luvio.dispatchResourceRequest(request, options)
|
|
11072
11072
|
.then((response) => {
|
|
11073
11073
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
11074
11074
|
const cache = new StoreKeyMap();
|
|
11075
|
-
getResponseCacheKeys$
|
|
11075
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
11076
11076
|
return cache;
|
|
11077
11077
|
});
|
|
11078
11078
|
}, (response) => {
|
|
@@ -11080,7 +11080,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
11080
11080
|
});
|
|
11081
11081
|
}
|
|
11082
11082
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
11083
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11083
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
11084
11084
|
}
|
|
11085
11085
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
11086
11086
|
const { luvio, config } = context;
|
|
@@ -11091,12 +11091,12 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
11091
11091
|
};
|
|
11092
11092
|
const cacheSnapshot = storeLookup(selector, {
|
|
11093
11093
|
config,
|
|
11094
|
-
resolve: () => buildNetworkSnapshot$
|
|
11094
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
11095
11095
|
});
|
|
11096
11096
|
return cacheSnapshot;
|
|
11097
11097
|
}
|
|
11098
11098
|
const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetrics(untrustedConfig, requestContext) {
|
|
11099
|
-
const config = validateAdapterConfig$
|
|
11099
|
+
const config = validateAdapterConfig$2(untrustedConfig, getSemanticSubMetrics_ConfigPropertyNames);
|
|
11100
11100
|
// Invalid or incomplete config
|
|
11101
11101
|
if (config === null) {
|
|
11102
11102
|
return null;
|
|
@@ -11105,22 +11105,22 @@ const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthorin
|
|
|
11105
11105
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
11106
11106
|
};
|
|
11107
11107
|
|
|
11108
|
-
function select(luvio, params) {
|
|
11109
|
-
return select$
|
|
11108
|
+
function select$1(luvio, params) {
|
|
11109
|
+
return select$3();
|
|
11110
11110
|
}
|
|
11111
11111
|
function keyBuilder$1(luvio, params) {
|
|
11112
11112
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
11113
11113
|
}
|
|
11114
|
-
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
11114
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
11115
11115
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
11116
11116
|
}
|
|
11117
|
-
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
11117
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
11118
11118
|
const { body } = response;
|
|
11119
11119
|
const key = keyBuilder$1(luvio, resourceParams);
|
|
11120
11120
|
luvio.storeIngest(key, ingest, body);
|
|
11121
11121
|
const snapshot = luvio.storeLookup({
|
|
11122
11122
|
recordId: key,
|
|
11123
|
-
node: select(),
|
|
11123
|
+
node: select$1(),
|
|
11124
11124
|
variables: {},
|
|
11125
11125
|
}, snapshotRefresh);
|
|
11126
11126
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11137,7 +11137,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
11137
11137
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11138
11138
|
return errorSnapshot;
|
|
11139
11139
|
}
|
|
11140
|
-
function createResourceRequest(config) {
|
|
11140
|
+
function createResourceRequest$1(config) {
|
|
11141
11141
|
const headers = {};
|
|
11142
11142
|
return {
|
|
11143
11143
|
baseUri: '/services/data/v63.0',
|
|
@@ -11151,60 +11151,60 @@ function createResourceRequest(config) {
|
|
|
11151
11151
|
};
|
|
11152
11152
|
}
|
|
11153
11153
|
|
|
11154
|
-
const adapterName = 'getSemanticSubMetricsById';
|
|
11154
|
+
const adapterName$1 = 'getSemanticSubMetricsById';
|
|
11155
11155
|
const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
11156
11156
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11157
11157
|
];
|
|
11158
|
-
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11159
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
11158
|
+
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11159
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11160
11160
|
function keyBuilder(luvio, config) {
|
|
11161
|
-
const resourceParams = createResourceParams(config);
|
|
11161
|
+
const resourceParams = createResourceParams$1(config);
|
|
11162
11162
|
return keyBuilder$1(luvio, resourceParams);
|
|
11163
11163
|
}
|
|
11164
|
-
function typeCheckConfig(untrustedConfig) {
|
|
11164
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
11165
11165
|
const config = {};
|
|
11166
|
-
typeCheckConfig$
|
|
11166
|
+
typeCheckConfig$c(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11167
11167
|
return config;
|
|
11168
11168
|
}
|
|
11169
|
-
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
11169
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
11170
11170
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11171
11171
|
return null;
|
|
11172
11172
|
}
|
|
11173
11173
|
if (process.env.NODE_ENV !== 'production') {
|
|
11174
11174
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11175
11175
|
}
|
|
11176
|
-
const config = typeCheckConfig(untrustedConfig);
|
|
11176
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
11177
11177
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11178
11178
|
return null;
|
|
11179
11179
|
}
|
|
11180
11180
|
return config;
|
|
11181
11181
|
}
|
|
11182
11182
|
function adapterFragment(luvio, config) {
|
|
11183
|
-
createResourceParams(config);
|
|
11184
|
-
return select();
|
|
11183
|
+
createResourceParams$1(config);
|
|
11184
|
+
return select$1();
|
|
11185
11185
|
}
|
|
11186
11186
|
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
11187
|
-
const snapshot = ingestSuccess(luvio, resourceParams, response, {
|
|
11187
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
11188
11188
|
config,
|
|
11189
|
-
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
11189
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
11190
11190
|
});
|
|
11191
11191
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11192
11192
|
}
|
|
11193
11193
|
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
11194
11194
|
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
11195
11195
|
config,
|
|
11196
|
-
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
11196
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
11197
11197
|
});
|
|
11198
11198
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11199
11199
|
}
|
|
11200
|
-
function buildNetworkSnapshot(luvio, config, options) {
|
|
11201
|
-
const resourceParams = createResourceParams(config);
|
|
11202
|
-
const request = createResourceRequest(resourceParams);
|
|
11200
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
11201
|
+
const resourceParams = createResourceParams$1(config);
|
|
11202
|
+
const request = createResourceRequest$1(resourceParams);
|
|
11203
11203
|
return luvio.dispatchResourceRequest(request, options)
|
|
11204
11204
|
.then((response) => {
|
|
11205
11205
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
11206
11206
|
const cache = new StoreKeyMap();
|
|
11207
|
-
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
11207
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
11208
11208
|
return cache;
|
|
11209
11209
|
});
|
|
11210
11210
|
}, (response) => {
|
|
@@ -11212,7 +11212,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
11212
11212
|
});
|
|
11213
11213
|
}
|
|
11214
11214
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
11215
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
11215
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
11216
11216
|
}
|
|
11217
11217
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
11218
11218
|
const { luvio, config } = context;
|
|
@@ -11223,12 +11223,12 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
11223
11223
|
};
|
|
11224
11224
|
const cacheSnapshot = storeLookup(selector, {
|
|
11225
11225
|
config,
|
|
11226
|
-
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
11226
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
11227
11227
|
});
|
|
11228
11228
|
return cacheSnapshot;
|
|
11229
11229
|
}
|
|
11230
11230
|
const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetricsById(untrustedConfig, requestContext) {
|
|
11231
|
-
const config = validateAdapterConfig(untrustedConfig, getSemanticSubMetricsById_ConfigPropertyNames);
|
|
11231
|
+
const config = validateAdapterConfig$1(untrustedConfig, getSemanticSubMetricsById_ConfigPropertyNames);
|
|
11232
11232
|
// Invalid or incomplete config
|
|
11233
11233
|
if (config === null) {
|
|
11234
11234
|
return null;
|
|
@@ -11237,6 +11237,222 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
11237
11237
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
11238
11238
|
};
|
|
11239
11239
|
|
|
11240
|
+
function select(luvio, params) {
|
|
11241
|
+
return select$i();
|
|
11242
|
+
}
|
|
11243
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
11244
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
11245
|
+
}
|
|
11246
|
+
function ingestSuccess(luvio, resourceParams, response) {
|
|
11247
|
+
const { body } = response;
|
|
11248
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
11249
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
11250
|
+
const snapshot = luvio.storeLookup({
|
|
11251
|
+
recordId: key,
|
|
11252
|
+
node: select(),
|
|
11253
|
+
variables: {},
|
|
11254
|
+
});
|
|
11255
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
11256
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
11257
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
11258
|
+
}
|
|
11259
|
+
}
|
|
11260
|
+
deepFreeze(snapshot.data);
|
|
11261
|
+
return snapshot;
|
|
11262
|
+
}
|
|
11263
|
+
function createResourceRequest(config) {
|
|
11264
|
+
const headers = {};
|
|
11265
|
+
return {
|
|
11266
|
+
baseUri: '/services/data/v63.0',
|
|
11267
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '',
|
|
11268
|
+
method: 'patch',
|
|
11269
|
+
body: config.body,
|
|
11270
|
+
urlParams: config.urlParams,
|
|
11271
|
+
queryParams: {},
|
|
11272
|
+
headers,
|
|
11273
|
+
priority: 'normal',
|
|
11274
|
+
};
|
|
11275
|
+
}
|
|
11276
|
+
|
|
11277
|
+
const adapterName = 'patchSemanticModel';
|
|
11278
|
+
const patchSemanticModel_ConfigPropertyMetadata = [
|
|
11279
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11280
|
+
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
11281
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
11282
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
11283
|
+
generateParamConfigMetadata('app', false, 2 /* Body */, 0 /* String */),
|
|
11284
|
+
generateParamConfigMetadata('categories', false, 2 /* Body */, 0 /* String */, true),
|
|
11285
|
+
generateParamConfigMetadata('dataspace', false, 2 /* Body */, 0 /* String */),
|
|
11286
|
+
generateParamConfigMetadata('queryUnrelatedDataObjects', false, 2 /* Body */, 0 /* String */),
|
|
11287
|
+
generateParamConfigMetadata('sourceCreation', false, 2 /* Body */, 0 /* String */),
|
|
11288
|
+
generateParamConfigMetadata('sourceCreationName', false, 2 /* Body */, 0 /* String */),
|
|
11289
|
+
generateParamConfigMetadata('baseModels', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11290
|
+
generateParamConfigMetadata('semanticCalculatedDimensions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11291
|
+
generateParamConfigMetadata('semanticCalculatedMeasurements', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11292
|
+
generateParamConfigMetadata('semanticDataObjects', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11293
|
+
generateParamConfigMetadata('semanticGroupings', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11294
|
+
generateParamConfigMetadata('semanticLogicalViews', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11295
|
+
generateParamConfigMetadata('semanticMetrics', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11296
|
+
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11297
|
+
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11298
|
+
];
|
|
11299
|
+
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, patchSemanticModel_ConfigPropertyMetadata);
|
|
11300
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$c(patchSemanticModel_ConfigPropertyMetadata);
|
|
11301
|
+
function typeCheckConfig(untrustedConfig) {
|
|
11302
|
+
const config = {};
|
|
11303
|
+
typeCheckConfig$c(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
11304
|
+
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
11305
|
+
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
11306
|
+
const untrustedConfig_baseModels_array = [];
|
|
11307
|
+
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
11308
|
+
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
11309
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$V(untrustedConfig_baseModels_item);
|
|
11310
|
+
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
11311
|
+
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
11312
|
+
}
|
|
11313
|
+
}
|
|
11314
|
+
config.baseModels = untrustedConfig_baseModels_array;
|
|
11315
|
+
}
|
|
11316
|
+
const untrustedConfig_semanticCalculatedDimensions = untrustedConfig.semanticCalculatedDimensions;
|
|
11317
|
+
if (ArrayIsArray$1(untrustedConfig_semanticCalculatedDimensions)) {
|
|
11318
|
+
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
11319
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
11320
|
+
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
11321
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$T(untrustedConfig_semanticCalculatedDimensions_item);
|
|
11322
|
+
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
11323
|
+
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
11324
|
+
}
|
|
11325
|
+
}
|
|
11326
|
+
config.semanticCalculatedDimensions = untrustedConfig_semanticCalculatedDimensions_array;
|
|
11327
|
+
}
|
|
11328
|
+
const untrustedConfig_semanticCalculatedMeasurements = untrustedConfig.semanticCalculatedMeasurements;
|
|
11329
|
+
if (ArrayIsArray$1(untrustedConfig_semanticCalculatedMeasurements)) {
|
|
11330
|
+
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
11331
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
11332
|
+
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
11333
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$S(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
11334
|
+
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
11335
|
+
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
11336
|
+
}
|
|
11337
|
+
}
|
|
11338
|
+
config.semanticCalculatedMeasurements = untrustedConfig_semanticCalculatedMeasurements_array;
|
|
11339
|
+
}
|
|
11340
|
+
const untrustedConfig_semanticDataObjects = untrustedConfig.semanticDataObjects;
|
|
11341
|
+
if (ArrayIsArray$1(untrustedConfig_semanticDataObjects)) {
|
|
11342
|
+
const untrustedConfig_semanticDataObjects_array = [];
|
|
11343
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
11344
|
+
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
11345
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$P(untrustedConfig_semanticDataObjects_item);
|
|
11346
|
+
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
11347
|
+
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
11348
|
+
}
|
|
11349
|
+
}
|
|
11350
|
+
config.semanticDataObjects = untrustedConfig_semanticDataObjects_array;
|
|
11351
|
+
}
|
|
11352
|
+
const untrustedConfig_semanticGroupings = untrustedConfig.semanticGroupings;
|
|
11353
|
+
if (ArrayIsArray$1(untrustedConfig_semanticGroupings)) {
|
|
11354
|
+
const untrustedConfig_semanticGroupings_array = [];
|
|
11355
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
11356
|
+
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
11357
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$I(untrustedConfig_semanticGroupings_item);
|
|
11358
|
+
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
11359
|
+
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
11360
|
+
}
|
|
11361
|
+
}
|
|
11362
|
+
config.semanticGroupings = untrustedConfig_semanticGroupings_array;
|
|
11363
|
+
}
|
|
11364
|
+
const untrustedConfig_semanticLogicalViews = untrustedConfig.semanticLogicalViews;
|
|
11365
|
+
if (ArrayIsArray$1(untrustedConfig_semanticLogicalViews)) {
|
|
11366
|
+
const untrustedConfig_semanticLogicalViews_array = [];
|
|
11367
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
11368
|
+
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
11369
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$D(untrustedConfig_semanticLogicalViews_item);
|
|
11370
|
+
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
11371
|
+
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
11372
|
+
}
|
|
11373
|
+
}
|
|
11374
|
+
config.semanticLogicalViews = untrustedConfig_semanticLogicalViews_array;
|
|
11375
|
+
}
|
|
11376
|
+
const untrustedConfig_semanticMetrics = untrustedConfig.semanticMetrics;
|
|
11377
|
+
if (ArrayIsArray$1(untrustedConfig_semanticMetrics)) {
|
|
11378
|
+
const untrustedConfig_semanticMetrics_array = [];
|
|
11379
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
11380
|
+
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
11381
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$z(untrustedConfig_semanticMetrics_item);
|
|
11382
|
+
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
11383
|
+
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
11384
|
+
}
|
|
11385
|
+
}
|
|
11386
|
+
config.semanticMetrics = untrustedConfig_semanticMetrics_array;
|
|
11387
|
+
}
|
|
11388
|
+
const untrustedConfig_semanticParameters = untrustedConfig.semanticParameters;
|
|
11389
|
+
if (ArrayIsArray$1(untrustedConfig_semanticParameters)) {
|
|
11390
|
+
const untrustedConfig_semanticParameters_array = [];
|
|
11391
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
11392
|
+
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
11393
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$y(untrustedConfig_semanticParameters_item);
|
|
11394
|
+
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
11395
|
+
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
11396
|
+
}
|
|
11397
|
+
}
|
|
11398
|
+
config.semanticParameters = untrustedConfig_semanticParameters_array;
|
|
11399
|
+
}
|
|
11400
|
+
const untrustedConfig_semanticRelationships = untrustedConfig.semanticRelationships;
|
|
11401
|
+
if (ArrayIsArray$1(untrustedConfig_semanticRelationships)) {
|
|
11402
|
+
const untrustedConfig_semanticRelationships_array = [];
|
|
11403
|
+
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
11404
|
+
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
11405
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$G(untrustedConfig_semanticRelationships_item);
|
|
11406
|
+
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
11407
|
+
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
11408
|
+
}
|
|
11409
|
+
}
|
|
11410
|
+
config.semanticRelationships = untrustedConfig_semanticRelationships_array;
|
|
11411
|
+
}
|
|
11412
|
+
return config;
|
|
11413
|
+
}
|
|
11414
|
+
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
11415
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
11416
|
+
return null;
|
|
11417
|
+
}
|
|
11418
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
11419
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
11420
|
+
}
|
|
11421
|
+
const config = typeCheckConfig(untrustedConfig);
|
|
11422
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11423
|
+
return null;
|
|
11424
|
+
}
|
|
11425
|
+
return config;
|
|
11426
|
+
}
|
|
11427
|
+
function buildNetworkSnapshot(luvio, config, options) {
|
|
11428
|
+
const resourceParams = createResourceParams(config);
|
|
11429
|
+
const request = createResourceRequest(resourceParams);
|
|
11430
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
11431
|
+
.then((response) => {
|
|
11432
|
+
return luvio.handleSuccessResponse(() => {
|
|
11433
|
+
const snapshot = ingestSuccess(luvio, resourceParams, response);
|
|
11434
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
11435
|
+
}, () => {
|
|
11436
|
+
const cache = new StoreKeyMap();
|
|
11437
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
11438
|
+
return cache;
|
|
11439
|
+
});
|
|
11440
|
+
}, (response) => {
|
|
11441
|
+
deepFreeze(response);
|
|
11442
|
+
throw response;
|
|
11443
|
+
});
|
|
11444
|
+
}
|
|
11445
|
+
const patchSemanticModelAdapterFactory = (luvio) => {
|
|
11446
|
+
return function patchSemanticModel(untrustedConfig) {
|
|
11447
|
+
const config = validateAdapterConfig(untrustedConfig, patchSemanticModel_ConfigPropertyNames);
|
|
11448
|
+
// Invalid or incomplete config
|
|
11449
|
+
if (config === null) {
|
|
11450
|
+
throw new Error('Invalid config for "patchSemanticModel"');
|
|
11451
|
+
}
|
|
11452
|
+
return buildNetworkSnapshot(luvio, config);
|
|
11453
|
+
};
|
|
11454
|
+
};
|
|
11455
|
+
|
|
11240
11456
|
let createSemanticModel;
|
|
11241
11457
|
let createSemanticSubMetric;
|
|
11242
11458
|
let deleteSemanticSubMetric;
|
|
@@ -11251,6 +11467,7 @@ let getSemanticSubMetric;
|
|
|
11251
11467
|
let getSemanticSubMetricNotifyChange;
|
|
11252
11468
|
let getSemanticSubMetrics;
|
|
11253
11469
|
let getSemanticSubMetricsById;
|
|
11470
|
+
let patchSemanticModel;
|
|
11254
11471
|
// Imperative GET Adapters
|
|
11255
11472
|
let getSemanticMetric_imperative;
|
|
11256
11473
|
let getSemanticMetrics_imperative;
|
|
@@ -11298,7 +11515,7 @@ function bindExportsTo(luvio) {
|
|
|
11298
11515
|
return {
|
|
11299
11516
|
createSemanticModel: unwrapSnapshotData(createSemanticModelAdapterFactory),
|
|
11300
11517
|
createSemanticSubMetric: unwrapSnapshotData(createSemanticSubMetricAdapterFactory),
|
|
11301
|
-
deleteSemanticSubMetric: createLDSAdapter(luvio, adapterName$
|
|
11518
|
+
deleteSemanticSubMetric: createLDSAdapter(luvio, adapterName$9, deleteSemanticSubMetricAdapterFactory),
|
|
11302
11519
|
getSemanticMetric: createWireAdapterConstructor(luvio, getSemanticMetric_ldsAdapter, getSemanticMetricMetadata),
|
|
11303
11520
|
getSemanticMetricNotifyChange: createLDSAdapter(luvio, 'getSemanticMetricNotifyChange', notifyChangeFactory$2),
|
|
11304
11521
|
getSemanticMetrics: createWireAdapterConstructor(luvio, getSemanticMetrics_ldsAdapter, getSemanticMetricsMetadata),
|
|
@@ -11310,6 +11527,7 @@ function bindExportsTo(luvio) {
|
|
|
11310
11527
|
getSemanticSubMetricNotifyChange: createLDSAdapter(luvio, 'getSemanticSubMetricNotifyChange', notifyChangeFactory),
|
|
11311
11528
|
getSemanticSubMetrics: createWireAdapterConstructor(luvio, getSemanticSubMetrics_ldsAdapter, getSemanticSubMetricsMetadata),
|
|
11312
11529
|
getSemanticSubMetricsById: createWireAdapterConstructor(luvio, getSemanticSubMetricsById_ldsAdapter, getSemanticSubMetricsByIdMetadata),
|
|
11530
|
+
patchSemanticModel: unwrapSnapshotData(patchSemanticModelAdapterFactory),
|
|
11313
11531
|
// Imperative GET Adapters
|
|
11314
11532
|
getSemanticMetric_imperative: createImperativeAdapter(luvio, getSemanticMetric_ldsAdapter, getSemanticMetricMetadata),
|
|
11315
11533
|
getSemanticMetrics_imperative: createImperativeAdapter(luvio, getSemanticMetrics_ldsAdapter, getSemanticMetricsMetadata),
|
|
@@ -11338,6 +11556,7 @@ withDefaultLuvio((luvio) => {
|
|
|
11338
11556
|
getSemanticSubMetricNotifyChange,
|
|
11339
11557
|
getSemanticSubMetrics,
|
|
11340
11558
|
getSemanticSubMetricsById,
|
|
11559
|
+
patchSemanticModel,
|
|
11341
11560
|
getSemanticMetric_imperative,
|
|
11342
11561
|
getSemanticMetrics_imperative,
|
|
11343
11562
|
getSemanticMetricsToSubMetrics_imperative,
|
|
@@ -11349,5 +11568,5 @@ withDefaultLuvio((luvio) => {
|
|
|
11349
11568
|
} = bindExportsTo(luvio));
|
|
11350
11569
|
});
|
|
11351
11570
|
|
|
11352
|
-
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 };
|
|
11353
|
-
// version: 1.
|
|
11571
|
+
export { createSemanticModel, createSemanticSubMetric, deleteSemanticSubMetric, getSemanticMetric, getSemanticMetricNotifyChange, getSemanticMetric_imperative, getSemanticMetrics, getSemanticMetricsToSubMetrics, getSemanticMetricsToSubMetrics_imperative, getSemanticMetrics_imperative, getSemanticModel, getSemanticModelNotifyChange, getSemanticModel_imperative, getSemanticModels, getSemanticModels_imperative, getSemanticSubMetric, getSemanticSubMetricNotifyChange, getSemanticSubMetric_imperative, getSemanticSubMetrics, getSemanticSubMetricsById, getSemanticSubMetricsById_imperative, getSemanticSubMetrics_imperative, patchSemanticModel };
|
|
11572
|
+
// version: 1.314.0-022b0c843b
|