@salesforce/lds-adapters-cdp-semantic-authoring 1.354.0-dev6 → 1.354.0-dev8

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.
@@ -1646,12 +1646,19 @@ function equals$r(existing, incoming) {
1646
1646
  return true;
1647
1647
  }
1648
1648
 
1649
- const VERSION$q = "c9079354cd8127a37c0c13ea6686383c";
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 = "c33583da925793f049a2e6e5269d7846";
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';
@@ -8725,7 +8796,7 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
8725
8796
  }
8726
8797
  }
8727
8798
 
8728
- const VERSION$9 = "5056fdb7575699f2bc25f1d504ec499a";
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';
@@ -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
@@ -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 = "d5fe6c7e195f977f2db7f24fdc0db44b";
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;
@@ -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 = "c33583da925793f049a2e6e5269d7846";
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>;
@@ -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 = "fd9765ea7c75fd87e9746fa90afb390a";
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>;
@@ -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 = "5056fdb7575699f2bc25f1d504ec499a";
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>;
@@ -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 = "523893b84e9039115c95ec1749a47f4d";
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;
@@ -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 = "c9079354cd8127a37c0c13ea6686383c";
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.354.0-dev6",
3
+ "version": "1.354.0-dev8",
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.354.0-dev6"
43
+ "@salesforce/lds-bindings": "^1.354.0-dev8"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.354.0-dev6"
46
+ "@salesforce/lds-compiler-plugins": "^1.354.0-dev8"
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 = "c33583da925793f049a2e6e5269d7846";
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';
@@ -6914,7 +6935,7 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
6914
6935
  }
6915
6936
  }
6916
6937
 
6917
- const VERSION$f = "5056fdb7575699f2bc25f1d504ec499a";
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';
@@ -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
@@ -12824,12 +12870,19 @@ const notifyChangeFactory$1 = (luvio, options) => {
12824
12870
  };
12825
12871
  };
12826
12872
 
12827
- const VERSION$2 = "c9079354cd8127a37c0c13ea6686383c";
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
@@ -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.354.0-dev6-efb2ef03dd
15114
+ // version: 1.354.0-dev8-9491b01b31
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