@lyxa.ai/marketing 1.0.15 → 1.0.17

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 (93) hide show
  1. package/dist/lib/index.d.ts +390 -0
  2. package/dist/lib/index.d.ts.map +1 -1
  3. package/dist/lib/modules/coupon/routers/coupon.router.d.ts +390 -0
  4. package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  5. package/dist/lib/modules/coupon/routers/coupon.router.js +8 -2
  6. package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
  7. package/dist/lib/modules/coupon/services/coupon.service.d.ts +2 -1
  8. package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
  9. package/dist/lib/modules/coupon/services/coupon.service.js +107 -0
  10. package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
  11. package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  12. package/dist/lib/modules/coupon/services/custom-coupon.service.js +5 -4
  13. package/dist/lib/modules/coupon/services/custom-coupon.service.js.map +1 -1
  14. package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  15. package/dist/lib/modules/coupon/services/global-coupon.service.js +5 -4
  16. package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
  17. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  18. package/dist/lib/modules/coupon/services/individual-store-coupon.service.js +5 -4
  19. package/dist/lib/modules/coupon/services/individual-store-coupon.service.js.map +1 -1
  20. package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  21. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +5 -4
  22. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
  23. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts +0 -1
  24. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  25. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +12 -22
  26. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
  27. package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  28. package/dist/lib/modules/coupon/services/referral-code-coupon.service.js +5 -4
  29. package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -1
  30. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  31. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +5 -4
  32. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
  33. package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts +12 -0
  34. package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
  35. package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +252 -0
  36. package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
  37. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +52 -0
  38. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  39. package/dist/lib/modules/coupon/validations/coupon.validation.js +6 -2
  40. package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
  41. package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts +18 -0
  42. package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -1
  43. package/dist/lib/modules/coupon/validations/global-coupon.validation.d.ts +18 -0
  44. package/dist/lib/modules/coupon/validations/global-coupon.validation.d.ts.map +1 -1
  45. package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts +18 -0
  46. package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -1
  47. package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts +18 -0
  48. package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
  49. package/dist/lib/modules/coupon/validations/referral-code-coupon.validation.d.ts +18 -0
  50. package/dist/lib/modules/coupon/validations/referral-code-coupon.validation.d.ts.map +1 -1
  51. package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.d.ts +18 -0
  52. package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -1
  53. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
  54. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.js +11 -4
  55. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.js.map +1 -1
  56. package/dist/lib/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts.map +1 -1
  57. package/dist/lib/modules/punch-marketing-history/services/punch-marketing-history.service.js +5 -4
  58. package/dist/lib/modules/punch-marketing-history/services/punch-marketing-history.service.js.map +1 -1
  59. package/dist/types/index.d.ts +390 -0
  60. package/dist/types/index.d.ts.map +1 -1
  61. package/dist/types/modules/coupon/routers/coupon.router.d.ts +390 -0
  62. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  63. package/dist/types/modules/coupon/services/coupon.service.d.ts +2 -1
  64. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  65. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  66. package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  67. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  68. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  69. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +0 -1
  70. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  71. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  72. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  73. package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +12 -0
  74. package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
  75. package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +252 -0
  76. package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
  77. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +52 -0
  78. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  79. package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +18 -0
  80. package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -1
  81. package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts +18 -0
  82. package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts.map +1 -1
  83. package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +18 -0
  84. package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -1
  85. package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts +18 -0
  86. package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
  87. package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts +18 -0
  88. package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts.map +1 -1
  89. package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +18 -0
  90. package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -1
  91. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
  92. package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts.map +1 -1
  93. package/package.json +2 -2
@@ -40,11 +40,15 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
40
40
  name?: string | undefined;
41
41
  } | undefined;
42
42
  orderLimitPerUser?: number | null | undefined;
43
+ createdBy?: string | mongoose.Types.ObjectId | undefined;
44
+ isExpired?: boolean | undefined;
43
45
  } | {
44
46
  code: string;
45
47
  orderLimitPerUser: 1;
46
48
  couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
47
49
  referralUser: string | mongoose.Types.ObjectId;
50
+ createdBy?: string | mongoose.Types.ObjectId | undefined;
51
+ isExpired?: boolean | undefined;
48
52
  } | {
49
53
  value: number;
50
54
  code: string;
@@ -71,6 +75,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
71
75
  name?: string | undefined;
72
76
  } | undefined;
