@salesforce/lds-adapters-cdp-semantic-authoring 1.320.0 → 1.321.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.
@@ -1531,7 +1531,7 @@ function equals$l(existing, incoming) {
1531
1531
  return true;
1532
1532
  }
1533
1533
 
1534
- const VERSION$k = "e435589d0258f8cf6930ef88e871072c";
1534
+ const VERSION$k = "3387fc4e5c28406b97f056392b16e548";
1535
1535
  function validate$M(obj, path = 'SemanticModelPartialOutputRepresentation') {
1536
1536
  const v_error = (() => {
1537
1537
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1614,10 +1614,12 @@ function validate$M(obj, path = 'SemanticModelPartialOutputRepresentation') {
1614
1614
  if (typeof obj_id !== 'string') {
1615
1615
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1616
1616
  }
1617
- const obj_isLocked = obj.isLocked;
1618
- const path_isLocked = path + '.isLocked';
1619
- if (typeof obj_isLocked !== 'boolean') {
1620
- return new TypeError('Expected "boolean" but received "' + typeof obj_isLocked + '" (at "' + path_isLocked + '")');
1617
+ if (obj.isLocked !== undefined) {
1618
+ const obj_isLocked = obj.isLocked;
1619
+ const path_isLocked = path + '.isLocked';
1620
+ if (typeof obj_isLocked !== 'boolean') {
1621
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isLocked + '" (at "' + path_isLocked + '")');
1622
+ }
1621
1623
  }
1622
1624
  if (obj.label !== undefined) {
1623
1625
  const obj_label = obj.label;
@@ -1784,7 +1786,8 @@ const select$v = function SemanticModelPartialOutputRepresentationSelect() {
1784
1786
  },
1785
1787
  {
1786
1788
  name: 'isLocked',
1787
- kind: 'Scalar'
1789
+ kind: 'Scalar',
1790
+ required: false
1788
1791
  },
1789
1792
  {
1790
1793
  name: 'label',
@@ -1852,8 +1855,16 @@ const select$v = function SemanticModelPartialOutputRepresentationSelect() {
1852
1855
  function equals$k(existing, incoming) {
1853
1856
  const existing_isLocked = existing.isLocked;
1854
1857
  const incoming_isLocked = incoming.isLocked;
1855
- if (!(existing_isLocked === incoming_isLocked)) {
1856
- return false;
1858
+ // if at least one of these optionals is defined
1859
+ if (existing_isLocked !== undefined || incoming_isLocked !== undefined) {
1860
+ // if one of these is not defined we know the other is defined and therefore
1861
+ // not equal
1862
+ if (existing_isLocked === undefined || incoming_isLocked === undefined) {
1863
+ return false;
1864
+ }
1865
+ if (!(existing_isLocked === incoming_isLocked)) {
1866
+ return false;
1867
+ }
1857
1868
  }
1858
1869
  const existing_apiName = existing.apiName;
1859
1870
  const incoming_apiName = incoming.apiName;
@@ -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 = "e435589d0258f8cf6930ef88e871072c";
3
+ export declare const VERSION = "3387fc4e5c28406b97f056392b16e548";
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;
@@ -36,7 +36,7 @@ export interface SemanticModelPartialOutputRepresentationNormalized {
36
36
  /** The object ID of the semantic entity. */
37
37
  id: string;
38
38
  /** Is the model locked for edit/ delete. */
39
- isLocked: boolean;
39
+ isLocked?: boolean;
40
40
  /** The display name of the semantic entity to be used in the ui. */
41
41
  label?: string;
42
42
  /** The user who last modified the semantic entity. */
@@ -79,7 +79,7 @@ export interface SemanticModelPartialOutputRepresentation {
79
79
  dataspace: string;
80
80
  description?: string;
81
81
  id: string;
82
- isLocked: boolean;
82
+ isLocked?: boolean;
83
83
  label?: string;
84
84
  lastModifiedBy?: string;
85
85
  lastModifiedDate?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cdp-semantic-authoring",
3
- "version": "1.320.0",
3
+ "version": "1.321.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.320.0"
43
+ "@salesforce/lds-bindings": "^1.321.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.320.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.321.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -9873,7 +9873,7 @@ const notifyChangeFactory$1 = (luvio, options) => {
9873
9873
  };
9874
9874
  };
9875
9875
 
9876
- const VERSION$2 = "e435589d0258f8cf6930ef88e871072c";
9876
+ const VERSION$2 = "3387fc4e5c28406b97f056392b16e548";
9877
9877
  function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
9878
9878
  const v_error = (() => {
9879
9879
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -9956,10 +9956,12 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
9956
9956
  if (typeof obj_id !== 'string') {
9957
9957
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
9958
9958
  }
9959
- const obj_isLocked = obj.isLocked;
9960
- const path_isLocked = path + '.isLocked';
9961
- if (typeof obj_isLocked !== 'boolean') {
9962
- return new TypeError('Expected "boolean" but received "' + typeof obj_isLocked + '" (at "' + path_isLocked + '")');
9959
+ if (obj.isLocked !== undefined) {
9960
+ const obj_isLocked = obj.isLocked;
9961
+ const path_isLocked = path + '.isLocked';
9962
+ if (typeof obj_isLocked !== 'boolean') {
9963
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isLocked + '" (at "' + path_isLocked + '")');
9964
+ }
9963
9965
  }
9964
9966
  if (obj.label !== undefined) {
9965
9967
  const obj_label = obj.label;
@@ -10126,7 +10128,8 @@ const select$7 = function SemanticModelPartialOutputRepresentationSelect() {
10126
10128
  },
10127
10129
  {
10128
10130
  name: 'isLocked',
10129
- kind: 'Scalar'
10131
+ kind: 'Scalar',
10132
+ required: false
10130
10133
  },
10131
10134
  {
10132
10135
  name: 'label',
@@ -10194,8 +10197,16 @@ const select$7 = function SemanticModelPartialOutputRepresentationSelect() {
10194
10197
  function equals$2(existing, incoming) {
10195
10198
  const existing_isLocked = existing.isLocked;
10196
10199
  const incoming_isLocked = incoming.isLocked;
10197
- if (!(existing_isLocked === incoming_isLocked)) {
10198
- return false;
10200
+ // if at least one of these optionals is defined
10201
+ if (existing_isLocked !== undefined || incoming_isLocked !== undefined) {
10202
+ // if one of these is not defined we know the other is defined and therefore
10203
+ // not equal
10204
+ if (existing_isLocked === undefined || incoming_isLocked === undefined) {
10205
+ return false;
10206
+ }
10207
+ if (!(existing_isLocked === incoming_isLocked)) {
10208
+ return false;
10209
+ }
10199
10210
  }
10200
10211
  const existing_apiName = existing.apiName;
10201
10212
  const incoming_apiName = incoming.apiName;
@@ -11740,4 +11751,4 @@ withDefaultLuvio((luvio) => {
11740
11751
  });
11741
11752
 
11742
11753
  export { createSemanticModel, createSemanticSubMetric, deleteSemanticSubMetric, 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, patchSemanticModel };
11743
- // version: 1.320.0-e3e5f3d984
11754
+ // version: 1.321.0-40847d67a8
package/src/raml/api.raml CHANGED
@@ -2403,6 +2403,7 @@ types:
2403
2403
  isLocked:
2404
2404
  description: Is the model locked for edit/ delete.
2405
2405
  type: boolean
2406
+ required: false
2406
2407
  queryUnrelatedDataObjects:
2407
2408
  description: The type of join performed between the defined Data Cloud Objects. Valid values are AUTO, LEFT, RIGHT, FULL, and INNER.
2408
2409
  type: SemanticQueryUnrelatedDataObjectsTypeEnum