@lyxa.ai/core 1.0.20 → 1.0.21
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.map +1 -1
- 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-participant.model.d.ts +2 -2
- package/dist/libraries/mongo/models/cart-participant.model.js +2 -2
- package/dist/libraries/mongo/models/cart-participant.model.js.map +1 -1
- 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/cart.model.d.ts +5 -7
- package/dist/libraries/mongo/models/cart.model.js +13 -29
- package/dist/libraries/mongo/models/cart.model.js.map +1 -1
- 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/line-item-attribute.model.d.ts +7 -0
- package/dist/libraries/mongo/models/{shop-review.js → embedded/line-item-attribute.model.js} +15 -14
- package/dist/libraries/mongo/models/embedded/line-item-attribute.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/order-cancel.model.d.ts +7 -0
- package/dist/libraries/mongo/models/{providers/google-auth-identity.model.js → embedded/order-cancel.model.js} +18 -9
- package/dist/libraries/mongo/models/embedded/order-cancel.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/order-pricing.model.d.ts +18 -0
- package/dist/libraries/mongo/models/embedded/order-pricing.model.js +97 -0
- package/dist/libraries/mongo/models/embedded/order-pricing.model.js.map +1 -0
- 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-attempt.model.d.ts +10 -0
- package/dist/libraries/mongo/models/embedded/payment-attempt.model.js +60 -0
- package/dist/libraries/mongo/models/embedded/payment-attempt.model.js.map +1 -0
- 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/payment-infromation.model.d.ts +1 -0
- package/dist/libraries/mongo/models/embedded/payment-infromation.model.js +5 -0
- package/dist/libraries/mongo/models/embedded/payment-infromation.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/payout-setting.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/status-timeline.model.d.ts +14 -0
- package/dist/libraries/mongo/models/embedded/status-timeline.model.js +59 -0
- package/dist/libraries/mongo/models/embedded/status-timeline.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/subscription-summary.model.js.map +1 -1
- package/dist/libraries/mongo/models/line-item.model.d.ts +9 -8
- package/dist/libraries/mongo/models/line-item.model.js +17 -16
- package/dist/libraries/mongo/models/line-item.model.js.map +1 -1
- package/dist/libraries/mongo/models/order-delivery.model.d.ts +24 -0
- package/dist/libraries/mongo/models/order-delivery.model.js +119 -0
- package/dist/libraries/mongo/models/order-delivery.model.js.map +1 -0
- package/dist/libraries/mongo/models/order-payment.model.d.ts +21 -0
- package/dist/libraries/mongo/models/order-payment.model.js +96 -0
- package/dist/libraries/mongo/models/order-payment.model.js.map +1 -0
- 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/order.model.d.ts +15 -0
- package/dist/libraries/mongo/models/order.model.js +60 -7
- package/dist/libraries/mongo/models/order.model.js.map +1 -1
- package/dist/libraries/mongo/models/payout.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/courier-order.model.d.ts +23 -0
- package/dist/libraries/mongo/models/providers/courier-order.model.js +89 -0
- package/dist/libraries/mongo/models/providers/courier-order.model.js.map +1 -0
- package/dist/libraries/mongo/models/providers/regular-order.model.d.ts +23 -0
- package/dist/libraries/mongo/models/providers/regular-order.model.js +85 -0
- package/dist/libraries/mongo/models/providers/regular-order.model.js.map +1 -0
- package/dist/libraries/mongo/models/rating-setting.model.d.ts +1 -0
- package/dist/libraries/mongo/models/rating-setting.model.js +11 -2
- package/dist/libraries/mongo/models/rating-setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/shared/address.model.d.ts +4 -0
- package/dist/libraries/mongo/models/shared/address.model.js +14 -1
- package/dist/libraries/mongo/models/shared/address.model.js.map +1 -1
- package/dist/libraries/mongo/models/shared/duration.model.js.map +1 -1
- package/dist/libraries/mongo/models/shop.model.d.ts +1 -1
- package/dist/libraries/mongo/models/shop.model.js +2 -2
- package/dist/libraries/mongo/models/shop.model.js.map +1 -1
- package/dist/libraries/mongo/models/transaction.model.js.map +1 -1
- package/dist/utilities/enum.d.ts +51 -5
- package/dist/utilities/enum.js +57 -4
- package/dist/utilities/enum.js.map +1 -1
- package/dist/utilities/pagination.d.ts +4 -2
- package/dist/utilities/pagination.js +42 -5
- package/dist/utilities/pagination.js.map +1 -1
- package/dist/utilities/transformers.d.ts +1 -1
- package/dist/utilities/transformers.js +0 -12
- package/dist/utilities/transformers.js.map +1 -1
- package/dist/utilities/validation/common-validation.d.ts +182 -64
- package/dist/utilities/validation/common-validation.js +24 -13
- package/dist/utilities/validation/common-validation.js.map +1 -1
- package/dist/utilities/validation/global-validation.d.ts +40 -20
- package/dist/utilities/validation/global-validation.js +5 -3
- 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.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.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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"courier-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/courier-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,cAAc;IAE1B,qBAAqB,CAAU;IAG/B,WAAW,CAAU;CACrB;AAND,wCAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;6DACX;AAG/B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACF","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"courier-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/courier-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,cAAc;IAE1B,qBAAqB,CAAU;IAG/B,WAAW,CAAU;CACrB;AAND,wCAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;6DACX;AAG/B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACF","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class CourierSetting {\n\t@prop({ type: Number, default: Infinity })\n\tmaxTotalEstItemsPrice?: number;\n\n\t@prop({ type: Number })\n\tmaxDistance?: number;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currency-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/currency-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAA4C;AAE5C,MAAa,eAAe;IAE3B,YAAY,CAAY;IAGxB,iBAAiB,CAAY;IAG7B,qBAAqB,CAAW;IAGhC,YAAY,CAAU;CACtB;AAZD,0CAYC;AAVA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,yBAAQ,EAAE,CAAC;8BAC1B,yBAAQ;qDAAC;AAGxB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,yBAAQ,EAAE,CAAC;8BACL,yBAAQ;0DAAC;AAG7B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8DACR;AAGhC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACb","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"currency-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/currency-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAA4C;AAE5C,MAAa,eAAe;IAE3B,YAAY,CAAY;IAGxB,iBAAiB,CAAY;IAG7B,qBAAqB,CAAW;IAGhC,YAAY,CAAU;CACtB;AAZD,0CAYC;AAVA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,yBAAQ,EAAE,CAAC;8BAC1B,yBAAQ;qDAAC;AAGxB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,yBAAQ,EAAE,CAAC;8BACL,yBAAQ;0DAAC;AAG7B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8DACR;AAGhC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACb","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { Currency } from './currency.model';\n\nexport class CurrencySetting {\n\t@prop({ required: true, type: Currency })\n\tbaseCurrency!: Currency;\n\n\t@prop({ type: Currency })\n\tsecondaryCurrency?: Currency;\n\n\t@prop({ type: Boolean, default: false })\n\tisDualCurrencyEnabled?: boolean;\n\n\t@prop({ type: Number, default: 0 })\n\texchangeRate?: number;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currency.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/currency.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,QAAQ;IAEb,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,YAAY,CAAU;IAGtB,aAAa,CAAU;IAGvB,QAAQ,CAAU;IAGlB,IAAI,CAAU;IAGd,UAAU,CAAU;IAGpB,IAAI,CAAU;CACrB;AAxBD,4BAwBC;AAtBO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCAChB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACV;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACT;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACd;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACZ;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"currency.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/currency.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,QAAQ;IAEb,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,YAAY,CAAU;IAGtB,aAAa,CAAU;IAGvB,QAAQ,CAAU;IAGlB,IAAI,CAAU;IAGd,UAAU,CAAU;IAGpB,IAAI,CAAU;CACrB;AAxBD,4BAwBC;AAtBO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCAChB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACV;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACT;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACd;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACZ;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class Currency {\n\t@prop({ required: true, type: String })\n\tpublic symbol!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic symbolNative!: string;\n\n\t@prop({ required: true, type: Number })\n\tpublic decimalDigits!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic rounding!: number;\n\n\t@prop({ required: true, type: String })\n\tpublic code!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic namePlural!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic flag!: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featured-item.mode.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/featured-item.mode.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAoD;AAEpD,MAAa,YAAY;IAEjB,cAAc,CAAU;IAGxB,MAAM,CAAU;IAGhB,MAAM,CAAU;CACvB;AATD,oCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACR;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CAChB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;4CACtC","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"featured-item.mode.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/featured-item.mode.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAoD;AAEpD,MAAa,YAAY;IAEjB,cAAc,CAAU;IAGxB,MAAM,CAAU;IAGhB,MAAM,CAAU;CACvB;AATD,oCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACR;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CAChB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;4CACtC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { Status } from '../../../../utilities/enum';\n\nexport class FeaturedItem {\n\t@prop({ required: true, type: Number })\n\tpublic durationInDays!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic amount!: number;\n\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status?: Status;\n}\n"]}
|
package/dist/libraries/mongo/models/{shop-review.js → embedded/line-item-attribute.model.js}
RENAMED
|
@@ -9,20 +9,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.LineItemAttribute = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
const attribute_model_1 = require("../attribute.model");
|
|
15
|
+
const attribute_item_model_1 = require("./attribute-item.model");
|
|
16
|
+
class LineItemAttribute {
|
|
17
|
+
attribute;
|
|
18
|
+
selectedItems;
|
|
19
|
+
}
|
|
20
|
+
exports.LineItemAttribute = LineItemAttribute;
|
|
20
21
|
__decorate([
|
|
21
|
-
(0, typegoose_1.prop)({ required: true, ref: () =>
|
|
22
|
+
(0, typegoose_1.prop)({ required: true, ref: () => attribute_model_1.Attribute }),
|
|
22
23
|
__metadata("design:type", Object)
|
|
23
|
-
],
|
|
24
|
-
|
|
25
|
-
(0, typegoose_1.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
//# sourceMappingURL=
|
|
24
|
+
], LineItemAttribute.prototype, "attribute", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typegoose_1.prop)({ required: true, type: [attribute_item_model_1.AttributeItem] }),
|
|
27
|
+
__metadata("design:type", Array)
|
|
28
|
+
], LineItemAttribute.prototype, "selectedItems", void 0);
|
|
29
|
+
//# sourceMappingURL=line-item-attribute.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line-item-attribute.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/line-item-attribute.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,wDAA+C;AAC/C,iEAAuD;AAEvD,MAAa,iBAAiB;IAEtB,SAAS,CAAkB;IAG3B,aAAa,CAAmB;CACvC;AAND,8CAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,2BAAS,EAAE,CAAC;;oDACb;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,oCAAa,CAAC,EAAE,CAAC;;wDACT","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\r\nimport { Attribute } from '../attribute.model';\r\nimport { AttributeItem } from './attribute-item.model';\r\n\r\nexport class LineItemAttribute {\r\n\t@prop({ required: true, ref: () => Attribute })\r\n\tpublic attribute!: Ref<Attribute>;\r\n\r\n\t@prop({ required: true, type: [AttributeItem] })\r\n\tpublic selectedItems!: AttributeItem[];\r\n}\r\n"]}
|
|
@@ -9,17 +9,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.OrderCancel = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
-
const auth_identity_model_1 = require("../auth-identity.model");
|
|
15
14
|
const enum_1 = require("../../../../utilities/enum");
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
const admin_model_1 = require("../admin.model");
|
|
16
|
+
class OrderCancel {
|
|
17
|
+
canceledBy;
|
|
18
|
+
admin;
|
|
19
|
+
cancelReason;
|
|
18
20
|
}
|
|
19
|
-
exports.
|
|
21
|
+
exports.OrderCancel = OrderCancel;
|
|
20
22
|
__decorate([
|
|
21
|
-
(0, typegoose_1.prop)({
|
|
23
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.OrderCancelBy }),
|
|
22
24
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
], OrderCancel.prototype, "canceledBy", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typegoose_1.prop)({ ref: () => admin_model_1.Admin }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], OrderCancel.prototype, "admin", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], OrderCancel.prototype, "cancelReason", void 0);
|
|
34
|
+
//# sourceMappingURL=order-cancel.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-cancel.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-cancel.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAA2D;AAC3D,gDAAuC;AAEvC,MAAa,WAAW;IAEvB,UAAU,CAAS;IAGnB,KAAK,CAAc;IAGnB,YAAY,CAAU;CACtB;AATD,kCASC;AAPA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAa,EAAE,CAAC;;+CACzB;AAGnB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;0CACR;AAGnB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACD","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\r\nimport { OrderCancelBy } from '../../../../utilities/enum';\r\nimport { Admin } from '../admin.model';\r\n\r\nexport class OrderCancel {\r\n\t@prop({ type: String, enum: OrderCancelBy })\r\n\tcanceledBy: string;\r\n\r\n\t@prop({ ref: () => Admin })\r\n\tadmin?: Ref<Admin>;\r\n\r\n\t@prop({ type: String })\r\n\tcancelReason?: string;\r\n}\r\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class OrderPricing {
|
|
2
|
+
subtotal?: number;
|
|
3
|
+
secondarySubtotal?: number;
|
|
4
|
+
deliveryFee?: number;
|
|
5
|
+
secondaryDeliveryFee?: number;
|
|
6
|
+
riderTips?: number;
|
|
7
|
+
secondaryRiderTips?: number;
|
|
8
|
+
serviceCharge?: number;
|
|
9
|
+
secondaryServiceCharge?: number;
|
|
10
|
+
total?: number;
|
|
11
|
+
secondaryTotal?: number;
|
|
12
|
+
wallet?: number;
|
|
13
|
+
secondaryWallet?: number;
|
|
14
|
+
card?: number;
|
|
15
|
+
secondaryCard?: number;
|
|
16
|
+
cash?: number;
|
|
17
|
+
secondaryCash?: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
class OrderPricing {
|
|
15
|
+
subtotal;
|
|
16
|
+
secondarySubtotal;
|
|
17
|
+
deliveryFee;
|
|
18
|
+
secondaryDeliveryFee;
|
|
19
|
+
riderTips;
|
|
20
|
+
secondaryRiderTips;
|
|
21
|
+
serviceCharge;
|
|
22
|
+
secondaryServiceCharge;
|
|
23
|
+
total;
|
|
24
|
+
secondaryTotal;
|
|
25
|
+
wallet;
|
|
26
|
+
secondaryWallet;
|
|
27
|
+
card;
|
|
28
|
+
secondaryCard;
|
|
29
|
+
cash;
|
|
30
|
+
secondaryCash;
|
|
31
|
+
}
|
|
32
|
+
exports.OrderPricing = OrderPricing;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], OrderPricing.prototype, "subtotal", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], OrderPricing.prototype, "secondarySubtotal", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], OrderPricing.prototype, "deliveryFee", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], OrderPricing.prototype, "secondaryDeliveryFee", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], OrderPricing.prototype, "riderTips", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], OrderPricing.prototype, "secondaryRiderTips", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], OrderPricing.prototype, "serviceCharge", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], OrderPricing.prototype, "secondaryServiceCharge", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], OrderPricing.prototype, "total", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], OrderPricing.prototype, "secondaryTotal", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], OrderPricing.prototype, "wallet", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], OrderPricing.prototype, "secondaryWallet", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], OrderPricing.prototype, "card", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
87
|
+
__metadata("design:type", Number)
|
|
88
|
+
], OrderPricing.prototype, "secondaryCard", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], OrderPricing.prototype, "cash", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
95
|
+
__metadata("design:type", Number)
|
|
96
|
+
], OrderPricing.prototype, "secondaryCash", void 0);
|
|
97
|
+
//# sourceMappingURL=order-pricing.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-pricing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-pricing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAExB,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,WAAW,CAAU;IAGrB,oBAAoB,CAAU;IAG9B,SAAS,CAAU;IAGnB,kBAAkB,CAAU;IAG5B,aAAa,CAAU;IAGvB,sBAAsB,CAAU;IAGhC,KAAK,CAAU;IAGf,cAAc,CAAU;IAGxB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,IAAI,CAAU;IAGd,aAAa,CAAU;IAGvB,IAAI,CAAU;IAGd,aAAa,CAAU;CACvB;AAhDD,oCAgDC;AA9CA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8CACjB;AAGlB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACR;AAG3B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACd;AAGrB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACL;AAG9B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;+CAChB;AAGnB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;wDACP;AAG5B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACZ;AAGvB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACH;AAGhC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2CACpB;AAGf;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oDACX;AAGxB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4CACnB;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACV;AAGzB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0CACrB;AAGd;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACZ;AAGvB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0CACrB;AAGd;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACZ","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class OrderPricing {\r\n\t@prop({ type: Number, default: 0 })\r\n\tsubtotal?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tsecondarySubtotal?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tdeliveryFee?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tsecondaryDeliveryFee?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\triderTips?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tsecondaryRiderTips?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tserviceCharge?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tsecondaryServiceCharge?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\ttotal?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tsecondaryTotal?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\twallet?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tsecondaryWallet?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tcard?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tsecondaryCard?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tcash?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tsecondaryCash?: number;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otp-fields.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/otp-fields.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,SAAS;IAEd,GAAG,CAAU;IAGb,iBAAiB,CAAQ;IAGzB,eAAe,CAAQ;CAC9B;AATD,8BASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCACpB;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACX,IAAI;oDAAC;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACb,IAAI;kDAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"otp-fields.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/otp-fields.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,SAAS;IAEd,GAAG,CAAU;IAGb,iBAAiB,CAAQ;IAGzB,eAAe,CAAQ;CAC9B;AATD,8BASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCACpB;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACX,IAAI;oDAAC;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACb,IAAI;kDAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class OTPFields {\n\t@prop({ required: false, type: String })\n\tpublic otp?: string;\n\n\t@prop({ required: false, type: Date })\n\tpublic otpExpirationDate?: Date;\n\n\t@prop({ required: false, type: Date })\n\tpublic lastSentOtpDate?: Date;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/package.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2D;AAC3D,8CAAqC;AAErC,MAAM,eAAe;IAEb,IAAI,CAAa;IAGjB,4BAA4B,CAAY;CAC/C;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;6CAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;;qEACA;AAGhD,MAAM,YAAY;IAEV,IAAI,CAAU;IAGd,MAAM,CAAqB;CAClC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC;;4CACtB;AAGnC,MAAM,YAAY;IAEV,IAAI,CAAU;IAGd,EAAE,CAAU;CACnB;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACpB;AAGpB,MAAM,YAAY;IAEV,KAAK,CAAU;IAGf,YAAY,CAAgB;IAG5B,KAAK,CAAU;IAGf,UAAU,CAAkB;CACnC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACvB,YAAY;kDAAC;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;gDAC/B;AAGpC,MAAa,OAAO;IAEZ,IAAI,CAAU;IAGd,MAAM,CAAkB;CAC/B;AAND,0BAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC;;uCACtB","sourcesContent":["import { mongoose, prop, Ref } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"package.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/package.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2D;AAC3D,8CAAqC;AAErC,MAAM,eAAe;IAEb,IAAI,CAAa;IAGjB,4BAA4B,CAAY;CAC/C;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;6CAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;;qEACA;AAGhD,MAAM,YAAY;IAEV,IAAI,CAAU;IAGd,MAAM,CAAqB;CAClC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC;;4CACtB;AAGnC,MAAM,YAAY;IAEV,IAAI,CAAU;IAGd,EAAE,CAAU;CACnB;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACpB;AAGpB,MAAM,YAAY;IAEV,KAAK,CAAU;IAGf,YAAY,CAAgB;IAG5B,KAAK,CAAU;IAGf,UAAU,CAAkB;CACnC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACvB,YAAY;kDAAC;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;gDAC/B;AAGpC,MAAa,OAAO;IAEZ,IAAI,CAAU;IAGd,MAAM,CAAkB;CAC/B;AAND,0BAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC;;uCACtB","sourcesContent":["import { mongoose, prop, Ref } from '@typegoose/typegoose';\nimport { Dish } from '../dish.model';\n\nclass DishWithPortion {\n\t@prop({ required: true, ref: () => Dish })\n\tpublic dish!: Ref<Dish>;\n\n\t@prop({ required: true, type: () => [Number] })\n\tpublic portionPercentageForPackages?: number[];\n}\n\nclass MealCategory {\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: () => [DishWithPortion] })\n\tpublic dishes!: DishWithPortion[];\n}\n\nclass CalorieRange {\n\t@prop({ required: true, type: Number })\n\tpublic from!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic to!: number;\n}\n\nclass PackageRange {\n\t@prop({ required: true, type: String })\n\tpublic title!: string;\n\n\t@prop({ required: true, type: CalorieRange })\n\tpublic calorieRange!: CalorieRange;\n\n\t@prop({ required: true, type: Number })\n\tpublic price!: number;\n\n\t@prop({ required: true, type: () => [MealCategory], default: [] })\n\tpublic categories!: MealCategory[];\n}\n\nexport class Package {\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: () => [PackageRange] })\n\tpublic ranges?: PackageRange[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parent-document.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/parent-document.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,cAAc;IAEnB,0BAA0B,CAAU;IAGpC,UAAU,CAAU;IAGpB,aAAa,CAAU;CAC9B;AATD,wCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kEACI;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDACZ;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACT","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"parent-document.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/parent-document.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,cAAc;IAEnB,0BAA0B,CAAU;IAGpC,UAAU,CAAU;IAGpB,aAAa,CAAU;CAC9B;AATD,wCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kEACI;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDACZ;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACT","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class ParentDocument {\n\t@prop({ required: true, type: String })\n\tpublic commercialCircularDocument!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic nationalId!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic contractPaper!: string;\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PaymentInformation } from './payment-infromation.model';
|
|
2
|
+
export declare class PaymentAttempt {
|
|
3
|
+
timestamp: Date;
|
|
4
|
+
status: string;
|
|
5
|
+
amount: number;
|
|
6
|
+
currency: string;
|
|
7
|
+
paymentInformation?: PaymentInformation;
|
|
8
|
+
errorCode?: string;
|
|
9
|
+
errorMessage?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.PaymentAttempt = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
15
|
+
const payment_infromation_model_1 = require("./payment-infromation.model");
|
|
16
|
+
class PaymentAttempt {
|
|
17
|
+
timestamp;
|
|
18
|
+
status;
|
|
19
|
+
amount;
|
|
20
|
+
currency;
|
|
21
|
+
paymentInformation;
|
|
22
|
+
errorCode;
|
|
23
|
+
errorMessage;
|
|
24
|
+
}
|
|
25
|
+
exports.PaymentAttempt = PaymentAttempt;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typegoose_1.prop)({ required: true, default: Date.now }),
|
|
28
|
+
__metadata("design:type", Date)
|
|
29
|
+
], PaymentAttempt.prototype, "timestamp", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typegoose_1.prop)({
|
|
32
|
+
type: String,
|
|
33
|
+
enum: Object.values(enum_1.PaymentStatus),
|
|
34
|
+
required: true,
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], PaymentAttempt.prototype, "status", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typegoose_1.prop)({ type: Number, required: true }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], PaymentAttempt.prototype, "amount", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typegoose_1.prop)({
|
|
44
|
+
type: String,
|
|
45
|
+
}),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], PaymentAttempt.prototype, "currency", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typegoose_1.prop)({ type: () => payment_infromation_model_1.PaymentInformation }),
|
|
50
|
+
__metadata("design:type", payment_infromation_model_1.PaymentInformation)
|
|
51
|
+
], PaymentAttempt.prototype, "paymentInformation", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typegoose_1.prop)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], PaymentAttempt.prototype, "errorCode", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typegoose_1.prop)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], PaymentAttempt.prototype, "errorMessage", void 0);
|
|
60
|
+
//# sourceMappingURL=payment-attempt.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-attempt.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payment-attempt.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAA2D;AAC3D,2EAAiE;AAEjE,MAAa,cAAc;IAE1B,SAAS,CAAO;IAOhB,MAAM,CAAS;IAGf,MAAM,CAAS;IAKf,QAAQ,CAAS;IAGjB,kBAAkB,CAAsB;IAGxC,SAAS,CAAU;IAGnB,YAAY,CAAU;CACtB;AA3BD,wCA2BC;AAzBA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC;8BACjC,IAAI;iDAAC;AAOhB;IALC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,oBAAa,CAAC;QAClC,QAAQ,EAAE,IAAI;KACd,CAAC;;8CACa;AAGf;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACxB;AAKf;IAHC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;KACZ,CAAC;;gDACe;AAGjB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,8CAAkB,EAAE,CAAC;8BACpB,8CAAkB;0DAAC;AAGxC;IADC,IAAA,gBAAI,GAAE;;iDACY;AAGnB;IADC,IAAA,gBAAI,GAAE;;oDACe","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { PaymentStatus } from '../../../../utilities/enum';\r\nimport { PaymentInformation } from './payment-infromation.model';\r\n\r\nexport class PaymentAttempt {\r\n\t@prop({ required: true, default: Date.now })\r\n\ttimestamp: Date;\r\n\r\n\t@prop({\r\n\t\ttype: String,\r\n\t\tenum: Object.values(PaymentStatus),\r\n\t\trequired: true,\r\n\t})\r\n\tstatus: string;\r\n\r\n\t@prop({ type: Number, required: true })\r\n\tamount: number;\r\n\r\n\t@prop({\r\n\t\ttype: String,\r\n\t})\r\n\tcurrency: string; // need to update with enum; discussion needed with shajeeb bhai\r\n\r\n\t@prop({ type: () => PaymentInformation })\r\n\tpaymentInformation?: PaymentInformation;\r\n\r\n\t@prop()\r\n\terrorCode?: string;\r\n\r\n\t@prop()\r\n\terrorMessage?: string;\r\n}\r\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.PaymentDetails = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const transaction_model_1 = require("../transaction.model");
|
|
15
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
16
|
+
class PaymentDetails {
|
|
17
|
+
method;
|
|
18
|
+
status;
|
|
19
|
+
transaction;
|
|
20
|
+
paymentReference;
|
|
21
|
+
receiptUrl;
|
|
22
|
+
}
|
|
23
|
+
exports.PaymentDetails = PaymentDetails;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typegoose_1.prop)({
|
|
26
|
+
type: String,
|
|
27
|
+
enum: enum_1.PaymentMethod,
|
|
28
|
+
required: true,
|
|
29
|
+
}),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], PaymentDetails.prototype, "method", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typegoose_1.prop)({
|
|
34
|
+
type: String,
|
|
35
|
+
enum: Object.values(enum_1.PaymentStatus),
|
|
36
|
+
default: enum_1.PaymentStatus.PENDING,
|
|
37
|
+
}),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], PaymentDetails.prototype, "status", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typegoose_1.prop)({ ref: () => transaction_model_1.Transaction }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], PaymentDetails.prototype, "transaction", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typegoose_1.prop)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], PaymentDetails.prototype, "paymentReference", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typegoose_1.prop)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], PaymentDetails.prototype, "receiptUrl", void 0);
|
|
52
|
+
//# sourceMappingURL=payment-details.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-details.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payment-details.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,4DAAmD;AACnD,qDAA0E;AAE1E,MAAa,cAAc;IAM1B,MAAM,CAAS;IAOf,MAAM,CAAS;IAGf,WAAW,CAAoB;IAG/B,gBAAgB,CAAU;IAG1B,UAAU,CAAU;CACpB;AAvBD,wCAuBC;AAjBA;IALC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,oBAAa;QACnB,QAAQ,EAAE,IAAI;KACd,CAAC;;8CACa;AAOf;IALC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,oBAAa,CAAC;QAClC,OAAO,EAAE,oBAAa,CAAC,OAAO;KAC9B,CAAC;;8CACa;AAGf;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,+BAAW,EAAE,CAAC;;mDACF;AAG/B;IADC,IAAA,gBAAI,GAAE;;wDACmB;AAG1B;IADC,IAAA,gBAAI,GAAE;;kDACa","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\r\nimport { Transaction } from '../transaction.model';\r\nimport { PaymentMethod, PaymentStatus } from '../../../../utilities/enum';\r\n\r\nexport class PaymentDetails {\r\n\t@prop({\r\n\t\ttype: String,\r\n\t\tenum: PaymentMethod,\r\n\t\trequired: true,\r\n\t})\r\n\tmethod: string;\r\n\r\n\t@prop({\r\n\t\ttype: String,\r\n\t\tenum: Object.values(PaymentStatus),\r\n\t\tdefault: PaymentStatus.PENDING,\r\n\t})\r\n\tstatus: string;\r\n\r\n\t@prop({ ref: () => Transaction })\r\n\ttransaction?: Ref<Transaction>;\r\n\r\n\t@prop()\r\n\tpaymentReference?: string;\r\n\r\n\t@prop()\r\n\treceiptUrl?: string;\r\n}\r\n"]}
|
|
@@ -16,6 +16,7 @@ class PaymentInformation {
|
|
|
16
16
|
cardType;
|
|
17
17
|
referenceId;
|
|
18
18
|
transactionId;
|
|
19
|
+
metadata;
|
|
19
20
|
}
|
|
20
21
|
exports.PaymentInformation = PaymentInformation;
|
|
21
22
|
__decorate([
|
|
@@ -35,4 +36,8 @@ __decorate([
|
|
|
35
36
|
(0, typegoose_1.prop)(),
|
|
36
37
|
__metadata("design:type", String)
|
|
37
38
|
], PaymentInformation.prototype, "transactionId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typegoose_1.prop)({ type: () => Object }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], PaymentInformation.prototype, "metadata", void 0);
|
|
38
43
|
//# sourceMappingURL=payment-infromation.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-infromation.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payment-infromation.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAsD;AAEtD,MAAa,kBAAkB;IAOvB,QAAQ,CAAY;IAGpB,WAAW,CAAU;IAGrB,aAAa,CAAU;
|
|
1
|
+
{"version":3,"file":"payment-infromation.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payment-infromation.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAsD;AAEtD,MAAa,kBAAkB;IAOvB,QAAQ,CAAY;IAGpB,WAAW,CAAU;IAGrB,aAAa,CAAU;IAGvB,QAAQ,CAAuB;CACtC;AAjBD,gDAiBC;AAVO;IANN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,eAAQ;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,eAAQ,CAAC,MAAM;KACxB,CAAC;;oDACyB;AAGpB;IADN,IAAA,gBAAI,GAAE;;uDACqB;AAGrB;IADN,IAAA,gBAAI,GAAE;;yDACuB;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC;;oDACS","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { CardType } from '../../../../utilities/enum';\r\n\r\nexport class PaymentInformation {\r\n\t@prop({\r\n\t\trequired: true,\r\n\t\tenum: CardType,\r\n\t\ttype: String,\r\n\t\tdefault: CardType.AREEBA,\r\n\t})\r\n\tpublic cardType!: CardType;\r\n\r\n\t@prop()\r\n\tpublic referenceId?: string;\r\n\r\n\t@prop()\r\n\tpublic transactionId?: string;\r\n\r\n\t@prop({ type: () => Object })\r\n\tpublic metadata?: Record<string, any>;\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payout-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payout-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAqD;AAErD,MAAa,aAAa;IAEzB,WAAW,CAAW;IAGtB,cAAc,CAAU;CACxB;AAND,sCAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,cAAO,EAAE,CAAC;;kDAChC;AAGtB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACnB","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"payout-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payout-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAqD;AAErD,MAAa,aAAa;IAEzB,WAAW,CAAW;IAGtB,cAAc,CAAU;CACxB;AAND,sCAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,cAAO,EAAE,CAAC;;kDAChC;AAGtB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACnB","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { WeekDay } from '../../../../utilities/enum';\n\nexport class PayoutSetting {\n\t@prop({ required: true, type: Number, enum: WeekDay })\n\tissuanceDay!: WeekDay;\n\n\t@prop({ type: Number, min: 1, default: 1 })\n\toverDuePeriods?: number;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"price.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/price.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,KAAK;IAEV,IAAI,CAAU;IAGd,SAAS,CAAU;IAGnB,KAAK,CAAU;CACtB;AATD,sBASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mCACF;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;wCACL;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;oCACzB","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"price.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/price.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,KAAK;IAEV,IAAI,CAAU;IAGd,SAAS,CAAU;IAGnB,KAAK,CAAU;CACtB;AATD,sBASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mCACF;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;wCACL;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;oCACzB","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class Price {\n\t@prop({ type: String })\n\tpublic unit?: string;\n\n\t@prop({ type: Number, min: 0 })\n\tpublic unitValue?: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic price!: number;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-nutrition.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/product-nutrition.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,gBAAgB;IAE5B,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,SAAS,CAAS;CAClB;AATD,4CASC;AAPA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CAC1B;AAGb;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CAC1B;AAGb;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACrB","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"product-nutrition.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/product-nutrition.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,gBAAgB;IAE5B,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,SAAS,CAAS;CAClB;AATD,4CASC;AAPA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CAC1B;AAGb;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CAC1B;AAGb;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACrB","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class ProductNutrition {\n\t@prop({ required: true, type: String })\n\tname: string;\n\n\t@prop({ required: true, type: String })\n\tunit: string;\n\n\t@prop({ required: true, type: Number })\n\tunitValue: number;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"referral-discount-config.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/referral-discount-config.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAa,sBAAsB;IAO3B,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,iBAAiB,CAAU;CAClC;AAdD,wDAcC;AAPO;IANN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,gBAAS;QACf,OAAO,EAAE,gBAAS,CAAC,UAAU;KAC7B,CAAC;;yDAC2B;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iEACD","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"referral-discount-config.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/referral-discount-config.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAa,sBAAsB;IAO3B,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,iBAAiB,CAAU;CAClC;AAdD,wDAcC;AAPO;IANN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,gBAAS;QACf,OAAO,EAAE,gBAAS,CAAC,UAAU;KAC7B,CAAC;;yDAC2B;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iEACD","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { ValueType } from '../../../../utilities/enum';\n\nexport class ReferralDiscountConfig {\n\t@prop({\n\t\trequired: true,\n\t\ttype: String,\n\t\tenum: ValueType,\n\t\tdefault: ValueType.PERCENTAGE,\n\t})\n\tpublic valueType!: ValueType;\n\n\t@prop({ required: true, type: Number })\n\tpublic value!: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic minimumOrderValue?: number;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rider-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/rider-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAExB,iBAAiB,CAAU;IAG3B,sBAAsB,CAAU;IAGhC,IAAI,CAAY;IAGhB,UAAU,CAAY;CACtB;AAZD,oCAYC;AAVA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;uDAChB;AAG3B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;4DAClB;AAGhC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;0CAC5B;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;gDACtB","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"rider-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/rider-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAExB,iBAAiB,CAAU;IAG3B,sBAAsB,CAAU;IAGhC,IAAI,CAAY;IAGhB,UAAU,CAAY;CACtB;AAZD,oCAYC;AAVA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;uDAChB;AAG3B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;4DAClB;AAGhC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;0CAC5B;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;gDACtB","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class RiderSetting {\n\t@prop({ type: Number, default: 8, min: 0 })\n\tdailyWorkingHours?: number;\n\n\t@prop({ type: Number, default: Infinity, min: 0 })\n\tbobCashSettlementLimit?: number;\n\n\t@prop({ type: () => [Number], default: [] })\n\ttips?: number[];\n\n\t@prop({ type: () => [String], default: [] })\n\tequipments?: string[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-fee-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-fee-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAa,iBAAiB;IAEtB,SAAS,CAAa;IAGtB,KAAK,CAAU;CACtB;AAND,8CAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,UAAU,EAAE,CAAC;;oDAC1C;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;gDACT","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"service-fee-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-fee-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAa,iBAAiB;IAEtB,SAAS,CAAa;IAGtB,KAAK,CAAU;CACtB;AAND,8CAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,UAAU,EAAE,CAAC;;oDAC1C;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;gDACT","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { ValueType } from '../../../../utilities/enum';\n\nexport class ServiceFeeSetting {\n\t@prop({ type: String, enum: ValueType, default: ValueType.PERCENTAGE })\n\tpublic valueType?: ValueType;\n\n\t@prop({ type: Number, min: 0 })\n\tpublic value?: number;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shop-document.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/shop-document.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAEjB,0BAA0B,CAAU;IAGpC,eAAe,CAAU;IAGzB,WAAW,CAAU;CAC5B;AATD,oCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gEACI;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACP;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACX","sourcesContent":["import { prop } from '@typegoose/typegoose';\
|
|
1
|
+
{"version":3,"file":"shop-document.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/shop-document.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAEjB,0BAA0B,CAAU;IAGpC,eAAe,CAAU;IAGzB,WAAW,CAAU;CAC5B;AATD,oCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gEACI;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACP;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACX","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class ShopDocument {\n\t@prop({ required: true, type: String })\n\tpublic commercialCircularDocument!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic taxRegistration!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic identityDoc!: string;\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Ref } from '@typegoose/typegoose';
|
|
2
|
+
import { Admin } from '../admin.model';
|
|
3
|
+
declare class StatusTimeline {
|
|
4
|
+
timestamp: Date;
|
|
5
|
+
updatedBy?: Ref<Admin>;
|
|
6
|
+
notes?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class RegularOrderStatusTimeline extends StatusTimeline {
|
|
9
|
+
status: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class CourierOrderStatusTimeline extends StatusTimeline {
|
|
12
|
+
status: string;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
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.CourierOrderStatusTimeline = exports.RegularOrderStatusTimeline = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const admin_model_1 = require("../admin.model");
|
|
15
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
16
|
+
class StatusTimeline {
|
|
17
|
+
timestamp;
|
|
18
|
+
updatedBy;
|
|
19
|
+
notes;
|
|
20
|
+
}
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typegoose_1.prop)(),
|
|
23
|
+
__metadata("design:type", Date)
|
|
24
|
+
], StatusTimeline.prototype, "timestamp", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typegoose_1.prop)({ ref: () => admin_model_1.Admin }),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], StatusTimeline.prototype, "updatedBy", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typegoose_1.prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], StatusTimeline.prototype, "notes", void 0);
|
|
33
|
+
class RegularOrderStatusTimeline extends StatusTimeline {
|
|
34
|
+
status;
|
|
35
|
+
}
|
|
36
|
+
exports.RegularOrderStatusTimeline = RegularOrderStatusTimeline;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typegoose_1.prop)({
|
|
39
|
+
required: true,
|
|
40
|
+
type: String,
|
|
41
|
+
enum: enum_1.RegularOrderStatus,
|
|
42
|
+
default: enum_1.RegularOrderStatus.PLACED,
|
|
43
|
+
}),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], RegularOrderStatusTimeline.prototype, "status", void 0);
|
|
46
|
+
class CourierOrderStatusTimeline extends StatusTimeline {
|
|
47
|
+
status;
|
|
48
|
+
}
|
|
49
|
+
exports.CourierOrderStatusTimeline = CourierOrderStatusTimeline;
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typegoose_1.prop)({
|
|
52
|
+
required: true,
|
|
53
|
+
type: String,
|
|
54
|
+
enum: enum_1.CourierOrderStatus,
|
|
55
|
+
default: enum_1.CourierOrderStatus.PLACED,
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], CourierOrderStatusTimeline.prototype, "status", void 0);
|
|
59
|
+
//# sourceMappingURL=status-timeline.model.js.map
|