@lyxa.ai/marketing 1.0.10 → 1.0.12

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 (58) hide show
  1. package/dist/lib/index.js +6 -8
  2. package/dist/types/index.d.ts +413 -320
  3. package/dist/types/index.d.ts.map +1 -1
  4. package/dist/types/modules/coupon/routers/coupon.router.d.ts +413 -0
  5. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  6. package/dist/types/modules/coupon/services/coupon.service.d.ts +2 -1
  7. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  8. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  9. package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  10. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  11. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  12. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +3 -0
  13. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  14. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  15. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  16. package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +35 -0
  17. package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
  18. package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +615 -0
  19. package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
  20. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +255 -0
  21. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  22. package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +55 -0
  23. package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -1
  24. package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts +55 -0
  25. package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts.map +1 -1
  26. package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +55 -0
  27. package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -1
  28. package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts +55 -0
  29. package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
  30. package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +55 -0
  31. package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -1
  32. package/dist/types/modules/marketing/services/free-delivery-marketing.service.d.ts.map +1 -1
  33. package/dist/types/modules/marketing/services/index.d.ts +0 -1
  34. package/dist/types/modules/marketing/services/index.d.ts.map +1 -1
  35. package/dist/types/modules/marketing/services/marketing.service.d.ts +2 -2
  36. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  37. package/dist/types/modules/marketing/services/product-marketing.service.d.ts +5 -0
  38. package/dist/types/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
  39. package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +0 -3
  40. package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -1
  41. package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts +2 -5
  42. package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -1
  43. package/dist/types/modules/marketing/transformers/index.d.ts +0 -1
  44. package/dist/types/modules/marketing/transformers/index.d.ts.map +1 -1
  45. package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts +0 -1
  46. package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts.map +1 -1
  47. package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts +1 -0
  48. package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -1
  49. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +120 -24
  50. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
  51. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +28 -58
  52. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
  53. package/dist/types/modules/marketing/validations/index.d.ts +0 -1
  54. package/dist/types/modules/marketing/validations/index.d.ts.map +1 -1
  55. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +0 -19
  56. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts.map +1 -1
  57. package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts.map +1 -1
  58. package/package.json +3 -3
@@ -37,6 +37,13 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
37
37
  forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
38
38
  status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
39
39
  expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
40
+ referringUser: z.ZodOptional<z.ZodObject<{
41
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ name?: string | undefined;
44
+ }, {
45
+ name?: string | undefined;
46
+ }>>;
40
47
  code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
41
48
  orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
42
49
  }, "strict", z.ZodTypeAny, {
@@ -62,6 +69,9 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
62
69
  secondaryCurrencyValue?: number | undefined;
63
70
  secondaryCurrencyMaxDiscountLimit?: number | undefined;
64
71
  secondaryCurrencyMinOrderValue?: number | undefined;
72
+ referringUser?: {
73
+ name?: string | undefined;
74
+ } | undefined;
65
75
  }, {
66
76
  value: number;
67
77
  code: string;
@@ -82,6 +92,9 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
82
92
  secondaryCurrencyMinOrderValue?: number | undefined;
83
93
  forNewUserOnly?: boolean | undefined;
84
94
  expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
95
+ referringUser?: {
96
+ name?: string | undefined;
97
+ } | undefined;
85
98
  orderLimitPerUser?: number | null | undefined;
86
99
  itemTypes?: ItemType[] | undefined;
87
100
  shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
@@ -118,6 +131,13 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
118
131
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
119
132
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
120
133
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
134
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
135
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ name?: string | undefined;
138
+ }, {
139
+ name?: string | undefined;
140
+ }>>>;
121
141
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
122
142
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
123
143
  _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>]>>;
@@ -154,6 +174,13 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
154
174
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
155
175
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
156
176
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
177
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
178
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ name?: string | undefined;
181
+ }, {
182
+ name?: string | undefined;
183
+ }>>>;
157
184
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
158
185
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
159
186
  _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>]>>;
