@lyxa.ai/core 1.0.38 → 1.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/dist/index.js +6 -1
  2. package/dist/index.js.map +1 -1
  3. package/dist/libraries/auth/index.js.map +1 -1
  4. package/dist/libraries/auth/refreshtoken.js.map +1 -1
  5. package/dist/libraries/auth/repository.js.map +1 -1
  6. package/dist/libraries/configuration/index.js.map +1 -1
  7. package/dist/libraries/configuration/types/EnvironmentConfigurationType.js.map +1 -1
  8. package/dist/libraries/dispatcher/index.js.map +1 -1
  9. package/dist/libraries/event/BaseEvent.js.map +1 -1
  10. package/dist/libraries/event/decorators/metadata.js.map +1 -1
  11. package/dist/libraries/event/decorators/subscribe.js.map +1 -1
  12. package/dist/libraries/event/index.js.map +1 -1
  13. package/dist/libraries/event/registry/SubscriptionRegistry.js.map +1 -1
  14. package/dist/libraries/event/test/OrderCreationEvent.js.map +1 -1
  15. package/dist/libraries/firebase/index.js.map +1 -1
  16. package/dist/libraries/index.d.ts +2 -0
  17. package/dist/libraries/index.js +4 -0
  18. package/dist/libraries/index.js.map +1 -1
  19. package/dist/libraries/logger/index.js.map +1 -1
  20. package/dist/libraries/map/index.d.ts +2 -0
  21. package/dist/libraries/map/index.js +19 -0
  22. package/dist/libraries/map/index.js.map +1 -0
  23. package/dist/libraries/map/interfaces/IMapService.d.ts +31 -0
  24. package/dist/libraries/map/interfaces/IMapService.js +3 -0
  25. package/dist/libraries/map/interfaces/IMapService.js.map +1 -0
  26. package/dist/libraries/map/mapService.d.ts +8 -0
  27. package/dist/libraries/map/mapService.js +45 -0
  28. package/dist/libraries/map/mapService.js.map +1 -0
  29. package/dist/libraries/map/providers/google-maps.d.ts +7 -0
  30. package/dist/libraries/map/providers/google-maps.js +134 -0
  31. package/dist/libraries/map/providers/google-maps.js.map +1 -0
  32. package/dist/libraries/map/providers/index.d.ts +1 -0
  33. package/dist/libraries/map/providers/index.js +18 -0
  34. package/dist/libraries/map/providers/index.js.map +1 -0
  35. package/dist/libraries/mongo/index.js.map +1 -1
  36. package/dist/libraries/mongo/models/activity-log.model.js.map +1 -1
  37. package/dist/libraries/mongo/models/admin-access-control.model.js.map +1 -1
  38. package/dist/libraries/mongo/models/admin.model.js.map +1 -1
  39. package/dist/libraries/mongo/models/app-screen-setting.model.js.map +1 -1
  40. package/dist/libraries/mongo/models/attribute.model.js.map +1 -1
  41. package/dist/libraries/mongo/models/banner.model.js.map +1 -1
  42. package/dist/libraries/mongo/models/base/base-review.model.js.map +1 -1
  43. package/dist/libraries/mongo/models/bob-finance.model.js.map +1 -1
  44. package/dist/libraries/mongo/models/brand.model.js.map +1 -1
  45. package/dist/libraries/mongo/models/card.model.js.map +1 -1
  46. package/dist/libraries/mongo/models/cart-participant.model.js.map +1 -1
  47. package/dist/libraries/mongo/models/cart.model.js.map +1 -1
  48. package/dist/libraries/mongo/models/category.model.js.map +1 -1
  49. package/dist/libraries/mongo/models/core-auth-identity.model.js.map +1 -1
  50. package/dist/libraries/mongo/models/core-user.model.js.map +1 -1
  51. package/dist/libraries/mongo/models/counter.model.js.map +1 -1
  52. package/dist/libraries/mongo/models/coupon.model.js.map +1 -1
  53. package/dist/libraries/mongo/models/deal-setting.model.js.map +1 -1
  54. package/dist/libraries/mongo/models/dish.model.js.map +1 -1
  55. package/dist/libraries/mongo/models/embedded/charge.model.js.map +1 -1
  56. package/dist/libraries/mongo/models/embedded/delivery-charge-setting.model.d.ts +10 -0
  57. package/dist/libraries/mongo/models/embedded/{charge-setting.model.js → delivery-charge-setting.model.js} +16 -25
  58. package/dist/libraries/mongo/models/embedded/delivery-charge-setting.model.js.map +1 -0
  59. package/dist/libraries/mongo/models/embedded/delivery-info.model.js.map +1 -1
  60. package/dist/libraries/mongo/models/embedded/line-item-attribute.model.js.map +1 -1
  61. package/dist/libraries/mongo/models/embedded/marketing-cut.model.d.ts +17 -0
  62. package/dist/libraries/mongo/models/embedded/marketing-cut.model.js +69 -0
  63. package/dist/libraries/mongo/models/embedded/marketing-cut.model.js.map +1 -0
  64. package/dist/libraries/mongo/models/embedded/order-cancel.model.js.map +1 -1
  65. package/dist/libraries/mongo/models/embedded/order-pricing.model.d.ts +2 -6
  66. package/dist/libraries/mongo/models/embedded/order-pricing.model.js +4 -24
  67. package/dist/libraries/mongo/models/embedded/order-pricing.model.js.map +1 -1
  68. package/dist/libraries/mongo/models/embedded/otp-fields.model.js.map +1 -1
  69. package/dist/libraries/mongo/models/embedded/parent-document.model.js.map +1 -1
  70. package/dist/libraries/mongo/models/embedded/payment-attempt.model.js.map +1 -1
  71. package/dist/libraries/mongo/models/embedded/payment-infromation.model.js +3 -8
  72. package/dist/libraries/mongo/models/embedded/payment-infromation.model.js.map +1 -1
  73. package/dist/libraries/mongo/models/embedded/price-breakdown.model.js.map +1 -1
  74. package/dist/libraries/mongo/models/embedded/profit.model.d.ts +14 -0
  75. package/dist/libraries/mongo/models/embedded/profit.model.js +63 -0
  76. package/dist/libraries/mongo/models/embedded/profit.model.js.map +1 -0
  77. package/dist/libraries/mongo/models/embedded/rider-equipment.model.js.map +1 -1
  78. package/dist/libraries/mongo/models/embedded/shop-document.model.js.map +1 -1
  79. package/dist/libraries/mongo/models/embedded/status-timeline.model.js.map +1 -1
  80. package/dist/libraries/mongo/models/embedded/vat.model.d.ts +4 -0
  81. package/dist/libraries/mongo/models/embedded/vat.model.js +27 -0
  82. package/dist/libraries/mongo/models/embedded/vat.model.js.map +1 -0
  83. package/dist/libraries/mongo/models/embedded/zone-geometry.mode.js.map +1 -1
  84. package/dist/libraries/mongo/models/faq.model.js.map +1 -1
  85. package/dist/libraries/mongo/models/favourite.model.js.map +1 -1
  86. package/dist/libraries/mongo/models/featured-setting.model.js.map +1 -1
  87. package/dist/libraries/mongo/models/filter-container.model.js.map +1 -1
  88. package/dist/libraries/mongo/models/finance-settlement.model.d.ts +18 -0
  89. package/dist/libraries/mongo/models/finance-settlement.model.js +68 -0
  90. package/dist/libraries/mongo/models/finance-settlement.model.js.map +1 -0
  91. package/dist/libraries/mongo/models/gallery.model.js.map +1 -1
  92. package/dist/libraries/mongo/models/index.d.ts +28 -16
  93. package/dist/libraries/mongo/models/index.js +30 -18
  94. package/dist/libraries/mongo/models/index.js.map +1 -1
  95. package/dist/libraries/mongo/models/line-item.model.js.map +1 -1
  96. package/dist/libraries/mongo/models/list-container.model.js.map +1 -1
  97. package/dist/libraries/mongo/models/loyalty-point-category.model.js.map +1 -1
  98. package/dist/libraries/mongo/models/loyalty-point-setting.model.js.map +1 -1
  99. package/dist/libraries/mongo/models/marketing.model.js +3 -0
  100. package/dist/libraries/mongo/models/marketing.model.js.map +1 -1
  101. package/dist/libraries/mongo/models/meal-plan.model.js.map +1 -1
  102. package/dist/libraries/mongo/models/notification.model.js.map +1 -1
  103. package/dist/libraries/mongo/models/nutrition.model.js.map +1 -1
  104. package/dist/libraries/mongo/models/order-delivery.model.js.map +1 -1
  105. package/dist/libraries/mongo/models/order-finance.model.d.ts +12 -0
  106. package/dist/libraries/mongo/models/order-finance.model.js +45 -0
  107. package/dist/libraries/mongo/models/order-finance.model.js.map +1 -0
  108. package/dist/libraries/mongo/models/order-payment.model.d.ts +0 -4
  109. package/dist/libraries/mongo/models/order-payment.model.js +2 -14
  110. package/dist/libraries/mongo/models/order-payment.model.js.map +1 -1
  111. package/dist/libraries/mongo/models/order.model.js.map +1 -1
  112. package/dist/libraries/mongo/models/parent.model.js.map +1 -1
  113. package/dist/libraries/mongo/models/product-marketing.model.js.map +1 -1
  114. package/dist/libraries/mongo/models/product.model.js.map +1 -1
  115. package/dist/libraries/mongo/models/providers/areeba-card.model.js.map +1 -1
  116. package/dist/libraries/mongo/models/providers/buy1-get1-marketing.model.js.map +1 -1
  117. package/dist/libraries/mongo/models/providers/core-apple-auth-identity.model.js.map +1 -1
  118. package/dist/libraries/mongo/models/providers/core-email-auth-identity.model.js.map +1 -1
  119. package/dist/libraries/mongo/models/providers/core-google-auth-identity.model.js.map +1 -1
  120. package/dist/libraries/mongo/models/providers/core-phone-auth-identity.model.js.map +1 -1
  121. package/dist/libraries/mongo/models/providers/courier-order-finance.model.d.ts +7 -0
  122. package/dist/libraries/mongo/models/providers/courier-order-finance.model.js +26 -0
  123. package/dist/libraries/mongo/models/providers/courier-order-finance.model.js.map +1 -0
  124. package/dist/libraries/mongo/models/providers/courier-order.model.js.map +1 -1
  125. package/dist/libraries/mongo/models/providers/custom-coupon.model.js.map +1 -1
  126. package/dist/libraries/mongo/models/providers/discount-marketing.model.d.ts +1 -1
  127. package/dist/libraries/mongo/models/providers/discount-marketing.model.js +6 -2
  128. package/dist/libraries/mongo/models/providers/discount-marketing.model.js.map +1 -1
  129. package/dist/libraries/mongo/models/providers/featured-marketing.model.js.map +1 -1
  130. package/dist/libraries/mongo/models/providers/free-delivery-marketing.model.js.map +1 -1
  131. package/dist/libraries/mongo/models/providers/global-coupon.model.js.map +1 -1
  132. package/dist/libraries/mongo/models/providers/individual-store-coupon.model.d.ts +1 -1
  133. package/dist/libraries/mongo/models/providers/individual-store-coupon.model.js +1 -1
  134. package/dist/libraries/mongo/models/providers/individual-store-coupon.model.js.map +1 -1
  135. package/dist/libraries/mongo/models/providers/individual-user-coupon.model.js.map +1 -1
  136. package/dist/libraries/mongo/models/providers/loyalty-point-marketing.model.js.map +1 -1
  137. package/dist/libraries/mongo/models/providers/punch-marketing.model.js.map +1 -1
  138. package/dist/libraries/mongo/models/providers/referral-code-coupon.model.js.map +1 -1
  139. package/dist/libraries/mongo/models/providers/referral-reward-coupon.model.d.ts +1 -1
  140. package/dist/libraries/mongo/models/providers/referral-reward-coupon.model.js +3 -3
  141. package/dist/libraries/mongo/models/providers/referral-reward-coupon.model.js.map +1 -1
  142. package/dist/libraries/mongo/models/providers/regular-order-finance.model.d.ts +18 -0
  143. package/dist/libraries/mongo/models/providers/regular-order-finance.model.js +73 -0
  144. package/dist/libraries/mongo/models/providers/regular-order-finance.model.js.map +1 -0
  145. package/dist/libraries/mongo/models/providers/regular-order.model.js.map +1 -1
  146. package/dist/libraries/mongo/models/punch-marketing-history.model.js.map +1 -1
  147. package/dist/libraries/mongo/models/rating-setting.model.js.map +1 -1
  148. package/dist/libraries/mongo/models/referral-setting.model.js.map +1 -1
  149. package/dist/libraries/mongo/models/request-area.model.js.map +1 -1
  150. package/dist/libraries/mongo/models/rider-review.model.js.map +1 -1
  151. package/dist/libraries/mongo/models/rider-timeout.model.js.map +1 -1
  152. package/dist/libraries/mongo/models/rider-tracking.model.js.map +1 -1
  153. package/dist/libraries/mongo/models/rider.model.js.map +1 -1
  154. package/dist/libraries/mongo/models/role.model.js.map +1 -1
  155. package/dist/libraries/mongo/models/setting.model.d.ts +2 -2
  156. package/dist/libraries/mongo/models/setting.model.js +5 -5
  157. package/dist/libraries/mongo/models/setting.model.js.map +1 -1
  158. package/dist/libraries/mongo/models/shared/address.model.js.map +1 -1
  159. package/dist/libraries/mongo/models/shared/geo-location.model.js.map +1 -1
  160. package/dist/libraries/mongo/models/shared/work-hour.model.js.map +1 -1
  161. package/dist/libraries/mongo/models/shop-access-control.model.js.map +1 -1
  162. package/dist/libraries/mongo/models/shop-category.model.js.map +1 -1
  163. package/dist/libraries/mongo/models/shop-meal-plan.model.js.map +1 -1
  164. package/dist/libraries/mongo/models/shop-review.model.js.map +1 -1
  165. package/dist/libraries/mongo/models/shop.model.js.map +1 -1
  166. package/dist/libraries/mongo/models/subscription-setting.model.js.map +1 -1
  167. package/dist/libraries/mongo/models/subscription.model.js.map +1 -1
  168. package/dist/libraries/mongo/models/tag.model.js.map +1 -1
  169. package/dist/libraries/mongo/models/user.model.js.map +1 -1
  170. package/dist/libraries/mongo/models/zone.model.js.map +1 -1
  171. package/dist/libraries/mongo/plugins/soft-delete-plugin.js.map +1 -1
  172. package/dist/libraries/redis/index.js.map +1 -1
  173. package/dist/libraries/secrets/index.js.map +1 -1
  174. package/dist/libraries/trpc/context.js.map +1 -1
  175. package/dist/libraries/trpc/index.js.map +1 -1
  176. package/dist/libraries/trpc/middlewares/auth.js.map +1 -1
  177. package/dist/libraries/trpc/middlewares/cors.js.map +1 -1
  178. package/dist/libraries/trpc/middlewares/phone-verified.js.map +1 -1
  179. package/dist/libraries/twilio/index.js.map +1 -1
  180. package/dist/libraries/upload/index.js.map +1 -1
  181. package/dist/utilities/common/password.js.map +1 -1
  182. package/dist/utilities/common/week.js.map +1 -1
  183. package/dist/utilities/enum.d.ts +12 -1
  184. package/dist/utilities/enum.js +14 -2
  185. package/dist/utilities/enum.js.map +1 -1
  186. package/dist/utilities/error-handler.js.map +1 -1
  187. package/dist/utilities/error-middleware.js.map +1 -1
  188. package/dist/utilities/pagination.js.map +1 -1
  189. package/dist/utilities/response.js.map +1 -1
  190. package/dist/utilities/search.js.map +1 -1
  191. package/dist/utilities/transformers.js.map +1 -1
  192. package/dist/utilities/validation/common-validation.d.ts +7 -7
  193. package/dist/utilities/validation/common-validation.js.map +1 -1
  194. package/dist/utilities/validation/global-validation.js.map +1 -1
  195. package/dist/utilities/validation/index.js.map +1 -1
  196. package/package.json +52 -50
  197. package/dist/libraries/mongo/models/embedded/charge-setting.model.d.ts +0 -14
  198. package/dist/libraries/mongo/models/embedded/charge-setting.model.js.map +0 -1
