@lyxa.ai/marketing 1.0.26 → 1.0.28
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 +11 -4
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +7 -0
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +6 -0
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +1 -0
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +22 -0
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts +4 -4
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.js +0 -2
- package/dist/lib/modules/marketing/routers/marketing.router.js.map +1 -1
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.js +38 -18
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/discount-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/discount-marketing.service.js +37 -17
- package/dist/lib/modules/marketing/services/discount-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +4 -1
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +2 -0
- package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -1
- package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.d.ts +2 -0
- package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -1
- package/dist/lib/modules/marketing/transformers/featured-marketing.transformer.d.ts +1 -0
- package/dist/lib/modules/marketing/transformers/featured-marketing.transformer.d.ts.map +1 -1
- package/dist/lib/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts +1 -0
- package/dist/lib/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts.map +1 -1
- package/dist/lib/modules/marketing/transformers/punch-marketing.transformer.d.ts +1 -0
- package/dist/lib/modules/marketing/transformers/punch-marketing.transformer.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +28 -0
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.js +1 -0
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.js.map +1 -1
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +254 -123
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.js +19 -3
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.js.map +1 -1
- package/dist/lib/modules/marketing/validations/featured-marketing.validation.d.ts +14 -0
- package/dist/lib/modules/marketing/validations/featured-marketing.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts +107 -26
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.js +34 -2
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.js.map +1 -1
- package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +10 -0
- package/dist/lib/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/marketing.validation.js +1 -0
- package/dist/lib/modules/marketing/validations/marketing.validation.js.map +1 -1
- package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts +127 -30
- package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/punch-marketing.validation.js +80 -2
- package/dist/lib/modules/marketing/validations/punch-marketing.validation.js.map +1 -1
- package/dist/types/index.d.ts +11 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +7 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +1 -0
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/routers/marketing.router.d.ts +4 -4
- package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/discount-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +2 -0
- package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -1
- package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts +2 -0
- package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -1
- package/dist/types/modules/marketing/transformers/featured-marketing.transformer.d.ts +1 -0
- package/dist/types/modules/marketing/transformers/featured-marketing.transformer.d.ts.map +1 -1
- package/dist/types/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts +1 -0
- package/dist/types/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts.map +1 -1
- package/dist/types/modules/marketing/transformers/punch-marketing.transformer.d.ts +1 -0
- package/dist/types/modules/marketing/transformers/punch-marketing.transformer.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +28 -0
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +254 -123
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts +14 -0
- package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts +107 -26
- package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts +10 -0
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts +127 -30
- package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount-marketing.transformer.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/discount-marketing.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,IAAI,KAAK,EAAE,MAAM,8EAA8E,CAAC;AAM1H,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"discount-marketing.transformer.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/discount-marketing.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,IAAI,KAAK,EAAE,MAAM,8EAA8E,CAAC;AAM1H,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAAwC,CAAC"}
|
|
@@ -16,6 +16,7 @@ export declare const featuredMarketingTransformer: import("@lyxa.ai/core/dist/ut
|
|
|
16
16
|
}>>;
|
|
17
17
|
status: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
18
18
|
pausedAt: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
19
|
+
admin: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
|
|
19
20
|
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
20
21
|
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
21
22
|
//# sourceMappingURL=featured-marketing.transformer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featured-marketing.transformer.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/featured-marketing.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,IAAI,KAAK,EAAE,MAAM,8EAA8E,CAAC;AAM1H,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"featured-marketing.transformer.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/featured-marketing.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,IAAI,KAAK,EAAE,MAAM,8EAA8E,CAAC;AAM1H,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;4CAAwC,CAAC"}
|
|
@@ -17,6 +17,7 @@ export declare const freeDeliveryMarketingTransformer: import("@lyxa.ai/core/dis
|
|
|
17
17
|
}>>;
|
|
18
18
|
status: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
19
19
|
pausedAt: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
20
|
+
admin: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
|
|
20
21
|
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
21
22
|
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
22
23
|
//# sourceMappingURL=free-delivery-marketing.transformer.d.ts.map
|
package/dist/types/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"free-delivery-marketing.transformer.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/free-delivery-marketing.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,IAAI,KAAK,EAAE,MAAM,mFAAmF,CAAC;AAMnI,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"free-delivery-marketing.transformer.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/free-delivery-marketing.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,IAAI,KAAK,EAAE,MAAM,mFAAmF,CAAC;AAMnI,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;4CAAwC,CAAC"}
|
|
@@ -21,6 +21,7 @@ export declare const punchMarketingTransformer: import("@lyxa.ai/core/dist/utili
|
|
|
21
21
|
}>>;
|
|
22
22
|
status: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
23
23
|
pausedAt: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
24
|
+
admin: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>>>;
|
|
24
25
|
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
25
26
|
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
26
27
|
//# sourceMappingURL=punch-marketing.transformer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"punch-marketing.transformer.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/punch-marketing.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,MAAM,2EAA2E,CAAC;AAMpH,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"punch-marketing.transformer.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/punch-marketing.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,MAAM,2EAA2E,CAAC;AAMpH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;4CAAwC,CAAC"}
|
|
@@ -27,6 +27,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
27
27
|
isBuy1Get1?: boolean | undefined;
|
|
28
28
|
valueType?: ValueType | null | undefined;
|
|
29
29
|
}>, "many">>>;
|
|
30
|
+
excludeProducts: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
30
31
|
spendLimit: z.ZodDefault<z.ZodNumber>;
|
|
31
32
|
isSpendLimitEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
32
33
|
isOnlyForSubscriber: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -44,6 +45,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
44
45
|
}>;
|
|
45
46
|
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
|
|
46
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
|
+
admin: z.ZodNullable<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>]>>>;
|
|
47
49
|
}, "strict", z.ZodTypeAny, {
|
|
48
50
|
isAppliedByCompany: boolean;
|
|
49
51
|
shop: import("mongoose").Types.ObjectId;
|
|
@@ -63,9 +65,11 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
63
65
|
}[];
|
|
64
66
|
categories: import("mongoose").Types.ObjectId[];
|
|
65
67
|
isEntireMenu: boolean;
|
|
68
|
+
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
66
69
|
spendLimit: number;
|
|
67
70
|
isSpendLimitEnabled: boolean;
|
|
68
71
|
isOnlyForSubscriber: boolean;
|
|
72
|
+
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
69
73
|
}, {
|
|
70
74
|
isAppliedByCompany: boolean;
|
|
71
75
|
shop: string | import("mongoose").Types.ObjectId;
|
|
@@ -76,6 +80,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
76
80
|
};
|
|
77
81
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
78
82
|
pausedAt?: string | Date | null | undefined;
|
|
83
|
+
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
79
84
|
products?: {
|
|
80
85
|
product: string | import("mongoose").Types.ObjectId;
|
|
81
86
|
value?: number | undefined;
|
|
@@ -85,6 +90,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
85
90
|
}[] | undefined;
|
|
86
91
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
87
92
|
isEntireMenu?: boolean | undefined;
|
|
93
|
+
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
88
94
|
spendLimit?: number | undefined;
|
|
89
95
|
isSpendLimitEnabled?: boolean | undefined;
|
|
90
96
|
isOnlyForSubscriber?: boolean | undefined;
|
|
@@ -111,6 +117,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
111
117
|
isBuy1Get1?: boolean | undefined;
|
|
112
118
|
valueType?: ValueType | null | undefined;
|
|
113
119
|
}>, "many">>>>;
|
|
120
|
+
excludeProducts: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
|
|
114
121
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
115
122
|
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
116
123
|
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -128,6 +135,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
128
135
|
}>>;
|
|
129
136
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
130
137
|
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>>>>>;
|
|
138
|
+
admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
|
|
131
139
|
_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
140
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
133
141
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.BUY1GET1>>;
|
|
@@ -152,6 +160,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
152
160
|
isBuy1Get1?: boolean | undefined;
|
|
153
161
|
valueType?: ValueType | null | undefined;
|
|
154
162
|
}>, "many">>>>;
|
|
163
|
+
excludeProducts: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
|
|
155
164
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
156
165
|
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
157
166
|
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -169,6 +178,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
169
178
|
}>>;
|
|
170
179
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
171
180
|
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>>>>>;
|
|
181
|
+
admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
|
|
172
182
|
_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>]>>;
|
|
173
183
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
174
184
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.BUY1GET1>>;
|
|
@@ -193,6 +203,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
193
203
|
isBuy1Get1?: boolean | undefined;
|
|
194
204
|
valueType?: ValueType | null | undefined;
|
|
195
205
|
}>, "many">>>>;
|
|
206
|
+
excludeProducts: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
|
|
196
207
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
197
208
|
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
198
209
|
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -210,6 +221,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
210
221
|
}>>;
|
|
211
222
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
212
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
|
+
admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
|
|
213
225
|
_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>]>>;
|
|
214
226
|
}, 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<{
|
|
215
227
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
@@ -240,6 +252,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
240
252
|
isBuy1Get1?: boolean | undefined;
|
|
241
253
|
valueType?: ValueType | null | undefined;
|
|
242
254
|
}>, "many">>>>;
|
|
255
|
+
excludeProducts: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
|
|
243
256
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
244
257
|
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
245
258
|
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -257,6 +270,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
257
270
|
}>>;
|
|
258
271
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
259
272
|
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>>>>>;
|
|
273
|
+
admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
|
|
260
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>]>>;
|
|
261
275
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
262
276
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.BUY1GET1>>;
|
|
@@ -281,6 +295,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
281
295
|
isBuy1Get1?: boolean | undefined;
|
|
282
296
|
valueType?: ValueType | null | undefined;
|
|
283
297
|
}>, "many">>>>;
|
|
298
|
+
excludeProducts: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
|
|
284
299
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
285
300
|
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
286
301
|
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -298,6 +313,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
298
313
|
}>>;
|
|
299
314
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
300
315
|
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>>>>>;
|
|
316
|
+
admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
|
|
301
317
|
_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>]>>;
|
|
302
318
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
303
319
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.BUY1GET1>>;
|
|
@@ -322,6 +338,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
322
338
|
isBuy1Get1?: boolean | undefined;
|
|
323
339
|
valueType?: ValueType | null | undefined;
|
|
324
340
|
}>, "many">>>>;
|
|
341
|
+
excludeProducts: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
|
|
325
342
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
326
343
|
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
327
344
|
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -339,6 +356,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
339
356
|
}>>;
|
|
340
357
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
341
358
|
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>>>>>;
|
|
359
|
+
admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
|
|
342
360
|
_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>]>>;
|
|
343
361
|
}, z.ZodTypeAny, "passthrough">>;
|
|
344
362
|
declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject<{
|
|
@@ -364,6 +382,7 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
364
382
|
isBuy1Get1?: boolean | undefined;
|
|
365
383
|
valueType?: ValueType | null | undefined;
|
|
366
384
|
}>, "many">>>;
|
|
385
|
+
excludeProducts: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
367
386
|
spendLimit: z.ZodDefault<z.ZodNumber>;
|
|
368
387
|
isSpendLimitEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
369
388
|
isOnlyForSubscriber: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -381,6 +400,7 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
381
400
|
}>;
|
|
382
401
|
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
|
|
383
402
|
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>>>>;
|
|
403
|
+
admin: z.ZodNullable<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>]>>>;
|
|
384
404
|
}, "strict", z.ZodTypeAny, {
|
|
385
405
|
isAppliedByCompany: boolean;
|
|
386
406
|
shop: import("mongoose").Types.ObjectId;
|
|
@@ -400,9 +420,11 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
400
420
|
}[];
|
|
401
421
|
categories: import("mongoose").Types.ObjectId[];
|
|
402
422
|
isEntireMenu: boolean;
|
|
423
|
+
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
403
424
|
spendLimit: number;
|
|
404
425
|
isSpendLimitEnabled: boolean;
|
|
405
426
|
isOnlyForSubscriber: boolean;
|
|
427
|
+
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
406
428
|
}, {
|
|
407
429
|
isAppliedByCompany: boolean;
|
|
408
430
|
shop: string | import("mongoose").Types.ObjectId;
|
|
@@ -413,6 +435,7 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
413
435
|
};
|
|
414
436
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
415
437
|
pausedAt?: string | Date | null | undefined;
|
|
438
|
+
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
416
439
|
products?: {
|
|
417
440
|
product: string | import("mongoose").Types.ObjectId;
|
|
418
441
|
value?: number | undefined;
|
|
@@ -422,6 +445,7 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
422
445
|
}[] | undefined;
|
|
423
446
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
424
447
|
isEntireMenu?: boolean | undefined;
|
|
448
|
+
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
425
449
|
spendLimit?: number | undefined;
|
|
426
450
|
isSpendLimitEnabled?: boolean | undefined;
|
|
427
451
|
isOnlyForSubscriber?: boolean | undefined;
|
|
@@ -444,9 +468,11 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
444
468
|
}[];
|
|
445
469
|
categories: import("mongoose").Types.ObjectId[];
|
|
446
470
|
isEntireMenu: boolean;
|
|
471
|
+
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
447
472
|
spendLimit: number;
|
|
448
473
|
isSpendLimitEnabled: boolean;
|
|
449
474
|
isOnlyForSubscriber: boolean;
|
|
475
|
+
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
450
476
|
}, {
|
|
451
477
|
isAppliedByCompany: boolean;
|
|
452
478
|
shop: string | import("mongoose").Types.ObjectId;
|
|
@@ -457,6 +483,7 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
457
483
|
};
|
|
458
484
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
459
485
|
pausedAt?: string | Date | null | undefined;
|
|
486
|
+
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
460
487
|
products?: {
|
|
461
488
|
product: string | import("mongoose").Types.ObjectId;
|
|
462
489
|
value?: number | undefined;
|
|
@@ -466,6 +493,7 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
466
493
|
}[] | undefined;
|
|
467
494
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
468
495
|
isEntireMenu?: boolean | undefined;
|
|
496
|
+
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
469
497
|
spendLimit?: number | undefined;
|
|
470
498
|
isSpendLimitEnabled?: boolean | undefined;
|
|
471
499
|
isOnlyForSubscriber?: boolean | undefined;
|
|
@@ -1 +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,SAAS,EAAE,MAAM,mCAAmC,CAAC;
|
|
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,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAyB7E;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2B7C,CAAC;AAEF;;GAEG;AACH,OAAO,EACN,wCAAwC,IAAI,iCAAiC,EAC7E,uBAAuB,EACvB,yBAAyB,IAAI,mCAAmC,EAChE,6BAA6B,GAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACvF,MAAM,MAAM,oBAAoB,GAAG,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACvE,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|