@@ -190,6 +217,13 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
190
217
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
191
218
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
192
219
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
220
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
221
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
222
+ }, "strip", z.ZodTypeAny, {
223
+ name?: string | undefined;
224
+ }, {
225
+ name?: string | undefined;
226
+ }>>>;
193
227
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
194
228
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
195
229
  _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>]>>;
@@ -232,6 +266,13 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
232
266
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
233
267
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
234
268
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
269
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
270
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ name?: string | undefined;
273
+ }, {
274
+ name?: string | undefined;
275
+ }>>>;
235
276
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
236
277
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
237
278
  _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>]>>;
@@ -268,6 +309,13 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
268
309
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
269
310
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
270
311
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
312
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
313
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ name?: string | undefined;
316
+ }, {
317
+ name?: string | undefined;
318
+ }>>>;
271
319
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
272
320
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
273
321
  _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>]>>;
@@ -304,6 +352,13 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
304
352
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
305
353
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
306
354
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
355
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
356
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ name?: string | undefined;
359
+ }, {
360
+ name?: string | undefined;
361
+ }>>>;
307
362
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
308
363
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
309
364
  _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>]>>;
@@ -1 +1 @@
1
- {"version":3,"file":"custom-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/custom-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,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC1B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCACtB,oBAAoB,mNAChB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACa,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,4BAA4B,EAC5B,kBAAkB,EAClB,oBAAoB,IAAI,8BAA8B,EACtD,wBAAwB,GACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAC7E,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC7D,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"custom-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/custom-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,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC1B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCACtB,oBAAoB,mNAChB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACa,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,4BAA4B,EAC5B,kBAAkB,EAClB,oBAAoB,IAAI,8BAA8B,EACtD,wBAAwB,GACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAC7E,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC7D,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -34,6 +34,13 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
34
34
  forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
35
35
  status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
36
36
  expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
37
+ referringUser: z.ZodOptional<z.ZodObject<{
38
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ name?: string | undefined;
41
+ }, {
42
+ name?: string | undefined;
43
+ }>>;
37
44
  code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
38
45
  orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
39
46
  }, "strict", z.ZodTypeAny, {
@@ -56,6 +63,9 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
56
63
  secondaryCurrencyValue?: number | undefined;
57
64
  secondaryCurrencyMaxDiscountLimit?: number | undefined;
58
65
  secondaryCurrencyMinOrderValue?: number | undefined;
66
+ referringUser?: {
67
+ name?: string | undefined;
68
+ } | undefined;
59
69
  }, {
60
70
  value: number;
61
71
  code: string;
@@ -75,6 +85,9 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
75
85
  secondaryCurrencyMinOrderValue?: number | undefined;
76
86
  forNewUserOnly?: boolean | undefined;
77
87
  expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
88
+ referringUser?: {
89
+ name?: string | undefined;
90
+ } | undefined;
78
91
  orderLimitPerUser?: number | null | undefined;
79
92
  }>, GlobalCouponSchema: z.ZodObject<{
80
93
  couponType: z.ZodOptional<z.ZodLiteral<CouponType.GLOBAL>>;
@@ -106,6 +119,13 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
106
119
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
107
120
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
108
121
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
122
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
123
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ name?: string | undefined;
126
+ }, {
127
+ name?: string | undefined;
128
+ }>>>;
109
129
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
110
130
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
111
131
  _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>]>>;
@@ -139,6 +159,13 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
139
159
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
140
160
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
141
161
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
162
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
163
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ name?: string | undefined;
166
+ }, {
167
+ name?: string | undefined;
168
+ }>>>;
142
169
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
143
170
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
144
171
  _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,6 +199,13 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
172
199
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
173
200
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
174
201
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
202
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
203
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ name?: string | undefined;
206
+ }, {
207
+ name?: string | undefined;
208
+ }>>>;
175
209
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
176
210
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
177
211
  _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>]>>;