@@ -0,0 +1,10 @@
1
+ export declare class Charge {
2
+ from: number;
3
+ to: number;
4
+ charge: number;
5
+ riderCut: number;
6
+ }
7
+ export declare class DeliveryCharge {
8
+ type: string;
9
+ charges: Charge[];
10
+ }
@@ -9,52 +9,43 @@ 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.ChargeSetting = void 0;
12
+ exports.DeliveryCharge = exports.Charge = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  const enum_1 = require("../../../../utilities/enum");
15
- class DeliveryCharge {
15
+ class Charge {
16
16
  from;
17
17
  to;
18
18
  charge;
19
19
  riderCut;
20
20
  }
21
+ exports.Charge = Charge;
21
22
  __decorate([
22
23
  (0, typegoose_1.prop)({ required: true, type: Number, min: 0 }),
23
24
  __metadata("design:type", Number)
24
- ], DeliveryCharge.prototype, "from", void 0);
25
+ ], Charge.prototype, "from", void 0);
25
26
  __decorate([
26
27
  (0, typegoose_1.prop)({ required: true, type: Number, min: 0 }),
27
28
  __metadata("design:type", Number)
28
- ], DeliveryCharge.prototype, "to", void 0);
29
+ ], Charge.prototype, "to", void 0);
29
30
  __decorate([
30
31
  (0, typegoose_1.prop)({ required: true, type: Number, min: 0 }),
31
32
  __metadata("design:type", Number)
32
- ], DeliveryCharge.prototype, "charge", void 0);
33
+ ], Charge.prototype, "charge", void 0);
33
34
  __decorate([
34
35
  (0, typegoose_1.prop)({ required: true, type: Number, min: 0 }),
35
36
  __metadata("design:type", Number)
36
- ], DeliveryCharge.prototype, "riderCut", void 0);
37
- class ChargeSetting {
38
- valueType;
39
- value;
40
- deliveryCharges;
41
- deliveryChargesForCourier;
37
+ ], Charge.prototype, "riderCut", void 0);
38
+ class DeliveryCharge {
39
+ type;
40
+ charges;
42
41
  }
