diff --git a/.fern/metadata.json b/.fern/metadata.json index 2d6f936..f28a989 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.5.1", + "cliVersion": "5.6.1", "generatorName": "fernapi/fern-typescript-sdk", "generatorVersion": "3.66.1", "generatorConfig": { @@ -13,10 +13,10 @@ "packageManager": "pnpm", "testFramework": "vitest" }, - "originGitCommit": "05d79dd6ce370cbd029417f59eb71c056d94aa61", + "originGitCommit": "e1c3ceef9f4e6957d1a38d66920fdb58ec00c6d5", "originGitCommitIsDirty": true, "invokedBy": "ci", "requestedVersion": "AUTO", "ciProvider": "unknown", - "sdkVersion": "0.0.1" + "sdkVersion": "1.0.0" } diff --git a/changelog.md b/changelog.md index 9f803cf..1207bd6 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +## 1.0.0 - 2026-05-01 +### Breaking Changes +* **`MealInDbBaseClientFacingSource`** — a new required `calendarDate` field (`string`, mapped from `calendar_date`) has been added to the interface. Any code that constructs this type without providing `calendarDate` will fail to compile. Add `calendarDate: "YYYY-mm-dd"` to all object literals or construction sites for this type. + ## 0.0.1 - 2026-05-01 * Initial SDK generation * 🌿 Generated with Fern diff --git a/package.json b/package.json index adf8dd9..e7148b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@junction-api/sdk", - "version": "0.0.1", + "version": "1.0.0", "private": false, "repository": { "type": "git", diff --git a/src/BaseClient.ts b/src/BaseClient.ts index a5fc832..c05235c 100644 --- a/src/BaseClient.ts +++ b/src/BaseClient.ts @@ -51,8 +51,8 @@ export function normalizeClientOptions { const rawResponseBody = { orders: [ { - user_id: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - team_id: "e3b407cc-8648-48a8-bd51-957735a01cf0", + user_id: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + team_id: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", 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: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -1596,9 +1596,9 @@ describe("LabTestsClient", () => { expect(response).toEqual({ orders: [ { - userId: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - teamId: "e3b407cc-8648-48a8-bd51-957735a01cf0", + userId: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + teamId: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patientDetails: { dob: new Date("2020-01-01T00:00:00.000Z"), gender: "male", @@ -1672,9 +1672,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", 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: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - user_id: "5ae51b66-2f16-4330-8a68-ecffba882c73", - order_id: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - order_transaction_id: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + user_id: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + order_id: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + order_transaction_id: "fb5f8da9-9e41-4311-895a-442497e7cc6c", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -1946,10 +1946,10 @@ describe("LabTestsClient", () => { }, }); expect(response).toEqual({ - id: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - userId: "5ae51b66-2f16-4330-8a68-ecffba882c73", - orderId: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - orderTransactionId: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + userId: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + orderId: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + orderTransactionId: "fb5f8da9-9e41-4311-895a-442497e7cc6c", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -2029,10 +2029,10 @@ describe("LabTestsClient", () => { provider: "getlabs", }; const rawResponseBody = { - id: "457f7df9-6038-4acb-8083-a9b6bb9a2ecb", - user_id: "8b347e4a-a0e7-4742-a250-eb5e1179ae28", - order_id: "ed53183d-470c-444d-b836-17abfb08255d", - order_transaction_id: "4eb58e4a-d8a4-40e7-89fe-040484d692c4", + id: "9722b083-d0a5-480f-8d2f-8b3c49b5b718", + user_id: "189c3b75-c4b4-4ddd-aa6e-e3e1858a76af", + order_id: "de492569-82e2-4589-a661-d568ef89e91b", + order_transaction_id: "105330a8-f0d5-4709-8280-7c6ef70989ee", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -2080,10 +2080,10 @@ describe("LabTestsClient", () => { provider: "getlabs", }); expect(response).toEqual({ - id: "457f7df9-6038-4acb-8083-a9b6bb9a2ecb", - userId: "8b347e4a-a0e7-4742-a250-eb5e1179ae28", - orderId: "ed53183d-470c-444d-b836-17abfb08255d", - orderTransactionId: "4eb58e4a-d8a4-40e7-89fe-040484d692c4", + id: "9722b083-d0a5-480f-8d2f-8b3c49b5b718", + userId: "189c3b75-c4b4-4ddd-aa6e-e3e1858a76af", + orderId: "de492569-82e2-4589-a661-d568ef89e91b", + orderTransactionId: "105330a8-f0d5-4709-8280-7c6ef70989ee", 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: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - user_id: "5ae51b66-2f16-4330-8a68-ecffba882c73", - order_id: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - order_transaction_id: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + user_id: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + order_id: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + order_transaction_id: "fb5f8da9-9e41-4311-895a-442497e7cc6c", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -2210,10 +2210,10 @@ describe("LabTestsClient", () => { }, }); expect(response).toEqual({ - id: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - userId: "5ae51b66-2f16-4330-8a68-ecffba882c73", - orderId: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - orderTransactionId: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + userId: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + orderId: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + orderTransactionId: "fb5f8da9-9e41-4311-895a-442497e7cc6c", 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: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - user_id: "5ae51b66-2f16-4330-8a68-ecffba882c73", - order_id: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - order_transaction_id: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + user_id: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + order_id: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + order_transaction_id: "fb5f8da9-9e41-4311-895a-442497e7cc6c", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -2338,10 +2338,10 @@ describe("LabTestsClient", () => { cancellationReasonId: "cancellation_reason_id", }); expect(response).toEqual({ - id: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - userId: "5ae51b66-2f16-4330-8a68-ecffba882c73", - orderId: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - orderTransactionId: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + userId: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + orderId: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + orderTransactionId: "fb5f8da9-9e41-4311-895a-442497e7cc6c", 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: "783e52b9-75db-4040-8ae4-d02cac3b3463", name: "I'm feeling sick", is_refundable: true }, + { id: "2f24e3e4-cdf8-43b2-835e-cdbab2857ec6", 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: "783e52b9-75db-4040-8ae4-d02cac3b3463", + id: "2f24e3e4-cdf8-43b2-835e-cdbab2857ec6", 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: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - user_id: "5ae51b66-2f16-4330-8a68-ecffba882c73", - order_id: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - order_transaction_id: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + user_id: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + order_id: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + order_transaction_id: "fb5f8da9-9e41-4311-895a-442497e7cc6c", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -2488,10 +2488,10 @@ describe("LabTestsClient", () => { orderId: "order_id", }); expect(response).toEqual({ - id: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - userId: "5ae51b66-2f16-4330-8a68-ecffba882c73", - orderId: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - orderTransactionId: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + userId: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + orderId: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + orderTransactionId: "fb5f8da9-9e41-4311-895a-442497e7cc6c", 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: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - user_id: "5ae51b66-2f16-4330-8a68-ecffba882c73", - order_id: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - order_transaction_id: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + user_id: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + order_id: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + order_transaction_id: "fb5f8da9-9e41-4311-895a-442497e7cc6c", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -3240,10 +3240,10 @@ describe("LabTestsClient", () => { }, }); expect(response).toEqual({ - id: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - userId: "5ae51b66-2f16-4330-8a68-ecffba882c73", - orderId: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - orderTransactionId: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + userId: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + orderId: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + orderTransactionId: "fb5f8da9-9e41-4311-895a-442497e7cc6c", 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: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - user_id: "5ae51b66-2f16-4330-8a68-ecffba882c73", - order_id: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - order_transaction_id: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + user_id: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + order_id: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + order_transaction_id: "fb5f8da9-9e41-4311-895a-442497e7cc6c", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -3370,10 +3370,10 @@ describe("LabTestsClient", () => { }, }); expect(response).toEqual({ - id: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - userId: "5ae51b66-2f16-4330-8a68-ecffba882c73", - orderId: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - orderTransactionId: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + userId: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + orderId: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + orderTransactionId: "fb5f8da9-9e41-4311-895a-442497e7cc6c", 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: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - user_id: "5ae51b66-2f16-4330-8a68-ecffba882c73", - order_id: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - order_transaction_id: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + user_id: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + order_id: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + order_transaction_id: "fb5f8da9-9e41-4311-895a-442497e7cc6c", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -3498,10 +3498,10 @@ describe("LabTestsClient", () => { cancellationReasonId: "cancellationReasonId", }); expect(response).toEqual({ - id: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - userId: "5ae51b66-2f16-4330-8a68-ecffba882c73", - orderId: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - orderTransactionId: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + userId: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + orderId: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + orderTransactionId: "fb5f8da9-9e41-4311-895a-442497e7cc6c", 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: "783e52b9-75db-4040-8ae4-d02cac3b3463", name: "I'm feeling sick", is_refundable: true }, + { id: "2f24e3e4-cdf8-43b2-835e-cdbab2857ec6", 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: "783e52b9-75db-4040-8ae4-d02cac3b3463", + id: "2f24e3e4-cdf8-43b2-835e-cdbab2857ec6", 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: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - user_id: "5ae51b66-2f16-4330-8a68-ecffba882c73", - order_id: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - order_transaction_id: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + user_id: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + order_id: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + order_transaction_id: "fb5f8da9-9e41-4311-895a-442497e7cc6c", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -3648,10 +3648,10 @@ describe("LabTestsClient", () => { orderId: "order_id", }); expect(response).toEqual({ - id: "78fbe5d7-6ba2-4611-a4f9-46a1d8a9e5ee", - userId: "5ae51b66-2f16-4330-8a68-ecffba882c73", - orderId: "1b3a0ab3-2aaa-47a6-8e8e-13a37162da86", - orderTransactionId: "48cb3895-80cf-46c6-ab7d-2ebafcc6cf73", + id: "630a54f5-d746-415e-92a6-9f0d6f0c3f41", + userId: "65a0ebd0-cce7-4d76-ab3c-7e290ffb9b34", + orderId: "7cb96c33-04be-49b8-9e93-b669b35ccffd", + orderTransactionId: "fb5f8da9-9e41-4311-895a-442497e7cc6c", 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: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - team_id: "e3b407cc-8648-48a8-bd51-957735a01cf0", + user_id: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + team_id: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patient_details: { first_name: "first_name", last_name: "last_name", @@ -3817,9 +3817,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -3918,9 +3918,9 @@ describe("LabTestsClient", () => { orderId: "order_id", }); expect(response).toEqual({ - userId: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - teamId: "e3b407cc-8648-48a8-bd51-957735a01cf0", + userId: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + teamId: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -4023,9 +4023,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -4155,9 +4155,9 @@ describe("LabTestsClient", () => { }; const rawResponseBody = { order: { - user_id: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - team_id: "e3b407cc-8648-48a8-bd51-957735a01cf0", + user_id: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + team_id: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patient_details: { first_name: "first_name", last_name: "last_name", @@ -4251,9 +4251,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -4363,9 +4363,9 @@ describe("LabTestsClient", () => { }); expect(response).toEqual({ order: { - userId: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - teamId: "e3b407cc-8648-48a8-bd51-957735a01cf0", + userId: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + teamId: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -4465,9 +4465,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -4641,9 +4641,9 @@ describe("LabTestsClient", () => { }; const rawResponseBody = { order: { - user_id: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - team_id: "e3b407cc-8648-48a8-bd51-957735a01cf0", + user_id: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + team_id: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patient_details: { first_name: "first_name", last_name: "last_name", @@ -4737,9 +4737,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -4854,9 +4854,9 @@ describe("LabTestsClient", () => { }); expect(response).toEqual({ order: { - userId: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - teamId: "e3b407cc-8648-48a8-bd51-957735a01cf0", + userId: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + teamId: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -4956,9 +4956,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -5126,9 +5126,9 @@ describe("LabTestsClient", () => { const rawResponseBody = { order: { - user_id: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - team_id: "e3b407cc-8648-48a8-bd51-957735a01cf0", + user_id: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + team_id: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patient_details: { first_name: "first_name", last_name: "last_name", @@ -5222,9 +5222,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -5318,9 +5318,9 @@ describe("LabTestsClient", () => { }); expect(response).toEqual({ order: { - userId: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - teamId: "e3b407cc-8648-48a8-bd51-957735a01cf0", + userId: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + teamId: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -5420,9 +5420,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -5594,9 +5594,9 @@ describe("LabTestsClient", () => { const rawResponseBody = { order: { - user_id: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - team_id: "e3b407cc-8648-48a8-bd51-957735a01cf0", + user_id: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + team_id: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patient_details: { first_name: "first_name", last_name: "last_name", @@ -5690,9 +5690,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -5786,9 +5786,9 @@ describe("LabTestsClient", () => { }); expect(response).toEqual({ order: { - userId: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - teamId: "e3b407cc-8648-48a8-bd51-957735a01cf0", + userId: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + teamId: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -5888,9 +5888,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", diff --git a/tests/wire/meal.test.ts b/tests/wire/meal.test.ts index 2d7c070..fa6e0e2 100644 --- a/tests/wire/meal.test.ts +++ b/tests/wire/meal.test.ts @@ -17,7 +17,8 @@ describe("MealClient", () => { priority_id: 42, source_id: 10, provider_id: "123456", - timestamp: "2019-08-24T14:15:22Z", + timestamp: "2019-08-24T00:00:00Z", + calendar_date: "2019-08-24", name: "Dinner", energy: { unit: "kcal", value: 1.1 }, macros: {}, @@ -82,7 +83,8 @@ describe("MealClient", () => { priorityId: 42, sourceId: 10, providerId: "123456", - timestamp: new Date("2019-08-24T14:15:22.000Z"), + timestamp: new Date("2019-08-24T00:00:00.000Z"), + calendarDate: "2019-08-24", name: "Dinner", energy: { unit: "kcal", diff --git a/tests/wire/sleep.test.ts b/tests/wire/sleep.test.ts index bd70a65..0db7a2b 100644 --- a/tests/wire/sleep.test.ts +++ b/tests/wire/sleep.test.ts @@ -42,32 +42,32 @@ describe("SleepClient", () => { source: { provider: "oura", type: "unknown", device_id: "550e8400-e29b-41d4-a716-446655440000" }, sleep_stream: { hrv: [ - { id: 0, unit: "rmssd", timestamp: "2026-04-30T17:37:44Z", value: 53 }, - { id: 1, unit: "rmssd", timestamp: "2026-04-30T17:38:14Z", value: 95 }, - { id: 2, unit: "rmssd", timestamp: "2026-04-30T17:38:44Z", value: 59 }, - { id: 3, unit: "rmssd", timestamp: "2026-04-30T17:39:14Z", value: 8 }, - { id: 4, unit: "rmssd", timestamp: "2026-04-30T17:39:44Z", value: 70 }, + { id: 0, unit: "rmssd", timestamp: "2026-05-01T17:50:10Z", value: 8 }, + { id: 1, unit: "rmssd", timestamp: "2026-05-01T17:50:40Z", value: 91 }, + { id: 2, unit: "rmssd", timestamp: "2026-05-01T17:51:10Z", value: 97 }, + { id: 3, unit: "rmssd", timestamp: "2026-05-01T17:51:40Z", value: 10 }, + { id: 4, unit: "rmssd", timestamp: "2026-05-01T17:52:10Z", value: 19 }, ], heartrate: [ - { id: 0, unit: "bpm", timestamp: "2026-04-30T17:37:44Z", value: 52 }, - { id: 1, unit: "bpm", timestamp: "2026-04-30T17:38:14Z", value: 104 }, - { id: 2, unit: "bpm", timestamp: "2026-04-30T17:38:44Z", value: 20 }, - { id: 3, unit: "bpm", timestamp: "2026-04-30T17:39:14Z", value: 116 }, - { id: 4, unit: "bpm", timestamp: "2026-04-30T17:39:44Z", value: 95 }, + { id: 0, unit: "bpm", timestamp: "2026-05-01T17:50:10Z", value: 78 }, + { id: 1, unit: "bpm", timestamp: "2026-05-01T17:50:40Z", value: 130 }, + { id: 2, unit: "bpm", timestamp: "2026-05-01T17:51:10Z", value: 181 }, + { id: 3, unit: "bpm", timestamp: "2026-05-01T17:51:40Z", value: 89 }, + { id: 4, unit: "bpm", timestamp: "2026-05-01T17:52:10Z", value: 155 }, ], hypnogram: [ { id: 0, unit: "stage", - timestamp: "2026-04-30T17:37:44Z", + timestamp: "2026-05-01T17:50:10Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 3, + value: 1, }, { id: 1, unit: "stage", - timestamp: "2026-04-30T17:38:14Z", + timestamp: "2026-05-01T17:50:40Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", value: 0, @@ -75,34 +75,34 @@ describe("SleepClient", () => { { id: 2, unit: "stage", - timestamp: "2026-04-30T17:38:44Z", + timestamp: "2026-05-01T17:51:10Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 2, + value: -1, }, { id: 3, unit: "stage", - timestamp: "2026-04-30T17:39:14Z", + timestamp: "2026-05-01T17:51:40Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 0, + value: 1, }, { id: 4, unit: "stage", - timestamp: "2026-04-30T17:39:44Z", + timestamp: "2026-05-01T17:52:10Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 3, + value: -1, }, ], respiratory_rate: [ - { id: 0, unit: "bpm", timestamp: "2026-04-30T17:37:44Z", value: 23 }, - { id: 1, unit: "bpm", timestamp: "2026-04-30T17:38:14Z", value: 30 }, - { id: 2, unit: "bpm", timestamp: "2026-04-30T17:38:44Z", value: 17 }, - { id: 3, unit: "bpm", timestamp: "2026-04-30T17:39:14Z", value: 20 }, - { id: 4, unit: "bpm", timestamp: "2026-04-30T17:39:44Z", value: 12 }, + { id: 0, unit: "bpm", timestamp: "2026-05-01T17:50:10Z", value: 11 }, + { id: 1, unit: "bpm", timestamp: "2026-05-01T17:50:40Z", value: 17 }, + { id: 2, unit: "bpm", timestamp: "2026-05-01T17:51:10Z", value: 23 }, + { id: 3, unit: "bpm", timestamp: "2026-05-01T17:51:40Z", value: 27 }, + { id: 4, unit: "bpm", timestamp: "2026-05-01T17:52:10Z", value: 29 }, ], }, created_at: "2023-02-27T20:31:24Z", @@ -165,79 +165,79 @@ describe("SleepClient", () => { { id: 0, unit: "rmssd", - timestamp: new Date("2026-04-30T17:37:44.000Z"), - value: 53, + timestamp: new Date("2026-05-01T17:50:10.000Z"), + value: 8, }, { id: 1, unit: "rmssd", - timestamp: new Date("2026-04-30T17:38:14.000Z"), - value: 95, + timestamp: new Date("2026-05-01T17:50:40.000Z"), + value: 91, }, { id: 2, unit: "rmssd", - timestamp: new Date("2026-04-30T17:38:44.000Z"), - value: 59, + timestamp: new Date("2026-05-01T17:51:10.000Z"), + value: 97, }, { id: 3, unit: "rmssd", - timestamp: new Date("2026-04-30T17:39:14.000Z"), - value: 8, + timestamp: new Date("2026-05-01T17:51:40.000Z"), + value: 10, }, { id: 4, unit: "rmssd", - timestamp: new Date("2026-04-30T17:39:44.000Z"), - value: 70, + timestamp: new Date("2026-05-01T17:52:10.000Z"), + value: 19, }, ], heartrate: [ { id: 0, unit: "bpm", - timestamp: new Date("2026-04-30T17:37:44.000Z"), - value: 52, + timestamp: new Date("2026-05-01T17:50:10.000Z"), + value: 78, }, { id: 1, unit: "bpm", - timestamp: new Date("2026-04-30T17:38:14.000Z"), - value: 104, + timestamp: new Date("2026-05-01T17:50:40.000Z"), + value: 130, }, { id: 2, unit: "bpm", - timestamp: new Date("2026-04-30T17:38:44.000Z"), - value: 20, + timestamp: new Date("2026-05-01T17:51:10.000Z"), + value: 181, }, { id: 3, unit: "bpm", - timestamp: new Date("2026-04-30T17:39:14.000Z"), - value: 116, + timestamp: new Date("2026-05-01T17:51:40.000Z"), + value: 89, }, { id: 4, unit: "bpm", - timestamp: new Date("2026-04-30T17:39:44.000Z"), - value: 95, + timestamp: new Date("2026-05-01T17:52:10.000Z"), + value: 155, }, ], hypnogram: [ { id: 0, unit: "stage", - timestamp: new Date("2026-04-30T17:37:44.000Z"), + timestamp: new Date("2026-05-01T17:50:10.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 3, + value: 1, }, { id: 1, unit: "stage", - timestamp: new Date("2026-04-30T17:38:14.000Z"), + timestamp: new Date("2026-05-01T17:50:40.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), value: 0, @@ -245,58 +245,58 @@ describe("SleepClient", () => { { id: 2, unit: "stage", - timestamp: new Date("2026-04-30T17:38:44.000Z"), + timestamp: new Date("2026-05-01T17:51:10.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-04-30T17:39:14.000Z"), + timestamp: new Date("2026-05-01T17:51:40.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 0, + value: 1, }, { id: 4, unit: "stage", - timestamp: new Date("2026-04-30T17:39:44.000Z"), + timestamp: new Date("2026-05-01T17:52:10.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 3, + value: -1, }, ], respiratoryRate: [ { id: 0, unit: "bpm", - timestamp: new Date("2026-04-30T17:37:44.000Z"), - value: 23, + timestamp: new Date("2026-05-01T17:50:10.000Z"), + value: 11, }, { id: 1, unit: "bpm", - timestamp: new Date("2026-04-30T17:38:14.000Z"), - value: 30, + timestamp: new Date("2026-05-01T17:50:40.000Z"), + value: 17, }, { id: 2, unit: "bpm", - timestamp: new Date("2026-04-30T17:38:44.000Z"), - value: 17, + timestamp: new Date("2026-05-01T17:51:10.000Z"), + value: 23, }, { id: 3, unit: "bpm", - timestamp: new Date("2026-04-30T17:39:14.000Z"), - value: 20, + timestamp: new Date("2026-05-01T17:51:40.000Z"), + value: 27, }, { id: 4, unit: "bpm", - timestamp: new Date("2026-04-30T17:39:44.000Z"), - value: 12, + timestamp: new Date("2026-05-01T17:52:10.000Z"), + value: 29, }, ], }, @@ -420,46 +420,46 @@ describe("SleepClient", () => { const rawResponseBody = { hrv: [ + { id: 0, timezone_offset: 1, type: "type", unit: "rmssd", timestamp: "2026-05-01T17:50:10Z", value: 8 }, { - id: 0, + id: 1, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-04-30T17:37:44Z", - value: 53, + timestamp: "2026-05-01T17:50:40Z", + value: 91, }, { - id: 1, + id: 2, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-04-30T17:38:14Z", - value: 95, + timestamp: "2026-05-01T17:51:10Z", + value: 97, }, { - id: 2, + id: 3, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-04-30T17:38:44Z", - value: 59, + timestamp: "2026-05-01T17:51:40Z", + value: 10, }, - { id: 3, timezone_offset: 1, type: "type", unit: "rmssd", timestamp: "2026-04-30T17:39:14Z", value: 8 }, { id: 4, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-04-30T17:39:44Z", - value: 70, + timestamp: "2026-05-01T17:52:10Z", + value: 19, }, ], heartrate: [ - { id: 0, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-04-30T17:37:44Z", value: 52 }, - { id: 1, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-04-30T17:38:14Z", value: 104 }, - { id: 2, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-04-30T17:38:44Z", value: 20 }, - { id: 3, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-04-30T17:39:14Z", value: 116 }, - { id: 4, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-04-30T17:39:44Z", value: 95 }, + { id: 0, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-01T17:50:10Z", value: 78 }, + { id: 1, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-01T17:50:40Z", value: 130 }, + { id: 2, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-01T17:51:10Z", value: 181 }, + { id: 3, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-01T17:51:40Z", value: 89 }, + { id: 4, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-01T17:52:10Z", value: 155 }, ], hypnogram: [ { @@ -467,17 +467,17 @@ describe("SleepClient", () => { timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-04-30T17:37:44Z", + timestamp: "2026-05-01T17:50:10Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 3, + value: 1, }, { id: 1, timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-04-30T17:38:14Z", + timestamp: "2026-05-01T17:50:40Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", value: 0, @@ -487,38 +487,38 @@ describe("SleepClient", () => { timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-04-30T17:38:44Z", + timestamp: "2026-05-01T17:51:10Z", 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-04-30T17:39:14Z", + timestamp: "2026-05-01T17:51:40Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 0, + value: 1, }, { id: 4, timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-04-30T17:39:44Z", + timestamp: "2026-05-01T17:52:10Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 3, + value: -1, }, ], respiratory_rate: [ - { id: 0, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-04-30T17:37:44Z", value: 23 }, - { id: 1, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-04-30T17:38:14Z", value: 30 }, - { id: 2, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-04-30T17:38:44Z", value: 17 }, - { id: 3, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-04-30T17:39:14Z", value: 20 }, - { id: 4, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-04-30T17:39:44Z", value: 12 }, + { id: 0, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-01T17:50:10Z", value: 11 }, + { id: 1, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-01T17:50:40Z", value: 17 }, + { id: 2, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-01T17:51:10Z", value: 23 }, + { id: 3, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-01T17:51:40Z", value: 27 }, + { id: 4, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-01T17:52:10Z", value: 29 }, ], }; @@ -540,40 +540,40 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-04-30T17:37:44.000Z"), - value: 53, + timestamp: new Date("2026-05-01T17:50:10.000Z"), + value: 8, }, { id: 1, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-04-30T17:38:14.000Z"), - value: 95, + timestamp: new Date("2026-05-01T17:50:40.000Z"), + value: 91, }, { id: 2, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-04-30T17:38:44.000Z"), - value: 59, + timestamp: new Date("2026-05-01T17:51:10.000Z"), + value: 97, }, { id: 3, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-04-30T17:39:14.000Z"), - value: 8, + timestamp: new Date("2026-05-01T17:51:40.000Z"), + value: 10, }, { id: 4, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-04-30T17:39:44.000Z"), - value: 70, + timestamp: new Date("2026-05-01T17:52:10.000Z"), + value: 19, }, ], heartrate: [ @@ -582,40 +582,40 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-04-30T17:37:44.000Z"), - value: 52, + timestamp: new Date("2026-05-01T17:50:10.000Z"), + value: 78, }, { id: 1, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-04-30T17:38:14.000Z"), - value: 104, + timestamp: new Date("2026-05-01T17:50:40.000Z"), + value: 130, }, { id: 2, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-04-30T17:38:44.000Z"), - value: 20, + timestamp: new Date("2026-05-01T17:51:10.000Z"), + value: 181, }, { id: 3, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-04-30T17:39:14.000Z"), - value: 116, + timestamp: new Date("2026-05-01T17:51:40.000Z"), + value: 89, }, { id: 4, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-04-30T17:39:44.000Z"), - value: 95, + timestamp: new Date("2026-05-01T17:52:10.000Z"), + value: 155, }, ], hypnogram: [ @@ -624,17 +624,17 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-04-30T17:37:44.000Z"), + timestamp: new Date("2026-05-01T17:50:10.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 3, + value: 1, }, { id: 1, timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-04-30T17:38:14.000Z"), + timestamp: new Date("2026-05-01T17:50:40.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), value: 0, @@ -644,30 +644,30 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-04-30T17:38:44.000Z"), + timestamp: new Date("2026-05-01T17:51:10.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-04-30T17:39:14.000Z"), + timestamp: new Date("2026-05-01T17:51:40.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 0, + value: 1, }, { id: 4, timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-04-30T17:39:44.000Z"), + timestamp: new Date("2026-05-01T17:52:10.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 3, + value: -1, }, ], respiratoryRate: [ @@ -676,40 +676,40 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-04-30T17:37:44.000Z"), - value: 23, + timestamp: new Date("2026-05-01T17:50:10.000Z"), + value: 11, }, { id: 1, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-04-30T17:38:14.000Z"), - value: 30, + timestamp: new Date("2026-05-01T17:50:40.000Z"), + value: 17, }, { id: 2, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-04-30T17:38:44.000Z"), - value: 17, + timestamp: new Date("2026-05-01T17:51:10.000Z"), + value: 23, }, { id: 3, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-04-30T17:39:14.000Z"), - value: 20, + timestamp: new Date("2026-05-01T17:51:40.000Z"), + value: 27, }, { id: 4, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-04-30T17:39:44.000Z"), - value: 12, + timestamp: new Date("2026-05-01T17:52:10.000Z"), + value: 29, }, ], }); diff --git a/tests/wire/team.test.ts b/tests/wire/team.test.ts index 3a72bb0..a410bf2 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-04-30T17:37:45Z", + created_on: "2026-05-01T17:50:11Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-04-30T17:37:45Z", + created_on: "2026-05-01T17:50:11Z", source: { name: "Oura", slug: "oura", logo: "logo_url" }, }, ], - fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-04-30T17:37:45Z" }, - fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-04-30T17:37:45Z" }, + fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-05-01T17:50:11Z" }, + fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-01T17:50:11Z" }, 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-04-30T17:37:45.000Z"), + createdOn: new Date("2026-05-01T17:50:11.000Z"), connectedSources: [ { provider: { @@ -170,7 +170,7 @@ describe("TeamClient", () => { slug: "oura", logo: "https://logo_url.com", }, - createdOn: new Date("2026-04-30T17:37:45.000Z"), + createdOn: new Date("2026-05-01T17:50:11.000Z"), source: { name: "Oura", slug: "oura", @@ -181,12 +181,12 @@ describe("TeamClient", () => { fallbackTimeZone: { id: "Europe/London", sourceSlug: "manual", - updatedAt: new Date("2026-04-30T17:37:45.000Z"), + updatedAt: new Date("2026-05-01T17:50:11.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-04-30T17:37:45.000Z"), + updatedAt: new Date("2026-05-01T17:50:11.000Z"), }, ingestionStart: "ingestion_start", ingestionEnd: "ingestion_end", diff --git a/tests/wire/testkit.test.ts b/tests/wire/testkit.test.ts index 8930716..5583e7a 100644 --- a/tests/wire/testkit.test.ts +++ b/tests/wire/testkit.test.ts @@ -22,9 +22,9 @@ describe("TestkitClient", () => { }; const rawResponseBody = { order: { - user_id: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - team_id: "e3b407cc-8648-48a8-bd51-957735a01cf0", + user_id: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + team_id: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patient_details: { first_name: "first_name", last_name: "last_name", @@ -118,9 +118,9 @@ describe("TestkitClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -230,9 +230,9 @@ describe("TestkitClient", () => { }); expect(response).toEqual({ order: { - userId: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - teamId: "e3b407cc-8648-48a8-bd51-957735a01cf0", + userId: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + teamId: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -332,9 +332,9 @@ describe("TestkitClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -498,9 +498,9 @@ describe("TestkitClient", () => { }; const rawResponseBody = { order: { - user_id: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - team_id: "e3b407cc-8648-48a8-bd51-957735a01cf0", + user_id: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + team_id: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patient_details: { first_name: "first_name", last_name: "last_name", @@ -594,9 +594,9 @@ describe("TestkitClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -701,9 +701,9 @@ describe("TestkitClient", () => { }); expect(response).toEqual({ order: { - userId: "cd6eb651-2f81-4a96-8065-e5deea3f25d8", - id: "31d02d72-8751-4349-ace5-a61c84712706", - teamId: "e3b407cc-8648-48a8-bd51-957735a01cf0", + userId: "7e7791a6-7fb6-4977-be02-99a3c961733c", + id: "5e23dadd-8c9c-4ffa-bf93-fd7797d3a86d", + teamId: "6ca3a9e9-fdb4-4235-b022-861a23d095dd", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -803,9 +803,9 @@ describe("TestkitClient", () => { details: { type: "testkit", data: { - id: "0efd410c-9980-4e90-be2a-34432bf12dd2", + id: "62fae40b-744f-482c-a444-5c77699e3bcc", shipment: { - id: "e6770ba4-b52b-4089-adbd-84d1f6ca6005", + id: "44f915bb-8474-4021-aa53-4fb804328758", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", diff --git a/tests/wire/user.test.ts b/tests/wire/user.test.ts index 7a45301..b0b3d47 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-04-30T17:37:45Z", + created_on: "2026-05-01T17:50:11Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-04-30T17:37:45Z", + created_on: "2026-05-01T17:50:11Z", source: { name: "Oura", slug: "oura", logo: "logo_url" }, }, ], fallback_time_zone: { id: "Europe/London", source_slug: "manual", - updated_at: "2026-04-30T17:37:45Z", + updated_at: "2026-05-01T17:50:11Z", }, fallback_birth_date: { value: "1989-09-12", source_slug: "manual", - updated_at: "2026-04-30T17:37:45Z", + updated_at: "2026-05-01T17:50:11Z", }, 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-04-30T17:37:45.000Z"), + createdOn: new Date("2026-05-01T17:50:11.000Z"), connectedSources: [ { provider: { @@ -62,7 +62,7 @@ describe("UserClient", () => { slug: "oura", logo: "https://logo_url.com", }, - createdOn: new Date("2026-04-30T17:37:45.000Z"), + createdOn: new Date("2026-05-01T17:50:11.000Z"), source: { name: "Oura", slug: "oura", @@ -73,12 +73,12 @@ describe("UserClient", () => { fallbackTimeZone: { id: "Europe/London", sourceSlug: "manual", - updatedAt: new Date("2026-04-30T17:37:45.000Z"), + updatedAt: new Date("2026-05-01T17:50:11.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-04-30T17:37:45.000Z"), + updatedAt: new Date("2026-05-01T17:50:11.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-04-30T17:37:45Z", + created_on: "2026-05-01T17:50:11Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-04-30T17:37:45Z", + created_on: "2026-05-01T17:50:11Z", source: { name: "Oura", slug: "oura", logo: "logo_url" }, }, ], - fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-04-30T17:37:45Z" }, - fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-04-30T17:37:45Z" }, + fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-05-01T17:50:11Z" }, + fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-01T17:50:11Z" }, 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-04-30T17:37:45.000Z"), + createdOn: new Date("2026-05-01T17:50:11.000Z"), connectedSources: [ { provider: { @@ -149,7 +149,7 @@ describe("UserClient", () => { slug: "oura", logo: "https://logo_url.com", }, - createdOn: new Date("2026-04-30T17:37:45.000Z"), + createdOn: new Date("2026-05-01T17:50:11.000Z"), source: { name: "Oura", slug: "oura", @@ -160,12 +160,12 @@ describe("UserClient", () => { fallbackTimeZone: { id: "Europe/London", sourceSlug: "manual", - updatedAt: new Date("2026-04-30T17:37:45.000Z"), + updatedAt: new Date("2026-05-01T17:50:11.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-04-30T17:37:45.000Z"), + updatedAt: new Date("2026-05-01T17:50:11.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-04-30T17:37:45Z", + created_on: "2026-05-01T17:50:11Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-04-30T17:37:45Z", + created_on: "2026-05-01T17:50:11Z", source: { name: "Oura", slug: "oura", logo: "logo_url" }, }, ], - fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-04-30T17:37:45Z" }, - fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-04-30T17:37:45Z" }, + fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-05-01T17:50:11Z" }, + fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-01T17:50:11Z" }, 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-04-30T17:37:45.000Z"), + createdOn: new Date("2026-05-01T17:50:11.000Z"), connectedSources: [ { provider: { @@ -1019,7 +1019,7 @@ describe("UserClient", () => { slug: "oura", logo: "https://logo_url.com", }, - createdOn: new Date("2026-04-30T17:37:45.000Z"), + createdOn: new Date("2026-05-01T17:50:11.000Z"), source: { name: "Oura", slug: "oura", @@ -1030,12 +1030,12 @@ describe("UserClient", () => { fallbackTimeZone: { id: "Europe/London", sourceSlug: "manual", - updatedAt: new Date("2026-04-30T17:37:45.000Z"), + updatedAt: new Date("2026-05-01T17:50:11.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-04-30T17:37:45.000Z"), + updatedAt: new Date("2026-05-01T17:50:11.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-04-30T17:37:45Z", + created_on: "2026-05-01T17:50:11Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-04-30T17:37:45Z", + created_on: "2026-05-01T17:50:11Z", source: { name: "Oura", slug: "oura", logo: "logo_url" }, }, ], - fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-04-30T17:37:45Z" }, - fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-04-30T17:37:45Z" }, + fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-05-01T17:50:11Z" }, + fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-01T17:50:11Z" }, 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-04-30T17:37:45.000Z"), + createdOn: new Date("2026-05-01T17:50:11.000Z"), connectedSources: [ { provider: { @@ -1147,7 +1147,7 @@ describe("UserClient", () => { slug: "oura", logo: "https://logo_url.com", }, - createdOn: new Date("2026-04-30T17:37:45.000Z"), + createdOn: new Date("2026-05-01T17:50:11.000Z"), source: { name: "Oura", slug: "oura", @@ -1158,12 +1158,12 @@ describe("UserClient", () => { fallbackTimeZone: { id: "Europe/London", sourceSlug: "manual", - updatedAt: new Date("2026-04-30T17:37:45.000Z"), + updatedAt: new Date("2026-05-01T17:50:11.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-04-30T17:37:45.000Z"), + updatedAt: new Date("2026-05-01T17:50:11.000Z"), }, ingestionStart: "ingestion_start", ingestionEnd: "ingestion_end", diff --git a/tests/wire/vitals.test.ts b/tests/wire/vitals.test.ts index aacf72d..3443c59 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-04-30T17:42:44Z", + end: "2026-05-01T17:55:10Z", 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-04-30T17:42:44.000Z"), + end: new Date("2026-05-01T17:55:10.000Z"), value: 42, }, ], @@ -4331,7 +4331,7 @@ describe("VitalsClient", () => { oura: [ { source: { provider: "oura", type: "ring" }, - data: [{ unit: "mmHg", timestamp: "2026-04-30T17:37:44Z", systolic: 125, diastolic: 75 }], + data: [{ unit: "mmHg", timestamp: "2026-05-01T17:50:10Z", systolic: 125, diastolic: 75 }], }, ], }, @@ -4366,7 +4366,7 @@ describe("VitalsClient", () => { data: [ { unit: "mmHg", - timestamp: new Date("2026-04-30T17:37:44.000Z"), + timestamp: new Date("2026-05-01T17:50:10.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-04-30T17:42:44Z", + end: "2026-05-01T17:55:10Z", 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-04-30T17:42:44.000Z"), + end: new Date("2026-05-01T17:55:10.000Z"), value: 42, }, ]); @@ -5994,7 +5994,7 @@ describe("VitalsClient", () => { type: "type", unit: "mmHg", grouping: [{ key: "value" }], - timestamp: "2026-04-30T17:37:44Z", + timestamp: "2026-05-01T17:50:10Z", systolic: 125, diastolic: 75, }, @@ -6025,7 +6025,7 @@ describe("VitalsClient", () => { key: "value", }, ], - timestamp: new Date("2026-04-30T17:37:44.000Z"), + timestamp: new Date("2026-05-01T17:50:10.000Z"), systolic: 125, diastolic: 75, },