@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
|
@@ -36,6 +36,9 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
36
36
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
37
37
|
forNewUserOnly?: boolean | undefined;
|
|
38
38
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
39
|
+
referringUser?: {
|
|
40
|
+
name?: string | undefined;
|
|
41
|
+
} | undefined;
|
|
39
42
|
orderLimitPerUser?: number | null | undefined;
|
|
40
43
|
} | {
|
|
41
44
|
code: string;
|
|
@@ -64,6 +67,9 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
64
67
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
65
68
|
forNewUserOnly?: boolean | undefined;
|
|
66
69
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
70
|
+
referringUser?: {
|
|
71
|
+
name?: string | undefined;
|
|
72
|
+
} | undefined;
|
|
67
73
|
orderLimitPerUser?: number | null | undefined;
|
|
68
74
|
} | {
|
|
69
75
|
value: number;
|
|
@@ -85,6 +91,9 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
85
91
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
86
92
|
forNewUserOnly?: boolean | undefined;
|
|
87
93
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
94
|
+
referringUser?: {
|
|
95
|
+
name?: string | undefined;
|
|
96
|
+
} | undefined;
|
|
88
97
|
orderLimitPerUser?: number | null | undefined;
|
|
89
98
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
90
99
|
isShopCoverExpenses?: boolean | undefined;
|
|
@@ -108,6 +117,9 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
108
117
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
109
118
|
forNewUserOnly?: boolean | undefined;
|
|
110
119
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
120
|
+
referringUser?: {
|
|
121
|
+
name?: string | undefined;
|
|
122
|
+
} | undefined;
|
|
111
123
|
orderLimitPerUser?: number | null | undefined;
|
|
112
124
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
113
125
|
shops?: (string | mongoose.Types.ObjectId)[] | undefined;
|
|
@@ -131,6 +143,9 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
131
143
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
132
144
|
forNewUserOnly?: boolean | undefined;
|
|
133
145
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
146
|
+
referringUser?: {
|
|
147
|
+
name?: string | undefined;
|
|
148
|
+
} | undefined;
|
|
134
149
|
orderLimitPerUser?: number | null | undefined;
|
|
135
150
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
136
151
|
shops?: (string | mongoose.Types.ObjectId)[] | undefined;
|
|
@@ -168,6 +183,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
168
183
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
169
184
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
170
185
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
186
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
187
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
name?: string | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
name?: string | undefined;
|
|
192
|
+
}>>>;
|
|
171
193
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
172
194
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
173
195
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -210,6 +232,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
210
232
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
211
233
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
212
234
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
235
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
236
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
237
|
+
}, "strip", z.ZodTypeAny, {
|
|
238
|
+
name?: string | undefined;
|
|
239
|
+
}, {
|
|
240
|
+
name?: string | undefined;
|
|
241
|
+
}>>>;
|
|
213
242
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
214
243
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
215
244
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -246,6 +275,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
246
275
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
247
276
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
248
277
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
278
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
279
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
|
281
|
+
name?: string | undefined;
|
|
282
|
+
}, {
|
|
283
|
+
name?: string | undefined;
|
|
284
|
+
}>>>;
|
|
249
285
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
250
286
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
251
287
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -282,6 +318,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
282
318
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
283
319
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
284
320
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
321
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
322
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
323
|
+
}, "strip", z.ZodTypeAny, {
|
|
324
|
+
name?: string | undefined;
|
|
325
|
+
}, {
|
|
326
|
+
name?: string | undefined;
|
|
327
|
+
}>>>;
|
|
285
328
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
286
329
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
287
330
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -318,6 +361,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
318
361
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
319
362
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
320
363
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
364
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
365
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
366
|
+
}, "strip", z.ZodTypeAny, {
|
|
367
|
+
name?: string | undefined;
|
|
368
|
+
}, {
|
|
369
|
+
name?: string | undefined;
|
|
370
|
+
}>>>;
|
|
321
371
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
322
372
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
323
373
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -352,6 +402,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
352
402
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
353
403
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
354
404
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
405
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
406
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
407
|
+
}, "strip", z.ZodTypeAny, {
|
|
408
|
+
name?: string | undefined;
|
|
409
|
+
}, {
|
|
410
|
+
name?: string | undefined;
|
|
411
|
+
}>>>;
|
|
355
412
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
356
413
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
357
414
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -394,6 +451,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
394
451
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
395
452
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
396
453
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
454
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
455
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
456
|
+
}, "strip", z.ZodTypeAny, {
|
|
457
|
+
name?: string | undefined;
|
|
458
|
+
}, {
|
|
459
|
+
name?: string | undefined;
|
|
460
|
+
}>>>;
|
|
397
461
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
398
462
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
399
463
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -430,6 +494,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
430
494
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
431
495
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
432
496
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
497
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
498
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
499
|
+
}, "strip", z.ZodTypeAny, {
|
|
500
|
+
name?: string | undefined;
|
|
501
|
+
}, {
|
|
502
|
+
name?: string | undefined;
|
|
503
|
+
}>>>;
|
|
433
504
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
434
505
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
435
506
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -466,6 +537,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
466
537
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
467
538
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
468
539
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
540
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
541
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
542
|
+
}, "strip", z.ZodTypeAny, {
|
|
543
|
+
name?: string | undefined;
|
|
544
|
+
}, {
|
|
545
|
+
name?: string | undefined;
|
|
546
|
+
}>>>;
|
|
469
547
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
470
548
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
471
549
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -502,6 +580,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
502
580
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
503
581
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
504
582
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
583
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
584
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
585
|
+
}, "strip", z.ZodTypeAny, {
|
|
586
|
+
name?: string | undefined;
|
|
587
|
+
}, {
|
|
588
|
+
name?: string | undefined;
|
|
589
|
+
}>>>;
|
|
505
590
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
506
591
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
507
592
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -551,6 +636,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
551
636
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
552
637
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
553
638
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
639
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
640
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
641
|
+
}, "strip", z.ZodTypeAny, {
|
|
642
|
+
name?: string | undefined;
|
|
643
|
+
}, {
|
|
644
|
+
name?: string | undefined;
|
|
645
|
+
}>>>;
|
|
554
646
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
555
647
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
556
648
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -593,6 +685,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
593
685
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
594
686
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
595
687
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
688
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
689
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
690
|
+
}, "strip", z.ZodTypeAny, {
|
|
691
|
+
name?: string | undefined;
|
|
692
|
+
}, {
|
|
693
|
+
name?: string | undefined;
|
|
694
|
+
}>>>;
|
|
596
695
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
597
696
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
598
697
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -629,6 +728,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
629
728
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
630
729
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
631
730
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
731
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
732
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
733
|
+
}, "strip", z.ZodTypeAny, {
|
|
734
|
+
name?: string | undefined;
|
|
735
|
+
}, {
|
|
736
|
+
name?: string | undefined;
|
|
737
|
+
}>>>;
|
|
632
738
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
633
739
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
634
740
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -665,6 +771,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
665
771
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
666
772
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
667
773
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
774
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
775
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
776
|
+
}, "strip", z.ZodTypeAny, {
|
|
777
|
+
name?: string | undefined;
|
|
778
|
+
}, {
|
|
779
|
+
name?: string | undefined;
|
|
780
|
+
}>>>;
|
|
668
781
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
669
782
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
670
783
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -701,6 +814,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
701
814
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
702
815
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
703
816
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
817
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
818
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
819
|
+
}, "strip", z.ZodTypeAny, {
|
|
820
|
+
name?: string | undefined;
|
|
821
|
+
}, {
|
|
822
|
+
name?: string | undefined;
|
|
823
|
+
}>>>;
|
|
704
824
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
705
825
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
706
826
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -735,6 +855,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
735
855
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
736
856
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
737
857
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
858
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
859
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
860
|
+
}, "strip", z.ZodTypeAny, {
|
|
861
|
+
name?: string | undefined;
|
|
862
|
+
}, {
|
|
863
|
+
name?: string | undefined;
|
|
864
|
+
}>>>;
|
|
738
865
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
739
866
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
740
867
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -777,6 +904,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
777
904
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
778
905
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
779
906
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
907
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
908
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
909
|
+
}, "strip", z.ZodTypeAny, {
|
|
910
|
+
name?: string | undefined;
|
|
911
|
+
}, {
|
|
912
|
+
name?: string | undefined;
|
|
913
|
+
}>>>;
|
|
780
914
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
781
915
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
782
916
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -813,6 +947,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
813
947
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
814
948
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
815
949
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
950
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
951
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
952
|
+
}, "strip", z.ZodTypeAny, {
|
|
953
|
+
name?: string | undefined;
|
|
954
|
+
}, {
|
|
955
|
+
name?: string | undefined;
|
|
956
|
+
}>>>;
|
|
816
957
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
817
958
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
818
959
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -849,6 +990,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
849
990
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
850
991
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
851
992
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
993
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
994
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
995
|
+
}, "strip", z.ZodTypeAny, {
|
|
996
|
+
name?: string | undefined;
|
|
997
|
+
}, {
|
|
998
|
+
name?: string | undefined;
|
|
999
|
+
}>>>;
|
|
852
1000
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
853
1001
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
854
1002
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -885,6 +1033,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
885
1033
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
886
1034
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
887
1035
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1036
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1037
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1038
|
+
}, "strip", z.ZodTypeAny, {
|
|
1039
|
+
name?: string | undefined;
|
|
1040
|
+
}, {
|
|
1041
|
+
name?: string | undefined;
|
|
1042
|
+
}>>>;
|
|
888
1043
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
889
1044
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
890
1045
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -945,6 +1100,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
945
1100
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
946
1101
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
947
1102
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1103
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1104
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1105
|
+
}, "strip", z.ZodTypeAny, {
|
|
1106
|
+
name?: string | undefined;
|
|
1107
|
+
}, {
|
|
1108
|
+
name?: string | undefined;
|
|
1109
|
+
}>>>;
|
|
948
1110
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
949
1111
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
950
1112
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -987,6 +1149,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
987
1149
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
988
1150
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
989
1151
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1152
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1153
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1154
|
+
}, "strip", z.ZodTypeAny, {
|
|
1155
|
+
name?: string | undefined;
|
|
1156
|
+
}, {
|
|
1157
|
+
name?: string | undefined;
|
|
1158
|
+
}>>>;
|
|
990
1159
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
991
1160
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
992
1161
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1023,6 +1192,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1023
1192
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1024
1193
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1025
1194
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1195
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1196
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1197
|
+
}, "strip", z.ZodTypeAny, {
|
|
1198
|
+
name?: string | undefined;
|
|
1199
|
+
}, {
|
|
1200
|
+
name?: string | undefined;
|
|
1201
|
+
}>>>;
|
|
1026
1202
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1027
1203
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1028
1204
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1059,6 +1235,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1059
1235
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1060
1236
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1061
1237
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1238
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1239
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1240
|
+
}, "strip", z.ZodTypeAny, {
|
|
1241
|
+
name?: string | undefined;
|
|
1242
|
+
}, {
|
|
1243
|
+
name?: string | undefined;
|
|
1244
|
+
}>>>;
|
|
1062
1245
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1063
1246
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1064
1247
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1095,6 +1278,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1095
1278
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1096
1279
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1097
1280
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1281
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1282
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1283
|
+
}, "strip", z.ZodTypeAny, {
|
|
1284
|
+
name?: string | undefined;
|
|
1285
|
+
}, {
|
|
1286
|
+
name?: string | undefined;
|
|
1287
|
+
}>>>;
|
|
1098
1288
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1099
1289
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1100
1290
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1129,6 +1319,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1129
1319
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1130
1320
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1131
1321
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1322
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1323
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1324
|
+
}, "strip", z.ZodTypeAny, {
|
|
1325
|
+
name?: string | undefined;
|
|
1326
|
+
}, {
|
|
1327
|
+
name?: string | undefined;
|
|
1328
|
+
}>>>;
|
|
1132
1329
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1133
1330
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1134
1331
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1171,6 +1368,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1171
1368
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1172
1369
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1173
1370
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1371
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1372
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1373
|
+
}, "strip", z.ZodTypeAny, {
|
|
1374
|
+
name?: string | undefined;
|
|
1375
|
+
}, {
|
|
1376
|
+
name?: string | undefined;
|
|
1377
|
+
}>>>;
|
|
1174
1378
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1175
1379
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1176
1380
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1207,6 +1411,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1207
1411
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1208
1412
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1209
1413
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1414
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1415
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1416
|
+
}, "strip", z.ZodTypeAny, {
|
|
1417
|
+
name?: string | undefined;
|
|
1418
|
+
}, {
|
|
1419
|
+
name?: string | undefined;
|
|
1420
|
+
}>>>;
|
|
1210
1421
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1211
1422
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1212
1423
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1243,6 +1454,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1243
1454
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1244
1455
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1245
1456
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1457
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1458
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1459
|
+
}, "strip", z.ZodTypeAny, {
|
|
1460
|
+
name?: string | undefined;
|
|
1461
|
+
}, {
|
|
1462
|
+
name?: string | undefined;
|
|
1463
|
+
}>>>;
|
|
1246
1464
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1247
1465
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1248
1466
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1279,6 +1497,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1279
1497
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1280
1498
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1281
1499
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1500
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1501
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1502
|
+
}, "strip", z.ZodTypeAny, {
|
|
1503
|
+
name?: string | undefined;
|
|
1504
|
+
}, {
|
|
1505
|
+
name?: string | undefined;
|
|
1506
|
+
}>>>;
|
|
1282
1507
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1283
1508
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1284
1509
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1315,6 +1540,9 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1315
1540
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1316
1541
|
forNewUserOnly?: boolean | undefined;
|
|
1317
1542
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1543
|
+
referringUser?: {
|
|
1544
|
+
name?: string | undefined;
|
|
1545
|
+
} | undefined;
|
|
1318
1546
|
orderLimitPerUser?: number | null | undefined;
|
|
1319
1547
|
} | {
|
|
1320
1548
|
code: string;
|
|
@@ -1343,6 +1571,9 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1343
1571
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1344
1572
|
forNewUserOnly?: boolean | undefined;
|
|
1345
1573
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1574
|
+
referringUser?: {
|
|
1575
|
+
name?: string | undefined;
|
|
1576
|
+
} | undefined;
|
|
1346
1577
|
orderLimitPerUser?: number | null | undefined;
|
|
1347
1578
|
} | {
|
|
1348
1579
|
value: number;
|
|
@@ -1364,6 +1595,9 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1364
1595
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1365
1596
|
forNewUserOnly?: boolean | undefined;
|
|
1366
1597
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1598
|
+
referringUser?: {
|
|
1599
|
+
name?: string | undefined;
|
|
1600
|
+
} | undefined;
|
|
1367
1601
|
orderLimitPerUser?: number | null | undefined;
|
|
1368
1602
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1369
1603
|
isShopCoverExpenses?: boolean | undefined;
|
|
@@ -1387,6 +1621,9 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1387
1621
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1388
1622
|
forNewUserOnly?: boolean | undefined;
|
|
1389
1623
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1624
|
+
referringUser?: {
|
|
1625
|
+
name?: string | undefined;
|
|
1626
|
+
} | undefined;
|
|
1390
1627
|
orderLimitPerUser?: number | null | undefined;
|
|
1391
1628
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1392
1629
|
shops?: (string | mongoose.Types.ObjectId)[] | undefined;
|
|
@@ -1410,6 +1647,9 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1410
1647
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1411
1648
|
forNewUserOnly?: boolean | undefined;
|
|
1412
1649
|
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1650
|
+
referringUser?: {
|
|
1651
|
+
name?: string | undefined;
|
|
1652
|
+
} | undefined;
|
|
1413
1653
|
orderLimitPerUser?: number | null | undefined;
|
|
1414
1654
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1415
1655
|
shops?: (string | mongoose.Types.ObjectId)[] | undefined;
|
|
@@ -1448,6 +1688,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1448
1688
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1449
1689
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1450
1690
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1691
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1692
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1693
|
+
}, "strip", z.ZodTypeAny, {
|
|
1694
|
+
name?: string | undefined;
|
|
1695
|
+
}, {
|
|
1696
|
+
name?: string | undefined;
|
|
1697
|
+
}>>>;
|
|
1451
1698
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1452
1699
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1453
1700
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1490,6 +1737,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1490
1737
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1491
1738
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1492
1739
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1740
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1741
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1742
|
+
}, "strip", z.ZodTypeAny, {
|
|
1743
|
+
name?: string | undefined;
|
|
1744
|
+
}, {
|
|
1745
|
+
name?: string | undefined;
|
|
1746
|
+
}>>>;
|
|
1493
1747
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1494
1748
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1495
1749
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1526,6 +1780,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1526
1780
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1527
1781
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1528
1782
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1783
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1784
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1785
|
+
}, "strip", z.ZodTypeAny, {
|
|
1786
|
+
name?: string | undefined;
|
|
1787
|
+
}, {
|
|
1788
|
+
name?: string | undefined;
|
|
1789
|
+
}>>>;
|
|
1529
1790
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1530
1791
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1531
1792
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1562,6 +1823,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1562
1823
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1563
1824
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1564
1825
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1826
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1827
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1828
|
+
}, "strip", z.ZodTypeAny, {
|
|
1829
|
+
name?: string | undefined;
|
|
1830
|
+
}, {
|
|
1831
|
+
name?: string | undefined;
|
|
1832
|
+
}>>>;
|
|
1565
1833
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1566
1834
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1567
1835
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1598,6 +1866,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1598
1866
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1599
1867
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1600
1868
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1869
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1870
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1871
|
+
}, "strip", z.ZodTypeAny, {
|
|
1872
|
+
name?: string | undefined;
|
|
1873
|
+
}, {
|
|
1874
|
+
name?: string | undefined;
|
|
1875
|
+
}>>>;
|
|
1601
1876
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1602
1877
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1603
1878
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1632,6 +1907,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1632
1907
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1633
1908
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1634
1909
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1910
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1911
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1912
|
+
}, "strip", z.ZodTypeAny, {
|
|
1913
|
+
name?: string | undefined;
|
|
1914
|
+
}, {
|
|
1915
|
+
name?: string | undefined;
|
|
1916
|
+
}>>>;
|
|
1635
1917
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1636
1918
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1637
1919
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1674,6 +1956,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1674
1956
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1675
1957
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1676
1958
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
1959
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1960
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1961
|
+
}, "strip", z.ZodTypeAny, {
|
|
1962
|
+
name?: string | undefined;
|
|
1963
|
+
}, {
|
|
1964
|
+
name?: string | undefined;
|
|
1965
|
+
}>>>;
|
|
1677
1966
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1678
1967
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1679
1968
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1710,6 +1999,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1710
1999
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1711
2000
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1712
2001
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2002
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2003
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2004
|
+
}, "strip", z.ZodTypeAny, {
|
|
2005
|
+
name?: string | undefined;
|
|
2006
|
+
}, {
|
|
2007
|
+
name?: string | undefined;
|
|
2008
|
+
}>>>;
|
|
1713
2009
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1714
2010
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1715
2011
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1746,6 +2042,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1746
2042
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1747
2043
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1748
2044
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2045
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2046
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2047
|
+
}, "strip", z.ZodTypeAny, {
|
|
2048
|
+
name?: string | undefined;
|
|
2049
|
+
}, {
|
|
2050
|
+
name?: string | undefined;
|
|
2051
|
+
}>>>;
|
|
1749
2052
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1750
2053
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1751
2054
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1782,6 +2085,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1782
2085
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1783
2086
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1784
2087
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2088
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2089
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2090
|
+
}, "strip", z.ZodTypeAny, {
|
|
2091
|
+
name?: string | undefined;
|
|
2092
|
+
}, {
|
|
2093
|
+
name?: string | undefined;
|
|
2094
|
+
}>>>;
|
|
1785
2095
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1786
2096
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1787
2097
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1834,6 +2144,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1834
2144
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1835
2145
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1836
2146
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2147
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2148
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2149
|
+
}, "strip", z.ZodTypeAny, {
|
|
2150
|
+
name?: string | undefined;
|
|
2151
|
+
}, {
|
|
2152
|
+
name?: string | undefined;
|
|
2153
|
+
}>>>;
|
|
1837
2154
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1838
2155
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1839
2156
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1876,6 +2193,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1876
2193
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1877
2194
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1878
2195
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2196
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2197
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2198
|
+
}, "strip", z.ZodTypeAny, {
|
|
2199
|
+
name?: string | undefined;
|
|
2200
|
+
}, {
|
|
2201
|
+
name?: string | undefined;
|
|
2202
|
+
}>>>;
|
|
1879
2203
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1880
2204
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1881
2205
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1912,6 +2236,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1912
2236
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1913
2237
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1914
2238
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2239
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2240
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2241
|
+
}, "strip", z.ZodTypeAny, {
|
|
2242
|
+
name?: string | undefined;
|
|
2243
|
+
}, {
|
|
2244
|
+
name?: string | undefined;
|
|
2245
|
+
}>>>;
|
|
1915
2246
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1916
2247
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1917
2248
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1948,6 +2279,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1948
2279
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1949
2280
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1950
2281
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2282
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2283
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2284
|
+
}, "strip", z.ZodTypeAny, {
|
|
2285
|
+
name?: string | undefined;
|
|
2286
|
+
}, {
|
|
2287
|
+
name?: string | undefined;
|
|
2288
|
+
}>>>;
|
|
1951
2289
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1952
2290
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1953
2291
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -1984,6 +2322,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1984
2322
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1985
2323
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
1986
2324
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2325
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2326
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2327
|
+
}, "strip", z.ZodTypeAny, {
|
|
2328
|
+
name?: string | undefined;
|
|
2329
|
+
}, {
|
|
2330
|
+
name?: string | undefined;
|
|
2331
|
+
}>>>;
|
|
1987
2332
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1988
2333
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1989
2334
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -2018,6 +2363,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2018
2363
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2019
2364
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2020
2365
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2366
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2367
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2368
|
+
}, "strip", z.ZodTypeAny, {
|
|
2369
|
+
name?: string | undefined;
|
|
2370
|
+
}, {
|
|
2371
|
+
name?: string | undefined;
|
|
2372
|
+
}>>>;
|
|
2021
2373
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2022
2374
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2023
2375
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -2060,6 +2412,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2060
2412
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2061
2413
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2062
2414
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2415
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2416
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2417
|
+
}, "strip", z.ZodTypeAny, {
|
|
2418
|
+
name?: string | undefined;
|
|
2419
|
+
}, {
|
|
2420
|
+
name?: string | undefined;
|
|
2421
|
+
}>>>;
|
|
2063
2422
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2064
2423
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2065
2424
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -2096,6 +2455,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2096
2455
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2097
2456
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2098
2457
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2458
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2459
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2460
|
+
}, "strip", z.ZodTypeAny, {
|
|
2461
|
+
name?: string | undefined;
|
|
2462
|
+
}, {
|
|
2463
|
+
name?: string | undefined;
|
|
2464
|
+
}>>>;
|
|
2099
2465
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2100
2466
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2101
2467
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -2132,6 +2498,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2132
2498
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2133
2499
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2134
2500
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2501
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2502
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2503
|
+
}, "strip", z.ZodTypeAny, {
|
|
2504
|
+
name?: string | undefined;
|
|
2505
|
+
}, {
|
|
2506
|
+
name?: string | undefined;
|
|
2507
|
+
}>>>;
|
|
2135
2508
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2136
2509
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2137
2510
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -2168,6 +2541,13 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2168
2541
|
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2169
2542
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2170
2543
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2544
|
+
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2545
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2546
|
+
}, "strip", z.ZodTypeAny, {
|
|
2547
|
+
name?: string | undefined;
|
|
2548
|
+
}, {
|
|
2549
|
+
name?: string | undefined;
|
|
2550
|
+
}>>>;
|
|
2171
2551
|
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2172
2552
|
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2173
2553
|
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
@@ -2185,8 +2565,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2185
2565
|
getUserCoupons: import("@trpc/server").TRPCQueryProcedure<{
|
|
2186
2566
|
input: {
|
|
2187
2567
|
user?: string | mongoose.Types.ObjectId | undefined;
|
|
2188
|
-
page?: number | undefined;
|
|
2189
2568
|
size?: number | undefined;
|
|
2569
|
+
page?: number | undefined;
|
|
2190
2570
|
};
|
|
2191
2571
|
output: {
|
|
2192
2572
|
available: Array<import("@typegoose/typegoose").DocumentType<import("@lyxa.ai/core/dist/libraries/mongo/models").Coupon>>;
|
|
@@ -2212,6 +2592,12 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2212
2592
|
secondaryAmountAfterCoupon?: number | undefined;
|
|
2213
2593
|
discountAmount?: number | undefined;
|
|
2214
2594
|
secondaryDiscountAmount?: number | undefined;
|
|
2595
|
+
discountCut?: {
|
|
2596
|
+
companyCut?: number | undefined;
|
|
2597
|
+
secondaryCompanyCut?: number | undefined;
|
|
2598
|
+
shopCut?: number | undefined;
|
|
2599
|
+
secondaryShopCut?: number | undefined;
|
|
2600
|
+
} | undefined;
|
|
2215
2601
|
} | {
|
|
2216
2602
|
documents: {
|
|
2217
2603
|
isValid?: boolean | undefined;
|
|
@@ -2219,6 +2605,12 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2219
2605
|
secondaryAmountAfterCoupon?: number | undefined;
|
|
2220
2606
|
discountAmount?: number | undefined;
|
|
2221
2607
|
secondaryDiscountAmount?: number | undefined;
|
|
2608
|
+
discountCut?: {
|
|
2609
|
+
companyCut?: number | undefined;
|
|
2610
|
+
secondaryCompanyCut?: number | undefined;
|
|
2611
|
+
shopCut?: number | undefined;
|
|
2612
|
+
secondaryShopCut?: number | undefined;
|
|
2613
|
+
} | undefined;
|
|
2222
2614
|
}[];
|
|
2223
2615
|
metadata?: {
|
|
2224
2616
|
page: number;
|
|
@@ -2233,8 +2625,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2233
2625
|
createReferralCodeForUser: import("@trpc/server").TRPCMutationProcedure<{
|
|
2234
2626
|
input: {
|
|
2235
2627
|
user?: string | mongoose.Types.ObjectId | undefined;
|
|
2236
|
-
page?: number | undefined;
|
|
2237
2628
|
size?: number | undefined;
|
|
2629
|
+
page?: number | undefined;
|
|
2238
2630
|
};
|
|
2239
2631
|
output: import("@typegoose/typegoose").DocumentType<import("@lyxa.ai/core/dist/libraries/mongo/models").ReferralCodeCoupon>;
|
|
2240
2632
|
meta: object;
|