@lyxa.ai/core 1.0.58-beta → 1.0.60

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 (199) hide show
  1. package/dist/index.d.ts.map +1 -0
  2. package/dist/libraries/auth/index.d.ts.map +1 -0
  3. package/dist/libraries/auth/refreshtoken.d.ts.map +1 -0
  4. package/dist/libraries/auth/repository.d.ts.map +1 -0
  5. package/dist/libraries/configuration/index.d.ts.map +1 -0
  6. package/dist/libraries/configuration/types/EnvironmentConfigurationType.d.ts.map +1 -0
  7. package/dist/libraries/dispatcher/index.d.ts.map +1 -0
  8. package/dist/libraries/event/BaseEvent.d.ts.map +1 -0
  9. package/dist/libraries/event/decorators/metadata.d.ts.map +1 -0
  10. package/dist/libraries/event/decorators/subscribe.d.ts.map +1 -0
  11. package/dist/libraries/event/index.d.ts.map +1 -0
  12. package/dist/libraries/event/registry/SubscriptionRegistry.d.ts.map +1 -0
  13. package/dist/libraries/event/test/OrderCreationEvent.d.ts.map +1 -0
  14. package/dist/libraries/firebase/index.d.ts.map +1 -0
  15. package/dist/libraries/index.d.ts.map +1 -0
  16. package/dist/libraries/logger/index.d.ts.map +1 -0
  17. package/dist/libraries/map/index.d.ts.map +1 -0
  18. package/dist/libraries/map/interfaces/IMapService.d.ts.map +1 -0
  19. package/dist/libraries/map/mapService.d.ts.map +1 -0
  20. package/dist/libraries/map/providers/google-maps.d.ts.map +1 -0
  21. package/dist/libraries/map/providers/index.d.ts.map +1 -0
  22. package/dist/libraries/mongo/index.d.ts.map +1 -0
  23. package/dist/libraries/mongo/index.js +12 -16
  24. package/dist/libraries/mongo/index.js.map +1 -1
  25. package/dist/libraries/mongo/models/activity-log.model.d.ts.map +1 -0
  26. package/dist/libraries/mongo/models/admin-access-control.model.d.ts.map +1 -0
  27. package/dist/libraries/mongo/models/admin.model.d.ts.map +1 -0
  28. package/dist/libraries/mongo/models/app-screen-setting.model.d.ts.map +1 -0
  29. package/dist/libraries/mongo/models/attribute.model.d.ts.map +1 -0
  30. package/dist/libraries/mongo/models/banner.model.d.ts.map +1 -0
  31. package/dist/libraries/mongo/models/base/base-coupon.model.d.ts.map +1 -0
  32. package/dist/libraries/mongo/models/base/base-review.model.d.ts.map +1 -0
  33. package/dist/libraries/mongo/models/bob-finance.model.d.ts.map +1 -0
  34. package/dist/libraries/mongo/models/brand.model.d.ts.map +1 -0
  35. package/dist/libraries/mongo/models/card.model.d.ts.map +1 -0
  36. package/dist/libraries/mongo/models/cart-participant.model.d.ts.map +1 -0
  37. package/dist/libraries/mongo/models/cart.model.d.ts.map +1 -0
  38. package/dist/libraries/mongo/models/category.model.d.ts.map +1 -0
  39. package/dist/libraries/mongo/models/core-auth-identity.model.d.ts.map +1 -0
  40. package/dist/libraries/mongo/models/core-user.model.d.ts.map +1 -0
  41. package/dist/libraries/mongo/models/counter.model.d.ts.map +1 -0
  42. package/dist/libraries/mongo/models/coupon.model.d.ts.map +1 -0
  43. package/dist/libraries/mongo/models/deal-setting.model.d.ts.map +1 -0
  44. package/dist/libraries/mongo/models/dish.model.d.ts.map +1 -0
  45. package/dist/libraries/mongo/models/duration.model.d.ts +4 -0
  46. package/dist/libraries/mongo/models/duration.model.js +27 -0
  47. package/dist/libraries/mongo/models/duration.model.js.map +1 -0
  48. package/dist/libraries/mongo/models/embedded/addon.model.d.ts +8 -0
  49. package/dist/libraries/mongo/models/embedded/addon.model.js +34 -0
  50. package/dist/libraries/mongo/models/embedded/addon.model.js.map +1 -0
  51. package/dist/libraries/mongo/models/embedded/attribute-item.model.d.ts.map +1 -0
  52. package/dist/libraries/mongo/models/embedded/attribute-map.model.d.ts.map +1 -0
  53. package/dist/libraries/mongo/models/embedded/business-development-setting.model.d.ts.map +1 -0
  54. package/dist/libraries/mongo/models/embedded/charge.model.d.ts.map +1 -0
  55. package/dist/libraries/mongo/models/embedded/courier-setting.model.d.ts.map +1 -0
  56. package/dist/libraries/mongo/models/embedded/currency-setting.model.d.ts.map +1 -0
  57. package/dist/libraries/mongo/models/embedded/currency.model.d.ts.map +1 -0
  58. package/dist/libraries/mongo/models/embedded/delivery-charge-setting.model.d.ts.map +1 -0
  59. package/dist/libraries/mongo/models/embedded/delivery-info.model.d.ts.map +1 -0
  60. package/dist/libraries/mongo/models/embedded/featured-item.mode.d.ts.map +1 -0
  61. package/dist/libraries/mongo/models/embedded/line-item-attribute.model.d.ts.map +1 -0
  62. package/dist/libraries/mongo/models/embedded/marketing-cut.model.d.ts.map +1 -0
  63. package/dist/libraries/mongo/models/embedded/order-cancel.model.d.ts.map +1 -0
  64. package/dist/libraries/mongo/models/embedded/order-pricing.model.d.ts.map +1 -0
  65. package/dist/libraries/mongo/models/embedded/otp-fields.model.d.ts.map +1 -0
  66. package/dist/libraries/mongo/models/embedded/package.model.d.ts.map +1 -0
  67. package/dist/libraries/mongo/models/embedded/parent-document.model.d.ts.map +1 -0
  68. package/dist/libraries/mongo/models/embedded/payment-attempt.model.d.ts.map +1 -0
  69. package/dist/libraries/mongo/models/embedded/payment-infromation.model.d.ts.map +1 -0
  70. package/dist/libraries/mongo/models/embedded/payout-setting.model.d.ts.map +1 -0
  71. package/dist/libraries/mongo/models/embedded/portion.model.d.ts +5 -0
  72. package/dist/libraries/mongo/models/embedded/portion.model.js +32 -0
  73. package/dist/libraries/mongo/models/embedded/portion.model.js.map +1 -0
  74. package/dist/libraries/mongo/models/embedded/price-breakdown.model.d.ts.map +1 -0
  75. package/dist/libraries/mongo/models/embedded/price.model.d.ts +5 -0
  76. package/dist/libraries/mongo/models/embedded/price.model.js +32 -0
  77. package/dist/libraries/mongo/models/embedded/price.model.js.map +1 -0
  78. package/dist/libraries/mongo/models/embedded/product-nutrition.model.d.ts.map +1 -0
  79. package/dist/libraries/mongo/models/embedded/profit.model.d.ts.map +1 -0
  80. package/dist/libraries/mongo/models/embedded/referral-discount-config.model.d.ts.map +1 -0
  81. package/dist/libraries/mongo/models/embedded/rider-equipment.model.d.ts.map +1 -0
  82. package/dist/libraries/mongo/models/embedded/rider-setting.model.d.ts.map +1 -0
  83. package/dist/libraries/mongo/models/embedded/service-fee-setting.model.d.ts.map +1 -0
  84. package/dist/libraries/mongo/models/embedded/shop-document.model.d.ts.map +1 -0
  85. package/dist/libraries/mongo/models/embedded/status-timeline.model.d.ts.map +1 -0
  86. package/dist/libraries/mongo/models/embedded/subscription-summary.model.d.ts.map +1 -0
  87. package/dist/libraries/mongo/models/embedded/vat.model.d.ts.map +1 -0
  88. package/dist/libraries/mongo/models/embedded/zone-geometry.mode.d.ts.map +1 -0
  89. package/dist/libraries/mongo/models/faq.model.d.ts.map +1 -0
  90. package/dist/libraries/mongo/models/favourite.model.d.ts.map +1 -0
  91. package/dist/libraries/mongo/models/featured-setting.model.d.ts.map +1 -0
  92. package/dist/libraries/mongo/models/filter-container.model.d.ts.map +1 -0
  93. package/dist/libraries/mongo/models/finance-settlement.model.d.ts +1 -0
  94. package/dist/libraries/mongo/models/finance-settlement.model.d.ts.map +1 -0
  95. package/dist/libraries/mongo/models/finance-settlement.model.js +5 -0
  96. package/dist/libraries/mongo/models/finance-settlement.model.js.map +1 -1
  97. package/dist/libraries/mongo/models/gallery.model.d.ts.map +1 -0
  98. package/dist/libraries/mongo/models/index.d.ts.map +1 -0
  99. package/dist/libraries/mongo/models/line-item.model.d.ts.map +1 -0
  100. package/dist/libraries/mongo/models/list-container.model.d.ts.map +1 -0
  101. package/dist/libraries/mongo/models/loyalty-point-category.model.d.ts.map +1 -0
  102. package/dist/libraries/mongo/models/loyalty-point-setting.model.d.ts.map +1 -0
  103. package/dist/libraries/mongo/models/marketing.model.d.ts +1 -1
  104. package/dist/libraries/mongo/models/marketing.model.d.ts.map +1 -0
  105. package/dist/libraries/mongo/models/marketing.model.js +2 -2
  106. package/dist/libraries/mongo/models/marketing.model.js.map +1 -1
  107. package/dist/libraries/mongo/models/meal-plan.model.d.ts.map +1 -0
  108. package/dist/libraries/mongo/models/notification.model.d.ts.map +1 -0
  109. package/dist/libraries/mongo/models/nutrition.model.d.ts.map +1 -0
  110. package/dist/libraries/mongo/models/order-delivery.model.d.ts.map +1 -0
  111. package/dist/libraries/mongo/models/order-finance.model.d.ts.map +1 -0
  112. package/dist/libraries/mongo/models/order-payment.model.d.ts.map +1 -0
  113. package/dist/libraries/mongo/models/order.model.d.ts.map +1 -0
  114. package/dist/libraries/mongo/models/parent.model.d.ts.map +1 -0
  115. package/dist/libraries/mongo/models/payout.model.d.ts.map +1 -0
  116. package/dist/libraries/mongo/models/product-marketing.model.d.ts +2 -1
  117. package/dist/libraries/mongo/models/product-marketing.model.d.ts.map +1 -0
  118. package/dist/libraries/mongo/models/product-marketing.model.js +7 -2
  119. package/dist/libraries/mongo/models/product-marketing.model.js.map +1 -1
  120. package/dist/libraries/mongo/models/product.model.d.ts.map +1 -0
  121. package/dist/libraries/mongo/models/providers/areeba-card.model.d.ts.map +1 -0
  122. package/dist/libraries/mongo/models/providers/buy1-get1-marketing.model.d.ts.map +1 -0
  123. package/dist/libraries/mongo/models/providers/core-apple-auth-identity.model.d.ts.map +1 -0
  124. package/dist/libraries/mongo/models/providers/core-email-auth-identity.model.d.ts.map +1 -0
  125. package/dist/libraries/mongo/models/providers/core-google-auth-identity.model.d.ts.map +1 -0
  126. package/dist/libraries/mongo/models/providers/core-phone-auth-identity.model.d.ts.map +1 -0
  127. package/dist/libraries/mongo/models/providers/courier-order-finance.model.d.ts.map +1 -0
  128. package/dist/libraries/mongo/models/providers/courier-order.model.d.ts.map +1 -0
  129. package/dist/libraries/mongo/models/providers/custom-coupon.model.d.ts.map +1 -0
  130. package/dist/libraries/mongo/models/providers/discount-marketing.model.d.ts.map +1 -0
  131. package/dist/libraries/mongo/models/providers/featured-marketing.model.d.ts.map +1 -0
  132. package/dist/libraries/mongo/models/providers/free-delivery-marketing.model.d.ts.map +1 -0
  133. package/dist/libraries/mongo/models/providers/global-coupon.model.d.ts.map +1 -0
  134. package/dist/libraries/mongo/models/providers/individual-store-coupon.model.d.ts.map +1 -0
  135. package/dist/libraries/mongo/models/providers/individual-user-coupon.model.d.ts.map +1 -0
  136. package/dist/libraries/mongo/models/providers/loyalty-point-marketing.model.d.ts.map +1 -0
  137. package/dist/libraries/mongo/models/providers/loyalty-point-marketing.model.js.map +1 -1
  138. package/dist/libraries/mongo/models/providers/punch-marketing.model.d.ts.map +1 -0
  139. package/dist/libraries/mongo/models/providers/referral-code-coupon.model.d.ts.map +1 -0
  140. package/dist/libraries/mongo/models/providers/referral-reward-coupon.model.d.ts.map +1 -0
  141. package/dist/libraries/mongo/models/providers/regular-order-finance.model.d.ts.map +1 -0
  142. package/dist/libraries/mongo/models/providers/regular-order.model.d.ts.map +1 -0
  143. package/dist/libraries/mongo/models/punch-marketing-history.model.d.ts.map +1 -0
  144. package/dist/libraries/mongo/models/rating-setting.model.d.ts.map +1 -0
  145. package/dist/libraries/mongo/models/referral-setting.model.d.ts.map +1 -0
  146. package/dist/libraries/mongo/models/request-area.model.d.ts.map +1 -0
  147. package/dist/libraries/mongo/models/rider-review.model.d.ts.map +1 -0
  148. package/dist/libraries/mongo/models/rider-timeout.model.d.ts.map +1 -0
  149. package/dist/libraries/mongo/models/rider-tracking.model.d.ts.map +1 -0
  150. package/dist/libraries/mongo/models/rider.model.d.ts.map +1 -0
  151. package/dist/libraries/mongo/models/role.model.d.ts.map +1 -0
  152. package/dist/libraries/mongo/models/setting.model.d.ts.map +1 -0
  153. package/dist/libraries/mongo/models/shared/address.model.d.ts.map +1 -0
  154. package/dist/libraries/mongo/models/shared/duration.model.d.ts.map +1 -0
  155. package/dist/libraries/mongo/models/shared/geo-location.model.d.ts.map +1 -0
  156. package/dist/libraries/mongo/models/shared/work-hour.model.d.ts.map +1 -0
  157. package/dist/libraries/mongo/models/shop-access-control.model.d.ts.map +1 -0
  158. package/dist/libraries/mongo/models/shop-category.model.d.ts.map +1 -0
  159. package/dist/libraries/mongo/models/shop-meal-plan.model.d.ts.map +1 -0
  160. package/dist/libraries/mongo/models/shop-product.model.d.ts +25 -0
  161. package/dist/libraries/mongo/models/shop-product.model.js +102 -0
  162. package/dist/libraries/mongo/models/shop-product.model.js.map +1 -0
  163. package/dist/libraries/mongo/models/shop-review.model.d.ts.map +1 -0
  164. package/dist/libraries/mongo/models/shop.model.d.ts.map +1 -0
  165. package/dist/libraries/mongo/models/subscription-setting.model.d.ts.map +1 -0
  166. package/dist/libraries/mongo/models/subscription.model.d.ts.map +1 -0
  167. package/dist/libraries/mongo/models/tag.model.d.ts.map +1 -0
  168. package/dist/libraries/mongo/models/transaction.model.d.ts.map +1 -0
  169. package/dist/libraries/mongo/models/user.model.d.ts.map +1 -0
  170. package/dist/libraries/mongo/models/work-hour.model.d.ts +21 -0
  171. package/dist/libraries/mongo/models/work-hour.model.js +76 -0
  172. package/dist/libraries/mongo/models/work-hour.model.js.map +1 -0
  173. package/dist/libraries/mongo/models/zone.model.d.ts.map +1 -0
  174. package/dist/libraries/mongo/plugins/soft-delete-plugin.d.ts.map +1 -0
  175. package/dist/libraries/redis/index.d.ts.map +1 -0
  176. package/dist/libraries/secrets/index.d.ts.map +1 -0
  177. package/dist/libraries/trpc/context.d.ts.map +1 -0
  178. package/dist/libraries/trpc/index.d.ts.map +1 -0
  179. package/dist/libraries/trpc/middlewares/auth.d.ts.map +1 -0
  180. package/dist/libraries/trpc/middlewares/cors.d.ts.map +1 -0
  181. package/dist/libraries/trpc/middlewares/phone-verified.d.ts.map +1 -0
  182. package/dist/libraries/twilio/index.d.ts.map +1 -0
  183. package/dist/libraries/upload/index.d.ts.map +1 -0
  184. package/dist/utilities/common/password.d.ts.map +1 -0
  185. package/dist/utilities/common/week.d.ts.map +1 -0
  186. package/dist/utilities/enum.d.ts.map +1 -0
  187. package/dist/utilities/error-handler.d.ts.map +1 -0
  188. package/dist/utilities/error-middleware.d.ts.map +1 -0
  189. package/dist/utilities/pagination.d.ts.map +1 -0
  190. package/dist/utilities/response.d.ts.map +1 -0
  191. package/dist/utilities/search.d.ts.map +1 -0
  192. package/dist/utilities/transformers.d.ts.map +1 -0
  193. package/dist/utilities/validation/common-validation.d.ts.map +1 -0
  194. package/dist/utilities/validation/global-validation.d.ts.map +1 -0
  195. package/dist/utilities/validation/index.d.ts.map +1 -0
  196. package/package.json +1 -1
  197. package/dist/libraries/mongo/models/terms-condition.model.d.ts +0 -8
  198. package/dist/libraries/mongo/models/terms-condition.model.js +0 -51
  199. package/dist/libraries/mongo/models/terms-condition.model.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,EAAE,oBAAoB,EAAwB,MAAM,2BAA2B,CAAC;AAavF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,8DAA8D,CAAC;AAC5G,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAE5G,wBAAsB,aAAa,CAAC,OAAO,CAAC,EAAE,oBAAoB,iBAyBjE;AAED,wBAAsB,iBAAiB,CAAC,OAAO,CAAC,EAAE,oBAAoB,iBA+DrE;AAED,wBAAgB,YAAY,IAAI,cAAc,CAE7C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["libraries/auth/index.ts"],"names":[],"mappings":"AAAA,OAAY,EAAE,WAAW,EAAc,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI9C,oBAAY,cAAc;IACzB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,GAAG,QAAQ;CACX;AAED,oBAAY,SAAS;IACpB,MAAM,WAAW;IACjB,OAAO,YAAY;CACnB;AAED,MAAM,WAAW,kBAAkB;IAClC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-0,0 +1 @@
