From 358289a3583b59569eebd38815c041e65fd0f887 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 6 May 2026 11:16:21 +0000 Subject: [PATCH] chore: deprecate getSleepStream method on SleepClient MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mark the `getSleepStream` method (Get Sleep stream for a user_id) as deprecated via a JSDoc `@deprecated` tag. This signals to consumers that the method should no longer be used and may be removed in a future release, without removing or altering any existing functionality. Key changes: - Added `@deprecated` JSDoc annotation to `getSleepStream` in `SleepClient` 🌿 Generated with Fern --- .fern/metadata.json | 6 +- changelog.md | 10 + 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 | 261 +++++++++++----------- 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, 350 insertions(+), 345 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index b42ecf2..4bd07dd 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.10.2", + "cliVersion": "5.16.0", "generatorName": "fernapi/fern-typescript-sdk", "generatorVersion": "3.69.0", "generatorConfig": { @@ -13,10 +13,10 @@ "packageManager": "pnpm", "testFramework": "vitest" }, - "originGitCommit": "5f82089cf81f14dcaa4eabeffe1c781fb1679c6e", + "originGitCommit": "b86a13ae347b0f20883c905a1c03aaf134912701", "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..efda854 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,13 @@ +## 1.0.1 - 2026-05-06 +* chore: deprecate getSleepStream method on SleepClient +* Mark the `getSleepStream` method (Get Sleep stream for a user_id) as +* deprecated via a JSDoc `@deprecated` tag. This signals to consumers +* that the method should no longer be used and may be removed in a future +* release, without removing or altering any existing functionality. +* Key changes: +* Added `@deprecated` JSDoc annotation to `getSleepStream` in `SleepClient` +* 🌿 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + team_id: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", 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: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + teamId: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", 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: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + user_id: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + order_id: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + order_transaction_id: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + userId: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + orderId: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + orderTransactionId: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "c613c0fb-2e80-4f30-9557-207147c13b0f", + user_id: "df3666be-bd55-4859-8b2b-7e6d24d12588", + order_id: "cfca50f0-8831-4b2d-83db-1c9d0cdc897f", + order_transaction_id: "2708dc49-a039-475e-be70-a2389d4f0943", 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: "c613c0fb-2e80-4f30-9557-207147c13b0f", + userId: "df3666be-bd55-4859-8b2b-7e6d24d12588", + orderId: "cfca50f0-8831-4b2d-83db-1c9d0cdc897f", + orderTransactionId: "2708dc49-a039-475e-be70-a2389d4f0943", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + user_id: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + order_id: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + order_transaction_id: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + userId: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + orderId: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + orderTransactionId: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + user_id: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + order_id: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + order_transaction_id: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + userId: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + orderId: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + orderTransactionId: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "fac9dff8-f688-469a-bf35-1f6af470574a", 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: "fac9dff8-f688-469a-bf35-1f6af470574a", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + user_id: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + order_id: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + order_transaction_id: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + userId: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + orderId: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + orderTransactionId: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + user_id: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + order_id: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + order_transaction_id: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + userId: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + orderId: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + orderTransactionId: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + user_id: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + order_id: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + order_transaction_id: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + userId: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + orderId: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + orderTransactionId: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + user_id: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + order_id: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + order_transaction_id: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + userId: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + orderId: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + orderTransactionId: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "fac9dff8-f688-469a-bf35-1f6af470574a", 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: "fac9dff8-f688-469a-bf35-1f6af470574a", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + user_id: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + order_id: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + order_transaction_id: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "77a650a7-c1b5-47c8-9f2a-a8a201f875c8", + userId: "6a15a3a1-31d0-4baf-bf6d-5de49c3c8e2d", + orderId: "8c96e949-f699-4b6c-b5e0-6e1136becb75", + orderTransactionId: "a0edfa3b-a376-4f5c-81b7-c0eb6368f77f", 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + team_id: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", 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: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + teamId: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -4023,9 +4023,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + team_id: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", 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: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + teamId: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -4465,9 +4465,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + team_id: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", 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: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + teamId: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -4956,9 +4956,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + team_id: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", 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: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + teamId: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -5420,9 +5420,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + team_id: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", 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: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + teamId: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -5888,9 +5888,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", diff --git a/tests/wire/sleep.test.ts b/tests/wire/sleep.test.ts index 146f2bc..64ad33a 100644 --- a/tests/wire/sleep.test.ts +++ b/tests/wire/sleep.test.ts @@ -42,40 +42,40 @@ 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-06T10:59:47Z", value: 90 }, + { id: 1, unit: "rmssd", timestamp: "2026-05-06T11:00:17Z", value: 49 }, + { id: 2, unit: "rmssd", timestamp: "2026-05-06T11:00:47Z", value: 8 }, + { id: 3, unit: "rmssd", timestamp: "2026-05-06T11:01:17Z", value: 6 }, + { id: 4, unit: "rmssd", timestamp: "2026-05-06T11:01:47Z", value: 32 }, ], 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-06T10:59:47Z", value: 54 }, + { id: 1, unit: "bpm", timestamp: "2026-05-06T11:00:17Z", value: 103 }, + { id: 2, unit: "bpm", timestamp: "2026-05-06T11:00:47Z", value: 38 }, + { id: 3, unit: "bpm", timestamp: "2026-05-06T11:01:17Z", value: 147 }, + { id: 4, unit: "bpm", timestamp: "2026-05-06T11:01:47Z", value: 67 }, ], hypnogram: [ { id: 0, unit: "stage", - timestamp: "2026-05-05T13:33:54Z", + timestamp: "2026-05-06T10:59:47Z", 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-06T11:00:17Z", 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-06T11:00:47Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", value: 2, @@ -83,7 +83,7 @@ describe("SleepClient", () => { { id: 3, unit: "stage", - timestamp: "2026-05-05T13:35:24Z", + timestamp: "2026-05-06T11:01:17Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", value: 2, @@ -91,18 +91,18 @@ describe("SleepClient", () => { { id: 4, unit: "stage", - timestamp: "2026-05-05T13:35:54Z", + timestamp: "2026-05-06T11:01:47Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: -1, + value: 1, }, ], 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-06T10:59:47Z", value: 20 }, + { id: 1, unit: "bpm", timestamp: "2026-05-06T11:00:17Z", value: 14 }, + { id: 2, unit: "bpm", timestamp: "2026-05-06T11:00:47Z", value: 18 }, + { id: 3, unit: "bpm", timestamp: "2026-05-06T11:01:17Z", value: 8 }, + { id: 4, unit: "bpm", timestamp: "2026-05-06T11:01:47Z", value: 23 }, ], }, created_at: "2023-02-27T20:31:24Z", @@ -165,87 +165,87 @@ describe("SleepClient", () => { { id: 0, unit: "rmssd", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 4, + timestamp: new Date("2026-05-06T10:59:47.000Z"), + value: 90, }, { id: 1, unit: "rmssd", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 95, + timestamp: new Date("2026-05-06T11:00:17.000Z"), + value: 49, }, { id: 2, unit: "rmssd", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 87, + timestamp: new Date("2026-05-06T11:00:47.000Z"), + value: 8, }, { id: 3, unit: "rmssd", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 52, + timestamp: new Date("2026-05-06T11:01:17.000Z"), + value: 6, }, { id: 4, unit: "rmssd", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 38, + timestamp: new Date("2026-05-06T11:01:47.000Z"), + value: 32, }, ], heartrate: [ { id: 0, unit: "bpm", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 79, + timestamp: new Date("2026-05-06T10:59:47.000Z"), + value: 54, }, { id: 1, unit: "bpm", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 156, + timestamp: new Date("2026-05-06T11:00:17.000Z"), + value: 103, }, { id: 2, unit: "bpm", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 183, + timestamp: new Date("2026-05-06T11:00:47.000Z"), + value: 38, }, { id: 3, unit: "bpm", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 4, + timestamp: new Date("2026-05-06T11:01:17.000Z"), + value: 147, }, { id: 4, unit: "bpm", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 176, + timestamp: new Date("2026-05-06T11:01:47.000Z"), + value: 67, }, ], hypnogram: [ { id: 0, unit: "stage", - timestamp: new Date("2026-05-05T13:33:54.000Z"), + timestamp: new Date("2026-05-06T10:59:47.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-06T11:00:17.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-06T11:00:47.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), value: 2, @@ -253,7 +253,7 @@ describe("SleepClient", () => { { id: 3, unit: "stage", - timestamp: new Date("2026-05-05T13:35:24.000Z"), + timestamp: new Date("2026-05-06T11:01:17.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), value: 2, @@ -261,42 +261,42 @@ describe("SleepClient", () => { { id: 4, unit: "stage", - timestamp: new Date("2026-05-05T13:35:54.000Z"), + timestamp: new Date("2026-05-06T11:01:47.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: -1, + value: 1, }, ], respiratoryRate: [ { id: 0, unit: "bpm", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 30, + timestamp: new Date("2026-05-06T10:59:47.000Z"), + value: 20, }, { id: 1, unit: "bpm", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 21, + timestamp: new Date("2026-05-06T11:00:17.000Z"), + value: 14, }, { id: 2, unit: "bpm", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 8, + timestamp: new Date("2026-05-06T11:00:47.000Z"), + value: 18, }, { id: 3, unit: "bpm", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 29, + timestamp: new Date("2026-05-06T11:01:17.000Z"), + value: 8, }, { id: 4, unit: "bpm", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 22, + timestamp: new Date("2026-05-06T11:01:47.000Z"), + value: 23, }, ], }, @@ -420,46 +420,39 @@ describe("SleepClient", () => { const rawResponseBody = { hrv: [ - { id: 0, timezone_offset: 1, type: "type", unit: "rmssd", timestamp: "2026-05-05T13:33:54Z", value: 4 }, - { - id: 1, - timezone_offset: 1, - type: "type", - unit: "rmssd", - timestamp: "2026-05-05T13:34:24Z", - value: 95, - }, { - id: 2, + id: 0, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-05-05T13:34:54Z", - value: 87, + timestamp: "2026-05-06T10:59:47Z", + value: 90, }, { - id: 3, + id: 1, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-05-05T13:35:24Z", - value: 52, + timestamp: "2026-05-06T11:00:17Z", + value: 49, }, + { id: 2, timezone_offset: 1, type: "type", unit: "rmssd", timestamp: "2026-05-06T11:00:47Z", value: 8 }, + { id: 3, timezone_offset: 1, type: "type", unit: "rmssd", timestamp: "2026-05-06T11:01:17Z", value: 6 }, { id: 4, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-05-05T13:35:54Z", - value: 38, + timestamp: "2026-05-06T11:01:47Z", + value: 32, }, ], 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-06T10:59:47Z", value: 54 }, + { id: 1, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-06T11:00:17Z", value: 103 }, + { id: 2, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-06T11:00:47Z", value: 38 }, + { id: 3, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-06T11:01:17Z", value: 147 }, + { id: 4, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-06T11:01:47Z", value: 67 }, ], hypnogram: [ { @@ -467,27 +460,27 @@ describe("SleepClient", () => { timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-05-05T13:33:54Z", + timestamp: "2026-05-06T10:59:47Z", 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-06T11:00:17Z", 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-06T11:00:47Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", value: 2, @@ -497,7 +490,7 @@ describe("SleepClient", () => { timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-05-05T13:35:24Z", + timestamp: "2026-05-06T11:01:17Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", value: 2, @@ -507,18 +500,18 @@ describe("SleepClient", () => { timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-05-05T13:35:54Z", + timestamp: "2026-05-06T11:01:47Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: -1, + value: 1, }, ], 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-06T10:59:47Z", value: 20 }, + { id: 1, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-06T11:00:17Z", value: 14 }, + { id: 2, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-06T11:00:47Z", value: 18 }, + { id: 3, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-06T11:01:17Z", value: 8 }, + { id: 4, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-06T11:01:47Z", value: 23 }, ], }; @@ -540,40 +533,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-06T10:59:47.000Z"), + value: 90, }, { id: 1, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 95, + timestamp: new Date("2026-05-06T11:00:17.000Z"), + value: 49, }, { id: 2, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 87, + timestamp: new Date("2026-05-06T11:00:47.000Z"), + value: 8, }, { id: 3, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 52, + timestamp: new Date("2026-05-06T11:01:17.000Z"), + value: 6, }, { id: 4, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 38, + timestamp: new Date("2026-05-06T11:01:47.000Z"), + value: 32, }, ], heartrate: [ @@ -582,40 +575,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-06T10:59:47.000Z"), + value: 54, }, { id: 1, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 156, + timestamp: new Date("2026-05-06T11:00:17.000Z"), + value: 103, }, { id: 2, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 183, + timestamp: new Date("2026-05-06T11:00:47.000Z"), + value: 38, }, { id: 3, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 4, + timestamp: new Date("2026-05-06T11:01:17.000Z"), + value: 147, }, { id: 4, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 176, + timestamp: new Date("2026-05-06T11:01:47.000Z"), + value: 67, }, ], hypnogram: [ @@ -624,27 +617,27 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-05-05T13:33:54.000Z"), + timestamp: new Date("2026-05-06T10:59:47.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-06T11:00:17.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-06T11:00:47.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), value: 2, @@ -654,7 +647,7 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-05-05T13:35:24.000Z"), + timestamp: new Date("2026-05-06T11:01:17.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), value: 2, @@ -664,10 +657,10 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-05-05T13:35:54.000Z"), + timestamp: new Date("2026-05-06T11:01:47.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: -1, + value: 1, }, ], respiratoryRate: [ @@ -676,40 +669,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-06T10:59:47.000Z"), + value: 20, }, { id: 1, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 21, + timestamp: new Date("2026-05-06T11:00:17.000Z"), + value: 14, }, { id: 2, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 8, + timestamp: new Date("2026-05-06T11:00:47.000Z"), + value: 18, }, { id: 3, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 29, + timestamp: new Date("2026-05-06T11:01:17.000Z"), + value: 8, }, { id: 4, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 22, + timestamp: new Date("2026-05-06T11:01:47.000Z"), + value: 23, }, ], }); diff --git a/tests/wire/team.test.ts b/tests/wire/team.test.ts index 9f6b100..c20d64c 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-06T10:59:48Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-06T10:59:48Z", 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-06T10:59:48Z" }, + fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-06T10:59:48Z" }, 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-06T10:59:48.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-06T10:59:48.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-06T10:59:48.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-06T10:59:48.000Z"), }, ingestionStart: "ingestion_start", ingestionEnd: "ingestion_end", diff --git a/tests/wire/testkit.test.ts b/tests/wire/testkit.test.ts index a840d57..755aa34 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + team_id: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", 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: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + teamId: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -332,9 +332,9 @@ describe("TestkitClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + team_id: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", 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: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", 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: "c29fe7f8-390e-4176-9db4-eacac2e70d49", + id: "0bd44431-7049-45a4-97ce-a371a4fb8866", + teamId: "c6e9d786-eb9d-41b0-9bdb-4861c0c17317", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -803,9 +803,9 @@ describe("TestkitClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "ec2b1435-5d55-4f7d-9279-6a259bf54bfa", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "777410f4-ae67-4043-81b2-d66beea59790", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", diff --git a/tests/wire/user.test.ts b/tests/wire/user.test.ts index 8c5733f..57a68bb 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-06T10:59:48Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-06T10:59:48Z", 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-06T10:59:48Z", }, fallback_birth_date: { value: "1989-09-12", source_slug: "manual", - updated_at: "2026-05-05T13:33:56Z", + updated_at: "2026-05-06T10:59:48Z", }, 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-06T10:59:48.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-06T10:59:48.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-06T10:59:48.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-06T10:59:48.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-06T10:59:48Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-06T10:59:48Z", 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-06T10:59:48Z" }, + fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-06T10:59:48Z" }, 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-06T10:59:48.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-06T10:59:48.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-06T10:59:48.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-06T10:59:48.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-06T10:59:48Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-06T10:59:48Z", 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-06T10:59:48Z" }, + fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-06T10:59:48Z" }, 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-06T10:59:48.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-06T10:59:48.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-06T10:59:48.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-06T10:59:48.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-06T10:59:48Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-06T10:59:48Z", 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-06T10:59:48Z" }, + fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-06T10:59:48Z" }, 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-06T10:59:48.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-06T10:59:48.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-06T10:59:48.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-06T10:59:48.000Z"), }, ingestionStart: "ingestion_start", ingestionEnd: "ingestion_end", diff --git a/tests/wire/vitals.test.ts b/tests/wire/vitals.test.ts index 50dce65..2eaffb0 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-06T11:04:47Z", 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-06T11:04:47.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-06T10:59:47Z", 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-06T10:59:47.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-06T11:04:47Z", 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-06T11:04:47.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-06T10:59:47Z", 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-06T10:59:47.000Z"), systolic: 125, diastolic: 75, },