@lyxa.ai/core 1.0.103 → 1.0.104-debug.2

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 (228) hide show
  1. package/dist/index.js.map +1 -1
  2. package/dist/libraries/auth/index.js.map +1 -1
  3. package/dist/libraries/auth/refreshtoken.js.map +1 -1
  4. package/dist/libraries/auth/repository.js.map +1 -1
  5. package/dist/libraries/cache/settings/index.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/fcmService.js.map +1 -1
  16. package/dist/libraries/firebase/index.js.map +1 -1
  17. package/dist/libraries/index.js.map +1 -1
  18. package/dist/libraries/logger/index.js.map +1 -1
  19. package/dist/libraries/map/index.js.map +1 -1
  20. package/dist/libraries/map/interfaces/IMapService.js.map +1 -1
  21. package/dist/libraries/map/mapService.js.map +1 -1
  22. package/dist/libraries/map/providers/google-maps.js.map +1 -1
  23. package/dist/libraries/map/providers/index.js.map +1 -1
  24. package/dist/libraries/mongo/index.js.map +1 -1
  25. package/dist/libraries/mongo/models/activity-log.model.js.map +1 -1
  26. package/dist/libraries/mongo/models/admin-access-control.model.js.map +1 -1
  27. package/dist/libraries/mongo/models/admin.model.js.map +1 -1
  28. package/dist/libraries/mongo/models/agent-performance.model.js.map +1 -1
  29. package/dist/libraries/mongo/models/app-screen-setting.model.js +27 -2
  30. package/dist/libraries/mongo/models/app-screen-setting.model.js.map +1 -1
  31. package/dist/libraries/mongo/models/attribute.model.js.map +1 -1
  32. package/dist/libraries/mongo/models/banner.model.js.map +1 -1
  33. package/dist/libraries/mongo/models/base/base-coupon.model.js.map +1 -1
  34. package/dist/libraries/mongo/models/base/base-review.model.js.map +1 -1
  35. package/dist/libraries/mongo/models/bob-finance.model.js.map +1 -1
  36. package/dist/libraries/mongo/models/brand.model.js.map +1 -1
  37. package/dist/libraries/mongo/models/cancellation-reason.model.js.map +1 -1
  38. package/dist/libraries/mongo/models/card.model.js.map +1 -1
  39. package/dist/libraries/mongo/models/cart-participant.model.js.map +1 -1
  40. package/dist/libraries/mongo/models/cart.model.js.map +1 -1
  41. package/dist/libraries/mongo/models/category.model.js.map +1 -1
  42. package/dist/libraries/mongo/models/chat-room.model.js.map +1 -1
  43. package/dist/libraries/mongo/models/core-auth-identity.model.js.map +1 -1
  44. package/dist/libraries/mongo/models/core-user.model.js.map +1 -1
  45. package/dist/libraries/mongo/models/counter.model.js.map +1 -1
  46. package/dist/libraries/mongo/models/coupon.model.js.map +1 -1
  47. package/dist/libraries/mongo/models/deal-setting.model.js.map +1 -1
  48. package/dist/libraries/mongo/models/default-chat.model.js.map +1 -1
  49. package/dist/libraries/mongo/models/dish.model.js.map +1 -1
  50. package/dist/libraries/mongo/models/embedded/attribute-item.model.js.map +1 -1
  51. package/dist/libraries/mongo/models/embedded/attribute-map.model.js.map +1 -1
  52. package/dist/libraries/mongo/models/embedded/business-development-setting.model.js.map +1 -1
  53. package/dist/libraries/mongo/models/embedded/cash-settlement.model.js.map +1 -1
  54. package/dist/libraries/mongo/models/embedded/charge-settings.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/chat-participant.model.js.map +1 -1
  57. package/dist/libraries/mongo/models/embedded/courier-order-finance.model.js.map +1 -1
  58. package/dist/libraries/mongo/models/embedded/courier-setting.model.js.map +1 -1
  59. package/dist/libraries/mongo/models/embedded/currency-setting.model.js.map +1 -1
  60. package/dist/libraries/mongo/models/embedded/currency.model.js.map +1 -1
  61. package/dist/libraries/mongo/models/embedded/customer-support-batches.model.js.map +1 -1
  62. package/dist/libraries/mongo/models/embedded/customer-support-numbers.model.js.map +1 -1
  63. package/dist/libraries/mongo/models/embedded/delivery-charge-setting.model.js.map +1 -1
  64. package/dist/libraries/mongo/models/embedded/delivery-info.model.js.map +1 -1
  65. package/dist/libraries/mongo/models/embedded/featured-item.mode.js.map +1 -1
  66. package/dist/libraries/mongo/models/embedded/line-item-attribute.model.js.map +1 -1
  67. package/dist/libraries/mongo/models/embedded/marketing-cut.model.js.map +1 -1
  68. package/dist/libraries/mongo/models/embedded/order-cancel.model.d.ts +6 -3
  69. package/dist/libraries/mongo/models/embedded/order-cancel.model.js +17 -9
  70. package/dist/libraries/mongo/models/embedded/order-cancel.model.js.map +1 -1
  71. package/dist/libraries/mongo/models/embedded/order-finance.model.js.map +1 -1
  72. package/dist/libraries/mongo/models/embedded/order-pricing.model.js.map +1 -1
  73. package/dist/libraries/mongo/models/embedded/order-refund.model.js.map +1 -1
  74. package/dist/libraries/mongo/models/embedded/otp-fields.model.js.map +1 -1
  75. package/dist/libraries/mongo/models/embedded/package.model.js.map +1 -1
  76. package/dist/libraries/mongo/models/embedded/parent-document.model.js.map +1 -1
  77. package/dist/libraries/mongo/models/embedded/payment-attempt.model.js.map +1 -1
  78. package/dist/libraries/mongo/models/embedded/payment-infromation.model.js.map +1 -1
  79. package/dist/libraries/mongo/models/embedded/payout-setting.model.js.map +1 -1
  80. package/dist/libraries/mongo/models/embedded/plus-settings.model.js.map +1 -1
  81. package/dist/libraries/mongo/models/embedded/price-breakdown.model.js.map +1 -1
  82. package/dist/libraries/mongo/models/embedded/product-nutrition.model.js.map +1 -1
  83. package/dist/libraries/mongo/models/embedded/profit.model.js.map +1 -1
  84. package/dist/libraries/mongo/models/embedded/referral-discount-config.model.js.map +1 -1
  85. package/dist/libraries/mongo/models/embedded/regular-order-finance.model.js.map +1 -1
  86. package/dist/libraries/mongo/models/embedded/rider-assignment-model.js.map +1 -1
  87. package/dist/libraries/mongo/models/embedded/rider-batches.model.js.map +1 -1
  88. package/dist/libraries/mongo/models/embedded/rider-equipment.model.js.map +1 -1
  89. package/dist/libraries/mongo/models/embedded/rider-setting.model.js.map +1 -1
  90. package/dist/libraries/mongo/models/embedded/service-fee-setting.model.js.map +1 -1
  91. package/dist/libraries/mongo/models/embedded/shop-document.model.js.map +1 -1
  92. package/dist/libraries/mongo/models/embedded/status-timeline.model.js.map +1 -1
  93. package/dist/libraries/mongo/models/embedded/subscription-summary.model.js.map +1 -1
  94. package/dist/libraries/mongo/models/embedded/support-reason-info.model.js.map +1 -1
  95. package/dist/libraries/mongo/models/embedded/trip-leg.mode.js.map +1 -1
  96. package/dist/libraries/mongo/models/embedded/vat.model.js.map +1 -1
  97. package/dist/libraries/mongo/models/embedded/zone-geometry.mode.js.map +1 -1
  98. package/dist/libraries/mongo/models/faq.model.js.map +1 -1
  99. package/dist/libraries/mongo/models/favourite.model.js.map +1 -1
  100. package/dist/libraries/mongo/models/featured-setting.model.js.map +1 -1
  101. package/dist/libraries/mongo/models/filter-container.model.js.map +1 -1
  102. package/dist/libraries/mongo/models/finance-settlement.model.js.map +1 -1
  103. package/dist/libraries/mongo/models/gallery.model.js.map +1 -1
  104. package/dist/libraries/mongo/models/index.js.map +1 -1
  105. package/dist/libraries/mongo/models/line-item.model.js.map +1 -1
  106. package/dist/libraries/mongo/models/list-container.model.js.map +1 -1
  107. package/dist/libraries/mongo/models/loyalty-point-category.model.js.map +1 -1
  108. package/dist/libraries/mongo/models/loyalty-point-setting.model.js.map +1 -1
  109. package/dist/libraries/mongo/models/loyalty-point.model.js.map +1 -1
  110. package/dist/libraries/mongo/models/marketing.model.js.map +1 -1
  111. package/dist/libraries/mongo/models/meal-plan.model.js.map +1 -1
  112. package/dist/libraries/mongo/models/message.model.js.map +1 -1
  113. package/dist/libraries/mongo/models/notification.model.js.map +1 -1
  114. package/dist/libraries/mongo/models/nutrition.model.js.map +1 -1
  115. package/dist/libraries/mongo/models/order-delivery.model.js.map +1 -1
  116. package/dist/libraries/mongo/models/order-finance.model.d.ts +22 -0
  117. package/dist/libraries/mongo/models/order-finance.model.js +83 -0
  118. package/dist/libraries/mongo/models/order-finance.model.js.map +1 -0
  119. package/dist/libraries/mongo/models/order-payment.model.d.ts +0 -4
  120. package/dist/libraries/mongo/models/order-payment.model.js +3 -15
  121. package/dist/libraries/mongo/models/order-payment.model.js.map +1 -1
  122. package/dist/libraries/mongo/models/order.model.js +1 -1
  123. package/dist/libraries/mongo/models/order.model.js.map +1 -1
  124. package/dist/libraries/mongo/models/parent.model.js.map +1 -1
  125. package/dist/libraries/mongo/models/payout.model.js.map +1 -1
  126. package/dist/libraries/mongo/models/product-marketing.model.js.map +1 -1
  127. package/dist/libraries/mongo/models/product.model.js.map +1 -1
  128. package/dist/libraries/mongo/models/providers/areeba-card.model.js.map +1 -1
  129. package/dist/libraries/mongo/models/providers/buy1-get1-marketing.model.js.map +1 -1
  130. package/dist/libraries/mongo/models/providers/core-apple-auth-identity.model.js.map +1 -1
  131. package/dist/libraries/mongo/models/providers/core-email-auth-identity.model.js.map +1 -1
  132. package/dist/libraries/mongo/models/providers/core-google-auth-identity.model.js.map +1 -1
  133. package/dist/libraries/mongo/models/providers/core-phone-auth-identity.model.js.map +1 -1
  134. package/dist/libraries/mongo/models/providers/courier-order-finance.model.d.ts +7 -0
  135. package/dist/libraries/mongo/models/{embedded/ticket-message.model.js → providers/courier-order-finance.model.js} +11 -23
  136. package/dist/libraries/mongo/models/providers/courier-order-finance.model.js.map +1 -0
  137. package/dist/libraries/mongo/models/providers/courier-order.model.js.map +1 -1
  138. package/dist/libraries/mongo/models/providers/custom-coupon.model.js.map +1 -1
  139. package/dist/libraries/mongo/models/providers/discount-marketing.model.js.map +1 -1
  140. package/dist/libraries/mongo/models/providers/featured-marketing.model.js.map +1 -1
  141. package/dist/libraries/mongo/models/providers/free-delivery-marketing.model.js.map +1 -1
  142. package/dist/libraries/mongo/models/providers/global-coupon.model.js.map +1 -1
  143. package/dist/libraries/mongo/models/providers/individual-store-coupon.model.js.map +1 -1
  144. package/dist/libraries/mongo/models/providers/individual-user-coupon.model.js.map +1 -1
  145. package/dist/libraries/mongo/models/providers/loyalty-point-marketing.model.js.map +1 -1
  146. package/dist/libraries/mongo/models/providers/punch-marketing.model.js.map +1 -1
  147. package/dist/libraries/mongo/models/providers/referral-code-coupon.model.d.ts +2 -2
  148. package/dist/libraries/mongo/models/providers/referral-code-coupon.model.js +2 -2
  149. package/dist/libraries/mongo/models/providers/referral-code-coupon.model.js.map +1 -1
  150. package/dist/libraries/mongo/models/providers/referral-reward-coupon.model.d.ts +3 -3
  151. package/dist/libraries/mongo/models/providers/referral-reward-coupon.model.js +3 -3
  152. package/dist/libraries/mongo/models/providers/referral-reward-coupon.model.js.map +1 -1
  153. package/dist/libraries/mongo/models/providers/regular-order-finance.model.d.ts +25 -0
  154. package/dist/libraries/mongo/models/providers/regular-order-finance.model.js +95 -0
  155. package/dist/libraries/mongo/models/providers/regular-order-finance.model.js.map +1 -0
  156. package/dist/libraries/mongo/models/providers/regular-order.model.js.map +1 -1
  157. package/dist/libraries/mongo/models/providers/rider-payout.model.js.map +1 -1
  158. package/dist/libraries/mongo/models/providers/shop-payout.model.js.map +1 -1
  159. package/dist/libraries/mongo/models/punch-marketing-history.model.d.ts +8 -4
  160. package/dist/libraries/mongo/models/punch-marketing-history.model.js +20 -4
  161. package/dist/libraries/mongo/models/punch-marketing-history.model.js.map +1 -1
  162. package/dist/libraries/mongo/models/rating-setting.model.js.map +1 -1
  163. package/dist/libraries/mongo/models/referral-setting.model.js.map +1 -1
  164. package/dist/libraries/mongo/models/request-area.model.js.map +1 -1
  165. package/dist/libraries/mongo/models/reward.model.js.map +1 -1
  166. package/dist/libraries/mongo/models/rider-review.model.js.map +1 -1
  167. package/dist/libraries/mongo/models/rider-timeout.model.js.map +1 -1
  168. package/dist/libraries/mongo/models/rider-tracking.model.js.map +1 -1
  169. package/dist/libraries/mongo/models/rider.model.js.map +1 -1
  170. package/dist/libraries/mongo/models/role.model.js.map +1 -1
  171. package/dist/libraries/mongo/models/setting.model.js.map +1 -1
  172. package/dist/libraries/mongo/models/shared/address.model.js.map +1 -1
  173. package/dist/libraries/mongo/models/shared/duration.model.js.map +1 -1
  174. package/dist/libraries/mongo/models/shared/geo-location.model.js.map +1 -1
  175. package/dist/libraries/mongo/models/shared/work-hour.model.js.map +1 -1
  176. package/dist/libraries/mongo/models/shop-access-control.model.js.map +1 -1
  177. package/dist/libraries/mongo/models/shop-category.model.js.map +1 -1
  178. package/dist/libraries/mongo/models/shop-meal-plan.model.js.map +1 -1
  179. package/dist/libraries/mongo/models/shop-review.model.js.map +1 -1
  180. package/dist/libraries/mongo/models/shop.model.js.map +1 -1
  181. package/dist/libraries/mongo/models/subscription-setting.model.js.map +1 -1
  182. package/dist/libraries/mongo/models/subscription.model.js.map +1 -1
  183. package/dist/libraries/mongo/models/support-reason.model.js.map +1 -1
  184. package/dist/libraries/mongo/models/tag.model.js.map +1 -1
  185. package/dist/libraries/mongo/models/terms-and-conditions.model.js.map +1 -1
  186. package/dist/libraries/mongo/models/ticket.model.js.map +1 -1
  187. package/dist/libraries/mongo/models/transaction.model.js.map +1 -1
  188. package/dist/libraries/mongo/models/user-app-section-setting.model.js.map +1 -1
  189. package/dist/libraries/mongo/models/user.model.js.map +1 -1
  190. package/dist/libraries/mongo/models/zone.model.js.map +1 -1
  191. package/dist/libraries/mongo/plugins/soft-delete-plugin.js.map +1 -1
  192. package/dist/libraries/redis/index.js.map +1 -1
  193. package/dist/libraries/secrets/index.js.map +1 -1
  194. package/dist/libraries/trpc/context.js.map +1 -1
  195. package/dist/libraries/trpc/index.js.map +1 -1
  196. package/dist/libraries/trpc/middlewares/auth.d.ts +3 -3
  197. package/dist/libraries/trpc/middlewares/auth.js.map +1 -1
  198. package/dist/libraries/trpc/middlewares/cors.js.map +1 -1
  199. package/dist/libraries/trpc/middlewares/phone-verified.d.ts +3 -3
  200. package/dist/libraries/trpc/middlewares/phone-verified.js.map +1 -1
  201. package/dist/libraries/trpc/middlewares/publicUserDecoder.d.ts +3 -3
  202. package/dist/libraries/trpc/middlewares/publicUserDecoder.js.map +1 -1
  203. package/dist/libraries/twilio/index.js.map +1 -1
  204. package/dist/libraries/upload/index.js.map +1 -1
  205. package/dist/utilities/common/password.js.map +1 -1
  206. package/dist/utilities/common/week.js.map +1 -1
  207. package/dist/utilities/currency.js.map +1 -1
  208. package/dist/utilities/enum.d.ts +0 -5
  209. package/dist/utilities/enum.js +1 -7
  210. package/dist/utilities/enum.js.map +1 -1
  211. package/dist/utilities/error-handler.js.map +1 -1
  212. package/dist/utilities/error-middleware.js.map +1 -1
  213. package/dist/utilities/pagination.d.ts +5 -5
  214. package/dist/utilities/pagination.js.map +1 -1
  215. package/dist/utilities/response.js.map +1 -1
  216. package/dist/utilities/search.js.map +1 -1
  217. package/dist/utilities/sorting.js.map +1 -1
  218. package/dist/utilities/transformers.js.map +1 -1
  219. package/dist/utilities/validation/common-validation.d.ts +125 -125
  220. package/dist/utilities/validation/common-validation.js.map +1 -1
  221. package/dist/utilities/validation/global-validation.js.map +1 -1
  222. package/dist/utilities/validation/index.js.map +1 -1
  223. package/package.json +54 -54
  224. package/dist/libraries/mongo/models/embedded/charge-setting.model.d.ts +0 -14
  225. package/dist/libraries/mongo/models/embedded/charge-setting.model.js +0 -60
  226. package/dist/libraries/mongo/models/embedded/charge-setting.model.js.map +0 -1
  227. package/dist/libraries/mongo/models/embedded/ticket-message.model.d.ts +0 -11
  228. package/dist/libraries/mongo/models/embedded/ticket-message.model.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"charge-settings.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/charge-settings.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,mFAAyD;AACzD,qDAAuD;AAGvD,MAAa,aAAa;IAElB,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,eAAe,CAAY;IAG3B,yBAAyB,CAAY;CAC5C;AAZD,sCAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,UAAU,EAAE,CAAC;;gDAC1C;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,sCAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;sDACJ;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,sCAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;gEACM","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { Charge } from './delivery-charge-setting.model';\r\nimport { ValueType } from '../../../../utilities/enum';\r\n\r\n\r\nexport class ChargeSetting {\r\n\t@prop({ type: String, enum: ValueType, default: ValueType.PERCENTAGE })\r\n\tpublic valueType?: ValueType; // percentage or fixed\r\n\r\n\t@prop({ type: Number })\r\n\tpublic value?: number;\r\n\r\n\t@prop({ type: [Charge], default: [] })\r\n\tpublic deliveryCharges?: Charge[];\r\n\r\n\t@prop({ type: [Charge], default: [] })\r\n\tpublic deliveryChargesForCourier?: Charge[];\r\n}"]}
