@lyxa.ai/core 1.0.11 → 1.0.13
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/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/libraries/auth/index.js +3 -2
- package/dist/libraries/auth/index.js.map +1 -1
- package/dist/libraries/auth/refreshtoken.js +0 -1
- package/dist/libraries/auth/refreshtoken.js.map +1 -1
- package/dist/libraries/event/index.js.map +1 -1
- package/dist/libraries/mongo/index.d.ts +1 -1
- package/dist/libraries/mongo/index.js +33 -4
- package/dist/libraries/mongo/index.js.map +1 -1
- package/dist/libraries/mongo/models/activity-log.model.d.ts +11 -0
- package/dist/libraries/mongo/models/activity-log.model.js +44 -0
- package/dist/libraries/mongo/models/activity-log.model.js.map +1 -0
- package/dist/libraries/mongo/models/admin-access-control.model.d.ts +11 -0
- package/dist/libraries/mongo/models/admin-access-control.model.js +55 -0
- package/dist/libraries/mongo/models/admin-access-control.model.js.map +1 -0
- package/dist/libraries/mongo/models/admin.model.d.ts +10 -0
- package/dist/libraries/mongo/models/admin.model.js +48 -0
- package/dist/libraries/mongo/models/admin.model.js.map +1 -0
- package/dist/libraries/mongo/models/app-screen-setting.model.d.ts +11 -0
- package/dist/libraries/mongo/models/app-screen-setting.model.js +48 -0
- package/dist/libraries/mongo/models/app-screen-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/attribute.model.d.ts +15 -0
- package/dist/libraries/mongo/models/attribute.model.js +65 -0
- package/dist/libraries/mongo/models/attribute.model.js.map +1 -0
- package/dist/libraries/mongo/models/auth-identity.model.d.ts +8 -0
- package/dist/libraries/mongo/models/auth-identity.model.js +33 -0
- package/dist/libraries/mongo/models/auth-identity.model.js.map +1 -0
- package/dist/libraries/mongo/models/banner.model.d.ts +22 -0
- package/dist/libraries/mongo/models/banner.model.js +91 -0
- package/dist/libraries/mongo/models/banner.model.js.map +1 -0
- package/dist/libraries/mongo/models/base/base-coupon.model.d.ts +15 -0
- package/dist/libraries/mongo/models/base/base-coupon.model.js +70 -0
- package/dist/libraries/mongo/models/base/base-coupon.model.js.map +1 -0
- package/dist/libraries/mongo/models/base/base-review.model.d.ts +13 -0
- package/dist/libraries/mongo/models/base/base-review.model.js +55 -0
- package/dist/libraries/mongo/models/base/base-review.model.js.map +1 -0
- package/dist/libraries/mongo/models/bob-finance.model.d.ts +29 -0
- package/dist/libraries/mongo/models/bob-finance.model.js +122 -0
- package/dist/libraries/mongo/models/bob-finance.model.js.map +1 -0
- package/dist/libraries/mongo/models/brand.model.d.ts +7 -0
- package/dist/libraries/mongo/models/brand.model.js +32 -0
- package/dist/libraries/mongo/models/brand.model.js.map +1 -0
- package/dist/libraries/mongo/models/category.model.d.ts +13 -0
- package/dist/libraries/mongo/models/category.model.js +59 -0
- package/dist/libraries/mongo/models/category.model.js.map +1 -0
- package/dist/libraries/mongo/models/counter.model.d.ts +8 -0
- package/dist/libraries/mongo/models/counter.model.js +33 -0
- package/dist/libraries/mongo/models/counter.model.js.map +1 -0
- package/dist/libraries/mongo/models/coupon.model.d.ts +9 -0
- package/dist/libraries/mongo/models/coupon.model.js +38 -0
- package/dist/libraries/mongo/models/coupon.model.js.map +1 -0
- package/dist/libraries/mongo/models/deal-setting.model.d.ts +12 -0
- package/dist/libraries/mongo/models/deal-setting.model.js +53 -0
- package/dist/libraries/mongo/models/deal-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/dish.model.d.ts +19 -0
- package/dist/libraries/mongo/models/dish.model.js +84 -0
- package/dist/libraries/mongo/models/dish.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/attribute-item.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/attribute-item.model.js +32 -0
- package/dist/libraries/mongo/models/embedded/attribute-item.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/attribute-map.model.d.ts +7 -0
- package/dist/libraries/mongo/models/embedded/attribute-map.model.js +29 -0
- package/dist/libraries/mongo/models/embedded/attribute-map.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/business-development-setting.model.d.ts +4 -0
- package/dist/libraries/mongo/models/embedded/business-development-setting.model.js +27 -0
- package/dist/libraries/mongo/models/embedded/business-development-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/charge-setting.model.d.ts +14 -0
- package/dist/libraries/mongo/models/embedded/charge-setting.model.js +60 -0
- package/dist/libraries/mongo/models/embedded/charge-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/charge.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/charge.model.js +28 -0
- package/dist/libraries/mongo/models/embedded/charge.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/courier-setting.model.d.ts +4 -0
- package/dist/libraries/mongo/models/embedded/courier-setting.model.js +27 -0
- package/dist/libraries/mongo/models/embedded/courier-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/currency-setting.model.d.ts +7 -0
- package/dist/libraries/mongo/models/embedded/currency-setting.model.js +38 -0
- package/dist/libraries/mongo/models/embedded/currency-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/currency.model.d.ts +10 -0
- package/dist/libraries/mongo/models/embedded/currency.model.js +57 -0
- package/dist/libraries/mongo/models/embedded/currency.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/featured-item.mode.d.ts +6 -0
- package/dist/libraries/mongo/models/embedded/featured-item.mode.js +33 -0
- package/dist/libraries/mongo/models/embedded/featured-item.mode.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/otp-fields.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/otp-fields.model.js +32 -0
- package/dist/libraries/mongo/models/embedded/otp-fields.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/package.model.d.ts +25 -0
- package/dist/libraries/mongo/models/embedded/package.model.js +86 -0
- package/dist/libraries/mongo/models/embedded/package.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/parent-document.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/parent-document.model.js +32 -0
- package/dist/libraries/mongo/models/embedded/parent-document.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/payout-setting.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/payout-setting.model.js +28 -0
- package/dist/libraries/mongo/models/embedded/payout-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/price.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/price.model.js +32 -0
- package/dist/libraries/mongo/models/embedded/price.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/product-nutrition.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/product-nutrition.model.js +32 -0
- package/dist/libraries/mongo/models/embedded/product-nutrition.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/referral-discount-config.model.d.ts +6 -0
- package/dist/libraries/mongo/models/embedded/referral-discount-config.model.js +38 -0
- package/dist/libraries/mongo/models/embedded/referral-discount-config.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/rider-setting.model.d.ts +6 -0
- package/dist/libraries/mongo/models/embedded/rider-setting.model.js +37 -0
- package/dist/libraries/mongo/models/embedded/rider-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/service-fee-setting.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/service-fee-setting.model.js +28 -0
- package/dist/libraries/mongo/models/embedded/service-fee-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/shop-document.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/shop-document.model.js +32 -0
- package/dist/libraries/mongo/models/embedded/shop-document.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/subscription-summary.model.d.ts +8 -0
- package/dist/libraries/mongo/models/embedded/subscription-summary.model.js +47 -0
- package/dist/libraries/mongo/models/embedded/subscription-summary.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/zone-geometry.mode.d.ts +4 -0
- package/dist/libraries/mongo/models/embedded/zone-geometry.mode.js +27 -0
- package/dist/libraries/mongo/models/embedded/zone-geometry.mode.js.map +1 -0
- package/dist/libraries/mongo/models/faq.model.d.ts +12 -0
- package/dist/libraries/mongo/models/faq.model.js +53 -0
- package/dist/libraries/mongo/models/faq.model.js.map +1 -0
- package/dist/libraries/mongo/models/favourite.model.d.ts +13 -0
- package/dist/libraries/mongo/models/favourite.model.js +46 -0
- package/dist/libraries/mongo/models/favourite.model.js.map +1 -0
- package/dist/libraries/mongo/models/featured-setting.model.d.ts +9 -0
- package/dist/libraries/mongo/models/featured-setting.model.js +34 -0
- package/dist/libraries/mongo/models/featured-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/filter-container.model.d.ts +11 -0
- package/dist/libraries/mongo/models/filter-container.model.js +53 -0
- package/dist/libraries/mongo/models/filter-container.model.js.map +1 -0
- package/dist/libraries/mongo/models/list-container.model.d.ts +17 -0
- package/dist/libraries/mongo/models/list-container.model.js +70 -0
- package/dist/libraries/mongo/models/list-container.model.js.map +1 -0
- package/dist/libraries/mongo/models/loyalty-point-category.model.d.ts +9 -0
- package/dist/libraries/mongo/models/loyalty-point-category.model.js +38 -0
- package/dist/libraries/mongo/models/loyalty-point-category.model.js.map +1 -0
- package/dist/libraries/mongo/models/loyalty-point-setting.model.d.ts +9 -0
- package/dist/libraries/mongo/models/loyalty-point-setting.model.js +42 -0
- package/dist/libraries/mongo/models/loyalty-point-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/marketing.model.d.ts +14 -0
- package/dist/libraries/mongo/models/marketing.model.js +55 -0
- package/dist/libraries/mongo/models/marketing.model.js.map +1 -0
- package/dist/libraries/mongo/models/meal-plan.model.d.ts +11 -0
- package/dist/libraries/mongo/models/meal-plan.model.js +52 -0
- package/dist/libraries/mongo/models/meal-plan.model.js.map +1 -0
- package/dist/libraries/mongo/models/notification.model.d.ts +40 -0
- package/dist/libraries/mongo/models/notification.model.js +155 -0
- package/dist/libraries/mongo/models/notification.model.js.map +1 -0
- package/dist/libraries/mongo/models/nutrition.model.d.ts +8 -0
- package/dist/libraries/mongo/models/nutrition.model.js +33 -0
- package/dist/libraries/mongo/models/nutrition.model.js.map +1 -0
- package/dist/libraries/mongo/models/order.model.d.ts +2 -0
- package/dist/libraries/mongo/models/order.model.js +7 -0
- package/dist/libraries/mongo/models/order.model.js.map +1 -0
- package/dist/libraries/mongo/models/parent.model.d.ts +21 -0
- package/dist/libraries/mongo/models/parent.model.js +83 -0
- package/dist/libraries/mongo/models/parent.model.js.map +1 -0
- package/dist/libraries/mongo/models/payout.model.d.ts +2 -0
- package/dist/libraries/mongo/models/payout.model.js +7 -0
- package/dist/libraries/mongo/models/payout.model.js.map +1 -0
- package/dist/libraries/mongo/models/product-marketing.model.d.ts +13 -0
- package/dist/libraries/mongo/models/product-marketing.model.js +50 -0
- package/dist/libraries/mongo/models/product-marketing.model.js.map +1 -0
- package/dist/libraries/mongo/models/product.model.d.ts +21 -0
- package/dist/libraries/mongo/models/product.model.js +95 -0
- package/dist/libraries/mongo/models/product.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/apple-auth-identity.model.d.ts +6 -0
- package/dist/libraries/mongo/models/providers/apple-auth-identity.model.js +25 -0
- package/dist/libraries/mongo/models/providers/apple-auth-identity.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/buy1-get1-marketing.model.d.ts +12 -0
- package/dist/libraries/mongo/models/providers/buy1-get1-marketing.model.js +42 -0
- package/dist/libraries/mongo/models/providers/buy1-get1-marketing.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/custom-coupon.model.d.ts +12 -0
- package/dist/libraries/mongo/models/providers/custom-coupon.model.js +39 -0
- package/dist/libraries/mongo/models/providers/custom-coupon.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/discount-marketing.model.d.ts +15 -0
- package/dist/libraries/mongo/models/providers/discount-marketing.model.js +57 -0
- package/dist/libraries/mongo/models/providers/discount-marketing.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/email-auth-identity.model.d.ts +9 -0
- package/dist/libraries/mongo/models/providers/email-auth-identity.model.js +36 -0
- package/dist/libraries/mongo/models/providers/email-auth-identity.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/featured-marketing.model.d.ts +8 -0
- package/dist/libraries/mongo/models/providers/featured-marketing.model.js +26 -0
- package/dist/libraries/mongo/models/providers/featured-marketing.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/free-delivery-marketing.model.d.ts +8 -0
- package/dist/libraries/mongo/models/providers/free-delivery-marketing.model.js +26 -0
- package/dist/libraries/mongo/models/providers/free-delivery-marketing.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/global-coupon.model.d.ts +7 -0
- package/dist/libraries/mongo/models/providers/global-coupon.model.js +13 -0
- package/dist/libraries/mongo/models/providers/global-coupon.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/google-auth-identity.model.d.ts +6 -0
- package/dist/libraries/mongo/models/providers/google-auth-identity.model.js +25 -0
- package/dist/libraries/mongo/models/providers/google-auth-identity.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/individual-store-coupon.model.d.ts +11 -0
- package/dist/libraries/mongo/models/providers/individual-store-coupon.model.js +38 -0
- package/dist/libraries/mongo/models/providers/individual-store-coupon.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/individual-user-coupon.model.d.ts +12 -0
- package/dist/libraries/mongo/models/providers/individual-user-coupon.model.js +39 -0
- package/dist/libraries/mongo/models/providers/individual-user-coupon.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/loyalty-point-marketing.model.d.ts +15 -0
- package/dist/libraries/mongo/models/providers/loyalty-point-marketing.model.js +53 -0
- package/dist/libraries/mongo/models/providers/loyalty-point-marketing.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/phone-auth-identity.model.d.ts +8 -0
- package/dist/libraries/mongo/models/providers/phone-auth-identity.model.js +31 -0
- package/dist/libraries/mongo/models/providers/phone-auth-identity.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/punch-marketing.model.d.ts +13 -0
- package/dist/libraries/mongo/models/providers/punch-marketing.model.js +51 -0
- package/dist/libraries/mongo/models/providers/punch-marketing.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/referral-code-coupon.mode.d.ts +10 -0
- package/dist/libraries/mongo/models/providers/referral-code-coupon.mode.js +28 -0
- package/dist/libraries/mongo/models/providers/referral-code-coupon.mode.js.map +1 -0
- package/dist/libraries/mongo/models/providers/referral-reward-coupon.model.d.ts +12 -0
- package/dist/libraries/mongo/models/providers/referral-reward-coupon.model.js +39 -0
- package/dist/libraries/mongo/models/providers/referral-reward-coupon.model.js.map +1 -0
- package/dist/libraries/mongo/models/punch-marketing-history.model.d.ts +11 -0
- package/dist/libraries/mongo/models/punch-marketing-history.model.js +44 -0
- package/dist/libraries/mongo/models/punch-marketing-history.model.js.map +1 -0
- package/dist/libraries/mongo/models/rating-setting.model.d.ts +9 -0
- package/dist/libraries/mongo/models/rating-setting.model.js +38 -0
- package/dist/libraries/mongo/models/rating-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/referral-setting.model.d.ts +8 -0
- package/dist/libraries/mongo/models/referral-setting.model.js +33 -0
- package/dist/libraries/mongo/models/referral-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/request-area.model copy.d.ts +9 -0
- package/dist/libraries/mongo/models/request-area.model copy.js +34 -0
- package/dist/libraries/mongo/models/request-area.model copy.js.map +1 -0
- package/dist/libraries/mongo/models/request-area.model.d.ts +9 -0
- package/dist/libraries/mongo/models/request-area.model.js +34 -0
- package/dist/libraries/mongo/models/request-area.model.js.map +1 -0
- package/dist/libraries/mongo/models/rider-review.d.ts +7 -0
- package/dist/libraries/mongo/models/rider-review.js +28 -0
- package/dist/libraries/mongo/models/rider-review.js.map +1 -0
- package/dist/libraries/mongo/models/rider-review.model.d.ts +7 -0
- package/dist/libraries/mongo/models/rider-review.model.js +28 -0
- package/dist/libraries/mongo/models/rider-review.model.js.map +1 -0
- package/dist/libraries/mongo/models/rider.model.d.ts +2 -0
- package/dist/libraries/mongo/models/rider.model.js +7 -0
- package/dist/libraries/mongo/models/rider.model.js.map +1 -0
- package/dist/libraries/mongo/models/role.model.ts.d.ts +8 -0
- package/dist/libraries/mongo/models/role.model.ts.js +37 -0
- package/dist/libraries/mongo/models/role.model.ts.js.map +1 -0
- package/dist/libraries/mongo/models/setting.model.d.ts +31 -0
- package/dist/libraries/mongo/models/setting.model.js +116 -0
- package/dist/libraries/mongo/models/setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/{address.model.d.ts → shared/address.model.d.ts} +1 -1
- package/dist/libraries/mongo/models/{address.model.js → shared/address.model.js} +1 -1
- package/dist/libraries/mongo/models/shared/address.model.js.map +1 -0
- package/dist/libraries/mongo/models/shared/duration.model.js.map +1 -0
- package/dist/libraries/mongo/models/{work-hour.model.d.ts → shared/work-hour.model.d.ts} +1 -1
- package/dist/libraries/mongo/models/{work-hour.model.js → shared/work-hour.model.js} +1 -1
- package/dist/libraries/mongo/models/shared/work-hour.model.js.map +1 -0
- package/dist/libraries/mongo/models/shop-access-control.model.d.ts +13 -0
- package/dist/libraries/mongo/models/shop-access-control.model.js +61 -0
- package/dist/libraries/mongo/models/shop-access-control.model.js.map +1 -0
- package/dist/libraries/mongo/models/shop-category.model.d.ts +12 -0
- package/dist/libraries/mongo/models/shop-category.model.js +45 -0
- package/dist/libraries/mongo/models/shop-category.model.js.map +1 -0
- package/dist/libraries/mongo/models/shop-meal-plan.model.d.ts +13 -0
- package/dist/libraries/mongo/models/shop-meal-plan.model.js +46 -0
- package/dist/libraries/mongo/models/shop-meal-plan.model.js.map +1 -0
- package/dist/libraries/mongo/models/shop-product.model.d.ts +26 -0
- package/dist/libraries/mongo/models/shop-product.model.js +103 -0
- package/dist/libraries/mongo/models/shop-product.model.js.map +1 -0
- package/dist/libraries/mongo/models/shop-review.d.ts +7 -0
- package/dist/libraries/mongo/models/shop-review.js +28 -0
- package/dist/libraries/mongo/models/shop-review.js.map +1 -0
- package/dist/libraries/mongo/models/shop.model.d.ts +50 -0
- package/dist/libraries/mongo/models/shop.model.js +215 -0
- package/dist/libraries/mongo/models/shop.model.js.map +1 -0
- package/dist/libraries/mongo/models/subscription-setting.model.d.ts +9 -0
- package/dist/libraries/mongo/models/subscription-setting.model.js +38 -0
- package/dist/libraries/mongo/models/subscription-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/subscription.model.d.ts +23 -0
- package/dist/libraries/mongo/models/subscription.model.js +92 -0
- package/dist/libraries/mongo/models/subscription.model.js.map +1 -0
- package/dist/libraries/mongo/models/tag.model.d.ts +11 -0
- package/dist/libraries/mongo/models/tag.model.js +52 -0
- package/dist/libraries/mongo/models/tag.model.js.map +1 -0
- package/dist/libraries/mongo/models/transaction.model.d.ts +2 -0
- package/dist/libraries/mongo/models/transaction.model.js +7 -0
- package/dist/libraries/mongo/models/transaction.model.js.map +1 -0
- package/dist/libraries/mongo/models/user.model.d.ts +16 -0
- package/dist/libraries/mongo/models/user.model.js +73 -0
- package/dist/libraries/mongo/models/user.model.js.map +1 -0
- package/dist/libraries/mongo/models/zone.d.ts +15 -0
- package/dist/libraries/mongo/models/zone.js +64 -0
- package/dist/libraries/mongo/models/zone.js.map +1 -0
- package/dist/libraries/mongo/models/zone.model..d.ts +15 -0
- package/dist/libraries/mongo/models/zone.model..js +64 -0
- package/dist/libraries/mongo/models/zone.model..js.map +1 -0
- package/dist/libraries/redis/index.js +0 -1
- package/dist/libraries/redis/index.js.map +1 -1
- package/dist/utilities/enum.d.ts +208 -0
- package/dist/utilities/enum.js +240 -1
- package/dist/utilities/enum.js.map +1 -1
- package/dist/utilities/validation/common-validation.d.ts +1 -1
- package/dist/utilities/validation/common-validation.js +2 -2
- package/dist/utilities/validation/common-validation.js.map +1 -1
- package/dist/utilities/validation/global-validation.d.ts +3 -1
- package/dist/utilities/validation/global-validation.js +9 -5
- package/dist/utilities/validation/global-validation.js.map +1 -1
- package/package.json +2 -1
- package/dist/libraries/mongo/models/address.model.js.map +0 -1
- package/dist/libraries/mongo/models/duration.model.js.map +0 -1
- package/dist/libraries/mongo/models/work-hour.model.js.map +0 -1
- /package/dist/libraries/mongo/models/{duration.model.d.ts → shared/duration.model.d.ts} +0 -0
- /package/dist/libraries/mongo/models/{duration.model.js → shared/duration.model.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parent.model.js","sourceRoot":"/","sources":["libraries/mongo/models/parent.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAyG;AACzG,4EAAqE;AACrE,0DAAiD;AACjD,kDAAuE;AACvE,0DAAiD;AACjD,+CAAsC;AACtC,4EAAkE;AAO3D,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,2BAAU;IAE9B,IAAI,CAAU;IAGd,WAAW,CAAU;IAGrB,OAAO,CAAW;IAGlB,UAAU,CAAU;IAGpB,MAAM,CAAU;IAGhB,QAAQ,CAAY;IAGpB,mBAAmB,CAAW;IAG9B,oBAAoB,CAAc;IAGlC,MAAM,CAAU;IAGhB,YAAY,CAAU;IAGtB,QAAQ,CAAkB;CACjC,CAAA;AAjCY,wBAAM;AAEX;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CACX;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,uBAAO,EAAE,CAAC;8BACvB,uBAAO;uCAAC;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAU,EAAE,CAAC;;0CAC9B;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,qBAAM,EAAE,CAAC;8BACP,qBAAM;sCAAC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAQ,EAAE,CAAC;;wCAC5B;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;mDAClB;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;oDACc;AAGlC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;sCACtC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACV;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,sCAAc,EAAE,CAAC;8BAC7B,sCAAc;wCAAC;iBAhCrB,MAAM;IALlB,IAAA,iBAAK,EACL,EAAE,WAAW,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,EAC/B,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,6BAA6B,EAAE,CACnG;IACA,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,CAAC;GAC9C,MAAM,CAiClB;AAEY,QAAA,WAAW,GAAmC,IAAA,4BAAgB,EAAC,MAAM,CAAC,CAAC","sourcesContent":["import { modelOptions, prop, getModelForClass, ReturnModelType, index, Ref } from '@typegoose/typegoose';\r\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\r\nimport { Address } from './shared/address.model';\r\nimport { ChargeType, ItemType, Status } from '../../../utilities/enum';\r\nimport { Charge } from './embedded/charge.model';\r\nimport { Admin } from './admin.model';\r\nimport { ParentDocument } from './embedded/parent-document.model';\r\n\r\n@index(\r\n\t{ companyName: 1, itemType: 1 },\r\n\t{ unique: true, partialFilterExpression: { deletedAt: null }, name: 'companyName_itemType_unique' }\r\n)\r\n@modelOptions({ schemaOptions: { collection: 'parents' } })\r\nexport class Parent extends TimeStamps {\r\n\t@prop({ required: true, type: String })\r\n\tpublic name!: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic phoneNumber!: string;\r\n\r\n\t@prop({ required: true, type: Address })\r\n\tpublic address!: Address;\r\n\r\n\t@prop({ required: true, type: String, enum: ChargeType })\r\n\tpublic chargeType!: string;\r\n\r\n\t@prop({ type: Charge })\r\n\tpublic charge?: Charge;\r\n\r\n\t@prop({ required: true, type: String, enum: ItemType })\r\n\tpublic itemType!: ItemType;\r\n\r\n\t@prop({ required: true, type: Boolean, default: true })\r\n\tpublic isServiceFeeCharged!: boolean;\r\n\r\n\t@prop({ ref: () => Admin })\r\n\tpublic businessDevExecutive?: Ref<Admin>;\r\n\r\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\r\n\tpublic status?: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic profilePhoto!: string;\r\n\r\n\t@prop({ required: true, type: ParentDocument })\r\n\tpublic document!: ParentDocument;\r\n}\r\n\r\nexport const ParentModel: ReturnModelType<typeof Parent> = getModelForClass(Parent);\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout.model.js","sourceRoot":"/","sources":["libraries/mongo/models/payout.model.ts"],"names":[],"mappings":";;;AAAA,MAAa,MAAM;CAAG;AAAtB,wBAAsB","sourcesContent":["export class Payout {}\r\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Ref, ReturnModelType } from '@typegoose/typegoose';
|
|
2
|
+
import { Product } from './product.model';
|
|
3
|
+
import { Marketing } from './marketing.model';
|
|
4
|
+
import { ValueType } from '../../../utilities/enum';
|
|
5
|
+
import { LoyaltyPointCategory } from './loyalty-point-category.model';
|
|
6
|
+
export declare class ProductMarketing {
|
|
7
|
+
product: Ref<Product>;
|
|
8
|
+
marketing: Ref<Marketing>;
|
|
9
|
+
loyaltyPointCategory?: Ref<LoyaltyPointCategory>;
|
|
10
|
+
valueType?: ValueType;
|
|
11
|
+
value: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const ProductMarketingModel: ReturnModelType<typeof ProductMarketing>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ProductMarketingModel = exports.ProductMarketing = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const product_model_1 = require("./product.model");
|
|
15
|
+
const marketing_model_1 = require("./marketing.model");
|
|
16
|
+
const enum_1 = require("../../../utilities/enum");
|
|
17
|
+
const loyalty_point_category_model_1 = require("./loyalty-point-category.model");
|
|
18
|
+
let ProductMarketing = class ProductMarketing {
|
|
19
|
+
product;
|
|
20
|
+
marketing;
|
|
21
|
+
loyaltyPointCategory;
|
|
22
|
+
valueType;
|
|
23
|
+
value;
|
|
24
|
+
};
|
|
25
|
+
exports.ProductMarketing = ProductMarketing;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typegoose_1.prop)({ required: true, ref: () => product_model_1.Product }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], ProductMarketing.prototype, "product", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typegoose_1.prop)({ required: true, ref: () => marketing_model_1.Marketing }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], ProductMarketing.prototype, "marketing", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typegoose_1.prop)({ ref: () => loyalty_point_category_model_1.LoyaltyPointCategory }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], ProductMarketing.prototype, "loyaltyPointCategory", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.ValueType, default: enum_1.ValueType.PERCENTAGE }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ProductMarketing.prototype, "valueType", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typegoose_1.prop)({ required: true, type: Number }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], ProductMarketing.prototype, "value", void 0);
|
|
46
|
+
exports.ProductMarketing = ProductMarketing = __decorate([
|
|
47
|
+
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'productMarketings' } })
|
|
48
|
+
], ProductMarketing);
|
|
49
|
+
exports.ProductMarketingModel = (0, typegoose_1.getModelForClass)(ProductMarketing);
|
|
50
|
+
//# sourceMappingURL=product-marketing.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-marketing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/product-marketing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAkG;AAClG,mDAA0C;AAC1C,uDAA8C;AAC9C,kDAAoD;AACpD,iFAAsE;AAG/D,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAErB,OAAO,CAAgB;IAGvB,SAAS,CAAkB;IAG3B,oBAAoB,CAA6B;IAGjD,SAAS,CAAa;IAGtB,KAAK,CAAU;CACtB,CAAA;AAfY,4CAAgB;AAErB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,uBAAO,EAAE,CAAC;;iDACf;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,2BAAS,EAAE,CAAC;;mDACb;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mDAAoB,EAAE,CAAC;;8DACc;AAGjD;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,UAAU,EAAE,CAAC;;mDAC1C;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACjB;2BAdV,gBAAgB;IAD5B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,EAAE,CAAC;GACxD,gBAAgB,CAe5B;AAEY,QAAA,qBAAqB,GACjC,IAAA,4BAAgB,EAAC,gBAAgB,CAAC,CAAC","sourcesContent":["import { getModelForClass, modelOptions, prop, Ref, ReturnModelType } from '@typegoose/typegoose';\r\nimport { Product } from './product.model';\r\nimport { Marketing } from './marketing.model';\r\nimport { ValueType } from '../../../utilities/enum';\r\nimport { LoyaltyPointCategory } from './loyalty-point-category.model';\r\n\r\n@modelOptions({ schemaOptions: { collection: 'productMarketings' } })\r\nexport class ProductMarketing {\r\n\t@prop({ required: true, ref: () => Product })\r\n\tpublic product!: Ref<Product>;\r\n\r\n\t@prop({ required: true, ref: () => Marketing })\r\n\tpublic marketing!: Ref<Marketing>;\r\n\r\n\t@prop({ ref: () => LoyaltyPointCategory }) // this field only for loyalty marketing\r\n\tpublic loyaltyPointCategory?: Ref<LoyaltyPointCategory>;\r\n\r\n\t@prop({ type: String, enum: ValueType, default: ValueType.PERCENTAGE })\r\n\tpublic valueType?: ValueType;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tpublic value!: number;\r\n}\r\n\r\nexport const ProductMarketingModel: ReturnModelType<typeof ProductMarketing> =\r\n\tgetModelForClass(ProductMarketing);\r\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReturnModelType } from '@typegoose/typegoose';
|
|
2
|
+
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
3
|
+
import { ProductNutrition } from './embedded/product-nutrition.model';
|
|
4
|
+
import { FoodGroup, ItemType, ProductDietaryType, Status } from '../../../utilities/enum';
|
|
5
|
+
export declare class Product extends TimeStamps {
|
|
6
|
+
name: string;
|
|
7
|
+
barcode?: string;
|
|
8
|
+
itemType: ItemType;
|
|
9
|
+
foodGroup?: FoodGroup;
|
|
10
|
+
images: string[];
|
|
11
|
+
status?: Status;
|
|
12
|
+
nutritionServingSize?: number;
|
|
13
|
+
nutritionServingUnit?: string;
|
|
14
|
+
nutritionPerUnit?: number;
|
|
15
|
+
nutritionCalories?: number;
|
|
16
|
+
nutritions?: ProductNutrition[];
|
|
17
|
+
dietaryTypes?: ProductDietaryType[];
|
|
18
|
+
storingTemperature?: number;
|
|
19
|
+
storingTemperatureUnit?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const ProductModel: ReturnModelType<typeof Product>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ProductModel = exports.Product = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
15
|
+
const product_nutrition_model_1 = require("./embedded/product-nutrition.model");
|
|
16
|
+
const enum_1 = require("../../../utilities/enum");
|
|
17
|
+
let Product = class Product extends defaultClasses_1.TimeStamps {
|
|
18
|
+
name;
|
|
19
|
+
barcode;
|
|
20
|
+
itemType;
|
|
21
|
+
foodGroup;
|
|
22
|
+
images;
|
|
23
|
+
status;
|
|
24
|
+
nutritionServingSize;
|
|
25
|
+
nutritionServingUnit;
|
|
26
|
+
nutritionPerUnit;
|
|
27
|
+
nutritionCalories;
|
|
28
|
+
nutritions;
|
|
29
|
+
dietaryTypes;
|
|
30
|
+
storingTemperature;
|
|
31
|
+
storingTemperatureUnit;
|
|
32
|
+
};
|
|
33
|
+
exports.Product = Product;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Product.prototype, "name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Product.prototype, "barcode", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.ItemType }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Product.prototype, "itemType", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.FoodGroup }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Product.prototype, "foodGroup", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typegoose_1.prop)({ required: true, type: [String] }),
|
|
52
|
+
__metadata("design:type", Array)
|
|
53
|
+
], Product.prototype, "images", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.Status, default: enum_1.Status.ACTIVE }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Product.prototype, "status", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typegoose_1.prop)({ type: Number, min: 0 }),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], Product.prototype, "nutritionServingSize", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], Product.prototype, "nutritionServingUnit", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typegoose_1.prop)({ type: Number, min: 0 }),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], Product.prototype, "nutritionPerUnit", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typegoose_1.prop)({ type: Number, min: 0 }),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], Product.prototype, "nutritionCalories", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typegoose_1.prop)({ type: [product_nutrition_model_1.ProductNutrition], default: [] }),
|
|
76
|
+
__metadata("design:type", Array)
|
|
77
|
+
], Product.prototype, "nutritions", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typegoose_1.prop)({ type: [String], enum: enum_1.ProductDietaryType, default: [] }),
|
|
80
|
+
__metadata("design:type", Array)
|
|
81
|
+
], Product.prototype, "dietaryTypes", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typegoose_1.prop)({ type: Number }),
|
|
84
|
+
__metadata("design:type", Number)
|
|
85
|
+
], Product.prototype, "storingTemperature", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], Product.prototype, "storingTemperatureUnit", void 0);
|
|
90
|
+
exports.Product = Product = __decorate([
|
|
91
|
+
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'products' } }),
|
|
92
|
+
(0, typegoose_1.Index)({ name: 1, itemType: 1 }, { unique: true, partialFilterExpression: { itemType: { $in: [enum_1.ItemType.GROCERY, enum_1.ItemType.PHARMACY] } } })
|
|
93
|
+
], Product);
|
|
94
|
+
exports.ProductModel = (0, typegoose_1.getModelForClass)(Product);
|
|
95
|
+
//# sourceMappingURL=product.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.model.js","sourceRoot":"/","sources":["libraries/mongo/models/product.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoG;AACpG,4EAAqE;AACrE,gFAAsE;AACtE,kDAA0F;AAOnF,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,2BAAU;IAE/B,IAAI,CAAU;IAGd,OAAO,CAAU;IAGjB,QAAQ,CAAY;IAGpB,SAAS,CAAa;IAGtB,MAAM,CAAY;IAGlB,MAAM,CAAU;IAGhB,oBAAoB,CAAU;IAG9B,oBAAoB,CAAU;IAG9B,gBAAgB,CAAU;IAG1B,iBAAiB,CAAU;IAG3B,UAAU,CAAsB;IAGhC,YAAY,CAAwB;IAGpC,kBAAkB,CAAU;IAG5B,sBAAsB,CAAU;CACvC,CAAA;AA1CY,0BAAO;AAEZ;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACC;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAQ,EAAE,CAAC;;yCAC5B;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;0CACX;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;uCAChB;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;uCACtC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;qDACM;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACc;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;iDACE;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;kDACG;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,0CAAgB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;2CACT;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,yBAAkB,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;6CACrB;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACY;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACgB;kBAzC3B,OAAO;IALnB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,CAAC;IAC3D,IAAA,iBAAK,EACL,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,EACxB,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,CAAC,eAAQ,CAAC,OAAO,EAAE,eAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CACvG;GACY,OAAO,CA0CnB;AAEY,QAAA,YAAY,GAAoC,IAAA,4BAAgB,EAAC,OAAO,CAAC,CAAC","sourcesContent":["import { getModelForClass, Index, modelOptions, prop, ReturnModelType } from '@typegoose/typegoose';\r\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\r\nimport { ProductNutrition } from './embedded/product-nutrition.model';\r\nimport { FoodGroup, ItemType, ProductDietaryType, Status } from '../../../utilities/enum';\r\n\r\n@modelOptions({ schemaOptions: { collection: 'products' } })\r\n@Index(\r\n\t{ name: 1, itemType: 1 },\r\n\t{ unique: true, partialFilterExpression: { itemType: { $in: [ItemType.GROCERY, ItemType.PHARMACY] } } }\r\n)\r\nexport class Product extends TimeStamps {\r\n\t@prop({ required: true, type: String })\r\n\tpublic name!: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic barcode?: string;\r\n\r\n\t@prop({ required: true, type: String, enum: ItemType })\r\n\tpublic itemType!: ItemType;\r\n\r\n\t@prop({ type: String, enum: FoodGroup })\r\n\tpublic foodGroup?: FoodGroup;\r\n\r\n\t@prop({ required: true, type: [String] })\r\n\tpublic images!: string[];\r\n\r\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\r\n\tpublic status?: Status;\r\n\r\n\t@prop({ type: Number, min: 0 })\r\n\tpublic nutritionServingSize?: number;\r\n\r\n\t@prop({ type: String })\r\n\tpublic nutritionServingUnit?: string;\r\n\r\n\t@prop({ type: Number, min: 0 })\r\n\tpublic nutritionPerUnit?: number;\r\n\r\n\t@prop({ type: Number, min: 0 })\r\n\tpublic nutritionCalories?: number;\r\n\r\n\t@prop({ type: [ProductNutrition], default: [] })\r\n\tpublic nutritions?: ProductNutrition[];\r\n\r\n\t@prop({ type: [String], enum: ProductDietaryType, default: [] })\r\n\tpublic dietaryTypes?: ProductDietaryType[];\r\n\r\n\t@prop({ type: Number })\r\n\tpublic storingTemperature?: number;\r\n\r\n\t@prop({ type: String })\r\n\tpublic storingTemperatureUnit?: string;\r\n}\r\n\r\nexport const ProductModel: ReturnModelType<typeof Product> = getModelForClass(Product);\r\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReturnModelType } from '@typegoose/typegoose';
|
|
2
|
+
import { AuthIdentity } from '../auth-identity.model';
|
|
3
|
+
export declare class AppleAuthIdentity extends AuthIdentity {
|
|
4
|
+
token: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const CoreAppleAuthIdentityModel: ReturnModelType<typeof AppleAuthIdentity>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CoreAppleAuthIdentityModel = exports.AppleAuthIdentity = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const auth_identity_model_1 = require("../auth-identity.model");
|
|
15
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
16
|
+
class AppleAuthIdentity extends auth_identity_model_1.AuthIdentity {
|
|
17
|
+
token;
|
|
18
|
+
}
|
|
19
|
+
exports.AppleAuthIdentity = AppleAuthIdentity;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], AppleAuthIdentity.prototype, "token", void 0);
|
|
24
|
+
exports.CoreAppleAuthIdentityModel = (0, typegoose_1.getDiscriminatorModelForClass)(auth_identity_model_1.AuthIdentityModel, AppleAuthIdentity, enum_1.AuthIdentityType.APPLE);
|
|
25
|
+
//# sourceMappingURL=apple-auth-identity.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apple-auth-identity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/apple-auth-identity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4F;AAC5F,gEAAyE;AACzE,qDAA8D;AAE9D,MAAa,iBAAkB,SAAQ,kCAAY;IAE3C,KAAK,CAAU;CACtB;AAHD,8CAGC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACjB;AAGV,QAAA,0BAA0B,GACtC,IAAA,yCAA6B,EAAC,uCAAiB,EAAE,iBAAiB,EAAE,uBAAgB,CAAC,KAAK,CAAC,CAAC","sourcesContent":["import { getDiscriminatorModelForClass, prop, ReturnModelType } from '@typegoose/typegoose';\r\nimport { AuthIdentity, AuthIdentityModel } from '../auth-identity.model';\r\nimport { AuthIdentityType } from '../../../../utilities/enum';\r\n\r\nexport class AppleAuthIdentity extends AuthIdentity {\r\n\t@prop({ required: true, type: String })\r\n\tpublic token!: string;\r\n}\r\n\r\nexport const CoreAppleAuthIdentityModel: ReturnModelType<typeof AppleAuthIdentity> =\r\n\tgetDiscriminatorModelForClass(AuthIdentityModel, AppleAuthIdentity, AuthIdentityType.APPLE);\r\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Ref, ReturnModelType } from '@typegoose/typegoose';
|
|
2
|
+
import { MarketingType } from '../../../../utilities/enum';
|
|
3
|
+
import { Marketing } from '../marketing.model';
|
|
4
|
+
import { Product } from '../product.model';
|
|
5
|
+
export declare class Buy1Get1Marketing extends Marketing {
|
|
6
|
+
marketingType: MarketingType.BUY1GET1;
|
|
7
|
+
isEntireMenu?: boolean;
|
|
8
|
+
products?: Ref<Product>[];
|
|
9
|
+
spendLimit?: number;
|
|
10
|
+
isOnlyForSubscriber?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Buy1Get1MarketingModel: ReturnModelType<typeof Buy1Get1Marketing>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Buy1Get1MarketingModel = exports.Buy1Get1Marketing = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
15
|
+
const marketing_model_1 = require("../marketing.model");
|
|
16
|
+
const product_model_1 = require("../product.model");
|
|
17
|
+
class Buy1Get1Marketing extends marketing_model_1.Marketing {
|
|
18
|
+
marketingType = enum_1.MarketingType.BUY1GET1;
|
|
19
|
+
isEntireMenu;
|
|
20
|
+
products;
|
|
21
|
+
spendLimit;
|
|
22
|
+
isOnlyForSubscriber;
|
|
23
|
+
}
|
|
24
|
+
exports.Buy1Get1Marketing = Buy1Get1Marketing;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
27
|
+
__metadata("design:type", Boolean)
|
|
28
|
+
], Buy1Get1Marketing.prototype, "isEntireMenu", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typegoose_1.prop)({ ref: () => product_model_1.Product, default: [] }),
|
|
31
|
+
__metadata("design:type", Array)
|
|
32
|
+
], Buy1Get1Marketing.prototype, "products", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], Buy1Get1Marketing.prototype, "spendLimit", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
39
|
+
__metadata("design:type", Boolean)
|
|
40
|
+
], Buy1Get1Marketing.prototype, "isOnlyForSubscriber", void 0);
|
|
41
|
+
exports.Buy1Get1MarketingModel = (0, typegoose_1.getDiscriminatorModelForClass)(marketing_model_1.MarketingModel, Buy1Get1Marketing, enum_1.MarketingType.BUY1GET1);
|
|
42
|
+
//# sourceMappingURL=buy1-get1-marketing.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buy1-get1-marketing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/buy1-get1-marketing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiG;AACjG,qDAA2D;AAC3D,wDAA+D;AAC/D,oDAA2C;AAE3C,MAAa,iBAAkB,SAAQ,2BAAS;IACxC,aAAa,GAAG,oBAAa,CAAC,QAAiB,CAAC;IAGhD,YAAY,CAAW;IAGvB,QAAQ,CAAkB;IAG1B,UAAU,CAAU;IAGpB,mBAAmB,CAAW;CACrC;AAdD,8CAcC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uDACV;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,uBAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;mDACT;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACR;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8DACH;AAGzB,QAAA,sBAAsB,GAClC,IAAA,yCAA6B,EAAC,gCAAc,EAAE,iBAAiB,EAAE,oBAAa,CAAC,QAAQ,CAAC,CAAC","sourcesContent":["import { getDiscriminatorModelForClass, prop, Ref, ReturnModelType } from '@typegoose/typegoose';\r\nimport { MarketingType } from '../../../../utilities/enum';\r\nimport { Marketing, MarketingModel } from '../marketing.model';\r\nimport { Product } from '../product.model';\r\n\r\nexport class Buy1Get1Marketing extends Marketing {\r\n\tpublic marketingType = MarketingType.BUY1GET1 as const;\r\n\r\n\t@prop({ type: Boolean, default: false })\r\n\tpublic isEntireMenu?: boolean;\r\n\r\n\t@prop({ ref: () => Product, default: [] })\r\n\tpublic products?: Ref<Product>[];\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic spendLimit?: number;\r\n\r\n\t@prop({ type: Boolean, default: false })\r\n\tpublic isOnlyForSubscriber?: boolean;\r\n}\r\n\r\nexport const Buy1Get1MarketingModel: ReturnModelType<typeof Buy1Get1Marketing> =\r\n\tgetDiscriminatorModelForClass(MarketingModel, Buy1Get1Marketing, MarketingType.BUY1GET1);\r\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Ref, ReturnModelType } from '@typegoose/typegoose';
|
|
2
|
+
import { CouponType, ItemType } from '../../../../utilities/enum';
|
|
3
|
+
import { BaseCoupon } from '../base/base-coupon.model';
|
|
4
|
+
import { User } from '../user.model';
|
|
5
|
+
import { Shop } from '../shop.model';
|
|
6
|
+
export declare class CustomCoupon extends BaseCoupon {
|
|
7
|
+
couponType: CouponType.CUSTOM_COUPON;
|
|
8
|
+
influencer: Ref<User>;
|
|
9
|
+
itemTypes?: ItemType[];
|
|
10
|
+
shops?: Ref<Shop>[];
|
|
11
|
+
}
|
|
12
|
+
export declare const CustomCouponModel: ReturnModelType<typeof CustomCoupon>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CustomCouponModel = exports.CustomCoupon = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
15
|
+
const base_coupon_model_1 = require("../base/base-coupon.model");
|
|
16
|
+
const user_model_1 = require("../user.model");
|
|
17
|
+
const shop_model_1 = require("../shop.model");
|
|
18
|
+
const coupon_model_1 = require("../coupon.model");
|
|
19
|
+
class CustomCoupon extends base_coupon_model_1.BaseCoupon {
|
|
20
|
+
couponType = enum_1.CouponType.CUSTOM_COUPON;
|
|
21
|
+
influencer;
|
|
22
|
+
itemTypes;
|
|
23
|
+
shops;
|
|
24
|
+
}
|
|
25
|
+
exports.CustomCoupon = CustomCoupon;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typegoose_1.prop)({ required: true, ref: () => user_model_1.User }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], CustomCoupon.prototype, "influencer", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typegoose_1.prop)({ type: [String], enum: enum_1.ItemType, default: [] }),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], CustomCoupon.prototype, "itemTypes", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typegoose_1.prop)({ ref: () => shop_model_1.Shop, default: [] }),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], CustomCoupon.prototype, "shops", void 0);
|
|
38
|
+
exports.CustomCouponModel = (0, typegoose_1.getDiscriminatorModelForClass)(coupon_model_1.CouponModel, CustomCoupon, enum_1.CouponType.CUSTOM_COUPON);
|
|
39
|
+
//# sourceMappingURL=custom-coupon.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-coupon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/custom-coupon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiG;AACjG,qDAAkE;AAClE,iEAAuD;AACvD,8CAAqC;AACrC,8CAAqC;AACrC,kDAA8C;AAE9C,MAAa,YAAa,SAAQ,8BAAU;IACpC,UAAU,GAAG,iBAAU,CAAC,aAAsB,CAAC;IAG/C,UAAU,CAAa;IAGvB,SAAS,CAAc;IAGvB,KAAK,CAAe;CAC3B;AAXD,oCAWC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;gDACZ;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;+CACxB;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;2CACZ;AAGf,QAAA,iBAAiB,GAAyC,IAAA,yCAA6B,EACnG,0BAAW,EACX,YAAY,EACZ,iBAAU,CAAC,aAAa,CACxB,CAAC","sourcesContent":["import { getDiscriminatorModelForClass, prop, Ref, ReturnModelType } from '@typegoose/typegoose';\r\nimport { CouponType, ItemType } from '../../../../utilities/enum';\r\nimport { BaseCoupon } from '../base/base-coupon.model';\r\nimport { User } from '../user.model';\r\nimport { Shop } from '../shop.model';\r\nimport { CouponModel } from '../coupon.model';\r\n\r\nexport class CustomCoupon extends BaseCoupon {\r\n\tpublic couponType = CouponType.CUSTOM_COUPON as const;\r\n\r\n\t@prop({ required: true, ref: () => User })\r\n\tpublic influencer!: Ref<User>;\r\n\r\n\t@prop({ type: [String], enum: ItemType, default: [] })\r\n\tpublic itemTypes?: ItemType[];\r\n\r\n\t@prop({ ref: () => Shop, default: [] })\r\n\tpublic shops?: Ref<Shop>[];\r\n}\r\n\r\nexport const CustomCouponModel: ReturnModelType<typeof CustomCoupon> = getDiscriminatorModelForClass(\r\n\tCouponModel,\r\n\tCustomCoupon,\r\n\tCouponType.CUSTOM_COUPON\r\n);\r\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Ref, ReturnModelType } from '@typegoose/typegoose';
|
|
2
|
+
import { MarketingType, ValueType } from '../../../../utilities/enum';
|
|
3
|
+
import { Marketing } from '../marketing.model';
|
|
4
|
+
import { ProductMarketing } from '../product-marketing.model';
|
|
5
|
+
export declare class DiscountMarketing extends Marketing {
|
|
6
|
+
marketingType: MarketingType.DISCOUNT;
|
|
7
|
+
isEntireMenu?: boolean;
|
|
8
|
+
valueType?: ValueType;
|
|
9
|
+
value?: number;
|
|
10
|
+
products?: Ref<ProductMarketing>[];
|
|
11
|
+
maxDiscountPerOrder?: number;
|
|
12
|
+
spendLimit?: number;
|
|
13
|
+
isOnlyForSubscriber?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const DiscountMarketingModel: ReturnModelType<typeof DiscountMarketing>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DiscountMarketingModel = exports.DiscountMarketing = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
15
|
+
const marketing_model_1 = require("../marketing.model");
|
|
16
|
+
const product_marketing_model_1 = require("../product-marketing.model");
|
|
17
|
+
class DiscountMarketing extends marketing_model_1.Marketing {
|
|
18
|
+
marketingType = enum_1.MarketingType.DISCOUNT;
|
|
19
|
+
isEntireMenu;
|
|
20
|
+
valueType;
|
|
21
|
+
value;
|
|
22
|
+
products;
|
|
23
|
+
maxDiscountPerOrder;
|
|
24
|
+
spendLimit;
|
|
25
|
+
isOnlyForSubscriber;
|
|
26
|
+
}
|
|
27
|
+
exports.DiscountMarketing = DiscountMarketing;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
30
|
+
__metadata("design:type", Boolean)
|
|
31
|
+
], DiscountMarketing.prototype, "isEntireMenu", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.ValueType }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], DiscountMarketing.prototype, "valueType", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typegoose_1.prop)({ type: Number }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], DiscountMarketing.prototype, "value", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typegoose_1.prop)({ ref: () => product_marketing_model_1.ProductMarketing, default: [] }),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], DiscountMarketing.prototype, "products", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], DiscountMarketing.prototype, "maxDiscountPerOrder", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], DiscountMarketing.prototype, "spendLimit", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], DiscountMarketing.prototype, "isOnlyForSubscriber", void 0);
|
|
56
|
+
exports.DiscountMarketingModel = (0, typegoose_1.getDiscriminatorModelForClass)(marketing_model_1.MarketingModel, DiscountMarketing, enum_1.MarketingType.DISCOUNT);
|
|
57
|
+
//# sourceMappingURL=discount-marketing.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discount-marketing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/discount-marketing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiG;AACjG,qDAAsE;AACtE,wDAA+D;AAC/D,wEAA8D;AAE9D,MAAa,iBAAkB,SAAQ,2BAAS;IACxC,aAAa,GAAG,oBAAa,CAAC,QAAiB,CAAC;IAGhD,YAAY,CAAW;IAGvB,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,QAAQ,CAA2B;IAGnC,mBAAmB,CAAU;IAG7B,UAAU,CAAU;IAGpB,mBAAmB,CAAW;CACrC;AAvBD,8CAuBC;AAnBO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uDACV;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;oDACX;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,0CAAgB,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;mDACT;AAGnC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8DACC;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACR;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8DACH;AAGzB,QAAA,sBAAsB,GAClC,IAAA,yCAA6B,EAAC,gCAAc,EAAE,iBAAiB,EAAE,oBAAa,CAAC,QAAQ,CAAC,CAAC","sourcesContent":["import { getDiscriminatorModelForClass, prop, Ref, ReturnModelType } from '@typegoose/typegoose';\r\nimport { MarketingType, ValueType } from '../../../../utilities/enum';\r\nimport { Marketing, MarketingModel } from '../marketing.model';\r\nimport { ProductMarketing } from '../product-marketing.model';\r\n\r\nexport class DiscountMarketing extends Marketing {\r\n\tpublic marketingType = MarketingType.DISCOUNT as const;\r\n\r\n\t@prop({ type: Boolean, default: false })\r\n\tpublic isEntireMenu?: boolean;\r\n\r\n\t@prop({ type: String, enum: ValueType })\r\n\tpublic valueType?: ValueType;\r\n\r\n\t@prop({ type: Number })\r\n\tpublic value?: number;\r\n\r\n\t@prop({ ref: () => ProductMarketing, default: [] })\r\n\tpublic products?: Ref<ProductMarketing>[];\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic maxDiscountPerOrder?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic spendLimit?: number;\r\n\r\n\t@prop({ type: Boolean, default: false })\r\n\tpublic isOnlyForSubscriber?: boolean;\r\n}\r\n\r\nexport const DiscountMarketingModel: ReturnModelType<typeof DiscountMarketing> =\r\n\tgetDiscriminatorModelForClass(MarketingModel, DiscountMarketing, MarketingType.DISCOUNT);\r\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReturnModelType } from '@typegoose/typegoose';
|
|
2
|
+
import { AuthIdentity } from '../auth-identity.model';
|
|
3
|
+
import { OTPFields } from '../embedded/otp-fields.model';
|
|
4
|
+
export declare class EmailAuthIdentity extends AuthIdentity {
|
|
5
|
+
email: string;
|
|
6
|
+
password: string;
|
|
7
|
+
otp: OTPFields;
|
|
8
|
+
}
|
|
9
|
+
export declare const EmailAuthIdentityModel: ReturnModelType<typeof EmailAuthIdentity>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EmailAuthIdentityModel = exports.EmailAuthIdentity = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const auth_identity_model_1 = require("../auth-identity.model");
|
|
15
|
+
const otp_fields_model_1 = require("../embedded/otp-fields.model");
|
|
16
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
17
|
+
class EmailAuthIdentity extends auth_identity_model_1.AuthIdentity {
|
|
18
|
+
email;
|
|
19
|
+
password;
|
|
20
|
+
otp;
|
|
21
|
+
}
|
|
22
|
+
exports.EmailAuthIdentity = EmailAuthIdentity;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], EmailAuthIdentity.prototype, "email", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], EmailAuthIdentity.prototype, "password", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typegoose_1.prop)({ required: true, type: otp_fields_model_1.OTPFields }),
|
|
33
|
+
__metadata("design:type", otp_fields_model_1.OTPFields)
|
|
34
|
+
], EmailAuthIdentity.prototype, "otp", void 0);
|
|
35
|
+
exports.EmailAuthIdentityModel = (0, typegoose_1.getDiscriminatorModelForClass)(auth_identity_model_1.AuthIdentityModel, EmailAuthIdentity, enum_1.AuthIdentityType.EMAIL);
|
|
36
|
+
//# sourceMappingURL=email-auth-identity.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email-auth-identity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/email-auth-identity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4F;AAC5F,gEAAyE;AACzE,mEAAyD;AACzD,qDAA8D;AAE9D,MAAa,iBAAkB,SAAQ,kCAAY;IAE3C,KAAK,CAAU;IAGf,QAAQ,CAAU;IAGlB,GAAG,CAAa;CACvB;AATD,8CASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACd;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,4BAAS,EAAE,CAAC;8BAC7B,4BAAS;8CAAC;AAGX,QAAA,sBAAsB,GAClC,IAAA,yCAA6B,EAAC,uCAAiB,EAAE,iBAAiB,EAAE,uBAAgB,CAAC,KAAK,CAAC,CAAC","sourcesContent":["import { getDiscriminatorModelForClass, prop, ReturnModelType } from '@typegoose/typegoose';\r\nimport { AuthIdentity, AuthIdentityModel } from '../auth-identity.model';\r\nimport { OTPFields } from '../embedded/otp-fields.model';\r\nimport { AuthIdentityType } from '../../../../utilities/enum';\r\n\r\nexport class EmailAuthIdentity extends AuthIdentity {\r\n\t@prop({ required: true, type: String })\r\n\tpublic email!: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic password!: string;\r\n\r\n\t@prop({ required: true, type: OTPFields })\r\n\tpublic otp!: OTPFields;\r\n}\r\n\r\nexport const EmailAuthIdentityModel: ReturnModelType<typeof EmailAuthIdentity> =\r\n\tgetDiscriminatorModelForClass(AuthIdentityModel, EmailAuthIdentity, AuthIdentityType.EMAIL);\r\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReturnModelType } from '@typegoose/typegoose';
|
|
2
|
+
import { MarketingType } from '../../../../utilities/enum';
|
|
3
|
+
import { Marketing } from '../marketing.model';
|
|
4
|
+
export declare class FeaturedMarketing extends Marketing {
|
|
5
|
+
marketingType: MarketingType.FEATURED;
|
|
6
|
+
amount?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const FeaturedMarketingModel: ReturnModelType<typeof FeaturedMarketing>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.FeaturedMarketingModel = exports.FeaturedMarketing = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
15
|
+
const marketing_model_1 = require("../marketing.model");
|
|
16
|
+
class FeaturedMarketing extends marketing_model_1.Marketing {
|
|
17
|
+
marketingType = enum_1.MarketingType.FEATURED;
|
|
18
|
+
amount;
|
|
19
|
+
}
|
|
20
|
+
exports.FeaturedMarketing = FeaturedMarketing;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typegoose_1.prop)({ type: Number }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], FeaturedMarketing.prototype, "amount", void 0);
|
|
25
|
+
exports.FeaturedMarketingModel = (0, typegoose_1.getDiscriminatorModelForClass)(marketing_model_1.MarketingModel, FeaturedMarketing, enum_1.MarketingType.FEATURED);
|
|
26
|
+
//# sourceMappingURL=featured-marketing.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featured-marketing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/featured-marketing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4F;AAC5F,qDAA2D;AAC3D,wDAA+D;AAE/D,MAAa,iBAAkB,SAAQ,2BAAS;IACxC,aAAa,GAAG,oBAAa,CAAC,QAAiB,CAAC;IAGhD,MAAM,CAAU;CACvB;AALD,8CAKC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACA;AAGX,QAAA,sBAAsB,GAClC,IAAA,yCAA6B,EAAC,gCAAc,EAAE,iBAAiB,EAAE,oBAAa,CAAC,QAAQ,CAAC,CAAC","sourcesContent":["import { getDiscriminatorModelForClass, prop, ReturnModelType } from '@typegoose/typegoose';\r\nimport { MarketingType } from '../../../../utilities/enum';\r\nimport { Marketing, MarketingModel } from '../marketing.model';\r\n\r\nexport class FeaturedMarketing extends Marketing {\r\n\tpublic marketingType = MarketingType.FEATURED as const;\r\n\r\n\t@prop({ type: Number })\r\n\tpublic amount?: number;\r\n}\r\n\r\nexport const FeaturedMarketingModel: ReturnModelType<typeof FeaturedMarketing> =\r\n\tgetDiscriminatorModelForClass(MarketingModel, FeaturedMarketing, MarketingType.FEATURED);\r\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReturnModelType } from '@typegoose/typegoose';
|
|
2
|
+
import { MarketingType } from '../../../../utilities/enum';
|
|
3
|
+
import { Marketing } from '../marketing.model';
|
|
4
|
+
export declare class FreeDeliveryMarketing extends Marketing {
|
|
5
|
+
marketingType: MarketingType.FREE_DELIVERY;
|
|
6
|
+
spendLimit?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const FreeDeliveryMarketingModel: ReturnModelType<typeof FreeDeliveryMarketing>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.FreeDeliveryMarketingModel = exports.FreeDeliveryMarketing = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
15
|
+
const marketing_model_1 = require("../marketing.model");
|
|
16
|
+
class FreeDeliveryMarketing extends marketing_model_1.Marketing {
|
|
17
|
+
marketingType = enum_1.MarketingType.FREE_DELIVERY;
|
|
18
|
+
spendLimit;
|
|
19
|
+
}
|
|
20
|
+
exports.FreeDeliveryMarketing = FreeDeliveryMarketing;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], FreeDeliveryMarketing.prototype, "spendLimit", void 0);
|
|
25
|
+
exports.FreeDeliveryMarketingModel = (0, typegoose_1.getDiscriminatorModelForClass)(marketing_model_1.MarketingModel, FreeDeliveryMarketing, enum_1.MarketingType.FREE_DELIVERY);
|
|
26
|
+
//# sourceMappingURL=free-delivery-marketing.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"free-delivery-marketing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/free-delivery-marketing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4F;AAC5F,qDAA2D;AAC3D,wDAA+D;AAE/D,MAAa,qBAAsB,SAAQ,2BAAS;IAC5C,aAAa,GAAG,oBAAa,CAAC,aAAsB,CAAC;IAGrD,UAAU,CAAU;CAC3B;AALD,sDAKC;AADO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACR;AAGf,QAAA,0BAA0B,GACtC,IAAA,yCAA6B,EAAC,gCAAc,EAAE,qBAAqB,EAAE,oBAAa,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import { getDiscriminatorModelForClass, prop, ReturnModelType } from '@typegoose/typegoose';\r\nimport { MarketingType } from '../../../../utilities/enum';\r\nimport { Marketing, MarketingModel } from '../marketing.model';\r\n\r\nexport class FreeDeliveryMarketing extends Marketing {\r\n\tpublic marketingType = MarketingType.FREE_DELIVERY as const;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic spendLimit?: number;\r\n}\r\n\r\nexport const FreeDeliveryMarketingModel: ReturnModelType<typeof FreeDeliveryMarketing> =\r\n\tgetDiscriminatorModelForClass(MarketingModel, FreeDeliveryMarketing, MarketingType.FREE_DELIVERY);\r\n"]}
|