File tree 6 files changed +17
-15
lines changed
6 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ test/e2e/generated
15
15
samples /generated
16
16
samples /swagger-codegen-cli-v2.jar
17
17
samples /swagger-codegen-cli-v3.jar
18
+ .npmrc
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " openapi-typescript-codegen" ,
3
- "version" : " 0.29.0 " ,
4
- "description" : " Library that generates Typescript clients based on the OpenAPI specification. " ,
5
- "author" : " Ferdi Koomen " ,
2
+ "name" : " @paytweed/ openapi-typescript-codegen" ,
3
+ "version" : " 0.0.1 " ,
4
+ "description" : " Fork of openapi-typescript-codegen for Tweed client generation " ,
5
+ "author" : " Tweed " ,
6
6
"homepage" : " https://github.com/ferdikoomen/openapi-typescript-codegen" ,
7
7
"repository" : {
8
8
"type" : " git" ,
9
9
"url" : " git+https://github.com/ferdikoomen/openapi-typescript-codegen.git"
10
10
},
11
- "bugs" : {
12
- "url" : " https://github.com/ferdikoomen/openapi-typescript-codegen/issues"
13
- },
14
11
"license" : " MIT" ,
15
12
"keywords" : [
16
13
" openapi" ,
27
24
],
28
25
"maintainers" : [
29
26
{
30
- "name" : " Ferdi Koomen " ,
31
- "email" : " info@madebyferdi .com"
27
+ "name" : " Tomer Nesimyan " ,
28
+ "email" : " tomer@paytweed .com"
32
29
}
33
30
],
34
31
"main" : " dist/index.js" ,
66
63
"fs-extra" : " ^11.2.0" ,
67
64
"handlebars" : " ^4.7.8"
68
65
},
66
+ "publishConfig" : {
67
+ "@paytweed:registry" : " https://npm.pkg.github.com/"
68
+ },
69
69
"devDependencies" : {
70
70
"@angular-devkit/build-angular" : " 18.2.5" ,
71
71
"@angular/animations" : " 17.3.3" ,
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export const getOperation = (
80
80
isDefinition : false ,
81
81
isNullable : false ,
82
82
isReadOnly : false ,
83
- isRequired : true ,
83
+ isRequired : false ,
84
84
link : null ,
85
85
mediaType : null ,
86
86
prop : '' ,
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export const getOperation = (
92
92
isDefinition : false ,
93
93
isNullable : false ,
94
94
isReadOnly : false ,
95
- isRequired : true ,
95
+ isRequired : false ,
96
96
link : null ,
97
97
mediaType : null ,
98
98
prop : '' ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { TweedBaseContext } from '@paytweed/context';
6
6
export type ApiRequestOptions = {
7
7
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
8
8
readonly url: string;
9
- readonly context: TweedBaseContext
9
+ readonly context? : TweedBaseContext
10
10
readonly path?: Record<string , any>;
11
11
readonly cookies?: Record<string , any>;
12
12
readonly headers?: Record<string , any>;
@@ -17,3 +17,4 @@ export type ApiRequestOptions = {
17
17
readonly responseHeader?: string;
18
18
readonly errors?: Record<number , string>;
19
19
};
20
+ "@paytweed/http-client": "1.0.0-experimental.745ee2f",
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { request as __request } from './request';
13
13
{{ else }}
14
14
import type { ApiRequestOptions } from './ApiRequestOptions';
15
15
import { BaseHttpRequest } from './BaseHttpRequest';
16
- import type { CancelablePromise } from './CancelablePromise ';
16
+ import { AxiosResponse } from '@paytweed/http-client ';
17
17
import type { OpenAPIConfig } from './OpenAPI';
18
18
import { request as __request } from './request';
19
19
{{ /equals }}
@@ -51,10 +51,10 @@ export class {{httpRequest}} extends BaseHttpRequest {
51
51
/**
52
52
* Request method
53
53
* @param options The request options from the service
54
- * @returns CancelablePromise <T >
54
+ * @returns AxiosResponse <T >
55
55
* @throws ApiError
56
56
*/
57
- public override request<T >(options: ApiRequestOptions): CancelablePromise< T > {
57
+ public override request<T >(options: ApiRequestOptions): Promise< AxiosResponse <T> > {
58
58
return __request(this.config, options);
59
59
}
60
60
{{ /equals }}
You can’t perform that action at this time.
0 commit comments