@salesforce/lds-adapters-cdp-personalization-service 1.334.0 → 1.336.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.
@@ -2583,7 +2583,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
2583
2583
  function createResourceRequest$8(config) {
2584
2584
  const headers = {};
2585
2585
  return {
2586
- baseUri: '/services/data/v63.0',
2586
+ baseUri: '/services/data/v64.0',
2587
2587
  basePath: '/personalization/personalization-points',
2588
2588
  method: 'post',
2589
2589
  body: config.body,
@@ -2769,7 +2769,7 @@ function evictSuccess$1(luvio, resourceParams) {
2769
2769
  function createResourceRequest$7(config) {
2770
2770
  const headers = {};
2771
2771
  return {
2772
- baseUri: '/services/data/v63.0',
2772
+ baseUri: '/services/data/v64.0',
2773
2773
  basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
2774
2774
  method: 'delete',
2775
2775
  body: null,
@@ -2876,7 +2876,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
2876
2876
  function createResourceRequest$6(config) {
2877
2877
  const headers = {};
2878
2878
  return {
2879
- baseUri: '/services/data/v63.0',
2879
+ baseUri: '/services/data/v64.0',
2880
2880
  basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
2881
2881
  method: 'get',
2882
2882
  body: null,
@@ -2999,7 +2999,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
2999
2999
  function createResourceRequest$5(config) {
3000
3000
  const headers = {};
3001
3001
  return {
3002
- baseUri: '/services/data/v63.0',
3002
+ baseUri: '/services/data/v64.0',
3003
3003
  basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
3004
3004
  method: 'put',
3005
3005
  body: config.body,
@@ -3776,7 +3776,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
3776
3776
  function createResourceRequest$4(config) {
3777
3777
  const headers = {};
3778
3778
  return {
3779
- baseUri: '/services/data/v63.0',
3779
+ baseUri: '/services/data/v64.0',
3780
3780
  basePath: '/personalization/personalization-schemas',
3781
3781
  method: 'post',
3782
3782
  body: config.body,
@@ -3921,7 +3921,7 @@ function evictSuccess(luvio, resourceParams) {
3921
3921
  function createResourceRequest$3(config) {
3922
3922
  const headers = {};
3923
3923
  return {
3924
- baseUri: '/services/data/v63.0',
3924
+ baseUri: '/services/data/v64.0',
3925
3925
  basePath: '/personalization/personalization-schemas/' + config.urlParams.idOrName + '',
3926
3926
  method: 'delete',
3927
3927
  body: null,
@@ -4028,7 +4028,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
4028
4028
  function createResourceRequest$2(config) {
4029
4029
  const headers = {};
4030
4030
  return {
4031
- baseUri: '/services/data/v63.0',
4031
+ baseUri: '/services/data/v64.0',
4032
4032
  basePath: '/personalization/personalization-schemas/' + config.urlParams.idOrName + '',
4033
4033
  method: 'get',
4034
4034
  body: null,
@@ -4298,16 +4298,18 @@ function equals$3(existing, incoming) {
4298
4298
  }
4299
4299
 
4300
4300
  const TTL$1 = 600;
4301
- const VERSION$2 = "c49a0f58a0e5e27bc65c198f7a6acf1c";
4301
+ const VERSION$2 = "2fab2250d4ed5adcbb1a5c19a64cd765";
4302
4302
  function validate$2(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4303
4303
  const v_error = (() => {
4304
4304
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4305
4305
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4306
4306
  }
4307
- const obj_currentPageUrl = obj.currentPageUrl;
4308
- const path_currentPageUrl = path + '.currentPageUrl';
4309
- if (typeof obj_currentPageUrl !== 'string') {
4310
- return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
4307
+ if (obj.currentPageUrl !== undefined) {
4308
+ const obj_currentPageUrl = obj.currentPageUrl;
4309
+ const path_currentPageUrl = path + '.currentPageUrl';
4310
+ if (typeof obj_currentPageUrl !== 'string') {
4311
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
4312
+ }
4311
4313
  }
4312
4314
  if (obj.jobs !== undefined) {
4313
4315
  const obj_jobs = obj.jobs;
@@ -4326,10 +4328,12 @@ function validate$2(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
4326
4328
  }
4327
4329
  }
4328
4330
  }
4329
- const obj_nextPageUrl = obj.nextPageUrl;
4330
- const path_nextPageUrl = path + '.nextPageUrl';
4331
- if (typeof obj_nextPageUrl !== 'string') {
4332
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
4331
+ if (obj.nextPageUrl !== undefined) {
4332
+ const obj_nextPageUrl = obj.nextPageUrl;
4333
+ const path_nextPageUrl = path + '.nextPageUrl';
4334
+ if (typeof obj_nextPageUrl !== 'string') {
4335
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
4336
+ }
4333
4337
  }
4334
4338
  })();
4335
4339
  return v_error === undefined ? null : v_error;
@@ -4347,7 +4351,8 @@ const select$4 = function PersonalizationRecommenderJobCollectionRepresentationS
4347
4351
  selections: [
4348
4352
  {
4349
4353
  name: 'currentPageUrl',
4350
- kind: 'Scalar'
4354
+ kind: 'Scalar',
4355
+ required: false
4351
4356
  },
4352
4357
  {
4353
4358
  name: 'jobs',
@@ -4358,7 +4363,8 @@ const select$4 = function PersonalizationRecommenderJobCollectionRepresentationS
4358
4363
  },
4359
4364
  {
4360
4365
  name: 'nextPageUrl',
4361
- kind: 'Scalar'
4366
+ kind: 'Scalar',
4367
+ required: false
4362
4368
  }
4363
4369
  ]
4364
4370
  };
@@ -4366,13 +4372,29 @@ const select$4 = function PersonalizationRecommenderJobCollectionRepresentationS
4366
4372
  function equals$2(existing, incoming) {
4367
4373
  const existing_currentPageUrl = existing.currentPageUrl;
4368
4374
  const incoming_currentPageUrl = incoming.currentPageUrl;
4369
- if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
4370
- return false;
4375
+ // if at least one of these optionals is defined
4376
+ if (existing_currentPageUrl !== undefined || incoming_currentPageUrl !== undefined) {
4377
+ // if one of these is not defined we know the other is defined and therefore
4378
+ // not equal
4379
+ if (existing_currentPageUrl === undefined || incoming_currentPageUrl === undefined) {
4380
+ return false;
4381
+ }
4382
+ if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
4383
+ return false;
4384
+ }
4371
4385
  }
4372
4386
  const existing_nextPageUrl = existing.nextPageUrl;
4373
4387
  const incoming_nextPageUrl = incoming.nextPageUrl;
4374
- if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
4375
- return false;
4388
+ // if at least one of these optionals is defined
4389
+ if (existing_nextPageUrl !== undefined || incoming_nextPageUrl !== undefined) {
4390
+ // if one of these is not defined we know the other is defined and therefore
4391
+ // not equal
4392
+ if (existing_nextPageUrl === undefined || incoming_nextPageUrl === undefined) {
4393
+ return false;
4394
+ }
4395
+ if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
4396
+ return false;
4397
+ }
4376
4398
  }
4377
4399
  const existing_jobs = existing.jobs;
4378
4400
  const incoming_jobs = incoming.jobs;
@@ -4457,7 +4479,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
4457
4479
  function createResourceRequest$1(config) {
4458
4480
  const headers = {};
4459
4481
  return {
4460
- baseUri: '/services/data/v63.0',
4482
+ baseUri: '/services/data/v64.0',
4461
4483
  basePath: '/personalization/personalization-recommenders/' + config.urlParams.idOrName + '/jobs',
4462
4484
  method: 'get',
4463
4485
  body: null,
@@ -4768,7 +4790,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
4768
4790
  function createResourceRequest(config) {
4769
4791
  const headers = {};
4770
4792
  return {
4771
- baseUri: '/services/data/v63.0',
4793
+ baseUri: '/services/data/v64.0',
4772
4794
  basePath: '/personalization/einstein-studio/model-mapping',
4773
4795
  method: 'get',
4774
4796
  body: null,
@@ -1,7 +1,7 @@
1
1
  import { PersonalizationRecommenderJobRepresentation as PersonalizationRecommenderJobRepresentation_PersonalizationRecommenderJobRepresentation } from './PersonalizationRecommenderJobRepresentation';
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
3
  export declare const TTL = 600;
4
- export declare const VERSION = "c49a0f58a0e5e27bc65c198f7a6acf1c";
4
+ export declare const VERSION = "2fab2250d4ed5adcbb1a5c19a64cd765";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export declare function normalize(input: PersonalizationRecommenderJobCollectionRepresentation, existing: PersonalizationRecommenderJobCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PersonalizationRecommenderJobCollectionRepresentationNormalized;
@@ -17,11 +17,11 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
17
17
  */
18
18
  export interface PersonalizationRecommenderJobCollectionRepresentationNormalized {
19
19
  /** Url of the current page */
20
- currentPageUrl: string;
20
+ currentPageUrl?: string;
21
21
  /** List of training job results */
22
22
  jobs?: Array<PersonalizationRecommenderJobRepresentation_PersonalizationRecommenderJobRepresentation>;
23
23
  /** Url of the next page */
24
- nextPageUrl: string;
24
+ nextPageUrl?: string;
25
25
  }
26
26
  /**
27
27
  * Personalization Recommender Job Collection Representation
@@ -30,7 +30,7 @@ export interface PersonalizationRecommenderJobCollectionRepresentationNormalized
30
30
  * (none)
31
31
  */
32
32
  export interface PersonalizationRecommenderJobCollectionRepresentation {
33
- currentPageUrl: string;
33
+ currentPageUrl?: string;
34
34
  jobs?: Array<PersonalizationRecommenderJobRepresentation_PersonalizationRecommenderJobRepresentation>;
35
- nextPageUrl: string;
35
+ nextPageUrl?: string;
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cdp-personalization-service",
3
- "version": "1.334.0",
3
+ "version": "1.336.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.334.0"
45
+ "@salesforce/lds-bindings": "^1.336.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@salesforce/lds-compiler-plugins": "^1.334.0"
48
+ "@salesforce/lds-compiler-plugins": "^1.336.0"
49
49
  },
50
50
  "nx": {
51
51
  "targets": {
package/sfdc/index.js CHANGED
@@ -2593,7 +2593,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
2593
2593
  function createResourceRequest$8(config) {
2594
2594
  const headers = {};
2595
2595
  return {
2596
- baseUri: '/services/data/v63.0',
2596
+ baseUri: '/services/data/v64.0',
2597
2597
  basePath: '/personalization/personalization-points',
2598
2598
  method: 'post',
2599
2599
  body: config.body,
@@ -3369,7 +3369,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
3369
3369
  function createResourceRequest$7(config) {
3370
3370
  const headers = {};
3371
3371
  return {
3372
- baseUri: '/services/data/v63.0',
3372
+ baseUri: '/services/data/v64.0',
3373
3373
  basePath: '/personalization/personalization-schemas',
3374
3374
  method: 'post',
3375
3375
  body: config.body,
@@ -3514,7 +3514,7 @@ function evictSuccess$1(luvio, resourceParams) {
3514
3514
  function createResourceRequest$6(config) {
3515
3515
  const headers = {};
3516
3516
  return {
3517
- baseUri: '/services/data/v63.0',
3517
+ baseUri: '/services/data/v64.0',
3518
3518
  basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
3519
3519
  method: 'delete',
3520
3520
  body: null,
@@ -3598,7 +3598,7 @@ function evictSuccess(luvio, resourceParams) {
3598
3598
  function createResourceRequest$5(config) {
3599
3599
  const headers = {};
3600
3600
  return {
3601
- baseUri: '/services/data/v63.0',
3601
+ baseUri: '/services/data/v64.0',
3602
3602
  basePath: '/personalization/personalization-schemas/' + config.urlParams.idOrName + '',
3603
3603
  method: 'delete',
3604
3604
  body: null,
@@ -3874,7 +3874,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
3874
3874
  function createResourceRequest$4(config) {
3875
3875
  const headers = {};
3876
3876
  return {
3877
- baseUri: '/services/data/v63.0',
3877
+ baseUri: '/services/data/v64.0',
3878
3878
  basePath: '/personalization/einstein-studio/model-mapping',
3879
3879
  method: 'get',
3880
3880
  body: null,
@@ -4017,7 +4017,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
4017
4017
  function createResourceRequest$3(config) {
4018
4018
  const headers = {};
4019
4019
  return {
4020
- baseUri: '/services/data/v63.0',
4020
+ baseUri: '/services/data/v64.0',
4021
4021
  basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
4022
4022
  method: 'get',
4023
4023
  body: null,
@@ -4157,7 +4157,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
4157
4157
  function createResourceRequest$2(config) {
4158
4158
  const headers = {};
4159
4159
  return {
4160
- baseUri: '/services/data/v63.0',
4160
+ baseUri: '/services/data/v64.0',
4161
4161
  basePath: '/personalization/personalization-schemas/' + config.urlParams.idOrName + '',
4162
4162
  method: 'get',
4163
4163
  body: null,
@@ -4468,16 +4468,18 @@ function equals$1(existing, incoming) {
4468
4468
  }
4469
4469
 
4470
4470
  const TTL = 600;
4471
- const VERSION = "c49a0f58a0e5e27bc65c198f7a6acf1c";
4471
+ const VERSION = "2fab2250d4ed5adcbb1a5c19a64cd765";
4472
4472
  function validate(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4473
4473
  const v_error = (() => {
4474
4474
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4475
4475
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4476
4476
  }
4477
- const obj_currentPageUrl = obj.currentPageUrl;
4478
- const path_currentPageUrl = path + '.currentPageUrl';
4479
- if (typeof obj_currentPageUrl !== 'string') {
4480
- return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
4477
+ if (obj.currentPageUrl !== undefined) {
4478
+ const obj_currentPageUrl = obj.currentPageUrl;
4479
+ const path_currentPageUrl = path + '.currentPageUrl';
4480
+ if (typeof obj_currentPageUrl !== 'string') {
4481
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
4482
+ }
4481
4483
  }
4482
4484
  if (obj.jobs !== undefined) {
4483
4485
  const obj_jobs = obj.jobs;
@@ -4496,10 +4498,12 @@ function validate(obj, path = 'PersonalizationRecommenderJobCollectionRepresenta
4496
4498
  }
4497
4499
  }
4498
4500
  }
4499
- const obj_nextPageUrl = obj.nextPageUrl;
4500
- const path_nextPageUrl = path + '.nextPageUrl';
4501
- if (typeof obj_nextPageUrl !== 'string') {
4502
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
4501
+ if (obj.nextPageUrl !== undefined) {
4502
+ const obj_nextPageUrl = obj.nextPageUrl;
4503
+ const path_nextPageUrl = path + '.nextPageUrl';
4504
+ if (typeof obj_nextPageUrl !== 'string') {
4505
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
4506
+ }
4503
4507
  }
4504
4508
  })();
4505
4509
  return v_error === undefined ? null : v_error;
@@ -4517,7 +4521,8 @@ const select$2 = function PersonalizationRecommenderJobCollectionRepresentationS
4517
4521
  selections: [
4518
4522
  {
4519
4523
  name: 'currentPageUrl',
4520
- kind: 'Scalar'
4524
+ kind: 'Scalar',
4525
+ required: false
4521
4526
  },
4522
4527
  {
4523
4528
  name: 'jobs',
@@ -4528,7 +4533,8 @@ const select$2 = function PersonalizationRecommenderJobCollectionRepresentationS
4528
4533
  },
4529
4534
  {
4530
4535
  name: 'nextPageUrl',
4531
- kind: 'Scalar'
4536
+ kind: 'Scalar',
4537
+ required: false
4532
4538
  }
4533
4539
  ]
4534
4540
  };
@@ -4536,13 +4542,29 @@ const select$2 = function PersonalizationRecommenderJobCollectionRepresentationS
4536
4542
  function equals(existing, incoming) {
4537
4543
  const existing_currentPageUrl = existing.currentPageUrl;
4538
4544
  const incoming_currentPageUrl = incoming.currentPageUrl;
4539
- if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
4540
- return false;
4545
+ // if at least one of these optionals is defined
4546
+ if (existing_currentPageUrl !== undefined || incoming_currentPageUrl !== undefined) {
4547
+ // if one of these is not defined we know the other is defined and therefore
4548
+ // not equal
4549
+ if (existing_currentPageUrl === undefined || incoming_currentPageUrl === undefined) {
4550
+ return false;
4551
+ }
4552
+ if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
4553
+ return false;
4554
+ }
4541
4555
  }
4542
4556
  const existing_nextPageUrl = existing.nextPageUrl;
4543
4557
  const incoming_nextPageUrl = incoming.nextPageUrl;
4544
- if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
4545
- return false;
4558
+ // if at least one of these optionals is defined
4559
+ if (existing_nextPageUrl !== undefined || incoming_nextPageUrl !== undefined) {
4560
+ // if one of these is not defined we know the other is defined and therefore
4561
+ // not equal
4562
+ if (existing_nextPageUrl === undefined || incoming_nextPageUrl === undefined) {
4563
+ return false;
4564
+ }
4565
+ if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
4566
+ return false;
4567
+ }
4546
4568
  }
4547
4569
  const existing_jobs = existing.jobs;
4548
4570
  const incoming_jobs = incoming.jobs;
@@ -4627,7 +4649,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
4627
4649
  function createResourceRequest$1(config) {
4628
4650
  const headers = {};
4629
4651
  return {
4630
- baseUri: '/services/data/v63.0',
4652
+ baseUri: '/services/data/v64.0',
4631
4653
  basePath: '/personalization/personalization-recommenders/' + config.urlParams.idOrName + '/jobs',
4632
4654
  method: 'get',
4633
4655
  body: null,
@@ -4752,7 +4774,7 @@ function ingestSuccess(luvio, resourceParams, response) {
4752
4774
  function createResourceRequest(config) {
4753
4775
  const headers = {};
4754
4776
  return {
4755
- baseUri: '/services/data/v63.0',
4777
+ baseUri: '/services/data/v64.0',
4756
4778
  basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
4757
4779
  method: 'put',
4758
4780
  body: config.body,
@@ -5004,4 +5026,4 @@ withDefaultLuvio((luvio) => {
5004
5026
  });
5005
5027
 
5006
5028
  export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationEsModelMapping, getPersonalizationEsModelMapping_imperative, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, getTrainingHistory, getTrainingHistory_imperative, updatePersonalizationPoint };
5007
- // version: 1.334.0-a801774b3d
5029
+ // version: 1.336.0-1b35a3afd9
package/src/raml/api.raml CHANGED
@@ -6,7 +6,7 @@ version: '62.0'
6
6
  mediaType: application/json
7
7
  protocols:
8
8
  - https
9
- baseUri: /services/data/v63.0
9
+ baseUri: /services/data/v64.0
10
10
  securitySchemes:
11
11
  OAuth2:
12
12
  type: OAuth 2.0
@@ -742,9 +742,11 @@ types:
742
742
  currentPageUrl:
743
743
  description: Url of the current page
744
744
  type: string
745
+ required: false
745
746
  nextPageUrl:
746
747
  description: Url of the next page
747
748
  type: string
749
+ required: false
748
750
  jobs:
749
751
  description: List of training job results
750
752
  type: array