@infrab4a/connect 0.4.1 → 0.4.3

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.
Files changed (25) hide show
  1. package/bundles/infrab4a-connect.umd.js +25 -0
  2. package/bundles/infrab4a-connect.umd.js.map +1 -1
  3. package/esm2015/lib/domain/shop-settings/models/index.js +2 -1
  4. package/esm2015/lib/domain/shop-settings/models/shop-menu.js +7 -0
  5. package/esm2015/lib/domain/shop-settings/models/types/index.js +3 -1
  6. package/esm2015/lib/domain/shop-settings/models/types/menu-nav.type.js +2 -0
  7. package/esm2015/lib/domain/shop-settings/models/types/sub-menu.type.js +2 -0
  8. package/esm2015/lib/domain/shop-settings/repositories/index.js +2 -1
  9. package/esm2015/lib/domain/shop-settings/repositories/shop-menu.repository.js +2 -0
  10. package/esm2015/lib/domain/shopping/models/coupons/coupon.js +1 -1
  11. package/esm2015/lib/infra/firebase/firestore/repositories/shop-settings/index.js +2 -1
  12. package/esm2015/lib/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.js +12 -0
  13. package/fesm2015/infrab4a-connect.js +16 -1
  14. package/fesm2015/infrab4a-connect.js.map +1 -1
  15. package/lib/domain/shop-settings/models/index.d.ts +1 -0
  16. package/lib/domain/shop-settings/models/shop-menu.d.ts +7 -0
  17. package/lib/domain/shop-settings/models/types/index.d.ts +2 -0
  18. package/lib/domain/shop-settings/models/types/menu-nav.type.d.ts +8 -0
  19. package/lib/domain/shop-settings/models/types/sub-menu.type.d.ts +8 -0
  20. package/lib/domain/shop-settings/repositories/index.d.ts +1 -0
  21. package/lib/domain/shop-settings/repositories/shop-menu.repository.d.ts +4 -0
  22. package/lib/domain/shopping/models/coupons/coupon.d.ts +1 -1
  23. package/lib/infra/firebase/firestore/repositories/shop-settings/index.d.ts +1 -0
  24. package/lib/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +49 -0
  25. package/package.json +1 -1
@@ -944,6 +944,17 @@
944
944
  return Home;
945
945
  }(BaseModel));
946
946
 
947
+ var ShopMenu = /** @class */ (function (_super) {
948
+ __extends(ShopMenu, _super);
949
+ function ShopMenu() {
950
+ return _super !== null && _super.apply(this, arguments) || this;
951
+ }
952
+ ShopMenu.prototype.identifierFields = function () {
953
+ return ['id'];
954
+ };
955
+ return ShopMenu;
956
+ }(BaseModel));
957
+
947
958
  var InvalidArgumentError = /** @class */ (function (_super) {
948
959
  __extends(InvalidArgumentError, _super);
949
960
  function InvalidArgumentError(message) {
@@ -1553,6 +1564,18 @@
1553
1564
  return HomeFirestoreRepository;
1554
1565
  }(withCrudFirestore(withHelpers(withFirestore(Base)))));
1555
1566
 
1567
+ var ShopMenuFirestoreRepository = /** @class */ (function (_super) {
1568
+ __extends(ShopMenuFirestoreRepository, _super);
1569
+ function ShopMenuFirestoreRepository(firestore) {
1570
+ var _this = _super.call(this) || this;
1571
+ _this.firestore = firestore;
1572
+ _this.collectionName = 'shopMenus';
1573
+ _this.model = ShopMenu;
1574
+ return _this;
1575
+ }
1576
+ return ShopMenuFirestoreRepository;
1577
+ }(withCrudFirestore(withHelpers(withFirestore(Base)))));
1578
+
1556
1579
  var AuthenticationFirebaseAuthService = /** @class */ (function () {
1557
1580
  function AuthenticationFirebaseAuthService(firebaseAuth) {
1558
1581
  this.firebaseAuth = firebaseAuth;
@@ -1652,6 +1675,8 @@
1652
1675
  exports.ProductVariantFirestoreRepository = ProductVariantFirestoreRepository;
1653
1676
  exports.RequiredArgumentError = RequiredArgumentError;
1654
1677
  exports.ShippingMethod = ShippingMethod;
1678
+ exports.ShopMenu = ShopMenu;
1679
+ exports.ShopMenuFirestoreRepository = ShopMenuFirestoreRepository;
1655
1680
  exports.SignOut = SignOut;
1656
1681
  exports.Subscription = Subscription;
1657
1682
  exports.SubscriptionEditionFirestoreRepository = SubscriptionEditionFirestoreRepository;