@kimdaegyu/babmukdang-shared 1.0.7 → 1.1.0

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 (106) hide show
  1. package/dist/chunk-2GRWCRTV.js +328 -0
  2. package/dist/chunk-2SJCUQNN.js +40 -0
  3. package/dist/chunk-34EKPNPX.js +0 -0
  4. package/dist/chunk-35QGRA2X.js +0 -0
  5. package/dist/chunk-3YMV26OY.js +0 -0
  6. package/dist/chunk-4DAOP35P.js +74 -0
  7. package/dist/chunk-6NZPEF4K.js +34 -0
  8. package/dist/chunk-7MGHUZXI.js +25 -0
  9. package/dist/chunk-BVTYAILQ.js +0 -0
  10. package/dist/chunk-EJKRR2MZ.js +184 -0
  11. package/dist/chunk-F24BT6H4.js +23 -0
  12. package/dist/chunk-FCE6KXNO.js +30 -0
  13. package/dist/chunk-HRM3FQPL.js +12 -0
  14. package/dist/chunk-IJMADVK5.js +27 -0
  15. package/dist/chunk-IYCA6KHR.js +0 -0
  16. package/dist/chunk-JCN37ARR.js +52 -0
  17. package/dist/chunk-JXYRJKRV.js +0 -0
  18. package/dist/chunk-LCMNVWSP.js +0 -0
  19. package/dist/chunk-MP7TEKEI.js +72 -0
  20. package/dist/chunk-NCVWB52E.js +0 -0
  21. package/dist/chunk-NW5O4R7M.js +37 -0
  22. package/dist/chunk-O6DYRCFN.js +0 -0
  23. package/dist/chunk-PDGMGLYH.js +0 -0
  24. package/dist/chunk-PFSZSKD5.js +0 -0
  25. package/dist/chunk-TA4BB3UC.js +0 -0
  26. package/dist/chunk-UFVPFUMI.js +35 -0
  27. package/dist/chunk-UN7KYFMV.js +0 -0
  28. package/dist/chunk-UXA4FHST.js +19 -0
  29. package/dist/chunk-WNY6POLW.js +0 -0
  30. package/dist/chunk-YVACD5IG.js +127 -0
  31. package/dist/chunk-Z2UFF3MA.js +212 -0
  32. package/dist/chunk-ZNAAA53X.js +45 -0
  33. package/dist/chunk-ZSZ3ETY7.js +32 -0
  34. package/dist/domain/article/index.cjs +250 -0
  35. package/dist/domain/article/index.d.cts +1026 -0
  36. package/dist/domain/article/index.d.ts +1026 -0
  37. package/dist/domain/article/index.js +32 -0
  38. package/dist/domain/auth/index.cjs +135 -0
  39. package/dist/domain/auth/index.d.cts +73 -0
  40. package/dist/domain/auth/index.d.ts +73 -0
  41. package/dist/domain/auth/index.js +17 -0
  42. package/dist/domain/challenge/index.cjs +65 -0
  43. package/dist/domain/challenge/index.d.cts +104 -0
  44. package/dist/domain/challenge/index.d.ts +104 -0
  45. package/dist/domain/challenge/index.js +18 -0
  46. package/dist/domain/common/index.cjs +769 -0
  47. package/dist/domain/common/index.d.cts +2576 -0
  48. package/dist/domain/common/index.d.ts +2576 -0
  49. package/dist/domain/common/index.js +107 -0
  50. package/dist/domain/coupon/index.cjs +74 -0
  51. package/dist/domain/coupon/index.d.cts +38 -0
  52. package/dist/domain/coupon/index.d.ts +38 -0
  53. package/dist/domain/coupon/index.js +14 -0
  54. package/dist/domain/friend/index.cjs +152 -0
  55. package/dist/domain/friend/index.d.cts +148 -0
  56. package/dist/domain/friend/index.d.ts +148 -0
  57. package/dist/domain/friend/index.js +25 -0
  58. package/dist/domain/index.cjs +997 -0
  59. package/dist/domain/index.d.cts +17 -0
  60. package/dist/domain/index.d.ts +17 -0
  61. package/dist/domain/index.js +334 -0
  62. package/dist/domain/invitation/index.cjs +104 -0
  63. package/dist/domain/invitation/index.d.cts +67 -0
  64. package/dist/domain/invitation/index.d.ts +67 -0
  65. package/dist/domain/invitation/index.js +17 -0
  66. package/dist/domain/meal/index.cjs +59 -0
  67. package/dist/domain/meal/index.d.cts +38 -0
  68. package/dist/domain/meal/index.d.ts +38 -0
  69. package/dist/domain/meal/index.js +15 -0
  70. package/dist/domain/member/index.cjs +127 -0
  71. package/dist/domain/member/index.d.cts +225 -0
  72. package/dist/domain/member/index.d.ts +225 -0
  73. package/dist/domain/member/index.js +30 -0
  74. package/dist/domain/plan/index.cjs +269 -0
  75. package/dist/domain/plan/index.d.cts +189 -0
  76. package/dist/domain/plan/index.d.ts +189 -0
  77. package/dist/domain/plan/index.js +19 -0
  78. package/dist/domain/preference/index.cjs +69 -0
  79. package/dist/domain/preference/index.d.cts +31 -0
  80. package/dist/domain/preference/index.d.ts +31 -0
  81. package/dist/domain/preference/index.js +12 -0
  82. package/dist/domain/recruit/index.cjs +138 -0
  83. package/dist/domain/recruit/index.d.cts +130 -0
  84. package/dist/domain/recruit/index.d.ts +130 -0
  85. package/dist/domain/recruit/index.js +19 -0
  86. package/dist/domain/referral/index.cjs +78 -0
  87. package/dist/domain/referral/index.d.cts +51 -0
  88. package/dist/domain/referral/index.d.ts +51 -0
  89. package/dist/domain/referral/index.js +14 -0
  90. package/dist/domain/restaurant/index.cjs +79 -0
  91. package/dist/domain/restaurant/index.d.cts +85 -0
  92. package/dist/domain/restaurant/index.d.ts +85 -0
  93. package/dist/domain/restaurant/index.js +11 -0
  94. package/dist/domain/room/index.cjs +332 -0
  95. package/dist/domain/room/index.d.cts +1482 -0
  96. package/dist/domain/room/index.d.ts +1482 -0
  97. package/dist/domain/room/index.js +74 -0
  98. package/dist/id-B-8M90Ef.d.cts +43 -0
  99. package/dist/id-B-8M90Ef.d.ts +43 -0
  100. package/dist/index-BuInbhtG.d.cts +305 -0
  101. package/dist/index-CKRUOupn.d.ts +305 -0
  102. package/dist/index.cjs +845 -21
  103. package/dist/index.d.cts +113 -569
  104. package/dist/index.d.ts +113 -569
  105. package/dist/index.js +50 -30
  106. package/package.json +50 -39
