@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,189 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const PlanStatusSchema: z.ZodEnum<["PLANNING", "COMPLETED"]>;
4
+ declare const PlanTypeSchema: z.ZodEnum<["RECRUIT", "INVITATION"]>;
5
+ declare const CreatePlanRequestSchema: z.ZodObject<{
6
+ meetingDate: z.ZodString;
7
+ meetingTime: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ meetingDate: string;
10
+ meetingTime: string;
11
+ }, {
12
+ meetingDate: string;
13
+ meetingTime: string;
14
+ }>;
15
+ declare const PlanResponseSchema: z.ZodObject<{
16
+ planId: z.ZodBranded<z.ZodNumber, "PlanId">;
17
+ meetingAt: z.ZodString;
18
+ location: z.ZodNullable<z.ZodObject<{
19
+ locationId: z.ZodBranded<z.ZodString, "LocationId">;
20
+ placeName: z.ZodString;
21
+ lat: z.ZodNumber;
22
+ lng: z.ZodNumber;
23
+ address: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ placeName: string;
26
+ lat: number;
27
+ lng: number;
28
+ locationId: string & z.BRAND<"LocationId">;
29
+ address: string;
30
+ }, {
31
+ placeName: string;
32
+ lat: number;
33
+ lng: number;
34
+ locationId: string;
35
+ address: string;
36
+ }>>;
37
+ restaurant: z.ZodNullable<z.ZodObject<{
38
+ restaurantId: z.ZodBranded<z.ZodString, "RestaurantId">;
39
+ placeName: z.ZodString;
40
+ categoryName: z.ZodString;
41
+ categoryGroupName: z.ZodString;
42
+ distance: z.ZodOptional<z.ZodString>;
43
+ roadAddressName: z.ZodString;
44
+ addressName: z.ZodString;
45
+ phone: z.ZodNullable<z.ZodString>;
46
+ placeUrl: z.ZodNullable<z.ZodString>;
47
+ lat: z.ZodNumber;
48
+ lng: z.ZodNumber;
49
+ }, "strip", z.ZodTypeAny, {
50
+ restaurantId: string & z.BRAND<"RestaurantId">;
51
+ placeName: string;
52
+ categoryName: string;
53
+ categoryGroupName: string;
54
+ roadAddressName: string;
55
+ addressName: string;
56
+ phone: string | null;
57
+ placeUrl: string | null;
58
+ lat: number;
59
+ lng: number;
60
+ distance?: string | undefined;
61
+ }, {
62
+ restaurantId: string;
63
+ placeName: string;
64
+ categoryName: string;
65
+ categoryGroupName: string;
66
+ roadAddressName: string;
67
+ addressName: string;
68
+ phone: string | null;
69
+ placeUrl: string | null;
70
+ lat: number;
71
+ lng: number;
72
+ distance?: string | undefined;
73
+ }>>;
74
+ author: z.ZodNullable<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
+ participants: z.ZodArray<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
+ }>, "many">;
100
+ status: z.ZodEnum<["PLANNING", "COMPLETED"]>;
101
+ type: z.ZodEnum<["RECRUIT", "INVITATION"]>;
102
+ createdAt: z.ZodString;
103
+ updatedAt: z.ZodString;
104
+ }, "strip", z.ZodTypeAny, {
105
+ type: "RECRUIT" | "INVITATION";
106
+ status: "PLANNING" | "COMPLETED";
107
+ restaurant: {
108
+ restaurantId: string & z.BRAND<"RestaurantId">;
109
+ placeName: string;
110
+ categoryName: string;
111
+ categoryGroupName: string;
112
+ roadAddressName: string;
113
+ addressName: string;
114
+ phone: string | null;
115
+ placeUrl: string | null;
116
+ lat: number;
117
+ lng: number;
118
+ distance?: string | undefined;
119
+ } | null;
120
+ author: {
121
+ memberId: number & z.BRAND<"MemberId">;
122
+ username: string;
123
+ profileImageUrl: string | null;
124
+ } | null;
125
+ createdAt: string;
126
+ updatedAt: string;
127
+ location: {
128
+ placeName: string;
129
+ lat: number;
130
+ lng: number;
131
+ locationId: string & z.BRAND<"LocationId">;
132
+ address: string;
133
+ } | null;
134
+ participants: {
135
+ memberId: number & z.BRAND<"MemberId">;
136
+ username: string;
137
+ profileImageUrl: string | null;
138
+ }[];
139
+ planId: number & z.BRAND<"PlanId">;
140
+ meetingAt: string;
141
+ }, {
142
+ type: "RECRUIT" | "INVITATION";
143
+ status: "PLANNING" | "COMPLETED";
144
+ restaurant: {
145
+ restaurantId: string;
146
+ placeName: string;
147
+ categoryName: string;
148
+ categoryGroupName: string;
149
+ roadAddressName: string;
150
+ addressName: string;
151
+ phone: string | null;
152
+ placeUrl: string | null;
153
+ lat: number;
154
+ lng: number;
155
+ distance?: string | undefined;
156
+ } | null;
157
+ author: {
158
+ memberId: number;
159
+ username: string;
160
+ profileImageUrl: string | null;
161
+ } | null;
162
+ createdAt: string;
163
+ updatedAt: string;
164
+ location: {
165
+ placeName: string;
166
+ lat: number;
167
+ lng: number;
168
+ locationId: string;
169
+ address: string;
170
+ } | null;
171
+ participants: {
172
+ memberId: number;
173
+ username: string;
174
+ profileImageUrl: string | null;
175
+ }[];
176
+ planId: number;
177
+ meetingAt: string;
178
+ }>;
179
+
180
+ type CreatePlanRequest = z.infer<typeof CreatePlanRequestSchema>;
181
+
182
+ type PlanStatus = z.infer<typeof PlanStatusSchema>;
183
+ type PlanType = z.infer<typeof PlanTypeSchema>;
184
+ type PlanResponse = z.infer<typeof PlanResponseSchema>;
185
+ type PlanResponseDto = PlanResponse;
186
+ /** @deprecated Use PlanResponse. */
187
+ type MeetingResponse = PlanResponse;
188
+
189
+ export { type CreatePlanRequest, CreatePlanRequestSchema, type MeetingResponse, type PlanResponse, type PlanResponseDto, PlanResponseSchema, type PlanStatus, PlanStatusSchema, type PlanType, PlanTypeSchema };
@@ -0,0 +1,189 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const PlanStatusSchema: z.ZodEnum<["PLANNING", "COMPLETED"]>;
4
+ declare const PlanTypeSchema: z.ZodEnum<["RECRUIT", "INVITATION"]>;
5
+ declare const CreatePlanRequestSchema: z.ZodObject<{
6
+ meetingDate: z.ZodString;
7
+ meetingTime: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ meetingDate: string;
10
+ meetingTime: string;
11
+ }, {
12
+ meetingDate: string;
13
+ meetingTime: string;
14
+ }>;
15
+ declare const PlanResponseSchema: z.ZodObject<{
16
+ planId: z.ZodBranded<z.ZodNumber, "PlanId">;
17
+ meetingAt: z.ZodString;
18
+ location: z.ZodNullable<z.ZodObject<{
19
+ locationId: z.ZodBranded<z.ZodString, "LocationId">;
20
+ placeName: z.ZodString;
21
+ lat: z.ZodNumber;
22
+ lng: z.ZodNumber;
23
+ address: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ placeName: string;
26
+ lat: number;
27
+ lng: number;
28
+ locationId: string & z.BRAND<"LocationId">;
29
+ address: string;
30
+ }, {
31
+ placeName: string;
32
+ lat: number;
33
+ lng: number;
34
+ locationId: string;
35
+ address: string;
36
+ }>>;
37
+ restaurant: z.ZodNullable<z.ZodObject<{
38
+ restaurantId: z.ZodBranded<z.ZodString, "RestaurantId">;
39
+ placeName: z.ZodString;
40
+ categoryName: z.ZodString;
41
+ categoryGroupName: z.ZodString;
42
+ distance: z.ZodOptional<z.ZodString>;
43
+ roadAddressName: z.ZodString;
44
+ addressName: z.ZodString;
45
+ phone: z.ZodNullable<z.ZodString>;
46
+ placeUrl: z.ZodNullable<z.ZodString>;
47
+ lat: z.ZodNumber;
48
+ lng: z.ZodNumber;
49
+ }, "strip", z.ZodTypeAny, {
50
+ restaurantId: string & z.BRAND<"RestaurantId">;
51
+ placeName: string;
52
+ categoryName: string;
53
+ categoryGroupName: string;
54
+ roadAddressName: string;
55
+ addressName: string;
56
+ phone: string | null;
57
+ placeUrl: string | null;
58
+ lat: number;
59
+ lng: number;
60
+ distance?: string | undefined;
61
+ }, {
62
+ restaurantId: string;
63
+ placeName: string;
64
+ categoryName: string;
65
+ categoryGroupName: string;
66
+ roadAddressName: string;
67
+ addressName: string;
68
+ phone: string | null;
69
+ placeUrl: string | null;
70
+ lat: number;
71
+ lng: number;
72
+ distance?: string | undefined;
73
+ }>>;
74
+ author: z.ZodNullable<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
+ participants: z.ZodArray<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
+ }>, "many">;
100
+ status: z.ZodEnum<["PLANNING", "COMPLETED"]>;
101
+ type: z.ZodEnum<["RECRUIT", "INVITATION"]>;
102
+ createdAt: z.ZodString;
103
+ updatedAt: z.ZodString;
104
+ }, "strip", z.ZodTypeAny, {
105
+ type: "RECRUIT" | "INVITATION";
106
+ status: "PLANNING" | "COMPLETED";
107
+ restaurant: {
108
+ restaurantId: string & z.BRAND<"RestaurantId">;
109
+ placeName: string;
110
+ categoryName: string;
111
+ categoryGroupName: string;
112
+ roadAddressName: string;
113
+ addressName: string;
114
+ phone: string | null;
115
+ placeUrl: string | null;
116
+ lat: number;
117
+ lng: number;
118
+ distance?: string | undefined;
119
+ } | null;
120
+ author: {
121
+ memberId: number & z.BRAND<"MemberId">;
122
+ username: string;
123
+ profileImageUrl: string | null;
124
+ } | null;
125
+ createdAt: string;
126
+ updatedAt: string;
127
+ location: {
128
+ placeName: string;
129
+ lat: number;
130
+ lng: number;
131
+ locationId: string & z.BRAND<"LocationId">;
132
+ address: string;
133
+ } | null;
134
+ participants: {
135
+ memberId: number & z.BRAND<"MemberId">;
136
+ username: string;
137
+ profileImageUrl: string | null;
138
+ }[];
139
+ planId: number & z.BRAND<"PlanId">;
140
+ meetingAt: string;
141
+ }, {
142
+ type: "RECRUIT" | "INVITATION";
143
+ status: "PLANNING" | "COMPLETED";
144
+ restaurant: {
145
+ restaurantId: string;
146
+ placeName: string;
147
+ categoryName: string;
148
+ categoryGroupName: string;
149
+ roadAddressName: string;
150
+ addressName: string;
151
+ phone: string | null;
152
+ placeUrl: string | null;
153
+ lat: number;
154
+ lng: number;
155
+ distance?: string | undefined;
156
+ } | null;
157
+ author: {
158
+ memberId: number;
159
+ username: string;
160
+ profileImageUrl: string | null;
161
+ } | null;
162
+ createdAt: string;
163
+ updatedAt: string;
164
+ location: {
165
+ placeName: string;
166
+ lat: number;
167
+ lng: number;
168
+ locationId: string;
169
+ address: string;
170
+ } | null;
171
+ participants: {
172
+ memberId: number;
173
+ username: string;
174
+ profileImageUrl: string | null;
175
+ }[];
176
+ planId: number;
177
+ meetingAt: string;
178
+ }>;
179
+
180
+ type CreatePlanRequest = z.infer<typeof CreatePlanRequestSchema>;
181
+
182
+ type PlanStatus = z.infer<typeof PlanStatusSchema>;
183
+ type PlanType = z.infer<typeof PlanTypeSchema>;
184
+ type PlanResponse = z.infer<typeof PlanResponseSchema>;
185
+ type PlanResponseDto = PlanResponse;
186
+ /** @deprecated Use PlanResponse. */
187
+ type MeetingResponse = PlanResponse;
188
+
189
+ export { type CreatePlanRequest, CreatePlanRequestSchema, type MeetingResponse, type PlanResponse, type PlanResponseDto, PlanResponseSchema, type PlanStatus, PlanStatusSchema, type PlanType, PlanTypeSchema };
@@ -0,0 +1,19 @@
1
+ import "../../chunk-34EKPNPX.js";
2
+ import {
3
+ CreatePlanRequestSchema,
4
+ PlanResponseSchema,
5
+ PlanStatusSchema,
6
+ PlanTypeSchema
7
+ } from "../../chunk-ZNAAA53X.js";
8
+ import "../../chunk-EJKRR2MZ.js";
9
+ import "../../chunk-NW5O4R7M.js";
10
+ import "../../chunk-MP7TEKEI.js";
11
+ import "../../chunk-UFVPFUMI.js";
12
+ import "../../chunk-HRM3FQPL.js";
13
+ import "../../chunk-UXA4FHST.js";
14
+ export {
15
+ CreatePlanRequestSchema,
16
+ PlanResponseSchema,
17
+ PlanStatusSchema,
18
+ PlanTypeSchema
19
+ };
@@ -0,0 +1,69 @@
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/preference/index.ts
21
+ var preference_exports = {};
22
+ __export(preference_exports, {
23
+ FoodPreferenceResponseSchema: () => FoodPreferenceResponseSchema,
24
+ FoodPreferenceTypeSchema: () => FoodPreferenceTypeSchema
25
+ });
26
+ module.exports = __toCommonJS(preference_exports);
27
+
28
+ // src/domain/preference/schema/preference.schema.ts
29
+ var import_zod3 = require("zod");
30
+
31
+ // src/domain/common/schema/date.schema.ts
32
+ var import_zod = require("zod");
33
+ var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
34
+ var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
35
+ var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
36
+ var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
37
+
38
+ // src/domain/common/schema/id.schema.ts
39
+ var import_zod2 = require("zod");
40
+ var PositiveIntIdSchema = import_zod2.z.number().int().positive();
41
+ var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
42
+ var MemberIdSchema = PositiveIntIdSchema.brand();
43
+ var ArticleIdSchema = PositiveIntIdSchema.brand();
44
+ var CommentIdSchema = PositiveIntIdSchema.brand();
45
+ var RecruitIdSchema = PositiveIntIdSchema.brand();
46
+ var PlanIdSchema = PositiveIntIdSchema.brand();
47
+ var InvitationIdSchema = PositiveIntIdSchema.brand();
48
+ var RoomIdSchema = NonEmptyStringIdSchema.brand();
49
+ var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
50
+ var CouponIdSchema = PositiveIntIdSchema.brand();
51
+ var SubscriptionIdSchema = PositiveIntIdSchema.brand();
52
+ var FriendRequestIdSchema = PositiveIntIdSchema.brand();
53
+ var ReferralCodeSchema = import_zod2.z.string().min(4).max(64).brand();
54
+
55
+ // src/domain/preference/schema/preference.schema.ts
56
+ var FoodPreferenceTypeSchema = import_zod3.z.enum(["LIKE", "DISLIKE", "ALLERGY"]);
57
+ var FoodPreferenceResponseSchema = import_zod3.z.object({
58
+ id: import_zod3.z.number().int().positive(),
59
+ memberId: MemberIdSchema,
60
+ foodCode: import_zod3.z.string(),
61
+ type: FoodPreferenceTypeSchema,
62
+ createdAt: ISODateTimeStringSchema,
63
+ updatedAt: ISODateTimeStringSchema
64
+ });
65
+ // Annotate the CommonJS export names for ESM import in node:
66
+ 0 && (module.exports = {
67
+ FoodPreferenceResponseSchema,
68
+ FoodPreferenceTypeSchema
69
+ });
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const FoodPreferenceTypeSchema: z.ZodEnum<["LIKE", "DISLIKE", "ALLERGY"]>;
4
+ declare const FoodPreferenceResponseSchema: z.ZodObject<{
5
+ id: z.ZodNumber;
6
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
7
+ foodCode: z.ZodString;
8
+ type: z.ZodEnum<["LIKE", "DISLIKE", "ALLERGY"]>;
9
+ createdAt: z.ZodString;
10
+ updatedAt: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ type: "LIKE" | "DISLIKE" | "ALLERGY";
13
+ memberId: number & z.BRAND<"MemberId">;
14
+ id: number;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ foodCode: string;
18
+ }, {
19
+ type: "LIKE" | "DISLIKE" | "ALLERGY";
20
+ memberId: number;
21
+ id: number;
22
+ createdAt: string;
23
+ updatedAt: string;
24
+ foodCode: string;
25
+ }>;
26
+
27
+ type FoodPreferenceType = z.infer<typeof FoodPreferenceTypeSchema>;
28
+ type FoodPreferenceResponse = z.infer<typeof FoodPreferenceResponseSchema>;
29
+ type FoodPreferenceResponseDto = FoodPreferenceResponse;
30
+
31
+ export { type FoodPreferenceResponse, type FoodPreferenceResponseDto, FoodPreferenceResponseSchema, type FoodPreferenceType, FoodPreferenceTypeSchema };
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const FoodPreferenceTypeSchema: z.ZodEnum<["LIKE", "DISLIKE", "ALLERGY"]>;
4
+ declare const FoodPreferenceResponseSchema: z.ZodObject<{
5
+ id: z.ZodNumber;
6
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
7
+ foodCode: z.ZodString;
8
+ type: z.ZodEnum<["LIKE", "DISLIKE", "ALLERGY"]>;
9
+ createdAt: z.ZodString;
10
+ updatedAt: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ type: "LIKE" | "DISLIKE" | "ALLERGY";
13
+ memberId: number & z.BRAND<"MemberId">;
14
+ id: number;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ foodCode: string;
18
+ }, {
19
+ type: "LIKE" | "DISLIKE" | "ALLERGY";
20
+ memberId: number;
21
+ id: number;
22
+ createdAt: string;
23
+ updatedAt: string;
24
+ foodCode: string;
25
+ }>;
26
+
27
+ type FoodPreferenceType = z.infer<typeof FoodPreferenceTypeSchema>;
28
+ type FoodPreferenceResponse = z.infer<typeof FoodPreferenceResponseSchema>;
29
+ type FoodPreferenceResponseDto = FoodPreferenceResponse;
30
+
31
+ export { type FoodPreferenceResponse, type FoodPreferenceResponseDto, FoodPreferenceResponseSchema, type FoodPreferenceType, FoodPreferenceTypeSchema };
@@ -0,0 +1,12 @@
1
+ import "../../chunk-TA4BB3UC.js";
2
+ import {
3
+ FoodPreferenceResponseSchema,
4
+ FoodPreferenceTypeSchema
5
+ } from "../../chunk-F24BT6H4.js";
6
+ import "../../chunk-UFVPFUMI.js";
7
+ import "../../chunk-HRM3FQPL.js";
8
+ import "../../chunk-UXA4FHST.js";
9
+ export {
10
+ FoodPreferenceResponseSchema,
11
+ FoodPreferenceTypeSchema
12
+ };
@@ -0,0 +1,138 @@
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/recruit/index.ts
21
+ var recruit_exports = {};
22
+ __export(recruit_exports, {
23
+ CreateRecruitResponseSchema: () => CreateRecruitResponseSchema,
24
+ RecruitParticipantSchema: () => RecruitParticipantSchema,
25
+ RecruitRequestSchema: () => RecruitRequestSchema,
26
+ RecruitResponseSchema: () => RecruitResponseSchema,
27
+ RecruitStatusSchema: () => RecruitStatusSchema
28
+ });
29
+ module.exports = __toCommonJS(recruit_exports);
30
+
31
+ // src/domain/recruit/schema/recruit.schema.ts
32
+ var import_zod4 = require("zod");
33
+
34
+ // src/domain/common/schema/date.schema.ts
35
+ var import_zod = require("zod");
36
+ var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
37
+ var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
38
+ var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
39
+ var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
40
+
41
+ // src/domain/common/schema/id.schema.ts
42
+ var import_zod2 = require("zod");
43
+ var PositiveIntIdSchema = import_zod2.z.number().int().positive();
44
+ var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
45
+ var MemberIdSchema = PositiveIntIdSchema.brand();
46
+ var ArticleIdSchema = PositiveIntIdSchema.brand();
47
+ var CommentIdSchema = PositiveIntIdSchema.brand();
48
+ var RecruitIdSchema = PositiveIntIdSchema.brand();
49
+ var PlanIdSchema = PositiveIntIdSchema.brand();
50
+ var InvitationIdSchema = PositiveIntIdSchema.brand();
51
+ var RoomIdSchema = NonEmptyStringIdSchema.brand();
52
+ var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
53
+ var CouponIdSchema = PositiveIntIdSchema.brand();
54
+ var SubscriptionIdSchema = PositiveIntIdSchema.brand();
55
+ var FriendRequestIdSchema = PositiveIntIdSchema.brand();
56
+ var ReferralCodeSchema = import_zod2.z.string().min(4).max(64).brand();
57
+
58
+ // src/domain/member/schema/member.schema.ts
59
+ var import_zod3 = require("zod");
60
+ var MemberRoleSchema = import_zod3.z.enum(["USER", "ADMIN"]);
61
+ var MemberCoreSchema = import_zod3.z.object({
62
+ memberId: MemberIdSchema,
63
+ username: import_zod3.z.string().min(1).max(50),
64
+ profileImageUrl: import_zod3.z.string().url().nullable()
65
+ });
66
+ var MemberResponseSchema = MemberCoreSchema.pick({
67
+ memberId: true,
68
+ username: true,
69
+ profileImageUrl: true
70
+ });
71
+ var MemberSummaryResponseSchema = MemberCoreSchema.extend({
72
+ friends: import_zod3.z.number().int().min(0).default(0),
73
+ completedPlans: import_zod3.z.number().int().min(0).default(0),
74
+ uncompletedPlans: import_zod3.z.number().int().min(0).default(0)
75
+ });
76
+ var AuthPrincipalSchema = import_zod3.z.object({
77
+ memberId: MemberIdSchema,
78
+ role: MemberRoleSchema
79
+ });
80
+ var ProfilePreferenceItemSchema = import_zod3.z.object({
81
+ code: import_zod3.z.string(),
82
+ label: import_zod3.z.string()
83
+ });
84
+ var ProfileDetailResponseSchema = MemberCoreSchema.extend({
85
+ bio: import_zod3.z.string().nullable(),
86
+ planCount: import_zod3.z.number().int().min(0),
87
+ likes: import_zod3.z.array(ProfilePreferenceItemSchema),
88
+ dislikes: import_zod3.z.array(ProfilePreferenceItemSchema),
89
+ allergies: import_zod3.z.array(ProfilePreferenceItemSchema)
90
+ });
91
+ var UpdateProfileRequestSchema = import_zod3.z.object({
92
+ username: import_zod3.z.string().min(1).max(50),
93
+ profileImageUrl: import_zod3.z.string().url().nullable(),
94
+ bio: import_zod3.z.string().max(500).nullable()
95
+ });
96
+ var OnboardingPreferenceRequestSchema = import_zod3.z.object({
97
+ likedCodes: import_zod3.z.array(import_zod3.z.string()),
98
+ dislikedCodes: import_zod3.z.array(import_zod3.z.string()),
99
+ allergyCodes: import_zod3.z.array(import_zod3.z.string())
100
+ });
101
+ var OnboardingRequestSchema = UpdateProfileRequestSchema.merge(
102
+ OnboardingPreferenceRequestSchema
103
+ );
104
+ var PreferenceMetaResponseSchema = import_zod3.z.object({
105
+ onboardedAt: ISODateTimeStringSchema.nullable(),
106
+ lastUpdatedAt: ISODateTimeStringSchema.nullable(),
107
+ revision: import_zod3.z.number().int().min(0)
108
+ });
109
+
110
+ // src/domain/recruit/schema/recruit.schema.ts
111
+ var RecruitStatusSchema = import_zod4.z.enum(["OPEN", "CLOSED", "EXPIRED"]);
112
+ var RecruitRequestSchema = import_zod4.z.object({
113
+ targetCount: import_zod4.z.number().int().min(2),
114
+ meetingAt: ISODateTimeStringSchema,
115
+ location: import_zod4.z.string().min(1),
116
+ message: import_zod4.z.string().max(500)
117
+ });
118
+ var RecruitParticipantSchema = MemberResponseSchema.extend({});
119
+ var RecruitResponseSchema = RecruitRequestSchema.extend({
120
+ recruitId: RecruitIdSchema,
121
+ status: RecruitStatusSchema,
122
+ createdAt: ISODateTimeStringSchema,
123
+ expiredAt: ISODateTimeStringSchema,
124
+ updatedAt: ISODateTimeStringSchema,
125
+ author: MemberResponseSchema,
126
+ participants: import_zod4.z.array(RecruitParticipantSchema)
127
+ });
128
+ var CreateRecruitResponseSchema = import_zod4.z.object({
129
+ recruitId: RecruitIdSchema
130
+ });
131
+ // Annotate the CommonJS export names for ESM import in node:
132
+ 0 && (module.exports = {
133
+ CreateRecruitResponseSchema,
134
+ RecruitParticipantSchema,
135
+ RecruitRequestSchema,
136
+ RecruitResponseSchema,
137
+ RecruitStatusSchema
138
+ });