@lyxa.ai/marketing 1.0.65 → 1.0.68

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 (91) hide show
  1. package/dist/lib/modules/coupon/routers/coupon.router.d.ts +159 -10
  2. package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  3. package/dist/lib/modules/coupon/routers/coupon.router.js +28 -0
  4. package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
  5. package/dist/lib/modules/coupon/services/coupon.service.d.ts +28 -3
  6. package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
  7. package/dist/lib/modules/coupon/services/coupon.service.js +18 -2
  8. package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
  9. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
  10. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +11 -14
  11. package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
  12. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts +30 -2
  13. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  14. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +412 -2
  15. package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
  16. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +580 -1
  17. package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  18. package/dist/lib/modules/coupon/validations/coupon.validation.js +48 -1
  19. package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
  20. package/dist/lib/modules/deal-setting/routers/deal-setting.router.d.ts +4 -4
  21. package/dist/lib/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
  22. package/dist/lib/modules/featured-setting/routers/featured-setting.router.d.ts +4 -4
  23. package/dist/lib/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
  24. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
  25. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js +1 -0
  26. package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js.map +1 -1
  27. package/dist/lib/modules/marketing/routers/marketing.router.d.ts +4 -4
  28. package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  29. package/dist/lib/modules/marketing/services/index.d.ts +1 -0
  30. package/dist/lib/modules/marketing/services/index.d.ts.map +1 -1
  31. package/dist/lib/modules/marketing/services/index.js +1 -0
  32. package/dist/lib/modules/marketing/services/index.js.map +1 -1
  33. package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
  34. package/dist/lib/modules/marketing/services/marketing.service.js +34 -27
  35. package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
  36. package/dist/lib/modules/marketing/services/new-user-discount-marketing.service.d.ts +11 -0
  37. package/dist/lib/modules/marketing/services/new-user-discount-marketing.service.d.ts.map +1 -0
  38. package/dist/lib/modules/marketing/services/new-user-discount-marketing.service.js +116 -0
  39. package/dist/lib/modules/marketing/services/new-user-discount-marketing.service.js.map +1 -0
  40. package/dist/lib/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -1
  41. package/dist/lib/modules/marketing/validations/all-marketings.validation.js +3 -0
  42. package/dist/lib/modules/marketing/validations/all-marketings.validation.js.map +1 -1
  43. package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +6 -6
  44. package/dist/lib/modules/marketing/validations/index.d.ts +1 -0
  45. package/dist/lib/modules/marketing/validations/index.d.ts.map +1 -1
  46. package/dist/lib/modules/marketing/validations/index.js +1 -0
  47. package/dist/lib/modules/marketing/validations/index.js.map +1 -1
  48. package/dist/lib/modules/marketing/validations/new-user-discount-marketing.validation.d.ts +677 -0
  49. package/dist/lib/modules/marketing/validations/new-user-discount-marketing.validation.d.ts.map +1 -0
  50. package/dist/lib/modules/marketing/validations/new-user-discount-marketing.validation.js +83 -0
  51. package/dist/lib/modules/marketing/validations/new-user-discount-marketing.validation.js.map +1 -0
  52. package/dist/lib/modules/marketing/validations/spend-to-get-marketing.validation.d.ts.map +1 -1
  53. package/dist/lib/modules/marketing/validations/spend-to-get-marketing.validation.js +30 -0
  54. package/dist/lib/modules/marketing/validations/spend-to-get-marketing.validation.js.map +1 -1
  55. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +4 -4
  56. package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
  57. package/dist/lib/modules/spend-to-get-history/spend-to-get-history.router.d.ts +4 -4
  58. package/dist/lib/modules/spend-to-get-history/spend-to-get-history.router.d.ts.map +1 -1
  59. package/dist/types/modules/coupon/routers/coupon.router.d.ts +159 -10
  60. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  61. package/dist/types/modules/coupon/services/coupon.service.d.ts +28 -3
  62. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  63. package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
  64. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +30 -2
  65. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  66. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +580 -1
  67. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  68. package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts +4 -4
  69. package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
  70. package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts +4 -4
  71. package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
  72. package/dist/types/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
  73. package/dist/types/modules/marketing/routers/marketing.router.d.ts +4 -4
  74. package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  75. package/dist/types/modules/marketing/services/index.d.ts +1 -0
  76. package/dist/types/modules/marketing/services/index.d.ts.map +1 -1
  77. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  78. package/dist/types/modules/marketing/services/new-user-discount-marketing.service.d.ts +20 -0
  79. package/dist/types/modules/marketing/services/new-user-discount-marketing.service.d.ts.map +1 -0
  80. package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -1
  81. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +6 -6
  82. package/dist/types/modules/marketing/validations/index.d.ts +1 -0
  83. package/dist/types/modules/marketing/validations/index.d.ts.map +1 -1
  84. package/dist/types/modules/marketing/validations/new-user-discount-marketing.validation.d.ts +686 -0
  85. package/dist/types/modules/marketing/validations/new-user-discount-marketing.validation.d.ts.map +1 -0
  86. package/dist/types/modules/marketing/validations/spend-to-get-marketing.validation.d.ts.map +1 -1
  87. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +4 -4
  88. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
  89. package/dist/types/modules/spend-to-get-history/spend-to-get-history.router.d.ts +4 -4
  90. package/dist/types/modules/spend-to-get-history/spend-to-get-history.router.d.ts.map +1 -1
  91. package/package.json +2 -7
