@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.
Files changed (100) hide show
  1. package/dist/chunk-3BLXZW4U.js +338 -0
  2. package/dist/{chunk-AI2YMBJX.js → chunk-65DWKLP6.js} +18 -9
  3. package/dist/{chunk-H77ISYYC.js → chunk-6R5CCY5Q.js} +22 -8
  4. package/dist/{chunk-4E5E3PFW.js → chunk-DRCY5UNQ.js} +20 -7
  5. package/dist/chunk-EX7S5FI5.js +91 -0
  6. package/dist/{chunk-HRM3FQPL.js → chunk-EYZU5HPG.js} +4 -1
  7. package/dist/{chunk-OJVXYCSH.js → chunk-G7TITUHT.js} +1 -1
  8. package/dist/chunk-GESEM4IA.js +122 -0
  9. package/dist/chunk-IPANLE7B.js +632 -0
  10. package/dist/chunk-KREAZLLH.js +1062 -0
  11. package/dist/{chunk-K3CZKI2F.js → chunk-P3MYMK34.js} +24 -13
  12. package/dist/chunk-Q4BPFDVB.js +171 -0
  13. package/dist/{chunk-W4C7XHTX.js → chunk-QUAG5LF5.js} +13 -6
  14. package/dist/chunk-TIOX7OHA.js +863 -0
  15. package/dist/{chunk-GTVEQYJW.js → chunk-TOXRHSD6.js} +1 -1
  16. package/dist/chunk-YV734GYZ.js +165 -0
  17. package/dist/domain/article/index.cjs +107 -15
  18. package/dist/domain/article/index.d.cts +79 -796
  19. package/dist/domain/article/index.d.ts +79 -796
  20. package/dist/domain/article/index.js +5 -5
  21. package/dist/domain/auth/index.cjs +88 -9
  22. package/dist/domain/auth/index.d.cts +6 -46
  23. package/dist/domain/auth/index.d.ts +6 -46
  24. package/dist/domain/auth/index.js +3 -3
  25. package/dist/domain/common/index.cjs +2100 -395
  26. package/dist/domain/common/index.d.cts +212 -3037
  27. package/dist/domain/common/index.d.ts +212 -3037
  28. package/dist/domain/common/index.js +65 -31
  29. package/dist/domain/food/index.cjs +248 -0
  30. package/dist/domain/food/index.d.cts +321 -0
  31. package/dist/domain/food/index.d.ts +321 -0
  32. package/dist/domain/food/index.js +44 -0
  33. package/dist/domain/friend/index.cjs +108 -12
  34. package/dist/domain/friend/index.d.cts +39 -98
  35. package/dist/domain/friend/index.d.ts +39 -98
  36. package/dist/domain/friend/index.js +6 -4
  37. package/dist/domain/index.cjs +2736 -522
  38. package/dist/domain/index.d.cts +383 -123
  39. package/dist/domain/index.d.ts +383 -123
  40. package/dist/domain/index.js +429 -140
  41. package/dist/domain/live-activity/index.cjs +1061 -0
  42. package/dist/domain/live-activity/index.d.cts +177 -0
  43. package/dist/domain/live-activity/index.d.ts +177 -0
  44. package/dist/domain/live-activity/index.js +27 -0
  45. package/dist/domain/meal/index.cjs +101 -12
  46. package/dist/domain/meal/index.d.cts +21 -40
  47. package/dist/domain/meal/index.d.ts +21 -40
  48. package/dist/domain/meal/index.js +4 -4
  49. package/dist/domain/meal-plan/index.cjs +1504 -0
  50. package/dist/domain/meal-plan/index.d.cts +4424 -0
  51. package/dist/domain/meal-plan/index.d.ts +4424 -0
  52. package/dist/domain/meal-plan/index.js +256 -0
  53. package/dist/domain/member/index.cjs +114 -9
  54. package/dist/domain/member/index.d.cts +263 -273
  55. package/dist/domain/member/index.d.ts +263 -273
  56. package/dist/domain/member/index.js +26 -2
  57. package/dist/domain/promotion/index.cjs +26 -8
  58. package/dist/domain/promotion/index.d.cts +35 -112
  59. package/dist/domain/promotion/index.d.ts +35 -112
  60. package/dist/domain/promotion/index.js +3 -3
  61. package/dist/domain/push/index.cjs +1004 -0
  62. package/dist/domain/push/index.d.cts +169 -0
  63. package/dist/domain/push/index.d.ts +169 -0
  64. package/dist/domain/push/index.js +35 -0
  65. package/dist/domain/restaurant/index.cjs +10 -4
  66. package/dist/domain/restaurant/index.d.cts +27 -1
  67. package/dist/domain/restaurant/index.d.ts +27 -1
  68. package/dist/domain/restaurant/index.js +2 -2
  69. package/dist/index.cjs +2535 -464
  70. package/dist/index.d.cts +5 -7
  71. package/dist/index.d.ts +5 -7
  72. package/dist/index.js +16 -15
  73. package/package.json +52 -55
  74. package/dist/chunk-PFSZSKD5.js +0 -0
  75. package/dist/chunk-PQMEXOPZ.js +0 -232
  76. package/dist/chunk-W4TUW2GY.js +0 -40
  77. package/dist/chunk-WNYCCQM4.js +0 -342
  78. package/dist/chunk-YGFAVC5N.js +0 -34
  79. package/dist/chunk-YM7YU7IR.js +0 -319
  80. package/dist/chunk-ZH7D7B2Y.js +0 -78
  81. package/dist/domain/invitation/index.cjs +0 -82
  82. package/dist/domain/invitation/index.d.cts +0 -64
  83. package/dist/domain/invitation/index.d.ts +0 -64
  84. package/dist/domain/invitation/index.js +0 -13
  85. package/dist/domain/plan/index.cjs +0 -327
  86. package/dist/domain/plan/index.d.cts +0 -178
  87. package/dist/domain/plan/index.d.ts +0 -178
  88. package/dist/domain/plan/index.js +0 -18
  89. package/dist/domain/recruit/index.cjs +0 -189
  90. package/dist/domain/recruit/index.d.cts +0 -214
  91. package/dist/domain/recruit/index.d.ts +0 -214
  92. package/dist/domain/recruit/index.js +0 -30
  93. package/dist/domain/room/index.cjs +0 -401
  94. package/dist/domain/room/index.d.cts +0 -2643
  95. package/dist/domain/room/index.d.ts +0 -2643
  96. package/dist/domain/room/index.js +0 -82
  97. package/dist/id-dAYxfjZn.d.cts +0 -64
  98. package/dist/id-dAYxfjZn.d.ts +0 -64
  99. package/dist/restaurant.schema-CuEcX3S3.d.cts +0 -78
  100. 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,