73
77
  orderLimitPerUser?: number | null | undefined;
78
+ createdBy?: string | mongoose.Types.ObjectId | undefined;
79
+ isExpired?: boolean | undefined;
74
80
  } | {
75
81
  value: number;
76
82
  code: string;
@@ -94,6 +100,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
94
100
  name?: string | undefined;
95
101
  } | undefined;
96
102
  orderLimitPerUser?: number | null | undefined;
103
+ createdBy?: string | mongoose.Types.ObjectId | undefined;
104
+ isExpired?: boolean | undefined;
97
105
  itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
98
106
  shops?: (string | mongoose.Types.ObjectId)[] | undefined;
99
107
  isShopCoverExpenses?: boolean | undefined;
@@ -121,6 +129,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
121
129
  name?: string | undefined;
122
130
  } | undefined;
123
131
  orderLimitPerUser?: number | null | undefined;
132
+ createdBy?: string | mongoose.Types.ObjectId | undefined;
133
+ isExpired?: boolean | undefined;
124
134
  itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
125
135
  shops?: (string | mongoose.Types.ObjectId)[] | undefined;
126
136
  } | {
@@ -147,6 +157,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
147
157
  name?: string | undefined;
148
158
  } | undefined;
149
159
  orderLimitPerUser?: number | null | undefined;
160
+ createdBy?: string | mongoose.Types.ObjectId | undefined;
161
+ isExpired?: boolean | undefined;
150
162
  itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
151
163
  shops?: (string | mongoose.Types.ObjectId)[] | undefined;
152
164
  };
@@ -192,12 +204,16 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
192
204
  }>>>;
193
205
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
194
206
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
207
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
208
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
195
209
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
196
210
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
197
211
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
198
212
  orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
199
213
  referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
200
214
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
215
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
216
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
201
217
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
202
218
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
203
219
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
@@ -241,6 +257,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
241
257
  }>>>;
242
258
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
243
259
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
260
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
261
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
244
262
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
245
263
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
246
264
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
@@ -284,6 +302,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
284
302
  }>>>;
285
303
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
286
304
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
305
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
306
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
287
307
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
288
308
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
289
309
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
@@ -327,6 +347,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
327
347
  }>>>;
328
348
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
329
349
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
350
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
351
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
330
352
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
331
353
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
332
354
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
@@ -370,6 +392,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
370
392
  }>>>;
371
393
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
372
394
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
395
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
396
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
373
397
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
374
398
  }, z.ZodTypeAny, "passthrough"> | {
375
399
  documents: (z.objectInputType<{
@@ -411,12 +435,16 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
411
435
  }>>>;
412
436
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
413
437
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
438
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
439
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
414
440
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
415
441
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
416
442
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
417
443
  orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
418
444
  referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
419
445
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
446
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
447
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
420
448
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
421
449
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
422
450
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
@@ -460,6 +488,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
460
488
  }>>>;
461
489
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
462
490
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
491
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
492
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
463
493
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
464
494
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
465
495
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
@@ -503,6 +533,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
503
533
  }>>>;
504
534
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
505
535
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
536
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
537
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
506
538
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
507
539
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
508
540
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
@@ -546,6 +578,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
546
578
  }>>>;
547
579
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
548
580
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
581
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
582
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
549
583
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
550
584
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
551
585
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
@@ -589,6 +623,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
589
623
  }>>>;
590
624
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
591
625
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
626
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
627
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
592
628
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
593
629
  }, z.ZodTypeAny, "passthrough">)[];
594
630
  metadata?: {
@@ -645,12 +681,16 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
645
681
  }>>>;
646
682
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
647
683
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
684
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
685
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
648
686
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
649
687
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
650
688
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
651
689
  orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
652
690
  referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
653
691
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
692
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
693
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
654
694
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
655
695
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
656
696
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
@@ -694,6 +734,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
694
734
  }>>>;
695
735
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
696
736
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
737
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
738
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
697
739
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
698
740
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
699
741
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
@@ -737,6 +779,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
737
779
  }>>>;
738
780
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
739
781
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
782
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
783
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
740
784
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
741
785
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
742
786
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
@@ -780,6 +824,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
780
824
  }>>>;
781
825
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
782
826
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
827
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
828
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
783
829
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
784
830
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
785
831
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
@@ -823,6 +869,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
823
869
  }>>>;