@@ -0,0 +1,107 @@
1
+ import {
2
+ NoBodySchema,
3
+ NoParamsSchema,
4
+ NoQuerySchema,
5
+ apiContract,
6
+ endpoint,
7
+ makeApiResponseSchema,
8
+ makeApiSuccessSchema,
9
+ toArticleId,
10
+ toInvitationId,
11
+ toMemberId,
12
+ toRecruitId,
13
+ toRestaurantId,
14
+ toRoomId
15
+ } from "../../chunk-Z2UFF3MA.js";
16
+ import {
17
+ ApiFailureSchema,
18
+ ApiResponseSchema,
19
+ ApiSuccessSchema,
20
+ CreatedEntityIdResponseSchema,
21
+ CreatedIdResponseSchema,
22
+ NoContentSchema
23
+ } from "../../chunk-4DAOP35P.js";
24
+ import "../../chunk-7MGHUZXI.js";
25
+ import "../../chunk-ZNAAA53X.js";
26
+ import "../../chunk-F24BT6H4.js";
27
+ import "../../chunk-2SJCUQNN.js";
28
+ import "../../chunk-ZSZ3ETY7.js";
29
+ import "../../chunk-EJKRR2MZ.js";
30
+ import {
31
+ PageRequestSchema,
32
+ PageResponseSchema,
33
+ PageableObjectSchema,
34
+ SortObjectSchema
35
+ } from "../../chunk-YVACD5IG.js";
36
+ import "../../chunk-NW5O4R7M.js";
37
+ import "../../chunk-FCE6KXNO.js";
38
+ import "../../chunk-6NZPEF4K.js";
39
+ import "../../chunk-JCN37ARR.js";
40
+ import "../../chunk-MP7TEKEI.js";
41
+ import "../../chunk-IJMADVK5.js";
42
+ import {
43
+ ArticleIdSchema,
44
+ CommentIdSchema,
45
+ CouponIdSchema,
46
+ FriendRequestIdSchema,
47
+ InvitationIdSchema,
48
+ MemberIdSchema,
49
+ NonEmptyStringIdSchema,
50
+ PlanIdSchema,
51
+ PositiveIntIdSchema,
52
+ RecruitIdSchema,
53
+ ReferralCodeSchema,
54
+ RestaurantIdSchema,
55
+ RoomIdSchema,
56
+ SubscriptionIdSchema,
57
+ UserIdSchema
58
+ } from "../../chunk-UFVPFUMI.js";
59
+ import {
60
+ ISODateStringSchema,
61
+ ISODateTimeStringSchema,
62
+ TimeHHmmStringSchema
63
+ } from "../../chunk-HRM3FQPL.js";
64
+ import "../../chunk-UXA4FHST.js";
65
+ export {
66
+ ApiFailureSchema,
67
+ ApiResponseSchema,
68
+ ApiSuccessSchema,
69
+ ArticleIdSchema,
70
+ CommentIdSchema,
71
+ CouponIdSchema,
72
+ CreatedEntityIdResponseSchema,
73
+ CreatedIdResponseSchema,
74
+ FriendRequestIdSchema,
75
+ ISODateStringSchema,
76
+ ISODateTimeStringSchema,
77
+ InvitationIdSchema,
78
+ MemberIdSchema,
79
+ NoBodySchema,
80
+ NoContentSchema,
81
+ NoParamsSchema,
82
+ NoQuerySchema,
83
+ NonEmptyStringIdSchema,
84
+ PageRequestSchema,
85
+ PageResponseSchema,
86
+ PageableObjectSchema,
87
+ PlanIdSchema,
88
+ PositiveIntIdSchema,
89
+ RecruitIdSchema,
90
+ ReferralCodeSchema,
91
+ RestaurantIdSchema,
92
+ RoomIdSchema,
93
+ SortObjectSchema,
94
+ SubscriptionIdSchema,
95
+ TimeHHmmStringSchema,
96
+ UserIdSchema,
97
+ apiContract,
98
+ endpoint,
99
+ makeApiResponseSchema,
100
+ makeApiSuccessSchema,
101
+ toArticleId,
102
+ toInvitationId,
103
+ toMemberId,
104
+ toRecruitId,
105
+ toRestaurantId,
106
+ toRoomId
107
+ };
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/domain/coupon/index.ts
21
+ var coupon_exports = {};
22
+ __export(coupon_exports, {
23
+ CouponResponseSchema: () => CouponResponseSchema,
24
+ CouponStatusSchema: () => CouponStatusSchema,
25
+ CouponTypeSchema: () => CouponTypeSchema
26
+ });
27
+ module.exports = __toCommonJS(coupon_exports);
28
+
29
+ // src/domain/coupon/schema/coupon.schema.ts
30
+ var import_zod3 = require("zod");
31
+
32
+ // src/domain/common/schema/date.schema.ts
33
+ var import_zod = require("zod");
34
+ var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
35
+ var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
36
+ var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
37
+ var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
38
+
39
+ // src/domain/common/schema/id.schema.ts
40
+ var import_zod2 = require("zod");
41
+ var PositiveIntIdSchema = import_zod2.z.number().int().positive();
42
+ var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
43
+ var MemberIdSchema = PositiveIntIdSchema.brand();
44
+ var ArticleIdSchema = PositiveIntIdSchema.brand();
45
+ var CommentIdSchema = PositiveIntIdSchema.brand();
46
+ var RecruitIdSchema = PositiveIntIdSchema.brand();
47
+ var PlanIdSchema = PositiveIntIdSchema.brand();
48
+ var InvitationIdSchema = PositiveIntIdSchema.brand();
49
+ var RoomIdSchema = NonEmptyStringIdSchema.brand();
50
+ var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
51
+ var CouponIdSchema = PositiveIntIdSchema.brand();
52
+ var SubscriptionIdSchema = PositiveIntIdSchema.brand();
53
+ var FriendRequestIdSchema = PositiveIntIdSchema.brand();
54
+ var ReferralCodeSchema = import_zod2.z.string().min(4).max(64).brand();
55
+
56
+ // src/domain/coupon/schema/coupon.schema.ts
57
+ var CouponTypeSchema = import_zod3.z.enum(["DISCOUNT", "SERVICE"]);
58
+ var CouponStatusSchema = import_zod3.z.enum(["UNUSED", "USED"]);
59
+ var CouponResponseSchema = import_zod3.z.object({
60
+ couponId: CouponIdSchema,
61
+ title: import_zod3.z.string(),
62
+ shopName: import_zod3.z.string(),
63
+ type: CouponTypeSchema,
64
+ condition: import_zod3.z.string(),
65
+ expiresAt: ISODateStringSchema,
66
+ used: import_zod3.z.boolean(),
67
+ thumbnailUrl: import_zod3.z.string().url()
68
+ });
69
+ // Annotate the CommonJS export names for ESM import in node:
70
+ 0 && (module.exports = {
71
+ CouponResponseSchema,
72
+ CouponStatusSchema,
73
+ CouponTypeSchema
74
+ });
@@ -0,0 +1,38 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const CouponTypeSchema: z.ZodEnum<["DISCOUNT", "SERVICE"]>;
4
+ declare const CouponStatusSchema: z.ZodEnum<["UNUSED", "USED"]>;
5
+ declare const CouponResponseSchema: z.ZodObject<{
6
+ couponId: z.ZodBranded<z.ZodNumber, "CouponId">;
7
+ title: z.ZodString;
8
+ shopName: z.ZodString;
9
+ type: z.ZodEnum<["DISCOUNT", "SERVICE"]>;
10
+ condition: z.ZodString;
11
+ expiresAt: z.ZodString;
12
+ used: z.ZodBoolean;
13
+ thumbnailUrl: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ type: "DISCOUNT" | "SERVICE";
16
+ expiresAt: string;
17
+ couponId: number & z.BRAND<"CouponId">;
18
+ title: string;
19
+ shopName: string;
20
+ condition: string;
21
+ used: boolean;
22
+ thumbnailUrl: string;
23
+ }, {
24
+ type: "DISCOUNT" | "SERVICE";
25
+ expiresAt: string;
26
+ couponId: number;
27
+ title: string;
28
+ shopName: string;
29
+ condition: string;
30
+ used: boolean;
31
+ thumbnailUrl: string;
32
+ }>;
33
+
34
+ type CouponType = z.infer<typeof CouponTypeSchema>;
35
+ type CouponStatus = z.infer<typeof CouponStatusSchema>;
36
+ type CouponResponse = z.infer<typeof CouponResponseSchema>;
37
+
38
+ export { type CouponResponse, CouponResponseSchema, type CouponStatus, CouponStatusSchema, type CouponType, CouponTypeSchema };
@@ -0,0 +1,38 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const CouponTypeSchema: z.ZodEnum<["DISCOUNT", "SERVICE"]>;
4
+ declare const CouponStatusSchema: z.ZodEnum<["UNUSED", "USED"]>;
5
+ declare const CouponResponseSchema: z.ZodObject<{
6
+ couponId: z.ZodBranded<z.ZodNumber, "CouponId">;
7
+ title: z.ZodString;
8
+ shopName: z.ZodString;
9
+ type: z.ZodEnum<["DISCOUNT", "SERVICE"]>;
10
+ condition: z.ZodString;
11
+ expiresAt: z.ZodString;
12
+ used: z.ZodBoolean;
13
+ thumbnailUrl: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ type: "DISCOUNT" | "SERVICE";
16
+ expiresAt: string;
17
+ couponId: number & z.BRAND<"CouponId">;
18
+ title: string;
19
+ shopName: string;
20
+ condition: string;
21
+ used: boolean;
22
+ thumbnailUrl: string;
23
+ }, {
24
+ type: "DISCOUNT" | "SERVICE";
25
+ expiresAt: string;
26
+ couponId: number;
27
+ title: string;
28
+ shopName: string;
29
+ condition: string;
30
+ used: boolean;
31
+ thumbnailUrl: string;
32
+ }>;
33
+
34
+ type CouponType = z.infer<typeof CouponTypeSchema>;
35
+ type CouponStatus = z.infer<typeof CouponStatusSchema>;
36
+ type CouponResponse = z.infer<typeof CouponResponseSchema>;
37
+
38
+ export { type CouponResponse, CouponResponseSchema, type CouponStatus, CouponStatusSchema, type CouponType, CouponTypeSchema };
@@ -0,0 +1,14 @@
1
+ import "../../chunk-35QGRA2X.js";
2
+ import {
3
+ CouponResponseSchema,
4
+ CouponStatusSchema,
5
+ CouponTypeSchema
6
+ } from "../../chunk-IJMADVK5.js";
7
+ import "../../chunk-UFVPFUMI.js";
8
+ import "../../chunk-HRM3FQPL.js";
9
+ import "../../chunk-UXA4FHST.js";
10
+ export {
11
+ CouponResponseSchema,
12
+ CouponStatusSchema,
13
+ CouponTypeSchema
14
+ };
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/domain/friend/index.ts
21
+ var friend_exports = {};
22
+ __export(friend_exports, {
23
+ FriendActionRequestSchema: () => FriendActionRequestSchema,
24
+ FriendBlockItemResponseSchema: () => FriendBlockItemResponseSchema,
25
+ FriendListItemResponseSchema: () => FriendListItemResponseSchema,
26
+ FriendMealFilterSchema: () => FriendMealFilterSchema,
27
+ FriendMealItemResponseSchema: () => FriendMealItemResponseSchema,
28
+ FriendRequestItemResponseSchema: () => FriendRequestItemResponseSchema,
29
+ FriendRequestMemberSchema: () => FriendRequestMemberSchema,
30
+ FriendRequestStatusSchema: () => FriendRequestStatusSchema
31
+ });
32
+ module.exports = __toCommonJS(friend_exports);
33
+
34
+ // src/domain/friend/schema/friend.schema.ts
35
+ var import_zod4 = require("zod");
36
+
37
+ // src/domain/common/schema/date.schema.ts
38
+ var import_zod = require("zod");
39
+ var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
40
+ var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
41
+ var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
42
+ var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
43
+
44
+ // src/domain/common/schema/id.schema.ts
45
+ var import_zod2 = require("zod");
46
+ var PositiveIntIdSchema = import_zod2.z.number().int().positive();
47
+ var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
48
+ var MemberIdSchema = PositiveIntIdSchema.brand();
49
+ var ArticleIdSchema = PositiveIntIdSchema.brand();
50
+ var CommentIdSchema = PositiveIntIdSchema.brand();
51
+ var RecruitIdSchema = PositiveIntIdSchema.brand();
52
+ var PlanIdSchema = PositiveIntIdSchema.brand();
53
+ var InvitationIdSchema = PositiveIntIdSchema.brand();
54
+ var RoomIdSchema = NonEmptyStringIdSchema.brand();
55
+ var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
56
+ var CouponIdSchema = PositiveIntIdSchema.brand();
57
+ var SubscriptionIdSchema = PositiveIntIdSchema.brand();
58
+ var FriendRequestIdSchema = PositiveIntIdSchema.brand();
59
+ var ReferralCodeSchema = import_zod2.z.string().min(4).max(64).brand();
60
+
61
+ // src/domain/member/schema/member.schema.ts
62
+ var import_zod3 = require("zod");
63
+ var MemberRoleSchema = import_zod3.z.enum(["USER", "ADMIN"]);
64
+ var MemberCoreSchema = import_zod3.z.object({
65
+ memberId: MemberIdSchema,
66
+ username: import_zod3.z.string().min(1).max(50),
67
+ profileImageUrl: import_zod3.z.string().url().nullable()
68
+ });
69
+ var MemberResponseSchema = MemberCoreSchema.pick({
70
+ memberId: true,
71
+ username: true,
72
+ profileImageUrl: true
73
+ });
74
+ var MemberSummaryResponseSchema = MemberCoreSchema.extend({
75
+ friends: import_zod3.z.number().int().min(0).default(0),
76
+ completedPlans: import_zod3.z.number().int().min(0).default(0),
77
+ uncompletedPlans: import_zod3.z.number().int().min(0).default(0)
78
+ });
79
+ var AuthPrincipalSchema = import_zod3.z.object({
80
+ memberId: MemberIdSchema,
81
+ role: MemberRoleSchema
82
+ });
83
+ var ProfilePreferenceItemSchema = import_zod3.z.object({
84
+ code: import_zod3.z.string(),
85
+ label: import_zod3.z.string()
86
+ });
87
+ var ProfileDetailResponseSchema = MemberCoreSchema.extend({
88
+ bio: import_zod3.z.string().nullable(),
89
+ planCount: import_zod3.z.number().int().min(0),
90
+ likes: import_zod3.z.array(ProfilePreferenceItemSchema),
91
+ dislikes: import_zod3.z.array(ProfilePreferenceItemSchema),
92
+ allergies: import_zod3.z.array(ProfilePreferenceItemSchema)
93
+ });
94
+ var UpdateProfileRequestSchema = import_zod3.z.object({
95
+ username: import_zod3.z.string().min(1).max(50),
96
+ profileImageUrl: import_zod3.z.string().url().nullable(),
97
+ bio: import_zod3.z.string().max(500).nullable()
98
+ });
99
+ var OnboardingPreferenceRequestSchema = import_zod3.z.object({
100
+ likedCodes: import_zod3.z.array(import_zod3.z.string()),
101
+ dislikedCodes: import_zod3.z.array(import_zod3.z.string()),
102
+ allergyCodes: import_zod3.z.array(import_zod3.z.string())
103
+ });
104
+ var OnboardingRequestSchema = UpdateProfileRequestSchema.merge(
105
+ OnboardingPreferenceRequestSchema
106
+ );
107
+ var PreferenceMetaResponseSchema = import_zod3.z.object({
108
+ onboardedAt: ISODateTimeStringSchema.nullable(),
109
+ lastUpdatedAt: ISODateTimeStringSchema.nullable(),
110
+ revision: import_zod3.z.number().int().min(0)
111
+ });
112
+
113
+ // src/domain/friend/schema/friend.schema.ts
114
+ var FriendMealFilterSchema = import_zod4.z.enum(["ALL", "HUNGRY", "NOT_HUNGRY"]);
115
+ var FriendRequestStatusSchema = import_zod4.z.enum([
116
+ "PENDING",
117
+ "ACCEPTED",
118
+ "REJECTED",
119
+ "CANCELED"
120
+ ]);
121
+ var FriendMealItemResponseSchema = MemberResponseSchema.extend({
122
+ hungry: import_zod4.z.boolean(),
123
+ label: import_zod4.z.string()
124
+ });
125
+ var FriendListItemResponseSchema = MemberResponseSchema.extend({
126
+ friendSince: ISODateTimeStringSchema
127
+ });
128
+ var FriendBlockItemResponseSchema = MemberResponseSchema.extend({
129
+ blockedAt: ISODateTimeStringSchema
130
+ });
131
+ var FriendRequestMemberSchema = MemberResponseSchema;
132
+ var FriendRequestItemResponseSchema = import_zod4.z.object({
133
+ requestId: FriendRequestIdSchema,
134
+ requester: FriendRequestMemberSchema,
135
+ recipient: FriendRequestMemberSchema,
136
+ status: FriendRequestStatusSchema,
137
+ requestedAt: ISODateTimeStringSchema
138
+ });
139
+ var FriendActionRequestSchema = import_zod4.z.object({
140
+ memberId: MemberIdSchema
141
+ });
142
+ // Annotate the CommonJS export names for ESM import in node:
143
+ 0 && (module.exports = {
144
+ FriendActionRequestSchema,
145
+ FriendBlockItemResponseSchema,
146
+ FriendListItemResponseSchema,
147
+ FriendMealFilterSchema,
148
+ FriendMealItemResponseSchema,
149
+ FriendRequestItemResponseSchema,
150
+ FriendRequestMemberSchema,
151
+ FriendRequestStatusSchema
152
+ });
@@ -0,0 +1,148 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const FriendMealFilterSchema: z.ZodEnum<["ALL", "HUNGRY", "NOT_HUNGRY"]>;
4
+ declare const FriendRequestStatusSchema: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
5
+ declare const FriendMealItemResponseSchema: z.ZodObject<Pick<{
6
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
7
+ username: z.ZodString;
8
+ profileImageUrl: z.ZodNullable<z.ZodString>;
9
+ }, "memberId" | "username" | "profileImageUrl"> & {
10
+ hungry: z.ZodBoolean;
11
+ label: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ memberId: number & z.BRAND<"MemberId">;
14
+ username: string;
15
+ profileImageUrl: string | null;
16
+ label: string;
17
+ hungry: boolean;
18
+ }, {
19
+ memberId: number;
20
+ username: string;
21
+ profileImageUrl: string | null;
22
+ label: string;
23
+ hungry: boolean;
24
+ }>;
25
+ declare const FriendListItemResponseSchema: z.ZodObject<Pick<{
26
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
27
+ username: z.ZodString;
28
+ profileImageUrl: z.ZodNullable<z.ZodString>;
29
+ }, "memberId" | "username" | "profileImageUrl"> & {
30
+ friendSince: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ memberId: number & z.BRAND<"MemberId">;
33
+ username: string;
34
+ profileImageUrl: string | null;
35
+ friendSince: string;
36
+ }, {
37
+ memberId: number;
38
+ username: string;
39
+ profileImageUrl: string | null;
40
+ friendSince: string;
41
+ }>;
42
+ declare const FriendBlockItemResponseSchema: z.ZodObject<Pick<{
43
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
44
+ username: z.ZodString;
45
+ profileImageUrl: z.ZodNullable<z.ZodString>;
46
+ }, "memberId" | "username" | "profileImageUrl"> & {
47
+ blockedAt: z.ZodString;
48
+ }, "strip", z.ZodTypeAny, {
49
+ memberId: number & z.BRAND<"MemberId">;
50
+ username: string;
51
+ profileImageUrl: string | null;
52
+ blockedAt: string;
53
+ }, {
54
+ memberId: number;
55
+ username: string;
56
+ profileImageUrl: string | null;
57
+ blockedAt: string;
58
+ }>;
59
+ declare const FriendRequestMemberSchema: z.ZodObject<Pick<{
60
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
61
+ username: z.ZodString;
62
+ profileImageUrl: z.ZodNullable<z.ZodString>;
63
+ }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
64
+ memberId: number & z.BRAND<"MemberId">;
65
+ username: string;
66
+ profileImageUrl: string | null;
67
+ }, {
68
+ memberId: number;
69
+ username: string;
70
+ profileImageUrl: string | null;
71
+ }>;
72
+ declare const FriendRequestItemResponseSchema: z.ZodObject<{
73
+ requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
74
+ requester: z.ZodObject<Pick<{
75
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
76
+ username: z.ZodString;
77
+ profileImageUrl: z.ZodNullable<z.ZodString>;
78
+ }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
79
+ memberId: number & z.BRAND<"MemberId">;
80
+ username: string;
81
+ profileImageUrl: string | null;
82
+ }, {
83
+ memberId: number;
84
+ username: string;
85
+ profileImageUrl: string | null;
86
+ }>;
87
+ recipient: z.ZodObject<Pick<{
88
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
89
+ username: z.ZodString;
90
+ profileImageUrl: z.ZodNullable<z.ZodString>;
91
+ }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
92
+ memberId: number & z.BRAND<"MemberId">;
93
+ username: string;
94
+ profileImageUrl: string | null;
95
+ }, {
96
+ memberId: number;
97
+ username: string;
98
+ profileImageUrl: string | null;
99
+ }>;
100
+ status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
101
+ requestedAt: z.ZodString;
102
+ }, "strip", z.ZodTypeAny, {
103
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
104
+ requestId: number & z.BRAND<"FriendRequestId">;
105
+ requester: {
106
+ memberId: number & z.BRAND<"MemberId">;
107
+ username: string;
108
+ profileImageUrl: string | null;
109
+ };
110
+ recipient: {
111
+ memberId: number & z.BRAND<"MemberId">;
112
+ username: string;
113
+ profileImageUrl: string | null;
114
+ };
115
+ requestedAt: string;
116
+ }, {
117
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
118
+ requestId: number;
119
+ requester: {
120
+ memberId: number;
121
+ username: string;
122
+ profileImageUrl: string | null;
123
+ };
124
+ recipient: {
125
+ memberId: number;
126
+ username: string;
127
+ profileImageUrl: string | null;
128
+ };
129
+ requestedAt: string;
130
+ }>;
131
+ declare const FriendActionRequestSchema: z.ZodObject<{
132
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
133
+ }, "strip", z.ZodTypeAny, {
134
+ memberId: number & z.BRAND<"MemberId">;
135
+ }, {
136
+ memberId: number;
137
+ }>;
138
+
139
+ type FriendActionRequest = z.infer<typeof FriendActionRequestSchema>;
140
+
141
+ type FriendMealFilter = z.infer<typeof FriendMealFilterSchema>;
142
+ type FriendRequestStatus = z.infer<typeof FriendRequestStatusSchema>;
143
+ type FriendMealItemResponse = z.infer<typeof FriendMealItemResponseSchema>;
144
+ type FriendListItemResponse = z.infer<typeof FriendListItemResponseSchema>;
145
+ type FriendBlockItemResponse = z.infer<typeof FriendBlockItemResponseSchema>;
146
+ type FriendRequestItemResponse = z.infer<typeof FriendRequestItemResponseSchema>;
147
+
148
+ export { type FriendActionRequest, FriendActionRequestSchema, type FriendBlockItemResponse, FriendBlockItemResponseSchema, type FriendListItemResponse, FriendListItemResponseSchema, type FriendMealFilter, FriendMealFilterSchema, type FriendMealItemResponse, FriendMealItemResponseSchema, type FriendRequestItemResponse, FriendRequestItemResponseSchema, FriendRequestMemberSchema, type FriendRequestStatus, FriendRequestStatusSchema };