@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
|
@@ -8,7 +8,7 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
8
8
|
couponType: z.ZodLiteral<CouponType.GLOBAL>;
|
|
9
9
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
10
10
|
value: z.ZodNumber;
|
|
11
|
-
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
11
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
12
12
|
duration: z.ZodEffects<z.ZodObject<{
|
|
13
13
|
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>;
|
|
14
14
|
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>>;
|
|
@@ -25,14 +25,14 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
25
25
|
start: string | Date;
|
|
26
26
|
end?: string | Date | undefined;
|
|
27
27
|
}>;
|
|
28
|
-
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
29
|
-
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
28
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
29
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
30
30
|
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
-
forNewUserOnly: z.ZodDefault<z.ZodBoolean
|
|
32
|
-
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
33
|
-
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
34
|
-
code: z.ZodString
|
|
35
|
-
orderLimitPerUser: z.ZodNullable<z.ZodNumber
|
|
31
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
32
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
33
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
34
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
35
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
36
36
|
}, "strict", z.ZodTypeAny, {
|
|
37
37
|
value: number;
|
|
38
38
|
code: string;
|
|
@@ -58,7 +58,6 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
58
58
|
end?: string | Date | undefined;
|
|
59
59
|
};
|
|
60
60
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
61
|
-
orderLimitPerUser: number | null;
|
|
62
61
|
couponType: CouponType.GLOBAL;
|
|
63
62
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
64
63
|
spendLimit?: number | null | undefined;
|
|
@@ -67,11 +66,12 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
67
66
|
minOrderValue?: number | null | undefined;
|
|
68
67
|
forNewUserOnly?: boolean | undefined;
|
|
69
68
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
69
|
+
orderLimitPerUser?: number | null | undefined;
|
|
70
70
|
}>, GlobalCouponSchema: z.ZodObject<{
|
|
71
71
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.GLOBAL>>;
|
|
72
72
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
73
73
|
value: z.ZodOptional<z.ZodNumber>;
|
|
74
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
74
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
75
75
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
76
76
|
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>;
|
|
77
77
|
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>>;
|
|
@@ -88,20 +88,20 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
88
88
|
start: string | Date;
|
|
89
89
|
end?: string | Date | undefined;
|
|
90
90
|
}>>;
|
|
91
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
92
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
91
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
92
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
93
93
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
94
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
95
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
96
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
97
|
-
code: z.ZodOptional<z.ZodString
|
|
98
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
94
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
95
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
96
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
97
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
98
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
99
99
|
_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>]>>;
|
|
100
100
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
101
101
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.GLOBAL>>;
|
|
102
102
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
103
103
|
value: z.ZodOptional<z.ZodNumber>;
|
|
104
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
104
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
105
105
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
106
106
|
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>;
|
|
107
107
|
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>>;
|
|
@@ -118,20 +118,20 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
118
118
|
start: string | Date;
|
|
119
119
|
end?: string | Date | undefined;
|
|
120
120
|
}>>;
|
|
121
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
122
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
121
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
122
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
123
123
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
124
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
125
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
126
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
127
|
-
code: z.ZodOptional<z.ZodString
|
|
128
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
124
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
125
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
126
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
127
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
128
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
129
129
|
_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>]>>;
|
|
130
130
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
131
131
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.GLOBAL>>;
|
|
132
132
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
133
133
|
value: z.ZodOptional<z.ZodNumber>;
|
|
134
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
134
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
135
135
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
136
136
|
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>;
|
|
137
137
|
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>>;
|
|
@@ -148,14 +148,14 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
148
148
|
start: string | Date;
|
|
149
149
|
end?: string | Date | undefined;
|
|
150
150
|
}>>;
|
|
151
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
152
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
151
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
152
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
153
153
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
154
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
155
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
156
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
157
|
-
code: z.ZodOptional<z.ZodString
|
|
158
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
154
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
155
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
156
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
157
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
158
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
159
159
|
_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>]>>;
|
|
160
160
|
}, z.ZodTypeAny, "passthrough">>, GlobalCouponIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdateGlobalCouponSchema: z.ZodObject<{
|
|
161
161
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
@@ -167,7 +167,7 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
167
167
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.GLOBAL>>;
|
|
168
168
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
169
169
|
value: z.ZodOptional<z.ZodNumber>;
|
|
170
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
170
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
171
171
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
172
172
|
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>;
|
|
173
173
|
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>>;
|
|
@@ -184,20 +184,20 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
184
184
|
start: string | Date;
|
|
185
185
|
end?: string | Date | undefined;
|
|
186
186
|
}>>;
|
|
187
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
188
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
187
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
188
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
189
189
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
190
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
191
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
192
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
193
|
-
code: z.ZodOptional<z.ZodString
|
|
194
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
190
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
191
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
192
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
193
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
194
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
195
195
|
_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>]>>;
|
|
196
196
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
197
197
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.GLOBAL>>;
|
|
198
198
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
199
199
|
value: z.ZodOptional<z.ZodNumber>;
|
|
200
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
200
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
201
201
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
202
202
|
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>;
|
|
203
203
|
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>>;
|
|
@@ -214,20 +214,20 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
214
214
|
start: string | Date;
|
|
215
215
|
end?: string | Date | undefined;
|
|
216
216
|
}>>;
|
|
217
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
218
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
217
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
218
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
219
219
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
220
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
221
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
222
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
223
|
-
code: z.ZodOptional<z.ZodString
|
|
224
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
220
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
221
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
222
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
223
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
224
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
225
225
|
_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>]>>;
|
|
226
226
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
227
227
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.GLOBAL>>;
|
|
228
228
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
229
229
|
value: z.ZodOptional<z.ZodNumber>;
|
|
230
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
230
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
231
231
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
232
232
|
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>;
|
|
233
233
|
end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
|
|
@@ -244,14 +244,14 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
244
244
|
start: string | Date;
|
|
245
245
|
end?: string | Date | undefined;
|
|
246
246
|
}>>;
|
|
247
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
248
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
247
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
248
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
249
249
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
250
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
251
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
252
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
253
|
-
code: z.ZodOptional<z.ZodString
|
|
254
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
250
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
251
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
252
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
253
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
254
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
255
255
|
_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>]>>;
|
|
256
256
|
}, z.ZodTypeAny, "passthrough">>;
|
|
257
257
|
/**
|
|
@@ -11,7 +11,7 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
11
11
|
isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
|
|
12
12
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
13
13
|
value: z.ZodNumber;
|
|
14
|
-
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
14
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
15
15
|
duration: z.ZodEffects<z.ZodObject<{
|
|
16
16
|
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>;
|
|
17
17
|
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>>;
|
|
@@ -28,14 +28,14 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
28
28
|
start: string | Date;
|
|
29
29
|
end?: string | Date | undefined;
|
|
30
30
|
}>;
|
|
31
|
-
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
32
|
-
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
31
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
32
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
33
33
|
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
-
forNewUserOnly: z.ZodDefault<z.ZodBoolean
|
|
35
|
-
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
36
|
-
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
37
|
-
code: z.ZodString
|
|
38
|
-
orderLimitPerUser: z.ZodNullable<z.ZodNumber
|
|
34
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
35
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
36
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
37
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
38
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
39
39
|
}, "strict", z.ZodTypeAny, {
|
|
40
40
|
value: number;
|
|
41
41
|
code: string;
|
|
@@ -64,7 +64,6 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
64
64
|
end?: string | Date | undefined;
|
|
65
65
|
};
|
|
66
66
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
67
|
-
orderLimitPerUser: number | null;
|
|
68
67
|
couponType: CouponType.INDIVIDUAL_STORE;
|
|
69
68
|
shops: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
70
69
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
@@ -74,6 +73,7 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
74
73
|
minOrderValue?: number | null | undefined;
|
|
75
74
|
forNewUserOnly?: boolean | undefined;
|
|
76
75
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
76
|
+
orderLimitPerUser?: number | null | undefined;
|
|
77
77
|
itemTypes?: ItemType[] | undefined;
|
|
78
78
|
isShopCoverExpenses?: boolean | undefined;
|
|
79
79
|
}>, IndividualStoreCouponSchema: z.ZodObject<{
|
|
@@ -83,7 +83,7 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
83
83
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
84
84
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
85
85
|
value: z.ZodOptional<z.ZodNumber>;
|
|
86
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
86
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
87
87
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
88
88
|
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>;
|
|
89
89
|
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>>;
|
|
@@ -100,14 +100,14 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
100
100
|
start: string | Date;
|
|
101
101
|
end?: string | Date | undefined;
|
|
102
102
|
}>>;
|
|
103
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
104
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
103
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
104
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
105
105
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
106
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
107
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
108
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
109
|
-
code: z.ZodOptional<z.ZodString
|
|
110
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
106
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
107
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
108
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
109
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
110
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
111
111
|
_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>]>>;
|
|
112
112
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
113
113
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -116,7 +116,7 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
116
116
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
117
117
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
118
118
|
value: z.ZodOptional<z.ZodNumber>;
|
|
119
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
119
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
120
120
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
121
121
|
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>;
|
|
122
122
|
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>>;
|
|
@@ -133,14 +133,14 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
133
133
|
start: string | Date;
|
|
134
134
|
end?: string | Date | undefined;
|
|
135
135
|
}>>;
|
|
136
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
137
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
136
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
137
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
138
138
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
139
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
140
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
141
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
142
|
-
code: z.ZodOptional<z.ZodString
|
|
143
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
139
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
140
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
141
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
142
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
143
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
144
144
|
_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>]>>;
|
|
145
145
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
146
146
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -149,7 +149,7 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
149
149
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
150
150
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
151
151
|
value: z.ZodOptional<z.ZodNumber>;
|
|
152
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
152
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
153
153
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
154
154
|
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>;
|
|
155
155
|
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>>;
|
|
@@ -166,14 +166,14 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
166
166
|
start: string | Date;
|
|
167
167
|
end?: string | Date | undefined;
|
|
168
168
|
}>>;
|
|
169
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
170
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
169
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
170
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
171
171
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
172
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
173
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
174
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
175
|
-
code: z.ZodOptional<z.ZodString
|
|
176
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
172
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
173
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
174
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
175
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
176
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
177
177
|
_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>]>>;
|
|
178
178
|
}, z.ZodTypeAny, "passthrough">>, IndividualStoreCouponIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdateIndividualStoreCouponSchema: z.ZodObject<{
|
|
179
179
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
@@ -188,7 +188,7 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
188
188
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
189
189
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
190
190
|
value: z.ZodOptional<z.ZodNumber>;
|
|
191
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
191
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
192
192
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
193
193
|
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
194
194
|
end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
|
|
@@ -205,14 +205,14 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
205
205
|
start: string | Date;
|
|
206
206
|
end?: string | Date | undefined;
|
|
207
207
|
}>>;
|
|
208
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
209
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
208
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
209
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
210
210
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
211
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
212
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
213
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
214
|
-
code: z.ZodOptional<z.ZodString
|
|
215
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
211
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
212
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
213
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
214
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
215
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
216
216
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
217
217
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
218
218
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -221,7 +221,7 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
221
221
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
222
222
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
223
223
|
value: z.ZodOptional<z.ZodNumber>;
|
|
224
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
224
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
225
225
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
226
226
|
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>;
|
|
227
227
|
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>>;
|
|
@@ -238,14 +238,14 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
238
238
|
start: string | Date;
|
|
239
239
|
end?: string | Date | undefined;
|
|
240
240
|
}>>;
|
|
241
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
242
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
241
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
242
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
243
243
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
244
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
245
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
246
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
247
|
-
code: z.ZodOptional<z.ZodString
|
|
248
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
244
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
245
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
246
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
247
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
248
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
249
249
|
_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>]>>;
|
|
250
250
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
251
251
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -254,7 +254,7 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
254
254
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
255
255
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
256
256
|
value: z.ZodOptional<z.ZodNumber>;
|
|
257
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
257
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
258
258
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
259
259
|
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>;
|
|
260
260
|
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>>;
|
|
@@ -271,14 +271,14 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
271
271
|
start: string | Date;
|
|
272
272
|
end?: string | Date | undefined;
|
|
273
273
|
}>>;
|
|
274
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
275
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
274
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
275
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
276
276
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
277
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
278
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status
|
|
279
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason
|
|
280
|
-
code: z.ZodOptional<z.ZodString
|
|
281
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
277
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
278
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
279
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
280
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
281
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
282
282
|
_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>]>>;
|
|
283
283
|
}, z.ZodTypeAny, "passthrough">>;
|
|
284
284
|
/**
|