@salesforce/lds-adapters-cdp-semantic-authoring 1.360.1 → 1.361.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 +117 -21
- package/dist/es/es2018/types/src/generated/resources/patchSsotSemanticModelsLogicalViewsByLogicalViewApiNameOrIdAndModelApiNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsDataObjectsByModelApiNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsLogicalViewsByModelApiNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsDataObjectsByDataObjectNameOrIdAndModelApiNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsLogicalViewsByLogicalViewApiNameOrIdAndModelApiNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/SemanticDataObjectInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SemanticDataObjectOutputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SemanticLogicalViewInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SemanticLogicalViewOutputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SemanticModelPartialInputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/SemanticModelPartialOutputRepresentation.d.ts +7 -1
- package/package.json +3 -3
- package/sfdc/index.js +118 -22
- package/src/raml/api.raml +32 -0
|
@@ -1356,7 +1356,7 @@ function validate$12(obj, path = 'SemanticMetricCollectionOutputRepresentation')
|
|
|
1356
1356
|
for (let i = 0; i < obj_metrics.length; i++) {
|
|
1357
1357
|
const obj_metrics_item = obj_metrics[i];
|
|
1358
1358
|
const path_metrics_item = path_metrics + '[' + i + ']';
|
|
1359
|
-
if (typeof obj_metrics_item !== 'object') {
|
|
1359
|
+
if (typeof obj_metrics_item !== 'object' || Array.isArray(obj_metrics_item)) {
|
|
1360
1360
|
return new TypeError('Expected "object" but received "' + typeof obj_metrics_item + '" (at "' + path_metrics_item + '")');
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
@@ -1646,12 +1646,19 @@ function equals$r(existing, incoming) {
|
|
|
1646
1646
|
return true;
|
|
1647
1647
|
}
|
|
1648
1648
|
|
|
1649
|
-
const VERSION$q = "
|
|
1649
|
+
const VERSION$q = "1014ce27a42cdfd4801e0ee44a71ca8d";
|
|
1650
1650
|
function validate$10(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
1651
1651
|
const v_error = (() => {
|
|
1652
1652
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1653
1653
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1654
1654
|
}
|
|
1655
|
+
if (obj.agentEnabled !== undefined) {
|
|
1656
|
+
const obj_agentEnabled = obj.agentEnabled;
|
|
1657
|
+
const path_agentEnabled = path + '.agentEnabled';
|
|
1658
|
+
if (typeof obj_agentEnabled !== 'boolean') {
|
|
1659
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_agentEnabled + '" (at "' + path_agentEnabled + '")');
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1655
1662
|
const obj_apiName = obj.apiName;
|
|
1656
1663
|
const path_apiName = path + '.apiName';
|
|
1657
1664
|
if (typeof obj_apiName !== 'string') {
|
|
@@ -1688,6 +1695,13 @@ function validate$10(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
1688
1695
|
}
|
|
1689
1696
|
}
|
|
1690
1697
|
}
|
|
1698
|
+
if (obj.businessPreferences !== undefined) {
|
|
1699
|
+
const obj_businessPreferences = obj.businessPreferences;
|
|
1700
|
+
const path_businessPreferences = path + '.businessPreferences';
|
|
1701
|
+
if (typeof obj_businessPreferences !== 'string') {
|
|
1702
|
+
return new TypeError('Expected "string" but received "' + typeof obj_businessPreferences + '" (at "' + path_businessPreferences + '")');
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1691
1705
|
if (obj.cacheKey !== undefined) {
|
|
1692
1706
|
const obj_cacheKey = obj.cacheKey;
|
|
1693
1707
|
const path_cacheKey = path + '.cacheKey';
|
|
@@ -1858,6 +1872,11 @@ const select$G = function SemanticModelPartialOutputRepresentationSelect() {
|
|
|
1858
1872
|
version: VERSION$q,
|
|
1859
1873
|
private: [],
|
|
1860
1874
|
selections: [
|
|
1875
|
+
{
|
|
1876
|
+
name: 'agentEnabled',
|
|
1877
|
+
kind: 'Scalar',
|
|
1878
|
+
required: false
|
|
1879
|
+
},
|
|
1861
1880
|
{
|
|
1862
1881
|
name: 'apiName',
|
|
1863
1882
|
kind: 'Scalar'
|
|
@@ -1879,6 +1898,11 @@ const select$G = function SemanticModelPartialOutputRepresentationSelect() {
|
|
|
1879
1898
|
selections: SemanticBaseModelOutputRepresentation__selections,
|
|
1880
1899
|
required: false
|
|
1881
1900
|
},
|
|
1901
|
+
{
|
|
1902
|
+
name: 'businessPreferences',
|
|
1903
|
+
kind: 'Scalar',
|
|
1904
|
+
required: false
|
|
1905
|
+
},
|
|
1882
1906
|
{
|
|
1883
1907
|
name: 'cacheKey',
|
|
1884
1908
|
kind: 'Scalar',
|
|
@@ -1980,6 +2004,19 @@ const select$G = function SemanticModelPartialOutputRepresentationSelect() {
|
|
|
1980
2004
|
};
|
|
1981
2005
|
};
|
|
1982
2006
|
function equals$q(existing, incoming) {
|
|
2007
|
+
const existing_agentEnabled = existing.agentEnabled;
|
|
2008
|
+
const incoming_agentEnabled = incoming.agentEnabled;
|
|
2009
|
+
// if at least one of these optionals is defined
|
|
2010
|
+
if (existing_agentEnabled !== undefined || incoming_agentEnabled !== undefined) {
|
|
2011
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2012
|
+
// not equal
|
|
2013
|
+
if (existing_agentEnabled === undefined || incoming_agentEnabled === undefined) {
|
|
2014
|
+
return false;
|
|
2015
|
+
}
|
|
2016
|
+
if (!(existing_agentEnabled === incoming_agentEnabled)) {
|
|
2017
|
+
return false;
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
1983
2020
|
const existing_isLocked = existing.isLocked;
|
|
1984
2021
|
const incoming_isLocked = incoming.isLocked;
|
|
1985
2022
|
// if at least one of these optionals is defined
|
|
@@ -2024,6 +2061,19 @@ function equals$q(existing, incoming) {
|
|
|
2024
2061
|
return false;
|
|
2025
2062
|
}
|
|
2026
2063
|
}
|
|
2064
|
+
const existing_businessPreferences = existing.businessPreferences;
|
|
2065
|
+
const incoming_businessPreferences = incoming.businessPreferences;
|
|
2066
|
+
// if at least one of these optionals is defined
|
|
2067
|
+
if (existing_businessPreferences !== undefined || incoming_businessPreferences !== undefined) {
|
|
2068
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2069
|
+
// not equal
|
|
2070
|
+
if (existing_businessPreferences === undefined || incoming_businessPreferences === undefined) {
|
|
2071
|
+
return false;
|
|
2072
|
+
}
|
|
2073
|
+
if (!(existing_businessPreferences === incoming_businessPreferences)) {
|
|
2074
|
+
return false;
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2027
2077
|
const existing_cacheKey = existing.cacheKey;
|
|
2028
2078
|
const incoming_cacheKey = incoming.cacheKey;
|
|
2029
2079
|
// if at least one of these optionals is defined
|
|
@@ -3342,6 +3392,13 @@ function validate$R(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3342
3392
|
return new TypeError('Expected "string" but received "' + typeof obj_logicalViewId + '" (at "' + path_logicalViewId + '")');
|
|
3343
3393
|
}
|
|
3344
3394
|
}
|
|
3395
|
+
if (obj.primaryNameField !== undefined) {
|
|
3396
|
+
const obj_primaryNameField = obj.primaryNameField;
|
|
3397
|
+
const path_primaryNameField = path + '.primaryNameField';
|
|
3398
|
+
if (typeof obj_primaryNameField !== 'string') {
|
|
3399
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryNameField + '" (at "' + path_primaryNameField + '")');
|
|
3400
|
+
}
|
|
3401
|
+
}
|
|
3345
3402
|
if (obj.semanticDimensions !== undefined) {
|
|
3346
3403
|
const obj_semanticDimensions = obj.semanticDimensions;
|
|
3347
3404
|
const path_semanticDimensions = path + '.semanticDimensions';
|
|
@@ -3932,6 +3989,13 @@ function validate$F(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3932
3989
|
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
3933
3990
|
}
|
|
3934
3991
|
}
|
|
3992
|
+
if (obj.primaryNameField !== undefined) {
|
|
3993
|
+
const obj_primaryNameField = obj.primaryNameField;
|
|
3994
|
+
const path_primaryNameField = path + '.primaryNameField';
|
|
3995
|
+
if (typeof obj_primaryNameField !== 'string') {
|
|
3996
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryNameField + '" (at "' + path_primaryNameField + '")');
|
|
3997
|
+
}
|
|
3998
|
+
}
|
|
3935
3999
|
if (obj.semanticDataObjects !== undefined) {
|
|
3936
4000
|
const obj_semanticDataObjects = obj.semanticDataObjects;
|
|
3937
4001
|
const path_semanticDataObjects = path + '.semanticDataObjects';
|
|
@@ -6571,7 +6635,7 @@ function validate$t(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
6571
6635
|
return v_error === undefined ? null : v_error;
|
|
6572
6636
|
}
|
|
6573
6637
|
|
|
6574
|
-
const VERSION$j = "
|
|
6638
|
+
const VERSION$j = "9792f3ddcf625ff2ab200ce7b653e1f4";
|
|
6575
6639
|
function validate$s(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
6576
6640
|
const v_error = (() => {
|
|
6577
6641
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6698,6 +6762,13 @@ function validate$s(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
6698
6762
|
return new TypeError('Expected "string" but received "' + typeof obj_logicalViewId + '" (at "' + path_logicalViewId + '")');
|
|
6699
6763
|
}
|
|
6700
6764
|
}
|
|
6765
|
+
if (obj.primaryNameField !== undefined) {
|
|
6766
|
+
const obj_primaryNameField = obj.primaryNameField;
|
|
6767
|
+
const path_primaryNameField = path + '.primaryNameField';
|
|
6768
|
+
if (typeof obj_primaryNameField !== 'string') {
|
|
6769
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryNameField + '" (at "' + path_primaryNameField + '")');
|
|
6770
|
+
}
|
|
6771
|
+
}
|
|
6701
6772
|
if (obj.semanticDimensions !== undefined) {
|
|
6702
6773
|
const obj_semanticDimensions = obj.semanticDimensions;
|
|
6703
6774
|
const path_semanticDimensions = path + '.semanticDimensions';
|
|
@@ -8396,7 +8467,7 @@ function validate$j(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
8396
8467
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
8397
8468
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
8398
8469
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
8399
|
-
if (typeof obj_semanticDataObjects_item !== 'object') {
|
|
8470
|
+
if (typeof obj_semanticDataObjects_item !== 'object' || Array.isArray(obj_semanticDataObjects_item)) {
|
|
8400
8471
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticDataObjects_item + '" (at "' + path_semanticDataObjects_item + '")');
|
|
8401
8472
|
}
|
|
8402
8473
|
}
|
|
@@ -8410,7 +8481,7 @@ function validate$j(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
8410
8481
|
for (let i = 0; i < obj_semanticMappedFields.length; i++) {
|
|
8411
8482
|
const obj_semanticMappedFields_item = obj_semanticMappedFields[i];
|
|
8412
8483
|
const path_semanticMappedFields_item = path_semanticMappedFields + '[' + i + ']';
|
|
8413
|
-
if (typeof obj_semanticMappedFields_item !== 'object') {
|
|
8484
|
+
if (typeof obj_semanticMappedFields_item !== 'object' || Array.isArray(obj_semanticMappedFields_item)) {
|
|
8414
8485
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticMappedFields_item + '" (at "' + path_semanticMappedFields_item + '")');
|
|
8415
8486
|
}
|
|
8416
8487
|
}
|
|
@@ -8725,7 +8796,7 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8725
8796
|
}
|
|
8726
8797
|
}
|
|
8727
8798
|
|
|
8728
|
-
const VERSION$9 = "
|
|
8799
|
+
const VERSION$9 = "666dcffd7f5590243626d818d9fa8c18";
|
|
8729
8800
|
function validate$i(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
8730
8801
|
const v_error = (() => {
|
|
8731
8802
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -8831,6 +8902,13 @@ function validate$i(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
8831
8902
|
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
8832
8903
|
}
|
|
8833
8904
|
}
|
|
8905
|
+
if (obj.primaryNameField !== undefined) {
|
|
8906
|
+
const obj_primaryNameField = obj.primaryNameField;
|
|
8907
|
+
const path_primaryNameField = path + '.primaryNameField';
|
|
8908
|
+
if (typeof obj_primaryNameField !== 'string') {
|
|
8909
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryNameField + '" (at "' + path_primaryNameField + '")');
|
|
8910
|
+
}
|
|
8911
|
+
}
|
|
8834
8912
|
if (obj.semanticDataObjects !== undefined) {
|
|
8835
8913
|
const obj_semanticDataObjects = obj.semanticDataObjects;
|
|
8836
8914
|
const path_semanticDataObjects = path + '.semanticDataObjects';
|
|
@@ -8840,7 +8918,7 @@ function validate$i(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
8840
8918
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
8841
8919
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
8842
8920
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
8843
|
-
if (typeof obj_semanticDataObjects_item !== 'object') {
|
|
8921
|
+
if (typeof obj_semanticDataObjects_item !== 'object' || Array.isArray(obj_semanticDataObjects_item)) {
|
|
8844
8922
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticDataObjects_item + '" (at "' + path_semanticDataObjects_item + '")');
|
|
8845
8923
|
}
|
|
8846
8924
|
}
|
|
@@ -8854,7 +8932,7 @@ function validate$i(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
8854
8932
|
for (let i = 0; i < obj_semanticRelationships.length; i++) {
|
|
8855
8933
|
const obj_semanticRelationships_item = obj_semanticRelationships[i];
|
|
8856
8934
|
const path_semanticRelationships_item = path_semanticRelationships + '[' + i + ']';
|
|
8857
|
-
if (typeof obj_semanticRelationships_item !== 'object') {
|
|
8935
|
+
if (typeof obj_semanticRelationships_item !== 'object' || Array.isArray(obj_semanticRelationships_item)) {
|
|
8858
8936
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticRelationships_item + '" (at "' + path_semanticRelationships_item + '")');
|
|
8859
8937
|
}
|
|
8860
8938
|
}
|
|
@@ -8868,7 +8946,7 @@ function validate$i(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
8868
8946
|
for (let i = 0; i < obj_semanticUnions.length; i++) {
|
|
8869
8947
|
const obj_semanticUnions_item = obj_semanticUnions[i];
|
|
8870
8948
|
const path_semanticUnions_item = path_semanticUnions + '[' + i + ']';
|
|
8871
|
-
if (typeof obj_semanticUnions_item !== 'object') {
|
|
8949
|
+
if (typeof obj_semanticUnions_item !== 'object' || Array.isArray(obj_semanticUnions_item)) {
|
|
8872
8950
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticUnions_item + '" (at "' + path_semanticUnions_item + '")');
|
|
8873
8951
|
}
|
|
8874
8952
|
}
|
|
@@ -9039,6 +9117,11 @@ const select$o = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
9039
9117
|
kind: 'Scalar',
|
|
9040
9118
|
required: false
|
|
9041
9119
|
},
|
|
9120
|
+
{
|
|
9121
|
+
name: 'primaryNameField',
|
|
9122
|
+
kind: 'Scalar',
|
|
9123
|
+
required: false
|
|
9124
|
+
},
|
|
9042
9125
|
{
|
|
9043
9126
|
name: 'semanticDataObjects',
|
|
9044
9127
|
kind: 'Link',
|
|
@@ -9229,6 +9312,19 @@ function equals$9(existing, incoming) {
|
|
|
9229
9312
|
return false;
|
|
9230
9313
|
}
|
|
9231
9314
|
}
|
|
9315
|
+
const existing_primaryNameField = existing.primaryNameField;
|
|
9316
|
+
const incoming_primaryNameField = incoming.primaryNameField;
|
|
9317
|
+
// if at least one of these optionals is defined
|
|
9318
|
+
if (existing_primaryNameField !== undefined || incoming_primaryNameField !== undefined) {
|
|
9319
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9320
|
+
// not equal
|
|
9321
|
+
if (existing_primaryNameField === undefined || incoming_primaryNameField === undefined) {
|
|
9322
|
+
return false;
|
|
9323
|
+
}
|
|
9324
|
+
if (!(existing_primaryNameField === incoming_primaryNameField)) {
|
|
9325
|
+
return false;
|
|
9326
|
+
}
|
|
9327
|
+
}
|
|
9232
9328
|
const existing_semanticViewTypeEnum = existing.semanticViewTypeEnum;
|
|
9233
9329
|
const incoming_semanticViewTypeEnum = incoming.semanticViewTypeEnum;
|
|
9234
9330
|
// if at least one of these optionals is defined
|
|
@@ -10152,7 +10248,7 @@ function validate$f(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
10152
10248
|
for (let i = 0; i < obj_semanticCalculatedDimensions.length; i++) {
|
|
10153
10249
|
const obj_semanticCalculatedDimensions_item = obj_semanticCalculatedDimensions[i];
|
|
10154
10250
|
const path_semanticCalculatedDimensions_item = path_semanticCalculatedDimensions + '[' + i + ']';
|
|
10155
|
-
if (typeof obj_semanticCalculatedDimensions_item !== 'object') {
|
|
10251
|
+
if (typeof obj_semanticCalculatedDimensions_item !== 'object' || Array.isArray(obj_semanticCalculatedDimensions_item)) {
|
|
10156
10252
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticCalculatedDimensions_item + '" (at "' + path_semanticCalculatedDimensions_item + '")');
|
|
10157
10253
|
}
|
|
10158
10254
|
}
|
|
@@ -10173,7 +10269,7 @@ function validate$f(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
10173
10269
|
for (let i = 0; i < obj_semanticCalculatedMeasurements.length; i++) {
|
|
10174
10270
|
const obj_semanticCalculatedMeasurements_item = obj_semanticCalculatedMeasurements[i];
|
|
10175
10271
|
const path_semanticCalculatedMeasurements_item = path_semanticCalculatedMeasurements + '[' + i + ']';
|
|
10176
|
-
if (typeof obj_semanticCalculatedMeasurements_item !== 'object') {
|
|
10272
|
+
if (typeof obj_semanticCalculatedMeasurements_item !== 'object' || Array.isArray(obj_semanticCalculatedMeasurements_item)) {
|
|
10177
10273
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticCalculatedMeasurements_item + '" (at "' + path_semanticCalculatedMeasurements_item + '")');
|
|
10178
10274
|
}
|
|
10179
10275
|
}
|
|
@@ -10194,7 +10290,7 @@ function validate$f(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
10194
10290
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
10195
10291
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
10196
10292
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
10197
|
-
if (typeof obj_semanticDataObjects_item !== 'object') {
|
|
10293
|
+
if (typeof obj_semanticDataObjects_item !== 'object' || Array.isArray(obj_semanticDataObjects_item)) {
|
|
10198
10294
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticDataObjects_item + '" (at "' + path_semanticDataObjects_item + '")');
|
|
10199
10295
|
}
|
|
10200
10296
|
}
|
|
@@ -10215,7 +10311,7 @@ function validate$f(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
10215
10311
|
for (let i = 0; i < obj_semanticGroupings.length; i++) {
|
|
10216
10312
|
const obj_semanticGroupings_item = obj_semanticGroupings[i];
|
|
10217
10313
|
const path_semanticGroupings_item = path_semanticGroupings + '[' + i + ']';
|
|
10218
|
-
if (typeof obj_semanticGroupings_item !== 'object') {
|
|
10314
|
+
if (typeof obj_semanticGroupings_item !== 'object' || Array.isArray(obj_semanticGroupings_item)) {
|
|
10219
10315
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticGroupings_item + '" (at "' + path_semanticGroupings_item + '")');
|
|
10220
10316
|
}
|
|
10221
10317
|
}
|
|
@@ -10257,7 +10353,7 @@ function validate$f(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
10257
10353
|
for (let i = 0; i < obj_semanticLogicalViews.length; i++) {
|
|
10258
10354
|
const obj_semanticLogicalViews_item = obj_semanticLogicalViews[i];
|
|
10259
10355
|
const path_semanticLogicalViews_item = path_semanticLogicalViews + '[' + i + ']';
|
|
10260
|
-
if (typeof obj_semanticLogicalViews_item !== 'object') {
|
|
10356
|
+
if (typeof obj_semanticLogicalViews_item !== 'object' || Array.isArray(obj_semanticLogicalViews_item)) {
|
|
10261
10357
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticLogicalViews_item + '" (at "' + path_semanticLogicalViews_item + '")');
|
|
10262
10358
|
}
|
|
10263
10359
|
}
|
|
@@ -10271,7 +10367,7 @@ function validate$f(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
10271
10367
|
for (let i = 0; i < obj_semanticMetrics.length; i++) {
|
|
10272
10368
|
const obj_semanticMetrics_item = obj_semanticMetrics[i];
|
|
10273
10369
|
const path_semanticMetrics_item = path_semanticMetrics + '[' + i + ']';
|
|
10274
|
-
if (typeof obj_semanticMetrics_item !== 'object') {
|
|
10370
|
+
if (typeof obj_semanticMetrics_item !== 'object' || Array.isArray(obj_semanticMetrics_item)) {
|
|
10275
10371
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticMetrics_item + '" (at "' + path_semanticMetrics_item + '")');
|
|
10276
10372
|
}
|
|
10277
10373
|
}
|
|
@@ -10285,7 +10381,7 @@ function validate$f(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
10285
10381
|
for (let i = 0; i < obj_semanticParameters.length; i++) {
|
|
10286
10382
|
const obj_semanticParameters_item = obj_semanticParameters[i];
|
|
10287
10383
|
const path_semanticParameters_item = path_semanticParameters + '[' + i + ']';
|
|
10288
|
-
if (typeof obj_semanticParameters_item !== 'object') {
|
|
10384
|
+
if (typeof obj_semanticParameters_item !== 'object' || Array.isArray(obj_semanticParameters_item)) {
|
|
10289
10385
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticParameters_item + '" (at "' + path_semanticParameters_item + '")');
|
|
10290
10386
|
}
|
|
10291
10387
|
}
|
|
@@ -10306,7 +10402,7 @@ function validate$f(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
10306
10402
|
for (let i = 0; i < obj_semanticRelationships.length; i++) {
|
|
10307
10403
|
const obj_semanticRelationships_item = obj_semanticRelationships[i];
|
|
10308
10404
|
const path_semanticRelationships_item = path_semanticRelationships + '[' + i + ']';
|
|
10309
|
-
if (typeof obj_semanticRelationships_item !== 'object') {
|
|
10405
|
+
if (typeof obj_semanticRelationships_item !== 'object' || Array.isArray(obj_semanticRelationships_item)) {
|
|
10310
10406
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticRelationships_item + '" (at "' + path_semanticRelationships_item + '")');
|
|
10311
10407
|
}
|
|
10312
10408
|
}
|
|
@@ -11868,7 +11964,7 @@ function validate$e(obj, path = 'SemanticDependencyInnerCollectionOutputRepresen
|
|
|
11868
11964
|
for (let i = 0; i < obj_dependencies.length; i++) {
|
|
11869
11965
|
const obj_dependencies_item = obj_dependencies[i];
|
|
11870
11966
|
const path_dependencies_item = path_dependencies + '[' + i + ']';
|
|
11871
|
-
if (typeof obj_dependencies_item !== 'object') {
|
|
11967
|
+
if (typeof obj_dependencies_item !== 'object' || Array.isArray(obj_dependencies_item)) {
|
|
11872
11968
|
return new TypeError('Expected "object" but received "' + typeof obj_dependencies_item + '" (at "' + path_dependencies_item + '")');
|
|
11873
11969
|
}
|
|
11874
11970
|
}
|
|
@@ -13100,7 +13196,7 @@ function validate$4(obj, path = 'SemanticSubMetricsByMetricOutputRepresentation'
|
|
|
13100
13196
|
for (let i = 0; i < obj_subMetrics.length; i++) {
|
|
13101
13197
|
const obj_subMetrics_item = obj_subMetrics[i];
|
|
13102
13198
|
const path_subMetrics_item = path_subMetrics + '[' + i + ']';
|
|
13103
|
-
if (typeof obj_subMetrics_item !== 'object') {
|
|
13199
|
+
if (typeof obj_subMetrics_item !== 'object' || Array.isArray(obj_subMetrics_item)) {
|
|
13104
13200
|
return new TypeError('Expected "object" but received "' + typeof obj_subMetrics_item + '" (at "' + path_subMetrics_item + '")');
|
|
13105
13201
|
}
|
|
13106
13202
|
}
|
|
@@ -13228,7 +13324,7 @@ function validate$3(obj, path = 'SemanticSubMetricsByMetricCollectionOutputRepre
|
|
|
13228
13324
|
for (let i = 0; i < obj_items.length; i++) {
|
|
13229
13325
|
const obj_items_item = obj_items[i];
|
|
13230
13326
|
const path_items_item = path_items + '[' + i + ']';
|
|
13231
|
-
if (typeof obj_items_item !== 'object') {
|
|
13327
|
+
if (typeof obj_items_item !== 'object' || Array.isArray(obj_items_item)) {
|
|
13232
13328
|
return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
|
|
13233
13329
|
}
|
|
13234
13330
|
}
|
|
@@ -13738,7 +13834,7 @@ function validate$2(obj, path = 'SemanticSubMetricCollectionOutputRepresentation
|
|
|
13738
13834
|
for (let i = 0; i < obj_items.length; i++) {
|
|
13739
13835
|
const obj_items_item = obj_items[i];
|
|
13740
13836
|
const path_items_item = path_items + '[' + i + ']';
|
|
13741
|
-
if (typeof obj_items_item !== 'object') {
|
|
13837
|
+
if (typeof obj_items_item !== 'object' || Array.isArray(obj_items_item)) {
|
|
13742
13838
|
return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
|
|
13743
13839
|
}
|
|
13744
13840
|
}
|
|
@@ -20,6 +20,7 @@ export interface ResourceRequestConfig {
|
|
|
20
20
|
semanticDataObjects?: Array<types_SemanticDataObjectInputRepresentation_SemanticDataObjectInputRepresentation>;
|
|
21
21
|
semanticRelationships?: Array<types_SemanticRelationshipInputRepresentation_SemanticRelationshipInputRepresentation>;
|
|
22
22
|
semanticUnions?: Array<types_SemanticUnionInputRepresentation_SemanticUnionInputRepresentation>;
|
|
23
|
+
primaryNameField?: string;
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -20,6 +20,7 @@ export interface ResourceRequestConfig {
|
|
|
20
20
|
semanticMeasurements?: Array<types_SemanticMeasurementInputRepresentation_SemanticMeasurementInputRepresentation>;
|
|
21
21
|
shouldIncludeAllFields?: boolean;
|
|
22
22
|
tableType?: string;
|
|
23
|
+
primaryNameField?: string;
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -19,6 +19,7 @@ export interface ResourceRequestConfig {
|
|
|
19
19
|
semanticDataObjects?: Array<types_SemanticDataObjectInputRepresentation_SemanticDataObjectInputRepresentation>;
|
|
20
20
|
semanticRelationships?: Array<types_SemanticRelationshipInputRepresentation_SemanticRelationshipInputRepresentation>;
|
|
21
21
|
semanticUnions?: Array<types_SemanticUnionInputRepresentation_SemanticUnionInputRepresentation>;
|
|
22
|
+
primaryNameField?: string;
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -21,6 +21,7 @@ export interface ResourceRequestConfig {
|
|
|
21
21
|
semanticMeasurements?: Array<types_SemanticMeasurementInputRepresentation_SemanticMeasurementInputRepresentation>;
|
|
22
22
|
shouldIncludeAllFields?: boolean;
|
|
23
23
|
tableType?: string;
|
|
24
|
+
primaryNameField?: string;
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -20,6 +20,7 @@ export interface ResourceRequestConfig {
|
|
|
20
20
|
semanticDataObjects?: Array<types_SemanticDataObjectInputRepresentation_SemanticDataObjectInputRepresentation>;
|
|
21
21
|
semanticRelationships?: Array<types_SemanticRelationshipInputRepresentation_SemanticRelationshipInputRepresentation>;
|
|
22
22
|
semanticUnions?: Array<types_SemanticUnionInputRepresentation_SemanticUnionInputRepresentation>;
|
|
23
|
+
primaryNameField?: string;
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -2,7 +2,7 @@ import { SemanticFilterInputRepresentation as SemanticFilterInputRepresentation_
|
|
|
2
2
|
import { SemanticDimensionInputRepresentation as SemanticDimensionInputRepresentation_SemanticDimensionInputRepresentation } from './SemanticDimensionInputRepresentation';
|
|
3
3
|
import { SemanticMeasurementInputRepresentation as SemanticMeasurementInputRepresentation_SemanticMeasurementInputRepresentation } from './SemanticMeasurementInputRepresentation';
|
|
4
4
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "7a04d435273b231d32ee8714db4e8995";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export declare function normalize(input: SemanticDataObjectInputRepresentation, existing: SemanticDataObjectInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SemanticDataObjectInputRepresentationNormalized;
|
|
@@ -33,6 +33,8 @@ export interface SemanticDataObjectInputRepresentationNormalized {
|
|
|
33
33
|
label?: string;
|
|
34
34
|
/** The object ID of a specific Logical View. */
|
|
35
35
|
logicalViewId?: string;
|
|
36
|
+
/** Allow experts to indicate which field is the representation of a table. */
|
|
37
|
+
primaryNameField?: string;
|
|
36
38
|
/** The semantic dimension fields that you want to be referenced through the semantic data object. */
|
|
37
39
|
semanticDimensions?: Array<SemanticDimensionInputRepresentation_SemanticDimensionInputRepresentation>;
|
|
38
40
|
/** The semantic measurement fields that you want to be referenced through the semantic data object. */
|
|
@@ -57,6 +59,7 @@ export interface SemanticDataObjectInputRepresentation {
|
|
|
57
59
|
filters?: Array<SemanticFilterInputRepresentation_SemanticFilterInputRepresentation>;
|
|
58
60
|
label?: string;
|
|
59
61
|
logicalViewId?: string;
|
|
62
|
+
primaryNameField?: string;
|
|
60
63
|
semanticDimensions?: Array<SemanticDimensionInputRepresentation_SemanticDimensionInputRepresentation>;
|
|
61
64
|
semanticMeasurements?: Array<SemanticMeasurementInputRepresentation_SemanticMeasurementInputRepresentation>;
|
|
62
65
|
shouldIncludeAllFields?: boolean;
|
package/dist/es/es2018/types/src/generated/types/SemanticDataObjectOutputRepresentation.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SemanticFilterOutputRepresentation as SemanticFilterOutputRepresentatio
|
|
|
2
2
|
import { SemanticDimensionOutputRepresentation as SemanticDimensionOutputRepresentation_SemanticDimensionOutputRepresentation } from './SemanticDimensionOutputRepresentation';
|
|
3
3
|
import { SemanticMeasurementOutputRepresentation as SemanticMeasurementOutputRepresentation_SemanticMeasurementOutputRepresentation } from './SemanticMeasurementOutputRepresentation';
|
|
4
4
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "9792f3ddcf625ff2ab200ce7b653e1f4";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -60,6 +60,8 @@ export interface SemanticDataObjectOutputRepresentationNormalized {
|
|
|
60
60
|
lastModifiedDate?: string;
|
|
61
61
|
/** The API name of the referenced logical view. */
|
|
62
62
|
logicalViewId?: string;
|
|
63
|
+
/** Allow experts to indicate which field is the representation of a table. */
|
|
64
|
+
primaryNameField?: string;
|
|
63
65
|
/** The list of the referenced semantic dimensions. */
|
|
64
66
|
semanticDimensions?: Array<$64$luvio_engine_StoreLink>;
|
|
65
67
|
/** The uri for this semantic data object’s semantic dimensions. */
|
|
@@ -99,6 +101,7 @@ export interface SemanticDataObjectOutputRepresentation {
|
|
|
99
101
|
lastModifiedBy?: string;
|
|
100
102
|
lastModifiedDate?: string;
|
|
101
103
|
logicalViewId?: string;
|
|
104
|
+
primaryNameField?: string;
|
|
102
105
|
semanticDimensions?: Array<SemanticDimensionOutputRepresentation_SemanticDimensionOutputRepresentation>;
|
|
103
106
|
semanticDimensionsUrl?: string;
|
|
104
107
|
semanticMeasurements?: Array<SemanticMeasurementOutputRepresentation_SemanticMeasurementOutputRepresentation>;
|
package/dist/es/es2018/types/src/generated/types/SemanticLogicalViewInputRepresentation.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { SemanticDataObjectInputRepresentation as SemanticDataObjectInputReprese
|
|
|
3
3
|
import { SemanticRelationshipInputRepresentation as SemanticRelationshipInputRepresentation_SemanticRelationshipInputRepresentation } from './SemanticRelationshipInputRepresentation';
|
|
4
4
|
import { SemanticUnionInputRepresentation as SemanticUnionInputRepresentation_SemanticUnionInputRepresentation } from './SemanticUnionInputRepresentation';
|
|
5
5
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
6
|
-
export declare const VERSION = "
|
|
6
|
+
export declare const VERSION = "f99463018178ab52251cd87421da4185";
|
|
7
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
8
8
|
export declare const RepresentationType: string;
|
|
9
9
|
export declare function normalize(input: SemanticLogicalViewInputRepresentation, existing: SemanticLogicalViewInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SemanticLogicalViewInputRepresentationNormalized;
|
|
@@ -30,6 +30,8 @@ export interface SemanticLogicalViewInputRepresentationNormalized {
|
|
|
30
30
|
filters?: Array<SemanticFilterInputRepresentation_SemanticFilterInputRepresentation>;
|
|
31
31
|
/** The display name of the semantic entity. Optional, if not specified will use the same as the api name but instead of “_” will use spaces. */
|
|
32
32
|
label?: string;
|
|
33
|
+
/** Allow experts to indicate which field is the representation of a table. */
|
|
34
|
+
primaryNameField?: string;
|
|
33
35
|
/** The semantic data objects within the logical view. */
|
|
34
36
|
semanticDataObjects?: Array<SemanticDataObjectInputRepresentation_SemanticDataObjectInputRepresentation>;
|
|
35
37
|
/** Represents the possible joins within the logical view. */
|
|
@@ -52,6 +54,7 @@ export interface SemanticLogicalViewInputRepresentation {
|
|
|
52
54
|
filterLogic?: string;
|
|
53
55
|
filters?: Array<SemanticFilterInputRepresentation_SemanticFilterInputRepresentation>;
|
|
54
56
|
label?: string;
|
|
57
|
+
primaryNameField?: string;
|
|
55
58
|
semanticDataObjects?: Array<SemanticDataObjectInputRepresentation_SemanticDataObjectInputRepresentation>;
|
|
56
59
|
semanticRelationships?: Array<SemanticRelationshipInputRepresentation_SemanticRelationshipInputRepresentation>;
|
|
57
60
|
semanticUnions?: Array<SemanticUnionInputRepresentation_SemanticUnionInputRepresentation>;
|
package/dist/es/es2018/types/src/generated/types/SemanticLogicalViewOutputRepresentation.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $
|
|
|
3
3
|
import { SemanticDataObjectOutputRepresentation as SemanticDataObjectOutputRepresentation_SemanticDataObjectOutputRepresentation } from './SemanticDataObjectOutputRepresentation';
|
|
4
4
|
import { SemanticRelationshipOutputRepresentation as SemanticRelationshipOutputRepresentation_SemanticRelationshipOutputRepresentation } from './SemanticRelationshipOutputRepresentation';
|
|
5
5
|
import { SemanticUnionOutputRepresentation as SemanticUnionOutputRepresentation_SemanticUnionOutputRepresentation } from './SemanticUnionOutputRepresentation';
|
|
6
|
-
export declare const VERSION = "
|
|
6
|
+
export declare const VERSION = "666dcffd7f5590243626d818d9fa8c18";
|
|
7
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
8
8
|
export declare const RepresentationType: string;
|
|
9
9
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -68,6 +68,8 @@ export interface SemanticLogicalViewOutputRepresentationNormalized {
|
|
|
68
68
|
lastModifiedBy?: string;
|
|
69
69
|
/** The date in which the semantic entity was last modified. */
|
|
70
70
|
lastModifiedDate?: string;
|
|
71
|
+
/** Allow experts to indicate which field is the representation of a table. */
|
|
72
|
+
primaryNameField?: string;
|
|
71
73
|
/** The list of the referenced semantic data objects. */
|
|
72
74
|
semanticDataObjects?: Array<$64$luvio_engine_StoreLink>;
|
|
73
75
|
/** The list of the referenced semantic relationships. */
|
|
@@ -102,6 +104,7 @@ export interface SemanticLogicalViewOutputRepresentation {
|
|
|
102
104
|
label?: string;
|
|
103
105
|
lastModifiedBy?: string;
|
|
104
106
|
lastModifiedDate?: string;
|
|
107
|
+
primaryNameField?: string;
|
|
105
108
|
semanticDataObjects?: Array<SemanticDataObjectOutputRepresentation_SemanticDataObjectOutputRepresentation>;
|
|
106
109
|
semanticRelationships?: Array<SemanticRelationshipOutputRepresentation_SemanticRelationshipOutputRepresentation>;
|
|
107
110
|
semanticUnions?: Array<SemanticUnionOutputRepresentation_SemanticUnionOutputRepresentation>;
|
package/dist/es/es2018/types/src/generated/types/SemanticModelPartialInputRepresentation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "e97e03944caf9f900d55ae924d662f3d";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: SemanticModelPartialInputRepresentation, existing: SemanticModelPartialInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SemanticModelPartialInputRepresentationNormalized;
|
|
@@ -14,10 +14,14 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface SemanticModelPartialInputRepresentationNormalized {
|
|
17
|
+
/** Indicates whether agent features are enabled for this model. */
|
|
18
|
+
agentEnabled?: boolean;
|
|
17
19
|
/** The API name of the semantic entity. */
|
|
18
20
|
apiName?: string;
|
|
19
21
|
/** App to which the Semantic Model belongs. */
|
|
20
22
|
app?: string;
|
|
23
|
+
/** Allow Analysts to include business-specific preferences or context. */
|
|
24
|
+
businessPreferences?: string;
|
|
21
25
|
/** Product category of the Semantic Model. Valid values are Marketing, Commerce, Sales, Service, and Other. */
|
|
22
26
|
categories?: Array<string>;
|
|
23
27
|
/** Required. Dataspace in which the Semantic Model is located. */
|
|
@@ -40,8 +44,10 @@ export interface SemanticModelPartialInputRepresentationNormalized {
|
|
|
40
44
|
* (none)
|
|
41
45
|
*/
|
|
42
46
|
export interface SemanticModelPartialInputRepresentation {
|
|
47
|
+
agentEnabled?: boolean;
|
|
43
48
|
apiName?: string;
|
|
44
49
|
app?: string;
|
|
50
|
+
businessPreferences?: string;
|
|
45
51
|
categories?: Array<string>;
|
|
46
52
|
dataspace?: string;
|
|
47
53
|
description?: string;
|
package/dist/es/es2018/types/src/generated/types/SemanticModelPartialOutputRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SemanticBaseModelOutputRepresentation as SemanticBaseModelOutputRepresentation_SemanticBaseModelOutputRepresentation } from './SemanticBaseModelOutputRepresentation';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "1014ce27a42cdfd4801e0ee44a71ca8d";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: SemanticModelPartialOutputRepresentation, existing: SemanticModelPartialOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SemanticModelPartialOutputRepresentationNormalized;
|
|
@@ -15,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
17
|
export interface SemanticModelPartialOutputRepresentationNormalized {
|
|
18
|
+
/** Indicates whether agent features are enabled for this model. */
|
|
19
|
+
agentEnabled?: boolean;
|
|
18
20
|
/** The API name of the semantic entity. */
|
|
19
21
|
apiName: string;
|
|
20
22
|
/** App to which the Semantic Model belongs. */
|
|
@@ -23,6 +25,8 @@ export interface SemanticModelPartialOutputRepresentationNormalized {
|
|
|
23
25
|
baseModelApiName?: string;
|
|
24
26
|
/** List of base models, the current model is extending. */
|
|
25
27
|
baseModels?: Array<SemanticBaseModelOutputRepresentation_SemanticBaseModelOutputRepresentation>;
|
|
28
|
+
/** Allow Analysts to include business-specific preferences or context. */
|
|
29
|
+
businessPreferences?: string;
|
|
26
30
|
/** The Canonical URL of the collection for caching purposes only. */
|
|
27
31
|
cacheKey?: string;
|
|
28
32
|
/** Product category of the Semantic Model. Valid values are Marketing, Commerce, Sales, Service, and Other. */
|
|
@@ -71,10 +75,12 @@ export interface SemanticModelPartialOutputRepresentationNormalized {
|
|
|
71
75
|
* (none)
|
|
72
76
|
*/
|
|
73
77
|
export interface SemanticModelPartialOutputRepresentation {
|
|
78
|
+
agentEnabled?: boolean;
|
|
74
79
|
apiName: string;
|
|
75
80
|
app?: string;
|
|
76
81
|
baseModelApiName?: string;
|
|
77
82
|
baseModels?: Array<SemanticBaseModelOutputRepresentation_SemanticBaseModelOutputRepresentation>;
|
|
83
|
+
businessPreferences?: string;
|
|
78
84
|
cacheKey?: string;
|
|
79
85
|
categories?: Array<string>;
|
|
80
86
|
createdBy: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-cdp-semantic-authoring",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.361.0",
|
|
4
4
|
"description": "Semantic Authoring",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/cdp-semantic-authoring.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.361.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.361.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1186,6 +1186,13 @@ function validate$X(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
1186
1186
|
return new TypeError('Expected "string" but received "' + typeof obj_logicalViewId + '" (at "' + path_logicalViewId + '")');
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
|
+
if (obj.primaryNameField !== undefined) {
|
|
1190
|
+
const obj_primaryNameField = obj.primaryNameField;
|
|
1191
|
+
const path_primaryNameField = path + '.primaryNameField';
|
|
1192
|
+
if (typeof obj_primaryNameField !== 'string') {
|
|
1193
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryNameField + '" (at "' + path_primaryNameField + '")');
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1189
1196
|
if (obj.semanticDimensions !== undefined) {
|
|
1190
1197
|
const obj_semanticDimensions = obj.semanticDimensions;
|
|
1191
1198
|
const path_semanticDimensions = path + '.semanticDimensions';
|
|
@@ -1776,6 +1783,13 @@ function validate$L(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
1776
1783
|
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1777
1784
|
}
|
|
1778
1785
|
}
|
|
1786
|
+
if (obj.primaryNameField !== undefined) {
|
|
1787
|
+
const obj_primaryNameField = obj.primaryNameField;
|
|
1788
|
+
const path_primaryNameField = path + '.primaryNameField';
|
|
1789
|
+
if (typeof obj_primaryNameField !== 'string') {
|
|
1790
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryNameField + '" (at "' + path_primaryNameField + '")');
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1779
1793
|
if (obj.semanticDataObjects !== undefined) {
|
|
1780
1794
|
const obj_semanticDataObjects = obj.semanticDataObjects;
|
|
1781
1795
|
const path_semanticDataObjects = path + '.semanticDataObjects';
|
|
@@ -4611,7 +4625,7 @@ function validate$x(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
4611
4625
|
return v_error === undefined ? null : v_error;
|
|
4612
4626
|
}
|
|
4613
4627
|
|
|
4614
|
-
const VERSION$r = "
|
|
4628
|
+
const VERSION$r = "9792f3ddcf625ff2ab200ce7b653e1f4";
|
|
4615
4629
|
function validate$w(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
4616
4630
|
const v_error = (() => {
|
|
4617
4631
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4738,6 +4752,13 @@ function validate$w(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
4738
4752
|
return new TypeError('Expected "string" but received "' + typeof obj_logicalViewId + '" (at "' + path_logicalViewId + '")');
|
|
4739
4753
|
}
|
|
4740
4754
|
}
|
|
4755
|
+
if (obj.primaryNameField !== undefined) {
|
|
4756
|
+
const obj_primaryNameField = obj.primaryNameField;
|
|
4757
|
+
const path_primaryNameField = path + '.primaryNameField';
|
|
4758
|
+
if (typeof obj_primaryNameField !== 'string') {
|
|
4759
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryNameField + '" (at "' + path_primaryNameField + '")');
|
|
4760
|
+
}
|
|
4761
|
+
}
|
|
4741
4762
|
if (obj.semanticDimensions !== undefined) {
|
|
4742
4763
|
const obj_semanticDimensions = obj.semanticDimensions;
|
|
4743
4764
|
const path_semanticDimensions = path + '.semanticDimensions';
|
|
@@ -6585,7 +6606,7 @@ function validate$l(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
6585
6606
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
6586
6607
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
6587
6608
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
6588
|
-
if (typeof obj_semanticDataObjects_item !== 'object') {
|
|
6609
|
+
if (typeof obj_semanticDataObjects_item !== 'object' || Array.isArray(obj_semanticDataObjects_item)) {
|
|
6589
6610
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticDataObjects_item + '" (at "' + path_semanticDataObjects_item + '")');
|
|
6590
6611
|
}
|
|
6591
6612
|
}
|
|
@@ -6599,7 +6620,7 @@ function validate$l(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
6599
6620
|
for (let i = 0; i < obj_semanticMappedFields.length; i++) {
|
|
6600
6621
|
const obj_semanticMappedFields_item = obj_semanticMappedFields[i];
|
|
6601
6622
|
const path_semanticMappedFields_item = path_semanticMappedFields + '[' + i + ']';
|
|
6602
|
-
if (typeof obj_semanticMappedFields_item !== 'object') {
|
|
6623
|
+
if (typeof obj_semanticMappedFields_item !== 'object' || Array.isArray(obj_semanticMappedFields_item)) {
|
|
6603
6624
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticMappedFields_item + '" (at "' + path_semanticMappedFields_item + '")');
|
|
6604
6625
|
}
|
|
6605
6626
|
}
|
|
@@ -6914,7 +6935,7 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6914
6935
|
}
|
|
6915
6936
|
}
|
|
6916
6937
|
|
|
6917
|
-
const VERSION$f = "
|
|
6938
|
+
const VERSION$f = "666dcffd7f5590243626d818d9fa8c18";
|
|
6918
6939
|
function validate$k(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
6919
6940
|
const v_error = (() => {
|
|
6920
6941
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7020,6 +7041,13 @@ function validate$k(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7020
7041
|
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
7021
7042
|
}
|
|
7022
7043
|
}
|
|
7044
|
+
if (obj.primaryNameField !== undefined) {
|
|
7045
|
+
const obj_primaryNameField = obj.primaryNameField;
|
|
7046
|
+
const path_primaryNameField = path + '.primaryNameField';
|
|
7047
|
+
if (typeof obj_primaryNameField !== 'string') {
|
|
7048
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryNameField + '" (at "' + path_primaryNameField + '")');
|
|
7049
|
+
}
|
|
7050
|
+
}
|
|
7023
7051
|
if (obj.semanticDataObjects !== undefined) {
|
|
7024
7052
|
const obj_semanticDataObjects = obj.semanticDataObjects;
|
|
7025
7053
|
const path_semanticDataObjects = path + '.semanticDataObjects';
|
|
@@ -7029,7 +7057,7 @@ function validate$k(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7029
7057
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
7030
7058
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
7031
7059
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
7032
|
-
if (typeof obj_semanticDataObjects_item !== 'object') {
|
|
7060
|
+
if (typeof obj_semanticDataObjects_item !== 'object' || Array.isArray(obj_semanticDataObjects_item)) {
|
|
7033
7061
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticDataObjects_item + '" (at "' + path_semanticDataObjects_item + '")');
|
|
7034
7062
|
}
|
|
7035
7063
|
}
|
|
@@ -7043,7 +7071,7 @@ function validate$k(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7043
7071
|
for (let i = 0; i < obj_semanticRelationships.length; i++) {
|
|
7044
7072
|
const obj_semanticRelationships_item = obj_semanticRelationships[i];
|
|
7045
7073
|
const path_semanticRelationships_item = path_semanticRelationships + '[' + i + ']';
|
|
7046
|
-
if (typeof obj_semanticRelationships_item !== 'object') {
|
|
7074
|
+
if (typeof obj_semanticRelationships_item !== 'object' || Array.isArray(obj_semanticRelationships_item)) {
|
|
7047
7075
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticRelationships_item + '" (at "' + path_semanticRelationships_item + '")');
|
|
7048
7076
|
}
|
|
7049
7077
|
}
|
|
@@ -7057,7 +7085,7 @@ function validate$k(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7057
7085
|
for (let i = 0; i < obj_semanticUnions.length; i++) {
|
|
7058
7086
|
const obj_semanticUnions_item = obj_semanticUnions[i];
|
|
7059
7087
|
const path_semanticUnions_item = path_semanticUnions + '[' + i + ']';
|
|
7060
|
-
if (typeof obj_semanticUnions_item !== 'object') {
|
|
7088
|
+
if (typeof obj_semanticUnions_item !== 'object' || Array.isArray(obj_semanticUnions_item)) {
|
|
7061
7089
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticUnions_item + '" (at "' + path_semanticUnions_item + '")');
|
|
7062
7090
|
}
|
|
7063
7091
|
}
|
|
@@ -7228,6 +7256,11 @@ const select$v = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
7228
7256
|
kind: 'Scalar',
|
|
7229
7257
|
required: false
|
|
7230
7258
|
},
|
|
7259
|
+
{
|
|
7260
|
+
name: 'primaryNameField',
|
|
7261
|
+
kind: 'Scalar',
|
|
7262
|
+
required: false
|
|
7263
|
+
},
|
|
7231
7264
|
{
|
|
7232
7265
|
name: 'semanticDataObjects',
|
|
7233
7266
|
kind: 'Link',
|
|
@@ -7418,6 +7451,19 @@ function equals$f(existing, incoming) {
|
|
|
7418
7451
|
return false;
|
|
7419
7452
|
}
|
|
7420
7453
|
}
|
|
7454
|
+
const existing_primaryNameField = existing.primaryNameField;
|
|
7455
|
+
const incoming_primaryNameField = incoming.primaryNameField;
|
|
7456
|
+
// if at least one of these optionals is defined
|
|
7457
|
+
if (existing_primaryNameField !== undefined || incoming_primaryNameField !== undefined) {
|
|
7458
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7459
|
+
// not equal
|
|
7460
|
+
if (existing_primaryNameField === undefined || incoming_primaryNameField === undefined) {
|
|
7461
|
+
return false;
|
|
7462
|
+
}
|
|
7463
|
+
if (!(existing_primaryNameField === incoming_primaryNameField)) {
|
|
7464
|
+
return false;
|
|
7465
|
+
}
|
|
7466
|
+
}
|
|
7421
7467
|
const existing_semanticViewTypeEnum = existing.semanticViewTypeEnum;
|
|
7422
7468
|
const incoming_semanticViewTypeEnum = incoming.semanticViewTypeEnum;
|
|
7423
7469
|
// if at least one of these optionals is defined
|
|
@@ -9306,7 +9352,7 @@ function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
9306
9352
|
for (let i = 0; i < obj_semanticCalculatedDimensions.length; i++) {
|
|
9307
9353
|
const obj_semanticCalculatedDimensions_item = obj_semanticCalculatedDimensions[i];
|
|
9308
9354
|
const path_semanticCalculatedDimensions_item = path_semanticCalculatedDimensions + '[' + i + ']';
|
|
9309
|
-
if (typeof obj_semanticCalculatedDimensions_item !== 'object') {
|
|
9355
|
+
if (typeof obj_semanticCalculatedDimensions_item !== 'object' || Array.isArray(obj_semanticCalculatedDimensions_item)) {
|
|
9310
9356
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticCalculatedDimensions_item + '" (at "' + path_semanticCalculatedDimensions_item + '")');
|
|
9311
9357
|
}
|
|
9312
9358
|
}
|
|
@@ -9327,7 +9373,7 @@ function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
9327
9373
|
for (let i = 0; i < obj_semanticCalculatedMeasurements.length; i++) {
|
|
9328
9374
|
const obj_semanticCalculatedMeasurements_item = obj_semanticCalculatedMeasurements[i];
|
|
9329
9375
|
const path_semanticCalculatedMeasurements_item = path_semanticCalculatedMeasurements + '[' + i + ']';
|
|
9330
|
-
if (typeof obj_semanticCalculatedMeasurements_item !== 'object') {
|
|
9376
|
+
if (typeof obj_semanticCalculatedMeasurements_item !== 'object' || Array.isArray(obj_semanticCalculatedMeasurements_item)) {
|
|
9331
9377
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticCalculatedMeasurements_item + '" (at "' + path_semanticCalculatedMeasurements_item + '")');
|
|
9332
9378
|
}
|
|
9333
9379
|
}
|
|
@@ -9348,7 +9394,7 @@ function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
9348
9394
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
9349
9395
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
9350
9396
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
9351
|
-
if (typeof obj_semanticDataObjects_item !== 'object') {
|
|
9397
|
+
if (typeof obj_semanticDataObjects_item !== 'object' || Array.isArray(obj_semanticDataObjects_item)) {
|
|
9352
9398
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticDataObjects_item + '" (at "' + path_semanticDataObjects_item + '")');
|
|
9353
9399
|
}
|
|
9354
9400
|
}
|
|
@@ -9369,7 +9415,7 @@ function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
9369
9415
|
for (let i = 0; i < obj_semanticGroupings.length; i++) {
|
|
9370
9416
|
const obj_semanticGroupings_item = obj_semanticGroupings[i];
|
|
9371
9417
|
const path_semanticGroupings_item = path_semanticGroupings + '[' + i + ']';
|
|
9372
|
-
if (typeof obj_semanticGroupings_item !== 'object') {
|
|
9418
|
+
if (typeof obj_semanticGroupings_item !== 'object' || Array.isArray(obj_semanticGroupings_item)) {
|
|
9373
9419
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticGroupings_item + '" (at "' + path_semanticGroupings_item + '")');
|
|
9374
9420
|
}
|
|
9375
9421
|
}
|
|
@@ -9411,7 +9457,7 @@ function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
9411
9457
|
for (let i = 0; i < obj_semanticLogicalViews.length; i++) {
|
|
9412
9458
|
const obj_semanticLogicalViews_item = obj_semanticLogicalViews[i];
|
|
9413
9459
|
const path_semanticLogicalViews_item = path_semanticLogicalViews + '[' + i + ']';
|
|
9414
|
-
if (typeof obj_semanticLogicalViews_item !== 'object') {
|
|
9460
|
+
if (typeof obj_semanticLogicalViews_item !== 'object' || Array.isArray(obj_semanticLogicalViews_item)) {
|
|
9415
9461
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticLogicalViews_item + '" (at "' + path_semanticLogicalViews_item + '")');
|
|
9416
9462
|
}
|
|
9417
9463
|
}
|
|
@@ -9425,7 +9471,7 @@ function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
9425
9471
|
for (let i = 0; i < obj_semanticMetrics.length; i++) {
|
|
9426
9472
|
const obj_semanticMetrics_item = obj_semanticMetrics[i];
|
|
9427
9473
|
const path_semanticMetrics_item = path_semanticMetrics + '[' + i + ']';
|
|
9428
|
-
if (typeof obj_semanticMetrics_item !== 'object') {
|
|
9474
|
+
if (typeof obj_semanticMetrics_item !== 'object' || Array.isArray(obj_semanticMetrics_item)) {
|
|
9429
9475
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticMetrics_item + '" (at "' + path_semanticMetrics_item + '")');
|
|
9430
9476
|
}
|
|
9431
9477
|
}
|
|
@@ -9439,7 +9485,7 @@ function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
9439
9485
|
for (let i = 0; i < obj_semanticParameters.length; i++) {
|
|
9440
9486
|
const obj_semanticParameters_item = obj_semanticParameters[i];
|
|
9441
9487
|
const path_semanticParameters_item = path_semanticParameters + '[' + i + ']';
|
|
9442
|
-
if (typeof obj_semanticParameters_item !== 'object') {
|
|
9488
|
+
if (typeof obj_semanticParameters_item !== 'object' || Array.isArray(obj_semanticParameters_item)) {
|
|
9443
9489
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticParameters_item + '" (at "' + path_semanticParameters_item + '")');
|
|
9444
9490
|
}
|
|
9445
9491
|
}
|
|
@@ -9460,7 +9506,7 @@ function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
9460
9506
|
for (let i = 0; i < obj_semanticRelationships.length; i++) {
|
|
9461
9507
|
const obj_semanticRelationships_item = obj_semanticRelationships[i];
|
|
9462
9508
|
const path_semanticRelationships_item = path_semanticRelationships + '[' + i + ']';
|
|
9463
|
-
if (typeof obj_semanticRelationships_item !== 'object') {
|
|
9509
|
+
if (typeof obj_semanticRelationships_item !== 'object' || Array.isArray(obj_semanticRelationships_item)) {
|
|
9464
9510
|
return new TypeError('Expected "object" but received "' + typeof obj_semanticRelationships_item + '" (at "' + path_semanticRelationships_item + '")');
|
|
9465
9511
|
}
|
|
9466
9512
|
}
|
|
@@ -11325,7 +11371,7 @@ function validate$7(obj, path = 'SemanticDependencyInnerCollectionOutputRepresen
|
|
|
11325
11371
|
for (let i = 0; i < obj_dependencies.length; i++) {
|
|
11326
11372
|
const obj_dependencies_item = obj_dependencies[i];
|
|
11327
11373
|
const path_dependencies_item = path_dependencies + '[' + i + ']';
|
|
11328
|
-
if (typeof obj_dependencies_item !== 'object') {
|
|
11374
|
+
if (typeof obj_dependencies_item !== 'object' || Array.isArray(obj_dependencies_item)) {
|
|
11329
11375
|
return new TypeError('Expected "object" but received "' + typeof obj_dependencies_item + '" (at "' + path_dependencies_item + '")');
|
|
11330
11376
|
}
|
|
11331
11377
|
}
|
|
@@ -11911,7 +11957,7 @@ function validate$5(obj, path = 'SemanticMetricCollectionOutputRepresentation')
|
|
|
11911
11957
|
for (let i = 0; i < obj_metrics.length; i++) {
|
|
11912
11958
|
const obj_metrics_item = obj_metrics[i];
|
|
11913
11959
|
const path_metrics_item = path_metrics + '[' + i + ']';
|
|
11914
|
-
if (typeof obj_metrics_item !== 'object') {
|
|
11960
|
+
if (typeof obj_metrics_item !== 'object' || Array.isArray(obj_metrics_item)) {
|
|
11915
11961
|
return new TypeError('Expected "object" but received "' + typeof obj_metrics_item + '" (at "' + path_metrics_item + '")');
|
|
11916
11962
|
}
|
|
11917
11963
|
}
|
|
@@ -12294,7 +12340,7 @@ function validate$4(obj, path = 'SemanticSubMetricsByMetricOutputRepresentation'
|
|
|
12294
12340
|
for (let i = 0; i < obj_subMetrics.length; i++) {
|
|
12295
12341
|
const obj_subMetrics_item = obj_subMetrics[i];
|
|
12296
12342
|
const path_subMetrics_item = path_subMetrics + '[' + i + ']';
|
|
12297
|
-
if (typeof obj_subMetrics_item !== 'object') {
|
|
12343
|
+
if (typeof obj_subMetrics_item !== 'object' || Array.isArray(obj_subMetrics_item)) {
|
|
12298
12344
|
return new TypeError('Expected "object" but received "' + typeof obj_subMetrics_item + '" (at "' + path_subMetrics_item + '")');
|
|
12299
12345
|
}
|
|
12300
12346
|
}
|
|
@@ -12422,7 +12468,7 @@ function validate$3(obj, path = 'SemanticSubMetricsByMetricCollectionOutputRepre
|
|
|
12422
12468
|
for (let i = 0; i < obj_items.length; i++) {
|
|
12423
12469
|
const obj_items_item = obj_items[i];
|
|
12424
12470
|
const path_items_item = path_items + '[' + i + ']';
|
|
12425
|
-
if (typeof obj_items_item !== 'object') {
|
|
12471
|
+
if (typeof obj_items_item !== 'object' || Array.isArray(obj_items_item)) {
|
|
12426
12472
|
return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
|
|
12427
12473
|
}
|
|
12428
12474
|
}
|
|
@@ -12824,12 +12870,19 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
12824
12870
|
};
|
|
12825
12871
|
};
|
|
12826
12872
|
|
|
12827
|
-
const VERSION$2 = "
|
|
12873
|
+
const VERSION$2 = "1014ce27a42cdfd4801e0ee44a71ca8d";
|
|
12828
12874
|
function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
12829
12875
|
const v_error = (() => {
|
|
12830
12876
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
12831
12877
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
12832
12878
|
}
|
|
12879
|
+
if (obj.agentEnabled !== undefined) {
|
|
12880
|
+
const obj_agentEnabled = obj.agentEnabled;
|
|
12881
|
+
const path_agentEnabled = path + '.agentEnabled';
|
|
12882
|
+
if (typeof obj_agentEnabled !== 'boolean') {
|
|
12883
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_agentEnabled + '" (at "' + path_agentEnabled + '")');
|
|
12884
|
+
}
|
|
12885
|
+
}
|
|
12833
12886
|
const obj_apiName = obj.apiName;
|
|
12834
12887
|
const path_apiName = path + '.apiName';
|
|
12835
12888
|
if (typeof obj_apiName !== 'string') {
|
|
@@ -12866,6 +12919,13 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
12866
12919
|
}
|
|
12867
12920
|
}
|
|
12868
12921
|
}
|
|
12922
|
+
if (obj.businessPreferences !== undefined) {
|
|
12923
|
+
const obj_businessPreferences = obj.businessPreferences;
|
|
12924
|
+
const path_businessPreferences = path + '.businessPreferences';
|
|
12925
|
+
if (typeof obj_businessPreferences !== 'string') {
|
|
12926
|
+
return new TypeError('Expected "string" but received "' + typeof obj_businessPreferences + '" (at "' + path_businessPreferences + '")');
|
|
12927
|
+
}
|
|
12928
|
+
}
|
|
12869
12929
|
if (obj.cacheKey !== undefined) {
|
|
12870
12930
|
const obj_cacheKey = obj.cacheKey;
|
|
12871
12931
|
const path_cacheKey = path + '.cacheKey';
|
|
@@ -13036,6 +13096,11 @@ const select$9 = function SemanticModelPartialOutputRepresentationSelect() {
|
|
|
13036
13096
|
version: VERSION$2,
|
|
13037
13097
|
private: [],
|
|
13038
13098
|
selections: [
|
|
13099
|
+
{
|
|
13100
|
+
name: 'agentEnabled',
|
|
13101
|
+
kind: 'Scalar',
|
|
13102
|
+
required: false
|
|
13103
|
+
},
|
|
13039
13104
|
{
|
|
13040
13105
|
name: 'apiName',
|
|
13041
13106
|
kind: 'Scalar'
|
|
@@ -13057,6 +13122,11 @@ const select$9 = function SemanticModelPartialOutputRepresentationSelect() {
|
|
|
13057
13122
|
selections: SemanticBaseModelOutputRepresentation__selections,
|
|
13058
13123
|
required: false
|
|
13059
13124
|
},
|
|
13125
|
+
{
|
|
13126
|
+
name: 'businessPreferences',
|
|
13127
|
+
kind: 'Scalar',
|
|
13128
|
+
required: false
|
|
13129
|
+
},
|
|
13060
13130
|
{
|
|
13061
13131
|
name: 'cacheKey',
|
|
13062
13132
|
kind: 'Scalar',
|
|
@@ -13158,6 +13228,19 @@ const select$9 = function SemanticModelPartialOutputRepresentationSelect() {
|
|
|
13158
13228
|
};
|
|
13159
13229
|
};
|
|
13160
13230
|
function equals$2(existing, incoming) {
|
|
13231
|
+
const existing_agentEnabled = existing.agentEnabled;
|
|
13232
|
+
const incoming_agentEnabled = incoming.agentEnabled;
|
|
13233
|
+
// if at least one of these optionals is defined
|
|
13234
|
+
if (existing_agentEnabled !== undefined || incoming_agentEnabled !== undefined) {
|
|
13235
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
13236
|
+
// not equal
|
|
13237
|
+
if (existing_agentEnabled === undefined || incoming_agentEnabled === undefined) {
|
|
13238
|
+
return false;
|
|
13239
|
+
}
|
|
13240
|
+
if (!(existing_agentEnabled === incoming_agentEnabled)) {
|
|
13241
|
+
return false;
|
|
13242
|
+
}
|
|
13243
|
+
}
|
|
13161
13244
|
const existing_isLocked = existing.isLocked;
|
|
13162
13245
|
const incoming_isLocked = incoming.isLocked;
|
|
13163
13246
|
// if at least one of these optionals is defined
|
|
@@ -13202,6 +13285,19 @@ function equals$2(existing, incoming) {
|
|
|
13202
13285
|
return false;
|
|
13203
13286
|
}
|
|
13204
13287
|
}
|
|
13288
|
+
const existing_businessPreferences = existing.businessPreferences;
|
|
13289
|
+
const incoming_businessPreferences = incoming.businessPreferences;
|
|
13290
|
+
// if at least one of these optionals is defined
|
|
13291
|
+
if (existing_businessPreferences !== undefined || incoming_businessPreferences !== undefined) {
|
|
13292
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
13293
|
+
// not equal
|
|
13294
|
+
if (existing_businessPreferences === undefined || incoming_businessPreferences === undefined) {
|
|
13295
|
+
return false;
|
|
13296
|
+
}
|
|
13297
|
+
if (!(existing_businessPreferences === incoming_businessPreferences)) {
|
|
13298
|
+
return false;
|
|
13299
|
+
}
|
|
13300
|
+
}
|
|
13205
13301
|
const existing_cacheKey = existing.cacheKey;
|
|
13206
13302
|
const incoming_cacheKey = incoming.cacheKey;
|
|
13207
13303
|
// if at least one of these optionals is defined
|
|
@@ -14025,7 +14121,7 @@ function validate(obj, path = 'SemanticSubMetricCollectionOutputRepresentation')
|
|
|
14025
14121
|
for (let i = 0; i < obj_items.length; i++) {
|
|
14026
14122
|
const obj_items_item = obj_items[i];
|
|
14027
14123
|
const path_items_item = path_items + '[' + i + ']';
|
|
14028
|
-
if (typeof obj_items_item !== 'object') {
|
|
14124
|
+
if (typeof obj_items_item !== 'object' || Array.isArray(obj_items_item)) {
|
|
14029
14125
|
return new TypeError('Expected "object" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
|
|
14030
14126
|
}
|
|
14031
14127
|
}
|
|
@@ -15015,4 +15111,4 @@ withDefaultLuvio((luvio) => {
|
|
|
15015
15111
|
});
|
|
15016
15112
|
|
|
15017
15113
|
export { createSemanticGoal, createSemanticModel, createSemanticSubMetric, deleteGoalFromSubMetric, deleteSemanticGoal, deleteSemanticSubMetric, getLeafDependenciesByTypes, getLeafDependenciesByTypes_imperative, getSemanticGoal, getSemanticGoalNotifyChange, getSemanticGoal_imperative, getSemanticMetric, getSemanticMetricNotifyChange, getSemanticMetric_imperative, getSemanticMetrics, getSemanticMetricsByIds, getSemanticMetricsByIds_imperative, getSemanticMetricsToSubMetrics, getSemanticMetricsToSubMetrics_imperative, getSemanticMetrics_imperative, getSemanticModel, getSemanticModelNotifyChange, getSemanticModel_imperative, getSemanticModels, getSemanticModels_imperative, getSemanticSubMetric, getSemanticSubMetricNotifyChange, getSemanticSubMetric_imperative, getSemanticSubMetrics, getSemanticSubMetricsById, getSemanticSubMetricsById_imperative, getSemanticSubMetrics_imperative, patchSemanticMetricGoal, patchSemanticModel, updateSemanticGoal };
|
|
15018
|
-
// version: 1.
|
|
15114
|
+
// version: 1.361.0-eb406138cb
|
package/src/raml/api.raml
CHANGED
|
@@ -1098,6 +1098,10 @@ types:
|
|
|
1098
1098
|
description: 'Table Types for SDM query interpretation, Valid values are: SHARED or STANDARD'
|
|
1099
1099
|
type: SemanticDataObjectTableTypeEnum
|
|
1100
1100
|
required: false
|
|
1101
|
+
primaryNameField:
|
|
1102
|
+
type: string
|
|
1103
|
+
description: Allow experts to indicate which field is the representation of a table.
|
|
1104
|
+
required: false
|
|
1101
1105
|
SemanticDataObjectOutputRepresentation:
|
|
1102
1106
|
description: Represents the output of a semantic data object.
|
|
1103
1107
|
type: object
|
|
@@ -1193,6 +1197,10 @@ types:
|
|
|
1193
1197
|
description: Table Types for SDM query interpretation.
|
|
1194
1198
|
type: SemanticDataObjectTableTypeEnum
|
|
1195
1199
|
required: false
|
|
1200
|
+
primaryNameField:
|
|
1201
|
+
type: string
|
|
1202
|
+
description: Allow experts to indicate which field is the representation of a table.
|
|
1203
|
+
required: false
|
|
1196
1204
|
isSystemDefinition:
|
|
1197
1205
|
description: The isSystemDefinition property indicates whether a semantic
|
|
1198
1206
|
definition is an automatically generated one. These semantic definitions
|
|
@@ -1967,6 +1975,10 @@ types:
|
|
|
1967
1975
|
items:
|
|
1968
1976
|
type: SemanticUnionInputRepresentation
|
|
1969
1977
|
required: false
|
|
1978
|
+
primaryNameField:
|
|
1979
|
+
type: string
|
|
1980
|
+
description: Allow experts to indicate which field is the representation of a table.
|
|
1981
|
+
required: false
|
|
1970
1982
|
SemanticLogicalViewOutputRepresentation:
|
|
1971
1983
|
description: A semantic logical view.
|
|
1972
1984
|
type: object
|
|
@@ -2048,6 +2060,10 @@ types:
|
|
|
2048
2060
|
description: Table Types for SDM query interpretation.
|
|
2049
2061
|
type: SemanticLogicalViewTableTypeEnum
|
|
2050
2062
|
required: false
|
|
2063
|
+
primaryNameField:
|
|
2064
|
+
type: string
|
|
2065
|
+
description: Allow experts to indicate which field is the representation of a table.
|
|
2066
|
+
required: false
|
|
2051
2067
|
isSystemDefinition:
|
|
2052
2068
|
description: The isSystemDefinition property indicates whether a semantic
|
|
2053
2069
|
definition is an automatically generated one. These semantic definitions
|
|
@@ -3022,6 +3038,14 @@ types:
|
|
|
3022
3038
|
description: The source identifier name.
|
|
3023
3039
|
type: string
|
|
3024
3040
|
required: false
|
|
3041
|
+
businessPreferences:
|
|
3042
|
+
description: Allow Analysts to include business-specific preferences or context.
|
|
3043
|
+
type: string
|
|
3044
|
+
required: false
|
|
3045
|
+
agentEnabled:
|
|
3046
|
+
description: Indicates whether agent features are enabled for this model.
|
|
3047
|
+
type: boolean
|
|
3048
|
+
required: false
|
|
3025
3049
|
SemanticModelPartialOutputRepresentation:
|
|
3026
3050
|
description: The output representation of a partial semantic model.
|
|
3027
3051
|
type: object
|
|
@@ -3122,6 +3146,14 @@ types:
|
|
|
3122
3146
|
description: The source identifier name
|
|
3123
3147
|
type: string
|
|
3124
3148
|
required: false
|
|
3149
|
+
businessPreferences:
|
|
3150
|
+
description: Allow Analysts to include business-specific preferences or context.
|
|
3151
|
+
type: string
|
|
3152
|
+
required: false
|
|
3153
|
+
agentEnabled:
|
|
3154
|
+
description: Indicates whether agent features are enabled for this model.
|
|
3155
|
+
type: boolean
|
|
3156
|
+
required: false
|
|
3125
3157
|
SemanticModelPatchInputRepresentation:
|
|
3126
3158
|
description: Limited input representation for patching semantic model
|
|
3127
3159
|
type: object
|