Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"cliVersion": "5.10.2",
"cliVersion": "5.18.1",
"generatorName": "fernapi/fern-typescript-sdk",
"generatorVersion": "3.69.0",
"generatorVersion": "3.69.2",
"generatorConfig": {
"namespaceExport": "Junction",
"noSerdeLayer": false,
Expand All @@ -13,10 +13,10 @@
"packageManager": "pnpm",
"testFramework": "vitest"
},
"originGitCommit": "5f82089cf81f14dcaa4eabeffe1c781fb1679c6e",
"originGitCommit": "3f979ee1e4cc799ef18b1ea8d8565a2dc32c5abf",
"originGitCommitIsDirty": true,
"invokedBy": "ci",
"requestedVersion": "AUTO",
"ciProvider": "unknown",
"sdkVersion": "1.0.0"
"sdkVersion": "1.0.1"
}
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ jobs:
needs: [ compile, test ]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: read # Required for checkout
id-token: write # Required for OIDC
steps:
- name: Checkout repo
uses: actions/checkout@v6
Expand All @@ -67,7 +70,6 @@ jobs:

- name: Publish to npm
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
publish() { # use latest npm to ensure OIDC support
npx -y npm@latest publish "$@"
}
Expand All @@ -85,6 +87,4 @@ jobs:
else
publish --access public
fi
fi
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
fi
9 changes: 9 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 1.0.1 - 2026-05-07
* chore: deprecate sleep stream method
* Mark the `GetStreamBySleepId` method on `SleepClient` as deprecated via
* a `@deprecated` JSDoc tag. This signals to consumers that the method
* should no longer be used and may be removed in a future release.
* Key changes:
* Added `@deprecated` annotation to `SleepClient.GetStreamBySleepId`
* 🌿 Generated with Fern

## 1.0.0 - 2026-05-06
* Initial SDK generation
* 🌿 Generated with Fern
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@junction-api/sdk",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"repository": {
"type": "git",
Expand Down
252 changes: 126 additions & 126 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@junction-api/sdk",
"X-Fern-SDK-Version": "1.0.0",
"User-Agent": "@junction-api/sdk/1.0.0",
"X-Fern-SDK-Version": "1.0.1",
"User-Agent": "@junction-api/sdk/1.0.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
2 changes: 2 additions & 0 deletions src/api/resources/sleep/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ export class SleepClient {
}

