@salesforce/lds-adapters-cdp-personalization-service 1.354.0-dev12 → 1.354.0-dev13
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 +301 -171
- package/dist/es/es2018/types/src/generated/adapters/getPersonalizationEsModelMapping.d.ts +8 -6
- package/dist/es/es2018/types/src/generated/resources/{getPersonalizationEinsteinStudioModelMapping.d.ts → getPersonalizationDataMlModels.d.ts} +4 -2
- package/dist/es/es2018/types/src/generated/types/PersonalizationDataMlModelInputFeatureRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/PersonalizationDataMlModelRepresentation.d.ts +28 -15
- package/package.json +3 -3
- package/sfdc/index.js +257 -127
- package/src/raml/api.raml +62 -14
- package/src/raml/luvio.raml +1 -1
package/sfdc/index.js
CHANGED
|
@@ -102,7 +102,7 @@ function createLink(ref) {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
function validate$
|
|
105
|
+
function validate$k(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
|
|
106
106
|
const v_error = (() => {
|
|
107
107
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
108
108
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -193,7 +193,7 @@ function validate$j(obj, path = 'PersonalizationAttributeValueInputRepresentatio
|
|
|
193
193
|
return v_error === undefined ? null : v_error;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
function validate$
|
|
196
|
+
function validate$j(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
197
197
|
const v_error = (() => {
|
|
198
198
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
199
199
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -207,7 +207,7 @@ function validate$i(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
|
207
207
|
for (let i = 0; i < obj_attributeValues.length; i++) {
|
|
208
208
|
const obj_attributeValues_item = obj_attributeValues[i];
|
|
209
209
|
const path_attributeValues_item = path_attributeValues + '[' + i + ']';
|
|
210
|
-
const referencepath_attributeValues_itemValidationError = validate$
|
|
210
|
+
const referencepath_attributeValues_itemValidationError = validate$k(obj_attributeValues_item, path_attributeValues_item);
|
|
211
211
|
if (referencepath_attributeValues_itemValidationError !== null) {
|
|
212
212
|
let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
|
|
213
213
|
message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -381,8 +381,8 @@ function validate$i(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
|
381
381
|
return v_error === undefined ? null : v_error;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
const VERSION$
|
|
385
|
-
function validate$
|
|
384
|
+
const VERSION$c = "52ea9c14b7a747a28cedbcff0e7ab169";
|
|
385
|
+
function validate$i(obj, path = 'PersonalizationAttributeValueRepresentation') {
|
|
386
386
|
const v_error = (() => {
|
|
387
387
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
388
388
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -468,10 +468,10 @@ function validate$h(obj, path = 'PersonalizationAttributeValueRepresentation') {
|
|
|
468
468
|
})();
|
|
469
469
|
return v_error === undefined ? null : v_error;
|
|
470
470
|
}
|
|
471
|
-
const select$
|
|
471
|
+
const select$k = function PersonalizationAttributeValueRepresentationSelect() {
|
|
472
472
|
return {
|
|
473
473
|
kind: 'Fragment',
|
|
474
|
-
version: VERSION$
|
|
474
|
+
version: VERSION$c,
|
|
475
475
|
private: [],
|
|
476
476
|
selections: [
|
|
477
477
|
{
|
|
@@ -489,7 +489,7 @@ const select$j = function PersonalizationAttributeValueRepresentationSelect() {
|
|
|
489
489
|
]
|
|
490
490
|
};
|
|
491
491
|
};
|
|
492
|
-
function equals$
|
|
492
|
+
function equals$c(existing, incoming) {
|
|
493
493
|
const existing_attributeEnum = existing.attributeEnum;
|
|
494
494
|
const incoming_attributeEnum = incoming.attributeEnum;
|
|
495
495
|
if (!(existing_attributeEnum === incoming_attributeEnum)) {
|
|
@@ -508,7 +508,7 @@ function equals$b(existing, incoming) {
|
|
|
508
508
|
return true;
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
-
function validate$
|
|
511
|
+
function validate$h(obj, path = 'FiltersWrapRepresentation') {
|
|
512
512
|
const v_error = (() => {
|
|
513
513
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
514
514
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -587,7 +587,7 @@ function validate$g(obj, path = 'FiltersWrapRepresentation') {
|
|
|
587
587
|
return v_error === undefined ? null : v_error;
|
|
588
588
|
}
|
|
589
589
|
|
|
590
|
-
function validate$
|
|
590
|
+
function validate$g(obj, path = 'SubjectRepresentation') {
|
|
591
591
|
const v_error = (() => {
|
|
592
592
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
593
593
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -706,8 +706,8 @@ function validate$f(obj, path = 'SubjectRepresentation') {
|
|
|
706
706
|
return v_error === undefined ? null : v_error;
|
|
707
707
|
}
|
|
708
708
|
|
|
709
|
-
const VERSION$
|
|
710
|
-
function validate$
|
|
709
|
+
const VERSION$b = "089c2877ffa367e376fe74f8d358ffa8";
|
|
710
|
+
function validate$f(obj, path = 'FilterRepresentation') {
|
|
711
711
|
const v_error = (() => {
|
|
712
712
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
713
713
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -745,7 +745,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
|
|
|
745
745
|
const path_comparison = path + '.comparison';
|
|
746
746
|
let obj_comparison_union0 = null;
|
|
747
747
|
const obj_comparison_union0_error = (() => {
|
|
748
|
-
const referencepath_comparisonValidationError = validate$
|
|
748
|
+
const referencepath_comparisonValidationError = validate$f(obj_comparison, path_comparison);
|
|
749
749
|
if (referencepath_comparisonValidationError !== null) {
|
|
750
750
|
let message = 'Object doesn\'t match FilterRepresentation (at "' + path_comparison + '")\n';
|
|
751
751
|
message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -776,7 +776,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
|
|
|
776
776
|
const path_filter = path + '.filter';
|
|
777
777
|
let obj_filter_union0 = null;
|
|
778
778
|
const obj_filter_union0_error = (() => {
|
|
779
|
-
const referencepath_filterValidationError = validate$
|
|
779
|
+
const referencepath_filterValidationError = validate$h(obj_filter, path_filter);
|
|
780
780
|
if (referencepath_filterValidationError !== null) {
|
|
781
781
|
let message = 'Object doesn\'t match FiltersWrapRepresentation (at "' + path_filter + '")\n';
|
|
782
782
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -813,7 +813,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
|
|
|
813
813
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
814
814
|
let obj_filters_item_union0 = null;
|
|
815
815
|
const obj_filters_item_union0_error = (() => {
|
|
816
|
-
const referencepath_filters_itemValidationError = validate$
|
|
816
|
+
const referencepath_filters_itemValidationError = validate$f(obj_filters_item, path_filters_item);
|
|
817
817
|
if (referencepath_filters_itemValidationError !== null) {
|
|
818
818
|
let message = 'Object doesn\'t match FilterRepresentation (at "' + path_filters_item + '")\n';
|
|
819
819
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -873,7 +873,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
|
|
|
873
873
|
const path_metric = path + '.metric';
|
|
874
874
|
let obj_metric_union0 = null;
|
|
875
875
|
const obj_metric_union0_error = (() => {
|
|
876
|
-
const referencepath_metricValidationError = validate$
|
|
876
|
+
const referencepath_metricValidationError = validate$g(obj_metric, path_metric);
|
|
877
877
|
if (referencepath_metricValidationError !== null) {
|
|
878
878
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
|
|
879
879
|
message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -942,7 +942,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
|
|
|
942
942
|
for (let i = 0; i < obj_path_item.length; i++) {
|
|
943
943
|
const obj_path_item_item = obj_path_item[i];
|
|
944
944
|
const path_path_item_item = path_path_item + '[' + i + ']';
|
|
945
|
-
const referencepath_path_item_itemValidationError = validate$
|
|
945
|
+
const referencepath_path_item_itemValidationError = validate$g(obj_path_item_item, path_path_item_item);
|
|
946
946
|
if (referencepath_path_item_itemValidationError !== null) {
|
|
947
947
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_path_item_item + '")\n';
|
|
948
948
|
message += referencepath_path_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1040,7 +1040,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
|
|
|
1040
1040
|
const path_subject = path + '.subject';
|
|
1041
1041
|
let obj_subject_union0 = null;
|
|
1042
1042
|
const obj_subject_union0_error = (() => {
|
|
1043
|
-
const referencepath_subjectValidationError = validate$
|
|
1043
|
+
const referencepath_subjectValidationError = validate$g(obj_subject, path_subject);
|
|
1044
1044
|
if (referencepath_subjectValidationError !== null) {
|
|
1045
1045
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_subject + '")\n';
|
|
1046
1046
|
message += referencepath_subjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1143,15 +1143,15 @@ const RepresentationType$7 = 'FilterRepresentation';
|
|
|
1143
1143
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
1144
1144
|
return input;
|
|
1145
1145
|
}
|
|
1146
|
-
const select$
|
|
1146
|
+
const select$j = function FilterRepresentationSelect() {
|
|
1147
1147
|
return {
|
|
1148
1148
|
kind: 'Fragment',
|
|
1149
|
-
version: VERSION$
|
|
1149
|
+
version: VERSION$b,
|
|
1150
1150
|
private: [],
|
|
1151
1151
|
opaque: true
|
|
1152
1152
|
};
|
|
1153
1153
|
};
|
|
1154
|
-
function equals$
|
|
1154
|
+
function equals$b(existing, incoming) {
|
|
1155
1155
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1156
1156
|
return false;
|
|
1157
1157
|
}
|
|
@@ -1159,14 +1159,14 @@ function equals$a(existing, incoming) {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
const ingest$7 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1161
1161
|
if (process.env.NODE_ENV !== 'production') {
|
|
1162
|
-
const validateError = validate$
|
|
1162
|
+
const validateError = validate$f(input);
|
|
1163
1163
|
if (validateError !== null) {
|
|
1164
1164
|
throw validateError;
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
1167
|
const key = path.fullPath;
|
|
1168
1168
|
const ttlToUse = path.ttl;
|
|
1169
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$
|
|
1169
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$b, RepresentationType$7, equals$b);
|
|
1170
1170
|
return createLink(key);
|
|
1171
1171
|
};
|
|
1172
1172
|
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1179,8 +1179,8 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1179
1179
|
});
|
|
1180
1180
|
}
|
|
1181
1181
|
|
|
1182
|
-
const VERSION$
|
|
1183
|
-
function validate$
|
|
1182
|
+
const VERSION$a = "ea475f10b4c028f8b97a44af1cf0be14";
|
|
1183
|
+
function validate$e(obj, path = 'CriteriaRepresentation') {
|
|
1184
1184
|
const v_error = (() => {
|
|
1185
1185
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1186
1186
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1230,17 +1230,17 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
return input;
|
|
1232
1232
|
}
|
|
1233
|
-
const select$
|
|
1233
|
+
const select$i = function CriteriaRepresentationSelect() {
|
|
1234
1234
|
return {
|
|
1235
1235
|
kind: 'Fragment',
|
|
1236
|
-
version: VERSION$
|
|
1236
|
+
version: VERSION$a,
|
|
1237
1237
|
private: [],
|
|
1238
1238
|
selections: [
|
|
1239
1239
|
{
|
|
1240
1240
|
name: 'filters',
|
|
1241
1241
|
kind: 'Link',
|
|
1242
1242
|
plural: true,
|
|
1243
|
-
fragment: select$
|
|
1243
|
+
fragment: select$j()
|
|
1244
1244
|
},
|
|
1245
1245
|
{
|
|
1246
1246
|
name: 'operator',
|
|
@@ -1253,7 +1253,7 @@ const select$h = function CriteriaRepresentationSelect() {
|
|
|
1253
1253
|
]
|
|
1254
1254
|
};
|
|
1255
1255
|
};
|
|
1256
|
-
function equals$
|
|
1256
|
+
function equals$a(existing, incoming) {
|
|
1257
1257
|
const existing_operator = existing.operator;
|
|
1258
1258
|
const incoming_operator = incoming.operator;
|
|
1259
1259
|
if (!(existing_operator === incoming_operator)) {
|
|
@@ -1278,14 +1278,14 @@ function equals$9(existing, incoming) {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
const ingest$6 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1280
1280
|
if (process.env.NODE_ENV !== 'production') {
|
|
1281
|
-
const validateError = validate$
|
|
1281
|
+
const validateError = validate$e(input);
|
|
1282
1282
|
if (validateError !== null) {
|
|
1283
1283
|
throw validateError;
|
|
1284
1284
|
}
|
|
1285
1285
|
}
|
|
1286
1286
|
const key = path.fullPath;
|
|
1287
1287
|
const ttlToUse = path.ttl;
|
|
1288
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$
|
|
1288
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$a, RepresentationType$6, equals$a);
|
|
1289
1289
|
return createLink(key);
|
|
1290
1290
|
};
|
|
1291
1291
|
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1302,8 +1302,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
1304
|
|
|
1305
|
-
const VERSION$
|
|
1306
|
-
function validate$
|
|
1305
|
+
const VERSION$9 = "265767af783b296f5f902d6ed447b168";
|
|
1306
|
+
function validate$d(obj, path = 'PersonalizationDecisionRepresentation') {
|
|
1307
1307
|
const v_error = (() => {
|
|
1308
1308
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1309
1309
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1316,7 +1316,7 @@ function validate$c(obj, path = 'PersonalizationDecisionRepresentation') {
|
|
|
1316
1316
|
for (let i = 0; i < obj_attributeValues.length; i++) {
|
|
1317
1317
|
const obj_attributeValues_item = obj_attributeValues[i];
|
|
1318
1318
|
const path_attributeValues_item = path_attributeValues + '[' + i + ']';
|
|
1319
|
-
const referencepath_attributeValues_itemValidationError = validate$
|
|
1319
|
+
const referencepath_attributeValues_itemValidationError = validate$i(obj_attributeValues_item, path_attributeValues_item);
|
|
1320
1320
|
if (referencepath_attributeValues_itemValidationError !== null) {
|
|
1321
1321
|
let message = 'Object doesn\'t match PersonalizationAttributeValueRepresentation (at "' + path_attributeValues_item + '")\n';
|
|
1322
1322
|
message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1656,11 +1656,11 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
1656
1656
|
}
|
|
1657
1657
|
return input;
|
|
1658
1658
|
}
|
|
1659
|
-
const select$
|
|
1660
|
-
const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$
|
|
1659
|
+
const select$h = function PersonalizationDecisionRepresentationSelect() {
|
|
1660
|
+
const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$k();
|
|
1661
1661
|
return {
|
|
1662
1662
|
kind: 'Fragment',
|
|
1663
|
-
version: VERSION$
|
|
1663
|
+
version: VERSION$9,
|
|
1664
1664
|
private: [],
|
|
1665
1665
|
selections: [
|
|
1666
1666
|
{
|
|
@@ -1681,7 +1681,7 @@ const select$g = function PersonalizationDecisionRepresentationSelect() {
|
|
|
1681
1681
|
name: 'criteria',
|
|
1682
1682
|
kind: 'Link',
|
|
1683
1683
|
nullable: true,
|
|
1684
|
-
fragment: select$
|
|
1684
|
+
fragment: select$i()
|
|
1685
1685
|
},
|
|
1686
1686
|
{
|
|
1687
1687
|
name: 'description',
|
|
@@ -1722,11 +1722,11 @@ const select$g = function PersonalizationDecisionRepresentationSelect() {
|
|
|
1722
1722
|
]
|
|
1723
1723
|
};
|
|
1724
1724
|
};
|
|
1725
|
-
function equals$
|
|
1725
|
+
function equals$9(existing, incoming) {
|
|
1726
1726
|
const existing_attributeValues = existing.attributeValues;
|
|
1727
1727
|
const incoming_attributeValues = incoming.attributeValues;
|
|
1728
1728
|
const equals_attributeValues_items = equalsArray(existing_attributeValues, incoming_attributeValues, (existing_attributeValues_item, incoming_attributeValues_item) => {
|
|
1729
|
-
if (!(equals$
|
|
1729
|
+
if (!(equals$c(existing_attributeValues_item, incoming_attributeValues_item))) {
|
|
1730
1730
|
return false;
|
|
1731
1731
|
}
|
|
1732
1732
|
});
|
|
@@ -1802,14 +1802,14 @@ function equals$8(existing, incoming) {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
const ingest$5 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1804
1804
|
if (process.env.NODE_ENV !== 'production') {
|
|
1805
|
-
const validateError = validate$
|
|
1805
|
+
const validateError = validate$d(input);
|
|
1806
1806
|
if (validateError !== null) {
|
|
1807
1807
|
throw validateError;
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
1810
1810
|
const key = path.fullPath;
|
|
1811
1811
|
const ttlToUse = path.ttl;
|
|
1812
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$
|
|
1812
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$9, RepresentationType$5, equals$9);
|
|
1813
1813
|
return createLink(key);
|
|
1814
1814
|
};
|
|
1815
1815
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1826,8 +1826,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
|
|
1828
1828
|
const TTL$4 = 600;
|
|
1829
|
-
const VERSION$
|
|
1830
|
-
function validate$
|
|
1829
|
+
const VERSION$8 = "e5643ca13ef54c890c9177275a053de3";
|
|
1830
|
+
function validate$c(obj, path = 'PersonalizationPointRepresentation') {
|
|
1831
1831
|
const v_error = (() => {
|
|
1832
1832
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1833
1833
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2333,10 +2333,10 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
2333
2333
|
}
|
|
2334
2334
|
return input;
|
|
2335
2335
|
}
|
|
2336
|
-
const select$
|
|
2336
|
+
const select$g = function PersonalizationPointRepresentationSelect() {
|
|
2337
2337
|
return {
|
|
2338
2338
|
kind: 'Fragment',
|
|
2339
|
-
version: VERSION$
|
|
2339
|
+
version: VERSION$8,
|
|
2340
2340
|
private: [],
|
|
2341
2341
|
selections: [
|
|
2342
2342
|
{
|
|
@@ -2359,7 +2359,7 @@ const select$f = function PersonalizationPointRepresentationSelect() {
|
|
|
2359
2359
|
name: 'decisions',
|
|
2360
2360
|
kind: 'Link',
|
|
2361
2361
|
plural: true,
|
|
2362
|
-
fragment: select$
|
|
2362
|
+
fragment: select$h()
|
|
2363
2363
|
},
|
|
2364
2364
|
{
|
|
2365
2365
|
name: 'description',
|
|
@@ -2428,7 +2428,7 @@ const select$f = function PersonalizationPointRepresentationSelect() {
|
|
|
2428
2428
|
]
|
|
2429
2429
|
};
|
|
2430
2430
|
};
|
|
2431
|
-
function equals$
|
|
2431
|
+
function equals$8(existing, incoming) {
|
|
2432
2432
|
const existing_isAuthenticationRequired = existing.isAuthenticationRequired;
|
|
2433
2433
|
const incoming_isAuthenticationRequired = incoming.isAuthenticationRequired;
|
|
2434
2434
|
if (!(existing_isAuthenticationRequired === incoming_isAuthenticationRequired)) {
|
|
@@ -2543,14 +2543,14 @@ function equals$7(existing, incoming) {
|
|
|
2543
2543
|
}
|
|
2544
2544
|
const ingest$4 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2545
2545
|
if (process.env.NODE_ENV !== 'production') {
|
|
2546
|
-
const validateError = validate$
|
|
2546
|
+
const validateError = validate$c(input);
|
|
2547
2547
|
if (validateError !== null) {
|
|
2548
2548
|
throw validateError;
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
2551
2551
|
const key = keyBuilderFromType$1(luvio, input);
|
|
2552
2552
|
const ttlToUse = TTL$4;
|
|
2553
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$
|
|
2553
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$8, RepresentationType$4, equals$8);
|
|
2554
2554
|
return createLink(key);
|
|
2555
2555
|
};
|
|
2556
2556
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2567,8 +2567,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2567
2567
|
}
|
|
2568
2568
|
}
|
|
2569
2569
|
|
|
2570
|
-
function select$
|
|
2571
|
-
return select$
|
|
2570
|
+
function select$f(luvio, params) {
|
|
2571
|
+
return select$g();
|
|
2572
2572
|
}
|
|
2573
2573
|
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
2574
2574
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
@@ -2579,7 +2579,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
2579
2579
|
luvio.storeIngest(key, ingest$4, body);
|
|
2580
2580
|
const snapshot = luvio.storeLookup({
|
|
2581
2581
|
recordId: key,
|
|
2582
|
-
node: select$
|
|
2582
|
+
node: select$f(),
|
|
2583
2583
|
variables: {},
|
|
2584
2584
|
});
|
|
2585
2585
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2666,7 +2666,7 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
2666
2666
|
const untrustedConfig_decisions_array = [];
|
|
2667
2667
|
for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
|
|
2668
2668
|
const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
|
|
2669
|
-
const referencePersonalizationDecisionInputRepresentationValidationError = validate$
|
|
2669
|
+
const referencePersonalizationDecisionInputRepresentationValidationError = validate$j(untrustedConfig_decisions_item);
|
|
2670
2670
|
if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
|
|
2671
2671
|
untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
|
|
2672
2672
|
}
|
|
@@ -2759,7 +2759,7 @@ const createPersonalizationPointAdapterFactory = (luvio) => {
|
|
|
2759
2759
|
};
|
|
2760
2760
|
};
|
|
2761
2761
|
|
|
2762
|
-
function validate$
|
|
2762
|
+
function validate$b(obj, path = 'PersonalizationAttributeInputRepresentation') {
|
|
2763
2763
|
const v_error = (() => {
|
|
2764
2764
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2765
2765
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2806,8 +2806,8 @@ function validate$a(obj, path = 'PersonalizationAttributeInputRepresentation') {
|
|
|
2806
2806
|
return v_error === undefined ? null : v_error;
|
|
2807
2807
|
}
|
|
2808
2808
|
|
|
2809
|
-
const VERSION$
|
|
2810
|
-
function validate$
|
|
2809
|
+
const VERSION$7 = "014064b188ff923423af6301d64be36a";
|
|
2810
|
+
function validate$a(obj, path = 'PersonalizationAttributeRepresentation') {
|
|
2811
2811
|
const v_error = (() => {
|
|
2812
2812
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2813
2813
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2902,10 +2902,10 @@ function validate$9(obj, path = 'PersonalizationAttributeRepresentation') {
|
|
|
2902
2902
|
})();
|
|
2903
2903
|
return v_error === undefined ? null : v_error;
|
|
2904
2904
|
}
|
|
2905
|
-
const select$
|
|
2905
|
+
const select$e = function PersonalizationAttributeRepresentationSelect() {
|
|
2906
2906
|
return {
|
|
2907
2907
|
kind: 'Fragment',
|
|
2908
|
-
version: VERSION$
|
|
2908
|
+
version: VERSION$7,
|
|
2909
2909
|
private: [],
|
|
2910
2910
|
selections: [
|
|
2911
2911
|
{
|
|
@@ -2947,7 +2947,7 @@ const select$d = function PersonalizationAttributeRepresentationSelect() {
|
|
|
2947
2947
|
]
|
|
2948
2948
|
};
|
|
2949
2949
|
};
|
|
2950
|
-
function equals$
|
|
2950
|
+
function equals$7(existing, incoming) {
|
|
2951
2951
|
const existing_createdById = existing.createdById;
|
|
2952
2952
|
const incoming_createdById = incoming.createdById;
|
|
2953
2953
|
if (!(existing_createdById === incoming_createdById)) {
|
|
@@ -2997,8 +2997,8 @@ function equals$6(existing, incoming) {
|
|
|
2997
2997
|
}
|
|
2998
2998
|
|
|
2999
2999
|
const TTL$3 = 600;
|
|
3000
|
-
const VERSION$
|
|
3001
|
-
function validate$
|
|
3000
|
+
const VERSION$6 = "25740f87643de6fdae570c77bbec7377";
|
|
3001
|
+
function validate$9(obj, path = 'PersonalizationSchemaRepresentation') {
|
|
3002
3002
|
const v_error = (() => {
|
|
3003
3003
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3004
3004
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3011,7 +3011,7 @@ function validate$8(obj, path = 'PersonalizationSchemaRepresentation') {
|
|
|
3011
3011
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
3012
3012
|
const obj_attributes_item = obj_attributes[i];
|
|
3013
3013
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
3014
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
3014
|
+
const referencepath_attributes_itemValidationError = validate$a(obj_attributes_item, path_attributes_item);
|
|
3015
3015
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
3016
3016
|
let message = 'Object doesn\'t match PersonalizationAttributeRepresentation (at "' + path_attributes_item + '")\n';
|
|
3017
3017
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3169,11 +3169,11 @@ function keyBuilderFromType(luvio, object) {
|
|
|
3169
3169
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
3170
3170
|
return input;
|
|
3171
3171
|
}
|
|
3172
|
-
const select$
|
|
3173
|
-
const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$
|
|
3172
|
+
const select$d = function PersonalizationSchemaRepresentationSelect() {
|
|
3173
|
+
const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$e();
|
|
3174
3174
|
return {
|
|
3175
3175
|
kind: 'Fragment',
|
|
3176
|
-
version: VERSION$
|
|
3176
|
+
version: VERSION$6,
|
|
3177
3177
|
private: [],
|
|
3178
3178
|
selections: [
|
|
3179
3179
|
{
|
|
@@ -3238,7 +3238,7 @@ const select$c = function PersonalizationSchemaRepresentationSelect() {
|
|
|
3238
3238
|
]
|
|
3239
3239
|
};
|
|
3240
3240
|
};
|
|
3241
|
-
function equals$
|
|
3241
|
+
function equals$6(existing, incoming) {
|
|
3242
3242
|
const existing_createdById = existing.createdById;
|
|
3243
3243
|
const incoming_createdById = incoming.createdById;
|
|
3244
3244
|
if (!(existing_createdById === incoming_createdById)) {
|
|
@@ -3292,7 +3292,7 @@ function equals$5(existing, incoming) {
|
|
|
3292
3292
|
const existing_attributes = existing.attributes;
|
|
3293
3293
|
const incoming_attributes = incoming.attributes;
|
|
3294
3294
|
const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
|
|
3295
|
-
if (!(equals$
|
|
3295
|
+
if (!(equals$7(existing_attributes_item, incoming_attributes_item))) {
|
|
3296
3296
|
return false;
|
|
3297
3297
|
}
|
|
3298
3298
|
});
|
|
@@ -3323,14 +3323,14 @@ function equals$5(existing, incoming) {
|
|
|
3323
3323
|
}
|
|
3324
3324
|
const ingest$3 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3325
3325
|
if (process.env.NODE_ENV !== 'production') {
|
|
3326
|
-
const validateError = validate$
|
|
3326
|
+
const validateError = validate$9(input);
|
|
3327
3327
|
if (validateError !== null) {
|
|
3328
3328
|
throw validateError;
|
|
3329
3329
|
}
|
|
3330
3330
|
}
|
|
3331
3331
|
const key = keyBuilderFromType(luvio, input);
|
|
3332
3332
|
const ttlToUse = TTL$3;
|
|
3333
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$
|
|
3333
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$6, RepresentationType$3, equals$6);
|
|
3334
3334
|
return createLink(key);
|
|
3335
3335
|
};
|
|
3336
3336
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -3343,8 +3343,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3343
3343
|
});
|
|
3344
3344
|
}
|
|
3345
3345
|
|
|
3346
|
-
function select$
|
|
3347
|
-
return select$
|
|
3346
|
+
function select$c(luvio, params) {
|
|
3347
|
+
return select$d();
|
|
3348
3348
|
}
|
|
3349
3349
|
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
3350
3350
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
@@ -3355,7 +3355,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
3355
3355
|
luvio.storeIngest(key, ingest$3, body);
|
|
3356
3356
|
const snapshot = luvio.storeLookup({
|
|
3357
3357
|
recordId: key,
|
|
3358
|
-
node: select$
|
|
3358
|
+
node: select$c(),
|
|
3359
3359
|
variables: {},
|
|
3360
3360
|
});
|
|
3361
3361
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3422,7 +3422,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
3422
3422
|
const untrustedConfig_attributes_array = [];
|
|
3423
3423
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
3424
3424
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
3425
|
-
const referencePersonalizationAttributeInputRepresentationValidationError = validate$
|
|
3425
|
+
const referencePersonalizationAttributeInputRepresentationValidationError = validate$b(untrustedConfig_attributes_item);
|
|
3426
3426
|
if (referencePersonalizationAttributeInputRepresentationValidationError === null) {
|
|
3427
3427
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
3428
3428
|
}
|
|
@@ -3662,92 +3662,220 @@ const deletePersonalizationSchemaAdapterFactory = (luvio) => {
|
|
|
3662
3662
|
};
|
|
3663
3663
|
};
|
|
3664
3664
|
|
|
3665
|
-
const VERSION$
|
|
3666
|
-
function validate$
|
|
3665
|
+
const VERSION$5 = "e68c48ce57702a3f1e8ca445bbbcbbcf";
|
|
3666
|
+
function validate$8(obj, path = 'PersonalizationDataMlModelInputFeatureRepresentation') {
|
|
3667
3667
|
const v_error = (() => {
|
|
3668
3668
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3669
3669
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3670
3670
|
}
|
|
3671
|
-
const
|
|
3672
|
-
const
|
|
3673
|
-
if (
|
|
3674
|
-
return new TypeError('Expected "
|
|
3671
|
+
const obj_inputField = obj.inputField;
|
|
3672
|
+
const path_inputField = path + '.inputField';
|
|
3673
|
+
if (obj_inputField === undefined) {
|
|
3674
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_inputField + '" (at "' + path_inputField + '")');
|
|
3675
|
+
}
|
|
3676
|
+
const obj_personalizationField = obj.personalizationField;
|
|
3677
|
+
const path_personalizationField = path + '.personalizationField';
|
|
3678
|
+
if (obj_personalizationField === undefined) {
|
|
3679
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_personalizationField + '" (at "' + path_personalizationField + '")');
|
|
3675
3680
|
}
|
|
3676
|
-
const
|
|
3677
|
-
const
|
|
3678
|
-
if (typeof
|
|
3679
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
3681
|
+
const obj_type = obj.type;
|
|
3682
|
+
const path_type = path + '.type';
|
|
3683
|
+
if (typeof obj_type !== 'string') {
|
|
3684
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3680
3685
|
}
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3686
|
+
})();
|
|
3687
|
+
return v_error === undefined ? null : v_error;
|
|
3688
|
+
}
|
|
3689
|
+
const select$b = function PersonalizationDataMlModelInputFeatureRepresentationSelect() {
|
|
3690
|
+
return {
|
|
3691
|
+
kind: 'Fragment',
|
|
3692
|
+
version: VERSION$5,
|
|
3693
|
+
private: [],
|
|
3694
|
+
selections: [
|
|
3695
|
+
{
|
|
3696
|
+
name: 'inputField',
|
|
3697
|
+
kind: 'Object',
|
|
3698
|
+
// any
|
|
3699
|
+
},
|
|
3700
|
+
{
|
|
3701
|
+
name: 'personalizationField',
|
|
3702
|
+
kind: 'Object',
|
|
3703
|
+
// any
|
|
3704
|
+
},
|
|
3705
|
+
{
|
|
3706
|
+
name: 'type',
|
|
3707
|
+
kind: 'Scalar'
|
|
3708
|
+
}
|
|
3709
|
+
]
|
|
3710
|
+
};
|
|
3711
|
+
};
|
|
3712
|
+
function equals$5(existing, incoming) {
|
|
3713
|
+
const existing_type = existing.type;
|
|
3714
|
+
const incoming_type = incoming.type;
|
|
3715
|
+
if (!(existing_type === incoming_type)) {
|
|
3716
|
+
return false;
|
|
3717
|
+
}
|
|
3718
|
+
const existing_inputField = existing.inputField;
|
|
3719
|
+
const incoming_inputField = incoming.inputField;
|
|
3720
|
+
if (JSONStringify(incoming_inputField) !== JSONStringify(existing_inputField)) {
|
|
3721
|
+
return false;
|
|
3722
|
+
}
|
|
3723
|
+
const existing_personalizationField = existing.personalizationField;
|
|
3724
|
+
const incoming_personalizationField = incoming.personalizationField;
|
|
3725
|
+
if (JSONStringify(incoming_personalizationField) !== JSONStringify(existing_personalizationField)) {
|
|
3726
|
+
return false;
|
|
3727
|
+
}
|
|
3728
|
+
return true;
|
|
3729
|
+
}
|
|
3730
|
+
|
|
3731
|
+
const VERSION$4 = "eb7b70de2adf54962bc3f5d15a259ca4";
|
|
3732
|
+
function validate$7(obj, path = 'PersonalizationDataMlModelRepresentation') {
|
|
3733
|
+
const v_error = (() => {
|
|
3734
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3735
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3685
3736
|
}
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3737
|
+
const obj_dataMlModelInputs = obj.dataMlModelInputs;
|
|
3738
|
+
const path_dataMlModelInputs = path + '.dataMlModelInputs';
|
|
3739
|
+
if (!ArrayIsArray(obj_dataMlModelInputs)) {
|
|
3740
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dataMlModelInputs + '" (at "' + path_dataMlModelInputs + '")');
|
|
3741
|
+
}
|
|
3742
|
+
for (let i = 0; i < obj_dataMlModelInputs.length; i++) {
|
|
3743
|
+
const obj_dataMlModelInputs_item = obj_dataMlModelInputs[i];
|
|
3744
|
+
const path_dataMlModelInputs_item = path_dataMlModelInputs + '[' + i + ']';
|
|
3745
|
+
const referencepath_dataMlModelInputs_itemValidationError = validate$8(obj_dataMlModelInputs_item, path_dataMlModelInputs_item);
|
|
3746
|
+
if (referencepath_dataMlModelInputs_itemValidationError !== null) {
|
|
3747
|
+
let message = 'Object doesn\'t match PersonalizationDataMlModelInputFeatureRepresentation (at "' + path_dataMlModelInputs_item + '")\n';
|
|
3748
|
+
message += referencepath_dataMlModelInputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3749
|
+
return new TypeError(message);
|
|
3691
3750
|
}
|
|
3692
3751
|
}
|
|
3693
|
-
const
|
|
3694
|
-
const
|
|
3695
|
-
if (typeof
|
|
3696
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
3752
|
+
const obj_dataSpaceName = obj.dataSpaceName;
|
|
3753
|
+
const path_dataSpaceName = path + '.dataSpaceName';
|
|
3754
|
+
if (typeof obj_dataSpaceName !== 'string') {
|
|
3755
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
|
|
3756
|
+
}
|
|
3757
|
+
const obj_id = obj.id;
|
|
3758
|
+
const path_id = path + '.id';
|
|
3759
|
+
if (typeof obj_id !== 'string') {
|
|
3760
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3761
|
+
}
|
|
3762
|
+
const obj_label = obj.label;
|
|
3763
|
+
const path_label = path + '.label';
|
|
3764
|
+
if (typeof obj_label !== 'string') {
|
|
3765
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
3766
|
+
}
|
|
3767
|
+
const obj_mlConfiguredModel = obj.mlConfiguredModel;
|
|
3768
|
+
const path_mlConfiguredModel = path + '.mlConfiguredModel';
|
|
3769
|
+
if (obj_mlConfiguredModel === undefined) {
|
|
3770
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_mlConfiguredModel + '" (at "' + path_mlConfiguredModel + '")');
|
|
3771
|
+
}
|
|
3772
|
+
const obj_name = obj.name;
|
|
3773
|
+
const path_name = path + '.name';
|
|
3774
|
+
if (typeof obj_name !== 'string') {
|
|
3775
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3776
|
+
}
|
|
3777
|
+
const obj_profileDataGraphName = obj.profileDataGraphName;
|
|
3778
|
+
const path_profileDataGraphName = path + '.profileDataGraphName';
|
|
3779
|
+
if (typeof obj_profileDataGraphName !== 'string') {
|
|
3780
|
+
return new TypeError('Expected "string" but received "' + typeof obj_profileDataGraphName + '" (at "' + path_profileDataGraphName + '")');
|
|
3781
|
+
}
|
|
3782
|
+
const obj_status = obj.status;
|
|
3783
|
+
const path_status = path + '.status';
|
|
3784
|
+
if (typeof obj_status !== 'string') {
|
|
3785
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
3697
3786
|
}
|
|
3698
3787
|
})();
|
|
3699
3788
|
return v_error === undefined ? null : v_error;
|
|
3700
3789
|
}
|
|
3701
3790
|
const select$a = function PersonalizationDataMlModelRepresentationSelect() {
|
|
3791
|
+
const { selections: PersonalizationDataMlModelInputFeatureRepresentation__selections, opaque: PersonalizationDataMlModelInputFeatureRepresentation__opaque, } = select$b();
|
|
3702
3792
|
return {
|
|
3703
3793
|
kind: 'Fragment',
|
|
3704
3794
|
version: VERSION$4,
|
|
3705
3795
|
private: [],
|
|
3706
3796
|
selections: [
|
|
3707
3797
|
{
|
|
3708
|
-
name: '
|
|
3798
|
+
name: 'dataMlModelInputs',
|
|
3799
|
+
kind: 'Object',
|
|
3800
|
+
plural: true,
|
|
3801
|
+
selections: PersonalizationDataMlModelInputFeatureRepresentation__selections
|
|
3802
|
+
},
|
|
3803
|
+
{
|
|
3804
|
+
name: 'dataSpaceName',
|
|
3805
|
+
kind: 'Scalar'
|
|
3806
|
+
},
|
|
3807
|
+
{
|
|
3808
|
+
name: 'id',
|
|
3709
3809
|
kind: 'Scalar'
|
|
3710
3810
|
},
|
|
3711
3811
|
{
|
|
3712
|
-
name: '
|
|
3812
|
+
name: 'label',
|
|
3713
3813
|
kind: 'Scalar'
|
|
3714
3814
|
},
|
|
3715
3815
|
{
|
|
3716
|
-
name: '
|
|
3816
|
+
name: 'mlConfiguredModel',
|
|
3717
3817
|
kind: 'Object',
|
|
3718
3818
|
// any
|
|
3719
3819
|
},
|
|
3720
3820
|
{
|
|
3721
|
-
name: '
|
|
3821
|
+
name: 'name',
|
|
3822
|
+
kind: 'Scalar'
|
|
3823
|
+
},
|
|
3824
|
+
{
|
|
3825
|
+
name: 'profileDataGraphName',
|
|
3826
|
+
kind: 'Scalar'
|
|
3827
|
+
},
|
|
3828
|
+
{
|
|
3829
|
+
name: 'status',
|
|
3722
3830
|
kind: 'Scalar'
|
|
3723
3831
|
}
|
|
3724
3832
|
]
|
|
3725
3833
|
};
|
|
3726
3834
|
};
|
|
3727
3835
|
function equals$4(existing, incoming) {
|
|
3728
|
-
const
|
|
3729
|
-
const
|
|
3730
|
-
if (!(
|
|
3836
|
+
const existing_dataSpaceName = existing.dataSpaceName;
|
|
3837
|
+
const incoming_dataSpaceName = incoming.dataSpaceName;
|
|
3838
|
+
if (!(existing_dataSpaceName === incoming_dataSpaceName)) {
|
|
3839
|
+
return false;
|
|
3840
|
+
}
|
|
3841
|
+
const existing_id = existing.id;
|
|
3842
|
+
const incoming_id = incoming.id;
|
|
3843
|
+
if (!(existing_id === incoming_id)) {
|
|
3844
|
+
return false;
|
|
3845
|
+
}
|
|
3846
|
+
const existing_label = existing.label;
|
|
3847
|
+
const incoming_label = incoming.label;
|
|
3848
|
+
if (!(existing_label === incoming_label)) {
|
|
3849
|
+
return false;
|
|
3850
|
+
}
|
|
3851
|
+
const existing_name = existing.name;
|
|
3852
|
+
const incoming_name = incoming.name;
|
|
3853
|
+
if (!(existing_name === incoming_name)) {
|
|
3731
3854
|
return false;
|
|
3732
3855
|
}
|
|
3733
|
-
const
|
|
3734
|
-
const
|
|
3735
|
-
if (!(
|
|
3856
|
+
const existing_profileDataGraphName = existing.profileDataGraphName;
|
|
3857
|
+
const incoming_profileDataGraphName = incoming.profileDataGraphName;
|
|
3858
|
+
if (!(existing_profileDataGraphName === incoming_profileDataGraphName)) {
|
|
3736
3859
|
return false;
|
|
3737
3860
|
}
|
|
3738
|
-
const
|
|
3739
|
-
const
|
|
3740
|
-
if (!(
|
|
3861
|
+
const existing_status = existing.status;
|
|
3862
|
+
const incoming_status = incoming.status;
|
|
3863
|
+
if (!(existing_status === incoming_status)) {
|
|
3741
3864
|
return false;
|
|
3742
3865
|
}
|
|
3743
|
-
const
|
|
3744
|
-
const
|
|
3745
|
-
const
|
|
3746
|
-
if (
|
|
3866
|
+
const existing_dataMlModelInputs = existing.dataMlModelInputs;
|
|
3867
|
+
const incoming_dataMlModelInputs = incoming.dataMlModelInputs;
|
|
3868
|
+
const equals_dataMlModelInputs_items = equalsArray(existing_dataMlModelInputs, incoming_dataMlModelInputs, (existing_dataMlModelInputs_item, incoming_dataMlModelInputs_item) => {
|
|
3869
|
+
if (!(equals$5(existing_dataMlModelInputs_item, incoming_dataMlModelInputs_item))) {
|
|
3747
3870
|
return false;
|
|
3748
3871
|
}
|
|
3749
3872
|
});
|
|
3750
|
-
if (
|
|
3873
|
+
if (equals_dataMlModelInputs_items === false) {
|
|
3874
|
+
return false;
|
|
3875
|
+
}
|
|
3876
|
+
const existing_mlConfiguredModel = existing.mlConfiguredModel;
|
|
3877
|
+
const incoming_mlConfiguredModel = incoming.mlConfiguredModel;
|
|
3878
|
+
if (JSONStringify(incoming_mlConfiguredModel) !== JSONStringify(existing_mlConfiguredModel)) {
|
|
3751
3879
|
return false;
|
|
3752
3880
|
}
|
|
3753
3881
|
return true;
|
|
@@ -3837,7 +3965,7 @@ function select$8(luvio, params) {
|
|
|
3837
3965
|
return select$9();
|
|
3838
3966
|
}
|
|
3839
3967
|
function keyBuilder$9(luvio, params) {
|
|
3840
|
-
return keyPrefix + '::PersonalizationDataMlModelCollectionRepresentation:(' + '
|
|
3968
|
+
return keyPrefix + '::PersonalizationDataMlModelCollectionRepresentation:(' + 'dataSpaceName:' + params.queryParams.dataSpaceName + ',' + 'limit:' + params.queryParams.limit + ',' + 'mlConfiguredModelName:' + params.queryParams.mlConfiguredModelName + ',' + 'offset:' + params.queryParams.offset + ',' + 'profileDataGraphName:' + params.queryParams.profileDataGraphName + ',' + 'status:' + params.queryParams.status + ')';
|
|
3841
3969
|
}
|
|
3842
3970
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
3843
3971
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
@@ -3875,7 +4003,7 @@ function createResourceRequest$5(config) {
|
|
|
3875
4003
|
const headers = {};
|
|
3876
4004
|
return {
|
|
3877
4005
|
baseUri: '/services/data/v64.0',
|
|
3878
|
-
basePath: '/personalization/
|
|
4006
|
+
basePath: '/personalization/data-ml-models',
|
|
3879
4007
|
method: 'get',
|
|
3880
4008
|
body: null,
|
|
3881
4009
|
urlParams: {},
|
|
@@ -3887,10 +4015,12 @@ function createResourceRequest$5(config) {
|
|
|
3887
4015
|
|
|
3888
4016
|
const adapterName$5 = 'getPersonalizationEsModelMapping';
|
|
3889
4017
|
const getPersonalizationEsModelMapping_ConfigPropertyMetadata = [
|
|
3890
|
-
generateParamConfigMetadata('
|
|
4018
|
+
generateParamConfigMetadata('dataSpaceName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3891
4019
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4020
|
+
generateParamConfigMetadata('mlConfiguredModelName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3892
4021
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3893
|
-
generateParamConfigMetadata('
|
|
4022
|
+
generateParamConfigMetadata('profileDataGraphName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4023
|
+
generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3894
4024
|
];
|
|
3895
4025
|
const getPersonalizationEsModelMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getPersonalizationEsModelMapping_ConfigPropertyMetadata);
|
|
3896
4026
|
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(getPersonalizationEsModelMapping_ConfigPropertyMetadata);
|
|
@@ -3975,7 +4105,7 @@ const getPersonalizationEsModelMappingAdapterFactory = (luvio) => function perso
|
|
|
3975
4105
|
};
|
|
3976
4106
|
|
|
3977
4107
|
function select$7(luvio, params) {
|
|
3978
|
-
return select$
|
|
4108
|
+
return select$g();
|
|
3979
4109
|
}
|
|
3980
4110
|
function keyBuilder$7(luvio, params) {
|
|
3981
4111
|
return keyBuilder$d(luvio, {
|
|
@@ -4008,7 +4138,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
4008
4138
|
const storeMetadataParams = {
|
|
4009
4139
|
ttl: TTL$4,
|
|
4010
4140
|
namespace: keyPrefix,
|
|
4011
|
-
version: VERSION$
|
|
4141
|
+
version: VERSION$8,
|
|
4012
4142
|
representationName: RepresentationType$4
|
|
4013
4143
|
};
|
|
4014
4144
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -4115,7 +4245,7 @@ const getPersonalizationPointAdapterFactory = (luvio) => function personalizatio
|
|
|
4115
4245
|
};
|
|
4116
4246
|
|
|
4117
4247
|
function select$6(luvio, params) {
|
|
4118
|
-
return select$
|
|
4248
|
+
return select$d();
|
|
4119
4249
|
}
|
|
4120
4250
|
function keyBuilder$5(luvio, params) {
|
|
4121
4251
|
return keyBuilder$c(luvio, {
|
|
@@ -4148,7 +4278,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
4148
4278
|
const storeMetadataParams = {
|
|
4149
4279
|
ttl: TTL$3,
|
|
4150
4280
|
namespace: keyPrefix,
|
|
4151
|
-
version: VERSION$
|
|
4281
|
+
version: VERSION$6,
|
|
4152
4282
|
representationName: RepresentationType$3
|
|
4153
4283
|
};
|
|
4154
4284
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -4284,7 +4414,7 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
4284
4414
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
4285
4415
|
ttl: TTL$3,
|
|
4286
4416
|
namespace: keyPrefix,
|
|
4287
|
-
version: VERSION$
|
|
4417
|
+
version: VERSION$6,
|
|
4288
4418
|
representationName: RepresentationType$3
|
|
4289
4419
|
});
|
|
4290
4420
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
@@ -5054,7 +5184,7 @@ const postPersonalizationRecommenderSimulateActionAdapterFactory = (luvio) => fu
|
|
|
5054
5184
|
};
|
|
5055
5185
|
|
|
5056
5186
|
function select(luvio, params) {
|
|
5057
|
-
return select$
|
|
5187
|
+
return select$g();
|
|
5058
5188
|
}
|
|
5059
5189
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
5060
5190
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
@@ -5153,7 +5283,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
5153
5283
|
const untrustedConfig_decisions_array = [];
|
|
5154
5284
|
for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
|
|
5155
5285
|
const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
|
|
5156
|
-
const referencePersonalizationDecisionInputRepresentationValidationError = validate$
|
|
5286
|
+
const referencePersonalizationDecisionInputRepresentationValidationError = validate$j(untrustedConfig_decisions_item);
|
|
5157
5287
|
if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
|
|
5158
5288
|
untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
|
|
5159
5289
|
}
|
|
@@ -5343,4 +5473,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5343
5473
|
});
|
|
5344
5474
|
|
|
5345
5475
|
export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationEsModelMapping, getPersonalizationEsModelMapping_imperative, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, getTrainingHistory, getTrainingHistory_imperative, postPersonalizationRecommenderSimulateAction, postPersonalizationRecommenderSimulateAction_imperative, updatePersonalizationPoint };
|
|
5346
|
-
// version: 1.354.0-
|
|
5476
|
+
// version: 1.354.0-dev13-272d3dd416
|