@kimdaegyu/babmukdang-shared 1.1.1 → 1.1.4

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 (46) hide show
  1. package/dist/{chunk-AATETFLU.js → chunk-23FZ4MAS.js} +33 -19
  2. package/dist/{chunk-ET2Z5ZYA.js → chunk-GTVEQYJW.js} +1 -1
  3. package/dist/{chunk-4XAGRJUM.js → chunk-H77ISYYC.js} +0 -10
  4. package/dist/{chunk-JNJRBUKR.js → chunk-J76VB5SE.js} +1 -1
  5. package/dist/{chunk-ADIREWTX.js → chunk-KRVEQVRC.js} +1 -1
  6. package/dist/{chunk-NAPCX4Q6.js → chunk-M5OSCHMV.js} +3 -3
  7. package/dist/{chunk-XWTMYXPO.js → chunk-RLVHDFEV.js} +8 -3
  8. package/dist/{chunk-XTBVYY5B.js → chunk-SOHYA6XL.js} +40 -22
  9. package/dist/{chunk-YJ7RUOEJ.js → chunk-U6OQQOPN.js} +2 -2
  10. package/dist/{chunk-O56CI56W.js → chunk-UJJMW7II.js} +1 -1
  11. package/dist/{chunk-RHQHBUO4.js → chunk-VAWYU5JG.js} +1 -1
  12. package/dist/{chunk-M7HH7FMO.js → chunk-W3YQYI4R.js} +4 -4
  13. package/dist/{chunk-5QLCZOPJ.js → chunk-YGFAVC5N.js} +1 -1
  14. package/dist/domain/article/index.cjs +6 -0
  15. package/dist/domain/article/index.d.cts +12 -1
  16. package/dist/domain/article/index.d.ts +12 -1
  17. package/dist/domain/article/index.js +6 -4
  18. package/dist/domain/auth/index.js +3 -3
  19. package/dist/domain/common/index.cjs +36 -11
  20. package/dist/domain/common/index.d.cts +229 -15
  21. package/dist/domain/common/index.d.ts +229 -15
  22. package/dist/domain/common/index.js +26 -14
  23. package/dist/domain/friend/index.js +3 -3
  24. package/dist/domain/index.cjs +38 -11
  25. package/dist/domain/index.d.cts +2 -2
  26. package/dist/domain/index.d.ts +2 -2
  27. package/dist/domain/index.js +35 -21
  28. package/dist/domain/invitation/index.js +2 -2
  29. package/dist/domain/meal/index.js +3 -3
  30. package/dist/domain/member/index.d.cts +1 -1
  31. package/dist/domain/member/index.d.ts +1 -1
  32. package/dist/domain/member/index.js +2 -2
  33. package/dist/domain/plan/index.js +5 -5
  34. package/dist/domain/promotion/index.js +2 -2
  35. package/dist/domain/recruit/index.js +12 -12
  36. package/dist/domain/restaurant/index.js +2 -2
  37. package/dist/domain/room/index.js +4 -4
  38. package/dist/{id-_a-oManb.d.cts → id-dAYxfjZn.d.cts} +7 -1
  39. package/dist/{id-_a-oManb.d.ts → id-dAYxfjZn.d.ts} +7 -1
  40. package/dist/{index-HEHaDbrV.d.cts → index-CZT6irsm.d.cts} +11 -3
  41. package/dist/{index-CqcSqpDV.d.ts → index-DDLVbMTB.d.ts} +11 -3
  42. package/dist/index.cjs +30 -196
  43. package/dist/index.d.cts +9 -72
  44. package/dist/index.d.ts +9 -72
  45. package/dist/index.js +14 -181
  46. package/package.json +55 -55
