Skip to content

Commit c4f4655

Browse files
authored
fix(typescript): Fix issue where IdempotentRequestOptions is not generated in the client namespace (#6475)
1 parent 9a88c95 commit c4f4655

File tree

288 files changed

+6150
-35
lines changed

Some content is hidden

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

288 files changed

+6150
-35
lines changed

generators/typescript/sdk/CHANGELOG.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,26 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.49.2] - 2025-03-18
9+
10+
- Fix: Fix issue where IdempotentRequestOptions is not generated in the client namespace.
11+
812
## [0.49.1] - 2025-03-10
913

10-
- Fix: This PR includes several fixes to the generated `Socket.py` file when websocket client code generation is enabled.
14+
- Fix: This PR includes several fixes to the generated `Socket.ts` file when websocket client code generation is enabled.
1115

1216
## [0.49.0] - 2025-03-06
1317

1418
- Feat: This PR enables the Typescript generator to produce Websocket SDK endpoints. This can be enabled by adding the option `shouldGenerateWebsocketClients: true` to the Typescript generator config.
1519

1620
## [0.48.7] - 2025-01-28
1721

18-
- Fix: Form data encoding now correctly handles array and object values by encoding each property value as a separate key-value pair,
22+
- Fix: Form data encoding now correctly handles array and object values by encoding each property value as a separate key-value pair,
1923
rather than trying to encode the entire object as a single value. This ensures proper handling of complex data structures in multipart form requests.
2024

2125
## [0.48.6] - 2025-01-28
2226

23-
- Fix: Support form-encoded form data parameters by using `qs` to properly encode array and
27+
- Fix: Support form-encoded form data parameters by using `qs` to properly encode array and
2428
object values with the `repeat` array format.
2529

2630
## [0.48.5] - 2025-01-28

generators/typescript/sdk/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.49.1
1+
0.49.2

generators/typescript/sdk/client-class-generator/src/GeneratedSdkClientClassImpl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ export class GeneratedSdkClientClassImpl implements GeneratedSdkClientClass {
499499
? [this.generatedWebsocketImplementation.getModuleStatement(context)]
500500
: [])
501501
];
502-
context.sourceFile.addModule(serviceModule);
503502

504503
const serviceClass: SetRequired<
505504
ClassDeclarationStructure,
@@ -789,6 +788,7 @@ export class GeneratedSdkClientClassImpl implements GeneratedSdkClientClass {
789788
});
790789
}
791790

791+
context.sourceFile.addModule(serviceModule);
792792
context.sourceFile.addClass(serviceClass);
793793
}
794794

seed/ts-sdk/exhaustive/allow-extra-fields/.mock/definition/endpoints/put.yml

+46
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

seed/ts-sdk/exhaustive/allow-extra-fields/reference.md

+58
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

seed/ts-sdk/exhaustive/allow-extra-fields/resolved-snippet-templates.md

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

seed/ts-sdk/exhaustive/allow-extra-fields/snippet-templates.json

+100
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

seed/ts-sdk/exhaustive/allow-extra-fields/snippet.json

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

seed/ts-sdk/exhaustive/allow-extra-fields/src/api/resources/endpoints/client/Client.ts

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

seed/ts-sdk/exhaustive/allow-extra-fields/src/api/resources/endpoints/index.ts

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

seed/ts-sdk/exhaustive/allow-extra-fields/src/api/resources/endpoints/resources/index.ts

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)