@lyxa.ai/marketing 1.0.27 → 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 +4 -4
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.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 +4 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.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
|
@@ -21,6 +21,7 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
|
|
|
21
21
|
}>;
|
|
22
22
|
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
|
|
23
23
|
pausedAt: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>;
|
|
24
|
+
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>]>>>;
|
|
24
25
|
}, "strict", z.ZodTypeAny, {
|
|
25
26
|
isAppliedByCompany: boolean;
|
|
26
27
|
shop: import("mongoose").Types.ObjectId;
|
|
@@ -32,6 +33,7 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
|
|
|
32
33
|
};
|
|
33
34
|
pausedAt: Date | null;
|
|
34
35
|
amount: number;
|
|
36
|
+
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
35
37
|
}, {
|
|
36
38
|
isAppliedByCompany: boolean;
|
|
37
39
|
shop: string | import("mongoose").Types.ObjectId;
|
|
@@ -43,6 +45,7 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
|
|
|
43
45
|
amount: number;
|
|
44
46
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
45
47
|
pausedAt?: string | Date | null | undefined;
|
|
48
|
+
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
46
49
|
}>, FeaturedMarketingSchema: z.ZodObject<{
|
|
47
50
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
|
|
48
51
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -60,6 +63,7 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
|
|
|
60
63
|
}>>;
|
|
61
64
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
62
65
|
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>>>>>;
|
|
66
|
+
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>]>>>>;
|
|
63
67
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
64
68
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
65
69
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
|
|
@@ -78,6 +82,7 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
|
|
|
78
82
|
}>>;
|
|
79
83
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
80
84
|
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>>>>>;
|
|
85
|
+
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>]>>>>;
|
|
81
86
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
82
87
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
83
88
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
|
|
@@ -96,6 +101,7 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
|
|
|
96
101
|
}>>;
|
|
97
102
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
98
103
|
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>>>>>;
|
|
104
|
+
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>]>>>>;
|
|
99
105
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
100
106
|
}, z.ZodTypeAny, "passthrough">>, FeaturedMarketingIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdateFeaturedMarketingSchema: z.ZodObject<{
|
|
101
107
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
@@ -120,6 +126,7 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
|
|
|
120
126
|
}>>;
|
|
121
127
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
122
128
|
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>>>>>;
|
|
129
|
+
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>]>>>>;
|
|
123
130
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
124
131
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
125
132
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
|
|
@@ -138,6 +145,7 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
|
|
|
138
145
|
}>>;
|
|
139
146
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
140
147
|
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>>>>>;
|
|
148
|
+
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>]>>>>;
|
|
141
149
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
142
150
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
143
151
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
|
|
@@ -156,6 +164,7 @@ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
|
|
|
156
164
|
}>>;
|
|
157
165
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
158
166
|
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>>>>>;
|
|
167
|
+
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>]>>>>;
|
|
159
168
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
160
169
|
}, z.ZodTypeAny, "passthrough">>;
|
|
161
170
|
declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject<{
|
|
@@ -175,6 +184,7 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
175
184
|
}>;
|
|
176
185
|
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
|
|
177
186
|
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>>>>;
|
|
187
|
+
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>]>>>;
|
|
178
188
|
}, "strict", z.ZodTypeAny, {
|
|
179
189
|
isAppliedByCompany: boolean;
|
|
180
190
|
shop: import("mongoose").Types.ObjectId;
|
|
@@ -186,6 +196,7 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
186
196
|
};
|
|
187
197
|
pausedAt: Date | null;
|
|
188
198
|
amount: number;
|
|
199
|
+
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
189
200
|
}, {
|
|
190
201
|
isAppliedByCompany: boolean;
|
|
191
202
|
shop: string | import("mongoose").Types.ObjectId;
|
|
@@ -197,6 +208,7 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
197
208
|
amount: number;
|
|
198
209
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
199
210
|
pausedAt?: string | Date | null | undefined;
|
|
211
|
+
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
200
212
|
}>, {
|
|
201
213
|
isAppliedByCompany: boolean;
|
|
202
214
|
shop: import("mongoose").Types.ObjectId;
|
|
@@ -208,6 +220,7 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
208
220
|
};
|
|
209
221
|
pausedAt: Date | null;
|
|
210
222
|
amount: number;
|
|
223
|
+
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
211
224
|
}, {
|
|
212
225
|
isAppliedByCompany: boolean;
|
|
213
226
|
shop: string | import("mongoose").Types.ObjectId;
|
|
@@ -219,6 +232,7 @@ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
219
232
|
amount: number;
|
|
220
233
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
221
234
|
pausedAt?: string | Date | null | undefined;
|
|
235
|
+
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
222
236
|
}>;
|
|
223
237
|
/**
|
|
224
238
|
* Export schemas
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featured-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/featured-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAmBlE;;GAEG;AACH,QAAA,MACa,iCAAiC
|
|
1
|
+
{"version":3,"file":"featured-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/featured-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAmBlE;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsB7C,CAAC;AAEF;;GAEG;AACH,OAAO,EACN,wCAAwC,IAAI,iCAAiC,EAC7E,uBAAuB,EACvB,yBAAyB,IAAI,mCAAmC,EAChE,6BAA6B,GAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACvF,MAAM,MAAM,oBAAoB,GAAG,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACvE,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -4,7 +4,68 @@ import { MarketingType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
|
4
4
|
/**
|
|
5
5
|
* Get all schemas for the Parent entity
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const FreeDeliveryMarketingSchema: z.ZodObject<{
|
|
8
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
9
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
10
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
11
|
+
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>]>>;
|
|
12
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
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>;
|
|
15
|
+
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>>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
start: Date;
|
|
18
|
+
end?: Date | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
start: string | Date;
|
|
21
|
+
end?: string | Date | undefined;
|
|
22
|
+
}>>;
|
|
23
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
24
|
+
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>>>>>;
|
|
25
|
+
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>]>>>>;
|
|
26
|
+
_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>]>>;
|
|
27
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
28
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
29
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
30
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
31
|
+
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>]>>;
|
|
32
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
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>;
|
|
35
|
+
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>>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
start: Date;
|
|
38
|
+
end?: Date | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
start: string | Date;
|
|
41
|
+
end?: string | Date | undefined;
|
|
42
|
+
}>>;
|
|
43
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
44
|
+
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>>>>>;
|
|
45
|
+
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>]>>>>;
|
|
46
|
+
_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>]>>;
|
|
47
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
48
|
+
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
49
|
+
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
50
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
51
|
+
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>]>>;
|
|
52
|
+
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
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>;
|
|
55
|
+
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>>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
start: Date;
|
|
58
|
+
end?: Date | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
start: string | Date;
|
|
61
|
+
end?: string | Date | undefined;
|
|
62
|
+
}>>;
|
|
63
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
64
|
+
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>>>>>;
|
|
65
|
+
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>]>>>>;
|
|
66
|
+
_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>]>>;
|
|
67
|
+
}, z.ZodTypeAny, "passthrough">>, FreeDeliveryMarketingIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
68
|
+
declare const FreeDeliveryMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
8
69
|
marketingType: z.ZodLiteral<MarketingType.FREE_DELIVERY>;
|
|
9
70
|
spendLimit: z.ZodDefault<z.ZodNumber>;
|
|
10
71
|
isSpendLimitEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -22,6 +83,7 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
22
83
|
}>;
|
|
23
84
|
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
|
|
24
85
|
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>>>>;
|
|
86
|
+
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>]>>>;
|
|
25
87
|
}, "strict", z.ZodTypeAny, {
|
|
26
88
|
isAppliedByCompany: boolean;
|
|
27
89
|
shop: import("mongoose").Types.ObjectId;
|
|
@@ -34,6 +96,7 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
34
96
|
pausedAt: Date | null;
|
|
35
97
|
spendLimit: number;
|
|
36
98
|
isSpendLimitEnabled: boolean;
|
|
99
|
+
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
37
100
|
}, {
|
|
38
101
|
isAppliedByCompany: boolean;
|
|
39
102
|
shop: string | import("mongoose").Types.ObjectId;
|
|
@@ -44,28 +107,47 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
44
107
|
};
|
|
45
108
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
46
109
|
pausedAt?: string | Date | null | undefined;
|
|
110
|
+
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
47
111
|
spendLimit?: number | undefined;
|
|
48
112
|
isSpendLimitEnabled?: boolean | undefined;
|
|
49
|
-
}>,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
duration: z.ZodOptional<z.ZodObject<{
|
|
56
|
-
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>;
|
|
57
|
-
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>>;
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
}>, {
|
|
114
|
+
isAppliedByCompany: boolean;
|
|
115
|
+
shop: import("mongoose").Types.ObjectId;
|
|
116
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
117
|
+
marketingType: MarketingType.FREE_DELIVERY;
|
|
118
|
+
duration: {
|
|
59
119
|
start: Date;
|
|
60
120
|
end?: Date | undefined;
|
|
61
|
-
}
|
|
121
|
+
};
|
|
122
|
+
pausedAt: Date | null;
|
|
123
|
+
spendLimit: number;
|
|
124
|
+
isSpendLimitEnabled: boolean;
|
|
125
|
+
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
isAppliedByCompany: boolean;
|
|
128
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
129
|
+
marketingType: MarketingType.FREE_DELIVERY;
|
|
130
|
+
duration: {
|
|
62
131
|
start: string | Date;
|
|
63
132
|
end?: string | Date | undefined;
|
|
64
|
-
}
|
|
65
|
-
status
|
|
66
|
-
pausedAt
|
|
67
|
-
|
|
68
|
-
|
|
133
|
+
};
|
|
134
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
135
|
+
pausedAt?: string | Date | null | undefined;
|
|
136
|
+
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
137
|
+
spendLimit?: number | undefined;
|
|
138
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
139
|
+
}>;
|
|
140
|
+
declare const UpdateFreeDeliveryMarketingSchema: z.ZodEffects<z.ZodObject<{
|
|
141
|
+
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
142
|
+
}, "strict", z.ZodTypeAny, {
|
|
143
|
+
[x: string]: any;
|
|
144
|
+
}, {
|
|
145
|
+
[x: string]: any;
|
|
146
|
+
}>, {
|
|
147
|
+
[x: string]: any;
|
|
148
|
+
}, {
|
|
149
|
+
[x: string]: any;
|
|
150
|
+
}> | z.ZodEffects<z.ZodObject<{
|
|
69
151
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
70
152
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
71
153
|
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -83,8 +165,9 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
83
165
|
}>>;
|
|
84
166
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
85
167
|
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>>>>>;
|
|
168
|
+
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>]>>>>;
|
|
86
169
|
_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>]>>;
|
|
87
|
-
}, z.ZodTypeAny,
|
|
170
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
88
171
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
89
172
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
90
173
|
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -102,14 +185,9 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
102
185
|
}>>;
|
|
103
186
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
104
187
|
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>>>>>;
|
|
188
|
+
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>]>>>>;
|
|
105
189
|
_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>]>>;
|
|
106
|
-
}, z.ZodTypeAny, "passthrough"
|
|
107
|
-
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
108
|
-
}, "strict", z.ZodTypeAny, {
|
|
109
|
-
[x: string]: any;
|
|
110
|
-
}, {
|
|
111
|
-
[x: string]: any;
|
|
112
|
-
}> | z.ZodObject<{
|
|
190
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
113
191
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
114
192
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
115
193
|
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -127,8 +205,9 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
127
205
|
}>>;
|
|
128
206
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
129
207
|
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>>>>>;
|
|
208
|
+
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>]>>>>;
|
|
130
209
|
_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>]>>;
|
|
131
|
-
},
|
|
210
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
132
211
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
133
212
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
134
213
|
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -146,6 +225,7 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
146
225
|
}>>;
|
|
147
226
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
148
227
|
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>>>>>;
|
|
228
|
+
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>]>>>>;
|
|
149
229
|
_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>]>>;
|
|
150
230
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
151
231
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
@@ -165,6 +245,7 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
165
245
|
}>>;
|
|
166
246
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
|
|
167
247
|
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>>>>>;
|
|
248
|
+
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>]>>>>;
|
|
168
249
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
169
250
|
}, z.ZodTypeAny, "passthrough">>;
|
|
170
251
|
/**
|
package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"free-delivery-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/free-delivery-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAmBlE;;GAEG;AACH,QAAA,
|
|
1
|
+
{"version":3,"file":"free-delivery-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/free-delivery-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAmBlE;;GAEG;AACH,QAAA,MAEe,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC/B,6BAA6B,iNAEY,CAAC;AAErD,QAAA,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBxC,CAAC;AAEJ,QAAA,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAiBtC,CAAC;AAEF;;GAEG;AACH,OAAO,EACN,qCAAqC,EACrC,2BAA2B,EAC3B,6BAA6B,IAAI,uCAAuC,EACxE,iCAAiC,GACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAC/F,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -20,6 +20,7 @@ export declare const baseMarketingFields: {
|
|
|
20
20
|
}>;
|
|
21
21
|
status: z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>;
|
|
22
22
|
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>>>>;
|
|
23
|
+
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>]>>>;
|
|
23
24
|
};
|
|
24
25
|
/**
|
|
25
26
|
* Get all schemas for the Parent entity
|
|
@@ -40,6 +41,7 @@ declare const MarketingValidationSchema: z.ZodObject<{
|
|
|
40
41
|
}>;
|
|
41
42
|
status: z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>;
|
|
42
43
|
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>>>>;
|
|
44
|
+
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>]>>>;
|
|
43
45
|
}, "strict", z.ZodTypeAny, {
|
|
44
46
|
isAppliedByCompany: boolean;
|
|
45
47
|
shop: import("mongoose").Types.ObjectId;
|
|
@@ -50,6 +52,7 @@ declare const MarketingValidationSchema: z.ZodObject<{
|
|
|
50
52
|
end?: Date | undefined;
|
|
51
53
|
};
|
|
52
54
|
pausedAt: Date | null;
|
|
55
|
+
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
53
56
|
}, {
|
|
54
57
|
isAppliedByCompany: boolean;
|
|
55
58
|
shop: string | import("mongoose").Types.ObjectId;
|
|
@@ -60,6 +63,7 @@ declare const MarketingValidationSchema: z.ZodObject<{
|
|
|
60
63
|
};
|
|
61
64
|
status?: MarketingStatus | undefined;
|
|
62
65
|
pausedAt?: string | Date | null | undefined;
|
|
66
|
+
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
63
67
|
}>, MarketingSchema: z.ZodObject<{
|
|
64
68
|
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>]>>;
|
|
65
69
|
marketingType: z.ZodOptional<z.ZodNativeEnum<typeof MarketingType>>;
|
|
@@ -76,6 +80,7 @@ declare const MarketingValidationSchema: z.ZodObject<{
|
|
|
76
80
|
}>>;
|
|
77
81
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>>;
|
|
78
82
|
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>>>>>;
|
|
83
|
+
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>]>>>>;
|
|
79
84
|
_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>]>>;
|
|
80
85
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
81
86
|
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>]>>;
|
|
@@ -93,6 +98,7 @@ declare const MarketingValidationSchema: z.ZodObject<{
|
|
|
93
98
|
}>>;
|
|
94
99
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>>;
|
|
95
100
|
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>>>>>;
|
|
101
|
+
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>]>>>>;
|
|
96
102
|
_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>]>>;
|
|
97
103
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
98
104
|
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
@@ -110,6 +116,7 @@ declare const MarketingValidationSchema: z.ZodObject<{
|
|
|
110
116
|
}>>;
|
|
111
117
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>>;
|
|
112
118
|
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>>>>>;
|
|
119
|
+
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>]>>>>;
|
|
113
120
|
_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>]>>;
|
|
114
121
|
}, z.ZodTypeAny, "passthrough">>, MarketingIdSchema: 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>]>, UpdateMarketingSchema: z.ZodObject<{
|
|
115
122
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
@@ -133,6 +140,7 @@ declare const MarketingValidationSchema: z.ZodObject<{
|
|
|
133
140
|
}>>;
|
|
134
141
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>>;
|
|
135
142
|
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>>>>>;
|
|
143
|
+
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>]>>>>;
|
|
136
144
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
137
145
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
138
146
|
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>]>>;
|
|
@@ -150,6 +158,7 @@ declare const MarketingValidationSchema: z.ZodObject<{
|
|
|
150
158
|
}>>;
|
|
151
159
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>>;
|
|
152
160
|
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>>>>>;
|
|
161
|
+
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>]>>>>;
|
|
153
162
|
_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>]>>;
|
|
154
163
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
155
164
|
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,6 +176,7 @@ declare const MarketingValidationSchema: z.ZodObject<{
|
|
|
167
176
|
}>>;
|
|
168
177
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>>;
|
|
169
178
|
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>>>>>;
|
|
179
|
+
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>]>>>>;
|
|
170
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>]>>;
|
|
171
181
|
}, z.ZodTypeAny, "passthrough">>;
|
|
172
182
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGnF;;GAEG;AACH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGnF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;CAQ/B,CAAC;AASF;;GAEG;AACH,QAAA,MACa,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACvB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCACnB,iBAAiB,mNACb,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACgB,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,yBAAyB,EACzB,eAAe,EACf,iBAAiB,IAAI,2BAA2B,EAChD,qBAAqB,GACrB,CAAC;AAEF,eAAO,MAAM,uCAAuC;;;;;;;;;EAGlD,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACvE,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC;AACvD,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACnE,MAAM,MAAM,oCAAoC,GAAG,GAAG,CAAC,OAAO,uCAAuC,CAAC,CAAC"}
|