@@ -0,0 +1,677 @@
1
+ import { z } from 'zod';
2
+ import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
+ import { MarketingType, ValueType } from '@lyxa.ai/core/dist/utilities/enum';
4
+ declare const NewUserDiscountMarketingValidationSchema: z.ZodObject<{
5
+ marketingType: z.ZodLiteral<MarketingType.NEW_USER_DISCOUNT>;
6
+ categories: z.ZodDefault<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>]>, "many">>>;
7
+ isEntireMenu: z.ZodDefault<z.ZodBoolean>;
8
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
9
+ value: z.ZodOptional<z.ZodNumber>;
10
+ products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
11
+ product: 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>]>;
12
+ marketing: 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>]>>;
13
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
14
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
15
+ value: z.ZodOptional<z.ZodNumber>;
16
+ isAppliedByCompany: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ product: import("mongoose").Types.ObjectId;
19
+ value?: number | undefined;
20
+ valueType?: ValueType | null | undefined;
21
+ isAppliedByCompany?: boolean | undefined;
22
+ marketing?: import("mongoose").Types.ObjectId | undefined;
23
+ isBuy1Get1?: boolean | undefined;
24
+ }, {
25
+ product: string | import("mongoose").Types.ObjectId;
26
+ value?: number | undefined;
27
+ valueType?: ValueType | null | undefined;
28
+ isAppliedByCompany?: boolean | undefined;
29
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
30
+ isBuy1Get1?: boolean | undefined;
31
+ }>, "many">>>;
32
+ excludeProducts: z.ZodDefault<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>]>, "many">>>;
33
+ maxDiscountPerOrder: z.ZodDefault<z.ZodNumber>;
34
+ isMaxDiscountPerOrderEnabled: z.ZodDefault<z.ZodBoolean>;
35
+ spendLimit: z.ZodDefault<z.ZodNumber>;
36
+ isSpendLimitEnabled: z.ZodDefault<z.ZodBoolean>;
37
+ 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>]>;
38
+ isAppliedByCompany: z.ZodBoolean;
39
+ duration: z.ZodObject<{
40
+ 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>;
41
+ 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>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ start: Date;
44
+ end?: Date | undefined;
45
+ }, {
46
+ start: string | Date;
47
+ end?: string | Date | undefined;
48
+ }>;
49
+ status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
50
+ pausedAt: z.ZodDefault<z.ZodNullable<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>>>>;
51
+ admin: z.ZodNullable<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>]>>>;
52
+ }, "strict", z.ZodTypeAny, {
53
+ status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
54
+ duration: {
55
+ start: Date;
56
+ end?: Date | undefined;
57
+ };
58
+ spendLimit: number;
59
+ isSpendLimitEnabled: boolean;
60
+ shop: import("mongoose").Types.ObjectId;
61
+ categories: import("mongoose").Types.ObjectId[];
62
+ maxDiscountPerOrder: number;
63
+ isAppliedByCompany: boolean;
64
+ isEntireMenu: boolean;
65
+ isMaxDiscountPerOrderEnabled: boolean;
66
+ pausedAt: Date | null;
67
+ products: {
68
+ product: import("mongoose").Types.ObjectId;
69
+ value?: number | undefined;
70
+ valueType?: ValueType | null | undefined;
71
+ isAppliedByCompany?: boolean | undefined;
72
+ marketing?: import("mongoose").Types.ObjectId | undefined;
73
+ isBuy1Get1?: boolean | undefined;
74
+ }[];
75
+ marketingType: MarketingType.NEW_USER_DISCOUNT;
76
+ excludeProducts: import("mongoose").Types.ObjectId[];
77
+ value?: number | undefined;
78
+ valueType?: ValueType | undefined;
79
+ admin?: import("mongoose").Types.ObjectId | null | undefined;
80
+ }, {
81
+ duration: {
82
+ start: string | Date;
83
+ end?: string | Date | undefined;
84
+ };
85
+ shop: string | import("mongoose").Types.ObjectId;
86
+ isAppliedByCompany: boolean;
87
+ marketingType: MarketingType.NEW_USER_DISCOUNT;
88
+ value?: number | undefined;
89
+ status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
90
+ valueType?: ValueType | undefined;
91
+ spendLimit?: number | undefined;
92
+ isSpendLimitEnabled?: boolean | undefined;
93
+ categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
94
+ admin?: string | import("mongoose").Types.ObjectId | null | undefined;
95
+ maxDiscountPerOrder?: number | undefined;
96
+ isEntireMenu?: boolean | undefined;
97
+ isMaxDiscountPerOrderEnabled?: boolean | undefined;
98
+ pausedAt?: string | Date | null | undefined;
99
+ products?: {
100
+ product: string | import("mongoose").Types.ObjectId;
101
+ value?: number | undefined;
102
+ valueType?: ValueType | null | undefined;
103
+ isAppliedByCompany?: boolean | undefined;
104
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
105
+ isBuy1Get1?: boolean | undefined;
106
+ }[] | undefined;
107
+ excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
108
+ }>, NewUserDiscountMarketingSchema: z.ZodObject<{
109
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.NEW_USER_DISCOUNT>>;
110
+ categories: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
111
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
112
+ valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
113
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
114
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
115
+ product: 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>]>;
116
+ marketing: 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>]>>;
117
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
118
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
119
+ value: z.ZodOptional<z.ZodNumber>;
120
+ isAppliedByCompany: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ product: import("mongoose").Types.ObjectId;
123
+ value?: number | undefined;
124
+ valueType?: ValueType | null | undefined;
125
+ isAppliedByCompany?: boolean | undefined;
126
+ marketing?: import("mongoose").Types.ObjectId | undefined;
127
+ isBuy1Get1?: boolean | undefined;
128
+ }, {
129
+ product: string | import("mongoose").Types.ObjectId;
130
+ value?: number | undefined;
131
+ valueType?: ValueType | null | undefined;
132
+ isAppliedByCompany?: boolean | undefined;
133
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
134
+ isBuy1Get1?: boolean | undefined;
135
+ }>, "many">>>>;
136
+ excludeProducts: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
137
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
138
+ isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
139
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
140
+ isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
141
+ 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>]>>;
142
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
143
+ duration: z.ZodOptional<z.ZodObject<{
144
+ 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>;
145
+ 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>>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ start: Date;
148
+ end?: Date | undefined;
149
+ }, {
150
+ start: string | Date;
151
+ end?: string | Date | undefined;
152
+ }>>;
153
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
154
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<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>>>>>;
155
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
156
+ _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>]>>;
157
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
158
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.NEW_USER_DISCOUNT>>;
159
+ categories: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
160
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
161
+ valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
162
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
163
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
164
+ product: 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>]>;
165
+ marketing: 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>]>>;
166
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
167
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
168
+ value: z.ZodOptional<z.ZodNumber>;
169
+ isAppliedByCompany: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ product: import("mongoose").Types.ObjectId;
172
+ value?: number | undefined;
173
+ valueType?: ValueType | null | undefined;
174
+ isAppliedByCompany?: boolean | undefined;
175
+ marketing?: import("mongoose").Types.ObjectId | undefined;
176
+ isBuy1Get1?: boolean | undefined;
177
+ }, {
178
+ product: string | import("mongoose").Types.ObjectId;
179
+ value?: number | undefined;
180
+ valueType?: ValueType | null | undefined;
181
+ isAppliedByCompany?: boolean | undefined;
182
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
183
+ isBuy1Get1?: boolean | undefined;
184
+ }>, "many">>>>;
185
+ excludeProducts: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
186
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
187
+ isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
188
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
189
+ isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
190
+ 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>]>>;
191
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
192
+ duration: z.ZodOptional<z.ZodObject<{
193
+ 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>;
194
+ 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>>;
195
+ }, "strip", z.ZodTypeAny, {
196
+ start: Date;
197
+ end?: Date | undefined;
198
+ }, {
199
+ start: string | Date;
200
+ end?: string | Date | undefined;
201
+ }>>;
202
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
203
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<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>>>>>;
204
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
205
+ _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>]>>;
206
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
207
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.NEW_USER_DISCOUNT>>;
208
+ categories: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
209
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
210
+ valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
211
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
212
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
213
+ product: 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>]>;
214
+ marketing: 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>]>>;
215
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
216
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
217
+ value: z.ZodOptional<z.ZodNumber>;
218
+ isAppliedByCompany: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ product: import("mongoose").Types.ObjectId;
221
+ value?: number | undefined;
222
+ valueType?: ValueType | null | undefined;
223
+ isAppliedByCompany?: boolean | undefined;
224
+ marketing?: import("mongoose").Types.ObjectId | undefined;
225
+ isBuy1Get1?: boolean | undefined;
226
+ }, {
227
+ product: string | import("mongoose").Types.ObjectId;
228
+ value?: number | undefined;
229
+ valueType?: ValueType | null | undefined;
230
+ isAppliedByCompany?: boolean | undefined;
231
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
232
+ isBuy1Get1?: boolean | undefined;
233
+ }>, "many">>>>;
234
+ excludeProducts: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
235
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
236
+ isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
237
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
238
+ isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
239
+ 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>]>>;
240
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
241
+ duration: z.ZodOptional<z.ZodObject<{
242
+ 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>;
243
+ 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>>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ start: Date;
246
+ end?: Date | undefined;
247
+ }, {
248
+ start: string | Date;
249
+ end?: string | Date | undefined;
250
+ }>>;
251
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
252
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<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>>>>>;
253
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
254
+ _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>]>>;
255
+ }, z.ZodTypeAny, "passthrough">>, NewUserDiscountMarketingIdSchema: 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>]>;
256
+ declare const NewUserDiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject<{
257
+ marketingType: z.ZodLiteral<MarketingType.NEW_USER_DISCOUNT>;
258
+ categories: z.ZodDefault<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>]>, "many">>>;
259
+ isEntireMenu: z.ZodDefault<z.ZodBoolean>;
260
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
261
+ value: z.ZodOptional<z.ZodNumber>;
262
+ products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
263
+ product: 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>]>;
264
+ marketing: 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>]>>;
265
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
266
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
267
+ value: z.ZodOptional<z.ZodNumber>;
268
+ isAppliedByCompany: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ product: import("mongoose").Types.ObjectId;
271
+ value?: number | undefined;
272
+ valueType?: ValueType | null | undefined;
273
+ isAppliedByCompany?: boolean | undefined;
274
+ marketing?: import("mongoose").Types.ObjectId | undefined;
275
+ isBuy1Get1?: boolean | undefined;
276
+ }, {
277
+ product: string | import("mongoose").Types.ObjectId;
278
+ value?: number | undefined;
279
+ valueType?: ValueType | null | undefined;
280
+ isAppliedByCompany?: boolean | undefined;
281
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
282
+ isBuy1Get1?: boolean | undefined;
283
+ }>, "many">>>;
284
+ excludeProducts: z.ZodDefault<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>]>, "many">>>;
285
+ maxDiscountPerOrder: z.ZodDefault<z.ZodNumber>;
286
+ isMaxDiscountPerOrderEnabled: z.ZodDefault<z.ZodBoolean>;
287
+ spendLimit: z.ZodDefault<z.ZodNumber>;
288
+ isSpendLimitEnabled: z.ZodDefault<z.ZodBoolean>;
289
+ 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>]>;
290
+ isAppliedByCompany: z.ZodBoolean;
291
+ duration: z.ZodObject<{
292
+ 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>;
293
+ 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>>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ start: Date;
296
+ end?: Date | undefined;
297
+ }, {
298
+ start: string | Date;
299
+ end?: string | Date | undefined;
300
+ }>;
301
+ status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
302
+ pausedAt: z.ZodDefault<z.ZodNullable<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>>>>;
303
+ admin: z.ZodNullable<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
+ }, "strict", z.ZodTypeAny, {
305
+ status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
306
+ duration: {
307
+ start: Date;
308
+ end?: Date | undefined;
309
+ };
310
+ spendLimit: number;
311
+ isSpendLimitEnabled: boolean;
312
+ shop: import("mongoose").Types.ObjectId;
313
+ categories: import("mongoose").Types.ObjectId[];
314
+ maxDiscountPerOrder: number;
315
+ isAppliedByCompany: boolean;
316
+ isEntireMenu: boolean;
317
+ isMaxDiscountPerOrderEnabled: boolean;
318
+ pausedAt: Date | null;
319
+ products: {
320
+ product: import("mongoose").Types.ObjectId;
321
+ value?: number | undefined;
322
+ valueType?: ValueType | null | undefined;
323
+ isAppliedByCompany?: boolean | undefined;
324
+ marketing?: import("mongoose").Types.ObjectId | undefined;
325
+ isBuy1Get1?: boolean | undefined;
326
+ }[];
327
+ marketingType: MarketingType.NEW_USER_DISCOUNT;
328
+ excludeProducts: import("mongoose").Types.ObjectId[];
329
+ value?: number | undefined;
330
+ valueType?: ValueType | undefined;
331
+ admin?: import("mongoose").Types.ObjectId | null | undefined;
332
+ }, {
333
+ duration: {
334
+ start: string | Date;
335
+ end?: string | Date | undefined;
336
+ };
337
+ shop: string | import("mongoose").Types.ObjectId;
338
+ isAppliedByCompany: boolean;
339
+ marketingType: MarketingType.NEW_USER_DISCOUNT;
340
+ value?: number | undefined;
341
+ status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
342
+ valueType?: ValueType | undefined;
343
+ spendLimit?: number | undefined;
344
+ isSpendLimitEnabled?: boolean | undefined;
345
+ categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
346
+ admin?: string | import("mongoose").Types.ObjectId | null | undefined;
347
+ maxDiscountPerOrder?: number | undefined;
348
+ isEntireMenu?: boolean | undefined;
349
+ isMaxDiscountPerOrderEnabled?: boolean | undefined;
350
+ pausedAt?: string | Date | null | undefined;
351
+ products?: {
352
+ product: string | import("mongoose").Types.ObjectId;
353
+ value?: number | undefined;
354
+ valueType?: ValueType | null | undefined;
355
+ isAppliedByCompany?: boolean | undefined;
356
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
357
+ isBuy1Get1?: boolean | undefined;
358
+ }[] | undefined;
359
+ excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
360
+ }>, {
361
+ status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
362
+ duration: {
363
+ start: Date;
364
+ end?: Date | undefined;
365
+ };
366
+ spendLimit: number;
367
+ isSpendLimitEnabled: boolean;
368
+ shop: import("mongoose").Types.ObjectId;
369
+ categories: import("mongoose").Types.ObjectId[];
370
+ maxDiscountPerOrder: number;
371
+ isAppliedByCompany: boolean;
372
+ isEntireMenu: boolean;
373
+ isMaxDiscountPerOrderEnabled: boolean;
374
+ pausedAt: Date | null;
375
+ products: {
376
+ product: import("mongoose").Types.ObjectId;
377
+ value?: number | undefined;
378
+ valueType?: ValueType | null | undefined;
379
+ isAppliedByCompany?: boolean | undefined;
380
+ marketing?: import("mongoose").Types.ObjectId | undefined;
381
+ isBuy1Get1?: boolean | undefined;
382
+ }[];
383
+ marketingType: MarketingType.NEW_USER_DISCOUNT;
384
+ excludeProducts: import("mongoose").Types.ObjectId[];
385
+ value?: number | undefined;
386
+ valueType?: ValueType | undefined;
387
+ admin?: import("mongoose").Types.ObjectId | null | undefined;
388
+ }, {
389
+ duration: {
390
+ start: string | Date;
391
+ end?: string | Date | undefined;
392
+ };
393
+ shop: string | import("mongoose").Types.ObjectId;
394
+ isAppliedByCompany: boolean;
395
+ marketingType: MarketingType.NEW_USER_DISCOUNT;
396
+ value?: number | undefined;
397
+ status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
398
+ valueType?: ValueType | undefined;
399
+ spendLimit?: number | undefined;
400
+ isSpendLimitEnabled?: boolean | undefined;
401
+ categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
402
+ admin?: string | import("mongoose").Types.ObjectId | null | undefined;
403
+ maxDiscountPerOrder?: number | undefined;
404
+ isEntireMenu?: boolean | undefined;
405
+ isMaxDiscountPerOrderEnabled?: boolean | undefined;
406
+ pausedAt?: string | Date | null | undefined;
407
+ products?: {
408
+ product: string | import("mongoose").Types.ObjectId;
409
+ value?: number | undefined;
410
+ valueType?: ValueType | null | undefined;
411
+ isAppliedByCompany?: boolean | undefined;
412
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
413
+ isBuy1Get1?: boolean | undefined;
414
+ }[] | undefined;
415
+ excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
416
+ }>;
417
+ declare const UpdateNewUserDiscountMarketingSchema: z.ZodEffects<z.ZodObject<{
418
+ [x: string]: z.ZodOptional<z.ZodTypeAny>;
419
+ }, "strict", z.ZodTypeAny, {
420
+ [x: string]: any;
421
+ }, {
422
+ [x: string]: any;
423
+ }>, {
424
+ [x: string]: any;
425
+ }, {
426
+ [x: string]: any;
427
+ }> | z.ZodEffects<z.ZodObject<{
428
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.NEW_USER_DISCOUNT>>;
429
+ categories: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
430
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
431
+ valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
432
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
433
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
434
+ product: 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>]>;
435
+ marketing: 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>]>>;
436
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
437
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
438
+ value: z.ZodOptional<z.ZodNumber>;
439
+ isAppliedByCompany: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ product: import("mongoose").Types.ObjectId;
442
+ value?: number | undefined;
443
+ valueType?: ValueType | null | undefined;
444
+ isAppliedByCompany?: boolean | undefined;
445
+ marketing?: import("mongoose").Types.ObjectId | undefined;
446
+ isBuy1Get1?: boolean | undefined;
447
+ }, {
448
+ product: string | import("mongoose").Types.ObjectId;
449
+ value?: number | undefined;
450
+ valueType?: ValueType | null | undefined;
451
+ isAppliedByCompany?: boolean | undefined;
452
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
453
+ isBuy1Get1?: boolean | undefined;
454
+ }>, "many">>>>;
455
+ excludeProducts: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
456
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
457
+ isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
458
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
459
+ isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
460
+ 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>]>>;
461
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
462
+ duration: z.ZodOptional<z.ZodObject<{
463
+ 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>;
464
+ 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>>;
465
+ }, "strip", z.ZodTypeAny, {
466
+ start: Date;
467
+ end?: Date | undefined;
468
+ }, {
469
+ start: string | Date;
470
+ end?: string | Date | undefined;
471
+ }>>;
472
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
473
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<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>>>>>;
474
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
475
+ _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>]>>;
476
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
477
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.NEW_USER_DISCOUNT>>;
478
+ categories: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
479
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
480
+ valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
481
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
482
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
483
+ product: 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>]>;
484
+ marketing: 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>]>>;
485
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
486
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
487
+ value: z.ZodOptional<z.ZodNumber>;
488
+ isAppliedByCompany: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
489
+ }, "strip", z.ZodTypeAny, {
490
+ product: import("mongoose").Types.ObjectId;
491
+ value?: number | undefined;
492
+ valueType?: ValueType | null | undefined;
493
+ isAppliedByCompany?: boolean | undefined;
494
+ marketing?: import("mongoose").Types.ObjectId | undefined;
495
+ isBuy1Get1?: boolean | undefined;
496
+ }, {
497
+ product: string | import("mongoose").Types.ObjectId;
498
+ value?: number | undefined;
499
+ valueType?: ValueType | null | undefined;
500
+ isAppliedByCompany?: boolean | undefined;
501
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
502
+ isBuy1Get1?: boolean | undefined;
503
+ }>, "many">>>>;
504
+ excludeProducts: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
505
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
506
+ isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
507
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
508
+ isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
509
+ 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>]>>;
510
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
511
+ duration: z.ZodOptional<z.ZodObject<{
512
+ 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>;
513
+ 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>>;
514
+ }, "strip", z.ZodTypeAny, {
515
+ start: Date;
516
+ end?: Date | undefined;
517
+ }, {
518
+ start: string | Date;
519
+ end?: string | Date | undefined;
520
+ }>>;
521
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
522
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<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>>>>>;
523
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
524
+ _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>]>>;
525
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
526
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.NEW_USER_DISCOUNT>>;
527
+ categories: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
528
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
529
+ valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
530
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
531
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
532
+ product: 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>]>;
533
+ marketing: 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>]>>;
534
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
535
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
536
+ value: z.ZodOptional<z.ZodNumber>;
537
+ isAppliedByCompany: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ product: import("mongoose").Types.ObjectId;
540
+ value?: number | undefined;
541
+ valueType?: ValueType | null | undefined;
542
+ isAppliedByCompany?: boolean | undefined;
543
+ marketing?: import("mongoose").Types.ObjectId | undefined;
544
+ isBuy1Get1?: boolean | undefined;
545
+ }, {
546
+ product: string | import("mongoose").Types.ObjectId;
547
+ value?: number | undefined;
548
+ valueType?: ValueType | null | undefined;
549
+ isAppliedByCompany?: boolean | undefined;
550
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
551
+ isBuy1Get1?: boolean | undefined;
552
+ }>, "many">>>>;
553
+ excludeProducts: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
554
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
555
+ isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
556
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
557
+ isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
558
+ 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>]>>;
559
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
560
+ duration: z.ZodOptional<z.ZodObject<{
561
+ 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>;
562
+ 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>>;
563
+ }, "strip", z.ZodTypeAny, {
564
+ start: Date;
565
+ end?: Date | undefined;
566
+ }, {
567
+ start: string | Date;
568
+ end?: string | Date | undefined;
569
+ }>>;
570
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
571
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<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>>>>>;
572
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
573
+ _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>]>>;
574
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
575
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.NEW_USER_DISCOUNT>>;
576
+ categories: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
577
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
578
+ valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
579
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
580
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
581
+ product: 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>]>;
582
+ marketing: 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>]>>;
583
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
584
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
585
+ value: z.ZodOptional<z.ZodNumber>;
586
+ isAppliedByCompany: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
587
+ }, "strip", z.ZodTypeAny, {
588
+ product: import("mongoose").Types.ObjectId;
589
+ value?: number | undefined;
590
+ valueType?: ValueType | null | undefined;
591
+ isAppliedByCompany?: boolean | undefined;
592
+ marketing?: import("mongoose").Types.ObjectId | undefined;
593
+ isBuy1Get1?: boolean | undefined;
594
+ }, {
595
+ product: string | import("mongoose").Types.ObjectId;
596
+ value?: number | undefined;
597
+ valueType?: ValueType | null | undefined;
598
+ isAppliedByCompany?: boolean | undefined;
599
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
600
+ isBuy1Get1?: boolean | undefined;
601
+ }>, "many">>>>;
602
+ excludeProducts: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
603
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
604
+ isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
605
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
606
+ isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
607
+ 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>]>>;
608
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
609
+ duration: z.ZodOptional<z.ZodObject<{
610
+ 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>;
611
+ 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>>;
612
+ }, "strip", z.ZodTypeAny, {
613
+ start: Date;
614
+ end?: Date | undefined;
615
+ }, {
616
+ start: string | Date;
617
+ end?: string | Date | undefined;
618
+ }>>;
619
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
620
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<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>>>>>;
621
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
622
+ _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>]>>;
623
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
624
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.NEW_USER_DISCOUNT>>;
625
+ categories: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
626
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
627
+ valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
628
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
629
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
630
+ product: 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>]>;
631
+ marketing: 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>]>>;
632
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
633
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
634
+ value: z.ZodOptional<z.ZodNumber>;
635
+ isAppliedByCompany: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
636
+ }, "strip", z.ZodTypeAny, {
637
+ product: import("mongoose").Types.ObjectId;
638
+ value?: number | undefined;
639
+ valueType?: ValueType | null | undefined;
640
+ isAppliedByCompany?: boolean | undefined;
641
+ marketing?: import("mongoose").Types.ObjectId | undefined;
642
+ isBuy1Get1?: boolean | undefined;
643
+ }, {
644
+ product: string | import("mongoose").Types.ObjectId;
645
+ value?: number | undefined;
646
+ valueType?: ValueType | null | undefined;
647
+ isAppliedByCompany?: boolean | undefined;
648
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
649
+ isBuy1Get1?: boolean | undefined;
650
+ }>, "many">>>>;
651
+ excludeProducts: z.ZodOptional<z.ZodDefault<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>]>, "many">>>>;
652
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
653
+ isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
654
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
655
+ isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
656
+ 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>]>>;
657
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
658
+ duration: z.ZodOptional<z.ZodObject<{
659
+ 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>;
660
+ 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>>;
661
+ }, "strip", z.ZodTypeAny, {
662
+ start: Date;
663
+ end?: Date | undefined;
664
+ }, {
665
+ start: string | Date;
666
+ end?: string | Date | undefined;
667
+ }>>;
668
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
669
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<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>>>>>;
670
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
671
+ _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>]>>;
672
+ }, z.ZodTypeAny, "passthrough">>;
673
+ export { NewUserDiscountMarketingValidationSchemaRefined as NewUserDiscountMarketingValidationSchema, NewUserDiscountMarketingSchema, NewUserDiscountMarketingIdSchema as NewUserDiscountMarketingIdValidationSchema, UpdateNewUserDiscountMarketingSchema, };
674
+ export type CreateNewUserDiscountMarketingDTO = DTO<typeof NewUserDiscountMarketingValidationSchema>;
675
+ export type NewUserDiscountMarketingDTO = DTO<typeof NewUserDiscountMarketingSchema>;
676
+ export type UpdateNewUserDiscountMarketingDTO = DTO<typeof UpdateNewUserDiscountMarketingSchema>;
677
+ //# sourceMappingURL=new-user-discount-marketing.validation.d.ts.map