@salesforce/lds-adapters-cdp-personalization-service 1.355.0 → 1.357.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/cdp-personalization-service.js +81 -68
- package/dist/es/es2018/types/src/generated/adapters/postPersonalizationRecommenderSimulateAction.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/resources/postPersonalizationPersonalizationRecommendersActionsSimulateByIdOrName.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/types/BasePredicateInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/BaseRuleInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/PersonalizationRecommenderSimulateActionInputRepresentation.d.ts +6 -7
- package/dist/es/es2018/types/src/generated/types/RuleGroupInputRepresentation2.d.ts +31 -0
- package/package.json +3 -3
- package/sfdc/index.js +92 -80
- package/src/raml/api.raml +1 -1
|
@@ -148,7 +148,7 @@ function createLink(ref) {
|
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
function validate$
|
|
151
|
+
function validate$m(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
|
|
152
152
|
const v_error = (() => {
|
|
153
153
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
154
154
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -239,7 +239,7 @@ function validate$l(obj, path = 'PersonalizationAttributeValueInputRepresentatio
|
|
|
239
239
|
return v_error === undefined ? null : v_error;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
function validate$
|
|
242
|
+
function validate$l(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
243
243
|
const v_error = (() => {
|
|
244
244
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
245
245
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -253,7 +253,7 @@ function validate$k(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
|
253
253
|
for (let i = 0; i < obj_attributeValues.length; i++) {
|
|
254
254
|
const obj_attributeValues_item = obj_attributeValues[i];
|
|
255
255
|
const path_attributeValues_item = path_attributeValues + '[' + i + ']';
|
|
256
|
-
const referencepath_attributeValues_itemValidationError = validate$
|
|
256
|
+
const referencepath_attributeValues_itemValidationError = validate$m(obj_attributeValues_item, path_attributeValues_item);
|
|
257
257
|
if (referencepath_attributeValues_itemValidationError !== null) {
|
|
258
258
|
let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
|
|
259
259
|
message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -428,7 +428,7 @@ function validate$k(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
const VERSION$e = "52ea9c14b7a747a28cedbcff0e7ab169";
|
|
431
|
-
function validate$
|
|
431
|
+
function validate$k(obj, path = 'PersonalizationAttributeValueRepresentation') {
|
|
432
432
|
const v_error = (() => {
|
|
433
433
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
434
434
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -554,7 +554,7 @@ function equals$e(existing, incoming) {
|
|
|
554
554
|
return true;
|
|
555
555
|
}
|
|
556
556
|
|
|
557
|
-
function validate$
|
|
557
|
+
function validate$j(obj, path = 'FiltersWrapRepresentation') {
|
|
558
558
|
const v_error = (() => {
|
|
559
559
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
560
560
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -633,7 +633,7 @@ function validate$i(obj, path = 'FiltersWrapRepresentation') {
|
|
|
633
633
|
return v_error === undefined ? null : v_error;
|
|
634
634
|
}
|
|
635
635
|
|
|
636
|
-
function validate$
|
|
636
|
+
function validate$i(obj, path = 'SubjectRepresentation') {
|
|
637
637
|
const v_error = (() => {
|
|
638
638
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
639
639
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -753,7 +753,7 @@ function validate$h(obj, path = 'SubjectRepresentation') {
|
|
|
753
753
|
}
|
|
754
754
|
|
|
755
755
|
const VERSION$d = "089c2877ffa367e376fe74f8d358ffa8";
|
|
756
|
-
function validate$
|
|
756
|
+
function validate$h(obj, path = 'FilterRepresentation') {
|
|
757
757
|
const v_error = (() => {
|
|
758
758
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
759
759
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -791,7 +791,7 @@ function validate$g(obj, path = 'FilterRepresentation') {
|
|
|
791
791
|
const path_comparison = path + '.comparison';
|
|
792
792
|
let obj_comparison_union0 = null;
|
|
793
793
|
const obj_comparison_union0_error = (() => {
|
|
794
|
-
const referencepath_comparisonValidationError = validate$
|
|
794
|
+
const referencepath_comparisonValidationError = validate$h(obj_comparison, path_comparison);
|
|
795
795
|
if (referencepath_comparisonValidationError !== null) {
|
|
796
796
|
let message = 'Object doesn\'t match FilterRepresentation (at "' + path_comparison + '")\n';
|
|
797
797
|
message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -822,7 +822,7 @@ function validate$g(obj, path = 'FilterRepresentation') {
|
|
|
822
822
|
const path_filter = path + '.filter';
|
|
823
823
|
let obj_filter_union0 = null;
|
|
824
824
|
const obj_filter_union0_error = (() => {
|
|
825
|
-
const referencepath_filterValidationError = validate$
|
|
825
|
+
const referencepath_filterValidationError = validate$j(obj_filter, path_filter);
|
|
826
826
|
if (referencepath_filterValidationError !== null) {
|
|
827
827
|
let message = 'Object doesn\'t match FiltersWrapRepresentation (at "' + path_filter + '")\n';
|
|
828
828
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -859,7 +859,7 @@ function validate$g(obj, path = 'FilterRepresentation') {
|
|
|
859
859
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
860
860
|
let obj_filters_item_union0 = null;
|
|
861
861
|
const obj_filters_item_union0_error = (() => {
|
|
862
|
-
const referencepath_filters_itemValidationError = validate$
|
|
862
|
+
const referencepath_filters_itemValidationError = validate$h(obj_filters_item, path_filters_item);
|
|
863
863
|
if (referencepath_filters_itemValidationError !== null) {
|
|
864
864
|
let message = 'Object doesn\'t match FilterRepresentation (at "' + path_filters_item + '")\n';
|
|
865
865
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -919,7 +919,7 @@ function validate$g(obj, path = 'FilterRepresentation') {
|
|
|
919
919
|
const path_metric = path + '.metric';
|
|
920
920
|
let obj_metric_union0 = null;
|
|
921
921
|
const obj_metric_union0_error = (() => {
|
|
922
|
-
const referencepath_metricValidationError = validate$
|
|
922
|
+
const referencepath_metricValidationError = validate$i(obj_metric, path_metric);
|
|
923
923
|
if (referencepath_metricValidationError !== null) {
|
|
924
924
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
|
|
925
925
|
message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -988,7 +988,7 @@ function validate$g(obj, path = 'FilterRepresentation') {
|
|
|
988
988
|
for (let i = 0; i < obj_path_item.length; i++) {
|
|
989
989
|
const obj_path_item_item = obj_path_item[i];
|
|
990
990
|
const path_path_item_item = path_path_item + '[' + i + ']';
|
|
991
|
-
const referencepath_path_item_itemValidationError = validate$
|
|
991
|
+
const referencepath_path_item_itemValidationError = validate$i(obj_path_item_item, path_path_item_item);
|
|
992
992
|
if (referencepath_path_item_itemValidationError !== null) {
|
|
993
993
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_path_item_item + '")\n';
|
|
994
994
|
message += referencepath_path_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1086,7 +1086,7 @@ function validate$g(obj, path = 'FilterRepresentation') {
|
|
|
1086
1086
|
const path_subject = path + '.subject';
|
|
1087
1087
|
let obj_subject_union0 = null;
|
|
1088
1088
|
const obj_subject_union0_error = (() => {
|
|
1089
|
-
const referencepath_subjectValidationError = validate$
|
|
1089
|
+
const referencepath_subjectValidationError = validate$i(obj_subject, path_subject);
|
|
1090
1090
|
if (referencepath_subjectValidationError !== null) {
|
|
1091
1091
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_subject + '")\n';
|
|
1092
1092
|
message += referencepath_subjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1205,7 +1205,7 @@ function equals$d(existing, incoming) {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
const ingest$7 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1207
1207
|
if (process.env.NODE_ENV !== 'production') {
|
|
1208
|
-
const validateError = validate$
|
|
1208
|
+
const validateError = validate$h(input);
|
|
1209
1209
|
if (validateError !== null) {
|
|
1210
1210
|
throw validateError;
|
|
1211
1211
|
}
|
|
@@ -1226,7 +1226,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1226
1226
|
}
|
|
1227
1227
|
|
|
1228
1228
|
const VERSION$c = "ea475f10b4c028f8b97a44af1cf0be14";
|
|
1229
|
-
function validate$
|
|
1229
|
+
function validate$g(obj, path = 'CriteriaRepresentation') {
|
|
1230
1230
|
const v_error = (() => {
|
|
1231
1231
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1232
1232
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1324,7 +1324,7 @@ function equals$c(existing, incoming) {
|
|
|
1324
1324
|
}
|
|
1325
1325
|
const ingest$6 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1326
1326
|
if (process.env.NODE_ENV !== 'production') {
|
|
1327
|
-
const validateError = validate$
|
|
1327
|
+
const validateError = validate$g(input);
|
|
1328
1328
|
if (validateError !== null) {
|
|
1329
1329
|
throw validateError;
|
|
1330
1330
|
}
|
|
@@ -1349,7 +1349,7 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
|
|
1351
1351
|
const VERSION$b = "265767af783b296f5f902d6ed447b168";
|
|
1352
|
-
function validate$
|
|
1352
|
+
function validate$f(obj, path = 'PersonalizationDecisionRepresentation') {
|
|
1353
1353
|
const v_error = (() => {
|
|
1354
1354
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1355
1355
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1362,7 +1362,7 @@ function validate$e(obj, path = 'PersonalizationDecisionRepresentation') {
|
|
|
1362
1362
|
for (let i = 0; i < obj_attributeValues.length; i++) {
|
|
1363
1363
|
const obj_attributeValues_item = obj_attributeValues[i];
|
|
1364
1364
|
const path_attributeValues_item = path_attributeValues + '[' + i + ']';
|
|
1365
|
-
const referencepath_attributeValues_itemValidationError = validate$
|
|
1365
|
+
const referencepath_attributeValues_itemValidationError = validate$k(obj_attributeValues_item, path_attributeValues_item);
|
|
1366
1366
|
if (referencepath_attributeValues_itemValidationError !== null) {
|
|
1367
1367
|
let message = 'Object doesn\'t match PersonalizationAttributeValueRepresentation (at "' + path_attributeValues_item + '")\n';
|
|
1368
1368
|
message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1848,7 +1848,7 @@ function equals$b(existing, incoming) {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
const ingest$5 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1850
1850
|
if (process.env.NODE_ENV !== 'production') {
|
|
1851
|
-
const validateError = validate$
|
|
1851
|
+
const validateError = validate$f(input);
|
|
1852
1852
|
if (validateError !== null) {
|
|
1853
1853
|
throw validateError;
|
|
1854
1854
|
}
|
|
@@ -1873,7 +1873,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1873
1873
|
|
|
1874
1874
|
const TTL$4 = 600;
|
|
1875
1875
|
const VERSION$a = "e5643ca13ef54c890c9177275a053de3";
|
|
1876
|
-
function validate$
|
|
1876
|
+
function validate$e(obj, path = 'PersonalizationPointRepresentation') {
|
|
1877
1877
|
const v_error = (() => {
|
|
1878
1878
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1879
1879
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2589,7 +2589,7 @@ function equals$a(existing, incoming) {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
const ingest$4 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2591
2591
|
if (process.env.NODE_ENV !== 'production') {
|
|
2592
|
-
const validateError = validate$
|
|
2592
|
+
const validateError = validate$e(input);
|
|
2593
2593
|
if (validateError !== null) {
|
|
2594
2594
|
throw validateError;
|
|
2595
2595
|
}
|
|
@@ -2639,7 +2639,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
2639
2639
|
function createResourceRequest$9(config) {
|
|
2640
2640
|
const headers = {};
|
|
2641
2641
|
return {
|
|
2642
|
-
baseUri: '/services/data/
|
|
2642
|
+
baseUri: '/services/data/v65.0',
|
|
2643
2643
|
basePath: '/personalization/personalization-points',
|
|
2644
2644
|
method: 'post',
|
|
2645
2645
|
body: config.body,
|
|
@@ -2712,7 +2712,7 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
2712
2712
|
const untrustedConfig_decisions_array = [];
|
|
2713
2713
|
for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
|
|
2714
2714
|
const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
|
|
2715
|
-
const referencePersonalizationDecisionInputRepresentationValidationError = validate$
|
|
2715
|
+
const referencePersonalizationDecisionInputRepresentationValidationError = validate$l(untrustedConfig_decisions_item);
|
|
2716
2716
|
if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
|
|
2717
2717
|
untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
|
|
2718
2718
|
}
|
|
@@ -2825,7 +2825,7 @@ function evictSuccess$1(luvio, resourceParams) {
|
|
|
2825
2825
|
function createResourceRequest$8(config) {
|
|
2826
2826
|
const headers = {};
|
|
2827
2827
|
return {
|
|
2828
|
-
baseUri: '/services/data/
|
|
2828
|
+
baseUri: '/services/data/v65.0',
|
|
2829
2829
|
basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
|
|
2830
2830
|
method: 'delete',
|
|
2831
2831
|
body: null,
|
|
@@ -2932,7 +2932,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
2932
2932
|
function createResourceRequest$7(config) {
|
|
2933
2933
|
const headers = {};
|
|
2934
2934
|
return {
|
|
2935
|
-
baseUri: '/services/data/
|
|
2935
|
+
baseUri: '/services/data/v65.0',
|
|
2936
2936
|
basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
|
|
2937
2937
|
method: 'get',
|
|
2938
2938
|
body: null,
|
|
@@ -3055,7 +3055,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
3055
3055
|
function createResourceRequest$6(config) {
|
|
3056
3056
|
const headers = {};
|
|
3057
3057
|
return {
|
|
3058
|
-
baseUri: '/services/data/
|
|
3058
|
+
baseUri: '/services/data/v65.0',
|
|
3059
3059
|
basePath: '/personalization/personalization-points/' + config.urlParams.idOrName + '',
|
|
3060
3060
|
method: 'put',
|
|
3061
3061
|
body: config.body,
|
|
@@ -3129,7 +3129,7 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
3129
3129
|
const untrustedConfig_decisions_array = [];
|
|
3130
3130
|
for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
|
|
3131
3131
|
const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
|
|
3132
|
-
const referencePersonalizationDecisionInputRepresentationValidationError = validate$
|
|
3132
|
+
const referencePersonalizationDecisionInputRepresentationValidationError = validate$l(untrustedConfig_decisions_item);
|
|
3133
3133
|
if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
|
|
3134
3134
|
untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
|
|
3135
3135
|
}
|
|
@@ -3222,7 +3222,7 @@ const updatePersonalizationPointAdapterFactory = (luvio) => {
|
|
|
3222
3222
|
};
|
|
3223
3223
|
};
|
|
3224
3224
|
|
|
3225
|
-
function validate$
|
|
3225
|
+
function validate$d(obj, path = 'PersonalizationAttributeInputRepresentation') {
|
|
3226
3226
|
const v_error = (() => {
|
|
3227
3227
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3228
3228
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3270,7 +3270,7 @@ function validate$c(obj, path = 'PersonalizationAttributeInputRepresentation') {
|
|
|
3270
3270
|
}
|
|
3271
3271
|
|
|
3272
3272
|
const VERSION$9 = "014064b188ff923423af6301d64be36a";
|
|
3273
|
-
function validate$
|
|
3273
|
+
function validate$c(obj, path = 'PersonalizationAttributeRepresentation') {
|
|
3274
3274
|
const v_error = (() => {
|
|
3275
3275
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3276
3276
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3461,7 +3461,7 @@ function equals$9(existing, incoming) {
|
|
|
3461
3461
|
|
|
3462
3462
|
const TTL$3 = 600;
|
|
3463
3463
|
const VERSION$8 = "25740f87643de6fdae570c77bbec7377";
|
|
3464
|
-
function validate$
|
|
3464
|
+
function validate$b(obj, path = 'PersonalizationSchemaRepresentation') {
|
|
3465
3465
|
const v_error = (() => {
|
|
3466
3466
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3467
3467
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3474,7 +3474,7 @@ function validate$a(obj, path = 'PersonalizationSchemaRepresentation') {
|
|
|
3474
3474
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
3475
3475
|
const obj_attributes_item = obj_attributes[i];
|
|
3476
3476
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
3477
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
3477
|
+
const referencepath_attributes_itemValidationError = validate$c(obj_attributes_item, path_attributes_item);
|
|
3478
3478
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
3479
3479
|
let message = 'Object doesn\'t match PersonalizationAttributeRepresentation (at "' + path_attributes_item + '")\n';
|
|
3480
3480
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3786,7 +3786,7 @@ function equals$8(existing, incoming) {
|
|
|
3786
3786
|
}
|
|
3787
3787
|
const ingest$3 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3788
3788
|
if (process.env.NODE_ENV !== 'production') {
|
|
3789
|
-
const validateError = validate$
|
|
3789
|
+
const validateError = validate$b(input);
|
|
3790
3790
|
if (validateError !== null) {
|
|
3791
3791
|
throw validateError;
|
|
3792
3792
|
}
|
|
@@ -3832,7 +3832,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
3832
3832
|
function createResourceRequest$5(config) {
|
|
3833
3833
|
const headers = {};
|
|
3834
3834
|
return {
|
|
3835
|
-
baseUri: '/services/data/
|
|
3835
|
+
baseUri: '/services/data/v65.0',
|
|
3836
3836
|
basePath: '/personalization/personalization-schemas',
|
|
3837
3837
|
method: 'post',
|
|
3838
3838
|
body: config.body,
|
|
@@ -3885,7 +3885,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3885
3885
|
const untrustedConfig_attributes_array = [];
|
|
3886
3886
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
3887
3887
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
3888
|
-
const referencePersonalizationAttributeInputRepresentationValidationError = validate$
|
|
3888
|
+
const referencePersonalizationAttributeInputRepresentationValidationError = validate$d(untrustedConfig_attributes_item);
|
|
3889
3889
|
if (referencePersonalizationAttributeInputRepresentationValidationError === null) {
|
|
3890
3890
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
3891
3891
|
}
|
|
@@ -3977,7 +3977,7 @@ function evictSuccess(luvio, resourceParams) {
|
|
|
3977
3977
|
function createResourceRequest$4(config) {
|
|
3978
3978
|
const headers = {};
|
|
3979
3979
|
return {
|
|
3980
|
-
baseUri: '/services/data/
|
|
3980
|
+
baseUri: '/services/data/v65.0',
|
|
3981
3981
|
basePath: '/personalization/personalization-schemas/' + config.urlParams.idOrName + '',
|
|
3982
3982
|
method: 'delete',
|
|
3983
3983
|
body: null,
|
|
@@ -4084,7 +4084,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
4084
4084
|
function createResourceRequest$3(config) {
|
|
4085
4085
|
const headers = {};
|
|
4086
4086
|
return {
|
|
4087
|
-
baseUri: '/services/data/
|
|
4087
|
+
baseUri: '/services/data/v65.0',
|
|
4088
4088
|
basePath: '/personalization/personalization-schemas/' + config.urlParams.idOrName + '',
|
|
4089
4089
|
method: 'get',
|
|
4090
4090
|
body: null,
|
|
@@ -4182,7 +4182,7 @@ const getPersonalizationSchemaAdapterFactory = (luvio) => function personalizati
|
|
|
4182
4182
|
};
|
|
4183
4183
|
|
|
4184
4184
|
const VERSION$7 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
|
|
4185
|
-
function validate$
|
|
4185
|
+
function validate$a(obj, path = 'PersonalizationRecommenderJobRepresentation') {
|
|
4186
4186
|
const v_error = (() => {
|
|
4187
4187
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4188
4188
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4355,7 +4355,7 @@ function equals$7(existing, incoming) {
|
|
|
4355
4355
|
|
|
4356
4356
|
const TTL$2 = 600;
|
|
4357
4357
|
const VERSION$6 = "2fab2250d4ed5adcbb1a5c19a64cd765";
|
|
4358
|
-
function validate$
|
|
4358
|
+
function validate$9(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
|
|
4359
4359
|
const v_error = (() => {
|
|
4360
4360
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4361
4361
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4376,7 +4376,7 @@ function validate$8(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
|
|
|
4376
4376
|
for (let i = 0; i < obj_jobs.length; i++) {
|
|
4377
4377
|
const obj_jobs_item = obj_jobs[i];
|
|
4378
4378
|
const path_jobs_item = path_jobs + '[' + i + ']';
|
|
4379
|
-
const referencepath_jobs_itemValidationError = validate$
|
|
4379
|
+
const referencepath_jobs_itemValidationError = validate$a(obj_jobs_item, path_jobs_item);
|
|
4380
4380
|
if (referencepath_jobs_itemValidationError !== null) {
|
|
4381
4381
|
let message = 'Object doesn\'t match PersonalizationRecommenderJobRepresentation (at "' + path_jobs_item + '")\n';
|
|
4382
4382
|
message += referencepath_jobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4474,7 +4474,7 @@ function equals$6(existing, incoming) {
|
|
|
4474
4474
|
}
|
|
4475
4475
|
const ingest$2 = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4476
4476
|
if (process.env.NODE_ENV !== 'production') {
|
|
4477
|
-
const validateError = validate$
|
|
4477
|
+
const validateError = validate$9(input);
|
|
4478
4478
|
if (validateError !== null) {
|
|
4479
4479
|
throw validateError;
|
|
4480
4480
|
}
|
|
@@ -4535,7 +4535,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
4535
4535
|
function createResourceRequest$2(config) {
|
|
4536
4536
|
const headers = {};
|
|
4537
4537
|
return {
|
|
4538
|
-
baseUri: '/services/data/
|
|
4538
|
+
baseUri: '/services/data/v65.0',
|
|
4539
4539
|
basePath: '/personalization/personalization-recommenders/' + config.urlParams.idOrName + '/jobs',
|
|
4540
4540
|
method: 'get',
|
|
4541
4541
|
body: null,
|
|
@@ -4634,7 +4634,7 @@ const getTrainingHistoryAdapterFactory = (luvio) => function personalizationServ
|
|
|
4634
4634
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
4635
4635
|
};
|
|
4636
4636
|
|
|
4637
|
-
function validate$
|
|
4637
|
+
function validate$8(obj, path = 'AnchorReferenceRepresentation') {
|
|
4638
4638
|
const v_error = (() => {
|
|
4639
4639
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4640
4640
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4653,6 +4653,32 @@ function validate$7(obj, path = 'AnchorReferenceRepresentation') {
|
|
|
4653
4653
|
return v_error === undefined ? null : v_error;
|
|
4654
4654
|
}
|
|
4655
4655
|
|
|
4656
|
+
function validate$7(obj, path = 'RuleGroupInputRepresentation2') {
|
|
4657
|
+
const v_error = (() => {
|
|
4658
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4659
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4660
|
+
}
|
|
4661
|
+
const obj_operator = obj.operator;
|
|
4662
|
+
const path_operator = path + '.operator';
|
|
4663
|
+
if (typeof obj_operator !== 'string') {
|
|
4664
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
4665
|
+
}
|
|
4666
|
+
const obj_rules = obj.rules;
|
|
4667
|
+
const path_rules = path + '.rules';
|
|
4668
|
+
if (!ArrayIsArray(obj_rules)) {
|
|
4669
|
+
return new TypeError('Expected "array" but received "' + typeof obj_rules + '" (at "' + path_rules + '")');
|
|
4670
|
+
}
|
|
4671
|
+
for (let i = 0; i < obj_rules.length; i++) {
|
|
4672
|
+
const obj_rules_item = obj_rules[i];
|
|
4673
|
+
const path_rules_item = path_rules + '[' + i + ']';
|
|
4674
|
+
if (typeof obj_rules_item !== 'object' || ArrayIsArray(obj_rules_item) || obj_rules_item === null) {
|
|
4675
|
+
return new TypeError('Expected "object" but received "' + typeof obj_rules_item + '" (at "' + path_rules_item + '")');
|
|
4676
|
+
}
|
|
4677
|
+
}
|
|
4678
|
+
})();
|
|
4679
|
+
return v_error === undefined ? null : v_error;
|
|
4680
|
+
}
|
|
4681
|
+
|
|
4656
4682
|
function validate$6(obj, path = 'RuleGroupInputRepresentation') {
|
|
4657
4683
|
const v_error = (() => {
|
|
4658
4684
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4746,7 +4772,8 @@ function select$6(luvio, params) {
|
|
|
4746
4772
|
return select$7();
|
|
4747
4773
|
}
|
|
4748
4774
|
function keyBuilder$3(luvio, params) {
|
|
4749
|
-
|
|
4775
|
+
var _a, _b, _c, _d, _e, _f;
|
|
4776
|
+
return keyPrefix + '::PersonalizationRecommenderSimulateActionRepresentation:(' + 'idOrName:' + params.urlParams.idOrName + ',' + (params.body.anchors === undefined ? undefined : ('[' + params.body.anchors.map(element => 'anchors.dmoName:' + element.dmoName + '::' + 'anchors.id:' + element.id).join(',') + ']')) + '::' + (((_a = params.body.excludeFilters) === null || _a === void 0 ? void 0 : _a.operator) === undefined ? 'excludeFilters.operator' : 'excludeFilters.operator:' + ((_b = params.body.excludeFilters) === null || _b === void 0 ? void 0 : _b.operator)) + '::' + '[' + ((_c = params.body.excludeFilters) === null || _c === void 0 ? void 0 : _c.rules.map(element => stableJSONStringify(element)).join(',')) + ']' + '::' + (((_d = params.body.includeFilters) === null || _d === void 0 ? void 0 : _d.operator) === undefined ? 'includeFilters.operator' : 'includeFilters.operator:' + ((_e = params.body.includeFilters) === null || _e === void 0 ? void 0 : _e.operator)) + '::' + '[' + ((_f = params.body.includeFilters) === null || _f === void 0 ? void 0 : _f.rules.map(element => stableJSONStringify(element)).join(',')) + ']' + '::' + (params.body.individualId === undefined ? 'individualId' : 'individualId:' + params.body.individualId) + ')';
|
|
4750
4777
|
}
|
|
4751
4778
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
4752
4779
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
@@ -4783,7 +4810,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
4783
4810
|
function createResourceRequest$1(config) {
|
|
4784
4811
|
const headers = {};
|
|
4785
4812
|
return {
|
|
4786
|
-
baseUri: '/services/data/
|
|
4813
|
+
baseUri: '/services/data/v65.0',
|
|
4787
4814
|
basePath: '/personalization/personalization-recommenders/' + config.urlParams.idOrName + '/actions/simulate',
|
|
4788
4815
|
method: 'post',
|
|
4789
4816
|
body: config.body,
|
|
@@ -4798,8 +4825,8 @@ const adapterName$1 = 'postPersonalizationRecommenderSimulateAction';
|
|
|
4798
4825
|
const postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata = [
|
|
4799
4826
|
generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4800
4827
|
generateParamConfigMetadata('anchors', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4801
|
-
generateParamConfigMetadata('excludeFilters', false, 2 /* Body */, 4 /* Unsupported
|
|
4802
|
-
generateParamConfigMetadata('includeFilters', false, 2 /* Body */, 4 /* Unsupported
|
|
4828
|
+
generateParamConfigMetadata('excludeFilters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4829
|
+
generateParamConfigMetadata('includeFilters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4803
4830
|
generateParamConfigMetadata('individualId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4804
4831
|
];
|
|
4805
4832
|
const postPersonalizationRecommenderSimulateAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata);
|
|
@@ -4816,7 +4843,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
4816
4843
|
const untrustedConfig_anchors_array = [];
|
|
4817
4844
|
for (let i = 0, arrayLength = untrustedConfig_anchors.length; i < arrayLength; i++) {
|
|
4818
4845
|
const untrustedConfig_anchors_item = untrustedConfig_anchors[i];
|
|
4819
|
-
const referenceAnchorReferenceRepresentationValidationError = validate$
|
|
4846
|
+
const referenceAnchorReferenceRepresentationValidationError = validate$8(untrustedConfig_anchors_item);
|
|
4820
4847
|
if (referenceAnchorReferenceRepresentationValidationError === null) {
|
|
4821
4848
|
untrustedConfig_anchors_array.push(untrustedConfig_anchors_item);
|
|
4822
4849
|
}
|
|
@@ -4824,28 +4851,14 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
4824
4851
|
config.anchors = untrustedConfig_anchors_array;
|
|
4825
4852
|
}
|
|
4826
4853
|
const untrustedConfig_excludeFilters = untrustedConfig.excludeFilters;
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
const untrustedConfig_excludeFilters_item = untrustedConfig_excludeFilters[i];
|
|
4831
|
-
const referenceRuleGroupInputRepresentationValidationError = validate$6(untrustedConfig_excludeFilters_item);
|
|
4832
|
-
if (referenceRuleGroupInputRepresentationValidationError === null) {
|
|
4833
|
-
untrustedConfig_excludeFilters_array.push(untrustedConfig_excludeFilters_item);
|
|
4834
|
-
}
|
|
4835
|
-
}
|
|
4836
|
-
config.excludeFilters = untrustedConfig_excludeFilters_array;
|
|
4854
|
+
const referenceRuleGroupInputRepresentation2ValidationError = validate$7(untrustedConfig_excludeFilters);
|
|
4855
|
+
if (referenceRuleGroupInputRepresentation2ValidationError === null) {
|
|
4856
|
+
config.excludeFilters = untrustedConfig_excludeFilters;
|
|
4837
4857
|
}
|
|
4838
4858
|
const untrustedConfig_includeFilters = untrustedConfig.includeFilters;
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
const untrustedConfig_includeFilters_item = untrustedConfig_includeFilters[i];
|
|
4843
|
-
const referenceRuleGroupInputRepresentationValidationError = validate$6(untrustedConfig_includeFilters_item);
|
|
4844
|
-
if (referenceRuleGroupInputRepresentationValidationError === null) {
|
|
4845
|
-
untrustedConfig_includeFilters_array.push(untrustedConfig_includeFilters_item);
|
|
4846
|
-
}
|
|
4847
|
-
}
|
|
4848
|
-
config.includeFilters = untrustedConfig_includeFilters_array;
|
|
4859
|
+
const referenceRuleGroupInputRepresentationValidationError = validate$6(untrustedConfig_includeFilters);
|
|
4860
|
+
if (referenceRuleGroupInputRepresentationValidationError === null) {
|
|
4861
|
+
config.includeFilters = untrustedConfig_includeFilters;
|
|
4849
4862
|
}
|
|
4850
4863
|
const untrustedConfig_individualId = untrustedConfig.individualId;
|
|
4851
4864
|
if (typeof untrustedConfig_individualId === 'string') {
|
|
@@ -5434,7 +5447,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
5434
5447
|
function createResourceRequest(config) {
|
|
5435
5448
|
const headers = {};
|
|
5436
5449
|
return {
|
|
5437
|
-
baseUri: '/services/data/
|
|
5450
|
+
baseUri: '/services/data/v65.0',
|
|
5438
5451
|
basePath: '/personalization/einstein-studio/model-mapping',
|
|
5439
5452
|
method: 'get',
|
|
5440
5453
|
body: null,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
3
|
import { AnchorReferenceRepresentation as types_AnchorReferenceRepresentation_AnchorReferenceRepresentation } from '../types/AnchorReferenceRepresentation';
|
|
4
|
+
import { RuleGroupInputRepresentation2 as types_RuleGroupInputRepresentation2_RuleGroupInputRepresentation2 } from '../types/RuleGroupInputRepresentation2';
|
|
4
5
|
import { RuleGroupInputRepresentation as types_RuleGroupInputRepresentation_RuleGroupInputRepresentation } from '../types/RuleGroupInputRepresentation';
|
|
5
6
|
import { ResourceRequestConfig as resources_postPersonalizationPersonalizationRecommendersActionsSimulateByIdOrName_ResourceRequestConfig } from '../resources/postPersonalizationPersonalizationRecommendersActionsSimulateByIdOrName';
|
|
6
7
|
import { PersonalizationRecommenderSimulateActionRepresentation as types_PersonalizationRecommenderSimulateActionRepresentation_PersonalizationRecommenderSimulateActionRepresentation } from '../types/PersonalizationRecommenderSimulateActionRepresentation';
|
|
@@ -10,8 +11,8 @@ export declare const postPersonalizationRecommenderSimulateAction_ConfigProperty
|
|
|
10
11
|
export interface PostPersonalizationRecommenderSimulateActionConfig {
|
|
11
12
|
idOrName: string;
|
|
12
13
|
anchors?: Array<types_AnchorReferenceRepresentation_AnchorReferenceRepresentation>;
|
|
13
|
-
excludeFilters?:
|
|
14
|
-
includeFilters?:
|
|
14
|
+
excludeFilters?: types_RuleGroupInputRepresentation2_RuleGroupInputRepresentation2;
|
|
15
|
+
includeFilters?: types_RuleGroupInputRepresentation_RuleGroupInputRepresentation;
|
|
15
16
|
individualId?: string | null;
|
|
16
17
|
}
|
|
17
18
|
export declare const createResourceParams: (config: PostPersonalizationRecommenderSimulateActionConfig) => resources_postPersonalizationPersonalizationRecommendersActionsSimulateByIdOrName_ResourceRequestConfig;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AnchorReferenceRepresentation as types_AnchorReferenceRepresentation_AnchorReferenceRepresentation } from '../types/AnchorReferenceRepresentation';
|
|
2
|
+
import { RuleGroupInputRepresentation2 as types_RuleGroupInputRepresentation2_RuleGroupInputRepresentation2 } from '../types/RuleGroupInputRepresentation2';
|
|
2
3
|
import { RuleGroupInputRepresentation as types_RuleGroupInputRepresentation_RuleGroupInputRepresentation } from '../types/RuleGroupInputRepresentation';
|
|
3
4
|
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
4
5
|
import { PersonalizationRecommenderSimulateActionRepresentation as types_PersonalizationRecommenderSimulateActionRepresentation_PersonalizationRecommenderSimulateActionRepresentation } from '../types/PersonalizationRecommenderSimulateActionRepresentation';
|
|
@@ -8,8 +9,8 @@ export interface ResourceRequestConfig {
|
|
|
8
9
|
};
|
|
9
10
|
body: {
|
|
10
11
|
anchors?: Array<types_AnchorReferenceRepresentation_AnchorReferenceRepresentation>;
|
|
11
|
-
excludeFilters?:
|
|
12
|
-
includeFilters?:
|
|
12
|
+
excludeFilters?: types_RuleGroupInputRepresentation2_RuleGroupInputRepresentation2;
|
|
13
|
+
includeFilters?: types_RuleGroupInputRepresentation_RuleGroupInputRepresentation;
|
|
13
14
|
individualId?: string | null;
|
|
14
15
|
};
|
|
15
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "ad206b15933f8265516bba8ef3e69c15";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: BasePredicateInputRepresentation, existing: BasePredicateInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): BasePredicateInputRepresentationNormalized;
|
|
@@ -14,6 +14,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface BasePredicateInputRepresentationNormalized {
|
|
17
|
+
/** The type of Predicate object. */
|
|
18
|
+
type: string;
|
|
17
19
|
}
|
|
18
20
|
/**
|
|
19
21
|
* The right hand side against which the filter condition is checked.
|
|
@@ -22,4 +24,5 @@ export interface BasePredicateInputRepresentationNormalized {
|
|
|
22
24
|
* (none)
|
|
23
25
|
*/
|
|
24
26
|
export interface BasePredicateInputRepresentation {
|
|
27
|
+
type: string;
|
|
25
28
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "624226c9b595ad62c082337c07d9c498";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: BaseRuleInputRepresentation, existing: BaseRuleInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): BaseRuleInputRepresentationNormalized;
|
|
@@ -14,6 +14,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface BaseRuleInputRepresentationNormalized {
|
|
17
|
+
/** The type of Rule object. */
|
|
18
|
+
type: string;
|
|
17
19
|
}
|
|
18
20
|
/**
|
|
19
21
|
* Base Rule Input Representation
|
|
@@ -22,4 +24,5 @@ export interface BaseRuleInputRepresentationNormalized {
|
|
|
22
24
|
* (none)
|
|
23
25
|
*/
|
|
24
26
|
export interface BaseRuleInputRepresentation {
|
|
27
|
+
type: string;
|
|
25
28
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AnchorReferenceRepresentation as AnchorReferenceRepresentation_AnchorReferenceRepresentation } from './AnchorReferenceRepresentation';
|
|
2
|
+
import { RuleGroupInputRepresentation2 as RuleGroupInputRepresentation2_RuleGroupInputRepresentation2 } from './RuleGroupInputRepresentation2';
|
|
2
3
|
import { RuleGroupInputRepresentation as RuleGroupInputRepresentation_RuleGroupInputRepresentation } from './RuleGroupInputRepresentation';
|
|
3
4
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
4
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "1419c524c4cca5e1e943735847321a52";
|
|
5
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
7
|
export declare const RepresentationType: string;
|
|
7
8
|
export declare function normalize(input: PersonalizationRecommenderSimulateActionInputRepresentation, existing: PersonalizationRecommenderSimulateActionInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PersonalizationRecommenderSimulateActionInputRepresentationNormalized;
|
|
@@ -18,10 +19,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
18
19
|
export interface PersonalizationRecommenderSimulateActionInputRepresentationNormalized {
|
|
19
20
|
/** The list of anchors for which recommendations are needed if provided. */
|
|
20
21
|
anchors?: Array<AnchorReferenceRepresentation_AnchorReferenceRepresentation>;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/** The filters being applied before rendering the recommendations. */
|
|
24
|
-
includeFilters?: Array<RuleGroupInputRepresentation_RuleGroupInputRepresentation>;
|
|
22
|
+
excludeFilters?: RuleGroupInputRepresentation2_RuleGroupInputRepresentation2;
|
|
23
|
+
includeFilters?: RuleGroupInputRepresentation_RuleGroupInputRepresentation;
|
|
25
24
|
/** The individual id associated to a Data Cloud profile. */
|
|
26
25
|
individualId?: string | null;
|
|
27
26
|
}
|
|
@@ -33,7 +32,7 @@ export interface PersonalizationRecommenderSimulateActionInputRepresentationNorm
|
|
|
33
32
|
*/
|
|
34
33
|
export interface PersonalizationRecommenderSimulateActionInputRepresentation {
|
|
35
34
|
anchors?: Array<AnchorReferenceRepresentation_AnchorReferenceRepresentation>;
|
|
36
|
-
excludeFilters?:
|
|
37
|
-
includeFilters?:
|
|
35
|
+
excludeFilters?: RuleGroupInputRepresentation2_RuleGroupInputRepresentation2;
|
|
36
|
+
includeFilters?: RuleGroupInputRepresentation_RuleGroupInputRepresentation;
|
|
38
37
|
individualId?: string | null;
|
|
39
38
|
}
|