daiso 1.0.4 → 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 -540
- 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 -197
- package/dist/cliHelp.js +206 -1
- package/dist/cliInteractive.js +174 -0
- package/dist/cliPicker.js +56 -0
- package/dist/cliRenderer.js +4 -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,223 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI 경로 정의 (이마트24)
|
|
3
|
+
*/
|
|
4
|
+
export const OPENAPI_PATHS_EMART24 = {
|
|
5
|
+
'/api/emart24/stores': {
|
|
6
|
+
get: {
|
|
7
|
+
operationId: 'emart24FindStores',
|
|
8
|
+
summary: '이마트24 매장 검색',
|
|
9
|
+
description: '키워드/지역 조건으로 이마트24 매장을 조회합니다.',
|
|
10
|
+
parameters: [
|
|
11
|
+
{
|
|
12
|
+
name: 'keyword',
|
|
13
|
+
in: 'query',
|
|
14
|
+
required: false,
|
|
15
|
+
description: '매장명 또는 지역 키워드 (예: 강남)',
|
|
16
|
+
schema: { type: 'string' },
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'area1',
|
|
20
|
+
in: 'query',
|
|
21
|
+
required: false,
|
|
22
|
+
description: '시/도 (예: 서울특별시)',
|
|
23
|
+
schema: { type: 'string' },
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'area2',
|
|
27
|
+
in: 'query',
|
|
28
|
+
required: false,
|
|
29
|
+
description: '구/군 (예: 강남구)',
|
|
30
|
+
schema: { type: 'string' },
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'lat',
|
|
34
|
+
in: 'query',
|
|
35
|
+
required: false,
|
|
36
|
+
description: '위도 (선택)',
|
|
37
|
+
schema: { type: 'number', format: 'float' },
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'lng',
|
|
41
|
+
in: 'query',
|
|
42
|
+
required: false,
|
|
43
|
+
description: '경도 (선택)',
|
|
44
|
+
schema: { type: 'number', format: 'float' },
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'service24h',
|
|
48
|
+
in: 'query',
|
|
49
|
+
required: false,
|
|
50
|
+
description: '24시간 매장만 조회 여부',
|
|
51
|
+
schema: { type: 'boolean', default: false },
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'limit',
|
|
55
|
+
in: 'query',
|
|
56
|
+
required: false,
|
|
57
|
+
description: '최대 결과 수',
|
|
58
|
+
schema: { type: 'integer', default: 20, minimum: 1, maximum: 100 },
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
responses: {
|
|
62
|
+
'200': {
|
|
63
|
+
description: '검색 성공',
|
|
64
|
+
content: {
|
|
65
|
+
'application/json': {
|
|
66
|
+
schema: { $ref: '#/components/schemas/Emart24StoreSearchResponse' },
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
'/api/emart24/products': {
|
|
74
|
+
get: {
|
|
75
|
+
operationId: 'emart24SearchProducts',
|
|
76
|
+
summary: '이마트24 상품 검색',
|
|
77
|
+
description: '키워드로 이마트24 상품 목록을 조회합니다.',
|
|
78
|
+
parameters: [
|
|
79
|
+
{
|
|
80
|
+
name: 'keyword',
|
|
81
|
+
in: 'query',
|
|
82
|
+
required: true,
|
|
83
|
+
description: '상품 검색어',
|
|
84
|
+
schema: { type: 'string' },
|
|
85
|
+
example: '두바이',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'page',
|
|
89
|
+
in: 'query',
|
|
90
|
+
required: false,
|
|
91
|
+
description: '페이지 번호',
|
|
92
|
+
schema: { type: 'integer', default: 1, minimum: 1 },
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'pageSize',
|
|
96
|
+
in: 'query',
|
|
97
|
+
required: false,
|
|
98
|
+
description: '페이지당 결과 수',
|
|
99
|
+
schema: { type: 'integer', default: 10, minimum: 1, maximum: 100 },
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
responses: {
|
|
103
|
+
'200': {
|
|
104
|
+
description: '검색 성공',
|
|
105
|
+
content: {
|
|
106
|
+
'application/json': {
|
|
107
|
+
schema: { $ref: '#/components/schemas/Emart24ProductSearchResponse' },
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
'400': {
|
|
112
|
+
description: '잘못된 요청 (검색어 누락)',
|
|
113
|
+
content: {
|
|
114
|
+
'application/json': {
|
|
115
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' },
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
'/api/emart24/inventory': {
|
|
123
|
+
get: {
|
|
124
|
+
operationId: 'emart24CheckInventory',
|
|
125
|
+
summary: '이마트24 재고 조회',
|
|
126
|
+
description: 'PLU 코드 또는 상품 키워드와 매장 코드 목록/매장 키워드로 이마트24 재고를 조회합니다. 대화형 흐름에서는 pluCd + storeKeyword 조합을 우선 사용하세요.',
|
|
127
|
+
parameters: [
|
|
128
|
+
{
|
|
129
|
+
name: 'pluCd',
|
|
130
|
+
in: 'query',
|
|
131
|
+
required: false,
|
|
132
|
+
description: '상품 PLU 코드 (keyword 미입력 시 권장)',
|
|
133
|
+
schema: { type: 'string' },
|
|
134
|
+
example: '8800244010504',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: 'keyword',
|
|
138
|
+
in: 'query',
|
|
139
|
+
required: false,
|
|
140
|
+
description: '상품 검색어 (pluCd 미입력 시 사용)',
|
|
141
|
+
schema: { type: 'string' },
|
|
142
|
+
example: '고양이 츄르',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'bizNoArr',
|
|
146
|
+
in: 'query',
|
|
147
|
+
required: false,
|
|
148
|
+
description: '쉼표 구분 매장 코드 목록',
|
|
149
|
+
schema: { type: 'string' },
|
|
150
|
+
example: '28339,05015,23233',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'storeCode',
|
|
154
|
+
in: 'query',
|
|
155
|
+
required: false,
|
|
156
|
+
description: '단일 매장 코드',
|
|
157
|
+
schema: { type: 'string' },
|
|
158
|
+
example: '28339',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: 'storeKeyword',
|
|
162
|
+
in: 'query',
|
|
163
|
+
required: false,
|
|
164
|
+
description: '매장 검색 키워드 (예: 안산 중앙역)',
|
|
165
|
+
schema: { type: 'string' },
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'area1',
|
|
169
|
+
in: 'query',
|
|
170
|
+
required: false,
|
|
171
|
+
description: '시/도',
|
|
172
|
+
schema: { type: 'string' },
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: 'area2',
|
|
176
|
+
in: 'query',
|
|
177
|
+
required: false,
|
|
178
|
+
description: '구/군',
|
|
179
|
+
schema: { type: 'string' },
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: 'lat',
|
|
183
|
+
in: 'query',
|
|
184
|
+
required: false,
|
|
185
|
+
description: '위도',
|
|
186
|
+
schema: { type: 'number', format: 'float' },
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: 'lng',
|
|
190
|
+
in: 'query',
|
|
191
|
+
required: false,
|
|
192
|
+
description: '경도',
|
|
193
|
+
schema: { type: 'number', format: 'float' },
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: 'storeLimit',
|
|
197
|
+
in: 'query',
|
|
198
|
+
required: false,
|
|
199
|
+
description: '조회할 매장 수',
|
|
200
|
+
schema: { type: 'integer', default: 10, minimum: 1, maximum: 50 },
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
responses: {
|
|
204
|
+
'200': {
|
|
205
|
+
description: '조회 성공',
|
|
206
|
+
content: {
|
|
207
|
+
'application/json': {
|
|
208
|
+
schema: { $ref: '#/components/schemas/Emart24InventoryResponse' },
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
'400': {
|
|
213
|
+
description: '잘못된 요청 (필수 파라미터 누락)',
|
|
214
|
+
content: {
|
|
215
|
+
'application/json': {
|
|
216
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' },
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
};
|
|
@@ -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,135 @@
|
|
|
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
|
+
responses: {
|
|
116
|
+
'200': {
|
|
117
|
+
description: '검색 성공',
|
|
118
|
+
content: {
|
|
119
|
+
'application/json': {
|
|
120
|
+
schema: { $ref: '#/components/schemas/LotteMartProductSearchResponse' },
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
'400': {
|
|
125
|
+
description: '잘못된 요청',
|
|
126
|
+
content: {
|
|
127
|
+
'application/json': {
|
|
128
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' },
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
};
|