@salesforce/lds-adapters-cdp-personalization-service 1.404.0-dev2 → 1.404.0-dev20
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.
- package/dist/es/es2018/cdp-personalization-service.js +186 -162
- package/dist/es/es2018/types/src/generated/adapters/createPersonalizationExperiencesConfig.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/adapters/getPersonalizationExperienceConfig.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getPersonalizationExperiencesConfigs.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/adapters/updatePersonalizationExperienceConfig.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/getPersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrName.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/getPersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrNameAndNameParam.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/postPersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrName.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/resources/putPersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrNameAndNameParam.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/PersonalizationExperienceConfigCollectionRepresentation.d.ts +12 -4
- package/dist/es/es2018/types/src/generated/types/PersonalizationExperienceConfigInputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/PersonalizationExperienceConfigRepresentation.d.ts +6 -3
- package/dist/es/es2018/types/src/generated/types/PersonalizationPaginatedResponseBaseRepresentation.d.ts +3 -3
- package/package.json +3 -3
- package/sfdc/index.js +170 -145
- package/src/raml/api.raml +45 -3
- package/src/raml/luvio.raml +1 -0
package/sfdc/index.js
CHANGED
|
@@ -158,9 +158,9 @@ function createLink(ref) {
|
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
const TTL$
|
|
162
|
-
const VERSION$e = "
|
|
163
|
-
function validate$
|
|
161
|
+
const TTL$6 = 600;
|
|
162
|
+
const VERSION$e = "cfc058516a8d7a119e9f369aa6088064";
|
|
163
|
+
function validate$m(obj, path = 'PersonalizationExperienceConfigRepresentation') {
|
|
164
164
|
const v_error = (() => {
|
|
165
165
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
166
166
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -191,10 +191,12 @@ function validate$n(obj, path = 'PersonalizationExperienceConfigRepresentation')
|
|
|
191
191
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
if (obj.displayUrl !== undefined) {
|
|
195
|
+
const obj_displayUrl = obj.displayUrl;
|
|
196
|
+
const path_displayUrl = path + '.displayUrl';
|
|
197
|
+
if (typeof obj_displayUrl !== 'string') {
|
|
198
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayUrl + '" (at "' + path_displayUrl + '")');
|
|
199
|
+
}
|
|
198
200
|
}
|
|
199
201
|
if (obj.id !== undefined) {
|
|
200
202
|
const obj_id = obj.id;
|
|
@@ -258,6 +260,13 @@ function validate$n(obj, path = 'PersonalizationExperienceConfigRepresentation')
|
|
|
258
260
|
if (obj_transformationConfig === undefined) {
|
|
259
261
|
return new TypeError('Expected "defined" but received "' + typeof obj_transformationConfig + '" (at "' + path_transformationConfig + '")');
|
|
260
262
|
}
|
|
263
|
+
if (obj.wpmUrl !== undefined) {
|
|
264
|
+
const obj_wpmUrl = obj.wpmUrl;
|
|
265
|
+
const path_wpmUrl = path + '.wpmUrl';
|
|
266
|
+
if (typeof obj_wpmUrl !== 'string') {
|
|
267
|
+
return new TypeError('Expected "string" but received "' + typeof obj_wpmUrl + '" (at "' + path_wpmUrl + '")');
|
|
268
|
+
}
|
|
269
|
+
}
|
|
261
270
|
})();
|
|
262
271
|
return v_error === undefined ? null : v_error;
|
|
263
272
|
}
|
|
@@ -302,7 +311,8 @@ const select$q = function PersonalizationExperienceConfigRepresentationSelect()
|
|
|
302
311
|
},
|
|
303
312
|
{
|
|
304
313
|
name: 'displayUrl',
|
|
305
|
-
kind: 'Scalar'
|
|
314
|
+
kind: 'Scalar',
|
|
315
|
+
required: false
|
|
306
316
|
},
|
|
307
317
|
{
|
|
308
318
|
name: 'id',
|
|
@@ -346,11 +356,16 @@ const select$q = function PersonalizationExperienceConfigRepresentationSelect()
|
|
|
346
356
|
name: 'transformationConfig',
|
|
347
357
|
kind: 'Object',
|
|
348
358
|
// any
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
name: 'wpmUrl',
|
|
362
|
+
kind: 'Scalar',
|
|
363
|
+
required: false
|
|
349
364
|
}
|
|
350
365
|
]
|
|
351
366
|
};
|
|
352
367
|
};
|
|
353
|
-
function equals$
|
|
368
|
+
function equals$e(existing, incoming) {
|
|
354
369
|
const existing_isEnabled = existing.isEnabled;
|
|
355
370
|
const incoming_isEnabled = incoming.isEnabled;
|
|
356
371
|
if (!(existing_isEnabled === incoming_isEnabled)) {
|
|
@@ -397,8 +412,16 @@ function equals$f(existing, incoming) {
|
|
|
397
412
|
}
|
|
398
413
|
const existing_displayUrl = existing.displayUrl;
|
|
399
414
|
const incoming_displayUrl = incoming.displayUrl;
|
|
400
|
-
if
|
|
401
|
-
|
|
415
|
+
// if at least one of these optionals is defined
|
|
416
|
+
if (existing_displayUrl !== undefined || incoming_displayUrl !== undefined) {
|
|
417
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
418
|
+
// not equal
|
|
419
|
+
if (existing_displayUrl === undefined || incoming_displayUrl === undefined) {
|
|
420
|
+
return false;
|
|
421
|
+
}
|
|
422
|
+
if (!(existing_displayUrl === incoming_displayUrl)) {
|
|
423
|
+
return false;
|
|
424
|
+
}
|
|
402
425
|
}
|
|
403
426
|
const existing_id = existing.id;
|
|
404
427
|
const incoming_id = incoming.id;
|
|
@@ -470,6 +493,19 @@ function equals$f(existing, incoming) {
|
|
|
470
493
|
return false;
|
|
471
494
|
}
|
|
472
495
|
}
|
|
496
|
+
const existing_wpmUrl = existing.wpmUrl;
|
|
497
|
+
const incoming_wpmUrl = incoming.wpmUrl;
|
|
498
|
+
// if at least one of these optionals is defined
|
|
499
|
+
if (existing_wpmUrl !== undefined || incoming_wpmUrl !== undefined) {
|
|
500
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
501
|
+
// not equal
|
|
502
|
+
if (existing_wpmUrl === undefined || incoming_wpmUrl === undefined) {
|
|
503
|
+
return false;
|
|
504
|
+
}
|
|
505
|
+
if (!(existing_wpmUrl === incoming_wpmUrl)) {
|
|
506
|
+
return false;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
473
509
|
const existing_dataProvider = existing.dataProvider;
|
|
474
510
|
const incoming_dataProvider = incoming.dataProvider;
|
|
475
511
|
if (JSONStringify(incoming_dataProvider) !== JSONStringify(existing_dataProvider)) {
|
|
@@ -494,14 +530,14 @@ function equals$f(existing, incoming) {
|
|
|
494
530
|
}
|
|
495
531
|
const ingest$9 = function PersonalizationExperienceConfigRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
496
532
|
if (process.env.NODE_ENV !== 'production') {
|
|
497
|
-
const validateError = validate$
|
|
533
|
+
const validateError = validate$m(input);
|
|
498
534
|
if (validateError !== null) {
|
|
499
535
|
throw validateError;
|
|
500
536
|
}
|
|
501
537
|
}
|
|
502
538
|
const key = keyBuilderFromType$2(luvio, input);
|
|
503
|
-
const ttlToUse = TTL$
|
|
504
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "personalization-service", VERSION$e, RepresentationType$9, equals$
|
|
539
|
+
const ttlToUse = TTL$6;
|
|
540
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "personalization-service", VERSION$e, RepresentationType$9, equals$e);
|
|
505
541
|
return createLink(key);
|
|
506
542
|
};
|
|
507
543
|
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -545,7 +581,7 @@ function createResourceRequest$h(config) {
|
|
|
545
581
|
method: 'post',
|
|
546
582
|
body: config.body,
|
|
547
583
|
urlParams: config.urlParams,
|
|
548
|
-
queryParams:
|
|
584
|
+
queryParams: config.queryParams,
|
|
549
585
|
headers,
|
|
550
586
|
priority: 'normal',
|
|
551
587
|
};
|
|
@@ -554,9 +590,10 @@ function createResourceRequest$h(config) {
|
|
|
554
590
|
const adapterName$e = 'createPersonalizationExperiencesConfig';
|
|
555
591
|
const createPersonalizationExperiencesConfig_ConfigPropertyMetadata = [
|
|
556
592
|
generateParamConfigMetadata('idOrAppSourceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
593
|
+
generateParamConfigMetadata('disableRelatedExperiences', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
557
594
|
generateParamConfigMetadata('dataProvider', true, 2 /* Body */, 4 /* Unsupported */),
|
|
558
595
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
559
|
-
generateParamConfigMetadata('displayUrl',
|
|
596
|
+
generateParamConfigMetadata('displayUrl', false, 2 /* Body */, 0 /* String */),
|
|
560
597
|
generateParamConfigMetadata('isEnabled', true, 2 /* Body */, 1 /* Boolean */),
|
|
561
598
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
562
599
|
generateParamConfigMetadata('lastModifiedDate', false, 2 /* Body */, 0 /* String */),
|
|
@@ -627,7 +664,7 @@ const createPersonalizationExperiencesConfigAdapterFactory = (luvio) => {
|
|
|
627
664
|
};
|
|
628
665
|
};
|
|
629
666
|
|
|
630
|
-
function validate$
|
|
667
|
+
function validate$l(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
|
|
631
668
|
const v_error = (() => {
|
|
632
669
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
633
670
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -718,7 +755,7 @@ function validate$m(obj, path = 'PersonalizationAttributeValueInputRepresentatio
|
|
|
718
755
|
return v_error === undefined ? null : v_error;
|
|
719
756
|
}
|
|
720
757
|
|
|
721
|
-
function validate$
|
|
758
|
+
function validate$k(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
722
759
|
const v_error = (() => {
|
|
723
760
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
724
761
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -732,7 +769,7 @@ function validate$l(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
|
732
769
|
for (let i = 0; i < obj_attributeValues.length; i++) {
|
|
733
770
|
const obj_attributeValues_item = obj_attributeValues[i];
|
|
734
771
|
const path_attributeValues_item = path_attributeValues + '[' + i + ']';
|
|
735
|
-
const referencepath_attributeValues_itemValidationError = validate$
|
|
772
|
+
const referencepath_attributeValues_itemValidationError = validate$l(obj_attributeValues_item, path_attributeValues_item);
|
|
736
773
|
if (referencepath_attributeValues_itemValidationError !== null) {
|
|
737
774
|
let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
|
|
738
775
|
message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -907,7 +944,7 @@ function validate$l(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
|
907
944
|
}
|
|
908
945
|
|
|
909
946
|
const VERSION$d = "52ea9c14b7a747a28cedbcff0e7ab169";
|
|
910
|
-
function validate$
|
|
947
|
+
function validate$j(obj, path = 'PersonalizationAttributeValueRepresentation') {
|
|
911
948
|
const v_error = (() => {
|
|
912
949
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
913
950
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1014,7 +1051,7 @@ const select$o = function PersonalizationAttributeValueRepresentationSelect() {
|
|
|
1014
1051
|
]
|
|
1015
1052
|
};
|
|
1016
1053
|
};
|
|
1017
|
-
function equals$
|
|
1054
|
+
function equals$d(existing, incoming) {
|
|
1018
1055
|
const existing_attributeEnum = existing.attributeEnum;
|
|
1019
1056
|
const incoming_attributeEnum = incoming.attributeEnum;
|
|
1020
1057
|
if (!(existing_attributeEnum === incoming_attributeEnum)) {
|
|
@@ -1033,7 +1070,7 @@ function equals$e(existing, incoming) {
|
|
|
1033
1070
|
return true;
|
|
1034
1071
|
}
|
|
1035
1072
|
|
|
1036
|
-
function validate$
|
|
1073
|
+
function validate$i(obj, path = 'FiltersWrapRepresentation') {
|
|
1037
1074
|
const v_error = (() => {
|
|
1038
1075
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1039
1076
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1112,7 +1149,7 @@ function validate$j(obj, path = 'FiltersWrapRepresentation') {
|
|
|
1112
1149
|
return v_error === undefined ? null : v_error;
|
|
1113
1150
|
}
|
|
1114
1151
|
|
|
1115
|
-
function validate$
|
|
1152
|
+
function validate$h(obj, path = 'SubjectRepresentation') {
|
|
1116
1153
|
const v_error = (() => {
|
|
1117
1154
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1118
1155
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1232,7 +1269,7 @@ function validate$i(obj, path = 'SubjectRepresentation') {
|
|
|
1232
1269
|
}
|
|
1233
1270
|
|
|
1234
1271
|
const VERSION$c = "089c2877ffa367e376fe74f8d358ffa8";
|
|
1235
|
-
function validate$
|
|
1272
|
+
function validate$g(obj, path = 'FilterRepresentation') {
|
|
1236
1273
|
const v_error = (() => {
|
|
1237
1274
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1238
1275
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1270,7 +1307,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
|
|
|
1270
1307
|
const path_comparison = path + '.comparison';
|
|
1271
1308
|
let obj_comparison_union0 = null;
|
|
1272
1309
|
const obj_comparison_union0_error = (() => {
|
|
1273
|
-
const referencepath_comparisonValidationError = validate$
|
|
1310
|
+
const referencepath_comparisonValidationError = validate$g(obj_comparison, path_comparison);
|
|
1274
1311
|
if (referencepath_comparisonValidationError !== null) {
|
|
1275
1312
|
let message = 'Object doesn\'t match FilterRepresentation (at "' + path_comparison + '")\n';
|
|
1276
1313
|
message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1301,7 +1338,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
|
|
|
1301
1338
|
const path_filter = path + '.filter';
|
|
1302
1339
|
let obj_filter_union0 = null;
|
|
1303
1340
|
const obj_filter_union0_error = (() => {
|
|
1304
|
-
const referencepath_filterValidationError = validate$
|
|
1341
|
+
const referencepath_filterValidationError = validate$i(obj_filter, path_filter);
|
|
1305
1342
|
if (referencepath_filterValidationError !== null) {
|
|
1306
1343
|
let message = 'Object doesn\'t match FiltersWrapRepresentation (at "' + path_filter + '")\n';
|
|
1307
1344
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1338,7 +1375,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
|
|
|
1338
1375
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
1339
1376
|
let obj_filters_item_union0 = null;
|
|
1340
1377
|
const obj_filters_item_union0_error = (() => {
|
|
1341
|
-
const referencepath_filters_itemValidationError = validate$
|
|
1378
|
+
const referencepath_filters_itemValidationError = validate$g(obj_filters_item, path_filters_item);
|
|
1342
1379
|
if (referencepath_filters_itemValidationError !== null) {
|
|
1343
1380
|
let message = 'Object doesn\'t match FilterRepresentation (at "' + path_filters_item + '")\n';
|
|
1344
1381
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1398,7 +1435,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
|
|
|
1398
1435
|
const path_metric = path + '.metric';
|
|
1399
1436
|
let obj_metric_union0 = null;
|
|
1400
1437
|
const obj_metric_union0_error = (() => {
|
|
1401
|
-
const referencepath_metricValidationError = validate$
|
|
1438
|
+
const referencepath_metricValidationError = validate$h(obj_metric, path_metric);
|
|
1402
1439
|
if (referencepath_metricValidationError !== null) {
|
|
1403
1440
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
|
|
1404
1441
|
message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1467,7 +1504,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
|
|
|
1467
1504
|
for (let i = 0; i < obj_path_item.length; i++) {
|
|
1468
1505
|
const obj_path_item_item = obj_path_item[i];
|
|
1469
1506
|
const path_path_item_item = path_path_item + '[' + i + ']';
|
|
1470
|
-
const referencepath_path_item_itemValidationError = validate$
|
|
1507
|
+
const referencepath_path_item_itemValidationError = validate$h(obj_path_item_item, path_path_item_item);
|
|
1471
1508
|
if (referencepath_path_item_itemValidationError !== null) {
|
|
1472
1509
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_path_item_item + '")\n';
|
|
1473
1510
|
message += referencepath_path_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1565,7 +1602,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
|
|
|
1565
1602
|
const path_subject = path + '.subject';
|
|
1566
1603
|
let obj_subject_union0 = null;
|
|
1567
1604
|
const obj_subject_union0_error = (() => {
|
|
1568
|
-
const referencepath_subjectValidationError = validate$
|
|
1605
|
+
const referencepath_subjectValidationError = validate$h(obj_subject, path_subject);
|
|
1569
1606
|
if (referencepath_subjectValidationError !== null) {
|
|
1570
1607
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_subject + '")\n';
|
|
1571
1608
|
message += referencepath_subjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1676,7 +1713,7 @@ const select$n = function FilterRepresentationSelect() {
|
|
|
1676
1713
|
opaque: true
|
|
1677
1714
|
};
|
|
1678
1715
|
};
|
|
1679
|
-
function equals$
|
|
1716
|
+
function equals$c(existing, incoming) {
|
|
1680
1717
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1681
1718
|
return false;
|
|
1682
1719
|
}
|
|
@@ -1684,14 +1721,14 @@ function equals$d(existing, incoming) {
|
|
|
1684
1721
|
}
|
|
1685
1722
|
const ingest$8 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1686
1723
|
if (process.env.NODE_ENV !== 'production') {
|
|
1687
|
-
const validateError = validate$
|
|
1724
|
+
const validateError = validate$g(input);
|
|
1688
1725
|
if (validateError !== null) {
|
|
1689
1726
|
throw validateError;
|
|
1690
1727
|
}
|
|
1691
1728
|
}
|
|
1692
1729
|
const key = path.fullPath;
|
|
1693
1730
|
const ttlToUse = path.ttl;
|
|
1694
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "personalization-service", VERSION$c, RepresentationType$8, equals$
|
|
1731
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "personalization-service", VERSION$c, RepresentationType$8, equals$c);
|
|
1695
1732
|
return createLink(key);
|
|
1696
1733
|
};
|
|
1697
1734
|
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1705,7 +1742,7 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1705
1742
|
}
|
|
1706
1743
|
|
|
1707
1744
|
const VERSION$b = "ea475f10b4c028f8b97a44af1cf0be14";
|
|
1708
|
-
function validate$
|
|
1745
|
+
function validate$f(obj, path = 'CriteriaRepresentation') {
|
|
1709
1746
|
const v_error = (() => {
|
|
1710
1747
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1711
1748
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1778,7 +1815,7 @@ const select$m = function CriteriaRepresentationSelect() {
|
|
|
1778
1815
|
]
|
|
1779
1816
|
};
|
|
1780
1817
|
};
|
|
1781
|
-
function equals$
|
|
1818
|
+
function equals$b(existing, incoming) {
|
|
1782
1819
|
const existing_operator = existing.operator;
|
|
1783
1820
|
const incoming_operator = incoming.operator;
|
|
1784
1821
|
if (!(existing_operator === incoming_operator)) {
|
|
@@ -1803,14 +1840,14 @@ function equals$c(existing, incoming) {
|
|
|
1803
1840
|
}
|
|
1804
1841
|
const ingest$7 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1805
1842
|
if (process.env.NODE_ENV !== 'production') {
|
|
1806
|
-
const validateError = validate$
|
|
1843
|
+
const validateError = validate$f(input);
|
|
1807
1844
|
if (validateError !== null) {
|
|
1808
1845
|
throw validateError;
|
|
1809
1846
|
}
|
|
1810
1847
|
}
|
|
1811
1848
|
const key = path.fullPath;
|
|
1812
1849
|
const ttlToUse = path.ttl;
|
|
1813
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$b, RepresentationType$7, equals$
|
|
1850
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$b, RepresentationType$7, equals$b);
|
|
1814
1851
|
return createLink(key);
|
|
1815
1852
|
};
|
|
1816
1853
|
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1828,7 +1865,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1828
1865
|
}
|
|
1829
1866
|
|
|
1830
1867
|
const VERSION$a = "265767af783b296f5f902d6ed447b168";
|
|
1831
|
-
function validate$
|
|
1868
|
+
function validate$e(obj, path = 'PersonalizationDecisionRepresentation') {
|
|
1832
1869
|
const v_error = (() => {
|
|
1833
1870
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1834
1871
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1841,7 +1878,7 @@ function validate$f(obj, path = 'PersonalizationDecisionRepresentation') {
|
|
|
1841
1878
|
for (let i = 0; i < obj_attributeValues.length; i++) {
|
|
1842
1879
|
const obj_attributeValues_item = obj_attributeValues[i];
|
|
1843
1880
|
const path_attributeValues_item = path_attributeValues + '[' + i + ']';
|
|
1844
|
-
const referencepath_attributeValues_itemValidationError = validate$
|
|
1881
|
+
const referencepath_attributeValues_itemValidationError = validate$j(obj_attributeValues_item, path_attributeValues_item);
|
|
1845
1882
|
if (referencepath_attributeValues_itemValidationError !== null) {
|
|
1846
1883
|
let message = 'Object doesn\'t match PersonalizationAttributeValueRepresentation (at "' + path_attributeValues_item + '")\n';
|
|
1847
1884
|
message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2247,11 +2284,11 @@ const select$l = function PersonalizationDecisionRepresentationSelect() {
|
|
|
2247
2284
|
]
|
|
2248
2285
|
};
|
|
2249
2286
|
};
|
|
2250
|
-
function equals$
|
|
2287
|
+
function equals$a(existing, incoming) {
|
|
2251
2288
|
const existing_attributeValues = existing.attributeValues;
|
|
2252
2289
|
const incoming_attributeValues = incoming.attributeValues;
|
|
2253
2290
|
const equals_attributeValues_items = equalsArray(existing_attributeValues, incoming_attributeValues, (existing_attributeValues_item, incoming_attributeValues_item) => {
|
|
2254
|
-
if (!(equals$
|
|
2291
|
+
if (!(equals$d(existing_attributeValues_item, incoming_attributeValues_item))) {
|
|
2255
2292
|
return false;
|
|
2256
2293
|
}
|
|
2257
2294
|
});
|
|
@@ -2327,14 +2364,14 @@ function equals$b(existing, incoming) {
|
|
|
2327
2364
|
}
|
|
2328
2365
|
const ingest$6 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2329
2366
|
if (process.env.NODE_ENV !== 'production') {
|
|
2330
|
-
const validateError = validate$
|
|
2367
|
+
const validateError = validate$e(input);
|
|
2331
2368
|
if (validateError !== null) {
|
|
2332
2369
|
throw validateError;
|
|
2333
2370
|
}
|
|
2334
2371
|
}
|
|
2335
2372
|
const key = path.fullPath;
|
|
2336
2373
|
const ttlToUse = path.ttl;
|
|
2337
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$a, RepresentationType$6, equals$
|
|
2374
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$a, RepresentationType$6, equals$a);
|
|
2338
2375
|
return createLink(key);
|
|
2339
2376
|
};
|
|
2340
2377
|
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2350,9 +2387,9 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2350
2387
|
}
|
|
2351
2388
|
}
|
|
2352
2389
|
|
|
2353
|
-
const TTL$
|
|
2390
|
+
const TTL$5 = 600;
|
|
2354
2391
|
const VERSION$9 = "e5643ca13ef54c890c9177275a053de3";
|
|
2355
|
-
function validate$
|
|
2392
|
+
function validate$d(obj, path = 'PersonalizationPointRepresentation') {
|
|
2356
2393
|
const v_error = (() => {
|
|
2357
2394
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2358
2395
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2953,7 +2990,7 @@ const select$k = function PersonalizationPointRepresentationSelect() {
|
|
|
2953
2990
|
]
|
|
2954
2991
|
};
|
|
2955
2992
|
};
|
|
2956
|
-
function equals$
|
|
2993
|
+
function equals$9(existing, incoming) {
|
|
2957
2994
|
const existing_isAuthenticationRequired = existing.isAuthenticationRequired;
|
|
2958
2995
|
const incoming_isAuthenticationRequired = incoming.isAuthenticationRequired;
|
|
2959
2996
|
if (!(existing_isAuthenticationRequired === incoming_isAuthenticationRequired)) {
|
|
@@ -3068,14 +3105,14 @@ function equals$a(existing, incoming) {
|
|
|
3068
3105
|
}
|
|
3069
3106
|
const ingest$5 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3070
3107
|
if (process.env.NODE_ENV !== 'production') {
|
|
3071
|
-
const validateError = validate$
|
|
3108
|
+
const validateError = validate$d(input);
|
|
3072
3109
|
if (validateError !== null) {
|
|
3073
3110
|
throw validateError;
|
|
3074
3111
|
}
|
|
3075
3112
|
}
|
|
3076
3113
|
const key = keyBuilderFromType$1(luvio, input);
|
|
3077
|
-
const ttlToUse = TTL$
|
|
3078
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$9, RepresentationType$5, equals$
|
|
3114
|
+
const ttlToUse = TTL$5;
|
|
3115
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$9, RepresentationType$5, equals$9);
|
|
3079
3116
|
return createLink(key);
|
|
3080
3117
|
};
|
|
3081
3118
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -3191,7 +3228,7 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
3191
3228
|
const untrustedConfig_decisions_array = [];
|
|
3192
3229
|
for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
|
|
3193
3230
|
const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
|
|
3194
|
-
const referencePersonalizationDecisionInputRepresentationValidationError = validate$
|
|
3231
|
+
const referencePersonalizationDecisionInputRepresentationValidationError = validate$k(untrustedConfig_decisions_item);
|
|
3195
3232
|
if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
|
|
3196
3233
|
untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
|
|
3197
3234
|
}
|
|
@@ -3284,7 +3321,7 @@ const createPersonalizationPointAdapterFactory = (luvio) => {
|
|
|
3284
3321
|
};
|
|
3285
3322
|
};
|
|
3286
3323
|
|
|
3287
|
-
function validate$
|
|
3324
|
+
function validate$c(obj, path = 'PersonalizationAttributeInputRepresentation') {
|
|
3288
3325
|
const v_error = (() => {
|
|
3289
3326
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3290
3327
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3332,7 +3369,7 @@ function validate$d(obj, path = 'PersonalizationAttributeInputRepresentation') {
|
|
|
3332
3369
|
}
|
|
3333
3370
|
|
|
3334
3371
|
const VERSION$8 = "014064b188ff923423af6301d64be36a";
|
|
3335
|
-
function validate$
|
|
3372
|
+
function validate$b(obj, path = 'PersonalizationAttributeRepresentation') {
|
|
3336
3373
|
const v_error = (() => {
|
|
3337
3374
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3338
3375
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3472,7 +3509,7 @@ const select$i = function PersonalizationAttributeRepresentationSelect() {
|
|
|
3472
3509
|
]
|
|
3473
3510
|
};
|
|
3474
3511
|
};
|
|
3475
|
-
function equals$
|
|
3512
|
+
function equals$8(existing, incoming) {
|
|
3476
3513
|
const existing_createdById = existing.createdById;
|
|
3477
3514
|
const incoming_createdById = incoming.createdById;
|
|
3478
3515
|
if (!(existing_createdById === incoming_createdById)) {
|
|
@@ -3521,9 +3558,9 @@ function equals$9(existing, incoming) {
|
|
|
3521
3558
|
return true;
|
|
3522
3559
|
}
|
|
3523
3560
|
|
|
3524
|
-
const TTL$
|
|
3561
|
+
const TTL$4 = 600;
|
|
3525
3562
|
const VERSION$7 = "25740f87643de6fdae570c77bbec7377";
|
|
3526
|
-
function validate$
|
|
3563
|
+
function validate$a(obj, path = 'PersonalizationSchemaRepresentation') {
|
|
3527
3564
|
const v_error = (() => {
|
|
3528
3565
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3529
3566
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3536,7 +3573,7 @@ function validate$b(obj, path = 'PersonalizationSchemaRepresentation') {
|
|
|
3536
3573
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
3537
3574
|
const obj_attributes_item = obj_attributes[i];
|
|
3538
3575
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
3539
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
3576
|
+
const referencepath_attributes_itemValidationError = validate$b(obj_attributes_item, path_attributes_item);
|
|
3540
3577
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
3541
3578
|
let message = 'Object doesn\'t match PersonalizationAttributeRepresentation (at "' + path_attributes_item + '")\n';
|
|
3542
3579
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3763,7 +3800,7 @@ const select$h = function PersonalizationSchemaRepresentationSelect() {
|
|
|
3763
3800
|
]
|
|
3764
3801
|
};
|
|
3765
3802
|
};
|
|
3766
|
-
function equals$
|
|
3803
|
+
function equals$7(existing, incoming) {
|
|
3767
3804
|
const existing_createdById = existing.createdById;
|
|
3768
3805
|
const incoming_createdById = incoming.createdById;
|
|
3769
3806
|
if (!(existing_createdById === incoming_createdById)) {
|
|
@@ -3817,7 +3854,7 @@ function equals$8(existing, incoming) {
|
|
|
3817
3854
|
const existing_attributes = existing.attributes;
|
|
3818
3855
|
const incoming_attributes = incoming.attributes;
|
|
3819
3856
|
const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
|
|
3820
|
-
if (!(equals$
|
|
3857
|
+
if (!(equals$8(existing_attributes_item, incoming_attributes_item))) {
|
|
3821
3858
|
return false;
|
|
3822
3859
|
}
|
|
3823
3860
|
});
|
|
@@ -3848,14 +3885,14 @@ function equals$8(existing, incoming) {
|
|
|
3848
3885
|
}
|
|
3849
3886
|
const ingest$4 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3850
3887
|
if (process.env.NODE_ENV !== 'production') {
|
|
3851
|
-
const validateError = validate$
|
|
3888
|
+
const validateError = validate$a(input);
|
|
3852
3889
|
if (validateError !== null) {
|
|
3853
3890
|
throw validateError;
|
|
3854
3891
|
}
|
|
3855
3892
|
}
|
|
3856
3893
|
const key = keyBuilderFromType(luvio, input);
|
|
3857
|
-
const ttlToUse = TTL$
|
|
3858
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$7, RepresentationType$4, equals$
|
|
3894
|
+
const ttlToUse = TTL$4;
|
|
3895
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$7, RepresentationType$4, equals$7);
|
|
3859
3896
|
return createLink(key);
|
|
3860
3897
|
};
|
|
3861
3898
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -3947,7 +3984,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
3947
3984
|
const untrustedConfig_attributes_array = [];
|
|
3948
3985
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
3949
3986
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
3950
|
-
const referencePersonalizationAttributeInputRepresentationValidationError = validate$
|
|
3987
|
+
const referencePersonalizationAttributeInputRepresentationValidationError = validate$c(untrustedConfig_attributes_item);
|
|
3951
3988
|
if (referencePersonalizationAttributeInputRepresentationValidationError === null) {
|
|
3952
3989
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
3953
3990
|
}
|
|
@@ -4279,7 +4316,7 @@ const deletePersonalizationSchemaAdapterFactory = (luvio) => {
|
|
|
4279
4316
|
};
|
|
4280
4317
|
|
|
4281
4318
|
const VERSION$6 = "e68c48ce57702a3f1e8ca445bbbcbbcf";
|
|
4282
|
-
function validate$
|
|
4319
|
+
function validate$9(obj, path = 'PersonalizationDataMlModelInputFeatureRepresentation') {
|
|
4283
4320
|
const v_error = (() => {
|
|
4284
4321
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4285
4322
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4325,7 +4362,7 @@ const select$f = function PersonalizationDataMlModelInputFeatureRepresentationSe
|
|
|
4325
4362
|
]
|
|
4326
4363
|
};
|
|
4327
4364
|
};
|
|
4328
|
-
function equals$
|
|
4365
|
+
function equals$6(existing, incoming) {
|
|
4329
4366
|
const existing_type = existing.type;
|
|
4330
4367
|
const incoming_type = incoming.type;
|
|
4331
4368
|
if (!(existing_type === incoming_type)) {
|
|
@@ -4345,7 +4382,7 @@ function equals$7(existing, incoming) {
|
|
|
4345
4382
|
}
|
|
4346
4383
|
|
|
4347
4384
|
const VERSION$5 = "d1b90f3586125de94a321fae68717c07";
|
|
4348
|
-
function validate$
|
|
4385
|
+
function validate$8(obj, path = 'PersonalizationDataMlModelRepresentation') {
|
|
4349
4386
|
const v_error = (() => {
|
|
4350
4387
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4351
4388
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4358,7 +4395,7 @@ function validate$9(obj, path = 'PersonalizationDataMlModelRepresentation') {
|
|
|
4358
4395
|
for (let i = 0; i < obj_dataMlModelInputs.length; i++) {
|
|
4359
4396
|
const obj_dataMlModelInputs_item = obj_dataMlModelInputs[i];
|
|
4360
4397
|
const path_dataMlModelInputs_item = path_dataMlModelInputs + '[' + i + ']';
|
|
4361
|
-
const referencepath_dataMlModelInputs_itemValidationError = validate$
|
|
4398
|
+
const referencepath_dataMlModelInputs_itemValidationError = validate$9(obj_dataMlModelInputs_item, path_dataMlModelInputs_item);
|
|
4362
4399
|
if (referencepath_dataMlModelInputs_itemValidationError !== null) {
|
|
4363
4400
|
let message = 'Object doesn\'t match PersonalizationDataMlModelInputFeatureRepresentation (at "' + path_dataMlModelInputs_item + '")\n';
|
|
4364
4401
|
message += referencepath_dataMlModelInputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4449,7 +4486,7 @@ const select$e = function PersonalizationDataMlModelRepresentationSelect() {
|
|
|
4449
4486
|
]
|
|
4450
4487
|
};
|
|
4451
4488
|
};
|
|
4452
|
-
function equals$
|
|
4489
|
+
function equals$5(existing, incoming) {
|
|
4453
4490
|
const existing_dataSpaceName = existing.dataSpaceName;
|
|
4454
4491
|
const incoming_dataSpaceName = incoming.dataSpaceName;
|
|
4455
4492
|
if (!(existing_dataSpaceName === incoming_dataSpaceName)) {
|
|
@@ -4478,7 +4515,7 @@ function equals$6(existing, incoming) {
|
|
|
4478
4515
|
const existing_dataMlModelInputs = existing.dataMlModelInputs;
|
|
4479
4516
|
const incoming_dataMlModelInputs = incoming.dataMlModelInputs;
|
|
4480
4517
|
const equals_dataMlModelInputs_items = equalsArray(existing_dataMlModelInputs, incoming_dataMlModelInputs, (existing_dataMlModelInputs_item, incoming_dataMlModelInputs_item) => {
|
|
4481
|
-
if (!(equals$
|
|
4518
|
+
if (!(equals$6(existing_dataMlModelInputs_item, incoming_dataMlModelInputs_item))) {
|
|
4482
4519
|
return false;
|
|
4483
4520
|
}
|
|
4484
4521
|
});
|
|
@@ -4498,9 +4535,9 @@ function equals$6(existing, incoming) {
|
|
|
4498
4535
|
return true;
|
|
4499
4536
|
}
|
|
4500
4537
|
|
|
4501
|
-
const TTL$
|
|
4538
|
+
const TTL$3 = 600;
|
|
4502
4539
|
const VERSION$4 = "9dbc0875b97dc0f9ec2f23b3481be0b8";
|
|
4503
|
-
function validate$
|
|
4540
|
+
function validate$7(obj, path = 'PersonalizationDataMlModelCollectionRepresentation') {
|
|
4504
4541
|
const v_error = (() => {
|
|
4505
4542
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4506
4543
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4513,7 +4550,7 @@ function validate$8(obj, path = 'PersonalizationDataMlModelCollectionRepresentat
|
|
|
4513
4550
|
for (let i = 0; i < obj_personalizationDataMlModels.length; i++) {
|
|
4514
4551
|
const obj_personalizationDataMlModels_item = obj_personalizationDataMlModels[i];
|
|
4515
4552
|
const path_personalizationDataMlModels_item = path_personalizationDataMlModels + '[' + i + ']';
|
|
4516
|
-
const referencepath_personalizationDataMlModels_itemValidationError = validate$
|
|
4553
|
+
const referencepath_personalizationDataMlModels_itemValidationError = validate$8(obj_personalizationDataMlModels_item, path_personalizationDataMlModels_item);
|
|
4517
4554
|
if (referencepath_personalizationDataMlModels_itemValidationError !== null) {
|
|
4518
4555
|
let message = 'Object doesn\'t match PersonalizationDataMlModelRepresentation (at "' + path_personalizationDataMlModels_item + '")\n';
|
|
4519
4556
|
message += referencepath_personalizationDataMlModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4543,11 +4580,11 @@ const select$d = function PersonalizationDataMlModelCollectionRepresentationSele
|
|
|
4543
4580
|
]
|
|
4544
4581
|
};
|
|
4545
4582
|
};
|
|
4546
|
-
function equals$
|
|
4583
|
+
function equals$4(existing, incoming) {
|
|
4547
4584
|
const existing_personalizationDataMlModels = existing.personalizationDataMlModels;
|
|
4548
4585
|
const incoming_personalizationDataMlModels = incoming.personalizationDataMlModels;
|
|
4549
4586
|
const equals_personalizationDataMlModels_items = equalsArray(existing_personalizationDataMlModels, incoming_personalizationDataMlModels, (existing_personalizationDataMlModels_item, incoming_personalizationDataMlModels_item) => {
|
|
4550
|
-
if (!(equals$
|
|
4587
|
+
if (!(equals$5(existing_personalizationDataMlModels_item, incoming_personalizationDataMlModels_item))) {
|
|
4551
4588
|
return false;
|
|
4552
4589
|
}
|
|
4553
4590
|
});
|
|
@@ -4558,14 +4595,14 @@ function equals$5(existing, incoming) {
|
|
|
4558
4595
|
}
|
|
4559
4596
|
const ingest$3 = function PersonalizationDataMlModelCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4560
4597
|
if (process.env.NODE_ENV !== 'production') {
|
|
4561
|
-
const validateError = validate$
|
|
4598
|
+
const validateError = validate$7(input);
|
|
4562
4599
|
if (validateError !== null) {
|
|
4563
4600
|
throw validateError;
|
|
4564
4601
|
}
|
|
4565
4602
|
}
|
|
4566
4603
|
const key = path.fullPath;
|
|
4567
|
-
const ttlToUse = TTL$
|
|
4568
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$4, RepresentationType$3, equals$
|
|
4604
|
+
const ttlToUse = TTL$3;
|
|
4605
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$4, RepresentationType$3, equals$4);
|
|
4569
4606
|
return createLink(key);
|
|
4570
4607
|
};
|
|
4571
4608
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -4608,7 +4645,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
4608
4645
|
const key = keyBuilder$d(luvio, params);
|
|
4609
4646
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4610
4647
|
const storeMetadataParams = {
|
|
4611
|
-
ttl: TTL$
|
|
4648
|
+
ttl: TTL$3,
|
|
4612
4649
|
namespace: keyPrefix,
|
|
4613
4650
|
version: VERSION$4,
|
|
4614
4651
|
representationName: RepresentationType$3
|
|
@@ -4759,7 +4796,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
4759
4796
|
const key = keyBuilder$b(luvio, params);
|
|
4760
4797
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4761
4798
|
const storeMetadataParams = {
|
|
4762
|
-
ttl: TTL$
|
|
4799
|
+
ttl: TTL$6,
|
|
4763
4800
|
namespace: keyPrefix,
|
|
4764
4801
|
version: VERSION$e,
|
|
4765
4802
|
representationName: RepresentationType$9
|
|
@@ -4775,7 +4812,7 @@ function createResourceRequest$8(config) {
|
|
|
4775
4812
|
method: 'get',
|
|
4776
4813
|
body: null,
|
|
4777
4814
|
urlParams: config.urlParams,
|
|
4778
|
-
queryParams:
|
|
4815
|
+
queryParams: config.queryParams,
|
|
4779
4816
|
headers,
|
|
4780
4817
|
priority: 'normal',
|
|
4781
4818
|
};
|
|
@@ -4783,6 +4820,7 @@ function createResourceRequest$8(config) {
|
|
|
4783
4820
|
function createResourceRequestFromRepresentation$1(representation) {
|
|
4784
4821
|
const config = {
|
|
4785
4822
|
urlParams: {},
|
|
4823
|
+
queryParams: {},
|
|
4786
4824
|
};
|
|
4787
4825
|
config.urlParams.nameParam = representation.name;
|
|
4788
4826
|
return createResourceRequest$9(config);
|
|
@@ -4792,6 +4830,7 @@ const adapterName$7 = 'getPersonalizationExperienceConfig';
|
|
|
4792
4830
|
const getPersonalizationExperienceConfig_ConfigPropertyMetadata = [
|
|
4793
4831
|
generateParamConfigMetadata('idOrAppSourceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4794
4832
|
generateParamConfigMetadata('nameParam', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4833
|
+
generateParamConfigMetadata('isWpmUrlRequired', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
4795
4834
|
];
|
|
4796
4835
|
const getPersonalizationExperienceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getPersonalizationExperienceConfig_ConfigPropertyMetadata);
|
|
4797
4836
|
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$f(getPersonalizationExperienceConfig_ConfigPropertyMetadata);
|
|
@@ -4896,7 +4935,7 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
4896
4935
|
return luvio.handleErrorResponse(() => {
|
|
4897
4936
|
const errorSnapshot = luvio.errorSnapshot(error);
|
|
4898
4937
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
4899
|
-
ttl: TTL$
|
|
4938
|
+
ttl: TTL$6,
|
|
4900
4939
|
namespace: keyPrefix,
|
|
4901
4940
|
version: VERSION$e,
|
|
4902
4941
|
representationName: RepresentationType$9
|
|
@@ -4909,8 +4948,9 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
4909
4948
|
};
|
|
4910
4949
|
};
|
|
4911
4950
|
|
|
4912
|
-
const TTL$
|
|
4913
|
-
|
|
4951
|
+
const TTL$2 = 600;
|
|
4952
|
+
const VERSION$3 = "6528ad865555561e680369408fb4f4c2";
|
|
4953
|
+
function validate$6(obj, path = 'PersonalizationExperienceConfigCollectionRepresentation') {
|
|
4914
4954
|
const v_error = (() => {
|
|
4915
4955
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4916
4956
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4920,48 +4960,33 @@ function validate$7(obj, path = 'PersonalizationPaginatedResponseBaseRepresentat
|
|
|
4920
4960
|
if (typeof obj_currentPageUrl !== 'string') {
|
|
4921
4961
|
return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
|
|
4922
4962
|
}
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
return false;
|
|
4951
|
-
}
|
|
4952
|
-
return true;
|
|
4953
|
-
}
|
|
4954
|
-
|
|
4955
|
-
const TTL$2 = 600;
|
|
4956
|
-
const VERSION$3 = "5a309503b3f17d6589909be7f5f9d4a8";
|
|
4957
|
-
function validate$6(obj, path = 'PersonalizationExperienceConfigCollectionRepresentation') {
|
|
4958
|
-
const validatePersonalizationPaginatedResponseBaseRepresentation_validateError = validate$7(obj, path);
|
|
4959
|
-
if (validatePersonalizationPaginatedResponseBaseRepresentation_validateError !== null) {
|
|
4960
|
-
return validatePersonalizationPaginatedResponseBaseRepresentation_validateError;
|
|
4961
|
-
}
|
|
4962
|
-
const v_error = (() => {
|
|
4963
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4964
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4963
|
+
if (obj.nextPageUrl !== undefined) {
|
|
4964
|
+
const obj_nextPageUrl = obj.nextPageUrl;
|
|
4965
|
+
const path_nextPageUrl = path + '.nextPageUrl';
|
|
4966
|
+
let obj_nextPageUrl_union0 = null;
|
|
4967
|
+
const obj_nextPageUrl_union0_error = (() => {
|
|
4968
|
+
if (typeof obj_nextPageUrl !== 'string') {
|
|
4969
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
4970
|
+
}
|
|
4971
|
+
})();
|
|
4972
|
+
if (obj_nextPageUrl_union0_error != null) {
|
|
4973
|
+
obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
|
|
4974
|
+
}
|
|
4975
|
+
let obj_nextPageUrl_union1 = null;
|
|
4976
|
+
const obj_nextPageUrl_union1_error = (() => {
|
|
4977
|
+
if (obj_nextPageUrl !== null) {
|
|
4978
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
4979
|
+
}
|
|
4980
|
+
})();
|
|
4981
|
+
if (obj_nextPageUrl_union1_error != null) {
|
|
4982
|
+
obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
|
|
4983
|
+
}
|
|
4984
|
+
if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
|
|
4985
|
+
let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
|
|
4986
|
+
message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4987
|
+
message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4988
|
+
return new TypeError(message);
|
|
4989
|
+
}
|
|
4965
4990
|
}
|
|
4966
4991
|
const obj_personalizationExperienceConfigs = obj.personalizationExperienceConfigs;
|
|
4967
4992
|
const path_personalizationExperienceConfigs = path + '.personalizationExperienceConfigs';
|
|
@@ -4971,13 +4996,18 @@ function validate$6(obj, path = 'PersonalizationExperienceConfigCollectionRepres
|
|
|
4971
4996
|
for (let i = 0; i < obj_personalizationExperienceConfigs.length; i++) {
|
|
4972
4997
|
const obj_personalizationExperienceConfigs_item = obj_personalizationExperienceConfigs[i];
|
|
4973
4998
|
const path_personalizationExperienceConfigs_item = path_personalizationExperienceConfigs + '[' + i + ']';
|
|
4974
|
-
const referencepath_personalizationExperienceConfigs_itemValidationError = validate$
|
|
4999
|
+
const referencepath_personalizationExperienceConfigs_itemValidationError = validate$m(obj_personalizationExperienceConfigs_item, path_personalizationExperienceConfigs_item);
|
|
4975
5000
|
if (referencepath_personalizationExperienceConfigs_itemValidationError !== null) {
|
|
4976
5001
|
let message = 'Object doesn\'t match PersonalizationExperienceConfigRepresentation (at "' + path_personalizationExperienceConfigs_item + '")\n';
|
|
4977
5002
|
message += referencepath_personalizationExperienceConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4978
5003
|
return new TypeError(message);
|
|
4979
5004
|
}
|
|
4980
5005
|
}
|
|
5006
|
+
const obj_totalSize = obj.totalSize;
|
|
5007
|
+
const path_totalSize = path + '.totalSize';
|
|
5008
|
+
if (typeof obj_totalSize !== 'number' || (typeof obj_totalSize === 'number' && Math.floor(obj_totalSize) !== obj_totalSize)) {
|
|
5009
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalSize + '" (at "' + path_totalSize + '")');
|
|
5010
|
+
}
|
|
4981
5011
|
})();
|
|
4982
5012
|
return v_error === undefined ? null : v_error;
|
|
4983
5013
|
}
|
|
@@ -4994,17 +5024,7 @@ const select$a = function PersonalizationExperienceConfigCollectionRepresentatio
|
|
|
4994
5024
|
};
|
|
4995
5025
|
};
|
|
4996
5026
|
function equals$3(existing, incoming) {
|
|
4997
|
-
if (
|
|
4998
|
-
return false;
|
|
4999
|
-
}
|
|
5000
|
-
const existing_personalizationExperienceConfigs = existing.personalizationExperienceConfigs;
|
|
5001
|
-
const incoming_personalizationExperienceConfigs = incoming.personalizationExperienceConfigs;
|
|
5002
|
-
const equals_personalizationExperienceConfigs_items = equalsArray(existing_personalizationExperienceConfigs, incoming_personalizationExperienceConfigs, (existing_personalizationExperienceConfigs_item, incoming_personalizationExperienceConfigs_item) => {
|
|
5003
|
-
if (!(equals$f(existing_personalizationExperienceConfigs_item, incoming_personalizationExperienceConfigs_item))) {
|
|
5004
|
-
return false;
|
|
5005
|
-
}
|
|
5006
|
-
});
|
|
5007
|
-
if (equals_personalizationExperienceConfigs_items === false) {
|
|
5027
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5008
5028
|
return false;
|
|
5009
5029
|
}
|
|
5010
5030
|
return true;
|
|
@@ -5017,7 +5037,7 @@ const ingest$2 = function PersonalizationExperienceConfigCollectionRepresentatio
|
|
|
5017
5037
|
}
|
|
5018
5038
|
}
|
|
5019
5039
|
const key = path.fullPath;
|
|
5020
|
-
const ttlToUse = TTL$
|
|
5040
|
+
const ttlToUse = TTL$2;
|
|
5021
5041
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$3, RepresentationType$2, equals$3);
|
|
5022
5042
|
return createLink(key);
|
|
5023
5043
|
};
|
|
@@ -5035,7 +5055,7 @@ function select$9(luvio, params) {
|
|
|
5035
5055
|
return select$a();
|
|
5036
5056
|
}
|
|
5037
5057
|
function keyBuilder$9(luvio, params) {
|
|
5038
|
-
return keyPrefix + '::PersonalizationExperienceConfigCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'idOrAppSourceIdOrName:' + params.urlParams.idOrAppSourceIdOrName + ')';
|
|
5058
|
+
return keyPrefix + '::PersonalizationExperienceConfigCollectionRepresentation:(' + 'dataSpaceIdOrName:' + params.queryParams.dataSpaceIdOrName + ',' + 'isWpmUrlRequired:' + params.queryParams.isWpmUrlRequired + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'personalizationPointNameOrId:' + params.queryParams.personalizationPointNameOrId + ',' + 'transformerNameOrId:' + params.queryParams.transformerNameOrId + ',' + 'idOrAppSourceIdOrName:' + params.urlParams.idOrAppSourceIdOrName + ')';
|
|
5039
5059
|
}
|
|
5040
5060
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
5041
5061
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
@@ -5086,8 +5106,12 @@ function createResourceRequest$7(config) {
|
|
|
5086
5106
|
const adapterName$6 = 'getPersonalizationExperiencesConfigs';
|
|
5087
5107
|
const getPersonalizationExperiencesConfigs_ConfigPropertyMetadata = [
|
|
5088
5108
|
generateParamConfigMetadata('idOrAppSourceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5109
|
+
generateParamConfigMetadata('dataSpaceIdOrName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5110
|
+
generateParamConfigMetadata('isWpmUrlRequired', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
5089
5111
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5090
5112
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5113
|
+
generateParamConfigMetadata('personalizationPointNameOrId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5114
|
+
generateParamConfigMetadata('transformerNameOrId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5091
5115
|
];
|
|
5092
5116
|
const getPersonalizationExperiencesConfigs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getPersonalizationExperiencesConfigs_ConfigPropertyMetadata);
|
|
5093
5117
|
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$f(getPersonalizationExperiencesConfigs_ConfigPropertyMetadata);
|
|
@@ -5203,7 +5227,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
5203
5227
|
const key = keyBuilder$7(luvio, params);
|
|
5204
5228
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5205
5229
|
const storeMetadataParams = {
|
|
5206
|
-
ttl: TTL$
|
|
5230
|
+
ttl: TTL$5,
|
|
5207
5231
|
namespace: keyPrefix,
|
|
5208
5232
|
version: VERSION$9,
|
|
5209
5233
|
representationName: RepresentationType$5
|
|
@@ -5343,7 +5367,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
5343
5367
|
const key = keyBuilder$5(luvio, params);
|
|
5344
5368
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5345
5369
|
const storeMetadataParams = {
|
|
5346
|
-
ttl: TTL$
|
|
5370
|
+
ttl: TTL$4,
|
|
5347
5371
|
namespace: keyPrefix,
|
|
5348
5372
|
version: VERSION$7,
|
|
5349
5373
|
representationName: RepresentationType$4
|
|
@@ -5479,7 +5503,7 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
5479
5503
|
return luvio.handleErrorResponse(() => {
|
|
5480
5504
|
const errorSnapshot = luvio.errorSnapshot(error);
|
|
5481
5505
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
5482
|
-
ttl: TTL$
|
|
5506
|
+
ttl: TTL$4,
|
|
5483
5507
|
namespace: keyPrefix,
|
|
5484
5508
|
version: VERSION$7,
|
|
5485
5509
|
representationName: RepresentationType$4
|
|
@@ -6281,7 +6305,7 @@ function createResourceRequest$2(config) {
|
|
|
6281
6305
|
method: 'put',
|
|
6282
6306
|
body: config.body,
|
|
6283
6307
|
urlParams: config.urlParams,
|
|
6284
|
-
queryParams:
|
|
6308
|
+
queryParams: config.queryParams,
|
|
6285
6309
|
headers,
|
|
6286
6310
|
priority: 'normal',
|
|
6287
6311
|
};
|
|
@@ -6297,9 +6321,10 @@ const adapterName$1 = 'updatePersonalizationExperienceConfig';
|
|
|
6297
6321
|
const updatePersonalizationExperienceConfig_ConfigPropertyMetadata = [
|
|
6298
6322
|
generateParamConfigMetadata('idOrAppSourceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6299
6323
|
generateParamConfigMetadata('nameParam', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6324
|
+
generateParamConfigMetadata('disableRelatedExperiences', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
6300
6325
|
generateParamConfigMetadata('dataProvider', true, 2 /* Body */, 4 /* Unsupported */),
|
|
6301
6326
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
6302
|
-
generateParamConfigMetadata('displayUrl',
|
|
6327
|
+
generateParamConfigMetadata('displayUrl', false, 2 /* Body */, 0 /* String */),
|
|
6303
6328
|
generateParamConfigMetadata('isEnabled', true, 2 /* Body */, 1 /* Boolean */),
|
|
6304
6329
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
6305
6330
|
generateParamConfigMetadata('lastModifiedDate', false, 2 /* Body */, 0 /* String */),
|
|
@@ -6470,7 +6495,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
6470
6495
|
const untrustedConfig_decisions_array = [];
|
|
6471
6496
|
for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
|
|
6472
6497
|
const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
|
|
6473
|
-
const referencePersonalizationDecisionInputRepresentationValidationError = validate$
|
|
6498
|
+
const referencePersonalizationDecisionInputRepresentationValidationError = validate$k(untrustedConfig_decisions_item);
|
|
6474
6499
|
if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
|
|
6475
6500
|
untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
|
|
6476
6501
|
}
|
|
@@ -6696,4 +6721,4 @@ withDefaultLuvio((luvio) => {
|
|
|
6696
6721
|
});
|
|
6697
6722
|
|
|
6698
6723
|
export { createPersonalizationExperiencesConfig, createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationExperienceConfig, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationEsModelMapping, getPersonalizationEsModelMapping_imperative, getPersonalizationExperienceConfig, getPersonalizationExperienceConfigNotifyChange, getPersonalizationExperienceConfig_imperative, getPersonalizationExperiencesConfigs, getPersonalizationExperiencesConfigs_imperative, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, getTrainingHistory, getTrainingHistory_imperative, postPersonalizationRecommenderSimulateAction, postPersonalizationRecommenderSimulateAction_imperative, updatePersonalizationExperienceConfig, updatePersonalizationPoint };
|
|
6699
|
-
// version: 1.404.0-
|
|
6724
|
+
// version: 1.404.0-dev20-d07b5007e7
|