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