@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.
Files changed (88) 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 +254 -0
  19. package/dist/domain/article/index.d.ts +254 -0
  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 +29 -0
  23. package/dist/domain/auth/index.d.ts +29 -0
  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 +328 -0
  27. package/dist/domain/common/index.d.ts +328 -0
  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 +72 -0
  35. package/dist/domain/friend/index.d.ts +72 -0
  36. package/dist/domain/friend/index.js +6 -4
  37. package/dist/domain/index.cjs +2736 -522
  38. package/dist/domain/index.d.cts +576 -0
  39. package/dist/domain/index.d.ts +576 -0
  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 +47 -0
  47. package/dist/domain/meal/index.d.ts +47 -0
  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 +330 -0
  55. package/dist/domain/member/index.d.ts +330 -0
  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 +81 -0
  59. package/dist/domain/promotion/index.d.ts +81 -0
  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 +34 -0
  67. package/dist/domain/restaurant/index.d.ts +34 -0
  68. package/dist/domain/restaurant/index.js +2 -2
  69. package/dist/index.cjs +2533 -640
  70. package/dist/index.d.cts +14 -0
  71. package/dist/index.d.ts +14 -0
  72. package/dist/index.js +16 -191
  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.js +0 -13
  83. package/dist/domain/plan/index.cjs +0 -327
  84. package/dist/domain/plan/index.js +0 -18
  85. package/dist/domain/recruit/index.cjs +0 -189
  86. package/dist/domain/recruit/index.js +0 -30
  87. package/dist/domain/room/index.cjs +0 -401
  88. package/dist/domain/room/index.js +0 -82
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  RestaurantIdSchema
3
- } from "./chunk-H77ISYYC.js";
3
+ } from "./chunk-6R5CCY5Q.js";
4
4
 
5
5
  // src/domain/restaurant/restaurant.schema.ts
6
6
  import { z } from "zod";
