chowbea-axios 1.0.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/LICENSE +22 -0
- package/README.md +162 -0
- package/bin/dev.js +13 -0
- package/bin/run.js +10 -0
- package/dist/commands/diff.d.ts +31 -0
- package/dist/commands/diff.d.ts.map +1 -0
- package/dist/commands/diff.js +215 -0
- package/dist/commands/diff.js.map +1 -0
- package/dist/commands/fetch.d.ts +28 -0
- package/dist/commands/fetch.d.ts.map +1 -0
- package/dist/commands/fetch.js +223 -0
- package/dist/commands/fetch.js.map +1 -0
- package/dist/commands/generate.d.ts +26 -0
- package/dist/commands/generate.d.ts.map +1 -0
- package/dist/commands/generate.js +187 -0
- package/dist/commands/generate.js.map +1 -0
- package/dist/commands/init.d.ts +92 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +738 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/status.d.ts +38 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +233 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/validate.d.ts +27 -0
- package/dist/commands/validate.d.ts.map +1 -0
- package/dist/commands/validate.js +209 -0
- package/dist/commands/validate.js.map +1 -0
- package/dist/commands/watch.d.ts +34 -0
- package/dist/commands/watch.d.ts.map +1 -0
- package/dist/commands/watch.js +202 -0
- package/dist/commands/watch.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/config.d.ts +151 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +336 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/errors.d.ts +77 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +144 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/fetcher.d.ts +115 -0
- package/dist/lib/fetcher.d.ts.map +1 -0
- package/dist/lib/fetcher.js +237 -0
- package/dist/lib/fetcher.js.map +1 -0
- package/dist/lib/generator.d.ts +96 -0
- package/dist/lib/generator.d.ts.map +1 -0
- package/dist/lib/generator.js +1575 -0
- package/dist/lib/generator.js.map +1 -0
- package/dist/lib/logger.d.ts +63 -0
- package/dist/lib/logger.d.ts.map +1 -0
- package/dist/lib/logger.js +183 -0
- package/dist/lib/logger.js.map +1 -0
- package/oclif.manifest.json +556 -0
- package/package.json +68 -0
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"diff": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Preview API changes before regenerating.\n\nCompares your cached spec with the remote (or a local file) and shows:\n- New endpoints added\n- Endpoints removed\n- Endpoints modified\n\nUseful to see what changed before running fetch.",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"command": "<%= config.bin %> diff",
|
|
10
|
+
"description": "Compare cached spec with remote endpoint"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"command": "<%= config.bin %> diff --spec ./new-openapi.json",
|
|
14
|
+
"description": "Compare cached spec with local file"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"flags": {
|
|
18
|
+
"config": {
|
|
19
|
+
"char": "c",
|
|
20
|
+
"description": "Path to api.config.toml",
|
|
21
|
+
"name": "config",
|
|
22
|
+
"hasDynamicHelp": false,
|
|
23
|
+
"multiple": false,
|
|
24
|
+
"type": "option"
|
|
25
|
+
},
|
|
26
|
+
"spec": {
|
|
27
|
+
"char": "s",
|
|
28
|
+
"description": "Path to new OpenAPI spec file to compare against",
|
|
29
|
+
"name": "spec",
|
|
30
|
+
"hasDynamicHelp": false,
|
|
31
|
+
"multiple": false,
|
|
32
|
+
"type": "option"
|
|
33
|
+
},
|
|
34
|
+
"quiet": {
|
|
35
|
+
"char": "q",
|
|
36
|
+
"description": "Suppress non-error output",
|
|
37
|
+
"name": "quiet",
|
|
38
|
+
"allowNo": false,
|
|
39
|
+
"type": "boolean"
|
|
40
|
+
},
|
|
41
|
+
"verbose": {
|
|
42
|
+
"char": "v",
|
|
43
|
+
"description": "Show detailed output",
|
|
44
|
+
"name": "verbose",
|
|
45
|
+
"allowNo": false,
|
|
46
|
+
"type": "boolean"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"hasDynamicHelp": false,
|
|
50
|
+
"hiddenAliases": [],
|
|
51
|
+
"id": "diff",
|
|
52
|
+
"pluginAlias": "chowbea-axios",
|
|
53
|
+
"pluginName": "chowbea-axios",
|
|
54
|
+
"pluginType": "core",
|
|
55
|
+
"strict": true,
|
|
56
|
+
"enableJsonFlag": false,
|
|
57
|
+
"isESM": true,
|
|
58
|
+
"relativePath": [
|
|
59
|
+
"dist",
|
|
60
|
+
"commands",
|
|
61
|
+
"diff.js"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"fetch": {
|
|
65
|
+
"aliases": [],
|
|
66
|
+
"args": {},
|
|
67
|
+
"description": "Fetch OpenAPI spec and generate TypeScript types + operations.\n\nDownloads the spec from your configured endpoint (or local file),\ncaches it, and generates api.types.ts and api.operations.ts.\n\nSkips regeneration if spec hasn't changed (use --force to override).\nFalls back to cached spec on network failure.",
|
|
68
|
+
"examples": [
|
|
69
|
+
{
|
|
70
|
+
"command": "<%= config.bin %> fetch",
|
|
71
|
+
"description": "Fetch from configured endpoint, generate if changed"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"command": "<%= config.bin %> fetch --force",
|
|
75
|
+
"description": "Force regeneration even if spec unchanged"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"command": "<%= config.bin %> fetch --spec-file ./openapi.json",
|
|
79
|
+
"description": "Use local spec file instead of remote"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"command": "<%= config.bin %> fetch --dry-run",
|
|
83
|
+
"description": "Preview what would be generated"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"command": "<%= config.bin %> fetch --types-only",
|
|
87
|
+
"description": "Generate only TypeScript types"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"flags": {
|
|
91
|
+
"config": {
|
|
92
|
+
"char": "c",
|
|
93
|
+
"description": "Path to api.config.toml",
|
|
94
|
+
"name": "config",
|
|
95
|
+
"hasDynamicHelp": false,
|
|
96
|
+
"multiple": false,
|
|
97
|
+
"type": "option"
|
|
98
|
+
},
|
|
99
|
+
"endpoint": {
|
|
100
|
+
"char": "e",
|
|
101
|
+
"description": "Override API endpoint URL",
|
|
102
|
+
"name": "endpoint",
|
|
103
|
+
"hasDynamicHelp": false,
|
|
104
|
+
"multiple": false,
|
|
105
|
+
"type": "option"
|
|
106
|
+
},
|
|
107
|
+
"spec-file": {
|
|
108
|
+
"char": "s",
|
|
109
|
+
"description": "Use local spec file instead of fetching from remote",
|
|
110
|
+
"name": "spec-file",
|
|
111
|
+
"hasDynamicHelp": false,
|
|
112
|
+
"multiple": false,
|
|
113
|
+
"type": "option"
|
|
114
|
+
},
|
|
115
|
+
"force": {
|
|
116
|
+
"char": "f",
|
|
117
|
+
"description": "Force regeneration even if spec hasn't changed",
|
|
118
|
+
"name": "force",
|
|
119
|
+
"allowNo": false,
|
|
120
|
+
"type": "boolean"
|
|
121
|
+
},
|
|
122
|
+
"dry-run": {
|
|
123
|
+
"char": "n",
|
|
124
|
+
"description": "Show what would be generated without writing files",
|
|
125
|
+
"name": "dry-run",
|
|
126
|
+
"allowNo": false,
|
|
127
|
+
"type": "boolean"
|
|
128
|
+
},
|
|
129
|
+
"types-only": {
|
|
130
|
+
"description": "Generate only TypeScript types (skip operations)",
|
|
131
|
+
"name": "types-only",
|
|
132
|
+
"allowNo": false,
|
|
133
|
+
"type": "boolean"
|
|
134
|
+
},
|
|
135
|
+
"operations-only": {
|
|
136
|
+
"description": "Generate only operations (skip types)",
|
|
137
|
+
"name": "operations-only",
|
|
138
|
+
"allowNo": false,
|
|
139
|
+
"type": "boolean"
|
|
140
|
+
},
|
|
141
|
+
"quiet": {
|
|
142
|
+
"char": "q",
|
|
143
|
+
"description": "Suppress non-error output",
|
|
144
|
+
"name": "quiet",
|
|
145
|
+
"allowNo": false,
|
|
146
|
+
"type": "boolean"
|
|
147
|
+
},
|
|
148
|
+
"verbose": {
|
|
149
|
+
"char": "v",
|
|
150
|
+
"description": "Show detailed output",
|
|
151
|
+
"name": "verbose",
|
|
152
|
+
"allowNo": false,
|
|
153
|
+
"type": "boolean"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"hasDynamicHelp": false,
|
|
157
|
+
"hiddenAliases": [],
|
|
158
|
+
"id": "fetch",
|
|
159
|
+
"pluginAlias": "chowbea-axios",
|
|
160
|
+
"pluginName": "chowbea-axios",
|
|
161
|
+
"pluginType": "core",
|
|
162
|
+
"strict": true,
|
|
163
|
+
"enableJsonFlag": false,
|
|
164
|
+
"isESM": true,
|
|
165
|
+
"relativePath": [
|
|
166
|
+
"dist",
|
|
167
|
+
"commands",
|
|
168
|
+
"fetch.js"
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
"generate": {
|
|
172
|
+
"aliases": [],
|
|
173
|
+
"args": {},
|
|
174
|
+
"description": "Generate TypeScript types and operations from cached spec.\n\nUses the locally cached openapi.json (from a previous fetch).\nRun 'fetch' first if you don't have a cached spec.\n\nGenerates:\n- api.types.ts - TypeScript types from OpenAPI schemas\n- api.operations.ts - Typed operation functions",
|
|
175
|
+
"examples": [
|
|
176
|
+
{
|
|
177
|
+
"command": "<%= config.bin %> generate",
|
|
178
|
+
"description": "Regenerate from cached spec"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"command": "<%= config.bin %> generate --dry-run",
|
|
182
|
+
"description": "Preview what would be generated"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"command": "<%= config.bin %> generate --types-only",
|
|
186
|
+
"description": "Generate only api.types.ts"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"command": "<%= config.bin %> generate --operations-only",
|
|
190
|
+
"description": "Generate only api.operations.ts"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"command": "<%= config.bin %> generate --spec-file ./openapi.json",
|
|
194
|
+
"description": "Generate from specific local file"
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"flags": {
|
|
198
|
+
"config": {
|
|
199
|
+
"char": "c",
|
|
200
|
+
"description": "Path to api.config.toml",
|
|
201
|
+
"name": "config",
|
|
202
|
+
"hasDynamicHelp": false,
|
|
203
|
+
"multiple": false,
|
|
204
|
+
"type": "option"
|
|
205
|
+
},
|
|
206
|
+
"spec-file": {
|
|
207
|
+
"char": "s",
|
|
208
|
+
"description": "Use local spec file (copies to cache before generating)",
|
|
209
|
+
"name": "spec-file",
|
|
210
|
+
"hasDynamicHelp": false,
|
|
211
|
+
"multiple": false,
|
|
212
|
+
"type": "option"
|
|
213
|
+
},
|
|
214
|
+
"dry-run": {
|
|
215
|
+
"char": "n",
|
|
216
|
+
"description": "Show what would be generated without writing files",
|
|
217
|
+
"name": "dry-run",
|
|
218
|
+
"allowNo": false,
|
|
219
|
+
"type": "boolean"
|
|
220
|
+
},
|
|
221
|
+
"types-only": {
|
|
222
|
+
"description": "Generate only TypeScript types (skip operations)",
|
|
223
|
+
"name": "types-only",
|
|
224
|
+
"allowNo": false,
|
|
225
|
+
"type": "boolean"
|
|
226
|
+
},
|
|
227
|
+
"operations-only": {
|
|
228
|
+
"description": "Generate only operations (skip types)",
|
|
229
|
+
"name": "operations-only",
|
|
230
|
+
"allowNo": false,
|
|
231
|
+
"type": "boolean"
|
|
232
|
+
},
|
|
233
|
+
"quiet": {
|
|
234
|
+
"char": "q",
|
|
235
|
+
"description": "Suppress non-error output",
|
|
236
|
+
"name": "quiet",
|
|
237
|
+
"allowNo": false,
|
|
238
|
+
"type": "boolean"
|
|
239
|
+
},
|
|
240
|
+
"verbose": {
|
|
241
|
+
"char": "v",
|
|
242
|
+
"description": "Show detailed output",
|
|
243
|
+
"name": "verbose",
|
|
244
|
+
"allowNo": false,
|
|
245
|
+
"type": "boolean"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"hasDynamicHelp": false,
|
|
249
|
+
"hiddenAliases": [],
|
|
250
|
+
"id": "generate",
|
|
251
|
+
"pluginAlias": "chowbea-axios",
|
|
252
|
+
"pluginName": "chowbea-axios",
|
|
253
|
+
"pluginType": "core",
|
|
254
|
+
"strict": true,
|
|
255
|
+
"enableJsonFlag": false,
|
|
256
|
+
"isESM": true,
|
|
257
|
+
"relativePath": [
|
|
258
|
+
"dist",
|
|
259
|
+
"commands",
|
|
260
|
+
"generate.js"
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
"init": {
|
|
264
|
+
"aliases": [],
|
|
265
|
+
"args": {},
|
|
266
|
+
"description": "Full project setup - one command to get started.\n\nPrompts for your API endpoint, then automatically:\n- Creates api.config.toml with your settings\n- Sets up pnpm workspace for the CLI\n- Adds npm scripts (api:fetch, api:generate, etc.)\n- Installs openapi-typescript dependency\n- Builds the CLI\n- Generates client files (api.instance.ts, api.client.ts, etc.)\n- Fetches spec and generates types (if not localhost)\n\nDetects existing setup and asks before overwriting.",
|
|
267
|
+
"examples": [
|
|
268
|
+
{
|
|
269
|
+
"command": "<%= config.bin %> init",
|
|
270
|
+
"description": "Interactive setup - prompts for endpoint, does everything"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"command": "<%= config.bin %> init --force",
|
|
274
|
+
"description": "Skip confirmations, overwrite existing files"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"command": "<%= config.bin %> init --skip-client",
|
|
278
|
+
"description": "Setup without generating client files"
|
|
279
|
+
}
|
|
280
|
+
],
|
|
281
|
+
"flags": {
|
|
282
|
+
"force": {
|
|
283
|
+
"char": "f",
|
|
284
|
+
"description": "Skip all confirmations and overwrite everything",
|
|
285
|
+
"name": "force",
|
|
286
|
+
"allowNo": false,
|
|
287
|
+
"type": "boolean"
|
|
288
|
+
},
|
|
289
|
+
"skip-scripts": {
|
|
290
|
+
"description": "Skip adding npm scripts to package.json",
|
|
291
|
+
"name": "skip-scripts",
|
|
292
|
+
"allowNo": false,
|
|
293
|
+
"type": "boolean"
|
|
294
|
+
},
|
|
295
|
+
"skip-workspace": {
|
|
296
|
+
"description": "Skip creating/updating pnpm-workspace.yaml",
|
|
297
|
+
"name": "skip-workspace",
|
|
298
|
+
"allowNo": false,
|
|
299
|
+
"type": "boolean"
|
|
300
|
+
},
|
|
301
|
+
"skip-client": {
|
|
302
|
+
"description": "Skip generating client files (api.instance.ts, api.error.ts, api.client.ts)",
|
|
303
|
+
"name": "skip-client",
|
|
304
|
+
"allowNo": false,
|
|
305
|
+
"type": "boolean"
|
|
306
|
+
},
|
|
307
|
+
"skip-concurrent": {
|
|
308
|
+
"description": "Skip setting up concurrent dev script",
|
|
309
|
+
"name": "skip-concurrent",
|
|
310
|
+
"allowNo": false,
|
|
311
|
+
"type": "boolean"
|
|
312
|
+
},
|
|
313
|
+
"base-url-env": {
|
|
314
|
+
"description": "Environment variable name for base URL",
|
|
315
|
+
"name": "base-url-env",
|
|
316
|
+
"default": "VITE_API_URL",
|
|
317
|
+
"hasDynamicHelp": false,
|
|
318
|
+
"multiple": false,
|
|
319
|
+
"type": "option"
|
|
320
|
+
},
|
|
321
|
+
"token-key": {
|
|
322
|
+
"description": "localStorage key for auth token",
|
|
323
|
+
"name": "token-key",
|
|
324
|
+
"default": "auth-token",
|
|
325
|
+
"hasDynamicHelp": false,
|
|
326
|
+
"multiple": false,
|
|
327
|
+
"type": "option"
|
|
328
|
+
},
|
|
329
|
+
"with-credentials": {
|
|
330
|
+
"description": "Include credentials (cookies) in requests",
|
|
331
|
+
"name": "with-credentials",
|
|
332
|
+
"allowNo": true,
|
|
333
|
+
"type": "boolean"
|
|
334
|
+
},
|
|
335
|
+
"timeout": {
|
|
336
|
+
"description": "Request timeout in milliseconds",
|
|
337
|
+
"name": "timeout",
|
|
338
|
+
"default": 30000,
|
|
339
|
+
"hasDynamicHelp": false,
|
|
340
|
+
"multiple": false,
|
|
341
|
+
"type": "option"
|
|
342
|
+
},
|
|
343
|
+
"quiet": {
|
|
344
|
+
"char": "q",
|
|
345
|
+
"description": "Suppress non-error output",
|
|
346
|
+
"name": "quiet",
|
|
347
|
+
"allowNo": false,
|
|
348
|
+
"type": "boolean"
|
|
349
|
+
},
|
|
350
|
+
"verbose": {
|
|
351
|
+
"char": "v",
|
|
352
|
+
"description": "Show detailed output",
|
|
353
|
+
"name": "verbose",
|
|
354
|
+
"allowNo": false,
|
|
355
|
+
"type": "boolean"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"hasDynamicHelp": false,
|
|
359
|
+
"hiddenAliases": [],
|
|
360
|
+
"id": "init",
|
|
361
|
+
"pluginAlias": "chowbea-axios",
|
|
362
|
+
"pluginName": "chowbea-axios",
|
|
363
|
+
"pluginType": "core",
|
|
364
|
+
"strict": true,
|
|
365
|
+
"enableJsonFlag": false,
|
|
366
|
+
"isESM": true,
|
|
367
|
+
"relativePath": [
|
|
368
|
+
"dist",
|
|
369
|
+
"commands",
|
|
370
|
+
"init.js"
|
|
371
|
+
]
|
|
372
|
+
},
|
|
373
|
+
"status": {
|
|
374
|
+
"aliases": [],
|
|
375
|
+
"args": {},
|
|
376
|
+
"description": "Show current state of your API client setup.\n\nDisplays:\n- Config file location and settings\n- Cached spec info (hash, age)\n- Endpoint statistics (total count, breakdown by HTTP method)\n- Generated file status (types, operations, client files)",
|
|
377
|
+
"examples": [
|
|
378
|
+
{
|
|
379
|
+
"command": "<%= config.bin %> status",
|
|
380
|
+
"description": "Show full status overview"
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"flags": {
|
|
384
|
+
"config": {
|
|
385
|
+
"char": "c",
|
|
386
|
+
"description": "Path to api.config.toml",
|
|
387
|
+
"name": "config",
|
|
388
|
+
"hasDynamicHelp": false,
|
|
389
|
+
"multiple": false,
|
|
390
|
+
"type": "option"
|
|
391
|
+
},
|
|
392
|
+
"quiet": {
|
|
393
|
+
"char": "q",
|
|
394
|
+
"description": "Suppress non-error output",
|
|
395
|
+
"name": "quiet",
|
|
396
|
+
"allowNo": false,
|
|
397
|
+
"type": "boolean"
|
|
398
|
+
},
|
|
399
|
+
"verbose": {
|
|
400
|
+
"char": "v",
|
|
401
|
+
"description": "Show detailed output",
|
|
402
|
+
"name": "verbose",
|
|
403
|
+
"allowNo": false,
|
|
404
|
+
"type": "boolean"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
"hasDynamicHelp": false,
|
|
408
|
+
"hiddenAliases": [],
|
|
409
|
+
"id": "status",
|
|
410
|
+
"pluginAlias": "chowbea-axios",
|
|
411
|
+
"pluginName": "chowbea-axios",
|
|
412
|
+
"pluginType": "core",
|
|
413
|
+
"strict": true,
|
|
414
|
+
"enableJsonFlag": false,
|
|
415
|
+
"isESM": true,
|
|
416
|
+
"relativePath": [
|
|
417
|
+
"dist",
|
|
418
|
+
"commands",
|
|
419
|
+
"status.js"
|
|
420
|
+
]
|
|
421
|
+
},
|
|
422
|
+
"validate": {
|
|
423
|
+
"aliases": [],
|
|
424
|
+
"args": {},
|
|
425
|
+
"description": "Check OpenAPI spec for issues that could affect generation.\n\nReports:\n- Missing operationIds (operations will be skipped)\n- Missing response definitions\n- Invalid spec structure\n\nUse --strict to treat warnings as errors.",
|
|
426
|
+
"examples": [
|
|
427
|
+
{
|
|
428
|
+
"command": "<%= config.bin %> validate",
|
|
429
|
+
"description": "Validate cached spec"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"command": "<%= config.bin %> validate --strict",
|
|
433
|
+
"description": "Fail on warnings too"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"command": "<%= config.bin %> validate --spec ./openapi.json",
|
|
437
|
+
"description": "Validate specific file"
|
|
438
|
+
}
|
|
439
|
+
],
|
|
440
|
+
"flags": {
|
|
441
|
+
"config": {
|
|
442
|
+
"char": "c",
|
|
443
|
+
"description": "Path to api.config.toml",
|
|
444
|
+
"name": "config",
|
|
445
|
+
"hasDynamicHelp": false,
|
|
446
|
+
"multiple": false,
|
|
447
|
+
"type": "option"
|
|
448
|
+
},
|
|
449
|
+
"spec": {
|
|
450
|
+
"char": "s",
|
|
451
|
+
"description": "Path to OpenAPI spec file (overrides config)",
|
|
452
|
+
"name": "spec",
|
|
453
|
+
"hasDynamicHelp": false,
|
|
454
|
+
"multiple": false,
|
|
455
|
+
"type": "option"
|
|
456
|
+
},
|
|
457
|
+
"strict": {
|
|
458
|
+
"description": "Treat warnings as errors",
|
|
459
|
+
"name": "strict",
|
|
460
|
+
"allowNo": false,
|
|
461
|
+
"type": "boolean"
|
|
462
|
+
},
|
|
463
|
+
"quiet": {
|
|
464
|
+
"char": "q",
|
|
465
|
+
"description": "Suppress non-error output",
|
|
466
|
+
"name": "quiet",
|
|
467
|
+
"allowNo": false,
|
|
468
|
+
"type": "boolean"
|
|
469
|
+
},
|
|
470
|
+
"verbose": {
|
|
471
|
+
"char": "v",
|
|
472
|
+
"description": "Show detailed output",
|
|
473
|
+
"name": "verbose",
|
|
474
|
+
"allowNo": false,
|
|
475
|
+
"type": "boolean"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
"hasDynamicHelp": false,
|
|
479
|
+
"hiddenAliases": [],
|
|
480
|
+
"id": "validate",
|
|
481
|
+
"pluginAlias": "chowbea-axios",
|
|
482
|
+
"pluginName": "chowbea-axios",
|
|
483
|
+
"pluginType": "core",
|
|
484
|
+
"strict": true,
|
|
485
|
+
"enableJsonFlag": false,
|
|
486
|
+
"isESM": true,
|
|
487
|
+
"relativePath": [
|
|
488
|
+
"dist",
|
|
489
|
+
"commands",
|
|
490
|
+
"validate.js"
|
|
491
|
+
]
|
|
492
|
+
},
|
|
493
|
+
"watch": {
|
|
494
|
+
"aliases": [],
|
|
495
|
+
"args": {},
|
|
496
|
+
"description": "Continuously poll for spec changes and regenerate.\n\nUseful during development - automatically regenerates types when\nyour API changes. Press Ctrl+C to stop.\n\nGracefully handles network failures and preserves cache on shutdown.",
|
|
497
|
+
"examples": [
|
|
498
|
+
{
|
|
499
|
+
"command": "<%= config.bin %> watch",
|
|
500
|
+
"description": "Start watching with default 10s interval"
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"command": "<%= config.bin %> watch --interval 5000",
|
|
504
|
+
"description": "Poll every 5 seconds"
|
|
505
|
+
}
|
|
506
|
+
],
|
|
507
|
+
"flags": {
|
|
508
|
+
"config": {
|
|
509
|
+
"char": "c",
|
|
510
|
+
"description": "Path to api.config.toml",
|
|
511
|
+
"name": "config",
|
|
512
|
+
"hasDynamicHelp": false,
|
|
513
|
+
"multiple": false,
|
|
514
|
+
"type": "option"
|
|
515
|
+
},
|
|
516
|
+
"interval": {
|
|
517
|
+
"char": "i",
|
|
518
|
+
"description": "Polling interval in milliseconds",
|
|
519
|
+
"name": "interval",
|
|
520
|
+
"hasDynamicHelp": false,
|
|
521
|
+
"multiple": false,
|
|
522
|
+
"type": "option"
|
|
523
|
+
},
|
|
524
|
+
"quiet": {
|
|
525
|
+
"char": "q",
|
|
526
|
+
"description": "Suppress non-error output",
|
|
527
|
+
"name": "quiet",
|
|
528
|
+
"allowNo": false,
|
|
529
|
+
"type": "boolean"
|
|
530
|
+
},
|
|
531
|
+
"debug": {
|
|
532
|
+
"char": "d",
|
|
533
|
+
"description": "Show verbose cycle-by-cycle logs",
|
|
534
|
+
"name": "debug",
|
|
535
|
+
"allowNo": false,
|
|
536
|
+
"type": "boolean"
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
"hasDynamicHelp": false,
|
|
540
|
+
"hiddenAliases": [],
|
|
541
|
+
"id": "watch",
|
|
542
|
+
"pluginAlias": "chowbea-axios",
|
|
543
|
+
"pluginName": "chowbea-axios",
|
|
544
|
+
"pluginType": "core",
|
|
545
|
+
"strict": true,
|
|
546
|
+
"enableJsonFlag": false,
|
|
547
|
+
"isESM": true,
|
|
548
|
+
"relativePath": [
|
|
549
|
+
"dist",
|
|
550
|
+
"commands",
|
|
551
|
+
"watch.js"
|
|
552
|
+
]
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"version": "1.0.0"
|
|
556
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "chowbea-axios",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Type-safe axios client that makes api requests a breeze",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"bin": {
|
|
15
|
+
"chowbea-axios": "bin/run.js"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"bin",
|
|
19
|
+
"dist",
|
|
20
|
+
"oclif.manifest.json"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc && npm run manifest",
|
|
24
|
+
"manifest": "oclif manifest",
|
|
25
|
+
"dev": "tsc --watch",
|
|
26
|
+
"clean": "rm -rf dist oclif.manifest.json",
|
|
27
|
+
"prepublishOnly": "npm run build",
|
|
28
|
+
"test": "test"
|
|
29
|
+
},
|
|
30
|
+
"oclif": {
|
|
31
|
+
"bin": "chowbea-axios",
|
|
32
|
+
"dirname": "chowbea-axios",
|
|
33
|
+
"commands": "./dist/commands",
|
|
34
|
+
"topicSeparator": " "
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@inquirer/prompts": "^7.0.0",
|
|
38
|
+
"@oclif/core": "^4.0.0",
|
|
39
|
+
"ora": "^8.0.0",
|
|
40
|
+
"toml": "^3.0.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/node": "^22.0.0",
|
|
44
|
+
"oclif": "^4.22.65",
|
|
45
|
+
"typescript": "^5.9.0"
|
|
46
|
+
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=18.0.0"
|
|
49
|
+
},
|
|
50
|
+
"keywords": [
|
|
51
|
+
"axios",
|
|
52
|
+
"api",
|
|
53
|
+
"typescript",
|
|
54
|
+
"openapi",
|
|
55
|
+
"codegen",
|
|
56
|
+
"cli"
|
|
57
|
+
],
|
|
58
|
+
"homepage": "https://github.com/oddFEELING/chowbea-axios#readme",
|
|
59
|
+
"bugs": {
|
|
60
|
+
"url": "https://github.com/oddFEELING/chowbea-axios/issues"
|
|
61
|
+
},
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "git+ssh://git@github.com/oddFEELING/chowbea-axios.git"
|
|
65
|
+
},
|
|
66
|
+
"license": "MIT",
|
|
67
|
+
"author": "Emmanuel Alawode"
|
|
68
|
+
}
|