@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
@@ -1,226 +1,308 @@
1
1
  import { z } from 'zod';
2
2
  import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
- import { Status } from '@lyxa.ai/core/dist/utilities/enum';
3
+ import { Status, TournamentRewardType } from '@lyxa.ai/core/dist/utilities/enum';
4
4
  export declare const CreateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
5
+ name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
5
6
  tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
6
7
  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>;
7
8
  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>;
8
9
  status: z.ZodOptional<z.ZodNativeEnum<typeof Status>>;
10
+ reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11
+ type: z.ZodLiteral<TournamentRewardType.COUPON>;
12
+ couponNamePrefix: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
13
+ percentage: z.ZodNumber;
14
+ maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ type: TournamentRewardType.COUPON;
17
+ couponNamePrefix: string;
18
+ percentage: number;
19
+ maxDiscountPerOrder?: number | null | undefined;
20
+ }, {
21
+ type: TournamentRewardType.COUPON;
22
+ couponNamePrefix: string;
23
+ percentage: number;
24
+ maxDiscountPerOrder?: number | null | undefined;
25
+ }>, z.ZodObject<{
26
+ type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ type: TournamentRewardType.FREE_DELIVERY;
29
+ }, {
30
+ type: TournamentRewardType.FREE_DELIVERY;
31
+ }>]>>;
9
32
  }, "strip", z.ZodTypeAny, {
33
+ name: string;
10
34
  startDate: Date;
11
35
  endDate: Date;
12
36
  tag: string;
13
37
  status?: Status | undefined;
38
+ reward?: {
39
+ type: TournamentRewardType.FREE_DELIVERY;
40
+ } | {
41
+ type: TournamentRewardType.COUPON;
42
+ couponNamePrefix: string;
43
+ percentage: number;
44
+ maxDiscountPerOrder?: number | null | undefined;
45
+ } | undefined;
14
46
  }, {
47
+ name: string;
15
48
  startDate: string | Date;
16
49
  endDate: string | Date;
17
50
  tag: string;
18
51
  status?: Status | undefined;
52
+ reward?: {
53
+ type: TournamentRewardType.FREE_DELIVERY;
54
+ } | {
55
+ type: TournamentRewardType.COUPON;
56
+ couponNamePrefix: string;
57
+ percentage: number;
58
+ maxDiscountPerOrder?: number | null | undefined;
59
+ } | undefined;
19
60
  }>, {
61
+ name: string;
20
62
  startDate: Date;
21
63
  endDate: Date;
22
64
  tag: string;
23
65
  status?: Status | undefined;
66
+ reward?: {
67
+ type: TournamentRewardType.FREE_DELIVERY;
68
+ } | {
69
+ type: TournamentRewardType.COUPON;
70
+ couponNamePrefix: string;
71
+ percentage: number;
72
+ maxDiscountPerOrder?: number | null | undefined;
73
+ } | undefined;
24
74
  }, {
75
+ name: string;
25
76
  startDate: string | Date;
26
77
  endDate: string | Date;
27
78
  tag: string;
28
79
  status?: Status | undefined;
80
+ reward?: {
81
+ type: TournamentRewardType.FREE_DELIVERY;
82
+ } | {
83
+ type: TournamentRewardType.COUPON;
84
+ couponNamePrefix: string;
85
+ percentage: number;
86
+ maxDiscountPerOrder?: number | null | undefined;
87
+ } | undefined;
29
88
  }>;
30
89
  export declare const UpdateTournamentConfigSchema: z.ZodEffects<z.ZodObject<{
31
90
  _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>]>;
91
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
32
92
  tag: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
33
93
  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>>;
34
94
  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>>;
35
95
  status: z.ZodOptional<z.ZodNativeEnum<typeof Status>>;
96
+ reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
97
+ type: z.ZodLiteral<TournamentRewardType.COUPON>;
98
+ couponNamePrefix: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
99
+ percentage: z.ZodNumber;
100
+ maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ type: TournamentRewardType.COUPON;
103
+ couponNamePrefix: string;
104
+ percentage: number;
105
+ maxDiscountPerOrder?: number | null | undefined;
106
+ }, {
107
+ type: TournamentRewardType.COUPON;
108
+ couponNamePrefix: string;
109
+ percentage: number;
110
+ maxDiscountPerOrder?: number | null | undefined;
111
+ }>, z.ZodObject<{
112
+ type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ type: TournamentRewardType.FREE_DELIVERY;
115
+ }, {
116
+ type: TournamentRewardType.FREE_DELIVERY;
117
+ }>]>>;
36
118
  }, "strip", z.ZodTypeAny, {
37
119
  _id: import("mongoose").Types.ObjectId;
38
120
  status?: Status | undefined;
121
+ name?: string | undefined;
39
122
  startDate?: Date | undefined;
40
123
  endDate?: Date | undefined;
41
124
  tag?: string | undefined;
125
+ reward?: {
126
+ type: TournamentRewardType.FREE_DELIVERY;
127
+ } | {
128
+ type: TournamentRewardType.COUPON;
129
+ couponNamePrefix: string;
130
+ percentage: number;
131
+ maxDiscountPerOrder?: number | null | undefined;
132
+ } | undefined;
42
133
  }, {
43
134
  _id: string | import("mongoose").Types.ObjectId;
44
135
  status?: Status | undefined;
136
+ name?: string | undefined;
45
137
  startDate?: string | Date | undefined;
46
138
  endDate?: string | Date | undefined;
47
139
  tag?: string | undefined;
140
+ reward?: {
141
+ type: TournamentRewardType.FREE_DELIVERY;
142
+ } | {
143
+ type: TournamentRewardType.COUPON;
144
+ couponNamePrefix: string;
145
+ percentage: number;
146
+ maxDiscountPerOrder?: number | null | undefined;
147
+ } | undefined;
48
148
  }>, {
49
149
  _id: import("mongoose").Types.ObjectId;
50
150
  status?: Status | undefined;
151
+ name?: string | undefined;
51
152
  startDate?: Date | undefined;
52
153
  endDate?: Date | undefined;
53
154
  tag?: string | undefined;
155
+ reward?: {
156
+ type: TournamentRewardType.FREE_DELIVERY;
157
+ } | {
158
+ type: TournamentRewardType.COUPON;
159
+ couponNamePrefix: string;
160
+ percentage: number;
161
+ maxDiscountPerOrder?: number | null | undefined;
162
+ } | undefined;
54
163
  }, {
55
164
  _id: string | import("mongoose").Types.ObjectId;
56
165
  status?: Status | undefined;
166
+ name?: string | undefined;
57
167
  startDate?: string | Date | undefined;
58
168
  endDate?: string | Date | undefined;
59
169
  tag?: string | undefined;
170
+ reward?: {
171
+ type: TournamentRewardType.FREE_DELIVERY;
172
+ } | {
173
+ type: TournamentRewardType.COUPON;
174
+ couponNamePrefix: string;
175
+ percentage: number;
176
+ maxDiscountPerOrder?: number | null | undefined;
177
+ } | undefined;
60
178
  }>;
