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.
- package/README.md +249 -533
- package/dist/api/actionsProxy.js +82 -0
- package/dist/api/cgvHandlers.js +103 -16
- package/dist/api/configStatus.js +19 -0
- package/dist/api/daisoHandlers.js +127 -0
- package/dist/api/emart24Handlers.js +176 -0
- package/dist/api/gs25Handlers.js +267 -0
- package/dist/api/handlers.js +209 -104
- package/dist/api/healthChecks.js +504 -0
- package/dist/api/lottecinemaHandlers.js +155 -0
- package/dist/api/lottemartHandlers.js +144 -0
- package/dist/api/megaboxHandlers.js +81 -50
- package/dist/api/response.js +2 -0
- 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 +61 -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/bin.js +0 -0
- package/dist/cli/args.js +75 -0
- package/dist/cli/commandOptions.js +38 -0
- package/dist/cli/commands/convenience.js +293 -0
- package/dist/cli/commands/daiso.js +112 -0
- package/dist/cli/constants.js +5 -0
- package/dist/cli/deps.js +48 -0
- package/dist/cli/http.js +156 -0
- package/dist/cli/interactiveFetch.js +31 -0
- package/dist/cli/interactiveItemSearch.js +261 -0
- package/dist/cli/interactivePrompt.js +50 -0
- package/dist/cli/interactiveTypes.js +4 -0
- package/dist/cli/types.js +4 -0
- package/dist/cli.js +87 -196
- package/dist/cliHelp.js +212 -1
- package/dist/cliInteractive.js +243 -0
- package/dist/cliPicker.js +57 -0
- package/dist/cliRenderer.js +90 -3
- package/dist/core/errors.js +66 -0
- package/dist/core/registry.js +227 -3
- package/dist/index.js +149 -9
- 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 +145 -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 +149 -0
- package/dist/pages/openapiSpecPathsLottecinema.js +212 -0
- package/dist/pages/openapiSpecPathsMegabox.js +52 -3
- package/dist/pages/openapiSpecPathsOliveyoung.js +266 -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 +137 -0
- package/dist/pages/promptRetailCinemaText.js +274 -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 +67 -0
- package/dist/services/daiso/index.js +4 -0
- package/dist/services/daiso/product.js +17 -0
- package/dist/services/daiso/tools/checkInventory.js +80 -43
- package/dist/services/daiso/tools/findInventoryByName.js +222 -0
- 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 +182 -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 +73 -0
- package/dist/services/emart24/types.js +4 -0
- package/dist/services/gs25/api.js +9 -0
- package/dist/services/gs25/client.js +208 -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 +57 -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 +254 -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 +69 -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 +225 -13
- package/dist/services/oliveyoung/index.js +3 -1
- package/dist/services/oliveyoung/tools/checkInventory.js +21 -5
- package/dist/services/oliveyoung/tools/searchProducts.js +57 -0
- package/dist/services/seveneleven/api.js +15 -0
- package/dist/services/seveneleven/client.js +286 -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 +67 -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 +98 -12
- package/dist/utils/zyte.js +47 -26
- package/openapi.json +1979 -736
- package/openapi.yaml +1428 -541
- package/package.json +49 -18
- 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,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI 컴포넌트 스키마 정의 (GS25)
|
|
3
|
+
*/
|
|
4
|
+
export const OPENAPI_GS25_COMPONENT_SCHEMAS = {
|
|
5
|
+
Gs25Store: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
storeCode: { type: 'string', example: 'VE463' },
|
|
9
|
+
storeName: { type: 'string', example: '강남역점' },
|
|
10
|
+
address: { type: 'string', example: '서울특별시 강남구 강남대로 396' },
|
|
11
|
+
phone: { type: 'string', example: '02-1234-5678' },
|
|
12
|
+
latitude: { type: 'number', format: 'float', example: 37.4982 },
|
|
13
|
+
longitude: { type: 'number', format: 'float', example: 127.0276 },
|
|
14
|
+
realStockQuantity: { type: 'integer', example: 3 },
|
|
15
|
+
distanceM: { type: 'number', nullable: true, example: 120 },
|
|
16
|
+
propertyNames: {
|
|
17
|
+
type: 'array',
|
|
18
|
+
items: { type: 'string' },
|
|
19
|
+
example: ['반값택배픽업', '와인25플러스'],
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
Gs25ProductCandidate: {
|
|
24
|
+
type: 'object',
|
|
25
|
+
properties: {
|
|
26
|
+
name: { type: 'string', example: '오리온)오감자50G' },
|
|
27
|
+
sellPrice: { type: 'integer', nullable: true, example: 1700 },
|
|
28
|
+
matchedStoreCount: { type: 'integer', example: 120 },
|
|
29
|
+
inStockStoreCount: { type: 'integer', example: 42 },
|
|
30
|
+
totalStockQuantity: { type: 'integer', example: 110 },
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
Gs25StoreSearchResponse: {
|
|
34
|
+
type: 'object',
|
|
35
|
+
properties: {
|
|
36
|
+
success: { type: 'boolean', example: true },
|
|
37
|
+
data: {
|
|
38
|
+
type: 'object',
|
|
39
|
+
properties: {
|
|
40
|
+
stores: {
|
|
41
|
+
type: 'array',
|
|
42
|
+
items: { $ref: '#/components/schemas/Gs25Store' },
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
meta: {
|
|
47
|
+
type: 'object',
|
|
48
|
+
properties: {
|
|
49
|
+
total: { type: 'integer' },
|
|
50
|
+
pageSize: { type: 'integer' },
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
Gs25ProductSearchResponse: {
|
|
56
|
+
type: 'object',
|
|
57
|
+
properties: {
|
|
58
|
+
success: { type: 'boolean', example: true },
|
|
59
|
+
data: {
|
|
60
|
+
type: 'object',
|
|
61
|
+
properties: {
|
|
62
|
+
products: {
|
|
63
|
+
type: 'array',
|
|
64
|
+
items: { $ref: '#/components/schemas/Gs25ProductCandidate' },
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
meta: {
|
|
69
|
+
type: 'object',
|
|
70
|
+
properties: {
|
|
71
|
+
total: { type: 'integer' },
|
|
72
|
+
pageSize: { type: 'integer' },
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
Gs25InventoryResponse: {
|
|
78
|
+
type: 'object',
|
|
79
|
+
properties: {
|
|
80
|
+
success: { type: 'boolean', example: true },
|
|
81
|
+
data: {
|
|
82
|
+
type: 'object',
|
|
83
|
+
properties: {
|
|
84
|
+
keyword: { type: 'string', example: '오감자' },
|
|
85
|
+
product: {
|
|
86
|
+
type: 'object',
|
|
87
|
+
properties: {
|
|
88
|
+
name: { type: 'string', nullable: true, example: '오리온)오감자50G' },
|
|
89
|
+
sellPrice: { type: 'integer', nullable: true, example: 1700 },
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
inventory: {
|
|
93
|
+
type: 'object',
|
|
94
|
+
properties: {
|
|
95
|
+
totalStoreCount: { type: 'integer', example: 17684 },
|
|
96
|
+
matchedStoreCount: { type: 'integer', example: 100 },
|
|
97
|
+
inStockStoreCount: { type: 'integer', example: 35 },
|
|
98
|
+
totalStockQuantity: { type: 'integer', example: 90 },
|
|
99
|
+
stores: {
|
|
100
|
+
type: 'array',
|
|
101
|
+
items: { $ref: '#/components/schemas/Gs25Store' },
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI 컴포넌트 스키마 정의 (롯데마트)
|
|
3
|
+
*/
|
|
4
|
+
export const OPENAPI_LOTTEMART_COMPONENT_SCHEMAS = {
|
|
5
|
+
LotteMartStore: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
area: { type: 'string', example: '서울' },
|
|
9
|
+
storeCode: { type: 'string', example: '2301' },
|
|
10
|
+
storeName: { type: 'string', example: '강변점' },
|
|
11
|
+
brandVariant: { type: 'string', example: 'lottemart' },
|
|
12
|
+
address: { type: 'string', example: '서울 광진구 광나루로 56길 85 테크노마트 B2' },
|
|
13
|
+
phone: { type: 'string', example: '02-3424-2502' },
|
|
14
|
+
openTime: { type: 'string', example: '10:00~23:00' },
|
|
15
|
+
closedDays: { type: 'string', example: '03/08(일), 03/22(일)' },
|
|
16
|
+
parkingType: { type: 'string', example: '유료' },
|
|
17
|
+
parkingDetails: { type: 'string', example: '최초 무료주차 : 1시간' },
|
|
18
|
+
detailUrl: { type: 'string', example: '/mobiledowa/market/detail_shop.asp?werks=2301' },
|
|
19
|
+
latitude: { type: 'number', format: 'float', example: 37.5354 },
|
|
20
|
+
longitude: { type: 'number', format: 'float', example: 127.0958 },
|
|
21
|
+
distanceM: { type: 'number', nullable: true, example: 530 },
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
LotteMartProduct: {
|
|
25
|
+
type: 'object',
|
|
26
|
+
properties: {
|
|
27
|
+
area: { type: 'string', example: '서울' },
|
|
28
|
+
storeCode: { type: 'string', example: '2301' },
|
|
29
|
+
storeName: { type: 'string', example: '강변점' },
|
|
30
|
+
keyword: { type: 'string', example: '콜라' },
|
|
31
|
+
productName: { type: 'string', example: '코카콜라' },
|
|
32
|
+
barcode: { type: 'string', example: '8801094011307' },
|
|
33
|
+
spec: { type: 'string', example: '1.2L' },
|
|
34
|
+
manufacturer: { type: 'string', example: '코카콜라음료 주식회사' },
|
|
35
|
+
price: { type: 'integer', example: 2980 },
|
|
36
|
+
stockQuantity: { type: 'integer', example: 20 },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
LotteMartStoreSearchResponse: {
|
|
40
|
+
type: 'object',
|
|
41
|
+
properties: {
|
|
42
|
+
success: { type: 'boolean', example: true },
|
|
43
|
+
data: {
|
|
44
|
+
type: 'object',
|
|
45
|
+
properties: {
|
|
46
|
+
stores: {
|
|
47
|
+
type: 'array',
|
|
48
|
+
items: { $ref: '#/components/schemas/LotteMartStore' },
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
meta: {
|
|
53
|
+
type: 'object',
|
|
54
|
+
properties: {
|
|
55
|
+
total: { type: 'integer' },
|
|
56
|
+
page: { type: 'integer' },
|
|
57
|
+
pageSize: { type: 'integer' },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
LotteMartProductSearchResponse: {
|
|
63
|
+
type: 'object',
|
|
64
|
+
properties: {
|
|
65
|
+
success: { type: 'boolean', example: true },
|
|
66
|
+
data: {
|
|
67
|
+
type: 'object',
|
|
68
|
+
properties: {
|
|
69
|
+
products: {
|
|
70
|
+
type: 'array',
|
|
71
|
+
items: { $ref: '#/components/schemas/LotteMartProduct' },
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
meta: {
|
|
76
|
+
type: 'object',
|
|
77
|
+
properties: {
|
|
78
|
+
total: { type: 'integer' },
|
|
79
|
+
page: { type: 'integer' },
|
|
80
|
+
pageSize: { type: 'integer' },
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
};
|
|
@@ -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
|
+
};
|