daiso 1.0.4 → 1.0.6

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 (166) hide show
  1. package/README.md +249 -533
  2. package/dist/api/actionsProxy.js +82 -0
  3. package/dist/api/cgvHandlers.js +103 -16
  4. package/dist/api/configStatus.js +19 -0
  5. package/dist/api/daisoHandlers.js +127 -0
  6. package/dist/api/emart24Handlers.js +176 -0
  7. package/dist/api/gs25Handlers.js +267 -0
  8. package/dist/api/handlers.js +209 -104
  9. package/dist/api/healthChecks.js +504 -0
  10. package/dist/api/lottecinemaHandlers.js +155 -0
  11. package/dist/api/lottemartHandlers.js +144 -0
  12. package/dist/api/megaboxHandlers.js +81 -50
  13. package/dist/api/response.js +2 -0
  14. package/dist/api/routes/cuRoutes.js +17 -0
  15. package/dist/api/routes/daisoRoutes.js +6 -1
  16. package/dist/api/routes/emart24Routes.js +22 -0
  17. package/dist/api/routes/gs25Routes.js +22 -0
  18. package/dist/api/routes/healthRoutes.js +61 -0
  19. package/dist/api/routes/lottecinemaRoutes.js +22 -0
  20. package/dist/api/routes/lottemartRoutes.js +18 -0
  21. package/dist/api/routes/oliveyoungRoutes.js +6 -1
  22. package/dist/api/routes/sevenelevenRoutes.js +32 -0
  23. package/dist/api/sevenelevenHandlers.js +200 -0
  24. package/dist/bin.js +0 -0
  25. package/dist/cli/args.js +75 -0
  26. package/dist/cli/commandOptions.js +38 -0
  27. package/dist/cli/commands/convenience.js +293 -0
  28. package/dist/cli/commands/daiso.js +112 -0
  29. package/dist/cli/constants.js +5 -0
  30. package/dist/cli/deps.js +48 -0
  31. package/dist/cli/http.js +156 -0
  32. package/dist/cli/interactiveFetch.js +31 -0
  33. package/dist/cli/interactiveItemSearch.js +261 -0
  34. package/dist/cli/interactivePrompt.js +50 -0
  35. package/dist/cli/interactiveTypes.js +4 -0
  36. package/dist/cli/types.js +4 -0
  37. package/dist/cli.js +87 -196
  38. package/dist/cliHelp.js +212 -1
  39. package/dist/cliInteractive.js +243 -0
  40. package/dist/cliPicker.js +57 -0
  41. package/dist/cliRenderer.js +90 -3
  42. package/dist/core/errors.js +66 -0
  43. package/dist/core/registry.js +227 -3
  44. package/dist/index.js +149 -9
  45. package/dist/pages/openapi.js +2 -1
  46. package/dist/pages/openapiFullSpec.js +58 -0
  47. package/dist/pages/openapiResponse.js +28 -0
  48. package/dist/pages/openapiSpec.js +2 -41
  49. package/dist/pages/openapiSpecActions.js +109 -0
  50. package/dist/pages/openapiSpecComponents.js +30 -391
  51. package/dist/pages/openapiSpecComponentsCgv.js +24 -0
  52. package/dist/pages/openapiSpecComponentsCu.js +112 -0
  53. package/dist/pages/openapiSpecComponentsDaisoOliveyoung.js +342 -0
  54. package/dist/pages/openapiSpecComponentsEmart24.js +141 -0
  55. package/dist/pages/openapiSpecComponentsGs25.js +109 -0
  56. package/dist/pages/openapiSpecComponentsLotteMart.js +85 -0
  57. package/dist/pages/openapiSpecComponentsLottecinema.js +163 -0
  58. package/dist/pages/openapiSpecComponentsMegabox.js +144 -0
  59. package/dist/pages/openapiSpecComponentsSeveneleven.js +82 -0
  60. package/dist/pages/openapiSpecPathsCgv.js +66 -3
  61. package/dist/pages/openapiSpecPathsCu.js +145 -0
  62. package/dist/pages/openapiSpecPathsDaiso.js +302 -0
  63. package/dist/pages/openapiSpecPathsDaisoOliveyoung.js +4 -376
  64. package/dist/pages/openapiSpecPathsEmart24.js +223 -0
  65. package/dist/pages/openapiSpecPathsGs25.js +166 -0
  66. package/dist/pages/openapiSpecPathsLotteMart.js +149 -0
  67. package/dist/pages/openapiSpecPathsLottecinema.js +212 -0
  68. package/dist/pages/openapiSpecPathsMegabox.js +52 -3
  69. package/dist/pages/openapiSpecPathsOliveyoung.js +266 -0
  70. package/dist/pages/openapiSpecPathsSeveneleven.js +234 -0
  71. package/dist/pages/prompt.js +8 -402
  72. package/dist/pages/promptCoreText.js +278 -0
  73. package/dist/pages/promptReferenceText.js +137 -0
  74. package/dist/pages/promptRetailCinemaText.js +274 -0
  75. package/dist/services/cgv/client.js +6 -1
  76. package/dist/services/cgv/index.js +3 -3
  77. package/dist/services/cgv/location.js +235 -0
  78. package/dist/services/cgv/tools/findTheaters.js +30 -5
  79. package/dist/services/cgv/tools/getTimetable.js +42 -14
  80. package/dist/services/cgv/tools/searchMovies.js +40 -12
  81. package/dist/services/cgv/transport.js +0 -3
  82. package/dist/services/cu/api.js +11 -0
  83. package/dist/services/cu/client.js +297 -0
  84. package/dist/services/cu/index.js +21 -0
  85. package/dist/services/cu/tools/checkInventory.js +123 -0
  86. package/dist/services/cu/tools/findNearbyStores.js +49 -0
  87. package/dist/services/cu/types.js +4 -0
  88. package/dist/services/daiso/api.js +22 -2
  89. package/dist/services/daiso/client.js +67 -0
  90. package/dist/services/daiso/index.js +4 -0
  91. package/dist/services/daiso/product.js +17 -0
  92. package/dist/services/daiso/tools/checkInventory.js +80 -43
  93. package/dist/services/daiso/tools/findInventoryByName.js +222 -0
  94. package/dist/services/daiso/tools/findStores.js +17 -7
  95. package/dist/services/daiso/tools/getDisplayLocation.js +75 -0
  96. package/dist/services/emart24/api.js +11 -0
  97. package/dist/services/emart24/client.js +182 -0
  98. package/dist/services/emart24/index.js +22 -0
  99. package/dist/services/emart24/inventoryLookup.js +134 -0
  100. package/dist/services/emart24/tools/checkInventory.js +54 -0
  101. package/dist/services/emart24/tools/findNearbyStores.js +72 -0
  102. package/dist/services/emart24/tools/searchProducts.js +73 -0
  103. package/dist/services/emart24/types.js +4 -0
  104. package/dist/services/gs25/api.js +9 -0
  105. package/dist/services/gs25/client.js +208 -0
  106. package/dist/services/gs25/index.js +22 -0
  107. package/dist/services/gs25/storeUtils.js +168 -0
  108. package/dist/services/gs25/tools/checkInventory.js +163 -0
  109. package/dist/services/gs25/tools/findNearbyStores.js +103 -0
  110. package/dist/services/gs25/tools/searchProducts.js +57 -0
  111. package/dist/services/gs25/types.js +4 -0
  112. package/dist/services/lottecinema/api.js +12 -0
  113. package/dist/services/lottecinema/client.js +161 -0
  114. package/dist/services/lottecinema/index.js +30 -0
  115. package/dist/services/lottecinema/location.js +191 -0
  116. package/dist/services/lottecinema/tools/findNearbyTheaters.js +47 -0
  117. package/dist/services/lottecinema/tools/getRemainingSeats.js +85 -0
  118. package/dist/services/lottecinema/tools/listNowShowing.js +79 -0
  119. package/dist/services/lottecinema/types.js +4 -0
  120. package/dist/services/lottemart/api.js +31 -0
  121. package/dist/services/lottemart/client.js +254 -0
  122. package/dist/services/lottemart/clientTypes.js +4 -0
  123. package/dist/services/lottemart/config.js +4 -0
  124. package/dist/services/lottemart/debug.js +92 -0
  125. package/dist/services/lottemart/geocode.js +49 -0
  126. package/dist/services/lottemart/index.js +30 -0
  127. package/dist/services/lottemart/keyword.js +29 -0
  128. package/dist/services/lottemart/parser.js +185 -0
  129. package/dist/services/lottemart/session.js +331 -0
  130. package/dist/services/lottemart/storeSearch.js +52 -0
  131. package/dist/services/lottemart/tools/findNearbyStores.js +67 -0
  132. package/dist/services/lottemart/tools/searchProducts.js +69 -0
  133. package/dist/services/lottemart/types.js +4 -0
  134. package/dist/services/lottemart/zetta.js +105 -0
  135. package/dist/services/megabox/location.js +219 -0
  136. package/dist/services/megabox/tools/findNearbyTheaters.js +13 -44
  137. package/dist/services/megabox/tools/getRemainingSeats.js +31 -3
  138. package/dist/services/megabox/tools/listNowShowing.js +31 -3
  139. package/dist/services/oliveyoung/api.js +2 -0
  140. package/dist/services/oliveyoung/client.js +225 -13
  141. package/dist/services/oliveyoung/index.js +3 -1
  142. package/dist/services/oliveyoung/tools/checkInventory.js +21 -5
  143. package/dist/services/oliveyoung/tools/searchProducts.js +57 -0
  144. package/dist/services/seveneleven/api.js +15 -0
  145. package/dist/services/seveneleven/client.js +286 -0
  146. package/dist/services/seveneleven/index.js +30 -0
  147. package/dist/services/seveneleven/inventory.js +302 -0
  148. package/dist/services/seveneleven/productKeyword.js +141 -0
  149. package/dist/services/seveneleven/tools/checkInventory.js +82 -0
  150. package/dist/services/seveneleven/tools/getCatalogSnapshot.js +55 -0
  151. package/dist/services/seveneleven/tools/getSearchPopwords.js +41 -0
  152. package/dist/services/seveneleven/tools/searchProducts.js +67 -0
  153. package/dist/services/seveneleven/tools/searchStores.js +45 -0
  154. package/dist/services/seveneleven/types.js +4 -0
  155. package/dist/utils/cliInteractiveHelpers.js +63 -0
  156. package/dist/utils/daisoKeyword.js +30 -0
  157. package/dist/utils/http.js +98 -12
  158. package/dist/utils/zyte.js +47 -26
  159. package/openapi.json +1979 -736
  160. package/openapi.yaml +1428 -541
  161. package/package.json +49 -18
  162. package/dist/tools/checkInventory.js +0 -98
  163. package/dist/tools/findStores.js +0 -125
  164. package/dist/tools/getPriceInfo.js +0 -77
  165. package/dist/tools/searchProducts.js +0 -61
  166. package/dist/types/index.js +0 -4
