@infrab4a/connect 1.0.0-beta.14 → 1.0.0-beta.16

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.
@@ -1729,7 +1729,7 @@
1729
1729
  fromFirestore: function (snap) {
1730
1730
  var data = snap.data();
1731
1731
  Object.keys(data).forEach(function (key) {
1732
- if (data[key] instanceof firebase__default["default"].firestore.Timestamp) {
1732
+ if (typeof data[key] === 'object' && '_seconds' in data[key]) {
1733
1733
  data[key] = data[key].toDate();
1734
1734
  }
1735
1735
  });
@@ -1843,7 +1843,7 @@
1843
1843
  case 0:
1844
1844
  query = this.collection(this.buildCollectionPathForFind(filters));
1845
1845
  query = this.makeFirestoreWhere(query, filters);
1846
- Object.keys(orderBy).forEach(function (fieldName) { return (query = query.orderBy(fieldName, orderBy[fieldName])); });
1846
+ Object.keys(orderBy || {}).forEach(function (fieldName) { return (query = query.orderBy(fieldName, orderBy[fieldName])); });
1847
1847
  return [4 /*yield*/, this.defineLimits(query, filters, limits)];
1848
1848
  case 1:
1849
1849
  query = _a.sent();
@@ -3157,7 +3157,7 @@
3157
3157
  return params.toPlain();
3158
3158
  return Object.keys(params).reduce(function (data, currentKey) {
3159
3159
  var _a;
3160
- return (Object.assign(Object.assign({}, data), (_a = {}, _a[currentKey] = getValueByAction(params[currentKey]), _a)));
3160
+ return (Object.assign(Object.assign({}, data), (params[currentKey] && (_a = {}, _a[currentKey] = getValueByAction(params[currentKey]), _a))));
3161
3161
  }, {});
3162
3162
  };
3163
3163
  UpdateHasuraGraphQLMixin.prototype.getUpdateModelKeys = function (data) {
@@ -3783,7 +3783,7 @@
3783
3783
  fields: [
3784
3784
  { id: { columnName: 'id', to: function (value) { return +value; }, from: function (value) { return value.toString(); } } },
3785
3785
  { firestoreId: { columnName: 'firestore_id' } },
3786
- { productId: { columnName: 'main_product_id', to: function (value) { return +value; }, from: function (value) { return value.toString(); } } },
3786
+ { productId: { columnName: 'main_product_id', to: function (value) { return +value; }, from: function (value) { return value === null || value === void 0 ? void 0 : value.toString(); } } },
3787
3787
  { EAN: { columnName: 'ean' } },
3788
3788
  { costPrice: { columnName: 'cost_price' } },
3789
3789
  {