Skip to content

Commit 6d25159

Browse files
chore: generated with latest gen
1 parent 8eed21a commit 6d25159

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2280
-2477
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "openapi",
3-
"version": "0.0.1",
4-
"author": "speakeasy-client-sdk-generator",
2+
"name": "",
3+
"version": "",
4+
"author": "",
55
"scripts": {
66
"lint:fix": "tsc --noemit && eslint \"./src\" --ext .ts,.tsx --fix"
77
},

src/internal/utils/pathparams.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function ParsePathParamDecorator(
55
fName: string
66
): ParamDecorator {
77
// style=simple;explode=false;name=apiID
8-
const ppDecorator: ParamDecorator = new ParamDecorator(
8+
let ppDecorator: ParamDecorator = new ParamDecorator(
99
"simple",
1010
false,
1111
fName.toLowerCase()
@@ -30,7 +30,7 @@ export function GetSimplePathParams(
3030
paramName: string,
3131
paramValue: any
3232
): Map<string, string> {
33-
const pathParams: Map<string, string> = new Map<string, string>();
33+
let pathParams: Map<string, string> = new Map<string, string>();
3434
if (typeof paramValue === "string") pathParams.set(paramName, paramValue);
3535
else pathParams.set(paramName, JSON.stringify(paramValue));
3636
return pathParams;
@@ -52,4 +52,4 @@ export class ParamDecorator {
5252
this.ParamName = ParamName;
5353
this.Serialization = Serialization;
5454
}
55-
}
55+
}

src/internal/utils/security.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,7 @@ function ParseSecurityClass(serverURL: string, security: any): AxiosInstance {
6464
if (securityDecorator.Option) {
6565
client = ParseSecurityOption(serverURL, security[fname]);
6666
} else if (securityDecorator.Scheme) {
67-
client = ParseSecurityScheme(
68-
serverURL,
69-
securityDecorator,
70-
security[fname]
71-
);
67+
client = ParseSecurityScheme(serverURL, securityDecorator, security[fname]);
7268
}
7369
});
7470

@@ -186,4 +182,4 @@ class SecurityDecorator {
186182
this.Scheme = Scheme;
187183
this.SubType = SubType;
188184
}
189-
}
185+
}

src/internal/utils/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function GenerateURL(
2929
path: string,
3030
pathParams: any
3131
): string {
32-
const url: string = serverURL.replace(/\/$/, "") + path;
32+
let url: string = serverURL.replace(/\/$/, "") + path;
3333
const parsedParameters: Map<string, string> = new Map<string, string>();
3434
const fieldNames: string[] = Object.getOwnPropertyNames(pathParams);
3535
fieldNames.forEach((fname) => {
@@ -49,4 +49,4 @@ export function GenerateURL(
4949
}
5050
});
5151
return ReplaceParameters(url, parsedParameters);
52-
}
52+
}

src/sdk/models/operations/deleteapi.ts

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,41 @@
1-
import { Metadata } from "../../../internal/utils/utils";
1+
import {Metadata} from "../../../internal/utils/utils";
22
import * as shared from "../shared";
33

44
export class DeleteApiPathParams {
5-
@Metadata("pathParam, style=simple;explode=false;name=apiID")
6-
ApiId: string;
7-
@Metadata("pathParam, style=simple;explode=false;name=versionID")
8-
VersionId: string;
9-
10-
constructor(ApiId: string, VersionId: string) {
11-
this.ApiId = ApiId;
12-
this.VersionId = VersionId;
13-
}
5+
@Metadata("pathParam, style=simple;explode=false;name=apiID")
6+
ApiId: string;
7+
@Metadata("pathParam, style=simple;explode=false;name=versionID")
8+
VersionId: string;
9+
10+
constructor(ApiId: string, VersionId: string) {
11+
this.ApiId = ApiId;
12+
this.VersionId = VersionId;
13+
}
1414
}
1515

1616
export class DeleteApiRequest {
17-
PathParams: DeleteApiPathParams;
18-
19-
constructor(PathParams: DeleteApiPathParams) {
20-
this.PathParams = PathParams;
21-
}
17+
18+
PathParams: DeleteApiPathParams;
19+
20+
constructor(PathParams: DeleteApiPathParams) {
21+
this.PathParams = PathParams;
22+
}
2223
}
2324

