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
@@ -6,7 +6,7 @@ export const OPENAPI_PATHS_CGV = {
6
6
  get: {
7
7
  operationId: 'cgvFindTheaters',
8
8
  summary: 'CGV 극장 목록 조회',
9
- description: '날짜/지역 코드 조건으로 CGV 극장 목록을 조회합니다.',
9
+ description: '날짜/지역 코드 또는 위치 키워드 조건으로 CGV 극장 목록을 조회합니다.',
10
10
  parameters: [
11
11
  {
12
12
  name: 'playDate',
@@ -22,6 +22,27 @@ export const OPENAPI_PATHS_CGV = {
22
22
  description: '지역 코드 (예: 01 서울)',
23
23
  schema: { type: 'string', example: '01' },
24
24
  },
25
+ {
26
+ name: 'keyword',
27
+ in: 'query',
28
+ required: false,
29
+ description: '위치 키워드 (예: 안산 중앙역, 강남역)',
30
+ schema: { type: 'string', example: '안산 중앙역' },
31
+ },
32
+ {
33
+ name: 'lat',
34
+ in: 'query',
35
+ required: false,
36
+ description: '위도',
37
+ schema: { type: 'number', format: 'float', example: 37.3171 },
38
+ },
39
+ {
40
+ name: 'lng',
41
+ in: 'query',
42
+ required: false,
43
+ description: '경도',
44
+ schema: { type: 'number', format: 'float', example: 126.8389 },
45
+ },
25
46
  {
26
47
  name: 'limit',
27
48
  in: 'query',
@@ -54,7 +75,7 @@ export const OPENAPI_PATHS_CGV = {
54
75
  get: {
55
76
  operationId: 'cgvSearchMovies',
56
77
  summary: 'CGV 영화 목록 조회',
57
- description: '날짜/극장 조건으로 CGV 영화 목록을 조회합니다.',
78
+ description: '날짜/극장 조건으로 CGV 영화 목록을 조회합니다. theaterCode가 없으면 keyword 또는 좌표 기준으로 최근접 극장을 선택할 수 있습니다.',
58
79
  parameters: [
59
80
  {
60
81
  name: 'playDate',
@@ -70,6 +91,27 @@ export const OPENAPI_PATHS_CGV = {
70
91
  description: '극장 코드 (예: 0056)',
71
92
  schema: { type: 'string', example: '0056' },
72
93
  },
94
+ {
95
+ name: 'keyword',
96
+ in: 'query',
97
+ required: false,
98
+ description: '위치 키워드 (예: 안산 중앙역, 강남역)',
99
+ schema: { type: 'string', example: '안산 중앙역' },
100
+ },
101
+ {
102
+ name: 'lat',
103
+ in: 'query',
104
+ required: false,
105
+ description: '위도',
106
+ schema: { type: 'number', format: 'float', example: 37.3171 },
107
+ },
108
+ {
109
+ name: 'lng',
110
+ in: 'query',
111
+ required: false,
112
+ description: '경도',
113
+ schema: { type: 'number', format: 'float', example: 126.8389 },
114
+ },
73
115
  ],
74
116
  responses: {
75
117
  '200': {
@@ -95,7 +137,7 @@ export const OPENAPI_PATHS_CGV = {
95
137
  get: {
96
138
  operationId: 'cgvGetTimetable',
97
139
  summary: 'CGV 시간표 조회',
98
- description: '날짜/극장/영화 조건으로 CGV 상영 시간표를 조회합니다.',
140
+ description: '날짜/극장/영화 조건으로 CGV 상영 시간표를 조회합니다. theaterCode가 없으면 keyword 또는 좌표 기준으로 최근접 극장을 선택할 수 있습니다.',
99
141
  parameters: [
100
142
  {
101
143
  name: 'playDate',
@@ -118,6 +160,27 @@ export const OPENAPI_PATHS_CGV = {
118
160
  description: '영화 코드',
119
161
  schema: { type: 'string' },
120
162
  },
163
+ {
164
+ name: 'keyword',
165
+ in: 'query',
166
+ required: false,
167
+ description: '위치 키워드 (예: 안산 중앙역, 강남역)',
168
+ schema: { type: 'string', example: '안산 중앙역' },
169
+ },
170
+ {
171
+ name: 'lat',
172
+ in: 'query',
173
+ required: false,
174
+ description: '위도',
175
+ schema: { type: 'number', format: 'float', example: 37.3171 },
176
+ },
177
+ {
178
+ name: 'lng',
179
+ in: 'query',
180
+ required: false,
181
+ description: '경도',
182
+ schema: { type: 'number', format: 'float', example: 126.8389 },
183
+ },
121
184
  {
122
185
  name: 'limit',
123
186
  in: 'query',
@@ -0,0 +1,145 @@
1
+ /**
2
+ * OpenAPI 경로 정의 (CU)
3
+ */
4
+ export const OPENAPI_PATHS_CU = {
5
+ '/api/cu/stores': {
6
+ get: {
7
+ operationId: 'cuFindStores',
8
+ summary: 'CU 매장 검색',
9
+ description: '위치(위도/경도)와 키워드로 CU 매장을 검색합니다.',
10
+ parameters: [
11
+ {
12
+ name: 'keyword',
13
+ in: 'query',
14
+ required: false,
15
+ description: '매장명 또는 지역 키워드 (예: 강남, 안산)',
16
+ schema: { type: 'string' },
17
+ example: '강남',
18
+ },
19
+ {
20
+ name: 'lat',
21
+ in: 'query',
22
+ required: false,
23
+ description: '위도 (선택)',
24
+ schema: { type: 'number', format: 'float' },
25
+ },
26
+ {
27
+ name: 'lng',
28
+ in: 'query',
29
+ required: false,
30
+ description: '경도 (선택)',
31
+ schema: { type: 'number', format: 'float' },
32
+ },
33
+ {
34
+ name: 'limit',
35
+ in: 'query',
36
+ required: false,
37
+ description: '최대 결과 수',
38
+ schema: { type: 'integer', default: 20, minimum: 1, maximum: 100 },
39
+ },
40
+ ],
41
+ responses: {
42
+ '200': {
43
+ description: '검색 성공',
44
+ content: {
45
+ 'application/json': {
46
+ schema: { $ref: '#/components/schemas/CuStoreSearchResponse' },
47
+ },
48
+ },
49
+ },
50
+ '500': {
51
+ description: 'CU API 호출 실패',
52
+ content: {
53
+ 'application/json': {
54
+ schema: { $ref: '#/components/schemas/ErrorResponse' },
55
+ },
56
+ },
57
+ },
58
+ },
59
+ },
60
+ },
61
+ '/api/cu/inventory': {
62
+ get: {
63
+ operationId: 'cuCheckInventory',
64
+ summary: 'CU 재고 확인',
65
+ description: '상품 키워드로 CU 재고를 조회하고 주변 매장 정보를 함께 반환합니다.',
66
+ parameters: [
67
+ {
68
+ name: 'keyword',
69
+ in: 'query',
70
+ required: true,
71
+ description: '재고를 확인할 상품 키워드',
72
+ schema: { type: 'string' },
73
+ example: '과자',
74
+ },
75
+ {
76
+ name: 'lat',
77
+ in: 'query',
78
+ required: false,
79
+ description: '위도 (선택)',
80
+ schema: { type: 'number', format: 'float' },
81
+ },
82
+ {
83
+ name: 'lng',
84
+ in: 'query',
85
+ required: false,
86
+ description: '경도 (선택)',
87
+ schema: { type: 'number', format: 'float' },
88
+ },
89
+ {
90
+ name: 'storeKeyword',
91
+ in: 'query',
92
+ required: false,
93
+ description: '주변 매장 필터 키워드',
94
+ schema: { type: 'string' },
95
+ },
96
+ {
97
+ name: 'size',
98
+ in: 'query',
99
+ required: false,
100
+ description: '재고 검색 결과 수',
101
+ schema: { type: 'integer', default: 20, minimum: 1, maximum: 100 },
102
+ },
103
+ {
104
+ name: 'offset',
105
+ in: 'query',
106
+ required: false,
107
+ description: '재고 검색 시작 오프셋',
108
+ schema: { type: 'integer', default: 0, minimum: 0 },
109
+ },
110
+ {
111
+ name: 'searchSort',
112
+ in: 'query',
113
+ required: false,
114
+ description: '재고 정렬 방식',
115
+ schema: { type: 'string', default: 'recom' },
116
+ },
117
+ {
118
+ name: 'storeCheck',
119
+ in: 'query',
120
+ required: false,
121
+ description: 'false이면 주변 매장 조회를 생략하고 재고 상품 검색만 수행',
122
+ schema: { type: 'boolean', default: true },
123
+ },
124
+ ],
125
+ responses: {
126
+ '200': {
127
+ description: '조회 성공',
128
+ content: {
129
+ 'application/json': {
130
+ schema: { $ref: '#/components/schemas/CuInventoryResponse' },
131
+ },
132
+ },
133
+ },
134
+ '400': {
135
+ description: '잘못된 요청 (검색어 누락)',
136
+ content: {
137
+ 'application/json': {
138
+ schema: { $ref: '#/components/schemas/ErrorResponse' },
139
+ },
140
+ },
141
+ },
142
+ },
143
+ },
144
+ },
145
+ };
@@ -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
+ };