@lyxa.ai/marketing 1.0.0
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/lib/index.js +66 -0
- package/dist/types/index.d.ts +8229 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +4676 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -0
- package/dist/types/modules/coupon/routers/index.d.ts +2 -0
- package/dist/types/modules/coupon/routers/index.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/coupon.service.d.ts +73 -0
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +20 -0
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/global-coupon.service.d.ts +20 -0
- package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/index.d.ts +8 -0
- package/dist/types/modules/coupon/services/index.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +20 -0
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts +20 -0
- package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts +20 -0
- package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts +20 -0
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +171 -0
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -0
- package/dist/types/modules/coupon/transformers/index.d.ts +2 -0
- package/dist/types/modules/coupon/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +3161 -0
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +311 -0
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +294 -0
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts +267 -0
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/index.d.ts +9 -0
- package/dist/types/modules/coupon/validations/index.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +294 -0
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts +294 -0
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts +75 -0
- package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +294 -0
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts +516 -0
- package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/routers/index.d.ts +2 -0
- package/dist/types/modules/deal-setting/routers/index.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/services/deal-setting.service.d.ts +37 -0
- package/dist/types/modules/deal-setting/services/deal-setting.service.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/services/index.d.ts +2 -0
- package/dist/types/modules/deal-setting/services/index.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/transformers/deal-setting.transformer.d.ts +11 -0
- package/dist/types/modules/deal-setting/transformers/deal-setting.transformer.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/transformers/index.d.ts +2 -0
- package/dist/types/modules/deal-setting/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/validations/deal-setting.validation.d.ts +236 -0
- package/dist/types/modules/deal-setting/validations/deal-setting.validation.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/validations/index.d.ts +2 -0
- package/dist/types/modules/deal-setting/validations/index.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts +692 -0
- package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/routers/index.d.ts +2 -0
- package/dist/types/modules/featured-setting/routers/index.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/services/featured-setting.service.d.ts +37 -0
- package/dist/types/modules/featured-setting/services/featured-setting.service.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/services/index.d.ts +2 -0
- package/dist/types/modules/featured-setting/services/index.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/transformers/featured-setting.transformer.d.ts +19 -0
- package/dist/types/modules/featured-setting/transformers/featured-setting.transformer.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/transformers/index.d.ts +2 -0
- package/dist/types/modules/featured-setting/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/validations/featured-setting.validation.d.ts +372 -0
- package/dist/types/modules/featured-setting/validations/featured-setting.validation.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/validations/index.d.ts +2 -0
- package/dist/types/modules/featured-setting/validations/index.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/routers/index.d.ts +2 -0
- package/dist/types/modules/loyalty-point-setting/routers/index.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts +822 -0
- package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/services/index.d.ts +3 -0
- package/dist/types/modules/loyalty-point-setting/services/index.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-category.service.d.ts +37 -0
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-category.service.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts +32 -0
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/transformers/index.d.ts +3 -0
- package/dist/types/modules/loyalty-point-setting/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts +8 -0
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.d.ts +9 -0
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/validations/index.d.ts +3 -0
- package/dist/types/modules/loyalty-point-setting/validations/index.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts +179 -0
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts +197 -0
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/routers/index.d.ts +2 -0
- package/dist/types/modules/marketing/routers/index.d.ts.map +1 -0
- package/dist/types/modules/marketing/routers/marketing.router.d.ts +296 -0
- package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts +21 -0
- package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/discount-marketing.service.d.ts +21 -0
- package/dist/types/modules/marketing/services/discount-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/featured-marketing.service.d.ts +20 -0
- package/dist/types/modules/marketing/services/featured-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/free-delivery-marketing.service.d.ts +21 -0
- package/dist/types/modules/marketing/services/free-delivery-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/index.d.ts +9 -0
- package/dist/types/modules/marketing/services/index.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/loyalty-point-marketing.service.d.ts +21 -0
- package/dist/types/modules/marketing/services/loyalty-point-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/marketing.service.d.ts +37 -0
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts +42 -0
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/punch-marketing.service.d.ts +20 -0
- package/dist/types/modules/marketing/services/punch-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +45 -0
- package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts +48 -0
- package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/featured-marketing.transformer.d.ts +21 -0
- package/dist/types/modules/marketing/transformers/featured-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts +21 -0
- package/dist/types/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/index.d.ts +9 -0
- package/dist/types/modules/marketing/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/loyalty-point-marketing.transformer.d.ts +47 -0
- package/dist/types/modules/marketing/transformers/loyalty-point-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/marketing.transformer.d.ts +3 -0
- package/dist/types/modules/marketing/transformers/marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts +11 -0
- package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/punch-marketing.transformer.d.ts +26 -0
- package/dist/types/modules/marketing/transformers/punch-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts +52 -0
- package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +359 -0
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +527 -0
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts +233 -0
- package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts +171 -0
- package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/index.d.ts +10 -0
- package/dist/types/modules/marketing/validations/index.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/loyalty-point-marketing.validation.d.ts +513 -0
- package/dist/types/modules/marketing/validations/loyalty-point-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts +182 -0
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +181 -0
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts +216 -0
- package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/routers/index.d.ts +2 -0
- package/dist/types/modules/punch-marketing-history/routers/index.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +468 -0
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/services/index.d.ts +2 -0
- package/dist/types/modules/punch-marketing-history/services/index.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts +37 -0
- package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/transformers/index.d.ts +2 -0
- package/dist/types/modules/punch-marketing-history/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts +9 -0
- package/dist/types/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/validations/index.d.ts +2 -0
- package/dist/types/modules/punch-marketing-history/validations/index.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +197 -0
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/routers/index.d.ts +2 -0
- package/dist/types/modules/referral-setting/routers/index.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/routers/referral-setting.router.d.ts +746 -0
- package/dist/types/modules/referral-setting/routers/referral-setting.router.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/services/index.d.ts +2 -0
- package/dist/types/modules/referral-setting/services/index.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/services/referral-setting.service.d.ts +31 -0
- package/dist/types/modules/referral-setting/services/referral-setting.service.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/transformers/index.d.ts +2 -0
- package/dist/types/modules/referral-setting/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/transformers/referral-setting.transformer.d.ts +31 -0
- package/dist/types/modules/referral-setting/transformers/referral-setting.transformer.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/validations/index.d.ts +2 -0
- package/dist/types/modules/referral-setting/validations/index.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/validations/referral-setting.validation.d.ts +584 -0
- package/dist/types/modules/referral-setting/validations/referral-setting.validation.d.ts.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
|
|
3
|
+
import { CouponType, ItemType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
4
|
+
/**
|
|
5
|
+
* Get all schemas for the Parent entity
|
|
6
|
+
*/
|
|
7
|
+
declare const IndividualUserCouponValidationSchema: z.ZodObject<{
|
|
8
|
+
couponType: z.ZodLiteral<CouponType.INDIVIDUAL_USER>;
|
|
9
|
+
users: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">;
|
|
10
|
+
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>;
|
|
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
|
+
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
13
|
+
value: z.ZodNumber;
|
|
14
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
duration: z.ZodEffects<z.ZodObject<{
|
|
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
|
+
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>>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
start: Date;
|
|
20
|
+
end?: Date | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
start: string | Date;
|
|
23
|
+
end?: string | Date | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
start: Date;
|
|
26
|
+
end?: Date | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
start: string | Date;
|
|
29
|
+
end?: string | Date | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
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>;
|
|
39
|
+
}, "strict", z.ZodTypeAny, {
|
|
40
|
+
value: number;
|
|
41
|
+
code: string;
|
|
42
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
43
|
+
duration: {
|
|
44
|
+
start: Date;
|
|
45
|
+
end?: Date | undefined;
|
|
46
|
+
};
|
|
47
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
48
|
+
spendLimit: number | null;
|
|
49
|
+
maxDiscountLimit: number | null;
|
|
50
|
+
totalOrderLimit: number | null;
|
|
51
|
+
minOrderValue: number | null;
|
|
52
|
+
forNewUserOnly: boolean;
|
|
53
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
54
|
+
orderLimitPerUser: number | null;
|
|
55
|
+
couponType: CouponType.INDIVIDUAL_USER;
|
|
56
|
+
itemTypes: ItemType[];
|
|
57
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
58
|
+
users: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
59
|
+
}, {
|
|
60
|
+
value: number;
|
|
61
|
+
code: string;
|
|
62
|
+
duration: {
|
|
63
|
+
start: string | Date;
|
|
64
|
+
end?: string | Date | undefined;
|
|
65
|
+
};
|
|
66
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
67
|
+
orderLimitPerUser: number | null;
|
|
68
|
+
couponType: CouponType.INDIVIDUAL_USER;
|
|
69
|
+
users: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
70
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
71
|
+
spendLimit?: number | null | undefined;
|
|
72
|
+
maxDiscountLimit?: number | null | undefined;
|
|
73
|
+
totalOrderLimit?: number | null | undefined;
|
|
74
|
+
minOrderValue?: number | null | undefined;
|
|
75
|
+
forNewUserOnly?: boolean | undefined;
|
|
76
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
77
|
+
itemTypes?: ItemType[] | undefined;
|
|
78
|
+
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
79
|
+
}>, IndividualUserCouponSchema: z.ZodObject<{
|
|
80
|
+
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_USER>>;
|
|
81
|
+
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">>;
|
|
82
|
+
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
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
|
+
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
85
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
87
|
+
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
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
|
+
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>>;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
start: Date;
|
|
92
|
+
end?: Date | undefined;
|
|
93
|
+
}, {
|
|
94
|
+
start: string | Date;
|
|
95
|
+
end?: string | Date | undefined;
|
|
96
|
+
}>, {
|
|
97
|
+
start: Date;
|
|
98
|
+
end?: Date | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
start: string | Date;
|
|
101
|
+
end?: string | Date | undefined;
|
|
102
|
+
}>>;
|
|
103
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
104
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
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>>;
|
|
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
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
113
|
+
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_USER>>;
|
|
114
|
+
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">>;
|
|
115
|
+
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
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
|
+
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
118
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
120
|
+
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
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
|
+
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>>;
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
start: Date;
|
|
125
|
+
end?: Date | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
start: string | Date;
|
|
128
|
+
end?: string | Date | undefined;
|
|
129
|
+
}>, {
|
|
130
|
+
start: Date;
|
|
131
|
+
end?: Date | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
start: string | Date;
|
|
134
|
+
end?: string | Date | undefined;
|
|
135
|
+
}>>;
|
|
136
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
137
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
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>>;
|
|
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
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
146
|
+
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_USER>>;
|
|
147
|
+
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">>;
|
|
148
|
+
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
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
|
+
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
151
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
153
|
+
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
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
|
+
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>>;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
start: Date;
|
|
158
|
+
end?: Date | undefined;
|
|
159
|
+
}, {
|
|
160
|
+
start: string | Date;
|
|
161
|
+
end?: string | Date | undefined;
|
|
162
|
+
}>, {
|
|
163
|
+
start: Date;
|
|
164
|
+
end?: Date | undefined;
|
|
165
|
+
}, {
|
|
166
|
+
start: string | Date;
|
|
167
|
+
end?: string | Date | undefined;
|
|
168
|
+
}>>;
|
|
169
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
170
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
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>>;
|
|
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
|
+
}, z.ZodTypeAny, "passthrough">>, IndividualUserCouponIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdateIndividualUserCouponSchema: z.ZodObject<{
|
|
179
|
+
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
180
|
+
}, "strict", z.ZodTypeAny, {
|
|
181
|
+
[x: string]: any;
|
|
182
|
+
}, {
|
|
183
|
+
[x: string]: any;
|
|
184
|
+
}> | z.ZodObject<{
|
|
185
|
+
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_USER>>;
|
|
186
|
+
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">>;
|
|
187
|
+
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
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
|
+
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
190
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
191
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
192
|
+
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
193
|
+
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
194
|
+
end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
start: Date;
|
|
197
|
+
end?: Date | undefined;
|
|
198
|
+
}, {
|
|
199
|
+
start: string | Date;
|
|
200
|
+
end?: string | Date | undefined;
|
|
201
|
+
}>, {
|
|
202
|
+
start: Date;
|
|
203
|
+
end?: Date | undefined;
|
|
204
|
+
}, {
|
|
205
|
+
start: string | Date;
|
|
206
|
+
end?: string | Date | undefined;
|
|
207
|
+
}>>;
|
|
208
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
209
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
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>>;
|
|
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
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
218
|
+
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_USER>>;
|
|
219
|
+
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">>;
|
|
220
|
+
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
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
|
+
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
223
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
225
|
+
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
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
|
+
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>>;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
start: Date;
|
|
230
|
+
end?: Date | undefined;
|
|
231
|
+
}, {
|
|
232
|
+
start: string | Date;
|
|
233
|
+
end?: string | Date | undefined;
|
|
234
|
+
}>, {
|
|
235
|
+
start: Date;
|
|
236
|
+
end?: Date | undefined;
|
|
237
|
+
}, {
|
|
238
|
+
start: string | Date;
|
|
239
|
+
end?: string | Date | undefined;
|
|
240
|
+
}>>;
|
|
241
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
242
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
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>>;
|
|
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
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
251
|
+
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_USER>>;
|
|
252
|
+
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">>;
|
|
253
|
+
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
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
|
+
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
256
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
258
|
+
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
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
|
+
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>>;
|
|
261
|
+
}, "strip", z.ZodTypeAny, {
|
|
262
|
+
start: Date;
|
|
263
|
+
end?: Date | undefined;
|
|
264
|
+
}, {
|
|
265
|
+
start: string | Date;
|
|
266
|
+
end?: string | Date | undefined;
|
|
267
|
+
}>, {
|
|
268
|
+
start: Date;
|
|
269
|
+
end?: Date | undefined;
|
|
270
|
+
}, {
|
|
271
|
+
start: string | Date;
|
|
272
|
+
end?: string | Date | undefined;
|
|
273
|
+
}>>;
|
|
274
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
275
|
+
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
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>>;
|
|
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
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
284
|
+
/**
|
|
285
|
+
* Export schemas
|
|
286
|
+
*/
|
|
287
|
+
export { IndividualUserCouponValidationSchema, IndividualUserCouponSchema, IndividualUserCouponIdSchema as IndividualUserCouponIdValidationSchema, UpdateIndividualUserCouponSchema, };
|
|
288
|
+
/**
|
|
289
|
+
* Export DTO types
|
|
290
|
+
*/
|
|
291
|
+
export type CreateIndividualUserCouponDTO = DTO<typeof IndividualUserCouponValidationSchema>;
|
|
292
|
+
export type IndividualUserCouponDTO = DTO<typeof IndividualUserCouponSchema>;
|
|
293
|
+
export type UpdateIndividualUserCouponDTO = DTO<typeof UpdateIndividualUserCouponSchema>;
|
|
294
|
+
//# sourceMappingURL=individual-user-coupon.validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"individual-user-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/individual-user-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAoBzE;;GAEG;AACH,QAAA,MACa,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAClC,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC9B,4BAA4B,mNACxB,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACK,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,oCAAoC,EACpC,0BAA0B,EAC1B,4BAA4B,IAAI,sCAAsC,EACtE,gCAAgC,GAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,GAAG,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAC7F,MAAM,MAAM,uBAAuB,GAAG,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC7E,MAAM,MAAM,6BAA6B,GAAG,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
|
|
3
|
+
import { CouponType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
4
|
+
/**
|
|
5
|
+
* Get all schemas for the Parent entity
|
|
6
|
+
*/
|
|
7
|
+
declare const ReferralCodeCouponValidationSchema: z.ZodObject<{
|
|
8
|
+
couponType: z.ZodLiteral<CouponType.REFERRAL_CODE>;
|
|
9
|
+
orderLimitPerUser: z.ZodLiteral<1>;
|
|
10
|
+
referralUser: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
11
|
+
code: z.ZodString;
|
|
12
|
+
}, "strict", z.ZodTypeAny, {
|
|
13
|
+
code: string;
|
|
14
|
+
orderLimitPerUser: 1;
|
|
15
|
+
couponType: CouponType.REFERRAL_CODE;
|
|
16
|
+
referralUser: import("mongoose").Types.ObjectId;
|
|
17
|
+
}, {
|
|
18
|
+
code: string;
|
|
19
|
+
orderLimitPerUser: 1;
|
|
20
|
+
couponType: CouponType.REFERRAL_CODE;
|
|
21
|
+
referralUser: string | import("mongoose").Types.ObjectId;
|
|
22
|
+
}>, ReferralCodeCouponSchema: z.ZodObject<{
|
|
23
|
+
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_CODE>>;
|
|
24
|
+
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
25
|
+
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
26
|
+
code: z.ZodOptional<z.ZodString>;
|
|
27
|
+
_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>]>>;
|
|
28
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
29
|
+
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_CODE>>;
|
|
30
|
+
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
31
|
+
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
32
|
+
code: z.ZodOptional<z.ZodString>;
|
|
33
|
+
_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>]>>;
|
|
34
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
35
|
+
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_CODE>>;
|
|
36
|
+
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
37
|
+
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
38
|
+
code: z.ZodOptional<z.ZodString>;
|
|
39
|
+
_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>]>>;
|
|
40
|
+
}, z.ZodTypeAny, "passthrough">>, ReferralCodeCouponIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdateReferralCodeCouponSchema: z.ZodObject<{
|
|
41
|
+
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
42
|
+
}, "strict", z.ZodTypeAny, {
|
|
43
|
+
[x: string]: any;
|
|
44
|
+
}, {
|
|
45
|
+
[x: string]: any;
|
|
46
|
+
}> | z.ZodObject<{
|
|
47
|
+
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_CODE>>;
|
|
48
|
+
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
49
|
+
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
50
|
+
code: z.ZodOptional<z.ZodString>;
|
|
51
|
+
_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>]>>;
|
|
52
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
53
|
+
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_CODE>>;
|
|
54
|
+
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
55
|
+
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
56
|
+
code: z.ZodOptional<z.ZodString>;
|
|
57
|
+
_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>]>>;
|
|
58
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
59
|
+
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_CODE>>;
|
|
60
|
+
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
61
|
+
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
62
|
+
code: z.ZodOptional<z.ZodString>;
|
|
63
|
+
_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>]>>;
|
|
64
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
65
|
+
/**
|
|
66
|
+
* Export schemas
|
|
67
|
+
*/
|
|
68
|
+
export { ReferralCodeCouponValidationSchema, ReferralCodeCouponSchema, ReferralCodeCouponIdSchema as ReferralCodeCouponIdValidationSchema, UpdateReferralCodeCouponSchema, };
|
|
69
|
+
/**
|
|
70
|
+
* Export DTO types
|
|
71
|
+
*/
|
|
72
|
+
export type CreateReferralCodeCouponDTO = DTO<typeof ReferralCodeCouponValidationSchema>;
|
|
73
|
+
export type ReferralCodeCouponDTO = DTO<typeof ReferralCodeCouponSchema>;
|
|
74
|
+
export type UpdateReferralCodeCouponDTO = DTO<typeof UpdateReferralCodeCouponSchema>;
|
|
75
|
+
//# sourceMappingURL=referral-code-coupon.validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"referral-code-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/referral-code-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAoB/D;;GAEG;AACH,QAAA,MACa,kCAAkC;;;;;;;;;;;;;;;IAChC,wBAAwB;;;;;;;;;;;;;;;;;;kCAC5B,0BAA0B,mNACtB,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;gCACO,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,kCAAkC,EAClC,wBAAwB,EACxB,0BAA0B,IAAI,oCAAoC,EAClE,8BAA8B,GAC9B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,GAAG,CAAC,OAAO,kCAAkC,CAAC,CAAC;AACzF,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACzE,MAAM,MAAM,2BAA2B,GAAG,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|