824
870
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
825
871
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
872
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
873
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
826
874
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
827
875
  }, z.ZodTypeAny, "passthrough"> | {
828
876
  documents: (z.objectInputType<{
@@ -864,12 +912,16 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
864
912
  }>>>;
865
913
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
866
914
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
915
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
916
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
867
917
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
868
918
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
869
919
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
870
920
  orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
871
921
  referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
872
922
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
923
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
924
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
873
925
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
874
926
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
875
927
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
@@ -913,6 +965,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
913
965
  }>>>;
914
966
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
915
967
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
968
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
969
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
916
970
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
917
971
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
918
972
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
@@ -956,6 +1010,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
956
1010
  }>>>;
957
1011
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
958
1012
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1013
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1014
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
959
1015
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
960
1016
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
961
1017
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
@@ -999,6 +1055,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
999
1055
  }>>>;
1000
1056
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1001
1057
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1058
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1059
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1002
1060
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1003
1061
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1004
1062
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
@@ -1042,6 +1100,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1042
1100
  }>>>;
1043
1101
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1044
1102
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1103
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1104
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1045
1105
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1046
1106
  }, z.ZodTypeAny, "passthrough">)[];
1047
1107
  metadata?: {
@@ -1109,12 +1169,16 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1109
1169
  }>>>;
1110
1170
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1111
1171
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1172
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1173
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1112
1174
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1113
1175
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1114
1176
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
1115
1177
  orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
1116
1178
  referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1117
1179
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1180
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1181
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1118
1182
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1119
1183
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1120
1184
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
@@ -1158,6 +1222,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1158
1222
  }>>>;
1159
1223
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1160
1224
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1225
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1226
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1161
1227
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1162
1228
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1163
1229
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
@@ -1201,6 +1267,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1201
1267
  }>>>;
1202
1268
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1203
1269
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1270
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1271
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1204
1272
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1205
1273
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1206
1274
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
@@ -1244,6 +1312,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1244
1312
  }>>>;
1245
1313
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1246
1314
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1315
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1316
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1247
1317
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1248
1318
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1249
1319
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
@@ -1287,6 +1357,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1287
1357
  }>>>;
1288
1358
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1289
1359
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1360
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1361
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1290
1362
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1291
1363
  }, z.ZodTypeAny, "passthrough"> | {
1292
1364
  documents: (z.objectInputType<{
@@ -1328,12 +1400,16 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1328
1400
  }>>>;
1329
1401
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1330
1402
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1403
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1404
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1331
1405
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1332
1406
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1333
1407
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
1334
1408
  orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
1335
1409
  referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1336
1410
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1411
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1412
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1337
1413
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1338
1414
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1339
1415
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
@@ -1377,6 +1453,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1377
1453
  }>>>;
1378
1454
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1379
1455
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1456
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1457
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1380
1458
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1381
1459
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1382
1460
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
@@ -1420,6 +1498,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1420
1498
  }>>>;
1421
1499
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1422
1500
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1501
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1502
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1423
1503
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1424
1504
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1425
1505
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
@@ -1463,6 +1543,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1463
1543
  }>>>;
1464
1544
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1465
1545
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1546
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1547
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1466
1548
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1467
1549
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1468
1550
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
@@ -1506,6 +1588,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1506
1588
  }>>>;
1507
1589
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1508
1590
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1591
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1592
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1509
1593
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1510
1594
  }, z.ZodTypeAny, "passthrough">)[];
1511
1595
  metadata?: {
@@ -1544,11 +1628,15 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1544
1628
  name?: string | undefined;
1545
1629
  } | undefined;
1546
1630
  orderLimitPerUser?: number | null | undefined;
1631
+ createdBy?: string | mongoose.Types.ObjectId | undefined;
1632
+ isExpired?: boolean | undefined;
1547
1633
  } | {
1548
1634
  code: string;
1549
1635
  orderLimitPerUser: 1;
1550
1636
  couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
1551
1637
  referralUser: string | mongoose.Types.ObjectId;
1638
+ createdBy?: string | mongoose.Types.ObjectId | undefined;
1639
+ isExpired?: boolean | undefined;
1552
1640
  } | {
1553
1641
  value: number;
1554
1642
  code: string;
@@ -1575,6 +1663,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1575
1663
  name?: string | undefined;
1576
1664
  } | undefined;
1577
1665
  orderLimitPerUser?: number | null | undefined;
