@kimdaegyu/babmukdang-shared 0.1.2 → 1.0.1

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.cjs CHANGED
@@ -16,14 +16,36 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var __decorateClass = (decorators, target, key, kind) => {
20
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
21
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
22
+ if (decorator = decorators[i])
23
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
24
+ if (kind && result) __defProp(target, key, result);
25
+ return result;
26
+ };
19
27
 
20
28
  // src/index.ts
21
29
  var index_exports = {};
22
30
  __export(index_exports, {
31
+ AnnouncementRequestDto: () => AnnouncementRequestDto,
32
+ AnnouncementResultRequestDto: () => AnnouncementResultRequestDto,
23
33
  AnnouncementStageMap: () => AnnouncementStageMap,
34
+ ChatMessageRequestDtoServer: () => ChatMessageRequestDtoServer,
35
+ DatePicksRequestDtoServer: () => DatePicksRequestDtoServer,
36
+ ExcludeMenuRequestDtoServer: () => ExcludeMenuRequestDtoServer,
37
+ InvitationRequestDto: () => InvitationRequestDto,
38
+ InvitationResultRequestDto: () => InvitationResultRequestDto,
24
39
  InvitationStageMap: () => InvitationStageMap,
40
+ LocationCandidateAddRequestDtoServer: () => LocationCandidateAddRequestDtoServer,
41
+ LocationCandidateVoteRequestDtoServer: () => LocationCandidateVoteRequestDtoServer,
42
+ MenuPickRequestDtoServer: () => MenuPickRequestDtoServer,
43
+ MenuRecommendationAIResponseDto: () => MenuRecommendationAIResponseDto,
25
44
  PlanStatus: () => PlanStatus,
26
- PlanType: () => PlanType
45
+ PlanType: () => PlanType,
46
+ ReadyStateRequestDtoServer: () => ReadyStateRequestDtoServer,
47
+ RestaurantPickRequestDtoServer: () => RestaurantPickRequestDtoServer,
48
+ TimePicksRequestDtoServer: () => TimePicksRequestDtoServer
27
49
  });
28
50
  module.exports = __toCommonJS(index_exports);
29
51
 
@@ -60,10 +82,322 @@ var InvitationStageMap = {
60
82
  restaurant: 8,
61
83
  finish: 9
62
84
  };
