codegen-openapi-ts 0.9.0-alpha.3 → 0.9.0-alpha.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/dist/index.js +1 -1
- package/package.json +7 -7
- package/types/index.d.ts +0 -41
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codegen-openapi-ts",
|
|
3
|
-
"version": "0.9.0-alpha.
|
|
3
|
+
"version": "0.9.0-alpha.5",
|
|
4
4
|
"description": "Library that generates Typescript clients based on the OpenAPI specification.",
|
|
5
5
|
"author": "devteaa",
|
|
6
6
|
"homepage": "https://github.com/devteaa/codegen-openapi-ts",
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
],
|
|
25
25
|
"maintainers": [
|
|
26
26
|
{
|
|
27
|
-
"name": "
|
|
28
|
-
"email": "
|
|
27
|
+
"name": "devteaa",
|
|
28
|
+
"email": "devtea@protonmail.com"
|
|
29
29
|
}
|
|
30
30
|
],
|
|
31
31
|
"main": "dist/index.js",
|
|
32
|
-
"types": "
|
|
32
|
+
"types": "dist/index.d.ts",
|
|
33
33
|
"bin": {
|
|
34
|
-
"openapi": "bin/index.js"
|
|
34
|
+
"codegen-openapi-ts": "bin/index.js"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"bin/index.js",
|
|
38
38
|
"dist/index.js",
|
|
39
|
-
"
|
|
39
|
+
"dist/index.d.ts"
|
|
40
40
|
],
|
|
41
41
|
"scripts": {
|
|
42
42
|
"clean": "rimraf ./dist ./test/generated ./test/e2e/generated ./samples/generated ./coverage ./node_modules/.cache",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"deploy-prerelease": "npm version prerelease && npm publish"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@apidevtools/json-schema-ref-parser": "^
|
|
63
|
+
"@apidevtools/json-schema-ref-parser": "^11.1.0",
|
|
64
64
|
"api-spec-converter": "^2.12.0",
|
|
65
65
|
"camelcase": "^6.3.0",
|
|
66
66
|
"commander": "^11.1.0",
|
package/types/index.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export declare enum HttpClient {
|
|
2
|
-
FETCH = 'fetch',
|
|
3
|
-
XHR = 'xhr',
|
|
4
|
-
NODE = 'node',
|
|
5
|
-
AXIOS = 'axios',
|
|
6
|
-
ANGULAR = 'angular',
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export declare enum Indent {
|
|
10
|
-
SPACE_4 = '4',
|
|
11
|
-
SPACE_2 = '2',
|
|
12
|
-
TAB = 'tab',
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type Options = {
|
|
16
|
-
input: string | Record<string, any>;
|
|
17
|
-
output: string;
|
|
18
|
-
httpClient?: HttpClient | 'fetch' | 'xhr' | 'node' | 'axios' | 'angular';
|
|
19
|
-
clientName?: string;
|
|
20
|
-
useOptions?: boolean;
|
|
21
|
-
useUnionTypes?: boolean;
|
|
22
|
-
exportCore?: boolean;
|
|
23
|
-
exportServices?: boolean;
|
|
24
|
-
exportModels?: boolean;
|
|
25
|
-
exportSchemas?: boolean;
|
|
26
|
-
indent?: Indent | '4' | '2' | 'tab';
|
|
27
|
-
postfixServices?: string;
|
|
28
|
-
postfixModels?: string;
|
|
29
|
-
request?: string;
|
|
30
|
-
write?: boolean;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export declare function generate(options: Options): Promise<void>;
|
|
34
|
-
|
|
35
|
-
declare type OpenAPI = {
|
|
36
|
-
HttpClient: HttpClient;
|
|
37
|
-
Indent: Indent;
|
|
38
|
-
generate: typeof generate;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export default OpenAPI;
|