@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
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
PageArticleSummaryResponseSchema,
|
|
13
13
|
UploadArticleImageRequestSchema,
|
|
14
14
|
UploadArticleImageResponseSchema
|
|
15
|
-
} from "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
15
|
+
} from "../../chunk-P3MYMK34.js";
|
|
16
|
+
import "../../chunk-TOXRHSD6.js";
|
|
17
|
+
import "../../chunk-YV734GYZ.js";
|
|
18
|
+
import "../../chunk-EYZU5HPG.js";
|
|
19
|
+
import "../../chunk-6R5CCY5Q.js";
|
|
20
20
|
export {
|
|
21
21
|
ArticleCommentSchema,
|
|
22
22
|
ArticleCoreSchema,
|
|
@@ -50,10 +50,16 @@ var NonEmptyStringIdSchema = import_zod.z.string().min(1);
|
|
|
50
50
|
var MemberIdSchema = PositiveIntIdSchema.brand();
|
|
51
51
|
var ArticleIdSchema = PositiveIntIdSchema.brand();
|
|
52
52
|
var CommentIdSchema = PositiveIntIdSchema.brand();
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
53
|
+
var MealPlanIdSchema = import_zod.z.string().uuid().brand();
|
|
54
|
+
var MealPlanInviteIdSchema = import_zod.z.string().uuid().brand();
|
|
55
|
+
var MealPlanJoinRequestIdSchema = import_zod.z.string().uuid().brand();
|
|
56
|
+
var MealPlanNearbyFriendExposureBatchIdSchema = import_zod.z.string().uuid().brand();
|
|
57
|
+
var MealPlanChangeRequestIdSchema = import_zod.z.string().uuid().brand();
|
|
58
|
+
var MealPlanShareLinkIdSchema = import_zod.z.string().uuid().brand();
|
|
59
|
+
var MealPlanShareLinkTokenSchema = import_zod.z.string().min(8).max(128).brand();
|
|
60
|
+
var MealPlanChatRoomIdSchema = import_zod.z.string().uuid().brand();
|
|
61
|
+
var MealPlanChatMessageIdSchema = import_zod.z.string().uuid().brand();
|
|
62
|
+
var MealGroupIdSchema = import_zod.z.string().uuid().brand();
|
|
57
63
|
var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
|
|
58
64
|
var CouponIdSchema = PositiveIntIdSchema.brand();
|
|
59
65
|
var SubscriptionIdSchema = PositiveIntIdSchema.brand();
|
|
@@ -78,7 +84,65 @@ var UploadPresignImageRequestSchema = import_zod2.default.object({
|
|
|
78
84
|
});
|
|
79
85
|
|
|
80
86
|
// src/domain/member/member.schema.ts
|
|
81
|
-
var MemberRoleSchema = import_zod3.z.enum([
|
|
87
|
+
var MemberRoleSchema = import_zod3.z.enum([
|
|
88
|
+
"USER",
|
|
89
|
+
"ADMIN"
|
|
90
|
+
]);
|
|
91
|
+
var LocationConsentStatusSchema = import_zod3.z.enum([
|
|
92
|
+
"UNKNOWN",
|
|
93
|
+
"GRANTED",
|
|
94
|
+
"DENIED"
|
|
95
|
+
]);
|
|
96
|
+
var OnboardingStatusSchema = import_zod3.z.enum([
|
|
97
|
+
"REQUIRED",
|
|
98
|
+
"COMPLETED"
|
|
99
|
+
]);
|
|
100
|
+
var PermissionKindSchema = import_zod3.z.enum([
|
|
101
|
+
"LOCATION",
|
|
102
|
+
"NOTIFICATION",
|
|
103
|
+
"CAMERA"
|
|
104
|
+
]);
|
|
105
|
+
var PermissionStatusSchema = import_zod3.z.enum([
|
|
106
|
+
"UNKNOWN",
|
|
107
|
+
"PROMPT",
|
|
108
|
+
"GRANTED",
|
|
109
|
+
"DENIED",
|
|
110
|
+
"LIMITED",
|
|
111
|
+
"UNSUPPORTED"
|
|
112
|
+
]);
|
|
113
|
+
var PermissionPlatformSchema = import_zod3.z.enum([
|
|
114
|
+
"WEB",
|
|
115
|
+
"IOS",
|
|
116
|
+
"ANDROID",
|
|
117
|
+
"UNKNOWN"
|
|
118
|
+
]);
|
|
119
|
+
var DevicePermissionSnapshotSchema = import_zod3.z.object({
|
|
120
|
+
kind: PermissionKindSchema,
|
|
121
|
+
status: PermissionStatusSchema,
|
|
122
|
+
platform: PermissionPlatformSchema.default("UNKNOWN"),
|
|
123
|
+
canAskAgain: import_zod3.z.boolean().optional(),
|
|
124
|
+
checkedAt: import_zod3.z.string().datetime()
|
|
125
|
+
});
|
|
126
|
+
var MemberLocationSchema = import_zod3.z.object({
|
|
127
|
+
latitude: import_zod3.z.number().min(-90).max(90),
|
|
128
|
+
longitude: import_zod3.z.number().min(-180).max(180),
|
|
129
|
+
accuracyMeters: import_zod3.z.number().min(0).nullable().optional(),
|
|
130
|
+
capturedAt: import_zod3.z.string().datetime()
|
|
131
|
+
});
|
|
132
|
+
var UpdateMemberLocationConsentRequestSchema = import_zod3.z.object({
|
|
133
|
+
locationConsentStatus: LocationConsentStatusSchema,
|
|
134
|
+
nearbyMealPlanExposureAllowed: import_zod3.z.boolean().default(false),
|
|
135
|
+
mealSuggestionAllowed: import_zod3.z.boolean().optional(),
|
|
136
|
+
permissionSnapshot: DevicePermissionSnapshotSchema.optional()
|
|
137
|
+
});
|
|
138
|
+
var MemberLocationSettingsResponseSchema = import_zod3.z.object({
|
|
139
|
+
locationConsentStatus: LocationConsentStatusSchema,
|
|
140
|
+
nearbyMealPlanExposureAllowed: import_zod3.z.boolean(),
|
|
141
|
+
mealSuggestionAllowed: import_zod3.z.boolean(),
|
|
142
|
+
lastKnownLocation: MemberLocationSchema.nullable(),
|
|
143
|
+
permissionSnapshot: DevicePermissionSnapshotSchema.nullable().optional(),
|
|
144
|
+
updatedAt: import_zod3.z.string().datetime().nullable()
|
|
145
|
+
});
|
|
82
146
|
var MemberCoreSchema = import_zod3.z.object({
|
|
83
147
|
memberId: MemberIdSchema,
|
|
84
148
|
username: import_zod3.z.string().min(1).max(50),
|
|
@@ -90,6 +154,11 @@ var MemberResponseSchema = MemberCoreSchema.pick({
|
|
|
90
154
|
memberId: true,
|
|
91
155
|
username: true,
|
|
92
156
|
profileImageUrl: true
|
|
157
|
+
}).extend({
|
|
158
|
+
onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
|
|
159
|
+
onboardingCompletedAt: import_zod3.z.string().datetime().nullable().default(null),
|
|
160
|
+
locationConsentStatus: LocationConsentStatusSchema.optional(),
|
|
161
|
+
nearbyMealPlanExposureAllowed: import_zod3.z.boolean().optional()
|
|
93
162
|
});
|
|
94
163
|
var MemberSearchQuerySchema = import_zod3.z.object({
|
|
95
164
|
email: import_zod3.z.string().email().optional(),
|
|
@@ -100,7 +169,11 @@ var MemberDetailSchema = MemberCoreSchema.extend({
|
|
|
100
169
|
bio: import_zod3.z.string().nullable(),
|
|
101
170
|
friendConunt: import_zod3.z.number().int().min(0).default(0),
|
|
102
171
|
completedPlans: import_zod3.z.number().int().min(0).default(0),
|
|
103
|
-
uncompletedPlans: import_zod3.z.number().int().min(0).default(0)
|
|
172
|
+
uncompletedPlans: import_zod3.z.number().int().min(0).default(0),
|
|
173
|
+
onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
|
|
174
|
+
onboardingCompletedAt: import_zod3.z.string().datetime().nullable().default(null),
|
|
175
|
+
locationConsentStatus: LocationConsentStatusSchema.default("UNKNOWN"),
|
|
176
|
+
nearbyMealPlanExposureAllowed: import_zod3.z.boolean().default(false)
|
|
104
177
|
});
|
|
105
178
|
var FoodPreferenceItemSchema = FoodSchema.extend({});
|
|
106
179
|
var MemberFoodPreferenceSchema = import_zod3.z.object({
|
|
@@ -114,9 +187,15 @@ var UpdateProfileRequestSchema = import_zod3.z.object({
|
|
|
114
187
|
bio: import_zod3.z.string().max(500).nullable()
|
|
115
188
|
});
|
|
116
189
|
var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
|
|
117
|
-
var
|
|
118
|
-
|
|
119
|
-
)
|
|
190
|
+
var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(UpdatePreferenceRequestSchema);
|
|
191
|
+
var OnboardingDraftSchema = import_zod3.z.object({
|
|
192
|
+
username: import_zod3.z.string().min(1).max(50).optional(),
|
|
193
|
+
profileImageUrl: import_zod3.z.string().url().nullable().optional(),
|
|
194
|
+
bio: import_zod3.z.string().max(500).nullable().optional(),
|
|
195
|
+
liked: import_zod3.z.array(FoodPreferenceItemSchema).optional(),
|
|
196
|
+
disliked: import_zod3.z.array(FoodPreferenceItemSchema).optional(),
|
|
197
|
+
allergy: import_zod3.z.array(FoodPreferenceItemSchema).optional()
|
|
198
|
+
});
|
|
120
199
|
|
|
121
200
|
// src/domain/auth/auth.schema.ts
|
|
122
201
|
var TokenResponseSchema = import_zod4.z.object({
|
|
@@ -2,64 +2,24 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
declare const TokenResponseSchema: z.ZodObject<{
|
|
4
4
|
accessToken: z.ZodString;
|
|
5
|
-
},
|
|
6
|
-
accessToken: string;
|
|
7
|
-
}, {
|
|
8
|
-
accessToken: string;
|
|
9
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
10
6
|
declare const LoginRequestSchema: z.ZodObject<{
|
|
11
7
|
email: z.ZodString;
|
|
12
8
|
password: z.ZodString;
|
|
13
|
-
},
|
|
14
|
-
email: string;
|
|
15
|
-
password: string;
|
|
16
|
-
}, {
|
|
17
|
-
email: string;
|
|
18
|
-
password: string;
|
|
19
|
-
}>;
|
|
9
|
+
}, z.core.$strip>;
|
|
20
10
|
declare const SignupRequestSchema: z.ZodObject<{
|
|
21
11
|
email: z.ZodString;
|
|
22
12
|
password: z.ZodString;
|
|
23
13
|
username: z.ZodString;
|
|
24
14
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
},
|
|
26
|
-
username: string;
|
|
27
|
-
email: string;
|
|
28
|
-
password: string;
|
|
29
|
-
profileImageUrl?: string | null | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
username: string;
|
|
32
|
-
email: string;
|
|
33
|
-
password: string;
|
|
34
|
-
profileImageUrl?: string | null | undefined;
|
|
35
|
-
}>;
|
|
15
|
+
}, z.core.$strip>;
|
|
36
16
|
declare const SignupResponseSchema: z.ZodObject<{
|
|
37
17
|
member: z.ZodObject<{
|
|
38
|
-
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
18
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
39
19
|
username: z.ZodString;
|
|
40
20
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
username: string;
|
|
44
|
-
profileImageUrl?: string | null | undefined;
|
|
45
|
-
}, {
|
|
46
|
-
memberId: number;
|
|
47
|
-
username: string;
|
|
48
|
-
profileImageUrl?: string | null | undefined;
|
|
49
|
-
}>;
|
|
50
|
-
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
member: {
|
|
52
|
-
memberId: number & z.BRAND<"MemberId">;
|
|
53
|
-
username: string;
|
|
54
|
-
profileImageUrl?: string | null | undefined;
|
|
55
|
-
};
|
|
56
|
-
}, {
|
|
57
|
-
member: {
|
|
58
|
-
memberId: number;
|
|
59
|
-
username: string;
|
|
60
|
-
profileImageUrl?: string | null | undefined;
|
|
61
|
-
};
|
|
62
|
-
}>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
}, z.core.$strip>;
|
|
63
23
|
|
|
64
24
|
type LoginRequest = z.infer<typeof LoginRequestSchema>;
|
|
65
25
|
type SignupRequest = z.infer<typeof SignupRequestSchema>;
|
|
@@ -2,64 +2,24 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
declare const TokenResponseSchema: z.ZodObject<{
|
|
4
4
|
accessToken: z.ZodString;
|
|
5
|
-
},
|
|
6
|
-
accessToken: string;
|
|
7
|
-
}, {
|
|
8
|
-
accessToken: string;
|
|
9
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
10
6
|
declare const LoginRequestSchema: z.ZodObject<{
|
|
11
7
|
email: z.ZodString;
|
|
12
8
|
password: z.ZodString;
|
|
13
|
-
},
|
|
14
|
-
email: string;
|
|
15
|
-
password: string;
|
|
16
|
-
}, {
|
|
17
|
-
email: string;
|
|
18
|
-
password: string;
|
|
19
|
-
}>;
|
|
9
|
+
}, z.core.$strip>;
|
|
20
10
|
declare const SignupRequestSchema: z.ZodObject<{
|
|
21
11
|
email: z.ZodString;
|
|
22
12
|
password: z.ZodString;
|
|
23
13
|
username: z.ZodString;
|
|
24
14
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
},
|
|
26
|
-
username: string;
|
|
27
|
-
email: string;
|
|
28
|
-
password: string;
|
|
29
|
-
profileImageUrl?: string | null | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
username: string;
|
|
32
|
-
email: string;
|
|
33
|
-
password: string;
|
|
34
|
-
profileImageUrl?: string | null | undefined;
|
|
35
|
-
}>;
|
|
15
|
+
}, z.core.$strip>;
|
|
36
16
|
declare const SignupResponseSchema: z.ZodObject<{
|
|
37
17
|
member: z.ZodObject<{
|
|
38
|
-
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
18
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
39
19
|
username: z.ZodString;
|
|
40
20
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
username: string;
|
|
44
|
-
profileImageUrl?: string | null | undefined;
|
|
45
|
-
}, {
|
|
46
|
-
memberId: number;
|
|
47
|
-
username: string;
|
|
48
|
-
profileImageUrl?: string | null | undefined;
|
|
49
|
-
}>;
|
|
50
|
-
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
member: {
|
|
52
|
-
memberId: number & z.BRAND<"MemberId">;
|
|
53
|
-
username: string;
|
|
54
|
-
profileImageUrl?: string | null | undefined;
|
|
55
|
-
};
|
|
56
|
-
}, {
|
|
57
|
-
member: {
|
|
58
|
-
memberId: number;
|
|
59
|
-
username: string;
|
|
60
|
-
profileImageUrl?: string | null | undefined;
|
|
61
|
-
};
|
|
62
|
-
}>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
}, z.core.$strip>;
|
|
63
23
|
|
|
64
24
|
type LoginRequest = z.infer<typeof LoginRequestSchema>;
|
|
65
25
|
type SignupRequest = z.infer<typeof SignupRequestSchema>;
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
SignupRequestSchema,
|
|
4
4
|
SignupResponseSchema,
|
|
5
5
|
TokenResponseSchema
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-G7TITUHT.js";
|
|
7
|
+
import "../../chunk-YV734GYZ.js";
|
|
8
|
+
import "../../chunk-6R5CCY5Q.js";
|
|
9
9
|
export {
|
|
10
10
|
LoginRequestSchema,
|
|
11
11
|
SignupRequestSchema,
|