@@ -1,381 +1,9 @@
1
1
  /**
2
2
  * OpenAPI 경로 정의 (다이소/올리브영)
3
3
  */
4
+ import { OPENAPI_PATHS_DAISO } from './openapiSpecPathsDaiso.js';
5
+ import { OPENAPI_PATHS_OLIVEYOUNG } from './openapiSpecPathsOliveyoung.js';
4
6
  export const OPENAPI_PATHS_DAISO_OLIVEYOUNG = {
5
- '/api/daiso/products': {
6
- get: {
7
- operationId: 'searchProducts',
8
- summary: '제품 검색',
9
- description: '키워드로 다이소 제품을 검색합니다. 수납박스, 펜, 정리함 등 다양한 키워드로 검색할 수 있습니다.',
10
- parameters: [
11
- {
12
- name: 'q',
13
- in: 'query',
14
- required: true,
15
- description: '검색 키워드 (예: 수납박스, 펜, 정리함)',
16
- schema: { type: 'string' },
17
- example: '수납박스',
18
- },
19
- {
20
- name: 'page',
21
- in: 'query',
22
- required: false,
23
- description: '페이지 번호',
24
- schema: { type: 'integer', default: 1, minimum: 1 },
25
- },
26
- {
27
- name: 'pageSize',
28
- in: 'query',
29
- required: false,
30
- description: '페이지당 결과 수',
31
- schema: { type: 'integer', default: 30, minimum: 1, maximum: 100 },
32
- },
33
- ],
34
- responses: {
35
- '200': {
36
- description: '검색 성공',
37
- content: {
38
- 'application/json': {
39
- schema: { $ref: '#/components/schemas/ProductSearchResponse' },
40
- },
41
- },
42
- },
43
- '400': {
44
- description: '잘못된 요청 (검색어 누락)',
45
- content: {
46
- 'application/json': {
47
- schema: { $ref: '#/components/schemas/ErrorResponse' },
48
- },
49
- },
50
- },
51
- },
52
- },
53
- },
54
- '/api/daiso/products/{productId}': {
55
- get: {
56
- operationId: 'getProduct',
57
- summary: '제품 상세 정보',
58
- description: '제품 ID로 상세 정보를 조회합니다.',
59
- parameters: [
60
- {
61
- name: 'productId',
62
- in: 'path',
63
- required: true,
64
- description: '제품 ID (제품 검색 결과의 id 값)',
65
- schema: { type: 'string' },
66
- example: '1234567890',
67
- },
68
- ],
69
- responses: {
70
- '200': {
71
- description: '조회 성공',
72
- content: {
73
- 'application/json': {
74
- schema: { $ref: '#/components/schemas/ProductDetailResponse' },
75
- },
76
- },
77
- },
78
- '404': {
79
- description: '제품을 찾을 수 없음',
80
- content: {
81
- 'application/json': {
82
- schema: { $ref: '#/components/schemas/ErrorResponse' },
83
- },
84
- },
85
- },
86
- },
87
- },
88
- },
89
- '/api/daiso/stores': {
90
- get: {
91
- operationId: 'findStores',
92
- summary: '매장 찾기',
93
- description: '키워드 또는 지역으로 다이소 매장을 검색합니다. keyword 또는 sido 중 하나는 필수입니다.',
94
- parameters: [
95
- {
96
- name: 'keyword',
97
- in: 'query',
98
- required: false,
99
- description: '매장명 또는 주소 키워드 (예: 강남, 홍대, 안산)',
100
- schema: { type: 'string' },
101
- example: '강남',
102
- },
103
- {
104
- name: 'sido',
105
- in: 'query',
106
- required: false,
107
- description: '시/도 (예: 서울, 경기, 부산)',
108
- schema: { type: 'string' },
109
- example: '서울',
110
- },
111
- {
112
- name: 'gugun',
113
- in: 'query',
114
- required: false,
115
- description: '구/군 (예: 강남구, 마포구)',
116
- schema: { type: 'string' },
117
- example: '강남구',
118
- },
119
- {
120
- name: 'dong',
121
- in: 'query',
122
- required: false,
123
- description: '동 (예: 역삼동, 합정동)',
124
- schema: { type: 'string' },
125
- },
126
- {
127
- name: 'limit',
128
- in: 'query',
129
- required: false,
130
- description: '최대 결과 수',
131
- schema: { type: 'integer', default: 50, minimum: 1, maximum: 100 },
132
- },
133
- ],
134
- responses: {
135
- '200': {
136
- description: '검색 성공',
137
- content: {
138
- 'application/json': {
139
- schema: { $ref: '#/components/schemas/StoreSearchResponse' },
140
- },
141
- },
142
- },
143
- '400': {
144
- description: '잘못된 요청 (필수 파라미터 누락)',
145
- content: {
146
- 'application/json': {
147
- schema: { $ref: '#/components/schemas/ErrorResponse' },
148
- },
149
- },
150
- },
151
- },
152
- },
153
- },
154
- '/api/daiso/inventory': {
155
- get: {
156
- operationId: 'checkInventory',
157
- summary: '재고 확인',
158
- description: '특정 제품의 온라인 재고와 매장별 재고를 확인합니다. 위치 정보를 제공하면 가까운 매장 순으로 정렬됩니다.',
159
- parameters: [
160
- {
161
- name: 'productId',
162
- in: 'query',
163
- required: true,
164
- description: '제품 ID (제품 검색 결과의 id 값)',
165
- schema: { type: 'string' },
166
- example: '1234567890',
167
- },
168
- {
169
- name: 'lat',
170
- in: 'query',
171
- required: false,
172
- description: '위도 (기본값: 서울 시청 37.5665)',
173
- schema: { type: 'number', format: 'float', default: 37.5665 },
174
- example: 37.4979,
175
- },
176
- {
177
- name: 'lng',
178
- in: 'query',
179
- required: false,
180
- description: '경도 (기본값: 서울 시청 126.978)',
181
- schema: { type: 'number', format: 'float', default: 126.978 },
182
- example: 127.0276,
183
- },
184
- {
185
- name: 'keyword',
186
- in: 'query',
187
- required: false,
188
- description: '매장 검색어 (예: 안산, 강남)',
189
- schema: { type: 'string' },
190
- },
191
- {
192
- name: 'page',
193
- in: 'query',
194
- required: false,
195
- description: '페이지 번호',
196
- schema: { type: 'integer', default: 1, minimum: 1 },
197
- },
198
- {
199
- name: 'pageSize',
200
- in: 'query',
201
- required: false,
202
- description: '페이지당 결과 수',
203
- schema: { type: 'integer', default: 30, minimum: 1, maximum: 100 },
204
- },
205
- ],
206
- responses: {
207
- '200': {
208
- description: '조회 성공',
209
- content: {
210
- 'application/json': {
211
- schema: { $ref: '#/components/schemas/InventoryResponse' },
212
- },
213
- },
214
- },
215
- '400': {
216
- description: '잘못된 요청 (제품 ID 누락)',
217
- content: {
218
- 'application/json': {
219
- schema: { $ref: '#/components/schemas/ErrorResponse' },
220
- },
221
- },
222
- },
223
- },
224
- },
225
- },
226
- '/api/oliveyoung/stores': {
227
- get: {
228
- operationId: 'oliveyoungFindStores',
229
- summary: '올리브영 매장 검색',
230
- description: '위치(위도/경도)와 키워드로 올리브영 매장을 검색합니다.',
231
- parameters: [
232
- {
233
- name: 'keyword',
234
- in: 'query',
235
- required: false,
236
- description: '매장명 또는 지역 키워드 (예: 명동, 강남)',
237
- schema: { type: 'string' },
238
- example: '명동',
239
- },
240
- {
241
- name: 'lat',
242
- in: 'query',
243
- required: false,
244
- description: '위도 (기본값: 서울 시청 37.5665)',
245
- schema: { type: 'number', format: 'float', default: 37.5665 },
246
- },
247
- {
248
- name: 'lng',
249
- in: 'query',
250
- required: false,
251
- description: '경도 (기본값: 서울 시청 126.978)',
252
- schema: { type: 'number', format: 'float', default: 126.978 },
253
- },
254
- {
255
- name: 'pageIdx',
256
- in: 'query',
257
- required: false,
258
- description: '매장 검색 페이지 번호',
259
- schema: { type: 'integer', default: 1, minimum: 1 },
260
- },
261
- {
262
- name: 'limit',
263
- in: 'query',
264
- required: false,
265
- description: '최대 결과 수',
266
- schema: { type: 'integer', default: 20, minimum: 1, maximum: 100 },
267
- },
268
- ],
269
- responses: {
270
- '200': {
271
- description: '검색 성공',
272
- content: {
273
- 'application/json': {
274
- schema: { $ref: '#/components/schemas/OliveyoungStoreSearchResponse' },
275
- },
276
- },
277
- },
278
- '500': {
279
- description: '올리브영 API 호출 실패',
280
- content: {
281
- 'application/json': {
282
- schema: { $ref: '#/components/schemas/ErrorResponse' },
283
- },
284
- },
285
- },
286
- },
287
- },
288
- },
289
- '/api/oliveyoung/inventory': {
290
- get: {
291
- operationId: 'oliveyoungCheckInventory',
292
- summary: '올리브영 재고 확인',
293
- description: '상품 키워드로 올리브영 재고를 검색하고 주변 매장 정보를 함께 조회합니다.',
294
- parameters: [
295
- {
296
- name: 'keyword',
297
- in: 'query',
298
- required: true,
299
- description: '재고를 확인할 상품 키워드',
300
- schema: { type: 'string' },
301
- example: '선크림',
302
- },
303
- {
304
- name: 'lat',
305
- in: 'query',
306
- required: false,
307
- description: '위도 (기본값: 서울 시청 37.5665)',
308
- schema: { type: 'number', format: 'float', default: 37.5665 },
309
- },
310
- {
311
- name: 'lng',
312
- in: 'query',
313
- required: false,
314
- description: '경도 (기본값: 서울 시청 126.978)',
315
- schema: { type: 'number', format: 'float', default: 126.978 },
316
- },
317
- {
318
- name: 'storeKeyword',
319
- in: 'query',
320
- required: false,
321
- description: '주변 매장 필터 키워드',
322
- schema: { type: 'string' },
323
- },
324
- {
325
- name: 'page',
326
- in: 'query',
327
- required: false,
328
- description: '상품 검색 페이지 번호',
329
- schema: { type: 'integer', default: 1, minimum: 1 },
330
- },
331
- {
332
- name: 'size',
333
- in: 'query',
334
- required: false,
335
- description: '페이지당 결과 수',
336
- schema: { type: 'integer', default: 20, minimum: 1, maximum: 100 },
337
- },
338
- {
339
- name: 'sort',
340
- in: 'query',
341
- required: false,
342
- description: '정렬 코드',
343
- schema: { type: 'string', default: '01' },
344
- },
345
- {
346
- name: 'includeSoldOut',
347
- in: 'query',
348
- required: false,
349
- description: '품절 포함 여부 (true/false)',
350
- schema: { type: 'boolean', default: false },
351
- },
352
- ],
353
- responses: {
354
- '200': {
355
- description: '조회 성공',
356
- content: {
357
- 'application/json': {
358
- schema: { $ref: '#/components/schemas/OliveyoungInventoryResponse' },
359
- },
360
- },
361
- },
362
- '400': {
363
- description: '잘못된 요청 (검색어 누락)',
364
- content: {
365
- 'application/json': {
366
- schema: { $ref: '#/components/schemas/ErrorResponse' },
367
- },
368
- },
369
- },
370
- '500': {
371
- description: '올리브영 API 호출 실패',
372
- content: {
373
- 'application/json': {
374
- schema: { $ref: '#/components/schemas/ErrorResponse' },
375
- },
376
- },
377
- },
378
- },
379
- },
380
- },
7
+ ...OPENAPI_PATHS_DAISO,
8
+ ...OPENAPI_PATHS_OLIVEYOUNG,
381
9
  };
