@lyxa.ai/marketing 1.0.0 → 1.0.1
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.
- package/dist/types/index.d.ts +1221 -1073
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +1199 -1051
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +8 -27
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +41 -41
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +1159 -1120
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +67 -67
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +57 -57
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts +57 -57
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +57 -57
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts +57 -57
- package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts +7 -7
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +57 -57
- package/dist/types/modules/deal-setting/validations/deal-setting.validation.d.ts +1 -1
- package/dist/types/modules/featured-setting/validations/featured-setting.validation.d.ts +1 -1
- package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts +22 -22
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts +1 -1
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts +18 -18
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts +1 -1
- package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts +1 -1
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +1 -1
- package/dist/types/modules/referral-setting/validations/referral-setting.validation.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
3
3
|
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>;
|
|
4
4
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
5
5
|
value: z.ZodNumber;
|
|
6
|
-
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
6
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
7
7
|
duration: z.ZodEffects<z.ZodObject<{
|
|
8
8
|
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>;
|
|
9
9
|
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>>;
|
|
@@ -20,14 +20,14 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
20
20
|
start: string | Date;
|
|
21
21
|
end?: string | Date | undefined;
|
|
22
22
|
}>;
|
|
23
|
-
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
24
|
-
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
23
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
24
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
25
25
|
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
-
forNewUserOnly: z.ZodDefault<z.ZodBoolean
|
|
27
|
-
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
28
|
-
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
29
|
-
code: z.ZodString
|
|
30
|
-
orderLimitPerUser: z.ZodNullable<z.ZodNumber
|
|
26
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
27
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
28
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
29
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
30
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
31
31
|
}, "strict", z.ZodTypeAny, {
|
|
32
32
|
value: number;
|
|
33
33
|
code: string;
|
|
@@ -53,7 +53,6 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
53
53
|
end?: string | Date | undefined;
|
|
54
54
|
};
|
|
55
55
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
56
|
-
orderLimitPerUser: number | null;
|
|
57
56
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
58
57
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
59
58
|
spendLimit?: number | null | undefined;
|
|
@@ -62,11 +61,12 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
62
61
|
minOrderValue?: number | null | undefined;
|
|
63
62
|
forNewUserOnly?: boolean | undefined;
|
|
64
63
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
64
|
+
orderLimitPerUser?: number | null | undefined;
|
|
65
65
|
}>, z.ZodObject<{
|
|
66
66
|
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>;
|
|
67
67
|
orderLimitPerUser: z.ZodLiteral<1>;
|
|
68
68
|
referralUser: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
69
|
-
code: z.ZodString
|
|
69
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
70
70
|
}, "strict", z.ZodTypeAny, {
|
|
71
71
|
code: string;
|
|
72
72
|
orderLimitPerUser: 1;
|
|
@@ -84,7 +84,7 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
84
84
|
referralCodeUsedOnOrder: 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>]>;
|
|
85
85
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
86
86
|
value: z.ZodNumber;
|
|
87
|
-
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
87
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
88
88
|
duration: z.ZodEffects<z.ZodObject<{
|
|
89
89
|
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>;
|
|
90
90
|
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>>;
|
|
@@ -101,14 +101,14 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
101
101
|
start: string | Date;
|
|
102
102
|
end?: string | Date | undefined;
|
|
103
103
|
}>;
|
|
104
|
-
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
105
|
-
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
104
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
105
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
106
106
|
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
107
|
-
forNewUserOnly: z.ZodDefault<z.ZodBoolean
|
|
108
|
-
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
109
|
-
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
110
|
-
code: z.ZodString
|
|
111
|
-
orderLimitPerUser: z.ZodNullable<z.ZodNumber
|
|
107
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
108
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
109
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
110
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
111
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
112
112
|
}, "strict", z.ZodTypeAny, {
|
|
113
113
|
value: number;
|
|
114
114
|
code: string;
|
|
@@ -138,7 +138,6 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
138
138
|
};
|
|
139
139
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
140
140
|
user: string | import("mongoose").Types.ObjectId;
|
|
141
|
-
orderLimitPerUser: number | null;
|
|
142
141
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
143
142
|
referralCodeUsedBy: string | import("mongoose").Types.ObjectId;
|
|
144
143
|
referralCodeUsedOnOrder: string | import("mongoose").Types.ObjectId;
|
|
@@ -149,6 +148,7 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
149
148
|
minOrderValue?: number | null | undefined;
|
|
150
149
|
forNewUserOnly?: boolean | undefined;
|
|
151
150
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
151
|
+
orderLimitPerUser?: number | null | undefined;
|
|
152
152
|
}>, z.ZodObject<{
|
|
153
153
|
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>;
|
|
154
154
|
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
@@ -156,7 +156,7 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
156
156
|
isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
|
|
157
157
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
158
158
|
value: z.ZodNumber;
|
|
159
|
-
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
159
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
160
160
|
duration: z.ZodEffects<z.ZodObject<{
|
|
161
161
|
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>;
|
|
162
162
|
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>>;
|
|
@@ -173,14 +173,14 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
173
173
|
start: string | Date;
|
|
174
174
|
end?: string | Date | undefined;
|
|
175
175
|
}>;
|
|
176
|
-
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
177
|
-
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
176
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
177
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
178
178
|
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
179
|
-
forNewUserOnly: z.ZodDefault<z.ZodBoolean
|
|
180
|
-
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
181
|
-
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
182
|
-
code: z.ZodString
|
|
183
|
-
orderLimitPerUser: z.ZodNullable<z.ZodNumber
|
|
179
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
180
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
181
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
182
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
183
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
184
184
|
}, "strict", z.ZodTypeAny, {
|
|
185
185
|
value: number;
|
|
186
186
|
code: string;
|
|
@@ -209,7 +209,6 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
209
209
|
end?: string | Date | undefined;
|
|
210
210
|
};
|
|
211
211
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
212
|
-
orderLimitPerUser: number | null;
|
|
213
212
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
214
213
|
shops: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
215
214
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
@@ -219,6 +218,7 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
219
218
|
minOrderValue?: number | null | undefined;
|
|
220
219
|
forNewUserOnly?: boolean | undefined;
|
|
221
220
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
221
|
+
orderLimitPerUser?: number | null | undefined;
|
|
222
222
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
223
223
|
isShopCoverExpenses?: boolean | undefined;
|
|
224
224
|
}>, z.ZodObject<{
|
|
@@ -228,7 +228,7 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
228
228
|
shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
229
229
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
230
230
|
value: z.ZodNumber;
|
|
231
|
-
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
231
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
232
232
|
duration: z.ZodEffects<z.ZodObject<{
|
|
233
233
|
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>;
|
|
234
234
|
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>>;
|
|
@@ -245,14 +245,14 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
245
245
|
start: string | Date;
|
|
246
246
|
end?: string | Date | undefined;
|
|
247
247
|
}>;
|
|
248
|
-
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
249
|
-
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
248
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
249
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
250
250
|
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
251
|
-
forNewUserOnly: z.ZodDefault<z.ZodBoolean
|
|
252
|
-
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
253
|
-
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
254
|
-
code: z.ZodString
|
|
255
|
-
orderLimitPerUser: z.ZodNullable<z.ZodNumber
|
|
251
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
252
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
253
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
254
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
255
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
256
256
|
}, "strict", z.ZodTypeAny, {
|
|
257
257
|
value: number;
|
|
258
258
|
code: string;
|
|
@@ -281,7 +281,6 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
281
281
|
end?: string | Date | undefined;
|
|
282
282
|
};
|
|
283
283
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
284
|
-
orderLimitPerUser: number | null;
|
|
285
284
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
286
285
|
users: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
287
286
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
@@ -291,6 +290,7 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
291
290
|
minOrderValue?: number | null | undefined;
|
|
292
291
|
forNewUserOnly?: boolean | undefined;
|
|
293
292
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
293
|
+
orderLimitPerUser?: number | null | undefined;
|
|
294
294
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
295
295
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
296
296
|
}>, z.ZodObject<{
|
|
@@ -300,7 +300,7 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
300
300
|
shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
301
301
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
302
302
|
value: z.ZodNumber;
|
|
303
|
-
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
303
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
304
304
|
duration: z.ZodEffects<z.ZodObject<{
|
|
305
305
|
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>;
|
|
306
306
|
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>>;
|
|
@@ -317,14 +317,14 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
317
317
|
start: string | Date;
|
|
318
318
|
end?: string | Date | undefined;
|
|
319
319
|
}>;
|
|
320
|
-
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
321
|
-
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
320
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
321
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
322
322
|
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
323
|
-
forNewUserOnly: z.ZodDefault<z.ZodBoolean
|
|
324
|
-
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
325
|
-
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
326
|
-
code: z.ZodString
|
|
327
|
-
orderLimitPerUser: z.ZodNullable<z.ZodNumber
|
|
323
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
324
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
325
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
326
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
327
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
328
328
|
}, "strict", z.ZodTypeAny, {
|
|
329
329
|
value: number;
|
|
330
330
|
code: string;
|
|
@@ -353,7 +353,6 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
353
353
|
end?: string | Date | undefined;
|
|
354
354
|
};
|
|
355
355
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
356
|
-
orderLimitPerUser: number | null;
|
|
357
356
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
358
357
|
influencer: string | import("mongoose").Types.ObjectId;
|
|
359
358
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
@@ -363,6 +362,7 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
363
362
|
minOrderValue?: number | null | undefined;
|
|
364
363
|
forNewUserOnly?: boolean | undefined;
|
|
365
364
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
365
|
+
orderLimitPerUser?: number | null | undefined;
|
|
366
366
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
367
367
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
368
368
|
}>]>;
|
|
@@ -370,7 +370,7 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
370
370
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
371
371
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
372
372
|
value: z.ZodOptional<z.ZodNumber>;
|
|
373
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
373
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
374
374
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
375
375
|
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>;
|
|
376
376
|
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>>;
|
|
@@ -387,20 +387,20 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
387
387
|
start: string | Date;
|
|
388
388
|
end?: string | Date | undefined;
|
|
389
389
|
}>>;
|
|
390
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
391
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
390
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
391
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
392
392
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
393
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
394
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
395
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
396
|
-
code: z.ZodOptional<z.ZodString
|
|
397
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
393
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
394
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
395
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
396
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
397
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
398
398
|
_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>]>>;
|
|
399
399
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
400
400
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
401
401
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
402
402
|
value: z.ZodOptional<z.ZodNumber>;
|
|
403
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
403
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
404
404
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
405
405
|
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>;
|
|
406
406
|
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>>;
|
|
@@ -417,20 +417,20 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
417
417
|
start: string | Date;
|
|
418
418
|
end?: string | Date | undefined;
|
|
419
419
|
}>>;
|
|
420
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
421
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
420
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
421
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
422
422
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
423
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
424
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
425
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
426
|
-
code: z.ZodOptional<z.ZodString
|
|
427
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
423
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
424
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
425
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
426
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
427
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
428
428
|
_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>]>>;
|
|
429
429
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
430
430
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
431
431
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
432
432
|
value: z.ZodOptional<z.ZodNumber>;
|
|
433
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
433
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
434
434
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
435
435
|
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>;
|
|
436
436
|
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>>;
|
|
@@ -447,32 +447,32 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
447
447
|
start: string | Date;
|
|
448
448
|
end?: string | Date | undefined;
|
|
449
449
|
}>>;
|
|
450
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
451
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
450
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
451
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
452
452
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
453
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
454
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
455
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
456
|
-
code: z.ZodOptional<z.ZodString
|
|
457
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
453
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
454
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
455
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
456
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
457
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
458
458
|
_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>]>>;
|
|
459
459
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
460
460
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
461
461
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
462
462
|
referralUser: 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>]>>;
|
|
463
|
-
code: z.ZodOptional<z.ZodString
|
|
463
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
464
464
|
_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>]>>;
|
|
465
465
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
466
466
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
467
467
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
468
468
|
referralUser: 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>]>>;
|
|
469
|
-
code: z.ZodOptional<z.ZodString
|
|
469
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
470
470
|
_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>]>>;
|
|
471
471
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
472
472
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
473
473
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
474
474
|
referralUser: 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
|
-
code: z.ZodOptional<z.ZodString
|
|
475
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
476
476
|
_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>]>>;
|
|
477
477
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
478
478
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -481,7 +481,7 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
481
481
|
referralCodeUsedOnOrder: 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>]>>;
|
|
482
482
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
483
483
|
value: z.ZodOptional<z.ZodNumber>;
|
|
484
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
484
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
485
485
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
486
486
|
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>;
|
|
487
487
|
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>>;
|
|
@@ -498,14 +498,14 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
498
498
|
start: string | Date;
|
|
499
499
|
end?: string | Date | undefined;
|
|
500
500
|
}>>;
|
|
501
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
502
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
501
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
502
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
503
503
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
504
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
505
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
506
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
507
|
-
code: z.ZodOptional<z.ZodString
|
|
508
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
504
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
505
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
506
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
507
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
508
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
509
509
|
_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>]>>;
|
|
510
510
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
511
511
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -514,7 +514,7 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
514
514
|
referralCodeUsedOnOrder: 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>]>>;
|
|
515
515
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
516
516
|
value: z.ZodOptional<z.ZodNumber>;
|
|
517
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
517
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
518
518
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
519
519
|
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>;
|
|
520
520
|
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>>;
|
|
@@ -531,14 +531,14 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
531
531
|
start: string | Date;
|
|
532
532
|
end?: string | Date | undefined;
|
|
533
533
|
}>>;
|
|
534
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
535
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
534
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
535
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
536
536
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
537
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
538
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
539
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
540
|
-
code: z.ZodOptional<z.ZodString
|
|
541
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
537
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
538
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
539
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
540
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
541
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
542
542
|
_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>]>>;
|
|
543
543
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
544
544
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -547,7 +547,7 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
547
547
|
referralCodeUsedOnOrder: 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>]>>;
|
|
548
548
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
549
549
|
value: z.ZodOptional<z.ZodNumber>;
|
|
550
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
550
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
551
551
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
552
552
|
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>;
|
|
553
553
|
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>>;
|
|
@@ -564,14 +564,14 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
564
564
|
start: string | Date;
|
|
565
565
|
end?: string | Date | undefined;
|
|
566
566
|
}>>;
|
|
567
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
568
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
567
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
568
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
569
569
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
570
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
571
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
572
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
573
|
-
code: z.ZodOptional<z.ZodString
|
|
574
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
570
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
571
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
572
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
573
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
574
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
575
575
|
_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>]>>;
|
|
576
576
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
577
577
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -580,7 +580,7 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
580
580
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
581
581
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
582
582
|
value: z.ZodOptional<z.ZodNumber>;
|
|
583
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
583
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
584
584
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
585
585
|
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>;
|
|
586
586
|
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>>;
|
|
@@ -597,14 +597,14 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
597
597
|
start: string | Date;
|
|
598
598
|
end?: string | Date | undefined;
|
|
599
599
|
}>>;
|
|
600
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
601
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
600
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
601
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
602
602
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
603
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
604
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
605
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
606
|
-
code: z.ZodOptional<z.ZodString
|
|
607
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
603
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
604
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
605
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
606
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
607
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
608
608
|
_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>]>>;
|
|
609
609
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
610
610
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -613,7 +613,7 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
613
613
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
614
614
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
615
615
|
value: z.ZodOptional<z.ZodNumber>;
|
|
616
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
616
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
617
617
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
618
618
|
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>;
|
|
619
619
|
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>>;
|
|
@@ -630,14 +630,14 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
630
630
|
start: string | Date;
|
|
631
631
|
end?: string | Date | undefined;
|
|
632
632
|
}>>;
|
|
633
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
634
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
633
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
634
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
635
635
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
636
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
637
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
638
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
639
|
-
code: z.ZodOptional<z.ZodString
|
|
640
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
636
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
637
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
638
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
639
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
640
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
641
641
|
_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>]>>;
|
|
642
642
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
643
643
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -646,7 +646,7 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
646
646
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
647
647
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
648
648
|
value: z.ZodOptional<z.ZodNumber>;
|
|
649
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
649
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
650
650
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
651
651
|
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>;
|
|
652
652
|
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>>;
|
|
@@ -663,14 +663,14 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
663
663
|
start: string | Date;
|
|
664
664
|
end?: string | Date | undefined;
|
|
665
665
|
}>>;
|
|
666
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
667
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
666
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
667
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
668
668
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
669
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
670
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
671
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
672
|
-
code: z.ZodOptional<z.ZodString
|
|
673
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
669
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
670
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
671
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
672
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
673
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
674
674
|
_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>]>>;
|
|
675
675
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
676
676
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -679,7 +679,7 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
679
679
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
680
680
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
681
681
|
value: z.ZodOptional<z.ZodNumber>;
|
|
682
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
682
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
683
683
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
684
684
|
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>;
|
|
685
685
|
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>>;
|
|
@@ -696,14 +696,14 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
696
696
|
start: string | Date;
|
|
697
697
|
end?: string | Date | undefined;
|
|
698
698
|
}>>;
|
|
699
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
700
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
699
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
700
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
701
701
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
702
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
703
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
704
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
705
|
-
code: z.ZodOptional<z.ZodString
|
|
706
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
702
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
703
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
704
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
705
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
706
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
707
707
|
_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>]>>;
|
|
708
708
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
709
709
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -712,7 +712,7 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
712
712
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
713
713
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
714
714
|
value: z.ZodOptional<z.ZodNumber>;
|
|
715
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
715
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
716
716
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
717
717
|
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>;
|
|
718
718
|
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>>;
|
|
@@ -729,14 +729,14 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
729
729
|
start: string | Date;
|
|
730
730
|
end?: string | Date | undefined;
|
|
731
731
|
}>>;
|
|
732
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
733
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
732
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
733
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
734
734
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
735
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
736
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
737
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
738
|
-
code: z.ZodOptional<z.ZodString
|
|
739
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
735
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
736
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
737
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
738
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
739
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
740
740
|
_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>]>>;
|
|
741
741
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
742
742
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -745,7 +745,7 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
745
745
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
746
746
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
747
747
|
value: z.ZodOptional<z.ZodNumber>;
|
|
748
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
748
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
749
749
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
750
750
|
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>;
|
|
751
751
|
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>>;
|
|
@@ -762,14 +762,14 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
762
762
|
start: string | Date;
|
|
763
763
|
end?: string | Date | undefined;
|
|
764
764
|
}>>;
|
|
765
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
766
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
765
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
766
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
767
767
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
768
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
769
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
770
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
771
|
-
code: z.ZodOptional<z.ZodString
|
|
772
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
768
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
769
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
770
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
771
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
772
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
773
773
|
_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>]>>;
|
|
774
774
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
775
775
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -778,7 +778,7 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
778
778
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
779
779
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
780
780
|
value: z.ZodOptional<z.ZodNumber>;
|
|
781
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
781
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
782
782
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
783
783
|
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>;
|
|
784
784
|
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>>;
|
|
@@ -795,14 +795,14 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
795
795
|
start: string | Date;
|
|
796
796
|
end?: string | Date | undefined;
|
|
797
797
|
}>>;
|
|
798
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
799
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
798
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
799
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
800
800
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
801
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
802
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
803
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
804
|
-
code: z.ZodOptional<z.ZodString
|
|
805
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
801
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
802
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
803
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
804
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
805
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
806
806
|
_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>]>>;
|
|
807
807
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
808
808
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -811,7 +811,7 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
811
811
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
812
812
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
813
813
|
value: z.ZodOptional<z.ZodNumber>;
|
|
814
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
814
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
815
815
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
816
816
|
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>;
|
|
817
817
|
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>>;
|
|
@@ -828,14 +828,14 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
828
828
|
start: string | Date;
|
|
829
829
|
end?: string | Date | undefined;
|
|
830
830
|
}>>;
|
|
831
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
832
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
831
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
832
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
833
833
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
834
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
835
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
836
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
837
|
-
code: z.ZodOptional<z.ZodString
|
|
838
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
834
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
835
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
836
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
837
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
838
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
839
839
|
_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>]>>;
|
|
840
840
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
841
841
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -844,7 +844,7 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
844
844
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
845
845
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
846
846
|
value: z.ZodOptional<z.ZodNumber>;
|
|
847
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
847
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
848
848
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
849
849
|
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>;
|
|
850
850
|
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>>;
|
|
@@ -861,560 +861,599 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
861
861
|
start: string | Date;
|
|
862
862
|
end?: string | Date | undefined;
|
|
863
863
|
}>>;
|
|
864
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
865
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
864
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
865
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
866
866
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
867
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
868
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
869
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
870
|
-
code: z.ZodOptional<z.ZodString
|
|
871
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
867
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
868
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
869
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
870
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
871
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
872
872
|
_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>]>>;
|
|
873
873
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
874
|
-
export declare const AllCouponsUpdateSchema: z.
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
}>, {
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
}, {
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
}, "
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
874
|
+
export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
875
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
876
|
+
data: z.ZodUnion<[z.ZodObject<{
|
|
877
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>;
|
|
878
|
+
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
879
|
+
value: z.ZodNumber;
|
|
880
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
881
|
+
duration: z.ZodEffects<z.ZodObject<{
|
|
882
|
+
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>;
|
|
883
|
+
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>>;
|
|
884
|
+
}, "strip", z.ZodTypeAny, {
|
|
885
|
+
start: Date;
|
|
886
|
+
end?: Date | undefined;
|
|
887
|
+
}, {
|
|
888
|
+
start: string | Date;
|
|
889
|
+
end?: string | Date | undefined;
|
|
890
|
+
}>, {
|
|
891
|
+
start: Date;
|
|
892
|
+
end?: Date | undefined;
|
|
893
|
+
}, {
|
|
894
|
+
start: string | Date;
|
|
895
|
+
end?: string | Date | undefined;
|
|
896
|
+
}>;
|
|
897
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
898
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
899
|
+
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
900
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
901
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
902
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
903
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
904
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
905
|
+
}, "strict", z.ZodTypeAny, {
|
|
906
|
+
value: number;
|
|
907
|
+
code: string;
|
|
908
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
909
|
+
duration: {
|
|
910
|
+
start: Date;
|
|
911
|
+
end?: Date | undefined;
|
|
912
|
+
};
|
|
913
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
914
|
+
spendLimit: number | null;
|
|
915
|
+
maxDiscountLimit: number | null;
|
|
916
|
+
totalOrderLimit: number | null;
|
|
917
|
+
minOrderValue: number | null;
|
|
918
|
+
forNewUserOnly: boolean;
|
|
919
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
920
|
+
orderLimitPerUser: number | null;
|
|
921
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
922
|
+
}, {
|
|
923
|
+
value: number;
|
|
924
|
+
code: string;
|
|
925
|
+
duration: {
|
|
926
|
+
start: string | Date;
|
|
927
|
+
end?: string | Date | undefined;
|
|
928
|
+
};
|
|
929
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
930
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
931
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
932
|
+
spendLimit?: number | null | undefined;
|
|
933
|
+
maxDiscountLimit?: number | null | undefined;
|
|
934
|
+
totalOrderLimit?: number | null | undefined;
|
|
935
|
+
minOrderValue?: number | null | undefined;
|
|
936
|
+
forNewUserOnly?: boolean | undefined;
|
|
937
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
938
|
+
orderLimitPerUser?: number | null | undefined;
|
|
939
|
+
}>, z.ZodObject<{
|
|
940
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>;
|
|
941
|
+
orderLimitPerUser: z.ZodLiteral<1>;
|
|
942
|
+
referralUser: 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>]>;
|
|
943
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
944
|
+
}, "strict", z.ZodTypeAny, {
|
|
945
|
+
code: string;
|
|
946
|
+
orderLimitPerUser: 1;
|
|
947
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
948
|
+
referralUser: import("mongoose").Types.ObjectId;
|
|
949
|
+
}, {
|
|
950
|
+
code: string;
|
|
951
|
+
orderLimitPerUser: 1;
|
|
952
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
953
|
+
referralUser: string | import("mongoose").Types.ObjectId;
|
|
954
|
+
}>, z.ZodObject<{
|
|
955
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>;
|
|
956
|
+
user: 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>]>;
|
|
957
|
+
referralCodeUsedBy: 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>]>;
|
|
958
|
+
referralCodeUsedOnOrder: 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>]>;
|
|
959
|
+
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
960
|
+
value: z.ZodNumber;
|
|
961
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
962
|
+
duration: z.ZodEffects<z.ZodObject<{
|
|
963
|
+
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>;
|
|
964
|
+
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>>;
|
|
965
|
+
}, "strip", z.ZodTypeAny, {
|
|
966
|
+
start: Date;
|
|
967
|
+
end?: Date | undefined;
|
|
968
|
+
}, {
|
|
969
|
+
start: string | Date;
|
|
970
|
+
end?: string | Date | undefined;
|
|
971
|
+
}>, {
|
|
972
|
+
start: Date;
|
|
973
|
+
end?: Date | undefined;
|
|
974
|
+
}, {
|
|
975
|
+
start: string | Date;
|
|
976
|
+
end?: string | Date | undefined;
|
|
977
|
+
}>;
|
|
978
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
979
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
980
|
+
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
981
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
982
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
983
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
984
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
985
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
986
|
+
}, "strict", z.ZodTypeAny, {
|
|
987
|
+
value: number;
|
|
988
|
+
code: string;
|
|
989
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
990
|
+
duration: {
|
|
991
|
+
start: Date;
|
|
992
|
+
end?: Date | undefined;
|
|
993
|
+
};
|
|
994
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
995
|
+
spendLimit: number | null;
|
|
996
|
+
user: import("mongoose").Types.ObjectId;
|
|
997
|
+
maxDiscountLimit: number | null;
|
|
998
|
+
totalOrderLimit: number | null;
|
|
999
|
+
minOrderValue: number | null;
|
|
1000
|
+
forNewUserOnly: boolean;
|
|
1001
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
1002
|
+
orderLimitPerUser: number | null;
|
|
1003
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
1004
|
+
referralCodeUsedBy: import("mongoose").Types.ObjectId;
|
|
1005
|
+
referralCodeUsedOnOrder: import("mongoose").Types.ObjectId;
|
|
1006
|
+
}, {
|
|
1007
|
+
value: number;
|
|
1008
|
+
code: string;
|
|
1009
|
+
duration: {
|
|
1010
|
+
start: string | Date;
|
|
1011
|
+
end?: string | Date | undefined;
|
|
1012
|
+
};
|
|
1013
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1014
|
+
user: string | import("mongoose").Types.ObjectId;
|
|
1015
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
1016
|
+
referralCodeUsedBy: string | import("mongoose").Types.ObjectId;
|
|
1017
|
+
referralCodeUsedOnOrder: string | import("mongoose").Types.ObjectId;
|
|
1018
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1019
|
+
spendLimit?: number | null | undefined;
|
|
1020
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1021
|
+
totalOrderLimit?: number | null | undefined;
|
|
1022
|
+
minOrderValue?: number | null | undefined;
|
|
1023
|
+
forNewUserOnly?: boolean | undefined;
|
|
1024
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1025
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1026
|
+
}>, z.ZodObject<{
|
|
1027
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>;
|
|
1028
|
+
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
1029
|
+
shops: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">;
|
|
1030
|
+
isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
|
|
1031
|
+
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
1032
|
+
value: z.ZodNumber;
|
|
1033
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1034
|
+
duration: z.ZodEffects<z.ZodObject<{
|
|
1035
|
+
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>;
|
|
1036
|
+
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>>;
|
|
1037
|
+
}, "strip", z.ZodTypeAny, {
|
|
1038
|
+
start: Date;
|
|
1039
|
+
end?: Date | undefined;
|
|
1040
|
+
}, {
|
|
1041
|
+
start: string | Date;
|
|
1042
|
+
end?: string | Date | undefined;
|
|
1043
|
+
}>, {
|
|
1044
|
+
start: Date;
|
|
1045
|
+
end?: Date | undefined;
|
|
1046
|
+
}, {
|
|
1047
|
+
start: string | Date;
|
|
1048
|
+
end?: string | Date | undefined;
|
|
1049
|
+
}>;
|
|
1050
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1051
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1052
|
+
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1053
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1054
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
1055
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
1056
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1057
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1058
|
+
}, "strict", z.ZodTypeAny, {
|
|
1059
|
+
value: number;
|
|
1060
|
+
code: string;
|
|
1061
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
1062
|
+
duration: {
|
|
1063
|
+
start: Date;
|
|
1064
|
+
end?: Date | undefined;
|
|
1065
|
+
};
|
|
1066
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1067
|
+
spendLimit: number | null;
|
|
1068
|
+
maxDiscountLimit: number | null;
|
|
1069
|
+
totalOrderLimit: number | null;
|
|
1070
|
+
minOrderValue: number | null;
|
|
1071
|
+
forNewUserOnly: boolean;
|
|
1072
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
1073
|
+
orderLimitPerUser: number | null;
|
|
1074
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
1075
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
1076
|
+
shops: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
1077
|
+
isShopCoverExpenses: boolean;
|
|
1078
|
+
}, {
|
|
1079
|
+
value: number;
|
|
1080
|
+
code: string;
|
|
1081
|
+
duration: {
|
|
1082
|
+
start: string | Date;
|
|
1083
|
+
end?: string | Date | undefined;
|
|
1084
|
+
};
|
|
1085
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1086
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
1087
|
+
shops: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
1088
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1089
|
+
spendLimit?: number | null | undefined;
|
|
1090
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1091
|
+
totalOrderLimit?: number | null | undefined;
|
|
1092
|
+
minOrderValue?: number | null | undefined;
|
|
1093
|
+
forNewUserOnly?: boolean | undefined;
|
|
1094
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1095
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1096
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1097
|
+
isShopCoverExpenses?: boolean | undefined;
|
|
1098
|
+
}>, z.ZodObject<{
|
|
1099
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>;
|
|
1100
|
+
users: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">;
|
|
1101
|
+
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
1102
|
+
shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
1103
|
+
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
1104
|
+
value: z.ZodNumber;
|
|
1105
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1106
|
+
duration: z.ZodEffects<z.ZodObject<{
|
|
1107
|
+
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>;
|
|
1108
|
+
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>>;
|
|
1109
|
+
}, "strip", z.ZodTypeAny, {
|
|
1110
|
+
start: Date;
|
|
1111
|
+
end?: Date | undefined;
|
|
1112
|
+
}, {
|
|
1113
|
+
start: string | Date;
|
|
1114
|
+
end?: string | Date | undefined;
|
|
1115
|
+
}>, {
|
|
1116
|
+
start: Date;
|
|
1117
|
+
end?: Date | undefined;
|
|
1118
|
+
}, {
|
|
1119
|
+
start: string | Date;
|
|
1120
|
+
end?: string | Date | undefined;
|
|
1121
|
+
}>;
|
|
1122
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1123
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1124
|
+
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1125
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1126
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
1127
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
1128
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1129
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1130
|
+
}, "strict", z.ZodTypeAny, {
|
|
1131
|
+
value: number;
|
|
1132
|
+
code: string;
|
|
1133
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
1134
|
+
duration: {
|
|
1135
|
+
start: Date;
|
|
1136
|
+
end?: Date | undefined;
|
|
1137
|
+
};
|
|
1138
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1139
|
+
spendLimit: number | null;
|
|
1140
|
+
maxDiscountLimit: number | null;
|
|
1141
|
+
totalOrderLimit: number | null;
|
|
1142
|
+
minOrderValue: number | null;
|
|
1143
|
+
forNewUserOnly: boolean;
|
|
1144
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
1145
|
+
orderLimitPerUser: number | null;
|
|
1146
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
1147
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
1148
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
1149
|
+
users: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
1150
|
+
}, {
|
|
1151
|
+
value: number;
|
|
1152
|
+
code: string;
|
|
1153
|
+
duration: {
|
|
1154
|
+
start: string | Date;
|
|
1155
|
+
end?: string | Date | undefined;
|
|
1156
|
+
};
|
|
1157
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1158
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
1159
|
+
users: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
1160
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1161
|
+
spendLimit?: number | null | undefined;
|
|
1162
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1163
|
+
totalOrderLimit?: number | null | undefined;
|
|
1164
|
+
minOrderValue?: number | null | undefined;
|
|
1165
|
+
forNewUserOnly?: boolean | undefined;
|
|
1166
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1167
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1168
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1169
|
+
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1170
|
+
}>, z.ZodObject<{
|
|
1171
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>;
|
|
1172
|
+
influencer: 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>]>;
|
|
1173
|
+
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
1174
|
+
shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
1175
|
+
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
1176
|
+
value: z.ZodNumber;
|
|
1177
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1178
|
+
duration: z.ZodEffects<z.ZodObject<{
|
|
1179
|
+
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>;
|
|
1180
|
+
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>>;
|
|
1181
|
+
}, "strip", z.ZodTypeAny, {
|
|
1182
|
+
start: Date;
|
|
1183
|
+
end?: Date | undefined;
|
|
1184
|
+
}, {
|
|
1185
|
+
start: string | Date;
|
|
1186
|
+
end?: string | Date | undefined;
|
|
1187
|
+
}>, {
|
|
1188
|
+
start: Date;
|
|
1189
|
+
end?: Date | undefined;
|
|
1190
|
+
}, {
|
|
1191
|
+
start: string | Date;
|
|
1192
|
+
end?: string | Date | undefined;
|
|
1193
|
+
}>;
|
|
1194
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1195
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1196
|
+
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1197
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1198
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
1199
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
1200
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1201
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1202
|
+
}, "strict", z.ZodTypeAny, {
|
|
1203
|
+
value: number;
|
|
1204
|
+
code: string;
|
|
1205
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
1206
|
+
duration: {
|
|
1207
|
+
start: Date;
|
|
1208
|
+
end?: Date | undefined;
|
|
1209
|
+
};
|
|
1210
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1211
|
+
spendLimit: number | null;
|
|
1212
|
+
maxDiscountLimit: number | null;
|
|
1213
|
+
totalOrderLimit: number | null;
|
|
1214
|
+
minOrderValue: number | null;
|
|
1215
|
+
forNewUserOnly: boolean;
|
|
1216
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
1217
|
+
orderLimitPerUser: number | null;
|
|
1218
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
1219
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
1220
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
1221
|
+
influencer: import("mongoose").Types.ObjectId;
|
|
1222
|
+
}, {
|
|
1223
|
+
value: number;
|
|
1224
|
+
code: string;
|
|
1225
|
+
duration: {
|
|
1226
|
+
start: string | Date;
|
|
1227
|
+
end?: string | Date | undefined;
|
|
1228
|
+
};
|
|
1229
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1230
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
1231
|
+
influencer: string | import("mongoose").Types.ObjectId;
|
|
1232
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1233
|
+
spendLimit?: number | null | undefined;
|
|
1234
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1235
|
+
totalOrderLimit?: number | null | undefined;
|
|
1236
|
+
minOrderValue?: number | null | undefined;
|
|
1237
|
+
forNewUserOnly?: boolean | undefined;
|
|
1238
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1239
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1240
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1241
|
+
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1242
|
+
}>]>;
|
|
1243
|
+
}, "strip", z.ZodTypeAny, {
|
|
1244
|
+
_id: import("mongoose").Types.ObjectId;
|
|
1245
|
+
data: {
|
|
1246
|
+
value: number;
|
|
1247
|
+
code: string;
|
|
1248
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
1249
|
+
duration: {
|
|
1250
|
+
start: Date;
|
|
1251
|
+
end?: Date | undefined;
|
|
1252
|
+
};
|
|
1253
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1254
|
+
spendLimit: number | null;
|
|
1255
|
+
maxDiscountLimit: number | null;
|
|
1256
|
+
totalOrderLimit: number | null;
|
|
1257
|
+
minOrderValue: number | null;
|
|
1258
|
+
forNewUserOnly: boolean;
|
|
1259
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
1260
|
+
orderLimitPerUser: number | null;
|
|
1261
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
1262
|
+
} | {
|
|
1263
|
+
code: string;
|
|
1264
|
+
orderLimitPerUser: 1;
|
|
1265
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
1266
|
+
referralUser: import("mongoose").Types.ObjectId;
|
|
1267
|
+
} | {
|
|
1268
|
+
value: number;
|
|
1269
|
+
code: string;
|
|
1270
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
1271
|
+
duration: {
|
|
1272
|
+
start: Date;
|
|
1273
|
+
end?: Date | undefined;
|
|
1274
|
+
};
|
|
1275
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1276
|
+
spendLimit: number | null;
|
|
1277
|
+
user: import("mongoose").Types.ObjectId;
|
|
1278
|
+
maxDiscountLimit: number | null;
|
|
1279
|
+
totalOrderLimit: number | null;
|
|
1280
|
+
minOrderValue: number | null;
|
|
1281
|
+
forNewUserOnly: boolean;
|
|
1282
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
1283
|
+
orderLimitPerUser: number | null;
|
|
1284
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
1285
|
+
referralCodeUsedBy: import("mongoose").Types.ObjectId;
|
|
1286
|
+
referralCodeUsedOnOrder: import("mongoose").Types.ObjectId;
|
|
1287
|
+
} | {
|
|
1288
|
+
value: number;
|
|
1289
|
+
code: string;
|
|
1290
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
1291
|
+
duration: {
|
|
1292
|
+
start: Date;
|
|
1293
|
+
end?: Date | undefined;
|
|
1294
|
+
};
|
|
1295
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1296
|
+
spendLimit: number | null;
|
|
1297
|
+
maxDiscountLimit: number | null;
|
|
1298
|
+
totalOrderLimit: number | null;
|
|
1299
|
+
minOrderValue: number | null;
|
|
1300
|
+
forNewUserOnly: boolean;
|
|
1301
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
1302
|
+
orderLimitPerUser: number | null;
|
|
1303
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
1304
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
1305
|
+
shops: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
1306
|
+
isShopCoverExpenses: boolean;
|
|
1307
|
+
} | {
|
|
1308
|
+
value: number;
|
|
1309
|
+
code: string;
|
|
1310
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
1311
|
+
duration: {
|
|
1312
|
+
start: Date;
|
|
1313
|
+
end?: Date | undefined;
|
|
1314
|
+
};
|
|
1315
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1316
|
+
spendLimit: number | null;
|
|
1317
|
+
maxDiscountLimit: number | null;
|
|
1318
|
+
totalOrderLimit: number | null;
|
|
1319
|
+
minOrderValue: number | null;
|
|
1320
|
+
forNewUserOnly: boolean;
|
|
1321
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
1322
|
+
orderLimitPerUser: number | null;
|
|
1323
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
1324
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
1325
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
1326
|
+
users: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
1327
|
+
} | {
|
|
1328
|
+
value: number;
|
|
1329
|
+
code: string;
|
|
1330
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
1331
|
+
duration: {
|
|
1332
|
+
start: Date;
|
|
1333
|
+
end?: Date | undefined;
|
|
1334
|
+
};
|
|
1335
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1336
|
+
spendLimit: number | null;
|
|
1337
|
+
maxDiscountLimit: number | null;
|
|
1338
|
+
totalOrderLimit: number | null;
|
|
1339
|
+
minOrderValue: number | null;
|
|
1340
|
+
forNewUserOnly: boolean;
|
|
1341
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
1342
|
+
orderLimitPerUser: number | null;
|
|
1343
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
1344
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
1345
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
1346
|
+
influencer: import("mongoose").Types.ObjectId;
|
|
1347
|
+
};
|
|
1313
1348
|
}, {
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1349
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
1350
|
+
data: {
|
|
1351
|
+
value: number;
|
|
1352
|
+
code: string;
|
|
1353
|
+
duration: {
|
|
1354
|
+
start: string | Date;
|
|
1355
|
+
end?: string | Date | undefined;
|
|
1356
|
+
};
|
|
1357
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1358
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
1359
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1360
|
+
spendLimit?: number | null | undefined;
|
|
1361
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1362
|
+
totalOrderLimit?: number | null | undefined;
|
|
1363
|
+
minOrderValue?: number | null | undefined;
|
|
1364
|
+
forNewUserOnly?: boolean | undefined;
|
|
1365
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1366
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1367
|
+
} | {
|
|
1368
|
+
code: string;
|
|
1369
|
+
orderLimitPerUser: 1;
|
|
1370
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
1371
|
+
referralUser: string | import("mongoose").Types.ObjectId;
|
|
1372
|
+
} | {
|
|
1373
|
+
value: number;
|
|
1374
|
+
code: string;
|
|
1375
|
+
duration: {
|
|
1376
|
+
start: string | Date;
|
|
1377
|
+
end?: string | Date | undefined;
|
|
1378
|
+
};
|
|
1379
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1380
|
+
user: string | import("mongoose").Types.ObjectId;
|
|
1381
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
1382
|
+
referralCodeUsedBy: string | import("mongoose").Types.ObjectId;
|
|
1383
|
+
referralCodeUsedOnOrder: string | import("mongoose").Types.ObjectId;
|
|
1384
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1385
|
+
spendLimit?: number | null | undefined;
|
|
1386
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1387
|
+
totalOrderLimit?: number | null | undefined;
|
|
1388
|
+
minOrderValue?: number | null | undefined;
|
|
1389
|
+
forNewUserOnly?: boolean | undefined;
|
|
1390
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1391
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1392
|
+
} | {
|
|
1393
|
+
value: number;
|
|
1394
|
+
code: string;
|
|
1395
|
+
duration: {
|
|
1396
|
+
start: string | Date;
|
|
1397
|
+
end?: string | Date | undefined;
|
|
1398
|
+
};
|
|
1399
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1400
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
1401
|
+
shops: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
1402
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1403
|
+
spendLimit?: number | null | undefined;
|
|
1404
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1405
|
+
totalOrderLimit?: number | null | undefined;
|
|
1406
|
+
minOrderValue?: number | null | undefined;
|
|
1407
|
+
forNewUserOnly?: boolean | undefined;
|
|
1408
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1409
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1410
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1411
|
+
isShopCoverExpenses?: boolean | undefined;
|
|
1412
|
+
} | {
|
|
1413
|
+
value: number;
|
|
1414
|
+
code: string;
|
|
1415
|
+
duration: {
|
|
1416
|
+
start: string | Date;
|
|
1417
|
+
end?: string | Date | undefined;
|
|
1418
|
+
};
|
|
1419
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1420
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
1421
|
+
users: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
1422
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1423
|
+
spendLimit?: number | null | undefined;
|
|
1424
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1425
|
+
totalOrderLimit?: number | null | undefined;
|
|
1426
|
+
minOrderValue?: number | null | undefined;
|
|
1427
|
+
forNewUserOnly?: boolean | undefined;
|
|
1428
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1429
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1430
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1431
|
+
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1432
|
+
} | {
|
|
1433
|
+
value: number;
|
|
1434
|
+
code: string;
|
|
1435
|
+
duration: {
|
|
1436
|
+
start: string | Date;
|
|
1437
|
+
end?: string | Date | undefined;
|
|
1438
|
+
};
|
|
1439
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1440
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
1441
|
+
influencer: string | import("mongoose").Types.ObjectId;
|
|
1442
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1443
|
+
spendLimit?: number | null | undefined;
|
|
1444
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1445
|
+
totalOrderLimit?: number | null | undefined;
|
|
1446
|
+
minOrderValue?: number | null | undefined;
|
|
1447
|
+
forNewUserOnly?: boolean | undefined;
|
|
1448
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1449
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1450
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1451
|
+
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1452
|
+
};
|
|
1453
|
+
}>;
|
|
1415
1454
|
export declare const CouponResponseSchema: z.ZodObject<{
|
|
1416
1455
|
success: z.ZodBoolean;
|
|
1417
|
-
message: z.ZodString
|
|
1456
|
+
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1418
1457
|
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1419
1458
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
1420
1459
|
page: z.ZodNumber;
|
|
@@ -1436,7 +1475,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1436
1475
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
1437
1476
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1438
1477
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1439
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1478
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1440
1479
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1441
1480
|
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>;
|
|
1442
1481
|
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>>;
|
|
@@ -1453,20 +1492,20 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1453
1492
|
start: string | Date;
|
|
1454
1493
|
end?: string | Date | undefined;
|
|
1455
1494
|
}>>;
|
|
1456
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1457
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1495
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1496
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1458
1497
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1459
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1460
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1461
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1462
|
-
code: z.ZodOptional<z.ZodString
|
|
1463
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1498
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1499
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1500
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1501
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1502
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1464
1503
|
_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>]>>;
|
|
1465
1504
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1466
1505
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
1467
1506
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1468
1507
|
referralUser: 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>]>>;
|
|
1469
|
-
code: z.ZodOptional<z.ZodString
|
|
1508
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1470
1509
|
_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>]>>;
|
|
1471
1510
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1472
1511
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -1475,7 +1514,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1475
1514
|
referralCodeUsedOnOrder: 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>]>>;
|
|
1476
1515
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1477
1516
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1478
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1517
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1479
1518
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1480
1519
|
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>;
|
|
1481
1520
|
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>>;
|
|
@@ -1492,14 +1531,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1492
1531
|
start: string | Date;
|
|
1493
1532
|
end?: string | Date | undefined;
|
|
1494
1533
|
}>>;
|
|
1495
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1496
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1534
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1535
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1497
1536
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1498
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1499
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1500
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1501
|
-
code: z.ZodOptional<z.ZodString
|
|
1502
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1537
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1538
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1539
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1540
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1541
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1503
1542
|
_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>]>>;
|
|
1504
1543
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1505
1544
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -1508,7 +1547,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1508
1547
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1509
1548
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1510
1549
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1511
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1550
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1512
1551
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1513
1552
|
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>;
|
|
1514
1553
|
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>>;
|
|
@@ -1525,14 +1564,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1525
1564
|
start: string | Date;
|
|
1526
1565
|
end?: string | Date | undefined;
|
|
1527
1566
|
}>>;
|
|
1528
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1529
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1567
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1568
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1530
1569
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1531
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1532
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1533
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1534
|
-
code: z.ZodOptional<z.ZodString
|
|
1535
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1570
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1571
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1572
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1573
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1574
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1536
1575
|
_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>]>>;
|
|
1537
1576
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1538
1577
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -1541,7 +1580,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1541
1580
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
1542
1581
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1543
1582
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1544
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1583
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1545
1584
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1546
1585
|
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>;
|
|
1547
1586
|
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>>;
|
|
@@ -1558,14 +1597,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1558
1597
|
start: string | Date;
|
|
1559
1598
|
end?: string | Date | undefined;
|
|
1560
1599
|
}>>;
|
|
1561
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1562
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1600
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1601
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1563
1602
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1564
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1565
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1566
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1567
|
-
code: z.ZodOptional<z.ZodString
|
|
1568
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1603
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1604
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1605
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1606
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1607
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1569
1608
|
_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>]>>;
|
|
1570
1609
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1571
1610
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -1574,7 +1613,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1574
1613
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
1575
1614
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1576
1615
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1577
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1616
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1578
1617
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1579
1618
|
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>;
|
|
1580
1619
|
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>>;
|
|
@@ -1591,20 +1630,20 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1591
1630
|
start: string | Date;
|
|
1592
1631
|
end?: string | Date | undefined;
|
|
1593
1632
|
}>>;
|
|
1594
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1595
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1633
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1634
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1596
1635
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1597
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1598
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1599
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1600
|
-
code: z.ZodOptional<z.ZodString
|
|
1601
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1636
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1637
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1638
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1639
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1640
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1602
1641
|
_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>]>>;
|
|
1603
1642
|
}, z.ZodTypeAny, "passthrough">, z.ZodTypeDef, z.objectInputType<{
|
|
1604
1643
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
1605
1644
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1606
1645
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1607
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1646
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1608
1647
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1609
1648
|
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>;
|
|
1610
1649
|
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>>;
|
|
@@ -1621,20 +1660,20 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1621
1660
|
start: string | Date;
|
|
1622
1661
|
end?: string | Date | undefined;
|
|
1623
1662
|
}>>;
|
|
1624
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1625
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1663
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1664
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1626
1665
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1627
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1628
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1629
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1630
|
-
code: z.ZodOptional<z.ZodString
|
|
1631
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1666
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1667
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1668
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1669
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1670
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1632
1671
|
_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>]>>;
|
|
1633
1672
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1634
1673
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
1635
1674
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1636
1675
|
referralUser: 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>]>>;
|
|
1637
|
-
code: z.ZodOptional<z.ZodString
|
|
1676
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1638
1677
|
_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>]>>;
|
|
1639
1678
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1640
1679
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -1643,7 +1682,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1643
1682
|
referralCodeUsedOnOrder: 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>]>>;
|
|
1644
1683
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1645
1684
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1646
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1685
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1647
1686
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1648
1687
|
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>;
|
|
1649
1688
|
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>>;
|
|
@@ -1660,14 +1699,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1660
1699
|
start: string | Date;
|
|
1661
1700
|
end?: string | Date | undefined;
|
|
1662
1701
|
}>>;
|
|
1663
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1664
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1702
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1703
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1665
1704
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1666
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1667
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1668
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1669
|
-
code: z.ZodOptional<z.ZodString
|
|
1670
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1705
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1706
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1707
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1708
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1709
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1671
1710
|
_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>]>>;
|
|
1672
1711
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1673
1712
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -1676,7 +1715,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1676
1715
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1677
1716
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1678
1717
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1679
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1718
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1680
1719
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1681
1720
|
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>;
|
|
1682
1721
|
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>>;
|
|
@@ -1693,14 +1732,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1693
1732
|
start: string | Date;
|
|
1694
1733
|
end?: string | Date | undefined;
|
|
1695
1734
|
}>>;
|
|
1696
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1697
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1735
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1736
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1698
1737
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1699
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1700
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1701
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1702
|
-
code: z.ZodOptional<z.ZodString
|
|
1703
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1738
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1739
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1740
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1741
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1742
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1704
1743
|
_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>]>>;
|
|
1705
1744
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1706
1745
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -1709,7 +1748,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1709
1748
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
1710
1749
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1711
1750
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1712
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1751
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1713
1752
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1714
1753
|
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>;
|
|
1715
1754
|
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>>;
|
|
@@ -1726,14 +1765,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1726
1765
|
start: string | Date;
|
|
1727
1766
|
end?: string | Date | undefined;
|
|
1728
1767
|
}>>;
|
|
1729
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1730
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1768
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1769
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1731
1770
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1732
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1733
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1734
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1735
|
-
code: z.ZodOptional<z.ZodString
|
|
1736
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1771
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1772
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1773
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1774
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1775
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1737
1776
|
_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>]>>;
|
|
1738
1777
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1739
1778
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -1742,7 +1781,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1742
1781
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
1743
1782
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1744
1783
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1745
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1784
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1746
1785
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1747
1786
|
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>;
|
|
1748
1787
|
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>>;
|
|
@@ -1759,14 +1798,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1759
1798
|
start: string | Date;
|
|
1760
1799
|
end?: string | Date | undefined;
|
|
1761
1800
|
}>>;
|
|
1762
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1763
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1801
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1802
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1764
1803
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1765
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1766
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1767
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1768
|
-
code: z.ZodOptional<z.ZodString
|
|
1769
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1804
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1805
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1806
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1807
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1808
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1770
1809
|
_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>]>>;
|
|
1771
1810
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1772
1811
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1774,7 +1813,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1774
1813
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
1775
1814
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1776
1815
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1777
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1816
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1778
1817
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1779
1818
|
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>;
|
|
1780
1819
|
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>>;
|
|
@@ -1791,20 +1830,20 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1791
1830
|
start: string | Date;
|
|
1792
1831
|
end?: string | Date | undefined;
|
|
1793
1832
|
}>>;
|
|
1794
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1795
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1833
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1834
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1796
1835
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1797
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1798
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1799
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1800
|
-
code: z.ZodOptional<z.ZodString
|
|
1801
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1836
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1837
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1838
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1839
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1840
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1802
1841
|
_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>]>>;
|
|
1803
1842
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1804
1843
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
1805
1844
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1806
1845
|
referralUser: 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>]>>;
|
|
1807
|
-
code: z.ZodOptional<z.ZodString
|
|
1846
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1808
1847
|
_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>]>>;
|
|
1809
1848
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1810
1849
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -1813,7 +1852,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1813
1852
|
referralCodeUsedOnOrder: 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>]>>;
|
|
1814
1853
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1815
1854
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1816
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1855
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1817
1856
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1818
1857
|
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>;
|
|
1819
1858
|
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>>;
|
|
@@ -1830,14 +1869,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1830
1869
|
start: string | Date;
|
|
1831
1870
|
end?: string | Date | undefined;
|
|
1832
1871
|
}>>;
|
|
1833
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1834
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1872
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1873
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1835
1874
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1836
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1837
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1838
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1839
|
-
code: z.ZodOptional<z.ZodString
|
|
1840
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1875
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1876
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1877
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1878
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1879
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1841
1880
|
_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>]>>;
|
|
1842
1881
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1843
1882
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -1846,7 +1885,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1846
1885
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1847
1886
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1848
1887
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1849
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1888
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1850
1889
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1851
1890
|
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>;
|
|
1852
1891
|
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>>;
|
|
@@ -1863,14 +1902,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1863
1902
|
start: string | Date;
|
|
1864
1903
|
end?: string | Date | undefined;
|
|
1865
1904
|
}>>;
|
|
1866
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1867
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1905
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1906
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1868
1907
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1869
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1870
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1871
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1872
|
-
code: z.ZodOptional<z.ZodString
|
|
1873
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1908
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1909
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1910
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1911
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1912
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1874
1913
|
_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>]>>;
|
|
1875
1914
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1876
1915
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -1879,7 +1918,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1879
1918
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
1880
1919
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1881
1920
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1882
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1921
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1883
1922
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1884
1923
|
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>;
|
|
1885
1924
|
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>>;
|
|
@@ -1896,14 +1935,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1896
1935
|
start: string | Date;
|
|
1897
1936
|
end?: string | Date | undefined;
|
|
1898
1937
|
}>>;
|
|
1899
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1900
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1938
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1939
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1901
1940
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1902
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1903
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1904
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1905
|
-
code: z.ZodOptional<z.ZodString
|
|
1906
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1941
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1942
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1943
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1944
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1945
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1907
1946
|
_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>]>>;
|
|
1908
1947
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1909
1948
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -1912,7 +1951,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1912
1951
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
1913
1952
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1914
1953
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1915
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1954
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1916
1955
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1917
1956
|
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>;
|
|
1918
1957
|
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>>;
|
|
@@ -1929,14 +1968,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1929
1968
|
start: string | Date;
|
|
1930
1969
|
end?: string | Date | undefined;
|
|
1931
1970
|
}>>;
|
|
1932
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1933
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1971
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1972
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1934
1973
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1935
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1936
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1937
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1938
|
-
code: z.ZodOptional<z.ZodString
|
|
1939
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
1974
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1975
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1976
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1977
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1978
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1940
1979
|
_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>]>>;
|
|
1941
1980
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
1942
1981
|
metadata?: {
|
|
@@ -1950,7 +1989,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1950
1989
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
1951
1990
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1952
1991
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1953
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1992
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1954
1993
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1955
1994
|
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>;
|
|
1956
1995
|
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>>;
|
|
@@ -1967,20 +2006,20 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1967
2006
|
start: string | Date;
|
|
1968
2007
|
end?: string | Date | undefined;
|
|
1969
2008
|
}>>;
|
|
1970
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
1971
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2009
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2010
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1972
2011
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1973
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
1974
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
1975
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
1976
|
-
code: z.ZodOptional<z.ZodString
|
|
1977
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2012
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2013
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2014
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2015
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2016
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1978
2017
|
_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>]>>;
|
|
1979
2018
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1980
2019
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
1981
2020
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1982
2021
|
referralUser: 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>]>>;
|
|
1983
|
-
code: z.ZodOptional<z.ZodString
|
|
2022
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1984
2023
|
_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>]>>;
|
|
1985
2024
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
1986
2025
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -1989,7 +2028,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
1989
2028
|
referralCodeUsedOnOrder: 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>]>>;
|
|
1990
2029
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
1991
2030
|
value: z.ZodOptional<z.ZodNumber>;
|
|
1992
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2031
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1993
2032
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1994
2033
|
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>;
|
|
1995
2034
|
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>>;
|
|
@@ -2006,14 +2045,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2006
2045
|
start: string | Date;
|
|
2007
2046
|
end?: string | Date | undefined;
|
|
2008
2047
|
}>>;
|
|
2009
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2010
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2048
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2049
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2011
2050
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2012
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2013
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2014
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2015
|
-
code: z.ZodOptional<z.ZodString
|
|
2016
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2051
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2052
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2053
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2054
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2055
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2017
2056
|
_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>]>>;
|
|
2018
2057
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2019
2058
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -2022,7 +2061,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2022
2061
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2023
2062
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2024
2063
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2025
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2064
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2026
2065
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2027
2066
|
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>;
|
|
2028
2067
|
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>>;
|
|
@@ -2039,14 +2078,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2039
2078
|
start: string | Date;
|
|
2040
2079
|
end?: string | Date | undefined;
|
|
2041
2080
|
}>>;
|
|
2042
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2043
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2081
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2082
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2044
2083
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2045
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2046
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2047
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2048
|
-
code: z.ZodOptional<z.ZodString
|
|
2049
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2084
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2085
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2086
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2087
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2088
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2050
2089
|
_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>]>>;
|
|
2051
2090
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2052
2091
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -2055,7 +2094,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2055
2094
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2056
2095
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2057
2096
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2058
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2097
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2059
2098
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2060
2099
|
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>;
|
|
2061
2100
|
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>>;
|
|
@@ -2072,14 +2111,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2072
2111
|
start: string | Date;
|
|
2073
2112
|
end?: string | Date | undefined;
|
|
2074
2113
|
}>>;
|
|
2075
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2076
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2114
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2115
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2077
2116
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2078
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2079
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2080
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2081
|
-
code: z.ZodOptional<z.ZodString
|
|
2082
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2117
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2118
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2119
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2120
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2121
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2083
2122
|
_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>]>>;
|
|
2084
2123
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2085
2124
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -2088,7 +2127,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2088
2127
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2089
2128
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2090
2129
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2091
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2130
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2092
2131
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2093
2132
|
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>;
|
|
2094
2133
|
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>>;
|
|
@@ -2105,14 +2144,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2105
2144
|
start: string | Date;
|
|
2106
2145
|
end?: string | Date | undefined;
|
|
2107
2146
|
}>>;
|
|
2108
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2109
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2147
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2148
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2110
2149
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2111
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2112
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2113
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2114
|
-
code: z.ZodOptional<z.ZodString
|
|
2115
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2150
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2151
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2152
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2153
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2154
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2116
2155
|
_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>]>>;
|
|
2117
2156
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
2118
2157
|
metadata?: {
|
|
@@ -2125,7 +2164,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2125
2164
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
2126
2165
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2127
2166
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2128
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2167
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2129
2168
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2130
2169
|
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>;
|
|
2131
2170
|
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>>;
|
|
@@ -2142,20 +2181,20 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2142
2181
|
start: string | Date;
|
|
2143
2182
|
end?: string | Date | undefined;
|
|
2144
2183
|
}>>;
|
|
2145
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2146
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2184
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2185
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2147
2186
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2148
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2149
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2150
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2151
|
-
code: z.ZodOptional<z.ZodString
|
|
2152
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2187
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2188
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2189
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2190
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2191
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2153
2192
|
_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>]>>;
|
|
2154
2193
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2155
2194
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
2156
2195
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2157
2196
|
referralUser: 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>]>>;
|
|
2158
|
-
code: z.ZodOptional<z.ZodString
|
|
2197
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2159
2198
|
_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>]>>;
|
|
2160
2199
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2161
2200
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -2164,7 +2203,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2164
2203
|
referralCodeUsedOnOrder: 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>]>>;
|
|
2165
2204
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2166
2205
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2167
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2206
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2168
2207
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2169
2208
|
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>;
|
|
2170
2209
|
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>>;
|
|
@@ -2181,14 +2220,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2181
2220
|
start: string | Date;
|
|
2182
2221
|
end?: string | Date | undefined;
|
|
2183
2222
|
}>>;
|
|
2184
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2185
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2223
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2224
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2186
2225
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2187
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2188
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2189
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2190
|
-
code: z.ZodOptional<z.ZodString
|
|
2191
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2226
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2227
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2228
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2229
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2230
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2192
2231
|
_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>]>>;
|
|
2193
2232
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2194
2233
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -2197,7 +2236,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2197
2236
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2198
2237
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2199
2238
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2200
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2239
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2201
2240
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2202
2241
|
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>;
|
|
2203
2242
|
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>>;
|
|
@@ -2214,14 +2253,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2214
2253
|
start: string | Date;
|
|
2215
2254
|
end?: string | Date | undefined;
|
|
2216
2255
|
}>>;
|
|
2217
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2218
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2256
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2257
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2219
2258
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2220
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2221
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2222
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2223
|
-
code: z.ZodOptional<z.ZodString
|
|
2224
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2259
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2260
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2261
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2262
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2263
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2225
2264
|
_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>]>>;
|
|
2226
2265
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2227
2266
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -2230,7 +2269,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2230
2269
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2231
2270
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2232
2271
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2233
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2272
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2234
2273
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2235
2274
|
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>;
|
|
2236
2275
|
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>>;
|
|
@@ -2247,14 +2286,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2247
2286
|
start: string | Date;
|
|
2248
2287
|
end?: string | Date | undefined;
|
|
2249
2288
|
}>>;
|
|
2250
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2251
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2289
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2290
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2252
2291
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2253
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2254
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2255
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2256
|
-
code: z.ZodOptional<z.ZodString
|
|
2257
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2292
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2293
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2294
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2295
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2296
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2258
2297
|
_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>]>>;
|
|
2259
2298
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2260
2299
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -2263,7 +2302,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2263
2302
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2264
2303
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2265
2304
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2266
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2305
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2267
2306
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2268
2307
|
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>;
|
|
2269
2308
|
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>>;
|
|
@@ -2280,20 +2319,20 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2280
2319
|
start: string | Date;
|
|
2281
2320
|
end?: string | Date | undefined;
|
|
2282
2321
|
}>>;
|
|
2283
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2284
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2322
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2323
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2285
2324
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2286
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2287
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2288
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2289
|
-
code: z.ZodOptional<z.ZodString
|
|
2290
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2325
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2326
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2327
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2328
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2329
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2291
2330
|
_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>]>>;
|
|
2292
2331
|
}, z.ZodTypeAny, "passthrough">, z.ZodTypeDef, z.objectInputType<{
|
|
2293
2332
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
2294
2333
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2295
2334
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2296
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2335
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2297
2336
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2298
2337
|
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>;
|
|
2299
2338
|
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>>;
|
|
@@ -2310,20 +2349,20 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2310
2349
|
start: string | Date;
|
|
2311
2350
|
end?: string | Date | undefined;
|
|
2312
2351
|
}>>;
|
|
2313
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2314
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2352
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2353
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2315
2354
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2316
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2317
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2318
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2319
|
-
code: z.ZodOptional<z.ZodString
|
|
2320
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2355
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2356
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2357
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2358
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2359
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2321
2360
|
_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>]>>;
|
|
2322
2361
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2323
2362
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
2324
2363
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2325
2364
|
referralUser: 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>]>>;
|
|
2326
|
-
code: z.ZodOptional<z.ZodString
|
|
2365
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2327
2366
|
_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>]>>;
|
|
2328
2367
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2329
2368
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -2332,7 +2371,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2332
2371
|
referralCodeUsedOnOrder: 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>]>>;
|
|
2333
2372
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2334
2373
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2335
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2374
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2336
2375
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2337
2376
|
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>;
|
|
2338
2377
|
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>>;
|
|
@@ -2349,14 +2388,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2349
2388
|
start: string | Date;
|
|
2350
2389
|
end?: string | Date | undefined;
|
|
2351
2390
|
}>>;
|
|
2352
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2353
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2391
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2392
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2354
2393
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2355
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2356
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2357
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2358
|
-
code: z.ZodOptional<z.ZodString
|
|
2359
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2394
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2395
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2396
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2397
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2398
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2360
2399
|
_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>]>>;
|
|
2361
2400
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2362
2401
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -2365,7 +2404,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2365
2404
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2366
2405
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2367
2406
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2368
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2407
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2369
2408
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2370
2409
|
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>;
|
|
2371
2410
|
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>>;
|
|
@@ -2382,14 +2421,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2382
2421
|
start: string | Date;
|
|
2383
2422
|
end?: string | Date | undefined;
|
|
2384
2423
|
}>>;
|
|
2385
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2386
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2424
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2425
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2387
2426
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2388
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2389
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2390
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2391
|
-
code: z.ZodOptional<z.ZodString
|
|
2392
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2427
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2428
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2429
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2430
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2431
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2393
2432
|
_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>]>>;
|
|
2394
2433
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2395
2434
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -2398,7 +2437,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2398
2437
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2399
2438
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2400
2439
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2401
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2440
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2402
2441
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2403
2442
|
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>;
|
|
2404
2443
|
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>>;
|
|
@@ -2415,14 +2454,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2415
2454
|
start: string | Date;
|
|
2416
2455
|
end?: string | Date | undefined;
|
|
2417
2456
|
}>>;
|
|
2418
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2419
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2457
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2458
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2420
2459
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2421
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2422
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2423
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2424
|
-
code: z.ZodOptional<z.ZodString
|
|
2425
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2460
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2461
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2462
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2463
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2464
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2426
2465
|
_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>]>>;
|
|
2427
2466
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2428
2467
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -2431,7 +2470,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2431
2470
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2432
2471
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2433
2472
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2434
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2473
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2435
2474
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2436
2475
|
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>;
|
|
2437
2476
|
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>>;
|
|
@@ -2448,14 +2487,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2448
2487
|
start: string | Date;
|
|
2449
2488
|
end?: string | Date | undefined;
|
|
2450
2489
|
}>>;
|
|
2451
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2452
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2490
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2491
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2453
2492
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2454
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2455
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2456
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2457
|
-
code: z.ZodOptional<z.ZodString
|
|
2458
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2493
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2494
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2495
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2496
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2497
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2459
2498
|
_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>]>>;
|
|
2460
2499
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
2461
2500
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2465,7 +2504,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2465
2504
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
2466
2505
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2467
2506
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2468
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2507
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2469
2508
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2470
2509
|
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>;
|
|
2471
2510
|
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>>;
|
|
@@ -2482,20 +2521,20 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2482
2521
|
start: string | Date;
|
|
2483
2522
|
end?: string | Date | undefined;
|
|
2484
2523
|
}>>;
|
|
2485
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2486
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2524
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2525
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2487
2526
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2488
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2489
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2490
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2491
|
-
code: z.ZodOptional<z.ZodString
|
|
2492
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2527
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2528
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2529
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2530
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2531
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2493
2532
|
_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>]>>;
|
|
2494
2533
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2495
2534
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
2496
2535
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2497
2536
|
referralUser: 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>]>>;
|
|
2498
|
-
code: z.ZodOptional<z.ZodString
|
|
2537
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2499
2538
|
_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>]>>;
|
|
2500
2539
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2501
2540
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -2504,7 +2543,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2504
2543
|
referralCodeUsedOnOrder: 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>]>>;
|
|
2505
2544
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2506
2545
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2507
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2546
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2508
2547
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2509
2548
|
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>;
|
|
2510
2549
|
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>>;
|
|
@@ -2521,14 +2560,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2521
2560
|
start: string | Date;
|
|
2522
2561
|
end?: string | Date | undefined;
|
|
2523
2562
|
}>>;
|
|
2524
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2525
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2563
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2564
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2526
2565
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2527
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2528
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2529
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2530
|
-
code: z.ZodOptional<z.ZodString
|
|
2531
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2566
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2567
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2568
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2569
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2570
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2532
2571
|
_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>]>>;
|
|
2533
2572
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2534
2573
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -2537,7 +2576,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2537
2576
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2538
2577
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2539
2578
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2540
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2579
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2541
2580
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2542
2581
|
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>;
|
|
2543
2582
|
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>>;
|
|
@@ -2554,14 +2593,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2554
2593
|
start: string | Date;
|
|
2555
2594
|
end?: string | Date | undefined;
|
|
2556
2595
|
}>>;
|
|
2557
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2558
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2596
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2597
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2559
2598
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2560
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2561
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2562
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2563
|
-
code: z.ZodOptional<z.ZodString
|
|
2564
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2599
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2600
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2601
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2602
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2603
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2565
2604
|
_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>]>>;
|
|
2566
2605
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2567
2606
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -2570,7 +2609,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2570
2609
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2571
2610
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2572
2611
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2573
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2612
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2574
2613
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2575
2614
|
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>;
|
|
2576
2615
|
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>>;
|
|
@@ -2587,14 +2626,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2587
2626
|
start: string | Date;
|
|
2588
2627
|
end?: string | Date | undefined;
|
|
2589
2628
|
}>>;
|
|
2590
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2591
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2629
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2630
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2592
2631
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2593
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2594
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2595
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2596
|
-
code: z.ZodOptional<z.ZodString
|
|
2597
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2632
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2633
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2634
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2635
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2636
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2598
2637
|
_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>]>>;
|
|
2599
2638
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2600
2639
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -2603,7 +2642,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2603
2642
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2604
2643
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2605
2644
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2606
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2645
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2607
2646
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2608
2647
|
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>;
|
|
2609
2648
|
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>>;
|
|
@@ -2620,21 +2659,21 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2620
2659
|
start: string | Date;
|
|
2621
2660
|
end?: string | Date | undefined;
|
|
2622
2661
|
}>>;
|
|
2623
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2624
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2662
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2663
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2625
2664
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2626
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2627
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2628
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2629
|
-
code: z.ZodOptional<z.ZodString
|
|
2630
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2665
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2666
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2667
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2668
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2669
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2631
2670
|
_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>]>>;
|
|
2632
2671
|
}, z.ZodTypeAny, "passthrough"> | {
|
|
2633
2672
|
documents: (z.objectInputType<{
|
|
2634
2673
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
2635
2674
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2636
2675
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2637
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2676
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2638
2677
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2639
2678
|
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>;
|
|
2640
2679
|
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>>;
|
|
@@ -2651,20 +2690,20 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2651
2690
|
start: string | Date;
|
|
2652
2691
|
end?: string | Date | undefined;
|
|
2653
2692
|
}>>;
|
|
2654
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2655
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2693
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2694
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2656
2695
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2657
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2658
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2659
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2660
|
-
code: z.ZodOptional<z.ZodString
|
|
2661
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2696
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2697
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2698
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2699
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2700
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2662
2701
|
_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>]>>;
|
|
2663
2702
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2664
2703
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
2665
2704
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2666
2705
|
referralUser: 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>]>>;
|
|
2667
|
-
code: z.ZodOptional<z.ZodString
|
|
2706
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2668
2707
|
_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>]>>;
|
|
2669
2708
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2670
2709
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -2673,7 +2712,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2673
2712
|
referralCodeUsedOnOrder: 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>]>>;
|
|
2674
2713
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2675
2714
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2676
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2715
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2677
2716
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2678
2717
|
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>;
|
|
2679
2718
|
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>>;
|
|
@@ -2690,14 +2729,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2690
2729
|
start: string | Date;
|
|
2691
2730
|
end?: string | Date | undefined;
|
|
2692
2731
|
}>>;
|
|
2693
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2694
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2732
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2733
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2695
2734
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2696
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2697
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2698
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2699
|
-
code: z.ZodOptional<z.ZodString
|
|
2700
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2735
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2736
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2737
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2738
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2739
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2701
2740
|
_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>]>>;
|
|
2702
2741
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2703
2742
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -2706,7 +2745,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2706
2745
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2707
2746
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2708
2747
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2709
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2748
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2710
2749
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2711
2750
|
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>;
|
|
2712
2751
|
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>>;
|
|
@@ -2723,14 +2762,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2723
2762
|
start: string | Date;
|
|
2724
2763
|
end?: string | Date | undefined;
|
|
2725
2764
|
}>>;
|
|
2726
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2727
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2765
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2766
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2728
2767
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2729
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2730
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2731
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2732
|
-
code: z.ZodOptional<z.ZodString
|
|
2733
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2768
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2769
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2770
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2771
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2772
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2734
2773
|
_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>]>>;
|
|
2735
2774
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2736
2775
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -2739,7 +2778,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2739
2778
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2740
2779
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2741
2780
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2742
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2781
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2743
2782
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2744
2783
|
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>;
|
|
2745
2784
|
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>>;
|
|
@@ -2756,14 +2795,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2756
2795
|
start: string | Date;
|
|
2757
2796
|
end?: string | Date | undefined;
|
|
2758
2797
|
}>>;
|
|
2759
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2760
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2798
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2799
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2761
2800
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2762
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2763
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2764
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2765
|
-
code: z.ZodOptional<z.ZodString
|
|
2766
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2801
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2802
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2803
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2804
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2805
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2767
2806
|
_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>]>>;
|
|
2768
2807
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2769
2808
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -2772,7 +2811,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2772
2811
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2773
2812
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2774
2813
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2775
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2814
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2776
2815
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2777
2816
|
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>;
|
|
2778
2817
|
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>>;
|
|
@@ -2789,14 +2828,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2789
2828
|
start: string | Date;
|
|
2790
2829
|
end?: string | Date | undefined;
|
|
2791
2830
|
}>>;
|
|
2792
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2793
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2831
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2832
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2794
2833
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2795
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2796
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2797
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2798
|
-
code: z.ZodOptional<z.ZodString
|
|
2799
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2834
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2835
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2836
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2837
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2838
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2800
2839
|
_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>]>>;
|
|
2801
2840
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
2802
2841
|
metadata?: {
|
|
@@ -2813,7 +2852,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2813
2852
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
2814
2853
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2815
2854
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2816
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2855
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2817
2856
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2818
2857
|
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>;
|
|
2819
2858
|
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>>;
|
|
@@ -2830,20 +2869,20 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2830
2869
|
start: string | Date;
|
|
2831
2870
|
end?: string | Date | undefined;
|
|
2832
2871
|
}>>;
|
|
2833
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2834
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2872
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2873
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2835
2874
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2836
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2837
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2838
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2839
|
-
code: z.ZodOptional<z.ZodString
|
|
2840
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2875
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2876
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2877
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2878
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2879
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2841
2880
|
_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>]>>;
|
|
2842
2881
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2843
2882
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
2844
2883
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2845
2884
|
referralUser: 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>]>>;
|
|
2846
|
-
code: z.ZodOptional<z.ZodString
|
|
2885
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2847
2886
|
_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>]>>;
|
|
2848
2887
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2849
2888
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -2852,7 +2891,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2852
2891
|
referralCodeUsedOnOrder: 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>]>>;
|
|
2853
2892
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2854
2893
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2855
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2894
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2856
2895
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2857
2896
|
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>;
|
|
2858
2897
|
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>>;
|
|
@@ -2869,14 +2908,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2869
2908
|
start: string | Date;
|
|
2870
2909
|
end?: string | Date | undefined;
|
|
2871
2910
|
}>>;
|
|
2872
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2873
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2911
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2912
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2874
2913
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2875
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2876
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2877
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2878
|
-
code: z.ZodOptional<z.ZodString
|
|
2879
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2914
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2915
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2916
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2917
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2918
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2880
2919
|
_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>]>>;
|
|
2881
2920
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2882
2921
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -2885,7 +2924,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2885
2924
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2886
2925
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2887
2926
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2888
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2927
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2889
2928
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2890
2929
|
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>;
|
|
2891
2930
|
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>>;
|
|
@@ -2902,14 +2941,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2902
2941
|
start: string | Date;
|
|
2903
2942
|
end?: string | Date | undefined;
|
|
2904
2943
|
}>>;
|
|
2905
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2906
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2944
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2945
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2907
2946
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2908
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2909
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2910
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2911
|
-
code: z.ZodOptional<z.ZodString
|
|
2912
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2947
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2948
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2949
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2950
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2951
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2913
2952
|
_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>]>>;
|
|
2914
2953
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2915
2954
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -2918,7 +2957,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2918
2957
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2919
2958
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2920
2959
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2921
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2960
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2922
2961
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2923
2962
|
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>;
|
|
2924
2963
|
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>>;
|
|
@@ -2935,14 +2974,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2935
2974
|
start: string | Date;
|
|
2936
2975
|
end?: string | Date | undefined;
|
|
2937
2976
|
}>>;
|
|
2938
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2939
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2977
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2978
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2940
2979
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2941
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2942
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2943
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2944
|
-
code: z.ZodOptional<z.ZodString
|
|
2945
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
2980
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2981
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2982
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2983
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2984
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2946
2985
|
_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>]>>;
|
|
2947
2986
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2948
2987
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -2951,7 +2990,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2951
2990
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
2952
2991
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2953
2992
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2954
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2993
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2955
2994
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2956
2995
|
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>;
|
|
2957
2996
|
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>>;
|
|
@@ -2968,21 +3007,21 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2968
3007
|
start: string | Date;
|
|
2969
3008
|
end?: string | Date | undefined;
|
|
2970
3009
|
}>>;
|
|
2971
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
2972
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3010
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3011
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2973
3012
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2974
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
2975
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
2976
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
2977
|
-
code: z.ZodOptional<z.ZodString
|
|
2978
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
3013
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3014
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3015
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3016
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3017
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2979
3018
|
_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>]>>;
|
|
2980
3019
|
}, z.ZodTypeAny, "passthrough"> | {
|
|
2981
3020
|
documents: (z.objectInputType<{
|
|
2982
3021
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
2983
3022
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2984
3023
|
value: z.ZodOptional<z.ZodNumber>;
|
|
2985
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3024
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2986
3025
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2987
3026
|
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>;
|
|
2988
3027
|
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>>;
|
|
@@ -2999,20 +3038,20 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
2999
3038
|
start: string | Date;
|
|
3000
3039
|
end?: string | Date | undefined;
|
|
3001
3040
|
}>>;
|
|
3002
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3003
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3041
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3042
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3004
3043
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3005
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
3006
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
3007
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
3008
|
-
code: z.ZodOptional<z.ZodString
|
|
3009
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
3044
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3045
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3046
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3047
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3048
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3010
3049
|
_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>]>>;
|
|
3011
3050
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3012
3051
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
3013
3052
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
3014
3053
|
referralUser: 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>]>>;
|
|
3015
|
-
code: z.ZodOptional<z.ZodString
|
|
3054
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3016
3055
|
_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>]>>;
|
|
3017
3056
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3018
3057
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
@@ -3021,7 +3060,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3021
3060
|
referralCodeUsedOnOrder: 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>]>>;
|
|
3022
3061
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3023
3062
|
value: z.ZodOptional<z.ZodNumber>;
|
|
3024
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3063
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3025
3064
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3026
3065
|
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>;
|
|
3027
3066
|
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>>;
|
|
@@ -3038,14 +3077,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3038
3077
|
start: string | Date;
|
|
3039
3078
|
end?: string | Date | undefined;
|
|
3040
3079
|
}>>;
|
|
3041
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3042
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3080
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3081
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3043
3082
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3044
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
3045
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
3046
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
3047
|
-
code: z.ZodOptional<z.ZodString
|
|
3048
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
3083
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3084
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3085
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3086
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3087
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3049
3088
|
_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>]>>;
|
|
3050
3089
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3051
3090
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -3054,7 +3093,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3054
3093
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3055
3094
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3056
3095
|
value: z.ZodOptional<z.ZodNumber>;
|
|
3057
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3096
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3058
3097
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3059
3098
|
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>;
|
|
3060
3099
|
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>>;
|
|
@@ -3071,14 +3110,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3071
3110
|
start: string | Date;
|
|
3072
3111
|
end?: string | Date | undefined;
|
|
3073
3112
|
}>>;
|
|
3074
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3075
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3113
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3114
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3076
3115
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3077
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
3078
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
3079
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
3080
|
-
code: z.ZodOptional<z.ZodString
|
|
3081
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
3116
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3117
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3118
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3119
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3120
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3082
3121
|
_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>]>>;
|
|
3083
3122
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3084
3123
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
@@ -3087,7 +3126,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3087
3126
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
3088
3127
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3089
3128
|
value: z.ZodOptional<z.ZodNumber>;
|
|
3090
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3129
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3091
3130
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3092
3131
|
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>;
|
|
3093
3132
|
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>>;
|
|
@@ -3104,14 +3143,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3104
3143
|
start: string | Date;
|
|
3105
3144
|
end?: string | Date | undefined;
|
|
3106
3145
|
}>>;
|
|
3107
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3108
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3146
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3147
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3109
3148
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3110
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
3111
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
3112
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
3113
|
-
code: z.ZodOptional<z.ZodString
|
|
3114
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
3149
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3150
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3151
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3152
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3153
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3115
3154
|
_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>]>>;
|
|
3116
3155
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3117
3156
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
@@ -3120,7 +3159,7 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3120
3159
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
3121
3160
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3122
3161
|
value: z.ZodOptional<z.ZodNumber>;
|
|
3123
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3162
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3124
3163
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3125
3164
|
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>;
|
|
3126
3165
|
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>>;
|
|
@@ -3137,14 +3176,14 @@ export declare const CouponResponseSchema: z.ZodObject<{
|
|
|
3137
3176
|
start: string | Date;
|
|
3138
3177
|
end?: string | Date | undefined;
|
|
3139
3178
|
}>>;
|
|
3140
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3141
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
3179
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3180
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3142
3181
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3143
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
3144
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
3145
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
3146
|
-
code: z.ZodOptional<z.ZodString
|
|
3147
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
3182
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3183
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3184
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3185
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3186
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3148
3187
|
_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>]>>;
|
|
3149
3188
|
}, z.ZodTypeAny, "passthrough">)[];
|
|
3150
3189
|
metadata?: {
|