2425
export class DeleteApiResponse {
25-
ContentType: string;
26+
27+
ContentType: string;
28+
29+
Error?: shared.Error;
30+
31+
StatusCode: number;
32+
33+
constructor(ContentType: string, StatusCode: number, Error?: shared.Error) {
34+
this.ContentType = ContentType;
35+
this.Error = Error;
36+
this.StatusCode = StatusCode;
37+
}
38+
}
2639

27-
Error?: shared.Error;
2840

29-
StatusCode: number;
3041

31-
constructor(ContentType: string, StatusCode: number, Error?: shared.Error) {
32-
this.ContentType = ContentType;
33-
this.Error = Error;
34-
this.StatusCode = StatusCode;
35-
}
36-
}

src/sdk/models/operations/deleteapiendpoint.ts

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,44 @@
1-
import { Metadata } from "../../../internal/utils/utils";
1+
import {Metadata} from "../../../internal/utils/utils";
22
import * as shared from "../shared";
33

44
export class DeleteApiEndpointPathParams {
5-
@Metadata("pathParam, style=simple;explode=false;name=apiEndpointID")
6-
ApiEndpointId: string;
7-
@Metadata("pathParam, style=simple;explode=false;name=apiID")
8-
ApiId: string;
9-
@Metadata("pathParam, style=simple;explode=false;name=versionID")
10-
VersionId: string;
11-
12-
constructor(ApiEndpointId: string, ApiId: string, VersionId: string) {
13-
this.ApiEndpointId = ApiEndpointId;
14-
this.ApiId = ApiId;
15-
this.VersionId = VersionId;
16-
}
5+
@Metadata("pathParam, style=simple;explode=false;name=apiEndpointID")
6+
ApiEndpointId: string;
7+
@Metadata("pathParam, style=simple;explode=false;name=apiID")
8+
ApiId: string;
9+
@Metadata("pathParam, style=simple;explode=false;name=versionID")
10+
VersionId: string;
11+
12+
constructor(ApiEndpointId: string, ApiId: string, VersionId: string) {
13+
this.ApiEndpointId = ApiEndpointId;
14+
this.ApiId = ApiId;
15+
this.VersionId = VersionId;
16+
}
1717
}
1818

1919
export class DeleteApiEndpointRequest {
20-
PathParams: DeleteApiEndpointPathParams;
21-
22-
constructor(PathParams: DeleteApiEndpointPathParams) {
23-
this.PathParams = PathParams;
24-
}
20+
21+
PathParams: DeleteApiEndpointPathParams;
22+
23+
constructor(PathParams: DeleteApiEndpointPathParams) {
24+
this.PathParams = PathParams;
25+
}
2526
}
2627

2728
export class DeleteApiEndpointResponse {
28-
ContentType: string;
29+
30+
ContentType: string;
31+
32+
Error?: shared.Error;
33+
34+
StatusCode: number;
35+
36+
constructor(ContentType: string, StatusCode: number, Error?: shared.Error) {
37+
this.ContentType = ContentType;
38+
this.Error = Error;
39+
this.StatusCode = StatusCode;
40+
}
41+
}
2942

30-
Error?: shared.Error;
3143

32-
StatusCode: number;
3344

34-
constructor(ContentType: string, StatusCode: number, Error?: shared.Error) {
35-
this.ContentType = ContentType;
36-
this.Error = Error;
37-
this.StatusCode = StatusCode;
38-
}
39-
}

src/sdk/models/operations/deleteschema.ts

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,44 @@
1-
import { Metadata } from "../../../internal/utils/utils";
1+
import {Metadata} from "../../../internal/utils/utils";
22
import * as shared from "../shared";
33

44
export class DeleteSchemaPathParams {
5-
@Metadata("pathParam, style=simple;explode=false;name=apiID")
6-
ApiId: string;
7-
@Metadata("pathParam, style=simple;explode=false;name=revisionID")
8-
RevisionId: string;
9-
@Metadata("pathParam, style=simple;explode=false;name=versionID")
10-
VersionId: string;
11-
12-
constructor(ApiId: string, RevisionId: string, VersionId: string) {
13-
this.ApiId = ApiId;
14-
this.RevisionId = RevisionId;
15-
this.VersionId = VersionId;
16-
}
5+
@Metadata("pathParam, style=simple;explode=false;name=apiID")
6+
ApiId: string;
7+
@Metadata("pathParam, style=simple;explode=false;name=revisionID")
8+
RevisionId: string;
9+
@Metadata("pathParam, style=simple;explode=false;name=versionID")
10+
VersionId: string;
11+
12+
constructor(ApiId: string, RevisionId: string, VersionId: string) {
13+
this.ApiId = ApiId;
14+
this.RevisionId = RevisionId;
15+
this.VersionId = VersionId;
16+
}
1717
}
1818

