@lyxa.ai/marketing 1.0.24 → 1.0.26-test-01
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.d.ts +1302 -38
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +1307 -43
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +21 -0
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +7 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +229 -41
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/custom-coupon.service.js +6 -2
- package/dist/lib/modules/coupon/services/custom-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.js +6 -2
- package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/index.d.ts +1 -0
- package/dist/lib/modules/coupon/services/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/index.js +1 -0
- package/dist/lib/modules/coupon/services/index.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.js +7 -3
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +6 -2
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts +1 -0
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js +11 -0
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +6 -2
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts +14 -0
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -0
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js +139 -0
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js.map +1 -0
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts +51 -1
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +973 -27
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js +2 -0
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +11 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +5 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/index.d.ts +1 -0
- package/dist/lib/modules/coupon/validations/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/index.js +1 -0
- package/dist/lib/modules/coupon/validations/index.js.map +1 -1
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts +10 -19
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.js +2 -3
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.d.ts +439 -0
- package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.d.ts.map +1 -0
- package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.js +22 -0
- package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.js.map +1 -0
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +2 -1
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/types/index.d.ts +1302 -38
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +1307 -43
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +7 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/index.d.ts +1 -0
- package/dist/types/modules/coupon/services/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts +1 -0
- package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts +23 -0
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +51 -1
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +973 -27
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +11 -0
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/index.d.ts +1 -0
- package/dist/types/modules/coupon/validations/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +10 -19
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/shops-categories-coupon.validation.d.ts +448 -0
- package/dist/types/modules/coupon/validations/shops-categories-coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/lib/modules/loyalty-point-setting/routers/index.d.ts +0 -2
- package/dist/lib/modules/loyalty-point-setting/routers/index.d.ts.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/routers/index.js +0 -18
- package/dist/lib/modules/loyalty-point-setting/routers/index.js.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts +0 -321
- package/dist/lib/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/routers/loyalty-point-setting.router.js +0 -82
- package/dist/lib/modules/loyalty-point-setting/routers/loyalty-point-setting.router.js.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/services/index.d.ts +0 -3
- package/dist/lib/modules/loyalty-point-setting/services/index.d.ts.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/services/index.js +0 -19
- package/dist/lib/modules/loyalty-point-setting/services/index.js.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-category.service.d.ts +0 -16
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-category.service.d.ts.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-category.service.js +0 -133
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-category.service.js.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts +0 -16
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-setting.service.js +0 -156
- package/dist/lib/modules/loyalty-point-setting/services/loyalty-point-setting.service.js.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/transformers/index.d.ts +0 -3
- package/dist/lib/modules/loyalty-point-setting/transformers/index.d.ts.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/transformers/index.js +0 -19
- package/dist/lib/modules/loyalty-point-setting/transformers/index.js.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts +0 -8
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.js +0 -7
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.js.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.d.ts +0 -9
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.d.ts.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.js +0 -7
- package/dist/lib/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.js.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/validations/index.d.ts +0 -3
- package/dist/lib/modules/loyalty-point-setting/validations/index.d.ts.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/validations/index.js +0 -19
- package/dist/lib/modules/loyalty-point-setting/validations/index.js.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts +0 -170
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-category.validation.js +0 -19
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-category.validation.js.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts +0 -188
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts.map +0 -1
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.js +0 -19
- package/dist/lib/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.js.map +0 -1
- package/dist/lib/modules/marketing/services/loyalty-point-marketing.service.d.ts +0 -12
- package/dist/lib/modules/marketing/services/loyalty-point-marketing.service.d.ts.map +0 -1
- package/dist/lib/modules/marketing/services/loyalty-point-marketing.service.js +0 -149
- package/dist/lib/modules/marketing/services/loyalty-point-marketing.service.js.map +0 -1
- package/dist/lib/modules/marketing/transformers/loyalty-point-marketing.transformer.d.ts +0 -47
- package/dist/lib/modules/marketing/transformers/loyalty-point-marketing.transformer.d.ts.map +0 -1
- package/dist/lib/modules/marketing/transformers/loyalty-point-marketing.transformer.js +0 -7
- package/dist/lib/modules/marketing/transformers/loyalty-point-marketing.transformer.js.map +0 -1
- package/dist/lib/modules/marketing/validations/loyalty-point-marketing.validation.d.ts +0 -504
- package/dist/lib/modules/marketing/validations/loyalty-point-marketing.validation.d.ts.map +0 -1
- package/dist/lib/modules/marketing/validations/loyalty-point-marketing.validation.js +0 -34
- package/dist/lib/modules/marketing/validations/loyalty-point-marketing.validation.js.map +0 -1
- package/dist/types/modules/loyalty-point-setting/routers/index.d.ts +0 -2
- package/dist/types/modules/loyalty-point-setting/routers/index.d.ts.map +0 -1
- package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts +0 -321
- package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts.map +0 -1
- package/dist/types/modules/loyalty-point-setting/services/index.d.ts +0 -3
- package/dist/types/modules/loyalty-point-setting/services/index.d.ts.map +0 -1
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-category.service.d.ts +0 -37
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-category.service.d.ts.map +0 -1
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts +0 -34
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts.map +0 -1
- package/dist/types/modules/loyalty-point-setting/transformers/index.d.ts +0 -3
- package/dist/types/modules/loyalty-point-setting/transformers/index.d.ts.map +0 -1
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts +0 -8
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts.map +0 -1
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.d.ts +0 -9
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.d.ts.map +0 -1
- package/dist/types/modules/loyalty-point-setting/validations/index.d.ts +0 -3
- package/dist/types/modules/loyalty-point-setting/validations/index.d.ts.map +0 -1
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts +0 -179
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts.map +0 -1
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts +0 -197
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts.map +0 -1
- package/dist/types/modules/marketing/services/loyalty-point-marketing.service.d.ts +0 -21
- package/dist/types/modules/marketing/services/loyalty-point-marketing.service.d.ts.map +0 -1
- package/dist/types/modules/marketing/transformers/loyalty-point-marketing.transformer.d.ts +0 -47
- package/dist/types/modules/marketing/transformers/loyalty-point-marketing.transformer.d.ts.map +0 -1
- package/dist/types/modules/marketing/validations/loyalty-point-marketing.validation.d.ts +0 -513
- package/dist/types/modules/marketing/validations/loyalty-point-marketing.validation.d.ts.map +0 -1
|
@@ -1,504 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
|
|
3
|
-
import { MarketingType, ValueType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
4
|
-
declare const LoyaltyPointMarketingValidationSchema: z.ZodObject<{
|
|
5
|
-
marketingType: z.ZodLiteral<MarketingType.LOYALTY_POINT>;
|
|
6
|
-
isEntireMenu: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
-
valueType: z.ZodNativeEnum<typeof ValueType>;
|
|
8
|
-
value: z.ZodNumber;
|
|
9
|
-
category: 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>]>;
|
|
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 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?: 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?: ValueType | null | undefined;
|
|
31
|
-
}>, "many">>>;
|
|
32
|
-
spendLimit: z.ZodDefault<z.ZodNumber>;
|
|
33
|
-
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>]>;
|
|
34
|
-
isAppliedByCompany: z.ZodBoolean;
|
|
35
|
-
duration: z.ZodObject<{
|
|
36
|
-
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>;
|
|
37
|
-
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>>;
|
|
38
|
-
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
start: Date;
|
|
40
|
-
end?: Date | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
start: string | Date;
|
|
43
|
-
end?: string | Date | undefined;
|
|
44
|
-
}>;
|
|
45
|
-
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
|
|
46
|
-
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>>>>;
|
|
47
|
-
}, "strict", z.ZodTypeAny, {
|
|
48
|
-
isAppliedByCompany: boolean;
|
|
49
|
-
shop: import("mongoose").Types.ObjectId;
|
|
50
|
-
value: number;
|
|
51
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
52
|
-
marketingType: MarketingType.LOYALTY_POINT;
|
|
53
|
-
duration: {
|
|
54
|
-
start: Date;
|
|
55
|
-
end?: Date | undefined;
|
|
56
|
-
};
|
|
57
|
-
pausedAt: Date | null;
|
|
58
|
-
valueType: ValueType;
|
|
59
|
-
products: {
|
|
60
|
-
product: import("mongoose").Types.ObjectId;
|
|
61
|
-
value?: number | undefined;
|
|
62
|
-
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
63
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
64
|
-
isBuy1Get1?: boolean | undefined;
|
|
65
|
-
valueType?: ValueType | null | undefined;
|
|
66
|
-
}[];
|
|
67
|
-
isEntireMenu: boolean;
|
|
68
|
-
spendLimit: number;
|
|
69
|
-
category: import("mongoose").Types.ObjectId;
|
|
70
|
-
}, {
|
|
71
|
-
isAppliedByCompany: boolean;
|
|
72
|
-
shop: string | import("mongoose").Types.ObjectId;
|
|
73
|
-
value: number;
|
|
74
|
-
marketingType: MarketingType.LOYALTY_POINT;
|
|
75
|
-
duration: {
|
|
76
|
-
start: string | Date;
|
|
77
|
-
end?: string | Date | undefined;
|
|
78
|
-
};
|
|
79
|
-
valueType: ValueType;
|
|
80
|
-
category: string | import("mongoose").Types.ObjectId;
|
|
81
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
82
|
-
pausedAt?: string | Date | null | undefined;
|
|
83
|
-
products?: {
|
|
84
|
-
product: string | import("mongoose").Types.ObjectId;
|
|
85
|
-
value?: number | undefined;
|
|
86
|
-
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
87
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
88
|
-
isBuy1Get1?: boolean | undefined;
|
|
89
|
-
valueType?: ValueType | null | undefined;
|
|
90
|
-
}[] | undefined;
|
|
91
|
-
isEntireMenu?: boolean | undefined;
|
|
92
|
-
spendLimit?: number | undefined;
|
|
93
|
-
}>, LoyaltyPointMarketingSchema: z.ZodObject<{
|
|
94
|
-
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.LOYALTY_POINT>>;
|
|
95
|
-
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
96
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
|
|
97
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
98
|
-
category: 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>]>>;
|
|
99
|
-
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
|
-
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>]>;
|
|
101
|
-
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>]>>;
|
|
102
|
-
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>]>>;
|
|
103
|
-
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
104
|
-
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
105
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
106
|
-
}, "strip", z.ZodTypeAny, {
|
|
107
|
-
product: import("mongoose").Types.ObjectId;
|
|
108
|
-
value?: number | undefined;
|
|
109
|
-
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
110
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
111
|
-
isBuy1Get1?: boolean | undefined;
|
|
112
|
-
valueType?: ValueType | null | undefined;
|
|
113
|
-
}, {
|
|
114
|
-
product: string | import("mongoose").Types.ObjectId;
|
|
115
|
-
value?: number | undefined;
|
|
116
|
-
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
117
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
118
|
-
isBuy1Get1?: boolean | undefined;
|
|
119
|
-
valueType?: ValueType | null | undefined;
|
|
120
|
-
}>, "many">>>>;
|
|
121
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
122
|
-
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>]>>;
|
|
123
|
-
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
-
duration: z.ZodOptional<z.ZodObject<{
|
|
125
|
-
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>;
|
|
126
|
-
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>>;
|
|
127
|
-
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
start: Date;
|
|
129
|
-
end?: Date | undefined;
|
|
130
|
-
}, {
|
|
131
|
-
start: string | Date;
|
|
132
|
-
end?: string | Date | undefined;
|
|
133
|
-
}>>;
|
|
134
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
135
|
-
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>>>>>;
|
|
136
|
-
_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>]>>;
|
|
137
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
138
|
-
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.LOYALTY_POINT>>;
|
|
139
|
-
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
140
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
|
|
141
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
142
|
-
category: 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>]>>;
|
|
143
|
-
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
144
|
-
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>]>;
|
|
145
|
-
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>]>>;
|
|
146
|
-
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>]>>;
|
|
147
|
-
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
148
|
-
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
149
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
150
|
-
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
product: import("mongoose").Types.ObjectId;
|
|
152
|
-
value?: number | undefined;
|
|
153
|
-
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
154
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
155
|
-
isBuy1Get1?: boolean | undefined;
|
|
156
|
-
valueType?: ValueType | null | undefined;
|
|
157
|
-
}, {
|
|
158
|
-
product: string | import("mongoose").Types.ObjectId;
|
|
159
|
-
value?: number | undefined;
|
|
160
|
-
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
161
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
162
|
-
isBuy1Get1?: boolean | undefined;
|
|
163
|
-
valueType?: ValueType | null | undefined;
|
|
164
|
-
}>, "many">>>>;
|
|
165
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
166
|
-
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>]>>;
|
|
167
|
-
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
-
duration: z.ZodOptional<z.ZodObject<{
|
|
169
|
-
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>;
|
|
170
|
-
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>>;
|
|
171
|
-
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
start: Date;
|
|
173
|
-
end?: Date | undefined;
|
|
174
|
-
}, {
|
|
175
|
-
start: string | Date;
|
|
176
|
-
end?: string | Date | undefined;
|
|
177
|
-
}>>;
|
|
178
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
179
|
-
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>>>>>;
|
|
180
|
-
_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>]>>;
|
|
181
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
182
|
-
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.LOYALTY_POINT>>;
|
|
183
|
-
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
184
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
|
|
185
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
186
|
-
category: 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>]>>;
|
|
187
|
-
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
188
|
-
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>]>;
|
|
189
|
-
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>]>>;
|
|
190
|
-
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>]>>;
|
|
191
|
-
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
192
|
-
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
193
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
194
|
-
}, "strip", z.ZodTypeAny, {
|
|
195
|
-
product: import("mongoose").Types.ObjectId;
|
|
196
|
-
value?: number | undefined;
|
|
197
|
-
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
198
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
199
|
-
isBuy1Get1?: boolean | undefined;
|
|
200
|
-
valueType?: ValueType | null | undefined;
|
|
201
|
-
}, {
|
|
202
|
-
product: string | import("mongoose").Types.ObjectId;
|
|
203
|
-
value?: number | undefined;
|
|
204
|
-
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
205
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
206
|
-
isBuy1Get1?: boolean | undefined;
|
|
207
|
-
valueType?: ValueType | null | undefined;
|
|
208
|
-
}>, "many">>>>;
|
|
209
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
210
|
-
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>]>>;
|
|
211
|
-
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
-
duration: z.ZodOptional<z.ZodObject<{
|
|
213
|
-
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>;
|
|
214
|
-
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>>;
|
|
215
|
-
}, "strip", z.ZodTypeAny, {
|
|
216
|
-
start: Date;
|
|
217
|
-
end?: Date | undefined;
|
|
218
|
-
}, {
|
|
219
|
-
start: string | Date;
|
|
220
|
-
end?: string | Date | undefined;
|
|
221
|
-
}>>;
|
|
222
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
223
|
-
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>>>>>;
|
|
224
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
225
|
-
}, z.ZodTypeAny, "passthrough">>, LoyaltyPointMarketingIdSchema: 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>]>, UpdateLoyaltyPointMarketingSchema: z.ZodObject<{
|
|
226
|
-
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
227
|
-
}, "strict", z.ZodTypeAny, {
|
|
228
|
-
[x: string]: any;
|
|
229
|
-
}, {
|
|
230
|
-
[x: string]: any;
|
|
231
|
-
}> | z.ZodObject<{
|
|
232
|
-
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.LOYALTY_POINT>>;
|
|
233
|
-
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
234
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
|
|
235
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
236
|
-
category: 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>]>>;
|
|
237
|
-
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
238
|
-
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>]>;
|
|
239
|
-
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>]>>;
|
|
240
|
-
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>]>>;
|
|
241
|
-
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
242
|
-
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
243
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
244
|
-
}, "strip", z.ZodTypeAny, {
|
|
245
|
-
product: import("mongoose").Types.ObjectId;
|
|
246
|
-
value?: number | undefined;
|
|
247
|
-
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
248
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
249
|
-
isBuy1Get1?: boolean | undefined;
|
|
250
|
-
valueType?: ValueType | null | undefined;
|
|
251
|
-
}, {
|
|
252
|
-
product: string | import("mongoose").Types.ObjectId;
|
|
253
|
-
value?: number | undefined;
|
|
254
|
-
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
255
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
256
|
-
isBuy1Get1?: boolean | undefined;
|
|
257
|
-
valueType?: ValueType | null | undefined;
|
|
258
|
-
}>, "many">>>>;
|
|
259
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
260
|
-
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>]>>;
|
|
261
|
-
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
-
duration: z.ZodOptional<z.ZodObject<{
|
|
263
|
-
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>;
|
|
264
|
-
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>>;
|
|
265
|
-
}, "strip", z.ZodTypeAny, {
|
|
266
|
-
start: Date;
|
|
267
|
-
end?: Date | undefined;
|
|
268
|
-
}, {
|
|
269
|
-
start: string | Date;
|
|
270
|
-
end?: string | Date | undefined;
|
|
271
|
-
}>>;
|
|
272
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
273
|
-
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>>>>>;
|
|
274
|
-
_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>]>>;
|
|
275
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
276
|
-
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.LOYALTY_POINT>>;
|
|
277
|
-
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
278
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
|
|
279
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
280
|
-
category: 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>]>>;
|
|
281
|
-
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
282
|
-
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>]>;
|
|
283
|
-
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>]>>;
|
|
284
|
-
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>]>>;
|
|
285
|
-
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
286
|
-
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
287
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
288
|
-
}, "strip", z.ZodTypeAny, {
|
|
289
|
-
product: import("mongoose").Types.ObjectId;
|
|
290
|
-
value?: number | undefined;
|
|
291
|
-
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
292
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
293
|
-
isBuy1Get1?: boolean | undefined;
|
|
294
|
-
valueType?: ValueType | null | undefined;
|
|
295
|
-
}, {
|
|
296
|
-
product: string | import("mongoose").Types.ObjectId;
|
|
297
|
-
value?: number | undefined;
|
|
298
|
-
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
299
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
300
|
-
isBuy1Get1?: boolean | undefined;
|
|
301
|
-
valueType?: ValueType | null | undefined;
|
|
302
|
-
}>, "many">>>>;
|
|
303
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
304
|
-
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>]>>;
|
|
305
|
-
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
306
|
-
duration: z.ZodOptional<z.ZodObject<{
|
|
307
|
-
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>;
|
|
308
|
-
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>>;
|
|
309
|
-
}, "strip", z.ZodTypeAny, {
|
|
310
|
-
start: Date;
|
|
311
|
-
end?: Date | undefined;
|
|
312
|
-
}, {
|
|
313
|
-
start: string | Date;
|
|
314
|
-
end?: string | Date | undefined;
|
|
315
|
-
}>>;
|
|
316
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
317
|
-
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>>>>>;
|
|
318
|
-
_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>]>>;
|
|
319
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
320
|
-
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.LOYALTY_POINT>>;
|
|
321
|
-
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
322
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
|
|
323
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
324
|
-
category: 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>]>>;
|
|
325
|
-
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
326
|
-
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>]>;
|
|
327
|
-
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>]>>;
|
|
328
|
-
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>]>>;
|
|
329
|
-
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
330
|
-
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
331
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
332
|
-
}, "strip", z.ZodTypeAny, {
|
|
333
|
-
product: import("mongoose").Types.ObjectId;
|
|
334
|
-
value?: number | undefined;
|
|
335
|
-
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
336
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
337
|
-
isBuy1Get1?: boolean | undefined;
|
|
338
|
-
valueType?: ValueType | null | undefined;
|
|
339
|
-
}, {
|
|
340
|
-
product: string | import("mongoose").Types.ObjectId;
|
|
341
|
-
value?: number | undefined;
|
|
342
|
-
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
343
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
344
|
-
isBuy1Get1?: boolean | undefined;
|
|
345
|
-
valueType?: ValueType | null | undefined;
|
|
346
|
-
}>, "many">>>>;
|
|
347
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
348
|
-
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>]>>;
|
|
349
|
-
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
350
|
-
duration: z.ZodOptional<z.ZodObject<{
|
|
351
|
-
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>;
|
|
352
|
-
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>>;
|
|
353
|
-
}, "strip", z.ZodTypeAny, {
|
|
354
|
-
start: Date;
|
|
355
|
-
end?: Date | undefined;
|
|
356
|
-
}, {
|
|
357
|
-
start: string | Date;
|
|
358
|
-
end?: string | Date | undefined;
|
|
359
|
-
}>>;
|
|
360
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
361
|
-
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>>>>>;
|
|
362
|
-
_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>]>>;
|
|
363
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
364
|
-
declare const LoyaltyPointMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject<{
|
|
365
|
-
marketingType: z.ZodLiteral<MarketingType.LOYALTY_POINT>;
|
|
366
|
-
isEntireMenu: z.ZodDefault<z.ZodBoolean>;
|
|
367
|
-
valueType: z.ZodNativeEnum<typeof ValueType>;
|
|
368
|
-
value: z.ZodNumber;
|
|
369
|
-
category: 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>]>;
|
|
370
|
-
products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
371
|
-
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>]>;
|
|
372
|
-
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>]>>;
|
|
373
|
-
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>]>>;
|
|
374
|
-
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
375
|
-
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
376
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
377
|
-
}, "strip", z.ZodTypeAny, {
|
|
378
|
-
product: import("mongoose").Types.ObjectId;
|
|
379
|
-
value?: number | undefined;
|
|
380
|
-
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
381
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
382
|
-
isBuy1Get1?: boolean | undefined;
|
|
383
|
-
valueType?: ValueType | null | undefined;
|
|
384
|
-
}, {
|
|
385
|
-
product: string | import("mongoose").Types.ObjectId;
|
|
386
|
-
value?: number | undefined;
|
|
387
|
-
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
388
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
389
|
-
isBuy1Get1?: boolean | undefined;
|
|
390
|
-
valueType?: ValueType | null | undefined;
|
|
391
|
-
}>, "many">>>;
|
|
392
|
-
spendLimit: z.ZodDefault<z.ZodNumber>;
|
|
393
|
-
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>]>;
|
|
394
|
-
isAppliedByCompany: z.ZodBoolean;
|
|
395
|
-
duration: z.ZodObject<{
|
|
396
|
-
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>;
|
|
397
|
-
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>>;
|
|
398
|
-
}, "strip", z.ZodTypeAny, {
|
|
399
|
-
start: Date;
|
|
400
|
-
end?: Date | undefined;
|
|
401
|
-
}, {
|
|
402
|
-
start: string | Date;
|
|
403
|
-
end?: string | Date | undefined;
|
|
404
|
-
}>;
|
|
405
|
-
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
|
|
406
|
-
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>>>>;
|
|
407
|
-
}, "strict", z.ZodTypeAny, {
|
|
408
|
-
isAppliedByCompany: boolean;
|
|
409
|
-
shop: import("mongoose").Types.ObjectId;
|
|
410
|
-
value: number;
|
|
411
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
412
|
-
marketingType: MarketingType.LOYALTY_POINT;
|
|
413
|
-
duration: {
|
|
414
|
-
start: Date;
|
|
415
|
-
end?: Date | undefined;
|
|
416
|
-
};
|
|
417
|
-
pausedAt: Date | null;
|
|
418
|
-
valueType: ValueType;
|
|
419
|
-
products: {
|
|
420
|
-
product: import("mongoose").Types.ObjectId;
|
|
421
|
-
value?: number | undefined;
|
|
422
|
-
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
423
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
424
|
-
isBuy1Get1?: boolean | undefined;
|
|
425
|
-
valueType?: ValueType | null | undefined;
|
|
426
|
-
}[];
|
|
427
|
-
isEntireMenu: boolean;
|
|
428
|
-
spendLimit: number;
|
|
429
|
-
category: import("mongoose").Types.ObjectId;
|
|
430
|
-
}, {
|
|
431
|
-
isAppliedByCompany: boolean;
|
|
432
|
-
shop: string | import("mongoose").Types.ObjectId;
|
|
433
|
-
value: number;
|
|
434
|
-
marketingType: MarketingType.LOYALTY_POINT;
|
|
435
|
-
duration: {
|
|
436
|
-
start: string | Date;
|
|
437
|
-
end?: string | Date | undefined;
|
|
438
|
-
};
|
|
439
|
-
valueType: ValueType;
|
|
440
|
-
category: string | import("mongoose").Types.ObjectId;
|
|
441
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
442
|
-
pausedAt?: string | Date | null | undefined;
|
|
443
|
-
products?: {
|
|
444
|
-
product: string | import("mongoose").Types.ObjectId;
|
|
445
|
-
value?: number | undefined;
|
|
446
|
-
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
447
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
448
|
-
isBuy1Get1?: boolean | undefined;
|
|
449
|
-
valueType?: ValueType | null | undefined;
|
|
450
|
-
}[] | undefined;
|
|
451
|
-
isEntireMenu?: boolean | undefined;
|
|
452
|
-
spendLimit?: number | undefined;
|
|
453
|
-
}>, {
|
|
454
|
-
isAppliedByCompany: boolean;
|
|
455
|
-
shop: import("mongoose").Types.ObjectId;
|
|
456
|
-
value: number;
|
|
457
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
458
|
-
marketingType: MarketingType.LOYALTY_POINT;
|
|
459
|
-
duration: {
|
|
460
|
-
start: Date;
|
|
461
|
-
end?: Date | undefined;
|
|
462
|
-
};
|
|
463
|
-
pausedAt: Date | null;
|
|
464
|
-
valueType: ValueType;
|
|
465
|
-
products: {
|
|
466
|
-
product: import("mongoose").Types.ObjectId;
|
|
467
|
-
value?: number | undefined;
|
|
468
|
-
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
469
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
470
|
-
isBuy1Get1?: boolean | undefined;
|
|
471
|
-
valueType?: ValueType | null | undefined;
|
|
472
|
-
}[];
|
|
473
|
-
isEntireMenu: boolean;
|
|
474
|
-
spendLimit: number;
|
|
475
|
-
category: import("mongoose").Types.ObjectId;
|
|
476
|
-
}, {
|
|
477
|
-
isAppliedByCompany: boolean;
|
|
478
|
-
shop: string | import("mongoose").Types.ObjectId;
|
|
479
|
-
value: number;
|
|
480
|
-
marketingType: MarketingType.LOYALTY_POINT;
|
|
481
|
-
duration: {
|
|
482
|
-
start: string | Date;
|
|
483
|
-
end?: string | Date | undefined;
|
|
484
|
-
};
|
|
485
|
-
valueType: ValueType;
|
|
486
|
-
category: string | import("mongoose").Types.ObjectId;
|
|
487
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
488
|
-
pausedAt?: string | Date | null | undefined;
|
|
489
|
-
products?: {
|
|
490
|
-
product: string | import("mongoose").Types.ObjectId;
|
|
491
|
-
value?: number | undefined;
|
|
492
|
-
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
493
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
494
|
-
isBuy1Get1?: boolean | undefined;
|
|
495
|
-
valueType?: ValueType | null | undefined;
|
|
496
|
-
}[] | undefined;
|
|
497
|
-
isEntireMenu?: boolean | undefined;
|
|
498
|
-
spendLimit?: number | undefined;
|
|
499
|
-
}>;
|
|
500
|
-
export { LoyaltyPointMarketingValidationSchemaRefined as LoyaltyPointMarketingValidationSchema, LoyaltyPointMarketingSchema, LoyaltyPointMarketingIdSchema as LoyaltyPointMarketingIdValidationSchema, UpdateLoyaltyPointMarketingSchema, };
|
|
501
|
-
export type CreateLoyaltyPointMarketingDTO = DTO<typeof LoyaltyPointMarketingValidationSchema>;
|
|
502
|
-
export type LoyaltyPointMarketingDTO = DTO<typeof LoyaltyPointMarketingSchema>;
|
|
503
|
-
export type UpdateLoyaltyPointMarketingDTO = DTO<typeof UpdateLoyaltyPointMarketingSchema>;
|
|
504
|
-
//# sourceMappingURL=loyalty-point-marketing.validation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-point-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/loyalty-point-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAGnE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AA0B7E,QAAA,MACa,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACnC,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC/B,6BAA6B,mNACzB,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACI,CAAC;AAErD,QAAA,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUjD,CAAC;AAKF,OAAO,EACN,4CAA4C,IAAI,qCAAqC,EACrF,2BAA2B,EAC3B,6BAA6B,IAAI,uCAAuC,EACxE,iCAAiC,GACjC,CAAC;AAKF,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"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateLoyaltyPointMarketingSchema = exports.LoyaltyPointMarketingIdValidationSchema = exports.LoyaltyPointMarketingSchema = exports.LoyaltyPointMarketingValidationSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const global_validation_1 = require("@lyxa.ai/core/dist/utilities/validation/global-validation");
|
|
6
|
-
const marketing_validation_1 = require("./marketing.validation");
|
|
7
|
-
const product_marketing_validation_1 = require("./product-marketing.validation");
|
|
8
|
-
const enum_1 = require("@lyxa.ai/core/dist/utilities/enum");
|
|
9
|
-
const baseFields = {
|
|
10
|
-
...marketing_validation_1.baseMarketingFields,
|
|
11
|
-
marketingType: zod_1.z.literal(enum_1.MarketingType.LOYALTY_POINT),
|
|
12
|
-
isEntireMenu: global_validation_1.ZodValidation.boolean('IsEntireMenu').default(false),
|
|
13
|
-
valueType: global_validation_1.ZodValidation.enumType(enum_1.ValueType, 'Value type'),
|
|
14
|
-
value: global_validation_1.ZodValidation.number('Value'),
|
|
15
|
-
category: global_validation_1.ZodValidation.objectId('Category'),
|
|
16
|
-
products: global_validation_1.ZodValidation.array(zod_1.z.object(product_marketing_validation_1.baseFields), "Products").optional().default([]),
|
|
17
|
-
spendLimit: global_validation_1.ZodValidation.number('Spend limit').default(0),
|
|
18
|
-
};
|
|
19
|
-
const schemaBuilder = (0, global_validation_1.createSchemaBuilder)(baseFields);
|
|
20
|
-
const { BaseSchema: LoyaltyPointMarketingValidationSchema, EntitySchema: LoyaltyPointMarketingSchema, IdSchema: LoyaltyPointMarketingIdSchema, UpdateSchema: UpdateLoyaltyPointMarketingSchema, } = schemaBuilder.getAllSchemas({ createdAt: true });
|
|
21
|
-
exports.LoyaltyPointMarketingSchema = LoyaltyPointMarketingSchema;
|
|
22
|
-
exports.LoyaltyPointMarketingIdValidationSchema = LoyaltyPointMarketingIdSchema;
|
|
23
|
-
exports.UpdateLoyaltyPointMarketingSchema = UpdateLoyaltyPointMarketingSchema;
|
|
24
|
-
const LoyaltyPointMarketingValidationSchemaRefined = LoyaltyPointMarketingValidationSchema.superRefine((data, ctx) => {
|
|
25
|
-
if (data.isAppliedByCompany == false) {
|
|
26
|
-
ctx.addIssue({
|
|
27
|
-
code: zod_1.z.ZodIssueCode.custom,
|
|
28
|
-
message: 'Loyalty point marketing can only be created by admin',
|
|
29
|
-
path: ['isAppliedByCompany'],
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
exports.LoyaltyPointMarketingValidationSchema = LoyaltyPointMarketingValidationSchemaRefined;
|
|
34
|
-
//# sourceMappingURL=loyalty-point-marketing.validation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-point-marketing.validation.js","sourceRoot":"/","sources":["modules/marketing/validations/loyalty-point-marketing.validation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iGAImE;AACnE,iEAA6D;AAC7D,iFAA0F;AAC1F,4DAA6E;AAK7E,MAAM,UAAU,GAAG;IAClB,GAAG,0CAAmB;IACtB,aAAa,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAa,CAAC,aAAa,CAAC;IACrD,YAAY,EAAE,iCAAa,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAClE,SAAS,EAAE,iCAAa,CAAC,QAAQ,CAAC,gBAAS,EAAE,YAAY,CAAC;IAC1D,KAAK,EAAE,iCAAa,CAAC,MAAM,CAAC,OAAO,CAAC;IACpC,QAAQ,EAAE,iCAAa,CAAC,QAAQ,CAAC,UAAU,CAAC;IAC5C,QAAQ,EAAE,iCAAa,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,yCAA0B,CAAC,EAAE,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IACtG,UAAU,EAAE,iCAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;CAC1D,CAAC;AAOF,MAAM,aAAa,GAAG,IAAA,uCAAmB,EAAC,UAAU,CAAC,CAAC;AAKtD,MAAM,EACL,UAAU,EAAE,qCAAqC,EACjD,YAAY,EAAE,2BAA2B,EACzC,QAAQ,EAAE,6BAA6B,EACvC,YAAY,EAAE,iCAAiC,GAC/C,GAAG,aAAa,CAAC,aAAa,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AAmBpD,kEAA2B;AACM,gFAAuC;AACxE,8EAAiC;AAnBlC,MAAM,4CAA4C,GAAG,qCAAqC,CAAC,WAAW,CACrG,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;IACb,IAAI,IAAI,CAAC,kBAAkB,IAAI,KAAK,EAAE,CAAC;QACtC,GAAG,CAAC,QAAQ,CAAC;YACZ,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,sDAAsD;YAC/D,IAAI,EAAE,CAAC,oBAAoB,CAAC;SAC5B,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CACD,CAAC;AAM+C,6FAAqC","sourcesContent":["import { z } from 'zod';\nimport {\n\tZodValidation,\n\tcreateSchemaBuilder,\n\tDTO,\n} from '@lyxa.ai/core/dist/utilities/validation/global-validation';\nimport { baseMarketingFields } from './marketing.validation';\nimport { baseFields as baseProductMarketingFields } from './product-marketing.validation';\nimport { MarketingType, ValueType } from '@lyxa.ai/core/dist/utilities/enum';\n\n/**\n * Define the base parent schema fields\n */\nconst baseFields = {\n\t...baseMarketingFields,\n\tmarketingType: z.literal(MarketingType.LOYALTY_POINT),\n\tisEntireMenu: ZodValidation.boolean('IsEntireMenu').default(false),\n\tvalueType: ZodValidation.enumType(ValueType, 'Value type'),\n\tvalue: ZodValidation.number('Value'),\n\tcategory: ZodValidation.objectId('Category'),\n\tproducts: ZodValidation.array(z.object(baseProductMarketingFields), \"Products\").optional().default([]),\n\tspendLimit: ZodValidation.number('Spend limit').default(0),\n};\n\n/**\n * Create schema builder for Parent entity\n * - Includes timestamps\n * - Excludes 'createdAt' from update operations\n */\nconst schemaBuilder = createSchemaBuilder(baseFields);\n\n/**\n * Get all schemas for the Parent entity\n */\nconst {\n\tBaseSchema: LoyaltyPointMarketingValidationSchema,\n\tEntitySchema: LoyaltyPointMarketingSchema,\n\tIdSchema: LoyaltyPointMarketingIdSchema,\n\tUpdateSchema: UpdateLoyaltyPointMarketingSchema,\n} = schemaBuilder.getAllSchemas({ createdAt: true });\n\nconst LoyaltyPointMarketingValidationSchemaRefined = LoyaltyPointMarketingValidationSchema.superRefine(\n\t(data, ctx) => {\n\t\tif (data.isAppliedByCompany == false) {\n\t\t\tctx.addIssue({\n\t\t\t\tcode: z.ZodIssueCode.custom,\n\t\t\t\tmessage: 'Loyalty point marketing can only be created by admin',\n\t\t\t\tpath: ['isAppliedByCompany'],\n\t\t\t});\n\t\t}\n\t}\n);\n\n/**\n * Export schemas\n */\nexport {\n\tLoyaltyPointMarketingValidationSchemaRefined as LoyaltyPointMarketingValidationSchema,\n\tLoyaltyPointMarketingSchema,\n\tLoyaltyPointMarketingIdSchema as LoyaltyPointMarketingIdValidationSchema,\n\tUpdateLoyaltyPointMarketingSchema,\n};\n\n/**\n * Export DTO types\n */\nexport type CreateLoyaltyPointMarketingDTO = DTO<typeof LoyaltyPointMarketingValidationSchema>;\nexport type LoyaltyPointMarketingDTO = DTO<typeof LoyaltyPointMarketingSchema>;\nexport type UpdateLoyaltyPointMarketingDTO = DTO<typeof UpdateLoyaltyPointMarketingSchema>;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/loyalty-point-setting/routers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAA"}
|