@kimdaegyu/babmukdang-shared 1.1.10 → 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 +254 -0
- package/dist/domain/article/index.d.ts +254 -0
- package/dist/domain/article/index.js +5 -5
- package/dist/domain/auth/index.cjs +88 -9
- package/dist/domain/auth/index.d.cts +29 -0
- package/dist/domain/auth/index.d.ts +29 -0
- package/dist/domain/auth/index.js +3 -3
- package/dist/domain/common/index.cjs +2100 -395
- package/dist/domain/common/index.d.cts +328 -0
- package/dist/domain/common/index.d.ts +328 -0
- 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 +72 -0
- package/dist/domain/friend/index.d.ts +72 -0
- package/dist/domain/friend/index.js +6 -4
- package/dist/domain/index.cjs +2736 -522
- package/dist/domain/index.d.cts +576 -0
- package/dist/domain/index.d.ts +576 -0
- 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 +47 -0
- package/dist/domain/meal/index.d.ts +47 -0
- 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 +330 -0
- package/dist/domain/member/index.d.ts +330 -0
- package/dist/domain/member/index.js +26 -2
- package/dist/domain/promotion/index.cjs +26 -8
- package/dist/domain/promotion/index.d.cts +81 -0
- package/dist/domain/promotion/index.d.ts +81 -0
- 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 +34 -0
- package/dist/domain/restaurant/index.d.ts +34 -0
- package/dist/domain/restaurant/index.js +2 -2
- package/dist/index.cjs +2533 -640
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +16 -191
- 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.js +0 -13
- package/dist/domain/plan/index.cjs +0 -327
- package/dist/domain/plan/index.js +0 -18
- package/dist/domain/recruit/index.cjs +0 -189
- package/dist/domain/recruit/index.js +0 -30
- package/dist/domain/room/index.cjs +0 -401
- package/dist/domain/room/index.js +0 -82
|
@@ -32,6 +32,7 @@ var friend_exports = {};
|
|
|
32
32
|
__export(friend_exports, {
|
|
33
33
|
FriendBlockItemResponseSchema: () => FriendBlockItemResponseSchema,
|
|
34
34
|
FriendListItemResponseSchema: () => FriendListItemResponseSchema,
|
|
35
|
+
FriendMealAvailabilitySchema: () => FriendMealAvailabilitySchema,
|
|
35
36
|
FriendRequestItemResponseSchema: () => FriendRequestItemResponseSchema,
|
|
36
37
|
FriendRequestMemberSchema: () => FriendRequestMemberSchema,
|
|
37
38
|
FriendRequestStatusSchema: () => FriendRequestStatusSchema,
|
|
@@ -47,7 +48,10 @@ var import_zod5 = require("zod");
|
|
|
47
48
|
var import_zod = require("zod");
|
|
48
49
|
var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
|
|
49
50
|
var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
|
|
50
|
-
var ISODateTimeStringSchema = import_zod.z.string().datetime({
|
|
51
|
+
var ISODateTimeStringSchema = import_zod.z.string().datetime({
|
|
52
|
+
offset: true,
|
|
53
|
+
message: "Expected ISO datetime string"
|
|
54
|
+
});
|
|
51
55
|
var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
|
|
52
56
|
|
|
53
57
|
// src/domain/common/schema/id.schema.ts
|
|
@@ -57,10 +61,16 @@ var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
|
|
|
57
61
|
var MemberIdSchema = PositiveIntIdSchema.brand();
|
|
58
62
|
var ArticleIdSchema = PositiveIntIdSchema.brand();
|
|
59
63
|
var CommentIdSchema = PositiveIntIdSchema.brand();
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
+
var MealPlanIdSchema = import_zod2.z.string().uuid().brand();
|
|
65
|
+
var MealPlanInviteIdSchema = import_zod2.z.string().uuid().brand();
|
|
66
|
+
var MealPlanJoinRequestIdSchema = import_zod2.z.string().uuid().brand();
|
|
67
|
+
var MealPlanNearbyFriendExposureBatchIdSchema = import_zod2.z.string().uuid().brand();
|
|
68
|
+
var MealPlanChangeRequestIdSchema = import_zod2.z.string().uuid().brand();
|
|
69
|
+
var MealPlanShareLinkIdSchema = import_zod2.z.string().uuid().brand();
|
|
70
|
+
var MealPlanShareLinkTokenSchema = import_zod2.z.string().min(8).max(128).brand();
|
|
71
|
+
var MealPlanChatRoomIdSchema = import_zod2.z.string().uuid().brand();
|
|
72
|
+
var MealPlanChatMessageIdSchema = import_zod2.z.string().uuid().brand();
|
|
73
|
+
var MealGroupIdSchema = import_zod2.z.string().uuid().brand();
|
|
64
74
|
var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
|
|
65
75
|
var CouponIdSchema = PositiveIntIdSchema.brand();
|
|
66
76
|
var SubscriptionIdSchema = PositiveIntIdSchema.brand();
|
|
@@ -88,7 +98,65 @@ var UploadPresignImageRequestSchema = import_zod3.default.object({
|
|
|
88
98
|
});
|
|
89
99
|
|
|
90
100
|
// src/domain/member/member.schema.ts
|
|
91
|
-
var MemberRoleSchema = import_zod4.z.enum([
|
|
101
|
+
var MemberRoleSchema = import_zod4.z.enum([
|
|
102
|
+
"USER",
|
|
103
|
+
"ADMIN"
|
|
104
|
+
]);
|
|
105
|
+
var LocationConsentStatusSchema = import_zod4.z.enum([
|
|
106
|
+
"UNKNOWN",
|
|
107
|
+
"GRANTED",
|
|
108
|
+
"DENIED"
|
|
109
|
+
]);
|
|
110
|
+
var OnboardingStatusSchema = import_zod4.z.enum([
|
|
111
|
+
"REQUIRED",
|
|
112
|
+
"COMPLETED"
|
|
113
|
+
]);
|
|
114
|
+
var PermissionKindSchema = import_zod4.z.enum([
|
|
115
|
+
"LOCATION",
|
|
116
|
+
"NOTIFICATION",
|
|
117
|
+
"CAMERA"
|
|
118
|
+
]);
|
|
119
|
+
var PermissionStatusSchema = import_zod4.z.enum([
|
|
120
|
+
"UNKNOWN",
|
|
121
|
+
"PROMPT",
|
|
122
|
+
"GRANTED",
|
|
123
|
+
"DENIED",
|
|
124
|
+
"LIMITED",
|
|
125
|
+
"UNSUPPORTED"
|
|
126
|
+
]);
|
|
127
|
+
var PermissionPlatformSchema = import_zod4.z.enum([
|
|
128
|
+
"WEB",
|
|
129
|
+
"IOS",
|
|
130
|
+
"ANDROID",
|
|
131
|
+
"UNKNOWN"
|
|
132
|
+
]);
|
|
133
|
+
var DevicePermissionSnapshotSchema = import_zod4.z.object({
|
|
134
|
+
kind: PermissionKindSchema,
|
|
135
|
+
status: PermissionStatusSchema,
|
|
136
|
+
platform: PermissionPlatformSchema.default("UNKNOWN"),
|
|
137
|
+
canAskAgain: import_zod4.z.boolean().optional(),
|
|
138
|
+
checkedAt: import_zod4.z.string().datetime()
|
|
139
|
+
});
|
|
140
|
+
var MemberLocationSchema = import_zod4.z.object({
|
|
141
|
+
latitude: import_zod4.z.number().min(-90).max(90),
|
|
142
|
+
longitude: import_zod4.z.number().min(-180).max(180),
|
|
143
|
+
accuracyMeters: import_zod4.z.number().min(0).nullable().optional(),
|
|
144
|
+
capturedAt: import_zod4.z.string().datetime()
|
|
145
|
+
});
|
|
146
|
+
var UpdateMemberLocationConsentRequestSchema = import_zod4.z.object({
|
|
147
|
+
locationConsentStatus: LocationConsentStatusSchema,
|
|
148
|
+
nearbyMealPlanExposureAllowed: import_zod4.z.boolean().default(false),
|
|
149
|
+
mealSuggestionAllowed: import_zod4.z.boolean().optional(),
|
|
150
|
+
permissionSnapshot: DevicePermissionSnapshotSchema.optional()
|
|
151
|
+
});
|
|
152
|
+
var MemberLocationSettingsResponseSchema = import_zod4.z.object({
|
|
153
|
+
locationConsentStatus: LocationConsentStatusSchema,
|
|
154
|
+
nearbyMealPlanExposureAllowed: import_zod4.z.boolean(),
|
|
155
|
+
mealSuggestionAllowed: import_zod4.z.boolean(),
|
|
156
|
+
lastKnownLocation: MemberLocationSchema.nullable(),
|
|
157
|
+
permissionSnapshot: DevicePermissionSnapshotSchema.nullable().optional(),
|
|
158
|
+
updatedAt: import_zod4.z.string().datetime().nullable()
|
|
159
|
+
});
|
|
92
160
|
var MemberCoreSchema = import_zod4.z.object({
|
|
93
161
|
memberId: MemberIdSchema,
|
|
94
162
|
username: import_zod4.z.string().min(1).max(50),
|
|
@@ -100,6 +168,11 @@ var MemberResponseSchema = MemberCoreSchema.pick({
|
|
|
100
168
|
memberId: true,
|
|
101
169
|
username: true,
|
|
102
170
|
profileImageUrl: true
|
|
171
|
+
}).extend({
|
|
172
|
+
onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
|
|
173
|
+
onboardingCompletedAt: import_zod4.z.string().datetime().nullable().default(null),
|
|
174
|
+
locationConsentStatus: LocationConsentStatusSchema.optional(),
|
|
175
|
+
nearbyMealPlanExposureAllowed: import_zod4.z.boolean().optional()
|
|
103
176
|
});
|
|
104
177
|
var MemberSearchQuerySchema = import_zod4.z.object({
|
|
105
178
|
email: import_zod4.z.string().email().optional(),
|
|
@@ -110,7 +183,11 @@ var MemberDetailSchema = MemberCoreSchema.extend({
|
|
|
110
183
|
bio: import_zod4.z.string().nullable(),
|
|
111
184
|
friendConunt: import_zod4.z.number().int().min(0).default(0),
|
|
112
185
|
completedPlans: import_zod4.z.number().int().min(0).default(0),
|
|
113
|
-
uncompletedPlans: import_zod4.z.number().int().min(0).default(0)
|
|
186
|
+
uncompletedPlans: import_zod4.z.number().int().min(0).default(0),
|
|
187
|
+
onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
|
|
188
|
+
onboardingCompletedAt: import_zod4.z.string().datetime().nullable().default(null),
|
|
189
|
+
locationConsentStatus: LocationConsentStatusSchema.default("UNKNOWN"),
|
|
190
|
+
nearbyMealPlanExposureAllowed: import_zod4.z.boolean().default(false)
|
|
114
191
|
});
|
|
115
192
|
var FoodPreferenceItemSchema = FoodSchema.extend({});
|
|
116
193
|
var MemberFoodPreferenceSchema = import_zod4.z.object({
|
|
@@ -124,14 +201,32 @@ var UpdateProfileRequestSchema = import_zod4.z.object({
|
|
|
124
201
|
bio: import_zod4.z.string().max(500).nullable()
|
|
125
202
|
});
|
|
126
203
|
var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
|
|
127
|
-
var
|
|
128
|
-
|
|
129
|
-
)
|
|
204
|
+
var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(UpdatePreferenceRequestSchema);
|
|
205
|
+
var OnboardingDraftSchema = import_zod4.z.object({
|
|
206
|
+
username: import_zod4.z.string().min(1).max(50).optional(),
|
|
207
|
+
profileImageUrl: import_zod4.z.string().url().nullable().optional(),
|
|
208
|
+
bio: import_zod4.z.string().max(500).nullable().optional(),
|
|
209
|
+
liked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
|
|
210
|
+
disliked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
|
|
211
|
+
allergy: import_zod4.z.array(FoodPreferenceItemSchema).optional()
|
|
212
|
+
});
|
|
130
213
|
|
|
131
214
|
// src/domain/friend/friend.schema.ts
|
|
132
|
-
var FriendRequestStatusSchema = import_zod5.z.enum([
|
|
215
|
+
var FriendRequestStatusSchema = import_zod5.z.enum([
|
|
216
|
+
"PENDING",
|
|
217
|
+
"ACCEPTED",
|
|
218
|
+
"REJECTED",
|
|
219
|
+
"CANCELED"
|
|
220
|
+
]);
|
|
221
|
+
var FriendMealAvailabilitySchema = import_zod5.z.object({
|
|
222
|
+
isHungry: import_zod5.z.boolean(),
|
|
223
|
+
mealProposalAllowed: import_zod5.z.boolean(),
|
|
224
|
+
mealStatusExpiresAt: ISODateTimeStringSchema.nullable(),
|
|
225
|
+
nearbyMealPlanExposureAllowed: import_zod5.z.boolean()
|
|
226
|
+
});
|
|
133
227
|
var FriendListItemResponseSchema = MemberCoreSchema.extend({
|
|
134
|
-
friendSince: ISODateTimeStringSchema
|
|
228
|
+
friendSince: ISODateTimeStringSchema,
|
|
229
|
+
mealAvailability: FriendMealAvailabilitySchema.optional()
|
|
135
230
|
});
|
|
136
231
|
var FriendBlockItemResponseSchema = MemberCoreSchema.extend({
|
|
137
232
|
blockedAt: ISODateTimeStringSchema
|
|
@@ -150,6 +245,7 @@ var FriendSearchResponseSchema = import_zod5.z.array(MemberCoreSchema);
|
|
|
150
245
|
0 && (module.exports = {
|
|
151
246
|
FriendBlockItemResponseSchema,
|
|
152
247
|
FriendListItemResponseSchema,
|
|
248
|
+
FriendMealAvailabilitySchema,
|
|
153
249
|
FriendRequestItemResponseSchema,
|
|
154
250
|
FriendRequestMemberSchema,
|
|
155
251
|
FriendRequestStatusSchema,
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const FriendRequestStatusSchema: z.ZodEnum<{
|
|
4
|
+
PENDING: "PENDING";
|
|
5
|
+
ACCEPTED: "ACCEPTED";
|
|
6
|
+
REJECTED: "REJECTED";
|
|
7
|
+
CANCELED: "CANCELED";
|
|
8
|
+
}>;
|
|
9
|
+
declare const FriendMealAvailabilitySchema: z.ZodObject<{
|
|
10
|
+
isHungry: z.ZodBoolean;
|
|
11
|
+
mealProposalAllowed: z.ZodBoolean;
|
|
12
|
+
mealStatusExpiresAt: z.ZodNullable<z.ZodString>;
|
|
13
|
+
nearbyMealPlanExposureAllowed: z.ZodBoolean;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const FriendListItemResponseSchema: z.ZodObject<{
|
|
16
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
17
|
+
username: z.ZodString;
|
|
18
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
friendSince: z.ZodString;
|
|
20
|
+
mealAvailability: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
isHungry: z.ZodBoolean;
|
|
22
|
+
mealProposalAllowed: z.ZodBoolean;
|
|
23
|
+
mealStatusExpiresAt: z.ZodNullable<z.ZodString>;
|
|
24
|
+
nearbyMealPlanExposureAllowed: z.ZodBoolean;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare const FriendBlockItemResponseSchema: z.ZodObject<{
|
|
28
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
29
|
+
username: z.ZodString;
|
|
30
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
blockedAt: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
declare const FriendRequestMemberSchema: z.ZodObject<{
|
|
34
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
35
|
+
username: z.ZodString;
|
|
36
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
declare const FriendRequestItemResponseSchema: z.ZodObject<{
|
|
39
|
+
requestId: z.core.$ZodBranded<z.ZodNumber, "FriendRequestId", "out">;
|
|
40
|
+
requester: z.ZodObject<{
|
|
41
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
42
|
+
username: z.ZodString;
|
|
43
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
recipient: z.ZodObject<{
|
|
46
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
47
|
+
username: z.ZodString;
|
|
48
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
status: z.ZodEnum<{
|
|
51
|
+
PENDING: "PENDING";
|
|
52
|
+
ACCEPTED: "ACCEPTED";
|
|
53
|
+
REJECTED: "REJECTED";
|
|
54
|
+
CANCELED: "CANCELED";
|
|
55
|
+
}>;
|
|
56
|
+
requestedAt: z.ZodString;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
declare const FriendSearchQuerySchema: z.ZodString;
|
|
59
|
+
declare const FriendSearchResponseSchema: z.ZodArray<z.ZodObject<{
|
|
60
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
61
|
+
username: z.ZodString;
|
|
62
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
|
|
65
|
+
type FriendMealAvailability = z.infer<typeof FriendMealAvailabilitySchema>;
|
|
66
|
+
type FriendListItemResponse = z.infer<typeof FriendListItemResponseSchema>;
|
|
67
|
+
type FriendBlockItemResponse = z.infer<typeof FriendBlockItemResponseSchema>;
|
|
68
|
+
type FriendRequestItemResponse = z.infer<typeof FriendRequestItemResponseSchema>;
|
|
69
|
+
type FriendRequestMember = z.infer<typeof FriendRequestMemberSchema>;
|
|
70
|
+
type FriendRequestStatus = z.infer<typeof FriendRequestStatusSchema>;
|
|
71
|
+
|
|
72
|
+
export { type FriendBlockItemResponse, FriendBlockItemResponseSchema, type FriendListItemResponse, FriendListItemResponseSchema, type FriendMealAvailability, FriendMealAvailabilitySchema, type FriendRequestItemResponse, FriendRequestItemResponseSchema, type FriendRequestMember, FriendRequestMemberSchema, type FriendRequestStatus, FriendRequestStatusSchema, FriendSearchQuerySchema, FriendSearchResponseSchema };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const FriendRequestStatusSchema: z.ZodEnum<{
|
|
4
|
+
PENDING: "PENDING";
|
|
5
|
+
ACCEPTED: "ACCEPTED";
|
|
6
|
+
REJECTED: "REJECTED";
|
|
7
|
+
CANCELED: "CANCELED";
|
|
8
|
+
}>;
|
|
9
|
+
declare const FriendMealAvailabilitySchema: z.ZodObject<{
|
|
10
|
+
isHungry: z.ZodBoolean;
|
|
11
|
+
mealProposalAllowed: z.ZodBoolean;
|
|
12
|
+
mealStatusExpiresAt: z.ZodNullable<z.ZodString>;
|
|
13
|
+
nearbyMealPlanExposureAllowed: z.ZodBoolean;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const FriendListItemResponseSchema: z.ZodObject<{
|
|
16
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
17
|
+
username: z.ZodString;
|
|
18
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
friendSince: z.ZodString;
|
|
20
|
+
mealAvailability: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
isHungry: z.ZodBoolean;
|
|
22
|
+
mealProposalAllowed: z.ZodBoolean;
|
|
23
|
+
mealStatusExpiresAt: z.ZodNullable<z.ZodString>;
|
|
24
|
+
nearbyMealPlanExposureAllowed: z.ZodBoolean;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare const FriendBlockItemResponseSchema: z.ZodObject<{
|
|
28
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
29
|
+
username: z.ZodString;
|
|
30
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
blockedAt: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
declare const FriendRequestMemberSchema: z.ZodObject<{
|
|
34
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
35
|
+
username: z.ZodString;
|
|
36
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
declare const FriendRequestItemResponseSchema: z.ZodObject<{
|
|
39
|
+
requestId: z.core.$ZodBranded<z.ZodNumber, "FriendRequestId", "out">;
|
|
40
|
+
requester: z.ZodObject<{
|
|
41
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
42
|
+
username: z.ZodString;
|
|
43
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
recipient: z.ZodObject<{
|
|
46
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
47
|
+
username: z.ZodString;
|
|
48
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
status: z.ZodEnum<{
|
|
51
|
+
PENDING: "PENDING";
|
|
52
|
+
ACCEPTED: "ACCEPTED";
|
|
53
|
+
REJECTED: "REJECTED";
|
|
54
|
+
CANCELED: "CANCELED";
|
|
55
|
+
}>;
|
|
56
|
+
requestedAt: z.ZodString;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
declare const FriendSearchQuerySchema: z.ZodString;
|
|
59
|
+
declare const FriendSearchResponseSchema: z.ZodArray<z.ZodObject<{
|
|
60
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
61
|
+
username: z.ZodString;
|
|
62
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
|
|
65
|
+
type FriendMealAvailability = z.infer<typeof FriendMealAvailabilitySchema>;
|
|
66
|
+
type FriendListItemResponse = z.infer<typeof FriendListItemResponseSchema>;
|
|
67
|
+
type FriendBlockItemResponse = z.infer<typeof FriendBlockItemResponseSchema>;
|
|
68
|
+
type FriendRequestItemResponse = z.infer<typeof FriendRequestItemResponseSchema>;
|
|
69
|
+
type FriendRequestMember = z.infer<typeof FriendRequestMemberSchema>;
|
|
70
|
+
type FriendRequestStatus = z.infer<typeof FriendRequestStatusSchema>;
|
|
71
|
+
|
|
72
|
+
export { type FriendBlockItemResponse, FriendBlockItemResponseSchema, type FriendListItemResponse, FriendListItemResponseSchema, type FriendMealAvailability, FriendMealAvailabilitySchema, type FriendRequestItemResponse, FriendRequestItemResponseSchema, type FriendRequestMember, FriendRequestMemberSchema, type FriendRequestStatus, FriendRequestStatusSchema, FriendSearchQuerySchema, FriendSearchResponseSchema };
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FriendBlockItemResponseSchema,
|
|
3
3
|
FriendListItemResponseSchema,
|
|
4
|
+
FriendMealAvailabilitySchema,
|
|
4
5
|
FriendRequestItemResponseSchema,
|
|
5
6
|
FriendRequestMemberSchema,
|
|
6
7
|
FriendRequestStatusSchema,
|
|
7
8
|
FriendSearchQuerySchema,
|
|
8
9
|
FriendSearchResponseSchema
|
|
9
|
-
} from "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-DRCY5UNQ.js";
|
|
11
|
+
import "../../chunk-YV734GYZ.js";
|
|
12
|
+
import "../../chunk-EYZU5HPG.js";
|
|
13
|
+
import "../../chunk-6R5CCY5Q.js";
|
|
13
14
|
export {
|
|
14
15
|
FriendBlockItemResponseSchema,
|
|
15
16
|
FriendListItemResponseSchema,
|
|
17
|
+
FriendMealAvailabilitySchema,
|
|
16
18
|
FriendRequestItemResponseSchema,
|
|
17
19
|
FriendRequestMemberSchema,
|
|
18
20
|
FriendRequestStatusSchema,
|