@@ -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({ offset: true, message: "Expected ISO datetime string" });
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 RecruitIdSchema = PositiveIntIdSchema.brand();
61
- var PlanIdSchema = PositiveIntIdSchema.brand();
62
- var InvitationIdSchema = PositiveIntIdSchema.brand();
63
- var RoomIdSchema = NonEmptyStringIdSchema.brand();
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(["USER", "ADMIN"]);
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 CreateProfileRequestSchema = UpdateProfileRequestSchema.merge(
128
- UpdatePreferenceRequestSchema
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(["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]);
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,
@@ -1,131 +1,72 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const FriendRequestStatusSchema: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
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
- }, "strip", z.ZodTypeAny, {
11
- memberId: number & z.BRAND<"MemberId">;
12
- username: string;
13
- friendSince: string;
14
- profileImageUrl?: string | null | undefined;
15
- }, {
16
- memberId: number;
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
71
- memberId: number & z.BRAND<"MemberId">;
72
- username: string;
73
- profileImageUrl?: string | null | undefined;
74
- }, {
75
- memberId: number;
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
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
- }, "strip", z.ZodTypeAny, {
11
- memberId: number & z.BRAND<"MemberId">;
12
- username: string;
13
- friendSince: string;
14
- profileImageUrl?: string | null | undefined;
15
- }, {
16
- memberId: number;
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
71
- memberId: number & z.BRAND<"MemberId">;
72
- username: string;
73
- profileImageUrl?: string | null | undefined;
74
- }, {
75
- memberId: number;
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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-4E5E3PFW.js";
10
- import "../../chunk-HRM3FQPL.js";
11
- import "../../chunk-ZH7D7B2Y.js";
12
- import "../../chunk-H77ISYYC.js";
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,