1666
+ createdBy?: string | mongoose.Types.ObjectId | undefined;
1667
+ isExpired?: boolean | undefined;
1578
1668
  } | {
1579
1669
  value: number;
1580
1670
  code: string;
@@ -1598,6 +1688,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1598
1688
  name?: string | undefined;
1599
1689
  } | undefined;
1600
1690
  orderLimitPerUser?: number | null | undefined;
1691
+ createdBy?: string | mongoose.Types.ObjectId | undefined;
1692
+ isExpired?: boolean | undefined;
1601
1693
  itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
1602
1694
  shops?: (string | mongoose.Types.ObjectId)[] | undefined;
1603
1695
  isShopCoverExpenses?: boolean | undefined;
@@ -1625,6 +1717,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1625
1717
  name?: string | undefined;
1626
1718
  } | undefined;
1627
1719
  orderLimitPerUser?: number | null | undefined;
1720
+ createdBy?: string | mongoose.Types.ObjectId | undefined;
1721
+ isExpired?: boolean | undefined;
1628
1722
  itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
1629
1723
  shops?: (string | mongoose.Types.ObjectId)[] | undefined;
1630
1724
  } | {
@@ -1651,6 +1745,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1651
1745
  name?: string | undefined;
1652
1746
  } | undefined;
1653
1747
  orderLimitPerUser?: number | null | undefined;
1748
+ createdBy?: string | mongoose.Types.ObjectId | undefined;
1749
+ isExpired?: boolean | undefined;
1654
1750
  itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
1655
1751
  shops?: (string | mongoose.Types.ObjectId)[] | undefined;
1656
1752
  };
@@ -1697,12 +1793,16 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1697
1793
  }>>>;
1698
1794
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1699
1795
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1796
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1797
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1700
1798
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1701
1799
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1702
1800
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
1703
1801
  orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
1704
1802
  referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1705
1803
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1804
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1805
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1706
1806
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1707
1807
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1708
1808
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
@@ -1746,6 +1846,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1746
1846
  }>>>;
1747
1847
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1748
1848
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1849
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1850
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1749
1851
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1750
1852
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1751
1853
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
@@ -1789,6 +1891,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1789
1891
  }>>>;
1790
1892
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1791
1893
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1894
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1895
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1792
1896
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1793
1897
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1794
1898
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
@@ -1832,6 +1936,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1832
1936
  }>>>;
1833
1937
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1834
1938
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1939
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1940
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1835
1941
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1836
1942
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1837
1943
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
@@ -1875,6 +1981,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1875
1981
  }>>>;
1876
1982
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1877
1983
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
1984
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
1985
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1878
1986
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1879
1987
  }, z.ZodTypeAny, "passthrough"> | {
1880
1988
  documents: (z.objectInputType<{
@@ -1916,12 +2024,16 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1916
2024
  }>>>;
1917
2025
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1918
2026
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2027
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2028
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1919
2029
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1920
2030
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1921
2031
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
1922
2032
  orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
1923
2033
  referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1924
2034
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2035
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2036
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1925
2037
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1926
2038
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1927
2039
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
@@ -1965,6 +2077,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
1965
2077
  }>>>;
1966
2078
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1967
2079
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2080
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2081
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1968
2082
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
1969
2083
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1970
2084
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
@@ -2008,6 +2122,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
2008
2122
  }>>>;
2009
2123
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2010
2124
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2125
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2126
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2011
2127
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2012
2128
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2013
2129
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
@@ -2051,6 +2167,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
2051
2167
  }>>>;
2052
2168
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2053
2169
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2170
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2171
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2054
2172
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2055
2173
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2056
2174
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
@@ -2094,6 +2212,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
2094
2212
  }>>>;
2095
2213
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2096
2214
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2215
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2216
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2097
2217
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2098
2218
  }, z.ZodTypeAny, "passthrough">)[];
2099
2219
  metadata?: {
@@ -2153,12 +2273,16 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
2153
2273
  }>>>;
2154
2274
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2155
2275
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2276
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2277
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2156
2278
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2157
2279
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2158
2280
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
2159
2281
  orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
2160
2282
  referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2161
2283
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2284
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2285
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2162
2286
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2163
2287
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2164
2288
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
@@ -2202,6 +2326,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
2202
2326
  }>>>;
