Skip to content

Commit ba6b6b2

Browse files
chore: update dependencies and improve API structure
Update the Fern TypeScript SDK generator from 3.28.6 to 3.28.11 and enhance the movie API with additional metadata fields. This includes improvements to the HTTP client implementation, test infrastructure, and documentation updates. Key changes: - Update Fern generator version from 3.28.6 to 3.28.11 - Add metadata, more_metadata, and rank fields to CreateMovieRequest - Remove description field and add rank field to Movie interface - Enhance HTTP client with Headers class support for improved header handling - Add custom test matchers for header validation - Update package dependencies and lockfile - Improve code examples in README and API documentation 🌿 Generated with Fern
1 parent f051752 commit ba6b6b2

21 files changed

+301
-178
lines changed

.fern/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"cliVersion": "0.113.1",
33
"generatorName": "fernapi/fern-typescript-sdk",
4-
"generatorVersion": "3.28.6"
4+
"generatorVersion": "3.28.11"
55
}

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ import { FernAutopilotTestApiClient } from "";
2525
const client = new FernAutopilotTestApiClient({ environment: "YOUR_BASE_URL" });
2626
await client.imdb.createMovie({
2727
title: "title",
28-
rating: 1.1
28+
rating: 1.1,
29+
metadata: "metadata",
30+
more_metadata: "more_metadata",
31+
rank: 1
2932
});
3033
```
3134

changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## 2.1.0 - 2025-11-25
2+
* chore: update dependencies and improve API structure
3+
* Update the Fern TypeScript SDK generator from 3.28.6 to 3.28.11 and enhance the movie API with additional metadata fields. This includes improvements to the HTTP client implementation, test infrastructure, and documentation updates.
4+
* Key changes:
5+
* Update Fern generator version from 3.28.6 to 3.28.11
6+
* Add metadata, more_metadata, and rank fields to CreateMovieRequest
7+
* Remove description field and add rank field to Movie interface
8+
* Enhance HTTP client with Headers class support for improved header handling
9+
* Add custom test matchers for header validation
10+
* Update package dependencies and lockfile
11+
* Improve code examples in README and API documentation
12+
* 🌿 Generated with Fern
13+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"private": false,
55
"repository": "github:fern-demo/autopilot-typescript-sdk",
66
"type": "commonjs",

pnpm-lock.yaml

Lines changed: 133 additions & 133 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reference.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ Add a movie to the database
2929
```typescript
3030
await client.imdb.createMovie({
3131
title: "title",
32-
rating: 1.1
32+
rating: 1.1,
33+
metadata: "metadata",
34+
more_metadata: "more_metadata",
35+
rank: 1
3336
});
3437

3538
```

src/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export class FernAutopilotTestApiClient {
2323
{
2424
"X-Fern-Language": "JavaScript",
2525
"X-Fern-SDK-Name": "",
26-
"X-Fern-SDK-Version": "2.0.0",
27-
"User-Agent": "/2.0.0",
26+
"X-Fern-SDK-Version": "2.1.0",
27+
"User-Agent": "/2.1.0",
2828
"X-Fern-Runtime": core.RUNTIME.type,
2929
"X-Fern-Runtime-Version": core.RUNTIME.version,
3030
},

src/api/resources/imdb/client/Client.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ export class Imdb {
2828
* @example
2929
* await client.imdb.createMovie({
3030
* title: "title",
31-
* rating: 1.1
31+
* rating: 1.1,
32+
* metadata: "metadata",
33+
* more_metadata: "more_metadata",
34+
* rank: 1
3235
* })
3336
*/
3437
public createMovie(

src/api/resources/imdb/types/CreateMovieRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
export interface CreateMovieRequest {
44
title: string;
55
rating: number;
6+
metadata: string;
7+
more_metadata: string;
8+
rank: number;
69
}

src/api/resources/imdb/types/Movie.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export interface Movie {
77
title: string;
88
/** The rating scale out of ten stars */
99
rating: number;
10-
description: string;
1110
metadata: string;
11+
rank: number;
1212
}

0 commit comments

Comments
 (0)