@salesforce/lds-adapters-cdp-personalization-service 1.354.0 → 1.356.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 +71 -58
- 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 +82 -70
- package/src/raml/api.raml +42 -10
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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));
|
|
@@ -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') {
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 = "51fbb87b5f033b6007aed883bb5da1ea";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: RuleGroupInputRepresentation2, existing: RuleGroupInputRepresentation2Normalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RuleGroupInputRepresentation2Normalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: RuleGroupInputRepresentation2Normalized, incoming: RuleGroupInputRepresentation2Normalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: RuleGroupInputRepresentation2, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Rule Group Representation
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface RuleGroupInputRepresentation2Normalized {
|
|
17
|
+
/** The field which gives the information whether to include/exclude all the filter conditions or any one of them. */
|
|
18
|
+
operator: string;
|
|
19
|
+
/** The filter conditions of the recommender. */
|
|
20
|
+
rules: Array<{}>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Rule Group Representation
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface RuleGroupInputRepresentation2 {
|
|
29
|
+
operator: string;
|
|
30
|
+
rules: Array<{}>;
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-cdp-personalization-service",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.356.0",
|
|
4
4
|
"description": "wire adapters for personalization service connect api",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/cdp-personalization-service.js",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"test:unit:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@salesforce/lds-bindings": "^1.
|
|
45
|
+
"@salesforce/lds-bindings": "^1.356.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
48
|
+
"@salesforce/lds-compiler-plugins": "^1.356.0"
|
|
49
49
|
},
|
|
50
50
|
"nx": {
|
|
51
51
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -158,7 +158,7 @@ function createLink(ref) {
|
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
function validate$
|
|
161
|
+
function validate$m(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
|
|
162
162
|
const v_error = (() => {
|
|
163
163
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
164
164
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -249,7 +249,7 @@ function validate$l(obj, path = 'PersonalizationAttributeValueInputRepresentatio
|
|
|
249
249
|
return v_error === undefined ? null : v_error;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
function validate$
|
|
252
|
+
function validate$l(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
253
253
|
const v_error = (() => {
|
|
254
254
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
255
255
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -263,7 +263,7 @@ function validate$k(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
|
263
263
|
for (let i = 0; i < obj_attributeValues.length; i++) {
|
|
264
264
|
const obj_attributeValues_item = obj_attributeValues[i];
|
|
265
265
|
const path_attributeValues_item = path_attributeValues + '[' + i + ']';
|
|
266
|
-
const referencepath_attributeValues_itemValidationError = validate$
|
|
266
|
+
const referencepath_attributeValues_itemValidationError = validate$m(obj_attributeValues_item, path_attributeValues_item);
|
|
267
267
|
if (referencepath_attributeValues_itemValidationError !== null) {
|
|
268
268
|
let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
|
|
269
269
|
message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -438,7 +438,7 @@ function validate$k(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
const VERSION$e = "52ea9c14b7a747a28cedbcff0e7ab169";
|
|
441
|
-
function validate$
|
|
441
|
+
function validate$k(obj, path = 'PersonalizationAttributeValueRepresentation') {
|
|
442
442
|
const v_error = (() => {
|
|
443
443
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
444
444
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -564,7 +564,7 @@ function equals$e(existing, incoming) {
|
|
|
564
564
|
return true;
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
-
function validate$
|
|
567
|
+
function validate$j(obj, path = 'FiltersWrapRepresentation') {
|
|
568
568
|
const v_error = (() => {
|
|
569
569
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
570
570
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -643,7 +643,7 @@ function validate$i(obj, path = 'FiltersWrapRepresentation') {
|
|
|
643
643
|
return v_error === undefined ? null : v_error;
|
|
644
644
|
}
|
|
645
645
|
|
|
646
|
-
function validate$
|
|
646
|
+
function validate$i(obj, path = 'SubjectRepresentation') {
|
|
647
647
|
const v_error = (() => {
|
|
648
648
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
649
649
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -763,7 +763,7 @@ function validate$h(obj, path = 'SubjectRepresentation') {
|
|
|
763
763
|
}
|
|
764
764
|
|
|
765
765
|
const VERSION$d = "089c2877ffa367e376fe74f8d358ffa8";
|
|
766
|
-
function validate$
|
|
766
|
+
function validate$h(obj, path = 'FilterRepresentation') {
|
|
767
767
|
const v_error = (() => {
|
|
768
768
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
769
769
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -801,7 +801,7 @@ function validate$g(obj, path = 'FilterRepresentation') {
|
|
|
801
801
|
const path_comparison = path + '.comparison';
|
|
802
802
|
let obj_comparison_union0 = null;
|
|
803
803
|
const obj_comparison_union0_error = (() => {
|
|
804
|
-
const referencepath_comparisonValidationError = validate$
|
|
804
|
+
const referencepath_comparisonValidationError = validate$h(obj_comparison, path_comparison);
|
|
805
805
|
if (referencepath_comparisonValidationError !== null) {
|
|
806
806
|
let message = 'Object doesn\'t match FilterRepresentation (at "' + path_comparison + '")\n';
|
|
807
807
|
message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -832,7 +832,7 @@ function validate$g(obj, path = 'FilterRepresentation') {
|
|
|
832
832
|
const path_filter = path + '.filter';
|
|
833
833
|
let obj_filter_union0 = null;
|
|
834
834
|
const obj_filter_union0_error = (() => {
|
|
835
|
-
const referencepath_filterValidationError = validate$
|
|
835
|
+
const referencepath_filterValidationError = validate$j(obj_filter, path_filter);
|
|
836
836
|
if (referencepath_filterValidationError !== null) {
|
|
837
837
|
let message = 'Object doesn\'t match FiltersWrapRepresentation (at "' + path_filter + '")\n';
|
|
838
838
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -869,7 +869,7 @@ function validate$g(obj, path = 'FilterRepresentation') {
|
|
|
869
869
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
870
870
|
let obj_filters_item_union0 = null;
|
|
871
871
|
const obj_filters_item_union0_error = (() => {
|
|
872
|
-
const referencepath_filters_itemValidationError = validate$
|
|
872
|
+
const referencepath_filters_itemValidationError = validate$h(obj_filters_item, path_filters_item);
|
|
873
873
|
if (referencepath_filters_itemValidationError !== null) {
|
|
874
874
|
let message = 'Object doesn\'t match FilterRepresentation (at "' + path_filters_item + '")\n';
|
|
875
875
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -929,7 +929,7 @@ function validate$g(obj, path = 'FilterRepresentation') {
|
|
|
929
929
|
const path_metric = path + '.metric';
|
|
930
930
|
let obj_metric_union0 = null;
|
|
931
931
|
const obj_metric_union0_error = (() => {
|
|
932
|
-
const referencepath_metricValidationError = validate$
|
|
932
|
+
const referencepath_metricValidationError = validate$i(obj_metric, path_metric);
|
|
933
933
|
if (referencepath_metricValidationError !== null) {
|
|
934
934
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
|
|
935
935
|
message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -998,7 +998,7 @@ function validate$g(obj, path = 'FilterRepresentation') {
|
|
|
998
998
|
for (let i = 0; i < obj_path_item.length; i++) {
|
|
999
999
|
const obj_path_item_item = obj_path_item[i];
|
|
1000
1000
|
const path_path_item_item = path_path_item + '[' + i + ']';
|
|
1001
|
-
const referencepath_path_item_itemValidationError = validate$
|
|
1001
|
+
const referencepath_path_item_itemValidationError = validate$i(obj_path_item_item, path_path_item_item);
|
|
1002
1002
|
if (referencepath_path_item_itemValidationError !== null) {
|
|
1003
1003
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_path_item_item + '")\n';
|
|
1004
1004
|
message += referencepath_path_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1096,7 +1096,7 @@ function validate$g(obj, path = 'FilterRepresentation') {
|
|
|
1096
1096
|
const path_subject = path + '.subject';
|
|
1097
1097
|
let obj_subject_union0 = null;
|
|
1098
1098
|
const obj_subject_union0_error = (() => {
|
|
1099
|
-
const referencepath_subjectValidationError = validate$
|
|
1099
|
+
const referencepath_subjectValidationError = validate$i(obj_subject, path_subject);
|
|
1100
1100
|
if (referencepath_subjectValidationError !== null) {
|
|
1101
1101
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_subject + '")\n';
|
|
1102
1102
|
message += referencepath_subjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1215,7 +1215,7 @@ function equals$d(existing, incoming) {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
const ingest$7 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1217
1217
|
if (process.env.NODE_ENV !== 'production') {
|
|
1218
|
-
const validateError = validate$
|
|
1218
|
+
const validateError = validate$h(input);
|
|
1219
1219
|
if (validateError !== null) {
|
|
1220
1220
|
throw validateError;
|
|
1221
1221
|
}
|
|
@@ -1236,7 +1236,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
|
|
1238
1238
|
const VERSION$c = "ea475f10b4c028f8b97a44af1cf0be14";
|
|
1239
|
-
function validate$
|
|
1239
|
+
function validate$g(obj, path = 'CriteriaRepresentation') {
|
|
1240
1240
|
const v_error = (() => {
|
|
1241
1241
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1242
1242
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1334,7 +1334,7 @@ function equals$c(existing, incoming) {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
const ingest$6 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1336
1336
|
if (process.env.NODE_ENV !== 'production') {
|
|
1337
|
-
const validateError = validate$
|
|
1337
|
+
const validateError = validate$g(input);
|
|
1338
1338
|
if (validateError !== null) {
|
|
1339
1339
|
throw validateError;
|
|
1340
1340
|
}
|
|
@@ -1359,7 +1359,7 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1359
1359
|
}
|
|
1360
1360
|
|
|
1361
1361
|
const VERSION$b = "265767af783b296f5f902d6ed447b168";
|
|
1362
|
-
function validate$
|
|
1362
|
+
function validate$f(obj, path = 'PersonalizationDecisionRepresentation') {
|
|
1363
1363
|
const v_error = (() => {
|
|
1364
1364
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1365
1365
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1372,7 +1372,7 @@ function validate$e(obj, path = 'PersonalizationDecisionRepresentation') {
|
|
|
1372
1372
|
for (let i = 0; i < obj_attributeValues.length; i++) {
|
|
1373
1373
|
const obj_attributeValues_item = obj_attributeValues[i];
|
|
1374
1374
|
const path_attributeValues_item = path_attributeValues + '[' + i + ']';
|
|
1375
|
-
const referencepath_attributeValues_itemValidationError = validate$
|
|
1375
|
+
const referencepath_attributeValues_itemValidationError = validate$k(obj_attributeValues_item, path_attributeValues_item);
|
|
1376
1376
|
if (referencepath_attributeValues_itemValidationError !== null) {
|
|
1377
1377
|
let message = 'Object doesn\'t match PersonalizationAttributeValueRepresentation (at "' + path_attributeValues_item + '")\n';
|
|
1378
1378
|
message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1858,7 +1858,7 @@ function equals$b(existing, incoming) {
|
|
|
1858
1858
|
}
|
|
1859
1859
|
const ingest$5 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1860
1860
|
if (process.env.NODE_ENV !== 'production') {
|
|
1861
|
-
const validateError = validate$
|
|
1861
|
+
const validateError = validate$f(input);
|
|
1862
1862
|
if (validateError !== null) {
|
|
1863
1863
|
throw validateError;
|
|
1864
1864
|
}
|
|
@@ -1883,7 +1883,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1883
1883
|
|
|
1884
1884
|
const TTL$4 = 600;
|
|
1885
1885
|
const VERSION$a = "e5643ca13ef54c890c9177275a053de3";
|
|
1886
|
-
function validate$
|
|
1886
|
+
function validate$e(obj, path = 'PersonalizationPointRepresentation') {
|
|
1887
1887
|
const v_error = (() => {
|
|
1888
1888
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1889
1889
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2599,7 +2599,7 @@ function equals$a(existing, incoming) {
|
|
|
2599
2599
|
}
|
|
2600
2600
|
const ingest$4 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2601
2601
|
if (process.env.NODE_ENV !== 'production') {
|
|
2602
|
-
const validateError = validate$
|
|
2602
|
+
const validateError = validate$e(input);
|
|
2603
2603
|
if (validateError !== null) {
|
|
2604
2604
|
throw validateError;
|
|
2605
2605
|
}
|
|
@@ -2722,7 +2722,7 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
2722
2722
|
const untrustedConfig_decisions_array = [];
|
|
2723
2723
|
for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
|
|
2724
2724
|
const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
|
|
2725
|
-
const referencePersonalizationDecisionInputRepresentationValidationError = validate$
|
|
2725
|
+
const referencePersonalizationDecisionInputRepresentationValidationError = validate$l(untrustedConfig_decisions_item);
|
|
2726
2726
|
if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
|
|
2727
2727
|
untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
|
|
2728
2728
|
}
|
|
@@ -2815,7 +2815,7 @@ const createPersonalizationPointAdapterFactory = (luvio) => {
|
|
|
2815
2815
|
};
|
|
2816
2816
|
};
|
|
2817
2817
|
|
|
2818
|
-
function validate$
|
|
2818
|
+
function validate$d(obj, path = 'PersonalizationAttributeInputRepresentation') {
|
|
2819
2819
|
const v_error = (() => {
|
|
2820
2820
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2821
2821
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2863,7 +2863,7 @@ function validate$c(obj, path = 'PersonalizationAttributeInputRepresentation') {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
|
|
2865
2865
|
const VERSION$9 = "014064b188ff923423af6301d64be36a";
|
|
2866
|
-
function validate$
|
|
2866
|
+
function validate$c(obj, path = 'PersonalizationAttributeRepresentation') {
|
|
2867
2867
|
const v_error = (() => {
|
|
2868
2868
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2869
2869
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3054,7 +3054,7 @@ function equals$9(existing, incoming) {
|
|
|
3054
3054
|
|
|
3055
3055
|
const TTL$3 = 600;
|
|
3056
3056
|
const VERSION$8 = "25740f87643de6fdae570c77bbec7377";
|
|
3057
|
-
function validate$
|
|
3057
|
+
function validate$b(obj, path = 'PersonalizationSchemaRepresentation') {
|
|
3058
3058
|
const v_error = (() => {
|
|
3059
3059
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3060
3060
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3067,7 +3067,7 @@ function validate$a(obj, path = 'PersonalizationSchemaRepresentation') {
|
|
|
3067
3067
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
3068
3068
|
const obj_attributes_item = obj_attributes[i];
|
|
3069
3069
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
3070
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
3070
|
+
const referencepath_attributes_itemValidationError = validate$c(obj_attributes_item, path_attributes_item);
|
|
3071
3071
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
3072
3072
|
let message = 'Object doesn\'t match PersonalizationAttributeRepresentation (at "' + path_attributes_item + '")\n';
|
|
3073
3073
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3379,7 +3379,7 @@ function equals$8(existing, incoming) {
|
|
|
3379
3379
|
}
|
|
3380
3380
|
const ingest$3 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3381
3381
|
if (process.env.NODE_ENV !== 'production') {
|
|
3382
|
-
const validateError = validate$
|
|
3382
|
+
const validateError = validate$b(input);
|
|
3383
3383
|
if (validateError !== null) {
|
|
3384
3384
|
throw validateError;
|
|
3385
3385
|
}
|
|
@@ -3478,7 +3478,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
3478
3478
|
const untrustedConfig_attributes_array = [];
|
|
3479
3479
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
3480
3480
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
3481
|
-
const referencePersonalizationAttributeInputRepresentationValidationError = validate$
|
|
3481
|
+
const referencePersonalizationAttributeInputRepresentationValidationError = validate$d(untrustedConfig_attributes_item);
|
|
3482
3482
|
if (referencePersonalizationAttributeInputRepresentationValidationError === null) {
|
|
3483
3483
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
3484
3484
|
}
|
|
@@ -3719,7 +3719,7 @@ const deletePersonalizationSchemaAdapterFactory = (luvio) => {
|
|
|
3719
3719
|
};
|
|
3720
3720
|
|
|
3721
3721
|
const VERSION$7 = "d9f3a15c5177c3eb95787555a862549b";
|
|
3722
|
-
function validate$
|
|
3722
|
+
function validate$a(obj, path = 'EsModelArtifactBaseFieldRepresentation') {
|
|
3723
3723
|
const v_error = (() => {
|
|
3724
3724
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3725
3725
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3783,7 +3783,7 @@ function equals$7(existing, incoming) {
|
|
|
3783
3783
|
}
|
|
3784
3784
|
|
|
3785
3785
|
const VERSION$6 = "79dd6162ffc2c359016bab1d3ceeffab";
|
|
3786
|
-
function validate$
|
|
3786
|
+
function validate$9(obj, path = 'EsModelArtifactRepresentation') {
|
|
3787
3787
|
const v_error = (() => {
|
|
3788
3788
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3789
3789
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3811,7 +3811,7 @@ function validate$8(obj, path = 'EsModelArtifactRepresentation') {
|
|
|
3811
3811
|
for (let i = 0; i < obj_outputFields.length; i++) {
|
|
3812
3812
|
const obj_outputFields_item = obj_outputFields[i];
|
|
3813
3813
|
const path_outputFields_item = path_outputFields + '[' + i + ']';
|
|
3814
|
-
const referencepath_outputFields_itemValidationError = validate$
|
|
3814
|
+
const referencepath_outputFields_itemValidationError = validate$a(obj_outputFields_item, path_outputFields_item);
|
|
3815
3815
|
if (referencepath_outputFields_itemValidationError !== null) {
|
|
3816
3816
|
let message = 'Object doesn\'t match EsModelArtifactBaseFieldRepresentation (at "' + path_outputFields_item + '")\n';
|
|
3817
3817
|
message += referencepath_outputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3879,7 +3879,7 @@ function equals$6(existing, incoming) {
|
|
|
3879
3879
|
}
|
|
3880
3880
|
|
|
3881
3881
|
const VERSION$5 = "99ea196b2ab9f99656157ebd55e6cc5f";
|
|
3882
|
-
function validate$
|
|
3882
|
+
function validate$8(obj, path = 'PersonalizationDataMlModelInputRepresentation') {
|
|
3883
3883
|
const v_error = (() => {
|
|
3884
3884
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3885
3885
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3896,7 +3896,7 @@ function validate$7(obj, path = 'PersonalizationDataMlModelInputRepresentation')
|
|
|
3896
3896
|
}
|
|
3897
3897
|
const obj_inputField = obj.inputField;
|
|
3898
3898
|
const path_inputField = path + '.inputField';
|
|
3899
|
-
const referencepath_inputFieldValidationError = validate$
|
|
3899
|
+
const referencepath_inputFieldValidationError = validate$a(obj_inputField, path_inputField);
|
|
3900
3900
|
if (referencepath_inputFieldValidationError !== null) {
|
|
3901
3901
|
let message = 'Object doesn\'t match EsModelArtifactBaseFieldRepresentation (at "' + path_inputField + '")\n';
|
|
3902
3902
|
message += referencepath_inputFieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3962,7 +3962,7 @@ function equals$5(existing, incoming) {
|
|
|
3962
3962
|
}
|
|
3963
3963
|
|
|
3964
3964
|
const VERSION$4 = "cb759c82eb75de0d3fc203fc331385ce";
|
|
3965
|
-
function validate$
|
|
3965
|
+
function validate$7(obj, path = 'PersonalizationDataMlModelRepresentation') {
|
|
3966
3966
|
const v_error = (() => {
|
|
3967
3967
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3968
3968
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3974,7 +3974,7 @@ function validate$6(obj, path = 'PersonalizationDataMlModelRepresentation') {
|
|
|
3974
3974
|
}
|
|
3975
3975
|
const obj_esModelDefinition = obj.esModelDefinition;
|
|
3976
3976
|
const path_esModelDefinition = path + '.esModelDefinition';
|
|
3977
|
-
const referencepath_esModelDefinitionValidationError = validate$
|
|
3977
|
+
const referencepath_esModelDefinitionValidationError = validate$9(obj_esModelDefinition, path_esModelDefinition);
|
|
3978
3978
|
if (referencepath_esModelDefinitionValidationError !== null) {
|
|
3979
3979
|
let message = 'Object doesn\'t match EsModelArtifactRepresentation (at "' + path_esModelDefinition + '")\n';
|
|
3980
3980
|
message += referencepath_esModelDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4003,7 +4003,7 @@ function validate$6(obj, path = 'PersonalizationDataMlModelRepresentation') {
|
|
|
4003
4003
|
for (let i = 0; i < obj_personalizationInputs.length; i++) {
|
|
4004
4004
|
const obj_personalizationInputs_item = obj_personalizationInputs[i];
|
|
4005
4005
|
const path_personalizationInputs_item = path_personalizationInputs + '[' + i + ']';
|
|
4006
|
-
const referencepath_personalizationInputs_itemValidationError = validate$
|
|
4006
|
+
const referencepath_personalizationInputs_itemValidationError = validate$8(obj_personalizationInputs_item, path_personalizationInputs_item);
|
|
4007
4007
|
if (referencepath_personalizationInputs_itemValidationError !== null) {
|
|
4008
4008
|
let message = 'Object doesn\'t match PersonalizationDataMlModelInputRepresentation (at "' + path_personalizationInputs_item + '")\n';
|
|
4009
4009
|
message += referencepath_personalizationInputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4106,7 +4106,7 @@ function equals$4(existing, incoming) {
|
|
|
4106
4106
|
|
|
4107
4107
|
const TTL$2 = 600;
|
|
4108
4108
|
const VERSION$3 = "9dbc0875b97dc0f9ec2f23b3481be0b8";
|
|
4109
|
-
function validate$
|
|
4109
|
+
function validate$6(obj, path = 'PersonalizationDataMlModelCollectionRepresentation') {
|
|
4110
4110
|
const v_error = (() => {
|
|
4111
4111
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4112
4112
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4119,7 +4119,7 @@ function validate$5(obj, path = 'PersonalizationDataMlModelCollectionRepresentat
|
|
|
4119
4119
|
for (let i = 0; i < obj_personalizationDataMlModels.length; i++) {
|
|
4120
4120
|
const obj_personalizationDataMlModels_item = obj_personalizationDataMlModels[i];
|
|
4121
4121
|
const path_personalizationDataMlModels_item = path_personalizationDataMlModels + '[' + i + ']';
|
|
4122
|
-
const referencepath_personalizationDataMlModels_itemValidationError = validate$
|
|
4122
|
+
const referencepath_personalizationDataMlModels_itemValidationError = validate$7(obj_personalizationDataMlModels_item, path_personalizationDataMlModels_item);
|
|
4123
4123
|
if (referencepath_personalizationDataMlModels_itemValidationError !== null) {
|
|
4124
4124
|
let message = 'Object doesn\'t match PersonalizationDataMlModelRepresentation (at "' + path_personalizationDataMlModels_item + '")\n';
|
|
4125
4125
|
message += referencepath_personalizationDataMlModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4164,7 +4164,7 @@ function equals$3(existing, incoming) {
|
|
|
4164
4164
|
}
|
|
4165
4165
|
const ingest$2 = function PersonalizationDataMlModelCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4166
4166
|
if (process.env.NODE_ENV !== 'production') {
|
|
4167
|
-
const validateError = validate$
|
|
4167
|
+
const validateError = validate$6(input);
|
|
4168
4168
|
if (validateError !== null) {
|
|
4169
4169
|
throw validateError;
|
|
4170
4170
|
}
|
|
@@ -4647,7 +4647,7 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
4647
4647
|
};
|
|
4648
4648
|
|
|
4649
4649
|
const VERSION$2 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
|
|
4650
|
-
function validate$
|
|
4650
|
+
function validate$5(obj, path = 'PersonalizationRecommenderJobRepresentation') {
|
|
4651
4651
|
const v_error = (() => {
|
|
4652
4652
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4653
4653
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4820,7 +4820,7 @@ function equals$2(existing, incoming) {
|
|
|
4820
4820
|
|
|
4821
4821
|
const TTL$1 = 600;
|
|
4822
4822
|
const VERSION$1 = "2fab2250d4ed5adcbb1a5c19a64cd765";
|
|
4823
|
-
function validate$
|
|
4823
|
+
function validate$4(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
|
|
4824
4824
|
const v_error = (() => {
|
|
4825
4825
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4826
4826
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4841,7 +4841,7 @@ function validate$3(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
|
|
|
4841
4841
|
for (let i = 0; i < obj_jobs.length; i++) {
|
|
4842
4842
|
const obj_jobs_item = obj_jobs[i];
|
|
4843
4843
|
const path_jobs_item = path_jobs + '[' + i + ']';
|
|
4844
|
-
const referencepath_jobs_itemValidationError = validate$
|
|
4844
|
+
const referencepath_jobs_itemValidationError = validate$5(obj_jobs_item, path_jobs_item);
|
|
4845
4845
|
if (referencepath_jobs_itemValidationError !== null) {
|
|
4846
4846
|
let message = 'Object doesn\'t match PersonalizationRecommenderJobRepresentation (at "' + path_jobs_item + '")\n';
|
|
4847
4847
|
message += referencepath_jobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4939,7 +4939,7 @@ function equals$1(existing, incoming) {
|
|
|
4939
4939
|
}
|
|
4940
4940
|
const ingest$1 = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4941
4941
|
if (process.env.NODE_ENV !== 'production') {
|
|
4942
|
-
const validateError = validate$
|
|
4942
|
+
const validateError = validate$4(input);
|
|
4943
4943
|
if (validateError !== null) {
|
|
4944
4944
|
throw validateError;
|
|
4945
4945
|
}
|
|
@@ -5099,7 +5099,7 @@ const getTrainingHistoryAdapterFactory = (luvio) => function personalizationServ
|
|
|
5099
5099
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
5100
5100
|
};
|
|
5101
5101
|
|
|
5102
|
-
function validate$
|
|
5102
|
+
function validate$3(obj, path = 'AnchorReferenceRepresentation') {
|
|
5103
5103
|
const v_error = (() => {
|
|
5104
5104
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5105
5105
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5118,6 +5118,32 @@ function validate$2(obj, path = 'AnchorReferenceRepresentation') {
|
|
|
5118
5118
|
return v_error === undefined ? null : v_error;
|
|
5119
5119
|
}
|
|
5120
5120
|
|
|
5121
|
+
function validate$2(obj, path = 'RuleGroupInputRepresentation2') {
|
|
5122
|
+
const v_error = (() => {
|
|
5123
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5124
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5125
|
+
}
|
|
5126
|
+
const obj_operator = obj.operator;
|
|
5127
|
+
const path_operator = path + '.operator';
|
|
5128
|
+
if (typeof obj_operator !== 'string') {
|
|
5129
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
5130
|
+
}
|
|
5131
|
+
const obj_rules = obj.rules;
|
|
5132
|
+
const path_rules = path + '.rules';
|
|
5133
|
+
if (!ArrayIsArray(obj_rules)) {
|
|
5134
|
+
return new TypeError('Expected "array" but received "' + typeof obj_rules + '" (at "' + path_rules + '")');
|
|
5135
|
+
}
|
|
5136
|
+
for (let i = 0; i < obj_rules.length; i++) {
|
|
5137
|
+
const obj_rules_item = obj_rules[i];
|
|
5138
|
+
const path_rules_item = path_rules + '[' + i + ']';
|
|
5139
|
+
if (typeof obj_rules_item !== 'object' || ArrayIsArray(obj_rules_item) || obj_rules_item === null) {
|
|
5140
|
+
return new TypeError('Expected "object" but received "' + typeof obj_rules_item + '" (at "' + path_rules_item + '")');
|
|
5141
|
+
}
|
|
5142
|
+
}
|
|
5143
|
+
})();
|
|
5144
|
+
return v_error === undefined ? null : v_error;
|
|
5145
|
+
}
|
|
5146
|
+
|
|
5121
5147
|
function validate$1(obj, path = 'RuleGroupInputRepresentation') {
|
|
5122
5148
|
const v_error = (() => {
|
|
5123
5149
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5211,7 +5237,7 @@ function select$1(luvio, params) {
|
|
|
5211
5237
|
return select$2();
|
|
5212
5238
|
}
|
|
5213
5239
|
function keyBuilder$1(luvio, params) {
|
|
5214
|
-
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(',') + ']')) + '::' + (params.body.excludeFilters === undefined ?
|
|
5240
|
+
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(',') + ']')) + '::' + (params.body.excludeFilters?.operator === undefined ? 'excludeFilters.operator' : 'excludeFilters.operator:' + params.body.excludeFilters?.operator) + '::' + '[' + params.body.excludeFilters?.rules.map(element => stableJSONStringify(element)).join(',') + ']' + '::' + (params.body.includeFilters?.operator === undefined ? 'includeFilters.operator' : 'includeFilters.operator:' + params.body.includeFilters?.operator) + '::' + '[' + params.body.includeFilters?.rules.map(element => stableJSONStringify(element)).join(',') + ']' + '::' + (params.body.individualId === undefined ? 'individualId' : 'individualId:' + params.body.individualId) + ')';
|
|
5215
5241
|
}
|
|
5216
5242
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
5217
5243
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -5263,8 +5289,8 @@ const adapterName$1 = 'postPersonalizationRecommenderSimulateAction';
|
|
|
5263
5289
|
const postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata = [
|
|
5264
5290
|
generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5265
5291
|
generateParamConfigMetadata('anchors', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5266
|
-
generateParamConfigMetadata('excludeFilters', false, 2 /* Body */, 4 /* Unsupported
|
|
5267
|
-
generateParamConfigMetadata('includeFilters', false, 2 /* Body */, 4 /* Unsupported
|
|
5292
|
+
generateParamConfigMetadata('excludeFilters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5293
|
+
generateParamConfigMetadata('includeFilters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5268
5294
|
generateParamConfigMetadata('individualId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5269
5295
|
];
|
|
5270
5296
|
const postPersonalizationRecommenderSimulateAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata);
|
|
@@ -5281,7 +5307,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
5281
5307
|
const untrustedConfig_anchors_array = [];
|
|
5282
5308
|
for (let i = 0, arrayLength = untrustedConfig_anchors.length; i < arrayLength; i++) {
|
|
5283
5309
|
const untrustedConfig_anchors_item = untrustedConfig_anchors[i];
|
|
5284
|
-
const referenceAnchorReferenceRepresentationValidationError = validate$
|
|
5310
|
+
const referenceAnchorReferenceRepresentationValidationError = validate$3(untrustedConfig_anchors_item);
|
|
5285
5311
|
if (referenceAnchorReferenceRepresentationValidationError === null) {
|
|
5286
5312
|
untrustedConfig_anchors_array.push(untrustedConfig_anchors_item);
|
|
5287
5313
|
}
|
|
@@ -5289,28 +5315,14 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
5289
5315
|
config.anchors = untrustedConfig_anchors_array;
|
|
5290
5316
|
}
|
|
5291
5317
|
const untrustedConfig_excludeFilters = untrustedConfig.excludeFilters;
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
const untrustedConfig_excludeFilters_item = untrustedConfig_excludeFilters[i];
|
|
5296
|
-
const referenceRuleGroupInputRepresentationValidationError = validate$1(untrustedConfig_excludeFilters_item);
|
|
5297
|
-
if (referenceRuleGroupInputRepresentationValidationError === null) {
|
|
5298
|
-
untrustedConfig_excludeFilters_array.push(untrustedConfig_excludeFilters_item);
|
|
5299
|
-
}
|
|
5300
|
-
}
|
|
5301
|
-
config.excludeFilters = untrustedConfig_excludeFilters_array;
|
|
5318
|
+
const referenceRuleGroupInputRepresentation2ValidationError = validate$2(untrustedConfig_excludeFilters);
|
|
5319
|
+
if (referenceRuleGroupInputRepresentation2ValidationError === null) {
|
|
5320
|
+
config.excludeFilters = untrustedConfig_excludeFilters;
|
|
5302
5321
|
}
|
|
5303
5322
|
const untrustedConfig_includeFilters = untrustedConfig.includeFilters;
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
const untrustedConfig_includeFilters_item = untrustedConfig_includeFilters[i];
|
|
5308
|
-
const referenceRuleGroupInputRepresentationValidationError = validate$1(untrustedConfig_includeFilters_item);
|
|
5309
|
-
if (referenceRuleGroupInputRepresentationValidationError === null) {
|
|
5310
|
-
untrustedConfig_includeFilters_array.push(untrustedConfig_includeFilters_item);
|
|
5311
|
-
}
|
|
5312
|
-
}
|
|
5313
|
-
config.includeFilters = untrustedConfig_includeFilters_array;
|
|
5323
|
+
const referenceRuleGroupInputRepresentationValidationError = validate$1(untrustedConfig_includeFilters);
|
|
5324
|
+
if (referenceRuleGroupInputRepresentationValidationError === null) {
|
|
5325
|
+
config.includeFilters = untrustedConfig_includeFilters;
|
|
5314
5326
|
}
|
|
5315
5327
|
const untrustedConfig_individualId = untrustedConfig.individualId;
|
|
5316
5328
|
if (typeof untrustedConfig_individualId === 'string') {
|
|
@@ -5492,7 +5504,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
5492
5504
|
const untrustedConfig_decisions_array = [];
|
|
5493
5505
|
for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
|
|
5494
5506
|
const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
|
|
5495
|
-
const referencePersonalizationDecisionInputRepresentationValidationError = validate$
|
|
5507
|
+
const referencePersonalizationDecisionInputRepresentationValidationError = validate$l(untrustedConfig_decisions_item);
|
|
5496
5508
|
if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
|
|
5497
5509
|
untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
|
|
5498
5510
|
}
|
|
@@ -5682,4 +5694,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5682
5694
|
});
|
|
5683
5695
|
|
|
5684
5696
|
export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationEsModelMapping, getPersonalizationEsModelMapping_imperative, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, getTrainingHistory, getTrainingHistory_imperative, postPersonalizationRecommenderSimulateAction, postPersonalizationRecommenderSimulateAction_imperative, updatePersonalizationPoint };
|
|
5685
|
-
// version: 1.
|
|
5697
|
+
// version: 1.356.0-d412b8de3d
|
package/src/raml/api.raml
CHANGED
|
@@ -233,11 +233,31 @@ types:
|
|
|
233
233
|
BasePredicateInputRepresentation:
|
|
234
234
|
description: The right hand side against which the filter condition is checked.
|
|
235
235
|
type: object
|
|
236
|
-
properties:
|
|
236
|
+
properties:
|
|
237
|
+
type:
|
|
238
|
+
description: The type of Predicate object.
|
|
239
|
+
type: string
|
|
240
|
+
enum:
|
|
241
|
+
- Field
|
|
242
|
+
- RelatedField
|
|
243
|
+
- CalculatedInsight
|
|
244
|
+
- Segment
|
|
245
|
+
- DateOnly
|
|
246
|
+
- RelativeToNow
|
|
247
|
+
- Boolean
|
|
248
|
+
- Text
|
|
249
|
+
- Number
|
|
237
250
|
BaseRuleInputRepresentation:
|
|
238
251
|
description: Base Rule Input Representation
|
|
239
252
|
type: object
|
|
240
|
-
properties:
|
|
253
|
+
properties:
|
|
254
|
+
type:
|
|
255
|
+
description: The type of Rule object.
|
|
256
|
+
type: string
|
|
257
|
+
enum:
|
|
258
|
+
- Field
|
|
259
|
+
- RelatedField
|
|
260
|
+
- CalculatedInsight
|
|
241
261
|
CalculatedInsightPredicateInputRepresentation: #Hand-rolled issue #24 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
242
262
|
description: Calculated Insight Predicate Input Representation
|
|
243
263
|
type: object
|
|
@@ -819,16 +839,12 @@ types:
|
|
|
819
839
|
type: AnchorReferenceRepresentation
|
|
820
840
|
required: false
|
|
821
841
|
excludeFilters:
|
|
822
|
-
description: The filters being applied before rendering the recommendations.
|
|
823
|
-
type:
|
|
824
|
-
items:
|
|
825
|
-
type: RuleGroupInputRepresentation
|
|
842
|
+
description: The exclude filters being applied before rendering the recommendations.
|
|
843
|
+
type: RuleGroupInputRepresentation2
|
|
826
844
|
required: false
|
|
827
845
|
includeFilters:
|
|
828
|
-
description: The filters being applied before rendering the recommendations.
|
|
829
|
-
type:
|
|
830
|
-
items:
|
|
831
|
-
type: RuleGroupInputRepresentation
|
|
846
|
+
description: The include filters being applied before rendering the recommendations.
|
|
847
|
+
type: RuleGroupInputRepresentation
|
|
832
848
|
required: false
|
|
833
849
|
individualId:
|
|
834
850
|
description: The individual id associated to a Data Cloud profile.
|
|
@@ -1019,6 +1035,22 @@ types:
|
|
|
1019
1035
|
type: array
|
|
1020
1036
|
items:
|
|
1021
1037
|
type: object
|
|
1038
|
+
RuleGroupInputRepresentation2: #Hand-rolled - Identical to RuleGroupInputRepresentation object, both these objects need to stay in sync
|
|
1039
|
+
description: Rule Group Representation
|
|
1040
|
+
type: object
|
|
1041
|
+
properties:
|
|
1042
|
+
operator:
|
|
1043
|
+
description: The field which gives the information whether to include/exclude
|
|
1044
|
+
all the filter conditions or any one of them.
|
|
1045
|
+
type: string
|
|
1046
|
+
enum:
|
|
1047
|
+
- And
|
|
1048
|
+
- Or
|
|
1049
|
+
rules:
|
|
1050
|
+
description: The filter conditions of the recommender.
|
|
1051
|
+
type: array
|
|
1052
|
+
items:
|
|
1053
|
+
type: object
|
|
1022
1054
|
SegmentMembershipPredicateInputRepresentation: #Hand-rolled issue #24 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
1023
1055
|
description: Segment Membership Predicate Input Representation
|
|
1024
1056
|
type: object
|