@@ -68,11 +68,17 @@ __export(common_exports, {
68
68
  makeApiResponseSchema: () => makeApiResponseSchema,
69
69
  makeApiSuccessSchema: () => makeApiSuccessSchema,
70
70
  toArticleId: () => toArticleId,
71
+ toCommentId: () => toCommentId,
72
+ toCouponId: () => toCouponId,
73
+ toFriendRequestId: () => toFriendRequestId,
71
74
  toInvitationId: () => toInvitationId,
72
75
  toMemberId: () => toMemberId,
76
+ toPlanId: () => toPlanId,
73
77
  toRecruitId: () => toRecruitId,
78
+ toReferralCode: () => toReferralCode,
74
79
  toRestaurantId: () => toRestaurantId,
75
- toRoomId: () => toRoomId
80
+ toRoomId: () => toRoomId,
81
+ toSubscriptionId: () => toSubscriptionId
76
82
  });
77
83
  module.exports = __toCommonJS(common_exports);
78
84
 
@@ -260,6 +266,10 @@ var ArticleSummaryResponseSchema = ArticleCoreSchema.extend({
260
266
  commentCount: import_zod7.z.number().int().min(0),
261
267
  likedByMe: import_zod7.z.boolean()
262
268
  });
269
+ var ArticleLikeResponseSchema = import_zod7.z.object({
270
+ liked: import_zod7.z.boolean(),
271
+ likeCount: import_zod7.z.number().int().min(0)
272
+ });
263
273
  var ArticleDetailResponseSchema = ArticleSummaryResponseSchema.extend({
264
274
  comments: import_zod7.z.array(ArticleCommentSchema).optional()
265
275
  });
