@salesforce/lds-adapters-cdp-personalization-service 1.360.1 → 1.362.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -568,7 +568,7 @@ function validate$j(obj, path = 'FiltersWrapRepresentation') {
568
568
  for (let i = 0; i < obj_filters.length; i++) {
569
569
  const obj_filters_item = obj_filters[i];
570
570
  const path_filters_item = path_filters + '[' + i + ']';
571
- if (typeof obj_filters_item !== 'object') {
571
+ if (typeof obj_filters_item !== 'object' || Array.isArray(obj_filters_item)) {
572
572
  return new TypeError('Expected "object" but received "' + typeof obj_filters_item + '" (at "' + path_filters_item + '")');
573
573
  }
574
574
  }
@@ -1239,7 +1239,7 @@ function validate$g(obj, path = 'CriteriaRepresentation') {
1239
1239
  for (let i = 0; i < obj_filters.length; i++) {
1240
1240
  const obj_filters_item = obj_filters[i];
1241
1241
  const path_filters_item = path_filters + '[' + i + ']';
1242
- if (typeof obj_filters_item !== 'object') {
1242
+ if (typeof obj_filters_item !== 'object' || Array.isArray(obj_filters_item)) {
1243
1243
  return new TypeError('Expected "object" but received "' + typeof obj_filters_item + '" (at "' + path_filters_item + '")');
1244
1244
  }
1245
1245
  }
@@ -1425,7 +1425,7 @@ function validate$f(obj, path = 'PersonalizationDecisionRepresentation') {
1425
1425
  const path_criteria = path + '.criteria';
1426
1426
  let obj_criteria_union0 = null;
1427
1427
  const obj_criteria_union0_error = (() => {
1428
- if (typeof obj_criteria !== 'object') {
1428
+ if (typeof obj_criteria !== 'object' || Array.isArray(obj_criteria)) {
1429
1429
  return new TypeError('Expected "object" but received "' + typeof obj_criteria + '" (at "' + path_criteria + '")');
1430
1430
  }
1431
1431
  })();
@@ -1688,7 +1688,7 @@ const RepresentationType$5 = 'PersonalizationDecisionRepresentation';
1688
1688
  function normalize$5(input, existing, path, luvio, store, timestamp) {
1689
1689
  const input_criteria = input.criteria;
1690
1690
  const input_criteria_id = path.fullPath + '__criteria';
1691
- if (input_criteria !== null && typeof input_criteria === 'object') {
1691
+ if (!Array.isArray(input_criteria) && input_criteria !== null && typeof input_criteria === 'object') {
1692
1692
  input.criteria = ingest$6(input_criteria, {
1693
1693
  fullPath: input_criteria_id,
1694
1694
  propertyName: 'criteria',
@@ -1866,7 +1866,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1866
1866
  representationName: RepresentationType$5,
1867
1867
  mergeable: false
1868
1868
  });
1869
- if (input.criteria !== null && typeof input.criteria === 'object') {
1869
+ if (!Array.isArray(input.criteria) && input.criteria !== null && typeof input.criteria === 'object') {
1870
1870
  getTypeCacheKeys$6(rootKeySet, luvio, input.criteria, () => rootKey + "__" + "criteria");
1871
1871
  }
1872
1872
  }
@@ -1990,7 +1990,7 @@ function validate$e(obj, path = 'PersonalizationPointRepresentation') {
1990
1990
  for (let i = 0; i < obj_decisions.length; i++) {
1991
1991
  const obj_decisions_item = obj_decisions[i];
1992
1992
  const path_decisions_item = path_decisions + '[' + i + ']';
1993
- if (typeof obj_decisions_item !== 'object') {
1993
+ if (typeof obj_decisions_item !== 'object' || Array.isArray(obj_decisions_item)) {
1994
1994
  return new TypeError('Expected "object" but received "' + typeof obj_decisions_item + '" (at "' + path_decisions_item + '")');
1995
1995
  }
1996
1996
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cdp-personalization-service",
3
- "version": "1.360.1",
3
+ "version": "1.362.0",
4
4
  "description": "wire adapters for personalization service connect api",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/cdp-personalization-service.js",
@@ -42,10 +42,10 @@
42
42
  "test:unit:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
43
43
  },
44
44
  "dependencies": {
45
- "@salesforce/lds-bindings": "^1.360.1"
45
+ "@salesforce/lds-bindings": "^1.362.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@salesforce/lds-compiler-plugins": "^1.360.1"
48
+ "@salesforce/lds-compiler-plugins": "^1.362.0"
49
49
  },
50
50
  "nx": {
51
51
  "targets": {
package/sfdc/index.js CHANGED
@@ -578,7 +578,7 @@ function validate$j(obj, path = 'FiltersWrapRepresentation') {
578
578
  for (let i = 0; i < obj_filters.length; i++) {
579
579
  const obj_filters_item = obj_filters[i];
580
580
  const path_filters_item = path_filters + '[' + i + ']';
581
- if (typeof obj_filters_item !== 'object') {
581
+ if (typeof obj_filters_item !== 'object' || Array.isArray(obj_filters_item)) {
582
582
  return new TypeError('Expected "object" but received "' + typeof obj_filters_item + '" (at "' + path_filters_item + '")');
583
583
  }
584
584
  }
@@ -1249,7 +1249,7 @@ function validate$g(obj, path = 'CriteriaRepresentation') {
1249
1249
  for (let i = 0; i < obj_filters.length; i++) {
1250
1250
  const obj_filters_item = obj_filters[i];
1251
1251
  const path_filters_item = path_filters + '[' + i + ']';
1252
- if (typeof obj_filters_item !== 'object') {
1252
+ if (typeof obj_filters_item !== 'object' || Array.isArray(obj_filters_item)) {
1253
1253
  return new TypeError('Expected "object" but received "' + typeof obj_filters_item + '" (at "' + path_filters_item + '")');
1254
1254
  }
1255
1255
  }
@@ -1435,7 +1435,7 @@ function validate$f(obj, path = 'PersonalizationDecisionRepresentation') {
1435
1435
  const path_criteria = path + '.criteria';
1436
1436
  let obj_criteria_union0 = null;
1437
1437
  const obj_criteria_union0_error = (() => {
1438
- if (typeof obj_criteria !== 'object') {
1438
+ if (typeof obj_criteria !== 'object' || Array.isArray(obj_criteria)) {
1439
1439
  return new TypeError('Expected "object" but received "' + typeof obj_criteria + '" (at "' + path_criteria + '")');
1440
1440
  }
1441
1441
  })();
@@ -1698,7 +1698,7 @@ const RepresentationType$5 = 'PersonalizationDecisionRepresentation';
1698
1698
  function normalize$5(input, existing, path, luvio, store, timestamp) {
1699
1699
  const input_criteria = input.criteria;
1700
1700
  const input_criteria_id = path.fullPath + '__criteria';
1701
- if (input_criteria !== null && typeof input_criteria === 'object') {
1701
+ if (!Array.isArray(input_criteria) && input_criteria !== null && typeof input_criteria === 'object') {
1702
1702
  input.criteria = ingest$6(input_criteria, {
1703
1703
  fullPath: input_criteria_id,
1704
1704
  propertyName: 'criteria',
@@ -1876,7 +1876,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1876
1876
  representationName: RepresentationType$5,
1877
1877
  mergeable: false
1878
1878
  });
1879
- if (input.criteria !== null && typeof input.criteria === 'object') {
1879
+ if (!Array.isArray(input.criteria) && input.criteria !== null && typeof input.criteria === 'object') {
1880
1880
  getTypeCacheKeys$6(rootKeySet, luvio, input.criteria, () => rootKey + "__" + "criteria");
1881
1881
  }
1882
1882
  }
@@ -2000,7 +2000,7 @@ function validate$e(obj, path = 'PersonalizationPointRepresentation') {
2000
2000
  for (let i = 0; i < obj_decisions.length; i++) {
2001
2001
  const obj_decisions_item = obj_decisions[i];
2002
2002
  const path_decisions_item = path_decisions + '[' + i + ']';
2003
- if (typeof obj_decisions_item !== 'object') {
2003
+ if (typeof obj_decisions_item !== 'object' || Array.isArray(obj_decisions_item)) {
2004
2004
  return new TypeError('Expected "object" but received "' + typeof obj_decisions_item + '" (at "' + path_decisions_item + '")');
2005
2005
  }
2006
2006
  }
@@ -5694,4 +5694,4 @@ withDefaultLuvio((luvio) => {
5694
5694
  });
5695
5695
 
5696
5696
  export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationEsModelMapping, getPersonalizationEsModelMapping_imperative, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, getTrainingHistory, getTrainingHistory_imperative, postPersonalizationRecommenderSimulateAction, postPersonalizationRecommenderSimulateAction_imperative, updatePersonalizationPoint };
5697
- // version: 1.360.1-0f1676c606
5697
+ // version: 1.362.0-d2e818ae61