@@ -211,6 +245,13 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
211
245
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
212
246
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
213
247
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
248
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
249
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ name?: string | undefined;
252
+ }, {
253
+ name?: string | undefined;
254
+ }>>>;
214
255
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
215
256
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
216
257
  _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>]>>;
@@ -244,6 +285,13 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
244
285
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
245
286
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
246
287
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
288
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
289
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ name?: string | undefined;
292
+ }, {
293
+ name?: string | undefined;
294
+ }>>>;
247
295
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
248
296
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
249
297
  _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>]>>;
@@ -277,6 +325,13 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
277
325
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
278
326
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
279
327
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
328
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
329
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
330
+ }, "strip", z.ZodTypeAny, {
331
+ name?: string | undefined;
332
+ }, {
333
+ name?: string | undefined;
334
+ }>>>;
280
335
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
281
336
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
282
337
  _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>]>>;
@@ -1 +1 @@
1
- {"version":3,"file":"global-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/global-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;AAiB/D;;GAEG;AACH,QAAA,MACa,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC1B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCACtB,oBAAoB,mNAChB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACa,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,4BAA4B,EAC5B,kBAAkB,EAClB,oBAAoB,IAAI,8BAA8B,EACtD,wBAAwB,GACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAC7E,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC7D,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"global-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/global-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;AAiB/D;;GAEG;AACH,QAAA,MACa,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC1B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCACtB,oBAAoB,mNAChB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACa,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,4BAA4B,EAC5B,kBAAkB,EAClB,oBAAoB,IAAI,8BAA8B,EACtD,wBAAwB,GACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAC7E,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC7D,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -37,6 +37,13 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
37
37
  forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
38
38
  status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
39
39
  expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
40
+ referringUser: z.ZodOptional<z.ZodObject<{
41
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ name?: string | undefined;
44
+ }, {
45
+ name?: string | undefined;
46
+ }>>;
40
47
  code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
41
48
  orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
42
49
  }, "strict", z.ZodTypeAny, {
@@ -62,6 +69,9 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
62
69
  secondaryCurrencyValue?: number | undefined;
63
70
  secondaryCurrencyMaxDiscountLimit?: number | undefined;
64
71
  secondaryCurrencyMinOrderValue?: number | undefined;
72
+ referringUser?: {
73
+ name?: string | undefined;
74
+ } | undefined;
65
75
  }, {
66
76
  value: number;
67
77
  code: string;
@@ -82,6 +92,9 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
82
92
  secondaryCurrencyMinOrderValue?: number | undefined;
83
93
  forNewUserOnly?: boolean | undefined;
84
94
  expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
95
+ referringUser?: {
96
+ name?: string | undefined;
97
+ } | undefined;
85
98
  orderLimitPerUser?: number | null | undefined;
86
99
  itemTypes?: ItemType[] | undefined;
87
100
  isShopCoverExpenses?: boolean | undefined;
@@ -118,6 +131,13 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
118
131
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
119
132
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
120
133
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
134
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
135
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ name?: string | undefined;
138
+ }, {
139
+ name?: string | undefined;
140
+ }>>>;
121
141
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
122
142
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
123
143
  _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>]>>;
@@ -154,6 +174,13 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
154
174
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
155
175
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
156
176
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
177
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
178
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ name?: string | undefined;
181
+ }, {
182
+ name?: string | undefined;
183
+ }>>>;
157
184
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
158
185
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
159
186
  _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>]>>;
@@ -190,6 +217,13 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
190
217
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
191
218
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
192
219
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
220
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
221
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
222
+ }, "strip", z.ZodTypeAny, {
223
+ name?: string | undefined;
224
+ }, {
225
+ name?: string | undefined;
226
+ }>>>;
193
227
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
194
228
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
195
229
  _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>]>>;
