@salesforce/lds-adapters-cdp-semantic-authoring 1.309.0-dev13 → 1.309.0-dev15

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.
@@ -153,7 +153,7 @@ function equals$t(existing, incoming) {
153
153
  return true;
154
154
  }
155
155
 
156
- const VERSION$s = "e01a91fd79dacbb09de6099af9690841";
156
+ const VERSION$s = "3387fc4e5c28406b97f056392b16e548";
157
157
  function validate$U(obj, path = 'SemanticModelPartialOutputRepresentation') {
158
158
  const v_error = (() => {
159
159
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -236,6 +236,13 @@ function validate$U(obj, path = 'SemanticModelPartialOutputRepresentation') {
236
236
  if (typeof obj_id !== 'string') {
237
237
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
238
238
  }
239
+ if (obj.isLocked !== undefined) {
240
+ const obj_isLocked = obj.isLocked;
241
+ const path_isLocked = path + '.isLocked';
242
+ if (typeof obj_isLocked !== 'boolean') {
243
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isLocked + '" (at "' + path_isLocked + '")');
244
+ }
245
+ }
239
246
  if (obj.label !== undefined) {
240
247
  const obj_label = obj.label;
241
248
  const path_label = path + '.label';
@@ -399,6 +406,11 @@ const select$D = function SemanticModelPartialOutputRepresentationSelect() {
399
406
  name: 'id',
400
407
  kind: 'Scalar'
401
408
  },
409
+ {
410
+ name: 'isLocked',
411
+ kind: 'Scalar',
412
+ required: false
413
+ },
402
414
  {
403
415
  name: 'label',
404
416
  kind: 'Scalar',
@@ -463,6 +475,19 @@ const select$D = function SemanticModelPartialOutputRepresentationSelect() {
463
475
  };
464
476
  };
465
477
  function equals$s(existing, incoming) {
478
+ const existing_isLocked = existing.isLocked;
479
+ const incoming_isLocked = incoming.isLocked;
480
+ // if at least one of these optionals is defined
481
+ if (existing_isLocked !== undefined || incoming_isLocked !== undefined) {
482
+ // if one of these is not defined we know the other is defined and therefore
483
+ // not equal
484
+ if (existing_isLocked === undefined || incoming_isLocked === undefined) {
485
+ return false;
486
+ }
487
+ if (!(existing_isLocked === incoming_isLocked)) {
488
+ return false;
489
+ }
490
+ }
466
491
  const existing_apiName = existing.apiName;
467
492
  const incoming_apiName = incoming.apiName;
468
493
  if (!(existing_apiName === incoming_apiName)) {
@@ -8001,7 +8026,7 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
8001
8026
  });
8002
8027
  }
8003
8028
 
8004
- const VERSION$5 = "3fb33fd1e310fdf42bf0170a5f20e206";
8029
+ const VERSION$5 = "4fbdc86189bea9d4aa3019bc6a4fce15";
8005
8030
  function validate$7(obj, path = 'SemanticModelOutputRepresentation') {
8006
8031
  const v_error = (() => {
8007
8032
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -8084,6 +8109,11 @@ function validate$7(obj, path = 'SemanticModelOutputRepresentation') {
8084
8109
  if (typeof obj_id !== 'string') {
8085
8110
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
8086
8111
  }
8112
+ const obj_isLocked = obj.isLocked;
8113
+ const path_isLocked = path + '.isLocked';
8114
+ if (typeof obj_isLocked !== 'boolean') {
8115
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isLocked + '" (at "' + path_isLocked + '")');
8116
+ }
8087
8117
  if (obj.label !== undefined) {
8088
8118
  const obj_label = obj.label;
8089
8119
  const path_label = path + '.label';
@@ -8516,6 +8546,10 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
8516
8546
  name: 'id',
8517
8547
  kind: 'Scalar'
8518
8548
  },
8549
+ {
8550
+ name: 'isLocked',
8551
+ kind: 'Scalar'
8552
+ },
8519
8553
  {
8520
8554
  name: 'label',
8521
8555
  kind: 'Scalar',
@@ -8636,6 +8670,11 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
8636
8670
  };
8637
8671
  };
8638
8672
  function equals$5(existing, incoming) {
8673
+ const existing_isLocked = existing.isLocked;
8674
+ const incoming_isLocked = incoming.isLocked;
8675
+ if (!(existing_isLocked === incoming_isLocked)) {
8676
+ return false;
8677
+ }
8639
8678
  const existing_apiName = existing.apiName;
8640
8679
  const incoming_apiName = incoming.apiName;
8641
8680
  if (!(existing_apiName === incoming_apiName)) {
@@ -8,7 +8,7 @@ import { SemanticLogicalViewOutputRepresentation as SemanticLogicalViewOutputRep
8
8
  import { SemanticMetricOutputRepresentation as SemanticMetricOutputRepresentation_SemanticMetricOutputRepresentation } from './SemanticMetricOutputRepresentation';
9
9
  import { SemanticParameterOutputRepresentation as SemanticParameterOutputRepresentation_SemanticParameterOutputRepresentation } from './SemanticParameterOutputRepresentation';
10
10
  import { SemanticRelationshipOutputRepresentation as SemanticRelationshipOutputRepresentation_SemanticRelationshipOutputRepresentation } from './SemanticRelationshipOutputRepresentation';
11
- export declare const VERSION = "3fb33fd1e310fdf42bf0170a5f20e206";
11
+ export declare const VERSION = "4fbdc86189bea9d4aa3019bc6a4fce15";
12
12
  export declare function validate(obj: any, path?: string): TypeError | null;
13
13
  export declare const RepresentationType: string;
14
14
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -75,6 +75,8 @@ export interface SemanticModelOutputRepresentationNormalized {
75
75
  description?: string;
76
76
  /** The object ID of the semantic entity. */
77
77
  id: string;
78
+ /** Is the model locked for edit/ delete. */
79
+ isLocked: boolean;
78
80
  /** The display name of the semantic entity to be used in the ui. */
79
81
  label?: string;
80
82
  /** The user who last modified the semantic entity. */
@@ -133,6 +135,7 @@ export interface SemanticModelOutputRepresentation {
133
135
  dataspace: string;
134
136
  description?: string;
135
137
  id: string;
138
+ isLocked: boolean;
136
139
  label?: string;
137
140
  lastModifiedBy?: string;
138
141
  lastModifiedDate?: 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 = "e01a91fd79dacbb09de6099af9690841";
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;
@@ -35,6 +35,8 @@ export interface SemanticModelPartialOutputRepresentationNormalized {
35
35
  description?: string;
36
36
  /** The object ID of the semantic entity. */
37
37
  id: string;
38
+ /** Is the model locked for edit/ delete. */
39
+ isLocked?: boolean;
38
40
  /** The display name of the semantic entity to be used in the ui. */
39
41
  label?: string;
40
42
  /** The user who last modified the semantic entity. */
@@ -77,6 +79,7 @@ export interface SemanticModelPartialOutputRepresentation {
77
79
  dataspace: string;
78
80
  description?: string;
79
81
  id: string;
82
+ isLocked?: boolean;
80
83
  label?: string;
81
84
  lastModifiedBy?: string;
82
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.309.0-dev13",
3
+ "version": "1.309.0-dev15",
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.309.0-dev13"
43
+ "@salesforce/lds-bindings": "^1.309.0-dev15"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.309.0-dev13"
46
+ "@salesforce/lds-compiler-plugins": "^1.309.0-dev15"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -7046,7 +7046,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
7046
7046
  });
7047
7047
  }
7048
7048
 
7049
- const VERSION$7 = "3fb33fd1e310fdf42bf0170a5f20e206";
7049
+ const VERSION$7 = "4fbdc86189bea9d4aa3019bc6a4fce15";
7050
7050
  function validate$9(obj, path = 'SemanticModelOutputRepresentation') {
7051
7051
  const v_error = (() => {
7052
7052
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -7129,6 +7129,11 @@ function validate$9(obj, path = 'SemanticModelOutputRepresentation') {
7129
7129
  if (typeof obj_id !== 'string') {
7130
7130
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
7131
7131
  }
7132
+ const obj_isLocked = obj.isLocked;
7133
+ const path_isLocked = path + '.isLocked';
7134
+ if (typeof obj_isLocked !== 'boolean') {
7135
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isLocked + '" (at "' + path_isLocked + '")');
7136
+ }
7132
7137
  if (obj.label !== undefined) {
7133
7138
  const obj_label = obj.label;
7134
7139
  const path_label = path + '.label';
@@ -7561,6 +7566,10 @@ const select$i = function SemanticModelOutputRepresentationSelect() {
7561
7566
  name: 'id',
7562
7567
  kind: 'Scalar'
7563
7568
  },
7569
+ {
7570
+ name: 'isLocked',
7571
+ kind: 'Scalar'
7572
+ },
7564
7573
  {
7565
7574
  name: 'label',
7566
7575
  kind: 'Scalar',
@@ -7681,6 +7690,11 @@ const select$i = function SemanticModelOutputRepresentationSelect() {
7681
7690
  };
7682
7691
  };
7683
7692
  function equals$7(existing, incoming) {
7693
+ const existing_isLocked = existing.isLocked;
7694
+ const incoming_isLocked = incoming.isLocked;
7695
+ if (!(existing_isLocked === incoming_isLocked)) {
7696
+ return false;
7697
+ }
7684
7698
  const existing_apiName = existing.apiName;
7685
7699
  const incoming_apiName = incoming.apiName;
7686
7700
  if (!(existing_apiName === incoming_apiName)) {
@@ -9755,7 +9769,7 @@ const notifyChangeFactory$1 = (luvio, options) => {
9755
9769
  };
9756
9770
  };
9757
9771
 
9758
- const VERSION$2 = "e01a91fd79dacbb09de6099af9690841";
9772
+ const VERSION$2 = "3387fc4e5c28406b97f056392b16e548";
9759
9773
  function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
9760
9774
  const v_error = (() => {
9761
9775
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -9838,6 +9852,13 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
9838
9852
  if (typeof obj_id !== 'string') {
9839
9853
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
9840
9854
  }
9855
+ if (obj.isLocked !== undefined) {
9856
+ const obj_isLocked = obj.isLocked;
9857
+ const path_isLocked = path + '.isLocked';
9858
+ if (typeof obj_isLocked !== 'boolean') {
9859
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isLocked + '" (at "' + path_isLocked + '")');
9860
+ }
9861
+ }
9841
9862
  if (obj.label !== undefined) {
9842
9863
  const obj_label = obj.label;
9843
9864
  const path_label = path + '.label';
@@ -10001,6 +10022,11 @@ const select$7 = function SemanticModelPartialOutputRepresentationSelect() {
10001
10022
  name: 'id',
10002
10023
  kind: 'Scalar'
10003
10024
  },
10025
+ {
10026
+ name: 'isLocked',
10027
+ kind: 'Scalar',
10028
+ required: false
10029
+ },
10004
10030
  {
10005
10031
  name: 'label',
10006
10032
  kind: 'Scalar',
@@ -10065,6 +10091,19 @@ const select$7 = function SemanticModelPartialOutputRepresentationSelect() {
10065
10091
  };
10066
10092
  };
10067
10093
  function equals$2(existing, incoming) {
10094
+ const existing_isLocked = existing.isLocked;
10095
+ const incoming_isLocked = incoming.isLocked;
10096
+ // if at least one of these optionals is defined
10097
+ if (existing_isLocked !== undefined || incoming_isLocked !== undefined) {
10098
+ // if one of these is not defined we know the other is defined and therefore
10099
+ // not equal
10100
+ if (existing_isLocked === undefined || incoming_isLocked === undefined) {
10101
+ return false;
10102
+ }
10103
+ if (!(existing_isLocked === incoming_isLocked)) {
10104
+ return false;
10105
+ }
10106
+ }
10068
10107
  const existing_apiName = existing.apiName;
10069
10108
  const incoming_apiName = incoming.apiName;
10070
10109
  if (!(existing_apiName === incoming_apiName)) {
@@ -11597,4 +11636,4 @@ withDefaultLuvio((luvio) => {
11597
11636
  });
11598
11637
 
11599
11638
  export { createSemanticModel, createSemanticSubMetric, deleteSemanticSubMetric, getSemanticMetric, getSemanticMetricNotifyChange, getSemanticMetric_imperative, getSemanticMetrics, getSemanticMetricsToSubMetrics, getSemanticMetricsToSubMetrics_imperative, getSemanticMetrics_imperative, getSemanticModel, getSemanticModelNotifyChange, getSemanticModel_imperative, getSemanticModels, getSemanticModels_imperative, getSemanticSubMetric, getSemanticSubMetricNotifyChange, getSemanticSubMetric_imperative, getSemanticSubMetrics, getSemanticSubMetricsById, getSemanticSubMetricsById_imperative, getSemanticSubMetrics_imperative, patchSemanticModel };
11600
- // version: 1.309.0-dev13-f443187b81
11639
+ // version: 1.309.0-dev15-880a224b78
package/src/raml/api.raml CHANGED
@@ -2211,6 +2211,9 @@ types:
2211
2211
  dataspace:
2212
2212
  description: Required. Dataspace in which the Semantic Model is located.
2213
2213
  type: string
2214
+ isLocked:
2215
+ description: Is the model locked for edit/ delete.
2216
+ type: boolean
2214
2217
  queryUnrelatedDataObjects:
2215
2218
  description: The type of join performed between the defined Data Cloud Objects. Valid values are AUTO, LEFT, RIGHT, FULL, and INNER.
2216
2219
  type: SemanticQueryUnrelatedDataObjectsTypeEnum
@@ -2393,6 +2396,10 @@ types:
2393
2396
  dataspace:
2394
2397
  description: Required. Dataspace in which the Semantic Model is located.
2395
2398
  type: string
2399
+ isLocked:
2400
+ description: Is the model locked for edit/ delete.
2401
+ type: boolean
2402
+ required: false
2396
2403
  queryUnrelatedDataObjects:
2397
2404
  description: The type of join performed between the defined Data Cloud Objects. Valid values are AUTO, LEFT, RIGHT, FULL, and INNER.
2398
2405
  type: SemanticQueryUnrelatedDataObjectsTypeEnum