61
179
  export declare const TournamentConfigSchema: z.ZodObject<{
62
- _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>]>;
180
+ _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>]>>;
181
+ name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
63
182
  tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
64
183
  startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
65
184
  endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
66
185
  status: z.ZodNativeEnum<typeof Status>;
67
- teams: z.ZodDefault<z.ZodArray<z.ZodObject<{
68
- _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>]>;
69
- name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
70
- picture: z.ZodNullable<z.ZodOptional<z.ZodString>> | z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>>;
186
+ reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
187
+ type: z.ZodLiteral<TournamentRewardType.COUPON>;
188
+ couponNamePrefix: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
189
+ percentage: z.ZodOptional<z.ZodNumber>;
190
+ maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
71
191
  }, "strip", z.ZodTypeAny, {
72
- name: string;
73
- _id: import("mongoose").Types.ObjectId;
74
- picture?: string | null | undefined;
192
+ type: TournamentRewardType.COUPON;
193
+ maxDiscountPerOrder?: number | null | undefined;
194
+ couponNamePrefix?: string | undefined;
195
+ percentage?: number | undefined;
75
196
  }, {
76
- name: string;
77
- _id: string | import("mongoose").Types.ObjectId;
78
- picture?: string | null | undefined;
79
- }>, "many">>;
80
- matches: z.ZodDefault<z.ZodArray<z.ZodObject<{
81
- _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>]>;
82
- additionalTag: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
83
- stage: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
84
- team1: z.ZodObject<{
85
- teamId: 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>]>;
86
- name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
87
- }, "strip", z.ZodTypeAny, {
88
- name: string;
89
- teamId: import("mongoose").Types.ObjectId;
90
- }, {
91
- name: string;
92
- teamId: string | import("mongoose").Types.ObjectId;
93
- }>;
94
- team2: z.ZodObject<{
95
- teamId: 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>]>;
96
- name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
97
- }, "strip", z.ZodTypeAny, {
98
- name: string;
99
- teamId: import("mongoose").Types.ObjectId;
100
- }, {
101
- name: string;
102
- teamId: string | import("mongoose").Types.ObjectId;
103
- }>;
104
- score: z.ZodObject<{
105
- team1: z.ZodNullable<z.ZodNumber>;
106
- team2: z.ZodNullable<z.ZodNumber>;
107
- }, "strip", z.ZodTypeAny, {
108
- team1: number | null;
109
- team2: number | null;
110
- }, {
111
- team1: number | null;
112
- team2: number | null;
113
- }>;
114
- winnerId: z.ZodOptional<z.ZodNullable<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
- startingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
116
- endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
197
+ type: TournamentRewardType.COUPON;
198
+ maxDiscountPerOrder?: number | null | undefined;
199
+ couponNamePrefix?: string | undefined;
200
+ percentage?: number | undefined;
201
+ }>, z.ZodObject<{
202
+ type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
117
203
  }, "strip", z.ZodTypeAny, {
118
- _id: import("mongoose").Types.ObjectId;
119
- team1: {
120
- name: string;
121
- teamId: import("mongoose").Types.ObjectId;
122
- };
123
- team2: {
124
- name: string;
125
- teamId: import("mongoose").Types.ObjectId;
126
- };
127
- score: {
128
- team1: number | null;
129
- team2: number | null;
130
- };
131
- stage: string;
132
- endDate?: Date | null | undefined;
133
- startingDate?: Date | null | undefined;
134
- additionalTag?: string | undefined;
135
- winnerId?: import("mongoose").Types.ObjectId | null | undefined;
204
+ type: TournamentRewardType.FREE_DELIVERY;
136
205
  }, {
137
- _id: string | import("mongoose").Types.ObjectId;
138
- team1: {
139
- name: string;
140
- teamId: string | import("mongoose").Types.ObjectId;
141
- };
142
- team2: {
143
- name: string;
144
- teamId: string | import("mongoose").Types.ObjectId;
145
- };
146
- score: {
147
- team1: number | null;
148
- team2: number | null;
149
- };
150
- stage: string;
151
- endDate?: Date | null | undefined;
152
- startingDate?: Date | null | undefined;
153
- additionalTag?: string | undefined;
154
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
155
- }>, "many">>;
206
+ type: TournamentRewardType.FREE_DELIVERY;
207
+ }>]>>;
156
208
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
157
209
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
158
210
  }, "strip", z.ZodTypeAny, {
159
211
  status: Status;
160
- _id: import("mongoose").Types.ObjectId;
212
+ name: string;
161
213
  tag: string;
162
- matches: {
163
- _id: import("mongoose").Types.ObjectId;
164
- team1: {
165
- name: string;
166
- teamId: import("mongoose").Types.ObjectId;
167
- };
168
- team2: {
169
- name: string;
170
- teamId: import("mongoose").Types.ObjectId;
171
- };
172
- score: {
173
- team1: number | null;
174
- team2: number | null;
175
- };
176
- stage: string;
177
- endDate?: Date | null | undefined;
178
- startingDate?: Date | null | undefined;
179
- additionalTag?: string | undefined;
180
- winnerId?: import("mongoose").Types.ObjectId | null | undefined;
181
- }[];
182
- teams: {
183
- name: string;
184
- _id: import("mongoose").Types.ObjectId;
185
- picture?: string | null | undefined;
186
- }[];
214
+ _id?: import("mongoose").Types.ObjectId | undefined;
187
215
  createdAt?: Date | null | undefined;
188
216
  startDate?: Date | null | undefined;
189
217
  endDate?: Date | null | undefined;
190
218
  updatedAt?: Date | null | undefined;
219
+ reward?: {
220
+ type: TournamentRewardType.FREE_DELIVERY;
221
+ } | {
222
+ type: TournamentRewardType.COUPON;
223
+ maxDiscountPerOrder?: number | null | undefined;
224
+ couponNamePrefix?: string | undefined;
225
+ percentage?: number | undefined;
226
+ } | undefined;
191
227
  }, {
192
228
  status: Status;
193
- _id: string | import("mongoose").Types.ObjectId;
229
+ name: string;
194
230
  tag: string;
231
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
195
232
  createdAt?: Date | null | undefined;
196
233
  startDate?: Date | null | undefined;
197
234
  endDate?: Date | null | undefined;
198
235
  updatedAt?: Date | null | undefined;
199
- matches?: {
200
- _id: string | import("mongoose").Types.ObjectId;
201
- team1: {
202
- name: string;
203
- teamId: string | import("mongoose").Types.ObjectId;
204
- };
205
- team2: {
206
- name: string;
207
- teamId: string | import("mongoose").Types.ObjectId;
208
- };
209
- score: {
210
- team1: number | null;
211
- team2: number | null;
212
- };
213
- stage: string;
214
- endDate?: Date | null | undefined;
215
- startingDate?: Date | null | undefined;
216
- additionalTag?: string | undefined;
217
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
218
- }[] | undefined;
219
- teams?: {
220
- name: string;
221
- _id: string | import("mongoose").Types.ObjectId;
222
- picture?: string | null | undefined;
223
- }[] | undefined;
236
+ reward?: {
237
+ type: TournamentRewardType.FREE_DELIVERY;
238
+ } | {
239
+ type: TournamentRewardType.COUPON;
240
+ maxDiscountPerOrder?: number | null | undefined;
241
+ couponNamePrefix?: string | undefined;
242
+ percentage?: number | undefined;
243
+ } | undefined;
244
+ }>;
245
+ export declare const TournamentConfigListItemSchema: z.ZodObject<{
246
+ _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>]>>;
247
+ name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
248
+ tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
249
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
250
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
251
+ status: z.ZodNativeEnum<typeof Status>;
252
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
253
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
254
+ } & {
255
+ reward: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
256
+ type: z.ZodLiteral<TournamentRewardType.COUPON>;
257
+ percentage: z.ZodOptional<z.ZodNumber>;
258
+ maxDiscountPerOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ type: TournamentRewardType.COUPON;
261
+ maxDiscountPerOrder?: number | null | undefined;
262
+ percentage?: number | undefined;
263
+ }, {
264
+ type: TournamentRewardType.COUPON;
265
+ maxDiscountPerOrder?: number | null | undefined;
266
+ percentage?: number | undefined;
267
+ }>, z.ZodObject<{
268
+ type: z.ZodLiteral<TournamentRewardType.FREE_DELIVERY>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ type: TournamentRewardType.FREE_DELIVERY;
271
+ }, {
272
+ type: TournamentRewardType.FREE_DELIVERY;
273
+ }>]>>;
274
+ }, "strip", z.ZodTypeAny, {
275
+ status: Status;
276
+ name: string;
277
+ tag: string;
278
+ _id?: import("mongoose").Types.ObjectId | undefined;
279
+ createdAt?: Date | null | undefined;
280
+ startDate?: Date | null | undefined;
281
+ endDate?: Date | null | undefined;
282
+ updatedAt?: Date | null | undefined;
283
+ reward?: {
284
+ type: TournamentRewardType.FREE_DELIVERY;
285
+ } | {
286
+ type: TournamentRewardType.COUPON;
287
+ maxDiscountPerOrder?: number | null | undefined;
288
+ percentage?: number | undefined;
289
+ } | undefined;
290
+ }, {
291
+ status: Status;
292
+ name: string;
293
+ tag: string;
294
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
295
+ createdAt?: Date | null | undefined;
296
+ startDate?: Date | null | undefined;
297
+ endDate?: Date | null | undefined;
298
+ updatedAt?: Date | null | undefined;
299
+ reward?: {
300
+ type: TournamentRewardType.FREE_DELIVERY;
301
+ } | {
302
+ type: TournamentRewardType.COUPON;
303
+ maxDiscountPerOrder?: number | null | undefined;
304
+ percentage?: number | undefined;
305
+ } | undefined;
224
306
  }>;
