@lyxa.ai/marketing 1.0.44 → 1.0.46

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 (105) hide show
  1. package/dist/lib/index.d.ts +102 -22
  2. package/dist/lib/index.d.ts.map +1 -1
  3. package/dist/lib/modules/coupon/routers/coupon.router.d.ts +101 -21
  4. package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  5. package/dist/lib/modules/coupon/routers/coupon.router.js +1 -1
  6. package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
  7. package/dist/lib/modules/coupon/services/coupon.service.d.ts +3 -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 +33 -12
  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 +208 -3
  12. package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  13. package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  14. package/dist/lib/modules/coupon/services/global-coupon.service.js +2 -0
  15. package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
  16. package/dist/lib/modules/coupon/services/helper.service.d.ts +214 -4
  17. package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
  18. package/dist/lib/modules/coupon/services/helper.service.js +114 -16
  19. package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
  20. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +208 -3
  21. package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  22. package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts +1 -1
  23. package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  24. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +20 -11
  25. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
  26. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
  27. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +2 -5
  28. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
  29. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts +2 -2
  30. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  31. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +151 -45
  32. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
  33. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  34. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +2 -0
  35. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
  36. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts +208 -3
  37. package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
  38. package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts +5 -1
  39. package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
  40. package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +243 -23
  41. package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
  42. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +69 -17
  43. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  44. package/dist/lib/modules/coupon/validations/coupon.validation.js +24 -3
  45. package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
  46. package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts +94 -6
  47. package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
  48. package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts +9 -0
  49. package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -1
  50. package/dist/lib/modules/coupon/validations/custom-coupon.validation.js +1 -0
  51. package/dist/lib/modules/coupon/validations/custom-coupon.validation.js.map +1 -1
  52. package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts +200 -122
  53. package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -1
  54. package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.js +20 -3
  55. package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.js.map +1 -1
  56. package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts +9 -0
  57. package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
  58. package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.js +1 -0
  59. package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.js.map +1 -1
  60. package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.d.ts +9 -0
  61. package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.d.ts.map +1 -1
  62. package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.js +1 -0
  63. package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.js.map +1 -1
  64. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  65. package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  66. package/dist/types/index.d.ts +102 -22
  67. package/dist/types/index.d.ts.map +1 -1
  68. package/dist/types/modules/coupon/routers/coupon.router.d.ts +101 -21
  69. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  70. package/dist/types/modules/coupon/services/coupon.service.d.ts +3 -1
  71. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  72. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +208 -3
  73. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  74. package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  75. package/dist/types/modules/coupon/services/helper.service.d.ts +214 -4
  76. package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
  77. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +208 -3
  78. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  79. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts +1 -1
  80. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  81. package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
  82. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +2 -2
  83. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  84. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  85. package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts +208 -3
  86. package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
  87. package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +5 -1
  88. package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
  89. package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +243 -23
  90. package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
  91. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +69 -17
  92. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  93. package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts +94 -6
  94. package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
  95. package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +9 -0
  96. package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -1
  97. package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +200 -122
  98. package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -1
  99. package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts +9 -0
  100. package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
  101. package/dist/types/modules/coupon/validations/shops-categories-coupon.validation.d.ts +9 -0
  102. package/dist/types/modules/coupon/validations/shops-categories-coupon.validation.d.ts.map +1 -1
  103. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
  104. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
  105. package/package.json +2 -2
@@ -4,124 +4,10 @@ import { CouponType } from '@lyxa.ai/core/dist/utilities/enum';
4
4
  /**
5
5
  * Get all schemas for the Parent entity
6
6
  */
