Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.1.0, Speakeay CLI 1.93.3
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Oct 4, 2023
1 parent 6dafeb7 commit 78568aa
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 81 deletions.
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -804,4 +804,12 @@ Based on:
- [php v1.35.2] php-client-sdk
- [python v1.36.2] python-client-sdk
- [ruby v1.35.2] ruby-client-sdk
- [typescript v1.37.2] typescript-client-sdk
- [typescript v1.37.2] typescript-client-sdk

## 2023-10-04 14:28:03
### Changes
Based on:
- OpenAPI Doc 0.1.0
- Speakeasy CLI 1.93.3 (2.146.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.37.3] typescript-client-sdk
4 changes: 2 additions & 2 deletions typescript-client-sdk/__tests__/telemetry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test("Test Telemetry User Agent Get", async () => {
expect(res.statusCode).toBeDefined();
expect(res.statusCode).toBe(200);
expect(res.res?.headers["X-Speakeasy-User-Agent"]).toBe(
"speakeasy-sdk/typescript 1.37.2 2.144.7 0.1.0 openapi"
"speakeasy-sdk/typescript 1.37.3 2.146.1 0.1.0 openapi"
);
});

Expand All @@ -39,6 +39,6 @@ test("Test Telemetry Speakeasy User Agent Get", async () => {
expect(res.statusCode).toBe(200);
expect(res.res?.headers["User-Agent"]).toBe(userAgent);
expect(res.res?.headers["X-Speakeasy-User-Agent"]).toBe(
"speakeasy-sdk/typescript 1.37.2 2.144.7 0.1.0 openapi"
"speakeasy-sdk/typescript 1.37.3 2.146.1 0.1.0 openapi"
);
});
62 changes: 30 additions & 32 deletions typescript-client-sdk/docs/models/shared/defaultsandconsts.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,4 @@
| `defaultStr` | *string* | :heavy_check_mark: | N/A |
| `defaultStrNullable` | *string* | :heavy_check_mark: | N/A |
| `defaultStrOptional` | *string* | :heavy_minus_sign: | N/A |
| `normalField` | *string* | :heavy_check_mark: | N/A |
| `singleEnumConstBool` | *boolean* | :heavy_check_mark: | N/A |
| `singleEnumConstStr` | *string* | :heavy_check_mark: | N/A |
| `normalField` | *string* | :heavy_check_mark: | N/A |

This file was deleted.

3 changes: 0 additions & 3 deletions typescript-client-sdk/docs/sdks/requestbodies/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1888,7 +1888,6 @@ import {
DefaultsAndConstsConstEnumStr,
DefaultsAndConstsDefaultEnumInt,
DefaultsAndConstsDefaultEnumStr,
DefaultsAndConstsSingleEnumConstStr,
} from "openapi/dist/sdk/models/shared";
import { RFCDate } from "openapi/dist/sdk/types";

Expand Down Expand Up @@ -1929,8 +1928,6 @@ sdk.requestBodies.requestBodyPostDefaultsAndConsts({
defaultStrNullable: "silver Central",
defaultStrOptional: "Gasoline Pines boo",
normalField: "free",
singleEnumConstBool: false,
singleEnumConstStr: DefaultsAndConstsSingleEnumConstStr.One,
}).then((res: RequestBodyPostDefaultsAndConstsResponse) => {
if (res.statusCode == 200) {
// handle response
Expand Down
1 change: 0 additions & 1 deletion typescript-client-sdk/files.gen
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,6 @@ docs/models/shared/defaultsandconstsconstenumint.md
docs/models/shared/defaultsandconstsconstenumstr.md
docs/models/shared/defaultsandconstsdefaultenumint.md
docs/models/shared/defaultsandconstsdefaultenumstr.md
docs/models/shared/defaultsandconstssingleenumconststr.md
docs/models/shared/defaultsandconsts.md
docs/models/shared/readwriteobjectinput.md
docs/models/shared/readwriteobjectoutput.md
Expand Down
8 changes: 4 additions & 4 deletions typescript-client-sdk/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ configVersion: 1.0.0
management:
docChecksum: 09f66eb85627e03a8cf855efeda04a31
docVersion: 0.1.0
speakeasyVersion: 1.93.1
generationVersion: 2.144.7
speakeasyVersion: 1.93.3
generationVersion: 2.146.1
generation:
sdkClassName: SDK
singleTagPerOp: false
features:
typescript:
acceptHeaders: 2.81.1
core: 2.90.1
core: 2.90.2
deprecations: 2.81.1
docs: 0.2.1
enums: 2.81.1
Expand All @@ -31,7 +31,7 @@ features:
retries: 2.82.1
serverIDs: 2.81.1
typescript:
version: 1.37.2
version: 1.37.3
author: Speakeasy
clientServerStatusCodesAsErrors: true
maxMethodParams: 5
Expand Down
4 changes: 2 additions & 2 deletions typescript-client-sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion typescript-client-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openapi",
"version": "1.37.2",
"version": "1.37.3",
"author": "Speakeasy",
"scripts": {
"prepare": "tsc --build",
Expand Down
2 changes: 1 addition & 1 deletion typescript-client-sdk/src/internal/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class SpeakeasyBase {
for (const prop of props) {
if (payload && payload.hasOwnProperty(prop.key)) {
const value = payload[prop.key];
if (isSpeakeasyBase(prop.type)) {
if (isSpeakeasyBase(prop.type) && value != null) {
(this as any)[prop.key] = new prop.type(value);
} else if (
prop.type.name == "Array" &&
Expand Down
12 changes: 0 additions & 12 deletions typescript-client-sdk/src/sdk/models/shared/defaultsandconsts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ export enum DefaultsAndConstsDefaultEnumStr {
Three = "three",
}

export enum DefaultsAndConstsSingleEnumConstStr {
One = "one",
}

export class DefaultsAndConsts extends SpeakeasyBase {
@SpeakeasyMetadata()
@Expose({ name: "constBigInt" })
Expand Down Expand Up @@ -150,12 +146,4 @@ export class DefaultsAndConsts extends SpeakeasyBase {
@SpeakeasyMetadata()
@Expose({ name: "normalField" })
normalField: string;

@SpeakeasyMetadata()
@Expose({ name: "singleEnumConstBool" })
singleEnumConstBool: boolean;

@SpeakeasyMetadata()
@Expose({ name: "singleEnumConstStr" })
singleEnumConstStr: DefaultsAndConstsSingleEnumConstStr;
}
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,4 @@ export class DefaultsAndConstsOutput extends SpeakeasyBase {
@SpeakeasyMetadata()
@Expose({ name: "normalField" })
normalField: string;

@SpeakeasyMetadata()
@Expose({ name: "singleEnumConstBool" })
singleEnumConstBool: boolean;

@SpeakeasyMetadata()
@Expose({ name: "singleEnumConstStr" })
singleEnumConstStr: string;
}
6 changes: 3 additions & 3 deletions typescript-client-sdk/src/sdk/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ export class SDKConfiguration {
serverDefaults: any;
language = "typescript";
openapiDocVersion = "0.1.0";
sdkVersion = "1.37.2";
genVersion = "2.144.7";
userAgent = "speakeasy-sdk/typescript 1.37.2 2.144.7 0.1.0 openapi";
sdkVersion = "1.37.3";
genVersion = "2.146.1";
userAgent = "speakeasy-sdk/typescript 1.37.3 2.146.1 0.1.0 openapi";
globals: any;
retryConfig?: utils.RetryConfig;
public constructor(init?: Partial<SDKConfiguration>) {
Expand Down

0 comments on commit 78568aa

Please sign in to comment.