@lyxa.ai/marketing 1.0.48 → 1.0.49

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 (196) hide show
  1. package/dist/lib/event/event-initializations.js +2 -2
  2. package/dist/lib/event/event-initializations.js.map +1 -1
  3. package/dist/lib/index.d.ts +228 -493
  4. package/dist/lib/index.d.ts.map +1 -1
  5. package/dist/lib/modules/coupon/services/coupon.service.d.ts +2 -2
  6. package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
  7. package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
  8. package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  9. package/dist/lib/modules/coupon/services/global-coupon.service.js +2 -0
  10. package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
  11. package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
  12. package/dist/lib/modules/coupon/services/helper.service.js +2 -0
  13. package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
  14. package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  15. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +2 -0
  16. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
  17. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  18. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +2 -0
  19. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
  20. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
  21. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
  22. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +5 -4
  23. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
  24. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
  25. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  26. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js +13 -1
  27. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js.map +1 -1
  28. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +8 -2
  29. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  30. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +11 -2
  31. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
  32. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +10 -21
  33. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  34. package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -1
  35. package/dist/lib/modules/tournament/config/config.builder.js +4 -0
  36. package/dist/lib/modules/tournament/config/config.builder.js.map +1 -1
  37. package/dist/lib/modules/tournament/config/config.repository.d.ts +1 -0
  38. package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -1
  39. package/dist/lib/modules/tournament/config/config.repository.js +7 -1
  40. package/dist/lib/modules/tournament/config/config.repository.js.map +1 -1
  41. package/dist/lib/modules/tournament/config/config.router.d.ts +96 -208
  42. package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -1
  43. package/dist/lib/modules/tournament/config/config.service.d.ts +2 -2
  44. package/dist/lib/modules/tournament/config/config.service.d.ts.map +1 -1
  45. package/dist/lib/modules/tournament/config/config.service.js.map +1 -1
  46. package/dist/lib/modules/tournament/config/config.validation.d.ts +412 -659
  47. package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
  48. package/dist/lib/modules/tournament/config/config.validation.js +40 -25
  49. package/dist/lib/modules/tournament/config/config.validation.js.map +1 -1
  50. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
  51. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
  52. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +20 -0
  53. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -0
  54. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
  55. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
  56. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js +12 -0
  57. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js.map +1 -0
  58. package/dist/lib/modules/tournament/match/match.builder.d.ts +5 -2
  59. package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -1
  60. package/dist/lib/modules/tournament/match/match.builder.js +12 -7
  61. package/dist/lib/modules/tournament/match/match.builder.js.map +1 -1
  62. package/dist/lib/modules/tournament/match/match.router.d.ts +50 -187
  63. package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -1
  64. package/dist/lib/modules/tournament/match/match.router.js +0 -7
  65. package/dist/lib/modules/tournament/match/match.router.js.map +1 -1
  66. package/dist/lib/modules/tournament/match/match.service.d.ts +1 -11
  67. package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -1
  68. package/dist/lib/modules/tournament/match/match.service.js +17 -61
  69. package/dist/lib/modules/tournament/match/match.service.js.map +1 -1
  70. package/dist/lib/modules/tournament/match/match.validation.d.ts +46 -34
  71. package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -1
  72. package/dist/lib/modules/tournament/match/match.validation.js +4 -2
  73. package/dist/lib/modules/tournament/match/match.validation.js.map +1 -1
  74. package/dist/lib/modules/tournament/notification/notification.service.d.ts +2 -1
  75. package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -1
  76. package/dist/lib/modules/tournament/notification/notification.service.js +16 -11
  77. package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
  78. package/dist/lib/modules/tournament/participant/participant.router.d.ts +9 -9
  79. package/dist/lib/modules/tournament/participant/participant.validation.d.ts +84 -84
  80. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +4 -1
  81. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
  82. package/dist/lib/modules/tournament/prediction/prediction.repository.js +20 -2
  83. package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -1
  84. package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +12 -12
  85. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +8 -0
  86. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  87. package/dist/lib/modules/tournament/prediction/prediction.service.js +20 -3
  88. package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
  89. package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +64 -64
  90. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +3 -0
  91. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
  92. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +21 -5
  93. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -1
  94. package/dist/lib/modules/tournament/reward/reward.builder.d.ts +6 -0
  95. package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -0
  96. package/dist/lib/modules/tournament/reward/reward.builder.js +43 -0
  97. package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -0
  98. package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -1
  99. package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -1
  100. package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -1
  101. package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -1
  102. package/dist/lib/modules/tournament/reward/reward.types.d.ts +1 -1
  103. package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -1
  104. package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -1
  105. package/dist/lib/modules/tournament/score/score.repository.d.ts +6 -0
  106. package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -0
  107. package/dist/lib/modules/tournament/score/score.repository.js +60 -0
  108. package/dist/lib/modules/tournament/score/score.repository.js.map +1 -0
  109. package/dist/lib/modules/tournament/score/score.service.d.ts +6 -0
  110. package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -0
  111. package/dist/lib/modules/tournament/score/score.service.js +60 -0
  112. package/dist/lib/modules/tournament/score/score.service.js.map +1 -0
  113. package/dist/lib/modules/tournament/team/team.router.d.ts +22 -54
  114. package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
  115. package/dist/lib/modules/tournament/team/team.validation.d.ts +14 -14
  116. package/dist/lib/modules/tournament/tournament.router.d.ts +216 -470
  117. package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
  118. package/dist/lib/modules/tournament/tournament.router.js +8 -0
  119. package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
  120. package/dist/lib/modules/tournament/tournament.service.d.ts +8 -0
  121. package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -0
  122. package/dist/lib/modules/tournament/tournament.service.js +63 -0
  123. package/dist/lib/modules/tournament/tournament.service.js.map +1 -0
  124. package/dist/lib/modules/tournament/tournament.validation.d.ts +133 -0
  125. package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -0
  126. package/dist/lib/modules/tournament/tournament.validation.js +14 -0
  127. package/dist/lib/modules/tournament/tournament.validation.js.map +1 -0
  128. package/dist/types/index.d.ts +228 -493
  129. package/dist/types/index.d.ts.map +1 -1
  130. package/dist/types/modules/coupon/services/coupon.service.d.ts +2 -2
  131. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  132. package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  133. package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
  134. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  135. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  136. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
  137. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
  138. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
  139. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  140. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +8 -2
  141. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  142. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +10 -21
  143. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  144. package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -1
  145. package/dist/types/modules/tournament/config/config.repository.d.ts +1 -0
  146. package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
  147. package/dist/types/modules/tournament/config/config.router.d.ts +96 -208
  148. package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -1
  149. package/dist/types/modules/tournament/config/config.service.d.ts +2 -2
  150. package/dist/types/modules/tournament/config/config.service.d.ts.map +1 -1
  151. package/dist/types/modules/tournament/config/config.validation.d.ts +412 -659
  152. package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -1
  153. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
  154. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
  155. package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
  156. package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
  157. package/dist/types/modules/tournament/match/match.builder.d.ts +5 -2
  158. package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
  159. package/dist/types/modules/tournament/match/match.router.d.ts +50 -187
  160. package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
  161. package/dist/types/modules/tournament/match/match.service.d.ts +1 -11
  162. package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
  163. package/dist/types/modules/tournament/match/match.validation.d.ts +46 -34
  164. package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -1
  165. package/dist/types/modules/tournament/notification/notification.service.d.ts +2 -1
  166. package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
  167. package/dist/types/modules/tournament/participant/participant.router.d.ts +9 -9
  168. package/dist/types/modules/tournament/participant/participant.validation.d.ts +84 -84
  169. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +4 -1
  170. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
  171. package/dist/types/modules/tournament/prediction/prediction.router.d.ts +12 -12
  172. package/dist/types/modules/tournament/prediction/prediction.service.d.ts +8 -0
  173. package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  174. package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +64 -64
  175. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +3 -0
  176. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
  177. package/dist/types/modules/tournament/reward/reward.builder.d.ts +6 -0
  178. package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -0
  179. package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -1
  180. package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -1
  181. package/dist/types/modules/tournament/reward/reward.types.d.ts +1 -1
  182. package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -1
  183. package/dist/types/modules/tournament/score/score.repository.d.ts +6 -0
  184. package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -0
  185. package/dist/types/modules/tournament/score/score.service.d.ts +6 -0
  186. package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -0
  187. package/dist/types/modules/tournament/team/team.router.d.ts +22 -54
  188. package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -1
  189. package/dist/types/modules/tournament/team/team.validation.d.ts +14 -14
  190. package/dist/types/modules/tournament/tournament.router.d.ts +216 -470
  191. package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
  192. package/dist/types/modules/tournament/tournament.service.d.ts +8 -0
  193. package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -0
  194. package/dist/types/modules/tournament/tournament.validation.d.ts +133 -0
  195. package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -0
  196. package/package.json +2 -2
