@salesforce/lds-adapters-cdp-semantic-authoring 1.404.0 → 1.409.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.
@@ -11656,7 +11656,7 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
11656
11656
  });
11657
11657
  }
11658
11658
 
11659
- const VERSION$7 = "490700849a7370c55bde4a599c2b4a31";
11659
+ const VERSION$7 = "f915d2dd0ee74baf4223ed70b11a2140";
11660
11660
  function validate$g(obj, path = 'SemanticModelOutputRepresentation') {
11661
11661
  const v_error = (() => {
11662
11662
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -11780,6 +11780,13 @@ function validate$g(obj, path = 'SemanticModelOutputRepresentation') {
11780
11780
  if (typeof obj_id !== 'string') {
11781
11781
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
11782
11782
  }
11783
+ if (obj.isAiDrafted !== undefined) {
11784
+ const obj_isAiDrafted = obj.isAiDrafted;
11785
+ const path_isAiDrafted = path + '.isAiDrafted';
11786
+ if (typeof obj_isAiDrafted !== 'boolean') {
11787
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isAiDrafted + '" (at "' + path_isAiDrafted + '")');
11788
+ }
11789
+ }
11783
11790
  if (obj.isLocked !== undefined) {
11784
11791
  const obj_isLocked = obj.isLocked;
11785
11792
  const path_isLocked = path + '.isLocked';
@@ -12318,6 +12325,11 @@ const select$q = function SemanticModelOutputRepresentationSelect() {
12318
12325
  name: 'id',
12319
12326
  kind: 'Scalar'
12320
12327
  },
12328
+ {
12329
+ name: 'isAiDrafted',
12330
+ kind: 'Scalar',
12331
+ required: false
12332
+ },
12321
12333
  {
12322
12334
  name: 'isLocked',
12323
12335
  kind: 'Scalar',
@@ -12467,6 +12479,19 @@ const select$q = function SemanticModelOutputRepresentationSelect() {
12467
12479
  };
12468
12480
  };
12469
12481
  function equals$7(existing, incoming) {
12482
+ const existing_isAiDrafted = existing.isAiDrafted;
12483
+ const incoming_isAiDrafted = incoming.isAiDrafted;
12484
+ // if at least one of these optionals is defined
12485
+ if (existing_isAiDrafted !== undefined || incoming_isAiDrafted !== undefined) {
12486
+ // if one of these is not defined we know the other is defined and therefore
12487
+ // not equal
12488
+ if (existing_isAiDrafted === undefined || incoming_isAiDrafted === undefined) {
12489
+ return false;
12490
+ }
12491
+ if (!(existing_isAiDrafted === incoming_isAiDrafted)) {
12492
+ return false;
12493
+ }
12494
+ }
12470
12495
  const existing_isLocked = existing.isLocked;
12471
12496
  const incoming_isLocked = incoming.isLocked;
12472
12497
  // if at least one of these optionals is defined
@@ -13136,6 +13161,7 @@ const createSemanticModel_ConfigPropertyMetadata = [
13136
13161
  generateParamConfigMetadata('semanticModelFilter', false, 2 /* Body */, 4 /* Unsupported */),
13137
13162
  generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
13138
13163
  generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
13164
+ generateParamConfigMetadata('isAiDrafted', false, 2 /* Body */, 1 /* Boolean */),
13139
13165
  ];
13140
13166
  const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, createSemanticModel_ConfigPropertyMetadata);
13141
13167
  const createResourceParams$m = /*#__PURE__*/ createResourceParams$p(createSemanticModel_ConfigPropertyMetadata);
@@ -13535,6 +13561,7 @@ const patchSemanticModel_ConfigPropertyMetadata = [
13535
13561
  generateParamConfigMetadata('semanticModelFilter', false, 2 /* Body */, 4 /* Unsupported */),
13536
13562
  generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
13537
13563
  generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
13564
+ generateParamConfigMetadata('isAiDrafted', false, 2 /* Body */, 1 /* Boolean */),
13538
13565
  ];
13539
13566
  const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, patchSemanticModel_ConfigPropertyMetadata);
13540
13567
  const createResourceParams$k = /*#__PURE__*/ createResourceParams$p(patchSemanticModel_ConfigPropertyMetadata);
@@ -41,6 +41,7 @@ export interface CreateSemanticModelConfig {
41
41
  semanticModelFilter?: types_SemanticModelFilterInputRepresentation_SemanticModelFilterInputRepresentation;
42
42
  semanticParameters?: Array<types_SemanticParameterInputRepresentation_SemanticParameterInputRepresentation>;
43
43
  semanticRelationships?: Array<types_SemanticRelationshipInputRepresentation_SemanticRelationshipInputRepresentation>;
44
+ isAiDrafted?: boolean;
44
45
  }
45
46
  export declare const createResourceParams: (config: CreateSemanticModelConfig) => resources_postSsotSemanticModels_ResourceRequestConfig;
46
47
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateSemanticModelConfig>): adapter$45$utils_Untrusted<CreateSemanticModelConfig>;
@@ -42,6 +42,7 @@ export interface PatchSemanticModelConfig {
42
42
  semanticModelFilter?: types_SemanticModelFilterInputRepresentation_SemanticModelFilterInputRepresentation;
43
43
  semanticParameters?: Array<types_SemanticParameterInputRepresentation_SemanticParameterInputRepresentation>;
44
44
  semanticRelationships?: Array<types_SemanticRelationshipInputRepresentation_SemanticRelationshipInputRepresentation>;
45
+ isAiDrafted?: boolean;
45
46
  }
46
47
  export declare const createResourceParams: (config: PatchSemanticModelConfig) => resources_patchSsotSemanticModelsByModelApiNameOrId_ResourceRequestConfig;
47
48
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PatchSemanticModelConfig>): adapter$45$utils_Untrusted<PatchSemanticModelConfig>;
@@ -40,6 +40,7 @@ export interface ResourceRequestConfig {
40
40
  semanticModelFilter?: types_SemanticModelFilterInputRepresentation_SemanticModelFilterInputRepresentation;
41
41
  semanticParameters?: Array<types_SemanticParameterInputRepresentation_SemanticParameterInputRepresentation>;
42
42
  semanticRelationships?: Array<types_SemanticRelationshipInputRepresentation_SemanticRelationshipInputRepresentation>;
43
+ isAiDrafted?: boolean;
43
44
  };
44
45
  }
