@lyxa.ai/core 1.0.22 → 1.0.23
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/libraries/mongo/models/base/base-coupon.model.js.map +1 -1
- package/dist/libraries/mongo/models/cart-lineitem.model.d.ts +29 -0
- package/dist/libraries/mongo/models/cart-lineitem.model.js +120 -0
- package/dist/libraries/mongo/models/cart-lineitem.model.js.map +1 -0
- package/dist/libraries/mongo/models/cart-perticipant.model.d.ts +22 -0
- package/dist/libraries/mongo/models/cart-perticipant.model.js +104 -0
- package/dist/libraries/mongo/models/cart-perticipant.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/attribute-item.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/attribute-map.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/business-development-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/charge-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/charge.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/courier-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/currency-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/currency.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/featured-item.mode.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/otp-fields.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/package.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/parent-document.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/payment-details.model.d.ts +9 -0
- package/dist/libraries/mongo/models/embedded/payment-details.model.js +52 -0
- package/dist/libraries/mongo/models/embedded/payment-details.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/payout-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/price-breakdown.model.js +1 -1
- package/dist/libraries/mongo/models/embedded/price-breakdown.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/price.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/product-nutrition.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/referral-discount-config.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/rider-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/service-fee-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/shop-document.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/subscription-summary.model.js.map +1 -1
- package/dist/libraries/mongo/models/index.d.ts +0 -3
- package/dist/libraries/mongo/models/index.js +1 -4
- package/dist/libraries/mongo/models/index.js.map +1 -1
- package/dist/libraries/mongo/models/order-pricing.model.d.ts +18 -0
- package/dist/libraries/mongo/models/order-pricing.model.js +88 -0
- package/dist/libraries/mongo/models/order-pricing.model.js.map +1 -0
- package/dist/libraries/mongo/models/payout.model.js.map +1 -1
- package/dist/libraries/mongo/models/product.model.d.ts +21 -3
- package/dist/libraries/mongo/models/product.model.js +81 -11
- package/dist/libraries/mongo/models/product.model.js.map +1 -1
- package/dist/libraries/mongo/models/shared/duration.model.js.map +1 -1
- package/dist/libraries/mongo/models/transaction.model.js.map +1 -1
- package/dist/libraries/trpc/index.d.ts +99 -9
- package/dist/libraries/trpc/index.js +22 -1
- package/dist/libraries/trpc/index.js.map +1 -1
- package/dist/libraries/trpc/middlewares/auth.d.ts +11 -1
- package/dist/utilities/enum.d.ts +0 -1
- package/dist/utilities/enum.js +0 -1
- package/dist/utilities/enum.js.map +1 -1
- package/dist/utilities/error-handler.js +20 -5
- package/dist/utilities/error-handler.js.map +1 -1
- package/dist/utilities/validation/common-validation.d.ts +110 -110
- package/dist/utilities/validation/common-validation.js +5 -2
- package/dist/utilities/validation/common-validation.js.map +1 -1
- package/dist/utilities/validation/global-validation.d.ts +19 -5
- package/dist/utilities/validation/global-validation.js +33 -13
- package/dist/utilities/validation/global-validation.js.map +1 -1
- package/package.json +1 -1
- package/dist/libraries/mongo/models/areeba-card.model.d.ts +0 -17
- package/dist/libraries/mongo/models/areeba-card.model.js +0 -73
- package/dist/libraries/mongo/models/areeba-card.model.js.map +0 -1
- package/dist/libraries/mongo/models/auth-identity.model.d.ts +0 -8
- package/dist/libraries/mongo/models/auth-identity.model.js +0 -33
- package/dist/libraries/mongo/models/auth-identity.model.js.map +0 -1
- package/dist/libraries/mongo/models/providers/apple-auth-identity.model.d.ts +0 -6
- package/dist/libraries/mongo/models/providers/apple-auth-identity.model.js +0 -25
- package/dist/libraries/mongo/models/providers/apple-auth-identity.model.js.map +0 -1
- package/dist/libraries/mongo/models/providers/email-auth-identity.model.d.ts +0 -9
- package/dist/libraries/mongo/models/providers/email-auth-identity.model.js +0 -36
- package/dist/libraries/mongo/models/providers/email-auth-identity.model.js.map +0 -1
- package/dist/libraries/mongo/models/providers/google-auth-identity.model.d.ts +0 -6
- package/dist/libraries/mongo/models/providers/google-auth-identity.model.js +0 -25
- package/dist/libraries/mongo/models/providers/google-auth-identity.model.js.map +0 -1
- package/dist/libraries/mongo/models/providers/phone-auth-identity.model.d.ts +0 -8
- package/dist/libraries/mongo/models/providers/phone-auth-identity.model.js +0 -31
- package/dist/libraries/mongo/models/providers/phone-auth-identity.model.js.map +0 -1
- package/dist/libraries/mongo/models/providers/referral-code-coupon.mode.d.ts +0 -10
- package/dist/libraries/mongo/models/providers/referral-code-coupon.mode.js +0 -28
- package/dist/libraries/mongo/models/providers/referral-code-coupon.mode.js.map +0 -1
- package/dist/libraries/mongo/models/role.model.ts.d.ts +0 -8
- package/dist/libraries/mongo/models/role.model.ts.js +0 -37
- package/dist/libraries/mongo/models/role.model.ts.js.map +0 -1
- package/dist/libraries/mongo/models/shop-review.d.ts +0 -7
- package/dist/libraries/mongo/models/shop-review.js +0 -28
- package/dist/libraries/mongo/models/shop-review.js.map +0 -1
- package/dist/libraries/mongo/models/zone.model..d.ts +0 -15
- package/dist/libraries/mongo/models/zone.model..js +0 -64
- package/dist/libraries/mongo/models/zone.model..js.map +0 -1
|
@@ -35,7 +35,6 @@ import { Setting } from './setting.model';
|
|
|
35
35
|
import { ShopAccessControl } from './shop-access-control.model';
|
|
36
36
|
import { ShopCategory } from './shop-category.model';
|
|
37
37
|
import { ShopMealPlan } from './shop-meal-plan.model';
|
|
38
|
-
import { ShopProduct } from './shop-product.model';
|
|
39
38
|
import { ShopReview } from './shop-review.model';
|
|
40
39
|
import { Shop } from './shop.model';
|
|
41
40
|
import { SubscriptionSetting } from './subscription-setting.model';
|
|
@@ -190,8 +189,6 @@ export declare const ShopCategoryModel: ReturnModelType<typeof ShopCategory>;
|
|
|
190
189
|
export * from './shop-category.model';
|
|
191
190
|
export declare const ShopMealPlanModel: ReturnModelType<typeof ShopMealPlan>;
|
|
192
191
|
export * from './shop-meal-plan.model';
|
|
193
|
-
export declare const ShopProductModel: ReturnModelType<typeof ShopProduct>;
|
|
194
|
-
export * from './shop-product.model';
|
|
195
192
|
export declare const ShopReviewModel: ReturnModelType<typeof ShopReview>;
|
|
196
193
|
export * from './shop-review.model';
|
|
197
194
|
export declare const ShopModel: ReturnModelType<typeof Shop>;
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.ReferralSettingModel = exports.RatingSettingModel = exports.PunchMarketingHistoryModel = exports.ProductModel = exports.ProductMarketingModel = exports.ParentModel = exports.NutritionModel = exports.NotificationModel = exports.MealPlanModel = exports.PunchMarketingModel = exports.LoyaltyPointMarketingModel = exports.FreeDeliveryMarketingModel = exports.FeaturedMarketingModel = exports.DiscountMarketingModel = exports.Buy1Get1MarketingModel = exports.MarketingModel = exports.LoyaltyPointSettingModel = exports.LoyaltyPointCategoryModel = exports.ListContainerModel = exports.FilterContainerModel = exports.FeaturedSettingModel = exports.FavouriteModel = exports.FaqModel = exports.DishModel = exports.DealSettingModel = exports.ReferralRewardCouponModel = exports.ReferralCodeCouponModel = exports.IndividualUserCouponModel = exports.IndividualStoreCouponModel = exports.GlobalCouponModel = exports.CustomCouponModel = exports.CouponModel = exports.CounterModel = exports.CoreUserModel = exports.CoreAppleAuthIdentityModel = exports.CoreGoogleAuthIdentityModel = exports.CorePhoneAuthIdentityModel = exports.CoreEmailAuthIdentityModel = exports.CoreAuthIdentityModel = exports.CategoryModel = exports.AreebaCardModel = exports.CardModel = exports.BrandModel = exports.BOBFinanceModel = exports.BannerModel = exports.AttributeModel = exports.AppScreenSettingModel = exports.AdminModel = exports.AdminAccessControlModel = exports.ActivityLogModel = void 0;
|
|
18
|
-
exports.CartParticipantModel = exports.LineItemModel = exports.CartModel = exports.ZoneModel = exports.UserModel = exports.TagModel = exports.SubscriptionModel = exports.SubscriptionSettingModel = exports.ShopModel = exports.ShopReviewModel = exports.
|
|
18
|
+
exports.CartParticipantModel = exports.LineItemModel = exports.CartModel = exports.ZoneModel = exports.UserModel = exports.TagModel = exports.SubscriptionModel = exports.SubscriptionSettingModel = exports.ShopModel = exports.ShopReviewModel = exports.ShopMealPlanModel = exports.ShopCategoryModel = exports.ShopAccessControlModel = exports.SettingModel = exports.RoleModel = exports.RiderModel = exports.RiderTrackingModel = exports.RiderTimeoutModel = exports.RiderReviewModel = exports.RequestAreaModel = void 0;
|
|
19
19
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
20
20
|
const admin_model_1 = require("./admin.model");
|
|
21
21
|
const admin_access_control_model_1 = require("./admin-access-control.model");
|
|
@@ -54,7 +54,6 @@ const setting_model_1 = require("./setting.model");
|
|
|
54
54
|
const shop_access_control_model_1 = require("./shop-access-control.model");
|
|
55
55
|
const shop_category_model_1 = require("./shop-category.model");
|
|
56
56
|
const shop_meal_plan_model_1 = require("./shop-meal-plan.model");
|
|
57
|
-
const shop_product_model_1 = require("./shop-product.model");
|
|
58
57
|
const shop_review_model_1 = require("./shop-review.model");
|
|
59
58
|
const shop_model_1 = require("./shop.model");
|
|
60
59
|
const subscription_setting_model_1 = require("./subscription-setting.model");
|
|
@@ -210,8 +209,6 @@ exports.ShopCategoryModel = (0, typegoose_1.getModelForClass)(shop_category_mode
|
|
|
210
209
|
__exportStar(require("./shop-category.model"), exports);
|
|
211
210
|
exports.ShopMealPlanModel = (0, typegoose_1.getModelForClass)(shop_meal_plan_model_1.ShopMealPlan);
|
|
212
211
|
__exportStar(require("./shop-meal-plan.model"), exports);
|
|
213
|
-
exports.ShopProductModel = (0, typegoose_1.getModelForClass)(shop_product_model_1.ShopProduct);
|
|
214
|
-
__exportStar(require("./shop-product.model"), exports);
|
|
215
212
|
exports.ShopReviewModel = (0, typegoose_1.getModelForClass)(shop_review_model_1.ShopReview);
|
|
216
213
|
__exportStar(require("./shop-review.model"), exports);
|
|
217
214
|
exports.ShopModel = (0, typegoose_1.getModelForClass)(shop_model_1.Shop);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["libraries/mongo/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,oDAAwG;AACxG,+CAAsC;AACtC,6EAAkE;AAClE,6DAAmD;AACnD,yEAA8D;AAC9D,uDAA8C;AAC9C,iDAAwC;AACxC,2DAAiD;AACjD,+CAAsC;AACtC,qDAA4C;AAC5C,mDAA0C;AAC1C,iDAAwC;AACxC,6DAAmD;AACnD,6CAAoC;AACpC,2CAAkC;AAClC,uDAA8C;AAC9C,qEAA2D;AAC3D,qEAA2D;AAC3D,iEAAuD;AACvD,iFAAsE;AACtE,+EAAoE;AACpE,uDAA8C;AAC9C,uDAA6C;AAC7C,uDAA8C;AAC9C,iDAAwC;AACxC,uEAA6D;AAC7D,mDAA0C;AAC1C,mFAAwE;AACxE,iEAAuD;AACvD,qEAA2D;AAC3D,6DAAmD;AACnD,6DAAmD;AACnD,6CAAoC;AACpC,uCAAgF;AAChF,mDAA0C;AAC1C,2EAAgE;AAChE,+DAAqD;AACrD,iEAAsD;AACtD,6DAAmD;AACnD,2DAAiD;AACjD,6CAAoC;AACpC,6EAAmE;AACnE,6DAAoD;AACpD,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BAAU,CAAC,CAAC;AAChG,sDAAoC;AAEvB,QAAA,SAAS,GAAiC,IAAA,4BAAgB,EAAC,iBAAI,CAAC,CAAC;AAC9E,+CAA6B;AAEhB,QAAA,wBAAwB,GACpC,IAAA,4BAAgB,EAAC,gDAAmB,CAAC,CAAC;AACvC,+DAA6C;AAEhC,QAAA,iBAAiB,GAAyC,IAAA,4BAAgB,EAAC,iCAAY,CAAC,CAAC;AACtG,uDAAqC;AAExB,QAAA,QAAQ,GAAgC,IAAA,4BAAgB,EAAC,eAAG,CAAC,CAAC;AAC3E,8CAA4B;AAEf,QAAA,SAAS,GAAiC,IAAA,4BAAgB,EAAC,iBAAI,CAAC,CAAC;AAC9E,+CAA6B;AAEhB,QAAA,SAAS,GAAiC,IAAA,4BAAgB,EAAC,iBAAI,CAAC,CAAC;AAC9E,+CAA6B;AAEhB,QAAA,SAAS,GAAiC,IAAA,4BAAgB,EAAC,iBAAI,CAAC,CAAC;AAC9E,+CAA6B;AAEhB,QAAA,aAAa,GAAqC,IAAA,4BAAgB,EAAC,0BAAQ,CAAC,CAAC;AAC1F,oDAAkC;AAErB,QAAA,oBAAoB,GAChC,IAAA,4BAAgB,EAAC,wCAAe,CAAC,CAAC;AACnC,2DAAyC","sourcesContent":["import { getDiscriminatorModelForClass, getModelForClass, ReturnModelType } from '@typegoose/typegoose';\r\nimport { Admin } from './admin.model';\r\nimport { AdminAccessControl } from './admin-access-control.model';\r\nimport { ActivityLog } from './activity-log.model';\r\nimport { AppScreenSetting } from './app-screen-setting.model';\r\nimport { Attribute } from './attribute.model';\r\nimport { Banner } from './banner.model';\r\nimport { BOBFinance } from './bob-finance.model';\r\nimport { Brand } from './brand.model';\r\nimport { Category } from './category.model';\r\nimport { Counter } from './counter.model';\r\nimport { Coupon } from './coupon.model';\r\nimport { DealSetting } from './deal-setting.model';\r\nimport { Dish } from './dish.model';\r\nimport { Faq } from './faq.model';\r\nimport { Favourite } from './favourite.model';\r\nimport { FeaturedSetting } from './featured-setting.model';\r\nimport { FilterContainer } from './filter-container.model';\r\nimport { ListContainer } from './list-container.model';\r\nimport { LoyaltyPointCategory } from './loyalty-point-category.model';\r\nimport { LoyaltyPointSetting } from './loyalty-point-setting.model';\r\nimport { Marketing } from './marketing.model';\r\nimport { MealPlan } from './meal-plan.model';\r\nimport { Nutrition } from './nutrition.model';\r\nimport { Parent } from './parent.model';\r\nimport { ProductMarketing } from './product-marketing.model';\r\nimport { Product } from './product.model';\r\nimport { PunchMarketingHistory } from './punch-marketing-history.model';\r\nimport { RatingSetting } from './rating-setting.model';\r\nimport { ReferralSetting } from './referral-setting.model';\r\nimport { RequestArea } from './request-area.model';\r\nimport { RiderReview } from './rider-review.model';\r\nimport { Role } from './role.model';\r\nimport { createGlobalDiscriminatorModel, createGlobalModel } from '../../mongo';\r\nimport { Setting } from './setting.model';\r\nimport { ShopAccessControl } from './shop-access-control.model';\r\nimport { ShopCategory } from './shop-category.model';\r\nimport { ShopMealPlan } from './shop-meal-plan.model';\r\nimport { ShopProduct } from './shop-product.model';\r\nimport { ShopReview } from './shop-review.model';\r\nimport { Shop } from './shop.model';\r\nimport { SubscriptionSetting } from './subscription-setting.model';\r\nimport { Subscription } from './subscription.model';\r\nimport { Tag } from './tag.model';\r\nimport { Zone } from './zone.model';\r\nimport { Buy1Get1Marketing } from './providers/buy1-get1-marketing.model';\r\nimport { CardType, CoreAuthIdentityType, CouponType, MarketingType } from '../../../utilities/enum';\r\nimport { CustomCoupon } from './providers/custom-coupon.model';\r\nimport { DiscountMarketing } from './providers/discount-marketing.model';\r\nimport { FeaturedMarketing } from './providers/featured-marketing.model';\r\nimport { FreeDeliveryMarketing } from './providers/free-delivery-marketing.model';\r\nimport { GlobalCoupon } from './providers/global-coupon.model';\r\nimport { IndividualStoreCoupon } from './providers/individual-store-coupon.model';\r\nimport { IndividualUserCoupon } from './providers/individual-user-coupon.model';\r\nimport { LoyaltyPointMarketing } from './providers/loyalty-point-marketing.model';\r\nimport { PunchMarketing } from './providers/punch-marketing.model';\r\nimport { ReferralCodeCoupon } from './providers/referral-code-coupon.model';\r\nimport { ReferralRewardCoupon } from './providers/referral-reward-coupon.model';\r\nimport { Notification } from './notification.model';\r\nimport { CoreAuthIdentity } from './core-auth-identity.model';\r\nimport { CoreEmailAuthIdentity } from './providers/core-email-auth-identity.model';\r\nimport { CorePhoneAuthIdentity } from './providers/core-phone-auth-identity.model';\r\nimport { CoreGoogleAuthIdentity } from './providers/core-google-auth-identity.model';\r\nimport { CoreAppleAuthIdentity } from './providers/core-apple-auth-identity.model';\r\nimport { CoreUser } from './core-user.model';\r\nimport { Card } from './card.model';\r\nimport { AreebaCard } from './providers/areeba-card.model';\r\nimport { RiderTracking } from './rider-tracking.model';\r\nimport { Rider } from './rider.model';\r\nimport { RiderTimeout } from './rider-timeout.model';\r\nimport { User } from './user.model';\r\nimport { Cart } from './cart.model';\r\nimport { LineItem } from './line-item.model';\r\nimport { CartParticipant } from './cart-participant.model';\r\n\r\nexport const ActivityLogModel: ReturnModelType<typeof ActivityLog> = getModelForClass(ActivityLog);\r\nexport * from './activity-log.model';\r\n\r\nexport const AdminAccessControlModel: ReturnModelType<typeof AdminAccessControl> =\r\n\tgetModelForClass(AdminAccessControl);\r\nexport * from './admin-access-control.model';\r\n\r\nexport const AdminModel: ReturnModelType<typeof Admin> = getModelForClass(Admin);\r\nexport * from './admin.model';\r\n\r\nexport const AppScreenSettingModel: ReturnModelType<typeof AppScreenSetting> =\r\n\tgetModelForClass(AppScreenSetting);\r\nexport * from './app-screen-setting.model';\r\n\r\nexport const AttributeModel: ReturnModelType<typeof Attribute> = getModelForClass(Attribute);\r\nexport * from './attribute.model';\r\n\r\nexport const BannerModel: ReturnModelType<typeof Banner> = getModelForClass(Banner);\r\nexport * from './banner.model';\r\n\r\nexport const BOBFinanceModel: ReturnModelType<typeof BOBFinance> = getModelForClass(BOBFinance);\r\nexport * from './bob-finance.model';\r\n\r\nexport const BrandModel: ReturnModelType<typeof Brand> = getModelForClass(Brand);\r\nexport * from './brand.model';\r\n\r\nexport const CardModel: ReturnModelType<typeof Card> = createGlobalModel(Card);\r\nexport const AreebaCardModel: ReturnModelType<typeof AreebaCard> = createGlobalDiscriminatorModel(\r\n\tCardModel,\r\n\tAreebaCard,\r\n\tCardType.AREEBA\r\n);\r\nexport * from './card.model';\r\nexport * from './providers/areeba-card.model';\r\n\r\nexport const CategoryModel: ReturnModelType<typeof Category> = getModelForClass(Category);\r\nexport * from './category.model';\r\n\r\nexport const CoreAuthIdentityModel: ReturnModelType<typeof CoreAuthIdentity> =\r\ncreateGlobalModel(CoreAuthIdentity);\r\nexport const CoreEmailAuthIdentityModel: ReturnModelType<typeof CoreEmailAuthIdentity> =\r\ncreateGlobalDiscriminatorModel(CoreAuthIdentityModel, CoreEmailAuthIdentity, CoreAuthIdentityType.EMAIL);\r\nexport const CorePhoneAuthIdentityModel: ReturnModelType<typeof CorePhoneAuthIdentity> =\r\ncreateGlobalDiscriminatorModel(CoreAuthIdentityModel, CorePhoneAuthIdentity, CoreAuthIdentityType.PHONE);\r\nexport const CoreGoogleAuthIdentityModel: ReturnModelType<typeof CoreGoogleAuthIdentity> =\r\ncreateGlobalDiscriminatorModel(CoreAuthIdentityModel, CoreGoogleAuthIdentity, CoreAuthIdentityType.GOOGLE);\r\nexport const CoreAppleAuthIdentityModel: ReturnModelType<typeof CoreAppleAuthIdentity> =\r\ncreateGlobalDiscriminatorModel(CoreAuthIdentityModel, CoreAppleAuthIdentity, CoreAuthIdentityType.APPLE);\r\nexport * from './core-auth-identity.model';\r\nexport * from './providers/core-apple-auth-identity.model';\r\nexport * from './providers/core-email-auth-identity.model';\r\nexport * from './providers/core-google-auth-identity.model';\r\nexport * from './providers/core-phone-auth-identity.model';\r\n\r\nexport const CoreUserModel: ReturnModelType<typeof CoreUser> = createGlobalModel(CoreUser);\r\nexport * from './core-user.model';\r\n\r\nexport const CounterModel: ReturnModelType<typeof Counter> = getModelForClass(Counter);\r\nexport * from './counter.model';\r\n\r\nexport const CouponModel: ReturnModelType<typeof Coupon> = getModelForClass(Coupon);\r\nexport const CustomCouponModel: ReturnModelType<typeof CustomCoupon> = getDiscriminatorModelForClass(\r\n\tCouponModel,\r\n\tCustomCoupon,\r\n\tCouponType.CUSTOM_COUPON\r\n);\r\nexport const GlobalCouponModel: ReturnModelType<typeof GlobalCoupon> = getDiscriminatorModelForClass(\r\n\tCouponModel,\r\n\tGlobalCoupon,\r\n\tCouponType.GLOBAL\r\n);\r\nexport const IndividualStoreCouponModel: ReturnModelType<typeof IndividualStoreCoupon> =\r\n\tgetDiscriminatorModelForClass(CouponModel, IndividualStoreCoupon, CouponType.INDIVIDUAL_STORE);\r\nexport const IndividualUserCouponModel: ReturnModelType<typeof IndividualUserCoupon> =\r\n\tgetDiscriminatorModelForClass(CouponModel, IndividualUserCoupon, CouponType.INDIVIDUAL_USER);\r\nexport const ReferralCodeCouponModel: ReturnModelType<typeof ReferralCodeCoupon> =\r\n\tgetDiscriminatorModelForClass(CouponModel, ReferralCodeCoupon, CouponType.REFERRAL_CODE);\r\nexport const ReferralRewardCouponModel: ReturnModelType<typeof ReferralRewardCoupon> =\r\n\tgetDiscriminatorModelForClass(CouponModel, ReferralRewardCoupon, CouponType.REFERRAL_REWARD);\r\nexport * from './coupon.model';\r\nexport * from './providers/custom-coupon.model';\r\nexport * from './providers/global-coupon.model';\r\nexport * from './providers/individual-store-coupon.model';\r\nexport * from './providers/individual-user-coupon.model';\r\nexport * from './providers/referral-code-coupon.model';\r\nexport * from './providers/referral-reward-coupon.model';\r\n\r\nexport const DealSettingModel: ReturnModelType<typeof DealSetting> = getModelForClass(DealSetting);\r\nexport * from './deal-setting.model';\r\n\r\nexport const DishModel: ReturnModelType<typeof Dish> = getModelForClass(Dish);\r\nexport * from './dish.model';\r\n\r\nexport const FaqModel: ReturnModelType<typeof Faq> = getModelForClass(Faq);\r\nexport * from './faq.model';\r\n\r\nexport const FavouriteModel: ReturnModelType<typeof Favourite> = getModelForClass(Favourite);\r\nexport * from './favourite.model';\r\n\r\nexport const FeaturedSettingModel: ReturnModelType<typeof FeaturedSetting> =\r\n\tgetModelForClass(FeaturedSetting);\r\nexport * from './featured-setting.model';\r\n\r\nexport const FilterContainerModel: ReturnModelType<typeof FilterContainer> =\r\n\tgetModelForClass(FilterContainer);\r\nexport * from './filter-container.model';\r\n\r\nexport const ListContainerModel: ReturnModelType<typeof ListContainer> = getModelForClass(ListContainer);\r\nexport * from './list-container.model';\r\n\r\nexport const LoyaltyPointCategoryModel: ReturnModelType<typeof LoyaltyPointCategory> =\r\n\tgetModelForClass(LoyaltyPointCategory);\r\nexport * from './loyalty-point-category.model';\r\n\r\nexport const LoyaltyPointSettingModel: ReturnModelType<typeof LoyaltyPointSetting> =\r\n\tgetModelForClass(LoyaltyPointSetting);\r\nexport * from './loyalty-point-setting.model';\r\n\r\nexport const MarketingModel: ReturnModelType<typeof Marketing> = getModelForClass(Marketing);\r\nexport const Buy1Get1MarketingModel: ReturnModelType<typeof Buy1Get1Marketing> =\r\n\tgetDiscriminatorModelForClass(MarketingModel, Buy1Get1Marketing, MarketingType.BUY1GET1);\r\nexport const DiscountMarketingModel: ReturnModelType<typeof DiscountMarketing> =\r\n\tgetDiscriminatorModelForClass(MarketingModel, DiscountMarketing, MarketingType.DISCOUNT);\r\nexport const FeaturedMarketingModel: ReturnModelType<typeof FeaturedMarketing> =\r\n\tgetDiscriminatorModelForClass(MarketingModel, FeaturedMarketing, MarketingType.FEATURED);\r\nexport const FreeDeliveryMarketingModel: ReturnModelType<typeof FreeDeliveryMarketing> =\r\n\tgetDiscriminatorModelForClass(MarketingModel, FreeDeliveryMarketing, MarketingType.FREE_DELIVERY);\r\nexport const LoyaltyPointMarketingModel: ReturnModelType<typeof LoyaltyPointMarketing> =\r\n\tgetDiscriminatorModelForClass(MarketingModel, LoyaltyPointMarketing, MarketingType.LOYALTY_POINT);\r\nexport const PunchMarketingModel: ReturnModelType<typeof PunchMarketing> = getDiscriminatorModelForClass(\r\n\tMarketingModel,\r\n\tPunchMarketing,\r\n\tMarketingType.PUNCH_MARKETING\r\n);\r\nexport * from './marketing.model';\r\nexport * from './providers/buy1-get1-marketing.model';\r\nexport * from './providers/discount-marketing.model';\r\nexport * from './providers/featured-marketing.model';\r\nexport * from './providers/free-delivery-marketing.model';\r\nexport * from './providers/loyalty-point-marketing.model';\r\nexport * from './providers/punch-marketing.model';\r\n\r\nexport const MealPlanModel: ReturnModelType<typeof MealPlan> = getModelForClass(MealPlan);\r\nexport * from './meal-plan.model';\r\n\r\nexport const NotificationModel: ReturnModelType<typeof Notification> = getModelForClass(Notification);\r\nexport * from './notification.model';\r\n\r\nexport const NutritionModel: ReturnModelType<typeof Nutrition> = getModelForClass(Nutrition);\r\nexport * from './nutrition.model';\r\n\r\nexport const ParentModel: ReturnModelType<typeof Parent> = getModelForClass(Parent);\r\nexport * from './parent.model';\r\n\r\nexport const ProductMarketingModel: ReturnModelType<typeof ProductMarketing> =\r\n\tgetModelForClass(ProductMarketing);\r\nexport * from './product-marketing.model';\r\n\r\nexport const ProductModel: ReturnModelType<typeof Product> = getModelForClass(Product);\r\nexport * from './product.model';\r\n\r\nexport const PunchMarketingHistoryModel: ReturnModelType<typeof PunchMarketingHistory> =\r\n\tgetModelForClass(PunchMarketingHistory);\r\nexport * from './punch-marketing-history.model';\r\n\r\nexport const RatingSettingModel: ReturnModelType<typeof RatingSetting> = getModelForClass(RatingSetting);\r\nexport * from './rating-setting.model';\r\n\r\nexport const ReferralSettingModel: ReturnModelType<typeof ReferralSetting> =\r\n\tgetModelForClass(ReferralSetting);\r\nexport * from './referral-setting.model';\r\n\r\nexport const RequestAreaModel: ReturnModelType<typeof RequestArea> = getModelForClass(RequestArea);\r\nexport * from './request-area.model';\r\n\r\nexport const RiderReviewModel: ReturnModelType<typeof RiderReview> = getModelForClass(RiderReview);\r\nexport * from './rider-review.model';\r\n\r\nexport const RiderTimeoutModel: ReturnModelType<typeof RiderTimeout> = getModelForClass(RiderTimeout);\r\nexport * from './rider-timeout.model';\r\n\r\nexport const RiderTrackingModel: ReturnModelType<typeof RiderTracking> = getModelForClass(RiderTracking);\r\nexport * from './rider-tracking.model';\r\n\r\nexport const RiderModel: ReturnModelType<typeof Rider> = getModelForClass(Rider);\r\nexport * from './rider.model';\r\n\r\nexport const RoleModel: ReturnModelType<typeof Role> = createGlobalModel(Role);\r\nexport * from './role.model';\r\n\r\nexport const SettingModel: ReturnModelType<typeof Setting> = getModelForClass(Setting);\r\nexport * from './setting.model';\r\n\r\nexport const ShopAccessControlModel: ReturnModelType<typeof ShopAccessControl> =\r\n\tgetModelForClass(ShopAccessControl);\r\nexport * from './shop-access-control.model';\r\n\r\nexport const ShopCategoryModel: ReturnModelType<typeof ShopCategory> = getModelForClass(ShopCategory);\r\nexport * from './shop-category.model';\r\n\r\nexport const ShopMealPlanModel: ReturnModelType<typeof ShopMealPlan> = getModelForClass(ShopMealPlan);\r\nexport * from './shop-meal-plan.model';\r\n\r\nexport const ShopProductModel: ReturnModelType<typeof ShopProduct> = getModelForClass(ShopProduct);\r\nexport * from './shop-product.model';\r\n\r\nexport const ShopReviewModel: ReturnModelType<typeof ShopReview> = getModelForClass(ShopReview);\r\nexport * from './shop-review.model';\r\n\r\nexport const ShopModel: ReturnModelType<typeof Shop> = getModelForClass(Shop);\r\nexport * from './shop.model';\r\n\r\nexport const SubscriptionSettingModel: ReturnModelType<typeof SubscriptionSetting> =\r\n\tgetModelForClass(SubscriptionSetting);\r\nexport * from './subscription-setting.model';\r\n\r\nexport const SubscriptionModel: ReturnModelType<typeof Subscription> = getModelForClass(Subscription);\r\nexport * from './subscription.model';\r\n\r\nexport const TagModel: ReturnModelType<typeof Tag> = getModelForClass(Tag);\r\nexport * from './tag.model';\r\n\r\nexport const UserModel: ReturnModelType<typeof User> = getModelForClass(User);\r\nexport * from './user.model';\r\n\r\nexport const ZoneModel: ReturnModelType<typeof Zone> = getModelForClass(Zone);\r\nexport * from './zone.model';\r\n\r\nexport const CartModel: ReturnModelType<typeof Cart> = getModelForClass(Cart);\r\nexport * from './cart.model';\r\n\r\nexport const LineItemModel: ReturnModelType<typeof LineItem> = getModelForClass(LineItem);\r\nexport * from './line-item.model';\r\n\r\nexport const CartParticipantModel: ReturnModelType<typeof CartParticipant> =\r\n\tgetModelForClass(CartParticipant);\r\nexport * from './cart-participant.model';\r\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["libraries/mongo/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,oDAAwG;AACxG,+CAAsC;AACtC,6EAAkE;AAClE,6DAAmD;AACnD,yEAA8D;AAC9D,uDAA8C;AAC9C,iDAAwC;AACxC,2DAAiD;AACjD,+CAAsC;AACtC,qDAA4C;AAC5C,mDAA0C;AAC1C,iDAAwC;AACxC,6DAAmD;AACnD,6CAAoC;AACpC,2CAAkC;AAClC,uDAA8C;AAC9C,qEAA2D;AAC3D,qEAA2D;AAC3D,iEAAuD;AACvD,iFAAsE;AACtE,+EAAoE;AACpE,uDAA8C;AAC9C,uDAA6C;AAC7C,uDAA8C;AAC9C,iDAAwC;AACxC,uEAA6D;AAC7D,mDAA0C;AAC1C,mFAAwE;AACxE,iEAAuD;AACvD,qEAA2D;AAC3D,6DAAmD;AACnD,6DAAmD;AACnD,6CAAoC;AACpC,uCAAgF;AAChF,mDAA0C;AAC1C,2EAAgE;AAChE,+DAAqD;AACrD,iEAAsD;AACtD,2DAAiD;AACjD,6CAAoC;AACpC,6EAAmE;AACnE,6DAAoD;AACpD,2CAAkC;AAClC,6CAAoC;AACpC,qFAA0E;AAC1E,kDAAoG;AACpG,yEAA+D;AAC/D,mFAAyE;AACzE,mFAAyE;AACzE,6FAAkF;AAClF,yEAA+D;AAC/D,6FAAkF;AAClF,2FAAgF;AAChF,6FAAkF;AAClF,6EAAmE;AACnE,uFAA4E;AAC5E,2FAAgF;AAChF,6DAAoD;AACpD,yEAA8D;AAC9D,+FAAmF;AACnF,+FAAmF;AACnF,iGAAqF;AACrF,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S,GAAiC,IAAA,4BAAgB,EAAC,iBAAI,CAAC,CAAC;AAC9E,+CAA6B;AAEhB,QAAA,SAAS,GAAiC,IAAA,4BAAgB,EAAC,iBAAI,CAAC,CAAC;AAC9E,+CAA6B;AAEhB,QAAA,SAAS,GAAiC,IAAA,4BAAgB,EAAC,iBAAI,CAAC,CAAC;AAC9E,+CAA6B;AAEhB,QAAA,aAAa,GAAqC,IAAA,4BAAgB,EAAC,0BAAQ,CAAC,CAAC;AAC1F,oDAAkC;AAErB,QAAA,oBAAoB,GAChC,IAAA,4BAAgB,EAAC,wCAAe,CAAC,CAAC;AACnC,2DAAyC","sourcesContent":["import { getDiscriminatorModelForClass, getModelForClass, ReturnModelType } from '@typegoose/typegoose';\r\nimport { Admin } from './admin.model';\r\nimport { AdminAccessControl } from './admin-access-control.model';\r\nimport { ActivityLog } from './activity-log.model';\r\nimport { AppScreenSetting } from './app-screen-setting.model';\r\nimport { Attribute } from './attribute.model';\r\nimport { Banner } from './banner.model';\r\nimport { BOBFinance } from './bob-finance.model';\r\nimport { Brand } from './brand.model';\r\nimport { Category } from './category.model';\r\nimport { Counter } from './counter.model';\r\nimport { Coupon } from './coupon.model';\r\nimport { DealSetting } from './deal-setting.model';\r\nimport { Dish } from './dish.model';\r\nimport { Faq } from './faq.model';\r\nimport { Favourite } from './favourite.model';\r\nimport { FeaturedSetting } from './featured-setting.model';\r\nimport { FilterContainer } from './filter-container.model';\r\nimport { ListContainer } from './list-container.model';\r\nimport { LoyaltyPointCategory } from './loyalty-point-category.model';\r\nimport { LoyaltyPointSetting } from './loyalty-point-setting.model';\r\nimport { Marketing } from './marketing.model';\r\nimport { MealPlan } from './meal-plan.model';\r\nimport { Nutrition } from './nutrition.model';\r\nimport { Parent } from './parent.model';\r\nimport { ProductMarketing } from './product-marketing.model';\r\nimport { Product } from './product.model';\r\nimport { PunchMarketingHistory } from './punch-marketing-history.model';\r\nimport { RatingSetting } from './rating-setting.model';\r\nimport { ReferralSetting } from './referral-setting.model';\r\nimport { RequestArea } from './request-area.model';\r\nimport { RiderReview } from './rider-review.model';\r\nimport { Role } from './role.model';\r\nimport { createGlobalDiscriminatorModel, createGlobalModel } from '../../mongo';\r\nimport { Setting } from './setting.model';\r\nimport { ShopAccessControl } from './shop-access-control.model';\r\nimport { ShopCategory } from './shop-category.model';\r\nimport { ShopMealPlan } from './shop-meal-plan.model';\r\nimport { ShopReview } from './shop-review.model';\r\nimport { Shop } from './shop.model';\r\nimport { SubscriptionSetting } from './subscription-setting.model';\r\nimport { Subscription } from './subscription.model';\r\nimport { Tag } from './tag.model';\r\nimport { Zone } from './zone.model';\r\nimport { Buy1Get1Marketing } from './providers/buy1-get1-marketing.model';\r\nimport { CardType, CoreAuthIdentityType, CouponType, MarketingType } from '../../../utilities/enum';\r\nimport { CustomCoupon } from './providers/custom-coupon.model';\r\nimport { DiscountMarketing } from './providers/discount-marketing.model';\r\nimport { FeaturedMarketing } from './providers/featured-marketing.model';\r\nimport { FreeDeliveryMarketing } from './providers/free-delivery-marketing.model';\r\nimport { GlobalCoupon } from './providers/global-coupon.model';\r\nimport { IndividualStoreCoupon } from './providers/individual-store-coupon.model';\r\nimport { IndividualUserCoupon } from './providers/individual-user-coupon.model';\r\nimport { LoyaltyPointMarketing } from './providers/loyalty-point-marketing.model';\r\nimport { PunchMarketing } from './providers/punch-marketing.model';\r\nimport { ReferralCodeCoupon } from './providers/referral-code-coupon.model';\r\nimport { ReferralRewardCoupon } from './providers/referral-reward-coupon.model';\r\nimport { Notification } from './notification.model';\r\nimport { CoreAuthIdentity } from './core-auth-identity.model';\r\nimport { CoreEmailAuthIdentity } from './providers/core-email-auth-identity.model';\r\nimport { CorePhoneAuthIdentity } from './providers/core-phone-auth-identity.model';\r\nimport { CoreGoogleAuthIdentity } from './providers/core-google-auth-identity.model';\r\nimport { CoreAppleAuthIdentity } from './providers/core-apple-auth-identity.model';\r\nimport { CoreUser } from './core-user.model';\r\nimport { Card } from './card.model';\r\nimport { AreebaCard } from './providers/areeba-card.model';\r\nimport { RiderTracking } from './rider-tracking.model';\r\nimport { Rider } from './rider.model';\r\nimport { RiderTimeout } from './rider-timeout.model';\r\nimport { User } from './user.model';\r\nimport { Cart } from './cart.model';\r\nimport { LineItem } from './line-item.model';\r\nimport { CartParticipant } from './cart-participant.model';\r\n\r\nexport const ActivityLogModel: ReturnModelType<typeof ActivityLog> = getModelForClass(ActivityLog);\r\nexport * from './activity-log.model';\r\n\r\nexport const AdminAccessControlModel: ReturnModelType<typeof AdminAccessControl> =\r\n\tgetModelForClass(AdminAccessControl);\r\nexport * from './admin-access-control.model';\r\n\r\nexport const AdminModel: ReturnModelType<typeof Admin> = getModelForClass(Admin);\r\nexport * from './admin.model';\r\n\r\nexport const AppScreenSettingModel: ReturnModelType<typeof AppScreenSetting> =\r\n\tgetModelForClass(AppScreenSetting);\r\nexport * from './app-screen-setting.model';\r\n\r\nexport const AttributeModel: ReturnModelType<typeof Attribute> = getModelForClass(Attribute);\r\nexport * from './attribute.model';\r\n\r\nexport const BannerModel: ReturnModelType<typeof Banner> = getModelForClass(Banner);\r\nexport * from './banner.model';\r\n\r\nexport const BOBFinanceModel: ReturnModelType<typeof BOBFinance> = getModelForClass(BOBFinance);\r\nexport * from './bob-finance.model';\r\n\r\nexport const BrandModel: ReturnModelType<typeof Brand> = getModelForClass(Brand);\r\nexport * from './brand.model';\r\n\r\nexport const CardModel: ReturnModelType<typeof Card> = createGlobalModel(Card);\r\nexport const AreebaCardModel: ReturnModelType<typeof AreebaCard> = createGlobalDiscriminatorModel(\r\n\tCardModel,\r\n\tAreebaCard,\r\n\tCardType.AREEBA\r\n);\r\nexport * from './card.model';\r\nexport * from './providers/areeba-card.model';\r\n\r\nexport const CategoryModel: ReturnModelType<typeof Category> = getModelForClass(Category);\r\nexport * from './category.model';\r\n\r\nexport const CoreAuthIdentityModel: ReturnModelType<typeof CoreAuthIdentity> =\r\ncreateGlobalModel(CoreAuthIdentity);\r\nexport const CoreEmailAuthIdentityModel: ReturnModelType<typeof CoreEmailAuthIdentity> =\r\ncreateGlobalDiscriminatorModel(CoreAuthIdentityModel, CoreEmailAuthIdentity, CoreAuthIdentityType.EMAIL);\r\nexport const CorePhoneAuthIdentityModel: ReturnModelType<typeof CorePhoneAuthIdentity> =\r\ncreateGlobalDiscriminatorModel(CoreAuthIdentityModel, CorePhoneAuthIdentity, CoreAuthIdentityType.PHONE);\r\nexport const CoreGoogleAuthIdentityModel: ReturnModelType<typeof CoreGoogleAuthIdentity> =\r\ncreateGlobalDiscriminatorModel(CoreAuthIdentityModel, CoreGoogleAuthIdentity, CoreAuthIdentityType.GOOGLE);\r\nexport const CoreAppleAuthIdentityModel: ReturnModelType<typeof CoreAppleAuthIdentity> =\r\ncreateGlobalDiscriminatorModel(CoreAuthIdentityModel, CoreAppleAuthIdentity, CoreAuthIdentityType.APPLE);\r\nexport * from './core-auth-identity.model';\r\nexport * from './providers/core-apple-auth-identity.model';\r\nexport * from './providers/core-email-auth-identity.model';\r\nexport * from './providers/core-google-auth-identity.model';\r\nexport * from './providers/core-phone-auth-identity.model';\r\n\r\nexport const CoreUserModel: ReturnModelType<typeof CoreUser> = createGlobalModel(CoreUser);\r\nexport * from './core-user.model';\r\n\r\nexport const CounterModel: ReturnModelType<typeof Counter> = getModelForClass(Counter);\r\nexport * from './counter.model';\r\n\r\nexport const CouponModel: ReturnModelType<typeof Coupon> = getModelForClass(Coupon);\r\nexport const CustomCouponModel: ReturnModelType<typeof CustomCoupon> = getDiscriminatorModelForClass(\r\n\tCouponModel,\r\n\tCustomCoupon,\r\n\tCouponType.CUSTOM_COUPON\r\n);\r\nexport const GlobalCouponModel: ReturnModelType<typeof GlobalCoupon> = getDiscriminatorModelForClass(\r\n\tCouponModel,\r\n\tGlobalCoupon,\r\n\tCouponType.GLOBAL\r\n);\r\nexport const IndividualStoreCouponModel: ReturnModelType<typeof IndividualStoreCoupon> =\r\n\tgetDiscriminatorModelForClass(CouponModel, IndividualStoreCoupon, CouponType.INDIVIDUAL_STORE);\r\nexport const IndividualUserCouponModel: ReturnModelType<typeof IndividualUserCoupon> =\r\n\tgetDiscriminatorModelForClass(CouponModel, IndividualUserCoupon, CouponType.INDIVIDUAL_USER);\r\nexport const ReferralCodeCouponModel: ReturnModelType<typeof ReferralCodeCoupon> =\r\n\tgetDiscriminatorModelForClass(CouponModel, ReferralCodeCoupon, CouponType.REFERRAL_CODE);\r\nexport const ReferralRewardCouponModel: ReturnModelType<typeof ReferralRewardCoupon> =\r\n\tgetDiscriminatorModelForClass(CouponModel, ReferralRewardCoupon, CouponType.REFERRAL_REWARD);\r\nexport * from './coupon.model';\r\nexport * from './providers/custom-coupon.model';\r\nexport * from './providers/global-coupon.model';\r\nexport * from './providers/individual-store-coupon.model';\r\nexport * from './providers/individual-user-coupon.model';\r\nexport * from './providers/referral-code-coupon.model';\r\nexport * from './providers/referral-reward-coupon.model';\r\n\r\nexport const DealSettingModel: ReturnModelType<typeof DealSetting> = getModelForClass(DealSetting);\r\nexport * from './deal-setting.model';\r\n\r\nexport const DishModel: ReturnModelType<typeof Dish> = getModelForClass(Dish);\r\nexport * from './dish.model';\r\n\r\nexport const FaqModel: ReturnModelType<typeof Faq> = getModelForClass(Faq);\r\nexport * from './faq.model';\r\n\r\nexport const FavouriteModel: ReturnModelType<typeof Favourite> = getModelForClass(Favourite);\r\nexport * from './favourite.model';\r\n\r\nexport const FeaturedSettingModel: ReturnModelType<typeof FeaturedSetting> =\r\n\tgetModelForClass(FeaturedSetting);\r\nexport * from './featured-setting.model';\r\n\r\nexport const FilterContainerModel: ReturnModelType<typeof FilterContainer> =\r\n\tgetModelForClass(FilterContainer);\r\nexport * from './filter-container.model';\r\n\r\nexport const ListContainerModel: ReturnModelType<typeof ListContainer> = getModelForClass(ListContainer);\r\nexport * from './list-container.model';\r\n\r\nexport const LoyaltyPointCategoryModel: ReturnModelType<typeof LoyaltyPointCategory> =\r\n\tgetModelForClass(LoyaltyPointCategory);\r\nexport * from './loyalty-point-category.model';\r\n\r\nexport const LoyaltyPointSettingModel: ReturnModelType<typeof LoyaltyPointSetting> =\r\n\tgetModelForClass(LoyaltyPointSetting);\r\nexport * from './loyalty-point-setting.model';\r\n\r\nexport const MarketingModel: ReturnModelType<typeof Marketing> = getModelForClass(Marketing);\r\nexport const Buy1Get1MarketingModel: ReturnModelType<typeof Buy1Get1Marketing> =\r\n\tgetDiscriminatorModelForClass(MarketingModel, Buy1Get1Marketing, MarketingType.BUY1GET1);\r\nexport const DiscountMarketingModel: ReturnModelType<typeof DiscountMarketing> =\r\n\tgetDiscriminatorModelForClass(MarketingModel, DiscountMarketing, MarketingType.DISCOUNT);\r\nexport const FeaturedMarketingModel: ReturnModelType<typeof FeaturedMarketing> =\r\n\tgetDiscriminatorModelForClass(MarketingModel, FeaturedMarketing, MarketingType.FEATURED);\r\nexport const FreeDeliveryMarketingModel: ReturnModelType<typeof FreeDeliveryMarketing> =\r\n\tgetDiscriminatorModelForClass(MarketingModel, FreeDeliveryMarketing, MarketingType.FREE_DELIVERY);\r\nexport const LoyaltyPointMarketingModel: ReturnModelType<typeof LoyaltyPointMarketing> =\r\n\tgetDiscriminatorModelForClass(MarketingModel, LoyaltyPointMarketing, MarketingType.LOYALTY_POINT);\r\nexport const PunchMarketingModel: ReturnModelType<typeof PunchMarketing> = getDiscriminatorModelForClass(\r\n\tMarketingModel,\r\n\tPunchMarketing,\r\n\tMarketingType.PUNCH_MARKETING\r\n);\r\nexport * from './marketing.model';\r\nexport * from './providers/buy1-get1-marketing.model';\r\nexport * from './providers/discount-marketing.model';\r\nexport * from './providers/featured-marketing.model';\r\nexport * from './providers/free-delivery-marketing.model';\r\nexport * from './providers/loyalty-point-marketing.model';\r\nexport * from './providers/punch-marketing.model';\r\n\r\nexport const MealPlanModel: ReturnModelType<typeof MealPlan> = getModelForClass(MealPlan);\r\nexport * from './meal-plan.model';\r\n\r\nexport const NotificationModel: ReturnModelType<typeof Notification> = getModelForClass(Notification);\r\nexport * from './notification.model';\r\n\r\nexport const NutritionModel: ReturnModelType<typeof Nutrition> = getModelForClass(Nutrition);\r\nexport * from './nutrition.model';\r\n\r\nexport const ParentModel: ReturnModelType<typeof Parent> = getModelForClass(Parent);\r\nexport * from './parent.model';\r\n\r\nexport const ProductMarketingModel: ReturnModelType<typeof ProductMarketing> =\r\n\tgetModelForClass(ProductMarketing);\r\nexport * from './product-marketing.model';\r\n\r\nexport const ProductModel: ReturnModelType<typeof Product> = getModelForClass(Product);\r\nexport * from './product.model';\r\n\r\nexport const PunchMarketingHistoryModel: ReturnModelType<typeof PunchMarketingHistory> =\r\n\tgetModelForClass(PunchMarketingHistory);\r\nexport * from './punch-marketing-history.model';\r\n\r\nexport const RatingSettingModel: ReturnModelType<typeof RatingSetting> = getModelForClass(RatingSetting);\r\nexport * from './rating-setting.model';\r\n\r\nexport const ReferralSettingModel: ReturnModelType<typeof ReferralSetting> =\r\n\tgetModelForClass(ReferralSetting);\r\nexport * from './referral-setting.model';\r\n\r\nexport const RequestAreaModel: ReturnModelType<typeof RequestArea> = getModelForClass(RequestArea);\r\nexport * from './request-area.model';\r\n\r\nexport const RiderReviewModel: ReturnModelType<typeof RiderReview> = getModelForClass(RiderReview);\r\nexport * from './rider-review.model';\r\n\r\nexport const RiderTimeoutModel: ReturnModelType<typeof RiderTimeout> = getModelForClass(RiderTimeout);\r\nexport * from './rider-timeout.model';\r\n\r\nexport const RiderTrackingModel: ReturnModelType<typeof RiderTracking> = getModelForClass(RiderTracking);\r\nexport * from './rider-tracking.model';\r\n\r\nexport const RiderModel: ReturnModelType<typeof Rider> = getModelForClass(Rider);\r\nexport * from './rider.model';\r\n\r\nexport const RoleModel: ReturnModelType<typeof Role> = createGlobalModel(Role);\r\nexport * from './role.model';\r\n\r\nexport const SettingModel: ReturnModelType<typeof Setting> = getModelForClass(Setting);\r\nexport * from './setting.model';\r\n\r\nexport const ShopAccessControlModel: ReturnModelType<typeof ShopAccessControl> =\r\n\tgetModelForClass(ShopAccessControl);\r\nexport * from './shop-access-control.model';\r\n\r\nexport const ShopCategoryModel: ReturnModelType<typeof ShopCategory> = getModelForClass(ShopCategory);\r\nexport * from './shop-category.model';\r\n\r\nexport const ShopMealPlanModel: ReturnModelType<typeof ShopMealPlan> = getModelForClass(ShopMealPlan);\r\nexport * from './shop-meal-plan.model';\r\n\r\nexport const ShopReviewModel: ReturnModelType<typeof ShopReview> = getModelForClass(ShopReview);\r\nexport * from './shop-review.model';\r\n\r\nexport const ShopModel: ReturnModelType<typeof Shop> = getModelForClass(Shop);\r\nexport * from './shop.model';\r\n\r\nexport const SubscriptionSettingModel: ReturnModelType<typeof SubscriptionSetting> =\r\n\tgetModelForClass(SubscriptionSetting);\r\nexport * from './subscription-setting.model';\r\n\r\nexport const SubscriptionModel: ReturnModelType<typeof Subscription> = getModelForClass(Subscription);\r\nexport * from './subscription.model';\r\n\r\nexport const TagModel: ReturnModelType<typeof Tag> = getModelForClass(Tag);\r\nexport * from './tag.model';\r\n\r\nexport const UserModel: ReturnModelType<typeof User> = getModelForClass(User);\r\nexport * from './user.model';\r\n\r\nexport const ZoneModel: ReturnModelType<typeof Zone> = getModelForClass(Zone);\r\nexport * from './zone.model';\r\n\r\nexport const CartModel: ReturnModelType<typeof Cart> = getModelForClass(Cart);\r\nexport * from './cart.model';\r\n\r\nexport const LineItemModel: ReturnModelType<typeof LineItem> = getModelForClass(LineItem);\r\nexport * from './line-item.model';\r\n\r\nexport const CartParticipantModel: ReturnModelType<typeof CartParticipant> =\r\n\tgetModelForClass(CartParticipant);\r\nexport * from './cart-participant.model';\r\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Ref } from "@typegoose/typegoose";
|
|
2
|
+
import { Coupon } from "./coupon.model";
|
|
3
|
+
export declare class OrderPricing {
|
|
4
|
+
subtotal: number;
|
|
5
|
+
secondarySubtotal: number;
|
|
6
|
+
deliveryFee: number;
|
|
7
|
+
secondaryDeliveryFee: number;
|
|
8
|
+
vat: number;
|
|
9
|
+
secondaryVat: number;
|
|
10
|
+
appliedCoupon?: Ref<Coupon>;
|
|
11
|
+
appliedCouponSnapshot?: Record<string, any>;
|
|
12
|
+
discountValue: number;
|
|
13
|
+
secondaryDiscountValue: number;
|
|
14
|
+
serviceCharge: number;
|
|
15
|
+
secondaryServiceCharge: number;
|
|
16
|
+
total: number;
|
|
17
|
+
secondaryTotal: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.OrderPricing = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const coupon_model_1 = require("./coupon.model");
|
|
15
|
+
class OrderPricing {
|
|
16
|
+
subtotal;
|
|
17
|
+
secondarySubtotal;
|
|
18
|
+
deliveryFee;
|
|
19
|
+
secondaryDeliveryFee;
|
|
20
|
+
vat;
|
|
21
|
+
secondaryVat;
|
|
22
|
+
appliedCoupon;
|
|
23
|
+
appliedCouponSnapshot;
|
|
24
|
+
discountValue;
|
|
25
|
+
secondaryDiscountValue;
|
|
26
|
+
serviceCharge;
|
|
27
|
+
secondaryServiceCharge;
|
|
28
|
+
total;
|
|
29
|
+
secondaryTotal;
|
|
30
|
+
}
|
|
31
|
+
exports.OrderPricing = OrderPricing;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typegoose_1.prop)({ required: true, default: 0 }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], OrderPricing.prototype, "subtotal", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typegoose_1.prop)({ default: 0 }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], OrderPricing.prototype, "secondarySubtotal", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typegoose_1.prop)({ default: 0 }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], OrderPricing.prototype, "deliveryFee", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typegoose_1.prop)({ default: 0 }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], OrderPricing.prototype, "secondaryDeliveryFee", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typegoose_1.prop)({ default: 0 }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], OrderPricing.prototype, "vat", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typegoose_1.prop)({ default: 0 }),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], OrderPricing.prototype, "secondaryVat", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typegoose_1.prop)({ ref: () => coupon_model_1.Coupon }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], OrderPricing.prototype, "appliedCoupon", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typegoose_1.prop)({ type: () => Object, default: {} }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], OrderPricing.prototype, "appliedCouponSnapshot", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typegoose_1.prop)({ default: 0 }),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], OrderPricing.prototype, "discountValue", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typegoose_1.prop)({ default: 0 }),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], OrderPricing.prototype, "secondaryDiscountValue", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typegoose_1.prop)({ default: 0 }),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], OrderPricing.prototype, "serviceCharge", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typegoose_1.prop)({ default: 0 }),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], OrderPricing.prototype, "secondaryServiceCharge", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typegoose_1.prop)({ required: true, default: 0 }),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], OrderPricing.prototype, "total", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typegoose_1.prop)({ default: 0 }),
|
|
86
|
+
__metadata("design:type", Number)
|
|
87
|
+
], OrderPricing.prototype, "secondaryTotal", void 0);
|
|
88
|
+
//# sourceMappingURL=order-pricing.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-pricing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/order-pricing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,iDAAwC;AAExC,MAAa,YAAY;IAExB,QAAQ,CAAS;IAGjB,iBAAiB,CAAS;IAG1B,WAAW,CAAS;IAGpB,oBAAoB,CAAS;IAG7B,GAAG,CAAS;IAGZ,YAAY,CAAS;IAGrB,aAAa,CAAe;IAM5B,qBAAqB,CAAuB;IAG5C,aAAa,CAAS;IAGtB,sBAAsB,CAAS;IAG/B,aAAa,CAAS;IAGtB,sBAAsB,CAAS;IAG/B,KAAK,CAAS;IAGd,cAAc,CAAS;CACvB;AA7CD,oCA6CC;AA3CA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8CACpB;AAGjB;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACK;AAG1B;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACD;AAGpB;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACQ;AAG7B;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yCACT;AAGZ;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kDACA;AAGrB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;mDACA;AAM5B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;2DACE;AAG5C;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACC;AAGtB;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACU;AAG/B;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACC;AAGtB;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACU;AAG/B;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2CACvB;AAGd;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oDACE","sourcesContent":["import { prop, Ref } from \"@typegoose/typegoose\";\r\nimport { Coupon } from \"./coupon.model\";\r\n\r\nexport class OrderPricing {\r\n\t@prop({ required: true, default: 0 })\r\n\tsubtotal: number;\r\n\r\n\t@prop({ default: 0 })\r\n\tsecondarySubtotal: number;\r\n\r\n\t@prop({ default: 0 })\r\n\tdeliveryFee: number;\r\n\r\n\t@prop({ default: 0 })\r\n\tsecondaryDeliveryFee: number;\r\n\r\n\t@prop({ default: 0 })\r\n\tvat: number;\r\n\r\n\t@prop({ default: 0 })\r\n\tsecondaryVat: number;\r\n\r\n\t@prop({ ref: () => Coupon })\r\n\tappliedCoupon?: Ref<Coupon>;\r\n\r\n\t// Optional snapshot of the line items at time of order\r\n\t// This is useful if we need to reference order contents directly\r\n\t// without requiring a cart lookup, and protects against cart modifications\r\n\t@prop({ type: () => Object, default: {} })\r\n\tappliedCouponSnapshot?: Record<string, any>;\r\n\r\n\t@prop({ default: 0 })\r\n\tdiscountValue: number;\r\n\r\n\t@prop({ default: 0 })\r\n\tsecondaryDiscountValue: number;\r\n\r\n\t@prop({ default: 0 })\r\n\tserviceCharge: number;\r\n\r\n\t@prop({ default: 0 })\r\n\tsecondaryServiceCharge: number;\r\n\r\n\t@prop({ required: true, default: 0 })\r\n\ttotal: number;\r\n\r\n\t@prop({ default: 0 })\r\n\tsecondaryTotal: number;\r\n}"]}
|
|
@@ -1 +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 {}\
|
|
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 {}\n"]}
|
|
@@ -1,18 +1,36 @@
|
|
|
1
|
+
import { Ref } from '@typegoose/typegoose';
|
|
1
2
|
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
2
|
-
import { ProductType, ItemType, ProductDietaryType, Status } from '../../../utilities/enum';
|
|
3
|
+
import { ProductType, ItemType, ProductDietaryType, Status, PriceOption } from '../../../utilities/enum';
|
|
3
4
|
import { ProductNutrition } from './embedded/product-nutrition.model';
|
|
5
|
+
import { Shop } from './shop.model';
|
|
6
|
+
import { PriceBreakdown } from './embedded/price-breakdown.model';
|
|
7
|
+
import { AttributeMap } from './embedded/attribute-map.model';
|
|
8
|
+
import { ShopCategory } from './shop-category.model';
|
|
4
9
|
export declare class Product extends TimeStamps {
|
|
10
|
+
shop: Ref<Shop>;
|
|
5
11
|
name: string;
|
|
6
12
|
barcode?: string;
|
|
13
|
+
shopCategory: Ref<ShopCategory>;
|
|
7
14
|
itemType: ItemType;
|
|
8
15
|
productType?: ProductType;
|
|
9
16
|
images: string[];
|
|
10
|
-
|
|
17
|
+
priceOption?: PriceOption;
|
|
18
|
+
priceBreakdowns?: PriceBreakdown[];
|
|
19
|
+
description?: string;
|
|
20
|
+
attributeMaps?: AttributeMap[];
|
|
21
|
+
addons?: Ref<Product>[];
|
|
11
22
|
nutritionPackSize?: number;
|
|
12
|
-
nutritionPackSizeUnit?:
|
|
23
|
+
nutritionPackSizeUnit?: string;
|
|
13
24
|
nutritionServingSize?: number;
|
|
14
25
|
nutritionCalories?: number;
|
|
15
26
|
nutritions?: ProductNutrition[];
|
|
16
27
|
dietaryTypes?: ProductDietaryType[];
|
|
17
28
|
storedTemperature?: number;
|
|
29
|
+
isStockEnabled?: boolean;
|
|
30
|
+
stockQuantity?: number;
|
|
31
|
+
isDrinkIncluded?: boolean;
|
|
32
|
+
orderQuantityLimit?: number;
|
|
33
|
+
note?: string;
|
|
34
|
+
status?: Status;
|
|
35
|
+
sortingOrder?: number;
|
|
18
36
|
}
|
|
@@ -14,13 +14,23 @@ const typegoose_1 = require("@typegoose/typegoose");
|
|
|
14
14
|
const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
15
15
|
const enum_1 = require("../../../utilities/enum");
|
|
16
16
|
const product_nutrition_model_1 = require("./embedded/product-nutrition.model");
|
|
17
|
+
const shop_model_1 = require("./shop.model");
|
|
18
|
+
const price_breakdown_model_1 = require("./embedded/price-breakdown.model");
|
|
19
|
+
const attribute_map_model_1 = require("./embedded/attribute-map.model");
|
|
20
|
+
const shop_category_model_1 = require("./shop-category.model");
|
|
17
21
|
let Product = class Product extends defaultClasses_1.TimeStamps {
|
|
22
|
+
shop;
|
|
18
23
|
name;
|
|
19
24
|
barcode;
|
|
25
|
+
shopCategory;
|
|
20
26
|
itemType;
|
|
21
27
|
productType;
|
|
22
28
|
images;
|
|
23
|
-
|
|
29
|
+
priceOption;
|
|
30
|
+
priceBreakdowns;
|
|
31
|
+
description;
|
|
32
|
+
attributeMaps;
|
|
33
|
+
addons;
|
|
24
34
|
nutritionPackSize;
|
|
25
35
|
nutritionPackSizeUnit;
|
|
26
36
|
nutritionServingSize;
|
|
@@ -28,22 +38,37 @@ let Product = class Product extends defaultClasses_1.TimeStamps {
|
|
|
28
38
|
nutritions;
|
|
29
39
|
dietaryTypes;
|
|
30
40
|
storedTemperature;
|
|
41
|
+
isStockEnabled;
|
|
42
|
+
stockQuantity;
|
|
43
|
+
isDrinkIncluded;
|
|
44
|
+
orderQuantityLimit;
|
|
45
|
+
note;
|
|
46
|
+
status;
|
|
47
|
+
sortingOrder;
|
|
31
48
|
};
|
|
32
49
|
exports.Product = Product;
|
|
33
50
|
__decorate([
|
|
34
|
-
(0, typegoose_1.prop)({ required: true,
|
|
51
|
+
(0, typegoose_1.prop)({ required: true, ref: () => shop_model_1.Shop }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], Product.prototype, "shop", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typegoose_1.prop)({ required: true, type: String, maxlength: 50 }),
|
|
35
56
|
__metadata("design:type", String)
|
|
36
57
|
], Product.prototype, "name", void 0);
|
|
37
58
|
__decorate([
|
|
38
|
-
(0, typegoose_1.prop)({ type: String }),
|
|
59
|
+
(0, typegoose_1.prop)({ type: String, default: '0000000' }),
|
|
39
60
|
__metadata("design:type", String)
|
|
40
61
|
], Product.prototype, "barcode", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typegoose_1.prop)({ required: true, ref: () => shop_category_model_1.ShopCategory }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], Product.prototype, "shopCategory", void 0);
|
|
41
66
|
__decorate([
|
|
42
67
|
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.ItemType }),
|
|
43
68
|
__metadata("design:type", String)
|
|
44
69
|
], Product.prototype, "itemType", void 0);
|
|
45
70
|
__decorate([
|
|
46
|
-
(0, typegoose_1.prop)({ type: String, enum: enum_1.ProductType }),
|
|
71
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.ProductType, default: enum_1.ProductType.OTHER }),
|
|
47
72
|
__metadata("design:type", String)
|
|
48
73
|
], Product.prototype, "productType", void 0);
|
|
49
74
|
__decorate([
|
|
@@ -51,16 +76,32 @@ __decorate([
|
|
|
51
76
|
__metadata("design:type", Array)
|
|
52
77
|
], Product.prototype, "images", void 0);
|
|
53
78
|
__decorate([
|
|
54
|
-
(0, typegoose_1.prop)({ type: String, enum: enum_1.
|
|
79
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.PriceOption, default: enum_1.PriceOption.SINGLE_PRICE }),
|
|
55
80
|
__metadata("design:type", String)
|
|
56
|
-
], Product.prototype, "
|
|
81
|
+
], Product.prototype, "priceOption", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typegoose_1.prop)({ required: true, type: [price_breakdown_model_1.PriceBreakdown], min: 1 }),
|
|
84
|
+
__metadata("design:type", Array)
|
|
85
|
+
], Product.prototype, "priceBreakdowns", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typegoose_1.prop)({ type: String, maxlength: 250 }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], Product.prototype, "description", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typegoose_1.prop)({ type: [attribute_map_model_1.AttributeMap], default: [] }),
|
|
92
|
+
__metadata("design:type", Array)
|
|
93
|
+
], Product.prototype, "attributeMaps", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typegoose_1.prop)({ ref: () => Product, default: [] }),
|
|
96
|
+
__metadata("design:type", Array)
|
|
97
|
+
], Product.prototype, "addons", void 0);
|
|
57
98
|
__decorate([
|
|
58
99
|
(0, typegoose_1.prop)({ type: Number, min: 0 }),
|
|
59
100
|
__metadata("design:type", Number)
|
|
60
101
|
], Product.prototype, "nutritionPackSize", void 0);
|
|
61
102
|
__decorate([
|
|
62
|
-
(0, typegoose_1.prop)({ type:
|
|
63
|
-
__metadata("design:type",
|
|
103
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
104
|
+
__metadata("design:type", String)
|
|
64
105
|
], Product.prototype, "nutritionPackSizeUnit", void 0);
|
|
65
106
|
__decorate([
|
|
66
107
|
(0, typegoose_1.prop)({ type: Number, min: 0 }),
|
|
@@ -79,14 +120,43 @@ __decorate([
|
|
|
79
120
|
__metadata("design:type", Array)
|
|
80
121
|
], Product.prototype, "dietaryTypes", void 0);
|
|
81
122
|
__decorate([
|
|
82
|
-
(0, typegoose_1.prop)({ type: Number }),
|
|
123
|
+
(0, typegoose_1.prop)({ type: Number, max: 999999999 }),
|
|
83
124
|
__metadata("design:type", Number)
|
|
84
125
|
], Product.prototype, "storedTemperature", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
128
|
+
__metadata("design:type", Boolean)
|
|
129
|
+
], Product.prototype, "isStockEnabled", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typegoose_1.prop)({ type: Number }),
|
|
132
|
+
__metadata("design:type", Number)
|
|
133
|
+
], Product.prototype, "stockQuantity", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
136
|
+
__metadata("design:type", Boolean)
|
|
137
|
+
], Product.prototype, "isDrinkIncluded", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, typegoose_1.prop)({ type: Number, default: 0, min: 0, max: 999999999 }),
|
|
140
|
+
__metadata("design:type", Number)
|
|
141
|
+
], Product.prototype, "orderQuantityLimit", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], Product.prototype, "note", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.Status, default: enum_1.Status.ACTIVE }),
|
|
148
|
+
__metadata("design:type", String)
|
|
149
|
+
], Product.prototype, "status", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
152
|
+
__metadata("design:type", Number)
|
|
153
|
+
], Product.prototype, "sortingOrder", void 0);
|
|
85
154
|
exports.Product = Product = __decorate([
|
|
86
155
|
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'products' } }),
|
|
87
|
-
(0, typegoose_1.Index)({ name: 1,
|
|
156
|
+
(0, typegoose_1.Index)({ name: 1, shop: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } }),
|
|
157
|
+
(0, typegoose_1.Index)({ barcode: 1, shop: 1 }, {
|
|
88
158
|
unique: true,
|
|
89
|
-
partialFilterExpression: {
|
|
159
|
+
partialFilterExpression: { barcode: { $exists: true, $nin: [null, '0000000'] }, deletedAt: null },
|
|
90
160
|
})
|
|
91
161
|
], Product);
|
|
92
162
|
//# sourceMappingURL=product.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.model.js","sourceRoot":"/","sources":["libraries/mongo/models/product.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"product.model.js","sourceRoot":"/","sources":["libraries/mongo/models/product.model.ts"],"names":[],"mappings":";;;;;;;;;;;;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EAAE,EAAE,CAAC;IAC3D,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;IAC3F,IAAA,iBAAK,EACL,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EACvB;QACC,MAAM,EAAE,IAAI;QACZ,uBAAuB,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;KACjG,CACD;GACY,OAAO,CA8EnB","sourcesContent":["import { Index, modelOptions, prop, Ref } from '@typegoose/typegoose';\r\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\r\nimport { ProductType, ItemType, ProductDietaryType, Status, PriceOption } from '../../../utilities/enum';\r\nimport { ProductNutrition } from './embedded/product-nutrition.model';\r\nimport { Shop } from './shop.model';\r\nimport { PriceBreakdown } from './embedded/price-breakdown.model';\r\nimport { AttributeMap } from './embedded/attribute-map.model';\r\nimport { ShopCategory } from './shop-category.model';\r\n\r\n@modelOptions({ schemaOptions: { collection: 'products' } })\r\n@Index({ name: 1, shop: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\r\n@Index(\r\n\t{ barcode: 1, shop: 1 },\r\n\t{\r\n\t\tunique: true,\r\n\t\tpartialFilterExpression: { barcode: { $exists: true, $nin: [null, '0000000'] }, deletedAt: null },\r\n\t}\r\n)\r\nexport class Product extends TimeStamps {\r\n\t@prop({ required: true, ref: () => Shop })\r\n\tpublic shop!: Ref<Shop>;\r\n\r\n\t@prop({ required: true, type: String, maxlength: 50 })\r\n\tpublic name!: string;\r\n\r\n\t@prop({ type: String, default: '0000000' })\r\n\tpublic barcode?: string;\r\n\r\n\t@prop({ required: true, ref: () => ShopCategory })\r\n\tpublic shopCategory!: Ref<ShopCategory>;\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: ProductType, default: ProductType.OTHER })\r\n\tpublic productType?: ProductType;\r\n\r\n\t@prop({ required: true, type: [String] })\r\n\tpublic images!: string[];\r\n\r\n\t@prop({ type: String, enum: PriceOption, default: PriceOption.SINGLE_PRICE })\r\n\tpublic priceOption?: PriceOption;\r\n\r\n\t@prop({ required: true, type: [PriceBreakdown], min: 1 })\r\n\tpublic priceBreakdowns?: PriceBreakdown[];\r\n\r\n\t@prop({ type: String, maxlength: 250 })\r\n\tpublic description?: string;\r\n\r\n\t@prop({ type: [AttributeMap], default: [] })\r\n\tpublic attributeMaps?: AttributeMap[];\r\n\r\n\t@prop({ ref: () => Product, default: [] })\r\n\tpublic addons?: Ref<Product>[];\r\n\r\n\t@prop({ type: Number, min: 0 })\r\n\tpublic nutritionPackSize?: number;\r\n\r\n\t@prop({ type: String })\r\n\tpublic nutritionPackSizeUnit?: string;\r\n\r\n\t@prop({ type: Number, min: 0 })\r\n\tpublic nutritionServingSize?: 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, max: 999999999 })\r\n\tpublic storedTemperature?: number;\r\n\r\n\t@prop({ type: Boolean, default: false })\r\n\tpublic isStockEnabled?: boolean;\r\n\r\n\t@prop({ type: Number })\r\n\tpublic stockQuantity?: number;\r\n\r\n\t@prop({ type: Boolean, default: false })\r\n\tpublic isDrinkIncluded?: boolean;\r\n\r\n\t@prop({ type: Number, default: 0, min: 0, max: 999999999 })\r\n\tpublic orderQuantityLimit?: number;\r\n\r\n\t@prop({ type: String })\r\n\tpublic note?: 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, default: 0 })\r\n\tpublic sortingOrder?: number;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duration.model.js","sourceRoot":"/","sources":["libraries/mongo/models/shared/duration.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,QAAQ;IAEb,KAAK,CAAQ;IAGb,GAAG,CAAQ;CAClB;AAND,4BAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;8BAC3C,IAAI;uCAAC;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;qCAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"duration.model.js","sourceRoot":"/","sources":["libraries/mongo/models/shared/duration.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,QAAQ;IAEb,KAAK,CAAQ;IAGb,GAAG,CAAQ;CAClB;AAND,4BAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;8BAC3C,IAAI;uCAAC;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;qCAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class Duration {\n\t@prop({ required: true, type: Date, default: new Date() })\n\tpublic start!: Date;\n\n\t@prop({ type: Date })\n\tpublic end?: Date;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.model.js","sourceRoot":"/","sources":["libraries/mongo/models/transaction.model.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;CAAG;AAA3B,kCAA2B","sourcesContent":["export class Transaction {}\
|
|
1
|
+
{"version":3,"file":"transaction.model.js","sourceRoot":"/","sources":["libraries/mongo/models/transaction.model.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;CAAG;AAA3B,kCAA2B","sourcesContent":["export class Transaction {}\n"]}
|