@lyxa.ai/marketing 1.0.15 → 1.0.16
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 +390 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +390 -0
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +8 -2
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +3 -3
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +145 -10
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts +12 -0
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +252 -0
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +52 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +6 -2
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts +18 -0
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/global-coupon.validation.d.ts +18 -0
- package/dist/lib/modules/coupon/validations/global-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts +18 -0
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts +18 -0
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/referral-code-coupon.validation.d.ts +18 -0
- package/dist/lib/modules/coupon/validations/referral-code-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.d.ts +18 -0
- package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -1
- package/dist/types/index.d.ts +390 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +390 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +3 -3
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +12 -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 +252 -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 +52 -0
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +18 -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 +18 -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 +18 -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 +18 -0
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts +18 -0
- package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +18 -0
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -43,6 +43,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
43
43
|
}>>;
|
|
44
44
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
45
45
|
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
46
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
47
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
46
48
|
}, "strict", z.ZodTypeAny, {
|
|
47
49
|
value: number;
|
|
48
50
|
code: string;
|
|
@@ -69,6 +71,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
69
71
|
referringUser?: {
|
|
70
72
|
name?: string | undefined;
|
|
71
73
|
} | undefined;
|
|
74
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
75
|
+
isExpired?: boolean | undefined;
|
|
72
76
|
}, {
|
|
73
77
|
value: number;
|
|
74
78
|
code: string;
|
|
@@ -92,6 +96,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
92
96
|
name?: string | undefined;
|
|
93
97
|
} | undefined;
|
|
94
98
|
orderLimitPerUser?: number | null | undefined;
|
|
99
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
100
|
+
isExpired?: boolean | undefined;
|
|
95
101
|
itemTypes?: ItemType[] | undefined;
|
|
96
102
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
97
103
|
isShopCoverExpenses?: boolean | undefined;
|
|
@@ -137,6 +143,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
137
143
|
}>>>;
|
|
138
144
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
139
145
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
146
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
147
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
140
148
|
_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>]>>;
|
|
141
149
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
142
150
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -180,6 +188,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
180
188
|
}>>>;
|
|
181
189
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
182
190
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
191
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
192
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
183
193
|
_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>]>>;
|
|
184
194
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
185
195
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -223,6 +233,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
223
233
|
}>>>;
|
|
224
234
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
225
235
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
236
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
237
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
226
238
|
_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>]>>;
|
|
227
239
|
}, z.ZodTypeAny, "passthrough">>, IndividualStoreCouponIdSchema: 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>]>, UpdateIndividualStoreCouponSchema: z.ZodObject<{
|
|
228
240
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
@@ -272,6 +284,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
272
284
|
}>>>;
|
|
273
285
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
274
286
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
287
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
288
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
275
289
|
_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>]>>;
|
|
276
290
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
277
291
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -315,6 +329,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
315
329
|
}>>>;
|
|
316
330
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
317
331
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
332
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
333
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
318
334
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
319
335
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
320
336
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_STORE>>;
|
|
@@ -358,6 +374,8 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
358
374
|
}>>>;
|
|
359
375
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
360
376
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
377
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
378
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
361
379
|
_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>]>>;
|
|
362
380
|
}, z.ZodTypeAny, "passthrough">>;
|
|
363
381
|
export { IndividualStoreCouponValidationSchema, IndividualStoreCouponSchema, IndividualStoreCouponIdSchema as IndividualStoreCouponIdValidationSchema, UpdateIndividualStoreCouponSchema, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"individual-store-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/individual-store-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;AAuBzE,QAAA,MACa,qCAAqC
|
|
1
|
+
{"version":3,"file":"individual-store-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/individual-store-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;AAuBzE,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"}
|
|
@@ -43,6 +43,8 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
|
|
|
43
43
|
}>>;
|
|
44
44
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
45
45
|
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
46
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
47
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
46
48
|
}, "strict", z.ZodTypeAny, {
|
|
47
49
|
value: number;
|
|
48
50
|
code: string;
|
|
@@ -69,6 +71,8 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
|
|
|
69
71
|
referringUser?: {
|
|
70
72
|
name?: string | undefined;
|
|
71
73
|
} | undefined;
|
|
74
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
75
|
+
isExpired?: boolean | undefined;
|
|
72
76
|
}, {
|
|
73
77
|
value: number;
|
|
74
78
|
code: string;
|
|
@@ -93,6 +97,8 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
|
|
|
93
97
|
name?: string | undefined;
|
|
94
98
|
} | undefined;
|
|
95
99
|
orderLimitPerUser?: number | null | undefined;
|
|
100
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
101
|
+
isExpired?: boolean | undefined;
|
|
96
102
|
itemTypes?: ItemType[] | undefined;
|
|
97
103
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
98
104
|
}>, IndividualUserCouponSchema: z.ZodObject<{
|
|
@@ -137,6 +143,8 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
|
|
|
137
143
|
}>>>;
|
|
138
144
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
139
145
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
146
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
147
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
140
148
|
_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>]>>;
|
|
141
149
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
142
150
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_USER>>;
|
|
@@ -180,6 +188,8 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
|
|
|
180
188
|
}>>>;
|
|
181
189
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
182
190
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
191
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
192
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
183
193
|
_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>]>>;
|
|
184
194
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
185
195
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_USER>>;
|
|
@@ -223,6 +233,8 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
|
|
|
223
233
|
}>>>;
|
|
224
234
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
225
235
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
236
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
237
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
226
238
|
_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>]>>;
|
|
227
239
|
}, z.ZodTypeAny, "passthrough">>, IndividualUserCouponIdSchema: 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>]>, UpdateIndividualUserCouponSchema: z.ZodObject<{
|
|
228
240
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
@@ -272,6 +284,8 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
|
|
|
272
284
|
}>>>;
|
|
273
285
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
274
286
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
287
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
288
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
275
289
|
_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>]>>;
|
|
276
290
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
277
291
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_USER>>;
|
|
@@ -315,6 +329,8 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
|
|
|
315
329
|
}>>>;
|
|
316
330
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
317
331
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
332
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
333
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
318
334
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
319
335
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
320
336
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.INDIVIDUAL_USER>>;
|
|
@@ -358,6 +374,8 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
|
|
|
358
374
|
}>>>;
|
|
359
375
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
360
376
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
377
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
378
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
361
379
|
_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>]>>;
|
|
362
380
|
}, z.ZodTypeAny, "passthrough">>;
|
|
363
381
|
export { IndividualUserCouponValidationSchema, IndividualUserCouponSchema, IndividualUserCouponIdSchema as IndividualUserCouponIdValidationSchema, UpdateIndividualUserCouponSchema, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"individual-user-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/individual-user-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;AAuBzE,QAAA,MACa,oCAAoC
|
|
1
|
+
{"version":3,"file":"individual-user-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/individual-user-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;AAuBzE,QAAA,MACa,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAClC,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC9B,4BAA4B,mNACxB,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACK,CAAC;AAKrD,OAAO,EACN,oCAAoC,EACpC,0BAA0B,EAC1B,4BAA4B,IAAI,sCAAsC,EACtE,gCAAgC,GAChC,CAAC;AAKF,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"}
|
|
@@ -6,33 +6,45 @@ declare const ReferralCodeCouponValidationSchema: z.ZodObject<{
|
|
|
6
6
|
orderLimitPerUser: z.ZodLiteral<1>;
|
|
7
7
|
referralUser: 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>]>;
|
|
8
8
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
9
|
+
createdBy: 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>]>>;
|
|
10
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
9
11
|
}, "strict", z.ZodTypeAny, {
|
|
10
12
|
code: string;
|
|
11
13
|
orderLimitPerUser: 1;
|
|
12
14
|
couponType: CouponType.REFERRAL_CODE;
|
|
13
15
|
referralUser: import("mongoose").Types.ObjectId;
|
|
16
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
17
|
+
isExpired?: boolean | undefined;
|
|
14
18
|
}, {
|
|
15
19
|
code: string;
|
|
16
20
|
orderLimitPerUser: 1;
|
|
17
21
|
couponType: CouponType.REFERRAL_CODE;
|
|
18
22
|
referralUser: string | import("mongoose").Types.ObjectId;
|
|
23
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
24
|
+
isExpired?: boolean | undefined;
|
|
19
25
|
}>, ReferralCodeCouponSchema: z.ZodObject<{
|
|
20
26
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_CODE>>;
|
|
21
27
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
22
28
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
23
29
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
30
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
31
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
24
32
|
_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>]>>;
|
|
25
33
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
26
34
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_CODE>>;
|
|
27
35
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
28
36
|
referralUser: 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>]>>;
|
|
29
37
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
38
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
39
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
30
40
|
_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>]>>;
|
|
31
41
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
32
42
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_CODE>>;
|
|
33
43
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
34
44
|
referralUser: 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>]>>;
|
|
35
45
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
46
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
47
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
36
48
|
_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>]>>;
|
|
37
49
|
}, z.ZodTypeAny, "passthrough">>, ReferralCodeCouponIdSchema: 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>]>, UpdateReferralCodeCouponSchema: z.ZodObject<{
|
|
38
50
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
@@ -45,18 +57,24 @@ declare const ReferralCodeCouponValidationSchema: z.ZodObject<{
|
|
|
45
57
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
46
58
|
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
47
59
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
60
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
61
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
48
62
|
_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>]>>;
|
|
49
63
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
50
64
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_CODE>>;
|
|
51
65
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
52
66
|
referralUser: 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>]>>;
|
|
53
67
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
68
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
69
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
54
70
|
_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>]>>;
|
|
55
71
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
56
72
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_CODE>>;
|
|
57
73
|
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
58
74
|
referralUser: 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>]>>;
|
|
59
75
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
76
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
77
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
60
78
|
_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>]>>;
|
|
61
79
|
}, z.ZodTypeAny, "passthrough">>;
|
|
62
80
|
export { ReferralCodeCouponValidationSchema, ReferralCodeCouponSchema, ReferralCodeCouponIdSchema as ReferralCodeCouponIdValidationSchema, UpdateReferralCodeCouponSchema, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"referral-code-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/referral-code-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAuB/D,QAAA,MACa,kCAAkC
|
|
1
|
+
{"version":3,"file":"referral-code-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/referral-code-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAuB/D,QAAA,MACa,kCAAkC;;;;;;;;;;;;;;;;;;;;;IAChC,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;kCAC5B,0BAA0B,mNACtB,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACO,CAAC;AAKrD,OAAO,EACN,kCAAkC,EAClC,wBAAwB,EACxB,0BAA0B,IAAI,oCAAoC,EAClE,8BAA8B,GAC9B,CAAC;AACF,eAAO,MAAM,gCAAgC;;;;;;;;;EAG3C,CAAC;AAKH,MAAM,MAAM,6BAA6B,GAAG,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAKzF,MAAM,MAAM,2BAA2B,GAAG,GAAG,CAAC,OAAO,kCAAkC,CAAC,CAAC;AACzF,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACzE,MAAM,MAAM,2BAA2B,GAAG,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -43,6 +43,8 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
43
43
|
}>>;
|
|
44
44
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
45
45
|
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
46
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
47
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
46
48
|
}, "strict", z.ZodTypeAny, {
|
|
47
49
|
value: number;
|
|
48
50
|
code: string;
|
|
@@ -69,6 +71,8 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
69
71
|
referringUser?: {
|
|
70
72
|
name?: string | undefined;
|
|
71
73
|
} | undefined;
|
|
74
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
75
|
+
isExpired?: boolean | undefined;
|
|
72
76
|
}, {
|
|
73
77
|
value: number;
|
|
74
78
|
code: string;
|
|
@@ -95,6 +99,8 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
95
99
|
name?: string | undefined;
|
|
96
100
|
} | undefined;
|
|
97
101
|
orderLimitPerUser?: number | null | undefined;
|
|
102
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
103
|
+
isExpired?: boolean | undefined;
|
|
98
104
|
}>, ReferralRewardCouponSchema: z.ZodObject<{
|
|
99
105
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_REWARD>>;
|
|
100
106
|
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>]>>;
|
|
@@ -137,6 +143,8 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
137
143
|
}>>>;
|
|
138
144
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
139
145
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
146
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
147
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
140
148
|
_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>]>>;
|
|
141
149
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
142
150
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_REWARD>>;
|
|
@@ -180,6 +188,8 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
180
188
|
}>>>;
|
|
181
189
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
182
190
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
191
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
192
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
183
193
|
_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>]>>;
|
|
184
194
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
185
195
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_REWARD>>;
|
|
@@ -223,6 +233,8 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
223
233
|
}>>>;
|
|
224
234
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
225
235
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
236
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
237
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
226
238
|
_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>]>>;
|
|
227
239
|
}, z.ZodTypeAny, "passthrough">>, ReferralRewardCouponIdSchema: 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>]>, UpdateReferralRewardCouponSchema: z.ZodObject<{
|
|
228
240
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
@@ -272,6 +284,8 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
272
284
|
}>>>;
|
|
273
285
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
274
286
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
287
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
288
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
275
289
|
_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>]>>;
|
|
276
290
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
277
291
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_REWARD>>;
|
|
@@ -315,6 +329,8 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
315
329
|
}>>>;
|
|
316
330
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
317
331
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
332
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
333
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
318
334
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
319
335
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
320
336
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.REFERRAL_REWARD>>;
|
|
@@ -358,6 +374,8 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
358
374
|
}>>>;
|
|
359
375
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
360
376
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
377
|
+
createdBy: z.ZodOptional<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>]>>>;
|
|
378
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
361
379
|
_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>]>>;
|
|
362
380
|
}, z.ZodTypeAny, "passthrough">>;
|
|
363
381
|
export { ReferralRewardCouponValidationSchema, ReferralRewardCouponSchema, ReferralRewardCouponIdSchema as ReferralRewardCouponIdValidationSchema, UpdateReferralRewardCouponSchema, };
|
|
@@ -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;AAuB/D,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;AAuB/D,QAAA,MACa,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAClC,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC9B,4BAA4B,mNACxB,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACK,CAAC;AAKrD,OAAO,EACN,oCAAoC,EACpC,0BAA0B,EAC1B,4BAA4B,IAAI,sCAAsC,EACtE,gCAAgC,GAChC,CAAC;AAKF,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"}
|