swaggie 0.7.6 → 0.7.7-beta
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ClientOptions } from '../../types';
|
|
2
|
-
export declare function generateBarrelFile(clients: any[], clientOptions: ClientOptions): Promise<
|
|
2
|
+
export declare function generateBarrelFile(clients: any[], clientOptions: ClientOptions): Promise<any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function loadAllTemplateFiles(templateName: string): void;
|
|
2
|
-
export declare function renderFile(templateFile: string, data?: object):
|
|
2
|
+
export declare function renderFile(templateFile: string, data?: object): any;
|
package/dist/types.d.ts
CHANGED
|
@@ -44,9 +44,9 @@ export interface ApiSpec {
|
|
|
44
44
|
accepts: string[];
|
|
45
45
|
contentTypes: string[];
|
|
46
46
|
}
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
47
|
+
export type Template = 'axios' | 'fetch' | 'ng1' | 'ng2' | 'swr-axios';
|
|
48
|
+
export type HttpMethod = 'get' | 'put' | 'post' | 'delete' | 'options' | 'head' | 'patch';
|
|
49
|
+
export type DateSupport = 'string' | 'Date';
|
|
50
50
|
export interface ApiOperation {
|
|
51
51
|
id: string;
|
|
52
52
|
summary: string;
|
|
@@ -72,7 +72,7 @@ export interface ApiOperationParam extends ApiOperationParamBase {
|
|
|
72
72
|
'x-nullable'?: boolean;
|
|
73
73
|
'x-schema'?: object;
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
type CollectionFormat = 'csv' | 'ssv' | 'tsv' | 'pipes' | 'multi';
|
|
76
76
|
export interface ApiOperationParamBase {
|
|
77
77
|
type: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'file';
|
|
78
78
|
format: 'int32' | 'int64' | 'float' | 'double' | 'byte' | 'binary' | 'date' | 'date-time' | 'password';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swaggie",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7-beta",
|
|
4
4
|
"description": "Generate ES6 or TypeScript service integration code from an OpenAPI spec",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Piotr Dabrowski",
|
|
@@ -46,21 +46,21 @@
|
|
|
46
46
|
"case": "^1.6.3",
|
|
47
47
|
"commander": "^8.3.0",
|
|
48
48
|
"dset": "^3.1.2",
|
|
49
|
-
"eta": "^1.
|
|
49
|
+
"eta": "^1.14.1",
|
|
50
50
|
"js-yaml": "^4.1.0",
|
|
51
51
|
"nanocolors": "^0.2.0",
|
|
52
52
|
"node-fetch": "^2.6.7"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/chai": "4.3.
|
|
55
|
+
"@types/chai": "4.3.4",
|
|
56
56
|
"@types/js-yaml": "4.0.5",
|
|
57
|
-
"@types/mocha": "10.0.
|
|
58
|
-
"@types/node-fetch": "2.
|
|
57
|
+
"@types/mocha": "10.0.1",
|
|
58
|
+
"@types/node-fetch": "2.6.2",
|
|
59
59
|
"@types/sinon": "^10.0.13",
|
|
60
|
-
"chai": "4.3.
|
|
61
|
-
"mocha": "10.
|
|
62
|
-
"sinon": "^
|
|
63
|
-
"sucrase": "3.
|
|
64
|
-
"typescript": "4.
|
|
60
|
+
"chai": "4.3.7",
|
|
61
|
+
"mocha": "10.2.0",
|
|
62
|
+
"sinon": "^15.0.1",
|
|
63
|
+
"sucrase": "3.29.0",
|
|
64
|
+
"typescript": "4.9.4"
|
|
65
65
|
}
|
|
66
66
|
}
|