@@ -576,7 +586,6 @@ var endpoint = (contract) => ({
576
586
 
577
587
  // src/domain/common/contracts/api.ts
578
588
  var memberIdParam = import_zod19.z.object({ memberId: MemberIdSchema });
579
- var authorIdParam = import_zod19.z.object({ memberId: MemberIdSchema });
580
589
  var articleIdParam = import_zod19.z.object({ articleId: ArticleIdSchema });
581
590
  var commentIdParam = import_zod19.z.object({ commentId: CommentIdSchema });
582
591
  var recruitIdParam = import_zod19.z.object({ recruitId: RecruitIdSchema });
@@ -599,8 +608,11 @@ var apiContract = {
599
608
  memberProfile: endpoint({ method: "GET", path: "/members/:memberId", pathParams: memberIdParam, response: ProfileDetailResponseSchema }),
600
609
  presignProfileImage: endpoint({ method: "POST", path: "/uploads/presign-profile", response: PresignProfileResponseSchema }),
601
610
  createProfile: endpoint({ method: "POST", path: "/members/onboarding", body: CreateProfileRequestSchema, response: NoContentSchema }),
602
- updateProfile: endpoint({ method: "PATCH", path: "/members/me/profile", body: UpdateProfileRequestSchema, response: NoContentSchema }),
603
- updatePreferences: endpoint({ method: "PATCH", path: "/members/me/preferences", body: UpdatePreferenceRequestSchema, response: NoContentSchema })
611
+ updateProfile: endpoint({ method: "PATCH", path: "/members/me/profile", body: UpdateProfileRequestSchema, response: NoContentSchema })
612
+ },
613
+ preferences: {
614
+ my: endpoint({ method: "GET", path: "/preferences/me", response: MemberFoodPreferenceSchema }),
615
+ update: endpoint({ method: "PATCH", path: "/preferences/me", body: UpdatePreferenceRequestSchema, response: NoContentSchema })
604
616
  },
605
617
  mealStatus: {
606
618
  my: endpoint({ method: "GET", path: "/meal-status", response: MealStatusResponseSchema }),
@@ -609,14 +621,15 @@ var apiContract = {
609
621
  },
610
622
  articles: {
611
623
  list: endpoint({ method: "GET", path: "/articles/home", query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
612
- byAuthor: endpoint({ method: "GET", path: "/articles/by-author/:authorId", pathParams: authorIdParam, response: PageArticleSummaryResponseSchema }),
624
+ byMember: endpoint({ method: "GET", path: "/articles/by-author/:memberId", pathParams: memberIdParam, query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
613
625
  my: endpoint({ method: "GET", path: "/articles/my", response: PageArticleSummaryResponseSchema }),
614
626
  detail: endpoint({ method: "GET", path: "/articles/:articleId", pathParams: articleIdParam, response: ArticleDetailResponseSchema }),
615
- create: endpoint({ method: "POST", path: "/articles", body: CreateArticleRequestSchema, response: NoContentSchema }),
616
- createComment: endpoint({ method: "POST", path: "/articles/:articleId/comments", pathParams: articleIdParam, body: CreateCommentRequestSchema, response: NoContentSchema }),
627
+ create: endpoint({ method: "POST", path: "/articles", body: CreateArticleRequestSchema, response: CreatedEntityIdResponseSchema }),
628
+ like: endpoint({ method: "POST", path: "/articles/:articleId/like", pathParams: articleIdParam, response: ArticleLikeResponseSchema }),
629
+ createComment: endpoint({ method: "POST", path: "/articles/:articleId/comments", pathParams: articleIdParam, body: CreateCommentRequestSchema, response: CreatedEntityIdResponseSchema }),
617
630
  presignArticleImage: endpoint({ method: "POST", path: "/uploads/presign-article", response: PresignArticleResponseSchema }),
618
631
  delete: endpoint({ method: "DELETE", path: "/articles/:articleId", pathParams: articleIdParam, response: NoContentSchema }),
619
- deleteComment: endpoint({ method: "DELETE", path: "/articles/:articleId/comments/:commentId", pathParams: articleIdParam.merge(commentIdParam), response: NoContentSchema })
632
+ deleteComment: endpoint({ method: "DELETE", path: "/articles/comments/:commentId", pathParams: commentIdParam, response: NoContentSchema })
620
633
  // TODO: 게시물 수정 기능
621
634
  },
622
635
  recruits: {
@@ -641,8 +654,8 @@ var apiContract = {
641
654
  list: endpoint({ method: "GET", path: "/friends", response: import_zod19.z.array(FriendListItemResponseSchema) }),
642
655
  blockList: endpoint({ method: "GET", path: "/friends/blocks", response: import_zod19.z.array(FriendBlockItemResponseSchema) }),
643
656
  incomingRequest: endpoint({ method: "GET", path: "/friends/requests/incoming", response: import_zod19.z.array(FriendRequestItemResponseSchema) }),
644
- outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/outgoint", response: import_zod19.z.array(FriendRequestItemResponseSchema) }),
645
- sendRequest: endpoint({ method: "POST", path: "/friends/requests/:memberId", pathParams: friendRequestIdParam, response: NoContentSchema }),
657
+ outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/outgoing", response: import_zod19.z.array(FriendRequestItemResponseSchema) }),
658
+ sendRequest: endpoint({ method: "POST", path: "/friends/requests/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
646
659
  acceptRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/accept", pathParams: friendRequestIdParam, response: NoContentSchema }),
647
660
  rejectRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/reject", pathParams: friendRequestIdParam, response: NoContentSchema }),
648
661
  block: endpoint({ method: "POST", path: "/friends/blocks/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
@@ -708,6 +721,12 @@ var toRecruitId = (value) => RecruitIdSchema.parse(value);
708
721
  var toInvitationId = (value) => InvitationIdSchema.parse(value);
709
722
  var toRoomId = (value) => RoomIdSchema.parse(value);
710
723
  var toRestaurantId = (value) => RestaurantIdSchema.parse(value);
724
+ var toCommentId = (value) => CommentIdSchema.parse(value);
725
+ var toPlanId = (value) => PlanIdSchema.parse(value);
726
+ var toCouponId = (value) => CouponIdSchema.parse(value);
727
+ var toSubscriptionId = (value) => SubscriptionIdSchema.parse(value);
728
+ var toFriendRequestId = (value) => FriendRequestIdSchema.parse(value);
729
+ var toReferralCode = (value) => ReferralCodeSchema.parse(value);
711
730
  // Annotate the CommonJS export names for ESM import in node:
712
731
  0 && (module.exports = {
713
732
  ApiFailureSchema,
@@ -748,9 +767,15 @@ var toRestaurantId = (value) => RestaurantIdSchema.parse(value);
748
767
  makeApiResponseSchema,
749
768
  makeApiSuccessSchema,
750
769
  toArticleId,
770
+ toCommentId,
771
+ toCouponId,
772
+ toFriendRequestId,
751
773
  toInvitationId,
752
774
  toMemberId,
775
+ toPlanId,
753
776
  toRecruitId,
777
+ toReferralCode,
754
778
  toRestaurantId,
755
- toRoomId
779
+ toRoomId,
780
+ toSubscriptionId
756
781
  });
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export { A as ArticleId, a as ArticleIdSchema, B as Brand, C as CommentId, b as CommentIdSchema, c as CouponId, d as CouponIdSchema, F as Food, e as FoodCode, f as FoodCodeSchema, g as FoodLabel, h as FoodLabelSchema, i as FoodSchema, j as FriendRequestId, k as FriendRequestIdSchema, I as InvitationId, l as InvitationIdSchema, M as MemberId, m as MemberIdSchema, N as NonEmptyStringIdSchema, P as PlanId, n as PlanIdSchema, o as PositiveIntIdSchema, R as RecruitId, p as RecruitIdSchema, q as ReferralCode, r as ReferralCodeSchema, s as RestaurantId, t as RestaurantIdSchema, u as RoomId, v as RoomIdSchema, S as SubscriptionId, w as SubscriptionIdSchema, U as UserId, x as UserIdSchema, y as toArticleId, z as toInvitationId, D as toMemberId, E as toRecruitId, G as toRestaurantId, H as toRoomId } from '../../id-_a-oManb.cjs';
2
+ export { A as ArticleId, a as ArticleIdSchema, B as Brand, C as CommentId, b as CommentIdSchema, c as CouponId, d as CouponIdSchema, F as Food, e as FoodCode, f as FoodCodeSchema, g as FoodLabel, h as FoodLabelSchema, i as FoodSchema, j as FriendRequestId, k as FriendRequestIdSchema, I as InvitationId, l as InvitationIdSchema, M as MemberId, m as MemberIdSchema, N as NonEmptyStringIdSchema, P as PlanId, n as PlanIdSchema, o as PositiveIntIdSchema, R as RecruitId, p as RecruitIdSchema, q as ReferralCode, r as ReferralCodeSchema, s as RestaurantId, t as RestaurantIdSchema, u as RoomId, v as RoomIdSchema, S as SubscriptionId, w as SubscriptionIdSchema, U as UserId, x as UserIdSchema, y as toArticleId, z as toCommentId, D as toCouponId, E as toFriendRequestId, G as toInvitationId, H as toMemberId, J as toPlanId, K as toRecruitId, L as toReferralCode, O as toRestaurantId, Q as toRoomId, T as toSubscriptionId } from '../../id-dAYxfjZn.cjs';
3
3
 
4
4
  declare const apiContract: {
5
5
  readonly auth: {
@@ -264,7 +264,67 @@ declare const apiContract: {
264
264
  profileImageUrl: string | null;
265
265
  bio: string | null;
266
266
  }>, z.ZodNull>;
267
- readonly updatePreferences: EndpointContract<"PATCH", "/members/me/preferences", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
267
+ };
268
+ readonly preferences: {
269
+ readonly my: EndpointContract<"GET", "/preferences/me", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
270
+ liked: z.ZodOptional<z.ZodArray<z.ZodObject<{
271
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
272
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
273
+ }, "strip", z.ZodTypeAny, {
274
+ code: string & z.BRAND<"FoodCode">;
275
+ label: string & z.BRAND<"FoodLabel">;
276
+ }, {
277
+ code: string;
278
+ label: string;
279
+ }>, "many">>;
280
+ disliked: z.ZodOptional<z.ZodArray<z.ZodObject<{
281
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
282
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
283
+ }, "strip", z.ZodTypeAny, {
284
+ code: string & z.BRAND<"FoodCode">;
285
+ label: string & z.BRAND<"FoodLabel">;
286
+ }, {
287
+ code: string;
288
+ label: string;
289
+ }>, "many">>;
290
+ allergy: z.ZodOptional<z.ZodArray<z.ZodObject<{
291
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
292
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
293
+ }, "strip", z.ZodTypeAny, {
294
+ code: string & z.BRAND<"FoodCode">;
295
+ label: string & z.BRAND<"FoodLabel">;
296
+ }, {
297
+ code: string;
298
+ label: string;
299
+ }>, "many">>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ liked?: {
302
+ code: string & z.BRAND<"FoodCode">;
303
+ label: string & z.BRAND<"FoodLabel">;
304
+ }[] | undefined;
305
+ disliked?: {
306
+ code: string & z.BRAND<"FoodCode">;
307
+ label: string & z.BRAND<"FoodLabel">;
308
+ }[] | undefined;
309
+ allergy?: {
310
+ code: string & z.BRAND<"FoodCode">;
311
+ label: string & z.BRAND<"FoodLabel">;
312
+ }[] | undefined;
313
+ }, {
314
+ liked?: {
315
+ code: string;
316
+ label: string;
317
+ }[] | undefined;
318
+ disliked?: {
319
+ code: string;
320
+ label: string;
321
+ }[] | undefined;
322
+ allergy?: {
323
+ code: string;
324
+ label: string;
325
+ }[] | undefined;
326
+ }>>;
327
+ readonly update: EndpointContract<"PATCH", "/preferences/me", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
268
328
  liked: z.ZodOptional<z.ZodArray<z.ZodObject<{
269
329
  code: z.ZodBranded<z.ZodString, "FoodCode">;
270
330
  label: z.ZodBranded<z.ZodString, "FoodLabel">;
@@ -645,13 +705,29 @@ declare const apiContract: {
645
705
  hasPrevious: boolean;
646
706
  };
647
707
  }>>;
648
- readonly byAuthor: EndpointContract<"GET", "/articles/by-author/:authorId", z.ZodObject<{
708
+ readonly byMember: EndpointContract<"GET", "/articles/by-author/:memberId", z.ZodObject<{
649
709
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
650
710
  }, "strip", z.ZodTypeAny, {
651
711
  memberId: number & z.BRAND<"MemberId">;
652
712
  }, {
653
713
  memberId: number;
654
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
714
+ }>, z.ZodObject<{
715
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
716
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
717
+ } & {
718
+ sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["createdAt", "likeCount", "commentCount"]>>>;
719
+ direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ page: number;
722
+ size: number;
723
+ sortBy: "createdAt" | "likeCount" | "commentCount";
724
+ direction: "asc" | "desc";
725
+ }, {
726
+ page?: number | undefined;
727
+ size?: number | undefined;
728
+ sortBy?: "createdAt" | "likeCount" | "commentCount" | undefined;
729
+ direction?: "asc" | "desc" | undefined;
730
+ }>, z.ZodUndefined, z.ZodObject<{
655
731
  items: z.ZodArray<z.ZodObject<{
656
732
  articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
657
733
  author: z.ZodObject<{
@@ -1471,7 +1547,86 @@ declare const apiContract: {
1471
1547
  confidence: number;
1472
1548
  tsUtc?: string | undefined;
1473
1549
  } | undefined;
1474
- }>, z.ZodNull>;
1550
+ }>, z.ZodDiscriminatedUnion<"entity", [z.ZodObject<{
1551
+ entity: z.ZodLiteral<"article">;
1552
+ id: z.ZodBranded<z.ZodNumber, "ArticleId">;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ id: number & z.BRAND<"ArticleId">;
1555
+ entity: "article";
1556
+ }, {
1557
+ id: number;
1558
+ entity: "article";
1559
+ }>, z.ZodObject<{
1560
+ entity: z.ZodLiteral<"comment">;
1561
+ id: z.ZodBranded<z.ZodNumber, "CommentId">;
1562
+ }, "strip", z.ZodTypeAny, {
1563
+ id: number & z.BRAND<"CommentId">;
1564
+ entity: "comment";
1565
+ }, {
1566
+ id: number;
1567
+ entity: "comment";
1568
+ }>, z.ZodObject<{
1569
+ entity: z.ZodLiteral<"recruit">;
1570
+ id: z.ZodBranded<z.ZodNumber, "RecruitId">;
1571
+ }, "strip", z.ZodTypeAny, {
1572
+ id: number & z.BRAND<"RecruitId">;
1573
+ entity: "recruit";
1574
+ }, {
1575
+ id: number;
1576
+ entity: "recruit";
1577
+ }>, z.ZodObject<{
1578
+ entity: z.ZodLiteral<"invitation">;
1579
+ id: z.ZodBranded<z.ZodNumber, "InvitationId">;
1580
+ }, "strip", z.ZodTypeAny, {
1581
+ id: number & z.BRAND<"InvitationId">;
1582
+ entity: "invitation";
1583
+ }, {
1584
+ id: number;
1585
+ entity: "invitation";
1586
+ }>, z.ZodObject<{
1587
+ entity: z.ZodLiteral<"subscription">;
1588
+ id: z.ZodBranded<z.ZodNumber, "SubscriptionId">;
1589
+ }, "strip", z.ZodTypeAny, {
1590
+ id: number & z.BRAND<"SubscriptionId">;
1591
+ entity: "subscription";
1592
+ }, {
1593
+ id: number;
1594
+ entity: "subscription";
1595
+ }>, z.ZodObject<{
1596
+ entity: z.ZodLiteral<"coupon">;
1597
+ id: z.ZodBranded<z.ZodNumber, "CouponId">;
1598
+ }, "strip", z.ZodTypeAny, {
1599
+ id: number & z.BRAND<"CouponId">;
1600
+ entity: "coupon";
1601
+ }, {
1602
+ id: number;
1603
+ entity: "coupon";
1604
+ }>, z.ZodObject<{
1605
+ entity: z.ZodLiteral<"plan">;
1606
+ id: z.ZodBranded<z.ZodNumber, "PlanId">;
1607
+ }, "strip", z.ZodTypeAny, {
1608
+ id: number & z.BRAND<"PlanId">;
1609
+ entity: "plan";
1610
+ }, {
1611
+ id: number;
1612
+ entity: "plan";
1613
+ }>]>>;
1614
+ readonly like: EndpointContract<"POST", "/articles/:articleId/like", z.ZodObject<{
1615
+ articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1616
+ }, "strip", z.ZodTypeAny, {
1617
+ articleId: number & z.BRAND<"ArticleId">;
1618
+ }, {
1619
+ articleId: number;
1620
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1621
+ liked: z.ZodBoolean;
1622
+ likeCount: z.ZodNumber;
1623
+ }, "strip", z.ZodTypeAny, {
1624
+ liked: boolean;
1625
+ likeCount: number;
1626
+ }, {
1627
+ liked: boolean;
1628
+ likeCount: number;
1629
+ }>>;
1475
1630
  readonly createComment: EndpointContract<"POST", "/articles/:articleId/comments", z.ZodObject<{
1476
1631
  articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1477
1632
  }, "strip", z.ZodTypeAny, {
@@ -1487,7 +1642,70 @@ declare const apiContract: {
1487
1642
  }, {
1488
1643
  content: string;
1489
1644
  parentCommentId?: number | null | undefined;
1490
- }>, z.ZodNull>;
1645
+ }>, z.ZodDiscriminatedUnion<"entity", [z.ZodObject<{
1646
+ entity: z.ZodLiteral<"article">;
1647
+ id: z.ZodBranded<z.ZodNumber, "ArticleId">;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ id: number & z.BRAND<"ArticleId">;
1650
+ entity: "article";
1651
+ }, {
1652
+ id: number;
1653
+ entity: "article";
1654
+ }>, z.ZodObject<{
1655
+ entity: z.ZodLiteral<"comment">;
1656
+ id: z.ZodBranded<z.ZodNumber, "CommentId">;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ id: number & z.BRAND<"CommentId">;
1659
+ entity: "comment";
1660
+ }, {
1661
+ id: number;
1662
+ entity: "comment";
1663
+ }>, z.ZodObject<{
1664
+ entity: z.ZodLiteral<"recruit">;
1665
+ id: z.ZodBranded<z.ZodNumber, "RecruitId">;
1666
+ }, "strip", z.ZodTypeAny, {
1667
+ id: number & z.BRAND<"RecruitId">;
1668
+ entity: "recruit";
1669
+ }, {
1670
+ id: number;
1671
+ entity: "recruit";
1672
+ }>, z.ZodObject<{
1673
+ entity: z.ZodLiteral<"invitation">;
1674
+ id: z.ZodBranded<z.ZodNumber, "InvitationId">;
1675
+ }, "strip", z.ZodTypeAny, {
1676
+ id: number & z.BRAND<"InvitationId">;
1677
+ entity: "invitation";
1678
+ }, {
1679
+ id: number;
1680
+ entity: "invitation";
1681
+ }>, z.ZodObject<{
1682
+ entity: z.ZodLiteral<"subscription">;
1683
+ id: z.ZodBranded<z.ZodNumber, "SubscriptionId">;
1684
+ }, "strip", z.ZodTypeAny, {
1685
+ id: number & z.BRAND<"SubscriptionId">;
1686
+ entity: "subscription";
1687
+ }, {
1688
+ id: number;
1689
+ entity: "subscription";
1690
+ }>, z.ZodObject<{
1691
+ entity: z.ZodLiteral<"coupon">;
1692
+ id: z.ZodBranded<z.ZodNumber, "CouponId">;
1693
+ }, "strip", z.ZodTypeAny, {
1694
+ id: number & z.BRAND<"CouponId">;
1695
+ entity: "coupon";
1696
+ }, {
1697
+ id: number;
1698
+ entity: "coupon";
1699
+ }>, z.ZodObject<{
1700
+ entity: z.ZodLiteral<"plan">;
1701
+ id: z.ZodBranded<z.ZodNumber, "PlanId">;
1702
+ }, "strip", z.ZodTypeAny, {
1703
+ id: number & z.BRAND<"PlanId">;
1704
+ entity: "plan";
1705
+ }, {
1706
+ id: number;
1707
+ entity: "plan";
1708
+ }>]>>;
1491
1709
  readonly presignArticleImage: EndpointContract<"POST", "/uploads/presign-article", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1492
1710
  key: z.ZodString;
1493
1711
  putUrl: z.ZodString;
@@ -1508,16 +1726,12 @@ declare const apiContract: {
1508
1726
  }, {
1509
1727
  articleId: number;
1510
1728
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1511
- readonly deleteComment: EndpointContract<"DELETE", "/articles/:articleId/comments/:commentId", z.ZodObject<{
1512
- articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1513
- } & {
1729
+ readonly deleteComment: EndpointContract<"DELETE", "/articles/comments/:commentId", z.ZodObject<{
1514
1730
  commentId: z.ZodBranded<z.ZodNumber, "CommentId">;
1515
1731
  }, "strip", z.ZodTypeAny, {
1516
1732
  commentId: number & z.BRAND<"CommentId">;
1517
- articleId: number & z.BRAND<"ArticleId">;
1518
1733
  }, {
1519
1734
  commentId: number;
1520
- articleId: number;
1521
1735
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1522
1736
  };
1523
1737
  readonly recruits: {
@@ -2157,7 +2371,7 @@ declare const apiContract: {
2157
2371
  };
2158
2372
  requestedAt: string;
2159
2373
  }>, "many">>;
2160
- readonly outgoingRequest: EndpointContract<"GET", "/friends/requests/outgoint", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2374
+ readonly outgoingRequest: EndpointContract<"GET", "/friends/requests/outgoing", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2161
2375
  requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2162
2376
  requester: z.ZodObject<{
2163
2377
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
@@ -2217,11 +2431,11 @@ declare const apiContract: {
2217
2431
  requestedAt: string;
2218
2432
  }>, "many">>;
2219
2433
  readonly sendRequest: EndpointContract<"POST", "/friends/requests/:memberId", z.ZodObject<{
2220
- requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2434
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2221
2435
  }, "strip", z.ZodTypeAny, {
2222
- requestId: number & z.BRAND<"FriendRequestId">;
2436
+ memberId: number & z.BRAND<"MemberId">;
2223
2437
  }, {
2224
- requestId: number;
2438
+ memberId: number;
2225
2439
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2226
2440
  readonly acceptRequest: EndpointContract<"POST", "/friends/requests/:requestId/accept", z.ZodObject<{
2227
2441
  requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;