daiso 1.0.10 → 1.2.0
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 +77 -5
- package/dist/api/actionsProxy.js +3 -0
- package/dist/api/cgvHandlers.js +15 -3
- package/dist/api/configStatus.js +2 -1
- package/dist/api/dtryxHandlers.js +113 -0
- package/dist/api/emart24Handlers.js +6 -2
- package/dist/api/gs25Handlers.js +22 -19
- package/dist/api/handlers.js +13 -5
- package/dist/api/healthCheckDefinitions.js +46 -16
- package/dist/api/healthCheckShape.js +24 -8
- package/dist/api/healthChecks.js +39 -20
- package/dist/api/operationalAuth.js +32 -0
- package/dist/api/routes/dtryxRoutes.js +22 -0
- package/dist/api/routes/healthRoutes.js +19 -11
- package/dist/api/routes/rateLimitStatsRoutes.js +274 -0
- package/dist/api/routes/registerServiceRoutes.js +37 -0
- package/dist/api/sevenelevenHandlers.js +7 -3
- package/dist/cli/commandOptions.js +24 -0
- package/dist/cli/commands/cinema.js +27 -0
- package/dist/cli.js +7 -1
- package/dist/cliHelp.js +3 -337
- package/dist/cliHelpDefinitions.js +369 -0
- package/dist/cliInteractive.js +8 -5
- package/dist/core/errors.js +29 -2
- package/dist/core/registry.js +13 -15
- package/dist/durableObjects/dailyRateLimiter.js +185 -0
- package/dist/durableObjects/rateLimitMetricsStore.js +144 -0
- package/dist/index.js +18 -31
- package/dist/middleware/dailyRateLimit.js +176 -0
- package/dist/pages/openapiFullSpec.js +2 -0
- package/dist/pages/openapiSpecActionParameters.js +429 -0
- package/dist/pages/openapiSpecActions.js +1 -391
- package/dist/pages/openapiSpecComponentsLottecinema.js +2 -2
- package/dist/pages/openapiSpecPathsDtryx.js +148 -0
- package/dist/pages/openapiSpecPathsLotteMart.js +10 -2
- package/dist/pages/promptRetailCinemaText.js +9 -1
- package/dist/services/cgv/errors.js +13 -0
- package/dist/services/cgv/transport.js +5 -22
- package/dist/services/cu/client.js +44 -30
- package/dist/services/cu/index.js +13 -3
- package/dist/services/cu/tools/checkInventory.js +65 -45
- package/dist/services/cu/tools/findNearbyStores.js +4 -3
- package/dist/services/cu/upstreamError.js +11 -0
- package/dist/services/dtryx/api.js +25 -0
- package/dist/services/dtryx/client.js +133 -0
- package/dist/services/dtryx/index.js +24 -0
- package/dist/services/dtryx/location.js +216 -0
- package/dist/services/dtryx/tools/getRemainingSeats.js +117 -0
- package/dist/services/dtryx/tools/listCinemas.js +46 -0
- package/dist/services/dtryx/tools/listNowShowing.js +77 -0
- package/dist/services/dtryx/types.js +4 -0
- package/dist/services/dtryx/validation.js +21 -0
- package/dist/services/feedback/tools/submitDeveloperRequest.js +15 -1
- package/dist/services/gs25/api.js +2 -2
- package/dist/services/gs25/client.js +16 -123
- package/dist/services/gs25/errors.js +12 -0
- package/dist/services/gs25/index.js +2 -2
- package/dist/services/gs25/productSearch.js +2 -14
- package/dist/services/gs25/storeStockTransport.js +30 -0
- package/dist/services/gs25/tools/checkInventory.js +7 -2
- package/dist/services/gs25/tools/findNearbyStores.js +20 -5
- package/dist/services/lottecinema/client.js +4 -2
- package/dist/services/lottemart/config.js +1 -1
- package/dist/services/lottemart/session.js +33 -201
- package/dist/services/lottemart/socketTransport.js +149 -0
- package/dist/services/oliveyoung/client.js +7 -39
- package/dist/services/oliveyoung/index.js +4 -4
- package/dist/services/oliveyoung/tools/checkInventory.js +6 -3
- package/dist/services/oliveyoung/tools/findNearbyStores.js +4 -3
- package/dist/services/oliveyoung/tools/searchProducts.js +4 -3
- package/dist/services/oliveyoung/transport.js +46 -0
- package/dist/services/seveneleven/client.js +20 -9
- package/dist/services/seveneleven/index.js +11 -7
- package/dist/services/seveneleven/inventory.js +5 -2
- package/dist/services/seveneleven/productKeyword.js +3 -2
- package/dist/services/seveneleven/readCache.js +49 -0
- package/dist/services/seveneleven/tools/checkInventory.js +4 -3
- package/dist/services/seveneleven/tools/getCatalogSnapshot.js +4 -3
- package/dist/services/seveneleven/tools/getSearchPopwords.js +4 -3
- package/dist/services/seveneleven/tools/searchProducts.js +4 -3
- package/dist/services/seveneleven/tools/searchStores.js +4 -3
- package/dist/utils/format.js +10 -3
- package/dist/utils/http.js +40 -12
- package/dist/utils/zyte.js +4 -101
- package/dist/utils/zyteJsonFallback.js +28 -0
- package/openapi.json +51 -3
- package/openapi.yaml +36 -3
- package/package.json +28 -27
|
@@ -60,6 +60,30 @@ export const COMMAND_OPTION_ALLOWLISTS = {
|
|
|
60
60
|
'lng',
|
|
61
61
|
'limit',
|
|
62
62
|
],
|
|
63
|
+
'megabox-theaters': ['help', 'json', 'keyword', 'lat', 'lng', 'playDate', 'areaCode', 'limit'],
|
|
64
|
+
'megabox-movies': [
|
|
65
|
+
'help',
|
|
66
|
+
'json',
|
|
67
|
+
'keyword',
|
|
68
|
+
'playDate',
|
|
69
|
+
'theaterId',
|
|
70
|
+
'movieId',
|
|
71
|
+
'areaCode',
|
|
72
|
+
'lat',
|
|
73
|
+
'lng',
|
|
74
|
+
],
|
|
75
|
+
'megabox-seats': [
|
|
76
|
+
'help',
|
|
77
|
+
'json',
|
|
78
|
+
'keyword',
|
|
79
|
+
'playDate',
|
|
80
|
+
'theaterId',
|
|
81
|
+
'movieId',
|
|
82
|
+
'areaCode',
|
|
83
|
+
'lat',
|
|
84
|
+
'lng',
|
|
85
|
+
'limit',
|
|
86
|
+
],
|
|
63
87
|
'emart24-stores': [
|
|
64
88
|
'help',
|
|
65
89
|
'json',
|
|
@@ -36,6 +36,33 @@ export async function handleLottecinemaSeats(options, deps) {
|
|
|
36
36
|
configure: applyKeywordPositional,
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
+
export async function handleMegaboxTheaters(options, deps) {
|
|
40
|
+
return await runApiCommand({
|
|
41
|
+
command: 'megabox-theaters',
|
|
42
|
+
options,
|
|
43
|
+
deps,
|
|
44
|
+
path: '/api/megabox/theaters',
|
|
45
|
+
configure: applyKeywordPositional,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
export async function handleMegaboxMovies(options, deps) {
|
|
49
|
+
return await runApiCommand({
|
|
50
|
+
command: 'megabox-movies',
|
|
51
|
+
options,
|
|
52
|
+
deps,
|
|
53
|
+
path: '/api/megabox/movies',
|
|
54
|
+
configure: applyKeywordPositional,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
export async function handleMegaboxSeats(options, deps) {
|
|
58
|
+
return await runApiCommand({
|
|
59
|
+
command: 'megabox-seats',
|
|
60
|
+
options,
|
|
61
|
+
deps,
|
|
62
|
+
path: '/api/megabox/seats',
|
|
63
|
+
configure: applyKeywordPositional,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
39
66
|
export async function handleCgvTheaters(options, deps) {
|
|
40
67
|
return await runApiCommand({
|
|
41
68
|
command: 'cgv-theaters',
|
package/dist/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ import { parseCliArgs } from './cli/args.js';
|
|
|
13
13
|
import { validateCommandOptions } from './cli/commandOptions.js';
|
|
14
14
|
import { handleGet, handleProducts, handleProduct, handleStores, handleInventory, handleDisplayLocation, } from './cli/commands/daiso.js';
|
|
15
15
|
import { handleCuStores, handleCuInventory, handleEmart24Stores, handleEmart24Products, handleEmart24Inventory, handleLotteMartStores, handleLotteMartProducts, handleCompareProducts, handlePlaces, handleGs25Stores, handleGs25Products, handleGs25Inventory, handleSevenElevenProducts, handleSevenElevenStores, handleSevenElevenInventory, handleSevenElevenPopwords, handleSevenElevenCatalog, } from './cli/commands/convenience.js';
|
|
16
|
-
import { handleCgvTheaters, handleCgvMovies, handleCgvTimetable, handleLottecinemaTheaters, handleLottecinemaMovies, handleLottecinemaSeats, } from './cli/commands/cinema.js';
|
|
16
|
+
import { handleCgvTheaters, handleCgvMovies, handleCgvTimetable, handleLottecinemaTheaters, handleLottecinemaMovies, handleLottecinemaSeats, handleMegaboxTheaters, handleMegaboxMovies, handleMegaboxSeats, } from './cli/commands/cinema.js';
|
|
17
17
|
function rejectTopLevelUnknownOptions(options, command, deps) {
|
|
18
18
|
const parsed = parseCliArgs(options);
|
|
19
19
|
return validateCommandOptions(command, parsed.options, deps.writeErr);
|
|
@@ -133,6 +133,12 @@ export async function runCli(argv, deps) {
|
|
|
133
133
|
return await handleLottecinemaMovies(options, resolvedDeps);
|
|
134
134
|
if (command === 'lottecinema-seats')
|
|
135
135
|
return await handleLottecinemaSeats(options, resolvedDeps);
|
|
136
|
+
if (command === 'megabox-theaters')
|
|
137
|
+
return await handleMegaboxTheaters(options, resolvedDeps);
|
|
138
|
+
if (command === 'megabox-movies')
|
|
139
|
+
return await handleMegaboxMovies(options, resolvedDeps);
|
|
140
|
+
if (command === 'megabox-seats')
|
|
141
|
+
return await handleMegaboxSeats(options, resolvedDeps);
|
|
136
142
|
if (command === 'emart24-stores')
|
|
137
143
|
return await handleEmart24Stores(options, resolvedDeps);
|
|
138
144
|
if (command === 'emart24-products')
|
package/dist/cliHelp.js
CHANGED
|
@@ -1,342 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* CLI 도움말
|
|
2
|
+
* CLI 도움말 출력
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
'version',
|
|
7
|
-
'url',
|
|
8
|
-
'health',
|
|
9
|
-
'claude',
|
|
10
|
-
'get',
|
|
11
|
-
'products',
|
|
12
|
-
'product',
|
|
13
|
-
'stores',
|
|
14
|
-
'inventory',
|
|
15
|
-
'display-location',
|
|
16
|
-
'compare',
|
|
17
|
-
'places',
|
|
18
|
-
'cu-stores',
|
|
19
|
-
'cu-inventory',
|
|
20
|
-
'cgv-theaters',
|
|
21
|
-
'cgv-movies',
|
|
22
|
-
'cgv-timetable',
|
|
23
|
-
'lottecinema-theaters',
|
|
24
|
-
'lottecinema-movies',
|
|
25
|
-
'lottecinema-seats',
|
|
26
|
-
'lottemart-stores',
|
|
27
|
-
'lottemart-products',
|
|
28
|
-
'emart24-stores',
|
|
29
|
-
'emart24-products',
|
|
30
|
-
'emart24-inventory',
|
|
31
|
-
'gs25-stores',
|
|
32
|
-
'gs25-products',
|
|
33
|
-
'gs25-inventory',
|
|
34
|
-
'seveneleven-products',
|
|
35
|
-
'seveneleven-stores',
|
|
36
|
-
'seveneleven-inventory',
|
|
37
|
-
'seveneleven-popwords',
|
|
38
|
-
'seveneleven-catalog',
|
|
39
|
-
];
|
|
40
|
-
const COMMAND_SUMMARY = {
|
|
41
|
-
help: '도움말 출력',
|
|
42
|
-
version: 'CLI 버전 출력',
|
|
43
|
-
url: 'MCP 엔드포인트 URL 출력',
|
|
44
|
-
health: '원격 서버 상태 확인',
|
|
45
|
-
claude: 'Claude Code MCP 등록 명령 출력/실행',
|
|
46
|
-
get: '임의 API 경로 GET 호출',
|
|
47
|
-
products: '다이소 제품 검색',
|
|
48
|
-
product: '다이소 제품 상세 조회',
|
|
49
|
-
stores: '다이소 매장 검색',
|
|
50
|
-
inventory: '다이소 재고 조회',
|
|
51
|
-
'display-location': '다이소 진열 위치 조회',
|
|
52
|
-
compare: '키 없는 통합 상품 가격 후보 비교',
|
|
53
|
-
places: '음식점/카페 등 주변 장소 검색',
|
|
54
|
-
'cu-stores': 'CU 매장 검색',
|
|
55
|
-
'cu-inventory': 'CU 재고 조회',
|
|
56
|
-
'cgv-theaters': 'CGV 극장 검색',
|
|
57
|
-
'cgv-movies': 'CGV 영화 검색',
|
|
58
|
-
'cgv-timetable': 'CGV 시간표 조회',
|
|
59
|
-
'lottecinema-theaters': '롯데시네마 주변 지점 조회',
|
|
60
|
-
'lottecinema-movies': '롯데시네마 영화/회차 조회',
|
|
61
|
-
'lottecinema-seats': '롯데시네마 잔여 좌석 조회',
|
|
62
|
-
'lottemart-stores': '롯데마트 매장 검색',
|
|
63
|
-
'lottemart-products': '롯데마트 상품 검색',
|
|
64
|
-
'emart24-stores': '이마트24 매장 검색',
|
|
65
|
-
'emart24-products': '이마트24 상품 검색',
|
|
66
|
-
'emart24-inventory': '이마트24 재고 조회',
|
|
67
|
-
'gs25-stores': 'GS25 매장 검색',
|
|
68
|
-
'gs25-products': 'GS25 상품 검색',
|
|
69
|
-
'gs25-inventory': 'GS25 재고 조회',
|
|
70
|
-
'seveneleven-products': '세븐일레븐 상품 검색',
|
|
71
|
-
'seveneleven-stores': '세븐일레븐 매장 검색',
|
|
72
|
-
'seveneleven-inventory': '세븐일레븐 재고 조회',
|
|
73
|
-
'seveneleven-popwords': '세븐일레븐 인기 검색어 조회',
|
|
74
|
-
'seveneleven-catalog': '세븐일레븐 카탈로그 스냅샷 조회',
|
|
75
|
-
};
|
|
76
|
-
const COMMAND_DETAIL = {
|
|
77
|
-
help: [
|
|
78
|
-
'명령: help',
|
|
79
|
-
'설명: 전체 도움말 또는 특정 명령 상세 도움말을 출력합니다.',
|
|
80
|
-
'사용법: daiso help [command]',
|
|
81
|
-
'예시: daiso help products',
|
|
82
|
-
],
|
|
83
|
-
version: ['명령: version', '설명: 설치된 daiso CLI 버전을 출력합니다.', '사용법: daiso version'],
|
|
84
|
-
url: [
|
|
85
|
-
'명령: url',
|
|
86
|
-
'설명: MCP 엔드포인트 URL을 출력합니다.',
|
|
87
|
-
'사용법: daiso url',
|
|
88
|
-
'출력 예시: https://mcp.aka.page/mcp',
|
|
89
|
-
],
|
|
90
|
-
health: [
|
|
91
|
-
'명령: health',
|
|
92
|
-
'설명: 서버 /health API를 호출해 상태를 확인합니다.',
|
|
93
|
-
'사용법: daiso health',
|
|
94
|
-
'출력: status, endpoint, checkedAt(JSON)',
|
|
95
|
-
],
|
|
96
|
-
claude: [
|
|
97
|
-
'명령: claude',
|
|
98
|
-
'설명: Claude Code MCP 등록 명령을 출력하거나 실행합니다.',
|
|
99
|
-
'사용법: daiso claude [--exec]',
|
|
100
|
-
'옵션: --exec 실제 claude 명령 실행',
|
|
101
|
-
'예시: daiso claude --exec',
|
|
102
|
-
],
|
|
103
|
-
get: [
|
|
104
|
-
'명령: get',
|
|
105
|
-
'설명: 임의 API 경로를 GET으로 호출합니다.',
|
|
106
|
-
'사용법: daiso get <path|url> [--queryKey value ...] [--json]',
|
|
107
|
-
'필수: <path|url>',
|
|
108
|
-
'옵션: --json 원본 JSON 출력',
|
|
109
|
-
'예시: daiso get /api/cgv/movies --playDate 20260307 --theaterCode 0056',
|
|
110
|
-
],
|
|
111
|
-
products: [
|
|
112
|
-
'명령: products',
|
|
113
|
-
'설명: 다이소 제품 검색 API를 호출합니다.',
|
|
114
|
-
'사용법: daiso products <query> [--page N] [--pageSize N] [--json]',
|
|
115
|
-
'필수: <query>',
|
|
116
|
-
'옵션: --page, --pageSize, --json',
|
|
117
|
-
'예시: daiso products 수납박스 --page 1 --pageSize 30',
|
|
118
|
-
],
|
|
119
|
-
product: [
|
|
120
|
-
'명령: product',
|
|
121
|
-
'설명: 다이소 제품 상세 API를 호출합니다.',
|
|
122
|
-
'사용법: daiso product <productId> [--json]',
|
|
123
|
-
'필수: <productId>',
|
|
124
|
-
'옵션: --json',
|
|
125
|
-
'예시: daiso product 1034604',
|
|
126
|
-
],
|
|
127
|
-
stores: [
|
|
128
|
-
'명령: stores',
|
|
129
|
-
'설명: 다이소 매장 검색 API를 호출합니다.',
|
|
130
|
-
'사용법: daiso stores [keyword] [--sido 값] [--gugun 값] [--dong 값] [--limit N] [--json]',
|
|
131
|
-
'필수: keyword 또는 --sido',
|
|
132
|
-
'옵션: --keyword, --sido, --gugun, --dong, --limit, --json',
|
|
133
|
-
'예시: daiso stores 강남역',
|
|
134
|
-
'예시: daiso stores --sido 서울 --gugun 강남구',
|
|
135
|
-
],
|
|
136
|
-
inventory: [
|
|
137
|
-
'명령: inventory',
|
|
138
|
-
'설명: 다이소 재고 API를 호출합니다.',
|
|
139
|
-
'사용법: daiso inventory <productId> [--keyword 값] [--lat 값] [--lng 값] [--page N] [--pageSize N] [--json]',
|
|
140
|
-
'필수: <productId>',
|
|
141
|
-
'옵션: --keyword, --lat, --lng, --page, --pageSize, --json',
|
|
142
|
-
'예시: daiso inventory 1034604 --keyword 강남역',
|
|
143
|
-
],
|
|
144
|
-
'display-location': [
|
|
145
|
-
'명령: display-location',
|
|
146
|
-
'설명: 다이소 매장 내 상품 진열 위치 API를 호출합니다.',
|
|
147
|
-
'사용법: daiso display-location <productId> <storeCode> [--json]',
|
|
148
|
-
'필수: <productId>, <storeCode>',
|
|
149
|
-
'옵션: --json',
|
|
150
|
-
'예시: daiso display-location 1034604 04515',
|
|
151
|
-
],
|
|
152
|
-
compare: [
|
|
153
|
-
'명령: compare',
|
|
154
|
-
'설명: 새 외부 키 없이 다이소, GS25, 세븐일레븐, 이마트24 상품 검색을 묶어 가격 후보를 비교합니다.',
|
|
155
|
-
'사용법: daiso compare <keyword> [--services daiso,gs25,seveneleven,emart24] [--limit N] [--json]',
|
|
156
|
-
'필수: <keyword>',
|
|
157
|
-
'옵션: --services, --limit, --json',
|
|
158
|
-
'예시: daiso compare 콜라 --limit 3',
|
|
159
|
-
'예시: daiso compare 컵라면 --services seveneleven,emart24 --json',
|
|
160
|
-
],
|
|
161
|
-
places: [
|
|
162
|
-
'명령: places',
|
|
163
|
-
'설명: 네이버 지역 검색으로 음식점, 카페, 디저트 가게 등 주변 장소를 검색합니다.',
|
|
164
|
-
'사용법: daiso places <location> [--category cafe|restaurant|food|dessert|all] [--keyword 검색어] [--limit N] [--json]',
|
|
165
|
-
'필수: <location> 또는 --keyword',
|
|
166
|
-
'옵션: --category, --keyword, --limit, --start, --sort, --json',
|
|
167
|
-
'예시: daiso places 강남역 --category cafe --limit 5',
|
|
168
|
-
'예시: daiso places 성수동 --keyword 브런치 --limit 5',
|
|
169
|
-
],
|
|
170
|
-
'cu-stores': [
|
|
171
|
-
'명령: cu-stores',
|
|
172
|
-
'설명: CU 매장 검색 API를 호출합니다.',
|
|
173
|
-
'사용법: daiso cu-stores [keyword] [--lat 값] [--lng 값] [--limit N] [--json]',
|
|
174
|
-
'옵션: --keyword, --lat, --lng, --limit, --json',
|
|
175
|
-
'예시: daiso cu-stores 강남',
|
|
176
|
-
'예시: daiso cu-stores --lat 37.498 --lng 127.027 --limit 10',
|
|
177
|
-
],
|
|
178
|
-
'cu-inventory': [
|
|
179
|
-
'명령: cu-inventory',
|
|
180
|
-
'설명: CU 재고 검색 API를 호출합니다.',
|
|
181
|
-
'사용법: daiso cu-inventory <keyword> [--storeKeyword 값] [--lat 값] [--lng 값] [--size N] [--offset N] [--json]',
|
|
182
|
-
'필수: <keyword>',
|
|
183
|
-
'옵션: --storeKeyword, --lat, --lng, --size, --offset, --searchSort, --storeLimit, --json',
|
|
184
|
-
'예시: daiso cu-inventory 과자',
|
|
185
|
-
'예시: daiso cu-inventory 컵라면 --storeKeyword 강남 --size 10',
|
|
186
|
-
],
|
|
187
|
-
'cgv-theaters': [
|
|
188
|
-
'명령: cgv-theaters',
|
|
189
|
-
'설명: CGV 극장 검색 API를 호출합니다.',
|
|
190
|
-
'사용법: daiso cgv-theaters [keyword] [--regionCode 값] [--playDate YYYYMMDD] [--lat 값] [--lng 값] [--limit N] [--json]',
|
|
191
|
-
'옵션: --keyword, --regionCode, --playDate, --lat, --lng, --limit, --json',
|
|
192
|
-
'예시: daiso cgv-theaters 강남 --limit 5',
|
|
193
|
-
'예시: daiso cgv-theaters --regionCode 01 --playDate 20260304',
|
|
194
|
-
],
|
|
195
|
-
'cgv-movies': [
|
|
196
|
-
'명령: cgv-movies',
|
|
197
|
-
'설명: CGV 영화 검색 API를 호출합니다.',
|
|
198
|
-
'사용법: daiso cgv-movies [keyword] [--playDate YYYYMMDD] [--theaterCode 값] [--movieCode 값] [--lat 값] [--lng 값] [--json]',
|
|
199
|
-
'옵션: --keyword, --playDate, --theaterCode, --movieCode, --lat, --lng, --json',
|
|
200
|
-
'예시: daiso cgv-movies 강남 --playDate 20260304',
|
|
201
|
-
'예시: daiso cgv-movies --playDate 20260304 --theaterCode 0056',
|
|
202
|
-
],
|
|
203
|
-
'cgv-timetable': [
|
|
204
|
-
'명령: cgv-timetable',
|
|
205
|
-
'설명: CGV 시간표 API를 호출합니다.',
|
|
206
|
-
'사용법: daiso cgv-timetable [keyword] [--playDate YYYYMMDD] [--theaterCode 값] [--movieCode 값] [--lat 값] [--lng 값] [--json]',
|
|
207
|
-
'옵션: --keyword, --playDate, --theaterCode, --movieCode, --lat, --lng, --json',
|
|
208
|
-
'예시: daiso cgv-timetable 강남 --playDate 20260304',
|
|
209
|
-
'예시: daiso cgv-timetable --playDate 20260304 --theaterCode 0056',
|
|
210
|
-
],
|
|
211
|
-
'lottecinema-theaters': [
|
|
212
|
-
'명령: lottecinema-theaters',
|
|
213
|
-
'설명: 롯데시네마 주변 지점 API를 호출합니다.',
|
|
214
|
-
'사용법: daiso lottecinema-theaters [keyword] [--lat 값] [--lng 값] [--playDate YYYYMMDD] [--limit N] [--json]',
|
|
215
|
-
'옵션: --keyword, --lat, --lng, --playDate, --limit, --json',
|
|
216
|
-
'예시: daiso lottecinema-theaters 잠실 --limit 5',
|
|
217
|
-
'예시: daiso lottecinema-theaters --keyword "안산 중앙역" --limit 5',
|
|
218
|
-
],
|
|
219
|
-
'lottecinema-movies': [
|
|
220
|
-
'명령: lottecinema-movies',
|
|
221
|
-
'설명: 롯데시네마 영화/회차 API를 호출합니다.',
|
|
222
|
-
'사용법: daiso lottecinema-movies [keyword] [--playDate YYYYMMDD] [--theaterId 값] [--movieId 값] [--lat 값] [--lng 값] [--json]',
|
|
223
|
-
'옵션: --playDate, --theaterId, --movieId, --keyword, --lat, --lng, --json',
|
|
224
|
-
'예시: daiso lottecinema-movies 잠실 --playDate 20260310',
|
|
225
|
-
'예시: daiso lottecinema-movies --playDate 20260310 --keyword "안산 중앙역"',
|
|
226
|
-
],
|
|
227
|
-
'lottecinema-seats': [
|
|
228
|
-
'명령: lottecinema-seats',
|
|
229
|
-
'설명: 롯데시네마 잔여 좌석 API를 호출합니다.',
|
|
230
|
-
'사용법: daiso lottecinema-seats [keyword] [--playDate YYYYMMDD] [--theaterId 값] [--movieId 값] [--lat 값] [--lng 값] [--limit N] [--json]',
|
|
231
|
-
'옵션: --playDate, --theaterId, --movieId, --keyword, --lat, --lng, --limit, --json',
|
|
232
|
-
'예시: daiso lottecinema-seats 잠실 --playDate 20260310 --movieId 23816',
|
|
233
|
-
'예시: daiso lottecinema-seats --playDate 20260310 --keyword "안산 중앙역" --movieId 23816',
|
|
234
|
-
],
|
|
235
|
-
'lottemart-stores': [
|
|
236
|
-
'명령: lottemart-stores',
|
|
237
|
-
'설명: 롯데마트 계열 매장 검색 API를 호출합니다.',
|
|
238
|
-
'사용법: daiso lottemart-stores [keyword] [--area 값] [--brandVariant 값] [--lat 값] [--lng 값] [--limit N] [--json]',
|
|
239
|
-
'옵션: --keyword, --area, --brandVariant, --lat, --lng, --limit, --json',
|
|
240
|
-
'예시: daiso lottemart-stores 잠실 --area 서울',
|
|
241
|
-
'예시: daiso lottemart-stores --area 경기 --brandVariant lottemart --limit 10',
|
|
242
|
-
],
|
|
243
|
-
'lottemart-products': [
|
|
244
|
-
'명령: lottemart-products',
|
|
245
|
-
'설명: 롯데마트 매장 기준 상품 검색 API를 호출합니다.',
|
|
246
|
-
'사용법: daiso lottemart-products <keyword> [--storeCode 값 | --storeName 값] [--area 값] [--pageLimit N] [--json]',
|
|
247
|
-
'필수: <keyword>, --storeCode 또는 --storeName',
|
|
248
|
-
'옵션: --storeCode, --storeName, --area, --pageLimit, --json',
|
|
249
|
-
'예시: daiso lottemart-products 콜라 --storeName 강변점 --area 서울',
|
|
250
|
-
'예시: daiso lottemart-products 우유 --storeCode 2301 --pageLimit 2',
|
|
251
|
-
],
|
|
252
|
-
'emart24-stores': [
|
|
253
|
-
'명령: emart24-stores',
|
|
254
|
-
'설명: 이마트24 매장 검색 API를 호출합니다.',
|
|
255
|
-
'사용법: daiso emart24-stores [keyword] [--area1 값] [--area2 값] [--lat 값] [--lng 값] [--service24h true|false] [--limit N] [--json]',
|
|
256
|
-
'옵션: --keyword, --area1, --area2, --lat, --lng, --service24h, --limit, --json',
|
|
257
|
-
'예시: daiso emart24-stores 강남',
|
|
258
|
-
'예시: daiso emart24-stores --area1 서울특별시 --area2 강남구 --service24h true',
|
|
259
|
-
],
|
|
260
|
-
'emart24-products': [
|
|
261
|
-
'명령: emart24-products',
|
|
262
|
-
'설명: 이마트24 상품 검색 API를 호출합니다.',
|
|
263
|
-
'사용법: daiso emart24-products <keyword> [--page N] [--pageSize N] [--sortType 값] [--saleProductYn Y|N] [--json]',
|
|
264
|
-
'필수: <keyword>',
|
|
265
|
-
'옵션: --page, --pageSize, --sortType, --saleProductYn, --json',
|
|
266
|
-
'예시: daiso emart24-products 두바이',
|
|
267
|
-
'예시: daiso emart24-products 도시락 --page 2 --pageSize 20',
|
|
268
|
-
],
|
|
269
|
-
'emart24-inventory': [
|
|
270
|
-
'명령: emart24-inventory',
|
|
271
|
-
'설명: 이마트24 매장별 재고 API를 호출합니다.',
|
|
272
|
-
'사용법: daiso emart24-inventory <pluCd> --bizNoArr 코드1,코드2 [--json]',
|
|
273
|
-
'필수: <pluCd>, --bizNoArr',
|
|
274
|
-
'옵션: --bizNoArr, --json',
|
|
275
|
-
'예시: daiso emart24-inventory 8800244010504 --bizNoArr 28339,05015,23233',
|
|
276
|
-
],
|
|
277
|
-
'gs25-stores': [
|
|
278
|
-
'명령: gs25-stores',
|
|
279
|
-
'설명: GS25 매장 검색 API를 호출합니다.',
|
|
280
|
-
'사용법: daiso gs25-stores [keyword] [--lat 값] [--lng 값] [--limit N] [--json]',
|
|
281
|
-
'옵션: --keyword, --lat, --lng, --serviceCode, --limit, --json',
|
|
282
|
-
'예시: daiso gs25-stores 강남',
|
|
283
|
-
'예시: daiso gs25-stores --lat 37.4982 --lng 127.0276 --limit 10',
|
|
284
|
-
],
|
|
285
|
-
'gs25-products': [
|
|
286
|
-
'명령: gs25-products',
|
|
287
|
-
'설명: GS25 상품 키워드 검색 API를 호출합니다.',
|
|
288
|
-
'사용법: daiso gs25-products <keyword> [--limit N] [--json]',
|
|
289
|
-
'필수: <keyword>',
|
|
290
|
-
'옵션: --serviceCode, --limit, --json',
|
|
291
|
-
'예시: daiso gs25-products 오감자',
|
|
292
|
-
],
|
|
293
|
-
'gs25-inventory': [
|
|
294
|
-
'명령: gs25-inventory',
|
|
295
|
-
'설명: GS25 재고 검색 API를 호출합니다.',
|
|
296
|
-
'사용법: daiso gs25-inventory <keyword> [--storeKeyword 값] [--lat 값] [--lng 값] [--storeLimit N] [--json]',
|
|
297
|
-
'필수: <keyword>',
|
|
298
|
-
'옵션: --storeKeyword, --lat, --lng, --serviceCode, --storeLimit, --json',
|
|
299
|
-
'예시: daiso gs25-inventory 오감자 --storeKeyword 강남',
|
|
300
|
-
],
|
|
301
|
-
'seveneleven-products': [
|
|
302
|
-
'명령: seveneleven-products',
|
|
303
|
-
'설명: 세븐일레븐 상품 검색 API를 호출합니다.',
|
|
304
|
-
'사용법: daiso seveneleven-products <query> [--page N] [--size N] [--sort 값] [--json]',
|
|
305
|
-
'필수: <query>',
|
|
306
|
-
'옵션: --page, --size, --sort, --json',
|
|
307
|
-
'예시: daiso seveneleven-products 삼각김밥 --size 20',
|
|
308
|
-
],
|
|
309
|
-
'seveneleven-stores': [
|
|
310
|
-
'명령: seveneleven-stores',
|
|
311
|
-
'설명: 세븐일레븐 매장 검색 API를 호출합니다.',
|
|
312
|
-
'사용법: daiso seveneleven-stores <keyword> [--limit N] [--json]',
|
|
313
|
-
'필수: <keyword>',
|
|
314
|
-
'옵션: --limit, --json',
|
|
315
|
-
'예시: daiso seveneleven-stores 안산 중앙역 --limit 10',
|
|
316
|
-
],
|
|
317
|
-
'seveneleven-inventory': [
|
|
318
|
-
'명령: seveneleven-inventory',
|
|
319
|
-
'설명: 세븐일레븐 재고 API를 호출합니다.',
|
|
320
|
-
'사용법: daiso seveneleven-inventory <keyword> [--storeKeyword 값] [--storeLimit N] [--page N] [--size N] [--json]',
|
|
321
|
-
'필수: <keyword>',
|
|
322
|
-
'옵션: --keyword, --storeKeyword, --storeLimit, --page, --size, --json',
|
|
323
|
-
'예시: daiso seveneleven-inventory 핫식스 --storeKeyword "안산 중앙역" --storeLimit 10',
|
|
324
|
-
],
|
|
325
|
-
'seveneleven-popwords': [
|
|
326
|
-
'명령: seveneleven-popwords',
|
|
327
|
-
'설명: 세븐일레븐 인기 검색어 API를 호출합니다.',
|
|
328
|
-
'사용법: daiso seveneleven-popwords [--label 값] [--json]',
|
|
329
|
-
'옵션: --label, --json',
|
|
330
|
-
'예시: daiso seveneleven-popwords --label home',
|
|
331
|
-
],
|
|
332
|
-
'seveneleven-catalog': [
|
|
333
|
-
'명령: seveneleven-catalog',
|
|
334
|
-
'설명: 세븐일레븐 카탈로그 스냅샷 API를 호출합니다.',
|
|
335
|
-
'사용법: daiso seveneleven-catalog [--includeIssues true|false] [--includeExhibition true|false] [--limit N] [--json]',
|
|
336
|
-
'옵션: --includeIssues, --includeExhibition, --limit, --json',
|
|
337
|
-
'예시: daiso seveneleven-catalog --includeIssues true --includeExhibition true --limit 10',
|
|
338
|
-
],
|
|
339
|
-
};
|
|
4
|
+
import { COMMAND_DETAIL, COMMAND_LIST, COMMAND_SUMMARY, } from './cliHelpDefinitions.js';
|
|
5
|
+
export { COMMAND_LIST } from './cliHelpDefinitions.js';
|
|
340
6
|
export function printHelp(writeOut) {
|
|
341
7
|
writeOut('daiso CLI');
|
|
342
8
|
writeOut('');
|