@@ -0,0 +1,165 @@
1
+ import {
2
+ FoodSchema,
3
+ MemberIdSchema
4
+ } from "./chunk-6R5CCY5Q.js";
5
+
6
+ // src/domain/member/member.schema.ts
7
+ import { z as z2 } from "zod";
8
+
9
+ // src/domain/common/contracts/upload.ts
10
+ import z from "zod";
11
+ var UploadPresignImageResponseSchema = z.object({
12
+ key: z.string(),
13
+ putUrl: z.string().url(),
14
+ cdnUrl: z.string().url()
15
+ });
16
+ var UploadPresignImageRequestSchema = z.object({
17
+ contentType: z.string()
18
+ });
19
+
20
+ // src/domain/member/member.schema.ts
21
+ var MemberRoleSchema = z2.enum([
22
+ "USER",
23
+ "ADMIN"
24
+ ]);
25
+ var LocationConsentStatusSchema = z2.enum([
26
+ "UNKNOWN",
27
+ "GRANTED",
28
+ "DENIED"
29
+ ]);
30
+ var OnboardingStatusSchema = z2.enum([
31
+ "REQUIRED",
32
+ "COMPLETED"
33
+ ]);
34
+ var PermissionKindSchema = z2.enum([
35
+ "LOCATION",
36
+ "NOTIFICATION",
37
+ "CAMERA"
38
+ ]);
39
+ var PermissionStatusSchema = z2.enum([
40
+ "UNKNOWN",
41
+ "PROMPT",
42
+ "GRANTED",
43
+ "DENIED",
44
+ "LIMITED",
45
+ "UNSUPPORTED"
46
+ ]);
47
+ var PermissionPlatformSchema = z2.enum([
48
+ "WEB",
49
+ "IOS",
50
+ "ANDROID",
51
+ "UNKNOWN"
52
+ ]);
53
+ var DevicePermissionSnapshotSchema = z2.object({
54
+ kind: PermissionKindSchema,
55
+ status: PermissionStatusSchema,
56
+ platform: PermissionPlatformSchema.default("UNKNOWN"),
57
+ canAskAgain: z2.boolean().optional(),
58
+ checkedAt: z2.string().datetime()
59
+ });
60
+ var MemberLocationSchema = z2.object({
61
+ latitude: z2.number().min(-90).max(90),
62
+ longitude: z2.number().min(-180).max(180),
63
+ accuracyMeters: z2.number().min(0).nullable().optional(),
64
+ capturedAt: z2.string().datetime()
65
+ });
66
+ var UpdateMemberLocationRequestSchema = MemberLocationSchema;
67
+ var UpdateMemberLocationConsentRequestSchema = z2.object({
68
+ locationConsentStatus: LocationConsentStatusSchema,
69
+ nearbyMealPlanExposureAllowed: z2.boolean().default(false),
70
+ mealSuggestionAllowed: z2.boolean().optional(),
71
+ permissionSnapshot: DevicePermissionSnapshotSchema.optional()
72
+ });
73
+ var MemberLocationSettingsResponseSchema = z2.object({
74
+ locationConsentStatus: LocationConsentStatusSchema,
75
+ nearbyMealPlanExposureAllowed: z2.boolean(),
76
+ mealSuggestionAllowed: z2.boolean(),
77
+ lastKnownLocation: MemberLocationSchema.nullable(),
78
+ permissionSnapshot: DevicePermissionSnapshotSchema.nullable().optional(),
79
+ updatedAt: z2.string().datetime().nullable()
80
+ });
81
+ var MemberCoreSchema = z2.object({
82
+ memberId: MemberIdSchema,
83
+ username: z2.string().min(1).max(50),
84
+ profileImageUrl: z2.string().url().nullable().optional()
85
+ });
86
+ var UploadProfileImageResponseSchema = UploadPresignImageResponseSchema.extend({});
87
+ var UploadProfileImageRequestSchema = UploadPresignImageRequestSchema.extend({});
88
+ var MemberResponseSchema = MemberCoreSchema.pick({
89
+ memberId: true,
90
+ username: true,
91
+ profileImageUrl: true
92
+ }).extend({
93
+ onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
94
+ onboardingCompletedAt: z2.string().datetime().nullable().default(null),
95
+ locationConsentStatus: LocationConsentStatusSchema.optional(),
96
+ nearbyMealPlanExposureAllowed: z2.boolean().optional()
97
+ });
98
+ var MemberSearchQuerySchema = z2.object({
99
+ email: z2.string().email().optional(),
100
+ username: z2.string().optional()
101
+ });
102
+ var MemberSerachResponseSchema = z2.array(MemberCoreSchema);
103
+ var MemberDetailSchema = MemberCoreSchema.extend({
104
+ bio: z2.string().nullable(),
105
+ friendConunt: z2.number().int().min(0).default(0),
106
+ completedPlans: z2.number().int().min(0).default(0),
107
+ uncompletedPlans: z2.number().int().min(0).default(0),
108
+ onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
109
+ onboardingCompletedAt: z2.string().datetime().nullable().default(null),
110
+ locationConsentStatus: LocationConsentStatusSchema.default("UNKNOWN"),
111
+ nearbyMealPlanExposureAllowed: z2.boolean().default(false)
112
+ });
113
+ var FoodPreferenceItemSchema = FoodSchema.extend({});
114
+ var MemberFoodPreferenceSchema = z2.object({
115
+ liked: z2.array(FoodPreferenceItemSchema).optional(),
116
+ disliked: z2.array(FoodPreferenceItemSchema).optional(),
117
+ allergy: z2.array(FoodPreferenceItemSchema).optional()
118
+ });
119
+ var ProfileDetailResponseSchema = MemberDetailSchema;
120
+ var UpdateProfileRequestSchema = z2.object({
121
+ username: z2.string().min(1).max(50),
122
+ profileImageUrl: z2.string().url().nullable(),
123
+ bio: z2.string().max(500).nullable()
124
+ });
125
+ var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
126
+ var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(UpdatePreferenceRequestSchema);
127
+ var OnboardingDraftSchema = z2.object({
128
+ username: z2.string().min(1).max(50).optional(),
129
+ profileImageUrl: z2.string().url().nullable().optional(),
130
+ bio: z2.string().max(500).nullable().optional(),
131
+ liked: z2.array(FoodPreferenceItemSchema).optional(),
132
+ disliked: z2.array(FoodPreferenceItemSchema).optional(),
133
+ allergy: z2.array(FoodPreferenceItemSchema).optional()
134
+ });
135
+ var CreateProfileRequestSchema = CompleteOnboardingRequestSchema;
136
+
137
+ export {
138
+ UploadPresignImageResponseSchema,
139
+ UploadPresignImageRequestSchema,
140
+ MemberRoleSchema,
141
+ LocationConsentStatusSchema,
142
+ OnboardingStatusSchema,
143
+ PermissionKindSchema,
144
+ PermissionStatusSchema,
145
+ PermissionPlatformSchema,
146
+ DevicePermissionSnapshotSchema,
147
+ MemberLocationSchema,
148
+ UpdateMemberLocationRequestSchema,
149
+ UpdateMemberLocationConsentRequestSchema,
150
+ MemberLocationSettingsResponseSchema,
151
+ MemberCoreSchema,
152
+ UploadProfileImageResponseSchema,
153
+ UploadProfileImageRequestSchema,
154
+ MemberResponseSchema,
155
+ MemberSearchQuerySchema,
156
+ MemberSerachResponseSchema,
157
+ MemberDetailSchema,
158
+ MemberFoodPreferenceSchema,
159
+ ProfileDetailResponseSchema,
160
+ UpdateProfileRequestSchema,
161
+ UpdatePreferenceRequestSchema,
162
+ CompleteOnboardingRequestSchema,
163
+ OnboardingDraftSchema,
164
+ CreateProfileRequestSchema
165
+ };
@@ -5,6 +5,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
9
  var __export = (target, all) => {
9
10
  for (var name in all)
10
11
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -53,7 +54,10 @@ var import_zod7 = require("zod");
53
54
  var import_zod = require("zod");
54
55
  var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
55
56
  var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
56
- var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
57
+ var ISODateTimeStringSchema = import_zod.z.string().datetime({
58
+ offset: true,
59
+ message: "Expected ISO datetime string"
60
+ });
57
61
  var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
58
62
 
59
63
  // src/domain/common/schema/id.schema.ts
@@ -63,10 +67,16 @@ var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
63
67
  var MemberIdSchema = PositiveIntIdSchema.brand();
64
68
  var ArticleIdSchema = PositiveIntIdSchema.brand();
65
69
  var CommentIdSchema = PositiveIntIdSchema.brand();
66
- var RecruitIdSchema = PositiveIntIdSchema.brand();
67
- var PlanIdSchema = PositiveIntIdSchema.brand();
68
- var InvitationIdSchema = PositiveIntIdSchema.brand();
69
- var RoomIdSchema = NonEmptyStringIdSchema.brand();
70
+ var MealPlanIdSchema = import_zod2.z.string().uuid().brand();
71
+ var MealPlanInviteIdSchema = import_zod2.z.string().uuid().brand();
72
+ var MealPlanJoinRequestIdSchema = import_zod2.z.string().uuid().brand();
73
+ var MealPlanNearbyFriendExposureBatchIdSchema = import_zod2.z.string().uuid().brand();
74
+ var MealPlanChangeRequestIdSchema = import_zod2.z.string().uuid().brand();
75
+ var MealPlanShareLinkIdSchema = import_zod2.z.string().uuid().brand();
76
+ var MealPlanShareLinkTokenSchema = import_zod2.z.string().min(8).max(128).brand();
77
+ var MealPlanChatRoomIdSchema = import_zod2.z.string().uuid().brand();
78
+ var MealPlanChatMessageIdSchema = import_zod2.z.string().uuid().brand();
79
+ var MealGroupIdSchema = import_zod2.z.string().uuid().brand();
70
80
  var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
71
81
  var CouponIdSchema = PositiveIntIdSchema.brand();
72
82
  var SubscriptionIdSchema = PositiveIntIdSchema.brand();
@@ -93,11 +103,14 @@ var PageMetaSchema = import_zod3.z.object({
93
103
  hasNext: import_zod3.z.boolean(),
94
104
  hasPrevious: import_zod3.z.boolean()
95
105
  });
96
- var PageResponseSchema = (item) => import_zod3.z.object({
106
+ var PageResponseSchema = /* @__PURE__ */ __name((item) => import_zod3.z.object({
97
107
  items: import_zod3.z.array(item),
98
108
  meta: PageMetaSchema
99
- });
100
- var SortDirectionSchema = import_zod3.z.enum(["asc", "desc"]);
109
+ }), "PageResponseSchema");
110
+ var SortDirectionSchema = import_zod3.z.enum([
111
+ "asc",
112
+ "desc"
113
+ ]);
101
114
 
102
115
  // src/domain/member/member.schema.ts
103
116
  var import_zod5 = require("zod");
@@ -114,7 +127,65 @@ var UploadPresignImageRequestSchema = import_zod4.default.object({
114
127
  });
115
128
 
116
129
  // src/domain/member/member.schema.ts
117
- var MemberRoleSchema = import_zod5.z.enum(["USER", "ADMIN"]);
130
+ var MemberRoleSchema = import_zod5.z.enum([
131
+ "USER",
132
+ "ADMIN"
133
+ ]);
134
+ var LocationConsentStatusSchema = import_zod5.z.enum([
135
+ "UNKNOWN",
136
+ "GRANTED",
137
+ "DENIED"
138
+ ]);
139
+ var OnboardingStatusSchema = import_zod5.z.enum([
140
+ "REQUIRED",
141
+ "COMPLETED"
142
+ ]);
143
+ var PermissionKindSchema = import_zod5.z.enum([
144
+ "LOCATION",
145
+ "NOTIFICATION",
146
+ "CAMERA"
147
+ ]);
148
+ var PermissionStatusSchema = import_zod5.z.enum([
149
+ "UNKNOWN",
150
+ "PROMPT",
151
+ "GRANTED",
152
+ "DENIED",
153
+ "LIMITED",
154
+ "UNSUPPORTED"
155
+ ]);
156
+ var PermissionPlatformSchema = import_zod5.z.enum([
157
+ "WEB",
158
+ "IOS",
159
+ "ANDROID",
160
+ "UNKNOWN"
161
+ ]);
162
+ var DevicePermissionSnapshotSchema = import_zod5.z.object({
163
+ kind: PermissionKindSchema,
164
+ status: PermissionStatusSchema,
165
+ platform: PermissionPlatformSchema.default("UNKNOWN"),
166
+ canAskAgain: import_zod5.z.boolean().optional(),
167
+ checkedAt: import_zod5.z.string().datetime()
168
+ });
169
+ var MemberLocationSchema = import_zod5.z.object({
170
+ latitude: import_zod5.z.number().min(-90).max(90),
171
+ longitude: import_zod5.z.number().min(-180).max(180),
172
+ accuracyMeters: import_zod5.z.number().min(0).nullable().optional(),
173
+ capturedAt: import_zod5.z.string().datetime()
174
+ });
175
+ var UpdateMemberLocationConsentRequestSchema = import_zod5.z.object({
176
+ locationConsentStatus: LocationConsentStatusSchema,
177
+ nearbyMealPlanExposureAllowed: import_zod5.z.boolean().default(false),
178
+ mealSuggestionAllowed: import_zod5.z.boolean().optional(),
179
+ permissionSnapshot: DevicePermissionSnapshotSchema.optional()
180
+ });
181
+ var MemberLocationSettingsResponseSchema = import_zod5.z.object({
182
+ locationConsentStatus: LocationConsentStatusSchema,
183
+ nearbyMealPlanExposureAllowed: import_zod5.z.boolean(),
184
+ mealSuggestionAllowed: import_zod5.z.boolean(),
185
+ lastKnownLocation: MemberLocationSchema.nullable(),
186
+ permissionSnapshot: DevicePermissionSnapshotSchema.nullable().optional(),
187
+ updatedAt: import_zod5.z.string().datetime().nullable()
188
+ });
118
189
  var MemberCoreSchema = import_zod5.z.object({
119
190
  memberId: MemberIdSchema,
120
191
  username: import_zod5.z.string().min(1).max(50),
@@ -126,6 +197,11 @@ var MemberResponseSchema = MemberCoreSchema.pick({
126
197
  memberId: true,
127
198
  username: true,
128
199
  profileImageUrl: true
200
+ }).extend({
201
+ onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
202
+ onboardingCompletedAt: import_zod5.z.string().datetime().nullable().default(null),
203
+ locationConsentStatus: LocationConsentStatusSchema.optional(),
204
+ nearbyMealPlanExposureAllowed: import_zod5.z.boolean().optional()
129
205
  });
130
206
  var MemberSearchQuerySchema = import_zod5.z.object({
131
207
  email: import_zod5.z.string().email().optional(),
@@ -136,7 +212,11 @@ var MemberDetailSchema = MemberCoreSchema.extend({
136
212
  bio: import_zod5.z.string().nullable(),
137
213
  friendConunt: import_zod5.z.number().int().min(0).default(0),
138
214
  completedPlans: import_zod5.z.number().int().min(0).default(0),
139
- uncompletedPlans: import_zod5.z.number().int().min(0).default(0)
215
+ uncompletedPlans: import_zod5.z.number().int().min(0).default(0),
216
+ onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
217
+ onboardingCompletedAt: import_zod5.z.string().datetime().nullable().default(null),
218
+ locationConsentStatus: LocationConsentStatusSchema.default("UNKNOWN"),
219
+ nearbyMealPlanExposureAllowed: import_zod5.z.boolean().default(false)
140
220
  });
141
221
  var FoodPreferenceItemSchema = FoodSchema.extend({});
142
222
  var MemberFoodPreferenceSchema = import_zod5.z.object({
@@ -150,9 +230,15 @@ var UpdateProfileRequestSchema = import_zod5.z.object({
150
230
  bio: import_zod5.z.string().max(500).nullable()
151
231
  });
152
232
  var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
153
- var CreateProfileRequestSchema = UpdateProfileRequestSchema.merge(
154
- UpdatePreferenceRequestSchema
155
- );
233
+ var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(UpdatePreferenceRequestSchema);
234
+ var OnboardingDraftSchema = import_zod5.z.object({
235
+ username: import_zod5.z.string().min(1).max(50).optional(),
236
+ profileImageUrl: import_zod5.z.string().url().nullable().optional(),
237
+ bio: import_zod5.z.string().max(500).nullable().optional(),
238
+ liked: import_zod5.z.array(FoodPreferenceItemSchema).optional(),
239
+ disliked: import_zod5.z.array(FoodPreferenceItemSchema).optional(),
240
+ allergy: import_zod5.z.array(FoodPreferenceItemSchema).optional()
241
+ });
156
242
 
157
243
  // src/domain/restaurant/restaurant.schema.ts
158
244
  var import_zod6 = require("zod");
@@ -184,7 +270,11 @@ var KakaoPlaceRawSchema = import_zod6.z.object({
184
270
  });
185
271
 
186
272
  // src/domain/article/article.schema.ts
187
- var ArticleSortBySchema = import_zod7.z.enum(["createdAt", "likeCount", "commentCount"]);
273
+ var ArticleSortBySchema = import_zod7.z.enum([
274
+ "createdAt",
275
+ "likeCount",
276
+ "commentCount"
277
+ ]);
188
278
  var ArticleListQuerySchema = PageQuerySchema.extend({
189
279
  sortBy: ArticleSortBySchema.optional().default("createdAt"),
190
280
  direction: SortDirectionSchema.optional().default("desc")
@@ -200,7 +290,8 @@ var CreateArticleRequestSchema = import_zod7.z.object({
200
290
  mealDate: ISODateStringSchema,
201
291
  restaurant: RestaurantSchema,
202
292
  taggedMemberIds: import_zod7.z.array(MemberIdSchema).default([]),
203
- foodAnalysis: FoodAnalysisResultSchema.optional()
293
+ foodAnalysis: FoodAnalysisResultSchema.optional(),
294
+ mealPlanId: MealPlanIdSchema.optional()
204
295
  });
205
296
  var CreateCommentRequestSchema = import_zod7.z.object({
206
297
  content: import_zod7.z.string().min(1).max(500),
@@ -220,6 +311,7 @@ var ArticleCoreSchema = import_zod7.z.object({
220
311
  imageUrl: import_zod7.z.string().url(),
221
312
  mealDate: ISODateStringSchema,
222
313
  restaurant: RestaurantSchema,
314
+ mealPlanId: MealPlanIdSchema.nullable(),
223
315
  createdAt: ISODateTimeStringSchema,
224
316
  updatedAt: ISODateTimeStringSchema,
225
317
  expiresAt: ISODateTimeStringSchema,
@@ -0,0 +1,254 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const ArticleSortBySchema: z.ZodEnum<{
4
+ createdAt: "createdAt";
5
+ likeCount: "likeCount";
6
+ commentCount: "commentCount";
7
+ }>;
8
+ declare const ArticleListQuerySchema: z.ZodObject<{
9
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
11
+ sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12
+ createdAt: "createdAt";
13
+ likeCount: "likeCount";
14
+ commentCount: "commentCount";
15
+ }>>>;
16
+ direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
17
+ asc: "asc";
18
+ desc: "desc";
19
+ }>>>;
20
+ }, z.core.$strip>;
21
+ declare const UploadArticleImageResponseSchema: z.ZodObject<{
22
+ key: z.ZodString;
23
+ putUrl: z.ZodString;
24
+ cdnUrl: z.ZodString;
25
+ }, z.core.$strip>;
26
+ declare const UploadArticleImageRequestSchema: z.ZodObject<{
27
+ contentType: z.ZodString;
28
+ }, z.core.$strip>;
29
+ declare const FoodAnalysisResultSchema: z.ZodObject<{
30
+ code: z.core.$ZodBranded<z.ZodString, "FoodCode", "out">;
31
+ label: z.core.$ZodBranded<z.ZodString, "FoodLabel", "out">;
32
+ confidence: z.ZodNumber;
33
+ tsUtc: z.ZodOptional<z.ZodString>;
34
+ }, z.core.$strip>;
35
+ declare const CreateArticleRequestSchema: z.ZodObject<{
36
+ imageUrl: z.ZodString;
37
+ mealDate: z.ZodString;
38
+ restaurant: z.ZodObject<{
39
+ restaurantId: z.core.$ZodBranded<z.ZodString, "RestaurantId", "out">;
40
+ placeName: z.ZodString;
41
+ categoryName: z.ZodString;
42
+ categoryGroupName: z.ZodString;
43
+ distance: z.ZodOptional<z.ZodString>;
44
+ roadAddressName: z.ZodString;
45
+ addressName: z.ZodString;
46
+ phone: z.ZodNullable<z.ZodString>;
47
+ placeUrl: z.ZodNullable<z.ZodString>;
48
+ lat: z.ZodNumber;
49
+ lng: z.ZodNumber;
50
+ }, z.core.$strip>;
51
+ taggedMemberIds: z.ZodDefault<z.ZodArray<z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">>>;
52
+ foodAnalysis: z.ZodOptional<z.ZodObject<{
53
+ code: z.core.$ZodBranded<z.ZodString, "FoodCode", "out">;
54
+ label: z.core.$ZodBranded<z.ZodString, "FoodLabel", "out">;
55
+ confidence: z.ZodNumber;
56
+ tsUtc: z.ZodOptional<z.ZodString>;
57
+ }, z.core.$strip>>;
58
+ mealPlanId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MealPlanId", "out">>;
59
+ }, z.core.$strip>;
60
+ declare const CreateCommentRequestSchema: z.ZodObject<{
61
+ content: z.ZodString;
62
+ parentCommentId: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodNumber, "CommentId", "out">>>;
63
+ }, z.core.$strip>;
64
+ declare const ArticleCommentSchema: z.ZodObject<{
65
+ commentId: z.core.$ZodBranded<z.ZodNumber, "CommentId", "out">;
66
+ author: z.ZodObject<{
67
+ memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
68
+ username: z.ZodString;
69
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ }, z.core.$strip>;
71
+ parentCommentId: z.ZodNullable<z.core.$ZodBranded<z.ZodNumber, "CommentId", "out">>;
72
+ content: z.ZodString;
73
+ createdAt: z.ZodString;
74
+ updatedAt: z.ZodString;
75
+ }, z.core.$strip>;
76
+ declare const ArticleCoreSchema: z.ZodObject<{
77
+ articleId: z.core.$ZodBranded<z.ZodNumber, "ArticleId", "out">;
78
+ author: z.ZodObject<{
79
+ memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
80
+ username: z.ZodString;
81
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ }, z.core.$strip>;
83
+ imageUrl: z.ZodString;
84
+ mealDate: z.ZodString;
85
+ restaurant: z.ZodObject<{
86
+ restaurantId: z.core.$ZodBranded<z.ZodString, "RestaurantId", "out">;
87
+ placeName: z.ZodString;
88
+ categoryName: z.ZodString;
89
+ categoryGroupName: z.ZodString;
90
+ distance: z.ZodOptional<z.ZodString>;
91
+ roadAddressName: z.ZodString;
92
+ addressName: z.ZodString;
93
+ phone: z.ZodNullable<z.ZodString>;
94
+ placeUrl: z.ZodNullable<z.ZodString>;
95
+ lat: z.ZodNumber;
96
+ lng: z.ZodNumber;
97
+ }, z.core.$strip>;
98
+ mealPlanId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MealPlanId", "out">>;
99
+ createdAt: z.ZodString;
100
+ updatedAt: z.ZodString;
101
+ expiresAt: z.ZodString;
102
+ taggedMembers: z.ZodArray<z.ZodObject<{
103
+ memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
104
+ username: z.ZodString;
105
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ }, z.core.$strip>>;
107
+ }, z.core.$strip>;
108
+ declare const ArticleSummaryResponseSchema: z.ZodObject<{
109
+ articleId: z.core.$ZodBranded<z.ZodNumber, "ArticleId", "out">;
110
+ author: z.ZodObject<{
111
+ memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
112
+ username: z.ZodString;
113
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
+ }, z.core.$strip>;
115
+ imageUrl: z.ZodString;
116
+ mealDate: z.ZodString;
117
+ restaurant: z.ZodObject<{
118
+ restaurantId: z.core.$ZodBranded<z.ZodString, "RestaurantId", "out">;
119
+ placeName: z.ZodString;
120
+ categoryName: z.ZodString;
121
+ categoryGroupName: z.ZodString;
122
+ distance: z.ZodOptional<z.ZodString>;
123
+ roadAddressName: z.ZodString;
124
+ addressName: z.ZodString;
125
+ phone: z.ZodNullable<z.ZodString>;
126
+ placeUrl: z.ZodNullable<z.ZodString>;
127
+ lat: z.ZodNumber;
128
+ lng: z.ZodNumber;
129
+ }, z.core.$strip>;
130
+ mealPlanId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MealPlanId", "out">>;
131
+ createdAt: z.ZodString;
132
+ updatedAt: z.ZodString;
133
+ expiresAt: z.ZodString;
134
+ taggedMembers: z.ZodArray<z.ZodObject<{
135
+ memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
136
+ username: z.ZodString;
137
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ }, z.core.$strip>>;
139
+ likeCount: z.ZodNumber;
140
+ commentCount: z.ZodNumber;
141
+ likedByMe: z.ZodBoolean;
142
+ }, z.core.$strip>;
143
+ declare const ArticleLikeResponseSchema: z.ZodObject<{
144
+ liked: z.ZodBoolean;
145
+ likeCount: z.ZodNumber;
146
+ }, z.core.$strip>;
147
+ declare const ArticleDetailResponseSchema: z.ZodObject<{
148
+ articleId: z.core.$ZodBranded<z.ZodNumber, "ArticleId", "out">;
149
+ author: z.ZodObject<{
150
+ memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
151
+ username: z.ZodString;
152
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
+ }, z.core.$strip>;
154
+ imageUrl: z.ZodString;
155
+ mealDate: z.ZodString;
156
+ restaurant: z.ZodObject<{
157
+ restaurantId: z.core.$ZodBranded<z.ZodString, "RestaurantId", "out">;
158
+ placeName: z.ZodString;
159
+ categoryName: z.ZodString;
160
+ categoryGroupName: z.ZodString;
161
+ distance: z.ZodOptional<z.ZodString>;
162
+ roadAddressName: z.ZodString;
163
+ addressName: z.ZodString;
164
+ phone: z.ZodNullable<z.ZodString>;
165
+ placeUrl: z.ZodNullable<z.ZodString>;
166
+ lat: z.ZodNumber;
167
+ lng: z.ZodNumber;
168
+ }, z.core.$strip>;
169
+ mealPlanId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MealPlanId", "out">>;
170
+ createdAt: z.ZodString;
171
+ updatedAt: z.ZodString;
172
+ expiresAt: z.ZodString;
173
+ taggedMembers: z.ZodArray<z.ZodObject<{
174
+ memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
175
+ username: z.ZodString;
176
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
+ }, z.core.$strip>>;
178
+ likeCount: z.ZodNumber;
179
+ commentCount: z.ZodNumber;
180
+ likedByMe: z.ZodBoolean;
181
+ comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
182
+ commentId: z.core.$ZodBranded<z.ZodNumber, "CommentId", "out">;
183
+ author: z.ZodObject<{
184
+ memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
185
+ username: z.ZodString;
186
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
187
+ }, z.core.$strip>;
188
+ parentCommentId: z.ZodNullable<z.core.$ZodBranded<z.ZodNumber, "CommentId", "out">>;
189
+ content: z.ZodString;
190
+ createdAt: z.ZodString;
191
+ updatedAt: z.ZodString;
192
+ }, z.core.$strip>>>;
193
+ }, z.core.$strip>;
194
+ declare const PageArticleSummaryResponseSchema: z.ZodObject<{
195
+ items: z.ZodArray<z.ZodObject<{
196
+ articleId: z.core.$ZodBranded<z.ZodNumber, "ArticleId", "out">;
197
+ author: z.ZodObject<{
198
+ memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
199
+ username: z.ZodString;
200
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
201
+ }, z.core.$strip>;
202
+ imageUrl: z.ZodString;
203
+ mealDate: z.ZodString;
204
+ restaurant: z.ZodObject<{
205
+ restaurantId: z.core.$ZodBranded<z.ZodString, "RestaurantId", "out">;
206
+ placeName: z.ZodString;
207
+ categoryName: z.ZodString;
208
+ categoryGroupName: z.ZodString;
209
+ distance: z.ZodOptional<z.ZodString>;
210
+ roadAddressName: z.ZodString;
211
+ addressName: z.ZodString;
212
+ phone: z.ZodNullable<z.ZodString>;
213
+ placeUrl: z.ZodNullable<z.ZodString>;
214
+ lat: z.ZodNumber;
215
+ lng: z.ZodNumber;
216
+ }, z.core.$strip>;
217
+ mealPlanId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MealPlanId", "out">>;
218
+ createdAt: z.ZodString;
219
+ updatedAt: z.ZodString;
220
+ expiresAt: z.ZodString;
221
+ taggedMembers: z.ZodArray<z.ZodObject<{
222
+ memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
223
+ username: z.ZodString;
224
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
+ }, z.core.$strip>>;
226
+ likeCount: z.ZodNumber;
227
+ commentCount: z.ZodNumber;
228
+ likedByMe: z.ZodBoolean;
229
+ }, z.core.$strip>>;
230
+ meta: z.ZodObject<{
231
+ page: z.ZodNumber;
232
+ size: z.ZodNumber;
233
+ totalItems: z.ZodNumber;
234
+ totalPages: z.ZodNumber;
235
+ hasNext: z.ZodBoolean;
236
+ hasPrevious: z.ZodBoolean;
237
+ }, z.core.$strip>;
238
+ }, z.core.$strip>;
239
+
240
+ type CreateArticleRequest = z.infer<typeof CreateArticleRequestSchema>;
241
+ type CreateCommentRequest = z.infer<typeof CreateCommentRequestSchema>;
242
+ type ArticleSortBy = z.infer<typeof ArticleSortBySchema>;
243
+ type ArticleListQueryRequest = z.infer<typeof ArticleListQuerySchema>;
244
+ type FoodAnalysisResult = z.infer<typeof FoodAnalysisResultSchema>;
245
+ type ArticleSummaryResponse = z.infer<typeof ArticleSummaryResponseSchema>;
246
+ type ArticleLikeResponse = z.infer<typeof ArticleLikeResponseSchema>;
247
+ type ArticleDetailResponse = z.infer<typeof ArticleDetailResponseSchema>;
248
+ type PageArticleSummaryResponse = z.infer<typeof PageArticleSummaryResponseSchema>;
249
+ type UploadArticleImageResponse = z.infer<typeof UploadArticleImageResponseSchema>;
250
+ type UploadArticleImageeRquest = z.infer<typeof UploadArticleImageRequestSchema>;
251
+ type ArticleCore = z.infer<typeof ArticleCoreSchema>;
252
+ type ArticleComment = z.infer<typeof ArticleCommentSchema>;
253
+
254
+ export { type ArticleComment, ArticleCommentSchema, type ArticleCore, ArticleCoreSchema, type ArticleDetailResponse, ArticleDetailResponseSchema, type ArticleLikeResponse, ArticleLikeResponseSchema, type ArticleListQueryRequest, ArticleListQuerySchema, type ArticleSortBy, ArticleSortBySchema, type ArticleSummaryResponse, ArticleSummaryResponseSchema, type CreateArticleRequest, CreateArticleRequestSchema, type CreateCommentRequest, CreateCommentRequestSchema, type FoodAnalysisResult, FoodAnalysisResultSchema, type PageArticleSummaryResponse, PageArticleSummaryResponseSchema, UploadArticleImageRequestSchema, type UploadArticleImageResponse, UploadArticleImageResponseSchema, type UploadArticleImageeRquest };