43
- exports.ChargeSetting = ChargeSetting;
42
+ exports.DeliveryCharge = DeliveryCharge;
44
43
  __decorate([
45
- (0, typegoose_1.prop)({ type: String, enum: enum_1.ValueType, default: enum_1.ValueType.PERCENTAGE }),
44
+ (0, typegoose_1.prop)({ type: String, enum: enum_1.OrderType, default: enum_1.OrderType.REGULAR }),
46
45
  __metadata("design:type", String)
47
- ], ChargeSetting.prototype, "valueType", void 0);
48
- __decorate([
49
- (0, typegoose_1.prop)({ type: Number, min: 0 }),
50
- __metadata("design:type", Number)
51
- ], ChargeSetting.prototype, "value", void 0);
52
- __decorate([
53
- (0, typegoose_1.prop)({ type: () => [DeliveryCharge], default: [] }),
54
- __metadata("design:type", Array)
55
- ], ChargeSetting.prototype, "deliveryCharges", void 0);
46
+ ], DeliveryCharge.prototype, "type", void 0);
56
47
  __decorate([
57
- (0, typegoose_1.prop)({ type: () => [DeliveryCharge], default: [] }),
48
+ (0, typegoose_1.prop)({ type: () => [Charge], default: [] }),
58
49
  __metadata("design:type", Array)
59
- ], ChargeSetting.prototype, "deliveryChargesForCourier", void 0);
60
- //# sourceMappingURL=charge-setting.model.js.map
50
+ ], DeliveryCharge.prototype, "charges", void 0);
51
+ //# sourceMappingURL=delivery-charge-setting.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delivery-charge-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/delivery-charge-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAa,MAAM;IAEX,IAAI,CAAU;IAGd,EAAE,CAAU;IAGZ,MAAM,CAAU;IAGhB,QAAQ,CAAU;CACzB;AAZD,wBAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;oCAC1B;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;kCAC5B;AAGZ;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;sCACxB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;wCACtB;AAG1B,MAAa,cAAc;IAE1B,IAAI,CAAS;IAGb,OAAO,CAAU;CACjB;AAND,wCAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,OAAO,EAAE,CAAC;;4CACvD;AAGb;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;+CAC3B","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { OrderType } from '../../../../utilities/enum';\n\nexport class Charge {\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic from!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic to!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic charge!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic riderCut!: number;\n}\n\nexport class DeliveryCharge {\n\t@prop({ type: String, enum: OrderType, default: OrderType.REGULAR })\n\ttype: string;\n\n\t@prop({ type: () => [Charge], default: [] })\n\tcharges: Charge[]\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"delivery-info.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/delivery-info.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAEjB,eAAe,CAAU;IAGzB,iBAAiB,CAAS;CACjC;AAND,oCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACH;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACF","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class DeliveryInfo {\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic totalDeliveries!: string;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic totalDeliveryTime: number; // in seconds\r\n}\r\n"]}
1
+ {"version":3,"file":"delivery-info.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/delivery-info.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAEjB,eAAe,CAAU;IAGzB,iBAAiB,CAAS;CACjC;AAND,oCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACH;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACF","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class DeliveryInfo {\n\t@prop({ type: Number, default: 0 })\n\tpublic totalDeliveries!: string;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic totalDeliveryTime: number; // in seconds\n}\n"]}
@@ -1 +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"]}
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';\nimport { Attribute } from '../attribute.model';\nimport { AttributeItem } from './attribute-item.model';\n\nexport class LineItemAttribute {\n\t@prop({ required: true, ref: () => Attribute })\n\tpublic attribute!: Ref<Attribute>;\n\n\t@prop({ required: true, type: [AttributeItem] })\n\tpublic selectedItems!: AttributeItem[];\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import { Ref } from '@typegoose/typegoose';
2
+ import { Coupon } from '../coupon.model';
3
+ export declare class MarketingCut {
4
+ companyCut?: number;
5
+ secondaryCompanyCut?: number;
6
+ shopCut?: number;
7
+ secondaryShopCut?: number;
8
+ }
9
+ export declare class LoyaltyPoint extends MarketingCut {
10
+ redeemCashback?: number;
11
+ secondaryRedeemCashback?: number;
12
+ points?: number;
13
+ }
14
+ export declare class CouponDetails extends MarketingCut {
15
+ coupon?: Ref<Coupon>;
16
+ snap?: object;
17
+ }
@@ -0,0 +1,69 @@
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.CouponDetails = exports.LoyaltyPoint = exports.MarketingCut = void 0;
13
+ const typegoose_1 = require("@typegoose/typegoose");
14
+ const coupon_model_1 = require("../coupon.model");
15
+ class MarketingCut {
16
+ companyCut;
17
+ secondaryCompanyCut;
18
+ shopCut;
19
+ secondaryShopCut;
20
+ }
21
+ exports.MarketingCut = MarketingCut;
22
+ __decorate([
23
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
24
+ __metadata("design:type", Number)
25
+ ], MarketingCut.prototype, "companyCut", void 0);
26
+ __decorate([
27
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
28
+ __metadata("design:type", Number)
29
+ ], MarketingCut.prototype, "secondaryCompanyCut", void 0);
30
+ __decorate([
31
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
32
+ __metadata("design:type", Number)
33
+ ], MarketingCut.prototype, "shopCut", void 0);
34
+ __decorate([
35
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
36
+ __metadata("design:type", Number)
37
+ ], MarketingCut.prototype, "secondaryShopCut", void 0);
38
+ class LoyaltyPoint extends MarketingCut {
39
+ redeemCashback;
40
+ secondaryRedeemCashback;
41
+ points;
42
+ }
43
+ exports.LoyaltyPoint = LoyaltyPoint;
44
+ __decorate([
45
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
46
+ __metadata("design:type", Number)
47
+ ], LoyaltyPoint.prototype, "redeemCashback", void 0);
48
+ __decorate([
49
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
50
+ __metadata("design:type", Number)
51
+ ], LoyaltyPoint.prototype, "secondaryRedeemCashback", void 0);
52
+ __decorate([
53
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
54
+ __metadata("design:type", Number)
55
+ ], LoyaltyPoint.prototype, "points", void 0);
56
+ class CouponDetails extends MarketingCut {
57
+ coupon;
58
+ snap;
59
+ }
60
+ exports.CouponDetails = CouponDetails;
61
+ __decorate([
62
+ (0, typegoose_1.prop)({ ref: () => coupon_model_1.Coupon, default: 0 }),
63
+ __metadata("design:type", Object)
64
+ ], CouponDetails.prototype, "coupon", void 0);
65
+ __decorate([
66
+ (0, typegoose_1.prop)({ type: Object, default: {} }),
67
+ __metadata("design:type", Object)
68
+ ], CouponDetails.prototype, "snap", void 0);
69
+ //# sourceMappingURL=marketing-cut.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketing-cut.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/marketing-cut.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,kDAAyC;AAEzC,MAAa,YAAY;IAEjB,UAAU,CAAU;IAGpB,mBAAmB,CAAU;IAG7B,OAAO,CAAU;IAGjB,gBAAgB,CAAU;CACjC;AAZD,oCAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDACR;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACC;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6CACX;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sDACF;AAGlC,MAAa,YAAa,SAAQ,YAAY;IAEtC,cAAc,CAAU;IAGxB,uBAAuB,CAAU;IAGjC,MAAM,CAAU;CACvB;AATD,oCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oDACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6DACK;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4CACZ;AAGxB,MAAa,aAAc,SAAQ,YAAY;IAEvC,MAAM,CAAe;IAGrB,IAAI,CAAU;CACrB;AAND,sCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6CACZ;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;2CACf","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Coupon } from '../coupon.model';\n\nexport class MarketingCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic companyCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCompanyCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic shopCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryShopCut?: number;\n}\n\nexport class LoyaltyPoint extends MarketingCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic redeemCashback?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryRedeemCashback?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic points?: number;\n}\n\nexport class CouponDetails extends MarketingCut {\n\t@prop({ ref: () => Coupon, default: 0 })\n\tpublic coupon?: Ref<Coupon>;\n\n\t@prop({ type: Object, default: {} })\n\tpublic snap?: object;\n}\n"]}
@@ -1 +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"]}
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';\nimport { OrderCancelBy } from '../../../../utilities/enum';\nimport { Admin } from '../admin.model';\n\nexport class OrderCancel {\n\t@prop({ type: String, enum: OrderCancelBy })\n\tcanceledBy: string;\n\n\t@prop({ ref: () => Admin })\n\tadmin?: Ref<Admin>;\n\n\t@prop({ type: String })\n\tcancelReason?: string;\n}\n"]}
@@ -5,14 +5,10 @@ export declare class OrderPricing {
5
5
  secondaryDeliveryFee?: number;
6
6
  riderTips?: number;
7
7
  secondaryRiderTips?: number;
8
- serviceCharge?: number;
9
- secondaryServiceCharge?: number;
10
8
  total?: number;
11
9
  secondaryTotal?: number;
12
10
  wallet?: number;
13
11
  secondaryWallet?: number;
14
- card?: number;
15
- secondaryCard?: number;
16
- cash?: number;
17
- secondaryCash?: number;
12
+ paidAmount?: number;
13
+ secondaryPaidAmount?: number;
18
14
  }
