@salesforce/lds-adapters-cdp-personalization-service 1.354.0-dev12 → 1.354.0-dev14
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
|
@@ -92,7 +92,7 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
function validate$
|
|
95
|
+
function validate$k(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -183,7 +183,7 @@ function validate$j(obj, path = 'PersonalizationAttributeValueInputRepresentatio
|
|
|
183
183
|
return v_error === undefined ? null : v_error;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
function validate$
|
|
186
|
+
function validate$j(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
187
187
|
const v_error = (() => {
|
|
188
188
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
189
189
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -197,7 +197,7 @@ function validate$i(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
|
197
197
|
for (let i = 0; i < obj_attributeValues.length; i++) {
|
|
198
198
|
const obj_attributeValues_item = obj_attributeValues[i];
|
|
199
199
|
const path_attributeValues_item = path_attributeValues + '[' + i + ']';
|
|
200
|
-
const referencepath_attributeValues_itemValidationError = validate$
|
|
200
|
+
const referencepath_attributeValues_itemValidationError = validate$k(obj_attributeValues_item, path_attributeValues_item);
|
|
201
201
|
if (referencepath_attributeValues_itemValidationError !== null) {
|
|
202
202
|
let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
|
|
203
203
|
message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -371,8 +371,8 @@ function validate$i(obj, path = 'PersonalizationDecisionInputRepresentation') {
|
|
|
371
371
|
return v_error === undefined ? null : v_error;
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
const VERSION$
|
|
375
|
-
function validate$
|
|
374
|
+
const VERSION$c = "52ea9c14b7a747a28cedbcff0e7ab169";
|
|
375
|
+
function validate$i(obj, path = 'PersonalizationAttributeValueRepresentation') {
|
|
376
376
|
const v_error = (() => {
|
|
377
377
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
378
378
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -458,10 +458,10 @@ function validate$h(obj, path = 'PersonalizationAttributeValueRepresentation') {
|
|
|
458
458
|
})();
|
|
459
459
|
return v_error === undefined ? null : v_error;
|
|
460
460
|
}
|
|
461
|
-
const select$
|
|
461
|
+
const select$k = function PersonalizationAttributeValueRepresentationSelect() {
|
|
462
462
|
return {
|
|
463
463
|
kind: 'Fragment',
|
|
464
|
-
version: VERSION$
|
|
464
|
+
version: VERSION$c,
|
|
465
465
|
private: [],
|
|
466
466
|
selections: [
|
|
467
467
|
{
|
|
@@ -479,7 +479,7 @@ const select$j = function PersonalizationAttributeValueRepresentationSelect() {
|
|
|
479
479
|
]
|
|
480
480
|
};
|
|
481
481
|
};
|
|
482
|
-
function equals$
|
|
482
|
+
function equals$c(existing, incoming) {
|
|
483
483
|
const existing_attributeEnum = existing.attributeEnum;
|
|
484
484
|
const incoming_attributeEnum = incoming.attributeEnum;
|
|
485
485
|
if (!(existing_attributeEnum === incoming_attributeEnum)) {
|
|
@@ -498,7 +498,7 @@ function equals$b(existing, incoming) {
|
|
|
498
498
|
return true;
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
function validate$
|
|
501
|
+
function validate$h(obj, path = 'FiltersWrapRepresentation') {
|
|
502
502
|
const v_error = (() => {
|
|
503
503
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
504
504
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -577,7 +577,7 @@ function validate$g(obj, path = 'FiltersWrapRepresentation') {
|
|
|
577
577
|
return v_error === undefined ? null : v_error;
|
|
578
578
|
}
|
|
579
579
|
|
|
580
|
-
function validate$
|
|
580
|
+
function validate$g(obj, path = 'SubjectRepresentation') {
|
|
581
581
|
const v_error = (() => {
|
|
582
582
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
583
583
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -696,8 +696,8 @@ function validate$f(obj, path = 'SubjectRepresentation') {
|
|
|
696
696
|
return v_error === undefined ? null : v_error;
|
|
697
697
|
}
|
|
698
698
|
|
|
699
|
-
const VERSION$
|
|
700
|
-
function validate$
|
|
699
|
+
const VERSION$b = "089c2877ffa367e376fe74f8d358ffa8";
|
|
700
|
+
function validate$f(obj, path = 'FilterRepresentation') {
|
|
701
701
|
const v_error = (() => {
|
|
702
702
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
703
703
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -735,7 +735,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
|
|
|
735
735
|
const path_comparison = path + '.comparison';
|
|
736
736
|
let obj_comparison_union0 = null;
|
|
737
737
|
const obj_comparison_union0_error = (() => {
|
|
738
|
-
const referencepath_comparisonValidationError = validate$
|
|
738
|
+
const referencepath_comparisonValidationError = validate$f(obj_comparison, path_comparison);
|
|
739
739
|
if (referencepath_comparisonValidationError !== null) {
|
|
740
740
|
let message = 'Object doesn\'t match FilterRepresentation (at "' + path_comparison + '")\n';
|
|
741
741
|
message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -766,7 +766,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
|
|
|
766
766
|
const path_filter = path + '.filter';
|
|
767
767
|
let obj_filter_union0 = null;
|
|
768
768
|
const obj_filter_union0_error = (() => {
|
|
769
|
-
const referencepath_filterValidationError = validate$
|
|
769
|
+
const referencepath_filterValidationError = validate$h(obj_filter, path_filter);
|
|
770
770
|
if (referencepath_filterValidationError !== null) {
|
|
771
771
|
let message = 'Object doesn\'t match FiltersWrapRepresentation (at "' + path_filter + '")\n';
|
|
772
772
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -803,7 +803,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
|
|
|
803
803
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
804
804
|
let obj_filters_item_union0 = null;
|
|
805
805
|
const obj_filters_item_union0_error = (() => {
|
|
806
|
-
const referencepath_filters_itemValidationError = validate$
|
|
806
|
+
const referencepath_filters_itemValidationError = validate$f(obj_filters_item, path_filters_item);
|
|
807
807
|
if (referencepath_filters_itemValidationError !== null) {
|
|
808
808
|
let message = 'Object doesn\'t match FilterRepresentation (at "' + path_filters_item + '")\n';
|
|
809
809
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -863,7 +863,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
|
|
|
863
863
|
const path_metric = path + '.metric';
|
|
864
864
|
let obj_metric_union0 = null;
|
|
865
865
|
const obj_metric_union0_error = (() => {
|
|
866
|
-
const referencepath_metricValidationError = validate$
|
|
866
|
+
const referencepath_metricValidationError = validate$g(obj_metric, path_metric);
|
|
867
867
|
if (referencepath_metricValidationError !== null) {
|
|
868
868
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
|
|
869
869
|
message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -932,7 +932,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
|
|
|
932
932
|
for (let i = 0; i < obj_path_item.length; i++) {
|
|
933
933
|
const obj_path_item_item = obj_path_item[i];
|
|
934
934
|
const path_path_item_item = path_path_item + '[' + i + ']';
|
|
935
|
-
const referencepath_path_item_itemValidationError = validate$
|
|
935
|
+
const referencepath_path_item_itemValidationError = validate$g(obj_path_item_item, path_path_item_item);
|
|
936
936
|
if (referencepath_path_item_itemValidationError !== null) {
|
|
937
937
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_path_item_item + '")\n';
|
|
938
938
|
message += referencepath_path_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1030,7 +1030,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
|
|
|
1030
1030
|
const path_subject = path + '.subject';
|
|
1031
1031
|
let obj_subject_union0 = null;
|
|
1032
1032
|
const obj_subject_union0_error = (() => {
|
|
1033
|
-
const referencepath_subjectValidationError = validate$
|
|
1033
|
+
const referencepath_subjectValidationError = validate$g(obj_subject, path_subject);
|
|
1034
1034
|
if (referencepath_subjectValidationError !== null) {
|
|
1035
1035
|
let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_subject + '")\n';
|
|
1036
1036
|
message += referencepath_subjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1133,15 +1133,15 @@ const RepresentationType$7 = 'FilterRepresentation';
|
|
|
1133
1133
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
1134
1134
|
return input;
|
|
1135
1135
|
}
|
|
1136
|
-
const select$
|
|
1136
|
+
const select$j = function FilterRepresentationSelect() {
|
|
1137
1137
|
return {
|
|
1138
1138
|
kind: 'Fragment',
|
|
1139
|
-
version: VERSION$
|
|
1139
|
+
version: VERSION$b,
|
|
1140
1140
|
private: [],
|
|
1141
1141
|
opaque: true
|
|
1142
1142
|
};
|
|
1143
1143
|
};
|
|
1144
|
-
function equals$
|
|
1144
|
+
function equals$b(existing, incoming) {
|
|
1145
1145
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1146
1146
|
return false;
|
|
1147
1147
|
}
|
|
@@ -1149,14 +1149,14 @@ function equals$a(existing, incoming) {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
const ingest$7 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1151
1151
|
if (process.env.NODE_ENV !== 'production') {
|
|
1152
|
-
const validateError = validate$
|
|
1152
|
+
const validateError = validate$f(input);
|
|
1153
1153
|
if (validateError !== null) {
|
|
1154
1154
|
throw validateError;
|
|
1155
1155
|
}
|
|
1156
1156
|
}
|
|
1157
1157
|
const key = path.fullPath;
|
|
1158
1158
|
const ttlToUse = path.ttl;
|
|
1159
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$
|
|
1159
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$b, RepresentationType$7, equals$b);
|
|
1160
1160
|
return createLink(key);
|
|
1161
1161
|
};
|
|
1162
1162
|
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1169,8 +1169,8 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1169
1169
|
});
|
|
1170
1170
|
}
|
|
1171
1171
|
|
|
1172
|
-
const VERSION$
|
|
1173
|
-
function validate$
|
|
1172
|
+
const VERSION$a = "ea475f10b4c028f8b97a44af1cf0be14";
|
|
1173
|
+
function validate$e(obj, path = 'CriteriaRepresentation') {
|
|
1174
1174
|
const v_error = (() => {
|
|
1175
1175
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1176
1176
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1220,17 +1220,17 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
return input;
|
|
1222
1222
|
}
|
|
1223
|
-
const select$
|
|
1223
|
+
const select$i = function CriteriaRepresentationSelect() {
|
|
1224
1224
|
return {
|
|
1225
1225
|
kind: 'Fragment',
|
|
1226
|
-
version: VERSION$
|
|
1226
|
+
version: VERSION$a,
|
|
1227
1227
|
private: [],
|
|
1228
1228
|
selections: [
|
|
1229
1229
|
{
|
|
1230
1230
|
name: 'filters',
|
|
1231
1231
|
kind: 'Link',
|
|
1232
1232
|
plural: true,
|
|
1233
|
-
fragment: select$
|
|
1233
|
+
fragment: select$j()
|
|
1234
1234
|
},
|
|
1235
1235
|
{
|
|
1236
1236
|
name: 'operator',
|
|
@@ -1243,7 +1243,7 @@ const select$h = function CriteriaRepresentationSelect() {
|
|
|
1243
1243
|
]
|
|
1244
1244
|
};
|
|
1245
1245
|
};
|
|
1246
|
-
function equals$
|
|
1246
|
+
function equals$a(existing, incoming) {
|
|
1247
1247
|
const existing_operator = existing.operator;
|
|
1248
1248
|
const incoming_operator = incoming.operator;
|
|
1249
1249
|
if (!(existing_operator === incoming_operator)) {
|
|
@@ -1268,14 +1268,14 @@ function equals$9(existing, incoming) {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
const ingest$6 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1270
1270
|
if (process.env.NODE_ENV !== 'production') {
|
|
1271
|
-
const validateError = validate$
|
|
1271
|
+
const validateError = validate$e(input);
|
|
1272
1272
|
if (validateError !== null) {
|
|
1273
1273
|
throw validateError;
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
1276
|
const key = path.fullPath;
|
|
1277
1277
|
const ttlToUse = path.ttl;
|
|
1278
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$
|
|
1278
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$a, RepresentationType$6, equals$a);
|
|
1279
1279
|
return createLink(key);
|
|
1280
1280
|
};
|
|
1281
1281
|
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1292,8 +1292,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
|
|
1295
|
-
const VERSION$
|
|
1296
|
-
function validate$
|
|
1295
|
+
const VERSION$9 = "265767af783b296f5f902d6ed447b168";
|
|
1296
|
+
function validate$d(obj, path = 'PersonalizationDecisionRepresentation') {
|
|
1297
1297
|
const v_error = (() => {
|
|
1298
1298
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1299
1299
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1306,7 +1306,7 @@ function validate$c(obj, path = 'PersonalizationDecisionRepresentation') {
|
|
|
1306
1306
|
for (let i = 0; i < obj_attributeValues.length; i++) {
|
|
1307
1307
|
const obj_attributeValues_item = obj_attributeValues[i];
|
|
1308
1308
|
const path_attributeValues_item = path_attributeValues + '[' + i + ']';
|
|
1309
|
-
const referencepath_attributeValues_itemValidationError = validate$
|
|
1309
|
+
const referencepath_attributeValues_itemValidationError = validate$i(obj_attributeValues_item, path_attributeValues_item);
|
|
1310
1310
|
if (referencepath_attributeValues_itemValidationError !== null) {
|
|
1311
1311
|
let message = 'Object doesn\'t match PersonalizationAttributeValueRepresentation (at "' + path_attributeValues_item + '")\n';
|
|
1312
1312
|
message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1646,11 +1646,11 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
return input;
|
|
1648
1648
|
}
|
|
1649
|
-
const select$
|
|
1650
|
-
const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$
|
|
1649
|
+
const select$h = function PersonalizationDecisionRepresentationSelect() {
|
|
1650
|
+
const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$k();
|
|
1651
1651
|
return {
|
|
1652
1652
|
kind: 'Fragment',
|
|
1653
|
-
version: VERSION$
|
|
1653
|
+
version: VERSION$9,
|
|
1654
1654
|
private: [],
|
|
1655
1655
|
selections: [
|
|
1656
1656
|
{
|
|
@@ -1671,7 +1671,7 @@ const select$g = function PersonalizationDecisionRepresentationSelect() {
|
|
|
1671
1671
|
name: 'criteria',
|
|
1672
1672
|
kind: 'Link',
|
|
1673
1673
|
nullable: true,
|
|
1674
|
-
fragment: select$
|
|
1674
|
+
fragment: select$i()
|
|
1675
1675
|
},
|
|
1676
1676
|
{
|
|
1677
1677
|
name: 'description',
|
|
@@ -1712,11 +1712,11 @@ const select$g = function PersonalizationDecisionRepresentationSelect() {
|
|
|
1712
1712
|
]
|
|
1713
1713
|
};
|
|
1714
1714
|
};
|
|
1715
|
-
function equals$
|
|
1715
|
+
function equals$9(existing, incoming) {
|
|
1716
1716
|
const existing_attributeValues = existing.attributeValues;
|
|
1717
1717
|
const incoming_attributeValues = incoming.attributeValues;
|
|
1718
1718
|
const equals_attributeValues_items = equalsArray(existing_attributeValues, incoming_attributeValues, (existing_attributeValues_item, incoming_attributeValues_item) => {
|
|
1719
|
-
if (!(equals$
|
|
1719
|
+
if (!(equals$c(existing_attributeValues_item, incoming_attributeValues_item))) {
|
|
1720
1720
|
return false;
|
|
1721
1721
|
}
|
|
1722
1722
|
});
|
|
@@ -1792,14 +1792,14 @@ function equals$8(existing, incoming) {
|
|
|
1792
1792
|
}
|
|
1793
1793
|
const ingest$5 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1794
1794
|
if (process.env.NODE_ENV !== 'production') {
|
|
1795
|
-
const validateError = validate$
|
|
1795
|
+
const validateError = validate$d(input);
|
|
1796
1796
|
if (validateError !== null) {
|
|
1797
1797
|
throw validateError;
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
1800
1800
|
const key = path.fullPath;
|
|
1801
1801
|
const ttlToUse = path.ttl;
|
|
1802
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$
|
|
1802
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$9, RepresentationType$5, equals$9);
|
|
1803
1803
|
return createLink(key);
|
|
1804
1804
|
};
|
|
1805
1805
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1816,8 +1816,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
|
|
1818
1818
|
const TTL$4 = 600;
|
|
1819
|
-
const VERSION$
|
|
1820
|
-
function validate$
|
|
1819
|
+
const VERSION$8 = "e5643ca13ef54c890c9177275a053de3";
|
|
1820
|
+
function validate$c(obj, path = 'PersonalizationPointRepresentation') {
|
|
1821
1821
|
const v_error = (() => {
|
|
1822
1822
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1823
1823
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2323,10 +2323,10 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
return input;
|
|
2325
2325
|
}
|
|
2326
|
-
const select$
|
|
2326
|
+
const select$g = function PersonalizationPointRepresentationSelect() {
|
|
2327
2327
|
return {
|
|
2328
2328
|
kind: 'Fragment',
|
|
2329
|
-
version: VERSION$
|
|
2329
|
+
version: VERSION$8,
|
|
2330
2330
|
private: [],
|
|
2331
2331
|
selections: [
|
|
2332
2332
|
{
|
|
@@ -2349,7 +2349,7 @@ const select$f = function PersonalizationPointRepresentationSelect() {
|
|
|
2349
2349
|
name: 'decisions',
|
|
2350
2350
|
kind: 'Link',
|
|
2351
2351
|
plural: true,
|
|
2352
|
-
fragment: select$
|
|
2352
|
+
fragment: select$h()
|
|
2353
2353
|
},
|
|
2354
2354
|
{
|
|
2355
2355
|
name: 'description',
|
|
@@ -2418,7 +2418,7 @@ const select$f = function PersonalizationPointRepresentationSelect() {
|
|
|
2418
2418
|
]
|
|
2419
2419
|
};
|
|
2420
2420
|
};
|
|
2421
|
-
function equals$
|
|
2421
|
+
function equals$8(existing, incoming) {
|
|
2422
2422
|
const existing_isAuthenticationRequired = existing.isAuthenticationRequired;
|
|
2423
2423
|
const incoming_isAuthenticationRequired = incoming.isAuthenticationRequired;
|
|
2424
2424
|
if (!(existing_isAuthenticationRequired === incoming_isAuthenticationRequired)) {
|
|
@@ -2533,14 +2533,14 @@ function equals$7(existing, incoming) {
|
|
|
2533
2533
|
}
|
|
2534
2534
|
const ingest$4 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2535
2535
|
if (process.env.NODE_ENV !== 'production') {
|
|
2536
|
-
const validateError = validate$
|
|
2536
|
+
const validateError = validate$c(input);
|
|
2537
2537
|
if (validateError !== null) {
|
|
2538
2538
|
throw validateError;
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
2541
|
const key = keyBuilderFromType$1(luvio, input);
|
|
2542
2542
|
const ttlToUse = TTL$4;
|
|
2543
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$
|
|
2543
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$8, RepresentationType$4, equals$8);
|
|
2544
2544
|
return createLink(key);
|
|
2545
2545
|
};
|
|
2546
2546
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2557,8 +2557,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
2559
|
|
|
2560
|
-
function select$
|
|
2561
|
-
return select$
|
|
2560
|
+
function select$f(luvio, params) {
|
|
2561
|
+
return select$g();
|
|
2562
2562
|
}
|
|
2563
2563
|
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
2564
2564
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
@@ -2569,7 +2569,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
2569
2569
|
luvio.storeIngest(key, ingest$4, body);
|
|
2570
2570
|
const snapshot = luvio.storeLookup({
|
|
2571
2571
|
recordId: key,
|
|
2572
|
-
node: select$
|
|
2572
|
+
node: select$f(),
|
|
2573
2573
|
variables: {},
|
|
2574
2574
|
});
|
|
2575
2575
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2656,7 +2656,7 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
2656
2656
|
const untrustedConfig_decisions_array = [];
|
|
2657
2657
|
for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
|
|
2658
2658
|
const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
|
|
2659
|
-
const referencePersonalizationDecisionInputRepresentationValidationError = validate$
|
|
2659
|
+
const referencePersonalizationDecisionInputRepresentationValidationError = validate$j(untrustedConfig_decisions_item);
|
|
2660
2660
|
if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
|
|
2661
2661
|
untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
|
|
2662
2662
|
}
|
|
@@ -2833,8 +2833,8 @@ const deletePersonalizationPointAdapterFactory = (luvio) => {
|
|
|
2833
2833
|
};
|
|
2834
2834
|
};
|
|
2835
2835
|
|
|
2836
|
-
function select$
|
|
2837
|
-
return select$
|
|
2836
|
+
function select$e(luvio, params) {
|
|
2837
|
+
return select$g();
|
|
2838
2838
|
}
|
|
2839
2839
|
function keyBuilder$b(luvio, params) {
|
|
2840
2840
|
return keyBuilder$d(luvio, {
|
|
@@ -2850,7 +2850,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2850
2850
|
luvio.storeIngest(key, ingest$4, body);
|
|
2851
2851
|
const snapshot = luvio.storeLookup({
|
|
2852
2852
|
recordId: key,
|
|
2853
|
-
node: select$
|
|
2853
|
+
node: select$e(),
|
|
2854
2854
|
variables: {},
|
|
2855
2855
|
}, snapshotRefresh);
|
|
2856
2856
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2867,7 +2867,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
2867
2867
|
const storeMetadataParams = {
|
|
2868
2868
|
ttl: TTL$4,
|
|
2869
2869
|
namespace: keyPrefix,
|
|
2870
|
-
version: VERSION$
|
|
2870
|
+
version: VERSION$8,
|
|
2871
2871
|
representationName: RepresentationType$4
|
|
2872
2872
|
};
|
|
2873
2873
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -2917,7 +2917,7 @@ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
|
2917
2917
|
}
|
|
2918
2918
|
function adapterFragment$4(luvio, config) {
|
|
2919
2919
|
createResourceParams$7(config);
|
|
2920
|
-
return select$
|
|
2920
|
+
return select$e();
|
|
2921
2921
|
}
|
|
2922
2922
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
2923
2923
|
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
@@ -2973,8 +2973,8 @@ const getPersonalizationPointAdapterFactory = (luvio) => function personalizatio
|
|
|
2973
2973
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
2974
2974
|
};
|
|
2975
2975
|
|
|
2976
|
-
function select$
|
|
2977
|
-
return select$
|
|
2976
|
+
function select$d(luvio, params) {
|
|
2977
|
+
return select$g();
|
|
2978
2978
|
}
|
|
2979
2979
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
2980
2980
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
@@ -2985,7 +2985,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
2985
2985
|
luvio.storeIngest(key, ingest$4, body);
|
|
2986
2986
|
const snapshot = luvio.storeLookup({
|
|
2987
2987
|
recordId: key,
|
|
2988
|
-
node: select$
|
|
2988
|
+
node: select$d(),
|
|
2989
2989
|
variables: {},
|
|
2990
2990
|
});
|
|
2991
2991
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3073,7 +3073,7 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
3073
3073
|
const untrustedConfig_decisions_array = [];
|
|
3074
3074
|
for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
|
|
3075
3075
|
const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
|
|
3076
|
-
const referencePersonalizationDecisionInputRepresentationValidationError = validate$
|
|
3076
|
+
const referencePersonalizationDecisionInputRepresentationValidationError = validate$j(untrustedConfig_decisions_item);
|
|
3077
3077
|
if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
|
|
3078
3078
|
untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
|
|
3079
3079
|
}
|
|
@@ -3166,7 +3166,7 @@ const updatePersonalizationPointAdapterFactory = (luvio) => {
|
|
|
3166
3166
|
};
|
|
3167
3167
|
};
|
|
3168
3168
|
|
|
3169
|
-
function validate$
|
|
3169
|
+
function validate$b(obj, path = 'PersonalizationAttributeInputRepresentation') {
|
|
3170
3170
|
const v_error = (() => {
|
|
3171
3171
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3172
3172
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3213,8 +3213,8 @@ function validate$a(obj, path = 'PersonalizationAttributeInputRepresentation') {
|
|
|
3213
3213
|
return v_error === undefined ? null : v_error;
|
|
3214
3214
|
}
|
|
3215
3215
|
|
|
3216
|
-
const VERSION$
|
|
3217
|
-
function validate$
|
|
3216
|
+
const VERSION$7 = "014064b188ff923423af6301d64be36a";
|
|
3217
|
+
function validate$a(obj, path = 'PersonalizationAttributeRepresentation') {
|
|
3218
3218
|
const v_error = (() => {
|
|
3219
3219
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3220
3220
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3309,10 +3309,10 @@ function validate$9(obj, path = 'PersonalizationAttributeRepresentation') {
|
|
|
3309
3309
|
})();
|
|
3310
3310
|
return v_error === undefined ? null : v_error;
|
|
3311
3311
|
}
|
|
3312
|
-
const select$
|
|
3312
|
+
const select$c = function PersonalizationAttributeRepresentationSelect() {
|
|
3313
3313
|
return {
|
|
3314
3314
|
kind: 'Fragment',
|
|
3315
|
-
version: VERSION$
|
|
3315
|
+
version: VERSION$7,
|
|
3316
3316
|
private: [],
|
|
3317
3317
|
selections: [
|
|
3318
3318
|
{
|
|
@@ -3354,7 +3354,7 @@ const select$b = function PersonalizationAttributeRepresentationSelect() {
|
|
|
3354
3354
|
]
|
|
3355
3355
|
};
|
|
3356
3356
|
};
|
|
3357
|
-
function equals$
|
|
3357
|
+
function equals$7(existing, incoming) {
|
|
3358
3358
|
const existing_createdById = existing.createdById;
|
|
3359
3359
|
const incoming_createdById = incoming.createdById;
|
|
3360
3360
|
if (!(existing_createdById === incoming_createdById)) {
|
|
@@ -3404,8 +3404,8 @@ function equals$6(existing, incoming) {
|
|
|
3404
3404
|
}
|
|
3405
3405
|
|
|
3406
3406
|
const TTL$3 = 600;
|
|
3407
|
-
const VERSION$
|
|
3408
|
-
function validate$
|
|
3407
|
+
const VERSION$6 = "25740f87643de6fdae570c77bbec7377";
|
|
3408
|
+
function validate$9(obj, path = 'PersonalizationSchemaRepresentation') {
|
|
3409
3409
|
const v_error = (() => {
|
|
3410
3410
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3411
3411
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3418,7 +3418,7 @@ function validate$8(obj, path = 'PersonalizationSchemaRepresentation') {
|
|
|
3418
3418
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
3419
3419
|
const obj_attributes_item = obj_attributes[i];
|
|
3420
3420
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
3421
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
3421
|
+
const referencepath_attributes_itemValidationError = validate$a(obj_attributes_item, path_attributes_item);
|
|
3422
3422
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
3423
3423
|
let message = 'Object doesn\'t match PersonalizationAttributeRepresentation (at "' + path_attributes_item + '")\n';
|
|
3424
3424
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3576,11 +3576,11 @@ function keyBuilderFromType(luvio, object) {
|
|
|
3576
3576
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
3577
3577
|
return input;
|
|
3578
3578
|
}
|
|
3579
|
-
const select$
|
|
3580
|
-
const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$
|
|
3579
|
+
const select$b = function PersonalizationSchemaRepresentationSelect() {
|
|
3580
|
+
const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$c();
|
|
3581
3581
|
return {
|
|
3582
3582
|
kind: 'Fragment',
|
|
3583
|
-
version: VERSION$
|
|
3583
|
+
version: VERSION$6,
|
|
3584
3584
|
private: [],
|
|
3585
3585
|
selections: [
|
|
3586
3586
|
{
|
|
@@ -3645,7 +3645,7 @@ const select$a = function PersonalizationSchemaRepresentationSelect() {
|
|
|
3645
3645
|
]
|
|
3646
3646
|
};
|
|
3647
3647
|
};
|
|
3648
|
-
function equals$
|
|
3648
|
+
function equals$6(existing, incoming) {
|
|
3649
3649
|
const existing_createdById = existing.createdById;
|
|
3650
3650
|
const incoming_createdById = incoming.createdById;
|
|
3651
3651
|
if (!(existing_createdById === incoming_createdById)) {
|
|
@@ -3699,7 +3699,7 @@ function equals$5(existing, incoming) {
|
|
|
3699
3699
|
const existing_attributes = existing.attributes;
|
|
3700
3700
|
const incoming_attributes = incoming.attributes;
|
|
3701
3701
|
const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
|
|
3702
|
-
if (!(equals$
|
|
3702
|
+
if (!(equals$7(existing_attributes_item, incoming_attributes_item))) {
|
|
3703
3703
|
return false;
|
|
3704
3704
|
}
|
|
3705
3705
|
});
|
|
@@ -3730,14 +3730,14 @@ function equals$5(existing, incoming) {
|
|
|
3730
3730
|
}
|
|
3731
3731
|
const ingest$3 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3732
3732
|
if (process.env.NODE_ENV !== 'production') {
|
|
3733
|
-
const validateError = validate$
|
|
3733
|
+
const validateError = validate$9(input);
|
|
3734
3734
|
if (validateError !== null) {
|
|
3735
3735
|
throw validateError;
|
|
3736
3736
|
}
|
|
3737
3737
|
}
|
|
3738
3738
|
const key = keyBuilderFromType(luvio, input);
|
|
3739
3739
|
const ttlToUse = TTL$3;
|
|
3740
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$
|
|
3740
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$6, RepresentationType$3, equals$6);
|
|
3741
3741
|
return createLink(key);
|
|
3742
3742
|
};
|
|
3743
3743
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -3750,8 +3750,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3750
3750
|
});
|
|
3751
3751
|
}
|
|
3752
3752
|
|
|
3753
|
-
function select$
|
|
3754
|
-
return select$
|
|
3753
|
+
function select$a(luvio, params) {
|
|
3754
|
+
return select$b();
|
|
3755
3755
|
}
|
|
3756
3756
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
3757
3757
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
@@ -3762,7 +3762,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
3762
3762
|
luvio.storeIngest(key, ingest$3, body);
|
|
3763
3763
|
const snapshot = luvio.storeLookup({
|
|
3764
3764
|
recordId: key,
|
|
3765
|
-
node: select$
|
|
3765
|
+
node: select$a(),
|
|
3766
3766
|
variables: {},
|
|
3767
3767
|
});
|
|
3768
3768
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3829,7 +3829,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3829
3829
|
const untrustedConfig_attributes_array = [];
|
|
3830
3830
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
3831
3831
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
3832
|
-
const referencePersonalizationAttributeInputRepresentationValidationError = validate$
|
|
3832
|
+
const referencePersonalizationAttributeInputRepresentationValidationError = validate$b(untrustedConfig_attributes_item);
|
|
3833
3833
|
if (referencePersonalizationAttributeInputRepresentationValidationError === null) {
|
|
3834
3834
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
3835
3835
|
}
|
|
@@ -3985,8 +3985,8 @@ const deletePersonalizationSchemaAdapterFactory = (luvio) => {
|
|
|
3985
3985
|
};
|
|
3986
3986
|
};
|
|
3987
3987
|
|
|
3988
|
-
function select$
|
|
3989
|
-
return select$
|
|
3988
|
+
function select$9(luvio, params) {
|
|
3989
|
+
return select$b();
|
|
3990
3990
|
}
|
|
3991
3991
|
function keyBuilder$7(luvio, params) {
|
|
3992
3992
|
return keyBuilder$9(luvio, {
|
|
@@ -4002,7 +4002,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4002
4002
|
luvio.storeIngest(key, ingest$3, body);
|
|
4003
4003
|
const snapshot = luvio.storeLookup({
|
|
4004
4004
|
recordId: key,
|
|
4005
|
-
node: select$
|
|
4005
|
+
node: select$9(),
|
|
4006
4006
|
variables: {},
|
|
4007
4007
|
}, snapshotRefresh);
|
|
4008
4008
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4019,7 +4019,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
4019
4019
|
const storeMetadataParams = {
|
|
4020
4020
|
ttl: TTL$3,
|
|
4021
4021
|
namespace: keyPrefix,
|
|
4022
|
-
version: VERSION$
|
|
4022
|
+
version: VERSION$6,
|
|
4023
4023
|
representationName: RepresentationType$3
|
|
4024
4024
|
};
|
|
4025
4025
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -4069,7 +4069,7 @@ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
|
4069
4069
|
}
|
|
4070
4070
|
function adapterFragment$3(luvio, config) {
|
|
4071
4071
|
createResourceParams$3(config);
|
|
4072
|
-
return select$
|
|
4072
|
+
return select$9();
|
|
4073
4073
|
}
|
|
4074
4074
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
4075
4075
|
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
@@ -4125,8 +4125,8 @@ const getPersonalizationSchemaAdapterFactory = (luvio) => function personalizati
|
|
|
4125
4125
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
4126
4126
|
};
|
|
4127
4127
|
|
|
4128
|
-
const VERSION$
|
|
4129
|
-
function validate$
|
|
4128
|
+
const VERSION$5 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
|
|
4129
|
+
function validate$8(obj, path = 'PersonalizationRecommenderJobRepresentation') {
|
|
4130
4130
|
const v_error = (() => {
|
|
4131
4131
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4132
4132
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4176,10 +4176,10 @@ function validate$7(obj, path = 'PersonalizationRecommenderJobRepresentation') {
|
|
|
4176
4176
|
})();
|
|
4177
4177
|
return v_error === undefined ? null : v_error;
|
|
4178
4178
|
}
|
|
4179
|
-
const select$
|
|
4179
|
+
const select$8 = function PersonalizationRecommenderJobRepresentationSelect() {
|
|
4180
4180
|
return {
|
|
4181
4181
|
kind: 'Fragment',
|
|
4182
|
-
version: VERSION$
|
|
4182
|
+
version: VERSION$5,
|
|
4183
4183
|
private: [],
|
|
4184
4184
|
selections: [
|
|
4185
4185
|
{
|
|
@@ -4215,7 +4215,7 @@ const select$7 = function PersonalizationRecommenderJobRepresentationSelect() {
|
|
|
4215
4215
|
]
|
|
4216
4216
|
};
|
|
4217
4217
|
};
|
|
4218
|
-
function equals$
|
|
4218
|
+
function equals$5(existing, incoming) {
|
|
4219
4219
|
const existing_errorCode = existing.errorCode;
|
|
4220
4220
|
const incoming_errorCode = incoming.errorCode;
|
|
4221
4221
|
// if at least one of these optionals is defined
|
|
@@ -4298,8 +4298,8 @@ function equals$4(existing, incoming) {
|
|
|
4298
4298
|
}
|
|
4299
4299
|
|
|
4300
4300
|
const TTL$2 = 600;
|
|
4301
|
-
const VERSION$
|
|
4302
|
-
function validate$
|
|
4301
|
+
const VERSION$4 = "2fab2250d4ed5adcbb1a5c19a64cd765";
|
|
4302
|
+
function validate$7(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
|
|
4303
4303
|
const v_error = (() => {
|
|
4304
4304
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4305
4305
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4320,7 +4320,7 @@ function validate$6(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
|
|
|
4320
4320
|
for (let i = 0; i < obj_jobs.length; i++) {
|
|
4321
4321
|
const obj_jobs_item = obj_jobs[i];
|
|
4322
4322
|
const path_jobs_item = path_jobs + '[' + i + ']';
|
|
4323
|
-
const referencepath_jobs_itemValidationError = validate$
|
|
4323
|
+
const referencepath_jobs_itemValidationError = validate$8(obj_jobs_item, path_jobs_item);
|
|
4324
4324
|
if (referencepath_jobs_itemValidationError !== null) {
|
|
4325
4325
|
let message = 'Object doesn\'t match PersonalizationRecommenderJobRepresentation (at "' + path_jobs_item + '")\n';
|
|
4326
4326
|
message += referencepath_jobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4342,11 +4342,11 @@ const RepresentationType$2 = 'PersonalizationRecommenderJobCollectionRepresentat
|
|
|
4342
4342
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
4343
4343
|
return input;
|
|
4344
4344
|
}
|
|
4345
|
-
const select$
|
|
4346
|
-
const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$
|
|
4345
|
+
const select$7 = function PersonalizationRecommenderJobCollectionRepresentationSelect() {
|
|
4346
|
+
const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$8();
|
|
4347
4347
|
return {
|
|
4348
4348
|
kind: 'Fragment',
|
|
4349
|
-
version: VERSION$
|
|
4349
|
+
version: VERSION$4,
|
|
4350
4350
|
private: [],
|
|
4351
4351
|
selections: [
|
|
4352
4352
|
{
|
|
@@ -4369,7 +4369,7 @@ const select$6 = function PersonalizationRecommenderJobCollectionRepresentationS
|
|
|
4369
4369
|
]
|
|
4370
4370
|
};
|
|
4371
4371
|
};
|
|
4372
|
-
function equals$
|
|
4372
|
+
function equals$4(existing, incoming) {
|
|
4373
4373
|
const existing_currentPageUrl = existing.currentPageUrl;
|
|
4374
4374
|
const incoming_currentPageUrl = incoming.currentPageUrl;
|
|
4375
4375
|
// if at least one of these optionals is defined
|
|
@@ -4406,7 +4406,7 @@ function equals$3(existing, incoming) {
|
|
|
4406
4406
|
return false;
|
|
4407
4407
|
}
|
|
4408
4408
|
const equals_jobs_items = equalsArray(existing_jobs, incoming_jobs, (existing_jobs_item, incoming_jobs_item) => {
|
|
4409
|
-
if (!(equals$
|
|
4409
|
+
if (!(equals$5(existing_jobs_item, incoming_jobs_item))) {
|
|
4410
4410
|
return false;
|
|
4411
4411
|
}
|
|
4412
4412
|
});
|
|
@@ -4418,14 +4418,14 @@ function equals$3(existing, incoming) {
|
|
|
4418
4418
|
}
|
|
4419
4419
|
const ingest$2 = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4420
4420
|
if (process.env.NODE_ENV !== 'production') {
|
|
4421
|
-
const validateError = validate$
|
|
4421
|
+
const validateError = validate$7(input);
|
|
4422
4422
|
if (validateError !== null) {
|
|
4423
4423
|
throw validateError;
|
|
4424
4424
|
}
|
|
4425
4425
|
}
|
|
4426
4426
|
const key = path.fullPath;
|
|
4427
4427
|
const ttlToUse = TTL$2;
|
|
4428
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$
|
|
4428
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$4, RepresentationType$2, equals$4);
|
|
4429
4429
|
return createLink(key);
|
|
4430
4430
|
};
|
|
4431
4431
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -4438,8 +4438,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4438
4438
|
});
|
|
4439
4439
|
}
|
|
4440
4440
|
|
|
4441
|
-
function select$
|
|
4442
|
-
return select$
|
|
4441
|
+
function select$6(luvio, params) {
|
|
4442
|
+
return select$7();
|
|
4443
4443
|
}
|
|
4444
4444
|
function keyBuilder$5(luvio, params) {
|
|
4445
4445
|
return keyPrefix + '::PersonalizationRecommenderJobCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'idOrName:' + params.urlParams.idOrName + ')';
|
|
@@ -4453,7 +4453,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4453
4453
|
luvio.storeIngest(key, ingest$2, body);
|
|
4454
4454
|
const snapshot = luvio.storeLookup({
|
|
4455
4455
|
recordId: key,
|
|
4456
|
-
node: select$
|
|
4456
|
+
node: select$6(),
|
|
4457
4457
|
variables: {},
|
|
4458
4458
|
}, snapshotRefresh);
|
|
4459
4459
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4470,7 +4470,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
4470
4470
|
const storeMetadataParams = {
|
|
4471
4471
|
ttl: TTL$2,
|
|
4472
4472
|
namespace: keyPrefix,
|
|
4473
|
-
version: VERSION$
|
|
4473
|
+
version: VERSION$4,
|
|
4474
4474
|
representationName: RepresentationType$2
|
|
4475
4475
|
};
|
|
4476
4476
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -4522,7 +4522,7 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
|
4522
4522
|
}
|
|
4523
4523
|
function adapterFragment$2(luvio, config) {
|
|
4524
4524
|
createResourceParams$2(config);
|
|
4525
|
-
return select$
|
|
4525
|
+
return select$6();
|
|
4526
4526
|
}
|
|
4527
4527
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
4528
4528
|
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
@@ -4578,7 +4578,7 @@ const getTrainingHistoryAdapterFactory = (luvio) => function personalizationServ
|
|
|
4578
4578
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
4579
4579
|
};
|
|
4580
4580
|
|
|
4581
|
-
function validate$
|
|
4581
|
+
function validate$6(obj, path = 'AnchorReferenceRepresentation') {
|
|
4582
4582
|
const v_error = (() => {
|
|
4583
4583
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4584
4584
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4597,7 +4597,7 @@ function validate$5(obj, path = 'AnchorReferenceRepresentation') {
|
|
|
4597
4597
|
return v_error === undefined ? null : v_error;
|
|
4598
4598
|
}
|
|
4599
4599
|
|
|
4600
|
-
function validate$
|
|
4600
|
+
function validate$5(obj, path = 'RuleGroupInputRepresentation2') {
|
|
4601
4601
|
const v_error = (() => {
|
|
4602
4602
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4603
4603
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4623,7 +4623,7 @@ function validate$4(obj, path = 'RuleGroupInputRepresentation2') {
|
|
|
4623
4623
|
return v_error === undefined ? null : v_error;
|
|
4624
4624
|
}
|
|
4625
4625
|
|
|
4626
|
-
function validate$
|
|
4626
|
+
function validate$4(obj, path = 'RuleGroupInputRepresentation') {
|
|
4627
4627
|
const v_error = (() => {
|
|
4628
4628
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4629
4629
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4650,8 +4650,8 @@ function validate$3(obj, path = 'RuleGroupInputRepresentation') {
|
|
|
4650
4650
|
}
|
|
4651
4651
|
|
|
4652
4652
|
const TTL$1 = 600;
|
|
4653
|
-
const VERSION$
|
|
4654
|
-
function validate$
|
|
4653
|
+
const VERSION$3 = "03b72d395296cf8da94dcea60a4830e8";
|
|
4654
|
+
function validate$3(obj, path = 'PersonalizationRecommenderSimulateActionRepresentation') {
|
|
4655
4655
|
const v_error = (() => {
|
|
4656
4656
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4657
4657
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4668,10 +4668,10 @@ const RepresentationType$1 = 'PersonalizationRecommenderSimulateActionRepresenta
|
|
|
4668
4668
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
4669
4669
|
return input;
|
|
4670
4670
|
}
|
|
4671
|
-
const select$
|
|
4671
|
+
const select$5 = function PersonalizationRecommenderSimulateActionRepresentationSelect() {
|
|
4672
4672
|
return {
|
|
4673
4673
|
kind: 'Fragment',
|
|
4674
|
-
version: VERSION$
|
|
4674
|
+
version: VERSION$3,
|
|
4675
4675
|
private: [],
|
|
4676
4676
|
selections: [
|
|
4677
4677
|
{
|
|
@@ -4682,7 +4682,7 @@ const select$4 = function PersonalizationRecommenderSimulateActionRepresentation
|
|
|
4682
4682
|
]
|
|
4683
4683
|
};
|
|
4684
4684
|
};
|
|
4685
|
-
function equals$
|
|
4685
|
+
function equals$3(existing, incoming) {
|
|
4686
4686
|
const existing_recommendations = existing.recommendations;
|
|
4687
4687
|
const incoming_recommendations = incoming.recommendations;
|
|
4688
4688
|
if (JSONStringify(incoming_recommendations) !== JSONStringify(existing_recommendations)) {
|
|
@@ -4692,14 +4692,14 @@ function equals$2(existing, incoming) {
|
|
|
4692
4692
|
}
|
|
4693
4693
|
const ingest$1 = function PersonalizationRecommenderSimulateActionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4694
4694
|
if (process.env.NODE_ENV !== 'production') {
|
|
4695
|
-
const validateError = validate$
|
|
4695
|
+
const validateError = validate$3(input);
|
|
4696
4696
|
if (validateError !== null) {
|
|
4697
4697
|
throw validateError;
|
|
4698
4698
|
}
|
|
4699
4699
|
}
|
|
4700
4700
|
const key = path.fullPath;
|
|
4701
4701
|
const ttlToUse = TTL$1;
|
|
4702
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "personalization-service", VERSION$
|
|
4702
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "personalization-service", VERSION$3, RepresentationType$1, equals$3);
|
|
4703
4703
|
return createLink(key);
|
|
4704
4704
|
};
|
|
4705
4705
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -4712,8 +4712,8 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4712
4712
|
});
|
|
4713
4713
|
}
|
|
4714
4714
|
|
|
4715
|
-
function select$
|
|
4716
|
-
return select$
|
|
4715
|
+
function select$4(luvio, params) {
|
|
4716
|
+
return select$5();
|
|
4717
4717
|
}
|
|
4718
4718
|
function keyBuilder$3(luvio, params) {
|
|
4719
4719
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -4728,7 +4728,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4728
4728
|
luvio.storeIngest(key, ingest$1, body);
|
|
4729
4729
|
const snapshot = luvio.storeLookup({
|
|
4730
4730
|
recordId: key,
|
|
4731
|
-
node: select$
|
|
4731
|
+
node: select$4(),
|
|
4732
4732
|
variables: {},
|
|
4733
4733
|
}, snapshotRefresh);
|
|
4734
4734
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4745,7 +4745,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
4745
4745
|
const storeMetadataParams = {
|
|
4746
4746
|
ttl: TTL$1,
|
|
4747
4747
|
namespace: keyPrefix,
|
|
4748
|
-
version: VERSION$
|
|
4748
|
+
version: VERSION$3,
|
|
4749
4749
|
representationName: RepresentationType$1
|
|
4750
4750
|
};
|
|
4751
4751
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -4787,7 +4787,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
4787
4787
|
const untrustedConfig_anchors_array = [];
|
|
4788
4788
|
for (let i = 0, arrayLength = untrustedConfig_anchors.length; i < arrayLength; i++) {
|
|
4789
4789
|
const untrustedConfig_anchors_item = untrustedConfig_anchors[i];
|
|
4790
|
-
const referenceAnchorReferenceRepresentationValidationError = validate$
|
|
4790
|
+
const referenceAnchorReferenceRepresentationValidationError = validate$6(untrustedConfig_anchors_item);
|
|
4791
4791
|
if (referenceAnchorReferenceRepresentationValidationError === null) {
|
|
4792
4792
|
untrustedConfig_anchors_array.push(untrustedConfig_anchors_item);
|
|
4793
4793
|
}
|
|
@@ -4795,12 +4795,12 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
4795
4795
|
config.anchors = untrustedConfig_anchors_array;
|
|
4796
4796
|
}
|
|
4797
4797
|
const untrustedConfig_excludeFilters = untrustedConfig.excludeFilters;
|
|
4798
|
-
const referenceRuleGroupInputRepresentation2ValidationError = validate$
|
|
4798
|
+
const referenceRuleGroupInputRepresentation2ValidationError = validate$5(untrustedConfig_excludeFilters);
|
|
4799
4799
|
if (referenceRuleGroupInputRepresentation2ValidationError === null) {
|
|
4800
4800
|
config.excludeFilters = untrustedConfig_excludeFilters;
|
|
4801
4801
|
}
|
|
4802
4802
|
const untrustedConfig_includeFilters = untrustedConfig.includeFilters;
|
|
4803
|
-
const referenceRuleGroupInputRepresentationValidationError = validate$
|
|
4803
|
+
const referenceRuleGroupInputRepresentationValidationError = validate$4(untrustedConfig_includeFilters);
|
|
4804
4804
|
if (referenceRuleGroupInputRepresentationValidationError === null) {
|
|
4805
4805
|
config.includeFilters = untrustedConfig_includeFilters;
|
|
4806
4806
|
}
|
|
@@ -4828,7 +4828,7 @@ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
|
4828
4828
|
}
|
|
4829
4829
|
function adapterFragment$1(luvio, config) {
|
|
4830
4830
|
createResourceParams$1(config);
|
|
4831
|
-
return select$
|
|
4831
|
+
return select$4();
|
|
4832
4832
|
}
|
|
4833
4833
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
4834
4834
|
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
@@ -4884,92 +4884,220 @@ const postPersonalizationRecommenderSimulateActionAdapterFactory = (luvio) => fu
|
|
|
4884
4884
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
4885
4885
|
};
|
|
4886
4886
|
|
|
4887
|
-
const VERSION$
|
|
4888
|
-
function validate$
|
|
4887
|
+
const VERSION$2 = "e68c48ce57702a3f1e8ca445bbbcbbcf";
|
|
4888
|
+
function validate$2(obj, path = 'PersonalizationDataMlModelInputFeatureRepresentation') {
|
|
4889
4889
|
const v_error = (() => {
|
|
4890
4890
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4891
4891
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4892
4892
|
}
|
|
4893
|
-
const
|
|
4894
|
-
const
|
|
4895
|
-
if (
|
|
4896
|
-
return new TypeError('Expected "
|
|
4893
|
+
const obj_inputField = obj.inputField;
|
|
4894
|
+
const path_inputField = path + '.inputField';
|
|
4895
|
+
if (obj_inputField === undefined) {
|
|
4896
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_inputField + '" (at "' + path_inputField + '")');
|
|
4897
|
+
}
|
|
4898
|
+
const obj_personalizationField = obj.personalizationField;
|
|
4899
|
+
const path_personalizationField = path + '.personalizationField';
|
|
4900
|
+
if (obj_personalizationField === undefined) {
|
|
4901
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_personalizationField + '" (at "' + path_personalizationField + '")');
|
|
4897
4902
|
}
|
|
4898
|
-
const
|
|
4899
|
-
const
|
|
4900
|
-
if (typeof
|
|
4901
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
4903
|
+
const obj_type = obj.type;
|
|
4904
|
+
const path_type = path + '.type';
|
|
4905
|
+
if (typeof obj_type !== 'string') {
|
|
4906
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
4902
4907
|
}
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4908
|
+
})();
|
|
4909
|
+
return v_error === undefined ? null : v_error;
|
|
4910
|
+
}
|
|
4911
|
+
const select$3 = function PersonalizationDataMlModelInputFeatureRepresentationSelect() {
|
|
4912
|
+
return {
|
|
4913
|
+
kind: 'Fragment',
|
|
4914
|
+
version: VERSION$2,
|
|
4915
|
+
private: [],
|
|
4916
|
+
selections: [
|
|
4917
|
+
{
|
|
4918
|
+
name: 'inputField',
|
|
4919
|
+
kind: 'Object',
|
|
4920
|
+
// any
|
|
4921
|
+
},
|
|
4922
|
+
{
|
|
4923
|
+
name: 'personalizationField',
|
|
4924
|
+
kind: 'Object',
|
|
4925
|
+
// any
|
|
4926
|
+
},
|
|
4927
|
+
{
|
|
4928
|
+
name: 'type',
|
|
4929
|
+
kind: 'Scalar'
|
|
4930
|
+
}
|
|
4931
|
+
]
|
|
4932
|
+
};
|
|
4933
|
+
};
|
|
4934
|
+
function equals$2(existing, incoming) {
|
|
4935
|
+
const existing_type = existing.type;
|
|
4936
|
+
const incoming_type = incoming.type;
|
|
4937
|
+
if (!(existing_type === incoming_type)) {
|
|
4938
|
+
return false;
|
|
4939
|
+
}
|
|
4940
|
+
const existing_inputField = existing.inputField;
|
|
4941
|
+
const incoming_inputField = incoming.inputField;
|
|
4942
|
+
if (JSONStringify(incoming_inputField) !== JSONStringify(existing_inputField)) {
|
|
4943
|
+
return false;
|
|
4944
|
+
}
|
|
4945
|
+
const existing_personalizationField = existing.personalizationField;
|
|
4946
|
+
const incoming_personalizationField = incoming.personalizationField;
|
|
4947
|
+
if (JSONStringify(incoming_personalizationField) !== JSONStringify(existing_personalizationField)) {
|
|
4948
|
+
return false;
|
|
4949
|
+
}
|
|
4950
|
+
return true;
|
|
4951
|
+
}
|
|
4952
|
+
|
|
4953
|
+
const VERSION$1 = "eb7b70de2adf54962bc3f5d15a259ca4";
|
|
4954
|
+
function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
|
|
4955
|
+
const v_error = (() => {
|
|
4956
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4957
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4907
4958
|
}
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4959
|
+
const obj_dataMlModelInputs = obj.dataMlModelInputs;
|
|
4960
|
+
const path_dataMlModelInputs = path + '.dataMlModelInputs';
|
|
4961
|
+
if (!ArrayIsArray(obj_dataMlModelInputs)) {
|
|
4962
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dataMlModelInputs + '" (at "' + path_dataMlModelInputs + '")');
|
|
4963
|
+
}
|
|
4964
|
+
for (let i = 0; i < obj_dataMlModelInputs.length; i++) {
|
|
4965
|
+
const obj_dataMlModelInputs_item = obj_dataMlModelInputs[i];
|
|
4966
|
+
const path_dataMlModelInputs_item = path_dataMlModelInputs + '[' + i + ']';
|
|
4967
|
+
const referencepath_dataMlModelInputs_itemValidationError = validate$2(obj_dataMlModelInputs_item, path_dataMlModelInputs_item);
|
|
4968
|
+
if (referencepath_dataMlModelInputs_itemValidationError !== null) {
|
|
4969
|
+
let message = 'Object doesn\'t match PersonalizationDataMlModelInputFeatureRepresentation (at "' + path_dataMlModelInputs_item + '")\n';
|
|
4970
|
+
message += referencepath_dataMlModelInputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4971
|
+
return new TypeError(message);
|
|
4913
4972
|
}
|
|
4914
4973
|
}
|
|
4915
|
-
const
|
|
4916
|
-
const
|
|
4917
|
-
if (typeof
|
|
4918
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
4974
|
+
const obj_dataSpaceName = obj.dataSpaceName;
|
|
4975
|
+
const path_dataSpaceName = path + '.dataSpaceName';
|
|
4976
|
+
if (typeof obj_dataSpaceName !== 'string') {
|
|
4977
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
|
|
4978
|
+
}
|
|
4979
|
+
const obj_id = obj.id;
|
|
4980
|
+
const path_id = path + '.id';
|
|
4981
|
+
if (typeof obj_id !== 'string') {
|
|
4982
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
4983
|
+
}
|
|
4984
|
+
const obj_label = obj.label;
|
|
4985
|
+
const path_label = path + '.label';
|
|
4986
|
+
if (typeof obj_label !== 'string') {
|
|
4987
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
4988
|
+
}
|
|
4989
|
+
const obj_mlConfiguredModel = obj.mlConfiguredModel;
|
|
4990
|
+
const path_mlConfiguredModel = path + '.mlConfiguredModel';
|
|
4991
|
+
if (obj_mlConfiguredModel === undefined) {
|
|
4992
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_mlConfiguredModel + '" (at "' + path_mlConfiguredModel + '")');
|
|
4993
|
+
}
|
|
4994
|
+
const obj_name = obj.name;
|
|
4995
|
+
const path_name = path + '.name';
|
|
4996
|
+
if (typeof obj_name !== 'string') {
|
|
4997
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
4998
|
+
}
|
|
4999
|
+
const obj_profileDataGraphName = obj.profileDataGraphName;
|
|
5000
|
+
const path_profileDataGraphName = path + '.profileDataGraphName';
|
|
5001
|
+
if (typeof obj_profileDataGraphName !== 'string') {
|
|
5002
|
+
return new TypeError('Expected "string" but received "' + typeof obj_profileDataGraphName + '" (at "' + path_profileDataGraphName + '")');
|
|
5003
|
+
}
|
|
5004
|
+
const obj_status = obj.status;
|
|
5005
|
+
const path_status = path + '.status';
|
|
5006
|
+
if (typeof obj_status !== 'string') {
|
|
5007
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
4919
5008
|
}
|
|
4920
5009
|
})();
|
|
4921
5010
|
return v_error === undefined ? null : v_error;
|
|
4922
5011
|
}
|
|
4923
5012
|
const select$2 = function PersonalizationDataMlModelRepresentationSelect() {
|
|
5013
|
+
const { selections: PersonalizationDataMlModelInputFeatureRepresentation__selections, opaque: PersonalizationDataMlModelInputFeatureRepresentation__opaque, } = select$3();
|
|
4924
5014
|
return {
|
|
4925
5015
|
kind: 'Fragment',
|
|
4926
5016
|
version: VERSION$1,
|
|
4927
5017
|
private: [],
|
|
4928
5018
|
selections: [
|
|
4929
5019
|
{
|
|
4930
|
-
name: '
|
|
5020
|
+
name: 'dataMlModelInputs',
|
|
5021
|
+
kind: 'Object',
|
|
5022
|
+
plural: true,
|
|
5023
|
+
selections: PersonalizationDataMlModelInputFeatureRepresentation__selections
|
|
5024
|
+
},
|
|
5025
|
+
{
|
|
5026
|
+
name: 'dataSpaceName',
|
|
5027
|
+
kind: 'Scalar'
|
|
5028
|
+
},
|
|
5029
|
+
{
|
|
5030
|
+
name: 'id',
|
|
4931
5031
|
kind: 'Scalar'
|
|
4932
5032
|
},
|
|
4933
5033
|
{
|
|
4934
|
-
name: '
|
|
5034
|
+
name: 'label',
|
|
4935
5035
|
kind: 'Scalar'
|
|
4936
5036
|
},
|
|
4937
5037
|
{
|
|
4938
|
-
name: '
|
|
5038
|
+
name: 'mlConfiguredModel',
|
|
4939
5039
|
kind: 'Object',
|
|
4940
5040
|
// any
|
|
4941
5041
|
},
|
|
4942
5042
|
{
|
|
4943
|
-
name: '
|
|
5043
|
+
name: 'name',
|
|
5044
|
+
kind: 'Scalar'
|
|
5045
|
+
},
|
|
5046
|
+
{
|
|
5047
|
+
name: 'profileDataGraphName',
|
|
5048
|
+
kind: 'Scalar'
|
|
5049
|
+
},
|
|
5050
|
+
{
|
|
5051
|
+
name: 'status',
|
|
4944
5052
|
kind: 'Scalar'
|
|
4945
5053
|
}
|
|
4946
5054
|
]
|
|
4947
5055
|
};
|
|
4948
5056
|
};
|
|
4949
5057
|
function equals$1(existing, incoming) {
|
|
4950
|
-
const
|
|
4951
|
-
const
|
|
4952
|
-
if (!(
|
|
5058
|
+
const existing_dataSpaceName = existing.dataSpaceName;
|
|
5059
|
+
const incoming_dataSpaceName = incoming.dataSpaceName;
|
|
5060
|
+
if (!(existing_dataSpaceName === incoming_dataSpaceName)) {
|
|
5061
|
+
return false;
|
|
5062
|
+
}
|
|
5063
|
+
const existing_id = existing.id;
|
|
5064
|
+
const incoming_id = incoming.id;
|
|
5065
|
+
if (!(existing_id === incoming_id)) {
|
|
5066
|
+
return false;
|
|
5067
|
+
}
|
|
5068
|
+
const existing_label = existing.label;
|
|
5069
|
+
const incoming_label = incoming.label;
|
|
5070
|
+
if (!(existing_label === incoming_label)) {
|
|
5071
|
+
return false;
|
|
5072
|
+
}
|
|
5073
|
+
const existing_name = existing.name;
|
|
5074
|
+
const incoming_name = incoming.name;
|
|
5075
|
+
if (!(existing_name === incoming_name)) {
|
|
4953
5076
|
return false;
|
|
4954
5077
|
}
|
|
4955
|
-
const
|
|
4956
|
-
const
|
|
4957
|
-
if (!(
|
|
5078
|
+
const existing_profileDataGraphName = existing.profileDataGraphName;
|
|
5079
|
+
const incoming_profileDataGraphName = incoming.profileDataGraphName;
|
|
5080
|
+
if (!(existing_profileDataGraphName === incoming_profileDataGraphName)) {
|
|
4958
5081
|
return false;
|
|
4959
5082
|
}
|
|
4960
|
-
const
|
|
4961
|
-
const
|
|
4962
|
-
if (!(
|
|
5083
|
+
const existing_status = existing.status;
|
|
5084
|
+
const incoming_status = incoming.status;
|
|
5085
|
+
if (!(existing_status === incoming_status)) {
|
|
4963
5086
|
return false;
|
|
4964
5087
|
}
|
|
4965
|
-
const
|
|
4966
|
-
const
|
|
4967
|
-
const
|
|
4968
|
-
if (
|
|
5088
|
+
const existing_dataMlModelInputs = existing.dataMlModelInputs;
|
|
5089
|
+
const incoming_dataMlModelInputs = incoming.dataMlModelInputs;
|
|
5090
|
+
const equals_dataMlModelInputs_items = equalsArray(existing_dataMlModelInputs, incoming_dataMlModelInputs, (existing_dataMlModelInputs_item, incoming_dataMlModelInputs_item) => {
|
|
5091
|
+
if (!(equals$2(existing_dataMlModelInputs_item, incoming_dataMlModelInputs_item))) {
|
|
4969
5092
|
return false;
|
|
4970
5093
|
}
|
|
4971
5094
|
});
|
|
4972
|
-
if (
|
|
5095
|
+
if (equals_dataMlModelInputs_items === false) {
|
|
5096
|
+
return false;
|
|
5097
|
+
}
|
|
5098
|
+
const existing_mlConfiguredModel = existing.mlConfiguredModel;
|
|
5099
|
+
const incoming_mlConfiguredModel = incoming.mlConfiguredModel;
|
|
5100
|
+
if (JSONStringify(incoming_mlConfiguredModel) !== JSONStringify(existing_mlConfiguredModel)) {
|
|
4973
5101
|
return false;
|
|
4974
5102
|
}
|
|
4975
5103
|
return true;
|
|
@@ -5059,7 +5187,7 @@ function select(luvio, params) {
|
|
|
5059
5187
|
return select$1();
|
|
5060
5188
|
}
|
|
5061
5189
|
function keyBuilder$1(luvio, params) {
|
|
5062
|
-
return keyPrefix + '::PersonalizationDataMlModelCollectionRepresentation:(' + '
|
|
5190
|
+
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 + ')';
|
|
5063
5191
|
}
|
|
5064
5192
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
5065
5193
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -5097,7 +5225,7 @@ function createResourceRequest(config) {
|
|
|
5097
5225
|
const headers = {};
|
|
5098
5226
|
return {
|
|
5099
5227
|
baseUri: '/services/data/v64.0',
|
|
5100
|
-
basePath: '/personalization/
|
|
5228
|
+
basePath: '/personalization/data-ml-models',
|
|
5101
5229
|
method: 'get',
|
|
5102
5230
|
body: null,
|
|
5103
5231
|
urlParams: {},
|
|
@@ -5109,10 +5237,12 @@ function createResourceRequest(config) {
|
|
|
5109
5237
|
|
|
5110
5238
|
const adapterName = 'getPersonalizationEsModelMapping';
|
|
5111
5239
|
const getPersonalizationEsModelMapping_ConfigPropertyMetadata = [
|
|
5112
|
-
generateParamConfigMetadata('
|
|
5240
|
+
generateParamConfigMetadata('dataSpaceName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5113
5241
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5242
|
+
generateParamConfigMetadata('mlConfiguredModelName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5114
5243
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5115
|
-
generateParamConfigMetadata('
|
|
5244
|
+
generateParamConfigMetadata('profileDataGraphName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5245
|
+
generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5116
5246
|
];
|
|
5117
5247
|
const getPersonalizationEsModelMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPersonalizationEsModelMapping_ConfigPropertyMetadata);
|
|
5118
5248
|
const createResourceParams = /*#__PURE__*/ createResourceParams$a(getPersonalizationEsModelMapping_ConfigPropertyMetadata);
|