7
- declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
8
- couponType: z.ZodLiteral<CouponType.INDIVIDUAL_STORE>;
9
- shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
10
- isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
11
- firstOrderOnly: z.ZodDefault<z.ZodBoolean>;
12
- valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
13
- value: z.ZodNumber;
14
- secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
15
- maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
16
- secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodNumber>;
17
- isMaxDiscountLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18
- duration: z.ZodEffects<z.ZodObject<{
19
- 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>;
20
- 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>>;
21
- }, "strip", z.ZodTypeAny, {
22
- start: Date;
23
- end?: Date | undefined;
24
- }, {
25
- start: string | Date;
26
- end?: string | Date | undefined;
27
- }>, {
28
- start: Date;
29
- end?: Date | undefined;
30
- }, {
31
- start: string | Date;
32
- end?: string | Date | undefined;
33
- }>;
34
- spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
35
- isSpendLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
36
- totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
37
- isTotalOrderLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
38
- minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
39
- secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodNumber>;
40
- isMinOrderValueEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
41
- forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
42
- status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
43
- expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
44
- referringUser: z.ZodOptional<z.ZodObject<{
45
- name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
46
- }, "strip", z.ZodTypeAny, {
47
- name?: string | undefined;
48
- }, {
49
- name?: string | undefined;
50
- }>>;
51
- code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
52
- orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
53
- isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
54
- createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
55
- isExpired: z.ZodOptional<z.ZodBoolean>;
56
- }, "strict", z.ZodTypeAny, {
57
- code: string;
58
- value: number;
59
- status: import("@lyxa.ai/core/dist/utilities/enum").Status;
60
- valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
61
- maxDiscountLimit: number | null;
62
- isMaxDiscountLimitEnabled: boolean;
63
- duration: {
64
- start: Date;
65
- end?: Date | undefined;
66
- };
67
- spendLimit: number | null;
68
- isSpendLimitEnabled: boolean;
69
- totalOrderLimit: number | null;
70
- isTotalOrderLimitEnabled: boolean;
71
- minOrderValue: number | null;
72
- isMinOrderValueEnabled: boolean;
73
- forNewUserOnly: boolean;
74
- expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
75
- orderLimitPerUser: number | null;
76
- isOrderLimitPerUserEnabled: boolean;
77
- shop: import("mongoose").Types.ObjectId;
78
- couponType: CouponType.INDIVIDUAL_STORE;
79
- isShopCoverExpenses: boolean;
80
- firstOrderOnly: boolean;
81
- secondaryCurrencyValue?: number | undefined;
82
- secondaryCurrencyMaxDiscountLimit?: number | undefined;
83
- secondaryCurrencyMinOrderValue?: number | undefined;
84
- referringUser?: {
85
- name?: string | undefined;
86
- } | undefined;
87
- createdBy?: import("mongoose").Types.ObjectId | undefined;
88
- isExpired?: boolean | undefined;
89
- }, {
90
- code: string;
91
- value: number;
92
- valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
93
- duration: {
94
- start: string | Date;
95
- end?: string | Date | undefined;
96
- };
97
- shop: string | import("mongoose").Types.ObjectId;
98
- couponType: CouponType.INDIVIDUAL_STORE;
99
- status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
100
- secondaryCurrencyValue?: number | undefined;
101
- maxDiscountLimit?: number | null | undefined;
102
- secondaryCurrencyMaxDiscountLimit?: number | undefined;
103
- isMaxDiscountLimitEnabled?: boolean | undefined;
104
- spendLimit?: number | null | undefined;
105
- isSpendLimitEnabled?: boolean | undefined;
106
- totalOrderLimit?: number | null | undefined;
107
- isTotalOrderLimitEnabled?: boolean | undefined;
108
- minOrderValue?: number | null | undefined;
109
- secondaryCurrencyMinOrderValue?: number | undefined;
110
- isMinOrderValueEnabled?: boolean | undefined;
111
- forNewUserOnly?: boolean | undefined;
112
- expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
113
- referringUser?: {
114
- name?: string | undefined;
115
- } | undefined;
116
- orderLimitPerUser?: number | null | undefined;
117
- isOrderLimitPerUserEnabled?: boolean | undefined;
118
- createdBy?: string | import("mongoose").Types.ObjectId | undefined;
119
- isExpired?: boolean | undefined;
120
- isShopCoverExpenses?: boolean | undefined;
121
- firstOrderOnly?: boolean | undefined;
122
- }>, IndividualStoreCouponSchema: z.ZodObject<{
7
+ declare const IndividualStoreCouponSchema: z.ZodObject<{
123
8
  couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
124
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
9
+ shop: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
10
+ vendor: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
125
11
  isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
126
12
  firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
127
13
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
@@ -171,7 +57,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
171
57
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
172
58
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
173
59
  couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
174
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
60
+ shop: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
61
+ vendor: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
175
62
  isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
176
63
  firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
177
64
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
@@ -221,7 +108,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
221
108
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
222
109
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
223
110
  couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
224
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
111
+ shop: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
112
+ vendor: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
225
113
  isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
226
114
  firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
227
115
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
@@ -277,7 +165,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
277
165
  [x: string]: any;
278
166
  }> | z.ZodObject<{
279
167
  couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
280
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
168
+ shop: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
169
+ vendor: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
281
170
  isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
282
171
  firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
283
172
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
@@ -327,7 +216,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
327
216
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
328
217
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
329
218
  couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
330
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
219
+ shop: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
220
+ vendor: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
331
221
  isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
332
222
  firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
333
223
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
@@ -377,7 +267,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
377
267
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
378
268
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
379
269
  couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
380
- shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
270
+ shop: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
271
+ vendor: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
381
272
  isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
382
273
  firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
383
274
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
@@ -426,6 +317,193 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
426
317
  isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
427
318
  _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
428
319
  }, z.ZodTypeAny, "passthrough">>;
320
+ declare const IndividualStoreCouponValidationSchema: z.ZodEffects<z.ZodObject<{
321
+ couponType: z.ZodLiteral<CouponType.INDIVIDUAL_STORE>;
322
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
323
+ vendor: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
324
+ isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
325
+ firstOrderOnly: z.ZodDefault<z.ZodBoolean>;
326
+ valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
327
+ value: z.ZodNumber;
328
+ secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
329
+ maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
330
+ secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodNumber>;
331
+ isMaxDiscountLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
332
+ duration: z.ZodEffects<z.ZodObject<{
333
+ 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>;
334
+ 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>>;
335
+ }, "strip", z.ZodTypeAny, {
336
+ start: Date;
337
+ end?: Date | undefined;
338
+ }, {
339
+ start: string | Date;
340
+ end?: string | Date | undefined;
341
+ }>, {
342
+ start: Date;
343
+ end?: Date | undefined;
344
+ }, {
345
+ start: string | Date;
346
+ end?: string | Date | undefined;
347
+ }>;
348
+ spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
349
+ isSpendLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
350
+ totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
351
+ isTotalOrderLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
352
+ minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
353
+ secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodNumber>;
354
+ isMinOrderValueEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
355
+ forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
356
+ status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
357
+ expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
358
+ referringUser: z.ZodOptional<z.ZodObject<{
359
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
360
+ }, "strip", z.ZodTypeAny, {
361
+ name?: string | undefined;
362
+ }, {
363
+ name?: string | undefined;
364
+ }>>;
365
+ code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
366
+ orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
367
+ isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
368
+ createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
369
+ isExpired: z.ZodOptional<z.ZodBoolean>;
370
+ }, "strict", z.ZodTypeAny, {
371
+ code: string;
372
+ value: number;
373
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
374
+ valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
375
+ maxDiscountLimit: number | null;
376
+ isMaxDiscountLimitEnabled: boolean;
377
+ duration: {
378
+ start: Date;
379
+ end?: Date | undefined;
380
+ };
381
+ spendLimit: number | null;
382
+ isSpendLimitEnabled: boolean;
383
+ totalOrderLimit: number | null;
384
+ isTotalOrderLimitEnabled: boolean;
385
+ minOrderValue: number | null;
386
+ isMinOrderValueEnabled: boolean;
387
+ forNewUserOnly: boolean;
388
+ expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
389
+ orderLimitPerUser: number | null;
390
+ isOrderLimitPerUserEnabled: boolean;
391
+ couponType: CouponType.INDIVIDUAL_STORE;
392
+ isShopCoverExpenses: boolean;
393
+ firstOrderOnly: boolean;
394
+ secondaryCurrencyValue?: number | undefined;
395
+ secondaryCurrencyMaxDiscountLimit?: number | undefined;
396
+ secondaryCurrencyMinOrderValue?: number | undefined;
397
+ referringUser?: {
398
+ name?: string | undefined;
399
+ } | undefined;
400
+ createdBy?: import("mongoose").Types.ObjectId | undefined;
401
+ isExpired?: boolean | undefined;
402
+ shop?: import("mongoose").Types.ObjectId | undefined;
403
+ vendor?: import("mongoose").Types.ObjectId | undefined;
404
+ }, {
405
+ code: string;
406
+ value: number;
407
+ valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
408
+ duration: {
409
+ start: string | Date;
410
+ end?: string | Date | undefined;
411
+ };
412
+ couponType: CouponType.INDIVIDUAL_STORE;
413
+ status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
414
+ secondaryCurrencyValue?: number | undefined;
415
+ maxDiscountLimit?: number | null | undefined;
416
+ secondaryCurrencyMaxDiscountLimit?: number | undefined;
417
+ isMaxDiscountLimitEnabled?: boolean | undefined;
418
+ spendLimit?: number | null | undefined;
419
+ isSpendLimitEnabled?: boolean | undefined;
420
+ totalOrderLimit?: number | null | undefined;
421
+ isTotalOrderLimitEnabled?: boolean | undefined;
422
+ minOrderValue?: number | null | undefined;
423
+ secondaryCurrencyMinOrderValue?: number | undefined;
424
+ isMinOrderValueEnabled?: boolean | undefined;
425
+ forNewUserOnly?: boolean | undefined;
426
+ expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
427
+ referringUser?: {
428
+ name?: string | undefined;
429
+ } | undefined;
430
+ orderLimitPerUser?: number | null | undefined;
431
+ isOrderLimitPerUserEnabled?: boolean | undefined;
432
+ createdBy?: string | import("mongoose").Types.ObjectId | undefined;
433
+ isExpired?: boolean | undefined;
434
+ shop?: string | import("mongoose").Types.ObjectId | undefined;
435
+ vendor?: string | import("mongoose").Types.ObjectId | undefined;
436
+ isShopCoverExpenses?: boolean | undefined;
437
+ firstOrderOnly?: boolean | undefined;
438
+ }>, {
439
+ code: string;
440
+ value: number;
441
+ status: import("@lyxa.ai/core/dist/utilities/enum").Status;
442
+ valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
443
+ maxDiscountLimit: number | null;
444
+ isMaxDiscountLimitEnabled: boolean;
445
+ duration: {
446
+ start: Date;
447
+ end?: Date | undefined;
448
+ };
449
+ spendLimit: number | null;
450
+ isSpendLimitEnabled: boolean;
451
+ totalOrderLimit: number | null;
452
+ isTotalOrderLimitEnabled: boolean;
453
+ minOrderValue: number | null;
454
+ isMinOrderValueEnabled: boolean;
455
+ forNewUserOnly: boolean;
456
+ expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
457
+ orderLimitPerUser: number | null;
458
+ isOrderLimitPerUserEnabled: boolean;
459
+ couponType: CouponType.INDIVIDUAL_STORE;
460
+ isShopCoverExpenses: boolean;
461
+ firstOrderOnly: boolean;
462
+ secondaryCurrencyValue?: number | undefined;
463
+ secondaryCurrencyMaxDiscountLimit?: number | undefined;
464
+ secondaryCurrencyMinOrderValue?: number | undefined;
465
+ referringUser?: {
466
+ name?: string | undefined;
467
+ } | undefined;
468
+ createdBy?: import("mongoose").Types.ObjectId | undefined;
469
+ isExpired?: boolean | undefined;
470
+ shop?: import("mongoose").Types.ObjectId | undefined;
471
+ vendor?: import("mongoose").Types.ObjectId | undefined;
472
+ }, {
473
+ code: string;
474
+ value: number;
475
+ valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
476
+ duration: {
477
+ start: string | Date;
478
+ end?: string | Date | undefined;
479
+ };
480
+ couponType: CouponType.INDIVIDUAL_STORE;
481
+ status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
482
+ secondaryCurrencyValue?: number | undefined;
483
+ maxDiscountLimit?: number | null | undefined;
484
+ secondaryCurrencyMaxDiscountLimit?: number | undefined;
485
+ isMaxDiscountLimitEnabled?: boolean | undefined;
486
+ spendLimit?: number | null | undefined;
487
+ isSpendLimitEnabled?: boolean | undefined;
488
+ totalOrderLimit?: number | null | undefined;
489
+ isTotalOrderLimitEnabled?: boolean | undefined;
490
+ minOrderValue?: number | null | undefined;
491
+ secondaryCurrencyMinOrderValue?: number | undefined;
492
+ isMinOrderValueEnabled?: boolean | undefined;
493
+ forNewUserOnly?: boolean | undefined;
494
+ expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
495
+ referringUser?: {
496
+ name?: string | undefined;
497
+ } | undefined;
498
+ orderLimitPerUser?: number | null | undefined;
499
+ isOrderLimitPerUserEnabled?: boolean | undefined;
500
+ createdBy?: string | import("mongoose").Types.ObjectId | undefined;
501
+ isExpired?: boolean | undefined;
502
+ shop?: string | import("mongoose").Types.ObjectId | undefined;
503
+ vendor?: string | import("mongoose").Types.ObjectId | undefined;
504
+ isShopCoverExpenses?: boolean | undefined;
505
+ firstOrderOnly?: boolean | undefined;
506
+ }>;
429
507
  /**
430
508
  * Export schemas
431
509
  */
@@ -1 +1 @@
1
- {"version":3,"file":"individual-store-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/individual-store-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAY,MAAM,mCAAmC,CAAC;AAoBzE;;GAEG;AACH,QAAA,MACa,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACnC,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC/B,6BAA6B,mNACzB,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACI,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,qCAAqC,EACrC,2BAA2B,EAC3B,6BAA6B,IAAI,uCAAuC,EACxE,iCAAiC,GACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAC/F,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
1
+ {"version":3,"file":"individual-store-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/individual-store-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAqB/D;;GAEG;AACH,QAAA,MAEe,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC/B,6BAA6B,mNACzB,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACI,CAAC;AAErD,QAAA,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAezC,CAAC;AAEH;;GAEG;AACH,OAAO,EACN,qCAAqC,EACrC,2BAA2B,EAC3B,6BAA6B,IAAI,uCAAuC,EACxE,iCAAiC,GACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAC/F,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
@@ -9,6 +9,7 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
9
9
  users: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">;
10
10
  itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>;
11
11
  shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
12
+ vendors: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
12
13
  valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
13
14
  value: z.ZodNumber;
14
15
  secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
@@ -77,6 +78,7 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
77
78
  couponType: CouponType.INDIVIDUAL_USER;
78
79
  itemTypes: ItemType[];
79
80
  shops: import("mongoose").Types.ObjectId[];
81
+ vendors: import("mongoose").Types.ObjectId[];
80
82
  users: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
81
83
  secondaryCurrencyValue?: number | undefined;
82
84
  secondaryCurrencyMaxDiscountLimit?: number | undefined;
@@ -119,11 +121,13 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
119
121
  isExpired?: boolean | undefined;
120
122
  itemTypes?: ItemType[] | undefined;
121
123
  shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
124
+ vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
122
125
  }>, IndividualUserCouponSchema: z.ZodObject<{
123
126
  couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_USER>>;
124
127
  users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">>;
125
128
  itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
126
129
  shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
130
+ vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
127
131
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
128
132
  value: z.ZodOptional<z.ZodNumber>;
129
133
  secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -174,6 +178,7 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
174
178
  users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">>;
175
179
  itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
176
180
  shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
181
+ vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
177
182
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
178
183
  value: z.ZodOptional<z.ZodNumber>;
179
184
  secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -224,6 +229,7 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
224
229
  users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">>;
225
230
  itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
226
231
  shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
232
+ vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
227
233
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
228
234
  value: z.ZodOptional<z.ZodNumber>;
229
235
  secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -280,6 +286,7 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
280
286
  users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">>;
281
287
  itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
282
288
  shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
289
+ vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
283
290
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
284
291
  value: z.ZodOptional<z.ZodNumber>;
285
292
  secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -330,6 +337,7 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
330
337
  users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">>;
331
338
  itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
332
339
  shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
340
+ vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
333
341
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
334
342
  value: z.ZodOptional<z.ZodNumber>;
335
343
  secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -380,6 +388,7 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
380
388
  users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">>;
381
389
  itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
382
390
  shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
391
+ vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
383
392
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
384
393
  value: z.ZodOptional<z.ZodNumber>;
385
394
  secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -1 +1 @@
1
- {"version":3,"file":"individual-user-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/individual-user-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAoBzE;;GAEG;AACH,QAAA,MACa,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAClC,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC9B,4BAA4B,mNACxB,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACK,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,oCAAoC,EACpC,0BAA0B,EAC1B,4BAA4B,IAAI,sCAAsC,EACtE,gCAAgC,GAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,GAAG,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAC7F,MAAM,MAAM,uBAAuB,GAAG,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC7E,MAAM,MAAM,6BAA6B,GAAG,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
1
+ {"version":3,"file":"individual-user-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/individual-user-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAqBzE;;GAEG;AACH,QAAA,MACa,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAClC,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC9B,4BAA4B,mNACxB,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACK,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,oCAAoC,EACpC,0BAA0B,EAC1B,4BAA4B,IAAI,sCAAsC,EACtE,gCAAgC,GAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,GAAG,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAC7F,MAAM,MAAM,uBAAuB,GAAG,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC7E,MAAM,MAAM,6BAA6B,GAAG,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -8,6 +8,7 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
8
8
  couponType: z.ZodLiteral<CouponType.SHOPS_CATEGORIES>;
9
9
  itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>;
10
10
  shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
11
+ vendors: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
11
12
  isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
12
13
  firstOrderOnly: z.ZodDefault<z.ZodBoolean>;
13
14
  valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
@@ -78,6 +79,7 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
78
79
  couponType: CouponType.SHOPS_CATEGORIES;
79
80
  itemTypes: ItemType[];
80
81
  shops: import("mongoose").Types.ObjectId[];
82
+ vendors: import("mongoose").Types.ObjectId[];
81
83
  isShopCoverExpenses: boolean;
82
84
  firstOrderOnly: boolean;
83
85
  secondaryCurrencyValue?: number | undefined;
@@ -120,12 +122,14 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
120
122
  isExpired?: boolean | undefined;
121
123
  itemTypes?: ItemType[] | undefined;
122
124
  shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
125
+ vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
123
126
  isShopCoverExpenses?: boolean | undefined;
124
127
  firstOrderOnly?: boolean | undefined;
125
128
  }>, ShopsCategoriesCouponSchema: z.ZodObject<{
126
129
  couponType: z.ZodOptional<z.ZodLiteral<CouponType.SHOPS_CATEGORIES>>;
127
130
  itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
128
131
  shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
132
+ vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
129
133
  isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
130
134
  firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
131
135
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
@@ -177,6 +181,7 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
177
181
  couponType: z.ZodOptional<z.ZodLiteral<CouponType.SHOPS_CATEGORIES>>;
178
182
  itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
179
183
  shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
184
+ vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
180
185
  isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
181
186
  firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
182
187
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
@@ -228,6 +233,7 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
228
233
  couponType: z.ZodOptional<z.ZodLiteral<CouponType.SHOPS_CATEGORIES>>;
229
234
  itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
230
235
  shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
236
+ vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
231
237
  isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
232
238
  firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
233
239
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
@@ -285,6 +291,7 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
285
291
  couponType: z.ZodOptional<z.ZodLiteral<CouponType.SHOPS_CATEGORIES>>;
286
292
  itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
287
293
  shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
294
+ vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
288
295
  isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
289
296
  firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
290
297
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
@@ -336,6 +343,7 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
336
343
  couponType: z.ZodOptional<z.ZodLiteral<CouponType.SHOPS_CATEGORIES>>;
337
344
  itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
338
345
  shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
346
+ vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
339
347
  isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
340
348
  firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
341
349
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
@@ -387,6 +395,7 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
387
395
  couponType: z.ZodOptional<z.ZodLiteral<CouponType.SHOPS_CATEGORIES>>;
388
396
  itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
389
397
  shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
398
+ vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
390
399
  isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
391
400
  firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
392
401
  valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
@@ -1 +1 @@
1
- {"version":3,"file":"shops-categories-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/shops-categories-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAqBzE;;GAEG;AACH,QAAA,MACa,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACnC,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC/B,6BAA6B,mNACzB,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACI,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,qCAAqC,EACrC,2BAA2B,EAC3B,6BAA6B,IAAI,uCAAuC,EACxE,iCAAiC,GACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAC/F,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
1
+ {"version":3,"file":"shops-categories-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/shops-categories-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAsBzE;;GAEG;AACH,QAAA,MACa,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACnC,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC/B,6BAA6B,mNACzB,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACI,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,qCAAqC,EACrC,2BAA2B,EAC3B,6BAA6B,IAAI,uCAAuC,EACxE,iCAAiC,GACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAC/F,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
@@ -26,9 +26,9 @@ export declare const punchMarketingHistoryRouter: import("@trpc/server").TRPCBui
26
26
  couponDurationInDays: number;
27
27
  status?: import("@lyxa.ai/core/dist/utilities/enum").PunchMarketingStatus | undefined;
28
28
  startDate?: string | Date | undefined;
29
+ completedAt?: string | Date | undefined;
29
30
  completedOrder?: number | undefined;
30
31
  expiryDate?: string | Date | undefined;
31
- completedAt?: string | Date | undefined;
32
32
  couponExpiryDate?: string | Date | undefined;
33
33
  };
34
34
  output: {
@@ -30,9 +30,9 @@ declare const PunchMarketingHistoryValidationSchema: z.ZodObject<{
30
30
  couponDurationInDays: number;
31
31
  status?: PunchMarketingStatus | undefined;
32
32
  startDate?: Date | undefined;
33
+ completedAt?: Date | undefined;
33
34
  completedOrder?: number | undefined;
34
35
  expiryDate?: Date | undefined;
35
- completedAt?: Date | undefined;
36
36
  couponExpiryDate?: Date | undefined;
37
37
  }, {
38
38
  user: string | import("mongoose").Types.ObjectId;
@@ -45,9 +45,9 @@ declare const PunchMarketingHistoryValidationSchema: z.ZodObject<{
45
45
  couponDurationInDays: number;
46
46
  status?: PunchMarketingStatus | undefined;
47
47
  startDate?: string | Date | undefined;
48
+ completedAt?: string | Date | undefined;
48
49
  completedOrder?: number | undefined;
49
50
  expiryDate?: string | Date | undefined;
50
- completedAt?: string | Date | undefined;
51
51
  couponExpiryDate?: string | Date | undefined;
52
52
  }>, PunchMarketingHistorySchema: z.ZodObject<{
53
53
  user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/marketing",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "The Lyxa Marketing microservice",
5
5
  "license": "MIT",
6
6
  "main": "dist/lib/index.js",
@@ -19,7 +19,7 @@
19
19
  "test:watch": "jest --watch"
20
20
  },
21
21
  "dependencies": {
22
- "@lyxa.ai/core": "1.4.109",
22
+ "@lyxa.ai/core": "1.4.112",
23
23
  "@lyxa.ai/notification": "^1.0.7",
24
24
  "@trpc/client": "^11.4.3",
25
25
  "@trpc/server": "^11.4.3",