daiso 1.0.3 → 1.0.5

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 (158) hide show
  1. package/README.md +218 -537
  2. package/dist/api/actionsProxy.js +82 -0
  3. package/dist/api/cgvHandlers.js +103 -16
  4. package/dist/api/daisoHandlers.js +127 -0
  5. package/dist/api/emart24Handlers.js +176 -0
  6. package/dist/api/gs25Handlers.js +256 -0
  7. package/dist/api/handlers.js +184 -108
  8. package/dist/api/healthChecks.js +332 -0
  9. package/dist/api/lottecinemaHandlers.js +155 -0
  10. package/dist/api/lottemartHandlers.js +128 -0
  11. package/dist/api/megaboxHandlers.js +81 -50
  12. package/dist/api/routes/cuRoutes.js +17 -0
  13. package/dist/api/routes/daisoRoutes.js +6 -1
  14. package/dist/api/routes/emart24Routes.js +22 -0
  15. package/dist/api/routes/gs25Routes.js +22 -0
  16. package/dist/api/routes/healthRoutes.js +44 -0
  17. package/dist/api/routes/lottecinemaRoutes.js +22 -0
  18. package/dist/api/routes/lottemartRoutes.js +18 -0
  19. package/dist/api/routes/oliveyoungRoutes.js +6 -1
  20. package/dist/api/routes/sevenelevenRoutes.js +32 -0
  21. package/dist/api/sevenelevenHandlers.js +200 -0
  22. package/dist/cli/args.js +54 -0
  23. package/dist/cli/commands/convenience.js +241 -0
  24. package/dist/cli/commands/daiso.js +96 -0
  25. package/dist/cli/constants.js +5 -0
  26. package/dist/cli/deps.js +48 -0
  27. package/dist/cli/http.js +98 -0
  28. package/dist/cli/interactiveFetch.js +31 -0
  29. package/dist/cli/interactiveItemSearch.js +259 -0
  30. package/dist/cli/interactivePrompt.js +49 -0
  31. package/dist/cli/interactiveTypes.js +4 -0
  32. package/dist/cli/types.js +4 -0
  33. package/dist/cli.js +66 -181
  34. package/dist/cliHelp.js +216 -9
  35. package/dist/cliInteractive.js +174 -0
  36. package/dist/cliPicker.js +56 -0
  37. package/dist/cliRenderer.js +139 -0
  38. package/dist/index.js +147 -8
  39. package/dist/pages/openapi.js +2 -1
  40. package/dist/pages/openapiFullSpec.js +58 -0
  41. package/dist/pages/openapiResponse.js +28 -0
  42. package/dist/pages/openapiSpec.js +2 -41
  43. package/dist/pages/openapiSpecActions.js +109 -0
  44. package/dist/pages/openapiSpecComponents.js +30 -391
  45. package/dist/pages/openapiSpecComponentsCgv.js +24 -0
  46. package/dist/pages/openapiSpecComponentsCu.js +112 -0
  47. package/dist/pages/openapiSpecComponentsDaisoOliveyoung.js +342 -0
  48. package/dist/pages/openapiSpecComponentsEmart24.js +141 -0
  49. package/dist/pages/openapiSpecComponentsGs25.js +109 -0
  50. package/dist/pages/openapiSpecComponentsLotteMart.js +85 -0
  51. package/dist/pages/openapiSpecComponentsLottecinema.js +163 -0
  52. package/dist/pages/openapiSpecComponentsMegabox.js +144 -0
  53. package/dist/pages/openapiSpecComponentsSeveneleven.js +82 -0
  54. package/dist/pages/openapiSpecPathsCgv.js +66 -3
  55. package/dist/pages/openapiSpecPathsCu.js +138 -0
  56. package/dist/pages/openapiSpecPathsDaiso.js +302 -0
  57. package/dist/pages/openapiSpecPathsDaisoOliveyoung.js +4 -376
  58. package/dist/pages/openapiSpecPathsEmart24.js +223 -0
  59. package/dist/pages/openapiSpecPathsGs25.js +166 -0
  60. package/dist/pages/openapiSpecPathsLotteMart.js +135 -0
  61. package/dist/pages/openapiSpecPathsLottecinema.js +212 -0
  62. package/dist/pages/openapiSpecPathsMegabox.js +52 -3
  63. package/dist/pages/openapiSpecPathsOliveyoung.js +231 -0
  64. package/dist/pages/openapiSpecPathsSeveneleven.js +234 -0
  65. package/dist/pages/prompt.js +8 -402
  66. package/dist/pages/promptCoreText.js +278 -0
  67. package/dist/pages/promptReferenceText.js +131 -0
  68. package/dist/pages/promptRetailCinemaText.js +273 -0
  69. package/dist/services/cgv/client.js +6 -1
  70. package/dist/services/cgv/index.js +3 -3
  71. package/dist/services/cgv/location.js +235 -0
  72. package/dist/services/cgv/tools/findTheaters.js +30 -5
  73. package/dist/services/cgv/tools/getTimetable.js +42 -14
  74. package/dist/services/cgv/tools/searchMovies.js +40 -12
  75. package/dist/services/cgv/transport.js +0 -3
  76. package/dist/services/cu/api.js +11 -0
  77. package/dist/services/cu/client.js +297 -0
  78. package/dist/services/cu/index.js +21 -0
  79. package/dist/services/cu/tools/checkInventory.js +123 -0
  80. package/dist/services/cu/tools/findNearbyStores.js +49 -0
  81. package/dist/services/cu/types.js +4 -0
  82. package/dist/services/daiso/api.js +22 -2
  83. package/dist/services/daiso/client.js +59 -0
  84. package/dist/services/daiso/index.js +2 -0
  85. package/dist/services/daiso/product.js +17 -0
  86. package/dist/services/daiso/tools/checkInventory.js +76 -41
  87. package/dist/services/daiso/tools/findStores.js +17 -7
  88. package/dist/services/daiso/tools/getDisplayLocation.js +75 -0
  89. package/dist/services/emart24/api.js +11 -0
  90. package/dist/services/emart24/client.js +173 -0
  91. package/dist/services/emart24/index.js +22 -0
  92. package/dist/services/emart24/inventoryLookup.js +134 -0
  93. package/dist/services/emart24/tools/checkInventory.js +54 -0
  94. package/dist/services/emart24/tools/findNearbyStores.js +72 -0
  95. package/dist/services/emart24/tools/searchProducts.js +63 -0
  96. package/dist/services/emart24/types.js +4 -0
  97. package/dist/services/gs25/api.js +9 -0
  98. package/dist/services/gs25/client.js +198 -0
  99. package/dist/services/gs25/index.js +22 -0
  100. package/dist/services/gs25/storeUtils.js +168 -0
  101. package/dist/services/gs25/tools/checkInventory.js +163 -0
  102. package/dist/services/gs25/tools/findNearbyStores.js +103 -0
  103. package/dist/services/gs25/tools/searchProducts.js +50 -0
  104. package/dist/services/gs25/types.js +4 -0
  105. package/dist/services/lottecinema/api.js +12 -0
  106. package/dist/services/lottecinema/client.js +161 -0
  107. package/dist/services/lottecinema/index.js +30 -0
  108. package/dist/services/lottecinema/location.js +191 -0
  109. package/dist/services/lottecinema/tools/findNearbyTheaters.js +47 -0
  110. package/dist/services/lottecinema/tools/getRemainingSeats.js +85 -0
  111. package/dist/services/lottecinema/tools/listNowShowing.js +79 -0
  112. package/dist/services/lottecinema/types.js +4 -0
  113. package/dist/services/lottemart/api.js +31 -0
  114. package/dist/services/lottemart/client.js +245 -0
  115. package/dist/services/lottemart/clientTypes.js +4 -0
  116. package/dist/services/lottemart/config.js +4 -0
  117. package/dist/services/lottemart/debug.js +92 -0
  118. package/dist/services/lottemart/geocode.js +49 -0
  119. package/dist/services/lottemart/index.js +30 -0
  120. package/dist/services/lottemart/keyword.js +29 -0
  121. package/dist/services/lottemart/parser.js +185 -0
  122. package/dist/services/lottemart/session.js +331 -0
  123. package/dist/services/lottemart/storeSearch.js +52 -0
  124. package/dist/services/lottemart/tools/findNearbyStores.js +67 -0
  125. package/dist/services/lottemart/tools/searchProducts.js +62 -0
  126. package/dist/services/lottemart/types.js +4 -0
  127. package/dist/services/lottemart/zetta.js +105 -0
  128. package/dist/services/megabox/location.js +219 -0
  129. package/dist/services/megabox/tools/findNearbyTheaters.js +13 -44
  130. package/dist/services/megabox/tools/getRemainingSeats.js +31 -3
  131. package/dist/services/megabox/tools/listNowShowing.js +31 -3
  132. package/dist/services/oliveyoung/api.js +2 -0
  133. package/dist/services/oliveyoung/client.js +150 -9
  134. package/dist/services/oliveyoung/index.js +3 -1
  135. package/dist/services/oliveyoung/tools/checkInventory.js +15 -4
  136. package/dist/services/oliveyoung/tools/searchProducts.js +57 -0
  137. package/dist/services/seveneleven/api.js +15 -0
  138. package/dist/services/seveneleven/client.js +279 -0
  139. package/dist/services/seveneleven/index.js +30 -0
  140. package/dist/services/seveneleven/inventory.js +302 -0
  141. package/dist/services/seveneleven/productKeyword.js +141 -0
  142. package/dist/services/seveneleven/tools/checkInventory.js +82 -0
  143. package/dist/services/seveneleven/tools/getCatalogSnapshot.js +55 -0
  144. package/dist/services/seveneleven/tools/getSearchPopwords.js +41 -0
  145. package/dist/services/seveneleven/tools/searchProducts.js +56 -0
  146. package/dist/services/seveneleven/tools/searchStores.js +45 -0
  147. package/dist/services/seveneleven/types.js +4 -0
  148. package/dist/utils/cliInteractiveHelpers.js +63 -0
  149. package/dist/utils/daisoKeyword.js +30 -0
  150. package/dist/utils/http.js +16 -2
  151. package/openapi.json +1977 -734
  152. package/openapi.yaml +1430 -543
  153. package/package.json +28 -15
  154. package/dist/tools/checkInventory.js +0 -98
  155. package/dist/tools/findStores.js +0 -125
  156. package/dist/tools/getPriceInfo.js +0 -77
  157. package/dist/tools/searchProducts.js +0 -61
  158. package/dist/types/index.js +0 -4