@@ -232,6 +266,13 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
232
266
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
233
267
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
234
268
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
269
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
270
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ name?: string | undefined;
273
+ }, {
274
+ name?: string | undefined;
275
+ }>>>;
235
276
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
236
277
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
237
278
  _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>]>>;
@@ -268,6 +309,13 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
268
309
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
269
310
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
270
311
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
312
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
313
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ name?: string | undefined;
316
+ }, {
317
+ name?: string | undefined;
318
+ }>>>;
271
319
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
272
320
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
273
321
  _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>]>>;
@@ -304,6 +352,13 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
304
352
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
305
353
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
306
354
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
355
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
356
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ name?: string | undefined;
359
+ }, {
360
+ name?: string | undefined;
361
+ }>>>;
307
362
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
308
363
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
309
364
  _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>]>>;
@@ -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,EAAE,QAAQ,EAAE,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,QAAQ,EAAE,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"}
@@ -37,6 +37,13 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
37
37
  forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
38
38
  status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
39
39
  expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
40
+ referringUser: z.ZodOptional<z.ZodObject<{
41
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ name?: string | undefined;
44
+ }, {
45
+ name?: string | undefined;
46
+ }>>;
40
47
  code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
41
48
  orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
42
49
  }, "strict", z.ZodTypeAny, {
@@ -62,6 +69,9 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
62
69
  secondaryCurrencyValue?: number | undefined;
63
70
  secondaryCurrencyMaxDiscountLimit?: number | undefined;
64
71
  secondaryCurrencyMinOrderValue?: number | undefined;
72
+ referringUser?: {
73
+ name?: string | undefined;
74
+ } | undefined;
65
75
  }, {
66
76
  value: number;
67
77
  code: string;
@@ -82,6 +92,9 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
82
92
  secondaryCurrencyMinOrderValue?: number | undefined;
83
93
  forNewUserOnly?: boolean | undefined;
84
94
  expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
95
+ referringUser?: {
96
+ name?: string | undefined;
97
+ } | undefined;
85
98
  orderLimitPerUser?: number | null | undefined;
86
99
  itemTypes?: ItemType[] | undefined;
87
100
  shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
@@ -118,6 +131,13 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
118
131
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
119
132
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
120
133
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
134
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
135
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ name?: string | undefined;
138
+ }, {
139
+ name?: string | undefined;
140
+ }>>>;
121
141
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
122
142
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
123
143
  _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>]>>;
@@ -154,6 +174,13 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
154
174
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
155
175
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
156
176
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
177
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
178
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ name?: string | undefined;
181
+ }, {
182
+ name?: string | undefined;
183
+ }>>>;
157
184
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
158
185
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
159
186
  _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>]>>;
@@ -190,6 +217,13 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
190
217
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
191
218
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
192
219
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
220
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
221
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
222
+ }, "strip", z.ZodTypeAny, {
223
+ name?: string | undefined;
224
+ }, {
225
+ name?: string | undefined;
226
+ }>>>;
193
227
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
194
228
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
195
229
  _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>]>>;
@@ -232,6 +266,13 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
232
266
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
233
267
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
234
268
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
269
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
270
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ name?: string | undefined;
273
+ }, {
274
+ name?: string | undefined;
275
+ }>>>;
235
276
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
236
277
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
237
278
  _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>]>>;
@@ -268,6 +309,13 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
268
309
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
269
310
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
270
311
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
312
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
313
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ name?: string | undefined;
316
+ }, {
317
+ name?: string | undefined;
318
+ }>>>;
271
319
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
272
320
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
273
321
  _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>]>>;
@@ -304,6 +352,13 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
304
352
  forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
305
353
  status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
306
354
  expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
355
+ referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
356
+ name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ name?: string | undefined;
359
+ }, {
360
+ name?: string | undefined;
361
+ }>>>;
307
362
  code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
308
363
  orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
309
364
  _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>]>>;
@@ -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;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"}