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
@@ -0,0 +1,166 @@
1
+ /**
2
+ * OpenAPI 경로 정의 (GS25)
3
+ */
4
+ export const OPENAPI_PATHS_GS25 = {
5
+ '/api/gs25/stores': {
6
+ get: {
7
+ operationId: 'gs25FindStores',
8
+ summary: 'GS25 매장 검색',
9
+ description: '키워드/좌표 기준으로 GS25 매장을 조회합니다.',
10
+ parameters: [
11
+ {
12
+ name: 'keyword',
13
+ in: 'query',
14
+ required: false,
15
+ description: '매장명 또는 주소 키워드 (예: 강남)',
16
+ schema: { type: 'string' },
17
+ },
18
+ {
19
+ name: 'lat',
20
+ in: 'query',
21
+ required: false,
22
+ description: '위도',
23
+ schema: { type: 'number', format: 'float' },
24
+ },
25
+ {
26
+ name: 'lng',
27
+ in: 'query',
28
+ required: false,
29
+ description: '경도',
30
+ schema: { type: 'number', format: 'float' },
31
+ },
32
+ {
33
+ name: 'limit',
34
+ in: 'query',
35
+ required: false,
36
+ description: '최대 결과 수',
37
+ schema: { type: 'integer', default: 20, minimum: 1, maximum: 200 },
38
+ },
39
+ ],
40
+ responses: {
41
+ '200': {
42
+ description: '검색 성공',
43
+ content: {
44
+ 'application/json': {
45
+ schema: { $ref: '#/components/schemas/Gs25StoreSearchResponse' },
46
+ },
47
+ },
48
+ },
49
+ },
50
+ },
51
+ },
52
+ '/api/gs25/products': {
53
+ get: {
54
+ operationId: 'gs25SearchProducts',
55
+ summary: 'GS25 상품 키워드 검색',
56
+ description: '키워드로 GS25 상품 후보를 조회합니다.',
57
+ parameters: [
58
+ {
59
+ name: 'keyword',
60
+ in: 'query',
61
+ required: true,
62
+ description: '상품 검색어',
63
+ schema: { type: 'string' },
64
+ example: '오감자',
65
+ },
66
+ {
67
+ name: 'limit',
68
+ in: 'query',
69
+ required: false,
70
+ description: '최대 결과 수',
71
+ schema: { type: 'integer', default: 20, minimum: 1, maximum: 200 },
72
+ },
73
+ ],
74
+ responses: {
75
+ '200': {
76
+ description: '검색 성공',
77
+ content: {
78
+ 'application/json': {
79
+ schema: { $ref: '#/components/schemas/Gs25ProductSearchResponse' },
80
+ },
81
+ },
82
+ },
83
+ '400': {
84
+ description: '잘못된 요청 (검색어 누락)',
85
+ content: {
86
+ 'application/json': {
87
+ schema: { $ref: '#/components/schemas/ErrorResponse' },
88
+ },
89
+ },
90
+ },
91
+ },
92
+ },
93
+ },
94
+ '/api/gs25/inventory': {
95
+ get: {
96
+ operationId: 'gs25CheckInventory',
97
+ summary: 'GS25 재고 조회',
98
+ description: '상품 키워드 또는 itemCode 기준으로 GS25 매장별 재고를 조회합니다.',
99
+ parameters: [
100
+ {
101
+ name: 'keyword',
102
+ in: 'query',
103
+ required: false,
104
+ description: '상품 검색어 (itemCode가 없을 때 사용)',
105
+ schema: { type: 'string' },
106
+ example: '오감자',
107
+ },
108
+ {
109
+ name: 'itemCode',
110
+ in: 'query',
111
+ required: false,
112
+ description: '상품 코드 (상품 검색 결과에서 전달)',
113
+ schema: { type: 'string' },
114
+ example: '8801056038861',
115
+ },
116
+ {
117
+ name: 'storeKeyword',
118
+ in: 'query',
119
+ required: false,
120
+ description: '매장명/주소 필터 키워드',
121
+ schema: { type: 'string' },
122
+ example: '강남',
123
+ },
124
+ {
125
+ name: 'lat',
126
+ in: 'query',
127
+ required: false,
128
+ description: '위도',
129
+ schema: { type: 'number', format: 'float' },
130
+ },
131
+ {
132
+ name: 'lng',
133
+ in: 'query',
134
+ required: false,
135
+ description: '경도',
136
+ schema: { type: 'number', format: 'float' },
137
+ },
138
+ {
139
+ name: 'storeLimit',
140
+ in: 'query',
141
+ required: false,
142
+ description: '반환할 최대 매장 수',
143
+ schema: { type: 'integer', default: 20, minimum: 1, maximum: 200 },
144
+ },
145
+ ],
146
+ responses: {
147
+ '200': {
148
+ description: '조회 성공',
149
+ content: {
150
+ 'application/json': {
151
+ schema: { $ref: '#/components/schemas/Gs25InventoryResponse' },
152
+ },
153
+ },
154
+ },
155
+ '400': {
156
+ description: '잘못된 요청 (필수 파라미터 누락)',
157
+ content: {
158
+ 'application/json': {
159
+ schema: { $ref: '#/components/schemas/ErrorResponse' },
160
+ },
161
+ },
162
+ },
163
+ },
164
+ },
165
+ },
166
+ };
@@ -0,0 +1,149 @@
1
+ /**
2
+ * OpenAPI 경로 정의 (롯데마트)
3
+ */
4
+ export const OPENAPI_PATHS_LOTTEMART = {
5
+ '/api/lottemart/stores': {
6
+ get: {
7
+ operationId: 'lottemartFindStores',
8
+ summary: '롯데마트 매장 검색',
9
+ description: '지역/키워드 조건으로 롯데마트 계열 매장을 조회합니다.',
10
+ parameters: [
11
+ {
12
+ name: 'keyword',
13
+ in: 'query',
14
+ required: false,
15
+ description: '매장명 또는 주소 키워드',
16
+ schema: { type: 'string' },
17
+ },
18
+ {
19
+ name: 'area',
20
+ in: 'query',
21
+ required: false,
22
+ description: '지역 (예: 서울, 경기, 제주)',
23
+ schema: { type: 'string' },
24
+ },
25
+ {
26
+ name: 'brandVariant',
27
+ in: 'query',
28
+ required: false,
29
+ description: '브랜드 변형 필터',
30
+ schema: {
31
+ type: 'string',
32
+ enum: ['lottemart', 'toysrus', 'max', 'bottlebunker', 'mealguru', 'grandgrocery', 'other'],
33
+ },
34
+ },
35
+ {
36
+ name: 'lat',
37
+ in: 'query',
38
+ required: false,
39
+ description: '위도',
40
+ schema: { type: 'number', format: 'float' },
41
+ },
42
+ {
43
+ name: 'lng',
44
+ in: 'query',
45
+ required: false,
46
+ description: '경도',
47
+ schema: { type: 'number', format: 'float' },
48
+ },
49
+ {
50
+ name: 'limit',
51
+ in: 'query',
52
+ required: false,
53
+ description: '최대 결과 수',
54
+ schema: { type: 'integer', default: 20, minimum: 1, maximum: 100 },
55
+ },
56
+ ],
57
+ responses: {
58
+ '200': {
59
+ description: '검색 성공',
60
+ content: {
61
+ 'application/json': {
62
+ schema: { $ref: '#/components/schemas/LotteMartStoreSearchResponse' },
63
+ },
64
+ },
65
+ },
66
+ },
67
+ },
68
+ },
69
+ '/api/lottemart/products': {
70
+ get: {
71
+ operationId: 'lottemartSearchProducts',
72
+ summary: '롯데마트 상품 검색',
73
+ description: '특정 롯데마트 매장을 기준으로 상품 가격과 재고를 조회합니다.',
74
+ parameters: [
75
+ {
76
+ name: 'keyword',
77
+ in: 'query',
78
+ required: true,
79
+ description: '상품 검색어',
80
+ schema: { type: 'string' },
81
+ example: '콜라',
82
+ },
83
+ {
84
+ name: 'storeCode',
85
+ in: 'query',
86
+ required: false,
87
+ description: '매장 코드',
88
+ schema: { type: 'string' },
89
+ example: '2301',
90
+ },
91
+ {
92
+ name: 'storeName',
93
+ in: 'query',
94
+ required: false,
95
+ description: '매장명',
96
+ schema: { type: 'string' },
97
+ example: '강변점',
98
+ },
99
+ {
100
+ name: 'area',
101
+ in: 'query',
102
+ required: false,
103
+ description: '지역 (storeName 해석 보조용)',
104
+ schema: { type: 'string' },
105
+ example: '서울',
106
+ },
107
+ {
108
+ name: 'pageLimit',
109
+ in: 'query',
110
+ required: false,
111
+ description: '추가 조회할 최대 페이지 수',
112
+ schema: { type: 'integer', default: 3, minimum: 1, maximum: 20 },
113
+ },
114
+ {
115
+ name: 'source',
116
+ in: 'query',
117
+ required: false,
118
+ description: '상품 검색 경로',
119
+ schema: { type: 'string', enum: ['auto', 'legacy', 'zetta'], default: 'auto' },
120
+ },
121
+ {
122
+ name: 'timeoutMs',
123
+ in: 'query',
124
+ required: false,
125
+ description: '요청 제한 시간(ms)',
126
+ schema: { type: 'integer', default: 45000, minimum: 1 },
127
+ },
128
+ ],
129
+ responses: {
130
+ '200': {
131
+ description: '검색 성공',
132
+ content: {
133
+ 'application/json': {
134
+ schema: { $ref: '#/components/schemas/LotteMartProductSearchResponse' },
135
+ },
136
+ },
137
+ },
138
+ '400': {
139
+ description: '잘못된 요청',
140
+ content: {
141
+ 'application/json': {
142
+ schema: { $ref: '#/components/schemas/ErrorResponse' },
143
+ },
144
+ },
145
+ },
146
+ },
147
+ },
148
+ },
149
+ };
@@ -0,0 +1,212 @@
1
+ /**
2
+ * OpenAPI 경로 정의 (롯데시네마)
3
+ */
4
+ export const OPENAPI_PATHS_LOTTECINEMA = {
5
+ '/api/lottecinema/theaters': {
6
+ get: {
7
+ operationId: 'lottecinemaFindNearbyTheaters',
8
+ summary: '롯데시네마 주변 지점 조회',
9
+ description: '위치 키워드 또는 좌표 기준으로 롯데시네마 지점을 거리순으로 조회합니다.',
10
+ parameters: [
11
+ {
12
+ name: 'keyword',
13
+ in: 'query',
14
+ required: false,
15
+ description: '위치 키워드 (예: 안산 중앙역, 잠실역)',
16
+ schema: { type: 'string', example: '안산 중앙역' },
17
+ },
18
+ {
19
+ name: 'lat',
20
+ in: 'query',
21
+ required: false,
22
+ description: '위도 (keyword가 없을 때 기본값: 서울 시청 37.5665)',
23
+ schema: { type: 'number', format: 'float', default: 37.5665 },
24
+ },
25
+ {
26
+ name: 'lng',
27
+ in: 'query',
28
+ required: false,
29
+ description: '경도 (keyword가 없을 때 기본값: 서울 시청 126.978)',
30
+ schema: { type: 'number', format: 'float', default: 126.978 },
31
+ },
32
+ {
33
+ name: 'playDate',
34
+ in: 'query',
35
+ required: false,
36
+ description: '조회 날짜 (YYYYMMDD)',
37
+ schema: { type: 'string', example: '20260310' },
38
+ },
39
+ {
40
+ name: 'limit',
41
+ in: 'query',
42
+ required: false,
43
+ description: '최대 결과 수',
44
+ schema: { type: 'integer', default: 10, minimum: 1, maximum: 100 },
45
+ },
46
+ ],
47
+ responses: {
48
+ '200': {
49
+ description: '조회 성공',
50
+ content: {
51
+ 'application/json': {
52
+ schema: { $ref: '#/components/schemas/LotteCinemaTheaterSearchResponse' },
53
+ },
54
+ },
55
+ },
56
+ '500': {
57
+ description: '롯데시네마 API 호출 실패',
58
+ content: {
59
+ 'application/json': {
60
+ schema: { $ref: '#/components/schemas/ErrorResponse' },
61
+ },
62
+ },
63
+ },
64
+ },
65
+ },
66
+ },
67
+ '/api/lottecinema/movies': {
68
+ get: {
69
+ operationId: 'lottecinemaListNowShowing',
70
+ summary: '롯데시네마 영화/회차 목록 조회',
71
+ description: '날짜, 지점, 영화 조건으로 롯데시네마 영화 및 상영 회차를 조회합니다. theaterId가 없으면 위치 키워드 기준 최근접 지점을 선택할 수 있습니다.',
72
+ parameters: [
73
+ {
74
+ name: 'playDate',
75
+ in: 'query',
76
+ required: false,
77
+ description: '조회 날짜 (YYYYMMDD)',
78
+ schema: { type: 'string', example: '20260310' },
79
+ },
80
+ {
81
+ name: 'theaterId',
82
+ in: 'query',
83
+ required: false,
84
+ description: '지점 ID (예: 1016)',
85
+ schema: { type: 'string', example: '1016' },
86
+ },
87
+ {
88
+ name: 'movieId',
89
+ in: 'query',
90
+ required: false,
91
+ description: '대표 영화 코드 (예: 23816)',
92
+ schema: { type: 'string', example: '23816' },
93
+ },
94
+ {
95
+ name: 'keyword',
96
+ in: 'query',
97
+ required: false,
98
+ description: '위치 키워드 (theaterId가 없을 때 사용, 예: 안산 중앙역)',
99
+ schema: { type: 'string', example: '안산 중앙역' },
100
+ },
101
+ {
102
+ name: 'lat',
103
+ in: 'query',
104
+ required: false,
105
+ description: '위도 (theaterId가 없을 때 사용)',
106
+ schema: { type: 'number', format: 'float', example: 37.3172 },
107
+ },
108
+ {
109
+ name: 'lng',
110
+ in: 'query',
111
+ required: false,
112
+ description: '경도 (theaterId가 없을 때 사용)',
113
+ schema: { type: 'number', format: 'float', example: 126.839 },
114
+ },
115
+ ],
116
+ responses: {
117
+ '200': {
118
+ description: '조회 성공',
119
+ content: {
120
+ 'application/json': {
121
+ schema: { $ref: '#/components/schemas/LotteCinemaMovieListResponse' },
122
+ },
123
+ },
124
+ },
125
+ '500': {
126
+ description: '롯데시네마 API 호출 실패',
127
+ content: {
128
+ 'application/json': {
129
+ schema: { $ref: '#/components/schemas/ErrorResponse' },
130
+ },
131
+ },
132
+ },
133
+ },
134
+ },
135
+ },
136
+ '/api/lottecinema/seats': {
137
+ get: {
138
+ operationId: 'lottecinemaGetRemainingSeats',
139
+ summary: '롯데시네마 잔여 좌석 조회',
140
+ description: '영화/지점/날짜 조건으로 회차별 잔여 좌석 수를 조회합니다. theaterId가 없으면 위치 키워드 기준 최근접 지점을 선택할 수 있습니다.',
141
+ parameters: [
142
+ {
143
+ name: 'playDate',
144
+ in: 'query',
145
+ required: false,
146
+ description: '조회 날짜 (YYYYMMDD)',
147
+ schema: { type: 'string', example: '20260310' },
148
+ },
149
+ {
150
+ name: 'theaterId',
151
+ in: 'query',
152
+ required: false,
153
+ description: '지점 ID',
154
+ schema: { type: 'string', example: '1016' },
155
+ },
156
+ {
157
+ name: 'movieId',
158
+ in: 'query',
159
+ required: false,
160
+ description: '대표 영화 코드',
161
+ schema: { type: 'string', example: '23816' },
162
+ },
163
+ {
164
+ name: 'keyword',
165
+ in: 'query',
166
+ required: false,
167
+ description: '위치 키워드 (theaterId가 없을 때 사용, 예: 안산 중앙역)',
168
+ schema: { type: 'string', example: '안산 중앙역' },
169
+ },
170
+ {
171
+ name: 'lat',
172
+ in: 'query',
173
+ required: false,
174
+ description: '위도 (theaterId가 없을 때 사용)',
175
+ schema: { type: 'number', format: 'float', example: 37.3172 },
176
+ },
177
+ {
178
+ name: 'lng',
179
+ in: 'query',
180
+ required: false,
181
+ description: '경도 (theaterId가 없을 때 사용)',
182
+ schema: { type: 'number', format: 'float', example: 126.839 },
183
+ },
184
+ {
185
+ name: 'limit',
186
+ in: 'query',
187
+ required: false,
188
+ description: '최대 결과 수',
189
+ schema: { type: 'integer', default: 50, minimum: 1, maximum: 200 },
190
+ },
191
+ ],
192
+ responses: {
193
+ '200': {
194
+ description: '조회 성공',
195
+ content: {
196
+ 'application/json': {
197
+ schema: { $ref: '#/components/schemas/LotteCinemaSeatListResponse' },
198
+ },
199
+ },
200
+ },
201
+ '500': {
202
+ description: '롯데시네마 API 호출 실패',
203
+ content: {
204
+ 'application/json': {
205
+ schema: { $ref: '#/components/schemas/ErrorResponse' },
206
+ },
207
+ },
208
+ },
209
+ },
210
+ },
211
+ },
212
+ };
@@ -6,8 +6,15 @@ export const OPENAPI_PATHS_MEGABOX = {
6
6
  get: {
7
7
  operationId: 'megaboxFindNearbyTheaters',
8
8
  summary: '메가박스 주변 지점 조회',
9
- description: '좌표 기준으로 메가박스 지점을 거리순으로 조회합니다.',
9
+ description: '좌표 또는 위치 키워드 기준으로 메가박스 지점을 거리순으로 조회합니다. lat/lng가 없으면 keyword를 구글 지오코드로 보강할 수 있습니다.',
10
10
  parameters: [
11
+ {
12
+ name: 'keyword',
13
+ in: 'query',
14
+ required: false,
15
+ description: '위치 키워드 (예: 안산 중앙역, 강남역)',
16
+ schema: { type: 'string' },
17
+ },
11
18
  {
12
19
  name: 'lat',
13
20
  in: 'query',
@@ -68,7 +75,7 @@ export const OPENAPI_PATHS_MEGABOX = {
68
75
  get: {
69
76
  operationId: 'megaboxListNowShowing',
70
77
  summary: '메가박스 영화/회차 목록 조회',
71
- description: '날짜, 지점, 영화 조건으로 메가박스 영화 및 상영 회차를 조회합니다.',
78
+ description: '날짜, 지점, 영화 조건으로 메가박스 영화 및 상영 회차를 조회합니다. theaterId가 없고 keyword 또는 좌표가 있으면 가장 가까운 지점을 먼저 선택합니다.',
72
79
  parameters: [
73
80
  {
74
81
  name: 'playDate',
@@ -91,6 +98,27 @@ export const OPENAPI_PATHS_MEGABOX = {
91
98
  description: '영화 ID (예: 25104500)',
92
99
  schema: { type: 'string', example: '25104500' },
93
100
  },
101
+ {
102
+ name: 'keyword',
103
+ in: 'query',
104
+ required: false,
105
+ description: '위치 키워드 (예: 안산 중앙역, 강남역)',
106
+ schema: { type: 'string' },
107
+ },
108
+ {
109
+ name: 'lat',
110
+ in: 'query',
111
+ required: false,
112
+ description: '위도',
113
+ schema: { type: 'number', format: 'float' },
114
+ },
115
+ {
116
+ name: 'lng',
117
+ in: 'query',
118
+ required: false,
119
+ description: '경도',
120
+ schema: { type: 'number', format: 'float' },
121
+ },
94
122
  {
95
123
  name: 'areaCode',
96
124
  in: 'query',
@@ -123,7 +151,7 @@ export const OPENAPI_PATHS_MEGABOX = {
123
151
  get: {
124
152
  operationId: 'megaboxGetRemainingSeats',
125
153
  summary: '메가박스 잔여 좌석 조회',
126
- description: '영화/지점/날짜 조건으로 회차별 잔여 좌석 수를 조회합니다.',
154
+ description: '영화/지점/날짜 조건으로 회차별 잔여 좌석 수를 조회합니다. theaterId가 없고 keyword 또는 좌표가 있으면 가장 가까운 지점을 먼저 선택합니다.',
127
155
  parameters: [
128
156
  {
129
157
  name: 'playDate',
@@ -146,6 +174,27 @@ export const OPENAPI_PATHS_MEGABOX = {
146
174
  description: '영화 ID',
147
175
  schema: { type: 'string' },
148
176
  },
177
+ {
178
+ name: 'keyword',
179
+ in: 'query',
180
+ required: false,
181
+ description: '위치 키워드 (예: 안산 중앙역, 강남역)',
182
+ schema: { type: 'string' },
183
+ },
184
+ {
185
+ name: 'lat',
186
+ in: 'query',
187
+ required: false,
188
+ description: '위도',
189
+ schema: { type: 'number', format: 'float' },
190
+ },
191
+ {
192
+ name: 'lng',
193
+ in: 'query',
194
+ required: false,
195
+ description: '경도',
196
+ schema: { type: 'number', format: 'float' },
197
+ },
149
198
  {
150
199
  name: 'areaCode',
151
200
  in: 'query',