@salesforce/lds-adapters-cdp-personalization-service 1.404.0-dev15 → 1.404.0-dev18
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 +133 -149
- package/dist/es/es2018/types/src/generated/adapters/getPersonalizationExperiencesConfigs.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/getPersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrName.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/types/PersonalizationExperienceConfigCollectionRepresentation.d.ts +12 -4
- package/dist/es/es2018/types/src/generated/types/PersonalizationPaginatedResponseBaseRepresentation.d.ts +3 -3
- package/package.json +3 -3
- package/sfdc/index.js +116 -132
- package/src/raml/api.raml +23 -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$
|
|
161
|
+
const TTL$6 = 600;
|
|
162
162
|
const VERSION$e = "a67f617f4400e4fe90ecd853358d75b4";
|
|
163
|
-
function validate$
|
|
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 + '")');
|
|
@@ -353,7 +353,7 @@ const select$q = function PersonalizationExperienceConfigRepresentationSelect()
|
|
|
353
353
|
]
|
|
354
354
|
};
|
|
355
355
|
};
|
|
356
|
-
function equals$
|
|
356
|
+
function equals$e(existing, incoming) {
|
|
357
357
|
const existing_isEnabled = existing.isEnabled;
|
|
358
358
|
const incoming_isEnabled = incoming.isEnabled;
|
|
359
359
|
if (!(existing_isEnabled === incoming_isEnabled)) {
|
|
@@ -505,14 +505,14 @@ function equals$f(existing, incoming) {
|
|
|
505
505
|
}
|
|
506
506
|
const ingest$9 = function PersonalizationExperienceConfigRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
507
507
|
if (process.env.NODE_ENV !== 'production') {
|
|
508
|
-
const validateError = validate$
|
|
508
|
+
const validateError = validate$m(input);
|
|
509
509
|
if (validateError !== null) {
|
|
510
510
|
throw validateError;
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
const key = keyBuilderFromType$2(luvio, input);
|
|
514
|
-
const ttlToUse = TTL$
|
|
515
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "personalization-service", VERSION$e, RepresentationType$9, equals$
|
|
514
|
+
const ttlToUse = TTL$6;
|
|
515
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "personalization-service", VERSION$e, RepresentationType$9, equals$e);
|
|
516
516
|
return createLink(key);
|
|
517
517
|
};
|
|
518
518
|
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -638,7 +638,7 @@ const createPersonalizationExperiencesConfigAdapterFactory = (luvio) => {
|
|
|
638
638
|
};
|
|
639
639
|
};
|
|
640
640
|
|
|
641
|
-
function validate$
|
|
641
|
+
function validate$l(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
|
|
642
642
|
const v_error = (() => {
|
|
643
643
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
644
644
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -729,7 +729,7 @@ function validate$m(obj, path = 'PersonalizationAttributeValueInputRepresentatio
|
|
|
729
729
|
return v_error === undefined ? null : v_error;
|
|
730
730
|
}
|
|
731
731
|
|
|
732
|
-
function validate$
|
|
732
|
+
function validate$k(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
733
733
|
const v_error = (() => {
|
|
734
734
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
735
735
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -743,7 +743,7 @@ function validate$l(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
|
743
743
|
for (let i = 0; i < obj_attributeValues.length; i++) {
|
|
744
744
|
const obj_attributeValues_item = obj_attributeValues[i];
|
|
745
745
|
const path_attributeValues_item = path_attributeValues + '[' + i + ']';
|
|
746
|
-
const referencepath_attributeValues_itemValidationError = validate$
|
|
746
|
+
const referencepath_attributeValues_itemValidationError = validate$l(obj_attributeValues_item, path_attributeValues_item);
|
|
747
747
|
if (referencepath_attributeValues_itemValidationError !== null) {
|
|
748
748
|
let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
|
|
749
749
|
message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -918,7 +918,7 @@ function validate$l(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
|
918
918
|
}
|
|
919
919
|
|
|
920
920
|
const VERSION$d = "52ea9c14b7a747a28cedbcff0e7ab169";
|
|
921
|
-
function validate$
|
|
921
|
+
function validate$j(obj, path = 'PersonalizationAttributeValueRepresentation') {
|
|
922
922
|
const v_error = (() => {
|
|
923
923
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
924
924
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1025,7 +1025,7 @@ const select$o = function PersonalizationAttributeValueRepresentationSelect() {
|
|
|
1025
1025
|
]
|
|
1026
1026
|
};
|
|
1027
1027
|
};
|
|
1028
|
-
function equals$
|
|
1028
|
+
function equals$d(existing, incoming) {
|
|
1029
1029
|
const existing_attributeEnum = existing.attributeEnum;
|
|
1030
1030
|
const incoming_attributeEnum = incoming.attributeEnum;
|
|
1031
1031
|
if (!(existing_attributeEnum === incoming_attributeEnum)) {
|
|
@@ -1044,7 +1044,7 @@ function equals$e(existing, incoming) {
|
|
|
1044
1044
|
return true;
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
1047
|
-
function validate$
|
|
1047
|
+
function validate$i(obj, path = 'FiltersWrapRepresentation') {
|
|
1048
1048
|
const v_error = (() => {
|
|
1049
1049
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1050
1050
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1123,7 +1123,7 @@ function validate$j(obj, path = 'FiltersWrapRepresentation') {
|
|
|
1123
1123
|
return v_error === undefined ? null : v_error;
|
|
1124
1124
|
}
|
|
1125
1125
|
|
|
1126
|
-
function validate$
|
|
1126
|
+
function validate$h(obj, path = 'SubjectRepresentation') {
|
|
1127
1127
|
const v_error = (() => {
|
|
1128
1128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1129
1129
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1243,7 +1243,7 @@ function validate$i(obj, path = 'SubjectRepresentation') {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
|
|
1245
1245
|
const VERSION$c = "089c2877ffa367e376fe74f8d358ffa8";
|
|
1246
|
-
function validate$
|
|
1246
|
+
function validate$g(obj, path = 'FilterRepresentation') {
|
|
1247
1247
|
const v_error = (() => {
|
|
1248
1248
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1249
1249
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1281,7 +1281,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
|
|
|
1281
1281
|
const path_comparison = path + '.comparison';
|
|
1282
1282
|
let obj_comparison_union0 = null;
|
|
1283
1283
|
const obj_comparison_union0_error = (() => {
|
|
1284
|
-
const referencepath_comparisonValidationError = validate$
|
|
1284
|
+
const referencepath_comparisonValidationError = validate$g(obj_comparison, path_comparison);
|
|
1285
1285
|
if (referencepath_comparisonValidationError !== null) {
|
|
1286
1286
|
let message = 'Object doesn\'t match FilterRepresentation (at "' + path_comparison + '")\n';
|
|
1287
1287
|
message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1312,7 +1312,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
|
|
|
1312
1312
|
const path_filter = path + '.filter';
|
|
1313
1313
|
let obj_filter_union0 = null;
|
|
1314
1314
|
const obj_filter_union0_error = (() => {
|
|
1315
|
-
const referencepath_filterValidationError = validate$
|
|
1315
|
+
const referencepath_filterValidationError = validate$i(obj_filter, path_filter);
|
|
1316
1316
|
if (referencepath_filterValidationError !== null) {
|
|
1317
1317
|
let message = 'Object doesn\'t match FiltersWrapRepresentation (at "' + path_filter + '")\n';
|
|
1318
1318
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1349,7 +1349,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
|
|
|
1349
1349
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
1350
1350
|
let obj_filters_item_union0 = null;
|
|
1351
1351
|
const obj_filters_item_union0_error = (() => {
|
|
1352
|
-
const referencepath_filters_itemValidationError = validate$
|
|
1352
|
+
const referencepath_filters_itemValidationError = validate$g(obj_filters_item, path_filters_item);
|
|
1353
1353
|
if (referencepath_filters_itemValidationError !== null) {
|
|
1354
1354
|
let message = 'Object doesn\'t match FilterRepresentation (at "' + path_filters_item + '")\n';
|
|
1355
1355
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1409,7 +1409,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
|
|
|
1409
1409
|
const path_metric = path + '.metric';
|
|
1410
1410
|
let obj_metric_union0 = null;
|
|
1411
1411
|
const obj_metric_union0_error = (() => {
|
|
1412
|
-
const referencepath_metricValidationError = validate$
|
|
1412
|
+
const referencepath_metricValidationError = validate$h(obj_metric, path_metric);
|
|
1413
1413
|
if (referencepath_metricValidationError !== null) {
|
|
1414
1414
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
|
|
1415
1415
|
message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1478,7 +1478,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
|
|
|
1478
1478
|
for (let i = 0; i < obj_path_item.length; i++) {
|
|
1479
1479
|
const obj_path_item_item = obj_path_item[i];
|
|
1480
1480
|
const path_path_item_item = path_path_item + '[' + i + ']';
|
|
1481
|
-
const referencepath_path_item_itemValidationError = validate$
|
|
1481
|
+
const referencepath_path_item_itemValidationError = validate$h(obj_path_item_item, path_path_item_item);
|
|
1482
1482
|
if (referencepath_path_item_itemValidationError !== null) {
|
|
1483
1483
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_path_item_item + '")\n';
|
|
1484
1484
|
message += referencepath_path_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1576,7 +1576,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
|
|
|
1576
1576
|
const path_subject = path + '.subject';
|
|
1577
1577
|
let obj_subject_union0 = null;
|
|
1578
1578
|
const obj_subject_union0_error = (() => {
|
|
1579
|
-
const referencepath_subjectValidationError = validate$
|
|
1579
|
+
const referencepath_subjectValidationError = validate$h(obj_subject, path_subject);
|
|
1580
1580
|
if (referencepath_subjectValidationError !== null) {
|
|
1581
1581
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_subject + '")\n';
|
|
1582
1582
|
message += referencepath_subjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1687,7 +1687,7 @@ const select$n = function FilterRepresentationSelect() {
|
|
|
1687
1687
|
opaque: true
|
|
1688
1688
|
};
|
|
1689
1689
|
};
|
|
1690
|
-
function equals$
|
|
1690
|
+
function equals$c(existing, incoming) {
|
|
1691
1691
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1692
1692
|
return false;
|
|
1693
1693
|
}
|
|
@@ -1695,14 +1695,14 @@ function equals$d(existing, incoming) {
|
|
|
1695
1695
|
}
|
|
1696
1696
|
const ingest$8 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1697
1697
|
if (process.env.NODE_ENV !== 'production') {
|
|
1698
|
-
const validateError = validate$
|
|
1698
|
+
const validateError = validate$g(input);
|
|
1699
1699
|
if (validateError !== null) {
|
|
1700
1700
|
throw validateError;
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
1703
1703
|
const key = path.fullPath;
|
|
1704
1704
|
const ttlToUse = path.ttl;
|
|
1705
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "personalization-service", VERSION$c, RepresentationType$8, equals$
|
|
1705
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "personalization-service", VERSION$c, RepresentationType$8, equals$c);
|
|
1706
1706
|
return createLink(key);
|
|
1707
1707
|
};
|
|
1708
1708
|
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1716,7 +1716,7 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1716
1716
|
}
|
|
1717
1717
|
|
|
1718
1718
|
const VERSION$b = "ea475f10b4c028f8b97a44af1cf0be14";
|
|
1719
|
-
function validate$
|
|
1719
|
+
function validate$f(obj, path = 'CriteriaRepresentation') {
|
|
1720
1720
|
const v_error = (() => {
|
|
1721
1721
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1722
1722
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1789,7 +1789,7 @@ const select$m = function CriteriaRepresentationSelect() {
|
|
|
1789
1789
|
]
|
|
1790
1790
|
};
|
|
1791
1791
|
};
|
|
1792
|
-
function equals$
|
|
1792
|
+
function equals$b(existing, incoming) {
|
|
1793
1793
|
const existing_operator = existing.operator;
|
|
1794
1794
|
const incoming_operator = incoming.operator;
|
|
1795
1795
|
if (!(existing_operator === incoming_operator)) {
|
|
@@ -1814,14 +1814,14 @@ function equals$c(existing, incoming) {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
const ingest$7 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1816
1816
|
if (process.env.NODE_ENV !== 'production') {
|
|
1817
|
-
const validateError = validate$
|
|
1817
|
+
const validateError = validate$f(input);
|
|
1818
1818
|
if (validateError !== null) {
|
|
1819
1819
|
throw validateError;
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
1822
|
const key = path.fullPath;
|
|
1823
1823
|
const ttlToUse = path.ttl;
|
|
1824
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$b, RepresentationType$7, equals$
|
|
1824
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$b, RepresentationType$7, equals$b);
|
|
1825
1825
|
return createLink(key);
|
|
1826
1826
|
};
|
|
1827
1827
|
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1839,7 +1839,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
|
|
1841
1841
|
const VERSION$a = "265767af783b296f5f902d6ed447b168";
|
|
1842
|
-
function validate$
|
|
1842
|
+
function validate$e(obj, path = 'PersonalizationDecisionRepresentation') {
|
|
1843
1843
|
const v_error = (() => {
|
|
1844
1844
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1845
1845
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1852,7 +1852,7 @@ function validate$f(obj, path = 'PersonalizationDecisionRepresentation') {
|
|
|
1852
1852
|
for (let i = 0; i < obj_attributeValues.length; i++) {
|
|
1853
1853
|
const obj_attributeValues_item = obj_attributeValues[i];
|
|
1854
1854
|
const path_attributeValues_item = path_attributeValues + '[' + i + ']';
|
|
1855
|
-
const referencepath_attributeValues_itemValidationError = validate$
|
|
1855
|
+
const referencepath_attributeValues_itemValidationError = validate$j(obj_attributeValues_item, path_attributeValues_item);
|
|
1856
1856
|
if (referencepath_attributeValues_itemValidationError !== null) {
|
|
1857
1857
|
let message = 'Object doesn\'t match PersonalizationAttributeValueRepresentation (at "' + path_attributeValues_item + '")\n';
|
|
1858
1858
|
message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2258,11 +2258,11 @@ const select$l = function PersonalizationDecisionRepresentationSelect() {
|
|
|
2258
2258
|
]
|
|
2259
2259
|
};
|
|
2260
2260
|
};
|
|
2261
|
-
function equals$
|
|
2261
|
+
function equals$a(existing, incoming) {
|
|
2262
2262
|
const existing_attributeValues = existing.attributeValues;
|
|
2263
2263
|
const incoming_attributeValues = incoming.attributeValues;
|
|
2264
2264
|
const equals_attributeValues_items = equalsArray(existing_attributeValues, incoming_attributeValues, (existing_attributeValues_item, incoming_attributeValues_item) => {
|
|
2265
|
-
if (!(equals$
|
|
2265
|
+
if (!(equals$d(existing_attributeValues_item, incoming_attributeValues_item))) {
|
|
2266
2266
|
return false;
|
|
2267
2267
|
}
|
|
2268
2268
|
});
|
|
@@ -2338,14 +2338,14 @@ function equals$b(existing, incoming) {
|
|
|
2338
2338
|
}
|
|
2339
2339
|
const ingest$6 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2340
2340
|
if (process.env.NODE_ENV !== 'production') {
|
|
2341
|
-
const validateError = validate$
|
|
2341
|
+
const validateError = validate$e(input);
|
|
2342
2342
|
if (validateError !== null) {
|
|
2343
2343
|
throw validateError;
|
|
2344
2344
|
}
|
|
2345
2345
|
}
|
|
2346
2346
|
const key = path.fullPath;
|
|
2347
2347
|
const ttlToUse = path.ttl;
|
|
2348
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$a, RepresentationType$6, equals$
|
|
2348
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$a, RepresentationType$6, equals$a);
|
|
2349
2349
|
return createLink(key);
|
|
2350
2350
|
};
|
|
2351
2351
|
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2361,9 +2361,9 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
2363
2363
|
|
|
2364
|
-
const TTL$
|
|
2364
|
+
const TTL$5 = 600;
|
|
2365
2365
|
const VERSION$9 = "e5643ca13ef54c890c9177275a053de3";
|
|
2366
|
-
function validate$
|
|
2366
|
+
function validate$d(obj, path = 'PersonalizationPointRepresentation') {
|
|
2367
2367
|
const v_error = (() => {
|
|
2368
2368
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2369
2369
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2964,7 +2964,7 @@ const select$k = function PersonalizationPointRepresentationSelect() {
|
|
|
2964
2964
|
]
|
|
2965
2965
|
};
|
|
2966
2966
|
};
|
|
2967
|
-
function equals$
|
|
2967
|
+
function equals$9(existing, incoming) {
|
|
2968
2968
|
const existing_isAuthenticationRequired = existing.isAuthenticationRequired;
|
|
2969
2969
|
const incoming_isAuthenticationRequired = incoming.isAuthenticationRequired;
|
|
2970
2970
|
if (!(existing_isAuthenticationRequired === incoming_isAuthenticationRequired)) {
|
|
@@ -3079,14 +3079,14 @@ function equals$a(existing, incoming) {
|
|
|
3079
3079
|
}
|
|
3080
3080
|
const ingest$5 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3081
3081
|
if (process.env.NODE_ENV !== 'production') {
|
|
3082
|
-
const validateError = validate$
|
|
3082
|
+
const validateError = validate$d(input);
|
|
3083
3083
|
if (validateError !== null) {
|
|
3084
3084
|
throw validateError;
|
|
3085
3085
|
}
|
|
3086
3086
|
}
|
|
3087
3087
|
const key = keyBuilderFromType$1(luvio, input);
|
|
3088
|
-
const ttlToUse = TTL$
|
|
3089
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$9, RepresentationType$5, equals$
|
|
3088
|
+
const ttlToUse = TTL$5;
|
|
3089
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$9, RepresentationType$5, equals$9);
|
|
3090
3090
|
return createLink(key);
|
|
3091
3091
|
};
|
|
3092
3092
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -3202,7 +3202,7 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
3202
3202
|
const untrustedConfig_decisions_array = [];
|
|
3203
3203
|
for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
|
|
3204
3204
|
const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
|
|
3205
|
-
const referencePersonalizationDecisionInputRepresentationValidationError = validate$
|
|
3205
|
+
const referencePersonalizationDecisionInputRepresentationValidationError = validate$k(untrustedConfig_decisions_item);
|
|
3206
3206
|
if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
|
|
3207
3207
|
untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
|
|
3208
3208
|
}
|
|
@@ -3295,7 +3295,7 @@ const createPersonalizationPointAdapterFactory = (luvio) => {
|
|
|
3295
3295
|
};
|
|
3296
3296
|
};
|
|
3297
3297
|
|
|
3298
|
-
function validate$
|
|
3298
|
+
function validate$c(obj, path = 'PersonalizationAttributeInputRepresentation') {
|
|
3299
3299
|
const v_error = (() => {
|
|
3300
3300
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3301
3301
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3343,7 +3343,7 @@ function validate$d(obj, path = 'PersonalizationAttributeInputRepresentation') {
|
|
|
3343
3343
|
}
|
|
3344
3344
|
|
|
3345
3345
|
const VERSION$8 = "014064b188ff923423af6301d64be36a";
|
|
3346
|
-
function validate$
|
|
3346
|
+
function validate$b(obj, path = 'PersonalizationAttributeRepresentation') {
|
|
3347
3347
|
const v_error = (() => {
|
|
3348
3348
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3349
3349
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3483,7 +3483,7 @@ const select$i = function PersonalizationAttributeRepresentationSelect() {
|
|
|
3483
3483
|
]
|
|
3484
3484
|
};
|
|
3485
3485
|
};
|
|
3486
|
-
function equals$
|
|
3486
|
+
function equals$8(existing, incoming) {
|
|
3487
3487
|
const existing_createdById = existing.createdById;
|
|
3488
3488
|
const incoming_createdById = incoming.createdById;
|
|
3489
3489
|
if (!(existing_createdById === incoming_createdById)) {
|
|
@@ -3532,9 +3532,9 @@ function equals$9(existing, incoming) {
|
|
|
3532
3532
|
return true;
|
|
3533
3533
|
}
|
|
3534
3534
|
|
|
3535
|
-
const TTL$
|
|
3535
|
+
const TTL$4 = 600;
|
|
3536
3536
|
const VERSION$7 = "25740f87643de6fdae570c77bbec7377";
|
|
3537
|
-
function validate$
|
|
3537
|
+
function validate$a(obj, path = 'PersonalizationSchemaRepresentation') {
|
|
3538
3538
|
const v_error = (() => {
|
|
3539
3539
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3540
3540
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3547,7 +3547,7 @@ function validate$b(obj, path = 'PersonalizationSchemaRepresentation') {
|
|
|
3547
3547
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
3548
3548
|
const obj_attributes_item = obj_attributes[i];
|
|
3549
3549
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
3550
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
3550
|
+
const referencepath_attributes_itemValidationError = validate$b(obj_attributes_item, path_attributes_item);
|
|
3551
3551
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
3552
3552
|
let message = 'Object doesn\'t match PersonalizationAttributeRepresentation (at "' + path_attributes_item + '")\n';
|
|
3553
3553
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3774,7 +3774,7 @@ const select$h = function PersonalizationSchemaRepresentationSelect() {
|
|
|
3774
3774
|
]
|
|
3775
3775
|
};
|
|
3776
3776
|
};
|
|
3777
|
-
function equals$
|
|
3777
|
+
function equals$7(existing, incoming) {
|
|
3778
3778
|
const existing_createdById = existing.createdById;
|
|
3779
3779
|
const incoming_createdById = incoming.createdById;
|
|
3780
3780
|
if (!(existing_createdById === incoming_createdById)) {
|
|
@@ -3828,7 +3828,7 @@ function equals$8(existing, incoming) {
|
|
|
3828
3828
|
const existing_attributes = existing.attributes;
|
|
3829
3829
|
const incoming_attributes = incoming.attributes;
|
|
3830
3830
|
const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
|
|
3831
|
-
if (!(equals$
|
|
3831
|
+
if (!(equals$8(existing_attributes_item, incoming_attributes_item))) {
|
|
3832
3832
|
return false;
|
|
3833
3833
|
}
|
|
3834
3834
|
});
|
|
@@ -3859,14 +3859,14 @@ function equals$8(existing, incoming) {
|
|
|
3859
3859
|
}
|
|
3860
3860
|
const ingest$4 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3861
3861
|
if (process.env.NODE_ENV !== 'production') {
|
|
3862
|
-
const validateError = validate$
|
|
3862
|
+
const validateError = validate$a(input);
|
|
3863
3863
|
if (validateError !== null) {
|
|
3864
3864
|
throw validateError;
|
|
3865
3865
|
}
|
|
3866
3866
|
}
|
|
3867
3867
|
const key = keyBuilderFromType(luvio, input);
|
|
3868
|
-
const ttlToUse = TTL$
|
|
3869
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$7, RepresentationType$4, equals$
|
|
3868
|
+
const ttlToUse = TTL$4;
|
|
3869
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$7, RepresentationType$4, equals$7);
|
|
3870
3870
|
return createLink(key);
|
|
3871
3871
|
};
|
|
3872
3872
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -3958,7 +3958,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
3958
3958
|
const untrustedConfig_attributes_array = [];
|
|
3959
3959
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
3960
3960
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
3961
|
-
const referencePersonalizationAttributeInputRepresentationValidationError = validate$
|
|
3961
|
+
const referencePersonalizationAttributeInputRepresentationValidationError = validate$c(untrustedConfig_attributes_item);
|
|
3962
3962
|
if (referencePersonalizationAttributeInputRepresentationValidationError === null) {
|
|
3963
3963
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
3964
3964
|
}
|
|
@@ -4290,7 +4290,7 @@ const deletePersonalizationSchemaAdapterFactory = (luvio) => {
|
|
|
4290
4290
|
};
|
|
4291
4291
|
|
|
4292
4292
|
const VERSION$6 = "e68c48ce57702a3f1e8ca445bbbcbbcf";
|
|
4293
|
-
function validate$
|
|
4293
|
+
function validate$9(obj, path = 'PersonalizationDataMlModelInputFeatureRepresentation') {
|
|
4294
4294
|
const v_error = (() => {
|
|
4295
4295
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4296
4296
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4336,7 +4336,7 @@ const select$f = function PersonalizationDataMlModelInputFeatureRepresentationSe
|
|
|
4336
4336
|
]
|
|
4337
4337
|
};
|
|
4338
4338
|
};
|
|
4339
|
-
function equals$
|
|
4339
|
+
function equals$6(existing, incoming) {
|
|
4340
4340
|
const existing_type = existing.type;
|
|
4341
4341
|
const incoming_type = incoming.type;
|
|
4342
4342
|
if (!(existing_type === incoming_type)) {
|
|
@@ -4356,7 +4356,7 @@ function equals$7(existing, incoming) {
|
|
|
4356
4356
|
}
|
|
4357
4357
|
|
|
4358
4358
|
const VERSION$5 = "d1b90f3586125de94a321fae68717c07";
|
|
4359
|
-
function validate$
|
|
4359
|
+
function validate$8(obj, path = 'PersonalizationDataMlModelRepresentation') {
|
|
4360
4360
|
const v_error = (() => {
|
|
4361
4361
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4362
4362
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4369,7 +4369,7 @@ function validate$9(obj, path = 'PersonalizationDataMlModelRepresentation') {
|
|
|
4369
4369
|
for (let i = 0; i < obj_dataMlModelInputs.length; i++) {
|
|
4370
4370
|
const obj_dataMlModelInputs_item = obj_dataMlModelInputs[i];
|
|
4371
4371
|
const path_dataMlModelInputs_item = path_dataMlModelInputs + '[' + i + ']';
|
|
4372
|
-
const referencepath_dataMlModelInputs_itemValidationError = validate$
|
|
4372
|
+
const referencepath_dataMlModelInputs_itemValidationError = validate$9(obj_dataMlModelInputs_item, path_dataMlModelInputs_item);
|
|
4373
4373
|
if (referencepath_dataMlModelInputs_itemValidationError !== null) {
|
|
4374
4374
|
let message = 'Object doesn\'t match PersonalizationDataMlModelInputFeatureRepresentation (at "' + path_dataMlModelInputs_item + '")\n';
|
|
4375
4375
|
message += referencepath_dataMlModelInputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4460,7 +4460,7 @@ const select$e = function PersonalizationDataMlModelRepresentationSelect() {
|
|
|
4460
4460
|
]
|
|
4461
4461
|
};
|
|
4462
4462
|
};
|
|
4463
|
-
function equals$
|
|
4463
|
+
function equals$5(existing, incoming) {
|
|
4464
4464
|
const existing_dataSpaceName = existing.dataSpaceName;
|
|
4465
4465
|
const incoming_dataSpaceName = incoming.dataSpaceName;
|
|
4466
4466
|
if (!(existing_dataSpaceName === incoming_dataSpaceName)) {
|
|
@@ -4489,7 +4489,7 @@ function equals$6(existing, incoming) {
|
|
|
4489
4489
|
const existing_dataMlModelInputs = existing.dataMlModelInputs;
|
|
4490
4490
|
const incoming_dataMlModelInputs = incoming.dataMlModelInputs;
|
|
4491
4491
|
const equals_dataMlModelInputs_items = equalsArray(existing_dataMlModelInputs, incoming_dataMlModelInputs, (existing_dataMlModelInputs_item, incoming_dataMlModelInputs_item) => {
|
|
4492
|
-
if (!(equals$
|
|
4492
|
+
if (!(equals$6(existing_dataMlModelInputs_item, incoming_dataMlModelInputs_item))) {
|
|
4493
4493
|
return false;
|
|
4494
4494
|
}
|
|
4495
4495
|
});
|
|
@@ -4509,9 +4509,9 @@ function equals$6(existing, incoming) {
|
|
|
4509
4509
|
return true;
|
|
4510
4510
|
}
|
|
4511
4511
|
|
|
4512
|
-
const TTL$
|
|
4512
|
+
const TTL$3 = 600;
|
|
4513
4513
|
const VERSION$4 = "9dbc0875b97dc0f9ec2f23b3481be0b8";
|
|
4514
|
-
function validate$
|
|
4514
|
+
function validate$7(obj, path = 'PersonalizationDataMlModelCollectionRepresentation') {
|
|
4515
4515
|
const v_error = (() => {
|
|
4516
4516
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4517
4517
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4524,7 +4524,7 @@ function validate$8(obj, path = 'PersonalizationDataMlModelCollectionRepresentat
|
|
|
4524
4524
|
for (let i = 0; i < obj_personalizationDataMlModels.length; i++) {
|
|
4525
4525
|
const obj_personalizationDataMlModels_item = obj_personalizationDataMlModels[i];
|
|
4526
4526
|
const path_personalizationDataMlModels_item = path_personalizationDataMlModels + '[' + i + ']';
|
|
4527
|
-
const referencepath_personalizationDataMlModels_itemValidationError = validate$
|
|
4527
|
+
const referencepath_personalizationDataMlModels_itemValidationError = validate$8(obj_personalizationDataMlModels_item, path_personalizationDataMlModels_item);
|
|
4528
4528
|
if (referencepath_personalizationDataMlModels_itemValidationError !== null) {
|
|
4529
4529
|
let message = 'Object doesn\'t match PersonalizationDataMlModelRepresentation (at "' + path_personalizationDataMlModels_item + '")\n';
|
|
4530
4530
|
message += referencepath_personalizationDataMlModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4554,11 +4554,11 @@ const select$d = function PersonalizationDataMlModelCollectionRepresentationSele
|
|
|
4554
4554
|
]
|
|
4555
4555
|
};
|
|
4556
4556
|
};
|
|
4557
|
-
function equals$
|
|
4557
|
+
function equals$4(existing, incoming) {
|
|
4558
4558
|
const existing_personalizationDataMlModels = existing.personalizationDataMlModels;
|
|
4559
4559
|
const incoming_personalizationDataMlModels = incoming.personalizationDataMlModels;
|
|
4560
4560
|
const equals_personalizationDataMlModels_items = equalsArray(existing_personalizationDataMlModels, incoming_personalizationDataMlModels, (existing_personalizationDataMlModels_item, incoming_personalizationDataMlModels_item) => {
|
|
4561
|
-
if (!(equals$
|
|
4561
|
+
if (!(equals$5(existing_personalizationDataMlModels_item, incoming_personalizationDataMlModels_item))) {
|
|
4562
4562
|
return false;
|
|
4563
4563
|
}
|
|
4564
4564
|
});
|
|
@@ -4569,14 +4569,14 @@ function equals$5(existing, incoming) {
|
|
|
4569
4569
|
}
|
|
4570
4570
|
const ingest$3 = function PersonalizationDataMlModelCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4571
4571
|
if (process.env.NODE_ENV !== 'production') {
|
|
4572
|
-
const validateError = validate$
|
|
4572
|
+
const validateError = validate$7(input);
|
|
4573
4573
|
if (validateError !== null) {
|
|
4574
4574
|
throw validateError;
|
|
4575
4575
|
}
|
|
4576
4576
|
}
|
|
4577
4577
|
const key = path.fullPath;
|
|
4578
|
-
const ttlToUse = TTL$
|
|
4579
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$4, RepresentationType$3, equals$
|
|
4578
|
+
const ttlToUse = TTL$3;
|
|
4579
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$4, RepresentationType$3, equals$4);
|
|
4580
4580
|
return createLink(key);
|
|
4581
4581
|
};
|
|
4582
4582
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -4619,7 +4619,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
4619
4619
|
const key = keyBuilder$d(luvio, params);
|
|
4620
4620
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4621
4621
|
const storeMetadataParams = {
|
|
4622
|
-
ttl: TTL$
|
|
4622
|
+
ttl: TTL$3,
|
|
4623
4623
|
namespace: keyPrefix,
|
|
4624
4624
|
version: VERSION$4,
|
|
4625
4625
|
representationName: RepresentationType$3
|
|
@@ -4770,7 +4770,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
4770
4770
|
const key = keyBuilder$b(luvio, params);
|
|
4771
4771
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4772
4772
|
const storeMetadataParams = {
|
|
4773
|
-
ttl: TTL$
|
|
4773
|
+
ttl: TTL$6,
|
|
4774
4774
|
namespace: keyPrefix,
|
|
4775
4775
|
version: VERSION$e,
|
|
4776
4776
|
representationName: RepresentationType$9
|
|
@@ -4907,7 +4907,7 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
4907
4907
|
return luvio.handleErrorResponse(() => {
|
|
4908
4908
|
const errorSnapshot = luvio.errorSnapshot(error);
|
|
4909
4909
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
4910
|
-
ttl: TTL$
|
|
4910
|
+
ttl: TTL$6,
|
|
4911
4911
|
namespace: keyPrefix,
|
|
4912
4912
|
version: VERSION$e,
|
|
4913
4913
|
representationName: RepresentationType$9
|
|
@@ -4920,8 +4920,9 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
4920
4920
|
};
|
|
4921
4921
|
};
|
|
4922
4922
|
|
|
4923
|
-
const TTL$
|
|
4924
|
-
|
|
4923
|
+
const TTL$2 = 600;
|
|
4924
|
+
const VERSION$3 = "6528ad865555561e680369408fb4f4c2";
|
|
4925
|
+
function validate$6(obj, path = 'PersonalizationExperienceConfigCollectionRepresentation') {
|
|
4925
4926
|
const v_error = (() => {
|
|
4926
4927
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4927
4928
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4931,48 +4932,33 @@ function validate$7(obj, path = 'PersonalizationPaginatedResponseBaseRepresentat
|
|
|
4931
4932
|
if (typeof obj_currentPageUrl !== 'string') {
|
|
4932
4933
|
return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
|
|
4933
4934
|
}
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
return false;
|
|
4962
|
-
}
|
|
4963
|
-
return true;
|
|
4964
|
-
}
|
|
4965
|
-
|
|
4966
|
-
const TTL$2 = 600;
|
|
4967
|
-
const VERSION$3 = "5a309503b3f17d6589909be7f5f9d4a8";
|
|
4968
|
-
function validate$6(obj, path = 'PersonalizationExperienceConfigCollectionRepresentation') {
|
|
4969
|
-
const validatePersonalizationPaginatedResponseBaseRepresentation_validateError = validate$7(obj, path);
|
|
4970
|
-
if (validatePersonalizationPaginatedResponseBaseRepresentation_validateError !== null) {
|
|
4971
|
-
return validatePersonalizationPaginatedResponseBaseRepresentation_validateError;
|
|
4972
|
-
}
|
|
4973
|
-
const v_error = (() => {
|
|
4974
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4975
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4935
|
+
if (obj.nextPageUrl !== undefined) {
|
|
4936
|
+
const obj_nextPageUrl = obj.nextPageUrl;
|
|
4937
|
+
const path_nextPageUrl = path + '.nextPageUrl';
|
|
4938
|
+
let obj_nextPageUrl_union0 = null;
|
|
4939
|
+
const obj_nextPageUrl_union0_error = (() => {
|
|
4940
|
+
if (typeof obj_nextPageUrl !== 'string') {
|
|
4941
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
4942
|
+
}
|
|
4943
|
+
})();
|
|
4944
|
+
if (obj_nextPageUrl_union0_error != null) {
|
|
4945
|
+
obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
|
|
4946
|
+
}
|
|
4947
|
+
let obj_nextPageUrl_union1 = null;
|
|
4948
|
+
const obj_nextPageUrl_union1_error = (() => {
|
|
4949
|
+
if (obj_nextPageUrl !== null) {
|
|
4950
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
4951
|
+
}
|
|
4952
|
+
})();
|
|
4953
|
+
if (obj_nextPageUrl_union1_error != null) {
|
|
4954
|
+
obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
|
|
4955
|
+
}
|
|
4956
|
+
if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
|
|
4957
|
+
let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
|
|
4958
|
+
message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4959
|
+
message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4960
|
+
return new TypeError(message);
|
|
4961
|
+
}
|
|
4976
4962
|
}
|
|
4977
4963
|
const obj_personalizationExperienceConfigs = obj.personalizationExperienceConfigs;
|
|
4978
4964
|
const path_personalizationExperienceConfigs = path + '.personalizationExperienceConfigs';
|
|
@@ -4982,13 +4968,18 @@ function validate$6(obj, path = 'PersonalizationExperienceConfigCollectionRepres
|
|
|
4982
4968
|
for (let i = 0; i < obj_personalizationExperienceConfigs.length; i++) {
|
|
4983
4969
|
const obj_personalizationExperienceConfigs_item = obj_personalizationExperienceConfigs[i];
|
|
4984
4970
|
const path_personalizationExperienceConfigs_item = path_personalizationExperienceConfigs + '[' + i + ']';
|
|
4985
|
-
const referencepath_personalizationExperienceConfigs_itemValidationError = validate$
|
|
4971
|
+
const referencepath_personalizationExperienceConfigs_itemValidationError = validate$m(obj_personalizationExperienceConfigs_item, path_personalizationExperienceConfigs_item);
|
|
4986
4972
|
if (referencepath_personalizationExperienceConfigs_itemValidationError !== null) {
|
|
4987
4973
|
let message = 'Object doesn\'t match PersonalizationExperienceConfigRepresentation (at "' + path_personalizationExperienceConfigs_item + '")\n';
|
|
4988
4974
|
message += referencepath_personalizationExperienceConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4989
4975
|
return new TypeError(message);
|
|
4990
4976
|
}
|
|
4991
4977
|
}
|
|
4978
|
+
const obj_totalSize = obj.totalSize;
|
|
4979
|
+
const path_totalSize = path + '.totalSize';
|
|
4980
|
+
if (typeof obj_totalSize !== 'number' || (typeof obj_totalSize === 'number' && Math.floor(obj_totalSize) !== obj_totalSize)) {
|
|
4981
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalSize + '" (at "' + path_totalSize + '")');
|
|
4982
|
+
}
|
|
4992
4983
|
})();
|
|
4993
4984
|
return v_error === undefined ? null : v_error;
|
|
4994
4985
|
}
|
|
@@ -5005,17 +4996,7 @@ const select$a = function PersonalizationExperienceConfigCollectionRepresentatio
|
|
|
5005
4996
|
};
|
|
5006
4997
|
};
|
|
5007
4998
|
function equals$3(existing, incoming) {
|
|
5008
|
-
if (
|
|
5009
|
-
return false;
|
|
5010
|
-
}
|
|
5011
|
-
const existing_personalizationExperienceConfigs = existing.personalizationExperienceConfigs;
|
|
5012
|
-
const incoming_personalizationExperienceConfigs = incoming.personalizationExperienceConfigs;
|
|
5013
|
-
const equals_personalizationExperienceConfigs_items = equalsArray(existing_personalizationExperienceConfigs, incoming_personalizationExperienceConfigs, (existing_personalizationExperienceConfigs_item, incoming_personalizationExperienceConfigs_item) => {
|
|
5014
|
-
if (!(equals$f(existing_personalizationExperienceConfigs_item, incoming_personalizationExperienceConfigs_item))) {
|
|
5015
|
-
return false;
|
|
5016
|
-
}
|
|
5017
|
-
});
|
|
5018
|
-
if (equals_personalizationExperienceConfigs_items === false) {
|
|
4999
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5019
5000
|
return false;
|
|
5020
5001
|
}
|
|
5021
5002
|
return true;
|
|
@@ -5028,7 +5009,7 @@ const ingest$2 = function PersonalizationExperienceConfigCollectionRepresentatio
|
|
|
5028
5009
|
}
|
|
5029
5010
|
}
|
|
5030
5011
|
const key = path.fullPath;
|
|
5031
|
-
const ttlToUse = TTL$
|
|
5012
|
+
const ttlToUse = TTL$2;
|
|
5032
5013
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$3, RepresentationType$2, equals$3);
|
|
5033
5014
|
return createLink(key);
|
|
5034
5015
|
};
|
|
@@ -5046,7 +5027,7 @@ function select$9(luvio, params) {
|
|
|
5046
5027
|
return select$a();
|
|
5047
5028
|
}
|
|
5048
5029
|
function keyBuilder$9(luvio, params) {
|
|
5049
|
-
return keyPrefix + '::PersonalizationExperienceConfigCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'idOrAppSourceIdOrName:' + params.urlParams.idOrAppSourceIdOrName + ')';
|
|
5030
|
+
return keyPrefix + '::PersonalizationExperienceConfigCollectionRepresentation:(' + 'dataSpaceIdOrName:' + params.queryParams.dataSpaceIdOrName + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'personalizationPointNameOrId:' + params.queryParams.personalizationPointNameOrId + ',' + 'transformerNameOrId:' + params.queryParams.transformerNameOrId + ',' + 'idOrAppSourceIdOrName:' + params.urlParams.idOrAppSourceIdOrName + ')';
|
|
5050
5031
|
}
|
|
5051
5032
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
5052
5033
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
@@ -5097,8 +5078,11 @@ function createResourceRequest$7(config) {
|
|
|
5097
5078
|
const adapterName$6 = 'getPersonalizationExperiencesConfigs';
|
|
5098
5079
|
const getPersonalizationExperiencesConfigs_ConfigPropertyMetadata = [
|
|
5099
5080
|
generateParamConfigMetadata('idOrAppSourceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5081
|
+
generateParamConfigMetadata('dataSpaceIdOrName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5100
5082
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5101
5083
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5084
|
+
generateParamConfigMetadata('personalizationPointNameOrId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5085
|
+
generateParamConfigMetadata('transformerNameOrId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5102
5086
|
];
|
|
5103
5087
|
const getPersonalizationExperiencesConfigs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getPersonalizationExperiencesConfigs_ConfigPropertyMetadata);
|
|
5104
5088
|
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$f(getPersonalizationExperiencesConfigs_ConfigPropertyMetadata);
|
|
@@ -5214,7 +5198,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
5214
5198
|
const key = keyBuilder$7(luvio, params);
|
|
5215
5199
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5216
5200
|
const storeMetadataParams = {
|
|
5217
|
-
ttl: TTL$
|
|
5201
|
+
ttl: TTL$5,
|
|
5218
5202
|
namespace: keyPrefix,
|
|
5219
5203
|
version: VERSION$9,
|
|
5220
5204
|
representationName: RepresentationType$5
|
|
@@ -5354,7 +5338,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
5354
5338
|
const key = keyBuilder$5(luvio, params);
|
|
5355
5339
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5356
5340
|
const storeMetadataParams = {
|
|
5357
|
-
ttl: TTL$
|
|
5341
|
+
ttl: TTL$4,
|
|
5358
5342
|
namespace: keyPrefix,
|
|
5359
5343
|
version: VERSION$7,
|
|
5360
5344
|
representationName: RepresentationType$4
|
|
@@ -5490,7 +5474,7 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
5490
5474
|
return luvio.handleErrorResponse(() => {
|
|
5491
5475
|
const errorSnapshot = luvio.errorSnapshot(error);
|
|
5492
5476
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
5493
|
-
ttl: TTL$
|
|
5477
|
+
ttl: TTL$4,
|
|
5494
5478
|
namespace: keyPrefix,
|
|
5495
5479
|
version: VERSION$7,
|
|
5496
5480
|
representationName: RepresentationType$4
|
|
@@ -6481,7 +6465,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
6481
6465
|
const untrustedConfig_decisions_array = [];
|
|
6482
6466
|
for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
|
|
6483
6467
|
const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
|
|
6484
|
-
const referencePersonalizationDecisionInputRepresentationValidationError = validate$
|
|
6468
|
+
const referencePersonalizationDecisionInputRepresentationValidationError = validate$k(untrustedConfig_decisions_item);
|
|
6485
6469
|
if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
|
|
6486
6470
|
untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
|
|
6487
6471
|
}
|
|
@@ -6707,4 +6691,4 @@ withDefaultLuvio((luvio) => {
|
|
|
6707
6691
|
});
|
|
6708
6692
|
|
|
6709
6693
|
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 };
|
|
6710
|
-
// version: 1.404.0-
|
|
6694
|
+
// version: 1.404.0-dev18-c65045077f
|