225
307
  export declare const TournamentConfigResponseSchema: z.ZodObject<{
226
308
  success: z.ZodBoolean;
@@ -244,105 +326,57 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
244
326
  }>>;
245
327
  documents: z.ZodArray<z.ZodType<{
246
328
  status: Status;
247
- _id: string | import("mongoose").Types.ObjectId;
329
+ name: string;
248
330
  tag: string;
331
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
249
332
  createdAt?: Date | null | undefined;
250
333
  startDate?: Date | null | undefined;
251
334
  endDate?: Date | null | undefined;
252
335
  updatedAt?: Date | null | undefined;
253
- matches?: {
254
- _id: string | import("mongoose").Types.ObjectId;
255
- team1: {
256
- name: string;
257
- teamId: string | import("mongoose").Types.ObjectId;
258
- };
259
- team2: {
260
- name: string;
261
- teamId: string | import("mongoose").Types.ObjectId;
262
- };
263
- score: {
264
- team1: number | null;
265
- team2: number | null;
266
- };
267
- stage: string;
268
- endDate?: Date | null | undefined;
269
- startingDate?: Date | null | undefined;
270
- additionalTag?: string | undefined;
271
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
272
- }[] | undefined;
273
- teams?: {
274
- name: string;
275
- _id: string | import("mongoose").Types.ObjectId;
276
- picture?: string | null | undefined;
277
- }[] | undefined;
336
+ reward?: {
337
+ type: TournamentRewardType.FREE_DELIVERY;
338
+ } | {
339
+ type: TournamentRewardType.COUPON;
340
+ maxDiscountPerOrder?: number | null | undefined;
341
+ couponNamePrefix?: string | undefined;
342
+ percentage?: number | undefined;
343
+ } | undefined;
278
344
  }, z.ZodTypeDef, {
279
345
  status: Status;
280
- _id: string | import("mongoose").Types.ObjectId;
346
+ name: string;
281
347
  tag: string;
348
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
282
349
  createdAt?: Date | null | undefined;
283
350
  startDate?: Date | null | undefined;
284
351
  endDate?: Date | null | undefined;
285
352
  updatedAt?: Date | null | undefined;
286
- matches?: {
287
- _id: string | import("mongoose").Types.ObjectId;
288
- team1: {
289
- name: string;
290
- teamId: string | import("mongoose").Types.ObjectId;
291
- };
292
- team2: {
293
- name: string;
294
- teamId: string | import("mongoose").Types.ObjectId;
295
- };
296
- score: {
297
- team1: number | null;
298
- team2: number | null;
299
- };
300
- stage: string;
301
- endDate?: Date | null | undefined;
302
- startingDate?: Date | null | undefined;
303
- additionalTag?: string | undefined;
304
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
305
- }[] | undefined;
306
- teams?: {
307
- name: string;
308
- _id: string | import("mongoose").Types.ObjectId;
309
- picture?: string | null | undefined;
310
- }[] | undefined;
353
+ reward?: {
354
+ type: TournamentRewardType.FREE_DELIVERY;
355
+ } | {
356
+ type: TournamentRewardType.COUPON;
357
+ maxDiscountPerOrder?: number | null | undefined;
358
+ couponNamePrefix?: string | undefined;
359
+ percentage?: number | undefined;
360
+ } | undefined;
311
361
  }>, "many">;