1919
export class DeleteSchemaRequest {
20-
PathParams: DeleteSchemaPathParams;
21-
22-
constructor(PathParams: DeleteSchemaPathParams) {
23-
this.PathParams = PathParams;
24-
}
20+
21+
PathParams: DeleteSchemaPathParams;
22+
23+
constructor(PathParams: DeleteSchemaPathParams) {
24+
this.PathParams = PathParams;
25+
}
2526
}
2627

2728
export class DeleteSchemaResponse {
28-
ContentType: string;
29+
30+
ContentType: string;
31+
32+
Error?: shared.Error;
33+
34+
StatusCode: number;
35+
36+
constructor(ContentType: string, StatusCode: number, Error?: shared.Error) {
37+
this.ContentType = ContentType;
38+
this.Error = Error;
39+
this.StatusCode = StatusCode;
40+
}
41+
}
2942

30-
Error?: shared.Error;
3143

32-
StatusCode: number;
3344

34-
constructor(ContentType: string, StatusCode: number, Error?: shared.Error) {
35-
this.ContentType = ContentType;
36-
this.Error = Error;
37-
this.StatusCode = StatusCode;
38-
}
39-
}
Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
import { Metadata } from "../../../internal/utils/utils";
1+
import {Metadata} from "../../../internal/utils/utils";
22
import * as shared from "../shared";
33

44
export class DeleteVersionMetadataPathParams {
5-
@Metadata("pathParam, style=simple;explode=false;name=apiID")
6-
ApiId: string;
7-
@Metadata("pathParam, style=simple;explode=false;name=metaKey")
8-
MetaKey: string;
9-
@Metadata("pathParam, style=simple;explode=false;name=metaValue")
10-
MetaValue: string;
11-
@Metadata("pathParam, style=simple;explode=false;name=versionID")
12-
VersionId: string;
13-
14-
constructor(
15-
ApiId: string,
16-
MetaKey: string,
17-
MetaValue: string,
18-
VersionId: string
19-
) {
20-
this.ApiId = ApiId;
21-
this.MetaKey = MetaKey;
22-
this.MetaValue = MetaValue;
23-
this.VersionId = VersionId;
24-
}
5+
@Metadata("pathParam, style=simple;explode=false;name=apiID")
6+
ApiId: string;
7+
@Metadata("pathParam, style=simple;explode=false;name=metaKey")
8+
MetaKey: string;
9+
@Metadata("pathParam, style=simple;explode=false;name=metaValue")
10+
MetaValue: string;
11+
@Metadata("pathParam, style=simple;explode=false;name=versionID")
12+
VersionId: string;
13+
14+
constructor(ApiId: string, MetaKey: string, MetaValue: string, VersionId: string) {
15+
this.ApiId = ApiId;
16+
this.MetaKey = MetaKey;
17+
this.MetaValue = MetaValue;
18+
this.VersionId = VersionId;
19+
}
2520
}
2621

2722
export class DeleteVersionMetadataRequest {
28-
PathParams: DeleteVersionMetadataPathParams;
29-
30-
constructor(PathParams: DeleteVersionMetadataPathParams) {
31-
this.PathParams = PathParams;
32-
}
23+
24+
PathParams: DeleteVersionMetadataPathParams;
25+
26+
constructor(PathParams: DeleteVersionMetadataPathParams) {
27+
this.PathParams = PathParams;
28+
}
3329
}
3430

3531
export class DeleteVersionMetadataResponse {
36-
ContentType: string;
32+
33+
ContentType: string;
34+
35+
Error?: shared.Error;
36+
37+
StatusCode: number;
38+
39+
constructor(ContentType: string, StatusCode: number, Error?: shared.Error) {
40+
this.ContentType = ContentType;
41+
this.Error = Error;
42+
this.StatusCode = StatusCode;
43+
}
44+
}
3745

38-
Error?: shared.Error;
3946

40-
StatusCode: number;
4147

42-
constructor(ContentType: string, StatusCode: number, Error?: shared.Error) {
43-
this.ContentType = ContentType;
44-
this.Error = Error;
45-
this.StatusCode = StatusCode;
46-
}
47-
}

0 commit comments

Comments
 (0)