@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
@@ -0,0 +1,14 @@
1
+ export { i as domain } from './domain/index.cjs';
2
+ import './domain/article/index.cjs';
3
+ import 'zod';
4
+ import './domain/auth/index.cjs';
5
+ import './domain/common/index.cjs';
6
+ import './domain/friend/index.cjs';
7
+ import './domain/food/index.cjs';
8
+ import './domain/meal/index.cjs';
9
+ import './domain/meal-plan/index.cjs';
10
+ import './domain/member/index.cjs';
11
+ import './domain/promotion/index.cjs';
12
+ import './domain/push/index.cjs';
13
+ import './domain/restaurant/index.cjs';
14
+ import './domain/live-activity/index.cjs';
@@ -0,0 +1,14 @@
1
+ export { i as domain } from './domain/index.js';
2
+ import './domain/article/index.js';
3
+ import 'zod';
4
+ import './domain/auth/index.js';
5
+ import './domain/common/index.js';
6
+ import './domain/friend/index.js';
7
+ import './domain/food/index.js';
8
+ import './domain/meal/index.js';
9
+ import './domain/meal-plan/index.js';
10
+ import './domain/member/index.js';
11
+ import './domain/promotion/index.js';
12
+ import './domain/push/index.js';
13
+ import './domain/restaurant/index.js';
14
+ import './domain/live-activity/index.js';
package/dist/index.js CHANGED
@@ -1,198 +1,23 @@
1
1
  import {
2
2
  domain_exports
3
- } from "./chunk-WNYCCQM4.js";
3
+ } from "./chunk-IPANLE7B.js";
4
4
  import "./chunk-NCVWB52E.js";
5
- import "./chunk-YM7YU7IR.js";
6
- import "./chunk-W4TUW2GY.js";
7
- import "./chunk-W4C7XHTX.js";
8
- import "./chunk-AI2YMBJX.js";
9
- import "./chunk-PFSZSKD5.js";
10
- import {
11
- RoomSocketClientEventSchemas,
12
- RoomSocketServerEventSchemas
13
- } from "./chunk-PQMEXOPZ.js";
14
- import "./chunk-K3CZKI2F.js";
15
- import "./chunk-GTVEQYJW.js";
16
- import "./chunk-OJVXYCSH.js";
17
- import "./chunk-4E5E3PFW.js";
18
- import "./chunk-HRM3FQPL.js";
19
- import "./chunk-YGFAVC5N.js";
5
+ import "./chunk-KREAZLLH.js";
6
+ import "./chunk-QUAG5LF5.js";
20
7
  import "./chunk-NJTV6DRT.js";
