@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,359 @@
|
|
|
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 Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
8
|
+
marketingType: z.ZodLiteral<MarketingType.BUY1GET1>;
|
|
9
|
+
isEntireMenu: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
+
products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
+
product: 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>]>;
|
|
12
|
+
marketing: 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>]>>;
|
|
13
|
+
loyaltyPointCategory: 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>]>>;
|
|
14
|
+
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
15
|
+
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
16
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
product: import("mongoose").Types.ObjectId;
|
|
19
|
+
value?: number | undefined;
|
|
20
|
+
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
21
|
+
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
22
|
+
isBuy1Get1?: boolean | undefined;
|
|
23
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
product: string | import("mongoose").Types.ObjectId;
|
|
26
|
+
value?: number | undefined;
|
|
27
|
+
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
28
|
+
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
29
|
+
isBuy1Get1?: boolean | undefined;
|
|
30
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
31
|
+
}>, "many">>>;
|
|
32
|
+
spendLimit: z.ZodDefault<z.ZodNumber>;
|
|
33
|
+
isOnlyForSubscriber: z.ZodDefault<z.ZodBoolean>;
|
|
34
|
+
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>]>;
|
|
35
|
+
isAppliedByCompany: z.ZodBoolean;
|
|
36
|
+
duration: z.ZodObject<{
|
|
37
|
+
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>;
|
|
38
|
+
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>>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
start: Date;
|
|
41
|
+
end?: Date | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
start: string | Date;
|
|
44
|
+
end?: string | Date | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
|
|
47
|
+
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>>>>;
|
|
48
|
+
}, "strict", z.ZodTypeAny, {
|
|
49
|
+
isAppliedByCompany: boolean;
|
|
50
|
+
shop: import("mongoose").Types.ObjectId;
|
|
51
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
52
|
+
marketingType: MarketingType.BUY1GET1;
|
|
53
|
+
duration: {
|
|
54
|
+
start: Date;
|
|
55
|
+
end?: Date | undefined;
|
|
56
|
+
};
|
|
57
|
+
pausedAt: Date | null;
|
|
58
|
+
products: {
|
|
59
|
+
product: import("mongoose").Types.ObjectId;
|
|
60
|
+
value?: number | undefined;
|
|
61
|
+
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
62
|
+
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
63
|
+
isBuy1Get1?: boolean | undefined;
|
|
64
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
65
|
+
}[];
|
|
66
|
+
isEntireMenu: boolean;
|
|
67
|
+
spendLimit: number;
|
|
68
|
+
isOnlyForSubscriber: boolean;
|
|
69
|
+
}, {
|
|
70
|
+
isAppliedByCompany: boolean;
|
|
71
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
72
|
+
marketingType: MarketingType.BUY1GET1;
|
|
73
|
+
duration: {
|
|
74
|
+
start: string | Date;
|
|
75
|
+
end?: string | Date | undefined;
|
|
76
|
+
};
|
|
77
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
78
|
+
pausedAt?: string | Date | null | undefined;
|
|
79
|
+
products?: {
|
|
80
|
+
product: string | import("mongoose").Types.ObjectId;
|
|
81
|
+
value?: number | undefined;
|
|
82
|
+
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
83
|
+
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
84
|
+
isBuy1Get1?: boolean | undefined;
|
|
85
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
86
|
+
}[] | undefined;
|
|
87
|
+
isEntireMenu?: boolean | undefined;
|
|
88
|
+
spendLimit?: number | undefined;
|
|
89
|
+
isOnlyForSubscriber?: boolean | undefined;
|
|
90
|
+
}>, Buy1Get1MarketingSchema: z.ZodObject<{
|
|
91
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.BUY1GET1>>;
|
|
92
|
+
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
93
|
+
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
94
|
+
product: 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>]>;
|
|
95
|
+
marketing: 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>]>>;
|
|
96
|
+
loyaltyPointCategory: 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>]>>;
|
|
97
|
+
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
98
|
+
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
99
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
product: import("mongoose").Types.ObjectId;
|
|
102
|
+
value?: number | undefined;
|
|
103
|
+
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
104
|
+
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
105
|
+
isBuy1Get1?: boolean | undefined;
|
|
106
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
product: string | import("mongoose").Types.ObjectId;
|
|
109
|
+
value?: number | undefined;
|
|
110
|
+
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
111
|
+
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
112
|
+
isBuy1Get1?: boolean | undefined;
|
|
113
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
114
|
+
}>, "many">>>>;
|
|
115
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
116
|
+
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
117
|
+
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>]>>;
|
|
118
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
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>;
|
|
121
|
+
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>>;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
start: Date;
|
|
124
|
+
end?: Date | undefined;
|
|
125
|
+
}, {
|
|
126
|
+
start: string | Date;
|
|
127
|
+
end?: string | Date | undefined;
|
|
128
|
+
}>>;
|
|
129
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
130
|
+
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>>>>>;
|
|
131
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
132
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
133
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.BUY1GET1>>;
|
|
134
|
+
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
135
|
+
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
136
|
+
product: 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>]>;
|
|
137
|
+
marketing: 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>]>>;
|
|
138
|
+
loyaltyPointCategory: 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>]>>;
|
|
139
|
+
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
140
|
+
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
141
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
product: import("mongoose").Types.ObjectId;
|
|
144
|
+
value?: number | undefined;
|
|
145
|
+
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
146
|
+
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
147
|
+
isBuy1Get1?: boolean | undefined;
|
|
148
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
149
|
+
}, {
|
|
150
|
+
product: string | import("mongoose").Types.ObjectId;
|
|
151
|
+
value?: number | undefined;
|
|
152
|
+
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
153
|
+
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
154
|
+
isBuy1Get1?: boolean | undefined;
|
|
155
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
156
|
+
}>, "many">>>>;
|
|
157
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
158
|
+
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
159
|
+
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>]>>;
|
|
160
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
162
|
+
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>;
|
|
163
|
+
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>>;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
start: Date;
|
|
166
|
+
end?: Date | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
start: string | Date;
|
|
169
|
+
end?: string | Date | undefined;
|
|
170
|
+
}>>;
|
|
171
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
172
|
+
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>>>>>;
|
|
173
|
+
_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>]>>;
|
|
174
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
175
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.BUY1GET1>>;
|
|
176
|
+
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
177
|
+
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
178
|
+
product: 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>]>;
|
|
179
|
+
marketing: 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>]>>;
|
|
180
|
+
loyaltyPointCategory: 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>]>>;
|
|
181
|
+
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
182
|
+
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
183
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
product: import("mongoose").Types.ObjectId;
|
|
186
|
+
value?: number | undefined;
|
|
187
|
+
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
188
|
+
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
189
|
+
isBuy1Get1?: boolean | undefined;
|
|
190
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
191
|
+
}, {
|
|
192
|
+
product: string | import("mongoose").Types.ObjectId;
|
|
193
|
+
value?: number | undefined;
|
|
194
|
+
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
195
|
+
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
196
|
+
isBuy1Get1?: boolean | undefined;
|
|
197
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
198
|
+
}>, "many">>>>;
|
|
199
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
200
|
+
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
201
|
+
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>]>>;
|
|
202
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
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>;
|
|
205
|
+
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>>;
|
|
206
|
+
}, "strip", z.ZodTypeAny, {
|
|
207
|
+
start: Date;
|
|
208
|
+
end?: Date | undefined;
|
|
209
|
+
}, {
|
|
210
|
+
start: string | Date;
|
|
211
|
+
end?: string | Date | undefined;
|
|
212
|
+
}>>;
|
|
213
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
214
|
+
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>>>>>;
|
|
215
|
+
_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>]>>;
|
|
216
|
+
}, z.ZodTypeAny, "passthrough">>, Buy1Get1MarketingIdSchema: 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>]>, UpdateBuy1Get1MarketingSchema: z.ZodObject<{
|
|
217
|
+
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
218
|
+
}, "strict", z.ZodTypeAny, {
|
|
219
|
+
[x: string]: any;
|
|
220
|
+
}, {
|
|
221
|
+
[x: string]: any;
|
|
222
|
+
}> | z.ZodObject<{
|
|
223
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.BUY1GET1>>;
|
|
224
|
+
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
225
|
+
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
226
|
+
product: 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>]>;
|
|
227
|
+
marketing: 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>]>>;
|
|
228
|
+
loyaltyPointCategory: 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>]>>;
|
|
229
|
+
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
230
|
+
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
231
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
product: import("mongoose").Types.ObjectId;
|
|
234
|
+
value?: number | undefined;
|
|
235
|
+
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
236
|
+
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
237
|
+
isBuy1Get1?: boolean | undefined;
|
|
238
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
239
|
+
}, {
|
|
240
|
+
product: string | import("mongoose").Types.ObjectId;
|
|
241
|
+
value?: number | undefined;
|
|
242
|
+
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
243
|
+
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
244
|
+
isBuy1Get1?: boolean | undefined;
|
|
245
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
246
|
+
}>, "many">>>>;
|
|
247
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
248
|
+
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
249
|
+
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>]>>;
|
|
250
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
251
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
252
|
+
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>;
|
|
253
|
+
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>>;
|
|
254
|
+
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
start: Date;
|
|
256
|
+
end?: Date | undefined;
|
|
257
|
+
}, {
|
|
258
|
+
start: string | Date;
|
|
259
|
+
end?: string | Date | undefined;
|
|
260
|
+
}>>;
|
|
261
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
262
|
+
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>>>>>;
|
|
263
|
+
_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>]>>;
|
|
264
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
265
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.BUY1GET1>>;
|
|
266
|
+
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
267
|
+
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
268
|
+
product: 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>]>;
|
|
269
|
+
marketing: 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>]>>;
|
|
270
|
+
loyaltyPointCategory: 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>]>>;
|
|
271
|
+
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
272
|
+
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
273
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
product: import("mongoose").Types.ObjectId;
|
|
276
|
+
value?: number | undefined;
|
|
277
|
+
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
278
|
+
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
279
|
+
isBuy1Get1?: boolean | undefined;
|
|
280
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
281
|
+
}, {
|
|
282
|
+
product: string | import("mongoose").Types.ObjectId;
|
|
283
|
+
value?: number | undefined;
|
|
284
|
+
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
285
|
+
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
286
|
+
isBuy1Get1?: boolean | undefined;
|
|
287
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
288
|
+
}>, "many">>>>;
|
|
289
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
290
|
+
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
291
|
+
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>]>>;
|
|
292
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
293
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
294
|
+
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>;
|
|
295
|
+
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>>;
|
|
296
|
+
}, "strip", z.ZodTypeAny, {
|
|
297
|
+
start: Date;
|
|
298
|
+
end?: Date | undefined;
|
|
299
|
+
}, {
|
|
300
|
+
start: string | Date;
|
|
301
|
+
end?: string | Date | undefined;
|
|
302
|
+
}>>;
|
|
303
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
304
|
+
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>>>>>;
|
|
305
|
+
_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>]>>;
|
|
306
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
307
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.BUY1GET1>>;
|
|
308
|
+
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
309
|
+
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
310
|
+
product: 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>]>;
|
|
311
|
+
marketing: 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>]>>;
|
|
312
|
+
loyaltyPointCategory: 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>]>>;
|
|
313
|
+
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
314
|
+
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
315
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
|
317
|
+
product: import("mongoose").Types.ObjectId;
|
|
318
|
+
value?: number | undefined;
|
|
319
|
+
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
320
|
+
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
321
|
+
isBuy1Get1?: boolean | undefined;
|
|
322
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
323
|
+
}, {
|
|
324
|
+
product: string | import("mongoose").Types.ObjectId;
|
|
325
|
+
value?: number | undefined;
|
|
326
|
+
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
327
|
+
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
328
|
+
isBuy1Get1?: boolean | undefined;
|
|
329
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
330
|
+
}>, "many">>>>;
|
|
331
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
332
|
+
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
333
|
+
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>]>>;
|
|
334
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
335
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
336
|
+
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>;
|
|
337
|
+
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>>;
|
|
338
|
+
}, "strip", z.ZodTypeAny, {
|
|
339
|
+
start: Date;
|
|
340
|
+
end?: Date | undefined;
|
|
341
|
+
}, {
|
|
342
|
+
start: string | Date;
|
|
343
|
+
end?: string | Date | undefined;
|
|
344
|
+
}>>;
|
|
345
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
346
|
+
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>>>>>;
|
|
347
|
+
_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>]>>;
|
|
348
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
349
|
+
/**
|
|
350
|
+
* Export schemas
|
|
351
|
+
*/
|
|
352
|
+
export { Buy1Get1MarketingValidationSchema, Buy1Get1MarketingSchema, Buy1Get1MarketingIdSchema as Buy1Get1MarketingIdValidationSchema, UpdateBuy1Get1MarketingSchema, };
|
|
353
|
+
/**
|
|
354
|
+
* Export DTO types
|
|
355
|
+
*/
|
|
356
|
+
export type CreateBuy1Get1MarketingDTO = DTO<typeof Buy1Get1MarketingValidationSchema>;
|
|
357
|
+
export type Buy1Get1MarketingDTO = DTO<typeof Buy1Get1MarketingSchema>;
|
|
358
|
+
export type UpdateBuy1Get1MarketingDTO = DTO<typeof UpdateBuy1Get1MarketingSchema>;
|
|
359
|
+
//# sourceMappingURL=buy1-get1-marketing.validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buy1-get1-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/buy1-get1-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;AAsBlE;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,iCAAiC,EACjC,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"}
|