312
362
  }, "strip", z.ZodTypeAny, {
313
363
  documents: {
314
364
  status: Status;
315
- _id: string | import("mongoose").Types.ObjectId;
365
+ name: string;
316
366
  tag: string;
367
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
317
368
  createdAt?: Date | null | undefined;
318
369
  startDate?: Date | null | undefined;
319
370
  endDate?: Date | null | undefined;
320
371
  updatedAt?: Date | null | undefined;
321
- matches?: {
322
- _id: string | import("mongoose").Types.ObjectId;
323
- team1: {
324
- name: string;
325
- teamId: string | import("mongoose").Types.ObjectId;
326
- };
327
- team2: {
328
- name: string;
329
- teamId: string | import("mongoose").Types.ObjectId;
330
- };
331
- score: {
332
- team1: number | null;
333
- team2: number | null;
334
- };
335
- stage: string;
336
- endDate?: Date | null | undefined;
337
- startingDate?: Date | null | undefined;
338
- additionalTag?: string | undefined;
339
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
340
- }[] | undefined;
341
- teams?: {
342
- name: string;
343
- _id: string | import("mongoose").Types.ObjectId;
344
- picture?: string | null | undefined;
345
- }[] | undefined;
372
+ reward?: {
373
+ type: TournamentRewardType.FREE_DELIVERY;
374
+ } | {
375
+ type: TournamentRewardType.COUPON;
376
+ maxDiscountPerOrder?: number | null | undefined;
377
+ couponNamePrefix?: string | undefined;
378
+ percentage?: number | undefined;
379
+ } | undefined;
346
380
  }[];
347
381
  metadata?: {
348
382
  page: number;
@@ -353,37 +387,21 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
353
387
  }, {
354
388
  documents: {
355
389
  status: Status;
356
- _id: string | import("mongoose").Types.ObjectId;
390
+ name: string;
357
391
  tag: string;
392
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
358
393
  createdAt?: Date | null | undefined;
359
394
  startDate?: Date | null | undefined;
360
395
  endDate?: Date | null | undefined;
361
396
  updatedAt?: Date | null | undefined;
362
- matches?: {
363
- _id: string | import("mongoose").Types.ObjectId;
364
- team1: {
365
- name: string;
366
- teamId: string | import("mongoose").Types.ObjectId;
367
- };
368
- team2: {
369
- name: string;
370
- teamId: string | import("mongoose").Types.ObjectId;
371
- };
372
- score: {
373
- team1: number | null;
374
- team2: number | null;
375
- };
376
- stage: string;
377
- endDate?: Date | null | undefined;
378
- startingDate?: Date | null | undefined;
379
- additionalTag?: string | undefined;
380
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
381
- }[] | undefined;
382
- teams?: {
383
- name: string;
384
- _id: string | import("mongoose").Types.ObjectId;
385
- picture?: string | null | undefined;
386
- }[] | undefined;
397
+ reward?: {
398
+ type: TournamentRewardType.FREE_DELIVERY;
399
+ } | {
400
+ type: TournamentRewardType.COUPON;
401
+ maxDiscountPerOrder?: number | null | undefined;
402
+ couponNamePrefix?: string | undefined;
403
+ percentage?: number | undefined;
404
+ } | undefined;
387
405
  }[];
388
406
  metadata?: {
389
407
  page: number;
@@ -393,141 +411,77 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
393
411
  } | undefined;
394
412
  }>, z.ZodType<{
395
413
  status: Status;
396
- _id: string | import("mongoose").Types.ObjectId;
414
+ name: string;
397
415
  tag: string;
416
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
398
417
  createdAt?: Date | null | undefined;
399
418
  startDate?: Date | null | undefined;
400
419
  endDate?: Date | null | undefined;
401
420
  updatedAt?: Date | null | undefined;
402
- matches?: {
403
- _id: string | import("mongoose").Types.ObjectId;
404
- team1: {
405
- name: string;
406
- teamId: string | import("mongoose").Types.ObjectId;
407
- };
408
- team2: {
409
- name: string;
410
- teamId: string | import("mongoose").Types.ObjectId;
411
- };
412
- score: {
413
- team1: number | null;
414
- team2: number | null;
415
- };
416
- stage: string;
417
- endDate?: Date | null | undefined;
418
- startingDate?: Date | null | undefined;
419
- additionalTag?: string | undefined;
420
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
421
- }[] | undefined;
422
- teams?: {
423
- name: string;
424
- _id: string | import("mongoose").Types.ObjectId;
425
- picture?: string | null | undefined;
426
- }[] | undefined;
421
+ reward?: {
422
+ type: TournamentRewardType.FREE_DELIVERY;
423
+ } | {
424
+ type: TournamentRewardType.COUPON;
425
+ maxDiscountPerOrder?: number | null | undefined;
426
+ couponNamePrefix?: string | undefined;
427
+ percentage?: number | undefined;
428
+ } | undefined;
427
429
  }, z.ZodTypeDef, {
428
430
  status: Status;
429
- _id: string | import("mongoose").Types.ObjectId;
431
+ name: string;
430
432
  tag: string;
433
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
431
434
  createdAt?: Date | null | undefined;
432
435
  startDate?: Date | null | undefined;
433
436
  endDate?: Date | null | undefined;
434
437
  updatedAt?: Date | null | undefined;
435
- matches?: {
436
- _id: string | import("mongoose").Types.ObjectId;
437
- team1: {
438
- name: string;
439
- teamId: string | import("mongoose").Types.ObjectId;
440
- };
441
- team2: {
442
- name: string;
443
- teamId: string | import("mongoose").Types.ObjectId;
444
- };
445
- score: {
446
- team1: number | null;
447
- team2: number | null;
448
- };
449
- stage: string;
450
- endDate?: Date | null | undefined;
451
- startingDate?: Date | null | undefined;
452
- additionalTag?: string | undefined;
453
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
454
- }[] | undefined;
455
- teams?: {
456
- name: string;
457
- _id: string | import("mongoose").Types.ObjectId;
458
- picture?: string | null | undefined;
459
- }[] | undefined;
438
+ reward?: {
439
+ type: TournamentRewardType.FREE_DELIVERY;
440
+ } | {
441
+ type: TournamentRewardType.COUPON;
442
+ maxDiscountPerOrder?: number | null | undefined;
443
+ couponNamePrefix?: string | undefined;
444
+ percentage?: number | undefined;
445
+ } | undefined;
460
446
  }>]>>;