21
- import "./chunk-ZH7D7B2Y.js";
22
- import "./chunk-H77ISYYC.js";
23
-
24
- // src/types/matching/types.ts
25
- var RecruitStageMap = {
26
- waiting: 1,
27
- location: 2,
28
- "location-vote": 3,
29
- "exclude-menu": 4,
30
- menu: 5,
31
- restaurant: 6,
32
- finish: 7
33
- };
34
- var InvitationStageMap = {
35
- waiting: 1,
36
- date: 2,
37
- time: 3,
38
- location: 4,
39
- "location-vote": 5,
40
- "exclude-menu": 6,
41
- menu: 7,
42
- restaurant: 8,
43
- finish: 9
44
- };
45
-
46
- // src/types/ai/menu-ai.ts
47
- var MenuRecommendationAIResponseDto = {
48
- group_id: null,
49
- user_ids: ["user_a", "user_b", "user_c"],
50
- exclude_days: 3,
51
- per_user: [
52
- {
53
- user_id: "user_a",
54
- excluded_codes: [],
55
- overrides_applied: [],
56
- taste_top: [
57
- {
58
- code: "02011027",
59
- label: "\uC790\uC7A5\uBA74",
60
- score: 0.5784
61
- },
62
- {
63
- code: "11015001",
64
- label: "\uC7A1\uCC44",
65
- score: 0.3671
66
- },
67
- {
68
- code: "03021005",
69
- label: "\uBD88\uACE0\uAE30",
70
- score: 0.3451
71
- },
72
- {
73
- code: "05011001",
74
- label: "\uBE44\uBE54\uBC25",
75
- score: 0.3212
76
- }
77
- ]
78
- },
79
- {
80
- user_id: "user_b",
81
- excluded_codes: [],
82
- overrides_applied: [],
83
- taste_top: [
84
- {
85
- code: "05011001",
86
- label: "\uBE44\uBE54\uBC25",
87
- score: 0.4793
88
- },
89
- {
90
- code: "11015001",
91
- label: "\uC7A1\uCC44",
92
- score: 0.4052
93
- },
94
- {
95
- code: "03021005",
96
- label: "\uBD88\uACE0\uAE30",
97
- score: 0.3189
98
- },
99
- {
100
- code: "02011027",
101
- label: "\uC790\uC7A5\uBA74",
102
- score: 0.3103
103
- }
104
- ]
105
- },
106
- {
107
- user_id: "user_c",
108
- excluded_codes: [],
109
- overrides_applied: [],
110
- taste_top: [
111
- {
112
- code: "02011027",
113
- label: "\uC790\uC7A5\uBA74",
114
- score: 0.6998
115
- },
116
- {
117
- code: "11015001",
118
- label: "\uC7A1\uCC44",
119
- score: 0.4993
120
- },
121
- {
122
- code: "05011001",
123
- label: "\uBE44\uBE54\uBC25",
124
- score: 0.4701
125
- },
126
- {
127
- code: "03021005",
128
- label: "\uBD88\uACE0\uAE30",
129
- score: 0.3383
130
- }
131
- ]
132
- }
133
- ],
134
- group_excluded: {
135
- mode: "union",
136
- codes: []
137
- },
138
- recommendations: [
139
- {
140
- code: "02011027",
141
- label: "\uC790\uC7A5\uBA74",
142
- group_score: 0.5295,
143
- member_scores: {
144
- user_a: 0.5784,
145
- user_b: 0.3103,
146
- user_c: 0.6998
147
- },
148
- reasons: ["\uC911\uAC04 \uCDE8\uD5A5", "\uCD5C\uADFC 3\uC77C \uB0B4 \uBBF8\uC12D\uCDE8"]
149
- },
150
- {
151
- code: "11015001",
152
- label: "\uC7A1\uCC44",
153
- group_score: 0.4239,
154
- member_scores: {
155
- user_a: 0.3671,
156
- user_b: 0.4052,
157
- user_c: 0.4993
158
- },
159
- reasons: ["\uC911\uAC04 \uCDE8\uD5A5", "\uCD5C\uADFC 3\uC77C \uB0B4 \uBBF8\uC12D\uCDE8"]
160
- },
161
- {
162
- code: "05011001",
163
- label: "\uBE44\uBE54\uBC25",
164
- group_score: 0.4235,
165
- member_scores: {
166
- user_a: 0.3212,
167
- user_b: 0.4793,
168
- user_c: 0.4701
169
- },
170
- reasons: ["\uC911\uAC04 \uCDE8\uD5A5", "\uCD5C\uADFC 3\uC77C \uB0B4 \uBBF8\uC12D\uCDE8"]
171
- },
172
- {
173
- code: "03021005",
174
- label: "\uBD88\uACE0\uAE30",
175
- group_score: 0.3341,
176
- member_scores: {
177
- user_a: 0.3451,
178
- user_b: 0.3189,
179
- user_c: 0.3383
180
- },
181
- reasons: ["\uC911\uAC04 \uCDE8\uD5A5", "\uCD5C\uADFC 3\uC77C \uB0B4 \uBBF8\uC12D\uCDE8"]
182
- }
183
- ],
184
- params: {
185
- taste_mode: "mean",
186
- exclude_mode: "union",
187
- weights: {},
188
- top_k: 10
189
- }
190
- };
8
+ import "./chunk-65DWKLP6.js";
9
+ import "./chunk-P3MYMK34.js";
10
+ import "./chunk-G7TITUHT.js";
11
+ import "./chunk-Q4BPFDVB.js";
12
+ import "./chunk-DRCY5UNQ.js";
13
+ import "./chunk-EX7S5FI5.js";
14
+ import "./chunk-3BLXZW4U.js";
15
+ import "./chunk-GESEM4IA.js";
16
+ import "./chunk-TIOX7OHA.js";
17
+ import "./chunk-TOXRHSD6.js";
18
+ import "./chunk-YV734GYZ.js";
19
+ import "./chunk-EYZU5HPG.js";
20
+ import "./chunk-6R5CCY5Q.js";
191
21
  export {
192
- InvitationStageMap,
193
- MenuRecommendationAIResponseDto,
194
- RecruitStageMap,
195
- RoomSocketClientEventSchemas,
196
- RoomSocketServerEventSchemas,
197
22
  domain_exports as domain
198
23
  };
