@salesforce/lds-adapters-cdp-semantic-authoring 1.345.0 → 1.346.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 +17 -17
- package/dist/es/es2018/types/src/generated/resources/patchSsotSemanticModelsLogicalViewsByLogicalViewApiNameOrIdAndModelApiNameOrId.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsLogicalViewsByModelApiNameOrId.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsLogicalViewsByLogicalViewApiNameOrIdAndModelApiNameOrId.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/SemanticLogicalViewInputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/SemanticLogicalViewOutputRepresentation.d.ts +3 -3
- package/package.json +3 -3
- package/sfdc/index.js +18 -18
- package/src/raml/api.raml +4 -4
|
@@ -3669,11 +3669,11 @@ function validate$D(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3669
3669
|
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
3670
3670
|
}
|
|
3671
3671
|
}
|
|
3672
|
-
if (obj.
|
|
3673
|
-
const
|
|
3674
|
-
const
|
|
3675
|
-
if (typeof
|
|
3676
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
3672
|
+
if (obj.customSQL !== undefined) {
|
|
3673
|
+
const obj_customSQL = obj.customSQL;
|
|
3674
|
+
const path_customSQL = path + '.customSQL';
|
|
3675
|
+
if (typeof obj_customSQL !== 'string') {
|
|
3676
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customSQL + '" (at "' + path_customSQL + '")');
|
|
3677
3677
|
}
|
|
3678
3678
|
}
|
|
3679
3679
|
if (obj.description !== undefined) {
|
|
@@ -7663,7 +7663,7 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7663
7663
|
}
|
|
7664
7664
|
}
|
|
7665
7665
|
|
|
7666
|
-
const VERSION$d = "
|
|
7666
|
+
const VERSION$d = "f186bf0514421e7f42e284136d60ea6c";
|
|
7667
7667
|
function validate$j(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
7668
7668
|
const v_error = (() => {
|
|
7669
7669
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7698,11 +7698,11 @@ function validate$j(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7698
7698
|
if (typeof obj_createdDate !== 'string') {
|
|
7699
7699
|
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
7700
7700
|
}
|
|
7701
|
-
if (obj.
|
|
7702
|
-
const
|
|
7703
|
-
const
|
|
7704
|
-
if (typeof
|
|
7705
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
7701
|
+
if (obj.customSQL !== undefined) {
|
|
7702
|
+
const obj_customSQL = obj.customSQL;
|
|
7703
|
+
const path_customSQL = path + '.customSQL';
|
|
7704
|
+
if (typeof obj_customSQL !== 'string') {
|
|
7705
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customSQL + '" (at "' + path_customSQL + '")');
|
|
7706
7706
|
}
|
|
7707
7707
|
}
|
|
7708
7708
|
if (obj.description !== undefined) {
|
|
@@ -7911,7 +7911,7 @@ const select$r = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
7911
7911
|
kind: 'Scalar'
|
|
7912
7912
|
},
|
|
7913
7913
|
{
|
|
7914
|
-
name: '
|
|
7914
|
+
name: 'customSQL',
|
|
7915
7915
|
kind: 'Scalar',
|
|
7916
7916
|
required: false
|
|
7917
7917
|
},
|
|
@@ -8022,16 +8022,16 @@ function equals$d(existing, incoming) {
|
|
|
8022
8022
|
if (!(existing_createdDate === incoming_createdDate)) {
|
|
8023
8023
|
return false;
|
|
8024
8024
|
}
|
|
8025
|
-
const
|
|
8026
|
-
const
|
|
8025
|
+
const existing_customSQL = existing.customSQL;
|
|
8026
|
+
const incoming_customSQL = incoming.customSQL;
|
|
8027
8027
|
// if at least one of these optionals is defined
|
|
8028
|
-
if (
|
|
8028
|
+
if (existing_customSQL !== undefined || incoming_customSQL !== undefined) {
|
|
8029
8029
|
// if one of these is not defined we know the other is defined and therefore
|
|
8030
8030
|
// not equal
|
|
8031
|
-
if (
|
|
8031
|
+
if (existing_customSQL === undefined || incoming_customSQL === undefined) {
|
|
8032
8032
|
return false;
|
|
8033
8033
|
}
|
|
8034
|
-
if (!(
|
|
8034
|
+
if (!(existing_customSQL === incoming_customSQL)) {
|
|
8035
8035
|
return false;
|
|
8036
8036
|
}
|
|
8037
8037
|
}
|
|
@@ -15,7 +15,7 @@ export interface ResourceRequestConfig {
|
|
|
15
15
|
label?: string;
|
|
16
16
|
filterLogic?: string;
|
|
17
17
|
filters?: Array<types_SemanticFilterInputRepresentation_SemanticFilterInputRepresentation>;
|
|
18
|
-
|
|
18
|
+
customSQL?: string;
|
|
19
19
|
semanticDataObjects?: Array<types_SemanticDataObjectInputRepresentation_SemanticDataObjectInputRepresentation>;
|
|
20
20
|
semanticRelationships?: Array<types_SemanticRelationshipInputRepresentation_SemanticRelationshipInputRepresentation>;
|
|
21
21
|
semanticUnions?: Array<types_SemanticUnionInputRepresentation_SemanticUnionInputRepresentation>;
|
|
@@ -14,7 +14,7 @@ export interface ResourceRequestConfig {
|
|
|
14
14
|
label?: string;
|
|
15
15
|
filterLogic?: string;
|
|
16
16
|
filters?: Array<types_SemanticFilterInputRepresentation_SemanticFilterInputRepresentation>;
|
|
17
|
-
|
|
17
|
+
customSQL?: string;
|
|
18
18
|
semanticDataObjects?: Array<types_SemanticDataObjectInputRepresentation_SemanticDataObjectInputRepresentation>;
|
|
19
19
|
semanticRelationships?: Array<types_SemanticRelationshipInputRepresentation_SemanticRelationshipInputRepresentation>;
|
|
20
20
|
semanticUnions?: Array<types_SemanticUnionInputRepresentation_SemanticUnionInputRepresentation>;
|
|
@@ -15,7 +15,7 @@ export interface ResourceRequestConfig {
|
|
|
15
15
|
label?: string;
|
|
16
16
|
filterLogic?: string;
|
|
17
17
|
filters?: Array<types_SemanticFilterInputRepresentation_SemanticFilterInputRepresentation>;
|
|
18
|
-
|
|
18
|
+
customSQL?: string;
|
|
19
19
|
semanticDataObjects?: Array<types_SemanticDataObjectInputRepresentation_SemanticDataObjectInputRepresentation>;
|
|
20
20
|
semanticRelationships?: Array<types_SemanticRelationshipInputRepresentation_SemanticRelationshipInputRepresentation>;
|
|
21
21
|
semanticUnions?: Array<types_SemanticUnionInputRepresentation_SemanticUnionInputRepresentation>;
|
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 = "dd0b4801453112232c32bb0078b30e92";
|
|
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;
|
|
@@ -21,7 +21,7 @@ export interface SemanticLogicalViewInputRepresentationNormalized {
|
|
|
21
21
|
/** The API name of the semantic entity. */
|
|
22
22
|
apiName?: string;
|
|
23
23
|
/** Represents the custom sql query. */
|
|
24
|
-
|
|
24
|
+
customSQL?: string;
|
|
25
25
|
/** An optional description of the semantic entity. */
|
|
26
26
|
description?: string;
|
|
27
27
|
/** The logic for generating a filter based on the list of filters. */
|
|
@@ -45,7 +45,7 @@ export interface SemanticLogicalViewInputRepresentationNormalized {
|
|
|
45
45
|
*/
|
|
46
46
|
export interface SemanticLogicalViewInputRepresentation {
|
|
47
47
|
apiName?: string;
|
|
48
|
-
|
|
48
|
+
customSQL?: string;
|
|
49
49
|
description?: string;
|
|
50
50
|
filterLogic?: string;
|
|
51
51
|
filters?: Array<SemanticFilterInputRepresentation_SemanticFilterInputRepresentation>;
|
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 = "f186bf0514421e7f42e284136d60ea6c";
|
|
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 {
|
|
@@ -51,7 +51,7 @@ export interface SemanticLogicalViewOutputRepresentationNormalized {
|
|
|
51
51
|
/** The date in which the semantic entity was created. */
|
|
52
52
|
createdDate: string;
|
|
53
53
|
/** The custom sql query, relevant only for logicalView created by sql */
|
|
54
|
-
|
|
54
|
+
customSQL?: string;
|
|
55
55
|
/** The Description of the semantic entity. */
|
|
56
56
|
description?: string;
|
|
57
57
|
/** The logic expression for generating a filter based on the list of filters. */
|
|
@@ -87,7 +87,7 @@ export interface SemanticLogicalViewOutputRepresentation {
|
|
|
87
87
|
cacheKey?: string;
|
|
88
88
|
createdBy: string;
|
|
89
89
|
createdDate: string;
|
|
90
|
-
|
|
90
|
+
customSQL?: string;
|
|
91
91
|
description?: string;
|
|
92
92
|
filterLogic?: string;
|
|
93
93
|
filters?: Array<SemanticFilterOutputRepresentation_SemanticFilterOutputRepresentation>;
|
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.346.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.346.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.346.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1916,11 +1916,11 @@ function validate$J(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
1916
1916
|
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
|
-
if (obj.
|
|
1920
|
-
const
|
|
1921
|
-
const
|
|
1922
|
-
if (typeof
|
|
1923
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
1919
|
+
if (obj.customSQL !== undefined) {
|
|
1920
|
+
const obj_customSQL = obj.customSQL;
|
|
1921
|
+
const path_customSQL = path + '.customSQL';
|
|
1922
|
+
if (typeof obj_customSQL !== 'string') {
|
|
1923
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customSQL + '" (at "' + path_customSQL + '")');
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
1926
1926
|
if (obj.description !== undefined) {
|
|
@@ -6217,7 +6217,7 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6217
6217
|
}
|
|
6218
6218
|
}
|
|
6219
6219
|
|
|
6220
|
-
const VERSION$h = "
|
|
6220
|
+
const VERSION$h = "f186bf0514421e7f42e284136d60ea6c";
|
|
6221
6221
|
function validate$l(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
6222
6222
|
const v_error = (() => {
|
|
6223
6223
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6252,11 +6252,11 @@ function validate$l(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
6252
6252
|
if (typeof obj_createdDate !== 'string') {
|
|
6253
6253
|
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
6254
6254
|
}
|
|
6255
|
-
if (obj.
|
|
6256
|
-
const
|
|
6257
|
-
const
|
|
6258
|
-
if (typeof
|
|
6259
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
6255
|
+
if (obj.customSQL !== undefined) {
|
|
6256
|
+
const obj_customSQL = obj.customSQL;
|
|
6257
|
+
const path_customSQL = path + '.customSQL';
|
|
6258
|
+
if (typeof obj_customSQL !== 'string') {
|
|
6259
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customSQL + '" (at "' + path_customSQL + '")');
|
|
6260
6260
|
}
|
|
6261
6261
|
}
|
|
6262
6262
|
if (obj.description !== undefined) {
|
|
@@ -6465,7 +6465,7 @@ const select$w = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
6465
6465
|
kind: 'Scalar'
|
|
6466
6466
|
},
|
|
6467
6467
|
{
|
|
6468
|
-
name: '
|
|
6468
|
+
name: 'customSQL',
|
|
6469
6469
|
kind: 'Scalar',
|
|
6470
6470
|
required: false
|
|
6471
6471
|
},
|
|
@@ -6576,16 +6576,16 @@ function equals$h(existing, incoming) {
|
|
|
6576
6576
|
if (!(existing_createdDate === incoming_createdDate)) {
|
|
6577
6577
|
return false;
|
|
6578
6578
|
}
|
|
6579
|
-
const
|
|
6580
|
-
const
|
|
6579
|
+
const existing_customSQL = existing.customSQL;
|
|
6580
|
+
const incoming_customSQL = incoming.customSQL;
|
|
6581
6581
|
// if at least one of these optionals is defined
|
|
6582
|
-
if (
|
|
6582
|
+
if (existing_customSQL !== undefined || incoming_customSQL !== undefined) {
|
|
6583
6583
|
// if one of these is not defined we know the other is defined and therefore
|
|
6584
6584
|
// not equal
|
|
6585
|
-
if (
|
|
6585
|
+
if (existing_customSQL === undefined || incoming_customSQL === undefined) {
|
|
6586
6586
|
return false;
|
|
6587
6587
|
}
|
|
6588
|
-
if (!(
|
|
6588
|
+
if (!(existing_customSQL === incoming_customSQL)) {
|
|
6589
6589
|
return false;
|
|
6590
6590
|
}
|
|
6591
6591
|
}
|
|
@@ -13994,4 +13994,4 @@ withDefaultLuvio((luvio) => {
|
|
|
13994
13994
|
});
|
|
13995
13995
|
|
|
13996
13996
|
export { createSemanticGoal, createSemanticModel, createSemanticSubMetric, deleteGoalFromSubMetric, 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 };
|
|
13997
|
-
// version: 1.
|
|
13997
|
+
// version: 1.346.0-1b813009ec
|
package/src/raml/api.raml
CHANGED
|
@@ -108,7 +108,7 @@ types:
|
|
|
108
108
|
description: The semantic view types enum, relevant only for logicalView created by sql
|
|
109
109
|
type: string
|
|
110
110
|
enum:
|
|
111
|
-
-
|
|
111
|
+
- CustomSQL
|
|
112
112
|
- HardJoin
|
|
113
113
|
- Union
|
|
114
114
|
SemanticDataTypeEnum:
|
|
@@ -294,7 +294,7 @@ types:
|
|
|
294
294
|
type: string
|
|
295
295
|
enum:
|
|
296
296
|
- Cio
|
|
297
|
-
-
|
|
297
|
+
- CustomSQL
|
|
298
298
|
- Dlo
|
|
299
299
|
- Dmo
|
|
300
300
|
SemanticGoalStatusConditionColorEnum:
|
|
@@ -1673,7 +1673,7 @@ types:
|
|
|
1673
1673
|
items:
|
|
1674
1674
|
type: SemanticFilterInputRepresentation
|
|
1675
1675
|
required: false
|
|
1676
|
-
|
|
1676
|
+
customSQL:
|
|
1677
1677
|
description: Represents the custom sql query.
|
|
1678
1678
|
type: string
|
|
1679
1679
|
required: false
|
|
@@ -1736,7 +1736,7 @@ types:
|
|
|
1736
1736
|
description: The date in which the semantic entity was last modified.
|
|
1737
1737
|
type: string
|
|
1738
1738
|
required: false
|
|
1739
|
-
|
|
1739
|
+
customSQL:
|
|
1740
1740
|
description: The custom sql query, relevant only for logicalView created by sql
|
|
1741
1741
|
type: string
|
|
1742
1742
|
required: false
|