@@ -7527,37 +7527,26 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7527
7527
  meta: object;
7528
7528
  }>;
7529
7529
  getActive: import("@trpc/server").TRPCQueryProcedure<{
7530
- input: void;
7530
+ input: {
7531
+ latitude?: number | undefined;
7532
+ longitude?: number | undefined;
7533
+ };
7531
7534
  output: {
7532
7535
  message: string;
7533
7536
  success: boolean;
7534
7537
  data?: {
7535
- status: import("@lyxa.ai/core/dist/utilities/enum").LimitedTimeOfferCampaignStatus;
7536
7538
  _id: string | import("mongoose").Types.ObjectId;
7537
- campaignNumber: number;
7538
- createdAt?: Date | null | undefined;
7539
- startDate?: Date | null | undefined;
7540
- endDate?: Date | null | undefined;
7541
- updatedAt?: Date | null | undefined;
7542
7539
  title?: string | undefined;
7543
- subTitle?: string | undefined;
7544
- discountOptions?: number[] | undefined;
7545
- maxDiscountCaps?: number[] | undefined;
7546
- archivedAt?: Date | null | undefined;
7540
+ subtitle?: string | undefined;
7541
+ startTime?: Date | null | undefined;
7542
+ endTime?: Date | null | undefined;
7547
7543
  } | {
7548
7544
  documents: ({
7549
- status: import("@lyxa.ai/core/dist/utilities/enum").LimitedTimeOfferCampaignStatus;
7550
7545
  _id: string | import("mongoose").Types.ObjectId;
7551
- campaignNumber: number;
7552
- createdAt?: Date | null | undefined;
7553
- startDate?: Date | null | undefined;
7554
- endDate?: Date | null | undefined;
7555
- updatedAt?: Date | null | undefined;
7556
7546
  title?: string | undefined;
7557
- subTitle?: string | undefined;
7558
- discountOptions?: number[] | undefined;
7559
- maxDiscountCaps?: number[] | undefined;
7560
- archivedAt?: Date | null | undefined;
7547
+ subtitle?: string | undefined;
7548
+ startTime?: Date | null | undefined;
7549
+ endTime?: Date | null | undefined;
7561
7550
  } | null)[];
7562
7551
  metadata?: {
7563
7552
  page: number;
@@ -7975,81 +7964,58 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7975
7964
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7976
7965
  create: import("@trpc/server").TRPCMutationProcedure<{
7977
7966
  input: {
7967
+ name: string;
7978
7968
  startDate: string | Date;
7979
7969
  endDate: string | Date;
7980
7970
  tag: string;
7981
7971
  status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
7972
+ reward?: {
7973
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
7974
+ } | {
7975
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
7976
+ couponNamePrefix: string;
7977
+ percentage: number;
7978
+ maxDiscountPerOrder?: number | null | undefined;
7979
+ } | undefined;
7982
7980
  };
7983
7981
  output: {
7984
7982
  message: string;
7985
7983
  success: boolean;
7986
7984
  data?: {
7987
7985
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
7988
- _id: string | import("mongoose").Types.ObjectId;
7986
+ name: string;
7989
7987
  tag: string;
7988
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
7990
7989
  createdAt?: Date | null | undefined;
7991
7990
  startDate?: Date | null | undefined;
7992
7991
  endDate?: Date | null | undefined;
7993
7992
  updatedAt?: Date | null | undefined;
7994
- matches?: {
7995
- _id: string | import("mongoose").Types.ObjectId;
7996
- team1: {
7997
- name: string;
7998
- teamId: string | import("mongoose").Types.ObjectId;
7999
- };
8000
- team2: {
8001
- name: string;
8002
- teamId: string | import("mongoose").Types.ObjectId;
8003
- };
8004
- score: {
8005
- team1: number | null;
8006
- team2: number | null;
8007
- };
8008
- stage: string;
8009
- endDate?: Date | null | undefined;
8010
- startingDate?: Date | null | undefined;
8011
- additionalTag?: string | undefined;
8012
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8013
- }[] | undefined;
8014
- teams?: {
8015
- name: string;
8016
- _id: string | import("mongoose").Types.ObjectId;
8017
- picture?: string | null | undefined;
8018
- }[] | undefined;
7993
+ reward?: {
7994
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
7995
+ } | {
7996
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
7997
+ maxDiscountPerOrder?: number | null | undefined;
7998
+ couponNamePrefix?: string | undefined;
7999
+ percentage?: number | undefined;
8000
+ } | undefined;
8019
8001
  } | {
8020
8002
  documents: {
8021
8003
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8022
- _id: string | import("mongoose").Types.ObjectId;
8004
+ name: string;
8023
8005
  tag: string;
8006
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
8024
8007
  createdAt?: Date | null | undefined;
8025
8008
  startDate?: Date | null | undefined;
8026
8009
  endDate?: Date | null | undefined;
8027
8010
  updatedAt?: Date | null | undefined;
8028
- matches?: {
8029
- _id: string | import("mongoose").Types.ObjectId;
8030
- team1: {
8031
- name: string;
8032
- teamId: string | import("mongoose").Types.ObjectId;
8033
- };
8034
- team2: {
8035
- name: string;
8036
- teamId: string | import("mongoose").Types.ObjectId;
8037
- };
8038
- score: {
8039
- team1: number | null;
8040
- team2: number | null;
8041
- };
8042
- stage: string;
8043
- endDate?: Date | null | undefined;
8044
- startingDate?: Date | null | undefined;
8045
- additionalTag?: string | undefined;
8046
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8047
- }[] | undefined;
8048
- teams?: {
8049
- name: string;
8050
- _id: string | import("mongoose").Types.ObjectId;
8051
- picture?: string | null | undefined;
8052
- }[] | undefined;
8011
+ reward?: {
8012
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8013
+ } | {
8014
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8015
+ maxDiscountPerOrder?: number | null | undefined;
8016
+ couponNamePrefix?: string | undefined;
8017
+ percentage?: number | undefined;
8018
+ } | undefined;
8053
8019
  }[];
8054
8020
  metadata?: {
8055
8021
  page: number;
@@ -8068,71 +8034,37 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8068
8034
  success: boolean;
8069
8035
  data?: {
8070
8036
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8071
- _id: string | import("mongoose").Types.ObjectId;
8037
+ name: string;
8072
8038
  tag: string;
8039
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
8073
8040
  createdAt?: Date | null | undefined;
8074
8041
  startDate?: Date | null | undefined;
8075
8042
  endDate?: Date | null | undefined;
8076
8043
  updatedAt?: Date | null | undefined;
8077
- matches?: {
8078
- _id: string | import("mongoose").Types.ObjectId;
8079
- team1: {
8080
- name: string;
8081
- teamId: string | import("mongoose").Types.ObjectId;
8082
- };
8083
- team2: {
8084
- name: string;
8085
- teamId: string | import("mongoose").Types.ObjectId;
8086
- };
8087
- score: {
8088
- team1: number | null;
8089
- team2: number | null;
8090
- };
8091
- stage: string;
8092
- endDate?: Date | null | undefined;
8093
- startingDate?: Date | null | undefined;
8094
- additionalTag?: string | undefined;
8095
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8096
- }[] | undefined;
8097
- teams?: {
8098
- name: string;
8099
- _id: string | import("mongoose").Types.ObjectId;
8100
- picture?: string | null | undefined;
8101
- }[] | undefined;
8044
+ reward?: {
8045
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8046
+ } | {
8047
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8048
+ maxDiscountPerOrder?: number | null | undefined;
8049
+ percentage?: number | undefined;
8050
+ } | undefined;
8102
8051
  }[] | {
8103
8052
  documents: {
8104
8053
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8105
- _id: string | import("mongoose").Types.ObjectId;
8054
+ name: string;
8106
8055
  tag: string;
8056
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
8107
8057
  createdAt?: Date | null | undefined;
8108
8058
  startDate?: Date | null | undefined;
8109
8059
  endDate?: Date | null | undefined;
8110
8060
  updatedAt?: Date | null | undefined;
8111
- matches?: {
8112
- _id: string | import("mongoose").Types.ObjectId;
8113
- team1: {
8114
- name: string;
8115
- teamId: string | import("mongoose").Types.ObjectId;
8116
- };
8117
- team2: {
8118
- name: string;
8119
- teamId: string | import("mongoose").Types.ObjectId;
8120
- };
8121
- score: {
8122
- team1: number | null;
8123
- team2: number | null;
8124
- };
8125
- stage: string;
8126
- endDate?: Date | null | undefined;
8127
- startingDate?: Date | null | undefined;
8128
- additionalTag?: string | undefined;
8129
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8130
- }[] | undefined;
8131
- teams?: {
8132
- name: string;
8133
- _id: string | import("mongoose").Types.ObjectId;
8134
- picture?: string | null | undefined;
8135
- }[] | undefined;
8061
+ reward?: {
8062
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8063
+ } | {
8064
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8065
+ maxDiscountPerOrder?: number | null | undefined;
8066
+ percentage?: number | undefined;
8067
+ } | undefined;
8136
8068
  }[][];
8137
8069
  metadata?: {
8138
8070
  page: number;
@@ -8153,71 +8085,39 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8153
8085
  success: boolean;
8154
8086
  data?: {
8155
8087
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8156
- _id: string | import("mongoose").Types.ObjectId;
8088
+ name: string;
8157
8089
  tag: string;
8090
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
8158
8091
  createdAt?: Date | null | undefined;
8159
8092
  startDate?: Date | null | undefined;
8160
8093
  endDate?: Date | null | undefined;
8161
8094
  updatedAt?: Date | null | undefined;
8162
- matches?: {
8163
- _id: string | import("mongoose").Types.ObjectId;
8164
- team1: {
8165
- name: string;
8166
- teamId: string | import("mongoose").Types.ObjectId;
8167
- };
8168
- team2: {
8169
- name: string;
8170
- teamId: string | import("mongoose").Types.ObjectId;
8171
- };
8172
- score: {
8173
- team1: number | null;
8174
- team2: number | null;
8175
- };
8176
- stage: string;
8177
- endDate?: Date | null | undefined;
8178
- startingDate?: Date | null | undefined;
8179
- additionalTag?: string | undefined;
8180
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8181
- }[] | undefined;
8182
- teams?: {
8183
- name: string;
8184
- _id: string | import("mongoose").Types.ObjectId;
8185
- picture?: string | null | undefined;
8186
- }[] | undefined;
8095
+ reward?: {
8096
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8097
+ } | {
8098
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8099
+ maxDiscountPerOrder?: number | null | undefined;
8100
+ couponNamePrefix?: string | undefined;
8101
+ percentage?: number | undefined;
8102
+ } | undefined;
8187
8103
  } | {
8188
8104
  documents: {
8189
8105
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8190
- _id: string | import("mongoose").Types.ObjectId;
8106
+ name: string;
8191
8107
  tag: string;
8108
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
8192
8109
  createdAt?: Date | null | undefined;
8193
8110
  startDate?: Date | null | undefined;
8194
8111
  endDate?: Date | null | undefined;
8195
8112
  updatedAt?: Date | null | undefined;
8196
- matches?: {
8197
- _id: string | import("mongoose").Types.ObjectId;
8198
- team1: {
8199
- name: string;
8200
- teamId: string | import("mongoose").Types.ObjectId;
8201
- };
8202
- team2: {
8203
- name: string;
8204
- teamId: string | import("mongoose").Types.ObjectId;
8205
- };
8206
- score: {
8207
- team1: number | null;
8208
- team2: number | null;
8209
- };
8210
- stage: string;
8211
- endDate?: Date | null | undefined;
8212
- startingDate?: Date | null | undefined;
8213
- additionalTag?: string | undefined;
8214
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8215
- }[] | undefined;
8216
- teams?: {
8217
- name: string;
8218
- _id: string | import("mongoose").Types.ObjectId;
8219
- picture?: string | null | undefined;
8220
- }[] | undefined;
8113
+ reward?: {
8114
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8115
+ } | {
8116
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8117
+ maxDiscountPerOrder?: number | null | undefined;
8118
+ couponNamePrefix?: string | undefined;
8119
+ percentage?: number | undefined;
8120
+ } | undefined;
8221
8121
  }[];
8222
8122
  metadata?: {
8223
8123
  page: number;
@@ -8233,80 +8133,57 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8233
8133
  input: {
8234
8134
  _id: string | import("mongoose").Types.ObjectId;
8235
8135
  status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
8136
+ name?: string | undefined;
8236
8137
  startDate?: string | Date | undefined;
8237
8138
  endDate?: string | Date | undefined;
8238
8139
  tag?: string | undefined;
8140
+ reward?: {
8141
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8142
+ } | {
8143
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8144
+ couponNamePrefix: string;
8145
+ percentage: number;
8146
+ maxDiscountPerOrder?: number | null | undefined;
8147
+ } | undefined;
8239
8148
  };
8240
8149
  output: {
8241
8150
  message: string;
8242
8151
  success: boolean;
8243
8152
  data?: {
8244
8153
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8245
- _id: string | import("mongoose").Types.ObjectId;
8154
+ name: string;
8246
8155
  tag: string;
8156
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
8247
8157
  createdAt?: Date | null | undefined;
8248
8158
  startDate?: Date | null | undefined;
8249
8159
  endDate?: Date | null | undefined;
8250
8160
  updatedAt?: Date | null | undefined;
8251
- matches?: {
8252
- _id: string | import("mongoose").Types.ObjectId;
8253
- team1: {
8254
- name: string;
8255
- teamId: string | import("mongoose").Types.ObjectId;
8256
- };
8257
- team2: {
8258
- name: string;
8259
- teamId: string | import("mongoose").Types.ObjectId;
8260
- };
8261
- score: {
8262
- team1: number | null;
8263
- team2: number | null;
8264
- };
8265
- stage: string;
8266
- endDate?: Date | null | undefined;
8267
- startingDate?: Date | null | undefined;
8268
- additionalTag?: string | undefined;
8269
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8270
- }[] | undefined;
8271
- teams?: {
8272
- name: string;
8273
- _id: string | import("mongoose").Types.ObjectId;
8274
- picture?: string | null | undefined;
8275
- }[] | undefined;
8161
+ reward?: {
8162
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8163
+ } | {
8164
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8165
+ maxDiscountPerOrder?: number | null | undefined;
8166
+ couponNamePrefix?: string | undefined;
8167
+ percentage?: number | undefined;
8168
+ } | undefined;
8276
8169
  } | {
8277
8170
  documents: {
8278
8171
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8279
- _id: string | import("mongoose").Types.ObjectId;
8172
+ name: string;
8280
8173
  tag: string;
8174
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
8281
8175
  createdAt?: Date | null | undefined;
8282
8176
  startDate?: Date | null | undefined;
8283
8177
  endDate?: Date | null | undefined;
8284
8178
  updatedAt?: Date | null | undefined;
8285
- matches?: {
8286
- _id: string | import("mongoose").Types.ObjectId;
8287
- team1: {
8288
- name: string;
8289
- teamId: string | import("mongoose").Types.ObjectId;
8290
- };
8291
- team2: {
8292
- name: string;
8293
- teamId: string | import("mongoose").Types.ObjectId;
8294
- };
8295
- score: {
8296
- team1: number | null;
8297
- team2: number | null;
8298
- };
8299
- stage: string;
8300
- endDate?: Date | null | undefined;
8301
- startingDate?: Date | null | undefined;
8302
- additionalTag?: string | undefined;
8303
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8304
- }[] | undefined;
8305
- teams?: {
8306
- name: string;
8307
- _id: string | import("mongoose").Types.ObjectId;
8308
- picture?: string | null | undefined;
8309
- }[] | undefined;
8179
+ reward?: {
8180
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8181
+ } | {
8182
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8183
+ maxDiscountPerOrder?: number | null | undefined;
8184
+ couponNamePrefix?: string | undefined;
8185
+ percentage?: number | undefined;
8186
+ } | undefined;
8310
8187
  }[];
8311
8188
  metadata?: {
8312
8189
  page: number;
@@ -8348,71 +8225,39 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8348
8225
  success: boolean;
8349
8226
  data?: {
8350
8227
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8351
- _id: string | import("mongoose").Types.ObjectId;
8228
+ name: string;
8352
8229
  tag: string;
8230
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
8353
8231
  createdAt?: Date | null | undefined;
8354
8232
  startDate?: Date | null | undefined;
8355
8233
  endDate?: Date | null | undefined;
8356
8234
  updatedAt?: Date | null | undefined;
8357
- matches?: {
8358
- _id: string | import("mongoose").Types.ObjectId;
8359
- team1: {
8360
- name: string;
8361
- teamId: string | import("mongoose").Types.ObjectId;
8362
- };
8363
- team2: {
8364
- name: string;
8365
- teamId: string | import("mongoose").Types.ObjectId;
8366
- };
8367
- score: {
8368
- team1: number | null;
8369
- team2: number | null;
8370
- };
8371
- stage: string;
8372
- endDate?: Date | null | undefined;
8373
- startingDate?: Date | null | undefined;
8374
- additionalTag?: string | undefined;
8375
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8376
- }[] | undefined;
8377
- teams?: {
8378
- name: string;
8379
- _id: string | import("mongoose").Types.ObjectId;
8380
- picture?: string | null | undefined;
8381
- }[] | undefined;
8235
+ reward?: {
8236
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8237
+ } | {
8238
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8239
+ maxDiscountPerOrder?: number | null | undefined;
8240
+ couponNamePrefix?: string | undefined;
8241
+ percentage?: number | undefined;
8242
+ } | undefined;
8382
8243
  } | {
8383
8244
  documents: {
8384
8245
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8385
- _id: string | import("mongoose").Types.ObjectId;
8246
+ name: string;
8386
8247
  tag: string;
8248
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
8387
8249
  createdAt?: Date | null | undefined;
8388
8250
  startDate?: Date | null | undefined;
8389
- endDate?: Date | null | undefined;
8390
- updatedAt?: Date | null | undefined;
8391
- matches?: {
8392
- _id: string | import("mongoose").Types.ObjectId;
8393
- team1: {
8394
- name: string;
8395
- teamId: string | import("mongoose").Types.ObjectId;
8396
- };
8397
- team2: {
8398
- name: string;
8399
- teamId: string | import("mongoose").Types.ObjectId;
8400
- };
8401
- score: {
8402
- team1: number | null;
8403
- team2: number | null;
8404
- };
8405
- stage: string;
8406
- endDate?: Date | null | undefined;
8407
- startingDate?: Date | null | undefined;
8408
- additionalTag?: string | undefined;
8409
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8410
- }[] | undefined;
8411
- teams?: {
8412
- name: string;
8413
- _id: string | import("mongoose").Types.ObjectId;
8414
- picture?: string | null | undefined;
8415
- }[] | undefined;
8251
+ endDate?: Date | null | undefined;
8252
+ updatedAt?: Date | null | undefined;
8253
+ reward?: {
8254
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8255
+ } | {
8256
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8257
+ maxDiscountPerOrder?: number | null | undefined;
8258
+ couponNamePrefix?: string | undefined;
8259
+ percentage?: number | undefined;
8260
+ } | undefined;
8416
8261
  }[];
8417
8262
  metadata?: {
8418
8263
  page: number;
@@ -8501,9 +8346,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8501
8346
  } | null;
8502
8347
  canPredict: boolean;
8503
8348
  endDate?: Date | null | undefined;
8504
- startingDate?: Date | null | undefined;
8505
8349
  additionalTag?: string | undefined;
8506
8350
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8351
+ startingDate?: Date | null | undefined;
8507
8352
  }[];
8508
8353
  startDate?: Date | null | undefined;
8509
8354
  endDate?: Date | null | undefined;
@@ -8536,9 +8381,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8536
8381
  } | null;
8537
8382
  canPredict: boolean;
8538
8383
  endDate?: Date | null | undefined;
8539
- startingDate?: Date | null | undefined;
8540
8384
  additionalTag?: string | undefined;
8541
8385
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8386
+ startingDate?: Date | null | undefined;
8542
8387
  }[];
8543
8388
  startDate?: Date | null | undefined;
8544
8389
  endDate?: Date | null | undefined;
@@ -8575,9 +8420,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8575
8420
  tournamentId: string | import("mongoose").Types.ObjectId;
8576
8421
  matches: {
8577
8422
  stage: string;
8423
+ startingDate: string | Date;
8578
8424
  team1Id: string | import("mongoose").Types.ObjectId;
8579
8425
  team2Id: string | import("mongoose").Types.ObjectId;
8580
- startingDate: string | Date;
8581
8426
  endDate?: string | Date | undefined;
8582
8427
  additionalTag?: string | undefined;
8583
8428
  }[];
@@ -8587,71 +8432,39 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8587
8432
  success: boolean;
8588
8433
  data?: {
8589
8434
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8590
- _id: string | import("mongoose").Types.ObjectId;
8435
+ name: string;
8591
8436
  tag: string;
8437
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
8592
8438
  createdAt?: Date | null | undefined;
8593
8439
  startDate?: Date | null | undefined;
8594
8440
  endDate?: Date | null | undefined;
8595
8441
  updatedAt?: Date | null | undefined;
8596
- matches?: {
8597
- _id: string | import("mongoose").Types.ObjectId;
8598
- team1: {
8599
- name: string;
8600
- teamId: string | import("mongoose").Types.ObjectId;
8601
- };
8602
- team2: {
8603
- name: string;
8604
- teamId: string | import("mongoose").Types.ObjectId;
8605
- };
8606
- score: {
8607
- team1: number | null;
8608
- team2: number | null;
8609
- };
8610
- stage: string;
8611
- endDate?: Date | null | undefined;
8612
- startingDate?: Date | null | undefined;
8613
- additionalTag?: string | undefined;
8614
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8615
- }[] | undefined;
8616
- teams?: {
8617
- name: string;
8618
- _id: string | import("mongoose").Types.ObjectId;
8619
- picture?: string | null | undefined;
8620
- }[] | undefined;
8442
+ reward?: {
8443
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8444
+ } | {
8445
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8446
+ maxDiscountPerOrder?: number | null | undefined;
8447
+ couponNamePrefix?: string | undefined;
8448
+ percentage?: number | undefined;
8449
+ } | undefined;
8621
8450
  } | {
8622
8451
  documents: {
8623
8452
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8624
- _id: string | import("mongoose").Types.ObjectId;
8453
+ name: string;
8625
8454
  tag: string;
8455
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
8626
8456
  createdAt?: Date | null | undefined;
8627
8457
  startDate?: Date | null | undefined;
8628
8458
  endDate?: Date | null | undefined;
8629
8459
  updatedAt?: Date | null | undefined;
8630
- matches?: {
8631
- _id: string | import("mongoose").Types.ObjectId;
8632
- team1: {
8633
- name: string;
8634
- teamId: string | import("mongoose").Types.ObjectId;
8635
- };
8636
- team2: {
8637
- name: string;
8638
- teamId: string | import("mongoose").Types.ObjectId;
8639
- };
8640
- score: {
8641
- team1: number | null;
8642
- team2: number | null;
8643
- };
8644
- stage: string;
8645
- endDate?: Date | null | undefined;
8646
- startingDate?: Date | null | undefined;
8647
- additionalTag?: string | undefined;
8648
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8649
- }[] | undefined;
8650
- teams?: {
8651
- name: string;
8652
- _id: string | import("mongoose").Types.ObjectId;
8653
- picture?: string | null | undefined;
8654
- }[] | undefined;
8460
+ reward?: {
8461
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8462
+ } | {
8463
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8464
+ maxDiscountPerOrder?: number | null | undefined;
8465
+ couponNamePrefix?: string | undefined;
8466
+ percentage?: number | undefined;
8467
+ } | undefined;
8655
8468
  }[];
8656
8469
  metadata?: {
8657
8470
  page: number;
@@ -8686,9 +8499,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8686
8499
  };
8687
8500
  stage: string;
8688
8501
  endDate?: Date | null | undefined;
8689
- startingDate?: Date | null | undefined;
8690
8502
  additionalTag?: string | undefined;
8691
8503
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8504
+ startingDate?: Date | null | undefined;
8692
8505
  prediction?: {
8693
8506
  score: {
8694
8507
  team1: number | null;
@@ -8713,9 +8526,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8713
8526
  };
8714
8527
  stage: string;
8715
8528
  endDate?: Date | null | undefined;
8716
- startingDate?: Date | null | undefined;
8717
8529
  additionalTag?: string | undefined;
8718
8530
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8531
+ startingDate?: Date | null | undefined;
8719
8532
  prediction?: {
8720
8533
  score: {
8721
8534
  team1: number | null;
@@ -8758,84 +8571,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8758
8571
  };
8759
8572
  stage: string;
8760
8573
  endDate?: Date | null | undefined;
8761
- startingDate?: Date | null | undefined;
8762
8574
  additionalTag?: string | undefined;
8763
8575
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8764
- prediction?: {
8765
- score: {
8766
- team1: number | null;
8767
- team2: number | null;
8768
- };
8769
- succeeded?: boolean | null | undefined;
8770
- } | null | undefined;
8771
- } | {
8772
- documents: {
8773
- _id: string | import("mongoose").Types.ObjectId;
8774
- team1: {
8775
- name: string;
8776
- teamId: string | import("mongoose").Types.ObjectId;
8777
- };
8778
- team2: {
8779
- name: string;
8780
- teamId: string | import("mongoose").Types.ObjectId;
8781
- };
8782
- score: {
8783
- team1: number | null;
8784
- team2: number | null;
8785
- };
8786
- stage: string;
8787
- endDate?: Date | null | undefined;
8788
- startingDate?: Date | null | undefined;
8789
- additionalTag?: string | undefined;
8790
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8791
- prediction?: {
8792
- score: {
8793
- team1: number | null;
8794
- team2: number | null;
8795
- };
8796
- succeeded?: boolean | null | undefined;
8797
- } | null | undefined;
8798
- }[];
8799
- metadata?: {
8800
- page: number;
8801
- size: number;
8802
- totalElements: number;
8803
- totalPages: number;
8804
- } | undefined;
8805
- } | undefined;
8806
- };
8807
- meta: object;
8808
- }>;
8809
- updateScore: import("@trpc/server").TRPCMutationProcedure<{
8810
- input: {
8811
- tournamentId: string | import("mongoose").Types.ObjectId;
8812
- matchId: string | import("mongoose").Types.ObjectId;
8813
- team1Score: number;
8814
- team2Score: number;
8815
- winnerId?: string | import("mongoose").Types.ObjectId | undefined;
8816
- };
8817
- output: {
8818
- message: string;
8819
- success: boolean;
8820
- data?: {
8821
- _id: string | import("mongoose").Types.ObjectId;
8822
- team1: {
8823
- name: string;
8824
- teamId: string | import("mongoose").Types.ObjectId;
8825
- };
8826
- team2: {
8827
- name: string;
8828
- teamId: string | import("mongoose").Types.ObjectId;
8829
- };
8830
- score: {
8831
- team1: number | null;
8832
- team2: number | null;
8833
- };
8834
- stage: string;
8835
- endDate?: Date | null | undefined;
8836
8576
  startingDate?: Date | null | undefined;
8837
- additionalTag?: string | undefined;
8838
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8839
8577
  prediction?: {
8840
8578
  score: {
8841
8579
  team1: number | null;
@@ -8860,9 +8598,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8860
8598
  };
8861
8599
  stage: string;
8862
8600
  endDate?: Date | null | undefined;
8863
- startingDate?: Date | null | undefined;
8864
8601
  additionalTag?: string | undefined;
8865
8602
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8603
+ startingDate?: Date | null | undefined;
8866
8604
  prediction?: {
8867
8605
  score: {
8868
8606
  team1: number | null;
@@ -8885,8 +8623,10 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8885
8623
  input: {
8886
8624
  tournamentId: string | import("mongoose").Types.ObjectId;
8887
8625
  matchId: string | import("mongoose").Types.ObjectId;
8888
- endDate?: string | Date | undefined;
8889
- winnerId?: string | import("mongoose").Types.ObjectId | undefined;
8626
+ finalScore?: {
8627
+ team1: number;
8628
+ team2: number;
8629
+ } | undefined;
8890
8630
  };
8891
8631
  output: {
8892
8632
  message: string;
@@ -8907,9 +8647,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8907
8647
  };
8908
8648
  stage: string;
8909
8649
  endDate?: Date | null | undefined;
8910
- startingDate?: Date | null | undefined;
8911
8650
  additionalTag?: string | undefined;
8912
8651
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8652
+ startingDate?: Date | null | undefined;
8913
8653
  prediction?: {
8914
8654
  score: {
8915
8655
  team1: number | null;
@@ -8934,9 +8674,9 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8934
8674
  };
8935
8675
  stage: string;
8936
8676
  endDate?: Date | null | undefined;
8937
- startingDate?: Date | null | undefined;
8938
8677
  additionalTag?: string | undefined;
8939
8678
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8679
+ startingDate?: Date | null | undefined;
8940
8680
  prediction?: {
8941
8681
  score: {
8942
8682
  team1: number | null;
@@ -8965,71 +8705,39 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8965
8705
  success: boolean;
8966
8706
  data?: {
8967
8707
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8968
- _id: string | import("mongoose").Types.ObjectId;
8708
+ name: string;
8969
8709
  tag: string;
8710
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
8970
8711
  createdAt?: Date | null | undefined;
8971
8712
  startDate?: Date | null | undefined;
8972
8713
  endDate?: Date | null | undefined;
8973
8714
  updatedAt?: Date | null | undefined;
8974
- matches?: {
8975
- _id: string | import("mongoose").Types.ObjectId;
8976
- team1: {
8977
- name: string;
8978
- teamId: string | import("mongoose").Types.ObjectId;
8979
- };
8980
- team2: {
8981
- name: string;
8982
- teamId: string | import("mongoose").Types.ObjectId;
8983
- };
8984
- score: {
8985
- team1: number | null;
8986
- team2: number | null;
8987
- };
8988
- stage: string;
8989
- endDate?: Date | null | undefined;
8990
- startingDate?: Date | null | undefined;
8991
- additionalTag?: string | undefined;
8992
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
8993
- }[] | undefined;
8994
- teams?: {
8995
- name: string;
8996
- _id: string | import("mongoose").Types.ObjectId;
8997
- picture?: string | null | undefined;
8998
- }[] | undefined;
8715
+ reward?: {
8716
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8717
+ } | {
8718
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8719
+ maxDiscountPerOrder?: number | null | undefined;
8720
+ couponNamePrefix?: string | undefined;
8721
+ percentage?: number | undefined;
8722
+ } | undefined;
8999
8723
  } | {
9000
8724
  documents: {
9001
8725
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
9002
- _id: string | import("mongoose").Types.ObjectId;
8726
+ name: string;
9003
8727
  tag: string;
8728
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
9004
8729
  createdAt?: Date | null | undefined;
9005
8730
  startDate?: Date | null | undefined;
9006
8731
  endDate?: Date | null | undefined;
9007
8732
  updatedAt?: Date | null | undefined;
9008
- matches?: {
9009
- _id: string | import("mongoose").Types.ObjectId;
9010
- team1: {
9011
- name: string;
9012
- teamId: string | import("mongoose").Types.ObjectId;
9013
- };
9014
- team2: {
9015
- name: string;
9016
- teamId: string | import("mongoose").Types.ObjectId;
9017
- };
9018
- score: {
9019
- team1: number | null;
9020
- team2: number | null;
9021
- };
9022
- stage: string;
9023
- endDate?: Date | null | undefined;
9024
- startingDate?: Date | null | undefined;
9025
- additionalTag?: string | undefined;
9026
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
9027
- }[] | undefined;
9028
- teams?: {
9029
- name: string;
9030
- _id: string | import("mongoose").Types.ObjectId;
9031
- picture?: string | null | undefined;
9032
- }[] | undefined;
8733
+ reward?: {
8734
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8735
+ } | {
8736
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
8737
+ maxDiscountPerOrder?: number | null | undefined;
8738
+ couponNamePrefix?: string | undefined;
8739
+ percentage?: number | undefined;
8740
+ } | undefined;
9033
8741
  }[];
9034
8742
  metadata?: {
9035
8743
  page: number;
@@ -9060,22 +8768,22 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
9060
8768
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
9061
8769
  join: import("@trpc/server").TRPCMutationProcedure<{
9062
8770
  input: {
9063
- teamId: string | import("mongoose").Types.ObjectId;
9064
8771
  tournamentId: string | import("mongoose").Types.ObjectId;
8772
+ teamId: string | import("mongoose").Types.ObjectId;
9065
8773
  };
9066
8774
  output: {
9067
8775
  message: string;
9068
8776
  success: boolean;
9069
8777
  data?: {
9070
8778
  _id: string | import("mongoose").Types.ObjectId;
9071
- teamId: string | import("mongoose").Types.ObjectId;
9072
8779
  tournamentId: string | import("mongoose").Types.ObjectId;
8780
+ teamId: string | import("mongoose").Types.ObjectId;
9073
8781
  createdAt?: Date | null | undefined;
9074
8782
  } | {
9075
8783
  documents: {
9076
8784
  _id: string | import("mongoose").Types.ObjectId;
9077
- teamId: string | import("mongoose").Types.ObjectId;
9078
8785
  tournamentId: string | import("mongoose").Types.ObjectId;
8786
+ teamId: string | import("mongoose").Types.ObjectId;
9079
8787
  createdAt?: Date | null | undefined;
9080
8788
  }[];
9081
8789
  metadata?: {
@@ -9098,39 +8806,39 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
9098
8806
  data?: {
9099
8807
  _id: string | import("mongoose").Types.ObjectId;
9100
8808
  userId: string | import("mongoose").Types.ObjectId;
9101
- teamId: string | import("mongoose").Types.ObjectId;
9102
8809
  tournamentId: string | import("mongoose").Types.ObjectId;
8810
+ teamId: string | import("mongoose").Types.ObjectId;
9103
8811
  createdAt?: Date | null | undefined;
9104
8812
  updatedAt?: Date | null | undefined;
9105
8813
  predictions?: {
9106
8814
  _id: string | import("mongoose").Types.ObjectId;
8815
+ matchId: string | import("mongoose").Types.ObjectId;
9107
8816
  score: {
9108
8817
  team1: number | null;
9109
8818
  team2: number | null;
9110
8819
  };
9111
- matchId: string | import("mongoose").Types.ObjectId;
9112
8820
  coupon?: string | import("mongoose").Types.ObjectId | undefined;
9113
- succeeded?: boolean | null | undefined;
9114
8821
  predictionTime?: Date | null | undefined;
8822
+ succeeded?: boolean | null | undefined;
9115
8823
  }[] | undefined;
9116
8824
  }[] | {
9117
8825
  documents: {
9118
8826
  _id: string | import("mongoose").Types.ObjectId;
9119
8827
  userId: string | import("mongoose").Types.ObjectId;
9120
- teamId: string | import("mongoose").Types.ObjectId;
9121
8828
  tournamentId: string | import("mongoose").Types.ObjectId;
8829
+ teamId: string | import("mongoose").Types.ObjectId;
9122
8830
  createdAt?: Date | null | undefined;
9123
8831
  updatedAt?: Date | null | undefined;
9124
8832
  predictions?: {
9125
8833
  _id: string | import("mongoose").Types.ObjectId;
8834
+ matchId: string | import("mongoose").Types.ObjectId;
9126
8835
  score: {
9127
8836
  team1: number | null;
9128
8837
  team2: number | null;
9129
8838
  };
9130
- matchId: string | import("mongoose").Types.ObjectId;
9131
8839
  coupon?: string | import("mongoose").Types.ObjectId | undefined;
9132
- succeeded?: boolean | null | undefined;
9133
8840
  predictionTime?: Date | null | undefined;
8841
+ succeeded?: boolean | null | undefined;
9134
8842
  }[] | undefined;
9135
8843
  }[][];
9136
8844
  metadata?: {
@@ -9162,31 +8870,31 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
9162
8870
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
9163
8871
  create: import("@trpc/server").TRPCMutationProcedure<{
9164
8872
  input: {
8873
+ tournamentId: string | import("mongoose").Types.ObjectId;
8874
+ matchId: string | import("mongoose").Types.ObjectId;
9165
8875
  score: {
9166
8876
  team1: number;
9167
8877
  team2: number;
9168
8878
  };
9169
- tournamentId: string | import("mongoose").Types.ObjectId;
9170
- matchId: string | import("mongoose").Types.ObjectId;
9171
8879
  };
9172
8880
  output: {
9173
8881
  message: string;
9174
8882
  success: boolean;
9175
8883
  data?: {
9176
8884
  _id: string | import("mongoose").Types.ObjectId;
8885
+ matchId: string | import("mongoose").Types.ObjectId;
9177
8886
  score: {
9178
8887
  team1: number | null;
9179
8888
  team2: number | null;
9180
8889
  };
9181
- matchId: string | import("mongoose").Types.ObjectId;
9182
8890
  } | {
9183
8891
  documents: {
9184
8892
  _id: string | import("mongoose").Types.ObjectId;
8893
+ matchId: string | import("mongoose").Types.ObjectId;
9185
8894
  score: {
9186
8895
  team1: number | null;
9187
8896
  team2: number | null;
9188
8897
  };
9189
- matchId: string | import("mongoose").Types.ObjectId;
9190
8898
  }[];
9191
8899
  metadata?: {
9192
8900
  page: number;
@@ -9200,31 +8908,31 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
9200
8908
  }>;
9201
8909
  edit: import("@trpc/server").TRPCMutationProcedure<{
9202
8910
  input: {
8911
+ tournamentId: string | import("mongoose").Types.ObjectId;
8912
+ matchId: string | import("mongoose").Types.ObjectId;
9203
8913
  score: {
9204
8914
  team1: number;
9205
8915
  team2: number;
9206
8916
  };
9207
- tournamentId: string | import("mongoose").Types.ObjectId;
9208
- matchId: string | import("mongoose").Types.ObjectId;
9209
8917
  };
9210
8918
  output: {
9211
8919
  message: string;
9212
8920
  success: boolean;
9213
8921
  data?: {
9214
8922
  _id: string | import("mongoose").Types.ObjectId;
8923
+ matchId: string | import("mongoose").Types.ObjectId;
9215
8924
  score: {
9216
8925
  team1: number | null;
9217
8926
  team2: number | null;
9218
8927
  };
9219
- matchId: string | import("mongoose").Types.ObjectId;
9220
8928
  } | {
9221
8929
  documents: {
9222
8930
  _id: string | import("mongoose").Types.ObjectId;
8931
+ matchId: string | import("mongoose").Types.ObjectId;
9223
8932
  score: {
9224
8933
  team1: number | null;
9225
8934
  team2: number | null;
9226
8935
  };
9227
- matchId: string | import("mongoose").Types.ObjectId;
9228
8936
  }[];
9229
8937
  metadata?: {
9230
8938
  page: number;
@@ -9246,23 +8954,23 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
9246
8954
  success: boolean;
9247
8955
  data?: {
9248
8956
  _id: string | import("mongoose").Types.ObjectId;
8957
+ matchId: string | import("mongoose").Types.ObjectId;
9249
8958
  score: {
9250
8959
  team1: number | null;
9251
8960
  team2: number | null;
9252
8961
  };
9253
- matchId: string | import("mongoose").Types.ObjectId;
9254
- succeeded?: boolean | null | undefined;
9255
8962
  predictionTime?: Date | null | undefined;
8963
+ succeeded?: boolean | null | undefined;
9256
8964
  } | {
9257
8965
  documents: ({
9258
8966
  _id: string | import("mongoose").Types.ObjectId;
8967
+ matchId: string | import("mongoose").Types.ObjectId;
9259
8968
  score: {
9260
8969
  team1: number | null;
9261
8970
  team2: number | null;
9262
8971
  };
9263
- matchId: string | import("mongoose").Types.ObjectId;
9264
- succeeded?: boolean | null | undefined;
9265
8972
  predictionTime?: Date | null | undefined;
8973
+ succeeded?: boolean | null | undefined;
9266
8974
  } | null)[];
9267
8975
  metadata?: {
9268
8976
  page: number;
@@ -9275,6 +8983,33 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
9275
8983
  meta: object;
9276
8984
  }>;
9277
8985
  }>>;
8986
+ getActive: import("@trpc/server").TRPCQueryProcedure<{
8987
+ input: void;
8988
+ output: {
8989
+ message: string;
8990
+ success: boolean;
8991
+ data?: {
8992
+ name: string;
8993
+ tag: string;
8994
+ startDate?: Date | null | undefined;
8995
+ endDate?: Date | null | undefined;
8996
+ } | {
8997
+ documents: ({
8998
+ name: string;
8999
+ tag: string;
9000
+ startDate?: Date | null | undefined;
9001
+ endDate?: Date | null | undefined;
9002
+ } | null)[];
9003
+ metadata?: {
9004
+ page: number;
9005
+ size: number;
9006
+ totalElements: number;
9007
+ totalPages: number;
9008
+ } | undefined;
9009
+ } | null | undefined;
9010
+ };
9011
+ meta: object;
9012
+ }>;
9278
9013
  }>>;
9279
9014
  }>>;
9280
9015
  export type MarketingMicroServiceRouter = typeof marketingMicroServiceRouter;