@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
|
@@ -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,
|
|
@@ -57,10 +58,16 @@ var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
|
|
|
57
58
|
var MemberIdSchema = PositiveIntIdSchema.brand();
|
|
58
59
|
var ArticleIdSchema = PositiveIntIdSchema.brand();
|
|
59
60
|
var CommentIdSchema = PositiveIntIdSchema.brand();
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
61
|
+
var MealPlanIdSchema = import_zod2.z.string().uuid().brand();
|
|
62
|
+
var MealPlanInviteIdSchema = import_zod2.z.string().uuid().brand();
|
|
63
|
+
var MealPlanJoinRequestIdSchema = import_zod2.z.string().uuid().brand();
|
|
64
|
+
var MealPlanNearbyFriendExposureBatchIdSchema = import_zod2.z.string().uuid().brand();
|
|
65
|
+
var MealPlanChangeRequestIdSchema = import_zod2.z.string().uuid().brand();
|
|
66
|
+
var MealPlanShareLinkIdSchema = import_zod2.z.string().uuid().brand();
|
|
67
|
+
var MealPlanShareLinkTokenSchema = import_zod2.z.string().min(8).max(128).brand();
|
|
68
|
+
var MealPlanChatRoomIdSchema = import_zod2.z.string().uuid().brand();
|
|
69
|
+
var MealPlanChatMessageIdSchema = import_zod2.z.string().uuid().brand();
|
|
70
|
+
var MealGroupIdSchema = import_zod2.z.string().uuid().brand();
|
|
64
71
|
var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
|
|
65
72
|
var CouponIdSchema = PositiveIntIdSchema.brand();
|
|
66
73
|
var SubscriptionIdSchema = PositiveIntIdSchema.brand();
|
|
@@ -89,6 +96,45 @@ var UploadPresignImageRequestSchema = import_zod3.default.object({
|
|
|
89
96
|
|
|
90
97
|
// src/domain/member/member.schema.ts
|
|
91
98
|
var MemberRoleSchema = import_zod4.z.enum(["USER", "ADMIN"]);
|
|
99
|
+
var LocationConsentStatusSchema = import_zod4.z.enum(["UNKNOWN", "GRANTED", "DENIED"]);
|
|
100
|
+
var OnboardingStatusSchema = import_zod4.z.enum(["REQUIRED", "COMPLETED"]);
|
|
101
|
+
var PermissionKindSchema = import_zod4.z.enum(["LOCATION", "NOTIFICATION", "CAMERA"]);
|
|
102
|
+
var PermissionStatusSchema = import_zod4.z.enum([
|
|
103
|
+
"UNKNOWN",
|
|
104
|
+
"PROMPT",
|
|
105
|
+
"GRANTED",
|
|
106
|
+
"DENIED",
|
|
107
|
+
"LIMITED",
|
|
108
|
+
"UNSUPPORTED"
|
|
109
|
+
]);
|
|
110
|
+
var PermissionPlatformSchema = import_zod4.z.enum(["WEB", "IOS", "ANDROID", "UNKNOWN"]);
|
|
111
|
+
var DevicePermissionSnapshotSchema = import_zod4.z.object({
|
|
112
|
+
kind: PermissionKindSchema,
|
|
113
|
+
status: PermissionStatusSchema,
|
|
114
|
+
platform: PermissionPlatformSchema.default("UNKNOWN"),
|
|
115
|
+
canAskAgain: import_zod4.z.boolean().optional(),
|
|
116
|
+
checkedAt: import_zod4.z.string().datetime()
|
|
117
|
+
});
|
|
118
|
+
var MemberLocationSchema = import_zod4.z.object({
|
|
119
|
+
latitude: import_zod4.z.number().min(-90).max(90),
|
|
120
|
+
longitude: import_zod4.z.number().min(-180).max(180),
|
|
121
|
+
accuracyMeters: import_zod4.z.number().min(0).nullable().optional(),
|
|
122
|
+
capturedAt: import_zod4.z.string().datetime()
|
|
123
|
+
});
|
|
124
|
+
var UpdateMemberLocationConsentRequestSchema = import_zod4.z.object({
|
|
125
|
+
locationConsentStatus: LocationConsentStatusSchema,
|
|
126
|
+
nearbyMealPlanExposureAllowed: import_zod4.z.boolean().default(false),
|
|
127
|
+
mealSuggestionAllowed: import_zod4.z.boolean().optional(),
|
|
128
|
+
permissionSnapshot: DevicePermissionSnapshotSchema.optional()
|
|
129
|
+
});
|
|
130
|
+
var MemberLocationSettingsResponseSchema = import_zod4.z.object({
|
|
131
|
+
locationConsentStatus: LocationConsentStatusSchema,
|
|
132
|
+
nearbyMealPlanExposureAllowed: import_zod4.z.boolean(),
|
|
133
|
+
mealSuggestionAllowed: import_zod4.z.boolean(),
|
|
134
|
+
lastKnownLocation: MemberLocationSchema.nullable(),
|
|
135
|
+
permissionSnapshot: DevicePermissionSnapshotSchema.nullable().optional(),
|
|
136
|
+
updatedAt: import_zod4.z.string().datetime().nullable()
|
|
137
|
+
});
|
|
92
138
|
var MemberCoreSchema = import_zod4.z.object({
|
|
93
139
|
memberId: MemberIdSchema,
|
|
94
140
|
username: import_zod4.z.string().min(1).max(50),
|
|
@@ -100,6 +146,11 @@ var MemberResponseSchema = MemberCoreSchema.pick({
|
|
|
100
146
|
memberId: true,
|
|
101
147
|
username: true,
|
|
102
148
|
profileImageUrl: true
|
|
149
|
+
}).extend({
|
|
150
|
+
onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
|
|
151
|
+
onboardingCompletedAt: import_zod4.z.string().datetime().nullable().default(null),
|
|
152
|
+
locationConsentStatus: LocationConsentStatusSchema.optional(),
|
|
153
|
+
nearbyMealPlanExposureAllowed: import_zod4.z.boolean().optional()
|
|
103
154
|
});
|
|
104
155
|
var MemberSearchQuerySchema = import_zod4.z.object({
|
|
105
156
|
email: import_zod4.z.string().email().optional(),
|
|
@@ -110,7 +161,11 @@ var MemberDetailSchema = MemberCoreSchema.extend({
|
|
|
110
161
|
bio: import_zod4.z.string().nullable(),
|
|
111
162
|
friendConunt: import_zod4.z.number().int().min(0).default(0),
|
|
112
163
|
completedPlans: import_zod4.z.number().int().min(0).default(0),
|
|
113
|
-
uncompletedPlans: import_zod4.z.number().int().min(0).default(0)
|
|
164
|
+
uncompletedPlans: import_zod4.z.number().int().min(0).default(0),
|
|
165
|
+
onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
|
|
166
|
+
onboardingCompletedAt: import_zod4.z.string().datetime().nullable().default(null),
|
|
167
|
+
locationConsentStatus: LocationConsentStatusSchema.default("UNKNOWN"),
|
|
168
|
+
nearbyMealPlanExposureAllowed: import_zod4.z.boolean().default(false)
|
|
114
169
|
});
|
|
115
170
|
var FoodPreferenceItemSchema = FoodSchema.extend({});
|
|
116
171
|
var MemberFoodPreferenceSchema = import_zod4.z.object({
|
|
@@ -124,14 +179,29 @@ var UpdateProfileRequestSchema = import_zod4.z.object({
|
|
|
124
179
|
bio: import_zod4.z.string().max(500).nullable()
|
|
125
180
|
});
|
|
126
181
|
var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
|
|
127
|
-
var
|
|
182
|
+
var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(
|
|
128
183
|
UpdatePreferenceRequestSchema
|
|
129
184
|
);
|
|
185
|
+
var OnboardingDraftSchema = import_zod4.z.object({
|
|
186
|
+
username: import_zod4.z.string().min(1).max(50).optional(),
|
|
187
|
+
profileImageUrl: import_zod4.z.string().url().nullable().optional(),
|
|
188
|
+
bio: import_zod4.z.string().max(500).nullable().optional(),
|
|
189
|
+
liked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
|
|
190
|
+
disliked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
|
|
191
|
+
allergy: import_zod4.z.array(FoodPreferenceItemSchema).optional()
|
|
192
|
+
});
|
|
130
193
|
|
|
131
194
|
// src/domain/friend/friend.schema.ts
|
|
132
195
|
var FriendRequestStatusSchema = import_zod5.z.enum(["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]);
|
|
196
|
+
var FriendMealAvailabilitySchema = import_zod5.z.object({
|
|
197
|
+
isHungry: import_zod5.z.boolean(),
|
|
198
|
+
mealProposalAllowed: import_zod5.z.boolean(),
|
|
199
|
+
mealStatusExpiresAt: ISODateTimeStringSchema.nullable(),
|
|
200
|
+
nearbyMealPlanExposureAllowed: import_zod5.z.boolean()
|
|
201
|
+
});
|
|
133
202
|
var FriendListItemResponseSchema = MemberCoreSchema.extend({
|
|
134
|
-
friendSince: ISODateTimeStringSchema
|
|
203
|
+
friendSince: ISODateTimeStringSchema,
|
|
204
|
+
mealAvailability: FriendMealAvailabilitySchema.optional()
|
|
135
205
|
});
|
|
136
206
|
var FriendBlockItemResponseSchema = MemberCoreSchema.extend({
|
|
137
207
|
blockedAt: ISODateTimeStringSchema
|
|
@@ -150,6 +220,7 @@ var FriendSearchResponseSchema = import_zod5.z.array(MemberCoreSchema);
|
|
|
150
220
|
0 && (module.exports = {
|
|
151
221
|
FriendBlockItemResponseSchema,
|
|
152
222
|
FriendListItemResponseSchema,
|
|
223
|
+
FriendMealAvailabilitySchema,
|
|
153
224
|
FriendRequestItemResponseSchema,
|
|
154
225
|
FriendRequestMemberSchema,
|
|
155
226
|
FriendRequestStatusSchema,
|
|
@@ -1,131 +1,72 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const FriendRequestStatusSchema: z.ZodEnum<
|
|
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>;
|
|
4
15
|
declare const FriendListItemResponseSchema: z.ZodObject<{
|
|
5
|
-
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
16
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
6
17
|
username: z.ZodString;
|
|
7
18
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
} & {
|
|
9
19
|
friendSince: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
username: string;
|
|
18
|
-
friendSince: string;
|
|
19
|
-
profileImageUrl?: string | null | undefined;
|
|
20
|
-
}>;
|
|
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>;
|
|
21
27
|
declare const FriendBlockItemResponseSchema: z.ZodObject<{
|
|
22
|
-
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
28
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
23
29
|
username: z.ZodString;
|
|
24
30
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
} & {
|
|
26
31
|
blockedAt: z.ZodString;
|
|
27
|
-
},
|
|
28
|
-
memberId: number & z.BRAND<"MemberId">;
|
|
29
|
-
username: string;
|
|
30
|
-
blockedAt: string;
|
|
31
|
-
profileImageUrl?: string | null | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
memberId: number;
|
|
34
|
-
username: string;
|
|
35
|
-
blockedAt: string;
|
|
36
|
-
profileImageUrl?: string | null | undefined;
|
|
37
|
-
}>;
|
|
32
|
+
}, z.core.$strip>;
|
|
38
33
|
declare const FriendRequestMemberSchema: z.ZodObject<{
|
|
39
|
-
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
34
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
40
35
|
username: z.ZodString;
|
|
41
36
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
},
|
|
43
|
-
memberId: number & z.BRAND<"MemberId">;
|
|
44
|
-
username: string;
|
|
45
|
-
profileImageUrl?: string | null | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
memberId: number;
|
|
48
|
-
username: string;
|
|
49
|
-
profileImageUrl?: string | null | undefined;
|
|
50
|
-
}>;
|
|
37
|
+
}, z.core.$strip>;
|
|
51
38
|
declare const FriendRequestItemResponseSchema: z.ZodObject<{
|
|
52
|
-
requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
|
|
39
|
+
requestId: z.core.$ZodBranded<z.ZodNumber, "FriendRequestId", "out">;
|
|
53
40
|
requester: z.ZodObject<{
|
|
54
|
-
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
41
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
55
42
|
username: z.ZodString;
|
|
56
43
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
-
},
|
|
58
|
-
memberId: number & z.BRAND<"MemberId">;
|
|
59
|
-
username: string;
|
|
60
|
-
profileImageUrl?: string | null | undefined;
|
|
61
|
-
}, {
|
|
62
|
-
memberId: number;
|
|
63
|
-
username: string;
|
|
64
|
-
profileImageUrl?: string | null | undefined;
|
|
65
|
-
}>;
|
|
44
|
+
}, z.core.$strip>;
|
|
66
45
|
recipient: z.ZodObject<{
|
|
67
|
-
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
46
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
68
47
|
username: z.ZodString;
|
|
69
48
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
username: string;
|
|
77
|
-
profileImageUrl?: string | null | undefined;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
status: z.ZodEnum<{
|
|
51
|
+
PENDING: "PENDING";
|
|
52
|
+
ACCEPTED: "ACCEPTED";
|
|
53
|
+
REJECTED: "REJECTED";
|
|
54
|
+
CANCELED: "CANCELED";
|
|
78
55
|
}>;
|
|
79
|
-
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
|
|
80
56
|
requestedAt: z.ZodString;
|
|
81
|
-
},
|
|
82
|
-
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
|
|
83
|
-
requestId: number & z.BRAND<"FriendRequestId">;
|
|
84
|
-
requester: {
|
|
85
|
-
memberId: number & z.BRAND<"MemberId">;
|
|
86
|
-
username: string;
|
|
87
|
-
profileImageUrl?: string | null | undefined;
|
|
88
|
-
};
|
|
89
|
-
recipient: {
|
|
90
|
-
memberId: number & z.BRAND<"MemberId">;
|
|
91
|
-
username: string;
|
|
92
|
-
profileImageUrl?: string | null | undefined;
|
|
93
|
-
};
|
|
94
|
-
requestedAt: string;
|
|
95
|
-
}, {
|
|
96
|
-
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
|
|
97
|
-
requestId: number;
|
|
98
|
-
requester: {
|
|
99
|
-
memberId: number;
|
|
100
|
-
username: string;
|
|
101
|
-
profileImageUrl?: string | null | undefined;
|
|
102
|
-
};
|
|
103
|
-
recipient: {
|
|
104
|
-
memberId: number;
|
|
105
|
-
username: string;
|
|
106
|
-
profileImageUrl?: string | null | undefined;
|
|
107
|
-
};
|
|
108
|
-
requestedAt: string;
|
|
109
|
-
}>;
|
|
57
|
+
}, z.core.$strip>;
|
|
110
58
|
declare const FriendSearchQuerySchema: z.ZodString;
|
|
111
59
|
declare const FriendSearchResponseSchema: z.ZodArray<z.ZodObject<{
|
|
112
|
-
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
60
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
113
61
|
username: z.ZodString;
|
|
114
62
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
|
-
},
|
|
116
|
-
memberId: number & z.BRAND<"MemberId">;
|
|
117
|
-
username: string;
|
|
118
|
-
profileImageUrl?: string | null | undefined;
|
|
119
|
-
}, {
|
|
120
|
-
memberId: number;
|
|
121
|
-
username: string;
|
|
122
|
-
profileImageUrl?: string | null | undefined;
|
|
123
|
-
}>, "many">;
|
|
63
|
+
}, z.core.$strip>>;
|
|
124
64
|
|
|
65
|
+
type FriendMealAvailability = z.infer<typeof FriendMealAvailabilitySchema>;
|
|
125
66
|
type FriendListItemResponse = z.infer<typeof FriendListItemResponseSchema>;
|
|
126
67
|
type FriendBlockItemResponse = z.infer<typeof FriendBlockItemResponseSchema>;
|
|
127
68
|
type FriendRequestItemResponse = z.infer<typeof FriendRequestItemResponseSchema>;
|
|
128
69
|
type FriendRequestMember = z.infer<typeof FriendRequestMemberSchema>;
|
|
129
70
|
type FriendRequestStatus = z.infer<typeof FriendRequestStatusSchema>;
|
|
130
71
|
|
|
131
|
-
export { type FriendBlockItemResponse, FriendBlockItemResponseSchema, type FriendListItemResponse, FriendListItemResponseSchema, type FriendRequestItemResponse, FriendRequestItemResponseSchema, type FriendRequestMember, FriendRequestMemberSchema, type FriendRequestStatus, FriendRequestStatusSchema, FriendSearchQuerySchema, FriendSearchResponseSchema };
|
|
72
|
+
export { type FriendBlockItemResponse, FriendBlockItemResponseSchema, type FriendListItemResponse, FriendListItemResponseSchema, type FriendMealAvailability, FriendMealAvailabilitySchema, type FriendRequestItemResponse, FriendRequestItemResponseSchema, type FriendRequestMember, FriendRequestMemberSchema, type FriendRequestStatus, FriendRequestStatusSchema, FriendSearchQuerySchema, FriendSearchResponseSchema };
|
|
@@ -1,131 +1,72 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const FriendRequestStatusSchema: z.ZodEnum<
|
|
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>;
|
|
4
15
|
declare const FriendListItemResponseSchema: z.ZodObject<{
|
|
5
|
-
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
16
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
6
17
|
username: z.ZodString;
|
|
7
18
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
} & {
|
|
9
19
|
friendSince: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
username: string;
|
|
18
|
-
friendSince: string;
|
|
19
|
-
profileImageUrl?: string | null | undefined;
|
|
20
|
-
}>;
|
|
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>;
|
|
21
27
|
declare const FriendBlockItemResponseSchema: z.ZodObject<{
|
|
22
|
-
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
28
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
23
29
|
username: z.ZodString;
|
|
24
30
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
} & {
|
|
26
31
|
blockedAt: z.ZodString;
|
|
27
|
-
},
|
|
28
|
-
memberId: number & z.BRAND<"MemberId">;
|
|
29
|
-
username: string;
|
|
30
|
-
blockedAt: string;
|
|
31
|
-
profileImageUrl?: string | null | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
memberId: number;
|
|
34
|
-
username: string;
|
|
35
|
-
blockedAt: string;
|
|
36
|
-
profileImageUrl?: string | null | undefined;
|
|
37
|
-
}>;
|
|
32
|
+
}, z.core.$strip>;
|
|
38
33
|
declare const FriendRequestMemberSchema: z.ZodObject<{
|
|
39
|
-
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
34
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
40
35
|
username: z.ZodString;
|
|
41
36
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
},
|
|
43
|
-
memberId: number & z.BRAND<"MemberId">;
|
|
44
|
-
username: string;
|
|
45
|
-
profileImageUrl?: string | null | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
memberId: number;
|
|
48
|
-
username: string;
|
|
49
|
-
profileImageUrl?: string | null | undefined;
|
|
50
|
-
}>;
|
|
37
|
+
}, z.core.$strip>;
|
|
51
38
|
declare const FriendRequestItemResponseSchema: z.ZodObject<{
|
|
52
|
-
requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
|
|
39
|
+
requestId: z.core.$ZodBranded<z.ZodNumber, "FriendRequestId", "out">;
|
|
53
40
|
requester: z.ZodObject<{
|
|
54
|
-
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
41
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
55
42
|
username: z.ZodString;
|
|
56
43
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
-
},
|
|
58
|
-
memberId: number & z.BRAND<"MemberId">;
|
|
59
|
-
username: string;
|
|
60
|
-
profileImageUrl?: string | null | undefined;
|
|
61
|
-
}, {
|
|
62
|
-
memberId: number;
|
|
63
|
-
username: string;
|
|
64
|
-
profileImageUrl?: string | null | undefined;
|
|
65
|
-
}>;
|
|
44
|
+
}, z.core.$strip>;
|
|
66
45
|
recipient: z.ZodObject<{
|
|
67
|
-
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
46
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
68
47
|
username: z.ZodString;
|
|
69
48
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
username: string;
|
|
77
|
-
profileImageUrl?: string | null | undefined;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
status: z.ZodEnum<{
|
|
51
|
+
PENDING: "PENDING";
|
|
52
|
+
ACCEPTED: "ACCEPTED";
|
|
53
|
+
REJECTED: "REJECTED";
|
|
54
|
+
CANCELED: "CANCELED";
|
|
78
55
|
}>;
|
|
79
|
-
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
|
|
80
56
|
requestedAt: z.ZodString;
|
|
81
|
-
},
|
|
82
|
-
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
|
|
83
|
-
requestId: number & z.BRAND<"FriendRequestId">;
|
|
84
|
-
requester: {
|
|
85
|
-
memberId: number & z.BRAND<"MemberId">;
|
|
86
|
-
username: string;
|
|
87
|
-
profileImageUrl?: string | null | undefined;
|
|
88
|
-
};
|
|
89
|
-
recipient: {
|
|
90
|
-
memberId: number & z.BRAND<"MemberId">;
|
|
91
|
-
username: string;
|
|
92
|
-
profileImageUrl?: string | null | undefined;
|
|
93
|
-
};
|
|
94
|
-
requestedAt: string;
|
|
95
|
-
}, {
|
|
96
|
-
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
|
|
97
|
-
requestId: number;
|
|
98
|
-
requester: {
|
|
99
|
-
memberId: number;
|
|
100
|
-
username: string;
|
|
101
|
-
profileImageUrl?: string | null | undefined;
|
|
102
|
-
};
|
|
103
|
-
recipient: {
|
|
104
|
-
memberId: number;
|
|
105
|
-
username: string;
|
|
106
|
-
profileImageUrl?: string | null | undefined;
|
|
107
|
-
};
|
|
108
|
-
requestedAt: string;
|
|
109
|
-
}>;
|
|
57
|
+
}, z.core.$strip>;
|
|
110
58
|
declare const FriendSearchQuerySchema: z.ZodString;
|
|
111
59
|
declare const FriendSearchResponseSchema: z.ZodArray<z.ZodObject<{
|
|
112
|
-
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
60
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
113
61
|
username: z.ZodString;
|
|
114
62
|
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
|
-
},
|
|
116
|
-
memberId: number & z.BRAND<"MemberId">;
|
|
117
|
-
username: string;
|
|
118
|
-
profileImageUrl?: string | null | undefined;
|
|
119
|
-
}, {
|
|
120
|
-
memberId: number;
|
|
121
|
-
username: string;
|
|
122
|
-
profileImageUrl?: string | null | undefined;
|
|
123
|
-
}>, "many">;
|
|
63
|
+
}, z.core.$strip>>;
|
|
124
64
|
|
|
65
|
+
type FriendMealAvailability = z.infer<typeof FriendMealAvailabilitySchema>;
|
|
125
66
|
type FriendListItemResponse = z.infer<typeof FriendListItemResponseSchema>;
|
|
126
67
|
type FriendBlockItemResponse = z.infer<typeof FriendBlockItemResponseSchema>;
|
|
127
68
|
type FriendRequestItemResponse = z.infer<typeof FriendRequestItemResponseSchema>;
|
|
128
69
|
type FriendRequestMember = z.infer<typeof FriendRequestMemberSchema>;
|
|
129
70
|
type FriendRequestStatus = z.infer<typeof FriendRequestStatusSchema>;
|
|
130
71
|
|
|
131
|
-
export { type FriendBlockItemResponse, FriendBlockItemResponseSchema, type FriendListItemResponse, FriendListItemResponseSchema, type FriendRequestItemResponse, FriendRequestItemResponseSchema, type FriendRequestMember, FriendRequestMemberSchema, type FriendRequestStatus, FriendRequestStatusSchema, FriendSearchQuerySchema, FriendSearchResponseSchema };
|
|
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
|
+
} from "../../chunk-VD3VGLBQ.js";
|
|
11
|
+
import "../../chunk-C63TN7L3.js";
|
|
10
12
|
import "../../chunk-HRM3FQPL.js";
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-H77ISYYC.js";
|
|
13
|
+
import "../../chunk-XMRYAG3V.js";
|
|
13
14
|
export {
|
|
14
15
|
FriendBlockItemResponseSchema,
|
|
15
16
|
FriendListItemResponseSchema,
|
|
17
|
+
FriendMealAvailabilitySchema,
|
|
16
18
|
FriendRequestItemResponseSchema,
|
|
17
19
|
FriendRequestMemberSchema,
|
|
18
20
|
FriendRequestStatusSchema,
|