45
46
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -37,6 +37,7 @@ export interface ResourceRequestConfig {
37
37
  semanticModelFilter?: types_SemanticModelFilterInputRepresentation_SemanticModelFilterInputRepresentation;
38
38
  semanticParameters?: Array<types_SemanticParameterInputRepresentation_SemanticParameterInputRepresentation>;
39
39
  semanticRelationships?: Array<types_SemanticRelationshipInputRepresentation_SemanticRelationshipInputRepresentation>;
40
+ isAiDrafted?: boolean;
40
41
  };
41
42
  }
42
43
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -40,6 +40,7 @@ export interface ResourceRequestConfig {
40
40
  semanticModelFilter?: types_SemanticModelFilterInputRepresentation_SemanticModelFilterInputRepresentation;
41
41
  semanticParameters?: Array<types_SemanticParameterInputRepresentation_SemanticParameterInputRepresentation>;
42
42
  semanticRelationships?: Array<types_SemanticRelationshipInputRepresentation_SemanticRelationshipInputRepresentation>;
43
+ isAiDrafted?: boolean;
43
44
  };
44
45
  }
45
46
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -12,7 +12,7 @@ import { SemanticModelFilterInputRepresentation as SemanticModelFilterInputRepre
12
12
  import { SemanticParameterInputRepresentation as SemanticParameterInputRepresentation_SemanticParameterInputRepresentation } from './SemanticParameterInputRepresentation';
13
13
  import { SemanticRelationshipInputRepresentation as SemanticRelationshipInputRepresentation_SemanticRelationshipInputRepresentation } from './SemanticRelationshipInputRepresentation';
14
14
  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';
15
- export declare const VERSION = "4a95ee0eed9800c9e4a6ad99f904c05f";
15
+ export declare const VERSION = "0bc545fc1f39ed94383b6644229034fd";
16
16
  export declare function validate(obj: any, path?: string): TypeError | null;
17
17
  export declare const RepresentationType: string;
18
18
  export declare function normalize(input: SemanticModelInputRepresentation, existing: SemanticModelInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SemanticModelInputRepresentationNormalized;
@@ -45,6 +45,8 @@ export interface SemanticModelInputRepresentationNormalized {
45
45
  externalConnections?: Array<SemanticModelExternalConnectionInputRepresentation_SemanticModelExternalConnectionInputRepresentation>;
46
46
  /** Semantic fields overrides within the model. */
47
47
  fieldsOverrides?: Array<SemanticOverrideInputRepresentation_SemanticOverrideInputRepresentation>;
48
+ /** Is drafted by AI indicator */
49
+ isAiDrafted?: boolean;
48
50
  /** 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. */
49
51
  label?: string;
50
52
  /** Required. The type of join performed between the defined Data Cloud Objects. Valid values are AUTO, LEFT, RIGHT, FULL, and INNER. */
@@ -87,6 +89,7 @@ export interface SemanticModelInputRepresentation {
87
89
  dimensionHierarchies?: Array<SemanticDimensionHierarchyInputRepresentation_SemanticDimensionHierarchyInputRepresentation>;
88
90
  externalConnections?: Array<SemanticModelExternalConnectionInputRepresentation_SemanticModelExternalConnectionInputRepresentation>;
89
91
  fieldsOverrides?: Array<SemanticOverrideInputRepresentation_SemanticOverrideInputRepresentation>;
92
+ isAiDrafted?: boolean;
90
93
  label?: string;
91
94
  queryUnrelatedDataObjects?: string;
92
95
  semanticCalculatedDimensions?: Array<SemanticCalculatedDimensionInputRepresentation_SemanticCalculatedDimensionInputRepresentation>;
@@ -12,7 +12,7 @@ import { SemanticMetricOutputRepresentation as SemanticMetricOutputRepresentatio
12
12
  import { SemanticModelFilterOutputRepresentation as SemanticModelFilterOutputRepresentation_SemanticModelFilterOutputRepresentation } from './SemanticModelFilterOutputRepresentation';
13
13
  import { SemanticParameterOutputRepresentation as SemanticParameterOutputRepresentation_SemanticParameterOutputRepresentation } from './SemanticParameterOutputRepresentation';
14
14
  import { SemanticRelationshipOutputRepresentation as SemanticRelationshipOutputRepresentation_SemanticRelationshipOutputRepresentation } from './SemanticRelationshipOutputRepresentation';
15
- export declare const VERSION = "490700849a7370c55bde4a599c2b4a31";
15
+ export declare const VERSION = "f915d2dd0ee74baf4223ed70b11a2140";
16
16
  export declare function validate(obj: any, path?: string): TypeError | null;
17
17
  export declare const RepresentationType: string;
18
18
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -89,6 +89,8 @@ export interface SemanticModelOutputRepresentationNormalized {
89
89
  fieldsOverrides?: Array<SemanticOverrideOutputRepresentation_SemanticOverrideOutputRepresentation>;
90
90
  /** The object ID of the semantic entity. */
91
91
  id: string;
92
+ /** Is drafted by AI indicator */
93
+ isAiDrafted?: boolean;
92
94
  /** Is the model locked for edit/ delete. */
93
95
  isLocked?: boolean;
94
96
  /** Indicates if the model is partial because of Data Gov. */
@@ -160,6 +162,7 @@ export interface SemanticModelOutputRepresentation {
160
162
  externalConnections?: Array<SemanticModelExternalConnectionOutputRepresentation_SemanticModelExternalConnectionOutputRepresentation>;
161
163
  fieldsOverrides?: Array<SemanticOverrideOutputRepresentation_SemanticOverrideOutputRepresentation>;
162
164
  id: string;
165
+ isAiDrafted?: boolean;
163
166
  isLocked?: boolean;
164
167
  isPartialSdm?: boolean;
165
168
  isQueryable?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cdp-semantic-authoring",
3
- "version": "1.404.0",
3
+ "version": "1.409.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.404.0"
43
+ "@salesforce/lds-bindings": "^1.409.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.404.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.409.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -10850,7 +10850,7 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
10850
10850
  });
10851
10851
  }
10852
10852
 
10853
- const VERSION$9 = "490700849a7370c55bde4a599c2b4a31";
10853
+ const VERSION$9 = "f915d2dd0ee74baf4223ed70b11a2140";
10854
10854
  function validate$e(obj, path = 'SemanticModelOutputRepresentation') {
10855
10855
  const v_error = (() => {
10856
10856
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -10974,6 +10974,13 @@ function validate$e(obj, path = 'SemanticModelOutputRepresentation') {
10974
10974
  if (typeof obj_id !== 'string') {
10975
10975
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
10976
10976
  }
10977
+ if (obj.isAiDrafted !== undefined) {
10978
+ const obj_isAiDrafted = obj.isAiDrafted;
10979
+ const path_isAiDrafted = path + '.isAiDrafted';
10980
+ if (typeof obj_isAiDrafted !== 'boolean') {
10981
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isAiDrafted + '" (at "' + path_isAiDrafted + '")');
10982
+ }
10983
+ }
10977
10984
  if (obj.isLocked !== undefined) {
10978
10985
  const obj_isLocked = obj.isLocked;
10979
10986
  const path_isLocked = path + '.isLocked';
@@ -11512,6 +11519,11 @@ const select$s = function SemanticModelOutputRepresentationSelect() {
11512
11519
  name: 'id',
11513
11520
  kind: 'Scalar'
11514
11521
  },
11522
+ {
11523
+ name: 'isAiDrafted',
11524
+ kind: 'Scalar',
11525
+ required: false
11526
+ },
11515
11527
  {
11516
11528
  name: 'isLocked',
11517
11529
  kind: 'Scalar',
@@ -11661,6 +11673,19 @@ const select$s = function SemanticModelOutputRepresentationSelect() {
11661
11673
  };
11662
11674
  };
11663
11675
  function equals$9(existing, incoming) {
11676
+ const existing_isAiDrafted = existing.isAiDrafted;
11677
+ const incoming_isAiDrafted = incoming.isAiDrafted;
11678
+ // if at least one of these optionals is defined
11679
+ if (existing_isAiDrafted !== undefined || incoming_isAiDrafted !== undefined) {
11680
+ // if one of these is not defined we know the other is defined and therefore
11681
+ // not equal
11682
+ if (existing_isAiDrafted === undefined || incoming_isAiDrafted === undefined) {
11683
+ return false;
11684
+ }
11685
+ if (!(existing_isAiDrafted === incoming_isAiDrafted)) {
11686
+ return false;
11687
+ }
11688
+ }
11664
11689
  const existing_isLocked = existing.isLocked;
11665
11690
  const incoming_isLocked = incoming.isLocked;
11666
11691
  // if at least one of these optionals is defined
@@ -12330,6 +12355,7 @@ const createSemanticModel_ConfigPropertyMetadata = [
12330
12355
  generateParamConfigMetadata('semanticModelFilter', false, 2 /* Body */, 4 /* Unsupported */),
12331
12356
  generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
12332
12357
  generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
12358
+ generateParamConfigMetadata('isAiDrafted', false, 2 /* Body */, 1 /* Boolean */),
12333
12359
  ];
12334
12360
  const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, createSemanticModel_ConfigPropertyMetadata);
12335
12361
  const createResourceParams$m = /*#__PURE__*/ createResourceParams$p(createSemanticModel_ConfigPropertyMetadata);
@@ -17042,6 +17068,7 @@ const patchSemanticModel_ConfigPropertyMetadata = [
17042
17068
  generateParamConfigMetadata('semanticModelFilter', false, 2 /* Body */, 4 /* Unsupported */),
17043
17069
  generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
17044
17070
  generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
17071
+ generateParamConfigMetadata('isAiDrafted', false, 2 /* Body */, 1 /* Boolean */),
17045
17072
  ];
17046
17073
  const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, patchSemanticModel_ConfigPropertyMetadata);
17047
17074
  const createResourceParams$2 = /*#__PURE__*/ createResourceParams$p(patchSemanticModel_ConfigPropertyMetadata);
@@ -17666,4 +17693,4 @@ withDefaultLuvio((luvio) => {
17666
17693
  });
17667
17694
 
17668
17695
  export { createSemanticDimensionHierarchy, createSemanticGoal, createSemanticModel, createSemanticSubMetric, deleteGoalFromSubMetric, deleteSemanticDimensionHierarchy, deleteSemanticGoal, deleteSemanticSubMetric, getLeafDependenciesByTypes, getLeafDependenciesByTypes_imperative, getSemanticDimensionHierarchies, getSemanticDimensionHierarchies_imperative, getSemanticDimensionHierarchy, getSemanticDimensionHierarchyNotifyChange, getSemanticDimensionHierarchy_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, updateSemanticDimensionHierarchy, updateSemanticGoal };
17669
- // version: 1.404.0-d0f3b5bc15
17696
+ // version: 1.409.0-355a528ce3
package/src/raml/api.raml CHANGED
@@ -3067,6 +3067,10 @@ types:
3067
3067
  items:
3068
3068
  type: SemanticRelationshipInputRepresentation
3069
3069
  required: false
3070
+ isAiDrafted:
3071
+ description: Is drafted by AI indicator
3072
+ type: boolean
3073
+ required: false
3070
3074
  SemanticModelFilterCollectionOutputRepresentation:
3071
3075
  description: Semantic model filter collection representation.
3072
3076
  type: object
@@ -3403,6 +3407,10 @@ types:
3403
3407
  required: false
3404
3408
  items:
3405
3409
  type: SemanticRelationshipOutputRepresentation
3410
+ isAiDrafted:
3411
+ description: Is drafted by AI indicator
3412
+ type: boolean
3413
+ required: false
3406
3414
  SemanticModelPartialInputRepresentation:
3407
3415
  description: Limited input representation for patching semantic model
3408
3416
  type: object