Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Apr 16, 2024
1 parent c3cc9f0 commit 089e856
Show file tree
Hide file tree
Showing 39 changed files with 116 additions and 109 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,11 @@ jobs:
run: yarn install

- name: Build
run: yarn build
run: yarn build

- name: Publish to npm
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "",
"version": "0.1.2",
"name": "beehiiv",
"version": "0.1.4",
"private": false,
"repository": "https://github.com/fern-demo/beehiiv-typescript",
"main": "./index.js",
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/automationJourneys/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export class AutomationJourneys {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -166,8 +166,8 @@ export class AutomationJourneys {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/automations/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export class Automations {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -166,8 +166,8 @@ export class Automations {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface AutomationsListRequest {
*/
limit?: number;
/**
* Pagination returns the results in pages. Each page contains the number of results specified by the `limit` (default: 10).<br>If not specified, results 1-10 from page 1 will be returned.
* Pagination returns the results in pages. Each page contains the number of results specified by the `limit` (default: 10).<br />If not specified, results 1-10 from page 1 will be returned.
*/
page?: number;
}
8 changes: 4 additions & 4 deletions src/api/resources/bulkSubscriptionUpdates/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export class BulkSubscriptionUpdates {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -156,8 +156,8 @@ export class BulkSubscriptionUpdates {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
20 changes: 10 additions & 10 deletions src/api/resources/customFields/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export class CustomFields {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -160,8 +160,8 @@ export class CustomFields {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -270,8 +270,8 @@ export class CustomFields {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -379,8 +379,8 @@ export class CustomFields {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -488,8 +488,8 @@ export class CustomFields {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/emailBlasts/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export class EmailBlasts {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -195,8 +195,8 @@ export class EmailBlasts {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as Beehiiv from "../../../..";
*/
export interface EmailBlastsGetRequest {
/**
* Optional list of expandable objects.<br>`stats` - Returns statistics about the email blast(s)<br> `free_email_content` - Returns the email HTML rendered to a free reader<br> `premium_email_content` - Returns the email HTML rendered to a premium reader
* Optional list of expandable objects.<br />`stats` - Returns statistics about the email blast(s)<br /> `free_email_content` - Returns the email HTML rendered to a free reader<br /> `premium_email_content` - Returns the email HTML rendered to a premium reader
*/
expand?: Beehiiv.EmailBlastsGetRequestExpandItem | Beehiiv.EmailBlastsGetRequestExpandItem[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ import * as Beehiiv from "../../../..";
*/
export interface EmailBlastsListRequest {
/**
* Optional list of expandable objects.<br>`stats` - Returns statistics about the email blast(s)<br> `free_email_content` - Returns the email HTML rendered to a free reader<br> `premium_email_content` - Returns the email HTML rendered to a premium reader
* Optional list of expandable objects.<br />`stats` - Returns statistics about the email blast(s)<br /> `free_email_content` - Returns the email HTML rendered to a free reader<br /> `premium_email_content` - Returns the email HTML rendered to a premium reader
*/
expand?: Beehiiv.EmailBlastsListRequestExpandItem | Beehiiv.EmailBlastsListRequestExpandItem[];
/**
* A limit on the number of objects to be returned. The limit can range between 1 and 100, and the default is 10.
*/
limit?: number;
/**
* Pagination returns the results in pages. Each page contains the number of results specified by the `limit` (default: 10).<br>If not specified, results 1-10 from page 1 will be returned.
* Pagination returns the results in pages. Each page contains the number of results specified by the `limit` (default: 10).<br />If not specified, results 1-10 from page 1 will be returned.
*/
page?: number;
/**
* The direction that the results are sorted in. Defaults to asc<br> `asc` - Ascending, sorts from smallest to largest.<br> `desc` - Descending, sorts from largest to smallest.
* The direction that the results are sorted in. Defaults to asc<br /> `asc` - Ascending, sorts from smallest to largest.<br /> `desc` - Descending, sorts from largest to smallest.
*/
direction?: Beehiiv.EmailBlastsListRequestDirection;
/**
* The field that the results are sorted by. Defaults to created<br> `created` - The time in which the segment was first created.<br> `last_sent` - The time the blast was last sent. Measured in seconds since the Unix epoch.
* The field that the results are sorted by. Defaults to created<br /> `created` - The time in which the segment was first created.<br /> `last_sent` - The time the blast was last sent. Measured in seconds since the Unix epoch.
*/
orderBy?: Beehiiv.EmailBlastsListRequestOrderBy;
}
12 changes: 6 additions & 6 deletions src/api/resources/posts/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ export class Posts {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -220,8 +220,8 @@ export class Posts {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -329,8 +329,8 @@ export class Posts {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/posts/client/requests/PostsGetRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as Beehiiv from "../../../..";
*/
export interface PostsGetRequest {
/**
* Optional list of expandable objects.<br>`stats` - Returns statistics about the post(s)<br> `free_web_content` - Returns the web HTML rendered to a free reader<br> `free_email_content` - Returns the email HTML rendered to a free reader<br> `free_rss_content` - Returns the RSS feed HTML<br> `premium_web_content` - Returns the web HTML rendered to a premium reader<br> `premium_email_content` - Returns the email HTML rendered to a premium reader
* Optional list of expandable objects.<br />`stats` - Returns statistics about the post(s)<br /> `free_web_content` - Returns the web HTML rendered to a free reader<br /> `free_email_content` - Returns the email HTML rendered to a free reader<br /> `free_rss_content` - Returns the RSS feed HTML<br /> `premium_web_content` - Returns the web HTML rendered to a premium reader<br /> `premium_email_content` - Returns the email HTML rendered to a premium reader
*/
expand?: Beehiiv.PostsGetRequestExpandItem | Beehiiv.PostsGetRequestExpandItem[];
}
16 changes: 8 additions & 8 deletions src/api/resources/posts/client/requests/PostsListRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,43 @@ import * as Beehiiv from "../../../..";
*/
export interface PostsListRequest {
/**
* Optional list of expandable objects.<br>`stats` - Returns statistics about the post(s)<br> `free_web_content` - Returns the web HTML rendered to a free reader<br> `free_email_content` - Returns the email HTML rendered to a free reader<br> `free_rss_content` - Returns the RSS feed HTML<br> `premium_web_content` - Returns the web HTML rendered to a premium reader<br> `premium_email_content` - Returns the email HTML rendered to a premium reader
* Optional list of expandable objects.<br />`stats` - Returns statistics about the post(s)<br /> `free_web_content` - Returns the web HTML rendered to a free reader<br /> `free_email_content` - Returns the email HTML rendered to a free reader<br /> `free_rss_content` - Returns the RSS feed HTML<br /> `premium_web_content` - Returns the web HTML rendered to a premium reader<br /> `premium_email_content` - Returns the email HTML rendered to a premium reader
*/
expand?: Beehiiv.PostsListRequestExpandItem | Beehiiv.PostsListRequestExpandItem[];
/**
* Optionally filter the results by audience
*/
audience?: Beehiiv.PostsListRequestAudience;
/**
* Optionally filter the results by platform.<br>`web` - Posts only published to web.<br>`email` - Posts only published to email.<br>`both` - Posts published to email and web.<br>`all` - Does not restrict results by platform.
* Optionally filter the results by platform.<br />`web` - Posts only published to web.<br />`email` - Posts only published to email.<br />`both` - Posts published to email and web.<br />`all` - Does not restrict results by platform.
*/
platform?: Beehiiv.PostsListRequestPlatform;
/**
* Optionally filter the results by the status of the post.<br>`draft` - not been scheduled.<br>`confirmed` - The post will be active after the `scheduled_at`.<br>`archived` - The post is no longer active.<br>`all` - Does not restrict results by status.
* Optionally filter the results by the status of the post.<br />`draft` - not been scheduled.<br />`confirmed` - The post will be active after the `scheduled_at`.<br />`archived` - The post is no longer active.<br />`all` - Does not restrict results by status.
*/
status?: Beehiiv.PostsListRequestStatus;
/**
* Optionally filter posts by content_tags. Adding a content tag will return any post with that content tag associated to it.<br>Example: Filtering for `content_tags: ["sales","closing"]` will return results of posts that have _either_ sales or closing content_tags.
* Optionally filter posts by content_tags. Adding a content tag will return any post with that content tag associated to it.<br />Example: Filtering for `content_tags: ["sales","closing"]` will return results of posts that have _either_ sales or closing content_tags.
*/
contentTags?: string | string[];
/**
* A limit on the number of objects to be returned. The limit can range between 1 and 100, and the default is 10.
*/
limit?: number;
/**
* Pagination returns the results in pages. Each page contains the number of results specified by the `limit` (default: 10).<br>If not specified, results 1-10 from page 1 will be returned.
* Pagination returns the results in pages. Each page contains the number of results specified by the `limit` (default: 10).<br />If not specified, results 1-10 from page 1 will be returned.
*/
page?: number;
/**
* The field that the results are sorted by. Defaults to created<br> `created` - The time in which the post was first created.<br> `publish_date` - The time the post was set to be published.<br> `displayed_date` - The time displayed in place of the `publish_date`. If no `displayed_date` was set, it will default to the `publish_date`
* The field that the results are sorted by. Defaults to created<br /> `created` - The time in which the post was first created.<br /> `publish_date` - The time the post was set to be published.<br /> `displayed_date` - The time displayed in place of the `publish_date`. If no `displayed_date` was set, it will default to the `publish_date`
*/
orderBy?: Beehiiv.PostsListRequestOrderBy;
/**
* The direction that the results are sorted in. Defaults to asc<br> `asc` - Ascending, sorts from smallest to largest.<br> `desc` - Descending, sorts from largest to smallest.
* The direction that the results are sorted in. Defaults to asc<br /> `asc` - Ascending, sorts from smallest to largest.<br /> `desc` - Descending, sorts from largest to smallest.
*/
direction?: Beehiiv.PostsListRequestDirection;
/**
* Optionally filter the results by the `hidden_from_feed` attribute of the post.<br>`all` - Does not restrict results by `hidden_from_feed`.<br>`true` - Only return posts hidden from the feed.<br>`false` - Only return posts that are visible on the feed.
* Optionally filter the results by the `hidden_from_feed` attribute of the post.<br />`all` - Does not restrict results by `hidden_from_feed`.<br />`true` - Only return posts hidden from the feed.<br />`false` - Only return posts that are visible on the feed.
*/
hiddenFromFeed?: Beehiiv.PostsListRequestHiddenFromFeed;
}
8 changes: 4 additions & 4 deletions src/api/resources/publications/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export class Publications {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -193,8 +193,8 @@ export class Publications {
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "0.1.2",
"X-Fern-SDK-Name": "beehiiv",
"X-Fern-SDK-Version": "0.1.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
Loading

0 comments on commit 089e856

Please sign in to comment.