461
447
  }, "strip", z.ZodTypeAny, {
462
448
  message: string;
463
449
  success: boolean;
464
450
  data?: {
465
451
  status: Status;
466
- _id: string | import("mongoose").Types.ObjectId;
452
+ name: string;
467
453
  tag: string;
454
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
468
455
  createdAt?: Date | null | undefined;
469
456
  startDate?: Date | null | undefined;
470
457
  endDate?: Date | null | undefined;
471
458
  updatedAt?: Date | null | undefined;
472
- matches?: {
473
- _id: string | import("mongoose").Types.ObjectId;
474
- team1: {
475
- name: string;
476
- teamId: string | import("mongoose").Types.ObjectId;
477
- };
478
- team2: {
479
- name: string;
480
- teamId: string | import("mongoose").Types.ObjectId;
481
- };
482
- score: {
483
- team1: number | null;
484
- team2: number | null;
485
- };
486
- stage: string;
487
- endDate?: Date | null | undefined;
488
- startingDate?: Date | null | undefined;
489
- additionalTag?: string | undefined;
490
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
491
- }[] | undefined;
492
- teams?: {
493
- name: string;
494
- _id: string | import("mongoose").Types.ObjectId;
495
- picture?: string | null | undefined;
496
- }[] | undefined;
459
+ reward?: {
460
+ type: TournamentRewardType.FREE_DELIVERY;
461
+ } | {
462
+ type: TournamentRewardType.COUPON;
463
+ maxDiscountPerOrder?: number | null | undefined;
464
+ couponNamePrefix?: string | undefined;
465
+ percentage?: number | undefined;
466
+ } | undefined;
497
467
  } | {
498
468
  documents: {
499
469
  status: Status;
500
- _id: string | import("mongoose").Types.ObjectId;
470
+ name: string;
501
471
  tag: string;
472
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
502
473
  createdAt?: Date | null | undefined;
503
474
  startDate?: Date | null | undefined;
504
475
  endDate?: Date | null | undefined;
505
476
  updatedAt?: Date | null | undefined;
506
- matches?: {
507
- _id: string | import("mongoose").Types.ObjectId;
508
- team1: {
509
- name: string;
510
- teamId: string | import("mongoose").Types.ObjectId;
511
- };
512
- team2: {
513
- name: string;
514
- teamId: string | import("mongoose").Types.ObjectId;
515
- };
516
- score: {
517
- team1: number | null;
518
- team2: number | null;
519
- };
520
- stage: string;
521
- endDate?: Date | null | undefined;
522
- startingDate?: Date | null | undefined;
523
- additionalTag?: string | undefined;
524
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
525
- }[] | undefined;
526
- teams?: {
527
- name: string;
528
- _id: string | import("mongoose").Types.ObjectId;
529
- picture?: string | null | undefined;
530
- }[] | undefined;
477
+ reward?: {
478
+ type: TournamentRewardType.FREE_DELIVERY;
479
+ } | {
480
+ type: TournamentRewardType.COUPON;
481
+ maxDiscountPerOrder?: number | null | undefined;
482
+ couponNamePrefix?: string | undefined;
483
+ percentage?: number | undefined;
484
+ } | undefined;
531
485
  }[];
532
486
  metadata?: {
533
487
  page: number;
@@ -541,71 +495,39 @@ export declare const TournamentConfigResponseSchema: z.ZodObject<{
541
495
  success: boolean;
542
496
  data?: {
543
497
  status: Status;
544
- _id: string | import("mongoose").Types.ObjectId;
498
+ name: string;
545
499
  tag: string;
500
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
546
501
  createdAt?: Date | null | undefined;
547
502
  startDate?: Date | null | undefined;
548
503
  endDate?: Date | null | undefined;
549
504
  updatedAt?: Date | null | undefined;
550
- matches?: {
551
- _id: string | import("mongoose").Types.ObjectId;
552
- team1: {
553
- name: string;
554
- teamId: string | import("mongoose").Types.ObjectId;
555
- };
556
- team2: {
557
- name: string;
558
- teamId: string | import("mongoose").Types.ObjectId;
559
- };
560
- score: {
561
- team1: number | null;
562
- team2: number | null;
563
- };
564
- stage: string;
565
- endDate?: Date | null | undefined;
566
- startingDate?: Date | null | undefined;
567
- additionalTag?: string | undefined;
568
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
569
- }[] | undefined;
570
- teams?: {
571
- name: string;
572
- _id: string | import("mongoose").Types.ObjectId;
573
- picture?: string | null | undefined;
574
- }[] | undefined;
505
+ reward?: {
506
+ type: TournamentRewardType.FREE_DELIVERY;
507
+ } | {
508
+ type: TournamentRewardType.COUPON;
509
+ maxDiscountPerOrder?: number | null | undefined;
510
+ couponNamePrefix?: string | undefined;
511
+ percentage?: number | undefined;
512
+ } | undefined;
575
513
  } | {
576
514
  documents: {
577
515
  status: Status;
578
- _id: string | import("mongoose").Types.ObjectId;
516
+ name: string;
579
517
  tag: string;
518
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
580
519
  createdAt?: Date | null | undefined;
581
520
  startDate?: Date | null | undefined;
582
521
  endDate?: Date | null | undefined;
583
522
  updatedAt?: Date | null | undefined;
584
- matches?: {
585
- _id: string | import("mongoose").Types.ObjectId;
586
- team1: {
587
- name: string;
588
- teamId: string | import("mongoose").Types.ObjectId;
589
- };
590
- team2: {
591
- name: string;
592
- teamId: string | import("mongoose").Types.ObjectId;
593
- };
594
- score: {
595
- team1: number | null;
596
- team2: number | null;
597
- };
598
- stage: string;
599
- endDate?: Date | null | undefined;
600
- startingDate?: Date | null | undefined;
601
- additionalTag?: string | undefined;
602
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
603
- }[] | undefined;
604
- teams?: {
605
- name: string;
606
- _id: string | import("mongoose").Types.ObjectId;
607
- picture?: string | null | undefined;
608
- }[] | undefined;
523
+ reward?: {
524
+ type: TournamentRewardType.FREE_DELIVERY;
525
+ } | {
526
+ type: TournamentRewardType.COUPON;
527
+ maxDiscountPerOrder?: number | null | undefined;
528
+ couponNamePrefix?: string | undefined;
529
+ percentage?: number | undefined;
530
+ } | undefined;
609
531
  }[];
610
532
  metadata?: {
611
533
  page: number;
@@ -637,105 +559,54 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
637
559
  }>>;
638
560
  documents: z.ZodArray<z.ZodType<{
639
561
  status: Status;
640
- _id: string | import("mongoose").Types.ObjectId;
562
+ name: string;
641
563
  tag: string;
564
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
642
565
  createdAt?: Date | null | undefined;
643
566
  startDate?: Date | null | undefined;
644
567
  endDate?: Date | null | undefined;
645
568
  updatedAt?: Date | null | undefined;
646
- matches?: {
647
- _id: string | import("mongoose").Types.ObjectId;
648
- team1: {
649
- name: string;
650
- teamId: string | import("mongoose").Types.ObjectId;
651
- };
652
- team2: {
653
- name: string;
654
- teamId: string | import("mongoose").Types.ObjectId;
655
- };
656
- score: {
657
- team1: number | null;
658
- team2: number | null;
659
- };
660
- stage: string;
661
- endDate?: Date | null | undefined;
662
- startingDate?: Date | null | undefined;
663
- additionalTag?: string | undefined;
664
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
665
- }[] | undefined;
666
- teams?: {
667
- name: string;
668
- _id: string | import("mongoose").Types.ObjectId;
669
- picture?: string | null | undefined;
670
- }[] | undefined;
569
+ reward?: {
570
+ type: TournamentRewardType.FREE_DELIVERY;
571
+ } | {
572
+ type: TournamentRewardType.COUPON;
573
+ maxDiscountPerOrder?: number | null | undefined;
574
+ percentage?: number | undefined;
575
+ } | undefined;
671
576
  }[], z.ZodTypeDef, {
672
577
  status: Status;
673
- _id: string | import("mongoose").Types.ObjectId;
578
+ name: string;
674
579
  tag: string;
580
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
675
581
  createdAt?: Date | null | undefined;
676
582
  startDate?: Date | null | undefined;
677
583
  endDate?: Date | null | undefined;
678
584
  updatedAt?: Date | null | undefined;
679
- matches?: {
680
- _id: string | import("mongoose").Types.ObjectId;
681
- team1: {
682
- name: string;
683
- teamId: string | import("mongoose").Types.ObjectId;
684
- };
685
- team2: {
686
- name: string;
687
- teamId: string | import("mongoose").Types.ObjectId;
688
- };
689
- score: {
690
- team1: number | null;
691
- team2: number | null;
692
- };
693
- stage: string;
694
- endDate?: Date | null | undefined;
695
- startingDate?: Date | null | undefined;
696
- additionalTag?: string | undefined;
697
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
698
- }[] | undefined;
699
- teams?: {
700
- name: string;
701
- _id: string | import("mongoose").Types.ObjectId;
702
- picture?: string | null | undefined;
703
- }[] | undefined;
585
+ reward?: {
586
+ type: TournamentRewardType.FREE_DELIVERY;
587
+ } | {
588
+ type: TournamentRewardType.COUPON;
589
+ maxDiscountPerOrder?: number | null | undefined;
590
+ percentage?: number | undefined;
591
+ } | undefined;
704
592
  }[]>, "many">;
705
593
  }, "strip", z.ZodTypeAny, {
706
594
  documents: {
707
595
  status: Status;
708
- _id: string | import("mongoose").Types.ObjectId;
596
+ name: string;
709
597
  tag: string;
598
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
710
599
  createdAt?: Date | null | undefined;
711
600
  startDate?: Date | null | undefined;
712
601
  endDate?: Date | null | undefined;
713
602
  updatedAt?: Date | null | undefined;
714
- matches?: {
715
- _id: string | import("mongoose").Types.ObjectId;
716
- team1: {
717
- name: string;
718
- teamId: string | import("mongoose").Types.ObjectId;
719
- };
720
- team2: {
721
- name: string;
722
- teamId: string | import("mongoose").Types.ObjectId;
723
- };
724
- score: {
725
- team1: number | null;
726
- team2: number | null;
727
- };
728
- stage: string;
729
- endDate?: Date | null | undefined;
730
- startingDate?: Date | null | undefined;
731
- additionalTag?: string | undefined;
732
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
733
- }[] | undefined;
734
- teams?: {
735
- name: string;
736
- _id: string | import("mongoose").Types.ObjectId;
737
- picture?: string | null | undefined;
738
- }[] | undefined;
603
+ reward?: {
604
+ type: TournamentRewardType.FREE_DELIVERY;
605
+ } | {
606
+ type: TournamentRewardType.COUPON;
607
+ maxDiscountPerOrder?: number | null | undefined;
608
+ percentage?: number | undefined;
609
+ } | undefined;
739
610
  }[][];
740
611
  metadata?: {
741
612
  page: number;
@@ -746,37 +617,20 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
746
617
  }, {
747
618
  documents: {
748
619
  status: Status;
749
- _id: string | import("mongoose").Types.ObjectId;
620
+ name: string;
750
621
  tag: string;
622
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
751
623
  createdAt?: Date | null | undefined;
752
624
  startDate?: Date | null | undefined;
753
625
  endDate?: Date | null | undefined;
754
626
  updatedAt?: Date | null | undefined;
755
- matches?: {
756
- _id: string | import("mongoose").Types.ObjectId;
757
- team1: {
758
- name: string;
759
- teamId: string | import("mongoose").Types.ObjectId;
760
- };
761
- team2: {
762
- name: string;
763
- teamId: string | import("mongoose").Types.ObjectId;
764
- };
765
- score: {
766
- team1: number | null;
767
- team2: number | null;
768
- };
769
- stage: string;
770
- endDate?: Date | null | undefined;
771
- startingDate?: Date | null | undefined;
772
- additionalTag?: string | undefined;
773
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
774
- }[] | undefined;
775
- teams?: {
776
- name: string;
777
- _id: string | import("mongoose").Types.ObjectId;
778
- picture?: string | null | undefined;
779
- }[] | undefined;
627
+ reward?: {
628
+ type: TournamentRewardType.FREE_DELIVERY;
629
+ } | {
630
+ type: TournamentRewardType.COUPON;
631
+ maxDiscountPerOrder?: number | null | undefined;
632
+ percentage?: number | undefined;
633
+ } | undefined;
780
634
  }[][];
781
635
  metadata?: {
782
636
  page: number;
@@ -786,141 +640,73 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
786
640
  } | undefined;
787
641
  }>, z.ZodType<{
788
642
  status: Status;
789
- _id: string | import("mongoose").Types.ObjectId;
643
+ name: string;
790
644
  tag: string;
645
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
791
646
  createdAt?: Date | null | undefined;
792
647
  startDate?: Date | null | undefined;
793
648
  endDate?: Date | null | undefined;
794
649
  updatedAt?: Date | null | undefined;
795
- matches?: {
796
- _id: string | import("mongoose").Types.ObjectId;
797
- team1: {
798
- name: string;
799
- teamId: string | import("mongoose").Types.ObjectId;
800
- };
801
- team2: {
802
- name: string;
803
- teamId: string | import("mongoose").Types.ObjectId;
804
- };
805
- score: {
806
- team1: number | null;
807
- team2: number | null;
808
- };
809
- stage: string;
810
- endDate?: Date | null | undefined;
811
- startingDate?: Date | null | undefined;
812
- additionalTag?: string | undefined;
813
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
814
- }[] | undefined;
815
- teams?: {
816
- name: string;
817
- _id: string | import("mongoose").Types.ObjectId;
818
- picture?: string | null | undefined;
819
- }[] | undefined;
650
+ reward?: {
651
+ type: TournamentRewardType.FREE_DELIVERY;
652
+ } | {
653
+ type: TournamentRewardType.COUPON;
654
+ maxDiscountPerOrder?: number | null | undefined;
655
+ percentage?: number | undefined;
656
+ } | undefined;
820
657
  }[], z.ZodTypeDef, {
821
658
  status: Status;
822
- _id: string | import("mongoose").Types.ObjectId;
659
+ name: string;
823
660
  tag: string;
661
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
824
662
  createdAt?: Date | null | undefined;
825
663
  startDate?: Date | null | undefined;
826
664
  endDate?: Date | null | undefined;
827
665
  updatedAt?: Date | null | undefined;
828
- matches?: {
829
- _id: string | import("mongoose").Types.ObjectId;
830
- team1: {
831
- name: string;
832
- teamId: string | import("mongoose").Types.ObjectId;
833
- };
834
- team2: {
835
- name: string;
836
- teamId: string | import("mongoose").Types.ObjectId;
837
- };
838
- score: {
839
- team1: number | null;
840
- team2: number | null;
841
- };
842
- stage: string;
843
- endDate?: Date | null | undefined;
844
- startingDate?: Date | null | undefined;
845
- additionalTag?: string | undefined;
846
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
847
- }[] | undefined;
848
- teams?: {
849
- name: string;
850
- _id: string | import("mongoose").Types.ObjectId;
851
- picture?: string | null | undefined;
852
- }[] | undefined;
666
+ reward?: {
667
+ type: TournamentRewardType.FREE_DELIVERY;
668
+ } | {
669
+ type: TournamentRewardType.COUPON;
670
+ maxDiscountPerOrder?: number | null | undefined;
671
+ percentage?: number | undefined;
672
+ } | undefined;
853
673
  }[]>]>>;
854
674
  }, "strip", z.ZodTypeAny, {
855
675
  message: string;
856
676
  success: boolean;
857
677
  data?: {
858
678
  status: Status;
859
- _id: string | import("mongoose").Types.ObjectId;
679
+ name: string;
860
680
  tag: string;
681
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
861
682
  createdAt?: Date | null | undefined;
862
683
  startDate?: Date | null | undefined;
863
684
  endDate?: Date | null | undefined;
864
685
  updatedAt?: Date | null | undefined;
865
- matches?: {
866
- _id: string | import("mongoose").Types.ObjectId;
867
- team1: {
868
- name: string;
869
- teamId: string | import("mongoose").Types.ObjectId;
870
- };
871
- team2: {
872
- name: string;
873
- teamId: string | import("mongoose").Types.ObjectId;
874
- };
875
- score: {
876
- team1: number | null;
877
- team2: number | null;
878
- };
879
- stage: string;
880
- endDate?: Date | null | undefined;
881
- startingDate?: Date | null | undefined;
882
- additionalTag?: string | undefined;
883
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
884
- }[] | undefined;
885
- teams?: {
886
- name: string;
887
- _id: string | import("mongoose").Types.ObjectId;
888
- picture?: string | null | undefined;
889
- }[] | undefined;
686
+ reward?: {
687
+ type: TournamentRewardType.FREE_DELIVERY;
688
+ } | {
689
+ type: TournamentRewardType.COUPON;
690
+ maxDiscountPerOrder?: number | null | undefined;
691
+ percentage?: number | undefined;
692
+ } | undefined;
890
693
  }[] | {
891
694
  documents: {
892
695
  status: Status;
893
- _id: string | import("mongoose").Types.ObjectId;
696
+ name: string;
894
697
  tag: string;
698
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
895
699
  createdAt?: Date | null | undefined;
896
700
  startDate?: Date | null | undefined;
897
701
  endDate?: Date | null | undefined;
898
702
  updatedAt?: Date | null | undefined;
899
- matches?: {
900
- _id: string | import("mongoose").Types.ObjectId;
901
- team1: {
902
- name: string;
903
- teamId: string | import("mongoose").Types.ObjectId;
904
- };
905
- team2: {
906
- name: string;
907
- teamId: string | import("mongoose").Types.ObjectId;
908
- };
909
- score: {
910
- team1: number | null;
911
- team2: number | null;
912
- };
913
- stage: string;
914
- endDate?: Date | null | undefined;
915
- startingDate?: Date | null | undefined;
916
- additionalTag?: string | undefined;
917
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
918
- }[] | undefined;
919
- teams?: {
920
- name: string;
921
- _id: string | import("mongoose").Types.ObjectId;
922
- picture?: string | null | undefined;
923
- }[] | undefined;
703
+ reward?: {
704
+ type: TournamentRewardType.FREE_DELIVERY;
705
+ } | {
706
+ type: TournamentRewardType.COUPON;
707
+ maxDiscountPerOrder?: number | null | undefined;
708
+ percentage?: number | undefined;
709
+ } | undefined;
924
710
  }[][];
925
711
  metadata?: {
926
712
  page: number;
@@ -934,71 +720,37 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
934
720
  success: boolean;
935
721
  data?: {
936
722
  status: Status;
937
- _id: string | import("mongoose").Types.ObjectId;
723
+ name: string;
938
724
  tag: string;
725
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
939
726
  createdAt?: Date | null | undefined;
940
727
  startDate?: Date | null | undefined;
941
728
  endDate?: Date | null | undefined;
942
729
  updatedAt?: Date | null | undefined;
943
- matches?: {
944
- _id: string | import("mongoose").Types.ObjectId;
945
- team1: {
946
- name: string;
947
- teamId: string | import("mongoose").Types.ObjectId;
948
- };
949
- team2: {
950
- name: string;
951
- teamId: string | import("mongoose").Types.ObjectId;
952
- };
953
- score: {
954
- team1: number | null;
955
- team2: number | null;
956
- };
957
- stage: string;
958
- endDate?: Date | null | undefined;
959
- startingDate?: Date | null | undefined;
960
- additionalTag?: string | undefined;
961
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
962
- }[] | undefined;
963
- teams?: {
964
- name: string;
965
- _id: string | import("mongoose").Types.ObjectId;
966
- picture?: string | null | undefined;
967
- }[] | undefined;
730
+ reward?: {
731
+ type: TournamentRewardType.FREE_DELIVERY;
732
+ } | {
733
+ type: TournamentRewardType.COUPON;
734
+ maxDiscountPerOrder?: number | null | undefined;
735
+ percentage?: number | undefined;
736
+ } | undefined;
968
737
  }[] | {
969
738
  documents: {
970
739
  status: Status;
971
- _id: string | import("mongoose").Types.ObjectId;
740
+ name: string;
972
741
  tag: string;
742
+ _id?: string | import("mongoose").Types.ObjectId | undefined;
973
743
  createdAt?: Date | null | undefined;
974
744
  startDate?: Date | null | undefined;
975
745
  endDate?: Date | null | undefined;
976
746
  updatedAt?: Date | null | undefined;
977
- matches?: {
978
- _id: string | import("mongoose").Types.ObjectId;
979
- team1: {
980
- name: string;
981
- teamId: string | import("mongoose").Types.ObjectId;
982
- };
983
- team2: {
984
- name: string;
985
- teamId: string | import("mongoose").Types.ObjectId;
986
- };
987
- score: {
988
- team1: number | null;
989
- team2: number | null;
990
- };
991
- stage: string;
992
- endDate?: Date | null | undefined;
993
- startingDate?: Date | null | undefined;
994
- additionalTag?: string | undefined;
995
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
996
- }[] | undefined;
997
- teams?: {
998
- name: string;
999
- _id: string | import("mongoose").Types.ObjectId;
1000
- picture?: string | null | undefined;
1001
- }[] | undefined;
747
+ reward?: {
748
+ type: TournamentRewardType.FREE_DELIVERY;
749
+ } | {
750
+ type: TournamentRewardType.COUPON;
751
+ maxDiscountPerOrder?: number | null | undefined;
752
+ percentage?: number | undefined;
753
+ } | undefined;
1002
754
  }[][];
1003
755
  metadata?: {
1004
756
  page: number;
@@ -1011,4 +763,5 @@ export declare const TournamentConfigListResponseSchema: z.ZodObject<{
1011
763
  export type CreateTournamentConfigInputDTO = DTO<typeof CreateTournamentConfigSchema>;
1012
764
  export type UpdateTournamentConfigInputDTO = DTO<typeof UpdateTournamentConfigSchema>;
1013
765
  export type TournamentConfigOutputDTO = DTO<typeof TournamentConfigSchema>;
766
+ export type TournamentConfigListItemOutputDTO = DTO<typeof TournamentConfigListItemSchema>;
1014
767
  //# sourceMappingURL=config.validation.d.ts.map