@@ -0,0 +1,223 @@
1
+ /**
2
+ * OpenAPI 경로 정의 (이마트24)
3
+ */
4
+ export const OPENAPI_PATHS_EMART24 = {
5
+ '/api/emart24/stores': {
6
+ get: {
7
+ operationId: 'emart24FindStores',
8
+ summary: '이마트24 매장 검색',
9
+ description: '키워드/지역 조건으로 이마트24 매장을 조회합니다.',
10
+ parameters: [
11
+ {
12
+ name: 'keyword',
13
+ in: 'query',
14
+ required: false,
15
+ description: '매장명 또는 지역 키워드 (예: 강남)',
16
+ schema: { type: 'string' },
17
+ },
18
+ {
19
+ name: 'area1',
20
+ in: 'query',
21
+ required: false,
22
+ description: '시/도 (예: 서울특별시)',
23
+ schema: { type: 'string' },
24
+ },
25
+ {
26
+ name: 'area2',
27
+ in: 'query',
28
+ required: false,
29
+ description: '구/군 (예: 강남구)',
30
+ schema: { type: 'string' },
31
+ },
32
+ {
33
+ name: 'lat',
34
+ in: 'query',
35
+ required: false,
36
+ description: '위도 (선택)',
37
+ schema: { type: 'number', format: 'float' },
38
+ },
39
+ {
40
+ name: 'lng',
41
+ in: 'query',
42
+ required: false,
43
+ description: '경도 (선택)',
44
+ schema: { type: 'number', format: 'float' },
45
+ },
46
+ {
47
+ name: 'service24h',
48
+ in: 'query',
49
+ required: false,
50
+ description: '24시간 매장만 조회 여부',
51
+ schema: { type: 'boolean', default: false },
52
+ },
53
+ {
54
+ name: 'limit',
55
+ in: 'query',
56
+ required: false,
57
+ description: '최대 결과 수',
58
+ schema: { type: 'integer', default: 20, minimum: 1, maximum: 100 },
59
+ },
60
+ ],
61
+ responses: {
62
+ '200': {
63
+ description: '검색 성공',
64
+ content: {
65
+ 'application/json': {
66
+ schema: { $ref: '#/components/schemas/Emart24StoreSearchResponse' },
67
+ },
68
+ },
69
+ },
70
+ },
71
+ },
72
+ },
73
+ '/api/emart24/products': {
74
+ get: {
75
+ operationId: 'emart24SearchProducts',
76
+ summary: '이마트24 상품 검색',
77
+ description: '키워드로 이마트24 상품 목록을 조회합니다.',
78
+ parameters: [
79
+ {
80
+ name: 'keyword',
81
+ in: 'query',
82
+ required: true,
83
+ description: '상품 검색어',
84
+ schema: { type: 'string' },
85
+ example: '두바이',
86
+ },
87
+ {
88
+ name: 'page',
89
+ in: 'query',
90
+ required: false,
91
+ description: '페이지 번호',
92
+ schema: { type: 'integer', default: 1, minimum: 1 },
93
+ },
94
+ {
95
+ name: 'pageSize',
96
+ in: 'query',
97
+ required: false,
98
+ description: '페이지당 결과 수',
99
+ schema: { type: 'integer', default: 10, minimum: 1, maximum: 100 },
100
+ },
101
+ ],
102
+ responses: {
103
+ '200': {
104
+ description: '검색 성공',
105
+ content: {
106
+ 'application/json': {
107
+ schema: { $ref: '#/components/schemas/Emart24ProductSearchResponse' },
108
+ },
109
+ },
110
+ },
111
+ '400': {
112
+ description: '잘못된 요청 (검색어 누락)',
113
+ content: {
114
+ 'application/json': {
115
+ schema: { $ref: '#/components/schemas/ErrorResponse' },
116
+ },
117
+ },
118
+ },
119
+ },
120
+ },
121
+ },
122
+ '/api/emart24/inventory': {
123
+ get: {
124
+ operationId: 'emart24CheckInventory',
125
+ summary: '이마트24 재고 조회',
126
+ description: 'PLU 코드 또는 상품 키워드와 매장 코드 목록/매장 키워드로 이마트24 재고를 조회합니다. 대화형 흐름에서는 pluCd + storeKeyword 조합을 우선 사용하세요.',
127
+ parameters: [
128
+ {
129
+ name: 'pluCd',
130
+ in: 'query',
131
+ required: false,
132
+ description: '상품 PLU 코드 (keyword 미입력 시 권장)',
133
+ schema: { type: 'string' },
134
+ example: '8800244010504',
135
+ },
136
+ {
137
+ name: 'keyword',
138
+ in: 'query',
139
+ required: false,
140
+ description: '상품 검색어 (pluCd 미입력 시 사용)',
141
+ schema: { type: 'string' },
142
+ example: '고양이 츄르',
143
+ },
144
+ {
145
+ name: 'bizNoArr',
146
+ in: 'query',
147
+ required: false,
148
+ description: '쉼표 구분 매장 코드 목록',
149
+ schema: { type: 'string' },
150
+ example: '28339,05015,23233',
151
+ },
152
+ {
153
+ name: 'storeCode',
154
+ in: 'query',
155
+ required: false,
156
+ description: '단일 매장 코드',
157
+ schema: { type: 'string' },
158
+ example: '28339',
159
+ },
160
+ {
161
+ name: 'storeKeyword',
162
+ in: 'query',
163
+ required: false,
164
+ description: '매장 검색 키워드 (예: 안산 중앙역)',
165
+ schema: { type: 'string' },
166
+ },
167
+ {
168
+ name: 'area1',
169
+ in: 'query',
170
+ required: false,
171
+ description: '시/도',
172
+ schema: { type: 'string' },
173
+ },
174
+ {
175
+ name: 'area2',
176
+ in: 'query',
177
+ required: false,
178
+ description: '구/군',
179
+ schema: { type: 'string' },
180
+ },
181
+ {
182
+ name: 'lat',
183
+ in: 'query',
184
+ required: false,
185
+ description: '위도',
186
+ schema: { type: 'number', format: 'float' },
187
+ },
188
+ {
189
+ name: 'lng',
190
+ in: 'query',
191
+ required: false,
192
+ description: '경도',
193
+ schema: { type: 'number', format: 'float' },
194
+ },
195
+ {
196
+ name: 'storeLimit',
197
+ in: 'query',
198
+ required: false,
199
+ description: '조회할 매장 수',
200
+ schema: { type: 'integer', default: 10, minimum: 1, maximum: 50 },
201
+ },
202
+ ],
203
+ responses: {
204
+ '200': {
205
+ description: '조회 성공',
206
+ content: {
207
+ 'application/json': {
208
+ schema: { $ref: '#/components/schemas/Emart24InventoryResponse' },
209
+ },
210
+ },
211
+ },
212
+ '400': {
213
+ description: '잘못된 요청 (필수 파라미터 누락)',
214
+ content: {
215
+ 'application/json': {
216
+ schema: { $ref: '#/components/schemas/ErrorResponse' },
217
+ },
218
+ },
219
+ },
220
+ },
221
+ },
222
+ },
223
+ };