@salesforce/lds-adapters-cdp-personalization-service 1.373.0 → 1.375.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.
@@ -5006,7 +5006,7 @@ function equals$2(existing, incoming) {
5006
5006
  return true;
5007
5007
  }
5008
5008
 
5009
- const VERSION$1 = "eb7b70de2adf54962bc3f5d15a259ca4";
5009
+ const VERSION$1 = "d1b90f3586125de94a321fae68717c07";
5010
5010
  function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
5011
5011
  const v_error = (() => {
5012
5012
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5052,10 +5052,10 @@ function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
5052
5052
  if (typeof obj_name !== 'string') {
5053
5053
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
5054
5054
  }
5055
- const obj_profileDataGraphName = obj.profileDataGraphName;
5056
- const path_profileDataGraphName = path + '.profileDataGraphName';
5057
- if (typeof obj_profileDataGraphName !== 'string') {
5058
- return new TypeError('Expected "string" but received "' + typeof obj_profileDataGraphName + '" (at "' + path_profileDataGraphName + '")');
5055
+ const obj_profileDataGraphInfo = obj.profileDataGraphInfo;
5056
+ const path_profileDataGraphInfo = path + '.profileDataGraphInfo';
5057
+ if (obj_profileDataGraphInfo === undefined) {
5058
+ return new TypeError('Expected "defined" but received "' + typeof obj_profileDataGraphInfo + '" (at "' + path_profileDataGraphInfo + '")');
5059
5059
  }
5060
5060
  const obj_status = obj.status;
5061
5061
  const path_status = path + '.status';
@@ -5100,8 +5100,9 @@ const select$2 = function PersonalizationDataMlModelRepresentationSelect() {
5100
5100
  kind: 'Scalar'
5101
5101
  },
5102
5102
  {
5103
- name: 'profileDataGraphName',
5104
- kind: 'Scalar'
5103
+ name: 'profileDataGraphInfo',
5104
+ kind: 'Object',
5105
+ // any
5105
5106
  },
5106
5107
  {
5107
5108
  name: 'status',
@@ -5131,11 +5132,6 @@ function equals$1(existing, incoming) {
5131
5132
  if (!(existing_name === incoming_name)) {
5132
5133
  return false;
5133
5134
  }
5134
- const existing_profileDataGraphName = existing.profileDataGraphName;
5135
- const incoming_profileDataGraphName = incoming.profileDataGraphName;
5136
- if (!(existing_profileDataGraphName === incoming_profileDataGraphName)) {
5137
- return false;
5138
- }
5139
5135
  const existing_status = existing.status;
5140
5136
  const incoming_status = incoming.status;
5141
5137
  if (!(existing_status === incoming_status)) {
@@ -5156,6 +5152,11 @@ function equals$1(existing, incoming) {
5156
5152
  if (JSONStringify(incoming_mlConfiguredModel) !== JSONStringify(existing_mlConfiguredModel)) {
5157
5153
  return false;
5158
5154
  }
5155
+ const existing_profileDataGraphInfo = existing.profileDataGraphInfo;
5156
+ const incoming_profileDataGraphInfo = incoming.profileDataGraphInfo;
5157
+ if (JSONStringify(incoming_profileDataGraphInfo) !== JSONStringify(existing_profileDataGraphInfo)) {
5158
+ return false;
5159
+ }
5159
5160
  return true;
5160
5161
  }
5161
5162
 
@@ -1,6 +1,6 @@
1
1
  import { PersonalizationDataMlModelInputFeatureRepresentation as PersonalizationDataMlModelInputFeatureRepresentation_PersonalizationDataMlModelInputFeatureRepresentation } from './PersonalizationDataMlModelInputFeatureRepresentation';
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 = "eb7b70de2adf54962bc3f5d15a259ca4";
3
+ export declare const VERSION = "d1b90f3586125de94a321fae68717c07";
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: PersonalizationDataMlModelRepresentation, existing: PersonalizationDataMlModelRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PersonalizationDataMlModelRepresentationNormalized;
@@ -27,8 +27,8 @@ export interface PersonalizationDataMlModelRepresentationNormalized {
27
27
  mlConfiguredModel: unknown;
28
28
  /** Name of the model mapping */
29
29
  name: string;
30
- /** Profile Data Graph Name */
31
- profileDataGraphName: string;
30
+ /** Profile Data Graph Info */
31
+ profileDataGraphInfo: unknown;
32
32
  /** status of the model mapping */
33
33
  status: string;
34
34
  }
@@ -45,6 +45,6 @@ export interface PersonalizationDataMlModelRepresentation {
45
45
  label: string;
46
46
  mlConfiguredModel: unknown;
47
47
  name: string;
48
- profileDataGraphName: string;
48
+ profileDataGraphInfo: unknown;
49
49
  status: string;
50
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cdp-personalization-service",
3
- "version": "1.373.0",
3
+ "version": "1.375.0",
4
4
  "description": "wire adapters for personalization service connect api",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/cdp-personalization-service.js",
@@ -42,10 +42,10 @@
42
42
  "test:unit:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
43
43
  },
44
44
  "dependencies": {
45
- "@salesforce/lds-bindings": "^1.373.0"
45
+ "@salesforce/lds-bindings": "^1.375.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@salesforce/lds-compiler-plugins": "^1.373.0"
48
+ "@salesforce/lds-compiler-plugins": "^1.375.0"
49
49
  },
50
50
  "nx": {
51
51
  "targets": {
package/sfdc/index.js CHANGED
@@ -3784,7 +3784,7 @@ function equals$5(existing, incoming) {
3784
3784
  return true;
3785
3785
  }
3786
3786
 
3787
- const VERSION$4 = "eb7b70de2adf54962bc3f5d15a259ca4";
3787
+ const VERSION$4 = "d1b90f3586125de94a321fae68717c07";
3788
3788
  function validate$7(obj, path = 'PersonalizationDataMlModelRepresentation') {
3789
3789
  const v_error = (() => {
3790
3790
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -3830,10 +3830,10 @@ function validate$7(obj, path = 'PersonalizationDataMlModelRepresentation') {
3830
3830
  if (typeof obj_name !== 'string') {
3831
3831
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
3832
3832
  }
3833
- const obj_profileDataGraphName = obj.profileDataGraphName;
3834
- const path_profileDataGraphName = path + '.profileDataGraphName';
3835
- if (typeof obj_profileDataGraphName !== 'string') {
3836
- return new TypeError('Expected "string" but received "' + typeof obj_profileDataGraphName + '" (at "' + path_profileDataGraphName + '")');
3833
+ const obj_profileDataGraphInfo = obj.profileDataGraphInfo;
3834
+ const path_profileDataGraphInfo = path + '.profileDataGraphInfo';
3835
+ if (obj_profileDataGraphInfo === undefined) {
3836
+ return new TypeError('Expected "defined" but received "' + typeof obj_profileDataGraphInfo + '" (at "' + path_profileDataGraphInfo + '")');
3837
3837
  }
3838
3838
  const obj_status = obj.status;
3839
3839
  const path_status = path + '.status';
@@ -3878,8 +3878,9 @@ const select$a = function PersonalizationDataMlModelRepresentationSelect() {
3878
3878
  kind: 'Scalar'
3879
3879
  },
3880
3880
  {
3881
- name: 'profileDataGraphName',
3882
- kind: 'Scalar'
3881
+ name: 'profileDataGraphInfo',
3882
+ kind: 'Object',
3883
+ // any
3883
3884
  },
3884
3885
  {
3885
3886
  name: 'status',
@@ -3909,11 +3910,6 @@ function equals$4(existing, incoming) {
3909
3910
  if (!(existing_name === incoming_name)) {
3910
3911
  return false;
3911
3912
  }
3912
- const existing_profileDataGraphName = existing.profileDataGraphName;
3913
- const incoming_profileDataGraphName = incoming.profileDataGraphName;
3914
- if (!(existing_profileDataGraphName === incoming_profileDataGraphName)) {
3915
- return false;
3916
- }
3917
3913
  const existing_status = existing.status;
3918
3914
  const incoming_status = incoming.status;
3919
3915
  if (!(existing_status === incoming_status)) {
@@ -3934,6 +3930,11 @@ function equals$4(existing, incoming) {
3934
3930
  if (JSONStringify(incoming_mlConfiguredModel) !== JSONStringify(existing_mlConfiguredModel)) {
3935
3931
  return false;
3936
3932
  }
3933
+ const existing_profileDataGraphInfo = existing.profileDataGraphInfo;
3934
+ const incoming_profileDataGraphInfo = incoming.profileDataGraphInfo;
3935
+ if (JSONStringify(incoming_profileDataGraphInfo) !== JSONStringify(existing_profileDataGraphInfo)) {
3936
+ return false;
3937
+ }
3937
3938
  return true;
3938
3939
  }
3939
3940
 
@@ -5529,4 +5530,4 @@ withDefaultLuvio((luvio) => {
5529
5530
  });
5530
5531
 
5531
5532
  export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationEsModelMapping, getPersonalizationEsModelMapping_imperative, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, getTrainingHistory, getTrainingHistory_imperative, postPersonalizationRecommenderSimulateAction, postPersonalizationRecommenderSimulateAction_imperative, updatePersonalizationPoint };
5532
- // version: 1.373.0-06d9801a26
5533
+ // version: 1.375.0-5bf9e6303e
package/src/raml/api.raml CHANGED
@@ -1182,7 +1182,10 @@ types:
1182
1182
  type: string
1183
1183
  enum:
1184
1184
  - CalculatedInsights
1185
+ - Contextual
1185
1186
  - Direct
1187
+ - Related
1188
+ - Segment
1186
1189
  PersonalizationDataMlModelCollectionRepresentation:
1187
1190
  description: Represent Personalization Data Ml Model Collection
1188
1191
  type: object
@@ -1216,9 +1219,9 @@ types:
1216
1219
  mlConfiguredModel:
1217
1220
  description: Einstein Studio Configured Model
1218
1221
  type: any
1219
- profileDataGraphName:
1220
- description: Profile Data Graph Name
1221
- type: string
1222
+ profileDataGraphInfo:
1223
+ description: Profile Data Graph Info
1224
+ type: any
1222
1225
  status:
1223
1226
  description: status of the model mapping
1224
1227
  type: string