@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,233 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
|
|
3
|
+
import { MarketingType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
4
|
+
/**
|
|
5
|
+
* Get all schemas for the Parent entity
|
|
6
|
+
*/
|
|
7
|
+
declare const FeaturedMarketingValidationSchema: z.ZodObject<{
|
|
8
|
+
marketingType: z.ZodLiteral<MarketingType.FEATURED>;
|
|
9
|
+
amount: z.ZodNumber;
|
|
10
|
+
shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
11
|
+
isAppliedByCompany: z.ZodBoolean;
|
|
12
|
+
duration: z.ZodObject<{
|
|
13
|
+
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
14
|
+
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>>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
start: Date;
|
|
17
|
+
end?: Date | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
start: string | Date;
|
|
20
|
+
end?: string | Date | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
|
|
23
|
+
pausedAt: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>;
|
|
24
|
+
}, "strict", z.ZodTypeAny, {
|
|
25
|
+
isAppliedByCompany: boolean;
|
|
26
|
+
shop: import("mongoose").Types.ObjectId;
|
|
27
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
28
|
+
marketingType: MarketingType.FEATURED;
|
|
29
|
+
duration: {
|
|
30
|
+
start: Date;
|
|
31
|
+
end?: Date | undefined;
|
|
32
|
+
};
|
|
33
|
+
pausedAt: Date | null;
|
|
34
|
+
amount: number;
|
|
35
|
+
}, {
|
|
36
|
+
isAppliedByCompany: boolean;
|
|
37
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
38
|
+
marketingType: MarketingType.FEATURED;
|
|
39
|
+
duration: {
|
|
40
|
+
start: string | Date;
|
|
41
|
+
end?: string | Date | undefined;
|
|
42
|
+
};
|
|
43
|
+
amount: number;
|
|
44
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
45
|
+
pausedAt?: string | Date | null | undefined;
|
|
46
|
+
}>, FeaturedMarketingSchema: z.ZodObject<{
|
|
47
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
|
|
48
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
50
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
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>;
|
|
53
|
+
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>>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
start: Date;
|
|
56
|
+
end?: Date | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
start: string | Date;
|
|
59
|
+
end?: string | Date | undefined;
|
|
60
|
+
}>>;
|
|
61
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
62
|
+
pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
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
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
65
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
|
|
66
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
68
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
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>;
|
|
71
|
+
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>>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
start: Date;
|
|
74
|
+
end?: Date | undefined;
|
|
75
|
+
}, {
|
|
76
|
+
start: string | Date;
|
|
77
|
+
end?: string | Date | undefined;
|
|
78
|
+
}>>;
|
|
79
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
80
|
+
pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
81
|
+
_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>]>>;
|
|
82
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
83
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
|
|
84
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
86
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
duration: z.ZodOptional<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
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
98
|
+
pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
99
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
100
|
+
}, z.ZodTypeAny, "passthrough">>, FeaturedMarketingIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdateFeaturedMarketingSchema: z.ZodObject<{
|
|
101
|
+
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
102
|
+
}, "strict", z.ZodTypeAny, {
|
|
103
|
+
[x: string]: any;
|
|
104
|
+
}, {
|
|
105
|
+
[x: string]: any;
|
|
106
|
+
}> | z.ZodObject<{
|
|
107
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
|
|
108
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
110
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
112
|
+
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>;
|
|
113
|
+
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>>;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
start: Date;
|
|
116
|
+
end?: Date | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
start: string | Date;
|
|
119
|
+
end?: string | Date | undefined;
|
|
120
|
+
}>>;
|
|
121
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
122
|
+
pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
123
|
+
_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>]>>;
|
|
124
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
125
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
|
|
126
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
127
|
+
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
128
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
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>;
|
|
131
|
+
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>>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
start: Date;
|
|
134
|
+
end?: Date | undefined;
|
|
135
|
+
}, {
|
|
136
|
+
start: string | Date;
|
|
137
|
+
end?: string | Date | undefined;
|
|
138
|
+
}>>;
|
|
139
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
140
|
+
pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
141
|
+
_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>]>>;
|
|
142
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
143
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
|
|
144
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
146
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
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>;
|
|
149
|
+
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>>;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
start: Date;
|
|
152
|
+
end?: Date | undefined;
|
|
153
|
+
}, {
|
|
154
|
+
start: string | Date;
|
|
155
|
+
end?: string | Date | undefined;
|
|
156
|
+
}>>;
|
|
157
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
158
|
+
pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
159
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
160
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
161
|
+
declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject<{
|
|
162
|
+
marketingType: z.ZodLiteral<MarketingType.FEATURED>;
|
|
163
|
+
amount: z.ZodNumber;
|
|
164
|
+
shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
165
|
+
isAppliedByCompany: z.ZodBoolean;
|
|
166
|
+
duration: z.ZodObject<{
|
|
167
|
+
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>;
|
|
168
|
+
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>>;
|
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
|
170
|
+
start: Date;
|
|
171
|
+
end?: Date | undefined;
|
|
172
|
+
}, {
|
|
173
|
+
start: string | Date;
|
|
174
|
+
end?: string | Date | undefined;
|
|
175
|
+
}>;
|
|
176
|
+
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
|
|
177
|
+
pausedAt: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>;
|
|
178
|
+
}, "strict", z.ZodTypeAny, {
|
|
179
|
+
isAppliedByCompany: boolean;
|
|
180
|
+
shop: import("mongoose").Types.ObjectId;
|
|
181
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
182
|
+
marketingType: MarketingType.FEATURED;
|
|
183
|
+
duration: {
|
|
184
|
+
start: Date;
|
|
185
|
+
end?: Date | undefined;
|
|
186
|
+
};
|
|
187
|
+
pausedAt: Date | null;
|
|
188
|
+
amount: number;
|
|
189
|
+
}, {
|
|
190
|
+
isAppliedByCompany: boolean;
|
|
191
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
192
|
+
marketingType: MarketingType.FEATURED;
|
|
193
|
+
duration: {
|
|
194
|
+
start: string | Date;
|
|
195
|
+
end?: string | Date | undefined;
|
|
196
|
+
};
|
|
197
|
+
amount: number;
|
|
198
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
199
|
+
pausedAt?: string | Date | null | undefined;
|
|
200
|
+
}>, {
|
|
201
|
+
isAppliedByCompany: boolean;
|
|
202
|
+
shop: import("mongoose").Types.ObjectId;
|
|
203
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
204
|
+
marketingType: MarketingType.FEATURED;
|
|
205
|
+
duration: {
|
|
206
|
+
start: Date;
|
|
207
|
+
end?: Date | undefined;
|
|
208
|
+
};
|
|
209
|
+
pausedAt: Date | null;
|
|
210
|
+
amount: number;
|
|
211
|
+
}, {
|
|
212
|
+
isAppliedByCompany: boolean;
|
|
213
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
214
|
+
marketingType: MarketingType.FEATURED;
|
|
215
|
+
duration: {
|
|
216
|
+
start: string | Date;
|
|
217
|
+
end?: string | Date | undefined;
|
|
218
|
+
};
|
|
219
|
+
amount: number;
|
|
220
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
221
|
+
pausedAt?: string | Date | null | undefined;
|
|
222
|
+
}>;
|
|
223
|
+
/**
|
|
224
|
+
* Export schemas
|
|
225
|
+
*/
|
|
226
|
+
export { FeaturedMarketingValidationSchemaRefined as FeaturedMarketingValidationSchema, FeaturedMarketingSchema, FeaturedMarketingIdSchema as FeaturedMarketingIdValidationSchema, UpdateFeaturedMarketingSchema, };
|
|
227
|
+
/**
|
|
228
|
+
* Export DTO types
|
|
229
|
+
*/
|
|
230
|
+
export type CreateFeaturedMarketingDTO = DTO<typeof FeaturedMarketingValidationSchema>;
|
|
231
|
+
export type FeaturedMarketingDTO = DTO<typeof FeaturedMarketingSchema>;
|
|
232
|
+
export type UpdateFeaturedMarketingDTO = DTO<typeof UpdateFeaturedMarketingSchema>;
|
|
233
|
+
//# sourceMappingURL=featured-marketing.validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featured-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/featured-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAmBlE;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsB7C,CAAC;AAEF;;GAEG;AACH,OAAO,EACN,wCAAwC,IAAI,iCAAiC,EAC7E,uBAAuB,EACvB,yBAAyB,IAAI,mCAAmC,EAChE,6BAA6B,GAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACvF,MAAM,MAAM,oBAAoB,GAAG,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACvE,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
|
|
3
|
+
import { MarketingType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
4
|
+
/**
|
|
5
|
+
* Get all schemas for the Parent entity
|
|
6
|
+
*/
|
|
7
|
+
declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
8
|
+
marketingType: z.ZodLiteral<MarketingType.FREE_DELIVERY>;
|
|
9
|
+
spendLimit: z.ZodDefault<z.ZodNumber>;
|
|
10
|
+
shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
11
|
+
isAppliedByCompany: z.ZodBoolean;
|
|
12
|
+
duration: z.ZodObject<{
|
|
13
|
+
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
14
|
+
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>>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
start: Date;
|
|
17
|
+
end?: Date | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
start: string | Date;
|
|
20
|
+
end?: string | Date | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
|
|
23
|
+
pausedAt: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>;
|
|
24
|
+
}, "strict", z.ZodTypeAny, {
|
|
25
|
+
isAppliedByCompany: boolean;
|
|
26
|
+
shop: import("mongoose").Types.ObjectId;
|
|
27
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
28
|
+
marketingType: MarketingType.FREE_DELIVERY;
|
|
29
|
+
duration: {
|
|
30
|
+
start: Date;
|
|
31
|
+
end?: Date | undefined;
|
|
32
|
+
};
|
|
33
|
+
pausedAt: Date | null;
|
|
34
|
+
spendLimit: number;
|
|
35
|
+
}, {
|
|
36
|
+
isAppliedByCompany: boolean;
|
|
37
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
38
|
+
marketingType: MarketingType.FREE_DELIVERY;
|
|
39
|
+
duration: {
|
|
40
|
+
start: string | Date;
|
|
41
|
+
end?: string | Date | undefined;
|
|
42
|
+
};
|
|
43
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
44
|
+
pausedAt?: string | Date | null | undefined;
|
|
45
|
+
spendLimit?: number | undefined;
|
|
46
|
+
}>, FreeDeliveryMarketingSchema: z.ZodObject<{
|
|
47
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
48
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
49
|
+
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
50
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
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>;
|
|
53
|
+
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>>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
start: Date;
|
|
56
|
+
end?: Date | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
start: string | Date;
|
|
59
|
+
end?: string | Date | undefined;
|
|
60
|
+
}>>;
|
|
61
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
62
|
+
pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
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
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
65
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
66
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
67
|
+
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
68
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
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>;
|
|
71
|
+
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>>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
start: Date;
|
|
74
|
+
end?: Date | undefined;
|
|
75
|
+
}, {
|
|
76
|
+
start: string | Date;
|
|
77
|
+
end?: string | Date | undefined;
|
|
78
|
+
}>>;
|
|
79
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
80
|
+
pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
81
|
+
_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>]>>;
|
|
82
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
83
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
84
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
85
|
+
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
86
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
duration: z.ZodOptional<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
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
98
|
+
pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
99
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
100
|
+
}, z.ZodTypeAny, "passthrough">>, FreeDeliveryMarketingIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdateFreeDeliveryMarketingSchema: z.ZodObject<{
|
|
101
|
+
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
102
|
+
}, "strict", z.ZodTypeAny, {
|
|
103
|
+
[x: string]: any;
|
|
104
|
+
}, {
|
|
105
|
+
[x: string]: any;
|
|
106
|
+
}> | z.ZodObject<{
|
|
107
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
108
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
109
|
+
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
110
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
112
|
+
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>;
|
|
113
|
+
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>>;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
start: Date;
|
|
116
|
+
end?: Date | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
start: string | Date;
|
|
119
|
+
end?: string | Date | undefined;
|
|
120
|
+
}>>;
|
|
121
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
122
|
+
pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
123
|
+
_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>]>>;
|
|
124
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
125
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
126
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
127
|
+
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
128
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
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>;
|
|
131
|
+
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>>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
start: Date;
|
|
134
|
+
end?: Date | undefined;
|
|
135
|
+
}, {
|
|
136
|
+
start: string | Date;
|
|
137
|
+
end?: string | Date | undefined;
|
|
138
|
+
}>>;
|
|
139
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
140
|
+
pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
141
|
+
_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>]>>;
|
|
142
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
143
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
144
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
145
|
+
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
146
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
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>;
|
|
149
|
+
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>>;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
start: Date;
|
|
152
|
+
end?: Date | undefined;
|
|
153
|
+
}, {
|
|
154
|
+
start: string | Date;
|
|
155
|
+
end?: string | Date | undefined;
|
|
156
|
+
}>>;
|
|
157
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
158
|
+
pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
159
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
160
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
161
|
+
/**
|
|
162
|
+
* Export schemas
|
|
163
|
+
*/
|
|
164
|
+
export { FreeDeliveryMarketingValidationSchema, FreeDeliveryMarketingSchema, FreeDeliveryMarketingIdSchema as FreeDeliveryMarketingIdValidationSchema, UpdateFreeDeliveryMarketingSchema, };
|
|
165
|
+
/**
|
|
166
|
+
* Export DTO types
|
|
167
|
+
*/
|
|
168
|
+
export type CreateFreeDeliveryMarketingDTO = DTO<typeof FreeDeliveryMarketingValidationSchema>;
|
|
169
|
+
export type FreeDeliveryMarketingDTO = DTO<typeof FreeDeliveryMarketingSchema>;
|
|
170
|
+
export type UpdateFreeDeliveryMarketingDTO = DTO<typeof UpdateFreeDeliveryMarketingSchema>;
|
|
171
|
+
//# sourceMappingURL=free-delivery-marketing.validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"free-delivery-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/free-delivery-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAkBlE;;GAEG;AACH,QAAA,MACa,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACnC,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC/B,6BAA6B,mNACzB,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACI,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,qCAAqC,EACrC,2BAA2B,EAC3B,6BAA6B,IAAI,uCAAuC,EACxE,iCAAiC,GACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAC/F,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './buy1-get1-marketing.validation';
|
|
2
|
+
export * from './discount-marketing.validation';
|
|
3
|
+
export * from './featured-marketing.validation';
|
|
4
|
+
export * from './free-delivery-marketing.validation';
|
|
5
|
+
export * from './loyalty-point-marketing.validation';
|
|
6
|
+
export * from './punch-marketing.validation';
|
|
7
|
+
export * from './product-marketing.validation';
|
|
8
|
+
export * from './marketing.validation';
|
|
9
|
+
export * from './all-marketings.validation';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
|