@salesforce/lds-adapters-cdp-personalization-service 1.354.0-dev17 → 1.354.0-dev19

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.
@@ -4950,7 +4950,7 @@ function equals$2(existing, incoming) {
4950
4950
  return true;
4951
4951
  }
4952
4952
 
4953
- const VERSION$1 = "eb7b70de2adf54962bc3f5d15a259ca4";
4953
+ const VERSION$1 = "d1b90f3586125de94a321fae68717c07";
4954
4954
  function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
4955
4955
  const v_error = (() => {
4956
4956
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4996,10 +4996,10 @@ function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
4996
4996
  if (typeof obj_name !== 'string') {
4997
4997
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
4998
4998
  }
4999
- const obj_profileDataGraphName = obj.profileDataGraphName;
5000
- const path_profileDataGraphName = path + '.profileDataGraphName';
5001
- if (typeof obj_profileDataGraphName !== 'string') {
5002
- return new TypeError('Expected "string" but received "' + typeof obj_profileDataGraphName + '" (at "' + path_profileDataGraphName + '")');
4999
+ const obj_profileDataGraphInfo = obj.profileDataGraphInfo;
5000
+ const path_profileDataGraphInfo = path + '.profileDataGraphInfo';
5001
+ if (obj_profileDataGraphInfo === undefined) {
5002
+ return new TypeError('Expected "defined" but received "' + typeof obj_profileDataGraphInfo + '" (at "' + path_profileDataGraphInfo + '")');
5003
5003
  }
5004
5004
  const obj_status = obj.status;
5005
5005
  const path_status = path + '.status';
@@ -5044,8 +5044,9 @@ const select$2 = function PersonalizationDataMlModelRepresentationSelect() {
5044
5044
  kind: 'Scalar'
5045
5045
  },
5046
5046
  {
5047
- name: 'profileDataGraphName',
5048
- kind: 'Scalar'
5047
+ name: 'profileDataGraphInfo',
5048
+ kind: 'Object',
5049
+ // any
5049
5050
  },
5050
5051
  {
5051
5052
  name: 'status',
@@ -5075,11 +5076,6 @@ function equals$1(existing, incoming) {
5075
5076
  if (!(existing_name === incoming_name)) {
5076
5077
  return false;
5077
5078
  }
5078
- const existing_profileDataGraphName = existing.profileDataGraphName;
5079
- const incoming_profileDataGraphName = incoming.profileDataGraphName;
5080
- if (!(existing_profileDataGraphName === incoming_profileDataGraphName)) {
5081
- return false;
5082
- }
5083
5079
  const existing_status = existing.status;
5084
5080
  const incoming_status = incoming.status;
5085
5081
  if (!(existing_status === incoming_status)) {
@@ -5100,6 +5096,11 @@ function equals$1(existing, incoming) {
5100
5096
  if (JSONStringify(incoming_mlConfiguredModel) !== JSONStringify(existing_mlConfiguredModel)) {
5101
5097
  return false;
5102
5098
  }
5099
+ const existing_profileDataGraphInfo = existing.profileDataGraphInfo;
5100
+ const incoming_profileDataGraphInfo = incoming.profileDataGraphInfo;
5101
+ if (JSONStringify(incoming_profileDataGraphInfo) !== JSONStringify(existing_profileDataGraphInfo)) {
5102
+ return false;
5103
+ }
5103
5104
  return true;
5104
5105
  }
5105
5106
 
@@ -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.354.0-dev17",
3
+ "version": "1.354.0-dev19",
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",
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "scripts": {
35
35
  "build": "yarn build:services",
36
- "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
36
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p './scripts/lds-cdp-personalization-service-plugin.js'",
37
37
  "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
38
38
  "clean": "rm -rf dist sfdc src/generated",
39
39
  "release:core": "../../scripts/release/core.js --adapter=lds-adapters-cdp-personalization-service",
@@ -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.354.0-dev17"
45
+ "@salesforce/lds-bindings": "^1.354.0-dev19"
46
46
  },
47
47
  "devDependencies": {
48
- "@salesforce/lds-compiler-plugins": "^1.354.0-dev17"
48
+ "@salesforce/lds-compiler-plugins": "^1.354.0-dev19"
49
49
  },
50
50
  "nx": {
51
51
  "targets": {
@@ -56,6 +56,17 @@
56
56
  ]
57
57
  },
58
58
  "build:raml": {
59
+ "inputs": [
60
+ {
61
+ "externalDependencies": [
62
+ "@luvio/compiler",
63
+ "@luvio/cli"
64
+ ]
65
+ },
66
+ "{projectRoot}/**/*.raml",
67
+ "{projectRoot}/scripts/**",
68
+ "{projectRoot}/src/sfdc-module.json"
69
+ ],
59
70
  "outputs": [
60
71
  "{projectRoot}/src/generated"
61
72
  ]
package/sfdc/index.js CHANGED
@@ -3728,7 +3728,7 @@ function equals$5(existing, incoming) {
3728
3728
  return true;
3729
3729
  }
3730
3730
 
3731
- const VERSION$4 = "eb7b70de2adf54962bc3f5d15a259ca4";
3731
+ const VERSION$4 = "d1b90f3586125de94a321fae68717c07";
3732
3732
  function validate$7(obj, path = 'PersonalizationDataMlModelRepresentation') {
3733
3733
  const v_error = (() => {
3734
3734
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -3774,10 +3774,10 @@ function validate$7(obj, path = 'PersonalizationDataMlModelRepresentation') {
3774
3774
  if (typeof obj_name !== 'string') {
3775
3775
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
3776
3776
  }
3777
- const obj_profileDataGraphName = obj.profileDataGraphName;
3778
- const path_profileDataGraphName = path + '.profileDataGraphName';
3779
- if (typeof obj_profileDataGraphName !== 'string') {
3780
- return new TypeError('Expected "string" but received "' + typeof obj_profileDataGraphName + '" (at "' + path_profileDataGraphName + '")');
3777
+ const obj_profileDataGraphInfo = obj.profileDataGraphInfo;
3778
+ const path_profileDataGraphInfo = path + '.profileDataGraphInfo';
3779
+ if (obj_profileDataGraphInfo === undefined) {
3780
+ return new TypeError('Expected "defined" but received "' + typeof obj_profileDataGraphInfo + '" (at "' + path_profileDataGraphInfo + '")');
3781
3781
  }
3782
3782
  const obj_status = obj.status;
3783
3783
  const path_status = path + '.status';
@@ -3822,8 +3822,9 @@ const select$a = function PersonalizationDataMlModelRepresentationSelect() {
3822
3822
  kind: 'Scalar'
3823
3823
  },
3824
3824
  {
3825
- name: 'profileDataGraphName',
3826
- kind: 'Scalar'
3825
+ name: 'profileDataGraphInfo',
3826
+ kind: 'Object',
3827
+ // any
3827
3828
  },
3828
3829
  {
3829
3830
  name: 'status',
@@ -3853,11 +3854,6 @@ function equals$4(existing, incoming) {
3853
3854
  if (!(existing_name === incoming_name)) {
3854
3855
  return false;
3855
3856
  }
3856
- const existing_profileDataGraphName = existing.profileDataGraphName;
3857
- const incoming_profileDataGraphName = incoming.profileDataGraphName;
3858
- if (!(existing_profileDataGraphName === incoming_profileDataGraphName)) {
3859
- return false;
3860
- }
3861
3857
  const existing_status = existing.status;
3862
3858
  const incoming_status = incoming.status;
3863
3859
  if (!(existing_status === incoming_status)) {
@@ -3878,6 +3874,11 @@ function equals$4(existing, incoming) {
3878
3874
  if (JSONStringify(incoming_mlConfiguredModel) !== JSONStringify(existing_mlConfiguredModel)) {
3879
3875
  return false;
3880
3876
  }
3877
+ const existing_profileDataGraphInfo = existing.profileDataGraphInfo;
3878
+ const incoming_profileDataGraphInfo = incoming.profileDataGraphInfo;
3879
+ if (JSONStringify(incoming_profileDataGraphInfo) !== JSONStringify(existing_profileDataGraphInfo)) {
3880
+ return false;
3881
+ }
3881
3882
  return true;
3882
3883
  }
3883
3884
 
@@ -5473,4 +5474,4 @@ withDefaultLuvio((luvio) => {
5473
5474
  });
5474
5475
 
5475
5476
  export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationEsModelMapping, getPersonalizationEsModelMapping_imperative, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, getTrainingHistory, getTrainingHistory_imperative, postPersonalizationRecommenderSimulateAction, postPersonalizationRecommenderSimulateAction_imperative, updatePersonalizationPoint };
5476
- // version: 1.354.0-dev17-0989532028
5477
+ // version: 1.354.0-dev19-b5be6b3511
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
@@ -1229,6 +1232,146 @@ types:
1229
1232
  - Deleting
1230
1233
  - EditError
1231
1234
  - Processing
1235
+ PersonalizationExperienceConfigCollectionInputRepresentation:
1236
+ description: Personalization Experience Config Collection Input Representation
1237
+ type: object
1238
+ properties:
1239
+ personalizationExperienceConfigs:
1240
+ description: List of Personalization Experience Configs
1241
+ type: array
1242
+ items:
1243
+ type: array
1244
+ items:
1245
+ type: object
1246
+ PersonalizationExperienceConfigCollectionRepresentation:
1247
+ description: Personalization Experience Config Collection Output Representation
1248
+ type: PersonalizationPaginatedResponseBaseRepresentation
1249
+ properties:
1250
+ personalizationExperienceConfigs:
1251
+ description: List of Personalization Experience Configs
1252
+ type: array
1253
+ items:
1254
+ type: PersonalizationExperienceConfigRepresentation
1255
+ PersonalizationExperienceConfigInputRepresentation:
1256
+ description: Personalization Experience Config Input Representation
1257
+ type: object
1258
+ properties:
1259
+ dataProvider:
1260
+ description: What is supplying the data for this Personalization Experience?
1261
+ type: any
1262
+ description:
1263
+ description: Description of the Personalization Experience Config
1264
+ type: string
1265
+ displayUrl:
1266
+ description: When editing this configuration on the Website which page of
1267
+ the website should this configuration be displayed on if not the current
1268
+ page.
1269
+ type: string
1270
+ isEnabled:
1271
+ description: Whether or not this particular configuration is enabled.
1272
+ type: boolean
1273
+ label:
1274
+ description: Label of the Personalization Experience Config
1275
+ type: string
1276
+ lastModifiedDate:
1277
+ description: The datetime when this Personalization Experience Config was
1278
+ last modified.
1279
+ type: string
1280
+ required: false
1281
+ name:
1282
+ description: Name of the Personalization Experience Config
1283
+ type: string
1284
+ publishedDate:
1285
+ description: The datetime when this Personalization Experience Config was
1286
+ last published.
1287
+ type: string
1288
+ required: false
1289
+ sourceMatchers:
1290
+ description: How to find the source where this personalization will occur
1291
+ which for web is which web pages.
1292
+ type: array
1293
+ items:
1294
+ type: any
1295
+ transformationConfig:
1296
+ description: How will the data provided by the Data Provider be transformed?
1297
+ type: any
1298
+ PersonalizationPaginatedResponseBaseRepresentation:
1299
+ description: Base paginated response representation
1300
+ type: object
1301
+ discriminator: nextPageUrl
1302
+ properties:
1303
+ currentPageUrl:
1304
+ description: Current page url
1305
+ type: string
1306
+ nextPageUrl:
1307
+ description: Next page url if it exists
1308
+ type: string
1309
+ totalSize:
1310
+ description: Total size of collection
1311
+ type: integer
1312
+ PersonalizationExperienceConfigRepresentation:
1313
+ description: Personalization Experience Config Output Representation
1314
+ type: object
1315
+ properties:
1316
+ createdById:
1317
+ description: Id of the user who created this Personalization Experience Config
1318
+ type: string
1319
+ required: false
1320
+ createdDate:
1321
+ description: The datetime when this Personalization Experience Config was
1322
+ created.
1323
+ type: string
1324
+ required: false
1325
+ dataProvider:
1326
+ description: What is supplying the data for this Personalization Experience?
1327
+ type: any
1328
+ description:
1329
+ description: Description of the Personalization Experience Config
1330
+ type: string
1331
+ required: false
1332
+ displayUrl:
1333
+ description: When editing this configuration on the Website which page of
1334
+ the website should this configuration be displayed on if not the current
1335
+ page.
1336
+ type: string
1337
+ id:
1338
+ description: Id of the Personalization Experience Config
1339
+ type: string
1340
+ required: false
1341
+ isEnabled:
1342
+ description: Whether or not this particular configuration is enabled.
1343
+ type: boolean
1344
+ label:
1345
+ description: Label of the Personalization Experience Config
1346
+ type: string
1347
+ required: false
1348
+ lastModifiedById:
1349
+ description: Id of the user who last modified this Personalization Experience
1350
+ Config
1351
+ type: string
1352
+ required: false
1353
+ lastModifiedDate:
1354
+ description: The datetime when this Personalization Experience Config was
1355
+ last modified.
1356
+ type: string
1357
+ required: false
1358
+ name:
1359
+ description: Name of the Personalization Experience Config
1360
+ type: string
1361
+ publishedDate:
1362
+ description: The datetime when this Personalization Experience Config was
1363
+ last published.
1364
+ type: string
1365
+ required: false
1366
+ sourceMatchers:
1367
+ description: How to find the source where this personalization will occur
1368
+ which for web is which web pages.
1369
+ type: array
1370
+ items:
1371
+ type: any
1372
+ transformationConfig:
1373
+ description: How will the data provided by the Data Provider be transformed?
1374
+ type: any
1232
1375
 
1233
1376
  /personalization:
1234
1377
  /personalization-points:
@@ -1392,3 +1535,76 @@ types:
1392
1535
  - Deleting
1393
1536
  - EditError
1394
1537
  - Processing
1538
+
1539
+ /external-apps/{idOrAppSourceIdOrName}/personalization-experience-configs:
1540
+ get:
1541
+ displayName: getPersonalizationExperienceConfigCollection
1542
+ description: Gets a list of Personalization Experience Configs
1543
+ responses:
1544
+ '200':
1545
+ description: Success
1546
+ body:
1547
+ application/json:
1548
+ type: PersonalizationExperienceConfigCollectionRepresentation
1549
+ queryParameters:
1550
+ limit:
1551
+ type: integer
1552
+ required: false
1553
+ offset:
1554
+ type: integer
1555
+ required: false
1556
+ post:
1557
+ displayName: postPersonalizationExperienceConfigCollection
1558
+ description: Create a Personalization Experience Config
1559
+ responses:
1560
+ '200':
1561
+ description: Success
1562
+ body:
1563
+ application/json:
1564
+ type: PersonalizationExperienceConfigRepresentation
1565
+ body:
1566
+ application/json:
1567
+ type: PersonalizationExperienceConfigInputRepresentation
1568
+ # required: false #Hand-rolled issue #22 in (https://salesforce.quip.com/NxVhAkxL6RTW)
1569
+ (oas-body-name): input
1570
+ uriParameters:
1571
+ idOrAppSourceIdOrName:
1572
+ type: string
1573
+ required: true
1574
+ /external-apps/{idOrAppSourceIdOrName}/personalization-experience-configs/{nameParam}:
1575
+ delete:
1576
+ displayName: deletePersonalizationExperienceConfig
1577
+ description: Delete a Personalization Experience Config
1578
+ responses:
1579
+ '200':
1580
+ description: Success
1581
+ get:
1582
+ displayName: getPersonalizationExperienceConfig
1583
+ description: Get a Personalization Experience Config
1584
+ responses:
1585
+ '200':
1586
+ description: Success
1587
+ body:
1588
+ application/json:
1589
+ type: PersonalizationExperienceConfigRepresentation
1590
+ put:
1591
+ displayName: putPersonalizationExperienceConfig
1592
+ description: Updates a Personalization Experience Config
1593
+ responses:
1594
+ '200':
1595
+ description: Success
1596
+ body:
1597
+ application/json:
1598
+ type: PersonalizationExperienceConfigRepresentation
1599
+ body:
1600
+ application/json:
1601
+ type: PersonalizationExperienceConfigInputRepresentation
1602
+ # required: false #Hand-rolled issue #22 in (https://salesforce.quip.com/NxVhAkxL6RTW)
1603
+ (oas-body-name): input
1604
+ uriParameters:
1605
+ idOrAppSourceIdOrName:
1606
+ type: string
1607
+ required: true
1608
+ nameParam:
1609
+ type: string
1610
+ required: true
@@ -28,6 +28,18 @@ types:
28
28
  PersonalizationDataMlModelCollectionRepresentation:
29
29
  type: object
30
30
  (luvio.ttl): 600
31
+ PersonalizationExperienceConfigCollectionRepresentation:
32
+ (luvio.opaque): true
33
+ PersonalizationExperienceConfigRepresentation:
34
+ (luvio.key):
35
+ id: name
36
+ type: object
37
+ (luvio.ttl): 600
38
+ PersonalizationExperienceConfigInputRepresentation:
39
+ type: object
40
+ (luvio.ttl): 600
41
+ PersonalizationPaginatedResponseBaseRepresentation:
42
+ (luvio.ttl): 600
31
43
 
32
44
  /personalization/personalization-points:
33
45
  post:
@@ -81,3 +93,26 @@ types:
81
93
  get:
82
94
  (luvio.adapter):
83
95
  name: getPersonalizationEsModelMapping
96
+
97
+ /personalization/external-apps/{idOrAppSourceIdOrName}/personalization-experience-configs:
98
+ get:
99
+ (luvio.adapter):
100
+ name: getPersonalizationExperiencesConfigs
101
+ post:
102
+ (luvio.adapter):
103
+ name: createPersonalizationExperiencesConfig
104
+
105
+ /personalization/external-apps/{idOrAppSourceIdOrName}/personalization-experience-configs/{nameParam}:
106
+ delete:
107
+ (luvio.adapter):
108
+ name: deletePersonalizationExperienceConfig
109
+ (luvio.key):
110
+ id: urlParams.nameParam
111
+ get:
112
+ (luvio.adapter):
113
+ name: getPersonalizationExperienceConfig
114
+ (luvio.key):
115
+ id: urlParams.nameParam
116
+ put:
117
+ (luvio.adapter):
118
+ name: updatePersonalizationExperienceConfig