2203
2327
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2204
2328
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2329
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2330
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2205
2331
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2206
2332
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2207
2333
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
@@ -2245,6 +2371,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
2245
2371
  }>>>;
2246
2372
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2247
2373
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2374
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2375
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2248
2376
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2249
2377
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2250
2378
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
@@ -2288,6 +2416,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
2288
2416
  }>>>;
2289
2417
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2290
2418
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2419
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2420
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2291
2421
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2292
2422
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2293
2423
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
@@ -2331,6 +2461,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
2331
2461
  }>>>;
2332
2462
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2333
2463
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2464
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2465
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2334
2466
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2335
2467
  }, z.ZodTypeAny, "passthrough"> | {
2336
2468
  documents: (z.objectInputType<{
@@ -2372,12 +2504,16 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
2372
2504
  }>>>;
2373
2505
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2374
2506
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2507
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2508
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2375
2509
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2376
2510
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2377
2511
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
2378
2512
  orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
2379
2513
  referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2380
2514
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2515
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2516
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2381
2517
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2382
2518
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2383
2519
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
@@ -2421,6 +2557,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
2421
2557
  }>>>;
2422
2558
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2423
2559
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2560
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2561
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2424
2562
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2425
2563
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2426
2564
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
@@ -2464,6 +2602,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
2464
2602
  }>>>;
2465
2603
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2466
2604
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2605
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2606
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2467
2607
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2468
2608
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2469
2609
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
@@ -2507,6 +2647,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
2507
2647
  }>>>;
2508
2648
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2509
2649
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2650
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2651
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2510
2652
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2511
2653
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2512
2654
  couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
@@ -2550,6 +2692,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
2550
2692
  }>>>;
2551
2693
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2552
2694
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2695
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2696
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2553
2697
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2554
2698
  }, z.ZodTypeAny, "passthrough">)[];
2555
2699
  metadata?: {
@@ -2575,6 +2719,252 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
2575
2719
  };
2576
2720
  meta: object;
2577
2721
  }>;