85
+
86
+ // src/types/ai/menu-ai.ts
87
+ var MenuRecommendationAIResponseDto = {
88
+ group_id: null,
89
+ user_ids: ["user_a", "user_b", "user_c"],
90
+ exclude_days: 3,
91
+ per_user: [
92
+ {
93
+ user_id: "user_a",
94
+ excluded_codes: [],
95
+ overrides_applied: [],
96
+ taste_top: [
97
+ {
98
+ code: "02011027",
99
+ label: "\uC790\uC7A5\uBA74",
100
+ score: 0.5784
101
+ },
102
+ {
103
+ code: "11015001",
104
+ label: "\uC7A1\uCC44",
105
+ score: 0.3671
106
+ },
107
+ {
108
+ code: "03021005",
109
+ label: "\uBD88\uACE0\uAE30",
110
+ score: 0.3451
111
+ },
112
+ {
113
+ code: "05011001",
114
+ label: "\uBE44\uBE54\uBC25",
115
+ score: 0.3212
116
+ }
117
+ ]
118
+ },
119
+ {
120
+ user_id: "user_b",
121
+ excluded_codes: [],
122
+ overrides_applied: [],
123
+ taste_top: [
124
+ {
125
+ code: "05011001",
126
+ label: "\uBE44\uBE54\uBC25",
127
+ score: 0.4793
128
+ },
129
+ {
130
+ code: "11015001",
131
+ label: "\uC7A1\uCC44",
132
+ score: 0.4052
133
+ },
134
+ {
135
+ code: "03021005",
136
+ label: "\uBD88\uACE0\uAE30",
137
+ score: 0.3189
138
+ },
139
+ {
140
+ code: "02011027",
141
+ label: "\uC790\uC7A5\uBA74",
142
+ score: 0.3103
143
+ }
144
+ ]
145
+ },
146
+ {
147
+ user_id: "user_c",
148
+ excluded_codes: [],
149
+ overrides_applied: [],
150
+ taste_top: [
151
+ {
152
+ code: "02011027",
153
+ label: "\uC790\uC7A5\uBA74",
154
+ score: 0.6998
155
+ },
156
+ {
157
+ code: "11015001",
158
+ label: "\uC7A1\uCC44",
159
+ score: 0.4993
160
+ },
161
+ {
162
+ code: "05011001",
163
+ label: "\uBE44\uBE54\uBC25",
164
+ score: 0.4701
165
+ },
166
+ {
167
+ code: "03021005",
168
+ label: "\uBD88\uACE0\uAE30",
169
+ score: 0.3383
170
+ }
171
+ ]
172
+ }
173
+ ],
174
+ group_excluded: {
175
+ mode: "union",
176
+ codes: []
177
+ },
178
+ recommendations: [
179
+ {
180
+ code: "02011027",
181
+ label: "\uC790\uC7A5\uBA74",
182
+ group_score: 0.5295,
183
+ member_scores: {
184
+ user_a: 0.5784,
185
+ user_b: 0.3103,
186
+ user_c: 0.6998
187
+ },
188
+ reasons: ["\uC911\uAC04 \uCDE8\uD5A5", "\uCD5C\uADFC 3\uC77C \uB0B4 \uBBF8\uC12D\uCDE8"]
189
+ },
190
+ {
191
+ code: "11015001",
192
+ label: "\uC7A1\uCC44",
193
+ group_score: 0.4239,
194
+ member_scores: {
195
+ user_a: 0.3671,
196
+ user_b: 0.4052,
197
+ user_c: 0.4993
198
+ },
199
+ reasons: ["\uC911\uAC04 \uCDE8\uD5A5", "\uCD5C\uADFC 3\uC77C \uB0B4 \uBBF8\uC12D\uCDE8"]
200
+ },
201
+ {
202
+ code: "05011001",
203
+ label: "\uBE44\uBE54\uBC25",
204
+ group_score: 0.4235,
205
+ member_scores: {
206
+ user_a: 0.3212,
207
+ user_b: 0.4793,
208
+ user_c: 0.4701
209
+ },
210
+ reasons: ["\uC911\uAC04 \uCDE8\uD5A5", "\uCD5C\uADFC 3\uC77C \uB0B4 \uBBF8\uC12D\uCDE8"]
211
+ },
212
+ {
213
+ code: "03021005",
214
+ label: "\uBD88\uACE0\uAE30",
215
+ group_score: 0.3341,
216
+ member_scores: {
217
+ user_a: 0.3451,
218
+ user_b: 0.3189,
219
+ user_c: 0.3383
220
+ },
221
+ reasons: ["\uC911\uAC04 \uCDE8\uD5A5", "\uCD5C\uADFC 3\uC77C \uB0B4 \uBBF8\uC12D\uCDE8"]
222
+ }
223
+ ],
224
+ params: {
225
+ taste_mode: "mean",
226
+ exclude_mode: "union",
227
+ weights: {},
228
+ top_k: 10
229
+ }
230
+ };
231
+
232
+ // src/nest-adapters/matching/request.dto.ts
233
+ var import_class_validator = require("class-validator");
234
+ var RestaurantPickRequestDtoServer = class {
235
+ };
236
+ __decorateClass([
237
+ (0, import_class_validator.IsString)(),
238
+ (0, import_class_validator.IsNotEmpty)()
239
+ ], RestaurantPickRequestDtoServer.prototype, "restaurantId", 2);
240
+ var DatePicksRequestDtoServer = class {
241
+ };
242
+ __decorateClass([
243
+ (0, import_class_validator.IsArray)(),
244
+ (0, import_class_validator.IsNotEmpty)()
245
+ ], DatePicksRequestDtoServer.prototype, "dates", 2);
246
+ var TimePicksRequestDtoServer = class {
247
+ };
248
+ __decorateClass([
249
+ (0, import_class_validator.IsArray)(),
250
+ (0, import_class_validator.IsNotEmpty)()
251
+ ], TimePicksRequestDtoServer.prototype, "times", 2);
252
+ var LocationCandidateAddRequestDtoServer = class {
253
+ };
254
+ __decorateClass([
255
+ (0, import_class_validator.IsString)(),
256
+ (0, import_class_validator.IsNotEmpty)()
257
+ ], LocationCandidateAddRequestDtoServer.prototype, "id", 2);
258
+ __decorateClass([
259
+ (0, import_class_validator.IsString)(),
260
+ (0, import_class_validator.IsNotEmpty)()
261
+ ], LocationCandidateAddRequestDtoServer.prototype, "placeName", 2);
262
+ __decorateClass([
263
+ (0, import_class_validator.IsNumber)(),
264
+ (0, import_class_validator.IsNotEmpty)()
265
+ ], LocationCandidateAddRequestDtoServer.prototype, "lat", 2);
266
+ __decorateClass([
267
+ (0, import_class_validator.IsNumber)(),
268
+ (0, import_class_validator.IsNotEmpty)()
269
+ ], LocationCandidateAddRequestDtoServer.prototype, "lng", 2);
270
+ __decorateClass([
271
+ (0, import_class_validator.IsString)(),
272
+ (0, import_class_validator.IsNotEmpty)()
273
+ ], LocationCandidateAddRequestDtoServer.prototype, "address", 2);
274
+ var LocationCandidateVoteRequestDtoServer = class {
275
+ };
276
+ __decorateClass([
277
+ (0, import_class_validator.IsString)(),
278
+ (0, import_class_validator.IsNotEmpty)()
279
+ ], LocationCandidateVoteRequestDtoServer.prototype, "locationId", 2);
280
+ var ExcludeMenuRequestDtoServer = class {
281
+ };
282
+ __decorateClass([
283
+ (0, import_class_validator.IsString)(),
284
+ (0, import_class_validator.IsNotEmpty)()
285
+ ], ExcludeMenuRequestDtoServer.prototype, "menu", 2);
286
+ var MenuPickRequestDtoServer = class {
287
+ };
288
+ __decorateClass([
289
+ (0, import_class_validator.IsString)(),
290
+ (0, import_class_validator.IsNotEmpty)()
291
+ ], MenuPickRequestDtoServer.prototype, "menuCode", 2);
292
+ var ChatMessageRequestDtoServer = class {
293
+ };
294
+ __decorateClass([
295
+ (0, import_class_validator.IsString)(),
296
+ (0, import_class_validator.IsNotEmpty)()
297
+ ], ChatMessageRequestDtoServer.prototype, "text", 2);
298
+ var ReadyStateRequestDtoServer = class {
299
+ };
300
+ __decorateClass([
301
+ (0, import_class_validator.IsBoolean)(),
302
+ (0, import_class_validator.IsNotEmpty)()
303
+ ], ReadyStateRequestDtoServer.prototype, "isReady", 2);
304
+
305
+ // src/nest-adapters/matching/server-server.dto.ts
306
+ var import_class_validator2 = require("class-validator");
307
+ var AnnouncementRequestDto = class {
308
+ };
309
+ __decorateClass([
310
+ (0, import_class_validator2.IsString)(),
311
+ (0, import_class_validator2.IsNotEmpty)()
312
+ ], AnnouncementRequestDto.prototype, "announcementId", 2);
313
+ __decorateClass([
314
+ (0, import_class_validator2.IsString)(),
315
+ (0, import_class_validator2.IsNotEmpty)()
316
+ ], AnnouncementRequestDto.prototype, "location", 2);
317
+ __decorateClass([
318
+ (0, import_class_validator2.IsString)(),
319
+ (0, import_class_validator2.IsNotEmpty)()
320
+ ], AnnouncementRequestDto.prototype, "meetingAt", 2);
321
+ __decorateClass([
322
+ (0, import_class_validator2.IsArray)(),
323
+ (0, import_class_validator2.IsNotEmpty)()
324
+ ], AnnouncementRequestDto.prototype, "participants", 2);
325
+ __decorateClass([
326
+ (0, import_class_validator2.IsArray)(),
327
+ (0, import_class_validator2.IsNotEmpty)()
328
+ ], AnnouncementRequestDto.prototype, "recentMenu", 2);
329
+ var InvitationRequestDto = class {
330
+ };
331
+ __decorateClass([
332
+ (0, import_class_validator2.IsString)(),
333
+ (0, import_class_validator2.IsNotEmpty)()
334
+ ], InvitationRequestDto.prototype, "invitationId", 2);
335
+ __decorateClass([
336
+ (0, import_class_validator2.IsArray)(),
337
+ (0, import_class_validator2.IsNotEmpty)()
338
+ ], InvitationRequestDto.prototype, "participants", 2);
339
+ __decorateClass([
340
+ (0, import_class_validator2.IsArray)(),
341
+ (0, import_class_validator2.IsNotEmpty)()
342
+ ], InvitationRequestDto.prototype, "recentMenu", 2);
343
+ var AnnouncementResultRequestDto = class {
344
+ };
345
+ __decorateClass([
346
+ (0, import_class_validator2.IsString)(),
347
+ (0, import_class_validator2.IsNotEmpty)()
348
+ ], AnnouncementResultRequestDto.prototype, "announcementId", 2);
349
+ __decorateClass([
350
+ (0, import_class_validator2.IsObject)(),
351
+ (0, import_class_validator2.IsNotEmpty)()
352
+ ], AnnouncementResultRequestDto.prototype, "location", 2);
353
+ __decorateClass([
354
+ (0, import_class_validator2.IsObject)(),
355
+ (0, import_class_validator2.IsNotEmpty)()
356
+ ], AnnouncementResultRequestDto.prototype, "menu", 2);
357
+ __decorateClass([
358
+ (0, import_class_validator2.IsObject)(),
359
+ (0, import_class_validator2.IsNotEmpty)()
360
+ ], AnnouncementResultRequestDto.prototype, "restaurant", 2);
361
+ var InvitationResultRequestDto = class {
362
+ };
363
+ __decorateClass([
364
+ (0, import_class_validator2.IsString)(),
365
+ (0, import_class_validator2.IsNotEmpty)()
366
+ ], InvitationResultRequestDto.prototype, "invitationId", 2);
367
+ __decorateClass([
368
+ (0, import_class_validator2.IsObject)(),
369
+ (0, import_class_validator2.IsNotEmpty)()
370
+ ], InvitationResultRequestDto.prototype, "location", 2);
371
+ __decorateClass([
372
+ (0, import_class_validator2.IsObject)(),
373
+ (0, import_class_validator2.IsNotEmpty)()
374
+ ], InvitationResultRequestDto.prototype, "menu", 2);
375
+ __decorateClass([
376
+ (0, import_class_validator2.IsString)(),
377
+ (0, import_class_validator2.IsNotEmpty)()
378
+ ], InvitationResultRequestDto.prototype, "meetingAt", 2);
379
+ __decorateClass([
380
+ (0, import_class_validator2.IsObject)(),
381
+ (0, import_class_validator2.IsNotEmpty)()
382
+ ], InvitationResultRequestDto.prototype, "restaurant", 2);
63
383
  // Annotate the CommonJS export names for ESM import in node:
64
384
  0 && (module.exports = {
385
+ AnnouncementRequestDto,
386
+ AnnouncementResultRequestDto,
65
387
  AnnouncementStageMap,
388
+ ChatMessageRequestDtoServer,
389
+ DatePicksRequestDtoServer,
390
+ ExcludeMenuRequestDtoServer,
391
+ InvitationRequestDto,
392
+ InvitationResultRequestDto,
66
393
  InvitationStageMap,
394
+ LocationCandidateAddRequestDtoServer,
395
+ LocationCandidateVoteRequestDtoServer,
396
+ MenuPickRequestDtoServer,
397
+ MenuRecommendationAIResponseDto,
67
398
  PlanStatus,
68
- PlanType
399
+ PlanType,
400
+ ReadyStateRequestDtoServer,
401
+ RestaurantPickRequestDtoServer,
402
+ TimePicksRequestDtoServer
69
403
  });