@salesforce/lds-adapters-cdp-personalization-service 1.332.0-dev7 → 1.332.0-dev9
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.
|
@@ -4298,16 +4298,18 @@ function equals$6(existing, incoming) {
|
|
|
4298
4298
|
}
|
|
4299
4299
|
|
|
4300
4300
|
const TTL$1 = 600;
|
|
4301
|
-
const VERSION$5 = "
|
|
4301
|
+
const VERSION$5 = "2fab2250d4ed5adcbb1a5c19a64cd765";
|
|
4302
4302
|
function validate$5(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
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
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$5(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
|
|
|
4326
4328
|
}
|
|
4327
4329
|
}
|
|
4328
4330
|
}
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
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$7 = 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$7 = 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$7 = function PersonalizationRecommenderJobCollectionRepresentationS
|
|
|
4366
4372
|
function equals$5(existing, incoming) {
|
|
4367
4373
|
const existing_currentPageUrl = existing.currentPageUrl;
|
|
4368
4374
|
const incoming_currentPageUrl = incoming.currentPageUrl;
|
|
4369
|
-
if
|
|
4370
|
-
|
|
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
|
|
4375
|
-
|
|
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;
|
|
@@ -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 = "
|
|
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
|
|
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
|
|
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
|
|
33
|
+
currentPageUrl?: string;
|
|
34
34
|
jobs?: Array<PersonalizationRecommenderJobRepresentation_PersonalizationRecommenderJobRepresentation>;
|
|
35
|
-
nextPageUrl
|
|
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.332.0-
|
|
3
|
+
"version": "1.332.0-dev9",
|
|
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.332.0-
|
|
45
|
+
"@salesforce/lds-bindings": "^1.332.0-dev9"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@salesforce/lds-compiler-plugins": "^1.332.0-
|
|
48
|
+
"@salesforce/lds-compiler-plugins": "^1.332.0-dev9"
|
|
49
49
|
},
|
|
50
50
|
"nx": {
|
|
51
51
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -4763,16 +4763,18 @@ function equals$1(existing, incoming) {
|
|
|
4763
4763
|
}
|
|
4764
4764
|
|
|
4765
4765
|
const TTL = 600;
|
|
4766
|
-
const VERSION = "
|
|
4766
|
+
const VERSION = "2fab2250d4ed5adcbb1a5c19a64cd765";
|
|
4767
4767
|
function validate(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
|
|
4768
4768
|
const v_error = (() => {
|
|
4769
4769
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4770
4770
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4771
4771
|
}
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4772
|
+
if (obj.currentPageUrl !== undefined) {
|
|
4773
|
+
const obj_currentPageUrl = obj.currentPageUrl;
|
|
4774
|
+
const path_currentPageUrl = path + '.currentPageUrl';
|
|
4775
|
+
if (typeof obj_currentPageUrl !== 'string') {
|
|
4776
|
+
return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
|
|
4777
|
+
}
|
|
4776
4778
|
}
|
|
4777
4779
|
if (obj.jobs !== undefined) {
|
|
4778
4780
|
const obj_jobs = obj.jobs;
|
|
@@ -4791,10 +4793,12 @@ function validate(obj, path = 'PersonalizationRecommenderJobCollectionRepresenta
|
|
|
4791
4793
|
}
|
|
4792
4794
|
}
|
|
4793
4795
|
}
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4796
|
+
if (obj.nextPageUrl !== undefined) {
|
|
4797
|
+
const obj_nextPageUrl = obj.nextPageUrl;
|
|
4798
|
+
const path_nextPageUrl = path + '.nextPageUrl';
|
|
4799
|
+
if (typeof obj_nextPageUrl !== 'string') {
|
|
4800
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
4801
|
+
}
|
|
4798
4802
|
}
|
|
4799
4803
|
})();
|
|
4800
4804
|
return v_error === undefined ? null : v_error;
|
|
@@ -4812,7 +4816,8 @@ const select$2 = function PersonalizationRecommenderJobCollectionRepresentationS
|
|
|
4812
4816
|
selections: [
|
|
4813
4817
|
{
|
|
4814
4818
|
name: 'currentPageUrl',
|
|
4815
|
-
kind: 'Scalar'
|
|
4819
|
+
kind: 'Scalar',
|
|
4820
|
+
required: false
|
|
4816
4821
|
},
|
|
4817
4822
|
{
|
|
4818
4823
|
name: 'jobs',
|
|
@@ -4823,7 +4828,8 @@ const select$2 = function PersonalizationRecommenderJobCollectionRepresentationS
|
|
|
4823
4828
|
},
|
|
4824
4829
|
{
|
|
4825
4830
|
name: 'nextPageUrl',
|
|
4826
|
-
kind: 'Scalar'
|
|
4831
|
+
kind: 'Scalar',
|
|
4832
|
+
required: false
|
|
4827
4833
|
}
|
|
4828
4834
|
]
|
|
4829
4835
|
};
|
|
@@ -4831,13 +4837,29 @@ const select$2 = function PersonalizationRecommenderJobCollectionRepresentationS
|
|
|
4831
4837
|
function equals(existing, incoming) {
|
|
4832
4838
|
const existing_currentPageUrl = existing.currentPageUrl;
|
|
4833
4839
|
const incoming_currentPageUrl = incoming.currentPageUrl;
|
|
4834
|
-
if
|
|
4835
|
-
|
|
4840
|
+
// if at least one of these optionals is defined
|
|
4841
|
+
if (existing_currentPageUrl !== undefined || incoming_currentPageUrl !== undefined) {
|
|
4842
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4843
|
+
// not equal
|
|
4844
|
+
if (existing_currentPageUrl === undefined || incoming_currentPageUrl === undefined) {
|
|
4845
|
+
return false;
|
|
4846
|
+
}
|
|
4847
|
+
if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
|
|
4848
|
+
return false;
|
|
4849
|
+
}
|
|
4836
4850
|
}
|
|
4837
4851
|
const existing_nextPageUrl = existing.nextPageUrl;
|
|
4838
4852
|
const incoming_nextPageUrl = incoming.nextPageUrl;
|
|
4839
|
-
if
|
|
4840
|
-
|
|
4853
|
+
// if at least one of these optionals is defined
|
|
4854
|
+
if (existing_nextPageUrl !== undefined || incoming_nextPageUrl !== undefined) {
|
|
4855
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4856
|
+
// not equal
|
|
4857
|
+
if (existing_nextPageUrl === undefined || incoming_nextPageUrl === undefined) {
|
|
4858
|
+
return false;
|
|
4859
|
+
}
|
|
4860
|
+
if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
|
|
4861
|
+
return false;
|
|
4862
|
+
}
|
|
4841
4863
|
}
|
|
4842
4864
|
const existing_jobs = existing.jobs;
|
|
4843
4865
|
const incoming_jobs = incoming.jobs;
|
|
@@ -5299,4 +5321,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5299
5321
|
});
|
|
5300
5322
|
|
|
5301
5323
|
export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationEsModelMapping, getPersonalizationEsModelMapping_imperative, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, getTrainingHistory, getTrainingHistory_imperative, updatePersonalizationPoint };
|
|
5302
|
-
// version: 1.332.0-
|
|
5324
|
+
// version: 1.332.0-dev9-1981b1cf7c
|
package/src/raml/api.raml
CHANGED
|
@@ -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
|