@kimdaegyu/babmukdang-shared 0.1.2 → 1.0.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.
package/dist/index.js CHANGED
@@ -1,3 +1,14 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result) __defProp(target, key, result);
9
+ return result;
10
+ };
11
+
1
12
  // src/types/plan/plan.ts
2
13
  var PlanStatus = /* @__PURE__ */ ((PlanStatus2) => {
3
14
  PlanStatus2["PLANNING"] = "PLANNING";
@@ -31,9 +42,327 @@ var InvitationStageMap = {
31
42
  restaurant: 8,
32
43
  finish: 9
33
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
+ };
191
+
192
+ // src/nest-adapters/matching/request.dto.ts
193
+ import {
194
+ IsArray,
195
+ IsBoolean,
196
+ IsNotEmpty,
197
+ IsNumber,
198
+ IsString
199
+ } from "class-validator";
200
+ var RestaurantPickRequestDtoServer = class {
201
+ };
202
+ __decorateClass([
203
+ IsString(),
204
+ IsNotEmpty()
205
+ ], RestaurantPickRequestDtoServer.prototype, "restaurantId", 2);
206
+ var DatePicksRequestDtoServer = class {
207
+ };
208
+ __decorateClass([
209
+ IsArray(),
210
+ IsNotEmpty()
211
+ ], DatePicksRequestDtoServer.prototype, "dates", 2);
212
+ var TimePicksRequestDtoServer = class {
213
+ };
214
+ __decorateClass([
215
+ IsArray(),
216
+ IsNotEmpty()
217
+ ], TimePicksRequestDtoServer.prototype, "times", 2);
218
+ var LocationCandidateAddRequestDtoServer = class {
219
+ };
220
+ __decorateClass([
221
+ IsString(),
222
+ IsNotEmpty()
223
+ ], LocationCandidateAddRequestDtoServer.prototype, "id", 2);
224
+ __decorateClass([
225
+ IsString(),
226
+ IsNotEmpty()
227
+ ], LocationCandidateAddRequestDtoServer.prototype, "placeName", 2);
228
+ __decorateClass([
229
+ IsNumber(),
230
+ IsNotEmpty()
231
+ ], LocationCandidateAddRequestDtoServer.prototype, "lat", 2);
232
+ __decorateClass([
233
+ IsNumber(),
234
+ IsNotEmpty()
235
+ ], LocationCandidateAddRequestDtoServer.prototype, "lng", 2);
236
+ __decorateClass([
237
+ IsString(),
238
+ IsNotEmpty()
239
+ ], LocationCandidateAddRequestDtoServer.prototype, "address", 2);
240
+ var LocationCandidateVoteRequestDtoServer = class {
241
+ };
242
+ __decorateClass([
243
+ IsString(),
244
+ IsNotEmpty()
245
+ ], LocationCandidateVoteRequestDtoServer.prototype, "locationId", 2);
246
+ var ExcludeMenuRequestDtoServer = class {
247
+ };
248
+ __decorateClass([
249
+ IsString(),
250
+ IsNotEmpty()
251
+ ], ExcludeMenuRequestDtoServer.prototype, "menu", 2);
252
+ var MenuPickRequestDtoServer = class {
253
+ };
254
+ __decorateClass([
255
+ IsString(),
256
+ IsNotEmpty()
257
+ ], MenuPickRequestDtoServer.prototype, "menuCode", 2);
258
+ var ChatMessageRequestDtoServer = class {
259
+ };
260
+ __decorateClass([
261
+ IsString(),
262
+ IsNotEmpty()
263
+ ], ChatMessageRequestDtoServer.prototype, "text", 2);
264
+ var ReadyStateRequestDtoServer = class {
265
+ };
266
+ __decorateClass([
267
+ IsBoolean(),
268
+ IsNotEmpty()
269
+ ], ReadyStateRequestDtoServer.prototype, "isReady", 2);
270
+
271
+ // src/nest-adapters/matching/server-server.dto.ts
272
+ import { IsArray as IsArray2, IsNotEmpty as IsNotEmpty2, IsObject, IsString as IsString2 } from "class-validator";
273
+ var AnnouncementRequestDto = class {
274
+ };
275
+ __decorateClass([
276
+ IsString2(),
277
+ IsNotEmpty2()
278
+ ], AnnouncementRequestDto.prototype, "announcementId", 2);
279
+ __decorateClass([
280
+ IsString2(),
281
+ IsNotEmpty2()
282
+ ], AnnouncementRequestDto.prototype, "location", 2);
283
+ __decorateClass([
284
+ IsString2(),
285
+ IsNotEmpty2()
286
+ ], AnnouncementRequestDto.prototype, "meetingAt", 2);
287
+ __decorateClass([
288
+ IsArray2(),
289
+ IsNotEmpty2()
290
+ ], AnnouncementRequestDto.prototype, "participants", 2);
291
+ __decorateClass([
292
+ IsArray2(),
293
+ IsNotEmpty2()
294
+ ], AnnouncementRequestDto.prototype, "recentMenu", 2);
295
+ var InvitationRequestDto = class {
296
+ };
297
+ __decorateClass([
298
+ IsString2(),
299
+ IsNotEmpty2()
300
+ ], InvitationRequestDto.prototype, "invitationId", 2);
301
+ __decorateClass([
302
+ IsArray2(),
303
+ IsNotEmpty2()
304
+ ], InvitationRequestDto.prototype, "participants", 2);
305
+ __decorateClass([
306
+ IsArray2(),
307
+ IsNotEmpty2()
308
+ ], InvitationRequestDto.prototype, "recentMenu", 2);
309
+ var AnnouncementResultRequestDto = class {
310
+ };
311
+ __decorateClass([
312
+ IsString2(),
313
+ IsNotEmpty2()
314
+ ], AnnouncementResultRequestDto.prototype, "announcementId", 2);
315
+ __decorateClass([
316
+ IsObject(),
317
+ IsNotEmpty2()
318
+ ], AnnouncementResultRequestDto.prototype, "location", 2);
319
+ __decorateClass([
320
+ IsObject(),
321
+ IsNotEmpty2()
322
+ ], AnnouncementResultRequestDto.prototype, "menu", 2);
323
+ __decorateClass([
324
+ IsObject(),
325
+ IsNotEmpty2()
326
+ ], AnnouncementResultRequestDto.prototype, "restaurant", 2);
327
+ var InvitationResultRequestDto = class {
328
+ };
329
+ __decorateClass([
330
+ IsString2(),
331
+ IsNotEmpty2()
332
+ ], InvitationResultRequestDto.prototype, "invitationId", 2);
333
+ __decorateClass([
334
+ IsObject(),
335
+ IsNotEmpty2()
336
+ ], InvitationResultRequestDto.prototype, "location", 2);
337
+ __decorateClass([
338
+ IsObject(),
339
+ IsNotEmpty2()
340
+ ], InvitationResultRequestDto.prototype, "menu", 2);
341
+ __decorateClass([
342
+ IsString2(),
343
+ IsNotEmpty2()
344
+ ], InvitationResultRequestDto.prototype, "meetingAt", 2);
345
+ __decorateClass([
346
+ IsObject(),
347
+ IsNotEmpty2()
348
+ ], InvitationResultRequestDto.prototype, "restaurant", 2);
34
349
  export {
350
+ AnnouncementRequestDto,
351
+ AnnouncementResultRequestDto,
35
352
  AnnouncementStageMap,
353
+ ChatMessageRequestDtoServer,
354
+ DatePicksRequestDtoServer,
355
+ ExcludeMenuRequestDtoServer,
356
+ InvitationRequestDto,
357
+ InvitationResultRequestDto,
36
358
  InvitationStageMap,
359
+ LocationCandidateAddRequestDtoServer,
360
+ LocationCandidateVoteRequestDtoServer,
361
+ MenuPickRequestDtoServer,
362
+ MenuRecommendationAIResponseDto,
37
363
  PlanStatus,
38
- PlanType
364
+ PlanType,
365
+ ReadyStateRequestDtoServer,
366
+ RestaurantPickRequestDtoServer,
367
+ TimePicksRequestDtoServer
39
368
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimdaegyu/babmukdang-shared",
3
- "version": "0.1.2",
3
+ "version": "1.0.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -25,11 +25,15 @@
25
25
  "release": "changesets version && pnpm -w i && pnpm build && changesets publish"
26
26
  },
27
27
  "devDependencies": {
28
+ "@changesets/cli": "^2.27.0",
28
29
  "tsup": "^8.0.0",
29
- "typescript": "^5.5.0",
30
- "@changesets/cli": "^2.27.0"
30
+ "typescript": "^5.5.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "zod": "^3.23.0"
34
+ },
35
+ "dependencies": {
36
+ "class-transformer": "^0.5.1",
37
+ "class-validator": "^0.14.2"
34
38
  }
35
39
  }