@@ -18,16 +18,12 @@ class OrderPricing {
18
18
  secondaryDeliveryFee;
19
19
  riderTips;
20
20
  secondaryRiderTips;
21
- serviceCharge;
22
- secondaryServiceCharge;
23
21
  total;
24
22
  secondaryTotal;
25
23
  wallet;
26
24
  secondaryWallet;
27
- card;
28
- secondaryCard;
29
- cash;
30
- secondaryCash;
25
+ paidAmount;
26
+ secondaryPaidAmount;
31
27
  }
32
28
  exports.OrderPricing = OrderPricing;
33
29
  __decorate([
@@ -54,14 +50,6 @@ __decorate([
54
50
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
55
51
  __metadata("design:type", Number)
56
52
  ], 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
53
  __decorate([
66
54
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
67
55
  __metadata("design:type", Number)
@@ -81,17 +69,9 @@ __decorate([
81
69
  __decorate([
82
70
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
83
71
  __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);
72
+ ], OrderPricing.prototype, "paidAmount", void 0);
93
73
  __decorate([
94
74
  (0, typegoose_1.prop)({ type: Number, default: 0 }),
95
75
  __metadata("design:type", Number)
96
- ], OrderPricing.prototype, "secondaryCash", void 0);
76
+ ], OrderPricing.prototype, "secondaryPaidAmount", void 0);
97
77
  //# sourceMappingURL=order-pricing.model.js.map
@@ -1 +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
+ {"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,KAAK,CAAU;IAGf,cAAc,CAAU;IAGxB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CAC7B;AApCD,oCAoCC;AAlCA;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;;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;;gDACf;AAGpB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACN","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class OrderPricing {\n\t@prop({ type: Number, default: 0 })\n\tsubtotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondarySubtotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tdeliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryDeliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\triderTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryRiderTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\ttotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryTotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\twallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpaidAmount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryPaidAmount?: number;\n}\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;IAMd,IAAI,CAA2C;IAG/C,GAAG,CAAU;IAGb,iBAAiB,CAAQ;IAGzB,eAAe,CAAQ;IAGvB,UAAU,CAAW;CAC5B;AAnBD,8BAmBC;AAbO;IALN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,CAAC,oBAAoB,EAAE,gBAAgB,EAAE,oBAAoB,CAAC;KACpE,CAAC;;uCACoD;AAG/C;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;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CAC7B","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class OTPFields {\r\n\t@prop({\r\n\t\trequired: true,\r\n\t\ttype: String,\r\n\t\tenum: ['email_verification', 'reset_password', 'phone_verification'],\r\n\t})\r\n\tpublic type!: 'email_verification' | 'reset_password';\r\n\r\n\t@prop({ required: false, type: String })\r\n\tpublic otp?: string;\r\n\r\n\t@prop({ required: false, type: Date })\r\n\tpublic otpExpirationDate?: Date;\r\n\r\n\t@prop({ required: false, type: Date })\r\n\tpublic lastSentOtpDate?: Date;\r\n\r\n\t@prop({ required: false, type: Boolean, default: false })\r\n\tpublic isVerified?: boolean;\r\n}\r\n"]}
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;IAMd,IAAI,CAA2C;IAG/C,GAAG,CAAU;IAGb,iBAAiB,CAAQ;IAGzB,eAAe,CAAQ;IAGvB,UAAU,CAAW;CAC5B;AAnBD,8BAmBC;AAbO;IALN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,CAAC,oBAAoB,EAAE,gBAAgB,EAAE,oBAAoB,CAAC;KACpE,CAAC;;uCACoD;AAG/C;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;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CAC7B","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class OTPFields {\n\t@prop({\n\t\trequired: true,\n\t\ttype: String,\n\t\tenum: ['email_verification', 'reset_password', 'phone_verification'],\n\t})\n\tpublic type!: 'email_verification' | 'reset_password';\n\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\t@prop({ required: false, type: Boolean, default: false })\n\tpublic isVerified?: boolean;\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,IAAI,EAAE,MAAM,EAAE,CAAC;;kEACoB;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDACI;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACO","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class ParentDocument {\r\n\t@prop({ type: String })\r\n\tpublic commercialCircularDocument?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic nationalId?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic contractPaper?: string;\r\n}\r\n"]}
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,IAAI,EAAE,MAAM,EAAE,CAAC;;kEACoB;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDACI;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACO","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class ParentDocument {\n\t@prop({ type: String })\n\tpublic commercialCircularDocument?: string;\n\n\t@prop({ type: String })\n\tpublic nationalId?: string;\n\n\t@prop({ type: String })\n\tpublic contractPaper?: string;\n}\n"]}
@@ -1 +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"]}
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';\nimport { PaymentStatus } from '../../../../utilities/enum';\nimport { PaymentInformation } from './payment-infromation.model';\n\nexport class PaymentAttempt {\n\t@prop({ required: true, default: Date.now })\n\ttimestamp: Date;\n\n\t@prop({\n\t\ttype: String,\n\t\tenum: Object.values(PaymentStatus),\n\t\trequired: true,\n\t})\n\tstatus: string;\n\n\t@prop({ type: Number, required: true })\n\tamount: number;\n\n\t@prop({\n\t\ttype: String,\n\t})\n\tcurrency: string; // need to update with enum; discussion needed with shajeeb bhai\n\n\t@prop({ type: () => PaymentInformation })\n\tpaymentInformation?: PaymentInformation;\n\n\t@prop()\n\terrorCode?: string;\n\n\t@prop()\n\terrorMessage?: string;\n}\n"]}
@@ -20,20 +20,15 @@ class PaymentInformation {
20
20
  }
21
21
  exports.PaymentInformation = PaymentInformation;
22
22
  __decorate([
23
- (0, typegoose_1.prop)({
24
- required: true,
25
- enum: enum_1.CardType,
26
- type: String,
27
- default: enum_1.CardType.AREEBA,
28
- }),
23
+ (0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.CardType, default: enum_1.CardType.STRIPE }),
29
24
  __metadata("design:type", String)
30
25
  ], PaymentInformation.prototype, "cardType", void 0);
31
26
  __decorate([
32
- (0, typegoose_1.prop)(),
27
+ (0, typegoose_1.prop)({ type: String }),
33
28
  __metadata("design:type", String)
34
29
  ], PaymentInformation.prototype, "referenceId", void 0);
35
30
  __decorate([
36
- (0, typegoose_1.prop)(),
31
+ (0, typegoose_1.prop)({ type: String }),
37
32
  __metadata("design:type", String)
38
33
  ], PaymentInformation.prototype, "transactionId", void 0);
39
34
  __decorate([
@@ -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;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
+ {"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;IAEvB,QAAQ,CAAY;IAGpB,WAAW,CAAU;IAGrB,aAAa,CAAU;IAGvB,QAAQ,CAAuB;CACtC;AAZD,gDAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAQ,EAAE,OAAO,EAAE,eAAQ,CAAC,MAAM,EAAE,CAAC;;oDACtD;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACK;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yDACO;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC;;oDACS","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { CardType } from '../../../../utilities/enum';\n\nexport class PaymentInformation {\n\t@prop({ required: true, type: String, enum: CardType, default: CardType.STRIPE })\n\tpublic cardType!: CardType;\n\n\t@prop({ type: String })\n\tpublic referenceId?: string;\n\n\t@prop({ type: String })\n\tpublic transactionId?: string;\n\n\t@prop({ type: () => Object })\n\tpublic metadata?: Record<string, any>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"price-breakdown.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/price-breakdown.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,cAAc;IAEnB,IAAI,CAAU;IAGd,SAAS,CAAU;IAGnB,KAAK,CAAU;CACtB;AATD,wCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACF;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;iDACL;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;;6CACxC","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class PriceBreakdown {\r\n\t@prop({ type: String })\r\n\tpublic unit?: string;\r\n\r\n\t@prop({ type: Number, min: 0 })\r\n\tpublic unitValue?: number;\r\n\r\n\t@prop({ required: true, type: Number, min: 0, max: 99999999 })\r\n\tpublic price!: number;\r\n}\r\n"]}
1
+ {"version":3,"file":"price-breakdown.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/price-breakdown.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,cAAc;IAEnB,IAAI,CAAU;IAGd,SAAS,CAAU;IAGnB,KAAK,CAAU;CACtB;AATD,wCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACF;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;iDACL;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;;6CACxC","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class PriceBreakdown {\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, max: 99999999 })\n\tpublic price!: number;\n}\n"]}
@@ -0,0 +1,14 @@
1
+ export declare class CourierOrderProfit {
2
+ profitFromDelivery?: number;
3
+ secondaryProfitFromDelivery?: number;
4
+ totalProfit?: number;
5
+ secondaryTotalProfit?: number;
6
+ }
7
+ export declare class RegularOrderProfit extends CourierOrderProfit {
8
+ profitFromItem?: number;
9
+ secondaryProfitFromItem?: number;
10
+ }
11
+ export declare class RiderProfit extends CourierOrderProfit {
12
+ profitFromTips?: number;
13
+ secondaryProfitFromTips?: number;
14
+ }
@@ -0,0 +1,63 @@
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.RiderProfit = exports.RegularOrderProfit = exports.CourierOrderProfit = void 0;
13
+ const typegoose_1 = require("@typegoose/typegoose");
14
+ class CourierOrderProfit {
15
+ profitFromDelivery;
16
+ secondaryProfitFromDelivery;
17
+ totalProfit;
18
+ secondaryTotalProfit;
19
+ }
20
+ exports.CourierOrderProfit = CourierOrderProfit;
21
+ __decorate([
22
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
23
+ __metadata("design:type", Number)
24
+ ], CourierOrderProfit.prototype, "profitFromDelivery", void 0);
25
+ __decorate([
26
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
27
+ __metadata("design:type", Number)
28
+ ], CourierOrderProfit.prototype, "secondaryProfitFromDelivery", void 0);
29
+ __decorate([
30
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
31
+ __metadata("design:type", Number)
32
+ ], CourierOrderProfit.prototype, "totalProfit", void 0);
33
+ __decorate([
34
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
35
+ __metadata("design:type", Number)
36
+ ], CourierOrderProfit.prototype, "secondaryTotalProfit", void 0);
37
+ class RegularOrderProfit extends CourierOrderProfit {
38
+ profitFromItem;
39
+ secondaryProfitFromItem;
40
+ }
41
+ exports.RegularOrderProfit = RegularOrderProfit;
42
+ __decorate([
43
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
44
+ __metadata("design:type", Number)
45
+ ], RegularOrderProfit.prototype, "profitFromItem", void 0);
46
+ __decorate([
47
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
48
+ __metadata("design:type", Number)
49
+ ], RegularOrderProfit.prototype, "secondaryProfitFromItem", void 0);
50
+ class RiderProfit extends CourierOrderProfit {
51
+ profitFromTips;
52
+ secondaryProfitFromTips;
53
+ }
54
+ exports.RiderProfit = RiderProfit;
55
+ __decorate([
56
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
57
+ __metadata("design:type", Number)
58
+ ], RiderProfit.prototype, "profitFromTips", void 0);
59
+ __decorate([
60
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
61
+ __metadata("design:type", Number)
62
+ ], RiderProfit.prototype, "secondaryProfitFromTips", void 0);
63
+ //# sourceMappingURL=profit.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profit.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/profit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,kBAAkB;IAEvB,kBAAkB,CAAU;IAG5B,2BAA2B,CAAU;IAGrC,WAAW,CAAU;IAGrB,oBAAoB,CAAU;CACrC;AAZD,gDAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8DACA;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uEACS;AAGrC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACP;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gEACE;AAGtC,MAAa,kBAAmB,SAAQ,kBAAkB;IAElD,cAAc,CAAU;IAGxB,uBAAuB,CAAU;CACxC;AAND,gDAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mEACK;AAGzC,MAAa,WAAY,SAAQ,kBAAkB;IAE3C,cAAc,CAAU;IAGxB,uBAAuB,CAAU;CACxC;AAND,kCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACK","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class CourierOrderProfit {\n\t@prop({ type: Number, default: 0 })\n\tpublic profitFromDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryProfitFromDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic totalProfit?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryTotalProfit?: number;\n}\n\nexport class RegularOrderProfit extends CourierOrderProfit {\n\t@prop({ type: Number, default: 0 })\n\tpublic profitFromItem?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryProfitFromItem?: number;\n}\n\nexport class RiderProfit extends CourierOrderProfit {\n\t@prop({ type: Number, default: 0 })\n\tpublic profitFromTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryProfitFromTips?: number;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"rider-equipment.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/rider-equipment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,cAAc;IAEnB,IAAI,CAAU;IAGd,QAAQ,CAAU;CACzB;AAND,wCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACF;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACE","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class RiderEquipment {\r\n\t@prop({ type: String })\r\n\tpublic name?: string;\r\n\r\n\t@prop({ type: Number })\r\n\tpublic quantity?: number;\r\n}\r\n"]}
1
+ {"version":3,"file":"rider-equipment.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/rider-equipment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,cAAc;IAEnB,IAAI,CAAU;IAGd,QAAQ,CAAU;CACzB;AAND,wCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACF;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACE","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class RiderEquipment {\n\t@prop({ type: String })\n\tpublic name?: string;\n\n\t@prop({ type: Number })\n\tpublic quantity?: 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,IAAI,EAAE,MAAM,EAAE,CAAC;;gEACoB;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACS;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACK","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class ShopDocument {\r\n\t@prop({ type: String })\r\n\tpublic commercialCircularDocument?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic taxRegistration?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic identityDoc?: string;\r\n}\r\n"]}
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,IAAI,EAAE,MAAM,EAAE,CAAC;;gEACoB;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACS;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACK","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class ShopDocument {\n\t@prop({ type: String })\n\tpublic commercialCircularDocument?: string;\n\n\t@prop({ type: String })\n\tpublic taxRegistration?: string;\n\n\t@prop({ type: String })\n\tpublic identityDoc?: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"status-timeline.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/status-timeline.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,gDAAuC;AACvC,qDAAoF;AAEpF,MAAM,cAAc;IAEnB,SAAS,CAAO;IAGhB,SAAS,CAAc;IAGvB,KAAK,CAAU;CACf;AAPA;IADC,IAAA,gBAAI,GAAE;8BACI,IAAI;iDAAC;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;iDACJ;AAGvB;IADC,IAAA,gBAAI,GAAE;;6CACQ;AAGhB,MAAa,0BAA2B,SAAQ,cAAc;IAO7D,MAAM,CAAS;CACf;AARD,gEAQC;AADA;IANC,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;QACxB,OAAO,EAAE,yBAAkB,CAAC,MAAM;KAClC,CAAC;;0DACa;AAGhB,MAAa,0BAA2B,SAAQ,cAAc;IAO7D,MAAM,CAAS;CACf;AARD,gEAQC;AADA;IANC,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;QACxB,OAAO,EAAE,yBAAkB,CAAC,MAAM;KAClC,CAAC;;0DACa","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\r\nimport { Admin } from '../admin.model';\r\nimport { CourierOrderStatus, RegularOrderStatus } from '../../../../utilities/enum';\r\n\r\nclass StatusTimeline {\r\n\t@prop()\r\n\ttimestamp: Date; // scope for discussion to change the name to date\r\n\r\n\t@prop({ ref: () => Admin })\r\n\tupdatedBy?: Ref<Admin>;\r\n\r\n\t@prop()\r\n\tnotes?: string;\r\n}\r\n\r\nexport class RegularOrderStatusTimeline extends StatusTimeline {\r\n\t@prop({\r\n\t\trequired: true,\r\n\t\ttype: String,\r\n\t\tenum: RegularOrderStatus,\r\n\t\tdefault: RegularOrderStatus.PLACED,\r\n\t})\r\n\tstatus: string;\r\n}\r\n\r\nexport class CourierOrderStatusTimeline extends StatusTimeline {\r\n\t@prop({\r\n\t\trequired: true,\r\n\t\ttype: String,\r\n\t\tenum: CourierOrderStatus,\r\n\t\tdefault: CourierOrderStatus.PLACED,\r\n\t})\r\n\tstatus: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"status-timeline.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/status-timeline.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,gDAAuC;AACvC,qDAAoF;AAEpF,MAAM,cAAc;IAEnB,SAAS,CAAO;IAGhB,SAAS,CAAc;IAGvB,KAAK,CAAU;CACf;AAPA;IADC,IAAA,gBAAI,GAAE;8BACI,IAAI;iDAAC;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;iDACJ;AAGvB;IADC,IAAA,gBAAI,GAAE;;6CACQ;AAGhB,MAAa,0BAA2B,SAAQ,cAAc;IAO7D,MAAM,CAAS;CACf;AARD,gEAQC;AADA;IANC,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;QACxB,OAAO,EAAE,yBAAkB,CAAC,MAAM;KAClC,CAAC;;0DACa;AAGhB,MAAa,0BAA2B,SAAQ,cAAc;IAO7D,MAAM,CAAS;CACf;AARD,gEAQC;AADA;IANC,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;QACxB,OAAO,EAAE,yBAAkB,CAAC,MAAM;KAClC,CAAC;;0DACa","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Admin } from '../admin.model';\nimport { CourierOrderStatus, RegularOrderStatus } from '../../../../utilities/enum';\n\nclass StatusTimeline {\n\t@prop()\n\ttimestamp: Date; // scope for discussion to change the name to date\n\n\t@prop({ ref: () => Admin })\n\tupdatedBy?: Ref<Admin>;\n\n\t@prop()\n\tnotes?: string;\n}\n\nexport class RegularOrderStatusTimeline extends StatusTimeline {\n\t@prop({\n\t\trequired: true,\n\t\ttype: String,\n\t\tenum: RegularOrderStatus,\n\t\tdefault: RegularOrderStatus.PLACED,\n\t})\n\tstatus: string;\n}\n\nexport class CourierOrderStatusTimeline extends StatusTimeline {\n\t@prop({\n\t\trequired: true,\n\t\ttype: String,\n\t\tenum: CourierOrderStatus,\n\t\tdefault: CourierOrderStatus.PLACED,\n\t})\n\tstatus: string;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ export declare class Vat {
2
+ companyVat?: number;
3
+ secondaryCompanyVat?: number;
4
+ }
@@ -0,0 +1,27 @@
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.Vat = void 0;
13
+ const typegoose_1 = require("@typegoose/typegoose");
14
+ class Vat {
15
+ companyVat;
16
+ secondaryCompanyVat;
17
+ }
18
+ exports.Vat = Vat;
19
+ __decorate([
20
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
21
+ __metadata("design:type", Number)
22
+ ], Vat.prototype, "companyVat", void 0);
23
+ __decorate([
24
+ (0, typegoose_1.prop)({ type: Number, default: 0 }),
25
+ __metadata("design:type", Number)
26
+ ], Vat.prototype, "secondaryCompanyVat", void 0);
27
+ //# sourceMappingURL=vat.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vat.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/vat.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,GAAG;IAER,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CACpC;AAND,kBAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uCACR;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDACC","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class Vat {\n\t@prop({ type: Number, default: 0 })\n\tpublic companyVat?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCompanyVat?: number;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"zone-geometry.mode.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/zone-geometry.mode.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAA8D;AAE9D,MAAa,YAAY;IAEjB,IAAI,CAAoB;IAGxB,WAAW,CAAgB;CAClC;AAND,oCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAgB,EAAE,OAAO,EAAE,uBAAgB,CAAC,OAAO,EAAE,CAAC;;0CACnD;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;;iDACjB","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { ZoneGeometryType } from '../../../../utilities/enum';\r\n\r\nexport class ZoneGeometry {\r\n\t@prop({ type: String, enum: ZoneGeometryType, default: ZoneGeometryType.POLYGON })\r\n\tpublic type?: ZoneGeometryType;\r\n\r\n\t@prop({ required: true, type: () => [[[Number]]] }) // [longitude, latitude]\r\n\tpublic coordinates!: number[][][];\r\n}\r\n"]}
1
+ {"version":3,"file":"zone-geometry.mode.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/zone-geometry.mode.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAA8D;AAE9D,MAAa,YAAY;IAEjB,IAAI,CAAoB;IAGxB,WAAW,CAAgB;CAClC;AAND,oCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAgB,EAAE,OAAO,EAAE,uBAAgB,CAAC,OAAO,EAAE,CAAC;;0CACnD;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;;iDACjB","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { ZoneGeometryType } from '../../../../utilities/enum';\n\nexport class ZoneGeometry {\n\t@prop({ type: String, enum: ZoneGeometryType, default: ZoneGeometryType.POLYGON })\n\tpublic type?: ZoneGeometryType;\n\n\t@prop({ required: true, type: () => [[[Number]]] }) // [longitude, latitude]\n\tpublic coordinates!: number[][][];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"faq.model.js","sourceRoot":"/","sources":["libraries/mongo/models/faq.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,4EAAqE;AACrE,kDAAiE;AAG1D,IAAM,GAAG,GAAT,MAAM,GAAI,SAAQ,2BAAU;IAE3B,QAAQ,CAAU;IAGlB,MAAM,CAAU;IAGhB,WAAW,CAAkB;IAG7B,MAAM,CAAU;IAGhB,YAAY,CAAU;CAC7B,CAAA;AAfY,kBAAG;AAER;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qCACd;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mCAChB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,qBAAc,EAAE,CAAC;;wCACX;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;mCACxB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yCACN;cAdjB,GAAG;IADf,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC;GAC3C,GAAG,CAef","sourcesContent":["import { modelOptions, prop } from '@typegoose/typegoose';\r\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\r\nimport { FaqAccountType, Status } from '../../../utilities/enum';\r\n\r\n@modelOptions({ schemaOptions: { collection: 'faqs' } })\r\nexport class Faq extends TimeStamps {\r\n\t@prop({ required: true, type: String })\r\n\tpublic question!: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic answer!: string;\r\n\r\n\t@prop({ required: true, enum: FaqAccountType })\r\n\tpublic accountType!: FaqAccountType;\r\n\r\n\t@prop({ 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
+ {"version":3,"file":"faq.model.js","sourceRoot":"/","sources":["libraries/mongo/models/faq.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,4EAAqE;AACrE,kDAAiE;AAG1D,IAAM,GAAG,GAAT,MAAM,GAAI,SAAQ,2BAAU;IAE3B,QAAQ,CAAU;IAGlB,MAAM,CAAU;IAGhB,WAAW,CAAkB;IAG7B,MAAM,CAAU;IAGhB,YAAY,CAAU;CAC7B,CAAA;AAfY,kBAAG;AAER;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qCACd;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mCAChB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,qBAAc,EAAE,CAAC;;wCACX;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;mCACxB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yCACN;cAdjB,GAAG;IADf,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC;GAC3C,GAAG,CAef","sourcesContent":["import { modelOptions, prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { FaqAccountType, Status } from '../../../utilities/enum';\n\n@modelOptions({ schemaOptions: { collection: 'faqs' } })\nexport class Faq extends TimeStamps {\n\t@prop({ required: true, type: String })\n\tpublic question!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic answer!: string;\n\n\t@prop({ required: true, enum: FaqAccountType })\n\tpublic accountType!: FaqAccountType;\n\n\t@prop({ enum: Status, default: Status.ACTIVE })\n\tpublic status?: Status;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic sortingOrder?: number;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"favourite.model.js","sourceRoot":"/","sources":["libraries/mongo/models/favourite.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,kDAAwD;AACxD,uDAA6C;AAC7C,mDAA0C;AAC1C,6CAAoC;AAG7B,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,2BAAU;IAEjC,IAAI,CAAiB;IAGrB,aAAa,CAAiB;IAG9B,IAAI,CAAa;IAGjB,OAAO,CAAgB;CAC9B,CAAA;AAZY,8BAAS;AAEd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC;;uCAClB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,oBAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACT;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;uCACF;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,uBAAO,EAAE,CAAC;;0CACC;oBAXlB,SAAS;IADrB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,CAAC;GACjD,SAAS,CAYrB","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\r\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\r\nimport { FavouriteType } from '../../../utilities/enum';\r\nimport { CoreUser } from './core-user.model';\r\nimport { Product } from './product.model';\r\nimport { Shop } from './shop.model';\r\n\r\n@modelOptions({ schemaOptions: { collection: 'favourites' } })\r\nexport class Favourite extends TimeStamps {\r\n\t@prop({ required: true, ref: () => CoreUser })\r\n\tpublic user!: Ref<CoreUser>;\r\n\r\n\t@prop({ enum: FavouriteType, required: true })\r\n\tpublic favouriteType!: FavouriteType;\r\n\r\n\t@prop({ ref: () => Shop })\r\n\tpublic shop?: Ref<Shop>;\r\n\r\n\t@prop({ ref: () => Product })\r\n\tpublic product?: Ref<Product>;\r\n}\r\n"]}
1
+ {"version":3,"file":"favourite.model.js","sourceRoot":"/","sources":["libraries/mongo/models/favourite.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,kDAAwD;AACxD,uDAA6C;AAC7C,mDAA0C;AAC1C,6CAAoC;AAG7B,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,2BAAU;IAEjC,IAAI,CAAiB;IAGrB,aAAa,CAAiB;IAG9B,IAAI,CAAa;IAGjB,OAAO,CAAgB;CAC9B,CAAA;AAZY,8BAAS;AAEd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC;;uCAClB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,oBAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACT;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;uCACF;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,uBAAO,EAAE,CAAC;;0CACC;oBAXlB,SAAS;IADrB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,CAAC;GACjD,SAAS,CAYrB","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { FavouriteType } from '../../../utilities/enum';\nimport { CoreUser } from './core-user.model';\nimport { Product } from './product.model';\nimport { Shop } from './shop.model';\n\n@modelOptions({ schemaOptions: { collection: 'favourites' } })\nexport class Favourite extends TimeStamps {\n\t@prop({ required: true, ref: () => CoreUser })\n\tpublic user!: Ref<CoreUser>;\n\n\t@prop({ enum: FavouriteType, required: true })\n\tpublic favouriteType!: FavouriteType;\n\n\t@prop({ ref: () => Shop })\n\tpublic shop?: Ref<Shop>;\n\n\t@prop({ ref: () => Product })\n\tpublic product?: Ref<Product>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"featured-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/featured-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,4EAAqE;AACrE,kDAAmD;AACnD,sEAA6D;AAGtD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,2BAAU;IAEvC,QAAQ,CAAY;IAGpB,aAAa,CAAkB;CACtC,CAAA;AANY,0CAAe;AAEpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAQ,EAAE,CAAC;;iDAC1C;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,iCAAY,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;sDACZ;0BAL1B,eAAe;IAD3B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,kBAAkB,EAAE,EAAE,CAAC;GACvD,eAAe,CAM3B","sourcesContent":["import { modelOptions, prop } from '@typegoose/typegoose';\r\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\r\nimport { ItemType } from '../../../utilities/enum';\r\nimport { FeaturedItem } from './embedded/featured-item.mode';\r\n\r\n@modelOptions({ schemaOptions: { collection: 'featuredSettings' } })\r\nexport class FeaturedSetting extends TimeStamps {\r\n\t@prop({ required: true, unique: true, type: String, enum: ItemType })\r\n\tpublic itemType!: ItemType;\r\n\r\n\t@prop({ type: () => [FeaturedItem], default: [] })\r\n\tpublic featuredItems?: FeaturedItem[];\r\n}\r\n"]}
1
+ {"version":3,"file":"featured-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/featured-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,4EAAqE;AACrE,kDAAmD;AACnD,sEAA6D;AAGtD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,2BAAU;IAEvC,QAAQ,CAAY;IAGpB,aAAa,CAAkB;CACtC,CAAA;AANY,0CAAe;AAEpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAQ,EAAE,CAAC;;iDAC1C;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,iCAAY,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;sDACZ;0BAL1B,eAAe;IAD3B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,kBAAkB,EAAE,EAAE,CAAC;GACvD,eAAe,CAM3B","sourcesContent":["import { modelOptions, prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { ItemType } from '../../../utilities/enum';\nimport { FeaturedItem } from './embedded/featured-item.mode';\n\n@modelOptions({ schemaOptions: { collection: 'featuredSettings' } })\nexport class FeaturedSetting extends TimeStamps {\n\t@prop({ required: true, unique: true, type: String, enum: ItemType })\n\tpublic itemType!: ItemType;\n\n\t@prop({ type: () => [FeaturedItem], default: [] })\n\tpublic featuredItems?: FeaturedItem[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"filter-container.model.js","sourceRoot":"/","sources":["libraries/mongo/models/filter-container.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,4EAAqE;AACrE,kDAA2D;AAGpD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,2BAAU;IAEvC,IAAI,CAAU;IAGd,KAAK,CAAY;IAGjB,QAAQ,CAAY;IAGpB,MAAM,CAAU;IAGhB,YAAY,CAAU;IAGtB,SAAS,CAAe;CAC/B,CAAA;AAlBY,0CAAe;AAEpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;8CACjB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAQ,EAAE,CAAC;;iDACZ;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;+CACtC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACN;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kDACU;0BAjBnB,eAAe;IAD3B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,kBAAkB,EAAE,EAAE,CAAC;GACvD,eAAe,CAkB3B","sourcesContent":["import { modelOptions, prop } from '@typegoose/typegoose';\r\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\r\nimport { ItemType, Status } from '../../../utilities/enum';\r\n\r\n@modelOptions({ schemaOptions: { collection: 'filterContainers' } })\r\nexport class FilterContainer extends TimeStamps {\r\n\t@prop({ required: true, type: String })\r\n\tpublic name!: string;\r\n\r\n\t@prop({ required: true, type: [String] })\r\n\tpublic deals!: string[]; // e.g., \"5\", \"10\", \"20\", \"30\", \"double_menu\"\r\n\r\n\t@prop({ type: String, enum: ItemType })\r\n\tpublic itemType?: ItemType;\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\t@prop({ type: Date })\r\n\tpublic deletedAt?: Date | null;\r\n}\r\n"]}
1
+ {"version":3,"file":"filter-container.model.js","sourceRoot":"/","sources":["libraries/mongo/models/filter-container.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,4EAAqE;AACrE,kDAA2D;AAGpD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,2BAAU;IAEvC,IAAI,CAAU;IAGd,KAAK,CAAY;IAGjB,QAAQ,CAAY;IAGpB,MAAM,CAAU;IAGhB,YAAY,CAAU;IAGtB,SAAS,CAAe;CAC/B,CAAA;AAlBY,0CAAe;AAEpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;8CACjB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAQ,EAAE,CAAC;;iDACZ;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;+CACtC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACN;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kDACU;0BAjBnB,eAAe;IAD3B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,kBAAkB,EAAE,EAAE,CAAC;GACvD,eAAe,CAkB3B","sourcesContent":["import { modelOptions, prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { ItemType, Status } from '../../../utilities/enum';\n\n@modelOptions({ schemaOptions: { collection: 'filterContainers' } })\nexport class FilterContainer extends TimeStamps {\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: [String] })\n\tpublic deals!: string[]; // e.g., \"5\", \"10\", \"20\", \"30\", \"double_menu\"\n\n\t@prop({ type: String, enum: ItemType })\n\tpublic itemType?: ItemType;\n\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status?: Status;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic sortingOrder?: number;\n\n\t@prop({ type: Date })\n\tpublic deletedAt?: Date | null;\n}\n"]}
@@ -0,0 +1,18 @@
1
+ import { Ref } from '@typegoose/typegoose';
2
+ import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
3
+ import { Order } from './order.model';
4
+ import { Shop } from './shop.model';
5
+ import { Rider } from './rider.model';
6
+ import { SettlementType } from '../../../utilities/enum';
7
+ import { User } from './user.model';
8
+ import { Admin } from './admin.model';
9
+ export declare class FinanceSettlement extends TimeStamps {
10
+ order?: Ref<Order>;
11
+ shop?: Ref<Shop>;
12
+ rider?: Ref<Rider>;
13
+ user?: Ref<User>;
14
+ settlementType: SettlementType;
15
+ amount: number;
16
+ secondaryAmount: number;
17
+ settleBy: Ref<Admin>;
18
+ }