@kimdaegyu/babmukdang-shared 1.1.11 → 2.0.2
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/chunk-3BLXZW4U.js +338 -0
- package/dist/{chunk-AI2YMBJX.js → chunk-65DWKLP6.js} +18 -9
- package/dist/{chunk-H77ISYYC.js → chunk-6R5CCY5Q.js} +22 -8
- package/dist/{chunk-4E5E3PFW.js → chunk-DRCY5UNQ.js} +20 -7
- package/dist/chunk-EX7S5FI5.js +91 -0
- package/dist/{chunk-HRM3FQPL.js → chunk-EYZU5HPG.js} +4 -1
- package/dist/{chunk-OJVXYCSH.js → chunk-G7TITUHT.js} +1 -1
- package/dist/chunk-GESEM4IA.js +122 -0
- package/dist/chunk-IPANLE7B.js +632 -0
- package/dist/chunk-KREAZLLH.js +1062 -0
- package/dist/{chunk-K3CZKI2F.js → chunk-P3MYMK34.js} +24 -13
- package/dist/chunk-Q4BPFDVB.js +171 -0
- package/dist/{chunk-W4C7XHTX.js → chunk-QUAG5LF5.js} +13 -6
- package/dist/chunk-TIOX7OHA.js +863 -0
- package/dist/{chunk-GTVEQYJW.js → chunk-TOXRHSD6.js} +1 -1
- package/dist/chunk-YV734GYZ.js +165 -0
- package/dist/domain/article/index.cjs +107 -15
- package/dist/domain/article/index.d.cts +79 -796
- package/dist/domain/article/index.d.ts +79 -796
- package/dist/domain/article/index.js +5 -5
- package/dist/domain/auth/index.cjs +88 -9
- package/dist/domain/auth/index.d.cts +6 -46
- package/dist/domain/auth/index.d.ts +6 -46
- package/dist/domain/auth/index.js +3 -3
- package/dist/domain/common/index.cjs +2100 -395
- package/dist/domain/common/index.d.cts +212 -3037
- package/dist/domain/common/index.d.ts +212 -3037
- package/dist/domain/common/index.js +65 -31
- package/dist/domain/food/index.cjs +248 -0
- package/dist/domain/food/index.d.cts +321 -0
- package/dist/domain/food/index.d.ts +321 -0
- package/dist/domain/food/index.js +44 -0
- package/dist/domain/friend/index.cjs +108 -12
- package/dist/domain/friend/index.d.cts +39 -98
- package/dist/domain/friend/index.d.ts +39 -98
- package/dist/domain/friend/index.js +6 -4
- package/dist/domain/index.cjs +2736 -522
- package/dist/domain/index.d.cts +383 -123
- package/dist/domain/index.d.ts +383 -123
- package/dist/domain/index.js +429 -140
- package/dist/domain/live-activity/index.cjs +1061 -0
- package/dist/domain/live-activity/index.d.cts +177 -0
- package/dist/domain/live-activity/index.d.ts +177 -0
- package/dist/domain/live-activity/index.js +27 -0
- package/dist/domain/meal/index.cjs +101 -12
- package/dist/domain/meal/index.d.cts +21 -40
- package/dist/domain/meal/index.d.ts +21 -40
- package/dist/domain/meal/index.js +4 -4
- package/dist/domain/meal-plan/index.cjs +1504 -0
- package/dist/domain/meal-plan/index.d.cts +4424 -0
- package/dist/domain/meal-plan/index.d.ts +4424 -0
- package/dist/domain/meal-plan/index.js +256 -0
- package/dist/domain/member/index.cjs +114 -9
- package/dist/domain/member/index.d.cts +263 -273
- package/dist/domain/member/index.d.ts +263 -273
- package/dist/domain/member/index.js +26 -2
- package/dist/domain/promotion/index.cjs +26 -8
- package/dist/domain/promotion/index.d.cts +35 -112
- package/dist/domain/promotion/index.d.ts +35 -112
- package/dist/domain/promotion/index.js +3 -3
- package/dist/domain/push/index.cjs +1004 -0
- package/dist/domain/push/index.d.cts +169 -0
- package/dist/domain/push/index.d.ts +169 -0
- package/dist/domain/push/index.js +35 -0
- package/dist/domain/restaurant/index.cjs +10 -4
- package/dist/domain/restaurant/index.d.cts +27 -1
- package/dist/domain/restaurant/index.d.ts +27 -1
- package/dist/domain/restaurant/index.js +2 -2
- package/dist/index.cjs +2535 -464
- package/dist/index.d.cts +5 -7
- package/dist/index.d.ts +5 -7
- package/dist/index.js +16 -15
- package/package.json +52 -55
- package/dist/chunk-PFSZSKD5.js +0 -0
- package/dist/chunk-PQMEXOPZ.js +0 -232
- package/dist/chunk-W4TUW2GY.js +0 -40
- package/dist/chunk-WNYCCQM4.js +0 -342
- package/dist/chunk-YGFAVC5N.js +0 -34
- package/dist/chunk-YM7YU7IR.js +0 -319
- package/dist/chunk-ZH7D7B2Y.js +0 -78
- package/dist/domain/invitation/index.cjs +0 -82
- package/dist/domain/invitation/index.d.cts +0 -64
- package/dist/domain/invitation/index.d.ts +0 -64
- package/dist/domain/invitation/index.js +0 -13
- package/dist/domain/plan/index.cjs +0 -327
- package/dist/domain/plan/index.d.cts +0 -178
- package/dist/domain/plan/index.d.ts +0 -178
- package/dist/domain/plan/index.js +0 -18
- package/dist/domain/recruit/index.cjs +0 -189
- package/dist/domain/recruit/index.d.cts +0 -214
- package/dist/domain/recruit/index.d.ts +0 -214
- package/dist/domain/recruit/index.js +0 -30
- package/dist/domain/room/index.cjs +0 -401
- package/dist/domain/room/index.d.cts +0 -2643
- package/dist/domain/room/index.d.ts +0 -2643
- package/dist/domain/room/index.js +0 -82
- package/dist/id-dAYxfjZn.d.cts +0 -64
- package/dist/id-dAYxfjZn.d.ts +0 -64
- package/dist/restaurant.schema-CuEcX3S3.d.cts +0 -78
- package/dist/restaurant.schema-CuEcX3S3.d.ts +0 -78
|
@@ -39,7 +39,10 @@ var import_zod3 = require("zod");
|
|
|
39
39
|
var import_zod = require("zod");
|
|
40
40
|
var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
|
|
41
41
|
var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
|
|
42
|
-
var ISODateTimeStringSchema = import_zod.z.string().datetime({
|
|
42
|
+
var ISODateTimeStringSchema = import_zod.z.string().datetime({
|
|
43
|
+
offset: true,
|
|
44
|
+
message: "Expected ISO datetime string"
|
|
45
|
+
});
|
|
43
46
|
var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
|
|
44
47
|
|
|
45
48
|
// src/domain/common/schema/id.schema.ts
|
|
@@ -49,10 +52,16 @@ var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
|
|
|
49
52
|
var MemberIdSchema = PositiveIntIdSchema.brand();
|
|
50
53
|
var ArticleIdSchema = PositiveIntIdSchema.brand();
|
|
51
54
|
var CommentIdSchema = PositiveIntIdSchema.brand();
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
55
|
+
var MealPlanIdSchema = import_zod2.z.string().uuid().brand();
|
|
56
|
+
var MealPlanInviteIdSchema = import_zod2.z.string().uuid().brand();
|
|
57
|
+
var MealPlanJoinRequestIdSchema = import_zod2.z.string().uuid().brand();
|
|
58
|
+
var MealPlanNearbyFriendExposureBatchIdSchema = import_zod2.z.string().uuid().brand();
|
|
59
|
+
var MealPlanChangeRequestIdSchema = import_zod2.z.string().uuid().brand();
|
|
60
|
+
var MealPlanShareLinkIdSchema = import_zod2.z.string().uuid().brand();
|
|
61
|
+
var MealPlanShareLinkTokenSchema = import_zod2.z.string().min(8).max(128).brand();
|
|
62
|
+
var MealPlanChatRoomIdSchema = import_zod2.z.string().uuid().brand();
|
|
63
|
+
var MealPlanChatMessageIdSchema = import_zod2.z.string().uuid().brand();
|
|
64
|
+
var MealGroupIdSchema = import_zod2.z.string().uuid().brand();
|
|
56
65
|
var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
|
|
57
66
|
var CouponIdSchema = PositiveIntIdSchema.brand();
|
|
58
67
|
var SubscriptionIdSchema = PositiveIntIdSchema.brand();
|
|
@@ -85,8 +94,14 @@ var RedeemReferralRequestSchema = import_zod3.z.object({
|
|
|
85
94
|
|
|
86
95
|
// src/domain/promotion/coupon.schema.ts
|
|
87
96
|
var import_zod4 = require("zod");
|
|
88
|
-
var CouponTypeSchema = import_zod4.z.enum([
|
|
89
|
-
|
|
97
|
+
var CouponTypeSchema = import_zod4.z.enum([
|
|
98
|
+
"DISCOUNT",
|
|
99
|
+
"SERVICE"
|
|
100
|
+
]);
|
|
101
|
+
var CouponStatusSchema = import_zod4.z.enum([
|
|
102
|
+
"UNUSED",
|
|
103
|
+
"USED"
|
|
104
|
+
]);
|
|
90
105
|
var CouponResponseSchema = import_zod4.z.object({
|
|
91
106
|
couponId: CouponIdSchema,
|
|
92
107
|
title: import_zod4.z.string(),
|
|
@@ -100,7 +115,10 @@ var CouponResponseSchema = import_zod4.z.object({
|
|
|
100
115
|
|
|
101
116
|
// src/domain/promotion/challenge.schema.ts
|
|
102
117
|
var import_zod5 = require("zod");
|
|
103
|
-
var RewardTypeSchema = import_zod5.z.enum([
|
|
118
|
+
var RewardTypeSchema = import_zod5.z.enum([
|
|
119
|
+
"WEEK",
|
|
120
|
+
"MONTH"
|
|
121
|
+
]);
|
|
104
122
|
var WeekProgressSchema = import_zod5.z.object({
|
|
105
123
|
days: import_zod5.z.array(import_zod5.z.boolean()),
|
|
106
124
|
completed: import_zod5.z.number().int().min(0),
|
|
@@ -1,82 +1,47 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const ReferralCreateResponseSchema: z.ZodObject<{
|
|
4
|
-
code: z.ZodBranded<z.ZodString, "ReferralCode">;
|
|
4
|
+
code: z.core.$ZodBranded<z.ZodString, "ReferralCode", "out">;
|
|
5
5
|
link: z.ZodString;
|
|
6
6
|
expiresAt: z.ZodString;
|
|
7
|
-
},
|
|
8
|
-
code: string & z.BRAND<"ReferralCode">;
|
|
9
|
-
expiresAt: string;
|
|
10
|
-
link: string;
|
|
11
|
-
}, {
|
|
12
|
-
code: string;
|
|
13
|
-
expiresAt: string;
|
|
14
|
-
link: string;
|
|
15
|
-
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
16
8
|
declare const ReferralItemResponseSchema: z.ZodObject<{
|
|
17
|
-
code: z.ZodBranded<z.ZodString, "ReferralCode">;
|
|
9
|
+
code: z.core.$ZodBranded<z.ZodString, "ReferralCode", "out">;
|
|
18
10
|
createdAt: z.ZodString;
|
|
19
11
|
expiresAt: z.ZodString;
|
|
20
12
|
used: z.ZodBoolean;
|
|
21
|
-
usedByMemberId: z.ZodNullable<z.ZodBranded<z.ZodNumber, "MemberId">>;
|
|
13
|
+
usedByMemberId: z.ZodNullable<z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">>;
|
|
22
14
|
usedByUsername: z.ZodNullable<z.ZodString>;
|
|
23
|
-
},
|
|
24
|
-
code: string & z.BRAND<"ReferralCode">;
|
|
25
|
-
createdAt: string;
|
|
26
|
-
expiresAt: string;
|
|
27
|
-
used: boolean;
|
|
28
|
-
usedByMemberId: (number & z.BRAND<"MemberId">) | null;
|
|
29
|
-
usedByUsername: string | null;
|
|
30
|
-
}, {
|
|
31
|
-
code: string;
|
|
32
|
-
createdAt: string;
|
|
33
|
-
expiresAt: string;
|
|
34
|
-
used: boolean;
|
|
35
|
-
usedByMemberId: number | null;
|
|
36
|
-
usedByUsername: string | null;
|
|
37
|
-
}>;
|
|
15
|
+
}, z.core.$strip>;
|
|
38
16
|
declare const RedeemReferralRequestSchema: z.ZodObject<{
|
|
39
|
-
code: z.ZodBranded<z.ZodString, "ReferralCode">;
|
|
40
|
-
},
|
|
41
|
-
code: string & z.BRAND<"ReferralCode">;
|
|
42
|
-
}, {
|
|
43
|
-
code: string;
|
|
44
|
-
}>;
|
|
17
|
+
code: z.core.$ZodBranded<z.ZodString, "ReferralCode", "out">;
|
|
18
|
+
}, z.core.$strip>;
|
|
45
19
|
|
|
46
20
|
type RedeemReferralRequest = z.infer<typeof RedeemReferralRequestSchema>;
|
|
47
21
|
type ReferralCreateResponse = z.infer<typeof ReferralCreateResponseSchema>;
|
|
48
22
|
type ReferralItemResponse = z.infer<typeof ReferralItemResponseSchema>;
|
|
49
23
|
|
|
50
|
-
declare const CouponTypeSchema: z.ZodEnum<
|
|
51
|
-
|
|
24
|
+
declare const CouponTypeSchema: z.ZodEnum<{
|
|
25
|
+
DISCOUNT: "DISCOUNT";
|
|
26
|
+
SERVICE: "SERVICE";
|
|
27
|
+
}>;
|
|
28
|
+
declare const CouponStatusSchema: z.ZodEnum<{
|
|
29
|
+
UNUSED: "UNUSED";
|
|
30
|
+
USED: "USED";
|
|
31
|
+
}>;
|
|
52
32
|
declare const CouponResponseSchema: z.ZodObject<{
|
|
53
|
-
couponId: z.ZodBranded<z.ZodNumber, "CouponId">;
|
|
33
|
+
couponId: z.core.$ZodBranded<z.ZodNumber, "CouponId", "out">;
|
|
54
34
|
title: z.ZodString;
|
|
55
35
|
shopName: z.ZodString;
|
|
56
|
-
type: z.ZodEnum<
|
|
36
|
+
type: z.ZodEnum<{
|
|
37
|
+
DISCOUNT: "DISCOUNT";
|
|
38
|
+
SERVICE: "SERVICE";
|
|
39
|
+
}>;
|
|
57
40
|
condition: z.ZodString;
|
|
58
41
|
expiresAt: z.ZodString;
|
|
59
42
|
used: z.ZodBoolean;
|
|
60
43
|
thumbnailUrl: z.ZodString;
|
|
61
|
-
},
|
|
62
|
-
type: "DISCOUNT" | "SERVICE";
|
|
63
|
-
expiresAt: string;
|
|
64
|
-
title: string;
|
|
65
|
-
used: boolean;
|
|
66
|
-
couponId: number & z.BRAND<"CouponId">;
|
|
67
|
-
shopName: string;
|
|
68
|
-
condition: string;
|
|
69
|
-
thumbnailUrl: string;
|
|
70
|
-
}, {
|
|
71
|
-
type: "DISCOUNT" | "SERVICE";
|
|
72
|
-
expiresAt: string;
|
|
73
|
-
title: string;
|
|
74
|
-
used: boolean;
|
|
75
|
-
couponId: number;
|
|
76
|
-
shopName: string;
|
|
77
|
-
condition: string;
|
|
78
|
-
thumbnailUrl: string;
|
|
79
|
-
}>;
|
|
44
|
+
}, z.core.$strip>;
|
|
80
45
|
|
|
81
46
|
type CouponType = z.infer<typeof CouponTypeSchema>;
|
|
82
47
|
type CouponStatus = z.infer<typeof CouponStatusSchema>;
|
|
@@ -84,72 +49,30 @@ type CouponResponse = z.infer<typeof CouponResponseSchema>;
|
|
|
84
49
|
|
|
85
50
|
declare const ChallengeStatusResponseSchema: z.ZodObject<{
|
|
86
51
|
week: z.ZodObject<{
|
|
87
|
-
days: z.ZodArray<z.ZodBoolean
|
|
52
|
+
days: z.ZodArray<z.ZodBoolean>;
|
|
88
53
|
completed: z.ZodNumber;
|
|
89
54
|
goal: z.ZodNumber;
|
|
90
|
-
},
|
|
91
|
-
days: boolean[];
|
|
92
|
-
completed: number;
|
|
93
|
-
goal: number;
|
|
94
|
-
}, {
|
|
95
|
-
days: boolean[];
|
|
96
|
-
completed: number;
|
|
97
|
-
goal: number;
|
|
98
|
-
}>;
|
|
55
|
+
}, z.core.$strip>;
|
|
99
56
|
month: z.ZodObject<{
|
|
100
57
|
count: z.ZodNumber;
|
|
101
58
|
goal: z.ZodNumber;
|
|
102
|
-
},
|
|
103
|
-
goal: number;
|
|
104
|
-
count: number;
|
|
105
|
-
}, {
|
|
106
|
-
goal: number;
|
|
107
|
-
count: number;
|
|
108
|
-
}>;
|
|
59
|
+
}, z.core.$strip>;
|
|
109
60
|
weekRewardAvailable: z.ZodBoolean;
|
|
110
61
|
monthRewardAvailable: z.ZodBoolean;
|
|
111
|
-
},
|
|
112
|
-
week: {
|
|
113
|
-
days: boolean[];
|
|
114
|
-
completed: number;
|
|
115
|
-
goal: number;
|
|
116
|
-
};
|
|
117
|
-
month: {
|
|
118
|
-
goal: number;
|
|
119
|
-
count: number;
|
|
120
|
-
};
|
|
121
|
-
weekRewardAvailable: boolean;
|
|
122
|
-
monthRewardAvailable: boolean;
|
|
123
|
-
}, {
|
|
124
|
-
week: {
|
|
125
|
-
days: boolean[];
|
|
126
|
-
completed: number;
|
|
127
|
-
goal: number;
|
|
128
|
-
};
|
|
129
|
-
month: {
|
|
130
|
-
goal: number;
|
|
131
|
-
count: number;
|
|
132
|
-
};
|
|
133
|
-
weekRewardAvailable: boolean;
|
|
134
|
-
monthRewardAvailable: boolean;
|
|
135
|
-
}>;
|
|
62
|
+
}, z.core.$strip>;
|
|
136
63
|
declare const ClaimChallengeRewardRequestSchema: z.ZodObject<{
|
|
137
|
-
type: z.ZodEnum<
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
}>;
|
|
64
|
+
type: z.ZodEnum<{
|
|
65
|
+
WEEK: "WEEK";
|
|
66
|
+
MONTH: "MONTH";
|
|
67
|
+
}>;
|
|
68
|
+
}, z.core.$strip>;
|
|
143
69
|
declare const ClaimChallengeRewardResponseSchema: z.ZodObject<{
|
|
144
|
-
rewardType: z.ZodEnum<
|
|
70
|
+
rewardType: z.ZodEnum<{
|
|
71
|
+
WEEK: "WEEK";
|
|
72
|
+
MONTH: "MONTH";
|
|
73
|
+
}>;
|
|
145
74
|
claimed: z.ZodBoolean;
|
|
146
|
-
},
|
|
147
|
-
rewardType: "WEEK" | "MONTH";
|
|
148
|
-
claimed: boolean;
|
|
149
|
-
}, {
|
|
150
|
-
rewardType: "WEEK" | "MONTH";
|
|
151
|
-
claimed: boolean;
|
|
152
|
-
}>;
|
|
75
|
+
}, z.core.$strip>;
|
|
153
76
|
|
|
154
77
|
type ClaimChallengeRewardRequest = z.infer<typeof ClaimChallengeRewardRequestSchema>;
|
|
155
78
|
type ChallengeStatusResponse = z.infer<typeof ChallengeStatusResponseSchema>;
|
|
@@ -1,82 +1,47 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const ReferralCreateResponseSchema: z.ZodObject<{
|
|
4
|
-
code: z.ZodBranded<z.ZodString, "ReferralCode">;
|
|
4
|
+
code: z.core.$ZodBranded<z.ZodString, "ReferralCode", "out">;
|
|
5
5
|
link: z.ZodString;
|
|
6
6
|
expiresAt: z.ZodString;
|
|
7
|
-
},
|
|
8
|
-
code: string & z.BRAND<"ReferralCode">;
|
|
9
|
-
expiresAt: string;
|
|
10
|
-
link: string;
|
|
11
|
-
}, {
|
|
12
|
-
code: string;
|
|
13
|
-
expiresAt: string;
|
|
14
|
-
link: string;
|
|
15
|
-
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
16
8
|
declare const ReferralItemResponseSchema: z.ZodObject<{
|
|
17
|
-
code: z.ZodBranded<z.ZodString, "ReferralCode">;
|
|
9
|
+
code: z.core.$ZodBranded<z.ZodString, "ReferralCode", "out">;
|
|
18
10
|
createdAt: z.ZodString;
|
|
19
11
|
expiresAt: z.ZodString;
|
|
20
12
|
used: z.ZodBoolean;
|
|
21
|
-
usedByMemberId: z.ZodNullable<z.ZodBranded<z.ZodNumber, "MemberId">>;
|
|
13
|
+
usedByMemberId: z.ZodNullable<z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">>;
|
|
22
14
|
usedByUsername: z.ZodNullable<z.ZodString>;
|
|
23
|
-
},
|
|
24
|
-
code: string & z.BRAND<"ReferralCode">;
|
|
25
|
-
createdAt: string;
|
|
26
|
-
expiresAt: string;
|
|
27
|
-
used: boolean;
|
|
28
|
-
usedByMemberId: (number & z.BRAND<"MemberId">) | null;
|
|
29
|
-
usedByUsername: string | null;
|
|
30
|
-
}, {
|
|
31
|
-
code: string;
|
|
32
|
-
createdAt: string;
|
|
33
|
-
expiresAt: string;
|
|
34
|
-
used: boolean;
|
|
35
|
-
usedByMemberId: number | null;
|
|
36
|
-
usedByUsername: string | null;
|
|
37
|
-
}>;
|
|
15
|
+
}, z.core.$strip>;
|
|
38
16
|
declare const RedeemReferralRequestSchema: z.ZodObject<{
|
|
39
|
-
code: z.ZodBranded<z.ZodString, "ReferralCode">;
|
|
40
|
-
},
|
|
41
|
-
code: string & z.BRAND<"ReferralCode">;
|
|
42
|
-
}, {
|
|
43
|
-
code: string;
|
|
44
|
-
}>;
|
|
17
|
+
code: z.core.$ZodBranded<z.ZodString, "ReferralCode", "out">;
|
|
18
|
+
}, z.core.$strip>;
|
|
45
19
|
|
|
46
20
|
type RedeemReferralRequest = z.infer<typeof RedeemReferralRequestSchema>;
|
|
47
21
|
type ReferralCreateResponse = z.infer<typeof ReferralCreateResponseSchema>;
|
|
48
22
|
type ReferralItemResponse = z.infer<typeof ReferralItemResponseSchema>;
|
|
49
23
|
|
|
50
|
-
declare const CouponTypeSchema: z.ZodEnum<
|
|
51
|
-
|
|
24
|
+
declare const CouponTypeSchema: z.ZodEnum<{
|
|
25
|
+
DISCOUNT: "DISCOUNT";
|
|
26
|
+
SERVICE: "SERVICE";
|
|
27
|
+
}>;
|
|
28
|
+
declare const CouponStatusSchema: z.ZodEnum<{
|
|
29
|
+
UNUSED: "UNUSED";
|
|
30
|
+
USED: "USED";
|
|
31
|
+
}>;
|
|
52
32
|
declare const CouponResponseSchema: z.ZodObject<{
|
|
53
|
-
couponId: z.ZodBranded<z.ZodNumber, "CouponId">;
|
|
33
|
+
couponId: z.core.$ZodBranded<z.ZodNumber, "CouponId", "out">;
|
|
54
34
|
title: z.ZodString;
|
|
55
35
|
shopName: z.ZodString;
|
|
56
|
-
type: z.ZodEnum<
|
|
36
|
+
type: z.ZodEnum<{
|
|
37
|
+
DISCOUNT: "DISCOUNT";
|
|
38
|
+
SERVICE: "SERVICE";
|
|
39
|
+
}>;
|
|
57
40
|
condition: z.ZodString;
|
|
58
41
|
expiresAt: z.ZodString;
|
|
59
42
|
used: z.ZodBoolean;
|
|
60
43
|
thumbnailUrl: z.ZodString;
|
|
61
|
-
},
|
|
62
|
-
type: "DISCOUNT" | "SERVICE";
|
|
63
|
-
expiresAt: string;
|
|
64
|
-
title: string;
|
|
65
|
-
used: boolean;
|
|
66
|
-
couponId: number & z.BRAND<"CouponId">;
|
|
67
|
-
shopName: string;
|
|
68
|
-
condition: string;
|
|
69
|
-
thumbnailUrl: string;
|
|
70
|
-
}, {
|
|
71
|
-
type: "DISCOUNT" | "SERVICE";
|
|
72
|
-
expiresAt: string;
|
|
73
|
-
title: string;
|
|
74
|
-
used: boolean;
|
|
75
|
-
couponId: number;
|
|
76
|
-
shopName: string;
|
|
77
|
-
condition: string;
|
|
78
|
-
thumbnailUrl: string;
|
|
79
|
-
}>;
|
|
44
|
+
}, z.core.$strip>;
|
|
80
45
|
|
|
81
46
|
type CouponType = z.infer<typeof CouponTypeSchema>;
|
|
82
47
|
type CouponStatus = z.infer<typeof CouponStatusSchema>;
|
|
@@ -84,72 +49,30 @@ type CouponResponse = z.infer<typeof CouponResponseSchema>;
|
|
|
84
49
|
|
|
85
50
|
declare const ChallengeStatusResponseSchema: z.ZodObject<{
|
|
86
51
|
week: z.ZodObject<{
|
|
87
|
-
days: z.ZodArray<z.ZodBoolean
|
|
52
|
+
days: z.ZodArray<z.ZodBoolean>;
|
|
88
53
|
completed: z.ZodNumber;
|
|
89
54
|
goal: z.ZodNumber;
|
|
90
|
-
},
|
|
91
|
-
days: boolean[];
|
|
92
|
-
completed: number;
|
|
93
|
-
goal: number;
|
|
94
|
-
}, {
|
|
95
|
-
days: boolean[];
|
|
96
|
-
completed: number;
|
|
97
|
-
goal: number;
|
|
98
|
-
}>;
|
|
55
|
+
}, z.core.$strip>;
|
|
99
56
|
month: z.ZodObject<{
|
|
100
57
|
count: z.ZodNumber;
|
|
101
58
|
goal: z.ZodNumber;
|
|
102
|
-
},
|
|
103
|
-
goal: number;
|
|
104
|
-
count: number;
|
|
105
|
-
}, {
|
|
106
|
-
goal: number;
|
|
107
|
-
count: number;
|
|
108
|
-
}>;
|
|
59
|
+
}, z.core.$strip>;
|
|
109
60
|
weekRewardAvailable: z.ZodBoolean;
|
|
110
61
|
monthRewardAvailable: z.ZodBoolean;
|
|
111
|
-
},
|
|
112
|
-
week: {
|
|
113
|
-
days: boolean[];
|
|
114
|
-
completed: number;
|
|
115
|
-
goal: number;
|
|
116
|
-
};
|
|
117
|
-
month: {
|
|
118
|
-
goal: number;
|
|
119
|
-
count: number;
|
|
120
|
-
};
|
|
121
|
-
weekRewardAvailable: boolean;
|
|
122
|
-
monthRewardAvailable: boolean;
|
|
123
|
-
}, {
|
|
124
|
-
week: {
|
|
125
|
-
days: boolean[];
|
|
126
|
-
completed: number;
|
|
127
|
-
goal: number;
|
|
128
|
-
};
|
|
129
|
-
month: {
|
|
130
|
-
goal: number;
|
|
131
|
-
count: number;
|
|
132
|
-
};
|
|
133
|
-
weekRewardAvailable: boolean;
|
|
134
|
-
monthRewardAvailable: boolean;
|
|
135
|
-
}>;
|
|
62
|
+
}, z.core.$strip>;
|
|
136
63
|
declare const ClaimChallengeRewardRequestSchema: z.ZodObject<{
|
|
137
|
-
type: z.ZodEnum<
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
}>;
|
|
64
|
+
type: z.ZodEnum<{
|
|
65
|
+
WEEK: "WEEK";
|
|
66
|
+
MONTH: "MONTH";
|
|
67
|
+
}>;
|
|
68
|
+
}, z.core.$strip>;
|
|
143
69
|
declare const ClaimChallengeRewardResponseSchema: z.ZodObject<{
|
|
144
|
-
rewardType: z.ZodEnum<
|
|
70
|
+
rewardType: z.ZodEnum<{
|
|
71
|
+
WEEK: "WEEK";
|
|
72
|
+
MONTH: "MONTH";
|
|
73
|
+
}>;
|
|
145
74
|
claimed: z.ZodBoolean;
|
|
146
|
-
},
|
|
147
|
-
rewardType: "WEEK" | "MONTH";
|
|
148
|
-
claimed: boolean;
|
|
149
|
-
}, {
|
|
150
|
-
rewardType: "WEEK" | "MONTH";
|
|
151
|
-
claimed: boolean;
|
|
152
|
-
}>;
|
|
75
|
+
}, z.core.$strip>;
|
|
153
76
|
|
|
154
77
|
type ClaimChallengeRewardRequest = z.infer<typeof ClaimChallengeRewardRequestSchema>;
|
|
155
78
|
type ChallengeStatusResponse = z.infer<typeof ChallengeStatusResponseSchema>;
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
RedeemReferralRequestSchema,
|
|
9
9
|
ReferralCreateResponseSchema,
|
|
10
10
|
ReferralItemResponseSchema
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-65DWKLP6.js";
|
|
12
|
+
import "../../chunk-EYZU5HPG.js";
|
|
13
|
+
import "../../chunk-6R5CCY5Q.js";
|
|
14
14
|
export {
|
|
15
15
|
ChallengeStatusResponseSchema,
|
|
16
16
|
ClaimChallengeRewardRequestSchema,
|