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,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI 롯데시네마 컴포넌트 스키마 정의
|
|
3
|
+
*/
|
|
4
|
+
export const OPENAPI_LOTTECINEMA_COMPONENT_SCHEMAS = {
|
|
5
|
+
LotteCinemaTheater: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
theaterId: { type: 'string', example: '1016' },
|
|
9
|
+
theaterName: { type: 'string', example: '월드타워' },
|
|
10
|
+
regionCode: { type: 'string', example: '1' },
|
|
11
|
+
regionDetailCode: { type: 'string', example: '0001' },
|
|
12
|
+
address: { type: 'string', example: '서울 송파구 올림픽로 300' },
|
|
13
|
+
latitude: { type: 'number', format: 'float', example: 37.5132941 },
|
|
14
|
+
longitude: { type: 'number', format: 'float', example: 127.104215 },
|
|
15
|
+
distanceKm: { type: 'number', format: 'float', example: 0.5 },
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
LotteCinemaResolvedLocation: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
keyword: { type: 'string', nullable: true, example: '안산 중앙역' },
|
|
22
|
+
latitude: { type: 'number', format: 'float', nullable: true, example: 37.3172 },
|
|
23
|
+
longitude: { type: 'number', format: 'float', nullable: true, example: 126.839 },
|
|
24
|
+
geocodeUsed: { type: 'boolean', example: true },
|
|
25
|
+
formattedAddress: { type: 'string', nullable: true, example: '대한민국 경기도 안산시 단원구 고잔동 535' },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
LotteCinemaMovie: {
|
|
29
|
+
type: 'object',
|
|
30
|
+
properties: {
|
|
31
|
+
movieId: { type: 'string', example: '23816' },
|
|
32
|
+
movieName: { type: 'string', example: '왕과 사는 남자' },
|
|
33
|
+
rating: { type: 'string', example: '12세이상관람가' },
|
|
34
|
+
durationMinutes: { type: 'integer', example: 127 },
|
|
35
|
+
releaseDate: { type: 'string', example: '2026-03-10' },
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
LotteCinemaShowtime: {
|
|
39
|
+
type: 'object',
|
|
40
|
+
properties: {
|
|
41
|
+
scheduleId: { type: 'string', example: '20260310-1016-1201-1' },
|
|
42
|
+
theaterId: { type: 'string', example: '1016' },
|
|
43
|
+
theaterName: { type: 'string', example: '월드타워' },
|
|
44
|
+
movieId: { type: 'string', example: '23816' },
|
|
45
|
+
movieName: { type: 'string', example: '왕과 사는 남자' },
|
|
46
|
+
screenId: { type: 'string', example: '1201' },
|
|
47
|
+
screenName: { type: 'string', example: '1관 샤롯데' },
|
|
48
|
+
playDate: { type: 'string', example: '20260310' },
|
|
49
|
+
startTime: { type: 'string', example: '10:40' },
|
|
50
|
+
endTime: { type: 'string', example: '12:47' },
|
|
51
|
+
totalSeats: { type: 'integer', example: 32 },
|
|
52
|
+
bookedSeats: { type: 'integer', example: 28 },
|
|
53
|
+
remainingSeats: { type: 'integer', example: 4 },
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
LotteCinemaTheaterSearchResponse: {
|
|
57
|
+
type: 'object',
|
|
58
|
+
properties: {
|
|
59
|
+
success: { type: 'boolean', example: true },
|
|
60
|
+
data: {
|
|
61
|
+
type: 'object',
|
|
62
|
+
properties: {
|
|
63
|
+
keyword: { type: 'string', nullable: true },
|
|
64
|
+
latitude: { type: 'number', format: 'float', nullable: true },
|
|
65
|
+
longitude: { type: 'number', format: 'float', nullable: true },
|
|
66
|
+
geocodeUsed: { type: 'boolean' },
|
|
67
|
+
formattedAddress: { type: 'string', nullable: true },
|
|
68
|
+
playDate: { type: 'string' },
|
|
69
|
+
theaters: {
|
|
70
|
+
type: 'array',
|
|
71
|
+
items: { $ref: '#/components/schemas/LotteCinemaTheater' },
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
meta: {
|
|
76
|
+
type: 'object',
|
|
77
|
+
properties: {
|
|
78
|
+
total: { type: 'integer' },
|
|
79
|
+
pageSize: { type: 'integer' },
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
LotteCinemaMovieListResponse: {
|
|
85
|
+
type: 'object',
|
|
86
|
+
properties: {
|
|
87
|
+
success: { type: 'boolean', example: true },
|
|
88
|
+
data: {
|
|
89
|
+
type: 'object',
|
|
90
|
+
properties: {
|
|
91
|
+
playDate: { type: 'string' },
|
|
92
|
+
filters: {
|
|
93
|
+
type: 'object',
|
|
94
|
+
properties: {
|
|
95
|
+
theaterId: { type: 'string', nullable: true },
|
|
96
|
+
movieId: { type: 'string', nullable: true },
|
|
97
|
+
keyword: { type: 'string', nullable: true },
|
|
98
|
+
latitude: { type: 'number', format: 'float', nullable: true },
|
|
99
|
+
longitude: { type: 'number', format: 'float', nullable: true },
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
resolvedTheater: {
|
|
103
|
+
anyOf: [{ $ref: '#/components/schemas/LotteCinemaTheater' }, { type: 'null' }],
|
|
104
|
+
},
|
|
105
|
+
theaters: {
|
|
106
|
+
type: 'array',
|
|
107
|
+
items: { $ref: '#/components/schemas/LotteCinemaTheater' },
|
|
108
|
+
},
|
|
109
|
+
movies: {
|
|
110
|
+
type: 'array',
|
|
111
|
+
items: { $ref: '#/components/schemas/LotteCinemaMovie' },
|
|
112
|
+
},
|
|
113
|
+
showtimes: {
|
|
114
|
+
type: 'array',
|
|
115
|
+
items: { $ref: '#/components/schemas/LotteCinemaShowtime' },
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
meta: {
|
|
120
|
+
type: 'object',
|
|
121
|
+
properties: {
|
|
122
|
+
total: { type: 'integer' },
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
LotteCinemaSeatListResponse: {
|
|
128
|
+
type: 'object',
|
|
129
|
+
properties: {
|
|
130
|
+
success: { type: 'boolean', example: true },
|
|
131
|
+
data: {
|
|
132
|
+
type: 'object',
|
|
133
|
+
properties: {
|
|
134
|
+
playDate: { type: 'string' },
|
|
135
|
+
filters: {
|
|
136
|
+
type: 'object',
|
|
137
|
+
properties: {
|
|
138
|
+
theaterId: { type: 'string', nullable: true },
|
|
139
|
+
movieId: { type: 'string', nullable: true },
|
|
140
|
+
keyword: { type: 'string', nullable: true },
|
|
141
|
+
latitude: { type: 'number', format: 'float', nullable: true },
|
|
142
|
+
longitude: { type: 'number', format: 'float', nullable: true },
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
resolvedTheater: {
|
|
146
|
+
anyOf: [{ $ref: '#/components/schemas/LotteCinemaTheater' }, { type: 'null' }],
|
|
147
|
+
},
|
|
148
|
+
seats: {
|
|
149
|
+
type: 'array',
|
|
150
|
+
items: { $ref: '#/components/schemas/LotteCinemaShowtime' },
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
meta: {
|
|
155
|
+
type: 'object',
|
|
156
|
+
properties: {
|
|
157
|
+
total: { type: 'integer' },
|
|
158
|
+
pageSize: { type: 'integer' },
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI 컴포넌트 스키마 정의 (메가박스)
|
|
3
|
+
*/
|
|
4
|
+
export const OPENAPI_MEGABOX_COMPONENT_SCHEMAS = {
|
|
5
|
+
MegaboxTheater: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
theaterId: { type: 'string', example: '1372' },
|
|
9
|
+
theaterName: { type: 'string', example: '강남' },
|
|
10
|
+
address: { type: 'string', example: '서울특별시 강남구 강남대로 438' },
|
|
11
|
+
latitude: { type: 'number', format: 'float', example: 37.4982 },
|
|
12
|
+
longitude: { type: 'number', format: 'float', example: 127.0264 },
|
|
13
|
+
distanceKm: { type: 'number', format: 'float', example: 0.5 },
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
MegaboxShowtime: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
scheduleId: { type: 'string', example: '2603041372011' },
|
|
20
|
+
movieId: { type: 'string', example: '25104500' },
|
|
21
|
+
movieName: { type: 'string', example: '미키 17' },
|
|
22
|
+
theaterId: { type: 'string', example: '1372' },
|
|
23
|
+
theaterName: { type: 'string', example: '강남' },
|
|
24
|
+
playDate: { type: 'string', example: '20260304' },
|
|
25
|
+
startTime: { type: 'string', example: '09:30' },
|
|
26
|
+
endTime: { type: 'string', example: '11:20' },
|
|
27
|
+
totalSeats: { type: 'integer', example: 120 },
|
|
28
|
+
remainingSeats: { type: 'integer', example: 42 },
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
MegaboxTheaterSearchResponse: {
|
|
32
|
+
type: 'object',
|
|
33
|
+
properties: {
|
|
34
|
+
success: { type: 'boolean', example: true },
|
|
35
|
+
data: {
|
|
36
|
+
type: 'object',
|
|
37
|
+
properties: {
|
|
38
|
+
location: {
|
|
39
|
+
type: 'object',
|
|
40
|
+
properties: {
|
|
41
|
+
latitude: { type: 'number', format: 'float' },
|
|
42
|
+
longitude: { type: 'number', format: 'float' },
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
playDate: { type: 'string' },
|
|
46
|
+
areaCode: { type: 'string' },
|
|
47
|
+
theaters: {
|
|
48
|
+
type: 'array',
|
|
49
|
+
items: { $ref: '#/components/schemas/MegaboxTheater' },
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
meta: {
|
|
54
|
+
type: 'object',
|
|
55
|
+
properties: {
|
|
56
|
+
total: { type: 'integer' },
|
|
57
|
+
pageSize: { type: 'integer' },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
MegaboxMovieListResponse: {
|
|
63
|
+
type: 'object',
|
|
64
|
+
properties: {
|
|
65
|
+
success: { type: 'boolean', example: true },
|
|
66
|
+
data: {
|
|
67
|
+
type: 'object',
|
|
68
|
+
properties: {
|
|
69
|
+
playDate: { type: 'string' },
|
|
70
|
+
filters: {
|
|
71
|
+
type: 'object',
|
|
72
|
+
properties: {
|
|
73
|
+
theaterId: { type: 'string', nullable: true },
|
|
74
|
+
movieId: { type: 'string', nullable: true },
|
|
75
|
+
areaCode: { type: 'string' },
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
theaters: {
|
|
79
|
+
type: 'array',
|
|
80
|
+
items: {
|
|
81
|
+
type: 'object',
|
|
82
|
+
properties: {
|
|
83
|
+
theaterId: { type: 'string' },
|
|
84
|
+
theaterName: { type: 'string' },
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
movies: {
|
|
89
|
+
type: 'array',
|
|
90
|
+
items: {
|
|
91
|
+
type: 'object',
|
|
92
|
+
properties: {
|
|
93
|
+
movieId: { type: 'string' },
|
|
94
|
+
movieName: { type: 'string' },
|
|
95
|
+
movieStatus: { type: 'string' },
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
showtimes: {
|
|
100
|
+
type: 'array',
|
|
101
|
+
items: { $ref: '#/components/schemas/MegaboxShowtime' },
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
meta: {
|
|
106
|
+
type: 'object',
|
|
107
|
+
properties: {
|
|
108
|
+
total: { type: 'integer' },
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
MegaboxSeatListResponse: {
|
|
114
|
+
type: 'object',
|
|
115
|
+
properties: {
|
|
116
|
+
success: { type: 'boolean', example: true },
|
|
117
|
+
data: {
|
|
118
|
+
type: 'object',
|
|
119
|
+
properties: {
|
|
120
|
+
playDate: { type: 'string' },
|
|
121
|
+
filters: {
|
|
122
|
+
type: 'object',
|
|
123
|
+
properties: {
|
|
124
|
+
theaterId: { type: 'string', nullable: true },
|
|
125
|
+
movieId: { type: 'string', nullable: true },
|
|
126
|
+
areaCode: { type: 'string' },
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
seats: {
|
|
130
|
+
type: 'array',
|
|
131
|
+
items: { $ref: '#/components/schemas/MegaboxShowtime' },
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
meta: {
|
|
136
|
+
type: 'object',
|
|
137
|
+
properties: {
|
|
138
|
+
total: { type: 'integer' },
|
|
139
|
+
pageSize: { type: 'integer' },
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI 컴포넌트 스키마 정의 (세븐일레븐)
|
|
3
|
+
*/
|
|
4
|
+
export const OPENAPI_SEVENELEVEN_COMPONENT_SCHEMAS = {
|
|
5
|
+
SevenElevenProduct: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
itemCode: { type: 'string', example: '8801056252243' },
|
|
9
|
+
itemName: { type: 'string', example: '칠성)핫식스더킹퍼플500ml' },
|
|
10
|
+
salePrice: { type: 'integer', nullable: true, example: 3000 },
|
|
11
|
+
imageUrl: { type: 'string', nullable: true, example: '' },
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
SevenElevenStockError: {
|
|
15
|
+
type: 'object',
|
|
16
|
+
nullable: true,
|
|
17
|
+
properties: {
|
|
18
|
+
cause: { type: 'string', example: 'api' },
|
|
19
|
+
httpStatus: { type: 'integer', nullable: true, example: 400 },
|
|
20
|
+
code: { type: 'integer', nullable: true, example: 501 },
|
|
21
|
+
message: { type: 'string', example: 'RSA 복호화 실패' },
|
|
22
|
+
raw: { type: 'string', nullable: true },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
SevenElevenStoreInventory: {
|
|
26
|
+
type: 'object',
|
|
27
|
+
properties: {
|
|
28
|
+
storeCode: { type: 'string', example: '54928' },
|
|
29
|
+
storeName: { type: 'string', example: '안산중앙일번가점' },
|
|
30
|
+
address: { type: 'string', example: '경기 안산시 단원구 중앙대로 907 2동 2121호' },
|
|
31
|
+
latitude: { type: 'number', format: 'float', example: 37.317371500357 },
|
|
32
|
+
longitude: { type: 'number', format: 'float', example: 126.837004318586 },
|
|
33
|
+
stockQuantity: { type: 'integer', example: 14 },
|
|
34
|
+
isSoldOut: { type: 'boolean', example: false },
|
|
35
|
+
distanceM: { type: 'integer', nullable: true, example: 100 },
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
SevenElevenInventoryResponse: {
|
|
39
|
+
type: 'object',
|
|
40
|
+
properties: {
|
|
41
|
+
success: { type: 'boolean', example: true },
|
|
42
|
+
data: {
|
|
43
|
+
type: 'object',
|
|
44
|
+
properties: {
|
|
45
|
+
keyword: { type: 'string', example: '핫식스' },
|
|
46
|
+
storeKeyword: { type: 'string', example: '안산 중앙역' },
|
|
47
|
+
product: {
|
|
48
|
+
anyOf: [
|
|
49
|
+
{ $ref: '#/components/schemas/SevenElevenProduct' },
|
|
50
|
+
{ type: 'null' },
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
stockAvailable: { type: 'boolean', example: true },
|
|
54
|
+
stockError: { $ref: '#/components/schemas/SevenElevenStockError' },
|
|
55
|
+
note: {
|
|
56
|
+
type: 'string',
|
|
57
|
+
example: '실시간 재고 데이터가 포함되어 있습니다.',
|
|
58
|
+
},
|
|
59
|
+
inventory: {
|
|
60
|
+
type: 'object',
|
|
61
|
+
properties: {
|
|
62
|
+
totalStoreCount: { type: 'integer', example: 4 },
|
|
63
|
+
inStockStoreCount: { type: 'integer', example: 3 },
|
|
64
|
+
count: { type: 'integer', example: 4 },
|
|
65
|
+
stores: {
|
|
66
|
+
type: 'array',
|
|
67
|
+
items: { $ref: '#/components/schemas/SevenElevenStoreInventory' },
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
meta: {
|
|
74
|
+
type: 'object',
|
|
75
|
+
properties: {
|
|
76
|
+
total: { type: 'integer', example: 4 },
|
|
77
|
+
pageSize: { type: 'integer', example: 10 },
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
};
|
|
@@ -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,138 @@
|
|
|
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
|
+
responses: {
|
|
119
|
+
'200': {
|
|
120
|
+
description: '조회 성공',
|
|
121
|
+
content: {
|
|
122
|
+
'application/json': {
|
|
123
|
+
schema: { $ref: '#/components/schemas/CuInventoryResponse' },
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
'400': {
|
|
128
|
+
description: '잘못된 요청 (검색어 누락)',
|
|
129
|
+
content: {
|
|
130
|
+
'application/json': {
|
|
131
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' },
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
};
|