@lyxa.ai/marketing 1.0.63 → 1.0.64

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 (182) hide show
  1. package/dist/lib/index.d.ts +19 -17
  2. package/dist/lib/index.d.ts.map +1 -1
  3. package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  4. package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts +15 -3
  5. package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  6. package/dist/lib/modules/coupon/services/helper.service.d.ts +15 -3
  7. package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
  8. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +15 -3
  9. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  10. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts +15 -3
  11. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
  12. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts +2 -0
  13. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts.map +1 -1
  14. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.js +18 -4
  15. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.js.map +1 -1
  16. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  17. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +4 -0
  18. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
  19. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -1
  20. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js +3 -9
  21. package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js.map +1 -1
  22. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts +7 -1
  23. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts.map +1 -1
  24. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js +5 -1
  25. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js.map +1 -1
  26. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +8 -0
  27. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
  28. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js +60 -0
  29. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js.map +1 -1
  30. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +217 -213
  31. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
  32. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js.map +1 -1
  33. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts +4 -0
  34. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts.map +1 -1
  35. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.js +14 -8
  36. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.js.map +1 -1
  37. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +10 -9
  38. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
  39. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js +64 -49
  40. package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js.map +1 -1
  41. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts +1 -0
  42. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
  43. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js +15 -3
  44. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js.map +1 -1
  45. package/dist/lib/modules/marketing/routers/marketing.router.d.ts +2 -0
  46. package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  47. package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
  48. package/dist/lib/modules/marketing/services/marketing.service.js +13 -3
  49. package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
  50. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +3 -3
  51. package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +3 -3
  52. package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +6 -0
  53. package/dist/lib/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
  54. package/dist/lib/modules/marketing/validations/marketing.validation.js +2 -0
  55. package/dist/lib/modules/marketing/validations/marketing.validation.js.map +1 -1
  56. package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
  57. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  58. package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  59. package/dist/lib/modules/spend-to-get-history/routers/index.d.ts +2 -0
  60. package/dist/lib/modules/spend-to-get-history/routers/index.d.ts.map +1 -0
  61. package/dist/lib/modules/spend-to-get-history/routers/index.js +18 -0
  62. package/dist/lib/modules/spend-to-get-history/routers/index.js.map +1 -0
  63. package/dist/lib/modules/spend-to-get-history/routers/spend-to-get-history.router.js +62 -0
  64. package/dist/lib/modules/spend-to-get-history/routers/spend-to-get-history.router.js.map +1 -0
  65. package/dist/lib/modules/spend-to-get-history/services/index.d.ts +2 -0
  66. package/dist/lib/modules/spend-to-get-history/services/index.d.ts.map +1 -0
  67. package/dist/lib/modules/spend-to-get-history/services/index.js +18 -0
  68. package/dist/lib/modules/spend-to-get-history/services/index.js.map +1 -0
  69. package/dist/lib/modules/spend-to-get-history/services/spend-to-get-history.service.d.ts +24 -0
  70. package/dist/lib/modules/spend-to-get-history/services/spend-to-get-history.service.d.ts.map +1 -0
  71. package/dist/lib/modules/spend-to-get-history/services/spend-to-get-history.service.js +136 -0
  72. package/dist/lib/modules/spend-to-get-history/services/spend-to-get-history.service.js.map +1 -0
  73. package/dist/lib/modules/spend-to-get-history/spend-to-get-history.repository.d.ts.map +1 -1
  74. package/dist/lib/modules/spend-to-get-history/spend-to-get-history.repository.js +13 -2
  75. package/dist/lib/modules/spend-to-get-history/spend-to-get-history.repository.js.map +1 -1
  76. package/dist/lib/modules/spend-to-get-history/spend-to-get-history.router.d.ts +16 -16
  77. package/dist/lib/modules/spend-to-get-history/spend-to-get-history.validation.d.ts +19 -19
  78. package/dist/lib/modules/spend-to-get-history/spend-to-get-history.validation.js +1 -1
  79. package/dist/lib/modules/spend-to-get-history/spend-to-get-history.validation.js.map +1 -1
  80. package/dist/lib/modules/spend-to-get-history/validations/index.d.ts +2 -0
  81. package/dist/lib/modules/spend-to-get-history/validations/index.d.ts.map +1 -0
  82. package/dist/lib/modules/spend-to-get-history/validations/index.js +18 -0
  83. package/dist/lib/modules/spend-to-get-history/validations/index.js.map +1 -0
  84. package/dist/lib/modules/spend-to-get-history/validations/spend-to-get-history.validation.d.ts +232 -0
  85. package/dist/lib/modules/spend-to-get-history/validations/spend-to-get-history.validation.d.ts.map +1 -0
  86. package/dist/lib/modules/spend-to-get-history/validations/spend-to-get-history.validation.js +30 -0
  87. package/dist/lib/modules/spend-to-get-history/validations/spend-to-get-history.validation.js.map +1 -0
  88. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
  89. package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
  90. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +15 -0
  91. package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +1 -0
  92. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +14 -0
  93. package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
  94. package/dist/lib/modules/tournament/match/events/match-ended.event.js +12 -0
  95. package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +1 -0
  96. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +10 -0
  97. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
  98. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +23 -0
  99. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -0
  100. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +9 -0
  101. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
  102. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +82 -0
  103. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -0
  104. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
  105. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
  106. package/dist/lib/modules/tournament/notification/notification.schedule.config.js +15 -0
  107. package/dist/lib/modules/tournament/notification/notification.schedule.config.js.map +1 -0
  108. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
  109. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
  110. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +73 -0
  111. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +1 -0
  112. package/dist/types/events/event-initializations.d.ts +2 -0
  113. package/dist/types/events/event-initializations.d.ts.map +1 -0
  114. package/dist/types/index.d.ts +19 -17
  115. package/dist/types/index.d.ts.map +1 -1
  116. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  117. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +15 -3
  118. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  119. package/dist/types/modules/coupon/services/helper.service.d.ts +15 -3
  120. package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
  121. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +15 -3
  122. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  123. package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts +15 -3
  124. package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
  125. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts +2 -0
  126. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts.map +1 -1
  127. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  128. package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -1
  129. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts +7 -1
  130. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts.map +1 -1
  131. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +8 -0
  132. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
  133. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +217 -213
  134. package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
  135. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts +4 -0
  136. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts.map +1 -1
  137. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +10 -9
  138. package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
  139. package/dist/types/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts +1 -0
  140. package/dist/types/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
  141. package/dist/types/modules/marketing/routers/marketing.router.d.ts +2 -0
  142. package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  143. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  144. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +3 -3
  145. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +3 -3
  146. package/dist/types/modules/marketing/validations/marketing.validation.d.ts +6 -0
  147. package/dist/types/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
  148. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
  149. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  150. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  151. package/dist/types/modules/spend-to-get-history/routers/index.d.ts +2 -0
  152. package/dist/types/modules/spend-to-get-history/routers/index.d.ts.map +1 -0
  153. package/dist/types/modules/spend-to-get-history/services/index.d.ts +2 -0
  154. package/dist/types/modules/spend-to-get-history/services/index.d.ts.map +1 -0
  155. package/dist/types/modules/spend-to-get-history/services/spend-to-get-history.service.d.ts +56 -0
  156. package/dist/types/modules/spend-to-get-history/services/spend-to-get-history.service.d.ts.map +1 -0
  157. package/dist/types/modules/spend-to-get-history/spend-to-get-history.repository.d.ts.map +1 -1
  158. package/dist/types/modules/spend-to-get-history/spend-to-get-history.router.d.ts +16 -16
  159. package/dist/types/modules/spend-to-get-history/spend-to-get-history.validation.d.ts +19 -19
  160. package/dist/types/modules/spend-to-get-history/validations/index.d.ts +2 -0
  161. package/dist/types/modules/spend-to-get-history/validations/index.d.ts.map +1 -0
  162. package/dist/types/modules/spend-to-get-history/validations/spend-to-get-history.validation.d.ts +241 -0
  163. package/dist/types/modules/spend-to-get-history/validations/spend-to-get-history.validation.d.ts.map +1 -0
  164. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +201 -0
  165. package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +1 -0
  166. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
  167. package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
  168. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +14 -0
  169. package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
  170. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +10 -0
  171. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
  172. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +9 -0
  173. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
  174. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
  175. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
  176. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
  177. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
  178. package/package.json +2 -2
  179. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +0 -1
  180. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +0 -1
  181. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +0 -2
  182. package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +0 -1