/**
* @deprecated
*
* Get Sleep stream for a user_id
*
* @param {Junction.GetStreamBySleepIdSleepRequest} request
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SDK_VERSION = "1.0.0";
export const SDK_VERSION = "1.0.1";
272 changes: 136 additions & 136 deletions tests/wire/labTests.test.ts

Large diffs are not rendered by default.

272 changes: 136 additions & 136 deletions tests/wire/sleep.test.ts

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions tests/wire/team.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,16 @@ describe("TeamClient", () => {
user_id: "56bd81c9-6219-4000-a775-ae85526eba18",
team_id: "56bd81c9-6219-4000-a775-ae85526eba18",
client_user_id: "ZTEwZjNjMjctOTI2ZS00M2Vm",
created_on: "2026-05-05T13:33:56Z",
created_on: "2026-05-07T08:27:47Z",
connected_sources: [
{
provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" },
created_on: "2026-05-05T13:33:56Z",
created_on: "2026-05-07T08:27:47Z",
source: { name: "Oura", slug: "oura", logo: "logo_url" },
},
],
fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-05-05T13:33:56Z" },
fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-05T13:33:56Z" },
fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-05-07T08:27:47Z" },
fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-07T08:27:47Z" },
ingestion_start: "ingestion_start",
ingestion_end: "ingestion_end",
},
Expand All @@ -162,15 +162,15 @@ describe("TeamClient", () => {
userId: "56bd81c9-6219-4000-a775-ae85526eba18",
teamId: "56bd81c9-6219-4000-a775-ae85526eba18",
clientUserId: "ZTEwZjNjMjctOTI2ZS00M2Vm",
createdOn: new Date("2026-05-05T13:33:56.000Z"),
createdOn: new Date("2026-05-07T08:27:47.000Z"),
connectedSources: [
{
provider: {
name: "Oura",
slug: "oura",
logo: "https://logo_url.com",
},
createdOn: new Date("2026-05-05T13:33:56.000Z"),
createdOn: new Date("2026-05-07T08:27:47.000Z"),
source: {
name: "Oura",
slug: "oura",
Expand All @@ -181,12 +181,12 @@ describe("TeamClient", () => {
fallbackTimeZone: {
id: "Europe/London",
sourceSlug: "manual",
updatedAt: new Date("2026-05-05T13:33:56.000Z"),
updatedAt: new Date("2026-05-07T08:27:47.000Z"),
},
fallbackBirthDate: {
value: "1989-09-12",
sourceSlug: "manual",
updatedAt: new Date("2026-05-05T13:33:56.000Z"),
updatedAt: new Date("2026-05-07T08:27:47.000Z"),
},
ingestionStart: "ingestion_start",
ingestionEnd: "ingestion_end",
Expand Down
40 changes: 20 additions & 20 deletions tests/wire/testkit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ describe("TestkitClient", () => {
};
const rawResponseBody = {
order: {
user_id: "4eddb457-d362-4886-b4c7-f625923e6886",
id: "67ad4876-5346-4b51-9ef9-429a5978752e",
team_id: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9",
user_id: "4366053a-b9de-4008-b46a-3b3e1d97e4b6",
id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67",
team_id: "5d056033-0045-425b-b03d-08dc2b7815f8",
patient_details: {
first_name: "first_name",
last_name: "last_name",
Expand Down Expand Up @@ -118,9 +118,9 @@ describe("TestkitClient", () => {
details: {
type: "testkit",
data: {
id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61",
id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13",
shipment: {
id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed",
id: "c8610353-2da8-4703-8a4b-afdeedc35181",
outbound_tracking_number: "<outbound_tracking_number>",
outbound_tracking_url: "<outbound_tracking_url>",
inbound_tracking_number: "<inbound_tracking_number>",
Expand Down Expand Up @@ -230,9 +230,9 @@ describe("TestkitClient", () => {
});
expect(response).toEqual({
order: {
userId: "4eddb457-d362-4886-b4c7-f625923e6886",
id: "67ad4876-5346-4b51-9ef9-429a5978752e",
teamId: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9",
userId: "4366053a-b9de-4008-b46a-3b3e1d97e4b6",
id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67",
teamId: "5d056033-0045-425b-b03d-08dc2b7815f8",
patientDetails: {
firstName: "first_name",
lastName: "last_name",
Expand Down Expand Up @@ -332,9 +332,9 @@ describe("TestkitClient", () => {
details: {
type: "testkit",
data: {
id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61",
id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13",
shipment: {
id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed",
id: "c8610353-2da8-4703-8a4b-afdeedc35181",
outboundTrackingNumber: "<outbound_tracking_number>",
outboundTrackingUrl: "<outbound_tracking_url>",
inboundTrackingNumber: "<inbound_tracking_number>",
Expand Down Expand Up @@ -498,9 +498,9 @@ describe("TestkitClient", () => {
};
const rawResponseBody = {
order: {
user_id: "4eddb457-d362-4886-b4c7-f625923e6886",
id: "67ad4876-5346-4b51-9ef9-429a5978752e",
team_id: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9",
user_id: "4366053a-b9de-4008-b46a-3b3e1d97e4b6",
id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67",
team_id: "5d056033-0045-425b-b03d-08dc2b7815f8",
patient_details: {
first_name: "first_name",
last_name: "last_name",
Expand Down Expand Up @@ -594,9 +594,9 @@ describe("TestkitClient", () => {
details: {
type: "testkit",
data: {
id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61",
id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13",
shipment: {
id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed",
id: "c8610353-2da8-4703-8a4b-afdeedc35181",
outbound_tracking_number: "<outbound_tracking_number>",
outbound_tracking_url: "<outbound_tracking_url>",
inbound_tracking_number: "<inbound_tracking_number>",
Expand Down Expand Up @@ -701,9 +701,9 @@ describe("TestkitClient", () => {
});
expect(response).toEqual({
order: {
userId: "4eddb457-d362-4886-b4c7-f625923e6886",
id: "67ad4876-5346-4b51-9ef9-429a5978752e",
teamId: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9",
userId: "4366053a-b9de-4008-b46a-3b3e1d97e4b6",
id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67",
teamId: "5d056033-0045-425b-b03d-08dc2b7815f8",
patientDetails: {
firstName: "first_name",
lastName: "last_name",
Expand Down Expand Up @@ -803,9 +803,9 @@ describe("TestkitClient", () => {
details: {
type: "testkit",
data: {
id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61",
id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13",
shipment: {
id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed",
id: "c8610353-2da8-4703-8a4b-afdeedc35181",
outboundTrackingNumber: "<outbound_tracking_number>",
outboundTrackingUrl: "<outbound_tracking_url>",
inboundTrackingNumber: "<inbound_tracking_number>",
Expand Down
Loading
Loading