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.
- package/README.md +218 -537
- package/dist/api/actionsProxy.js +82 -0
- package/dist/api/cgvHandlers.js +103 -16
- package/dist/api/daisoHandlers.js +127 -0
- package/dist/api/emart24Handlers.js +176 -0
- package/dist/api/gs25Handlers.js +256 -0
- package/dist/api/handlers.js +184 -108
- package/dist/api/healthChecks.js +332 -0
- package/dist/api/lottecinemaHandlers.js +155 -0
- package/dist/api/lottemartHandlers.js +128 -0
- package/dist/api/megaboxHandlers.js +81 -50
- package/dist/api/routes/cuRoutes.js +17 -0
- package/dist/api/routes/daisoRoutes.js +6 -1
- package/dist/api/routes/emart24Routes.js +22 -0
- package/dist/api/routes/gs25Routes.js +22 -0
- package/dist/api/routes/healthRoutes.js +44 -0
- package/dist/api/routes/lottecinemaRoutes.js +22 -0
- package/dist/api/routes/lottemartRoutes.js +18 -0
- package/dist/api/routes/oliveyoungRoutes.js +6 -1
- package/dist/api/routes/sevenelevenRoutes.js +32 -0
- package/dist/api/sevenelevenHandlers.js +200 -0
- package/dist/cli/args.js +54 -0
- package/dist/cli/commands/convenience.js +241 -0
- package/dist/cli/commands/daiso.js +96 -0
- package/dist/cli/constants.js +5 -0
- package/dist/cli/deps.js +48 -0
- package/dist/cli/http.js +98 -0
- package/dist/cli/interactiveFetch.js +31 -0
- package/dist/cli/interactiveItemSearch.js +259 -0
- package/dist/cli/interactivePrompt.js +49 -0
- package/dist/cli/interactiveTypes.js +4 -0
- package/dist/cli/types.js +4 -0
- package/dist/cli.js +66 -181
- package/dist/cliHelp.js +216 -9
- package/dist/cliInteractive.js +174 -0
- package/dist/cliPicker.js +56 -0
- package/dist/cliRenderer.js +139 -0
- package/dist/index.js +147 -8
- package/dist/pages/openapi.js +2 -1
- package/dist/pages/openapiFullSpec.js +58 -0
- package/dist/pages/openapiResponse.js +28 -0
- package/dist/pages/openapiSpec.js +2 -41
- package/dist/pages/openapiSpecActions.js +109 -0
- package/dist/pages/openapiSpecComponents.js +30 -391
- package/dist/pages/openapiSpecComponentsCgv.js +24 -0
- package/dist/pages/openapiSpecComponentsCu.js +112 -0
- package/dist/pages/openapiSpecComponentsDaisoOliveyoung.js +342 -0
- package/dist/pages/openapiSpecComponentsEmart24.js +141 -0
- package/dist/pages/openapiSpecComponentsGs25.js +109 -0
- package/dist/pages/openapiSpecComponentsLotteMart.js +85 -0
- package/dist/pages/openapiSpecComponentsLottecinema.js +163 -0
- package/dist/pages/openapiSpecComponentsMegabox.js +144 -0
- package/dist/pages/openapiSpecComponentsSeveneleven.js +82 -0
- package/dist/pages/openapiSpecPathsCgv.js +66 -3
- package/dist/pages/openapiSpecPathsCu.js +138 -0
- package/dist/pages/openapiSpecPathsDaiso.js +302 -0
- package/dist/pages/openapiSpecPathsDaisoOliveyoung.js +4 -376
- package/dist/pages/openapiSpecPathsEmart24.js +223 -0
- package/dist/pages/openapiSpecPathsGs25.js +166 -0
- package/dist/pages/openapiSpecPathsLotteMart.js +135 -0
- package/dist/pages/openapiSpecPathsLottecinema.js +212 -0
- package/dist/pages/openapiSpecPathsMegabox.js +52 -3
- package/dist/pages/openapiSpecPathsOliveyoung.js +231 -0
- package/dist/pages/openapiSpecPathsSeveneleven.js +234 -0
- package/dist/pages/prompt.js +8 -402
- package/dist/pages/promptCoreText.js +278 -0
- package/dist/pages/promptReferenceText.js +131 -0
- package/dist/pages/promptRetailCinemaText.js +273 -0
- package/dist/services/cgv/client.js +6 -1
- package/dist/services/cgv/index.js +3 -3
- package/dist/services/cgv/location.js +235 -0
- package/dist/services/cgv/tools/findTheaters.js +30 -5
- package/dist/services/cgv/tools/getTimetable.js +42 -14
- package/dist/services/cgv/tools/searchMovies.js +40 -12
- package/dist/services/cgv/transport.js +0 -3
- package/dist/services/cu/api.js +11 -0
- package/dist/services/cu/client.js +297 -0
- package/dist/services/cu/index.js +21 -0
- package/dist/services/cu/tools/checkInventory.js +123 -0
- package/dist/services/cu/tools/findNearbyStores.js +49 -0
- package/dist/services/cu/types.js +4 -0
- package/dist/services/daiso/api.js +22 -2
- package/dist/services/daiso/client.js +59 -0
- package/dist/services/daiso/index.js +2 -0
- package/dist/services/daiso/product.js +17 -0
- package/dist/services/daiso/tools/checkInventory.js +76 -41
- package/dist/services/daiso/tools/findStores.js +17 -7
- package/dist/services/daiso/tools/getDisplayLocation.js +75 -0
- package/dist/services/emart24/api.js +11 -0
- package/dist/services/emart24/client.js +173 -0
- package/dist/services/emart24/index.js +22 -0
- package/dist/services/emart24/inventoryLookup.js +134 -0
- package/dist/services/emart24/tools/checkInventory.js +54 -0
- package/dist/services/emart24/tools/findNearbyStores.js +72 -0
- package/dist/services/emart24/tools/searchProducts.js +63 -0
- package/dist/services/emart24/types.js +4 -0
- package/dist/services/gs25/api.js +9 -0
- package/dist/services/gs25/client.js +198 -0
- package/dist/services/gs25/index.js +22 -0
- package/dist/services/gs25/storeUtils.js +168 -0
- package/dist/services/gs25/tools/checkInventory.js +163 -0
- package/dist/services/gs25/tools/findNearbyStores.js +103 -0
- package/dist/services/gs25/tools/searchProducts.js +50 -0
- package/dist/services/gs25/types.js +4 -0
- package/dist/services/lottecinema/api.js +12 -0
- package/dist/services/lottecinema/client.js +161 -0
- package/dist/services/lottecinema/index.js +30 -0
- package/dist/services/lottecinema/location.js +191 -0
- package/dist/services/lottecinema/tools/findNearbyTheaters.js +47 -0
- package/dist/services/lottecinema/tools/getRemainingSeats.js +85 -0
- package/dist/services/lottecinema/tools/listNowShowing.js +79 -0
- package/dist/services/lottecinema/types.js +4 -0
- package/dist/services/lottemart/api.js +31 -0
- package/dist/services/lottemart/client.js +245 -0
- package/dist/services/lottemart/clientTypes.js +4 -0
- package/dist/services/lottemart/config.js +4 -0
- package/dist/services/lottemart/debug.js +92 -0
- package/dist/services/lottemart/geocode.js +49 -0
- package/dist/services/lottemart/index.js +30 -0
- package/dist/services/lottemart/keyword.js +29 -0
- package/dist/services/lottemart/parser.js +185 -0
- package/dist/services/lottemart/session.js +331 -0
- package/dist/services/lottemart/storeSearch.js +52 -0
- package/dist/services/lottemart/tools/findNearbyStores.js +67 -0
- package/dist/services/lottemart/tools/searchProducts.js +62 -0
- package/dist/services/lottemart/types.js +4 -0
- package/dist/services/lottemart/zetta.js +105 -0
- package/dist/services/megabox/location.js +219 -0
- package/dist/services/megabox/tools/findNearbyTheaters.js +13 -44
- package/dist/services/megabox/tools/getRemainingSeats.js +31 -3
- package/dist/services/megabox/tools/listNowShowing.js +31 -3
- package/dist/services/oliveyoung/api.js +2 -0
- package/dist/services/oliveyoung/client.js +150 -9
- package/dist/services/oliveyoung/index.js +3 -1
- package/dist/services/oliveyoung/tools/checkInventory.js +15 -4
- package/dist/services/oliveyoung/tools/searchProducts.js +57 -0
- package/dist/services/seveneleven/api.js +15 -0
- package/dist/services/seveneleven/client.js +279 -0
- package/dist/services/seveneleven/index.js +30 -0
- package/dist/services/seveneleven/inventory.js +302 -0
- package/dist/services/seveneleven/productKeyword.js +141 -0
- package/dist/services/seveneleven/tools/checkInventory.js +82 -0
- package/dist/services/seveneleven/tools/getCatalogSnapshot.js +55 -0
- package/dist/services/seveneleven/tools/getSearchPopwords.js +41 -0
- package/dist/services/seveneleven/tools/searchProducts.js +56 -0
- package/dist/services/seveneleven/tools/searchStores.js +45 -0
- package/dist/services/seveneleven/types.js +4 -0
- package/dist/utils/cliInteractiveHelpers.js +63 -0
- package/dist/utils/daisoKeyword.js +30 -0
- package/dist/utils/http.js +16 -2
- package/openapi.json +1977 -734
- package/openapi.yaml +1430 -543
- package/package.json +28 -15
- package/dist/tools/checkInventory.js +0 -98
- package/dist/tools/findStores.js +0 -125
- package/dist/tools/getPriceInfo.js +0 -77
- package/dist/tools/searchProducts.js +0 -61
- package/dist/types/index.js +0 -4
|
@@ -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',
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI 경로 정의 (올리브영)
|
|
3
|
+
*/
|
|
4
|
+
export const OPENAPI_PATHS_OLIVEYOUNG = {
|
|
5
|
+
'/api/oliveyoung/products': {
|
|
6
|
+
get: {
|
|
7
|
+
operationId: 'oliveyoungSearchProducts',
|
|
8
|
+
summary: '올리브영 상품 검색',
|
|
9
|
+
description: '키워드로 올리브영 상품 목록을 조회합니다. "어떤 거 있나요", "종류 보여줘" 같은 요청은 이 엔드포인트를 먼저 사용하세요.',
|
|
10
|
+
parameters: [
|
|
11
|
+
{
|
|
12
|
+
name: 'keyword',
|
|
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: 'size',
|
|
28
|
+
in: 'query',
|
|
29
|
+
required: false,
|
|
30
|
+
description: '페이지당 결과 수',
|
|
31
|
+
schema: { type: 'integer', default: 20, minimum: 1, maximum: 100 },
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'sort',
|
|
35
|
+
in: 'query',
|
|
36
|
+
required: false,
|
|
37
|
+
description: '정렬 코드',
|
|
38
|
+
schema: { type: 'string', default: '01' },
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'includeSoldOut',
|
|
42
|
+
in: 'query',
|
|
43
|
+
required: false,
|
|
44
|
+
description: '품절 포함 여부 (true/false)',
|
|
45
|
+
schema: { type: 'boolean', default: false },
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
responses: {
|
|
49
|
+
'200': {
|
|
50
|
+
description: '검색 성공',
|
|
51
|
+
content: {
|
|
52
|
+
'application/json': {
|
|
53
|
+
schema: { $ref: '#/components/schemas/OliveyoungProductSearchResponse' },
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
'400': {
|
|
58
|
+
description: '잘못된 요청 (검색어 누락)',
|
|
59
|
+
content: {
|
|
60
|
+
'application/json': {
|
|
61
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' },
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
'500': {
|
|
66
|
+
description: '올리브영 API 호출 실패',
|
|
67
|
+
content: {
|
|
68
|
+
'application/json': {
|
|
69
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
'/api/oliveyoung/stores': {
|
|
77
|
+
get: {
|
|
78
|
+
operationId: 'oliveyoungFindStores',
|
|
79
|
+
summary: '올리브영 매장 검색',
|
|
80
|
+
description: '위치(위도/경도)와 키워드로 올리브영 매장을 검색합니다.',
|
|
81
|
+
parameters: [
|
|
82
|
+
{
|
|
83
|
+
name: 'keyword',
|
|
84
|
+
in: 'query',
|
|
85
|
+
required: false,
|
|
86
|
+
description: '매장명 또는 지역 키워드 (예: 명동, 강남)',
|
|
87
|
+
schema: { type: 'string' },
|
|
88
|
+
example: '명동',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'lat',
|
|
92
|
+
in: 'query',
|
|
93
|
+
required: false,
|
|
94
|
+
description: '위도 (기본값: 서울 시청 37.5665)',
|
|
95
|
+
schema: { type: 'number', format: 'float', default: 37.5665 },
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'lng',
|
|
99
|
+
in: 'query',
|
|
100
|
+
required: false,
|
|
101
|
+
description: '경도 (기본값: 서울 시청 126.978)',
|
|
102
|
+
schema: { type: 'number', format: 'float', default: 126.978 },
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'pageIdx',
|
|
106
|
+
in: 'query',
|
|
107
|
+
required: false,
|
|
108
|
+
description: '매장 검색 페이지 번호',
|
|
109
|
+
schema: { type: 'integer', default: 1, minimum: 1 },
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'limit',
|
|
113
|
+
in: 'query',
|
|
114
|
+
required: false,
|
|
115
|
+
description: '최대 결과 수',
|
|
116
|
+
schema: { type: 'integer', default: 20, minimum: 1, maximum: 100 },
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
responses: {
|
|
120
|
+
'200': {
|
|
121
|
+
description: '검색 성공',
|
|
122
|
+
content: {
|
|
123
|
+
'application/json': {
|
|
124
|
+
schema: { $ref: '#/components/schemas/OliveyoungStoreSearchResponse' },
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
'500': {
|
|
129
|
+
description: '올리브영 API 호출 실패',
|
|
130
|
+
content: {
|
|
131
|
+
'application/json': {
|
|
132
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' },
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
'/api/oliveyoung/inventory': {
|
|
140
|
+
get: {
|
|
141
|
+
operationId: 'oliveyoungCheckInventory',
|
|
142
|
+
summary: '올리브영 재고 확인',
|
|
143
|
+
description: '상품 키워드로 올리브영 재고를 검색하고 주변 매장 정보를 함께 조회합니다. 상위 상품에는 storeInventory가 포함되며 매장별 재고 수량/품절/미판매 상태를 확인할 수 있습니다.',
|
|
144
|
+
parameters: [
|
|
145
|
+
{
|
|
146
|
+
name: 'keyword',
|
|
147
|
+
in: 'query',
|
|
148
|
+
required: true,
|
|
149
|
+
description: '재고를 확인할 상품 키워드',
|
|
150
|
+
schema: { type: 'string' },
|
|
151
|
+
example: '선크림',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'lat',
|
|
155
|
+
in: 'query',
|
|
156
|
+
required: false,
|
|
157
|
+
description: '위도 (기본값: 서울 시청 37.5665)',
|
|
158
|
+
schema: { type: 'number', format: 'float', default: 37.5665 },
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: 'lng',
|
|
162
|
+
in: 'query',
|
|
163
|
+
required: false,
|
|
164
|
+
description: '경도 (기본값: 서울 시청 126.978)',
|
|
165
|
+
schema: { type: 'number', format: 'float', default: 126.978 },
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'storeKeyword',
|
|
169
|
+
in: 'query',
|
|
170
|
+
required: false,
|
|
171
|
+
description: '주변 매장 필터 키워드',
|
|
172
|
+
schema: { type: 'string' },
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: 'page',
|
|
176
|
+
in: 'query',
|
|
177
|
+
required: false,
|
|
178
|
+
description: '상품 검색 페이지 번호',
|
|
179
|
+
schema: { type: 'integer', default: 1, minimum: 1 },
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: 'size',
|
|
183
|
+
in: 'query',
|
|
184
|
+
required: false,
|
|
185
|
+
description: '페이지당 결과 수',
|
|
186
|
+
schema: { type: 'integer', default: 20, minimum: 1, maximum: 100 },
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: 'sort',
|
|
190
|
+
in: 'query',
|
|
191
|
+
required: false,
|
|
192
|
+
description: '정렬 코드',
|
|
193
|
+
schema: { type: 'string', default: '01' },
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: 'includeSoldOut',
|
|
197
|
+
in: 'query',
|
|
198
|
+
required: false,
|
|
199
|
+
description: '품절 포함 여부 (true/false)',
|
|
200
|
+
schema: { type: 'boolean', default: false },
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
responses: {
|
|
204
|
+
'200': {
|
|
205
|
+
description: '조회 성공',
|
|
206
|
+
content: {
|
|
207
|
+
'application/json': {
|
|
208
|
+
schema: { $ref: '#/components/schemas/OliveyoungInventoryResponse' },
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
'400': {
|
|
213
|
+
description: '잘못된 요청 (검색어 누락)',
|
|
214
|
+
content: {
|
|
215
|
+
'application/json': {
|
|
216
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' },
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
'500': {
|
|
221
|
+
description: '올리브영 API 호출 실패',
|
|
222
|
+
content: {
|
|
223
|
+
'application/json': {
|
|
224
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' },
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
};
|