@@ -0,0 +1,241 @@
1
+ import { z } from 'zod';
2
+ import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
+ /**
4
+ * Get all schemas for the Parent entity
5
+ */
6
+ declare const SpendToGetHistoryValidationSchema: z.ZodObject<{
7
+ user: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
8
+ marketing: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
9
+ shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
10
+ redemptionCount: z.ZodOptional<z.ZodNumber>;
11
+ lastOrder: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
12
+ }, "strict", z.ZodTypeAny, {
13
+ user: import("mongoose").Types.ObjectId;
14
+ shop: import("mongoose").Types.ObjectId;
15
+ marketing: import("mongoose").Types.ObjectId;
16
+ redemptionCount?: number | undefined;
17
+ lastOrder?: import("mongoose").Types.ObjectId | null | undefined;
18
+ }, {
19
+ user: string | import("mongoose").Types.ObjectId;
20
+ shop: string | import("mongoose").Types.ObjectId;
21
+ marketing: string | import("mongoose").Types.ObjectId;
22
+ redemptionCount?: number | undefined;
23
+ lastOrder?: string | import("mongoose").Types.ObjectId | null | undefined;
24
+ }>, SpendToGetHistorySchema: z.ZodObject<{
25
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
26
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
27
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
28
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
29
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
30
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
31
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
32
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
33
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
34
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
35
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
36
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
37
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
38
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
39
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
40
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
41
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
42
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
43
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
44
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
45
+ }, z.ZodTypeAny, "passthrough">>, SpendToGetHistoryIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdateSpendToGetHistorySchema: z.ZodObject<{
46
+ [x: string]: z.ZodOptional<z.ZodTypeAny>;
47
+ }, "strict", z.ZodTypeAny, {
48
+ [x: string]: any;
49
+ }, {
50
+ [x: string]: any;
51
+ }> | z.ZodObject<{
52
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
53
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
54
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
55
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
56
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
57
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
58
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
59
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
60
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
61
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
62
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
63
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
64
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
65
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
66
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
67
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
68
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
69
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
70
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
71
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
72
+ }, z.ZodTypeAny, "passthrough">>;
73
+ /**
74
+ * Export schemas
75
+ */
76
+ export { SpendToGetHistoryValidationSchema, SpendToGetHistorySchema, SpendToGetHistoryIdSchema as SpendToGetHistoryIdValidationSchema, UpdateSpendToGetHistorySchema, };
77
+ export declare const SpendToGetHistoryResponseSchema: z.ZodObject<{
78
+ success: z.ZodBoolean;
79
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
80
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
81
+ metadata: z.ZodOptional<z.ZodObject<{
82
+ page: z.ZodNumber;
83
+ size: z.ZodNumber;
84
+ totalElements: z.ZodNumber;
85
+ totalPages: z.ZodNumber;
86
+ }, "strip", z.ZodTypeAny, {
87
+ page: number;
88
+ size: number;
89
+ totalElements: number;
90
+ totalPages: number;
91
+ }, {
92
+ page: number;
93
+ size: number;
94
+ totalElements: number;
95
+ totalPages: number;
96
+ }>>;
97
+ documents: z.ZodArray<z.ZodType<z.objectInputType<{
98
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
99
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
100
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
101
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
102
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
103
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
104
+ }, z.ZodTypeAny, "passthrough">, z.ZodTypeDef, z.objectInputType<{
105
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
106
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
107
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
108
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
109
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
110
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
111
+ }, z.ZodTypeAny, "passthrough">>, "many">;
112
+ }, "strip", z.ZodTypeAny, {
113
+ documents: z.objectInputType<{
114
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
115
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
116
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
117
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
118
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
119
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
120
+ }, z.ZodTypeAny, "passthrough">[];
121
+ metadata?: {
122
+ page: number;
123
+ size: number;
124
+ totalElements: number;
125
+ totalPages: number;
126
+ } | undefined;
127
+ }, {
128
+ documents: z.objectInputType<{
129
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
130
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
131
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
132
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
133
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
134
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
135
+ }, z.ZodTypeAny, "passthrough">[];
136
+ metadata?: {
137
+ page: number;
138
+ size: number;
139
+ totalElements: number;
140
+ totalPages: number;
141
+ } | undefined;
142
+ }>, z.ZodType<z.objectInputType<{
143
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
144
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
145
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
146
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
147
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
148
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
149
+ }, z.ZodTypeAny, "passthrough">, z.ZodTypeDef, z.objectInputType<{
150
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
151
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
152
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
153
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
154
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
155
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
156
+ }, z.ZodTypeAny, "passthrough">>]>>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ message: string;
159
+ success: boolean;
160
+ data?: z.objectInputType<{
161
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
162
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
163
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
164
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
165
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
166
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
167
+ }, z.ZodTypeAny, "passthrough"> | {
168
+ documents: z.objectInputType<{
169
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
170
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
171
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
172
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
173
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
174
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
175
+ }, z.ZodTypeAny, "passthrough">[];
176
+ metadata?: {
177
+ page: number;
178
+ size: number;
179
+ totalElements: number;
180
+ totalPages: number;
181
+ } | undefined;
182
+ } | undefined;
183
+ }, {
184
+ message: string;
185
+ success: boolean;
186
+ data?: z.objectInputType<{
187
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
188
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
189
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
190
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
191
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
192
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
193
+ }, z.ZodTypeAny, "passthrough"> | {
194
+ documents: z.objectInputType<{
195
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
196
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
197
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
198
+ redemptionCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
199
+ lastOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
200
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
201
+ }, z.ZodTypeAny, "passthrough">[];
202
+ metadata?: {
203
+ page: number;
204
+ size: number;
205
+ totalElements: number;
206
+ totalPages: number;
207
+ } | undefined;
208
+ } | undefined;
209
+ }>;
210
+ export declare const RecordSpendToGetRedemptionSchema: z.ZodObject<{
211
+ user: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
212
+ shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
213
+ marketing: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
214
+ order: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ user: import("mongoose").Types.ObjectId;
217
+ shop: import("mongoose").Types.ObjectId;
218
+ order: import("mongoose").Types.ObjectId;
219
+ marketing: import("mongoose").Types.ObjectId;
220
+ }, {
221
+ user: string | import("mongoose").Types.ObjectId;
222
+ shop: string | import("mongoose").Types.ObjectId;
223
+ order: string | import("mongoose").Types.ObjectId;
224
+ marketing: string | import("mongoose").Types.ObjectId;
225
+ }>;
226
+ export declare const ReturnSpendToGetRedemptionSchema: z.ZodObject<{
227
+ order: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ order: import("mongoose").Types.ObjectId;
230
+ }, {
231
+ order: string | import("mongoose").Types.ObjectId;
232
+ }>;
233
+ /**
234
+ * Export DTO types
235
+ */
236
+ export type CreateSpendToGetHistoryDTO = DTO<typeof SpendToGetHistoryValidationSchema>;
237
+ export type SpendToGetHistoryDTO = DTO<typeof SpendToGetHistorySchema>;
238
+ export type UpdateSpendToGetHistoryDTO = DTO<typeof UpdateSpendToGetHistorySchema>;
239
+ export type RecordSpendToGetRedemptionDTO = DTO<typeof RecordSpendToGetRedemptionSchema>;
240
+ export type ReturnSpendToGetRedemptionDTO = DTO<typeof ReturnSpendToGetRedemptionSchema>;
241
+ //# sourceMappingURL=spend-to-get-history.validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spend-to-get-history.validation.d.ts","sourceRoot":"/","sources":["modules/spend-to-get-history/validations/spend-to-get-history.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAqBnE;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,iCAAiC,EACjC,uBAAuB,EACvB,yBAAyB,IAAI,mCAAmC,EAChE,6BAA6B,GAC7B,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgD,CAAC;AAE7F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;EAK3C,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;EAE3C,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACvF,MAAM,MAAM,oBAAoB,GAAG,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACvE,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACnF,MAAM,MAAM,6BAA6B,GAAG,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC;AACzF,MAAM,MAAM,6BAA6B,GAAG,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -0,0 +1,201 @@
1
+ import { z } from 'zod';
2
+ import { DTO } from '@lyxa.ai/core/dist/utilities/validation';
3
+ export declare const CreateTournamentConfigSchema: z.ZodObject<{
4
+ name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
5
+ startDate: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
6
+ endDate: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ name: string;
9
+ startDate: Date;
10
+ endDate: Date;
11
+ }, {
12
+ name: string;
13
+ startDate: string | Date;
14
+ endDate: string | Date;
15
+ }>;
16
+ export declare const UpdateTournamentConfigSchema: z.ZodObject<{
17
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
18
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
19
+ startDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
20
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ _id: import("mongoose").Types.ObjectId;
23
+ name?: string | undefined;
24
+ startDate?: Date | undefined;
25
+ endDate?: Date | undefined;
26
+ }, {
27
+ _id: string | import("mongoose").Types.ObjectId;
28
+ name?: string | undefined;
29
+ startDate?: string | Date | undefined;
30
+ endDate?: string | Date | undefined;
31
+ }>;
32
+ export declare const TournamentConfigSchema: z.ZodObject<{
33
+ name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
34
+ startDate: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
35
+ endDate: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
36
+ } & {
37
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
38
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
39
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ name: string;
42
+ _id: import("mongoose").Types.ObjectId;
43
+ startDate: Date;
44
+ endDate: Date;
45
+ createdAt?: Date | null | undefined;
46
+ updatedAt?: Date | null | undefined;
47
+ }, {
48
+ name: string;
49
+ _id: string | import("mongoose").Types.ObjectId;
50
+ startDate: string | Date;
51
+ endDate: string | Date;
52
+ createdAt?: Date | null | undefined;
53
+ updatedAt?: Date | null | undefined;
54
+ }>;
55
+ export declare const TournamentConfigResponseSchema: z.ZodObject<{
56
+ success: z.ZodBoolean;
57
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
58
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
59
+ metadata: z.ZodOptional<z.ZodObject<{
60
+ page: z.ZodNumber;
61
+ size: z.ZodNumber;
62
+ totalElements: z.ZodNumber;
63
+ totalPages: z.ZodNumber;
64
+ }, "strip", z.ZodTypeAny, {
65
+ page: number;
66
+ size: number;
67
+ totalElements: number;
68
+ totalPages: number;
69
+ }, {
70
+ page: number;
71
+ size: number;
72
+ totalElements: number;
73
+ totalPages: number;
74
+ }>>;
75
+ documents: z.ZodArray<z.ZodType<{
76
+ name: string;
77
+ _id: string | import("mongoose").Types.ObjectId;
78
+ startDate: string | Date;
79
+ endDate: string | Date;
80
+ createdAt?: Date | null | undefined;
81
+ updatedAt?: Date | null | undefined;
82
+ }, z.ZodTypeDef, {
83
+ name: string;
84
+ _id: string | import("mongoose").Types.ObjectId;
85
+ startDate: string | Date;
86
+ endDate: string | Date;
87
+ createdAt?: Date | null | undefined;
88
+ updatedAt?: Date | null | undefined;
89
+ }>, "many">;
90
+ }, "strip", z.ZodTypeAny, {
91
+ documents: {
92
+ name: string;
93
+ _id: string | import("mongoose").Types.ObjectId;
94
+ startDate: string | Date;
95
+ endDate: string | Date;
96
+ createdAt?: Date | null | undefined;
97
+ updatedAt?: Date | null | undefined;
98
+ }[];
99
+ metadata?: {
100
+ page: number;
101
+ size: number;
102
+ totalElements: number;
103
+ totalPages: number;
104
+ } | undefined;
105
+ }, {
106
+ documents: {
107
+ name: string;
108
+ _id: string | import("mongoose").Types.ObjectId;
109
+ startDate: string | Date;
110
+ endDate: string | Date;
111
+ createdAt?: Date | null | undefined;
112
+ updatedAt?: Date | null | undefined;
113
+ }[];
114
+ metadata?: {
115
+ page: number;
116
+ size: number;
117
+ totalElements: number;
118
+ totalPages: number;
119
+ } | undefined;
120
+ }>, z.ZodType<{
121
+ name: string;
122
+ _id: string | import("mongoose").Types.ObjectId;
123
+ startDate: string | Date;
124
+ endDate: string | Date;
125
+ createdAt?: Date | null | undefined;
126
+ updatedAt?: Date | null | undefined;
127
+ }, z.ZodTypeDef, {
128
+ name: string;
129
+ _id: string | import("mongoose").Types.ObjectId;
130
+ startDate: string | Date;
131
+ endDate: string | Date;
132
+ createdAt?: Date | null | undefined;
133
+ updatedAt?: Date | null | undefined;
134
+ }>]>>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ message: string;
137
+ success: boolean;
138
+ data?: {
139
+ name: string;
140
+ _id: string | import("mongoose").Types.ObjectId;
141
+ startDate: string | Date;
142
+ endDate: string | Date;
143
+ createdAt?: Date | null | undefined;
144
+ updatedAt?: Date | null | undefined;
145
+ } | {
146
+ documents: {
147
+ name: string;
148
+ _id: string | import("mongoose").Types.ObjectId;
149
+ startDate: string | Date;
150
+ endDate: string | Date;
151
+ createdAt?: Date | null | undefined;
152
+ updatedAt?: Date | null | undefined;
153
+ }[];
154
+ metadata?: {
155
+ page: number;
156
+ size: number;
157
+ totalElements: number;
158
+ totalPages: number;
159
+ } | undefined;
160
+ } | undefined;
161
+ }, {
162
+ message: string;
163
+ success: boolean;
164
+ data?: {
165
+ name: string;
166
+ _id: string | import("mongoose").Types.ObjectId;
167
+ startDate: string | Date;
168
+ endDate: string | Date;
169
+ createdAt?: Date | null | undefined;
170
+ updatedAt?: Date | null | undefined;
171
+ } | {
172
+ documents: {
173
+ name: string;
174
+ _id: string | import("mongoose").Types.ObjectId;
175
+ startDate: string | Date;
176
+ endDate: string | Date;
177
+ createdAt?: Date | null | undefined;
178
+ updatedAt?: Date | null | undefined;
179
+ }[];
180
+ metadata?: {
181
+ page: number;
182
+ size: number;
183
+ totalElements: number;
184
+ totalPages: number;
185
+ } | undefined;
186
+ } | undefined;
187
+ }>;
188
+ export declare const TournamentEmptyResponseSchema: z.ZodObject<{
189
+ success: z.ZodBoolean;
190
+ message: z.ZodString;
191
+ }, "strip", z.ZodTypeAny, {
192
+ message: string;
193
+ success: boolean;
194
+ }, {
195
+ message: string;
196
+ success: boolean;
197
+ }>;
198
+ export type CreateTournamentConfigDTO = DTO<typeof CreateTournamentConfigSchema>;
199
+ export type UpdateTournamentConfigDTO = DTO<typeof UpdateTournamentConfigSchema>;
200
+ export type TournamentConfigDTO = DTO<typeof TournamentConfigSchema>;
201
+ //# sourceMappingURL=tournament-config.validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-config.validation.d.ts","sourceRoot":"/","sources":["modules/tournament/config/tournament-config.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAwB,GAAG,EAAiB,MAAM,yCAAyC,CAAC;AAEnG,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAIvC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;EAKvC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;EAIjC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAC;AAE3F,eAAO,MAAM,6BAA6B;;;;;;;;;EAGxC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACjF,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACjF,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function startTournamentEventConsumer(): Promise<void>;
2
+ //# sourceMappingURL=match-ended.consumer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-ended.consumer.d.ts","sourceRoot":"/","sources":["modules/tournament/match/events/match-ended.consumer.ts"],"names":[],"mappings":"AAKA,wBAAsB,4BAA4B,kBAMjD"}
@@ -0,0 +1,14 @@
1
+ import { BaseEvent } from '@lyxa.ai/core/dist/libraries/event/BaseEvent';
2
+ export declare const TOURNAMENT_MATCH_ENDED_EVENT = "tournament_match_ended_event";
3
+ export interface MatchEndedPayload {
4
+ tournamentId: string;
5
+ matchId: string;
6
+ finalScore: {
7
+ team1: number;
8
+ team2: number;
9
+ };
10
+ }
11
+ export declare class MatchEndedEvent extends BaseEvent<MatchEndedPayload> {
12
+ constructor(payload: MatchEndedPayload);
13
+ }
14
+ //# sourceMappingURL=match-ended.event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-ended.event.d.ts","sourceRoot":"/","sources":["modules/tournament/match/events/match-ended.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8CAA8C,CAAC;AAEzE,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E,MAAM,WAAW,iBAAiB;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD;AAED,qBAAa,eAAgB,SAAQ,SAAS,CAAC,iBAAiB,CAAC;gBACjD,OAAO,EAAE,iBAAiB;CAGzC"}
@@ -0,0 +1,10 @@
1
+ import { JobsOptions } from 'bullmq';
2
+ export declare const TOURNAMENT_NOTIFICATION_QUEUE = "tournament-match-notifications";
3
+ export interface TournamentNotificationJobData {
4
+ tournamentId: string;
5
+ matchId: string;
6
+ target: string;
7
+ }
8
+ export declare function addNotificationJob(name: string, data: TournamentNotificationJobData, options: JobsOptions): Promise<void>;
9
+ export declare function removeNotificationJob(jobId: string): Promise<void>;
10
+ //# sourceMappingURL=notification.producer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.producer.d.ts","sourceRoot":"/","sources":["modules/tournament/notification/jobs/notification.producer.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE5C,eAAO,MAAM,6BAA6B,mCAAmC,CAAC;AAE9E,MAAM,WAAW,6BAA6B;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAClB;AAYD,wBAAsB,kBAAkB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,6BAA6B,EACnC,OAAO,EAAE,WAAW,GACrB,OAAO,CAAC,IAAI,CAAC,CAEf;AAED,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGxE"}
@@ -0,0 +1,9 @@
1
+ export declare class TournamentNotificationWorker {
2
+ private notificationService;
3
+ private templateRepository;
4
+ private matchRepository;
5
+ constructor();
6
+ startWorker(): void;
7
+ }
8
+ export declare const tournamentNotificationWorker: TournamentNotificationWorker;
9
+ //# sourceMappingURL=notification.worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.worker.d.ts","sourceRoot":"/","sources":["modules/tournament/notification/jobs/notification.worker.ts"],"names":[],"mappings":"AAQA,qBACa,4BAA4B;IACrC,OAAO,CAAC,mBAAmB,CAAgC;IAC3D,OAAO,CAAC,kBAAkB,CAAiC;IAC3D,OAAO,CAAC,eAAe,CAA4B;;IAQ5C,WAAW,IAAI,IAAI;CAe7B;AAED,eAAO,MAAM,4BAA4B,8BAA8C,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare enum NotificationTag {
2
+ TOURNAMENT_ACTIVATION = "tournament-activation",
3
+ MATCH_RESULT_WINNER = "match-result-winner",
4
+ MATCH_RESULT_LOSER = "match-result-loser"
5
+ }
6
+ export declare enum ScheduledTarget {
7
+ GLOBAL = "global",
8
+ UNPREDICTED_PARTICIPANTS = "unpredicted-participants"
9
+ }
10
+ //# sourceMappingURL=notification.schedule.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.schedule.config.d.ts","sourceRoot":"/","sources":["modules/tournament/notification/notification.schedule.config.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACvB,qBAAqB,0BAA0B;IAC/C,mBAAmB,wBAAwB;IAC3C,kBAAkB,uBAAuB;CAC5C;AAED,oBAAY,eAAe;IACvB,MAAM,WAAW;IACjB,wBAAwB,6BAA6B;CACxD"}
@@ -0,0 +1,10 @@
1
+ import { mongoose } from '@typegoose/typegoose';
2
+ import { ScheduledNotificationConfig } from '@lyxa.ai/core/dist/libraries/mongo/models';
3
+ export declare class NotificationSchedulerService {
4
+ private jobId;
5
+ private buildJobData;
6
+ scheduleForMatch(matchId: mongoose.Types.ObjectId, tournamentId: mongoose.Types.ObjectId, startingDate: Date, scheduledNotifications: ScheduledNotificationConfig[]): Promise<void>;
7
+ cancelForMatch(matchId: mongoose.Types.ObjectId, scheduledNotifications: ScheduledNotificationConfig[]): Promise<void>;
8
+ }
9
+ export declare const notificationSchedulerService: NotificationSchedulerService;
10
+ //# sourceMappingURL=notification.scheduler.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.scheduler.service.d.ts","sourceRoot":"/","sources":["modules/tournament/notification/notification.scheduler.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAGxF,qBACa,4BAA4B;IACrC,OAAO,CAAC,KAAK;IAIb,OAAO,CAAC,YAAY;IAIP,gBAAgB,CACzB,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAChC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACrC,YAAY,EAAE,IAAI,EAClB,sBAAsB,EAAE,2BAA2B,EAAE,GACtD,OAAO,CAAC,IAAI,CAAC;IAcH,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAGtI;AAED,eAAO,MAAM,4BAA4B,8BAA8C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/marketing",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "description": "The Lyxa Marketing microservice",
5
5
  "license": "MIT",
6
6
  "main": "dist/lib/index.js",
@@ -19,7 +19,7 @@
19
19
  "test:watch": "jest --watch"
20
20
  },
21
21
  "dependencies": {
22
- "@lyxa.ai/core": "1.4.248",
22
+ "@lyxa.ai/core": "1.4.281",
23
23
  "@lyxa.ai/notification": "^1.0.7",
24
24
  "@trpc/client": "^11.4.3",
25
25
  "@trpc/server": "^11.4.3",
@@ -1 +0,0 @@
1
- //# sourceMappingURL=limited-time-offer-participant.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"limited-time-offer-participant.service.d.ts","sourceRoot":"/","sources":["modules/limited-time-offer/participant/limited-time-offer-participant.service.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=limited-time-offer-participant.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"limited-time-offer-participant.service.js","sourceRoot":"/","sources":["modules/limited-time-offer/participant/limited-time-offer-participant.service.ts"],"names":[],"mappings":"","sourcesContent":[""]}