@lyxa.ai/marketing 1.0.10 → 1.0.11
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/types/index.d.ts +394 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +394 -2
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +2 -0
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +35 -0
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +615 -0
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +257 -2
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +55 -0
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts +55 -0
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +55 -0
- 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 +55 -0
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +55 -0
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/free-delivery-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/marketing.service.d.ts +2 -2
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts +5 -0
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts +2 -2
- package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts +1 -0
- package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +127 -1
- 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 +28 -28
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -37,6 +37,13 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
37
37
|
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
38
38
|
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
39
39
|
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
40
|
+
referringUser: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
name?: string | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
name?: string | undefined;
|
|
46
|
+
}>>;
|
|
40
47
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
41
48
|
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
42
49
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -62,6 +69,9 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
62
69
|
secondaryCurrencyValue?: number | undefined;
|
|
63
70
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
64
71
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
72
|
+
referringUser?: {
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
} | undefined;
|
|
65
75
|
}, {
|
|
66
76
|
value: number;
|
|
67
77
|
code: string;
|
|
@@ -84,6 +94,9 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
84
94
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
85
95
|
forNewUserOnly?: boolean | undefined;
|
|
86
96
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
97
|
+
referringUser?: {
|
|
98
|
+
name?: string | undefined;
|
|
99
|
+
} | undefined;
|
|
87
100
|
orderLimitPerUser?: number | null | undefined;
|
|
88
101
|
}>, ReferralRewardCouponSchema: z.ZodObject<{
|
|
89
102
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_REWARD>>;
|
|
@@ -118,6 +131,13 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
118
131
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
119
132
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
120
133
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
134
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
135
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
name?: string | undefined;
|
|
138
|
+
}, {
|
|
139
|
+
name?: string | undefined;
|
|
140
|
+
}>>>;
|
|
121
141
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
122
142
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
123
143
|
_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,6 +174,13 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
154
174
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
155
175
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
156
176
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
177
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
178
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
name?: string | undefined;
|
|
181
|
+
}, {
|
|
182
|
+
name?: string | undefined;
|
|
183
|
+
}>>>;
|
|
157
184
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
158
185
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
159
186
|
_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>]>>;
|
|
@@ -190,6 +217,13 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
190
217
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
191
218
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
192
219
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
220
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
221
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
name?: string | undefined;
|
|
224
|
+
}, {
|
|
225
|
+
name?: string | undefined;
|
|
226
|
+
}>>>;
|
|
193
227
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
194
228
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
195
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>]>>;
|
|
@@ -232,6 +266,13 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
232
266
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
233
267
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
234
268
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
269
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
270
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
271
|
+
}, "strip", z.ZodTypeAny, {
|
|
272
|
+
name?: string | undefined;
|
|
273
|
+
}, {
|
|
274
|
+
name?: string | undefined;
|
|
275
|
+
}>>>;
|
|
235
276
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
236
277
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
237
278
|
_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>]>>;
|
|
@@ -268,6 +309,13 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
268
309
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
269
310
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
270
311
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
312
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
313
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
name?: string | undefined;
|
|
316
|
+
}, {
|
|
317
|
+
name?: string | undefined;
|
|
318
|
+
}>>>;
|
|
271
319
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
272
320
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
273
321
|
_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>]>>;
|
|
@@ -304,6 +352,13 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
304
352
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
305
353
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
306
354
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
355
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
356
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
357
|
+
}, "strip", z.ZodTypeAny, {
|
|
358
|
+
name?: string | undefined;
|
|
359
|
+
}, {
|
|
360
|
+
name?: string | undefined;
|
|
361
|
+
}>>>;
|
|
307
362
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
308
363
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
309
364
|
_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>]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"referral-reward-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/referral-reward-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,MAAM,mCAAmC,CAAC;AAoB/D;;GAEG;AACH,QAAA,MACa,oCAAoC
|
|
1
|
+
{"version":3,"file":"referral-reward-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/referral-reward-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,MAAM,mCAAmC,CAAC;AAoB/D;;GAEG;AACH,QAAA,MACa,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAClC,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC9B,4BAA4B,mNACxB,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACK,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,oCAAoC,EACpC,0BAA0B,EAC1B,4BAA4B,IAAI,sCAAsC,EACtE,gCAAgC,GAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,GAAG,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAC7F,MAAM,MAAM,uBAAuB,GAAG,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC7E,MAAM,MAAM,6BAA6B,GAAG,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"free-delivery-marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/free-delivery-marketing.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAEN,qBAAqB,IAAI,KAAK,EAE9B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACN,8BAA8B,IAAI,SAAS,EAC3C,8BAA8B,IAAI,SAAS,EAC3C,MAAM,gCAAgC,CAAC;AAExC,qBACa,4BAA4B;IACxC,OAAO,CAAC,KAAK,CAAC;IACd,OAAO,CAAC,SAAS,CAAmB;;IAOpC;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"free-delivery-marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/free-delivery-marketing.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAEN,qBAAqB,IAAI,KAAK,EAE9B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACN,8BAA8B,IAAI,SAAS,EAC3C,8BAA8B,IAAI,SAAS,EAC3C,MAAM,gCAAgC,CAAC;AAExC,qBACa,4BAA4B;IACxC,OAAO,CAAC,KAAK,CAAC;IACd,OAAO,CAAC,SAAS,CAAmB;;IAOpC;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAgBlE;;;;OAIG;IACU,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;CAsBhG;AAED,eAAO,MAAM,4BAA4B,8BAA8C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DocumentType, mongoose } from '@typegoose/typegoose';
|
|
2
2
|
import { Marketing as Model } from '@lyxa.ai/core/dist/libraries/mongo/models';
|
|
3
|
-
import {
|
|
3
|
+
import { AllMarketingsValidationDTO, UpdateMarketingDTO as UpdateDTO } from '@modules/marketing/validations';
|
|
4
4
|
import { FilterDTO, PaginatedResponse, DeleteDTO } from '@lyxa.ai/core/dist/utilities/validation';
|
|
5
5
|
import { ModelType } from '@typegoose/typegoose/lib/types';
|
|
6
6
|
export declare class MarketingService {
|
|
@@ -10,7 +10,7 @@ export declare class MarketingService {
|
|
|
10
10
|
* Create a new record
|
|
11
11
|
* @param data Data for the new record
|
|
12
12
|
*/
|
|
13
|
-
create(data:
|
|
13
|
+
create(data: AllMarketingsValidationDTO, admin?: mongoose.Types.ObjectId): Promise<DocumentType<Model>>;
|
|
14
14
|
/**
|
|
15
15
|
* Get record by ID
|
|
16
16
|
* @param id ID of the record
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/marketing.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAEN,SAAS,IAAI,KAAK,EAElB,MAAM,2CAA2C,CAAC;AACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/marketing.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAEN,SAAS,IAAI,KAAK,EAElB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAEN,0BAA0B,EAE1B,kBAAkB,IAAI,SAAS,EAC/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGlG,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAkB3D,qBACa,gBAAgB;IAC5B,OAAO,CAAC,KAAK,CAAiD;;IAM9D;;;OAGG;IACU,MAAM,CAClB,IAAI,EAAE,0BAA0B,EAChC,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAC7B,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAkH/B;;;OAGG;IACU,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAczF;;;OAGG;IACU,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAqBxG;;;;OAIG;IACU,MAAM,CAClB,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC5B,IAAI,EAAE,SAAS,EACf,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAC7B,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;YA8GjB,uBAAuB;IAerC;;;OAGG;IACU,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC;CA2B1F;AAED,eAAO,MAAM,gBAAgB,kBAAkC,CAAC"}
|
|
@@ -37,6 +37,11 @@ export declare class ProductMarketingService {
|
|
|
37
37
|
* @param data Data for delete
|
|
38
38
|
*/
|
|
39
39
|
deleteMultipleProducts(filter: QueryMultipleProductMarketingDTO, softDelete: boolean): Promise<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Check if products are available for marketing
|
|
42
|
+
* @param products Array of product IDs
|
|
43
|
+
*/
|
|
44
|
+
checkProductMarketingAvailability(products: mongoose.Types.ObjectId[]): Promise<boolean>;
|
|
40
45
|
}
|
|
41
46
|
export declare const productMarketingService: ProductMarketingService;
|
|
42
47
|
//# sourceMappingURL=product-marketing.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/product-marketing.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAyB,gBAAgB,IAAI,KAAK,EAAE,MAAM,4CAA4C,CAAC;AAC9G,OAAO,EACN,yBAAyB,IAAI,SAAS,EACtC,wBAAwB,IAAI,QAAQ,EACpC,gCAAgC,EAChC,yBAAyB,IAAI,SAAS,EAEtC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAa,MAAM,yCAAyC,CAAC;AAElG,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"product-marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/product-marketing.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAyB,gBAAgB,IAAI,KAAK,EAAE,MAAM,4CAA4C,CAAC;AAC9G,OAAO,EACN,yBAAyB,IAAI,SAAS,EACtC,wBAAwB,IAAI,QAAQ,EACpC,gCAAgC,EAChC,yBAAyB,IAAI,SAAS,EAEtC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAa,MAAM,yCAAyC,CAAC;AAElG,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAG3D,qBACa,uBAAuB;IACnC,OAAO,CAAC,KAAK,CAAwD;;IAMrE;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAIlE;;;OAGG;IACU,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAczF;;;OAGG;IACU,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAqBxG;;;;OAIG;IACU,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IAgBzE;;;OAGG;IACU,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAY/E;;;OAGG;IACU,sBAAsB,CAClC,MAAM,EAAE,gCAAgC,EACxC,UAAU,EAAE,OAAO,GACjB,OAAO,CAAC,MAAM,CAAC;IAkBlB;;;OAGG;IACU,iCAAiC,CAAC,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CA8BrG;AAED,eAAO,MAAM,uBAAuB,yBAAyC,CAAC"}
|
|
@@ -2,8 +2,8 @@ import { DiscountMarketing as Model } from '@lyxa.ai/core/dist/libraries/mongo/m
|
|
|
2
2
|
export declare const discountMarketingTransformer: import("@lyxa.ai/core/dist/utilities/transformers").GlobalTransformer<Model, import("zod").objectOutputType<{
|
|
3
3
|
marketingType: import("zod").ZodOptional<import("zod").ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").MarketingType.DISCOUNT>>;
|
|
4
4
|
isEntireMenu: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
5
|
-
valueType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType
|
|
6
|
-
value: import("zod").ZodOptional<import("zod").ZodNumber
|
|
5
|
+
valueType: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>;
|
|
6
|
+
value: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
7
7
|
products: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
8
8
|
product: 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>]>;
|
|
9
9
|
marketing: 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>]>>;
|
|
@@ -49,5 +49,6 @@ export declare const MarketingResponseSchema: z.ZodObject<{
|
|
|
49
49
|
success: boolean;
|
|
50
50
|
data?: any;
|
|
51
51
|
}>;
|
|
52
|
+
export type AllMarketingsValidationDTO = z.infer<typeof AllMarketingsValidationSchema>;
|
|
52
53
|
export type AllMarketingsDTO = z.infer<typeof AllMarketingsSchema>;
|
|
53
54
|
//# sourceMappingURL=all-marketings.validation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-marketings.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/all-marketings.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAuBjC,eAAO,MAAM,6BAA6B,EAAE,OAO1C,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,OAOhC,CAAC;AAGH,eAAO,MAAM,yBAAyB,EAAE,OAOtC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4C,CAAC;AAGjF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"all-marketings.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/all-marketings.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAuBjC,eAAO,MAAM,6BAA6B,EAAE,OAO1C,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,OAOhC,CAAC;AAGH,eAAO,MAAM,yBAAyB,EAAE,OAOtC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4C,CAAC;AAGjF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -346,10 +346,136 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
346
346
|
pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
|
|
347
347
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
348
348
|
}, z.ZodTypeAny, "passthrough">>;
|
|
349
|
+
declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject<{
|
|
350
|
+
marketingType: z.ZodLiteral<MarketingType.BUY1GET1>;
|
|
351
|
+
isEntireMenu: z.ZodDefault<z.ZodBoolean>;
|
|
352
|
+
products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
353
|
+
product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
354
|
+
marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
355
|
+
loyaltyPointCategory: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
356
|
+
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
357
|
+
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
358
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
359
|
+
}, "strip", z.ZodTypeAny, {
|
|
360
|
+
product: import("mongoose").Types.ObjectId;
|
|
361
|
+
value?: number | undefined;
|
|
362
|
+
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
363
|
+
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
364
|
+
isBuy1Get1?: boolean | undefined;
|
|
365
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
366
|
+
}, {
|
|
367
|
+
product: string | import("mongoose").Types.ObjectId;
|
|
368
|
+
value?: number | undefined;
|
|
369
|
+
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
370
|
+
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
371
|
+
isBuy1Get1?: boolean | undefined;
|
|
372
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
373
|
+
}>, "many">>>;
|
|
374
|
+
spendLimit: z.ZodDefault<z.ZodNumber>;
|
|
375
|
+
isOnlyForSubscriber: z.ZodDefault<z.ZodBoolean>;
|
|
376
|
+
shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
377
|
+
isAppliedByCompany: z.ZodBoolean;
|
|
378
|
+
duration: z.ZodObject<{
|
|
379
|
+
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>;
|
|
380
|
+
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>>;
|
|
381
|
+
}, "strip", z.ZodTypeAny, {
|
|
382
|
+
start: Date;
|
|
383
|
+
end?: Date | undefined;
|
|
384
|
+
}, {
|
|
385
|
+
start: string | Date;
|
|
386
|
+
end?: string | Date | undefined;
|
|
387
|
+
}>;
|
|
388
|
+
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
|
|
389
|
+
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>>>>;
|
|
390
|
+
}, "strict", z.ZodTypeAny, {
|
|
391
|
+
isAppliedByCompany: boolean;
|
|
392
|
+
shop: import("mongoose").Types.ObjectId;
|
|
393
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
394
|
+
marketingType: MarketingType.BUY1GET1;
|
|
395
|
+
duration: {
|
|
396
|
+
start: Date;
|
|
397
|
+
end?: Date | undefined;
|
|
398
|
+
};
|
|
399
|
+
pausedAt: Date | null;
|
|
400
|
+
products: {
|
|
401
|
+
product: import("mongoose").Types.ObjectId;
|
|
402
|
+
value?: number | undefined;
|
|
403
|
+
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
404
|
+
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
405
|
+
isBuy1Get1?: boolean | undefined;
|
|
406
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
407
|
+
}[];
|
|
408
|
+
isEntireMenu: boolean;
|
|
409
|
+
spendLimit: number;
|
|
410
|
+
isOnlyForSubscriber: boolean;
|
|
411
|
+
}, {
|
|
412
|
+
isAppliedByCompany: boolean;
|
|
413
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
414
|
+
marketingType: MarketingType.BUY1GET1;
|
|
415
|
+
duration: {
|
|
416
|
+
start: string | Date;
|
|
417
|
+
end?: string | Date | undefined;
|
|
418
|
+
};
|
|
419
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
420
|
+
pausedAt?: string | Date | null | undefined;
|
|
421
|
+
products?: {
|
|
422
|
+
product: string | import("mongoose").Types.ObjectId;
|
|
423
|
+
value?: number | undefined;
|
|
424
|
+
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
425
|
+
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
426
|
+
isBuy1Get1?: boolean | undefined;
|
|
427
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
428
|
+
}[] | undefined;
|
|
429
|
+
isEntireMenu?: boolean | undefined;
|
|
430
|
+
spendLimit?: number | undefined;
|
|
431
|
+
isOnlyForSubscriber?: boolean | undefined;
|
|
432
|
+
}>, {
|
|
433
|
+
isAppliedByCompany: boolean;
|
|
434
|
+
shop: import("mongoose").Types.ObjectId;
|
|
435
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
436
|
+
marketingType: MarketingType.BUY1GET1;
|
|
437
|
+
duration: {
|
|
438
|
+
start: Date;
|
|
439
|
+
end?: Date | undefined;
|
|
440
|
+
};
|
|
441
|
+
pausedAt: Date | null;
|
|
442
|
+
products: {
|
|
443
|
+
product: import("mongoose").Types.ObjectId;
|
|
444
|
+
value?: number | undefined;
|
|
445
|
+
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
446
|
+
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
447
|
+
isBuy1Get1?: boolean | undefined;
|
|
448
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
449
|
+
}[];
|
|
450
|
+
isEntireMenu: boolean;
|
|
451
|
+
spendLimit: number;
|
|
452
|
+
isOnlyForSubscriber: boolean;
|
|
453
|
+
}, {
|
|
454
|
+
isAppliedByCompany: boolean;
|
|
455
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
456
|
+
marketingType: MarketingType.BUY1GET1;
|
|
457
|
+
duration: {
|
|
458
|
+
start: string | Date;
|
|
459
|
+
end?: string | Date | undefined;
|
|
460
|
+
};
|
|
461
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
462
|
+
pausedAt?: string | Date | null | undefined;
|
|
463
|
+
products?: {
|
|
464
|
+
product: string | import("mongoose").Types.ObjectId;
|
|
465
|
+
value?: number | undefined;
|
|
466
|
+
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
467
|
+
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
468
|
+
isBuy1Get1?: boolean | undefined;
|
|
469
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
470
|
+
}[] | undefined;
|
|
471
|
+
isEntireMenu?: boolean | undefined;
|
|
472
|
+
spendLimit?: number | undefined;
|
|
473
|
+
isOnlyForSubscriber?: boolean | undefined;
|
|
474
|
+
}>;
|
|
349
475
|
/**
|
|
350
476
|
* Export schemas
|
|
351
477
|
*/
|
|
352
|
-
export { Buy1Get1MarketingValidationSchema, Buy1Get1MarketingSchema, Buy1Get1MarketingIdSchema as Buy1Get1MarketingIdValidationSchema, UpdateBuy1Get1MarketingSchema, };
|
|
478
|
+
export { Buy1Get1MarketingValidationSchemaRefined as Buy1Get1MarketingValidationSchema, Buy1Get1MarketingSchema, Buy1Get1MarketingIdSchema as Buy1Get1MarketingIdValidationSchema, UpdateBuy1Get1MarketingSchema, };
|
|
353
479
|
/**
|
|
354
480
|
* Export DTO types
|
|
355
481
|
*/
|
|
@@ -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,MAAM,mCAAmC,CAAC;AAsBlE;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,iCAAiC,
|
|
1
|
+
{"version":3,"file":"buy1-get1-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/buy1-get1-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAsBlE;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB7C,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"}
|
|
@@ -7,8 +7,8 @@ import { MarketingType, ValueType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
|
7
7
|
declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
8
8
|
marketingType: z.ZodLiteral<MarketingType.DISCOUNT>;
|
|
9
9
|
isEntireMenu: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
-
valueType: z.ZodNativeEnum<typeof ValueType
|
|
11
|
-
value: z.ZodNumber
|
|
10
|
+
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
|
|
11
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
12
12
|
products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
13
|
product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
14
14
|
marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
@@ -51,7 +51,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
51
51
|
}, "strict", z.ZodTypeAny, {
|
|
52
52
|
isAppliedByCompany: boolean;
|
|
53
53
|
shop: import("mongoose").Types.ObjectId;
|
|
54
|
-
value: number;
|
|
55
54
|
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
56
55
|
marketingType: MarketingType.DISCOUNT;
|
|
57
56
|
duration: {
|
|
@@ -59,7 +58,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
59
58
|
end?: Date | undefined;
|
|
60
59
|
};
|
|
61
60
|
pausedAt: Date | null;
|
|
62
|
-
valueType: ValueType;
|
|
63
61
|
products: {
|
|
64
62
|
product: import("mongoose").Types.ObjectId;
|
|
65
63
|
value?: number | undefined;
|
|
@@ -72,18 +70,20 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
72
70
|
spendLimit: number;
|
|
73
71
|
isOnlyForSubscriber: boolean;
|
|
74
72
|
maxDiscountPerOrder: number;
|
|
73
|
+
value?: number | undefined;
|
|
74
|
+
valueType?: ValueType | undefined;
|
|
75
75
|
}, {
|
|
76
76
|
isAppliedByCompany: boolean;
|
|
77
77
|
shop: string | import("mongoose").Types.ObjectId;
|
|
78
|
-
value: number;
|
|
79
78
|
marketingType: MarketingType.DISCOUNT;
|
|
80
79
|
duration: {
|
|
81
80
|
start: string | Date;
|
|
82
81
|
end?: string | Date | undefined;
|
|
83
82
|
};
|
|
84
|
-
|
|
83
|
+
value?: number | undefined;
|
|
85
84
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
86
85
|
pausedAt?: string | Date | null | undefined;
|
|
86
|
+
valueType?: ValueType | undefined;
|
|
87
87
|
products?: {
|
|
88
88
|
product: string | import("mongoose").Types.ObjectId;
|
|
89
89
|
value?: number | undefined;
|
|
@@ -99,8 +99,8 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
99
99
|
}>, DiscountMarketingSchema: z.ZodObject<{
|
|
100
100
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
|
|
101
101
|
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
102
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType
|
|
103
|
-
value: z.ZodOptional<z.ZodNumber
|
|
102
|
+
valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
|
|
103
|
+
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
104
104
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
105
|
product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
106
106
|
marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
@@ -144,8 +144,8 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
144
144
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
145
145
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
|
|
146
146
|
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
147
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType
|
|
148
|
-
value: z.ZodOptional<z.ZodNumber
|
|
147
|
+
valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
|
|
148
|
+
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
149
149
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
150
150
|
product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
151
151
|
marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
@@ -189,8 +189,8 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
189
189
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
190
190
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
|
|
191
191
|
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
192
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType
|
|
193
|
-
value: z.ZodOptional<z.ZodNumber
|
|
192
|
+
valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
|
|
193
|
+
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
194
194
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
195
195
|
product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
196
196
|
marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
@@ -240,8 +240,8 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
240
240
|
}> | z.ZodObject<{
|
|
241
241
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
|
|
242
242
|
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
243
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType
|
|
244
|
-
value: z.ZodOptional<z.ZodNumber
|
|
243
|
+
valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
|
|
244
|
+
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
245
245
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
246
246
|
product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
247
247
|
marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
@@ -285,8 +285,8 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
285
285
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
286
286
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
|
|
287
287
|
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
288
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType
|
|
289
|
-
value: z.ZodOptional<z.ZodNumber
|
|
288
|
+
valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
|
|
289
|
+
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
290
290
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
291
291
|
product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
292
292
|
marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
@@ -330,8 +330,8 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
330
330
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
331
331
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
|
|
332
332
|
isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
333
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType
|
|
334
|
-
value: z.ZodOptional<z.ZodNumber
|
|
333
|
+
valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
|
|
334
|
+
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
335
335
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
336
336
|
product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
337
337
|
marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
@@ -376,8 +376,8 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
376
376
|
declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject<{
|
|
377
377
|
marketingType: z.ZodLiteral<MarketingType.DISCOUNT>;
|
|
378
378
|
isEntireMenu: z.ZodDefault<z.ZodBoolean>;
|
|
379
|
-
valueType: z.ZodNativeEnum<typeof ValueType
|
|
380
|
-
value: z.ZodNumber
|
|
379
|
+
valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
|
|
380
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
381
381
|
products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
382
382
|
product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
383
383
|
marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
@@ -420,7 +420,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
420
420
|
}, "strict", z.ZodTypeAny, {
|
|
421
421
|
isAppliedByCompany: boolean;
|
|
422
422
|
shop: import("mongoose").Types.ObjectId;
|
|
423
|
-
value: number;
|
|
424
423
|
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
425
424
|
marketingType: MarketingType.DISCOUNT;
|
|
426
425
|
duration: {
|
|
@@ -428,7 +427,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
428
427
|
end?: Date | undefined;
|
|
429
428
|
};
|
|
430
429
|
pausedAt: Date | null;
|
|
431
|
-
valueType: ValueType;
|
|
432
430
|
products: {
|
|
433
431
|
product: import("mongoose").Types.ObjectId;
|
|
434
432
|
value?: number | undefined;
|
|
@@ -441,18 +439,20 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
441
439
|
spendLimit: number;
|
|
442
440
|
isOnlyForSubscriber: boolean;
|
|
443
441
|
maxDiscountPerOrder: number;
|
|
442
|
+
value?: number | undefined;
|
|
443
|
+
valueType?: ValueType | undefined;
|
|
444
444
|
}, {
|
|
445
445
|
isAppliedByCompany: boolean;
|
|
446
446
|
shop: string | import("mongoose").Types.ObjectId;
|
|
447
|
-
value: number;
|
|
448
447
|
marketingType: MarketingType.DISCOUNT;
|
|
449
448
|
duration: {
|
|
450
449
|
start: string | Date;
|
|
451
450
|
end?: string | Date | undefined;
|
|
452
451
|
};
|
|
453
|
-
|
|
452
|
+
value?: number | undefined;
|
|
454
453
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
455
454
|
pausedAt?: string | Date | null | undefined;
|
|
455
|
+
valueType?: ValueType | undefined;
|
|
456
456
|
products?: {
|
|
457
457
|
product: string | import("mongoose").Types.ObjectId;
|
|
458
458
|
value?: number | undefined;
|
|
@@ -468,7 +468,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
468
468
|
}>, {
|
|
469
469
|
isAppliedByCompany: boolean;
|
|
470
470
|
shop: import("mongoose").Types.ObjectId;
|
|
471
|
-
value: number;
|
|
472
471
|
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
473
472
|
marketingType: MarketingType.DISCOUNT;
|
|
474
473
|
duration: {
|
|
@@ -476,7 +475,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
476
475
|
end?: Date | undefined;
|
|
477
476
|
};
|
|
478
477
|
pausedAt: Date | null;
|
|
479
|
-
valueType: ValueType;
|
|
480
478
|
products: {
|
|
481
479
|
product: import("mongoose").Types.ObjectId;
|
|
482
480
|
value?: number | undefined;
|
|
@@ -489,18 +487,20 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
489
487
|
spendLimit: number;
|
|
490
488
|
isOnlyForSubscriber: boolean;
|
|
491
489
|
maxDiscountPerOrder: number;
|
|
490
|
+
value?: number | undefined;
|
|
491
|
+
valueType?: ValueType | undefined;
|
|
492
492
|
}, {
|
|
493
493
|
isAppliedByCompany: boolean;
|
|
494
494
|
shop: string | import("mongoose").Types.ObjectId;
|
|
495
|
-
value: number;
|
|
496
495
|
marketingType: MarketingType.DISCOUNT;
|
|
497
496
|
duration: {
|
|
498
497
|
start: string | Date;
|
|
499
498
|
end?: string | Date | undefined;
|
|
500
499
|
};
|
|
501
|
-
|
|
500
|
+
value?: number | undefined;
|
|
502
501
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
503
502
|
pausedAt?: string | Date | null | undefined;
|
|
503
|
+
valueType?: ValueType | undefined;
|
|
504
504
|
products?: {
|
|
505
505
|
product: string | import("mongoose").Types.ObjectId;
|
|
506
506
|
value?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/discount-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AA0B7E;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"discount-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/discount-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AA0B7E;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B7C,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"}
|
package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"punch-marketing-history.service.d.ts","sourceRoot":"/","sources":["modules/punch-marketing-history/services/punch-marketing-history.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAElG,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAEN,qBAAqB,IAAI,KAAK,EAK9B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACN,8BAA8B,IAAI,SAAS,EAC3C,8BAA8B,IAAI,SAAS,EAC3C,MAAM,8CAA8C,CAAC;AAKtD,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAG3F,qBACa,4BAA4B;IACxC,OAAO,CAAC,KAAK,CAA6D;IAC1E,OAAO,CAAC,cAAc,CAA+D;IACrF,OAAO,CAAC,UAAU,CAA2D;;IAQ7E;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAIlE;;;OAGG;IACU,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAczF;;;OAGG;IACU,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAqBxG;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAuB9E;;;OAGG;IACU,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IAczD;;;;OAIG;IACU,oBAAoB,CAChC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC/B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAC9B,OAAO,CAAC,MAAM,CAAC;IAkDlB;;;;OAIG;YACW,gBAAgB;IAyCjB,yBAAyB,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ;IAqCxG;;;OAGG;IACU,gBAAgB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"punch-marketing-history.service.d.ts","sourceRoot":"/","sources":["modules/punch-marketing-history/services/punch-marketing-history.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAElG,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAEN,qBAAqB,IAAI,KAAK,EAK9B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACN,8BAA8B,IAAI,SAAS,EAC3C,8BAA8B,IAAI,SAAS,EAC3C,MAAM,8CAA8C,CAAC;AAKtD,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAG3F,qBACa,4BAA4B;IACxC,OAAO,CAAC,KAAK,CAA6D;IAC1E,OAAO,CAAC,cAAc,CAA+D;IACrF,OAAO,CAAC,UAAU,CAA2D;;IAQ7E;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAIlE;;;OAGG;IACU,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAczF;;;OAGG;IACU,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAqBxG;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAuB9E;;;OAGG;IACU,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IAczD;;;;OAIG;IACU,oBAAoB,CAChC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC/B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAC9B,OAAO,CAAC,MAAM,CAAC;IAkDlB;;;;OAIG;YACW,gBAAgB;IAyCjB,yBAAyB,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ;IAqCxG;;;OAGG;IACU,gBAAgB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAyC1F;AAED,eAAO,MAAM,4BAA4B,8BAA8C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/marketing",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "The Lyxa Marketing microservice",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/lib/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"test:watch": "jest --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@lyxa.ai/core": "1.0.
|
|
23
|
+
"@lyxa.ai/core": "^1.0.309",
|
|
24
24
|
"@lyxa.ai/notification": "1.0.5",
|
|
25
25
|
"@trpc/client": "^11.4.3",
|
|
26
26
|
"@trpc/server": "^11.4.3",
|