@lyxa.ai/marketing 1.0.44 → 1.0.47
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 +170 -28
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +169 -27
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +13 -4
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +4 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +134 -15
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts +208 -3
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.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 +2 -0
- package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts +214 -4
- package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.js +114 -16
- package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +208 -3
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts +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 +20 -11
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts +10 -4
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +90 -14
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts +2 -2
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +151 -45
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.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 +17 -4
- 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 +208 -3
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts +5 -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 +243 -23
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +412 -48
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +39 -6
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts +94 -6
- package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts +9 -0
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.js +1 -0
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts +200 -122
- 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 +20 -3
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts +9 -0
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.js +1 -0
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.d.ts +9 -0
- package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.js +1 -0
- package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.js.map +1 -1
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +6 -6
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +6 -6
- package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
- package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/dist/types/index.d.ts +170 -28
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +169 -27
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +4 -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 +208 -3
- 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/helper.service.d.ts +214 -4
- package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +208 -3
- 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 +1 -1
- package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts +10 -4
- package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +2 -2
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.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 +208 -3
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +5 -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 +243 -23
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +412 -48
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts +94 -6
- package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +9 -0
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +200 -122
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts +9 -0
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/shops-categories-coupon.validation.d.ts +9 -0
- package/dist/types/modules/coupon/validations/shops-categories-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +6 -6
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +6 -6
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
|
|
|
5
5
|
couponType: z.ZodLiteral<CouponType.SHOPS_CATEGORIES>;
|
|
6
6
|
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>;
|
|
7
7
|
shops: z.ZodDefault<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">>;
|
|
8
|
+
vendors: z.ZodDefault<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">>;
|
|
8
9
|
isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
|
|
9
10
|
firstOrderOnly: z.ZodDefault<z.ZodBoolean>;
|
|
10
11
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
@@ -75,6 +76,7 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
|
|
|
75
76
|
couponType: CouponType.SHOPS_CATEGORIES;
|
|
76
77
|
itemTypes: ItemType[];
|
|
77
78
|
shops: import("mongoose").Types.ObjectId[];
|
|
79
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
78
80
|
isShopCoverExpenses: boolean;
|
|
79
81
|
firstOrderOnly: boolean;
|
|
80
82
|
secondaryCurrencyValue?: number | undefined;
|
|
@@ -117,12 +119,14 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
|
|
|
117
119
|
isExpired?: boolean | undefined;
|
|
118
120
|
itemTypes?: ItemType[] | undefined;
|
|
119
121
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
122
|
+
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
120
123
|
isShopCoverExpenses?: boolean | undefined;
|
|
121
124
|
firstOrderOnly?: boolean | undefined;
|
|
122
125
|
}>, ShopsCategoriesCouponSchema: z.ZodObject<{
|
|
123
126
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.SHOPS_CATEGORIES>>;
|
|
124
127
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
125
128
|
shops: z.ZodOptional<z.ZodDefault<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">>>;
|
|
129
|
+
vendors: z.ZodOptional<z.ZodDefault<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">>>;
|
|
126
130
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
127
131
|
firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
128
132
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
@@ -174,6 +178,7 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
|
|
|
174
178
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.SHOPS_CATEGORIES>>;
|
|
175
179
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
176
180
|
shops: z.ZodOptional<z.ZodDefault<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">>>;
|
|
181
|
+
vendors: z.ZodOptional<z.ZodDefault<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">>>;
|
|
177
182
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
178
183
|
firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
179
184
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
@@ -225,6 +230,7 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
|
|
|
225
230
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.SHOPS_CATEGORIES>>;
|
|
226
231
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
227
232
|
shops: z.ZodOptional<z.ZodDefault<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">>>;
|
|
233
|
+
vendors: z.ZodOptional<z.ZodDefault<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">>>;
|
|
228
234
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
229
235
|
firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
230
236
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
@@ -282,6 +288,7 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
|
|
|
282
288
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.SHOPS_CATEGORIES>>;
|
|
283
289
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
284
290
|
shops: z.ZodOptional<z.ZodDefault<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">>>;
|
|
291
|
+
vendors: z.ZodOptional<z.ZodDefault<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">>>;
|
|
285
292
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
286
293
|
firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
287
294
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
@@ -333,6 +340,7 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
|
|
|
333
340
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.SHOPS_CATEGORIES>>;
|
|
334
341
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
335
342
|
shops: z.ZodOptional<z.ZodDefault<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">>>;
|
|
343
|
+
vendors: z.ZodOptional<z.ZodDefault<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">>>;
|
|
336
344
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
337
345
|
firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
338
346
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
@@ -384,6 +392,7 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
|
|
|
384
392
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.SHOPS_CATEGORIES>>;
|
|
385
393
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
386
394
|
shops: z.ZodOptional<z.ZodDefault<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">>>;
|
|
395
|
+
vendors: z.ZodOptional<z.ZodDefault<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">>>;
|
|
387
396
|
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
388
397
|
firstOrderOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
389
398
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shops-categories-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/shops-categories-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"shops-categories-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/shops-categories-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAyBzE,QAAA,MACa,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACnC,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC/B,6BAA6B,mNACzB,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACI,CAAC;AAKrD,OAAO,EACN,qCAAqC,EACrC,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"}
|
|
@@ -10,6 +10,7 @@ const baseFields = {
|
|
|
10
10
|
couponType: zod_1.z.literal(enum_1.CouponType.SHOPS_CATEGORIES),
|
|
11
11
|
itemTypes: global_validation_1.ZodValidation.array(global_validation_1.ZodValidation.enumType(enum_1.ItemType, 'Item type'), 'Item types').default([]),
|
|
12
12
|
shops: global_validation_1.ZodValidation.array(global_validation_1.ZodValidation.objectId('Shop'), 'Shops').default([]),
|
|
13
|
+
vendors: global_validation_1.ZodValidation.array(global_validation_1.ZodValidation.objectId('Vendor'), 'Vendors').default([]),
|
|
13
14
|
isShopCoverExpenses: global_validation_1.ZodValidation.boolean('IsShopCoverExpenses').default(false),
|
|
14
15
|
firstOrderOnly: global_validation_1.ZodValidation.boolean('FirstOrderOnly').default(false),
|
|
15
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shops-categories-coupon.validation.js","sourceRoot":"/","sources":["modules/coupon/validations/shops-categories-coupon.validation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iGAImE;AACnE,2DAAqE;AACrE,4DAAyE;AAKzE,MAAM,UAAU,GAAG;IAClB,GAAG,8BAAgB;IACnB,UAAU,EAAE,OAAC,CAAC,OAAO,CAAC,iBAAU,CAAC,gBAAgB,CAAC;IAClD,SAAS,EAAE,iCAAa,CAAC,KAAK,CAAC,iCAAa,CAAC,QAAQ,CAAC,eAAQ,EAAE,WAAW,CAAC,EAAE,YAAY,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACvG,KAAK,EAAE,iCAAa,CAAC,KAAK,CAAC,iCAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC/E,mBAAmB,EAAE,iCAAa,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAChF,cAAc,EAAE,iCAAa,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;CACtE,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;AAMpD,sFAAqC;AACrC,kEAA2B;AACM,gFAAuC;AACxE,8EAAiC","sourcesContent":["import { z } from 'zod';\nimport {\n\tZodValidation,\n\tcreateSchemaBuilder,\n\tDTO,\n} from '@lyxa.ai/core/dist/utilities/validation/global-validation';\nimport { baseFields as baseCouponFields } from './coupon.validation';\nimport { CouponType, ItemType } from '@lyxa.ai/core/dist/utilities/enum';\n\n/**\n * Define the base parent schema fields\n */\nconst baseFields = {\n\t...baseCouponFields,\n\tcouponType: z.literal(CouponType.SHOPS_CATEGORIES),\n\titemTypes: ZodValidation.array(ZodValidation.enumType(ItemType, 'Item type'), 'Item types').default([]),\n\tshops: ZodValidation.array(ZodValidation.objectId('Shop'), 'Shops').default([]),\n\tisShopCoverExpenses: ZodValidation.boolean('IsShopCoverExpenses').default(false),\n\tfirstOrderOnly: ZodValidation.boolean('FirstOrderOnly').default(false),\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: ShopsCategoriesCouponValidationSchema,\n\tEntitySchema: ShopsCategoriesCouponSchema,\n\tIdSchema: ShopsCategoriesCouponIdSchema,\n\tUpdateSchema: UpdateShopsCategoriesCouponSchema,\n} = schemaBuilder.getAllSchemas({ createdAt: true });\n\n/**\n * Export schemas\n */\nexport {\n\tShopsCategoriesCouponValidationSchema,\n\tShopsCategoriesCouponSchema,\n\tShopsCategoriesCouponIdSchema as ShopsCategoriesCouponIdValidationSchema,\n\tUpdateShopsCategoriesCouponSchema,\n};\n\n/**\n * Export DTO types\n */\nexport type CreateShopsCategoriesCouponDTO = DTO<typeof ShopsCategoriesCouponValidationSchema>;\nexport type ShopsCategoriesCouponDTO = DTO<typeof ShopsCategoriesCouponSchema>;\nexport type UpdateShopsCategoriesCouponDTO = DTO<typeof UpdateShopsCategoriesCouponSchema>;\n"]}
|
|
1
|
+
{"version":3,"file":"shops-categories-coupon.validation.js","sourceRoot":"/","sources":["modules/coupon/validations/shops-categories-coupon.validation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iGAImE;AACnE,2DAAqE;AACrE,4DAAyE;AAKzE,MAAM,UAAU,GAAG;IAClB,GAAG,8BAAgB;IACnB,UAAU,EAAE,OAAC,CAAC,OAAO,CAAC,iBAAU,CAAC,gBAAgB,CAAC;IAClD,SAAS,EAAE,iCAAa,CAAC,KAAK,CAAC,iCAAa,CAAC,QAAQ,CAAC,eAAQ,EAAE,WAAW,CAAC,EAAE,YAAY,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACvG,KAAK,EAAE,iCAAa,CAAC,KAAK,CAAC,iCAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC/E,OAAO,EAAE,iCAAa,CAAC,KAAK,CAAC,iCAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACrF,mBAAmB,EAAE,iCAAa,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAChF,cAAc,EAAE,iCAAa,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;CACtE,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;AAMpD,sFAAqC;AACrC,kEAA2B;AACM,gFAAuC;AACxE,8EAAiC","sourcesContent":["import { z } from 'zod';\nimport {\n\tZodValidation,\n\tcreateSchemaBuilder,\n\tDTO,\n} from '@lyxa.ai/core/dist/utilities/validation/global-validation';\nimport { baseFields as baseCouponFields } from './coupon.validation';\nimport { CouponType, ItemType } from '@lyxa.ai/core/dist/utilities/enum';\n\n/**\n * Define the base parent schema fields\n */\nconst baseFields = {\n\t...baseCouponFields,\n\tcouponType: z.literal(CouponType.SHOPS_CATEGORIES),\n\titemTypes: ZodValidation.array(ZodValidation.enumType(ItemType, 'Item type'), 'Item types').default([]),\n\tshops: ZodValidation.array(ZodValidation.objectId('Shop'), 'Shops').default([]),\n\tvendors: ZodValidation.array(ZodValidation.objectId('Vendor'), 'Vendors').default([]),\n\tisShopCoverExpenses: ZodValidation.boolean('IsShopCoverExpenses').default(false),\n\tfirstOrderOnly: ZodValidation.boolean('FirstOrderOnly').default(false),\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: ShopsCategoriesCouponValidationSchema,\n\tEntitySchema: ShopsCategoriesCouponSchema,\n\tIdSchema: ShopsCategoriesCouponIdSchema,\n\tUpdateSchema: UpdateShopsCategoriesCouponSchema,\n} = schemaBuilder.getAllSchemas({ createdAt: true });\n\n/**\n * Export schemas\n */\nexport {\n\tShopsCategoriesCouponValidationSchema,\n\tShopsCategoriesCouponSchema,\n\tShopsCategoriesCouponIdSchema as ShopsCategoriesCouponIdValidationSchema,\n\tUpdateShopsCategoriesCouponSchema,\n};\n\n/**\n * Export DTO types\n */\nexport type CreateShopsCategoriesCouponDTO = DTO<typeof ShopsCategoriesCouponValidationSchema>;\nexport type ShopsCategoriesCouponDTO = DTO<typeof ShopsCategoriesCouponSchema>;\nexport type UpdateShopsCategoriesCouponDTO = DTO<typeof UpdateShopsCategoriesCouponSchema>;\n"]}
|
|
@@ -55,6 +55,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
55
55
|
spendLimit: number;
|
|
56
56
|
isSpendLimitEnabled: boolean;
|
|
57
57
|
shop: import("mongoose").Types.ObjectId;
|
|
58
|
+
categories: import("mongoose").Types.ObjectId[];
|
|
58
59
|
products: {
|
|
59
60
|
product: import("mongoose").Types.ObjectId;
|
|
60
61
|
value?: number | undefined;
|
|
@@ -66,7 +67,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
66
67
|
marketingType: MarketingType.BUY1GET1;
|
|
67
68
|
isAppliedByCompany: boolean;
|
|
68
69
|
pausedAt: Date | null;
|
|
69
|
-
categories: import("mongoose").Types.ObjectId[];
|
|
70
70
|
isEntireMenu: boolean;
|
|
71
71
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
72
72
|
isOnlyForSubscriber: boolean;
|
|
@@ -82,6 +82,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
82
82
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
83
83
|
spendLimit?: number | undefined;
|
|
84
84
|
isSpendLimitEnabled?: boolean | undefined;
|
|
85
|
+
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
85
86
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
86
87
|
products?: {
|
|
87
88
|
product: string | import("mongoose").Types.ObjectId;
|
|
@@ -92,7 +93,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
92
93
|
isBuy1Get1?: boolean | undefined;
|
|
93
94
|
}[] | undefined;
|
|
94
95
|
pausedAt?: string | Date | null | undefined;
|
|
95
|
-
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
96
96
|
isEntireMenu?: boolean | undefined;
|
|
97
97
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
98
98
|
isOnlyForSubscriber?: boolean | undefined;
|
|
@@ -433,6 +433,7 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
433
433
|
spendLimit: number;
|
|
434
434
|
isSpendLimitEnabled: boolean;
|
|
435
435
|
shop: import("mongoose").Types.ObjectId;
|
|
436
|
+
categories: import("mongoose").Types.ObjectId[];
|
|
436
437
|
products: {
|
|
437
438
|
product: import("mongoose").Types.ObjectId;
|
|
438
439
|
value?: number | undefined;
|
|
@@ -444,7 +445,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
444
445
|
marketingType: MarketingType.BUY1GET1;
|
|
445
446
|
isAppliedByCompany: boolean;
|
|
446
447
|
pausedAt: Date | null;
|
|
447
|
-
categories: import("mongoose").Types.ObjectId[];
|
|
448
448
|
isEntireMenu: boolean;
|
|
449
449
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
450
450
|
isOnlyForSubscriber: boolean;
|
|
@@ -460,6 +460,7 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
460
460
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
461
461
|
spendLimit?: number | undefined;
|
|
462
462
|
isSpendLimitEnabled?: boolean | undefined;
|
|
463
|
+
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
463
464
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
464
465
|
products?: {
|
|
465
466
|
product: string | import("mongoose").Types.ObjectId;
|
|
@@ -470,7 +471,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
470
471
|
isBuy1Get1?: boolean | undefined;
|
|
471
472
|
}[] | undefined;
|
|
472
473
|
pausedAt?: string | Date | null | undefined;
|
|
473
|
-
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
474
474
|
isEntireMenu?: boolean | undefined;
|
|
475
475
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
476
476
|
isOnlyForSubscriber?: boolean | undefined;
|
|
@@ -483,6 +483,7 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
483
483
|
spendLimit: number;
|
|
484
484
|
isSpendLimitEnabled: boolean;
|
|
485
485
|
shop: import("mongoose").Types.ObjectId;
|
|
486
|
+
categories: import("mongoose").Types.ObjectId[];
|
|
486
487
|
products: {
|
|
487
488
|
product: import("mongoose").Types.ObjectId;
|
|
488
489
|
value?: number | undefined;
|
|
@@ -494,7 +495,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
494
495
|
marketingType: MarketingType.BUY1GET1;
|
|
495
496
|
isAppliedByCompany: boolean;
|
|
496
497
|
pausedAt: Date | null;
|
|
497
|
-
categories: import("mongoose").Types.ObjectId[];
|
|
498
498
|
isEntireMenu: boolean;
|
|
499
499
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
500
500
|
isOnlyForSubscriber: boolean;
|
|
@@ -510,6 +510,7 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
510
510
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
511
511
|
spendLimit?: number | undefined;
|
|
512
512
|
isSpendLimitEnabled?: boolean | undefined;
|
|
513
|
+
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
513
514
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
514
515
|
products?: {
|
|
515
516
|
product: string | import("mongoose").Types.ObjectId;
|
|
@@ -520,7 +521,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
520
521
|
isBuy1Get1?: boolean | undefined;
|
|
521
522
|
}[] | undefined;
|
|
522
523
|
pausedAt?: string | Date | null | undefined;
|
|
523
|
-
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
524
524
|
isEntireMenu?: boolean | undefined;
|
|
525
525
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
526
526
|
isOnlyForSubscriber?: boolean | undefined;
|
|
@@ -61,6 +61,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
61
61
|
spendLimit: number;
|
|
62
62
|
isSpendLimitEnabled: boolean;
|
|
63
63
|
shop: import("mongoose").Types.ObjectId;
|
|
64
|
+
categories: import("mongoose").Types.ObjectId[];
|
|
64
65
|
products: {
|
|
65
66
|
product: import("mongoose").Types.ObjectId;
|
|
66
67
|
value?: number | undefined;
|
|
@@ -72,7 +73,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
72
73
|
marketingType: MarketingType.DISCOUNT;
|
|
73
74
|
isAppliedByCompany: boolean;
|
|
74
75
|
pausedAt: Date | null;
|
|
75
|
-
categories: import("mongoose").Types.ObjectId[];
|
|
76
76
|
isEntireMenu: boolean;
|
|
77
77
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
78
78
|
isOnlyForSubscriber: boolean;
|
|
@@ -96,6 +96,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
96
96
|
valueType?: ValueType | undefined;
|
|
97
97
|
spendLimit?: number | undefined;
|
|
98
98
|
isSpendLimitEnabled?: boolean | undefined;
|
|
99
|
+
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
99
100
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
100
101
|
products?: {
|
|
101
102
|
product: string | import("mongoose").Types.ObjectId;
|
|
@@ -106,7 +107,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
106
107
|
isBuy1Get1?: boolean | undefined;
|
|
107
108
|
}[] | undefined;
|
|
108
109
|
pausedAt?: string | Date | null | undefined;
|
|
109
|
-
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
110
110
|
isEntireMenu?: boolean | undefined;
|
|
111
111
|
categoryValue?: number | undefined;
|
|
112
112
|
categoryValueType?: ValueType | undefined;
|
|
@@ -331,6 +331,7 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
331
331
|
spendLimit: number;
|
|
332
332
|
isSpendLimitEnabled: boolean;
|
|
333
333
|
shop: import("mongoose").Types.ObjectId;
|
|
334
|
+
categories: import("mongoose").Types.ObjectId[];
|
|
334
335
|
products: {
|
|
335
336
|
product: import("mongoose").Types.ObjectId;
|
|
336
337
|
value?: number | undefined;
|
|
@@ -342,7 +343,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
342
343
|
marketingType: MarketingType.DISCOUNT;
|
|
343
344
|
isAppliedByCompany: boolean;
|
|
344
345
|
pausedAt: Date | null;
|
|
345
|
-
categories: import("mongoose").Types.ObjectId[];
|
|
346
346
|
isEntireMenu: boolean;
|
|
347
347
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
348
348
|
isOnlyForSubscriber: boolean;
|
|
@@ -366,6 +366,7 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
366
366
|
valueType?: ValueType | undefined;
|
|
367
367
|
spendLimit?: number | undefined;
|
|
368
368
|
isSpendLimitEnabled?: boolean | undefined;
|
|
369
|
+
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
369
370
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
370
371
|
products?: {
|
|
371
372
|
product: string | import("mongoose").Types.ObjectId;
|
|
@@ -376,7 +377,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
376
377
|
isBuy1Get1?: boolean | undefined;
|
|
377
378
|
}[] | undefined;
|
|
378
379
|
pausedAt?: string | Date | null | undefined;
|
|
379
|
-
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
380
380
|
isEntireMenu?: boolean | undefined;
|
|
381
381
|
categoryValue?: number | undefined;
|
|
382
382
|
categoryValueType?: ValueType | undefined;
|
|
@@ -393,6 +393,7 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
393
393
|
spendLimit: number;
|
|
394
394
|
isSpendLimitEnabled: boolean;
|
|
395
395
|
shop: import("mongoose").Types.ObjectId;
|
|
396
|
+
categories: import("mongoose").Types.ObjectId[];
|
|
396
397
|
products: {
|
|
397
398
|
product: import("mongoose").Types.ObjectId;
|
|
398
399
|
value?: number | undefined;
|
|
@@ -404,7 +405,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
404
405
|
marketingType: MarketingType.DISCOUNT;
|
|
405
406
|
isAppliedByCompany: boolean;
|
|
406
407
|
pausedAt: Date | null;
|
|
407
|
-
categories: import("mongoose").Types.ObjectId[];
|
|
408
408
|
isEntireMenu: boolean;
|
|
409
409
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
410
410
|
isOnlyForSubscriber: boolean;
|
|
@@ -428,6 +428,7 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
428
428
|
valueType?: ValueType | undefined;
|
|
429
429
|
spendLimit?: number | undefined;
|
|
430
430
|
isSpendLimitEnabled?: boolean | undefined;
|
|
431
|
+
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
431
432
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
432
433
|
products?: {
|
|
433
434
|
product: string | import("mongoose").Types.ObjectId;
|
|
@@ -438,7 +439,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
438
439
|
isBuy1Get1?: boolean | undefined;
|
|
439
440
|
}[] | undefined;
|
|
440
441
|
pausedAt?: string | Date | null | undefined;
|
|
441
|
-
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
442
442
|
isEntireMenu?: boolean | undefined;
|
|
443
443
|
categoryValue?: number | undefined;
|
|
444
444
|
categoryValueType?: ValueType | undefined;
|
|
@@ -185,6 +185,7 @@ export declare const BatchCreateProductMarketingsInputSchema: z.ZodObject<{
|
|
|
185
185
|
isBuy1Get1: z.ZodBoolean;
|
|
186
186
|
}, "strip", z.ZodTypeAny, {
|
|
187
187
|
shop: import("mongoose").Types.ObjectId;
|
|
188
|
+
categories: import("mongoose").Types.ObjectId[];
|
|
188
189
|
products: {
|
|
189
190
|
product: import("mongoose").Types.ObjectId;
|
|
190
191
|
value?: number | undefined;
|
|
@@ -192,7 +193,6 @@ export declare const BatchCreateProductMarketingsInputSchema: z.ZodObject<{
|
|
|
192
193
|
}[];
|
|
193
194
|
marketingId: import("mongoose").Types.ObjectId;
|
|
194
195
|
isBuy1Get1: boolean;
|
|
195
|
-
categories: import("mongoose").Types.ObjectId[];
|
|
196
196
|
isEntireMenu: boolean;
|
|
197
197
|
value?: number | undefined;
|
|
198
198
|
valueType?: ValueType | undefined;
|
|
@@ -206,13 +206,13 @@ export declare const BatchCreateProductMarketingsInputSchema: z.ZodObject<{
|
|
|
206
206
|
isEntireMenu: boolean;
|
|
207
207
|
value?: number | undefined;
|
|
208
208
|
valueType?: ValueType | undefined;
|
|
209
|
+
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
209
210
|
products?: {
|
|
210
211
|
product: string | import("mongoose").Types.ObjectId;
|
|
211
212
|
value?: number | undefined;
|
|
212
213
|
valueType?: ValueType | null | undefined;
|
|
213
214
|
}[] | undefined;
|
|
214
215
|
isAppliedByCompany?: boolean | undefined;
|
|
215
|
-
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
216
216
|
categoryValue?: number | undefined;
|
|
217
217
|
categoryValueType?: ValueType | undefined;
|
|
218
218
|
}>;
|
package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts
CHANGED
|
@@ -26,9 +26,9 @@ export declare const punchMarketingHistoryRouter: import("@trpc/server").TRPCBui
|
|
|
26
26
|
couponDurationInDays: number;
|
|
27
27
|
status?: import("@lyxa.ai/core/dist/utilities/enum").PunchMarketingStatus | undefined;
|
|
28
28
|
startDate?: string | Date | undefined;
|
|
29
|
+
completedAt?: string | Date | undefined;
|
|
29
30
|
completedOrder?: number | undefined;
|
|
30
31
|
expiryDate?: string | Date | undefined;
|
|
31
|
-
completedAt?: string | Date | undefined;
|
|
32
32
|
couponExpiryDate?: string | Date | undefined;
|
|
33
33
|
};
|
|
34
34
|
output: {
|
package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts
CHANGED
|
@@ -27,9 +27,9 @@ declare const PunchMarketingHistoryValidationSchema: z.ZodObject<{
|
|
|
27
27
|
couponDurationInDays: number;
|
|
28
28
|
status?: PunchMarketingStatus | undefined;
|
|
29
29
|
startDate?: Date | undefined;
|
|
30
|
+
completedAt?: Date | undefined;
|
|
30
31
|
completedOrder?: number | undefined;
|
|
31
32
|
expiryDate?: Date | undefined;
|
|
32
|
-
completedAt?: Date | undefined;
|
|
33
33
|
couponExpiryDate?: Date | undefined;
|
|
34
34
|
}, {
|
|
35
35
|
user: string | import("mongoose").Types.ObjectId;
|
|
@@ -42,9 +42,9 @@ declare const PunchMarketingHistoryValidationSchema: z.ZodObject<{
|
|
|
42
42
|
couponDurationInDays: number;
|
|
43
43
|
status?: PunchMarketingStatus | undefined;
|
|
44
44
|
startDate?: string | Date | undefined;
|
|
45
|
+
completedAt?: string | Date | undefined;
|
|
45
46
|
completedOrder?: number | undefined;
|
|
46
47
|
expiryDate?: string | Date | undefined;
|
|
47
|
-
completedAt?: string | Date | undefined;
|
|
48
48
|
couponExpiryDate?: string | Date | undefined;
|
|
49
49
|
}>, PunchMarketingHistorySchema: z.ZodObject<{
|
|
50
50
|
user: 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>]>>;
|