@lyxa.ai/marketing 1.0.63 → 1.0.64
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 +19 -17
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts +15 -3
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts +15 -3
- package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +15 -3
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts +15 -3
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts +2 -0
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.js +18 -4
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +4 -0
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js +3 -9
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts +7 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js +5 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +8 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js +60 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +217 -213
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts +4 -0
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.js +14 -8
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +10 -9
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js +64 -49
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js.map +1 -1
- package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts +1 -0
- package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
- package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js +15 -3
- package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js.map +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts +2 -0
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +13 -3
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +3 -3
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +3 -3
- package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +6 -0
- package/dist/lib/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/marketing.validation.js +2 -0
- package/dist/lib/modules/marketing/validations/marketing.validation.js.map +1 -1
- package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
- package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/dist/lib/modules/spend-to-get-history/routers/index.d.ts +2 -0
- package/dist/lib/modules/spend-to-get-history/routers/index.d.ts.map +1 -0
- package/dist/lib/modules/spend-to-get-history/routers/index.js +18 -0
- package/dist/lib/modules/spend-to-get-history/routers/index.js.map +1 -0
- package/dist/lib/modules/spend-to-get-history/routers/spend-to-get-history.router.js +62 -0
- package/dist/lib/modules/spend-to-get-history/routers/spend-to-get-history.router.js.map +1 -0
- package/dist/lib/modules/spend-to-get-history/services/index.d.ts +2 -0
- package/dist/lib/modules/spend-to-get-history/services/index.d.ts.map +1 -0
- package/dist/lib/modules/spend-to-get-history/services/index.js +18 -0
- package/dist/lib/modules/spend-to-get-history/services/index.js.map +1 -0
- package/dist/lib/modules/spend-to-get-history/services/spend-to-get-history.service.d.ts +24 -0
- package/dist/lib/modules/spend-to-get-history/services/spend-to-get-history.service.d.ts.map +1 -0
- package/dist/lib/modules/spend-to-get-history/services/spend-to-get-history.service.js +136 -0
- package/dist/lib/modules/spend-to-get-history/services/spend-to-get-history.service.js.map +1 -0
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.repository.d.ts.map +1 -1
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.repository.js +13 -2
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.repository.js.map +1 -1
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.router.d.ts +16 -16
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.validation.d.ts +19 -19
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.validation.js +1 -1
- package/dist/lib/modules/spend-to-get-history/spend-to-get-history.validation.js.map +1 -1
- package/dist/lib/modules/spend-to-get-history/validations/index.d.ts +2 -0
- package/dist/lib/modules/spend-to-get-history/validations/index.d.ts.map +1 -0
- package/dist/lib/modules/spend-to-get-history/validations/index.js +18 -0
- package/dist/lib/modules/spend-to-get-history/validations/index.js.map +1 -0
- package/dist/lib/modules/spend-to-get-history/validations/spend-to-get-history.validation.d.ts +232 -0
- package/dist/lib/modules/spend-to-get-history/validations/spend-to-get-history.validation.d.ts.map +1 -0
- package/dist/lib/modules/spend-to-get-history/validations/spend-to-get-history.validation.js +30 -0
- package/dist/lib/modules/spend-to-get-history/validations/spend-to-get-history.validation.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +15 -0
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +14 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.js +12 -0
- package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +10 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +23 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +9 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +82 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
- package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.schedule.config.js +15 -0
- package/dist/lib/modules/tournament/notification/notification.schedule.config.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +73 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +1 -0
- package/dist/types/events/event-initializations.d.ts +2 -0
- package/dist/types/events/event-initializations.d.ts.map +1 -0
- package/dist/types/index.d.ts +19 -17
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +15 -3
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/helper.service.d.ts +15 -3
- package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +15 -3
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts +15 -3
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts +2 -0
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign-lifecycle.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts +7 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.builder.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +8 -0
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +217 -213
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts +4 -0
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +10 -9
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts +1 -0
- package/dist/types/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
- package/dist/types/modules/marketing/routers/marketing.router.d.ts +2 -0
- package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +3 -3
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +3 -3
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts +6 -0
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/dist/types/modules/spend-to-get-history/routers/index.d.ts +2 -0
- package/dist/types/modules/spend-to-get-history/routers/index.d.ts.map +1 -0
- package/dist/types/modules/spend-to-get-history/services/index.d.ts +2 -0
- package/dist/types/modules/spend-to-get-history/services/index.d.ts.map +1 -0
- package/dist/types/modules/spend-to-get-history/services/spend-to-get-history.service.d.ts +56 -0
- package/dist/types/modules/spend-to-get-history/services/spend-to-get-history.service.d.ts.map +1 -0
- package/dist/types/modules/spend-to-get-history/spend-to-get-history.repository.d.ts.map +1 -1
- package/dist/types/modules/spend-to-get-history/spend-to-get-history.router.d.ts +16 -16
- package/dist/types/modules/spend-to-get-history/spend-to-get-history.validation.d.ts +19 -19
- package/dist/types/modules/spend-to-get-history/validations/index.d.ts +2 -0
- package/dist/types/modules/spend-to-get-history/validations/index.d.ts.map +1 -0
- package/dist/types/modules/spend-to-get-history/validations/spend-to-get-history.validation.d.ts +241 -0
- package/dist/types/modules/spend-to-get-history/validations/spend-to-get-history.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +201 -0
- package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +2 -0
- package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +14 -0
- package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +10 -0
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +9 -0
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
- package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +10 -0
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +0 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +0 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +0 -2
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { Types } from 'mongoose';
|
|
2
3
|
import { DTO } from '@lyxa.ai/core/dist/utilities/validation';
|
|
3
4
|
export declare enum LtoCardState {
|
|
4
5
|
NONE = "NONE",
|
|
@@ -8,51 +9,51 @@ export declare enum LtoCardState {
|
|
|
8
9
|
}
|
|
9
10
|
export declare const JoinLtoCampaignSchema: z.ZodEffects<z.ZodObject<{
|
|
10
11
|
isEntireMenu: z.ZodBoolean;
|
|
11
|
-
products: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
12
|
-
shopCategories: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
12
|
+
products: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>, "many">>;
|
|
13
|
+
shopCategories: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>, "many">>;
|
|
13
14
|
discountPercentage: z.ZodNumber;
|
|
14
15
|
maxDiscountCap: z.ZodNumber;
|
|
15
16
|
isOrderCapacityEnabled: z.ZodBoolean;
|
|
16
17
|
maxOrderCapacity: z.ZodOptional<z.ZodNumber>;
|
|
17
18
|
}, "strip", z.ZodTypeAny, {
|
|
18
19
|
isEntireMenu: boolean;
|
|
19
|
-
products:
|
|
20
|
+
products: Types.ObjectId[];
|
|
20
21
|
maxDiscountCap: number;
|
|
21
22
|
discountPercentage: number;
|
|
22
23
|
isOrderCapacityEnabled: boolean;
|
|
23
|
-
shopCategories:
|
|
24
|
+
shopCategories: Types.ObjectId[];
|
|
24
25
|
maxOrderCapacity?: number | undefined;
|
|
25
26
|
}, {
|
|
26
27
|
isEntireMenu: boolean;
|
|
27
28
|
maxDiscountCap: number;
|
|
28
29
|
discountPercentage: number;
|
|
29
30
|
isOrderCapacityEnabled: boolean;
|
|
30
|
-
products?: (string |
|
|
31
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
31
32
|
maxOrderCapacity?: number | undefined;
|
|
32
|
-
shopCategories?: (string |
|
|
33
|
+
shopCategories?: (string | Types.ObjectId)[] | undefined;
|
|
33
34
|
}>, {
|
|
34
35
|
isEntireMenu: boolean;
|
|
35
|
-
products:
|
|
36
|
+
products: Types.ObjectId[];
|
|
36
37
|
maxDiscountCap: number;
|
|
37
38
|
discountPercentage: number;
|
|
38
39
|
isOrderCapacityEnabled: boolean;
|
|
39
|
-
shopCategories:
|
|
40
|
+
shopCategories: Types.ObjectId[];
|
|
40
41
|
maxOrderCapacity?: number | undefined;
|
|
41
42
|
}, {
|
|
42
43
|
isEntireMenu: boolean;
|
|
43
44
|
maxDiscountCap: number;
|
|
44
45
|
discountPercentage: number;
|
|
45
46
|
isOrderCapacityEnabled: boolean;
|
|
46
|
-
products?: (string |
|
|
47
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
47
48
|
maxOrderCapacity?: number | undefined;
|
|
48
|
-
shopCategories?: (string |
|
|
49
|
+
shopCategories?: (string | Types.ObjectId)[] | undefined;
|
|
49
50
|
}>;
|
|
50
51
|
export declare const ParticipantSchema: z.ZodObject<{
|
|
51
|
-
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
52
|
-
campaign: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
53
|
-
shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
52
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>;
|
|
53
|
+
campaign: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>;
|
|
54
|
+
shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>;
|
|
54
55
|
joinedAt: z.ZodDate;
|
|
55
|
-
products: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
56
|
+
products: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>, "many">>;
|
|
56
57
|
isEntireMenu: z.ZodBoolean;
|
|
57
58
|
discountPercentage: z.ZodOptional<z.ZodNumber>;
|
|
58
59
|
maxDiscountCap: z.ZodOptional<z.ZodNumber>;
|
|
@@ -63,12 +64,12 @@ export declare const ParticipantSchema: z.ZodObject<{
|
|
|
63
64
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
64
65
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
65
66
|
}, "strip", z.ZodTypeAny, {
|
|
66
|
-
_id:
|
|
67
|
-
shop:
|
|
67
|
+
_id: Types.ObjectId;
|
|
68
|
+
shop: Types.ObjectId;
|
|
68
69
|
isEntireMenu: boolean;
|
|
69
|
-
products: import("mongoose").Types.ObjectId[];
|
|
70
70
|
joinedAt: Date;
|
|
71
|
-
|
|
71
|
+
products: Types.ObjectId[];
|
|
72
|
+
campaign: Types.ObjectId;
|
|
72
73
|
isOrderCapacityEnabled: boolean;
|
|
73
74
|
isWithdrawn: boolean;
|
|
74
75
|
createdAt?: Date | null | undefined;
|
|
@@ -78,23 +79,23 @@ export declare const ParticipantSchema: z.ZodObject<{
|
|
|
78
79
|
maxOrderCapacity?: number | undefined;
|
|
79
80
|
withdrawnAt?: Date | null | undefined;
|
|
80
81
|
}, {
|
|
81
|
-
_id: string |
|
|
82
|
-
shop: string |
|
|
82
|
+
_id: string | Types.ObjectId;
|
|
83
|
+
shop: string | Types.ObjectId;
|
|
83
84
|
isEntireMenu: boolean;
|
|
84
85
|
joinedAt: Date;
|
|
85
|
-
campaign: string |
|
|
86
|
+
campaign: string | Types.ObjectId;
|
|
86
87
|
isOrderCapacityEnabled: boolean;
|
|
87
88
|
isWithdrawn: boolean;
|
|
88
89
|
createdAt?: Date | null | undefined;
|
|
89
90
|
updatedAt?: Date | null | undefined;
|
|
90
|
-
products?: (string |
|
|
91
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
91
92
|
maxDiscountCap?: number | undefined;
|
|
92
93
|
discountPercentage?: number | undefined;
|
|
93
94
|
maxOrderCapacity?: number | undefined;
|
|
94
95
|
withdrawnAt?: Date | null | undefined;
|
|
95
96
|
}>;
|
|
96
97
|
export declare const CampaignSummarySchema: z.ZodObject<{
|
|
97
|
-
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
98
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>;
|
|
98
99
|
title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
99
100
|
subTitle: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
100
101
|
startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -102,7 +103,7 @@ export declare const CampaignSummarySchema: z.ZodObject<{
|
|
|
102
103
|
discountOptions: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
103
104
|
maxDiscountCaps: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
104
105
|
}, "strip", z.ZodTypeAny, {
|
|
105
|
-
_id:
|
|
106
|
+
_id: Types.ObjectId;
|
|
106
107
|
discountOptions: number[];
|
|
107
108
|
maxDiscountCaps: number[];
|
|
108
109
|
startDate?: Date | null | undefined;
|
|
@@ -110,7 +111,7 @@ export declare const CampaignSummarySchema: z.ZodObject<{
|
|
|
110
111
|
title?: string | undefined;
|
|
111
112
|
subTitle?: string | undefined;
|
|
112
113
|
}, {
|
|
113
|
-
_id: string |
|
|
114
|
+
_id: string | Types.ObjectId;
|
|
114
115
|
startDate?: Date | null | undefined;
|
|
115
116
|
endDate?: Date | null | undefined;
|
|
116
117
|
title?: string | undefined;
|
|
@@ -125,14 +126,14 @@ export declare const ParticipantSummarySchema: z.ZodObject<{
|
|
|
125
126
|
isEntireMenu: z.ZodBoolean;
|
|
126
127
|
isOrderCapacityEnabled: z.ZodBoolean;
|
|
127
128
|
maxOrderCapacity: z.ZodOptional<z.ZodNumber>;
|
|
128
|
-
productIds: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
129
|
-
marketingId: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
129
|
+
productIds: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>, "many">>;
|
|
130
|
+
marketingId: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>>;
|
|
130
131
|
}, "strip", z.ZodTypeAny, {
|
|
131
132
|
isEntireMenu: boolean;
|
|
132
133
|
joinedAt: Date;
|
|
133
|
-
productIds:
|
|
134
|
+
productIds: Types.ObjectId[];
|
|
134
135
|
isOrderCapacityEnabled: boolean;
|
|
135
|
-
marketingId?:
|
|
136
|
+
marketingId?: Types.ObjectId | undefined;
|
|
136
137
|
maxDiscountCap?: number | undefined;
|
|
137
138
|
discountPercentage?: number | undefined;
|
|
138
139
|
maxOrderCapacity?: number | undefined;
|
|
@@ -140,8 +141,8 @@ export declare const ParticipantSummarySchema: z.ZodObject<{
|
|
|
140
141
|
isEntireMenu: boolean;
|
|
141
142
|
joinedAt: Date;
|
|
142
143
|
isOrderCapacityEnabled: boolean;
|
|
143
|
-
productIds?: (string |
|
|
144
|
-
marketingId?: string |
|
|
144
|
+
productIds?: (string | Types.ObjectId)[] | undefined;
|
|
145
|
+
marketingId?: string | Types.ObjectId | undefined;
|
|
145
146
|
maxDiscountCap?: number | undefined;
|
|
146
147
|
discountPercentage?: number | undefined;
|
|
147
148
|
maxOrderCapacity?: number | undefined;
|
|
@@ -149,7 +150,7 @@ export declare const ParticipantSummarySchema: z.ZodObject<{
|
|
|
149
150
|
export declare const ParticipantStatusSchema: z.ZodObject<{
|
|
150
151
|
campaignState: z.ZodNativeEnum<typeof LtoCardState>;
|
|
151
152
|
campaign: z.ZodOptional<z.ZodObject<{
|
|
152
|
-
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
153
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>;
|
|
153
154
|
title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
154
155
|
subTitle: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
155
156
|
startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -157,7 +158,7 @@ export declare const ParticipantStatusSchema: z.ZodObject<{
|
|
|
157
158
|
discountOptions: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
158
159
|
maxDiscountCaps: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
159
160
|
}, "strip", z.ZodTypeAny, {
|
|
160
|
-
_id:
|
|
161
|
+
_id: Types.ObjectId;
|
|
161
162
|
discountOptions: number[];
|
|
162
163
|
maxDiscountCaps: number[];
|
|
163
164
|
startDate?: Date | null | undefined;
|
|
@@ -165,7 +166,7 @@ export declare const ParticipantStatusSchema: z.ZodObject<{
|
|
|
165
166
|
title?: string | undefined;
|
|
166
167
|
subTitle?: string | undefined;
|
|
167
168
|
}, {
|
|
168
|
-
_id: string |
|
|
169
|
+
_id: string | Types.ObjectId;
|
|
169
170
|
startDate?: Date | null | undefined;
|
|
170
171
|
endDate?: Date | null | undefined;
|
|
171
172
|
title?: string | undefined;
|
|
@@ -180,14 +181,14 @@ export declare const ParticipantStatusSchema: z.ZodObject<{
|
|
|
180
181
|
isEntireMenu: z.ZodBoolean;
|
|
181
182
|
isOrderCapacityEnabled: z.ZodBoolean;
|
|
182
183
|
maxOrderCapacity: z.ZodOptional<z.ZodNumber>;
|
|
183
|
-
productIds: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
184
|
-
marketingId: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
184
|
+
productIds: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>, "many">>;
|
|
185
|
+
marketingId: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>>;
|
|
185
186
|
}, "strip", z.ZodTypeAny, {
|
|
186
187
|
isEntireMenu: boolean;
|
|
187
188
|
joinedAt: Date;
|
|
188
|
-
productIds:
|
|
189
|
+
productIds: Types.ObjectId[];
|
|
189
190
|
isOrderCapacityEnabled: boolean;
|
|
190
|
-
marketingId?:
|
|
191
|
+
marketingId?: Types.ObjectId | undefined;
|
|
191
192
|
maxDiscountCap?: number | undefined;
|
|
192
193
|
discountPercentage?: number | undefined;
|
|
193
194
|
maxOrderCapacity?: number | undefined;
|
|
@@ -195,8 +196,8 @@ export declare const ParticipantStatusSchema: z.ZodObject<{
|
|
|
195
196
|
isEntireMenu: boolean;
|
|
196
197
|
joinedAt: Date;
|
|
197
198
|
isOrderCapacityEnabled: boolean;
|
|
198
|
-
productIds?: (string |
|
|
199
|
-
marketingId?: string |
|
|
199
|
+
productIds?: (string | Types.ObjectId)[] | undefined;
|
|
200
|
+
marketingId?: string | Types.ObjectId | undefined;
|
|
200
201
|
maxDiscountCap?: number | undefined;
|
|
201
202
|
discountPercentage?: number | undefined;
|
|
202
203
|
maxOrderCapacity?: number | undefined;
|
|
@@ -204,7 +205,7 @@ export declare const ParticipantStatusSchema: z.ZodObject<{
|
|
|
204
205
|
}, "strip", z.ZodTypeAny, {
|
|
205
206
|
campaignState: LtoCardState;
|
|
206
207
|
campaign?: {
|
|
207
|
-
_id:
|
|
208
|
+
_id: Types.ObjectId;
|
|
208
209
|
discountOptions: number[];
|
|
209
210
|
maxDiscountCaps: number[];
|
|
210
211
|
startDate?: Date | null | undefined;
|
|
@@ -215,9 +216,9 @@ export declare const ParticipantStatusSchema: z.ZodObject<{
|
|
|
215
216
|
participant?: {
|
|
216
217
|
isEntireMenu: boolean;
|
|
217
218
|
joinedAt: Date;
|
|
218
|
-
productIds:
|
|
219
|
+
productIds: Types.ObjectId[];
|
|
219
220
|
isOrderCapacityEnabled: boolean;
|
|
220
|
-
marketingId?:
|
|
221
|
+
marketingId?: Types.ObjectId | undefined;
|
|
221
222
|
maxDiscountCap?: number | undefined;
|
|
222
223
|
discountPercentage?: number | undefined;
|
|
223
224
|
maxOrderCapacity?: number | undefined;
|
|
@@ -225,7 +226,7 @@ export declare const ParticipantStatusSchema: z.ZodObject<{
|
|
|
225
226
|
}, {
|
|
226
227
|
campaignState: LtoCardState;
|
|
227
228
|
campaign?: {
|
|
228
|
-
_id: string |
|
|
229
|
+
_id: string | Types.ObjectId;
|
|
229
230
|
startDate?: Date | null | undefined;
|
|
230
231
|
endDate?: Date | null | undefined;
|
|
231
232
|
title?: string | undefined;
|
|
@@ -237,8 +238,8 @@ export declare const ParticipantStatusSchema: z.ZodObject<{
|
|
|
237
238
|
isEntireMenu: boolean;
|
|
238
239
|
joinedAt: Date;
|
|
239
240
|
isOrderCapacityEnabled: boolean;
|
|
240
|
-
productIds?: (string |
|
|
241
|
-
marketingId?: string |
|
|
241
|
+
productIds?: (string | Types.ObjectId)[] | undefined;
|
|
242
|
+
marketingId?: string | Types.ObjectId | undefined;
|
|
242
243
|
maxDiscountCap?: number | undefined;
|
|
243
244
|
discountPercentage?: number | undefined;
|
|
244
245
|
maxOrderCapacity?: number | undefined;
|
|
@@ -265,31 +266,31 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
265
266
|
totalPages: number;
|
|
266
267
|
}>>;
|
|
267
268
|
documents: z.ZodArray<z.ZodType<{
|
|
268
|
-
_id: string |
|
|
269
|
-
shop: string |
|
|
269
|
+
_id: string | Types.ObjectId;
|
|
270
|
+
shop: string | Types.ObjectId;
|
|
270
271
|
isEntireMenu: boolean;
|
|
271
272
|
joinedAt: Date;
|
|
272
|
-
campaign: string |
|
|
273
|
+
campaign: string | Types.ObjectId;
|
|
273
274
|
isOrderCapacityEnabled: boolean;
|
|
274
275
|
isWithdrawn: boolean;
|
|
275
276
|
createdAt?: Date | null | undefined;
|
|
276
277
|
updatedAt?: Date | null | undefined;
|
|
277
|
-
products?: (string |
|
|
278
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
278
279
|
maxDiscountCap?: number | undefined;
|
|
279
280
|
discountPercentage?: number | undefined;
|
|
280
281
|
maxOrderCapacity?: number | undefined;
|
|
281
282
|
withdrawnAt?: Date | null | undefined;
|
|
282
283
|
}, z.ZodTypeDef, {
|
|
283
|
-
_id: string |
|
|
284
|
-
shop: string |
|
|
284
|
+
_id: string | Types.ObjectId;
|
|
285
|
+
shop: string | Types.ObjectId;
|
|
285
286
|
isEntireMenu: boolean;
|
|
286
287
|
joinedAt: Date;
|
|
287
|
-
campaign: string |
|
|
288
|
+
campaign: string | Types.ObjectId;
|
|
288
289
|
isOrderCapacityEnabled: boolean;
|
|
289
290
|
isWithdrawn: boolean;
|
|
290
291
|
createdAt?: Date | null | undefined;
|
|
291
292
|
updatedAt?: Date | null | undefined;
|
|
292
|
-
products?: (string |
|
|
293
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
293
294
|
maxDiscountCap?: number | undefined;
|
|
294
295
|
discountPercentage?: number | undefined;
|
|
295
296
|
maxOrderCapacity?: number | undefined;
|
|
@@ -297,16 +298,16 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
297
298
|
}>, "many">;
|
|
298
299
|
}, "strip", z.ZodTypeAny, {
|
|
299
300
|
documents: {
|
|
300
|
-
_id: string |
|
|
301
|
-
shop: string |
|
|
301
|
+
_id: string | Types.ObjectId;
|
|
302
|
+
shop: string | Types.ObjectId;
|
|
302
303
|
isEntireMenu: boolean;
|
|
303
304
|
joinedAt: Date;
|
|
304
|
-
campaign: string |
|
|
305
|
+
campaign: string | Types.ObjectId;
|
|
305
306
|
isOrderCapacityEnabled: boolean;
|
|
306
307
|
isWithdrawn: boolean;
|
|
307
308
|
createdAt?: Date | null | undefined;
|
|
308
309
|
updatedAt?: Date | null | undefined;
|
|
309
|
-
products?: (string |
|
|
310
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
310
311
|
maxDiscountCap?: number | undefined;
|
|
311
312
|
discountPercentage?: number | undefined;
|
|
312
313
|
maxOrderCapacity?: number | undefined;
|
|
@@ -320,16 +321,16 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
320
321
|
} | undefined;
|
|
321
322
|
}, {
|
|
322
323
|
documents: {
|
|
323
|
-
_id: string |
|
|
324
|
-
shop: string |
|
|
324
|
+
_id: string | Types.ObjectId;
|
|
325
|
+
shop: string | Types.ObjectId;
|
|
325
326
|
isEntireMenu: boolean;
|
|
326
327
|
joinedAt: Date;
|
|
327
|
-
campaign: string |
|
|
328
|
+
campaign: string | Types.ObjectId;
|
|
328
329
|
isOrderCapacityEnabled: boolean;
|
|
329
330
|
isWithdrawn: boolean;
|
|
330
331
|
createdAt?: Date | null | undefined;
|
|
331
332
|
updatedAt?: Date | null | undefined;
|
|
332
|
-
products?: (string |
|
|
333
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
333
334
|
maxDiscountCap?: number | undefined;
|
|
334
335
|
discountPercentage?: number | undefined;
|
|
335
336
|
maxOrderCapacity?: number | undefined;
|
|
@@ -342,31 +343,31 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
342
343
|
totalPages: number;
|
|
343
344
|
} | undefined;
|
|
344
345
|
}>, z.ZodType<{
|
|
345
|
-
_id: string |
|
|
346
|
-
shop: string |
|
|
346
|
+
_id: string | Types.ObjectId;
|
|
347
|
+
shop: string | Types.ObjectId;
|
|
347
348
|
isEntireMenu: boolean;
|
|
348
349
|
joinedAt: Date;
|
|
349
|
-
campaign: string |
|
|
350
|
+
campaign: string | Types.ObjectId;
|
|
350
351
|
isOrderCapacityEnabled: boolean;
|
|
351
352
|
isWithdrawn: boolean;
|
|
352
353
|
createdAt?: Date | null | undefined;
|
|
353
354
|
updatedAt?: Date | null | undefined;
|
|
354
|
-
products?: (string |
|
|
355
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
355
356
|
maxDiscountCap?: number | undefined;
|
|
356
357
|
discountPercentage?: number | undefined;
|
|
357
358
|
maxOrderCapacity?: number | undefined;
|
|
358
359
|
withdrawnAt?: Date | null | undefined;
|
|
359
360
|
}, z.ZodTypeDef, {
|
|
360
|
-
_id: string |
|
|
361
|
-
shop: string |
|
|
361
|
+
_id: string | Types.ObjectId;
|
|
362
|
+
shop: string | Types.ObjectId;
|
|
362
363
|
isEntireMenu: boolean;
|
|
363
364
|
joinedAt: Date;
|
|
364
|
-
campaign: string |
|
|
365
|
+
campaign: string | Types.ObjectId;
|
|
365
366
|
isOrderCapacityEnabled: boolean;
|
|
366
367
|
isWithdrawn: boolean;
|
|
367
368
|
createdAt?: Date | null | undefined;
|
|
368
369
|
updatedAt?: Date | null | undefined;
|
|
369
|
-
products?: (string |
|
|
370
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
370
371
|
maxDiscountCap?: number | undefined;
|
|
371
372
|
discountPercentage?: number | undefined;
|
|
372
373
|
maxOrderCapacity?: number | undefined;
|
|
@@ -376,32 +377,32 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
376
377
|
message: string;
|
|
377
378
|
success: boolean;
|
|
378
379
|
data?: {
|
|
379
|
-
_id: string |
|
|
380
|
-
shop: string |
|
|
380
|
+
_id: string | Types.ObjectId;
|
|
381
|
+
shop: string | Types.ObjectId;
|
|
381
382
|
isEntireMenu: boolean;
|
|
382
383
|
joinedAt: Date;
|
|
383
|
-
campaign: string |
|
|
384
|
+
campaign: string | Types.ObjectId;
|
|
384
385
|
isOrderCapacityEnabled: boolean;
|
|
385
386
|
isWithdrawn: boolean;
|
|
386
387
|
createdAt?: Date | null | undefined;
|
|
387
388
|
updatedAt?: Date | null | undefined;
|
|
388
|
-
products?: (string |
|
|
389
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
389
390
|
maxDiscountCap?: number | undefined;
|
|
390
391
|
discountPercentage?: number | undefined;
|
|
391
392
|
maxOrderCapacity?: number | undefined;
|
|
392
393
|
withdrawnAt?: Date | null | undefined;
|
|
393
394
|
} | {
|
|
394
395
|
documents: {
|
|
395
|
-
_id: string |
|
|
396
|
-
shop: string |
|
|
396
|
+
_id: string | Types.ObjectId;
|
|
397
|
+
shop: string | Types.ObjectId;
|
|
397
398
|
isEntireMenu: boolean;
|
|
398
399
|
joinedAt: Date;
|
|
399
|
-
campaign: string |
|
|
400
|
+
campaign: string | Types.ObjectId;
|
|
400
401
|
isOrderCapacityEnabled: boolean;
|
|
401
402
|
isWithdrawn: boolean;
|
|
402
403
|
createdAt?: Date | null | undefined;
|
|
403
404
|
updatedAt?: Date | null | undefined;
|
|
404
|
-
products?: (string |
|
|
405
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
405
406
|
maxDiscountCap?: number | undefined;
|
|
406
407
|
discountPercentage?: number | undefined;
|
|
407
408
|
maxOrderCapacity?: number | undefined;
|
|
@@ -418,32 +419,32 @@ export declare const ParticipantResponseSchema: z.ZodObject<{
|
|
|
418
419
|
message: string;
|
|
419
420
|
success: boolean;
|
|
420
421
|
data?: {
|
|
421
|
-
_id: string |
|
|
422
|
-
shop: string |
|
|
422
|
+
_id: string | Types.ObjectId;
|
|
423
|
+
shop: string | Types.ObjectId;
|
|
423
424
|
isEntireMenu: boolean;
|
|
424
425
|
joinedAt: Date;
|
|
425
|
-
campaign: string |
|
|
426
|
+
campaign: string | Types.ObjectId;
|
|
426
427
|
isOrderCapacityEnabled: boolean;
|
|
427
428
|
isWithdrawn: boolean;
|
|
428
429
|
createdAt?: Date | null | undefined;
|
|
429
430
|
updatedAt?: Date | null | undefined;
|
|
430
|
-
products?: (string |
|
|
431
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
431
432
|
maxDiscountCap?: number | undefined;
|
|
432
433
|
discountPercentage?: number | undefined;
|
|
433
434
|
maxOrderCapacity?: number | undefined;
|
|
434
435
|
withdrawnAt?: Date | null | undefined;
|
|
435
436
|
} | {
|
|
436
437
|
documents: {
|
|
437
|
-
_id: string |
|
|
438
|
-
shop: string |
|
|
438
|
+
_id: string | Types.ObjectId;
|
|
439
|
+
shop: string | Types.ObjectId;
|
|
439
440
|
isEntireMenu: boolean;
|
|
440
441
|
joinedAt: Date;
|
|
441
|
-
campaign: string |
|
|
442
|
+
campaign: string | Types.ObjectId;
|
|
442
443
|
isOrderCapacityEnabled: boolean;
|
|
443
444
|
isWithdrawn: boolean;
|
|
444
445
|
createdAt?: Date | null | undefined;
|
|
445
446
|
updatedAt?: Date | null | undefined;
|
|
446
|
-
products?: (string |
|
|
447
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
447
448
|
maxDiscountCap?: number | undefined;
|
|
448
449
|
discountPercentage?: number | undefined;
|
|
449
450
|
maxOrderCapacity?: number | undefined;
|
|
@@ -480,7 +481,7 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
480
481
|
documents: z.ZodArray<z.ZodType<{
|
|
481
482
|
campaignState: LtoCardState;
|
|
482
483
|
campaign?: {
|
|
483
|
-
_id: string |
|
|
484
|
+
_id: string | Types.ObjectId;
|
|
484
485
|
startDate?: Date | null | undefined;
|
|
485
486
|
endDate?: Date | null | undefined;
|
|
486
487
|
title?: string | undefined;
|
|
@@ -492,8 +493,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
492
493
|
isEntireMenu: boolean;
|
|
493
494
|
joinedAt: Date;
|
|
494
495
|
isOrderCapacityEnabled: boolean;
|
|
495
|
-
productIds?: (string |
|
|
496
|
-
marketingId?: string |
|
|
496
|
+
productIds?: (string | Types.ObjectId)[] | undefined;
|
|
497
|
+
marketingId?: string | Types.ObjectId | undefined;
|
|
497
498
|
maxDiscountCap?: number | undefined;
|
|
498
499
|
discountPercentage?: number | undefined;
|
|
499
500
|
maxOrderCapacity?: number | undefined;
|
|
@@ -501,7 +502,7 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
501
502
|
}, z.ZodTypeDef, {
|
|
502
503
|
campaignState: LtoCardState;
|
|
503
504
|
campaign?: {
|
|
504
|
-
_id: string |
|
|
505
|
+
_id: string | Types.ObjectId;
|
|
505
506
|
startDate?: Date | null | undefined;
|
|
506
507
|
endDate?: Date | null | undefined;
|
|
507
508
|
title?: string | undefined;
|
|
@@ -513,8 +514,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
513
514
|
isEntireMenu: boolean;
|
|
514
515
|
joinedAt: Date;
|
|
515
516
|
isOrderCapacityEnabled: boolean;
|
|
516
|
-
productIds?: (string |
|
|
517
|
-
marketingId?: string |
|
|
517
|
+
productIds?: (string | Types.ObjectId)[] | undefined;
|
|
518
|
+
marketingId?: string | Types.ObjectId | undefined;
|
|
518
519
|
maxDiscountCap?: number | undefined;
|
|
519
520
|
discountPercentage?: number | undefined;
|
|
520
521
|
maxOrderCapacity?: number | undefined;
|
|
@@ -524,7 +525,7 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
524
525
|
documents: {
|
|
525
526
|
campaignState: LtoCardState;
|
|
526
527
|
campaign?: {
|
|
527
|
-
_id: string |
|
|
528
|
+
_id: string | Types.ObjectId;
|
|
528
529
|
startDate?: Date | null | undefined;
|
|
529
530
|
endDate?: Date | null | undefined;
|
|
530
531
|
title?: string | undefined;
|
|
@@ -536,8 +537,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
536
537
|
isEntireMenu: boolean;
|
|
537
538
|
joinedAt: Date;
|
|
538
539
|
isOrderCapacityEnabled: boolean;
|
|
539
|
-
productIds?: (string |
|
|
540
|
-
marketingId?: string |
|
|
540
|
+
productIds?: (string | Types.ObjectId)[] | undefined;
|
|
541
|
+
marketingId?: string | Types.ObjectId | undefined;
|
|
541
542
|
maxDiscountCap?: number | undefined;
|
|
542
543
|
discountPercentage?: number | undefined;
|
|
543
544
|
maxOrderCapacity?: number | undefined;
|
|
@@ -553,7 +554,7 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
553
554
|
documents: {
|
|
554
555
|
campaignState: LtoCardState;
|
|
555
556
|
campaign?: {
|
|
556
|
-
_id: string |
|
|
557
|
+
_id: string | Types.ObjectId;
|
|
557
558
|
startDate?: Date | null | undefined;
|
|
558
559
|
endDate?: Date | null | undefined;
|
|
559
560
|
title?: string | undefined;
|
|
@@ -565,8 +566,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
565
566
|
isEntireMenu: boolean;
|
|
566
567
|
joinedAt: Date;
|
|
567
568
|
isOrderCapacityEnabled: boolean;
|
|
568
|
-
productIds?: (string |
|
|
569
|
-
marketingId?: string |
|
|
569
|
+
productIds?: (string | Types.ObjectId)[] | undefined;
|
|
570
|
+
marketingId?: string | Types.ObjectId | undefined;
|
|
570
571
|
maxDiscountCap?: number | undefined;
|
|
571
572
|
discountPercentage?: number | undefined;
|
|
572
573
|
maxOrderCapacity?: number | undefined;
|
|
@@ -581,7 +582,7 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
581
582
|
}>, z.ZodType<{
|
|
582
583
|
campaignState: LtoCardState;
|
|
583
584
|
campaign?: {
|
|
584
|
-
_id: string |
|
|
585
|
+
_id: string | Types.ObjectId;
|
|
585
586
|
startDate?: Date | null | undefined;
|
|
586
587
|
endDate?: Date | null | undefined;
|
|
587
588
|
title?: string | undefined;
|
|
@@ -593,8 +594,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
593
594
|
isEntireMenu: boolean;
|
|
594
595
|
joinedAt: Date;
|
|
595
596
|
isOrderCapacityEnabled: boolean;
|
|
596
|
-
productIds?: (string |
|
|
597
|
-
marketingId?: string |
|
|
597
|
+
productIds?: (string | Types.ObjectId)[] | undefined;
|
|
598
|
+
marketingId?: string | Types.ObjectId | undefined;
|
|
598
599
|
maxDiscountCap?: number | undefined;
|
|
599
600
|
discountPercentage?: number | undefined;
|
|
600
601
|
maxOrderCapacity?: number | undefined;
|
|
@@ -602,7 +603,7 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
602
603
|
}, z.ZodTypeDef, {
|
|
603
604
|
campaignState: LtoCardState;
|
|
604
605
|
campaign?: {
|
|
605
|
-
_id: string |
|
|
606
|
+
_id: string | Types.ObjectId;
|
|
606
607
|
startDate?: Date | null | undefined;
|
|
607
608
|
endDate?: Date | null | undefined;
|
|
608
609
|
title?: string | undefined;
|
|
@@ -614,8 +615,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
614
615
|
isEntireMenu: boolean;
|
|
615
616
|
joinedAt: Date;
|
|
616
617
|
isOrderCapacityEnabled: boolean;
|
|
617
|
-
productIds?: (string |
|
|
618
|
-
marketingId?: string |
|
|
618
|
+
productIds?: (string | Types.ObjectId)[] | undefined;
|
|
619
|
+
marketingId?: string | Types.ObjectId | undefined;
|
|
619
620
|
maxDiscountCap?: number | undefined;
|
|
620
621
|
discountPercentage?: number | undefined;
|
|
621
622
|
maxOrderCapacity?: number | undefined;
|
|
@@ -627,7 +628,7 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
627
628
|
data?: {
|
|
628
629
|
campaignState: LtoCardState;
|
|
629
630
|
campaign?: {
|
|
630
|
-
_id: string |
|
|
631
|
+
_id: string | Types.ObjectId;
|
|
631
632
|
startDate?: Date | null | undefined;
|
|
632
633
|
endDate?: Date | null | undefined;
|
|
633
634
|
title?: string | undefined;
|
|
@@ -639,8 +640,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
639
640
|
isEntireMenu: boolean;
|
|
640
641
|
joinedAt: Date;
|
|
641
642
|
isOrderCapacityEnabled: boolean;
|
|
642
|
-
productIds?: (string |
|
|
643
|
-
marketingId?: string |
|
|
643
|
+
productIds?: (string | Types.ObjectId)[] | undefined;
|
|
644
|
+
marketingId?: string | Types.ObjectId | undefined;
|
|
644
645
|
maxDiscountCap?: number | undefined;
|
|
645
646
|
discountPercentage?: number | undefined;
|
|
646
647
|
maxOrderCapacity?: number | undefined;
|
|
@@ -649,7 +650,7 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
649
650
|
documents: {
|
|
650
651
|
campaignState: LtoCardState;
|
|
651
652
|
campaign?: {
|
|
652
|
-
_id: string |
|
|
653
|
+
_id: string | Types.ObjectId;
|
|
653
654
|
startDate?: Date | null | undefined;
|
|
654
655
|
endDate?: Date | null | undefined;
|
|
655
656
|
title?: string | undefined;
|
|
@@ -661,8 +662,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
661
662
|
isEntireMenu: boolean;
|
|
662
663
|
joinedAt: Date;
|
|
663
664
|
isOrderCapacityEnabled: boolean;
|
|
664
|
-
productIds?: (string |
|
|
665
|
-
marketingId?: string |
|
|
665
|
+
productIds?: (string | Types.ObjectId)[] | undefined;
|
|
666
|
+
marketingId?: string | Types.ObjectId | undefined;
|
|
666
667
|
maxDiscountCap?: number | undefined;
|
|
667
668
|
discountPercentage?: number | undefined;
|
|
668
669
|
maxOrderCapacity?: number | undefined;
|
|
@@ -681,7 +682,7 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
681
682
|
data?: {
|
|
682
683
|
campaignState: LtoCardState;
|
|
683
684
|
campaign?: {
|
|
684
|
-
_id: string |
|
|
685
|
+
_id: string | Types.ObjectId;
|
|
685
686
|
startDate?: Date | null | undefined;
|
|
686
687
|
endDate?: Date | null | undefined;
|
|
687
688
|
title?: string | undefined;
|
|
@@ -693,8 +694,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
693
694
|
isEntireMenu: boolean;
|
|
694
695
|
joinedAt: Date;
|
|
695
696
|
isOrderCapacityEnabled: boolean;
|
|
696
|
-
productIds?: (string |
|
|
697
|
-
marketingId?: string |
|
|
697
|
+
productIds?: (string | Types.ObjectId)[] | undefined;
|
|
698
|
+
marketingId?: string | Types.ObjectId | undefined;
|
|
698
699
|
maxDiscountCap?: number | undefined;
|
|
699
700
|
discountPercentage?: number | undefined;
|
|
700
701
|
maxOrderCapacity?: number | undefined;
|
|
@@ -703,7 +704,7 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
703
704
|
documents: {
|
|
704
705
|
campaignState: LtoCardState;
|
|
705
706
|
campaign?: {
|
|
706
|
-
_id: string |
|
|
707
|
+
_id: string | Types.ObjectId;
|
|
707
708
|
startDate?: Date | null | undefined;
|
|
708
709
|
endDate?: Date | null | undefined;
|
|
709
710
|
title?: string | undefined;
|
|
@@ -715,8 +716,8 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
715
716
|
isEntireMenu: boolean;
|
|
716
717
|
joinedAt: Date;
|
|
717
718
|
isOrderCapacityEnabled: boolean;
|
|
718
|
-
productIds?: (string |
|
|
719
|
-
marketingId?: string |
|
|
719
|
+
productIds?: (string | Types.ObjectId)[] | undefined;
|
|
720
|
+
marketingId?: string | Types.ObjectId | undefined;
|
|
720
721
|
maxDiscountCap?: number | undefined;
|
|
721
722
|
discountPercentage?: number | undefined;
|
|
722
723
|
maxOrderCapacity?: number | undefined;
|
|
@@ -732,120 +733,120 @@ export declare const ParticipantStatusResponseSchema: z.ZodObject<{
|
|
|
732
733
|
}>;
|
|
733
734
|
export declare const AdminEnrollShopEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
734
735
|
isEntireMenu: z.ZodBoolean;
|
|
735
|
-
products: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
736
|
-
shopCategories: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
736
|
+
products: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>, "many">>;
|
|
737
|
+
shopCategories: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>, "many">>;
|
|
737
738
|
discountPercentage: z.ZodNumber;
|
|
738
739
|
maxDiscountCap: z.ZodNumber;
|
|
739
740
|
isOrderCapacityEnabled: z.ZodBoolean;
|
|
740
741
|
maxOrderCapacity: z.ZodOptional<z.ZodNumber>;
|
|
741
742
|
} & {
|
|
742
|
-
shopId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
743
|
+
shopId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>;
|
|
743
744
|
}, "strip", z.ZodTypeAny, {
|
|
744
745
|
isEntireMenu: boolean;
|
|
745
|
-
shopId:
|
|
746
|
-
products:
|
|
746
|
+
shopId: Types.ObjectId;
|
|
747
|
+
products: Types.ObjectId[];
|
|
747
748
|
maxDiscountCap: number;
|
|
748
749
|
discountPercentage: number;
|
|
749
750
|
isOrderCapacityEnabled: boolean;
|
|
750
|
-
shopCategories:
|
|
751
|
+
shopCategories: Types.ObjectId[];
|
|
751
752
|
maxOrderCapacity?: number | undefined;
|
|
752
753
|
}, {
|
|
753
754
|
isEntireMenu: boolean;
|
|
754
|
-
shopId: string |
|
|
755
|
+
shopId: string | Types.ObjectId;
|
|
755
756
|
maxDiscountCap: number;
|
|
756
757
|
discountPercentage: number;
|
|
757
758
|
isOrderCapacityEnabled: boolean;
|
|
758
|
-
products?: (string |
|
|
759
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
759
760
|
maxOrderCapacity?: number | undefined;
|
|
760
|
-
shopCategories?: (string |
|
|
761
|
+
shopCategories?: (string | Types.ObjectId)[] | undefined;
|
|
761
762
|
}>, {
|
|
762
763
|
isEntireMenu: boolean;
|
|
763
|
-
shopId:
|
|
764
|
-
products:
|
|
764
|
+
shopId: Types.ObjectId;
|
|
765
|
+
products: Types.ObjectId[];
|
|
765
766
|
maxDiscountCap: number;
|
|
766
767
|
discountPercentage: number;
|
|
767
768
|
isOrderCapacityEnabled: boolean;
|
|
768
|
-
shopCategories:
|
|
769
|
+
shopCategories: Types.ObjectId[];
|
|
769
770
|
maxOrderCapacity?: number | undefined;
|
|
770
771
|
}, {
|
|
771
772
|
isEntireMenu: boolean;
|
|
772
|
-
shopId: string |
|
|
773
|
+
shopId: string | Types.ObjectId;
|
|
773
774
|
maxDiscountCap: number;
|
|
774
775
|
discountPercentage: number;
|
|
775
776
|
isOrderCapacityEnabled: boolean;
|
|
776
|
-
products?: (string |
|
|
777
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
777
778
|
maxOrderCapacity?: number | undefined;
|
|
778
|
-
shopCategories?: (string |
|
|
779
|
+
shopCategories?: (string | Types.ObjectId)[] | undefined;
|
|
779
780
|
}>;
|
|
780
781
|
export declare const AdminEnrollShopsSchema: z.ZodObject<{
|
|
781
782
|
shops: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
782
783
|
isEntireMenu: z.ZodBoolean;
|
|
783
|
-
products: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
784
|
-
shopCategories: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
784
|
+
products: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>, "many">>;
|
|
785
|
+
shopCategories: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>, "many">>;
|
|
785
786
|
discountPercentage: z.ZodNumber;
|
|
786
787
|
maxDiscountCap: z.ZodNumber;
|
|
787
788
|
isOrderCapacityEnabled: z.ZodBoolean;
|
|
788
789
|
maxOrderCapacity: z.ZodOptional<z.ZodNumber>;
|
|
789
790
|
} & {
|
|
790
|
-
shopId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
791
|
+
shopId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>;
|
|
791
792
|
}, "strip", z.ZodTypeAny, {
|
|
792
793
|
isEntireMenu: boolean;
|
|
793
|
-
shopId:
|
|
794
|
-
products:
|
|
794
|
+
shopId: Types.ObjectId;
|
|
795
|
+
products: Types.ObjectId[];
|
|
795
796
|
maxDiscountCap: number;
|
|
796
797
|
discountPercentage: number;
|
|
797
798
|
isOrderCapacityEnabled: boolean;
|
|
798
|
-
shopCategories:
|
|
799
|
+
shopCategories: Types.ObjectId[];
|
|
799
800
|
maxOrderCapacity?: number | undefined;
|
|
800
801
|
}, {
|
|
801
802
|
isEntireMenu: boolean;
|
|
802
|
-
shopId: string |
|
|
803
|
+
shopId: string | Types.ObjectId;
|
|
803
804
|
maxDiscountCap: number;
|
|
804
805
|
discountPercentage: number;
|
|
805
806
|
isOrderCapacityEnabled: boolean;
|
|
806
|
-
products?: (string |
|
|
807
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
807
808
|
maxOrderCapacity?: number | undefined;
|
|
808
|
-
shopCategories?: (string |
|
|
809
|
+
shopCategories?: (string | Types.ObjectId)[] | undefined;
|
|
809
810
|
}>, {
|
|
810
811
|
isEntireMenu: boolean;
|
|
811
|
-
shopId:
|
|
812
|
-
products:
|
|
812
|
+
shopId: Types.ObjectId;
|
|
813
|
+
products: Types.ObjectId[];
|
|
813
814
|
maxDiscountCap: number;
|
|
814
815
|
discountPercentage: number;
|
|
815
816
|
isOrderCapacityEnabled: boolean;
|
|
816
|
-
shopCategories:
|
|
817
|
+
shopCategories: Types.ObjectId[];
|
|
817
818
|
maxOrderCapacity?: number | undefined;
|
|
818
819
|
}, {
|
|
819
820
|
isEntireMenu: boolean;
|
|
820
|
-
shopId: string |
|
|
821
|
+
shopId: string | Types.ObjectId;
|
|
821
822
|
maxDiscountCap: number;
|
|
822
823
|
discountPercentage: number;
|
|
823
824
|
isOrderCapacityEnabled: boolean;
|
|
824
|
-
products?: (string |
|
|
825
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
825
826
|
maxOrderCapacity?: number | undefined;
|
|
826
|
-
shopCategories?: (string |
|
|
827
|
+
shopCategories?: (string | Types.ObjectId)[] | undefined;
|
|
827
828
|
}>, "many">;
|
|
828
829
|
}, "strip", z.ZodTypeAny, {
|
|
829
830
|
shops: {
|
|
830
831
|
isEntireMenu: boolean;
|
|
831
|
-
shopId:
|
|
832
|
-
products:
|
|
832
|
+
shopId: Types.ObjectId;
|
|
833
|
+
products: Types.ObjectId[];
|
|
833
834
|
maxDiscountCap: number;
|
|
834
835
|
discountPercentage: number;
|
|
835
836
|
isOrderCapacityEnabled: boolean;
|
|
836
|
-
shopCategories:
|
|
837
|
+
shopCategories: Types.ObjectId[];
|
|
837
838
|
maxOrderCapacity?: number | undefined;
|
|
838
839
|
}[];
|
|
839
840
|
}, {
|
|
840
841
|
shops: {
|
|
841
842
|
isEntireMenu: boolean;
|
|
842
|
-
shopId: string |
|
|
843
|
+
shopId: string | Types.ObjectId;
|
|
843
844
|
maxDiscountCap: number;
|
|
844
845
|
discountPercentage: number;
|
|
845
846
|
isOrderCapacityEnabled: boolean;
|
|
846
|
-
products?: (string |
|
|
847
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
847
848
|
maxOrderCapacity?: number | undefined;
|
|
848
|
-
shopCategories?: (string |
|
|
849
|
+
shopCategories?: (string | Types.ObjectId)[] | undefined;
|
|
849
850
|
}[];
|
|
850
851
|
}>;
|
|
851
852
|
export declare const AdminJoinParticipantsResponseSchema: z.ZodObject<{
|
|
@@ -869,31 +870,31 @@ export declare const AdminJoinParticipantsResponseSchema: z.ZodObject<{
|
|
|
869
870
|
totalPages: number;
|
|
870
871
|
}>>;
|
|
871
872
|
documents: z.ZodArray<z.ZodType<{
|
|
872
|
-
_id: string |
|
|
873
|
-
shop: string |
|
|
873
|
+
_id: string | Types.ObjectId;
|
|
874
|
+
shop: string | Types.ObjectId;
|
|
874
875
|
isEntireMenu: boolean;
|
|
875
876
|
joinedAt: Date;
|
|
876
|
-
campaign: string |
|
|
877
|
+
campaign: string | Types.ObjectId;
|
|
877
878
|
isOrderCapacityEnabled: boolean;
|
|
878
879
|
isWithdrawn: boolean;
|
|
879
880
|
createdAt?: Date | null | undefined;
|
|
880
881
|
updatedAt?: Date | null | undefined;
|
|
881
|
-
products?: (string |
|
|
882
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
882
883
|
maxDiscountCap?: number | undefined;
|
|
883
884
|
discountPercentage?: number | undefined;
|
|
884
885
|
maxOrderCapacity?: number | undefined;
|
|
885
886
|
withdrawnAt?: Date | null | undefined;
|
|
886
887
|
}[], z.ZodTypeDef, {
|
|
887
|
-
_id: string |
|
|
888
|
-
shop: string |
|
|
888
|
+
_id: string | Types.ObjectId;
|
|
889
|
+
shop: string | Types.ObjectId;
|
|
889
890
|
isEntireMenu: boolean;
|
|
890
891
|
joinedAt: Date;
|
|
891
|
-
campaign: string |
|
|
892
|
+
campaign: string | Types.ObjectId;
|
|
892
893
|
isOrderCapacityEnabled: boolean;
|
|
893
894
|
isWithdrawn: boolean;
|
|
894
895
|
createdAt?: Date | null | undefined;
|
|
895
896
|
updatedAt?: Date | null | undefined;
|
|
896
|
-
products?: (string |
|
|
897
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
897
898
|
maxDiscountCap?: number | undefined;
|
|
898
899
|
discountPercentage?: number | undefined;
|
|
899
900
|
maxOrderCapacity?: number | undefined;
|
|
@@ -901,16 +902,16 @@ export declare const AdminJoinParticipantsResponseSchema: z.ZodObject<{
|
|
|
901
902
|
}[]>, "many">;
|
|
902
903
|
}, "strip", z.ZodTypeAny, {
|
|
903
904
|
documents: {
|
|
904
|
-
_id: string |
|
|
905
|
-
shop: string |
|
|
905
|
+
_id: string | Types.ObjectId;
|
|
906
|
+
shop: string | Types.ObjectId;
|
|
906
907
|
isEntireMenu: boolean;
|
|
907
908
|
joinedAt: Date;
|
|
908
|
-
campaign: string |
|
|
909
|
+
campaign: string | Types.ObjectId;
|
|
909
910
|
isOrderCapacityEnabled: boolean;
|
|
910
911
|
isWithdrawn: boolean;
|
|
911
912
|
createdAt?: Date | null | undefined;
|
|
912
913
|
updatedAt?: Date | null | undefined;
|
|
913
|
-
products?: (string |
|
|
914
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
914
915
|
maxDiscountCap?: number | undefined;
|
|
915
916
|
discountPercentage?: number | undefined;
|
|
916
917
|
maxOrderCapacity?: number | undefined;
|
|
@@ -924,16 +925,16 @@ export declare const AdminJoinParticipantsResponseSchema: z.ZodObject<{
|
|
|
924
925
|
} | undefined;
|
|
925
926
|
}, {
|
|
926
927
|
documents: {
|
|
927
|
-
_id: string |
|
|
928
|
-
shop: string |
|
|
928
|
+
_id: string | Types.ObjectId;
|
|
929
|
+
shop: string | Types.ObjectId;
|
|
929
930
|
isEntireMenu: boolean;
|
|
930
931
|
joinedAt: Date;
|
|
931
|
-
campaign: string |
|
|
932
|
+
campaign: string | Types.ObjectId;
|
|
932
933
|
isOrderCapacityEnabled: boolean;
|
|
933
934
|
isWithdrawn: boolean;
|
|
934
935
|
createdAt?: Date | null | undefined;
|
|
935
936
|
updatedAt?: Date | null | undefined;
|
|
936
|
-
products?: (string |
|
|
937
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
937
938
|
maxDiscountCap?: number | undefined;
|
|
938
939
|
discountPercentage?: number | undefined;
|
|
939
940
|
maxOrderCapacity?: number | undefined;
|
|
@@ -946,31 +947,31 @@ export declare const AdminJoinParticipantsResponseSchema: z.ZodObject<{
|
|
|
946
947
|
totalPages: number;
|
|
947
948
|
} | undefined;
|
|
948
949
|
}>, z.ZodType<{
|
|
949
|
-
_id: string |
|
|
950
|
-
shop: string |
|
|
950
|
+
_id: string | Types.ObjectId;
|
|
951
|
+
shop: string | Types.ObjectId;
|
|
951
952
|
isEntireMenu: boolean;
|
|
952
953
|
joinedAt: Date;
|
|
953
|
-
campaign: string |
|
|
954
|
+
campaign: string | Types.ObjectId;
|
|
954
955
|
isOrderCapacityEnabled: boolean;
|
|
955
956
|
isWithdrawn: boolean;
|
|
956
957
|
createdAt?: Date | null | undefined;
|
|
957
958
|
updatedAt?: Date | null | undefined;
|
|
958
|
-
products?: (string |
|
|
959
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
959
960
|
maxDiscountCap?: number | undefined;
|
|
960
961
|
discountPercentage?: number | undefined;
|
|
961
962
|
maxOrderCapacity?: number | undefined;
|
|
962
963
|
withdrawnAt?: Date | null | undefined;
|
|
963
964
|
}[], z.ZodTypeDef, {
|
|
964
|
-
_id: string |
|
|
965
|
-
shop: string |
|
|
965
|
+
_id: string | Types.ObjectId;
|
|
966
|
+
shop: string | Types.ObjectId;
|
|
966
967
|
isEntireMenu: boolean;
|
|
967
968
|
joinedAt: Date;
|
|
968
|
-
campaign: string |
|
|
969
|
+
campaign: string | Types.ObjectId;
|
|
969
970
|
isOrderCapacityEnabled: boolean;
|
|
970
971
|
isWithdrawn: boolean;
|
|
971
972
|
createdAt?: Date | null | undefined;
|
|
972
973
|
updatedAt?: Date | null | undefined;
|
|
973
|
-
products?: (string |
|
|
974
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
974
975
|
maxDiscountCap?: number | undefined;
|
|
975
976
|
discountPercentage?: number | undefined;
|
|
976
977
|
maxOrderCapacity?: number | undefined;
|
|
@@ -980,32 +981,32 @@ export declare const AdminJoinParticipantsResponseSchema: z.ZodObject<{
|
|
|
980
981
|
message: string;
|
|
981
982
|
success: boolean;
|
|
982
983
|
data?: {
|
|
983
|
-
_id: string |
|
|
984
|
-
shop: string |
|
|
984
|
+
_id: string | Types.ObjectId;
|
|
985
|
+
shop: string | Types.ObjectId;
|
|
985
986
|
isEntireMenu: boolean;
|
|
986
987
|
joinedAt: Date;
|
|
987
|
-
campaign: string |
|
|
988
|
+
campaign: string | Types.ObjectId;
|
|
988
989
|
isOrderCapacityEnabled: boolean;
|
|
989
990
|
isWithdrawn: boolean;
|
|
990
991
|
createdAt?: Date | null | undefined;
|
|
991
992
|
updatedAt?: Date | null | undefined;
|
|
992
|
-
products?: (string |
|
|
993
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
993
994
|
maxDiscountCap?: number | undefined;
|
|
994
995
|
discountPercentage?: number | undefined;
|
|
995
996
|
maxOrderCapacity?: number | undefined;
|
|
996
997
|
withdrawnAt?: Date | null | undefined;
|
|
997
998
|
}[] | {
|
|
998
999
|
documents: {
|
|
999
|
-
_id: string |
|
|
1000
|
-
shop: string |
|
|
1000
|
+
_id: string | Types.ObjectId;
|
|
1001
|
+
shop: string | Types.ObjectId;
|
|
1001
1002
|
isEntireMenu: boolean;
|
|
1002
1003
|
joinedAt: Date;
|
|
1003
|
-
campaign: string |
|
|
1004
|
+
campaign: string | Types.ObjectId;
|
|
1004
1005
|
isOrderCapacityEnabled: boolean;
|
|
1005
1006
|
isWithdrawn: boolean;
|
|
1006
1007
|
createdAt?: Date | null | undefined;
|
|
1007
1008
|
updatedAt?: Date | null | undefined;
|
|
1008
|
-
products?: (string |
|
|
1009
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
1009
1010
|
maxDiscountCap?: number | undefined;
|
|
1010
1011
|
discountPercentage?: number | undefined;
|
|
1011
1012
|
maxOrderCapacity?: number | undefined;
|
|
@@ -1022,32 +1023,32 @@ export declare const AdminJoinParticipantsResponseSchema: z.ZodObject<{
|
|
|
1022
1023
|
message: string;
|
|
1023
1024
|
success: boolean;
|
|
1024
1025
|
data?: {
|
|
1025
|
-
_id: string |
|
|
1026
|
-
shop: string |
|
|
1026
|
+
_id: string | Types.ObjectId;
|
|
1027
|
+
shop: string | Types.ObjectId;
|
|
1027
1028
|
isEntireMenu: boolean;
|
|
1028
1029
|
joinedAt: Date;
|
|
1029
|
-
campaign: string |
|
|
1030
|
+
campaign: string | Types.ObjectId;
|
|
1030
1031
|
isOrderCapacityEnabled: boolean;
|
|
1031
1032
|
isWithdrawn: boolean;
|
|
1032
1033
|
createdAt?: Date | null | undefined;
|
|
1033
1034
|
updatedAt?: Date | null | undefined;
|
|
1034
|
-
products?: (string |
|
|
1035
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
1035
1036
|
maxDiscountCap?: number | undefined;
|
|
1036
1037
|
discountPercentage?: number | undefined;
|
|
1037
1038
|
maxOrderCapacity?: number | undefined;
|
|
1038
1039
|
withdrawnAt?: Date | null | undefined;
|
|
1039
1040
|
}[] | {
|
|
1040
1041
|
documents: {
|
|
1041
|
-
_id: string |
|
|
1042
|
-
shop: string |
|
|
1042
|
+
_id: string | Types.ObjectId;
|
|
1043
|
+
shop: string | Types.ObjectId;
|
|
1043
1044
|
isEntireMenu: boolean;
|
|
1044
1045
|
joinedAt: Date;
|
|
1045
|
-
campaign: string |
|
|
1046
|
+
campaign: string | Types.ObjectId;
|
|
1046
1047
|
isOrderCapacityEnabled: boolean;
|
|
1047
1048
|
isWithdrawn: boolean;
|
|
1048
1049
|
createdAt?: Date | null | undefined;
|
|
1049
1050
|
updatedAt?: Date | null | undefined;
|
|
1050
|
-
products?: (string |
|
|
1051
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
1051
1052
|
maxDiscountCap?: number | undefined;
|
|
1052
1053
|
discountPercentage?: number | undefined;
|
|
1053
1054
|
maxOrderCapacity?: number | undefined;
|
|
@@ -1063,64 +1064,64 @@ export declare const AdminJoinParticipantsResponseSchema: z.ZodObject<{
|
|
|
1063
1064
|
}>;
|
|
1064
1065
|
export declare const AdminUpdateShopSchema: z.ZodEffects<z.ZodObject<{
|
|
1065
1066
|
isEntireMenu: z.ZodBoolean;
|
|
1066
|
-
products: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
1067
|
-
shopCategories: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
1067
|
+
products: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>, "many">>;
|
|
1068
|
+
shopCategories: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>, "many">>;
|
|
1068
1069
|
discountPercentage: z.ZodNumber;
|
|
1069
1070
|
maxDiscountCap: z.ZodNumber;
|
|
1070
1071
|
isOrderCapacityEnabled: z.ZodBoolean;
|
|
1071
1072
|
maxOrderCapacity: z.ZodOptional<z.ZodNumber>;
|
|
1072
1073
|
} & {
|
|
1073
|
-
shopId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
1074
|
+
shopId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>;
|
|
1074
1075
|
}, "strip", z.ZodTypeAny, {
|
|
1075
1076
|
isEntireMenu: boolean;
|
|
1076
|
-
shopId:
|
|
1077
|
-
products:
|
|
1077
|
+
shopId: Types.ObjectId;
|
|
1078
|
+
products: Types.ObjectId[];
|
|
1078
1079
|
maxDiscountCap: number;
|
|
1079
1080
|
discountPercentage: number;
|
|
1080
1081
|
isOrderCapacityEnabled: boolean;
|
|
1081
|
-
shopCategories:
|
|
1082
|
+
shopCategories: Types.ObjectId[];
|
|
1082
1083
|
maxOrderCapacity?: number | undefined;
|
|
1083
1084
|
}, {
|
|
1084
1085
|
isEntireMenu: boolean;
|
|
1085
|
-
shopId: string |
|
|
1086
|
+
shopId: string | Types.ObjectId;
|
|
1086
1087
|
maxDiscountCap: number;
|
|
1087
1088
|
discountPercentage: number;
|
|
1088
1089
|
isOrderCapacityEnabled: boolean;
|
|
1089
|
-
products?: (string |
|
|
1090
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
1090
1091
|
maxOrderCapacity?: number | undefined;
|
|
1091
|
-
shopCategories?: (string |
|
|
1092
|
+
shopCategories?: (string | Types.ObjectId)[] | undefined;
|
|
1092
1093
|
}>, {
|
|
1093
1094
|
isEntireMenu: boolean;
|
|
1094
|
-
shopId:
|
|
1095
|
-
products:
|
|
1095
|
+
shopId: Types.ObjectId;
|
|
1096
|
+
products: Types.ObjectId[];
|
|
1096
1097
|
maxDiscountCap: number;
|
|
1097
1098
|
discountPercentage: number;
|
|
1098
1099
|
isOrderCapacityEnabled: boolean;
|
|
1099
|
-
shopCategories:
|
|
1100
|
+
shopCategories: Types.ObjectId[];
|
|
1100
1101
|
maxOrderCapacity?: number | undefined;
|
|
1101
1102
|
}, {
|
|
1102
1103
|
isEntireMenu: boolean;
|
|
1103
|
-
shopId: string |
|
|
1104
|
+
shopId: string | Types.ObjectId;
|
|
1104
1105
|
maxDiscountCap: number;
|
|
1105
1106
|
discountPercentage: number;
|
|
1106
1107
|
isOrderCapacityEnabled: boolean;
|
|
1107
|
-
products?: (string |
|
|
1108
|
+
products?: (string | Types.ObjectId)[] | undefined;
|
|
1108
1109
|
maxOrderCapacity?: number | undefined;
|
|
1109
|
-
shopCategories?: (string |
|
|
1110
|
+
shopCategories?: (string | Types.ObjectId)[] | undefined;
|
|
1110
1111
|
}>;
|
|
1111
1112
|
export declare const AdminWithdrawShopSchema: z.ZodObject<{
|
|
1112
|
-
shopId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
1113
|
+
shopId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>;
|
|
1113
1114
|
}, "strip", z.ZodTypeAny, {
|
|
1114
|
-
shopId:
|
|
1115
|
+
shopId: Types.ObjectId;
|
|
1115
1116
|
}, {
|
|
1116
|
-
shopId: string |
|
|
1117
|
+
shopId: string | Types.ObjectId;
|
|
1117
1118
|
}>;
|
|
1118
1119
|
export declare const AdminGetParticipantByShopSchema: z.ZodObject<{
|
|
1119
|
-
shopId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>,
|
|
1120
|
+
shopId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Types.ObjectId, string>, z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>]>;
|
|
1120
1121
|
}, "strip", z.ZodTypeAny, {
|
|
1121
|
-
shopId:
|
|
1122
|
+
shopId: Types.ObjectId;
|
|
1122
1123
|
}, {
|
|
1123
|
-
shopId: string |
|
|
1124
|
+
shopId: string | Types.ObjectId;
|
|
1124
1125
|
}>;
|
|
1125
1126
|
export type AdminWithdrawShopDTO = DTO<typeof AdminWithdrawShopSchema>;
|
|
1126
1127
|
export type AdminEnrollShopEntryDTO = DTO<typeof AdminEnrollShopEntrySchema>;
|
|
@@ -1133,5 +1134,8 @@ export type ParticipantStatusDTO = DTO<typeof ParticipantStatusSchema>;
|
|
|
1133
1134
|
export type ActiveParticipantMarketingDTO = Pick<ParticipantSummaryDTO, 'marketingId'>;
|
|
1134
1135
|
export type UpdateParticipantDataDTO = Omit<JoinLtoCampaignDTO, 'shopCategories'> & {
|
|
1135
1136
|
marketing: ParticipantSummaryDTO['marketingId'];
|
|
1137
|
+
pausedMarketings?: Types.ObjectId[];
|
|
1138
|
+
pausedOrderCapacity?: number;
|
|
1139
|
+
pausedOrderCapacityEnabled?: boolean;
|
|
1136
1140
|
};
|
|
1137
1141
|
//# sourceMappingURL=limited-time-offer-participant.validation.d.ts.map
|