@@ -0,0 +1,302 @@
1
+ /**
2
+ * OpenAPI 경로 정의 (다이소)
3
+ */
4
+ export const OPENAPI_PATHS_DAISO = {
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 중 하나는 필수입니다. 이 응답에는 storeCode가 포함되지 않을 수 있으므로, 진열 위치 조회에 필요한 storeCode는 /api/daiso/inventory 응답에서 확인하세요.',
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: '특정 제품의 온라인 재고와 매장별 재고를 확인합니다. storeCode 없이 productId만으로 호출할 수 있으며, 진열 위치 조회에 필요한 storeCode도 이 응답의 각 매장에서 확인할 수 있습니다. 위치 정보를 제공하면 가까운 매장 순으로 정렬됩니다.',
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/daiso/display-location': {
227
+ get: {
228
+ operationId: 'getDisplayLocation',
229
+ summary: '진열 위치 조회',
230
+ description: '특정 상품의 매장 내 진열 위치(구역/층)를 조회합니다.',
231
+ parameters: [
232
+ {
233
+ name: 'productId',
234
+ in: 'query',
235
+ required: true,
236
+ description: '제품 ID (제품 검색 결과의 id 값)',
237
+ schema: { type: 'string' },
238
+ example: '1234567890',
239
+ },
240
+ {
241
+ name: 'storeCode',
242
+ in: 'query',
243
+ required: true,
244
+ description: '매장 코드 (재고 조회 결과의 storeCode 값)',
245
+ schema: { type: 'string' },
246
+ example: '04515',
247
+ },
248
+ ],
249
+ responses: {
250
+ '200': {
251
+ description: '조회 성공',
252
+ content: {
253
+ 'application/json': {
254
+ schema: {
255
+ type: 'object',
256
+ properties: {
257
+ success: { type: 'boolean', example: true },
258
+ data: {
259
+ type: 'object',
260
+ properties: {
261
+ productId: { type: 'string', example: '1234567890' },
262
+ storeCode: { type: 'string', example: '04515' },
263
+ hasLocation: { type: 'boolean', example: true },
264
+ locations: {
265
+ type: 'array',
266
+ items: {
267
+ type: 'object',
268
+ properties: {
269
+ zoneNo: { type: 'string', example: '60' },
270
+ stairNo: { type: 'string', example: '2' },
271
+ storeErp: { type: 'string', example: '04515' },
272
+ },
273
+ },
274
+ },
275
+ message: { type: 'string', nullable: true, example: null },
276
+ },
277
+ },
278
+ },
279
+ },
280
+ },
281
+ },
282
+ },
283
+ '400': {
284
+ description: '잘못된 요청 (필수 파라미터 누락)',
285
+ content: {
286
+ 'application/json': {
287
+ schema: { $ref: '#/components/schemas/ErrorResponse' },
288
+ },
289
+ },
290
+ },
291
+ '500': {
292
+ description: '진열 위치 조회 실패',
293
+ content: {
294
+ 'application/json': {
295
+ schema: { $ref: '#/components/schemas/ErrorResponse' },
296
+ },
297
+ },
298
+ },
299
+ },
300
+ },
301
+ },
302
+ };
@@ -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
  };