@kimdaegyu/babmukdang-shared 1.1.11 → 2.0.3
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-3TY6OPD3.js +91 -0
- package/dist/{chunk-W4C7XHTX.js → chunk-6O2YTBVC.js} +3 -3
- package/dist/{chunk-GTVEQYJW.js → chunk-7JYVBXKQ.js} +1 -1
- package/dist/chunk-7UZD4LBQ.js +459 -0
- package/dist/chunk-BSJC7OVV.js +10 -0
- package/dist/chunk-C63TN7L3.js +148 -0
- package/dist/chunk-CGFW5LYV.js +143 -0
- package/dist/chunk-GOOH2LGN.js +829 -0
- package/dist/chunk-LEH6UFL7.js +314 -0
- package/dist/{chunk-K3CZKI2F.js → chunk-NENVUHL5.js} +11 -8
- package/dist/chunk-OPMBGBYS.js +632 -0
- package/dist/{chunk-OJVXYCSH.js → chunk-QFPVAJ2U.js} +1 -1
- package/dist/{chunk-AI2YMBJX.js → chunk-RZPNVRRS.js} +5 -5
- package/dist/{chunk-4E5E3PFW.js → chunk-VD3VGLBQ.js} +13 -5
- package/dist/chunk-WYBFBLQC.js +111 -0
- package/dist/{chunk-H77ISYYC.js → chunk-XMRYAG3V.js} +20 -8
- package/dist/domain/article/index.cjs +71 -7
- package/dist/domain/article/index.d.cts +79 -796
- package/dist/domain/article/index.d.ts +79 -796
- package/dist/domain/article/index.js +4 -4
- package/dist/domain/auth/index.cjs +68 -6
- 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 +1438 -330
- 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 -30
- package/dist/domain/food/index.cjs +225 -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 +46 -0
- package/dist/domain/friend/index.cjs +78 -7
- package/dist/domain/friend/index.d.cts +39 -98
- package/dist/domain/friend/index.d.ts +39 -98
- package/dist/domain/friend/index.js +5 -3
- package/dist/domain/index.cjs +1930 -456
- package/dist/domain/index.d.cts +382 -123
- package/dist/domain/index.d.ts +382 -123
- package/dist/domain/index.js +429 -140
- package/dist/domain/live-activity/index.cjs +1112 -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 +28 -0
- package/dist/domain/meal/index.cjs +68 -6
- 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 +1540 -0
- package/dist/domain/meal-plan/index.d.cts +4523 -0
- package/dist/domain/meal-plan/index.d.ts +4523 -0
- package/dist/domain/meal-plan/index.js +255 -0
- package/dist/domain/member/index.cjs +94 -6
- 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 +10 -4
- package/dist/domain/promotion/index.d.cts +35 -112
- package/dist/domain/promotion/index.d.ts +35 -112
- package/dist/domain/promotion/index.js +2 -2
- package/dist/domain/push/index.cjs +1055 -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 +36 -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 +1731 -399
- package/dist/index.d.cts +5 -7
- package/dist/index.d.ts +5 -7
- package/dist/index.js +17 -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-
|
|
15
|
+
} from "../../chunk-NENVUHL5.js";
|
|
16
|
+
import "../../chunk-7JYVBXKQ.js";
|
|
17
|
+
import "../../chunk-C63TN7L3.js";
|
|
17
18
|
import "../../chunk-HRM3FQPL.js";
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-H77ISYYC.js";
|
|
19
|
+
import "../../chunk-XMRYAG3V.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();
|
|
@@ -79,6 +85,45 @@ var UploadPresignImageRequestSchema = import_zod2.default.object({
|
|
|
79
85
|
|
|
80
86
|
// src/domain/member/member.schema.ts
|
|
81
87
|
var MemberRoleSchema = import_zod3.z.enum(["USER", "ADMIN"]);
|
|
88
|
+
var LocationConsentStatusSchema = import_zod3.z.enum(["UNKNOWN", "GRANTED", "DENIED"]);
|
|
89
|
+
var OnboardingStatusSchema = import_zod3.z.enum(["REQUIRED", "COMPLETED"]);
|
|
90
|
+
var PermissionKindSchema = import_zod3.z.enum(["LOCATION", "NOTIFICATION", "CAMERA"]);
|
|
91
|
+
var PermissionStatusSchema = import_zod3.z.enum([
|
|
92
|
+
"UNKNOWN",
|
|
93
|
+
"PROMPT",
|
|
94
|
+
"GRANTED",
|
|
95
|
+
"DENIED",
|
|
96
|
+
"LIMITED",
|
|
97
|
+
"UNSUPPORTED"
|
|
98
|
+
]);
|
|
99
|
+
var PermissionPlatformSchema = import_zod3.z.enum(["WEB", "IOS", "ANDROID", "UNKNOWN"]);
|
|
100
|
+
var DevicePermissionSnapshotSchema = import_zod3.z.object({
|
|
101
|
+
kind: PermissionKindSchema,
|
|
102
|
+
status: PermissionStatusSchema,
|
|
103
|
+
platform: PermissionPlatformSchema.default("UNKNOWN"),
|
|
104
|
+
canAskAgain: import_zod3.z.boolean().optional(),
|
|
105
|
+
checkedAt: import_zod3.z.string().datetime()
|
|
106
|
+
});
|
|
107
|
+
var MemberLocationSchema = import_zod3.z.object({
|
|
108
|
+
latitude: import_zod3.z.number().min(-90).max(90),
|
|
109
|
+
longitude: import_zod3.z.number().min(-180).max(180),
|
|
110
|
+
accuracyMeters: import_zod3.z.number().min(0).nullable().optional(),
|
|
111
|
+
capturedAt: import_zod3.z.string().datetime()
|
|
112
|
+
});
|
|
113
|
+
var UpdateMemberLocationConsentRequestSchema = import_zod3.z.object({
|
|
114
|
+
locationConsentStatus: LocationConsentStatusSchema,
|
|
115
|
+
nearbyMealPlanExposureAllowed: import_zod3.z.boolean().default(false),
|
|
116
|
+
mealSuggestionAllowed: import_zod3.z.boolean().optional(),
|
|
117
|
+
permissionSnapshot: DevicePermissionSnapshotSchema.optional()
|
|
118
|
+
});
|
|
119
|
+
var MemberLocationSettingsResponseSchema = import_zod3.z.object({
|
|
120
|
+
locationConsentStatus: LocationConsentStatusSchema,
|
|
121
|
+
nearbyMealPlanExposureAllowed: import_zod3.z.boolean(),
|
|
122
|
+
mealSuggestionAllowed: import_zod3.z.boolean(),
|
|
123
|
+
lastKnownLocation: MemberLocationSchema.nullable(),
|
|
124
|
+
permissionSnapshot: DevicePermissionSnapshotSchema.nullable().optional(),
|
|
125
|
+
updatedAt: import_zod3.z.string().datetime().nullable()
|
|
126
|
+
});
|
|
82
127
|
var MemberCoreSchema = import_zod3.z.object({
|
|
83
128
|
memberId: MemberIdSchema,
|
|
84
129
|
username: import_zod3.z.string().min(1).max(50),
|
|
@@ -90,6 +135,11 @@ var MemberResponseSchema = MemberCoreSchema.pick({
|
|
|
90
135
|
memberId: true,
|
|
91
136
|
username: true,
|
|
92
137
|
profileImageUrl: true
|
|
138
|
+
}).extend({
|
|
139
|
+
onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
|
|
140
|
+
onboardingCompletedAt: import_zod3.z.string().datetime().nullable().default(null),
|
|
141
|
+
locationConsentStatus: LocationConsentStatusSchema.optional(),
|
|
142
|
+
nearbyMealPlanExposureAllowed: import_zod3.z.boolean().optional()
|
|
93
143
|
});
|
|
94
144
|
var MemberSearchQuerySchema = import_zod3.z.object({
|
|
95
145
|
email: import_zod3.z.string().email().optional(),
|
|
@@ -100,7 +150,11 @@ var MemberDetailSchema = MemberCoreSchema.extend({
|
|
|
100
150
|
bio: import_zod3.z.string().nullable(),
|
|
101
151
|
friendConunt: import_zod3.z.number().int().min(0).default(0),
|
|
102
152
|
completedPlans: import_zod3.z.number().int().min(0).default(0),
|
|
103
|
-
uncompletedPlans: import_zod3.z.number().int().min(0).default(0)
|
|
153
|
+
uncompletedPlans: import_zod3.z.number().int().min(0).default(0),
|
|
154
|
+
onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
|
|
155
|
+
onboardingCompletedAt: import_zod3.z.string().datetime().nullable().default(null),
|
|
156
|
+
locationConsentStatus: LocationConsentStatusSchema.default("UNKNOWN"),
|
|
157
|
+
nearbyMealPlanExposureAllowed: import_zod3.z.boolean().default(false)
|
|
104
158
|
});
|
|
105
159
|
var FoodPreferenceItemSchema = FoodSchema.extend({});
|
|
106
160
|
var MemberFoodPreferenceSchema = import_zod3.z.object({
|
|
@@ -114,9 +168,17 @@ var UpdateProfileRequestSchema = import_zod3.z.object({
|
|
|
114
168
|
bio: import_zod3.z.string().max(500).nullable()
|
|
115
169
|
});
|
|
116
170
|
var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
|
|
117
|
-
var
|
|
171
|
+
var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(
|
|
118
172
|
UpdatePreferenceRequestSchema
|
|
119
173
|
);
|
|
174
|
+
var OnboardingDraftSchema = import_zod3.z.object({
|
|
175
|
+
username: import_zod3.z.string().min(1).max(50).optional(),
|
|
176
|
+
profileImageUrl: import_zod3.z.string().url().nullable().optional(),
|
|
177
|
+
bio: import_zod3.z.string().max(500).nullable().optional(),
|
|
178
|
+
liked: import_zod3.z.array(FoodPreferenceItemSchema).optional(),
|
|
179
|
+
disliked: import_zod3.z.array(FoodPreferenceItemSchema).optional(),
|
|
180
|
+
allergy: import_zod3.z.array(FoodPreferenceItemSchema).optional()
|
|
181
|
+
});
|
|
120
182
|
|
|
121
183
|
// src/domain/auth/auth.schema.ts
|
|
122
184
|
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-QFPVAJ2U.js";
|
|
7
|
+
import "../../chunk-C63TN7L3.js";
|
|
8
|
+
import "../../chunk-XMRYAG3V.js";
|
|
9
9
|
export {
|
|
10
10
|
LoginRequestSchema,
|
|
11
11
|
SignupRequestSchema,
|