1
+ {"version":3,"file":"charge-settings.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/charge-settings.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,mFAAyD;AACzD,qDAAuD;AAGvD,MAAa,aAAa;IAElB,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,eAAe,CAAY;IAG3B,yBAAyB,CAAY;CAC5C;AAZD,sCAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,UAAU,EAAE,CAAC;;gDAC1C;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,sCAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;sDACJ;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,sCAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;gEACM","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { Charge } from './delivery-charge-setting.model';\nimport { ValueType } from '../../../../utilities/enum';\n\n\nexport class ChargeSetting {\n\t@prop({ type: String, enum: ValueType, default: ValueType.PERCENTAGE })\n\tpublic valueType?: ValueType; // percentage or fixed\n\n\t@prop({ type: Number })\n\tpublic value?: number;\n\n\t@prop({ type: [Charge], default: [] })\n\tpublic deliveryCharges?: Charge[];\n\n\t@prop({ type: [Charge], default: [] })\n\tpublic deliveryChargesForCourier?: Charge[];\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"charge.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/charge.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAa,MAAM;IAEX,SAAS,CAAa;IAGtB,KAAK,CAAU;CACtB;AAND,wBAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,UAAU,EAAE,CAAC;;yCAC1C;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;qCACzB","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { ValueType } from '../../../../utilities/enum';\r\n\r\nexport class Charge {\r\n\t@prop({ type: String, enum: ValueType, default: ValueType.PERCENTAGE })\r\n\tpublic valueType?: ValueType;\r\n\r\n\t@prop({ required: true, type: Number, min: 0 })\r\n\tpublic value!: number;\r\n}\r\n"]}
1
+ {"version":3,"file":"charge.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/charge.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAa,MAAM;IAEX,SAAS,CAAa;IAGtB,KAAK,CAAU;CACtB;AAND,wBAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,UAAU,EAAE,CAAC;;yCAC1C;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;qCACzB","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { ValueType } from '../../../../utilities/enum';\n\nexport class Charge {\n\t@prop({ type: String, enum: ValueType, default: ValueType.PERCENTAGE })\n\tpublic valueType?: ValueType;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic value!: number;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"chat-participant.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/chat-participant.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AAMjD,MAAa,eAAe;IAE3B,GAAG,CAAoC;IAGvC,IAAI,CAAU;IAGd,QAAQ,CAAQ;IAGhB,UAAU,CAAQ;IAGlB,QAAQ,CAAW;IAGnB,MAAM,CAAQ;CACd;AAlBD,0CAkBC;AAhBA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;;4CACH;AAGvC;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;;6CACrD;AAGd;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;8BACrC,IAAI;iDAAC;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;mDAAC;AAGlB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACpB;AAGnB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACZ,IAAI;+CAAC","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\r\nimport { User } from '../user.model';\r\nimport { Admin } from '../admin.model';\r\nimport { Shop } from '../shop.model';\r\nimport { Rider } from '../rider.model';\r\n\r\nexport class ChatParticipant {\r\n\t@prop({ required: true, refPath: 'type' })\r\n\tref!: Ref<User | Admin | Shop | Rider>;\r\n\r\n\t@prop({ required: true, enum: ['User', 'Admin', 'Shop', 'Rider'] })\r\n\ttype!: string;\r\n\r\n\t@prop({ type: Date, default: () => new Date() })\r\n\tjoinedAt?: Date;\r\n\r\n\t@prop({ type: Date })\r\n\tlastReadAt?: Date;\r\n\r\n\t@prop({ type: Boolean, default: true })\r\n\tisActive?: boolean;\r\n\r\n\t@prop({ type: Date })\r\n\tleftAt?: Date;\r\n}\r\n"]}
1
+ {"version":3,"file":"chat-participant.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/chat-participant.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AAMjD,MAAa,eAAe;IAE3B,GAAG,CAAoC;IAGvC,IAAI,CAAU;IAGd,QAAQ,CAAQ;IAGhB,UAAU,CAAQ;IAGlB,QAAQ,CAAW;IAGnB,MAAM,CAAQ;CACd;AAlBD,0CAkBC;AAhBA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;;4CACH;AAGvC;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;;6CACrD;AAGd;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;8BACrC,IAAI;iDAAC;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;mDAAC;AAGlB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACpB;AAGnB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACZ,IAAI;+CAAC","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { User } from '../user.model';\nimport { Admin } from '../admin.model';\nimport { Shop } from '../shop.model';\nimport { Rider } from '../rider.model';\n\nexport class ChatParticipant {\n\t@prop({ required: true, refPath: 'type' })\n\tref!: Ref<User | Admin | Shop | Rider>;\n\n\t@prop({ required: true, enum: ['User', 'Admin', 'Shop', 'Rider'] })\n\ttype!: string;\n\n\t@prop({ type: Date, default: () => new Date() })\n\tjoinedAt?: Date;\n\n\t@prop({ type: Date })\n\tlastReadAt?: Date;\n\n\t@prop({ type: Boolean, default: true })\n\tisActive?: boolean;\n\n\t@prop({ type: Date })\n\tleftAt?: Date;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"courier-order-finance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/courier-order-finance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,+DAAqD;AACrD,2DAA8D;AAC9D,+DAAqD;AACrD,qDAAqE;AAErE,MAAa,mBAAoB,SAAQ,kCAAY;IAE7C,WAAW,CAA2B;IAGtC,OAAO,CAAe;IAGtB,aAAa,CAAsB;CAC1C;AATD,kDASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,8BAAuB,EAAE,OAAO,EAAE,8BAAuB,CAAC,MAAM,EAAE,CAAC;;wDAClD;AAGtC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACnC,kCAAY;oDAAC;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BAClB,iCAAkB;0DAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { OrderFinance } from './order-finance.model';\r\nimport { CourierOrderProfit } from '../embedded/profit.model';\r\nimport { OrderPricing } from './order-pricing.model';\r\nimport { CourierOrderPaymentFrom } from '../../../../utilities/enum';\r\n\r\nexport class CourierOrderFinance extends OrderFinance {\r\n\t@prop({ type: String, enum: CourierOrderPaymentFrom, default: CourierOrderPaymentFrom.SENDER })\r\n\tpublic paymentFrom?: CourierOrderPaymentFrom;\r\n\r\n\t@prop({ required: true, type: () => OrderPricing })\r\n\tpublic pricing: OrderPricing;\r\n\r\n\t@prop({ type: () => CourierOrderProfit })\r\n\tpublic companyProfit?: CourierOrderProfit;\r\n}\r\n"]}
1
+ {"version":3,"file":"courier-order-finance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/courier-order-finance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,+DAAqD;AACrD,2DAA8D;AAC9D,+DAAqD;AACrD,qDAAqE;AAErE,MAAa,mBAAoB,SAAQ,kCAAY;IAE7C,WAAW,CAA2B;IAGtC,OAAO,CAAe;IAGtB,aAAa,CAAsB;CAC1C;AATD,kDASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,8BAAuB,EAAE,OAAO,EAAE,8BAAuB,CAAC,MAAM,EAAE,CAAC;;wDAClD;AAGtC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACnC,kCAAY;oDAAC;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BAClB,iCAAkB;0DAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { OrderFinance } from './order-finance.model';\nimport { CourierOrderProfit } from '../embedded/profit.model';\nimport { OrderPricing } from './order-pricing.model';\nimport { CourierOrderPaymentFrom } from '../../../../utilities/enum';\n\nexport class CourierOrderFinance extends OrderFinance {\n\t@prop({ type: String, enum: CourierOrderPaymentFrom, default: CourierOrderPaymentFrom.SENDER })\n\tpublic paymentFrom?: CourierOrderPaymentFrom;\n\n\t@prop({ required: true, type: () => OrderPricing })\n\tpublic pricing: OrderPricing;\n\n\t@prop({ type: () => CourierOrderProfit })\n\tpublic companyProfit?: CourierOrderProfit;\n}\n"]}
@@ -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';\r\n\r\nexport class CourierSetting {\r\n\t@prop({ type: Number, default: Infinity })\r\n\tmaxTotalEstItemsPrice?: number;\r\n\r\n\t@prop({ type: Number })\r\n\tmaxDistance?: number;\r\n}\r\n"]}
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';\r\nimport { Currency } from './currency.model';\r\n\r\nexport class CurrencySetting {\r\n\t@prop({ required: true, type: Currency })\r\n\tbaseCurrency!: Currency;\r\n\r\n\t@prop({ type: Currency })\r\n\tsecondaryCurrency?: Currency;\r\n\r\n\t@prop({ type: Boolean, default: false })\r\n\tisDualCurrencyEnabled?: boolean;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\texchangeRate?: number;\r\n}\r\n"]}
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,IAAI,CAAU;IAGd,OAAO,CAAU;CACxB;AAZD,4BAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACA;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCACF;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCACd","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class Currency {\r\n\t@prop({ type: String })\r\n\tpublic symbol?: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tpublic name!: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic code?: string;\r\n\r\n\t@prop({ type: Number, default: 0.01 })\r\n\tpublic roundTo?: number;\r\n}\r\n"]}
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,IAAI,CAAU;IAGd,OAAO,CAAU;CACxB;AAZD,4BAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACA;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCACF;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCACd","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class Currency {\n\t@prop({ type: String })\n\tpublic symbol?: string;\n\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ type: String })\n\tpublic code?: string;\n\n\t@prop({ type: Number, default: 0.01 })\n\tpublic roundTo?: number;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"customer-support-batches.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/customer-support-batches.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,8BAA8B;IAEnC,WAAW,CAAU;IAGrB,cAAc,CAAU;CAC/B;AAND,wEAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mEACK;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sEACQ","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class CustomerSupportBatchesSettings {\r\n\t@prop({ type: String })\r\n\tpublic phoneNumber?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic whatsAppNumber?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"customer-support-batches.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/customer-support-batches.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,8BAA8B;IAEnC,WAAW,CAAU;IAGrB,cAAc,CAAU;CAC/B;AAND,wEAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mEACK;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sEACQ","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class CustomerSupportBatchesSettings {\n\t@prop({ type: String })\n\tpublic phoneNumber?: string;\n\n\t@prop({ type: String })\n\tpublic whatsAppNumber?: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"customer-support-numbers.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/customer-support-numbers.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,eAAe;IAEpB,WAAW,CAAU;IAGrB,cAAc,CAAU;CAC/B;AAND,0CAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACK;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACQ","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class CustomerSupport {\r\n\t@prop({ type: String })\r\n\tpublic phoneNumber?: string;\r\n\r\n\t@prop({ type: String })\r\n\tpublic whatsAppNumber?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"customer-support-numbers.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/customer-support-numbers.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,eAAe;IAEpB,WAAW,CAAU;IAGrB,cAAc,CAAU;CAC/B;AAND,0CAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACK;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACQ","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class CustomerSupport {\n\t@prop({ type: String })\n\tpublic phoneNumber?: string;\n\n\t@prop({ type: String })\n\tpublic whatsAppNumber?: string;\n}\n"]}
@@ -1 +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';\r\nimport { OrderType } from '../../../../utilities/enum';\r\n\r\nexport class Charge {\r\n\t@prop({ required: true, type: Number, min: 0 })\r\n\tpublic from!: number;\r\n\r\n\t@prop({ required: true, type: Number, min: 0 })\r\n\tpublic to!: number;\r\n\r\n\t@prop({ required: true, type: Number, min: 0 })\r\n\tpublic charge!: number;\r\n\r\n\t@prop({ required: true, type: Number, min: 0 })\r\n\tpublic riderCut!: number;\r\n}\r\n\r\nexport class DeliveryCharge {\r\n\t@prop({ type: String, enum: OrderType, default: OrderType.REGULAR })\r\n\ttype: string;\r\n\r\n\t@prop({ type: () => [Charge], default: [] })\r\n\tcharges: Charge[]\r\n}\r\n"]}
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":"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';\r\nimport { Status } from '../../../../utilities/enum';\r\n\r\nexport class FeaturedItem {\r\n\t@prop({ required: true, type: Number })\r\n\tpublic durationInDays!: number;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tpublic amount!: number;\r\n\r\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\r\n\tpublic status?: Status;\r\n}\r\n"]}
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"]}
@@ -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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"marketing-c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,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';\r\nimport { Coupon } from '../coupon.model';\r\n\r\nexport class CompanyCut {\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic companyCut?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic secondaryCompanyCut?: number;\r\n}\r\nexport class MarketingCut extends CompanyCut {\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic shopCut?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic secondaryShopCut?: number;\r\n}\r\n\r\nexport class LoyaltyPoint extends CompanyCut {\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic redeemCashback?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic secondaryRedeemCashback?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic points?: number;\r\n}\r\n\r\nexport class CouponDetails extends MarketingCut {\r\n\t@prop({ ref: () => Coupon, default: 0 })\r\n\tpublic coupon?: Ref<Coupon>;\r\n\r\n\t@prop({ type: Object, default: {} })\r\n\tpublic snap?: object;\r\n}\r\n"]}
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,UAAU;IAEf,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CACpC;AAND,gCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8CACR;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACC;AAErC,MAAa,YAAa,SAAQ,UAAU;IAEpC,OAAO,CAAU;IAGjB,gBAAgB,CAAU;CACjC;AAND,oCAMC;AAJO;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,UAAU;IAEpC,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 CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic companyCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCompanyCut?: number;\n}\nexport class MarketingCut extends CompanyCut {\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 CompanyCut {\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"]}
@@ -3,13 +3,16 @@ import { LogUser } from '../../../../utilities/enum';
3
3
  import { Admin } from '../admin.model';
4
4
  import { LineItem } from '../line-item.model';
5
5
  export declare class OrderCancel {
6
- logusers: LogUser[];
7
- canceledBy: string;
6
+ logUsers: LogUser[];
8
7
  admin?: Ref<Admin>;
9
8
  cancelReason?: string;
10
9
  }
10
+ export declare class selectedLineItem {
11
+ _id: Ref<LineItem>;
12
+ quantity: number;
13
+ }
11
14
  export declare class EndorseLoss {
12
- selectedLineItems: Ref<LineItem>[];
15
+ selectedLineItems?: selectedLineItem[];
13
16
  deliveryFeeIncludedInEndorsement?: Boolean;
14
17
  endorseLossByShopForItems: number;
15
18
  secondaryEndorseLossByShopForItems: number;
@@ -9,14 +9,13 @@ 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.EndorseLoss = exports.OrderCancel = void 0;
12
+ exports.EndorseLoss = exports.selectedLineItem = exports.OrderCancel = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  const enum_1 = require("../../../../utilities/enum");
15
15
  const admin_model_1 = require("../admin.model");
16
16
  const line_item_model_1 = require("../line-item.model");
17
17
  class OrderCancel {
18
- logusers;
19
- canceledBy;
18
+ logUsers;
20
19
  admin;
21
20
  cancelReason;
22
21
  }
@@ -28,11 +27,7 @@ __decorate([
28
27
  default: [],
29
28
  }),
30
29
  __metadata("design:type", Array)
31
- ], OrderCancel.prototype, "logusers", void 0);
32
- __decorate([
33
- (0, typegoose_1.prop)({ type: String, enum: enum_1.OrderCancelBy }),
34
- __metadata("design:type", String)
35
- ], OrderCancel.prototype, "canceledBy", void 0);
30
+ ], OrderCancel.prototype, "logUsers", void 0);
36
31
  __decorate([
37
32
  (0, typegoose_1.prop)({ ref: () => admin_model_1.Admin }),
38
33
  __metadata("design:type", Object)
@@ -41,6 +36,19 @@ __decorate([
41
36
  (0, typegoose_1.prop)({ type: String }),
42
37
  __metadata("design:type", String)
43
38
  ], OrderCancel.prototype, "cancelReason", void 0);
39
+ class selectedLineItem {
40
+ _id;
41
+ quantity;
42
+ }
43
+ exports.selectedLineItem = selectedLineItem;
44
+ __decorate([
45
+ (0, typegoose_1.prop)({ required: true, ref: () => line_item_model_1.LineItem }),
46
+ __metadata("design:type", Object)
47
+ ], selectedLineItem.prototype, "_id", void 0);
48
+ __decorate([
49
+ (0, typegoose_1.prop)({ required: true }),
50
+ __metadata("design:type", Number)
51
+ ], selectedLineItem.prototype, "quantity", void 0);
44
52
  class EndorseLoss {
45
53
  selectedLineItems;
46
54
  deliveryFeeIncludedInEndorsement;
@@ -57,7 +65,7 @@ class EndorseLoss {
57
65
  }
58
66
  exports.EndorseLoss = EndorseLoss;
59
67
  __decorate([
60
- (0, typegoose_1.prop)({ required: true, ref: () => line_item_model_1.LineItem, default: [] }),
68
+ (0, typegoose_1.prop)({ type: () => selectedLineItem }),
61
69
  __metadata("design:type", Array)
62
70
  ], EndorseLoss.prototype, "selectedLineItems", void 0);
63
71
  __decorate([
@@ -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,qDAAoE;AACpE,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C,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uEACP;AAG5C;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iEACb;AAGtC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0EACJ;AAG/C;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iEACb;AAGtC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0EACJ;AAG/C;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oEACV;AAGzC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6EACD;AAGlD;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDAC9B;AAGrB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACrB","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\r\nimport { LogUser, OrderCancelBy } from '../../../../utilities/enum';\r\nimport { Admin } from '../admin.model';\r\nimport { LineItem } from '../line-item.model';\r\n\r\n\r\nexport class OrderCancel {\r\n\t@prop({\r\n\t\ttype: [String],\r\n\t\tenum: LogUser,\r\n\t\tdefault: [],\r\n\t})\r\n\tlogusers!: LogUser[];\r\n\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\r\nexport class EndorseLoss {\r\n\t@prop({ required: true, ref: () => LineItem, default: [] })\r\n\tselectedLineItems: Ref<LineItem>[];\r\n\r\n\t@prop({ type: Boolean, default: false })\r\n\tdeliveryFeeIncludedInEndorsement?: Boolean;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\tendorseLossByShopForItems!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\tsecondaryEndorseLossByShopForItems!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\tendorseLossByShopForDelivery!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\tsecondaryEndorseLossByShopForDelivery!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\tendorseLossByCompanyForItems!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\tsecondaryEndorseLossByCompanyForItems!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\tendorseLossByCompanyForDelivery!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\tsecondaryEndorseLossByCompanyForDelivery!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\ttotalAmount!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\tsecondaryTotalAmount!: number;\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;AACj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","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { LogUser } from '../../../../utilities/enum';\nimport { Admin } from '../admin.model';\nimport { LineItem } from '../line-item.model';\n\n\nexport class OrderCancel {\n\t@prop({\n\t\ttype: [String],\n\t\tenum: LogUser,\n\t\tdefault: [],\n\t})\n\tlogUsers!: LogUser[];\n\n\t@prop({ ref: () => Admin })\n\tadmin?: Ref<Admin>;\n\n\t@prop({ type: String })\n\tcancelReason?: string;\n}\n\nexport class selectedLineItem {\n\t@prop({ required: true, ref: () => LineItem })\n\t_id: Ref<LineItem>;\n\n\t@prop({ required: true })\n\tquantity: number;\n}\n\nexport class EndorseLoss {\n\t@prop({ type: () => selectedLineItem })\n\tpublic selectedLineItems?: selectedLineItem[];\n\n\t@prop({ type: Boolean, default: false })\n\tdeliveryFeeIncludedInEndorsement?: Boolean;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tendorseLossByShopForItems!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryEndorseLossByShopForItems!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tendorseLossByShopForDelivery!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryEndorseLossByShopForDelivery!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tendorseLossByCompanyForItems!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryEndorseLossByCompanyForItems!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tendorseLossByCompanyForDelivery!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryEndorseLossByCompanyForDelivery!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\ttotalAmount!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryTotalAmount!: number;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"order-finance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-finance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,4EAAqE;AACrE,2EAAiE;AACjE,qDAA2D;AAC3D,iDAA6C;AAC7C,mEAAyD;AAEzD,MAAa,YAAa,SAAQ,2BAAU;IAEpC,YAAY,CAAU;IAGtB,aAAa,CAAiB;IAGrC,kBAAkB,CAAsB;IAGjC,WAAW,CAAe;IAG1B,cAAc,CAAkB;CACvC;AAfD,oCAeC;AAbO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kDACN;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAa,EAAE,OAAO,EAAE,oBAAa,CAAC,IAAI,EAAE,CAAC;;mDACpC;AAGrC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,8CAAkB,EAAE,CAAC;8BACpB,8CAAkB;wDAAC;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,0BAAW,EAAE,CAAC;8BACb,0BAAW;iDAAC;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sCAAc,EAAE,CAAC;8BACb,sCAAc;oDAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\r\nimport { PaymentInformation } from './payment-infromation.model';\r\nimport { PaymentMethod } from '../../../../utilities/enum';\r\nimport { RiderProfit } from './profit.model';\r\nimport { CashSettlement } from './cash-settlement.model';\r\n\r\nexport class OrderFinance extends TimeStamps {\r\n\t@prop({ type: Number, default: 1 })\r\n\tpublic exchangeRate?: number;\r\n\r\n\t@prop({ type: String, enum: PaymentMethod, default: PaymentMethod.CASH })\r\n\tpublic paymentMethod?: PaymentMethod;\r\n\r\n\t@prop({ type: () => PaymentInformation })\r\n\tpaymentInformation?: PaymentInformation;\r\n\r\n\t@prop({ type: () => RiderProfit })\r\n\tpublic riderProfit?: RiderProfit;\r\n\r\n\t@prop({ type: () => CashSettlement })\r\n\tpublic cashSettlement?: CashSettlement;\r\n}\r\n"]}
1
+ {"version":3,"file":"order-finance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-finance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,4EAAqE;AACrE,2EAAiE;AACjE,qDAA2D;AAC3D,iDAA6C;AAC7C,mEAAyD;AAEzD,MAAa,YAAa,SAAQ,2BAAU;IAEpC,YAAY,CAAU;IAGtB,aAAa,CAAiB;IAGrC,kBAAkB,CAAsB;IAGjC,WAAW,CAAe;IAG1B,cAAc,CAAkB;CACvC;AAfD,oCAeC;AAbO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kDACN;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAa,EAAE,OAAO,EAAE,oBAAa,CAAC,IAAI,EAAE,CAAC;;mDACpC;AAGrC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,8CAAkB,EAAE,CAAC;8BACpB,8CAAkB;wDAAC;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,0BAAW,EAAE,CAAC;8BACb,0BAAW;iDAAC;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sCAAc,EAAE,CAAC;8BACb,sCAAc;oDAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { PaymentInformation } from './payment-infromation.model';\nimport { PaymentMethod } from '../../../../utilities/enum';\nimport { RiderProfit } from './profit.model';\nimport { CashSettlement } from './cash-settlement.model';\n\nexport class OrderFinance extends TimeStamps {\n\t@prop({ type: Number, default: 1 })\n\tpublic exchangeRate?: number;\n\n\t@prop({ type: String, enum: PaymentMethod, default: PaymentMethod.CASH })\n\tpublic paymentMethod?: PaymentMethod;\n\n\t@prop({ type: () => PaymentInformation })\n\tpaymentInformation?: PaymentInformation;\n\n\t@prop({ type: () => RiderProfit })\n\tpublic riderProfit?: RiderProfit;\n\n\t@prop({ type: () => CashSettlement })\n\tpublic cashSettlement?: CashSettlement;\n}\n"]}
@@ -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,CAAS;IAGjB,iBAAiB,CAAU;IAG3B,WAAW,CAAS;IAGpB,oBAAoB,CAAU;IAG9B,SAAS,CAAU;IAGnB,kBAAkB,CAAU;IAG5B,KAAK,CAAS;IAGd,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;;8CAClB;AAGjB;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;;iDACf;AAGpB;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,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E,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0EACI;AAGvC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2DACX;AAGxB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oEACF;AAGjC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mEACH;AAGhC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4EACM","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\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\tpaidAmount?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tsecondaryPaidAmount?: number;\r\n}\r\n\r\nexport class RegularOrderPricing extends OrderPricing {\r\n\t@prop({ type: Number, default: 0 })\r\n\tdiscount?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tsecondaryDiscount?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tloyaltyPointDiscount?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tsecondaryLoyaltyPointDiscount?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tcouponDiscount?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tsecondaryCouponDiscount?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpunchMarketingDiscount?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tsecondaryPunchMarketingDiscount?: 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,CAAS;IAGjB,iBAAiB,CAAU;IAG3B,WAAW,CAAS;IAGpB,oBAAoB,CAAU;IAG9B,SAAS,CAAU;IAGnB,kBAAkB,CAAU;IAG5B,KAAK,CAAS;IAGd,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;;8CAClB;AAGjB;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;;iDACf;AAGpB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACL;AAG9B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,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E,OAAO,EAAE,CAAC,EAAE,CAAC;;iEACL;AAG9B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0EACI;AAGvC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2DACX;AAGxB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oEACF;AAGjC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mEACH;AAGhC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4EACM","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\nexport class RegularOrderPricing extends OrderPricing {\n\t@prop({ type: Number, default: 0 })\n\tdiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tloyaltyPointDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryLoyaltyPointDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tcouponDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryCouponDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpunchMarketingDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryPunchMarketingDiscount?: number;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"order-refund.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-refund.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,gDAAuC;AACvC,qDAAqD;AACrD,wDAA8C;AAE9C,MAAa,WAAW;IAMvB,QAAQ,CAAa;IAGrB,UAAU,CAAa;IAGvB,YAAY,CAAW;IAGvB,MAAM,CAAS;IAGf,iBAAiB,CAAmB;IAGpC,4BAA4B,CAAU;IAGtC,qCAAqC,CAAU;IAG/C,+BAA+B,CAAU;IAGzC,wCAAwC,CAAU;IAGlD,+BAA+B,CAAU;IAGzC,wCAAwC,CAAU;IAGlD,kCAAkC,CAAU;IAG5C,2CAA2C,CAAU;IAGrD,WAAW,CAAU;IAGrB,oBAAoB,CAAU;CAC9B;AAjDD,kCAiDC;AA3CA;IALC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,cAAO;QACb,OAAO,EAAE,EAAE;KACX,CAAC;;6CACmB;AAGrB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;+CACJ;AAGvB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDAChB;AAGvB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAA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AAC;;gDAC9B;AAGrB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACrB","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\r\nimport { Admin } from '../admin.model';\r\nimport { LogUser } from '../../../../utilities/enum';\r\nimport { LineItem } from '../line-item.model';\r\n\r\nexport class OrderRefund {\r\n\t@prop({\r\n\t\ttype: [String],\r\n\t\tenum: LogUser,\r\n\t\tdefault: []\r\n\t})\r\n\tlogUsers!: LogUser[];\r\n\r\n\t@prop({ ref: () => Admin })\r\n\tapprovedBy: Ref<Admin>;\r\n\r\n\t@prop({ type: Boolean, default: true })\r\n\tisFullRefund?: boolean;\r\n\r\n\t@prop({ type: String })\r\n\treason: string;\r\n\r\n\t@prop({ ref: () => LineItem, default: [] })\r\n\tselectedLineItems?: Ref<LineItem>[];\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\trefundedAmountByShopForItems!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\tsecondaryRefundedAmountByShopForItems!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\trefundedAmountByShopForDelivery!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\tsecondaryRefundedAmountByShopForDelivery!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\trefundedAmountByCompanyForItems!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\tsecondaryRefundedAmountByCompanyForItems!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\trefundedAmountByCompanyForDelivery!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\tsecondaryRefundedAmountByCompanyForDelivery!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\ttotalRefund!: number;\r\n\r\n\t@prop({ type: Number, required: true, default: 0 })\r\n\tsecondaryTotalRefund!: number;\r\n}\r\n"]}
1
+ {"version":3,"file":"order-refund.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-refund.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,gDAAuC;AACvC,qDAAqD;AACrD,wDAA8C;AAE9C,MAAa,WAAW;IAMvB,QAAQ,CAAa;IAGrB,UAAU,CAAa;IAGvB,YAAY,CAAW;IAGvB,MAAM,CAAS;IAGf,iBAAiB,CAAmB;IAGpC,4BAA4B,CAAU;IAGtC,qCAAqC,CAAU;IAG/C,+BAA+B,CAAU;IAGzC,wCAAwC,CAAU;IAGlD,+BAA+B,CAAU;IAGzC,wCAAwC,CAAU;IAGlD,kCAAkC,CAAU;IAG5C,2CAA2C,CAAU;IAGrD,WAAW,CAAU;IAGrB,oBAAoB,CAAU;CAC9B;AAjDD,kCAiDC;AA3CA;IALC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,cAAO;QACb,OAAO,EAAE,EAAE;KACX,CAAC;;6CACmB;AAGrB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;+CACJ;AAGvB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDAChB;AAGvB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CACR;AAGf;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,0BAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;sDACP;AAGpC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iEACb;AAGtC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0EACJ;AAG/C;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oEACV;AAGzC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6EACD;AAGlD;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oEACV;AAGzC;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6EACD;AAGlD;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uEACP;AAG5C;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gFACE;AAGrD;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDAC9B;AAGrB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACrB","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Admin } from '../admin.model';\nimport { LogUser } from '../../../../utilities/enum';\nimport { LineItem } from '../line-item.model';\n\nexport class OrderRefund {\n\t@prop({\n\t\ttype: [String],\n\t\tenum: LogUser,\n\t\tdefault: []\n\t})\n\tlogUsers!: LogUser[];\n\n\t@prop({ ref: () => Admin })\n\tapprovedBy: Ref<Admin>;\n\n\t@prop({ type: Boolean, default: true })\n\tisFullRefund?: boolean;\n\n\t@prop({ type: String })\n\treason: string;\n\n\t@prop({ ref: () => LineItem, default: [] })\n\tselectedLineItems?: Ref<LineItem>[];\n\n\t@prop({ type: Number, required: true, default: 0 })\n\trefundedAmountByShopForItems!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryRefundedAmountByShopForItems!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\trefundedAmountByShopForDelivery!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryRefundedAmountByShopForDelivery!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\trefundedAmountByCompanyForItems!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryRefundedAmountByCompanyForItems!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\trefundedAmountByCompanyForDelivery!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryRefundedAmountByCompanyForDelivery!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\ttotalRefund!: number;\n\n\t@prop({ type: Number, required: true, default: 0 })\n\tsecondaryTotalRefund!: 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":"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,I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DAC/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';\r\nimport { Dish } from '../dish.model';\r\n\r\nclass DishWithPortion {\r\n\t@prop({ required: true, ref: () => Dish })\r\n\tpublic dish!: Ref<Dish>;\r\n\r\n\t@prop({ required: true, type: () => [Number] })\r\n\tpublic portionPercentageForPackages?: number[];\r\n}\r\n\r\nclass MealCategory {\r\n\t@prop({ required: true, type: String })\r\n\tpublic name!: string;\r\n\r\n\t@prop({ required: true, type: () => [DishWithPortion] })\r\n\tpublic dishes!: DishWithPortion[];\r\n}\r\n\r\nclass CalorieRange {\r\n\t@prop({ required: true, type: Number })\r\n\tpublic from!: number;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tpublic to!: number;\r\n}\r\n\r\nclass PackageRange {\r\n\t@prop({ required: true, type: String })\r\n\tpublic title!: string;\r\n\r\n\t@prop({ required: true, type: CalorieRange })\r\n\tpublic calorieRange!: CalorieRange;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tpublic price!: number;\r\n\r\n\t@prop({ required: true, type: () => [MealCategory], default: [] })\r\n\tpublic categories!: MealCategory[];\r\n}\r\n\r\nexport class Package {\r\n\t@prop({ required: true, type: String })\r\n\tpublic name!: string;\r\n\r\n\t@prop({ required: true, type: () => [PackageRange] })\r\n\tpublic ranges?: PackageRange[];\r\n}\r\n"]}
1
+ {"version":3,"file":"package.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/package.model.ts"],"names":[],"mappings":";;;;;;;;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,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,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"]}
@@ -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;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';\r\nimport { CardType } from '../../../../utilities/enum';\r\n\r\nexport class PaymentInformation {\r\n\t@prop({ required: true, type: String, enum: CardType, default: CardType.STRIPE })\r\n\tpublic cardType!: CardType;\r\n\r\n\t@prop({ type: String })\r\n\tpublic referenceId?: string;\r\n\r\n\t@prop({ type: String })\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":"payout-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payout-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAqD;AAErD,MAAc,aAAa;IAE1B,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';\r\nimport { WeekDay } from '../../../../utilities/enum';\r\n\r\nexport class PayoutSetting {\r\n\t@prop({ required: true, type: Number, enum: WeekDay })\r\n\tissuanceDay!: WeekDay;\r\n\r\n\t@prop({ type: Number, min: 1, default: 1 })\r\n\toverDuePeriods?: number;\r\n}\r\n"]}
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,MAAc,aAAa;IAE1B,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":"plus-settings.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/plus-settings.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAqE;AAErE,MAAa,YAAY;IAEjB,WAAW,CAA0B;IAGrC,MAAM,CAAS;IAGf,QAAQ,CAAU;CACzB;AATD,oCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,8BAAuB,EAAE,CAAC;;iDAC1B;AAGrC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;8CACd","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { PlusSettingsPackageType } from '../../../../utilities/enum';\r\n\r\nexport class PlusSettings {\r\n\t@prop({ required: true, type: String, enum: PlusSettingsPackageType })\r\n\tpublic packageType: PlusSettingsPackageType;\r\n\r\n\t@prop({ type: Number, required: true })\r\n\tpublic amount: number;\r\n\r\n\t@prop({ type: Boolean, default: true })\r\n\tpublic isActive: boolean;\r\n}\r\n"]}
1
+ {"version":3,"file":"plus-settings.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/plus-settings.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAqE;AAErE,MAAa,YAAY;IAEjB,WAAW,CAA0B;IAGrC,MAAM,CAAS;IAGf,QAAQ,CAAU;CACzB;AATD,oCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,8BAAuB,EAAE,CAAC;;iDAC1B;AAGrC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;8CACd","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { PlusSettingsPackageType } from '../../../../utilities/enum';\n\nexport class PlusSettings {\n\t@prop({ required: true, type: String, enum: PlusSettingsPackageType })\n\tpublic packageType: PlusSettingsPackageType;\n\n\t@prop({ type: Number, required: true })\n\tpublic amount: number;\n\n\t@prop({ type: Boolean, default: true })\n\tpublic isActive: boolean;\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"]}
@@ -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';\r\n\r\nexport class ProductNutrition {\r\n\t@prop({ required: true, type: String })\r\n\tname: string;\r\n\r\n\t@prop({ required: true, type: String })\r\n\tunit: string;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tunitValue: number;\r\n}\r\n"]}
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":"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';\r\n\r\nexport class CourierOrderProfit {\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic profitFromDelivery?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic secondaryProfitFromDelivery?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic totalProfit?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic secondaryTotalProfit?: number;\r\n}\r\n\r\nexport class RegularOrderProfit extends CourierOrderProfit {\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic profitFromItem?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic secondaryProfitFromItem?: number;\r\n}\r\n\r\nexport class RiderProfit extends CourierOrderProfit {\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic profitFromTips?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic secondaryProfitFromTips?: number;\r\n}\r\n"]}
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":"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';\r\nimport { ValueType } from '../../../../utilities/enum';\r\n\r\nexport class ReferralDiscountConfig {\r\n\t@prop({\r\n\t\trequired: true,\r\n\t\ttype: String,\r\n\t\tenum: ValueType,\r\n\t\tdefault: ValueType.PERCENTAGE,\r\n\t})\r\n\tpublic valueType!: ValueType;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tpublic value!: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic minimumOrderValue?: number;\r\n}\r\n"]}
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":"regular-order-finance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/regular-order-finance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,+DAAqD;AACrD,2DAA8D;AAC9D,qDAA4C;AAC5C,yEAA4F;AAC5F,+DAA4D;AAE5D,MAAa,mBAAoB,SAAQ,kCAAY;IAE7C,OAAO,CAAsB;IAG7B,aAAa,CAAsB;IAGnC,UAAU,CAAsB;IAGhC,GAAG,CAAO;IAGV,QAAQ,CAAgB;IAGxB,QAAQ,CAAgB;IAGxB,YAAY,CAAgB;IAG5B,MAAM,CAAiB;IAGvB,YAAY,CAAgB;IAG5B,gBAAgB,CAAgB;IAGhC,WAAW,CAAgB;CAClC;AAjCD,kDAiCC;AA/BO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,yCAAmB,EAAE,CAAC;8BAC1C,yCAAmB;oDAAC;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BAClB,iCAAkB;0DAAC;AAGnC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BACrB,iCAAkB;uDAAC;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,eAAG,EAAE,CAAC;8BACb,eAAG;gDAAC;AAGV;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACjB,kCAAY;qDAAC;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACjB,kCAAY;qDAAC;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACb,kCAAY;yDAAC;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,mCAAa,EAAE,CAAC;8BACpB,mCAAa;mDAAC;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACb,kCAAY;yDAAC;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACT,kCAAY;6DAAC;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACd,kCAAY;wDAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { OrderFinance } from './order-finance.model';\r\nimport { RegularOrderProfit } from '../embedded/profit.model';\r\nimport { Vat } from '../embedded/vat.model';\r\nimport { CouponDetails, LoyaltyPoint, MarketingCut } from '../embedded/marketing-cut.model';\r\nimport { RegularOrderPricing } from './order-pricing.model';\r\n\r\nexport class RegularOrderFinance extends OrderFinance {\r\n\t@prop({ required: true, type: () => RegularOrderPricing })\r\n\tpublic pricing: RegularOrderPricing;\r\n\t\r\n\t@prop({ type: () => RegularOrderProfit })\r\n\tpublic companyProfit?: RegularOrderProfit;\r\n\r\n\t@prop({ type: () => RegularOrderProfit })\r\n\tpublic shopProfit?: RegularOrderProfit;\r\n\r\n\t@prop({ type: () => Vat })\r\n\tpublic vat?: Vat;\r\n\r\n\t@prop({ type: () => MarketingCut })\r\n\tpublic discount?: MarketingCut;\r\n\r\n\t@prop({ type: () => MarketingCut })\r\n\tpublic buy1get1?: MarketingCut;\r\n\r\n\t@prop({ type: () => LoyaltyPoint })\r\n\tpublic loyaltyPoint?: LoyaltyPoint;\r\n\r\n\t@prop({ type: () => CouponDetails })\r\n\tpublic coupon?: CouponDetails;\r\n\r\n\t@prop({ type: () => MarketingCut })\r\n\tpublic freeDelivery?: MarketingCut;\r\n\r\n\t@prop({ type: () => MarketingCut })\r\n\tpublic replacementOrder?: MarketingCut;\r\n\r\n\t@prop({ type: () => MarketingCut })\r\n\tpublic endorseLoss?: MarketingCut;\r\n}\r\n"]}
1
+ {"version":3,"file":"regular-order-finance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/regular-order-finance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,+DAAqD;AACrD,2DAA8D;AAC9D,qDAA4C;AAC5C,yEAA4F;AAC5F,+DAA4D;AAE5D,MAAa,mBAAoB,SAAQ,kCAAY;IAE7C,OAAO,CAAsB;IAG7B,aAAa,CAAsB;IAGnC,UAAU,CAAsB;IAGhC,GAAG,CAAO;IAGV,QAAQ,CAAgB;IAGxB,QAAQ,CAAgB;IAGxB,YAAY,CAAgB;IAG5B,MAAM,CAAiB;IAGvB,YAAY,CAAgB;IAG5B,gBAAgB,CAAgB;IAGhC,WAAW,CAAgB;CAClC;AAjCD,kDAiCC;AA/BO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,yCAAmB,EAAE,CAAC;8BAC1C,yCAAmB;oDAAC;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BAClB,iCAAkB;0DAAC;AAGnC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BACrB,iCAAkB;uDAAC;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,eAAG,EAAE,CAAC;8BACb,eAAG;gDAAC;AAGV;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACjB,kCAAY;qDAAC;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACjB,kCAAY;qDAAC;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACb,kCAAY;yDAAC;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,mCAAa,EAAE,CAAC;8BACpB,mCAAa;mDAAC;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACb,kCAAY;yDAAC;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACT,kCAAY;6DAAC;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACd,kCAAY;wDAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { OrderFinance } from './order-finance.model';\nimport { RegularOrderProfit } from '../embedded/profit.model';\nimport { Vat } from '../embedded/vat.model';\nimport { CouponDetails, LoyaltyPoint, MarketingCut } from '../embedded/marketing-cut.model';\nimport { RegularOrderPricing } from './order-pricing.model';\n\nexport class RegularOrderFinance extends OrderFinance {\n\t@prop({ required: true, type: () => RegularOrderPricing })\n\tpublic pricing: RegularOrderPricing;\n\t\n\t@prop({ type: () => RegularOrderProfit })\n\tpublic companyProfit?: RegularOrderProfit;\n\n\t@prop({ type: () => RegularOrderProfit })\n\tpublic shopProfit?: RegularOrderProfit;\n\n\t@prop({ type: () => Vat })\n\tpublic vat?: Vat;\n\n\t@prop({ type: () => MarketingCut })\n\tpublic discount?: MarketingCut;\n\n\t@prop({ type: () => MarketingCut })\n\tpublic buy1get1?: MarketingCut;\n\n\t@prop({ type: () => LoyaltyPoint })\n\tpublic loyaltyPoint?: LoyaltyPoint;\n\n\t@prop({ type: () => CouponDetails })\n\tpublic coupon?: CouponDetails;\n\n\t@prop({ type: () => MarketingCut })\n\tpublic freeDelivery?: MarketingCut;\n\n\t@prop({ type: () => MarketingCut })\n\tpublic replacementOrder?: MarketingCut;\n\n\t@prop({ type: () => MarketingCut })\n\tpublic endorseLoss?: MarketingCut;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"rider-assignment-model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/rider-assignment-model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsD;AACtD,gDAAuC;AACvC,qDAAmE;AAEnE,MAAa,eAAe;IAE3B,KAAK,CAA0B;IAQ/B,MAAM,CAAwB;IAG9B,SAAS,CAAO;IAGhB,MAAM,CAAU;CAChB;AAjBD,0CAiBC;AAfA;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,oBAAQ,CAAC,KAAK,CAAC,QAAQ;8CAAC;AAQ/B;IANC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,4BAAqB;QAC3B,OAAO,EAAE,4BAAqB,CAAC,SAAS;QACxC,QAAQ,EAAE,IAAI;KACd,CAAC;;+CAC4B;AAG9B;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC;8BACjC,IAAI;kDAAC;AAGhB;IADC,IAAA,gBAAI,GAAE;;+CACS","sourcesContent":["import { prop, mongoose } from '@typegoose/typegoose';\r\nimport { Rider } from '../rider.model';\r\nimport { RiderAssignmentStatus } from '../../../../utilities/enum';\r\n\r\nexport class RiderAssignment {\r\n\t@prop({ ref: () => Rider, required: true })\r\n\trider: mongoose.Types.ObjectId;\r\n\r\n\t@prop({\r\n\t\ttype: String,\r\n\t\tenum: RiderAssignmentStatus,\r\n\t\tdefault: RiderAssignmentStatus.REQUESTED,\r\n\t\trequired: true,\r\n\t})\r\n\tstatus: RiderAssignmentStatus;\r\n\r\n\t@prop({ required: true, default: Date.now })\r\n\ttimestamp: Date;\r\n\r\n\t@prop()\r\n\treason?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"rider-assignment-model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/rider-assignment-model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsD;AACtD,gDAAuC;AACvC,qDAAmE;AAEnE,MAAa,eAAe;IAE3B,KAAK,CAA0B;IAQ/B,MAAM,CAAwB;IAG9B,SAAS,CAAO;IAGhB,MAAM,CAAU;CAChB;AAjBD,0CAiBC;AAfA;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,oBAAQ,CAAC,KAAK,CAAC,QAAQ;8CAAC;AAQ/B;IANC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,4BAAqB;QAC3B,OAAO,EAAE,4BAAqB,CAAC,SAAS;QACxC,QAAQ,EAAE,IAAI;KACd,CAAC;;+CAC4B;AAG9B;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC;8BACjC,IAAI;kDAAC;AAGhB;IADC,IAAA,gBAAI,GAAE;;+CACS","sourcesContent":["import { prop, mongoose } from '@typegoose/typegoose';\nimport { Rider } from '../rider.model';\nimport { RiderAssignmentStatus } from '../../../../utilities/enum';\n\nexport class RiderAssignment {\n\t@prop({ ref: () => Rider, required: true })\n\trider: mongoose.Types.ObjectId;\n\n\t@prop({\n\t\ttype: String,\n\t\tenum: RiderAssignmentStatus,\n\t\tdefault: RiderAssignmentStatus.REQUESTED,\n\t\trequired: true,\n\t})\n\tstatus: RiderAssignmentStatus;\n\n\t@prop({ required: true, default: Date.now })\n\ttimestamp: Date;\n\n\t@prop()\n\treason?: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"rider-batches.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/rider-batches.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,oBAAoB;IAEhC,UAAU,CAAU;IAGpB,SAAS,CAAU;CACnB;AAND,oDAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;wDACvB;AAGpB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;uDACxB","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class RiderBatchesSettings {\r\n\t@prop({ type: Number, default: 0, min: 0 })\r\n\triderBatch?: number;\r\n\r\n\t@prop({ type: Number, default: 0, min: 0 })\r\n\tdelayTime?: number; // in mins\r\n}\r\n"]}
1
+ {"version":3,"file":"rider-batches.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/rider-batches.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,oBAAoB;IAEhC,UAAU,CAAU;IAGpB,SAAS,CAAU;CACnB;AAND,oDAMC;AAJA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;wDACvB;AAGpB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;uDACxB","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class RiderBatchesSettings {\n\t@prop({ type: Number, default: 0, min: 0 })\n\triderBatch?: number;\n\n\t@prop({ type: Number, default: 0, min: 0 })\n\tdelayTime?: number; // in mins\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":"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';\r\n\r\nexport class RiderSetting {\r\n\t@prop({ type: Number, default: 8, min: 0 })\r\n\tdailyWorkingHours?: number;\r\n\r\n\t@prop({ type: Number, default: Infinity, min: 0 })\r\n\tbobCashSettlementLimit?: number;\r\n\r\n\t@prop({ type: () => [Number], default: [] })\r\n\ttips?: number[];\r\n\r\n\t@prop({ type: () => [String], default: [] })\r\n\tequipments?: string[];\r\n}\r\n"]}
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';\r\nimport { ValueType } from '../../../../utilities/enum';\r\n\r\nexport class ServiceFeeSetting {\r\n\t@prop({ type: String, enum: ValueType, default: ValueType.PERCENTAGE })\r\n\tpublic valueType?: ValueType;\r\n\r\n\t@prop({ type: Number, min: 0 })\r\n\tpublic value?: number;\r\n}\r\n"]}
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,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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-summary.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/subscription-summary.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,mBAAmB;IAExB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,IAAI,CAAU;IAGd,aAAa,CAAU;IAGvB,IAAI,CAAU;IAGd,aAAa,CAAU;CAC9B;AAlBD,kDAkBC;AAhBO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACZ;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACH;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACd;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACL;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACd;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACL","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class SubscriptionSummary {\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic wallet?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic secondaryWallet?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic card?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic secondaryCard?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic cash?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic secondaryCash?: number;\r\n}\r\n"]}
1
+ {"version":3,"file":"subscription-summary.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/subscription-summary.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,mBAAmB;IAExB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,IAAI,CAAU;IAGd,aAAa,CAAU;IAGvB,IAAI,CAAU;IAGd,aAAa,CAAU;CAC9B;AAlBD,kDAkBC;AAhBO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACZ;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACH;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACd;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACL;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACd;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACL","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class SubscriptionSummary {\n\t@prop({ type: Number, default: 0 })\n\tpublic wallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic card?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCard?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic cash?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCash?: number;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"support-reason-info.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/support-reason-info.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,iBAAiB;IAEtB,QAAQ,CAAU;IAGlB,MAAM,CAAU;CACvB;AAND,8CAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;mDACd;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;iDAChB","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\n\r\nexport class SupportReasonInfo {\r\n\t@prop({ type: String, maxlength: 200 })\r\n\tpublic question?: string;\r\n\r\n\t@prop({ type: String, maxlength: 200 })\r\n\tpublic answer?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"support-reason-info.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/support-reason-info.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,iBAAiB;IAEtB,QAAQ,CAAU;IAGlB,MAAM,CAAU;CACvB;AAND,8CAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;mDACd;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;iDAChB","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class SupportReasonInfo {\n\t@prop({ type: String, maxlength: 200 })\n\tpublic question?: string;\n\n\t@prop({ type: String, maxlength: 200 })\n\tpublic answer?: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"trip-leg.mode.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/trip-leg.mode.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2D;AAC3D,gDAAuC;AACvC,gDAAuC;AACvC,qDAAoG;AACpG,8CAAqC;AACrC,8CAAqC;AAGrC,MAAa,OAAO;IAEnB,IAAI,CAAU;IAGd,OAAO,CAAU;IAGjB,QAAQ,CAAU;IAGlB,SAAS,CAAU;IAOnB,IAAI,CAAkB;IAGtB,KAAK,CAAc;IAGnB,MAAM,CAA6B;IAGnC,IAAI,CAAa;IAGjB,IAAI,CAAa;IAMjB,QAAQ,CAA0B;IAQlC,MAAM,CAAkB;IAGxB,aAAa,CAAa;IAG1B,aAAa,CAAa;IAG1B,qBAAqB,CAAc;IAGnC,QAAQ,CAAa;IAGrB,QAAQ,CAAa;IAKrB,gBAAgB,CAAc;CAC9B;AAjED,0BAiEC;AA/DA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qCACT;AAGd;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACN;AAGjB;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACrB;AAGlB;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACpB;AAOnB;IALC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,qBAAc;QACpB,OAAO,EAAE,qBAAc,CAAC,KAAK;KAC7B,CAAC;;qCACoB;AAGtB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;sCACR;AAGnB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;uCACQ;AAGnC;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;qCACT;AAGjB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;qCACT;AAMjB;IAJC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,6BAAsB;KAC5B,CAAC;;yCACgC;AAQlC;IANC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,qBAAc;QACpB,OAAO,EAAE,qBAAc,CAAC,OAAO;QAC/B,QAAQ,EAAE,IAAI;KACd,CAAC;;uCACsB;AAGxB;IADC,IAAA,gBAAI,GAAE;;8CACmB;AAG1B;IADC,IAAA,gBAAI,GAAE;;8CACmB;AAG1B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;;sDACQ;AAGnC;IADC,IAAA,gBAAI,GAAE;;yCACc;AAGrB;IADC,IAAA,gBAAI,GAAE;;yCACc;AAKrB;IAHC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;KAChB,CAAC;;iDAC4B","sourcesContent":["import { Ref, prop, mongoose } from '@typegoose/typegoose';\r\nimport { Order } from '../order.model';\r\nimport { Rider } from '../rider.model';\r\nimport { FaqAccountType, DeliveryStatus, UserAppSectionItemType } from '../../../../utilities/enum';\r\nimport { User } from '../user.model';\r\nimport { Shop } from '../shop.model';\r\nimport { IDistance, IDuration } from '../../../map/interfaces/IMapService';\r\n\r\nexport class TripLeg {\r\n\t@prop({ type: String })\r\n\tname?: string;\r\n\r\n\t@prop({ type: String })\r\n\taddress?: string;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tlatitude?: number;\r\n\r\n\t@prop({ required: true, type: Number })\r\n\tlongitude?: number;\r\n\r\n\t@prop({\r\n\t\ttype: String,\r\n\t\tenum: FaqAccountType,\r\n\t\tdefault: FaqAccountType.RIDER,\r\n\t})\r\n\ttype?: FaqAccountType;\r\n\r\n\t@prop({ ref: () => Rider })\r\n\trider?: Ref<Rider>;\r\n\r\n\t@prop({ ref: () => Order })\r\n\torders?: mongoose.Types.ObjectId[];\r\n\r\n\t@prop({ ref: () => User })\r\n\tuser?: Ref<User>;\r\n\r\n\t@prop({ ref: () => Shop })\r\n\tshop?: Ref<Shop>;\r\n\r\n\t@prop({\r\n\t\ttype: String,\r\n\t\tenum: UserAppSectionItemType,\r\n\t})\r\n\tshopType?: UserAppSectionItemType;\r\n\r\n\t@prop({\r\n\t\ttype: String,\r\n\t\tenum: DeliveryStatus,\r\n\t\tdefault: DeliveryStatus.PENDING,\r\n\t\trequired: true,\r\n\t})\r\n\tstatus?: DeliveryStatus;\r\n\r\n\t@prop()\r\n\ttotalDistance?: IDistance;\r\n\r\n\t@prop()\r\n\ttotalDuration?: IDuration;\r\n\r\n\t@prop({ type: [[Number]] })\r\n\ttotalOverviewPolyline?: number[][];\r\n\r\n\t@prop()\r\n\tdistance?: IDistance;\r\n\r\n\t@prop()\r\n\tduration?: IDuration;\r\n\r\n\t@prop({\r\n\t\ttype: [[Number]],\r\n\t})\r\n\toverviewPolyline?: number[][];\r\n}\r\n"]}
1
+ {"version":3,"file":"trip-leg.mode.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/trip-leg.mode.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2D;AAC3D,gDAAuC;AACvC,gDAAuC;AACvC,qDAAoG;AACpG,8CAAqC;AACrC,8CAAqC;AAGrC,MAAa,OAAO;IAEnB,IAAI,CAAU;IAGd,OAAO,CAAU;IAGjB,QAAQ,CAAU;IAGlB,SAAS,CAAU;IAOnB,IAA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C;;yCACgC;AAQlC;IANC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,qBAAc;QACpB,OAAO,EAAE,qBAAc,CAAC,OAAO;QAC/B,QAAQ,EAAE,IAAI;KACd,CAAC;;uCACsB;AAGxB;IADC,IAAA,gBAAI,GAAE;;8CACmB;AAG1B;IADC,IAAA,gBAAI,GAAE;;8CACmB;AAG1B;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;;sDACQ;AAGnC;IADC,IAAA,gBAAI,GAAE;;yCACc;AAGrB;IADC,IAAA,gBAAI,GAAE;;yCACc;AAKrB;IAHC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;KAChB,CAAC;;iDAC4B","sourcesContent":["import { Ref, prop, mongoose } from '@typegoose/typegoose';\nimport { Order } from '../order.model';\nimport { Rider } from '../rider.model';\nimport { FaqAccountType, DeliveryStatus, UserAppSectionItemType } from '../../../../utilities/enum';\nimport { User } from '../user.model';\nimport { Shop } from '../shop.model';\nimport { IDistance, IDuration } from '../../../map/interfaces/IMapService';\n\nexport class TripLeg {\n\t@prop({ type: String })\n\tname?: string;\n\n\t@prop({ type: String })\n\taddress?: string;\n\n\t@prop({ required: true, type: Number })\n\tlatitude?: number;\n\n\t@prop({ required: true, type: Number })\n\tlongitude?: number;\n\n\t@prop({\n\t\ttype: String,\n\t\tenum: FaqAccountType,\n\t\tdefault: FaqAccountType.RIDER,\n\t})\n\ttype?: FaqAccountType;\n\n\t@prop({ ref: () => Rider })\n\trider?: Ref<Rider>;\n\n\t@prop({ ref: () => Order })\n\torders?: mongoose.Types.ObjectId[];\n\n\t@prop({ ref: () => User })\n\tuser?: Ref<User>;\n\n\t@prop({ ref: () => Shop })\n\tshop?: Ref<Shop>;\n\n\t@prop({\n\t\ttype: String,\n\t\tenum: UserAppSectionItemType,\n\t})\n\tshopType?: UserAppSectionItemType;\n\n\t@prop({\n\t\ttype: String,\n\t\tenum: DeliveryStatus,\n\t\tdefault: DeliveryStatus.PENDING,\n\t\trequired: true,\n\t})\n\tstatus?: DeliveryStatus;\n\n\t@prop()\n\ttotalDistance?: IDistance;\n\n\t@prop()\n\ttotalDuration?: IDuration;\n\n\t@prop({ type: [[Number]] })\n\ttotalOverviewPolyline?: number[][];\n\n\t@prop()\n\tdistance?: IDistance;\n\n\t@prop()\n\tduration?: IDuration;\n\n\t@prop({\n\t\ttype: [[Number]],\n\t})\n\toverviewPolyline?: number[][];\n}\n"]}
@@ -1 +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';\r\n\r\nexport class Vat {\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic companyVat?: number;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic secondaryCompanyVat?: number;\r\n}\r\n"]}
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"]}