From e3f0008b1a17b498ef35ae98002a1c2534a193f8 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 7 May 2026 09:01:24 +0000 Subject: [PATCH] chore: deprecate sleep stream method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .fern/metadata.json | 6 +- changelog.md | 9 + package.json | 2 +- src/BaseClient.ts | 4 +- src/api/resources/sleep/client/Client.ts | 2 + src/version.ts | 2 +- tests/wire/labTests.test.ts | 272 +++++++++++------------ tests/wire/sleep.test.ts | 272 +++++++++++------------ tests/wire/team.test.ts | 16 +- tests/wire/testkit.test.ts | 40 ++-- tests/wire/user.test.ts | 64 +++--- tests/wire/vitals.test.ts | 16 +- 12 files changed, 358 insertions(+), 347 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index b42ecf2..37a4a52 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.10.2", + "cliVersion": "5.18.1", "generatorName": "fernapi/fern-typescript-sdk", "generatorVersion": "3.69.0", "generatorConfig": { @@ -13,10 +13,10 @@ "packageManager": "pnpm", "testFramework": "vitest" }, - "originGitCommit": "5f82089cf81f14dcaa4eabeffe1c781fb1679c6e", + "originGitCommit": "068aad226bf1651e28d27513f78163aa75f1a9d9", "originGitCommitIsDirty": true, "invokedBy": "ci", "requestedVersion": "AUTO", "ciProvider": "unknown", - "sdkVersion": "1.0.0" + "sdkVersion": "1.0.1" } diff --git a/changelog.md b/changelog.md index 9d7930a..293078a 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/package.json b/package.json index e7148b4..fce6de2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@junction-api/sdk", - "version": "1.0.0", + "version": "1.0.1", "private": false, "repository": { "type": "git", diff --git a/src/BaseClient.ts b/src/BaseClient.ts index e5961bf..77c1185 100644 --- a/src/BaseClient.ts +++ b/src/BaseClient.ts @@ -59,8 +59,8 @@ export function normalizeClientOptions { const rawResponseBody = { orders: [ { - 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: { dob: "2020-01-01T00:00:00Z", gender: "male" }, patient_address: { receiver_name: "John Doe", @@ -1483,9 +1483,9 @@ describe("LabTestsClient", () => { 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_url: "", inbound_tracking_number: "", @@ -1596,9 +1596,9 @@ describe("LabTestsClient", () => { expect(response).toEqual({ orders: [ { - 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: { dob: new Date("2020-01-01T00:00:00.000Z"), gender: "male", @@ -1672,9 +1672,9 @@ describe("LabTestsClient", () => { 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: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -1896,10 +1896,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawRequestBody = { booking_key: "booking_key" }; const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -1946,10 +1946,10 @@ describe("LabTestsClient", () => { }, }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -2029,10 +2029,10 @@ describe("LabTestsClient", () => { provider: "getlabs", }; const rawResponseBody = { - id: "466a125e-887f-478b-beb8-cc8277036362", - user_id: "d1c2ac01-53d0-43f7-b8db-e961a212d6ae", - order_id: "db507174-482d-46d1-8789-720b9b578552", - order_transaction_id: "5421f8f6-1844-4516-8afd-9fd329ce79d4", + id: "a8f9f33d-931e-4a69-b731-809f56a7d089", + user_id: "81afad80-db50-4d13-887f-5409413c57f4", + order_id: "12eab30c-28b7-4d15-b9e3-24332b429e54", + order_transaction_id: "4f1162b9-88a6-4b87-ae6e-345035b6fc7d", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -2080,10 +2080,10 @@ describe("LabTestsClient", () => { provider: "getlabs", }); expect(response).toEqual({ - id: "466a125e-887f-478b-beb8-cc8277036362", - userId: "d1c2ac01-53d0-43f7-b8db-e961a212d6ae", - orderId: "db507174-482d-46d1-8789-720b9b578552", - orderTransactionId: "5421f8f6-1844-4516-8afd-9fd329ce79d4", + id: "a8f9f33d-931e-4a69-b731-809f56a7d089", + userId: "81afad80-db50-4d13-887f-5409413c57f4", + orderId: "12eab30c-28b7-4d15-b9e3-24332b429e54", + orderTransactionId: "4f1162b9-88a6-4b87-ae6e-345035b6fc7d", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -2160,10 +2160,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawRequestBody = { booking_key: "booking_key" }; const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -2210,10 +2210,10 @@ describe("LabTestsClient", () => { }, }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -2290,10 +2290,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawRequestBody = { cancellation_reason_id: "cancellation_reason_id" }; const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -2338,10 +2338,10 @@ describe("LabTestsClient", () => { cancellationReasonId: "cancellation_reason_id", }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -2416,7 +2416,7 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawResponseBody = [ - { id: "853c53ee-b2cb-4929-bc1e-98458264f228", name: "I'm feeling sick", is_refundable: true }, + { id: "b0f094f9-c383-44de-9359-f12c38f03808", name: "I'm feeling sick", is_refundable: true }, ]; server @@ -2430,7 +2430,7 @@ describe("LabTestsClient", () => { const response = await client.labTests.getPhlebotomyAppointmentCancellationReason(); expect(response).toEqual([ { - id: "853c53ee-b2cb-4929-bc1e-98458264f228", + id: "b0f094f9-c383-44de-9359-f12c38f03808", name: "I'm feeling sick", isRefundable: true, }, @@ -2442,10 +2442,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -2488,10 +2488,10 @@ describe("LabTestsClient", () => { orderId: "order_id", }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -3190,10 +3190,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawRequestBody = { booking_key: "booking_key" }; const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -3240,10 +3240,10 @@ describe("LabTestsClient", () => { }, }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -3320,10 +3320,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawRequestBody = { booking_key: "booking_key" }; const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -3370,10 +3370,10 @@ describe("LabTestsClient", () => { }, }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -3450,10 +3450,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawRequestBody = { cancellationReasonId: "cancellationReasonId" }; const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -3498,10 +3498,10 @@ describe("LabTestsClient", () => { cancellationReasonId: "cancellationReasonId", }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -3576,7 +3576,7 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawResponseBody = [ - { id: "853c53ee-b2cb-4929-bc1e-98458264f228", name: "I'm feeling sick", is_refundable: true }, + { id: "b0f094f9-c383-44de-9359-f12c38f03808", name: "I'm feeling sick", is_refundable: true }, ]; server @@ -3590,7 +3590,7 @@ describe("LabTestsClient", () => { const response = await client.labTests.getPscAppointmentCancellationReason(); expect(response).toEqual([ { - id: "853c53ee-b2cb-4929-bc1e-98458264f228", + id: "b0f094f9-c383-44de-9359-f12c38f03808", name: "I'm feeling sick", isRefundable: true, }, @@ -3602,10 +3602,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -3648,10 +3648,10 @@ describe("LabTestsClient", () => { orderId: "order_id", }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -3724,9 +3724,9 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawResponseBody = { - 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", @@ -3817,9 +3817,9 @@ describe("LabTestsClient", () => { 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_url: "", inbound_tracking_number: "", @@ -3918,9 +3918,9 @@ describe("LabTestsClient", () => { orderId: "order_id", }); expect(response).toEqual({ - 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", @@ -4023,9 +4023,9 @@ describe("LabTestsClient", () => { 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: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -4155,9 +4155,9 @@ describe("LabTestsClient", () => { }; 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", @@ -4251,9 +4251,9 @@ describe("LabTestsClient", () => { 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_url: "", inbound_tracking_number: "", @@ -4363,9 +4363,9 @@ describe("LabTestsClient", () => { }); 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", @@ -4465,9 +4465,9 @@ describe("LabTestsClient", () => { 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: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -4641,9 +4641,9 @@ describe("LabTestsClient", () => { }; 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", @@ -4737,9 +4737,9 @@ describe("LabTestsClient", () => { 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_url: "", inbound_tracking_number: "", @@ -4854,9 +4854,9 @@ describe("LabTestsClient", () => { }); 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", @@ -4956,9 +4956,9 @@ describe("LabTestsClient", () => { 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: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -5126,9 +5126,9 @@ describe("LabTestsClient", () => { 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", @@ -5222,9 +5222,9 @@ describe("LabTestsClient", () => { 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_url: "", inbound_tracking_number: "", @@ -5318,9 +5318,9 @@ describe("LabTestsClient", () => { }); 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", @@ -5420,9 +5420,9 @@ describe("LabTestsClient", () => { 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: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -5594,9 +5594,9 @@ describe("LabTestsClient", () => { 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", @@ -5690,9 +5690,9 @@ describe("LabTestsClient", () => { 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_url: "", inbound_tracking_number: "", @@ -5786,9 +5786,9 @@ describe("LabTestsClient", () => { }); 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", @@ -5888,9 +5888,9 @@ describe("LabTestsClient", () => { 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: "", outboundTrackingUrl: "", inboundTrackingNumber: "", diff --git a/tests/wire/sleep.test.ts b/tests/wire/sleep.test.ts index 146f2bc..1185aa0 100644 --- a/tests/wire/sleep.test.ts +++ b/tests/wire/sleep.test.ts @@ -42,67 +42,67 @@ describe("SleepClient", () => { source: { provider: "oura", type: "unknown", device_id: "550e8400-e29b-41d4-a716-446655440000" }, sleep_stream: { hrv: [ - { id: 0, unit: "rmssd", timestamp: "2026-05-05T13:33:54Z", value: 4 }, - { id: 1, unit: "rmssd", timestamp: "2026-05-05T13:34:24Z", value: 95 }, - { id: 2, unit: "rmssd", timestamp: "2026-05-05T13:34:54Z", value: 87 }, - { id: 3, unit: "rmssd", timestamp: "2026-05-05T13:35:24Z", value: 52 }, - { id: 4, unit: "rmssd", timestamp: "2026-05-05T13:35:54Z", value: 38 }, + { id: 0, unit: "rmssd", timestamp: "2026-05-07T08:27:46Z", value: 30 }, + { id: 1, unit: "rmssd", timestamp: "2026-05-07T08:28:16Z", value: 44 }, + { id: 2, unit: "rmssd", timestamp: "2026-05-07T08:28:46Z", value: 1 }, + { id: 3, unit: "rmssd", timestamp: "2026-05-07T08:29:16Z", value: 97 }, + { id: 4, unit: "rmssd", timestamp: "2026-05-07T08:29:46Z", value: 11 }, ], heartrate: [ - { id: 0, unit: "bpm", timestamp: "2026-05-05T13:33:54Z", value: 79 }, - { id: 1, unit: "bpm", timestamp: "2026-05-05T13:34:24Z", value: 156 }, - { id: 2, unit: "bpm", timestamp: "2026-05-05T13:34:54Z", value: 183 }, - { id: 3, unit: "bpm", timestamp: "2026-05-05T13:35:24Z", value: 4 }, - { id: 4, unit: "bpm", timestamp: "2026-05-05T13:35:54Z", value: 176 }, + { id: 0, unit: "bpm", timestamp: "2026-05-07T08:27:46Z", value: 170 }, + { id: 1, unit: "bpm", timestamp: "2026-05-07T08:28:16Z", value: 110 }, + { id: 2, unit: "bpm", timestamp: "2026-05-07T08:28:46Z", value: 122 }, + { id: 3, unit: "bpm", timestamp: "2026-05-07T08:29:16Z", value: 60 }, + { id: 4, unit: "bpm", timestamp: "2026-05-07T08:29:46Z", value: 151 }, ], hypnogram: [ { id: 0, unit: "stage", - timestamp: "2026-05-05T13:33:54Z", + timestamp: "2026-05-07T08:27:46Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 0, + value: 1, }, { id: 1, unit: "stage", - timestamp: "2026-05-05T13:34:24Z", + timestamp: "2026-05-07T08:28:16Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 1, + value: -1, }, { id: 2, unit: "stage", - timestamp: "2026-05-05T13:34:54Z", + timestamp: "2026-05-07T08:28:46Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 2, + value: -1, }, { id: 3, unit: "stage", - timestamp: "2026-05-05T13:35:24Z", + timestamp: "2026-05-07T08:29:16Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 2, + value: 1, }, { id: 4, unit: "stage", - timestamp: "2026-05-05T13:35:54Z", + timestamp: "2026-05-07T08:29:46Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: -1, + value: 2, }, ], respiratory_rate: [ - { id: 0, unit: "bpm", timestamp: "2026-05-05T13:33:54Z", value: 30 }, - { id: 1, unit: "bpm", timestamp: "2026-05-05T13:34:24Z", value: 21 }, - { id: 2, unit: "bpm", timestamp: "2026-05-05T13:34:54Z", value: 8 }, - { id: 3, unit: "bpm", timestamp: "2026-05-05T13:35:24Z", value: 29 }, - { id: 4, unit: "bpm", timestamp: "2026-05-05T13:35:54Z", value: 22 }, + { id: 0, unit: "bpm", timestamp: "2026-05-07T08:27:46Z", value: 14 }, + { id: 1, unit: "bpm", timestamp: "2026-05-07T08:28:16Z", value: 12 }, + { id: 2, unit: "bpm", timestamp: "2026-05-07T08:28:46Z", value: 20 }, + { id: 3, unit: "bpm", timestamp: "2026-05-07T08:29:16Z", value: 23 }, + { id: 4, unit: "bpm", timestamp: "2026-05-07T08:29:46Z", value: 15 }, ], }, created_at: "2023-02-27T20:31:24Z", @@ -165,138 +165,138 @@ describe("SleepClient", () => { { id: 0, unit: "rmssd", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 4, + timestamp: new Date("2026-05-07T08:27:46.000Z"), + value: 30, }, { id: 1, unit: "rmssd", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 95, + timestamp: new Date("2026-05-07T08:28:16.000Z"), + value: 44, }, { id: 2, unit: "rmssd", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 87, + timestamp: new Date("2026-05-07T08:28:46.000Z"), + value: 1, }, { id: 3, unit: "rmssd", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 52, + timestamp: new Date("2026-05-07T08:29:16.000Z"), + value: 97, }, { id: 4, unit: "rmssd", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 38, + timestamp: new Date("2026-05-07T08:29:46.000Z"), + value: 11, }, ], heartrate: [ { id: 0, unit: "bpm", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 79, + timestamp: new Date("2026-05-07T08:27:46.000Z"), + value: 170, }, { id: 1, unit: "bpm", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 156, + timestamp: new Date("2026-05-07T08:28:16.000Z"), + value: 110, }, { id: 2, unit: "bpm", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 183, + timestamp: new Date("2026-05-07T08:28:46.000Z"), + value: 122, }, { id: 3, unit: "bpm", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 4, + timestamp: new Date("2026-05-07T08:29:16.000Z"), + value: 60, }, { id: 4, unit: "bpm", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 176, + timestamp: new Date("2026-05-07T08:29:46.000Z"), + value: 151, }, ], hypnogram: [ { id: 0, unit: "stage", - timestamp: new Date("2026-05-05T13:33:54.000Z"), + timestamp: new Date("2026-05-07T08:27:46.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 0, + value: 1, }, { id: 1, unit: "stage", - timestamp: new Date("2026-05-05T13:34:24.000Z"), + timestamp: new Date("2026-05-07T08:28:16.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 1, + value: -1, }, { id: 2, unit: "stage", - timestamp: new Date("2026-05-05T13:34:54.000Z"), + timestamp: new Date("2026-05-07T08:28:46.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 2, + value: -1, }, { id: 3, unit: "stage", - timestamp: new Date("2026-05-05T13:35:24.000Z"), + timestamp: new Date("2026-05-07T08:29:16.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 2, + value: 1, }, { id: 4, unit: "stage", - timestamp: new Date("2026-05-05T13:35:54.000Z"), + timestamp: new Date("2026-05-07T08:29:46.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: -1, + value: 2, }, ], respiratoryRate: [ { id: 0, unit: "bpm", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 30, + timestamp: new Date("2026-05-07T08:27:46.000Z"), + value: 14, }, { id: 1, unit: "bpm", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 21, + timestamp: new Date("2026-05-07T08:28:16.000Z"), + value: 12, }, { id: 2, unit: "bpm", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 8, + timestamp: new Date("2026-05-07T08:28:46.000Z"), + value: 20, }, { id: 3, unit: "bpm", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 29, + timestamp: new Date("2026-05-07T08:29:16.000Z"), + value: 23, }, { id: 4, unit: "bpm", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 22, + timestamp: new Date("2026-05-07T08:29:46.000Z"), + value: 15, }, ], }, @@ -420,46 +420,46 @@ describe("SleepClient", () => { const rawResponseBody = { hrv: [ - { id: 0, timezone_offset: 1, type: "type", unit: "rmssd", timestamp: "2026-05-05T13:33:54Z", value: 4 }, { - id: 1, + id: 0, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-05-05T13:34:24Z", - value: 95, + timestamp: "2026-05-07T08:27:46Z", + value: 30, }, { - id: 2, + id: 1, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-05-05T13:34:54Z", - value: 87, + timestamp: "2026-05-07T08:28:16Z", + value: 44, }, + { id: 2, timezone_offset: 1, type: "type", unit: "rmssd", timestamp: "2026-05-07T08:28:46Z", value: 1 }, { id: 3, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-05-05T13:35:24Z", - value: 52, + timestamp: "2026-05-07T08:29:16Z", + value: 97, }, { id: 4, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-05-05T13:35:54Z", - value: 38, + timestamp: "2026-05-07T08:29:46Z", + value: 11, }, ], heartrate: [ - { id: 0, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:33:54Z", value: 79 }, - { id: 1, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:34:24Z", value: 156 }, - { id: 2, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:34:54Z", value: 183 }, - { id: 3, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:35:24Z", value: 4 }, - { id: 4, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:35:54Z", value: 176 }, + { id: 0, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:27:46Z", value: 170 }, + { id: 1, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:28:16Z", value: 110 }, + { id: 2, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:28:46Z", value: 122 }, + { id: 3, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:29:16Z", value: 60 }, + { id: 4, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:29:46Z", value: 151 }, ], hypnogram: [ { @@ -467,58 +467,58 @@ describe("SleepClient", () => { timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-05-05T13:33:54Z", + timestamp: "2026-05-07T08:27:46Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 0, + value: 1, }, { id: 1, timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-05-05T13:34:24Z", + timestamp: "2026-05-07T08:28:16Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 1, + value: -1, }, { id: 2, timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-05-05T13:34:54Z", + timestamp: "2026-05-07T08:28:46Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 2, + value: -1, }, { id: 3, timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-05-05T13:35:24Z", + timestamp: "2026-05-07T08:29:16Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 2, + value: 1, }, { id: 4, timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-05-05T13:35:54Z", + timestamp: "2026-05-07T08:29:46Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: -1, + value: 2, }, ], respiratory_rate: [ - { id: 0, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:33:54Z", value: 30 }, - { id: 1, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:34:24Z", value: 21 }, - { id: 2, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:34:54Z", value: 8 }, - { id: 3, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:35:24Z", value: 29 }, - { id: 4, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:35:54Z", value: 22 }, + { id: 0, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:27:46Z", value: 14 }, + { id: 1, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:28:16Z", value: 12 }, + { id: 2, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:28:46Z", value: 20 }, + { id: 3, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:29:16Z", value: 23 }, + { id: 4, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:29:46Z", value: 15 }, ], }; @@ -540,40 +540,40 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 4, + timestamp: new Date("2026-05-07T08:27:46.000Z"), + value: 30, }, { id: 1, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 95, + timestamp: new Date("2026-05-07T08:28:16.000Z"), + value: 44, }, { id: 2, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 87, + timestamp: new Date("2026-05-07T08:28:46.000Z"), + value: 1, }, { id: 3, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 52, + timestamp: new Date("2026-05-07T08:29:16.000Z"), + value: 97, }, { id: 4, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 38, + timestamp: new Date("2026-05-07T08:29:46.000Z"), + value: 11, }, ], heartrate: [ @@ -582,40 +582,40 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 79, + timestamp: new Date("2026-05-07T08:27:46.000Z"), + value: 170, }, { id: 1, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 156, + timestamp: new Date("2026-05-07T08:28:16.000Z"), + value: 110, }, { id: 2, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 183, + timestamp: new Date("2026-05-07T08:28:46.000Z"), + value: 122, }, { id: 3, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 4, + timestamp: new Date("2026-05-07T08:29:16.000Z"), + value: 60, }, { id: 4, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 176, + timestamp: new Date("2026-05-07T08:29:46.000Z"), + value: 151, }, ], hypnogram: [ @@ -624,50 +624,50 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-05-05T13:33:54.000Z"), + timestamp: new Date("2026-05-07T08:27:46.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 0, + value: 1, }, { id: 1, timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-05-05T13:34:24.000Z"), + timestamp: new Date("2026-05-07T08:28:16.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 1, + value: -1, }, { id: 2, timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-05-05T13:34:54.000Z"), + timestamp: new Date("2026-05-07T08:28:46.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 2, + value: -1, }, { id: 3, timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-05-05T13:35:24.000Z"), + timestamp: new Date("2026-05-07T08:29:16.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 2, + value: 1, }, { id: 4, timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-05-05T13:35:54.000Z"), + timestamp: new Date("2026-05-07T08:29:46.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: -1, + value: 2, }, ], respiratoryRate: [ @@ -676,40 +676,40 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 30, + timestamp: new Date("2026-05-07T08:27:46.000Z"), + value: 14, }, { id: 1, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 21, + timestamp: new Date("2026-05-07T08:28:16.000Z"), + value: 12, }, { id: 2, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 8, + timestamp: new Date("2026-05-07T08:28:46.000Z"), + value: 20, }, { id: 3, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 29, + timestamp: new Date("2026-05-07T08:29:16.000Z"), + value: 23, }, { id: 4, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 22, + timestamp: new Date("2026-05-07T08:29:46.000Z"), + value: 15, }, ], }); diff --git a/tests/wire/team.test.ts b/tests/wire/team.test.ts index 9f6b100..b338c06 100644 --- a/tests/wire/team.test.ts +++ b/tests/wire/team.test.ts @@ -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", }, @@ -162,7 +162,7 @@ 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: { @@ -170,7 +170,7 @@ describe("TeamClient", () => { 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", @@ -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", diff --git a/tests/wire/testkit.test.ts b/tests/wire/testkit.test.ts index a840d57..677eeed 100644 --- a/tests/wire/testkit.test.ts +++ b/tests/wire/testkit.test.ts @@ -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", @@ -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_url: "", inbound_tracking_number: "", @@ -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", @@ -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: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -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", @@ -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_url: "", inbound_tracking_number: "", @@ -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", @@ -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: "", outboundTrackingUrl: "", inboundTrackingNumber: "", diff --git a/tests/wire/user.test.ts b/tests/wire/user.test.ts index 8c5733f..da29beb 100644 --- a/tests/wire/user.test.ts +++ b/tests/wire/user.test.ts @@ -15,23 +15,23 @@ describe("UserClient", () => { 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", + updated_at: "2026-05-07T08:27:47Z", }, fallback_birth_date: { value: "1989-09-12", source_slug: "manual", - updated_at: "2026-05-05T13:33:56Z", + updated_at: "2026-05-07T08:27:47Z", }, ingestion_start: "ingestion_start", ingestion_end: "ingestion_end", @@ -54,7 +54,7 @@ describe("UserClient", () => { 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: { @@ -62,7 +62,7 @@ describe("UserClient", () => { 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", @@ -73,12 +73,12 @@ describe("UserClient", () => { 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", @@ -111,16 +111,16 @@ describe("UserClient", () => { 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", }; @@ -141,7 +141,7 @@ describe("UserClient", () => { 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: { @@ -149,7 +149,7 @@ describe("UserClient", () => { 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", @@ -160,12 +160,12 @@ describe("UserClient", () => { 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", @@ -982,16 +982,16 @@ describe("UserClient", () => { 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", }; @@ -1011,7 +1011,7 @@ describe("UserClient", () => { 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: { @@ -1019,7 +1019,7 @@ describe("UserClient", () => { 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", @@ -1030,12 +1030,12 @@ describe("UserClient", () => { 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", @@ -1116,16 +1116,16 @@ describe("UserClient", () => { 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", }; @@ -1139,7 +1139,7 @@ describe("UserClient", () => { 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: { @@ -1147,7 +1147,7 @@ describe("UserClient", () => { 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", @@ -1158,12 +1158,12 @@ describe("UserClient", () => { 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", diff --git a/tests/wire/vitals.test.ts b/tests/wire/vitals.test.ts index 50dce65..de705c3 100644 --- a/tests/wire/vitals.test.ts +++ b/tests/wire/vitals.test.ts @@ -2217,7 +2217,7 @@ describe("VitalsClient", () => { unit: "min", timestamp: "2024-01-15T09:30:00Z", start: "2023-02-13T14:57:24Z", - end: "2026-05-05T13:38:54Z", + end: "2026-05-07T08:32:46Z", value: 42, }, ], @@ -2257,7 +2257,7 @@ describe("VitalsClient", () => { unit: "min", timestamp: new Date("2024-01-15T09:30:00.000Z"), start: new Date("2023-02-13T14:57:24.000Z"), - end: new Date("2026-05-05T13:38:54.000Z"), + end: new Date("2026-05-07T08:32:46.000Z"), value: 42, }, ], @@ -4331,7 +4331,7 @@ describe("VitalsClient", () => { oura: [ { source: { provider: "oura", type: "ring" }, - data: [{ unit: "mmHg", timestamp: "2026-05-05T13:33:55Z", systolic: 125, diastolic: 75 }], + data: [{ unit: "mmHg", timestamp: "2026-05-07T08:27:46Z", systolic: 125, diastolic: 75 }], }, ], }, @@ -4366,7 +4366,7 @@ describe("VitalsClient", () => { data: [ { unit: "mmHg", - timestamp: new Date("2026-05-05T13:33:55.000Z"), + timestamp: new Date("2026-05-07T08:27:46.000Z"), systolic: 125, diastolic: 75, }, @@ -4536,7 +4536,7 @@ describe("VitalsClient", () => { unit: "min", timestamp: "2024-01-15T09:30:00Z", start: "2023-02-13T14:57:24Z", - end: "2026-05-05T13:38:54Z", + end: "2026-05-07T08:32:46Z", value: 42, }, ]; @@ -4563,7 +4563,7 @@ describe("VitalsClient", () => { unit: "min", timestamp: new Date("2024-01-15T09:30:00.000Z"), start: new Date("2023-02-13T14:57:24.000Z"), - end: new Date("2026-05-05T13:38:54.000Z"), + end: new Date("2026-05-07T08:32:46.000Z"), value: 42, }, ]); @@ -5994,7 +5994,7 @@ describe("VitalsClient", () => { type: "type", unit: "mmHg", grouping: [{ key: "value" }], - timestamp: "2026-05-05T13:33:55Z", + timestamp: "2026-05-07T08:27:46Z", systolic: 125, diastolic: 75, }, @@ -6025,7 +6025,7 @@ describe("VitalsClient", () => { key: "value", }, ], - timestamp: new Date("2026-05-05T13:33:55.000Z"), + timestamp: new Date("2026-05-07T08:27:46.000Z"), systolic: 125, diastolic: 75, },