package/package.json CHANGED
@@ -1,55 +1,52 @@
1
- {
2
- "name": "@kimdaegyu/babmukdang-shared",
3
- "version": "1.1.10",
4
- "private": false,
5
- "type": "module",
6
- "main": "./dist/index.cjs",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.js",
13
- "require": "./dist/index.cjs"
14
- },
15
- "./types/*": "./dist/types/*.d.ts",
16
- "./schemas/*": "./dist/schemas/*.js",
17
- "./nest-adapters/*": "./dist/nest-adapters/*.js",
18
- "./domain/*": {
19
- "types": "./dist/domain/*/index.d.ts",
20
- "import": "./dist/domain/*/index.js",
21
- "require": "./dist/domain/*/index.cjs"
22
- },
23
- "./domain": {
24
- "types": "./dist/domain/index.d.ts",
25
- "import": "./dist/domain/index.js",
26
- "require": "./dist/domain/index.cjs"
27
- }
28
- },
29
- "files": [
30
- "dist"
31
- ],
32
- "sideEffects": false,
33
- "scripts": {
34
- "build": "tsup src/index.ts src/domain/index.ts src/domain/*/index.ts --dts --format esm,cjs --clean",
35
- "release": "changesets version && pnpm -w i && pnpm build && changesets publish",
36
- "format": "prettier --write \"src/**/*.{ts,tsx,json,md}\" \"*.{json,md}\"",
37
- "format:check": "prettier --check \"src/**/*.{ts,tsx,json,md}\" \"*.{json,md}\""
38
- },
39
- "devDependencies": {
40
- "@changesets/cli": "^2.27.0",
41
- "prettier": "^3.8.4",
42
- "tsup": "^8.0.0",
43
- "typescript": "^5.5.0",
44
- "tsc-alias": "^1.8.16",
45
- "tsconfig-paths": "^4.2.0"
46
- },
47
- "peerDependencies": {
48
- "zod": "^3.25.0"
49
- },
50
- "dependencies": {
51
- "class-transformer": "^0.5.1",
52
- "class-validator": "^0.14.2",
53
- "zod": "^3.25.0"
54
- }
55
- }
1
+ {
2
+ "name": "@kimdaegyu/babmukdang-shared",
3
+ "version": "2.0.2",
4
+ "private": false,
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ },
15
+ "./types/*": "./dist/types/*.d.ts",
16
+ "./schemas/*": "./dist/schemas/*.js",
17
+ "./nest-adapters/*": "./dist/nest-adapters/*.js",
18
+ "./domain/*": {
19
+ "types": "./dist/domain/*/index.d.ts",
20
+ "import": "./dist/domain/*/index.js",
21
+ "require": "./dist/domain/*/index.cjs"
22
+ },
23
+ "./domain": {
24
+ "types": "./dist/domain/index.d.ts",
25
+ "import": "./dist/domain/index.js",
26
+ "require": "./dist/domain/index.cjs"
27
+ }
28
+ },
29
+ "files": [
30
+ "dist"
31
+ ],
32
+ "sideEffects": false,
33
+ "scripts": {
34
+ "build": "tsup src/index.ts src/domain/index.ts src/domain/*/index.ts --dts --format esm,cjs --clean",
35
+ "release": "changesets version && pnpm -w i && pnpm build && changesets publish",
36
+ "format": "prettier --write \"src/**/*.{ts,tsx,json,md}\" \"*.{json,md}\"",
37
+ "format:check": "prettier --check \"src/**/*.{ts,tsx,json,md}\" \"*.{json,md}\""
38
+ },
39
+ "devDependencies": {
40
+ "@changesets/cli": "^2.27.0",
41
+ "prettier": "^3.8.4",
42
+ "tsup": "^8.0.0",
43
+ "typescript": "^5.5.0",
44
+ "tsc-alias": "^1.8.16",
45
+ "tsconfig-paths": "^4.2.0"
46
+ },
47
+ "dependencies": {
48
+ "class-transformer": "^0.5.1",
49
+ "class-validator": "^0.14.2",
50
+ "zod": "^4.4.3"
51
+ }
52
+ }
File without changes
@@ -1,232 +0,0 @@
1
- import {
2
- RestaurantSchema
3
- } from "./chunk-GTVEQYJW.js";
4
- import {
5
- ISODateStringSchema,
6
- ISODateTimeStringSchema
7
- } from "./chunk-HRM3FQPL.js";
8
- import {
9
- MemberCoreSchema
10
- } from "./chunk-ZH7D7B2Y.js";
11
- import {
12
- FoodCodeSchema,
13
- FoodSchema,
14
- MemberIdSchema,
15
- RestaurantIdSchema,
16
- RoomIdSchema
17
- } from "./chunk-H77ISYYC.js";
18
-
19
- // src/domain/room/schema/room.schema.ts
20
- import { z } from "zod";
21
- var MenuCodeSchema = FoodCodeSchema;
22
- var LocationIdSchema = z.string().min(1).brand();
23
- var MenuSchema = FoodSchema.extend({});
24
- var LocationCandidateSchema = z.object({
25
- locationId: LocationIdSchema,
26
- placeName: z.string(),
27
- lat: z.number(),
28
- lng: z.number(),
29
- address: z.string()
30
- });
31
- var ParticipantSchema = MemberCoreSchema.extend({
32
- ready: z.boolean()
33
- });
34
- var RecruitRoomStageSchema = z.enum([
35
- "waiting",
36
- "location",
37
- "location-vote",
38
- "exclude-menu",
39
- "menu",
40
- "restaurant",
41
- "finish"
42
- ]);
43
- var RoomTypeSchema = z.enum(["recruit", "invitation"]);
44
- var InvitationRoomStageSchema = z.enum([
45
- "waiting",
46
- "date",
47
- "time",
48
- "location",
49
- "location-vote",
50
- "exclude-menu",
51
- "menu",
52
- "restaurant",
53
- "finish"
54
- ]);
55
- var ReadyStateRequestSchema = z.object({
56
- isReady: z.boolean()
57
- });
58
- var ChatMessageRequestSchema = z.object({
59
- message: z.string().min(1).max(500)
60
- });
61
- var AddLocationCandidateRequestSchema = LocationCandidateSchema;
62
- var VoteLocationRequestSchema = z.object({ locationId: LocationIdSchema });
63
- var ExcludeMenuRequestSchema = z.object({ menu: MenuSchema });
64
- var PickMenuRequestSchema = z.object({ menuCode: MenuCodeSchema });
65
- var PickRestaurantRequestSchema = z.object({ restaurantId: RestaurantIdSchema });
66
- var PickTimesRequestSchema = z.object({ times: z.array(z.string().min(1)).min(1) });
67
- var PickDateRequestSchema = z.object({ dates: z.array(ISODateStringSchema).min(1) });
68
- var RoomAssignedResponseSchema = z.object({
69
- roomId: RoomIdSchema
70
- });
71
- var RoomAccessResponseSchema = z.object({
72
- roomId: RoomIdSchema,
73
- roomType: RoomTypeSchema,
74
- stage: z.union([RecruitRoomStageSchema, InvitationRoomStageSchema]),
75
- canJoin: z.boolean()
76
- });
77
- var MatchingNotificationKindSchema = z.enum(["recruit", "invitation"]);
78
- var MatchingNotificationSchema = z.object({
79
- notificationId: z.string().min(1),
80
- kind: MatchingNotificationKindSchema,
81
- roomId: RoomIdSchema,
82
- roomType: RoomTypeSchema,
83
- title: z.string().min(1),
84
- message: z.string().min(1),
85
- createdAt: ISODateTimeStringSchema,
86
- readAt: ISODateTimeStringSchema.nullable()
87
- });
88
- var RoomSocketErrorSchema = z.object({
89
- code: z.string(),
90
- message: z.string()
91
- });
92
- var ChatMessageResponseSchema = z.object({
93
- messageId: z.string(),
94
- user: MemberCoreSchema,
95
- message: z.string(),
96
- createdAt: ISODateTimeStringSchema
97
- });
98
- var ReadyStateChangedSchema = z.object({
99
- readyCount: z.number().int().min(0),
100
- participantCount: z.number().int().min(0)
101
- });
102
- var FinalStateSchema = z.object({
103
- location: LocationCandidateSchema.optional(),
104
- excludeMenu: z.array(MenuSchema).optional(),
105
- menu: MenuSchema.optional(),
106
- restaurant: RestaurantSchema.optional(),
107
- time: z.string().optional(),
108
- date: ISODateStringSchema.optional()
109
- });
110
- var RoomInitialStateSchema = z.object({
111
- participants: z.array(ParticipantSchema),
112
- chat: z.array(ChatMessageResponseSchema),
113
- final: FinalStateSchema
114
- });
115
- var TimePicksUpdateResponseSchema = z.array(
116
- z.object({ memberId: MemberIdSchema, times: z.array(z.string()) })
117
- );
118
- var DatePicksUpdateResponseSchema = z.array(
119
- z.object({ memberId: MemberIdSchema, dates: z.array(ISODateStringSchema) })
120
- );
121
- var LocationCandidateAddUpdateResponseSchema = z.array(
122
- LocationCandidateSchema.extend({ authorMemberId: MemberIdSchema })
123
- );
124
- var LocationCandidateVoteUpdateResponseSchema = z.array(
125
- z.object({ locationId: LocationIdSchema, votes: z.array(MemberIdSchema) })
126
- );
127
- var ExcludeMenuUpdateResponseSchema = z.array(
128
- z.object({ memberId: MemberIdSchema, exclusions: z.array(MenuSchema) })
129
- );
130
- var MenuPickUpdateResponseSchema = z.array(
131
- z.object({ menuCode: MenuCodeSchema, selectedMembers: z.array(MemberIdSchema) })
132
- );
133
- var RestaurantPickUpdateResponseSchema = z.array(
134
- z.object({ restaurantId: RestaurantIdSchema, selectedMembers: z.array(MemberIdSchema) })
135
- );
136
- var WaitingPhaseDataSchema = z.object({
137
- locationInitial: z.string().optional(),
138
- meetingAt: ISODateTimeStringSchema.optional()
139
- });
140
- var LocationVotePhaseDataSchema = z.object({
141
- locations: LocationCandidateAddUpdateResponseSchema,
142
- votes: LocationCandidateVoteUpdateResponseSchema
143
- });
144
- var ExcludeMenuPhaseDataSchema = z.object({
145
- recentMenus: z.array(z.object({ userId: z.string(), menuList: z.array(MenuSchema) })),
146
- excludedMenuList: ExcludeMenuUpdateResponseSchema
147
- });
148
- var MenuPhaseDataSchema = z.object({
149
- initialMenus: z.array(MenuSchema),
150
- menuPick: MenuPickUpdateResponseSchema
151
- });
152
- var RestaurantPhaseDataSchema = z.object({
153
- initialRestaurants: z.array(RestaurantSchema),
154
- restaurantUserList: RestaurantPickUpdateResponseSchema
155
- });
156
- var PhaseDataBroadcastSchema = z.discriminatedUnion("phase", [
157
- z.object({ phase: z.literal("waiting"), data: WaitingPhaseDataSchema }),
158
- z.object({ phase: z.literal("date"), data: DatePicksUpdateResponseSchema }),
159
- z.object({ phase: z.literal("time"), data: TimePicksUpdateResponseSchema }),
160
- z.object({ phase: z.literal("location"), data: WaitingPhaseDataSchema }),
161
- z.object({ phase: z.literal("location-vote"), data: LocationVotePhaseDataSchema }),
162
- z.object({ phase: z.literal("exclude-menu"), data: ExcludeMenuPhaseDataSchema }),
163
- z.object({ phase: z.literal("menu"), data: MenuPhaseDataSchema }),
164
- z.object({ phase: z.literal("restaurant"), data: RestaurantPhaseDataSchema }),
165
- z.object({ phase: z.literal("finish"), data: WaitingPhaseDataSchema })
166
- ]);
167
- var RoomSocketClientEventSchemas = {
168
- "ready-state": ReadyStateRequestSchema,
169
- "chat-message": ChatMessageRequestSchema,
170
- "add-location-candidate": AddLocationCandidateRequestSchema,
171
- "vote-location": VoteLocationRequestSchema,
172
- "exclude-menu": ExcludeMenuRequestSchema,
173
- "pick-menu": PickMenuRequestSchema,
174
- "pick-restaurant": PickRestaurantRequestSchema,
175
- "pick-times": PickTimesRequestSchema,
176
- "pick-date": PickDateRequestSchema
177
- };
178
- var RoomSocketServerEventSchemas = {
179
- "room-assigned": RoomAssignedResponseSchema,
180
- "stage-changed": PhaseDataBroadcastSchema,
181
- "chat-message": ChatMessageResponseSchema,
182
- "room-error": RoomSocketErrorSchema,
183
- "ready-state-changed": ReadyStateChangedSchema,
184
- "join-room": RoomInitialStateSchema,
185
- "time-updated": TimePicksUpdateResponseSchema,
186
- "date-updated": DatePicksUpdateResponseSchema,
187
- "location-add-updated": LocationCandidateAddUpdateResponseSchema,
188
- "location-vote-updated": LocationCandidateVoteUpdateResponseSchema,
189
- "exclude-menu-updated": ExcludeMenuUpdateResponseSchema,
190
- "menu-pick-updated": MenuPickUpdateResponseSchema,
191
- "restaurant-pick-updated": RestaurantPickUpdateResponseSchema,
192
- "final-state-response": FinalStateSchema
193
- };
194
-
195
- export {
196
- MenuCodeSchema,
197
- LocationIdSchema,
198
- MenuSchema,
199
- LocationCandidateSchema,
200
- ParticipantSchema,
201
- RecruitRoomStageSchema,
202
- RoomTypeSchema,
203
- InvitationRoomStageSchema,
204
- ReadyStateRequestSchema,
205
- ChatMessageRequestSchema,
206
- AddLocationCandidateRequestSchema,
207
- VoteLocationRequestSchema,
208
- ExcludeMenuRequestSchema,
209
- PickMenuRequestSchema,
210
- PickRestaurantRequestSchema,
211
- PickTimesRequestSchema,
212
- PickDateRequestSchema,
213
- RoomAssignedResponseSchema,
214
- RoomAccessResponseSchema,
215
- MatchingNotificationKindSchema,
216
- MatchingNotificationSchema,
217
- RoomSocketErrorSchema,
218
- ChatMessageResponseSchema,
219
- ReadyStateChangedSchema,
220
- FinalStateSchema,
221
- RoomInitialStateSchema,
222
- TimePicksUpdateResponseSchema,
223
- DatePicksUpdateResponseSchema,
224
- LocationCandidateAddUpdateResponseSchema,
225
- LocationCandidateVoteUpdateResponseSchema,
226
- ExcludeMenuUpdateResponseSchema,
227
- MenuPickUpdateResponseSchema,
228
- RestaurantPickUpdateResponseSchema,
229
- PhaseDataBroadcastSchema,
230
- RoomSocketClientEventSchemas,
231
- RoomSocketServerEventSchemas
232
- };
@@ -1,40 +0,0 @@
1
- import {
2
- LocationCandidateSchema
3
- } from "./chunk-PQMEXOPZ.js";
4
- import {
5
- RestaurantSchema
6
- } from "./chunk-GTVEQYJW.js";
7
- import {
8
- ISODateTimeStringSchema
9
- } from "./chunk-HRM3FQPL.js";
10
- import {
11
- MemberCoreSchema
12
- } from "./chunk-ZH7D7B2Y.js";
13
- import {
14
- PlanIdSchema
15
- } from "./chunk-H77ISYYC.js";
16
-
17
- // src/domain/plan/plan.schema.ts
18
- import { z } from "zod";
19
- var PlanStatusSchema = z.enum(["PLANNING", "COMPLETED"]);
20
- var PlanTypeSchema = z.enum(["RECRUIT", "INVITATION"]);
21
- var PlanResponseSchema = z.object({
22
- planId: PlanIdSchema,
23
- meetingAt: ISODateTimeStringSchema,
24
- location: LocationCandidateSchema.nullable(),
25
- restaurant: RestaurantSchema.nullable(),
26
- author: MemberCoreSchema,
27
- participants: z.array(MemberCoreSchema),
28
- status: PlanStatusSchema,
29
- type: PlanTypeSchema,
30
- createdAt: ISODateTimeStringSchema,
31
- updatedAt: ISODateTimeStringSchema
32
- });
33
- var PlanListQuerySchema = z.object({});
34
-
35
- export {
36
- PlanStatusSchema,
37
- PlanTypeSchema,
38
- PlanResponseSchema,
39
- PlanListQuerySchema
40
- };