2722
+ getUserCouponList: import("@trpc/server").TRPCQueryProcedure<{
2723
+ input: {
2724
+ search?: {
2725
+ searchKey: string;
2726
+ searchFields?: string[] | undefined;
2727
+ } | undefined;
2728
+ sort?: Record<string, 1 | -1> | undefined;
2729
+ page?: number | undefined;
2730
+ select?: Record<string, 0 | 1> | undefined;
2731
+ size?: number | undefined;
2732
+ populate?: any;
2733
+ query?: Record<string, any> | undefined;
2734
+ } | undefined;
2735
+ output: import("@lyxa.ai/core/dist/utilities/validation").PaginatedResponse<z.objectOutputType<{
2736
+ couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
2737
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
2738
+ value: z.ZodOptional<z.ZodNumber>;
2739
+ secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2740
+ maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2741
+ secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2742
+ duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2743
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
2744
+ end: 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>>;
2745
+ }, "strip", z.ZodTypeAny, {
2746
+ start: Date;
2747
+ end?: Date | undefined;
2748
+ }, {
2749
+ start: string | Date;
2750
+ end?: string | Date | undefined;
2751
+ }>, {
2752
+ start: Date;
2753
+ end?: Date | undefined;
2754
+ }, {
2755
+ start: string | Date;
2756
+ end?: string | Date | undefined;
2757
+ }>>;
2758
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2759
+ totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2760
+ minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
2761
+ secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2762
+ forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
2763
+ status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
2764
+ expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
2765
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2766
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2767
+ }, "strip", z.ZodTypeAny, {
2768
+ name?: string | undefined;
2769
+ }, {
2770
+ name?: string | undefined;
2771
+ }>>>;
2772
+ code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2773
+ orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2774
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2775
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2776
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2777
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2778
+ couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
2779
+ orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
2780
+ referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2781
+ code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2782
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2783
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2784
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2785
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2786
+ couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
2787
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2788
+ referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2789
+ referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2790
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
2791
+ value: z.ZodOptional<z.ZodNumber>;
2792
+ secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2793
+ maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2794
+ secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2795
+ duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2796
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
2797
+ end: 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>>;
2798
+ }, "strip", z.ZodTypeAny, {
2799
+ start: Date;
2800
+ end?: Date | undefined;
2801
+ }, {
2802
+ start: string | Date;
2803
+ end?: string | Date | undefined;
2804
+ }>, {
2805
+ start: Date;
2806
+ end?: Date | undefined;
2807
+ }, {
2808
+ start: string | Date;
2809
+ end?: string | Date | undefined;
2810
+ }>>;
2811
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2812
+ totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2813
+ minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
2814
+ secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2815
+ forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
2816
+ status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
2817
+ expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
2818
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2819
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2820
+ }, "strip", z.ZodTypeAny, {
2821
+ name?: string | undefined;
2822
+ }, {
2823
+ name?: string | undefined;
2824
+ }>>>;
2825
+ code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2826
+ orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2827
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2828
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2829
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2830
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2831
+ couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
2832
+ itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
2833
+ shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
2834
+ isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2835
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
2836
+ value: z.ZodOptional<z.ZodNumber>;
2837
+ secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2838
+ maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2839
+ secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2840
+ duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2841
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
2842
+ end: 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>>;
2843
+ }, "strip", z.ZodTypeAny, {
2844
+ start: Date;
2845
+ end?: Date | undefined;
2846
+ }, {
2847
+ start: string | Date;
2848
+ end?: string | Date | undefined;
2849
+ }>, {
2850
+ start: Date;
2851
+ end?: Date | undefined;
2852
+ }, {
2853
+ start: string | Date;
2854
+ end?: string | Date | undefined;
2855
+ }>>;
2856
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2857
+ totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2858
+ minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
2859
+ secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2860
+ forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
2861
+ status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
2862
+ expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
2863
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2864
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2865
+ }, "strip", z.ZodTypeAny, {
2866
+ name?: string | undefined;
2867
+ }, {
2868
+ name?: string | undefined;
2869
+ }>>>;
2870
+ code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2871
+ orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2872
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2873
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2874
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2875
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2876
+ couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
2877
+ users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
2878
+ itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
2879
+ shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
2880
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
2881
+ value: z.ZodOptional<z.ZodNumber>;
2882
+ secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2883
+ maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2884
+ secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2885
+ duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2886
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
2887
+ end: 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>>;
2888
+ }, "strip", z.ZodTypeAny, {
2889
+ start: Date;
2890
+ end?: Date | undefined;
2891
+ }, {
2892
+ start: string | Date;
2893
+ end?: string | Date | undefined;
2894
+ }>, {
2895
+ start: Date;
2896
+ end?: Date | undefined;
2897
+ }, {
2898
+ start: string | Date;
2899
+ end?: string | Date | undefined;
2900
+ }>>;
2901
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2902
+ totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2903
+ minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
2904
+ secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2905
+ forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
2906
+ status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
2907
+ expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
2908
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2909
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2910
+ }, "strip", z.ZodTypeAny, {
2911
+ name?: string | undefined;
2912
+ }, {
2913
+ name?: string | undefined;
2914
+ }>>>;
2915
+ code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2916
+ orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2917
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2918
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2919
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2920
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2921
+ couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
2922
+ influencer: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2923
+ itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
2924
+ shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
2925
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
2926
+ value: z.ZodOptional<z.ZodNumber>;
2927
+ secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2928
+ maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2929
+ secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2930
+ duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2931
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
2932
+ end: 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>>;
2933
+ }, "strip", z.ZodTypeAny, {
2934
+ start: Date;
2935
+ end?: Date | undefined;
2936
+ }, {
2937
+ start: string | Date;
2938
+ end?: string | Date | undefined;
2939
+ }>, {
2940
+ start: Date;
2941
+ end?: Date | undefined;
2942
+ }, {
2943
+ start: string | Date;
2944
+ end?: string | Date | undefined;
2945
+ }>>;
2946
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2947
+ totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2948
+ minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
2949
+ secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2950
+ forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
2951
+ status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
2952
+ expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
2953
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2954
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2955
+ }, "strip", z.ZodTypeAny, {
2956
+ name?: string | undefined;
2957
+ }, {
2958
+ name?: string | undefined;
2959
+ }>>>;
2960
+ code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
2961
+ orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
2962
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>>;
2963
+ isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2964
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
2965
+ }, z.ZodTypeAny, "passthrough">>;
2966
+ meta: object;
2967
+ }>;
2578
2968
  validateCoupon: import("@trpc/server").TRPCQueryProcedure<{
2579
2969
  input: {
2580
2970
  shop: string | mongoose.Types.ObjectId;