1
+ {"version":3,"file":"refreshtoken.d.ts","sourceRoot":"/","sources":["libraries/auth/refreshtoken.ts"],"names":[],"mappings":"AAAA,OAAO,EAMN,YAAY,EACZ,eAAe,EACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAErE,OAAO,EAAE,cAAc,EAAqB,MAAM,SAAS,CAAC;AAE5D,qBAaa,YAAa,SAAQ,UAAU;IAEpC,KAAK,EAAG,MAAM,CAAC;IAGf,QAAQ,EAAG,MAAM,CAAC;IAOlB,UAAU,EAAG,cAAc,CAAC;IAG5B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,SAAS,EAAG,OAAO,CAAC;IAGpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;WAKtB,cAAc,CACjC,IAAI,EAAE,eAAe,CAAC,OAAO,YAAY,CAAC,EAC1C,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;WAYzB,kBAAkB,CACrC,IAAI,EAAE,eAAe,CAAC,OAAO,YAAY,CAAC,EAC1C,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,cAAc,GACxB,OAAO,CAAC,MAAM,CAAC;IASX,SAAS,IAAI,OAAO;WASP,oBAAoB,CACvC,IAAI,EAAE,eAAe,CAAC,OAAO,YAAY,CAAC,EAC1C,SAAS,CAAC,EAAE,IAAI,GACd,OAAO,CAAC,MAAM,CAAC;CAUlB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository.d.ts","sourceRoot":"/","sources":["libraries/auth/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,qBAC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EAAE,MAAM,CAAC;SAC9B,CAAC;QACF,IAAI,EAAE;YACL,2BAA2B,EAAE,cAAc,CAAC;YAC5C,oBAAoB,CAAC,EAAE,MAAM,CAAC;SAC9B,CAAC;QACF,IAAI,EAAE;YACL,2BAA2B,EAAE,cAAc,CAAC;YAC5C,oBAAoB,CAAC,EAAE,MAAM,CAAC;SAC9B,CAAC;QACF,KAAK,EAAE;YACN,2BAA2B,EAAE,cAAc,CAAC;YAC5C,oBAAoB,CAAC,EAAE,MAAM,CAAC;SAC9B,CAAC;KACF,CAAC;IACF,WAAW,EAAE,4BAA4B,CAAC;CAC1C;AAED,qBACa,oBAAoB;IAChC,OAAO,CAAC,QAAQ,CAAC,eAAe,CA2C9B;IAEF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuB;gBAEpC,OAAO,CAAC,EAAE,oBAAoB;IAO1C,IAAI,OAAO,IAAI,oBAAoB,CAElC;CACD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentConfigurationType.d.ts","sourceRoot":"/","sources":["libraries/configuration/types/EnvironmentConfigurationType.ts"],"names":[],"mappings":"AAAA,oBAAY,4BAA4B;IACvC,KAAK,UAAU;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,IAAI,SAAS;CACb"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["libraries/dispatcher/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,qBACa,sBAAsB;IAClC,OAAO,CAAC,cAAc,CAAuB;gBAEjC,aAAa,EAAE,oBAAoB;IAIlC,eAAe,CAAC,CAAC,SAAS,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;CAsBzF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseEvent.d.ts","sourceRoot":"/","sources":["libraries/event/BaseEvent.ts"],"names":[],"mappings":"AAAA,8BAAsB,SAAS,CAAC,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACvE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAW;IAEpC,SAAS,aAAa,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ;IAKxD,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,OAAO,IAAI,QAAQ,CAEtB;CACD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.d.ts","sourceRoot":"/","sources":["libraries/event/decorators/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAED,qBAAa,aAAa;IAEzB,OAAO,CAAC,MAAM,CAAC,cAAc,CAAwC;WAEvD,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,IAAI;WAInE,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS;CAGxE;AAQD,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,GAAE,cAAc,EAAO,IAC9D,CAAC,SAAS;IAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC,GAAG,CAAC,CAAA;CAAE,EAAE,aAAa,CAAC,UAGnF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscribe.d.ts","sourceRoot":"/","sources":["libraries/event/decorators/subscribe.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,IACvB,QAAQ,GAAG,EAAE,aAAa,MAAM,EAAE,YAAY,kBAAkB,UAGjF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["libraries/event/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAOxC,wBAAsB,YAAY,CAAC,SAAS,EAAE,MAAM,iBAOnD;AAED,wBAAsB,YAAY,CAAC,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1E,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,GACxB,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,wBAAsB,gBAAgB,CACrC,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,GACxC,OAAO,CAAC,IAAI,CAAC,CAgCf"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionRegistry.d.ts","sourceRoot":"/","sources":["libraries/event/registry/SubscriptionRegistry.ts"],"names":[],"mappings":"AAAA,UAAU,oBAAoB;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,QAAQ,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,oBAAoB;IAChC,OAAO,CAAC,MAAM,CAAC,aAAa,CAA8B;WAM5C,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM;WAYzE,mBAAmB,IAAI,oBAAoB,EAAE;CAG3D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderCreationEvent.d.ts","sourceRoot":"/","sources":["libraries/event/test/OrderCreationEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC,MAAM,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,qBAIa,kBAAmB,SAAQ,SAAS,CAAC,wBAAwB,CAAC;gBAC9D,UAAU,EAAE,wBAAwB;CAGhD;AASD,qBAAa,gBAAgB;IAErB,4BAA4B,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAGvE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["libraries/firebase/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAC;AAGxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAKxD,qBACa,eAAe;IAMf,OAAO,CAAC,aAAa;IALjC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgB;IAC1C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IACzC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IACzC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgB;gBAEtB,aAAa,EAAE,oBAAoB;IA0CvD,IAAI,QAAQ,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,CAE5B;IAED,IAAI,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,CAE3B;IAED,IAAI,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,CAE3B;IAED,IAAI,QAAQ,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,CAE5B;CACD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["libraries/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,qBACa,cAAc;IACnB,SAAS,IAAI,UAAU;IAGvB,yBAAyB,IAAI,sBAAsB;IAGnD,gBAAgB,IAAI,aAAa;IAGjC,iBAAiB,IAAI,oBAAoB;IAGzC,eAAe,IAAI,YAAY;IAG/B,uBAAuB,IAAI,oBAAoB;IAG/C,kBAAkB,IAAI,eAAe;IAGrC,sBAAsB,IAAI,eAAe;IAGzC,sBAAsB,IAAI,aAAa;IAGvC,qBAAqB,IAAI,aAAa;IAGtC,aAAa,IAAI,UAAU;CAGlC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["libraries/logger/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,MAAM,EAAE,MAAM,MAAM,CAAC;AAGpC,qBACa,UAAU;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;gBAE1B,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAyChD,OAAO,CAAC,wBAAwB;IAQhC,IAAI,MAAM,IAAI,MAAM,CAEnB;CACD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["libraries/map/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMapService.d.ts","sourceRoot":"/","sources":["libraries/map/interfaces/IMapService.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM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MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM;IA8BhG,eAAe,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IAYtF,wBAAwB,CAC7B,MAAM,EAAE,WAAW,EACnB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,GAC3B,OAAO,CAAC,qBAAqB,CAAC;CAGjC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-maps.d.ts","sourceRoot":"/","sources":["libraries/map/providers/google-maps.ts"],"names":[],"mappings":"AACA,OAAO,EACN,WAAW,EACX,WAAW,EAIX,aAAa,EACb,qBAAqB,EACrB,MAAM,2BAA2B,CAAC;AAGnC,qBAAa,iBAAkB,YAAW,WAAW;IACpD,OAAO,CAAC,OAAO,CAAqB;gBAExB,MAAM,EAAE,MAAM;IAIb,eAAe,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IA2BtF,wBAAwB,CACpC,MAAM,EAAE,WAAW,EACnB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,GAC3B,OAAO,CAAC,qBAAqB,CAAC;CA2EjC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["libraries/map/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["libraries/mongo/index.ts"],"names":[],"mappings":"AAAA,OAAiB,EAAE,UAAU,EAAoB,MAAM,UAAU,CAAC;AAClE,OAAO,EAAmD,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACxG,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAgCpF,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAmDhG;AAMD,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,mBAAmB,CAAC,GAAG,CAAC,EACnE,KAAK,EAAE,CAAC,EACR,OAAO,CAAC,EAAE,aAAa,GACrB,eAAe,CAAC,CAAC,CAAC,CA8CpB;AAMD,wBAAgB,8BAA8B,CAC7C,IAAI,SAAS,mBAAmB,CAAC,GAAG,CAAC,EACrC,GAAG,SAAS,mBAAmB,CAAC,GAAG,CAAC,EAEpC,SAAS,EAAE,eAAe,CAAC,IAAI,CAAC,EAChC,QAAQ,EAAE,GAAG,EACb,iBAAiB,CAAC,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,aAAa,GACrB,eAAe,CAAC,GAAG,CAAC,CAwDtB"}
@@ -26,9 +26,6 @@ async function initGlobalConnection(uri, environment) {
26
26
  existingConnection: globalConnection,
27
27
  ...options,
28
28
  });
29
- if (!model.schema.path('deletedAt')) {
30
- soft_delete_plugin_1.SoftDelete.applyToSchema(model.schema);
31
- }
32
29
  resolve(model);
33
30
  }
34
31
  pendingModels.clear();
@@ -39,9 +36,6 @@ async function initGlobalConnection(uri, environment) {
39
36
  existingConnection: globalConnection,
40
37
  ...options,
41
38
  });
42
- if (!model.schema.path('deletedAt')) {
43
- soft_delete_plugin_1.SoftDelete.applyToSchema(model.schema);
44
- }
45
39
  resolve(model);
46
40
  }
47
41
  catch (error) {
@@ -59,14 +53,10 @@ async function initGlobalConnection(uri, environment) {
59
53
  function createGlobalModel(Class, options) {
60
54
  const modelName = options?.schemaOptions?.collection || Class.name;
61
55
  if (globalConnection) {
62
- const model = (0, typegoose_1.getModelForClass)(Class, {
56
+ return (0, typegoose_1.getModelForClass)(Class, {
63
57
  existingConnection: globalConnection,
64
58
  ...options,
65
59
  });
66
- if (!model.schema.path('deletedAt')) {
67
- soft_delete_plugin_1.SoftDelete.applyToSchema(model.schema);
68
- }
69
- return model;
70
60
  }
71
61
  console.log(`Registering model ${modelName} to be initialized when global connection is ready`);
72
62
  let actualModel = null;
@@ -96,14 +86,20 @@ function createGlobalModel(Class, options) {
96
86
  function createGlobalDiscriminatorModel(baseModel, subClass, discriminatorName, options) {
97
87
  const modelName = discriminatorName || subClass.name;
98
88
  if (globalConnection) {
99
- const model = (0, typegoose_1.getDiscriminatorModelForClass)(baseModel, subClass, discriminatorName, {
89
+ if (baseModel instanceof Promise || baseModel.then) {
90
+ const discriminatorPromise = (async () => {
91
+ const resolvedBaseModel = await baseModel;
92
+ return (0, typegoose_1.getDiscriminatorModelForClass)(resolvedBaseModel, subClass, discriminatorName, {
93
+ existingConnection: globalConnection,
94
+ ...options,
95
+ });
96
+ })();
97
+ return createProxyForPromise(discriminatorPromise);
98
+ }
99
+ return (0, typegoose_1.getDiscriminatorModelForClass)(baseModel, subClass, discriminatorName, {
100
100
  existingConnection: globalConnection,
101
101
  ...options,
102
102
  });
103
- if (!model.schema.path('deletedAt')) {
104
- soft_delete_plugin_1.SoftDelete.applyToSchema(model.schema);
105
- }
106
- return model;
107
103
  }
108
104
  console.log(`Registering discriminator model ${modelName} to be initialized when global connection is ready`);
109
105
  let actualModel = null;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["libraries/mongo/index.ts"],"names":[],"mappings":";;AAkCA,oDA6DC;AAMD,8CAwDC;AAMD,wEAuDC;AA1ND,uCAAkE;AAClE,oDAAwG;AAExG,qEAAiF;AAGjF,IAAA,0CAAqB,GAAE,CAAC;AAGxB,IAAI,gBAAwC,CAAC;AAC7C,IAAI,iBAAiB,GAA+B,IAAI,CAAC;AACzD,IAAI,aAAa,GAAG,IAAI,GAAG,EAOxB,CAAC;AAEJ,IAAI,0BAA0B,GAAG,IAAI,GAAG,EASrC,CAAC;AAKG,KAAK,UAAU,oBAAoB,CAAC,GAAW,EAAE,WAAmB;IAC1E,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACxB,iBAAiB,GAAG,IAAI,OAAO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AS,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;gBAC7C,CAAC;gBACD,OAAO,SAAS,CAAC;YAClB,CAAC,CAAC;QACH,CAAC;KACD,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import mongoose, { Connection, createConnection } from 'mongoose';\nimport { getDiscriminatorModelForClass, getModelForClass, ReturnModelType } from '@typegoose/typegoose';\nimport { AnyParamConstructor, IModelOptions } from '@typegoose/typegoose/lib/types';\nimport { applySoftDeletePlugin, SoftDelete } from './plugins/soft-delete-plugin';\n\n// Apply the soft delete plugin globally before any connections or models\napplySoftDeletePlugin();\n\n// Track connection status\nlet globalConnection: Connection | undefined;\nlet connectionPromise: Promise<Connection> | null = null;\nlet pendingModels = new Map<\n\tstring,\n\t{\n\t\tClass: AnyParamConstructor<any>;\n\t\toptions?: IModelOptions;\n\t\tresolve: (model: any) => void;\n\t}\n>();\n\nlet pendingDiscriminatorModels = new Map<\n\tstring,\n\t{\n\t\tbaseModelPromise: Promise<any>; // Store the promise for the base model\n\t\tsubClass: AnyParamConstructor<any>;\n\t\tdiscriminatorName?: string;\n\t\toptions?: IModelOptions;\n\t\tresolve: (model: any) => void;\n\t}\n>();\n\n/**\n * Initialize the global database connection\n */\nexport async function initGlobalConnection(uri: string, environment: string): Promise<Connection> {\n\tif (!connectionPromise) {\n\t\tconnectionPromise = new Promise<Connection>(resolve => {\n\t\t\tconsole.log(`Initializing global connection for environment: ${environment}`);\n\t\t\tconst connection = createConnection(uri, {\n\t\t\t\tdbName: `lyxa-${environment}-global`,\n\t\t\t});\n\n\t\t\tconnection.once('connected', async () => {\n\t\t\t\tconsole.log('Global connection successfully established');\n\t\t\t\tglobalConnection = connection;\n\n\t\t\t\t// Initialize any pending models with the real connection\n\t\t\t\tfor (const [modelName, { Class, options, resolve }] of pendingModels.entries()) {\n\t\t\t\t\tconst model = getModelForClass(Class, {\n\t\t\t\t\t\texistingConnection: globalConnection,\n\t\t\t\t\t\t...options,\n\t\t\t\t\t});\n\t\t\t\t\t// Apply soft delete plugin if not present\n\t\t\t\t\tif (!model.schema.path('deletedAt')) {\n\t\t\t\t\t\tSoftDelete.applyToSchema(model.schema);\n\t\t\t\t\t}\n\t\t\t\t\tresolve(model);\n\t\t\t\t}\n\t\t\t\tpendingModels.clear();\n\n\t\t\t\t// Initialize any pending discriminator models\n\t\t\t\t// Process discriminators sequentially to ensure dependencies are resolved\n\t\t\t\tfor (const [\n\t\t\t\t\tmodelName,\n\t\t\t\t\t{ baseModelPromise, subClass, discriminatorName, options, resolve },\n\t\t\t\t] of pendingDiscriminatorModels.entries()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// Await the base model to be fully resolved\n\t\t\t\t\t\tconst actualBaseModel = await baseModelPromise;\n\n\t\t\t\t\t\t// Create the discriminator model with the actual base model\n\t\t\t\t\t\tconst model = getDiscriminatorModelForClass(actualBaseModel, subClass, discriminatorName, {\n\t\t\t\t\t\t\texistingConnection: globalConnection,\n\t\t\t\t\t\t\t...options,\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\t// Apply soft delete plugin if not present\n\t\t\t\t\t\tif (!model.schema.path('deletedAt')) {\n\t\t\t\t\t\t\tSoftDelete.applyToSchema(model.schema);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tresolve(model);\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tconsole.error(`Failed to create discriminator model ${modelName}:`, error);\n\t\t\t\t\t\t// Resolve with error to unblock the promise chain\n\t\t\t\t\t\tresolve(Promise.reject(error));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpendingDiscriminatorModels.clear();\n\n\t\t\t\tresolve(connection);\n\t\t\t});\n\t\t});\n\t}\n\treturn connectionPromise;\n}\n\n/**\n * Creates a Typegoose model that will use the global connection when it's ready.\n * Safe to call during module initialization before initGlobalConnection.\n */\nexport function createGlobalModel<T extends AnyParamConstructor<any>>(\n\tClass: T,\n\toptions?: IModelOptions\n): ReturnModelType<T> {\n\tconst modelName = options?.schemaOptions?.collection || Class.name;\n\n\t// If the connection is already initialized, create the model directly\n\tif (globalConnection) {\n\t\tconst model = getModelForClass(Class, {\n\t\t\texistingConnection: globalConnection,\n\t\t\t...options,\n\t\t});\n\n\t\t// Apply soft delete plugin if not already applied\n\t\tif (!model.schema.path('deletedAt')) {\n\t\t\tSoftDelete.applyToSchema(model.schema);\n\t\t}\n\n\t\treturn model;\n\t}\n\n\tconsole.log(`Registering model ${modelName} to be initialized when global connection is ready`);\n\n\t// Create a lazy-loaded model instance that will initialize once the connection is ready\n\tlet actualModel: ReturnModelType<T> | null = null;\n\tlet modelReadyPromise: Promise<ReturnModelType<T>>;\n\n\t// Setup the promise that will resolve once the model is ready\n\tmodelReadyPromise = new Promise<ReturnModelType<T>>(resolve => {\n\t\t// Register this model to be initialized when connection is ready\n\t\tpendingModels.set(modelName, { Class, options, resolve });\n\t});\n\n\t// Create a proxy that forwards operations to the real model once it's available\n\tconst modelProxy = new Proxy({} as ReturnModelType<T>, {\n\t\tget(target, prop, receiver) {\n\t\t\t// Handle special case for 'then' to make the proxy thenable\n\t\t\tif (prop === 'then') {\n\t\t\t\treturn modelReadyPromise.then.bind(modelReadyPromise);\n\t\t\t}\n\n\t\t\treturn async function (...args: any[]) {\n\t\t\t\tif (!actualModel) {\n\t\t\t\t\tactualModel = await modelReadyPromise;\n\t\t\t\t}\n\n\t\t\t\tconst propValue = (actualModel as any)[prop];\n\t\t\t\tif (typeof propValue === 'function') {\n\t\t\t\t\treturn propValue.apply(actualModel, args);\n\t\t\t\t}\n\t\t\t\treturn propValue;\n\t\t\t};\n\t\t},\n\t});\n\n\treturn modelProxy;\n}\n\n/**\n * Creates a Typegoose discriminator model that will use the global connection when it's ready.\n * Safe to call during module initialization before initGlobalConnection.\n */\nexport function createGlobalDiscriminatorModel<\n\tBase extends AnyParamConstructor<any>,\n\tSub extends AnyParamConstructor<any>,\n>(\n\tbaseModel: ReturnModelType<Base>,\n\tsubClass: Sub,\n\tdiscriminatorName?: string,\n\toptions?: IModelOptions\n): ReturnModelType<Sub> {\n\tconst modelName = discriminatorName || subClass.name;\n\n\t// If the connection is already initialized, create the model directly\n\tif (globalConnection) {\n\t\tconst model = getDiscriminatorModelForClass(baseModel, subClass, discriminatorName, {\n\t\t\texistingConnection: globalConnection,\n\t\t\t...options,\n\t\t});\n\n\t\t// Apply soft delete plugin if not already applied\n\t\tif (!model.schema.path('deletedAt')) {\n\t\t\tSoftDelete.applyToSchema(model.schema);\n\t\t}\n\n\t\treturn model;\n\t}\n\n\tconsole.log(\n\t\t`Registering discriminator model ${modelName} to be initialized when global connection is ready`\n\t);\n\n\t// Create a lazy-loaded model instance that will initialize once the connection is ready\n\tlet actualModel: ReturnModelType<Sub> | null = null;\n\tlet modelReadyPromise: Promise<ReturnModelType<Sub>>;\n\n\t// Handle the case where baseModel might be a proxy or promise\n\tlet baseModelPromise: Promise<any>;\n\tif (baseModel instanceof Promise || (baseModel as any).then) {\n\t\tbaseModelPromise = Promise.resolve(baseModel);\n\t} else {\n\t\tbaseModelPromise = Promise.resolve(baseModel);\n\t}\n\n\t// Setup the promise that will resolve once the model is ready\n\tmodelReadyPromise = new Promise<ReturnModelType<Sub>>(resolve => {\n\t\t// Register this discriminator model to be initialized when connection is ready\n\t\tpendingDiscriminatorModels.set(modelName, {\n\t\t\tbaseModelPromise,\n\t\t\tsubClass,\n\t\t\tdiscriminatorName,\n\t\t\toptions,\n\t\t\tresolve,\n\t\t});\n\t});\n\n\treturn createProxyForPromise(modelReadyPromise);\n}\n\n/**\n * Helper function to create a proxy for a promise that will resolve to a model\n */\nfunction createProxyForPromise<T extends object>(promise: Promise<T>): T {\n\tlet resolvedValue: T | null = null;\n\n\treturn new Proxy({} as T, {\n\t\tget(target, prop, receiver) {\n\t\t\t// Handle special case for 'then' to make the proxy thenable\n\t\t\tif (prop === 'then') {\n\t\t\t\treturn promise.then.bind(promise);\n\t\t\t}\n\n\t\t\treturn async function (...args: any[]) {\n\t\t\t\tif (!resolvedValue) {\n\t\t\t\t\tresolvedValue = await promise;\n\t\t\t\t}\n\n\t\t\t\tconst propValue = (resolvedValue as any)[prop];\n\t\t\t\tif (typeof propValue === 'function') {\n\t\t\t\t\treturn propValue.apply(resolvedValue, args);\n\t\t\t\t}\n\t\t\t\treturn propValue;\n\t\t\t};\n\t\t},\n\t});\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["libraries/mongo/index.ts"],"names":[],"mappings":";;AAkCA,oDAmDC;AAMD,8CAiDC;AAMD,wEAgEC;AAlND,uCAAkE;AAClE,oDAAwG;AAExG,qEAAqE;AAGrE,IAAA,0CAAqB,GAAE,CAAC;AAGxB,IAAI,gBAAwC,CAAC;AAC7C,IAAI,iBAAiB,GAA+B,IAAI,CAAC;AACzD,IAAI,aAAa,GAAG,IAAI,GAAG,EAOxB,CAAC;AAEJ,IAAI,0BAA0B,GAAG,IAAI,GAAG,EASrC,CAAC;AAKG,KAAK,UAAU,oBAAoB,CAAC,GAAW,EAAE,WAAmB;IAC1E,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACxB,iBAAiB,GAAG,IAAI,OAAO,CAAa,OAAO,CAAC,EAAE;YACrD,OAAO,CAAC,GAAG,CAAC,mDAAmD,WAAW,EAAE,CAAC,CAAC;YAC9E,MAAM,UAAU,GAAG,IAAA,2BAAgB,EAAC,GAAG,EAAE;gBACxC,MAAM,EAAE,QAAQ,WAAW,SAAS;aACpC,CAAC,CAAC;YAEH,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,IAAI,EAAE;gBACvC,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;gBAC1D,gBAAgB,GAAG,UAAU,CAAC;gBAG9B,KAAK,MAAM,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,IAAI,aAAa,CAAC,OAAO,EAAE,EAAE,CAAC;oBAChF,MAAM,KAAK,GAAG,IAAA,4BAAgB,EAAC,KAAK,EAA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E;QACzB,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ;YAEzB,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;gBACrB,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACnC,CAAC;YAED,OAAO,KAAK,WAAW,GAAG,IAAW;gBACpC,IAAI,CAAC,aAAa,EAAE,CAAC;oBACpB,aAAa,GAAG,MAAM,OAAO,CAAC;gBAC/B,CAAC;gBAED,MAAM,SAAS,GAAI,aAAqB,CAAC,IAAI,CAAC,CAAC;gBAC/C,IAAI,OAAO,SAAS,KAAK,UAAU,EAAE,CAAC;oBACrC,OAAO,SAAS,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;gBAC7C,CAAC;gBACD,OAAO,SAAS,CAAC;YAClB,CAAC,CAAC;QACH,CAAC;KACD,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import mongoose, { Connection, createConnection } from 'mongoose';\nimport { getDiscriminatorModelForClass, getModelForClass, ReturnModelType } from '@typegoose/typegoose';\nimport { AnyParamConstructor, IModelOptions } from '@typegoose/typegoose/lib/types';\nimport { applySoftDeletePlugin } from './plugins/soft-delete-plugin';\n\n// Apply the soft delete plugin globally before any connections or models\napplySoftDeletePlugin();\n\n// Track connection status\nlet globalConnection: Connection | undefined;\nlet connectionPromise: Promise<Connection> | null = null;\nlet pendingModels = new Map<\n\tstring,\n\t{\n\t\tClass: AnyParamConstructor<any>;\n\t\toptions?: IModelOptions;\n\t\tresolve: (model: any) => void;\n\t}\n>();\n\nlet pendingDiscriminatorModels = new Map<\n\tstring,\n\t{\n\t\tbaseModelPromise: Promise<any>; // Store the promise for the base model\n\t\tsubClass: AnyParamConstructor<any>;\n\t\tdiscriminatorName?: string;\n\t\toptions?: IModelOptions;\n\t\tresolve: (model: any) => void;\n\t}\n>();\n\n/**\n * Initialize the global database connection\n */\nexport async function initGlobalConnection(uri: string, environment: string): Promise<Connection> {\n\tif (!connectionPromise) {\n\t\tconnectionPromise = new Promise<Connection>(resolve => {\n\t\t\tconsole.log(`Initializing global connection for environment: ${environment}`);\n\t\t\tconst connection = createConnection(uri, {\n\t\t\t\tdbName: `lyxa-${environment}-global`,\n\t\t\t});\n\n\t\t\tconnection.once('connected', async () => {\n\t\t\t\tconsole.log('Global connection successfully established');\n\t\t\t\tglobalConnection = connection;\n\n\t\t\t\t// Initialize any pending models with the real connection\n\t\t\t\tfor (const [modelName, { Class, options, resolve }] of pendingModels.entries()) {\n\t\t\t\t\tconst model = getModelForClass(Class, {\n\t\t\t\t\t\texistingConnection: globalConnection,\n\t\t\t\t\t\t...options,\n\t\t\t\t\t});\n\t\t\t\t\tresolve(model);\n\t\t\t\t}\n\t\t\t\tpendingModels.clear();\n\n\t\t\t\t// Initialize any pending discriminator models\n\t\t\t\t// Process discriminators sequentially to ensure dependencies are resolved\n\t\t\t\tfor (const [\n\t\t\t\t\tmodelName,\n\t\t\t\t\t{ baseModelPromise, subClass, discriminatorName, options, resolve },\n\t\t\t\t] of pendingDiscriminatorModels.entries()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// Await the base model to be fully resolved\n\t\t\t\t\t\tconst actualBaseModel = await baseModelPromise;\n\n\t\t\t\t\t\t// Create the discriminator model with the actual base model\n\t\t\t\t\t\tconst model = getDiscriminatorModelForClass(actualBaseModel, subClass, discriminatorName, {\n\t\t\t\t\t\t\texistingConnection: globalConnection,\n\t\t\t\t\t\t\t...options,\n\t\t\t\t\t\t});\n\t\t\t\t\t\tresolve(model);\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tconsole.error(`Failed to create discriminator model ${modelName}:`, error);\n\t\t\t\t\t\t// Resolve with error to unblock the promise chain\n\t\t\t\t\t\tresolve(Promise.reject(error));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpendingDiscriminatorModels.clear();\n\n\t\t\t\tresolve(connection);\n\t\t\t});\n\t\t});\n\t}\n\treturn connectionPromise;\n}\n\n/**\n * Creates a Typegoose model that will use the global connection when it's ready.\n * Safe to call during module initialization before initGlobalConnection.\n */\nexport function createGlobalModel<T extends AnyParamConstructor<any>>(\n\tClass: T,\n\toptions?: IModelOptions\n): ReturnModelType<T> {\n\tconst modelName = options?.schemaOptions?.collection || Class.name;\n\n\t// If the connection is already initialized, create the model directly\n\tif (globalConnection) {\n\t\treturn getModelForClass(Class, {\n\t\t\texistingConnection: globalConnection,\n\t\t\t...options,\n\t\t});\n\t}\n\n\tconsole.log(`Registering model ${modelName} to be initialized when global connection is ready`);\n\n\t// Create a lazy-loaded model instance that will initialize once the connection is ready\n\tlet actualModel: ReturnModelType<T> | null = null;\n\tlet modelReadyPromise: Promise<ReturnModelType<T>>;\n\n\t// Setup the promise that will resolve once the model is ready\n\tmodelReadyPromise = new Promise<ReturnModelType<T>>(resolve => {\n\t\t// Register this model to be initialized when connection is ready\n\t\tpendingModels.set(modelName, { Class, options, resolve });\n\t});\n\n\t// Create a proxy that forwards operations to the real model once it's available\n\tconst modelProxy = new Proxy({} as ReturnModelType<T>, {\n\t\tget(target, prop, receiver) {\n\t\t\t// Handle special case for 'then' to make the proxy thenable\n\t\t\tif (prop === 'then') {\n\t\t\t\treturn modelReadyPromise.then.bind(modelReadyPromise);\n\t\t\t}\n\n\t\t\treturn async function (...args: any[]) {\n\t\t\t\tif (!actualModel) {\n\t\t\t\t\tactualModel = await modelReadyPromise;\n\t\t\t\t}\n\n\t\t\t\tconst propValue = (actualModel as any)[prop];\n\t\t\t\tif (typeof propValue === 'function') {\n\t\t\t\t\treturn propValue.apply(actualModel, args);\n\t\t\t\t}\n\t\t\t\treturn propValue;\n\t\t\t};\n\t\t},\n\t});\n\n\treturn modelProxy;\n}\n\n/**\n * Creates a Typegoose discriminator model that will use the global connection when it's ready.\n * Safe to call during module initialization before initGlobalConnection.\n */\nexport function createGlobalDiscriminatorModel<\n\tBase extends AnyParamConstructor<any>,\n\tSub extends AnyParamConstructor<any>,\n>(\n\tbaseModel: ReturnModelType<Base>,\n\tsubClass: Sub,\n\tdiscriminatorName?: string,\n\toptions?: IModelOptions\n): ReturnModelType<Sub> {\n\tconst modelName = discriminatorName || subClass.name;\n\n\t// If the connection is already initialized, create the model directly\n\tif (globalConnection) {\n\t\t// Ensure baseModel is fully resolved if it's a promise or proxy\n\t\tif (baseModel instanceof Promise || (baseModel as any).then) {\n\t\t\t// Create a new promise that will resolve with the discriminator model\n\t\t\tconst discriminatorPromise = (async () => {\n\t\t\t\tconst resolvedBaseModel = await baseModel;\n\t\t\t\treturn getDiscriminatorModelForClass(resolvedBaseModel, subClass, discriminatorName, {\n\t\t\t\t\texistingConnection: globalConnection,\n\t\t\t\t\t...options,\n\t\t\t\t});\n\t\t\t})();\n\n\t\t\t// Return a proxy that will await the discriminator model\n\t\t\treturn createProxyForPromise(discriminatorPromise);\n\t\t}\n\n\t\t// If baseModel is not a promise, create the discriminator directly\n\t\treturn getDiscriminatorModelForClass(baseModel, subClass, discriminatorName, {\n\t\t\texistingConnection: globalConnection,\n\t\t\t...options,\n\t\t});\n\t}\n\n\tconsole.log(\n\t\t`Registering discriminator model ${modelName} to be initialized when global connection is ready`\n\t);\n\n\t// Create a lazy-loaded model instance that will initialize once the connection is ready\n\tlet actualModel: ReturnModelType<Sub> | null = null;\n\tlet modelReadyPromise: Promise<ReturnModelType<Sub>>;\n\n\t// Handle the case where baseModel might be a proxy or promise\n\tlet baseModelPromise: Promise<any>;\n\tif (baseModel instanceof Promise || (baseModel as any).then) {\n\t\tbaseModelPromise = Promise.resolve(baseModel);\n\t} else {\n\t\tbaseModelPromise = Promise.resolve(baseModel);\n\t}\n\n\t// Setup the promise that will resolve once the model is ready\n\tmodelReadyPromise = new Promise<ReturnModelType<Sub>>(resolve => {\n\t\t// Register this discriminator model to be initialized when connection is ready\n\t\tpendingDiscriminatorModels.set(modelName, {\n\t\t\tbaseModelPromise,\n\t\t\tsubClass,\n\t\t\tdiscriminatorName,\n\t\t\toptions,\n\t\t\tresolve,\n\t\t});\n\t});\n\n\treturn createProxyForPromise(modelReadyPromise);\n}\n\n/**\n * Helper function to create a proxy for a promise that will resolve to a model\n */\nfunction createProxyForPromise<T extends object>(promise: Promise<T>): T {\n\tlet resolvedValue: T | null = null;\n\n\treturn new Proxy({} as T, {\n\t\tget(target, prop, receiver) {\n\t\t\t// Handle special case for 'then' to make the proxy thenable\n\t\t\tif (prop === 'then') {\n\t\t\t\treturn promise.then.bind(promise);\n\t\t\t}\n\n\t\t\treturn async function (...args: any[]) {\n\t\t\t\tif (!resolvedValue) {\n\t\t\t\t\tresolvedValue = await promise;\n\t\t\t\t}\n\n\t\t\t\tconst propValue = (resolvedValue as any)[prop];\n\t\t\t\tif (typeof propValue === 'function') {\n\t\t\t\t\treturn propValue.apply(resolvedValue, args);\n\t\t\t\t}\n\t\t\t\treturn propValue;\n\t\t\t};\n\t\t},\n\t});\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity-log.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/activity-log.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,GAAG,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,qBAMa,WAAY,SAAQ,UAAU;IAEnC,KAAK,EAAG,GAAG,CAAC,KAAK,CAAC,CAAC;IAGnB,YAAY,EAAG,YAAY,CAAC;IAG5B,WAAW,EAAG,GAAG,CAAC;IAGlB,WAAW,EAAG,GAAG,CAAC;CACzB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-access-control.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/admin-access-control.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,GAAG,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQtC,qBAiBa,kBAAmB,SAAQ,UAAU;IAE1C,KAAK,EAAG,MAAM,CAAC;IAGf,QAAQ,EAAG,MAAM,CAAC;IAGlB,KAAK,EAAG,GAAG,CAAC,KAAK,CAAC,CAAC;IAGnB,IAAI,EAAG,SAAS,CAAC;CACxB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/admin.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAErE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,qBAQa,KAAM,SAAQ,UAAU;IAE7B,IAAI,EAAG,MAAM,CAAC;IAGd,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,WAAW,EAAG,MAAM,CAAC;IAGrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAQhB,aAAa,EAAE,GAAG,CAAC,kBAAkB,CAAC,CAAC;CAC9C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-screen-setting.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/app-screen-setting.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAExE,qBACa,gBAAiB,SAAQ,UAAU;IAExC,QAAQ,EAAG,QAAQ,CAAC;IAGpB,OAAO,EAAG,WAAW,CAAC;IAGtB,KAAK,EAAG,MAAM,CAAC;IAGf,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,YAAY,CAAC,EAAE,MAAM,CAAC;CAC7B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribute.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/attribute.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,GAAG,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,qBAEa,SAAU,SAAQ,UAAU;IAEjC,IAAI,EAAG,GAAG,CAAC,IAAI,CAAC,CAAC;IAGjB,IAAI,EAAG,MAAM,CAAC;IAGd,UAAU,CAAC,EAAE,OAAO,CAAC;IAQrB,aAAa,EAAG,0BAA0B,CAAC;IAG3C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAG9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAG9B,KAAK,EAAG,aAAa,EAAE,CAAC;CAC/B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banner.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/banner.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC5G,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,qBACa,MAAO,SAAQ,UAAU;IAE9B,KAAK,EAAG,MAAM,CAAC;IAGf,KAAK,EAAG,MAAM,CAAC;IAGf,QAAQ,EAAG,Q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ts","sourceRoot":"/","sources":["libraries/mongo/models/base/base-review.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAQ,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,qBAAa,UAAW,SAAQ,UAAU;IAElC,IAAI,EAAG,GAAG,CAAC,QAAQ,CAAC,CAAC;IAGrB,WAAW,EAAG,MAAM,CAAC;IAGrB,MAAM,EAAG,MAAM,CAAC;IAGhB,KAAK,EAAG,GAAG,CAAC,KAAK,CAAC,CAAC;IAGnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAGhB,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB,SAAS,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;CAC3C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bob-finance.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/bob-finance.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EACN,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,qBACa,UAAW,SAAQ,UAAU;IAElC,WAAW,EAAG,MAAM,CAAC;IAGrB,WAAW,EAAG,cAAc,CAAC;IAG7B,cAAc,EAAG,iBAAiB,CAAC;IAGnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAG7B,KAAK,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAGnB,IAAI,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAGjB,KAAK,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAGnB,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAGrB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAG5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAG5B,WAAW,CAAC,EAAE,OAAO,CAAC;CAC7B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/brand.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAErE,qBAEa,KAAM,SAAQ,UAAU;IAE7B,IAAI,EAAG,MAAM,CAAC;IAGd,WAAW,CAAC,EAAE,MAAM,CAAC;CAC5B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/card.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CA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MAAM,CAAC;IAQ/B,MAAM,EAAG,UAAU,CAAC;IAGpB,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC5B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"category.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/category.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,GAAG,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE3D,qBAKa,QAAS,SAAQ,UAAU;IAEhC,IAAI,EAAG,MAAM,CAAC;IAGd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAG,QAAQ,CAAC;IAGpB,cAAc,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;IAG/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-auth-identity.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/core-auth-identity.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,qBACa,gBAAgB;IAErB,IAAI,EAAG,GAAG,CAAC,QAAQ,CAAC,CAAC;IAGrB,IAAI,EAAG,oBAAoB,CAAC;CACnC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-user.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/core-user.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,qBACa,QAAS,SAAQ,UAAU;IAEhC,IAAI,EAAG,MAAM,CAAC;IAGd,KAAK,EAAG,MAAM,CAAC;IAGf,MAAM,EAAG,MAAM,CAAC;IAGhB,GAAG,EAAG,IAAI,CAAC;IAGX,WAAW,EAAG,MAAM,CAAC;IAGrB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAGrB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,SAAS,EAAG,MAAM,EAAE,CAAC;IAGrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CACjC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counter.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/counter.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,qBACa,OAAQ,SAAQ,UAAU;IAE/B,WAAW,EAAG,WAAW,CAAC;IAG1B,KAAK,EAAG,MAAM,CAAC;CACtB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coupon.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/coupon.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,qBAGa,MAAO,SAAQ,UAAU;IAE9B,IAAI,EAAG,MAAM,CAAC;IAGd,UAAU,EAAG,UAAU,CAAC;IAGxB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deal-setting.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/deal-setting.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,qBACa,WAAY,SAAQ,UAAU;IAEnC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAG7B,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAClC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dish.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/dish.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,qBACa,IAAK,SAAQ,UAAU;IAE5B,IAAI,EAAG,GAAG,CAAC,IAAI,CAAC,CAAC;IAGjB,IAAI,EAAG,MAAM,CAAC;IAGd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,QAAQ,EAAG,YAAY,CAAC;IAGxB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAGvB,QAAQ,EAAG,MAAM,CAAC;IAGlB,GAAG,EAAG,MAAM,CAAC;IAGb,MAAM,EAAG,MAAM,CAAC;IAGhB,OAAO,EAAG,MAAM,CAAC;IAGjB,iBAAiB,EAAG,MAAM,EAAE,CAAC;IAG7B,YAAY,CAAC,EAAE,MAAM,CAAC;CAC7B"}
@@ -0,0 +1,4 @@
1
+ export declare class Duration {
2
+ start: Date;
3
+ end?: Date;
4
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Duration = void 0;
13
+ const typegoose_1 = require("@typegoose/typegoose");
14
+ class Duration {
15
+ start;
16
+ end;
17
+ }
18
+ exports.Duration = Duration;
19
+ __decorate([
20
+ (0, typegoose_1.prop)({ required: true, type: Date, default: new Date() }),
21
+ __metadata("design:type", Date)
22
+ ], Duration.prototype, "start", void 0);
23
+ __decorate([
24
+ (0, typegoose_1.prop)({ type: Date }),
25
+ __metadata("design:type", Date)
26
+ ], Duration.prototype, "end", void 0);
27
+ //# sourceMappingURL=duration.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"duration.model.js","sourceRoot":"/","sources":["libraries/mongo/models/duration.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA8G;AAG9G,MAAa,QAAQ;IAEb,KAAK,CAAQ;IAGb,GAAG,CAAQ;CAClB;AAND,4BAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;8BAC3C,IAAI;uCAAC;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;qCAAC","sourcesContent":["import { getModelForClass, index, modelOptions, mongoose, prop, ReturnModelType } from '@typegoose/typegoose';\n\n\nexport class Duration {\n\t@prop({ required: true, type: Date, default: new Date() })\n\tpublic start!: Date;\n\n\t@prop({ type: Date })\n\tpublic end?: Date;\n}"]}
@@ -0,0 +1,8 @@
1
+ import { Ref } from '@typegoose/typegoose';
2
+ import { Attribute } from '../attribute.model';
3
+ import { AttributeItem } from '../embedded/attribute-item.model';
4
+ export declare class AddOn {
5
+ attribute: Ref<Attribute>;
6
+ attributeItem: AttributeItem;
7
+ price: number;
8
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AddOn = void 0;
13
+ const typegoose_1 = require("@typegoose/typegoose");
14
+ const attribute_model_1 = require("../attribute.model");
15
+ const attribute_item_model_1 = require("../embedded/attribute-item.model");
16
+ class AddOn {
17
+ attribute;
18
+ attributeItem;
19
+ price;
20
+ }
21
+ exports.AddOn = AddOn;
22
+ __decorate([
23
+ (0, typegoose_1.prop)({ required: true, ref: () => attribute_model_1.Attribute }),
24
+ __metadata("design:type", Object)
25
+ ], AddOn.prototype, "attribute", void 0);
26
+ __decorate([
27
+ (0, typegoose_1.prop)({ required: true }),
28
+ __metadata("design:type", attribute_item_model_1.AttributeItem)
29
+ ], AddOn.prototype, "attributeItem", void 0);
30
+ __decorate([
31
+ (0, typegoose_1.prop)({ required: true, default: 0 }),
32
+ __metadata("design:type", Number)
33
+ ], AddOn.prototype, "price", void 0);
34
+ //# sourceMappingURL=addon.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/addon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,wDAA+C;AAC/C,2EAAiE;AAEjE,MAAa,KAAK;IAEV,SAAS,CAAkB;IAG3B,aAAa,CAAiB;IAG9B,KAAK,CAAU;CACtB;AATD,sBASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,2BAAS,EAAE,CAAC;;wCACb;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACF,oCAAa;4CAAC;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oCACf","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Attribute } from '../attribute.model';\nimport { AttributeItem } from '../embedded/attribute-item.model';\n\nexport class AddOn {\n\t@prop({ required: true, ref: () => Attribute })\n\tpublic attribute!: Ref<Attribute>;\n\n\t@prop({ required: true })\n\tpublic attributeItem!: AttributeItem;\n\n\t@prop({ required: true, default: 0 })\n\tpublic price!: number;\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribute-item.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/attribute-item.model.ts"],"names":[],"mappings":"AAEA,qBAAa,aAAa;IAElB,IAAI,EAAG,MAAM,CAAC;IAGd,KAAK,EAAG,MAAM,CAAC;IAGf,SAAS,CAAC,EAAE,OAAO,CAAC;CAC3B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribute-map.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/attribute-map.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAQ,GAAG,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,qBAAa,YAAY;IAEjB,SAAS,EAAG,GAAG,CAAC,SAAS,CAAC,CAAC;IAG3B,WAAW,CAAC,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;CACtC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-development-setting.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/business-development-setting.model.ts"],"names":[],"mappings":"AAEA,qBAAa,0BAA0B;IAEtC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAG3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"charge.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/charge.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,qBAAa,MAAM;IAEX,SAAS,CAAC,EAAE,SAAS,CAAC;IAGtB,KAAK,EAAG,MAAM,CAAC;CACtB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"courier-setting.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/courier-setting.model.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;IAE1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAG/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currency-setting.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/currency-setting.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,qBAAa,eAAe;IAE3B,YAAY,EAAG,QAAQ,CAAC;IAGxB,iBAAiB,CAAC,EAAE,QAAQ,CAAC;IAG7B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAGhC,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currency.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/currency.model.ts"],"names":[],"mappings":"AAEA,qBAAa,QAAQ;IAEb,MAAM,EAAG,MAAM,CAAC;IAGhB,IAAI,EAAG,MAAM,CAAC;IAGd,YAAY,EAAG,MAAM,CAAC;IAGtB,aAAa,EAAG,MAAM,CAAC;IAGvB,QAAQ,EAAG,MAAM,CAAC;IAGlB,IAAI,EAAG,MAAM,CAAC;IAGd,UAAU,EAAG,MAAM,CAAC;IAGpB,IAAI,EAAG,MAAM,CAAC;CACrB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delivery-charge-setting.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/delivery-charge-setting.model.ts"],"names":[],"mappings":"AAGA,qBAAa,MAAM;IAEX,IAAI,EAAG,MAAM,CAAC;IAGd,EAAE,EAAG,MAAM,CAAC;IAGZ,MAAM,EAAG,MAAM,CAAC;IAGhB,QAAQ,EAAG,MAAM,CAAC;CACzB;AAED,qBAAa,cAAc;IAE1B,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,EAAE,CAAA;CACjB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delivery-info.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/delivery-info.model.ts"],"names":[],"mappings":"AAEA,qBAAa,YAAY;IAEjB,eAAe,EAAG,MAAM,CAAC;IAGzB,iBAAiB,EAAE,MAAM,CAAC;CACjC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"featured-item.mode.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/featured-item.mode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,qBAAa,YAAY;IAEjB,cAAc,EAAG,MAAM,CAAC;IAGxB,MAAM,EAAG,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line-item-attribute.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/line-item-attribute.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,GAAG,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,qBAAa,iBAAiB;IAEtB,SAAS,EAAG,GAAG,CAAC,SAAS,CAAC,CAAC;IAG3B,aAAa,EAAG,aAAa,EAAE,CAAC;CACvC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketing-cut.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/marketing-cut.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,GAAG,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,qBAAa,YAAY;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAG7B,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,qBAAa,YAAa,SAAQ,YAAY;IAEtC,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAGjC,MAAM,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,aAAc,SAAQ,YAAY;IAEvC,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAGrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-cancel.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-cancel.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,qBAAa,WAAW;IAEvB,UAAU,EAAE,MAAM,CAAC;IAGnB,KAAK,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAGnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-pricing.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-pricing.model.ts"],"names":[],"mappings":"AAEA,qBAAa,YAAY;IAExB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAG3B,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAG9B,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAG5B,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"otp-fields.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/otp-fields.model.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAMd,IAAI,EAAG,oBAAoB,GAAG,gBAAgB,CAAC;IAG/C,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,iBAAiB,CAAC,EAAE,IAAI,CAAC;IAGzB,eAAe,CAAC,EAAE,IAAI,CAAC;IAGvB,UAAU,CAAC,EAAE,OAAO,CAAC;CAC5B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/package.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,cAAM,eAAe;IAEb,IAAI,EAAG,GAAG,CAAC,IAAI,CAAC,CAAC;IAGjB,4BAA4B,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/C;AAED,cAAM,YAAY;IAEV,IAAI,EAAG,MAAM,CAAC;IAGd,MAAM,EAAG,eAAe,EAAE,CAAC;CAClC;AAED,cAAM,YAAY;IAEV,IAAI,EAAG,MAAM,CAAC;IAGd,EAAE,EAAG,MAAM,CAAC;CACnB;AAED,cAAM,YAAY;IAEV,KAAK,EAAG,MAAM,CAAC;IAGf,YAAY,EAAG,YAAY,CAAC;IAG5B,KAAK,EAAG,MAAM,CAAC;IAGf,UAAU,EAAG,YAAY,EAAE,CAAC;CACnC;AAED,qBAAa,OAAO;IAEZ,IAAI,EAAG,MAAM,CAAC;IAGd,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;CAC/B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parent-document.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/parent-document.model.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;IAEnB,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAGpC,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC9B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-attempt.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payment-attempt.model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,qBAAa,cAAc;IAE1B,SAAS,EAAE,IAAI,CAAC;IAOhB,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;IAKf,QAAQ,EAAE,MAAM,CAAC;IAGjB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAGxC,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-infromation.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payment-infromation.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,qBAAa,kBAAkB;IAEvB,QAAQ,EAAG,QAAQ,CAAC;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACtC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payout-setting.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payout-setting.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,qBAAa,aAAa;IAEzB,WAAW,EAAG,OAAO,CAAC;IAGtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,5 @@
1
+ export declare class Portion {
2
+ price: number;
3
+ size?: string;
4
+ unit?: string;
5
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Portion = void 0;
13
+ const typegoose_1 = require("@typegoose/typegoose");
14
+ class Portion {
15
+ price;
16
+ size;
17
+ unit;
18
+ }
19
+ exports.Portion = Portion;
20
+ __decorate([
21
+ (0, typegoose_1.prop)({ required: true }),
22
+ __metadata("design:type", Number)
23
+ ], Portion.prototype, "price", void 0);
24
+ __decorate([
25
+ (0, typegoose_1.prop)(),
26
+ __metadata("design:type", String)
27
+ ], Portion.prototype, "size", void 0);
28
+ __decorate([
29
+ (0, typegoose_1.prop)(),
30
+ __metadata("design:type", String)
31
+ ], Portion.prototype, "unit", void 0);
32
+ //# sourceMappingURL=portion.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portion.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/portion.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,OAAO;IAEZ,KAAK,CAAU;IAGf,IAAI,CAAU;IAGd,IAAI,CAAU;CACrB;AATD,0BASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACH;AAGf;IADN,IAAA,gBAAI,GAAE;;qCACc;AAGd;IADN,IAAA,gBAAI,GAAE;;qCACc","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class Portion {\n\t@prop({ required: true })\n\tpublic price!: number;\n\n\t@prop()\n\tpublic size?: string;\n\n\t@prop()\n\tpublic unit?: string;\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"price-breakdown.model.d.ts","sourceRoot":"/","sources":["libraries/mongo/models/embedded/price-breakdown.model.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;IAEnB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,KAAK,EAAG,MAAM,CAAC;CACtB"}
@@ -0,0 +1,5 @@
1
+ export declare class Price {
2
+ unit?: string;
3
+ unitValue?: number;
4
+ price: number;
5
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Price = void 0;
13
+ const typegoose_1 = require("@typegoose/typegoose");
14
+ class Price {
15
+ unit;
16
+ unitValue;
17
+ price;
18
+ }
19
+ exports.Price = Price;
20
+ __decorate([
21
+ (0, typegoose_1.prop)({ type: String }),
22
+ __metadata("design:type", String)
23
+ ], Price.prototype, "unit", void 0);
24
+ __decorate([
25
+ (0, typegoose_1.prop)({ type: Number, min: 0 }),
26
+ __metadata("design:type", Number)
27
+ ], Price.prototype, "unitValue", void 0);
28
+ __decorate([
29
+ (0, typegoose_1.prop)({ required: true, type: Number, min: 0 }),
30
+ __metadata("design:type", Number)
31
+ ], Price.prototype, "price", void 0);
32
+ //# sourceMappingURL=price.model.js.map