@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-coupons.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/all-coupons.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAW,MAAM,KAAK,CAAC;AAuBjC,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOrC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyC,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC7D,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACjF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -5,13 +5,13 @@ import { CouponExpirationReason, Status, ValueType } from '@lyxa.ai/core/dist/ut
|
|
|
5
5
|
* Define the base parent schema fields
|
|
6
6
|
*/
|
|
7
7
|
export declare const couponFields: {
|
|
8
|
-
code: z.ZodString
|
|
9
|
-
orderLimitPerUser: z.ZodNullable<z.ZodNumber
|
|
8
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
9
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
10
10
|
};
|
|
11
11
|
export declare const baseFields: {
|
|
12
12
|
valueType: z.ZodNativeEnum<typeof 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 @@ export declare const baseFields: {
|
|
|
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 Status
|
|
36
|
-
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof 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 Status>>>;
|
|
36
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof 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
|
};
|
|
40
40
|
/**
|
|
41
41
|
* Get all schemas for the Parent entity
|
|
@@ -43,7 +43,7 @@ export declare const baseFields: {
|
|
|
43
43
|
declare const CouponValidationSchema: z.ZodObject<{
|
|
44
44
|
valueType: z.ZodNativeEnum<typeof ValueType>;
|
|
45
45
|
value: z.ZodNumber;
|
|
46
|
-
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
46
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
47
47
|
duration: z.ZodEffects<z.ZodObject<{
|
|
48
48
|
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>;
|
|
49
49
|
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>>;
|
|
@@ -60,14 +60,14 @@ declare const CouponValidationSchema: z.ZodObject<{
|
|
|
60
60
|
start: string | Date;
|
|
61
61
|
end?: string | Date | undefined;
|
|
62
62
|
}>;
|
|
63
|
-
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
64
|
-
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
63
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
64
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
65
65
|
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
66
|
-
forNewUserOnly: z.ZodDefault<z.ZodBoolean
|
|
67
|
-
status: z.ZodDefault<z.ZodNativeEnum<typeof Status
|
|
68
|
-
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof CouponExpirationReason
|
|
69
|
-
code: z.ZodString
|
|
70
|
-
orderLimitPerUser: z.ZodNullable<z.ZodNumber
|
|
66
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
67
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof Status>>>;
|
|
68
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof CouponExpirationReason>>>>;
|
|
69
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
70
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
71
71
|
}, "strict", z.ZodTypeAny, {
|
|
72
72
|
value: number;
|
|
73
73
|
code: string;
|
|
@@ -92,7 +92,6 @@ declare const CouponValidationSchema: z.ZodObject<{
|
|
|
92
92
|
end?: string | Date | undefined;
|
|
93
93
|
};
|
|
94
94
|
valueType: ValueType;
|
|
95
|
-
orderLimitPerUser: number | null;
|
|
96
95
|
status?: Status | undefined;
|
|
97
96
|
spendLimit?: number | null | undefined;
|
|
98
97
|
maxDiscountLimit?: number | null | undefined;
|
|
@@ -100,10 +99,11 @@ declare const CouponValidationSchema: z.ZodObject<{
|
|
|
100
99
|
minOrderValue?: number | null | undefined;
|
|
101
100
|
forNewUserOnly?: boolean | undefined;
|
|
102
101
|
expirationReason?: CouponExpirationReason | null | undefined;
|
|
102
|
+
orderLimitPerUser?: number | null | undefined;
|
|
103
103
|
}>, CouponSchema: z.ZodObject<{
|
|
104
104
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
|
|
105
105
|
value: z.ZodOptional<z.ZodNumber>;
|
|
106
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
106
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
107
107
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
108
108
|
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>;
|
|
109
109
|
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>>;
|
|
@@ -120,19 +120,19 @@ declare const CouponValidationSchema: z.ZodObject<{
|
|
|
120
120
|
start: string | Date;
|
|
121
121
|
end?: string | Date | undefined;
|
|
122
122
|
}>>;
|
|
123
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
124
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
123
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
124
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
125
125
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
126
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
127
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof Status
|
|
128
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof CouponExpirationReason
|
|
129
|
-
code: z.ZodOptional<z.ZodString
|
|
130
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
126
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
127
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof Status>>>>;
|
|
128
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof CouponExpirationReason>>>>>;
|
|
129
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
130
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
131
131
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
132
132
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
133
133
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
|
|
134
134
|
value: z.ZodOptional<z.ZodNumber>;
|
|
135
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
135
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
136
136
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
137
137
|
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>;
|
|
138
138
|
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>>;
|
|
@@ -149,19 +149,19 @@ declare const CouponValidationSchema: z.ZodObject<{
|
|
|
149
149
|
start: string | Date;
|
|
150
150
|
end?: string | Date | undefined;
|
|
151
151
|
}>>;
|
|
152
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
153
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
152
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
153
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
154
154
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
155
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
156
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof Status
|
|
157
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof CouponExpirationReason
|
|
158
|
-
code: z.ZodOptional<z.ZodString
|
|
159
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
155
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
156
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof Status>>>>;
|
|
157
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof CouponExpirationReason>>>>>;
|
|
158
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
159
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
160
160
|
_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>]>>;
|
|
161
161
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
162
162
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
|
|
163
163
|
value: z.ZodOptional<z.ZodNumber>;
|
|
164
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
164
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
165
165
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
166
166
|
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>;
|
|
167
167
|
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>>;
|
|
@@ -178,14 +178,14 @@ declare const CouponValidationSchema: z.ZodObject<{
|
|
|
178
178
|
start: string | Date;
|
|
179
179
|
end?: string | Date | undefined;
|
|
180
180
|
}>>;
|
|
181
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
182
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
181
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
182
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
183
183
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
184
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
185
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof Status
|
|
186
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof CouponExpirationReason
|
|
187
|
-
code: z.ZodOptional<z.ZodString
|
|
188
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
184
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
185
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof Status>>>>;
|
|
186
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof CouponExpirationReason>>>>>;
|
|
187
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
188
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
189
189
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
190
190
|
}, z.ZodTypeAny, "passthrough">>, CouponIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdateCouponSchema: z.ZodObject<{
|
|
191
191
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
@@ -196,7 +196,7 @@ declare const CouponValidationSchema: z.ZodObject<{
|
|
|
196
196
|
}> | z.ZodObject<{
|
|
197
197
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
|
|
198
198
|
value: z.ZodOptional<z.ZodNumber>;
|
|
199
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
199
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
200
200
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
201
201
|
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>;
|
|
202
202
|
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>>;
|
|
@@ -213,19 +213,19 @@ declare const CouponValidationSchema: z.ZodObject<{
|
|
|
213
213
|
start: string | Date;
|
|
214
214
|
end?: string | Date | undefined;
|
|
215
215
|
}>>;
|
|
216
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
217
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
216
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
217
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
218
218
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
219
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
220
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof Status
|
|
221
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof CouponExpirationReason
|
|
222
|
-
code: z.ZodOptional<z.ZodString
|
|
223
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
219
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
220
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof Status>>>>;
|
|
221
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof CouponExpirationReason>>>>>;
|
|
222
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
223
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
224
224
|
_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>]>>;
|
|
225
225
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
226
226
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
|
|
227
227
|
value: z.ZodOptional<z.ZodNumber>;
|
|
228
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
228
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
229
229
|
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
230
230
|
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>;
|
|
231
231
|
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>>;
|
|
@@ -242,19 +242,19 @@ declare const CouponValidationSchema: z.ZodObject<{
|
|
|
242
242
|
start: string | Date;
|
|
243
243
|
end?: string | Date | undefined;
|
|
244
244
|
}>>;
|
|
245
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
246
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
245
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
246
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
247
247
|
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
248
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean
|
|
249
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof Status
|
|
250
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof CouponExpirationReason
|
|
251
|
-
code: z.ZodOptional<z.ZodString
|
|
252
|
-
orderLimitPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber
|
|
248
|
+
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
249
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof Status>>>>;
|
|
250
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof CouponExpirationReason>>>>>;
|
|
251
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
252
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
253
253
|
_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>]>>;
|
|
254
254
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
255
255
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof 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 CouponValidationSchema: 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 Status
|
|
279
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNativeEnum<typeof 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 Status>>>>;
|
|
279
|
+
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof 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
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,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AAC;AACjD,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC7D,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
11
11
|
shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
12
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 CustomCouponValidationSchema: 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 CustomCouponValidationSchema: 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.CUSTOM_COUPON;
|
|
69
68
|
influencer: string | import("mongoose").Types.ObjectId;
|
|
70
69
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
@@ -74,6 +73,7 @@ declare const CustomCouponValidationSchema: 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
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
79
79
|
}>, CustomCouponSchema: z.ZodObject<{
|
|
@@ -83,7 +83,7 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
83
83
|
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">>>;
|
|
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 CustomCouponValidationSchema: 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.CUSTOM_COUPON>>;
|
|
@@ -116,7 +116,7 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
116
116
|
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">>>;
|
|
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 CustomCouponValidationSchema: 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.CUSTOM_COUPON>>;
|
|
@@ -149,7 +149,7 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
149
149
|
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">>>;
|
|
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 CustomCouponValidationSchema: 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">>, CustomCouponIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdateCustomCouponSchema: z.ZodObject<{
|
|
179
179
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
@@ -188,7 +188,7 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
188
188
|
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">>>;
|
|
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 CustomCouponValidationSchema: 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.CUSTOM_COUPON>>;
|
|
@@ -221,7 +221,7 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
221
221
|
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">>>;
|
|
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 CustomCouponValidationSchema: 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.CUSTOM_COUPON>>;
|
|
@@ -254,7 +254,7 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
254
254
|
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">>>;
|
|
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 CustomCouponValidationSchema: 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
|
/**
|