diff --git a/.fern/metadata.json b/.fern/metadata.json index b42ecf2..b7f0195 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,7 +1,7 @@ { - "cliVersion": "5.10.2", + "cliVersion": "5.18.1", "generatorName": "fernapi/fern-typescript-sdk", - "generatorVersion": "3.69.0", + "generatorVersion": "3.69.2", "generatorConfig": { "namespaceExport": "Junction", "noSerdeLayer": false, @@ -13,10 +13,10 @@ "packageManager": "pnpm", "testFramework": "vitest" }, - "originGitCommit": "5f82089cf81f14dcaa4eabeffe1c781fb1679c6e", + "originGitCommit": "3f979ee1e4cc799ef18b1ea8d8565a2dc32c5abf", "originGitCommitIsDirty": true, "invokedBy": "ci", "requestedVersion": "AUTO", "ciProvider": "unknown", - "sdkVersion": "1.0.0" + "sdkVersion": "1.0.1" } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7607ac7..4163539 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,6 +49,9 @@ jobs: needs: [ compile, test ] if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') runs-on: ubuntu-latest + permissions: + contents: read # Required for checkout + id-token: write # Required for OIDC steps: - name: Checkout repo uses: actions/checkout@v6 @@ -67,7 +70,6 @@ jobs: - name: Publish to npm run: | - npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} publish() { # use latest npm to ensure OIDC support npx -y npm@latest publish "$@" } @@ -85,6 +87,4 @@ jobs: else publish --access public fi - fi - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + fi \ No newline at end of file diff --git a/changelog.md b/changelog.md index 9d7930a..293078a 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,12 @@ +## 1.0.1 - 2026-05-07 +* chore: deprecate sleep stream method +* Mark the `GetStreamBySleepId` method on `SleepClient` as deprecated via +* a `@deprecated` JSDoc tag. This signals to consumers that the method +* should no longer be used and may be removed in a future release. +* Key changes: +* Added `@deprecated` annotation to `SleepClient.GetStreamBySleepId` +* 🌿 Generated with Fern + ## 1.0.0 - 2026-05-06 * Initial SDK generation * 🌿 Generated with Fern diff --git a/package.json b/package.json index e7148b4..fce6de2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@junction-api/sdk", - "version": "1.0.0", + "version": "1.0.1", "private": false, "repository": { "type": "git", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8b598a4..d797ac5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,7 +25,7 @@ importers: version: 5.9.3 vitest: specifier: ^4.1.1 - version: 4.1.5(@types/node@18.19.130)(msw@2.11.2(@types/node@18.19.130)(typescript@5.9.3))(vite@8.0.10(@types/node@18.19.130)(terser@5.46.2)) + version: 4.1.5(@types/node@18.19.130)(msw@2.11.2(@types/node@18.19.130)(typescript@5.9.3))(vite@8.0.11(@types/node@18.19.130)(terser@5.47.1)) webpack: specifier: ^5.105.4 version: 5.106.2 @@ -174,106 +174,106 @@ packages: '@open-draft/until@2.1.0': resolution: {integrity: sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==} - '@oxc-project/types@0.127.0': - resolution: {integrity: sha512-aIYXQBo4lCbO4z0R3FHeucQHpF46l2LbMdxRvqvuRuW2OxdnSkcng5B8+K12spgLDj93rtN3+J2Vac/TIO+ciQ==} + '@oxc-project/types@0.128.0': + resolution: {integrity: sha512-huv1Y/LzBJkBVHt3OlC7u0zHBW9qXf1FdD7sGmc1rXc2P1mTwHssYv7jyGx5KAACSCH+9B3Bhn6Z9luHRvf7pQ==} - '@rolldown/binding-android-arm64@1.0.0-rc.17': - resolution: {integrity: sha512-s70pVGhw4zqGeFnXWvAzJDlvxhlRollagdCCKRgOsgUOH3N1l0LIxf83AtGzmb5SiVM4Hjl5HyarMRfdfj3DaQ==} + '@rolldown/binding-android-arm64@1.0.0-rc.18': + resolution: {integrity: sha512-lIDyUAfD7U3+BWKzdxMbJcsYHuqXqmGz40aeRqvuAm3y5TkJSYTBW2RDrn65DJFPQqVjUAUqq5uz8urzQ8aBdQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@rolldown/binding-darwin-arm64@1.0.0-rc.17': - resolution: {integrity: sha512-4ksWc9n0mhlZpZ9PMZgTGjeOPRu8MB1Z3Tz0Mo02eWfWCHMW1zN82Qz/pL/rC+yQa+8ZnutMF0JjJe7PjwasYw==} + '@rolldown/binding-darwin-arm64@1.0.0-rc.18': + resolution: {integrity: sha512-apJq2ktnGp27nSInMR5Vcj8kY6xJzDAvfdIFlpDcAK/w4cDO58qVoi1YQsES/SKiFNge/6e4CUzgjfHduYqWpQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@rolldown/binding-darwin-x64@1.0.0-rc.17': - resolution: {integrity: sha512-SUSDOI6WwUVNcWxd02QEBjLdY1VPHvlEkw6T/8nYG322iYWCTxRb1vzk4E+mWWYehTp7ERibq54LSJGjmouOsw==} + '@rolldown/binding-darwin-x64@1.0.0-rc.18': + resolution: {integrity: sha512-5Ofot8xbs+pxRHJqm9/9N/4sTQOvdrwEsmPE9pdLEEoAbdZtG6F2LMDfO1sp6ZAtXJuJV/21ew2srq3W8NXB5g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@rolldown/binding-freebsd-x64@1.0.0-rc.17': - resolution: {integrity: sha512-hwnz3nw9dbJ05EDO/PvcjaaewqqDy7Y1rn1UO81l8iIK1GjenME75dl16ajbvSSMfv66WXSRCYKIqfgq2KCfxw==} + '@rolldown/binding-freebsd-x64@1.0.0-rc.18': + resolution: {integrity: sha512-7h8eeOTT1eyqJyx64BFCnWZpNm486hGWt2sqeLLgDxA0xI1oGZ9H7gK1S85uNGmBhkdPwa/6reTxfFFKvIsebw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.17': - resolution: {integrity: sha512-IS+W7epTcwANmFSQFrS1SivEXHtl1JtuQA9wlxrZTcNi6mx+FDOYrakGevvvTwgj2JvWiK8B29/qD9BELZPyXQ==} + '@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.18': + resolution: {integrity: sha512-eRcm/HVt9U/JFu5RKAEKwGQYtDCKWLiaH6wOnsSEp6NMBb/3Os8LgHZlNyzMpFVNmiiMFlfb2zEnebfzJrHFmg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@rolldown/binding-linux-arm64-gnu@1.0.0-rc.17': - resolution: {integrity: sha512-e6usGaHKW5BMNZOymS1UcEYGowQMWcgZ71Z17Sl/h2+ZziNJ1a9n3Zvcz6LdRyIW5572wBCTH/Z+bKuZouGk9Q==} + '@rolldown/binding-linux-arm64-gnu@1.0.0-rc.18': + resolution: {integrity: sha512-SOrT/cT4ukTmgnrEz/Hg3m7LBnuCLW9psDeMKrimRWY4I8DmnO7Lco8W2vtqPmMkbVu8iJ+g4GFLVLLOVjJ9DQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-arm64-musl@1.0.0-rc.17': - resolution: {integrity: sha512-b/CgbwAJpmrRLp02RPfhbudf5tZnN9nsPWK82znefso832etkem8H7FSZwxrOI9djcdTP7U6YfNhbRnh7djErg==} + '@rolldown/binding-linux-arm64-musl@1.0.0-rc.18': + resolution: {integrity: sha512-QWjdxN1HJCpBTAcZ5N5F7wju3gVPzRzSpmGzx7na0c/1qpN9CFil+xt+l9lV/1M6/gqHSNXCiqPfwhVJPeLnug==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@rolldown/binding-linux-ppc64-gnu@1.0.0-rc.17': - resolution: {integrity: sha512-4EII1iNGRUN5WwGbF/kOh/EIkoDN9HsupgLQoXfY+D1oyJm7/F4t5PYU5n8SWZgG0FEwakyM8pGgwcBYruGTlA==} + '@rolldown/binding-linux-ppc64-gnu@1.0.0-rc.18': + resolution: {integrity: sha512-ugCOyj7a4d9h3q9B+wXmf6g3a68UsjGh6dob5DHevHGMwDUbhsYNbSPxJsENcIttJZ9jv7qGM2UesLw5jqIhdg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-s390x-gnu@1.0.0-rc.17': - resolution: {integrity: sha512-AH8oq3XqQo4IibpVXvPeLDI5pzkpYn0WiZAfT05kFzoJ6tQNzwRdDYQ45M8I/gslbodRZwW8uxLhbSBbkv96rA==} + '@rolldown/binding-linux-s390x-gnu@1.0.0-rc.18': + resolution: {integrity: sha512-kKWRhbsotpXkGbcd5dllUWg5gEXcDAa8u5YnP9AV5DYNbvJHGzzuwv7dpmhc8NqKMJldl0a+x76IHbspEpEmdA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] libc: [glibc] - '@rolldown/binding-linux-x64-gnu@1.0.0-rc.17': - resolution: {integrity: sha512-cLnjV3xfo7KslbU41Z7z8BH/E1y5mzUYzAqih1d1MDaIGZRCMqTijqLv76/P7fyHuvUcfGsIpqCdddbxLLK9rA==} + '@rolldown/binding-linux-x64-gnu@1.0.0-rc.18': + resolution: {integrity: sha512-uCo8ElcCIAMyYAZyuIZ81oFkhTSIllNvUCHCAlbhlN4ji3uC28h7IIdlXyIvGO7HsuqnV9p3rD/bpH7XhIyhRw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-x64-musl@1.0.0-rc.17': - resolution: {integrity: sha512-0phclDw1spsL7dUB37sIARuis2tAgomCJXAHZlpt8PXZ4Ba0dRP1e+66lsRqrfhISeN9bEGNjQs+T/Fbd7oYGw==} + '@rolldown/binding-linux-x64-musl@1.0.0-rc.18': + resolution: {integrity: sha512-XNOQZtuE6yUIvx4rwGemwh8kpL1xvU41FXy/s9K7T/3JVcqGzo3NfKM2HrbrGgfPYGFW42f07Wk++aOC6B9NWA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@rolldown/binding-openharmony-arm64@1.0.0-rc.17': - resolution: {integrity: sha512-0ag/hEgXOwgw4t8QyQvUCxvEg+V0KBcA6YuOx9g0r02MprutRF5dyljgm3EmR02O292UX7UeS6HzWHAl6KgyhA==} + '@rolldown/binding-openharmony-arm64@1.0.0-rc.18': + resolution: {integrity: sha512-tSn/kzrfa7tNOXr7sEacDBN4YsIqTyLqh45IO0nHDwtpKIDNDJr+VFojt+4klSpChxB29JLyduSsE0MKEwa65A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@rolldown/binding-wasm32-wasi@1.0.0-rc.17': - resolution: {integrity: sha512-LEXei6vo0E5wTGwpkJ4KoT3OZJRnglwldt5ziLzOlc6qqb55z4tWNq2A+PFqCJuvWWdP53CVhG1Z9NtToDPJrA==} + '@rolldown/binding-wasm32-wasi@1.0.0-rc.18': + resolution: {integrity: sha512-+J9YGmc+czgqlhYmwun3S3O0FIZhsH8ep2456xwjAdIOmuJxM7xz4P4PtrxU+Bz17a/5bqPA8o3HAAoX0teUdg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [wasm32] - '@rolldown/binding-win32-arm64-msvc@1.0.0-rc.17': - resolution: {integrity: sha512-gUmyzBl3SPMa6hrqFUth9sVfcLBlYsbMzBx5PlexMroZStgzGqlZ26pYG89rBb45Mnia+oil6YAIFeEWGWhoZA==} + '@rolldown/binding-win32-arm64-msvc@1.0.0-rc.18': + resolution: {integrity: sha512-zsu47DgU0FQzSwi6sU9dZoEdUv7pc1AptSEz/Z8HBg54sV0Pbs3N0+CrIbTsgiu6EyoaNN9CHboqbLaz9lhOyQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@rolldown/binding-win32-x64-msvc@1.0.0-rc.17': - resolution: {integrity: sha512-3hkiolcUAvPB9FLb3UZdfjVVNWherN1f/skkGWJP/fgSQhYUZpSIRr0/I8ZK9TkF3F7kxvJAk0+IcKvPHk9qQg==} + '@rolldown/binding-win32-x64-msvc@1.0.0-rc.18': + resolution: {integrity: sha512-7H+3yqGgmnlDTRRhw/xpYY9J1kf4GC681nVc4GqKhExZTDrVVrV2tsOR9kso0fvgBdcTCcQShx4SLLoHgaLwhg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] - '@rolldown/pluginutils@1.0.0-rc.17': - resolution: {integrity: sha512-n8iosDOt6Ig1UhJ2AYqoIhHWh/isz0xpicHTzpKBeotdVsTEcxsSA/i3EVM7gQAj0rU27OLAxCjzlj15IWY7bg==} + '@rolldown/pluginutils@1.0.0-rc.18': + resolution: {integrity: sha512-CUY5Mnhe64xQBGZEEXQ5WyZwsc1JU3vAZLIxtrsBt3LO6UOb+C8GunVKqe9sT8NeWb4lqSaoJtp2xo6GxT1MNw==} '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} @@ -296,8 +296,8 @@ packages: '@types/eslint@9.6.1': resolution: {integrity: sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==} - '@types/estree@1.0.8': - resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} + '@types/estree@1.0.9': + resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} @@ -427,8 +427,8 @@ packages: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} - baseline-browser-mapping@2.10.25: - resolution: {integrity: sha512-QO/VHsXCQdnzADMfmkeOPvHdIAkoB7i0/rGjINPJEetLx75hNttVWGQ/jycHUDP9zZ9rupbm60WRxcwViB0MiA==} + baseline-browser-mapping@2.10.27: + resolution: {integrity: sha512-zEs/ufmZoUd7WftKpKyXaT6RFxpQ5Qm9xytKRHvJfxFV9DFJkZph9RvJ1LcOUi0Z1ZVijMte65JbILeV+8QQEA==} engines: {node: '>=6.0.0'} hasBin: true @@ -444,8 +444,8 @@ packages: buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - caniuse-lite@1.0.30001791: - resolution: {integrity: sha512-yk0l/YSrOnFZk3UROpDLQD9+kC1l4meK/wed583AXrzoarMGJcbRi2Q4RaUYbKxYAsZ8sWmaSa/DsLmdBeI1vQ==} + caniuse-lite@1.0.30001792: + resolution: {integrity: sha512-hVLMUZFgR4JJ6ACt1uEESvQN1/dBVqPAKY0hgrV70eN3391K6juAfTjKZLKvOMsx8PxA7gsY1/tLMMTcfFLLpw==} chai@6.2.2: resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} @@ -488,8 +488,8 @@ packages: resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} engines: {node: '>=8'} - electron-to-chromium@1.5.348: - resolution: {integrity: sha512-QC2X59nRlycQQMc4ZXjSVBX+tSgJfgRtcrYHbIZLgOV2dCvefoQGegLR7lLXKgpPpSuVmJU19LMzGrSa2C7k3Q==} + electron-to-chromium@1.5.352: + resolution: {integrity: sha512-9wHk8x6dyuimoe18EdiDPWKExNdxYqo4fn4FwOVVper6RxT3cmpBwBkWWfSOCYJjQdIco/nPhJhNLmn4Ufg1Yg==} emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} @@ -535,8 +535,8 @@ packages: fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - fast-uri@3.1.0: - resolution: {integrity: sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==} + fast-uri@3.1.2: + resolution: {integrity: sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ==} fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} @@ -566,8 +566,8 @@ packages: graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - graphql@16.13.2: - resolution: {integrity: sha512-5bJ+nf/UCpAjHM8i06fl7eLyVC9iuNAjm9qzkiu2ZGhM0VscSvS6WDPfAwkdkBuoXGM9FJSbKl6wylMwP9Ktig==} + graphql@16.14.0: + resolution: {integrity: sha512-BBvQ/406p+4CZbTpCbVPSxfzrZrbnuWSP1ELYgyS6B+hNeKzgrdB4JczCa5VZUBQrDa9hUngm0KnexY6pJRN5Q==} engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} has-flag@4.0.0: @@ -735,8 +735,8 @@ packages: resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==} engines: {node: '>=12'} - postcss@8.5.13: - resolution: {integrity: sha512-qif0+jGGZoLWdHey3UFHHWP0H7Gbmsk8T5VEqyYFbWqPr1XqvLGBbk/sl8V5exGmcYJklJOhOQq1pV9IcsiFag==} + postcss@8.5.14: + resolution: {integrity: sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==} engines: {node: ^10 || ^12 || >=14} require-directory@2.1.1: @@ -750,8 +750,8 @@ packages: rettime@0.7.0: resolution: {integrity: sha512-LPRKoHnLKd/r3dVxcwO7vhCW+orkOGj9ViueosEBK6ie89CijnfRlhaDhHq/3Hxu4CkWQtxwlBG0mzTQY6uQjw==} - rolldown@1.0.0-rc.17: - resolution: {integrity: sha512-ZrT53oAKrtA4+YtBWPQbtPOxIbVDbxT0orcYERKd63VJTF13zPcgXTvD4843L8pcsI7M6MErt8QtON6lrB9tyA==} + rolldown@1.0.0-rc.18: + resolution: {integrity: sha512-phmyKBpuBdRYDf4hgyynGAYn/rDDe+iZXKVJ7WX5b1zQzpLkP5oJRPGsfJuHdzPMlyyEO/4sPW6yfSx2gf7lVg==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true @@ -835,8 +835,8 @@ packages: uglify-js: optional: true - terser@5.46.2: - resolution: {integrity: sha512-uxfo9fPcSgLDYob/w1FuL0c99MWiJDnv+5qXSQc5+Ki5NjVNsYi66INnMFBjf6uFz6OnX12piJQPF4IpjJTNTw==} + terser@5.47.1: + resolution: {integrity: sha512-tPbLXTI6ohPASb/1YViL428oEHu6/qv1OxqYnfaonVCFHqx4+wCd95pHrQWsL5X4pl90CTyW9piSAsS2L0VoMw==} engines: {node: '>=10'} hasBin: true @@ -855,11 +855,11 @@ packages: resolution: {integrity: sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==} engines: {node: '>=14.0.0'} - tldts-core@7.0.29: - resolution: {integrity: sha512-W99NuU7b1DcG3uJ3v9k9VztCH3WialNbBkBft5wCs8V8mexu0XQqaZEYb9l9RNNzK8+3EJ9PKWB0/RUtTQ/o+Q==} + tldts-core@7.0.30: + resolution: {integrity: sha512-uiHN8PIB1VmWyS98eZYja4xzlYqeFZVjb4OuYlJQnZAuJhMw4PbKQOKgHKhBdJR3FE/t5mUQ1Kd80++B+qhD1Q==} - tldts@7.0.29: - resolution: {integrity: sha512-JIXCerhudr/N6OWLwLF1HVsTTUo7ry6qHa5eWZEkiMuxsIiAACL55tGLfqfHfoH7QaMQUW8fngD7u7TxWexYQg==} + tldts@7.0.30: + resolution: {integrity: sha512-ELrFxuqsDdHUwoh0XxDbxuLD3Wnz49Z57IFvTtvWy1hJdcMZjXLIuonjilCiWHlT2GbE4Wlv1wKVTzDFnXH1aw==} hasBin: true to-regex-range@5.0.1: @@ -898,13 +898,13 @@ packages: peerDependencies: browserslist: '>= 4.21.0' - vite@8.0.10: - resolution: {integrity: sha512-rZuUu9j6J5uotLDs+cAA4O5H4K1SfPliUlQwqa6YEwSrWDZzP4rhm00oJR5snMewjxF5V/K3D4kctsUTsIU9Mw==} + vite@8.0.11: + resolution: {integrity: sha512-Jz1mxtUBR5xTT65VOdJZUUeoyLtqljmFkiUXhPTLZka3RDc9vpi/xXkyrnsdRcm2lIi3l3GPMnAidTsEGIj3Ow==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: '@types/node': ^20.19.0 || >=22.12.0 - '@vitejs/devtools': ^0.1.0 + '@vitejs/devtools': ^0.1.18 esbuild: ^0.27.0 || ^0.28.0 jiti: '>=1.21.0' less: ^4.0.0 @@ -1162,58 +1162,58 @@ snapshots: '@open-draft/until@2.1.0': {} - '@oxc-project/types@0.127.0': {} + '@oxc-project/types@0.128.0': {} - '@rolldown/binding-android-arm64@1.0.0-rc.17': + '@rolldown/binding-android-arm64@1.0.0-rc.18': optional: true - '@rolldown/binding-darwin-arm64@1.0.0-rc.17': + '@rolldown/binding-darwin-arm64@1.0.0-rc.18': optional: true - '@rolldown/binding-darwin-x64@1.0.0-rc.17': + '@rolldown/binding-darwin-x64@1.0.0-rc.18': optional: true - '@rolldown/binding-freebsd-x64@1.0.0-rc.17': + '@rolldown/binding-freebsd-x64@1.0.0-rc.18': optional: true - '@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.17': + '@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.18': optional: true - '@rolldown/binding-linux-arm64-gnu@1.0.0-rc.17': + '@rolldown/binding-linux-arm64-gnu@1.0.0-rc.18': optional: true - '@rolldown/binding-linux-arm64-musl@1.0.0-rc.17': + '@rolldown/binding-linux-arm64-musl@1.0.0-rc.18': optional: true - '@rolldown/binding-linux-ppc64-gnu@1.0.0-rc.17': + '@rolldown/binding-linux-ppc64-gnu@1.0.0-rc.18': optional: true - '@rolldown/binding-linux-s390x-gnu@1.0.0-rc.17': + '@rolldown/binding-linux-s390x-gnu@1.0.0-rc.18': optional: true - '@rolldown/binding-linux-x64-gnu@1.0.0-rc.17': + '@rolldown/binding-linux-x64-gnu@1.0.0-rc.18': optional: true - '@rolldown/binding-linux-x64-musl@1.0.0-rc.17': + '@rolldown/binding-linux-x64-musl@1.0.0-rc.18': optional: true - '@rolldown/binding-openharmony-arm64@1.0.0-rc.17': + '@rolldown/binding-openharmony-arm64@1.0.0-rc.18': optional: true - '@rolldown/binding-wasm32-wasi@1.0.0-rc.17': + '@rolldown/binding-wasm32-wasi@1.0.0-rc.18': dependencies: '@emnapi/core': 1.10.0 '@emnapi/runtime': 1.10.0 '@napi-rs/wasm-runtime': 1.1.4(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0) optional: true - '@rolldown/binding-win32-arm64-msvc@1.0.0-rc.17': + '@rolldown/binding-win32-arm64-msvc@1.0.0-rc.18': optional: true - '@rolldown/binding-win32-x64-msvc@1.0.0-rc.17': + '@rolldown/binding-win32-x64-msvc@1.0.0-rc.18': optional: true - '@rolldown/pluginutils@1.0.0-rc.17': {} + '@rolldown/pluginutils@1.0.0-rc.18': {} '@standard-schema/spec@1.1.0': {} @@ -1234,14 +1234,14 @@ snapshots: '@types/eslint-scope@3.7.7': dependencies: '@types/eslint': 9.6.1 - '@types/estree': 1.0.8 + '@types/estree': 1.0.9 '@types/eslint@9.6.1': dependencies: - '@types/estree': 1.0.8 + '@types/estree': 1.0.9 '@types/json-schema': 7.0.15 - '@types/estree@1.0.8': {} + '@types/estree@1.0.9': {} '@types/json-schema@7.0.15': {} @@ -1260,14 +1260,14 @@ snapshots: chai: 6.2.2 tinyrainbow: 3.1.0 - '@vitest/mocker@4.1.5(msw@2.11.2(@types/node@18.19.130)(typescript@5.9.3))(vite@8.0.10(@types/node@18.19.130)(terser@5.46.2))': + '@vitest/mocker@4.1.5(msw@2.11.2(@types/node@18.19.130)(typescript@5.9.3))(vite@8.0.11(@types/node@18.19.130)(terser@5.47.1))': dependencies: '@vitest/spy': 4.1.5 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: msw: 2.11.2(@types/node@18.19.130)(typescript@5.9.3) - vite: 8.0.10(@types/node@18.19.130)(terser@5.46.2) + vite: 8.0.11(@types/node@18.19.130)(terser@5.47.1) '@vitest/pretty-format@4.1.5': dependencies: @@ -1391,7 +1391,7 @@ snapshots: ajv@8.20.0: dependencies: fast-deep-equal: 3.1.3 - fast-uri: 3.1.0 + fast-uri: 3.1.2 json-schema-traverse: 1.0.0 require-from-string: 2.0.2 @@ -1403,7 +1403,7 @@ snapshots: assertion-error@2.0.1: {} - baseline-browser-mapping@2.10.25: {} + baseline-browser-mapping@2.10.27: {} braces@3.0.3: dependencies: @@ -1411,15 +1411,15 @@ snapshots: browserslist@4.28.2: dependencies: - baseline-browser-mapping: 2.10.25 - caniuse-lite: 1.0.30001791 - electron-to-chromium: 1.5.348 + baseline-browser-mapping: 2.10.27 + caniuse-lite: 1.0.30001792 + electron-to-chromium: 1.5.352 node-releases: 2.0.38 update-browserslist-db: 1.2.3(browserslist@4.28.2) buffer-from@1.1.2: {} - caniuse-lite@1.0.30001791: {} + caniuse-lite@1.0.30001792: {} chai@6.2.2: {} @@ -1452,7 +1452,7 @@ snapshots: detect-libc@2.1.2: {} - electron-to-chromium@1.5.348: {} + electron-to-chromium@1.5.352: {} emoji-regex@8.0.0: {} @@ -1480,7 +1480,7 @@ snapshots: estree-walker@3.0.3: dependencies: - '@types/estree': 1.0.8 + '@types/estree': 1.0.9 events@3.3.0: {} @@ -1488,7 +1488,7 @@ snapshots: fast-deep-equal@3.1.3: {} - fast-uri@3.1.0: {} + fast-uri@3.1.2: {} fdir@6.5.0(picomatch@4.0.4): optionalDependencies: @@ -1507,7 +1507,7 @@ snapshots: graceful-fs@4.2.11: {} - graphql@16.13.2: {} + graphql@16.14.0: {} has-flag@4.0.0: {} @@ -1601,7 +1601,7 @@ snapshots: '@open-draft/until': 2.1.0 '@types/cookie': 0.6.0 '@types/statuses': 2.0.6 - graphql: 16.13.2 + graphql: 16.14.0 headers-polyfill: 4.0.3 is-node-process: 1.2.0 outvariant: 1.4.3 @@ -1639,7 +1639,7 @@ snapshots: picomatch@4.0.4: {} - postcss@8.5.13: + postcss@8.5.14: dependencies: nanoid: 3.3.12 picocolors: 1.1.1 @@ -1651,26 +1651,26 @@ snapshots: rettime@0.7.0: {} - rolldown@1.0.0-rc.17: + rolldown@1.0.0-rc.18: dependencies: - '@oxc-project/types': 0.127.0 - '@rolldown/pluginutils': 1.0.0-rc.17 + '@oxc-project/types': 0.128.0 + '@rolldown/pluginutils': 1.0.0-rc.18 optionalDependencies: - '@rolldown/binding-android-arm64': 1.0.0-rc.17 - '@rolldown/binding-darwin-arm64': 1.0.0-rc.17 - '@rolldown/binding-darwin-x64': 1.0.0-rc.17 - '@rolldown/binding-freebsd-x64': 1.0.0-rc.17 - '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-rc.17 - '@rolldown/binding-linux-arm64-gnu': 1.0.0-rc.17 - '@rolldown/binding-linux-arm64-musl': 1.0.0-rc.17 - '@rolldown/binding-linux-ppc64-gnu': 1.0.0-rc.17 - '@rolldown/binding-linux-s390x-gnu': 1.0.0-rc.17 - '@rolldown/binding-linux-x64-gnu': 1.0.0-rc.17 - '@rolldown/binding-linux-x64-musl': 1.0.0-rc.17 - '@rolldown/binding-openharmony-arm64': 1.0.0-rc.17 - '@rolldown/binding-wasm32-wasi': 1.0.0-rc.17 - '@rolldown/binding-win32-arm64-msvc': 1.0.0-rc.17 - '@rolldown/binding-win32-x64-msvc': 1.0.0-rc.17 + '@rolldown/binding-android-arm64': 1.0.0-rc.18 + '@rolldown/binding-darwin-arm64': 1.0.0-rc.18 + '@rolldown/binding-darwin-x64': 1.0.0-rc.18 + '@rolldown/binding-freebsd-x64': 1.0.0-rc.18 + '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-rc.18 + '@rolldown/binding-linux-arm64-gnu': 1.0.0-rc.18 + '@rolldown/binding-linux-arm64-musl': 1.0.0-rc.18 + '@rolldown/binding-linux-ppc64-gnu': 1.0.0-rc.18 + '@rolldown/binding-linux-s390x-gnu': 1.0.0-rc.18 + '@rolldown/binding-linux-x64-gnu': 1.0.0-rc.18 + '@rolldown/binding-linux-x64-musl': 1.0.0-rc.18 + '@rolldown/binding-openharmony-arm64': 1.0.0-rc.18 + '@rolldown/binding-wasm32-wasi': 1.0.0-rc.18 + '@rolldown/binding-win32-arm64-msvc': 1.0.0-rc.18 + '@rolldown/binding-win32-x64-msvc': 1.0.0-rc.18 schema-utils@4.3.3: dependencies: @@ -1729,10 +1729,10 @@ snapshots: '@jridgewell/trace-mapping': 0.3.31 jest-worker: 27.5.1 schema-utils: 4.3.3 - terser: 5.46.2 + terser: 5.47.1 webpack: 5.106.2 - terser@5.46.2: + terser@5.47.1: dependencies: '@jridgewell/source-map': 0.3.11 acorn: 8.16.0 @@ -1750,11 +1750,11 @@ snapshots: tinyrainbow@3.1.0: {} - tldts-core@7.0.29: {} + tldts-core@7.0.30: {} - tldts@7.0.29: + tldts@7.0.30: dependencies: - tldts-core: 7.0.29 + tldts-core: 7.0.30 to-regex-range@5.0.1: dependencies: @@ -1762,7 +1762,7 @@ snapshots: tough-cookie@6.0.1: dependencies: - tldts: 7.0.29 + tldts: 7.0.30 ts-loader@9.5.7(typescript@5.9.3)(webpack@5.106.2): dependencies: @@ -1789,22 +1789,22 @@ snapshots: escalade: 3.2.0 picocolors: 1.1.1 - vite@8.0.10(@types/node@18.19.130)(terser@5.46.2): + vite@8.0.11(@types/node@18.19.130)(terser@5.47.1): dependencies: lightningcss: 1.32.0 picomatch: 4.0.4 - postcss: 8.5.13 - rolldown: 1.0.0-rc.17 + postcss: 8.5.14 + rolldown: 1.0.0-rc.18 tinyglobby: 0.2.16 optionalDependencies: '@types/node': 18.19.130 fsevents: 2.3.3 - terser: 5.46.2 + terser: 5.47.1 - vitest@4.1.5(@types/node@18.19.130)(msw@2.11.2(@types/node@18.19.130)(typescript@5.9.3))(vite@8.0.10(@types/node@18.19.130)(terser@5.46.2)): + vitest@4.1.5(@types/node@18.19.130)(msw@2.11.2(@types/node@18.19.130)(typescript@5.9.3))(vite@8.0.11(@types/node@18.19.130)(terser@5.47.1)): dependencies: '@vitest/expect': 4.1.5 - '@vitest/mocker': 4.1.5(msw@2.11.2(@types/node@18.19.130)(typescript@5.9.3))(vite@8.0.10(@types/node@18.19.130)(terser@5.46.2)) + '@vitest/mocker': 4.1.5(msw@2.11.2(@types/node@18.19.130)(typescript@5.9.3))(vite@8.0.11(@types/node@18.19.130)(terser@5.47.1)) '@vitest/pretty-format': 4.1.5 '@vitest/runner': 4.1.5 '@vitest/snapshot': 4.1.5 @@ -1821,7 +1821,7 @@ snapshots: tinyexec: 1.1.2 tinyglobby: 0.2.16 tinyrainbow: 3.1.0 - vite: 8.0.10(@types/node@18.19.130)(terser@5.46.2) + vite: 8.0.11(@types/node@18.19.130)(terser@5.47.1) why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 18.19.130 @@ -1838,7 +1838,7 @@ snapshots: webpack@5.106.2: dependencies: '@types/eslint-scope': 3.7.7 - '@types/estree': 1.0.8 + '@types/estree': 1.0.9 '@types/json-schema': 7.0.15 '@webassemblyjs/ast': 1.14.1 '@webassemblyjs/wasm-edit': 1.14.1 diff --git a/src/BaseClient.ts b/src/BaseClient.ts index e5961bf..77c1185 100644 --- a/src/BaseClient.ts +++ b/src/BaseClient.ts @@ -59,8 +59,8 @@ export function normalizeClientOptions { const rawResponseBody = { orders: [ { - user_id: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - team_id: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + user_id: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + team_id: "5d056033-0045-425b-b03d-08dc2b7815f8", patient_details: { dob: "2020-01-01T00:00:00Z", gender: "male" }, patient_address: { receiver_name: "John Doe", @@ -1483,9 +1483,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -1596,9 +1596,9 @@ describe("LabTestsClient", () => { expect(response).toEqual({ orders: [ { - userId: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - teamId: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + userId: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + teamId: "5d056033-0045-425b-b03d-08dc2b7815f8", patientDetails: { dob: new Date("2020-01-01T00:00:00.000Z"), gender: "male", @@ -1672,9 +1672,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -1896,10 +1896,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawRequestBody = { booking_key: "booking_key" }; const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -1946,10 +1946,10 @@ describe("LabTestsClient", () => { }, }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -2029,10 +2029,10 @@ describe("LabTestsClient", () => { provider: "getlabs", }; const rawResponseBody = { - id: "466a125e-887f-478b-beb8-cc8277036362", - user_id: "d1c2ac01-53d0-43f7-b8db-e961a212d6ae", - order_id: "db507174-482d-46d1-8789-720b9b578552", - order_transaction_id: "5421f8f6-1844-4516-8afd-9fd329ce79d4", + id: "a8f9f33d-931e-4a69-b731-809f56a7d089", + user_id: "81afad80-db50-4d13-887f-5409413c57f4", + order_id: "12eab30c-28b7-4d15-b9e3-24332b429e54", + order_transaction_id: "4f1162b9-88a6-4b87-ae6e-345035b6fc7d", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -2080,10 +2080,10 @@ describe("LabTestsClient", () => { provider: "getlabs", }); expect(response).toEqual({ - id: "466a125e-887f-478b-beb8-cc8277036362", - userId: "d1c2ac01-53d0-43f7-b8db-e961a212d6ae", - orderId: "db507174-482d-46d1-8789-720b9b578552", - orderTransactionId: "5421f8f6-1844-4516-8afd-9fd329ce79d4", + id: "a8f9f33d-931e-4a69-b731-809f56a7d089", + userId: "81afad80-db50-4d13-887f-5409413c57f4", + orderId: "12eab30c-28b7-4d15-b9e3-24332b429e54", + orderTransactionId: "4f1162b9-88a6-4b87-ae6e-345035b6fc7d", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -2160,10 +2160,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawRequestBody = { booking_key: "booking_key" }; const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -2210,10 +2210,10 @@ describe("LabTestsClient", () => { }, }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -2290,10 +2290,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawRequestBody = { cancellation_reason_id: "cancellation_reason_id" }; const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -2338,10 +2338,10 @@ describe("LabTestsClient", () => { cancellationReasonId: "cancellation_reason_id", }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -2416,7 +2416,7 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawResponseBody = [ - { id: "853c53ee-b2cb-4929-bc1e-98458264f228", name: "I'm feeling sick", is_refundable: true }, + { id: "b0f094f9-c383-44de-9359-f12c38f03808", name: "I'm feeling sick", is_refundable: true }, ]; server @@ -2430,7 +2430,7 @@ describe("LabTestsClient", () => { const response = await client.labTests.getPhlebotomyAppointmentCancellationReason(); expect(response).toEqual([ { - id: "853c53ee-b2cb-4929-bc1e-98458264f228", + id: "b0f094f9-c383-44de-9359-f12c38f03808", name: "I'm feeling sick", isRefundable: true, }, @@ -2442,10 +2442,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -2488,10 +2488,10 @@ describe("LabTestsClient", () => { orderId: "order_id", }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -3190,10 +3190,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawRequestBody = { booking_key: "booking_key" }; const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -3240,10 +3240,10 @@ describe("LabTestsClient", () => { }, }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -3320,10 +3320,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawRequestBody = { booking_key: "booking_key" }; const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -3370,10 +3370,10 @@ describe("LabTestsClient", () => { }, }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -3450,10 +3450,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawRequestBody = { cancellationReasonId: "cancellationReasonId" }; const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -3498,10 +3498,10 @@ describe("LabTestsClient", () => { cancellationReasonId: "cancellationReasonId", }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -3576,7 +3576,7 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawResponseBody = [ - { id: "853c53ee-b2cb-4929-bc1e-98458264f228", name: "I'm feeling sick", is_refundable: true }, + { id: "b0f094f9-c383-44de-9359-f12c38f03808", name: "I'm feeling sick", is_refundable: true }, ]; server @@ -3590,7 +3590,7 @@ describe("LabTestsClient", () => { const response = await client.labTests.getPscAppointmentCancellationReason(); expect(response).toEqual([ { - id: "853c53ee-b2cb-4929-bc1e-98458264f228", + id: "b0f094f9-c383-44de-9359-f12c38f03808", name: "I'm feeling sick", isRefundable: true, }, @@ -3602,10 +3602,10 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawResponseBody = { - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - user_id: "19abc712-bf15-43dd-8a16-179a106e2237", - order_id: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - order_transaction_id: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + user_id: "9d573994-6c28-4034-9046-43c05fe0474e", + order_id: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + order_transaction_id: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { first_line: "123 Main St.", second_line: "Apt. 208", @@ -3648,10 +3648,10 @@ describe("LabTestsClient", () => { orderId: "order_id", }); expect(response).toEqual({ - id: "6e06eac5-228b-47cb-9e4b-54301e560dad", - userId: "19abc712-bf15-43dd-8a16-179a106e2237", - orderId: "a64b8c71-bd97-48e0-a6b1-f8415266a491", - orderTransactionId: "eb59b200-a00e-49e5-8d4c-d62b948c7098", + id: "b1b9928e-0b33-4db6-abb5-f27f7925a03b", + userId: "9d573994-6c28-4034-9046-43c05fe0474e", + orderId: "9fff1f3b-00d2-404e-b27d-f51a7ec21911", + orderTransactionId: "e42e88fa-3675-4fb5-bbb7-d0937fba5042", address: { firstLine: "123 Main St.", secondLine: "Apt. 208", @@ -3724,9 +3724,9 @@ describe("LabTestsClient", () => { const client = new JunctionClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); const rawResponseBody = { - user_id: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - team_id: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + user_id: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + team_id: "5d056033-0045-425b-b03d-08dc2b7815f8", patient_details: { first_name: "first_name", last_name: "last_name", @@ -3817,9 +3817,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -3918,9 +3918,9 @@ describe("LabTestsClient", () => { orderId: "order_id", }); expect(response).toEqual({ - userId: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - teamId: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + userId: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + teamId: "5d056033-0045-425b-b03d-08dc2b7815f8", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -4023,9 +4023,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -4155,9 +4155,9 @@ describe("LabTestsClient", () => { }; const rawResponseBody = { order: { - user_id: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - team_id: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + user_id: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + team_id: "5d056033-0045-425b-b03d-08dc2b7815f8", patient_details: { first_name: "first_name", last_name: "last_name", @@ -4251,9 +4251,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -4363,9 +4363,9 @@ describe("LabTestsClient", () => { }); expect(response).toEqual({ order: { - userId: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - teamId: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + userId: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + teamId: "5d056033-0045-425b-b03d-08dc2b7815f8", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -4465,9 +4465,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -4641,9 +4641,9 @@ describe("LabTestsClient", () => { }; const rawResponseBody = { order: { - user_id: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - team_id: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + user_id: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + team_id: "5d056033-0045-425b-b03d-08dc2b7815f8", patient_details: { first_name: "first_name", last_name: "last_name", @@ -4737,9 +4737,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -4854,9 +4854,9 @@ describe("LabTestsClient", () => { }); expect(response).toEqual({ order: { - userId: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - teamId: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + userId: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + teamId: "5d056033-0045-425b-b03d-08dc2b7815f8", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -4956,9 +4956,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -5126,9 +5126,9 @@ describe("LabTestsClient", () => { const rawResponseBody = { order: { - user_id: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - team_id: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + user_id: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + team_id: "5d056033-0045-425b-b03d-08dc2b7815f8", patient_details: { first_name: "first_name", last_name: "last_name", @@ -5222,9 +5222,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -5318,9 +5318,9 @@ describe("LabTestsClient", () => { }); expect(response).toEqual({ order: { - userId: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - teamId: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + userId: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + teamId: "5d056033-0045-425b-b03d-08dc2b7815f8", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -5420,9 +5420,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -5594,9 +5594,9 @@ describe("LabTestsClient", () => { const rawResponseBody = { order: { - user_id: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - team_id: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + user_id: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + team_id: "5d056033-0045-425b-b03d-08dc2b7815f8", patient_details: { first_name: "first_name", last_name: "last_name", @@ -5690,9 +5690,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -5786,9 +5786,9 @@ describe("LabTestsClient", () => { }); expect(response).toEqual({ order: { - userId: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - teamId: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + userId: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + teamId: "5d056033-0045-425b-b03d-08dc2b7815f8", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -5888,9 +5888,9 @@ describe("LabTestsClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", diff --git a/tests/wire/sleep.test.ts b/tests/wire/sleep.test.ts index 146f2bc..1185aa0 100644 --- a/tests/wire/sleep.test.ts +++ b/tests/wire/sleep.test.ts @@ -42,67 +42,67 @@ describe("SleepClient", () => { source: { provider: "oura", type: "unknown", device_id: "550e8400-e29b-41d4-a716-446655440000" }, sleep_stream: { hrv: [ - { id: 0, unit: "rmssd", timestamp: "2026-05-05T13:33:54Z", value: 4 }, - { id: 1, unit: "rmssd", timestamp: "2026-05-05T13:34:24Z", value: 95 }, - { id: 2, unit: "rmssd", timestamp: "2026-05-05T13:34:54Z", value: 87 }, - { id: 3, unit: "rmssd", timestamp: "2026-05-05T13:35:24Z", value: 52 }, - { id: 4, unit: "rmssd", timestamp: "2026-05-05T13:35:54Z", value: 38 }, + { id: 0, unit: "rmssd", timestamp: "2026-05-07T08:27:46Z", value: 30 }, + { id: 1, unit: "rmssd", timestamp: "2026-05-07T08:28:16Z", value: 44 }, + { id: 2, unit: "rmssd", timestamp: "2026-05-07T08:28:46Z", value: 1 }, + { id: 3, unit: "rmssd", timestamp: "2026-05-07T08:29:16Z", value: 97 }, + { id: 4, unit: "rmssd", timestamp: "2026-05-07T08:29:46Z", value: 11 }, ], heartrate: [ - { id: 0, unit: "bpm", timestamp: "2026-05-05T13:33:54Z", value: 79 }, - { id: 1, unit: "bpm", timestamp: "2026-05-05T13:34:24Z", value: 156 }, - { id: 2, unit: "bpm", timestamp: "2026-05-05T13:34:54Z", value: 183 }, - { id: 3, unit: "bpm", timestamp: "2026-05-05T13:35:24Z", value: 4 }, - { id: 4, unit: "bpm", timestamp: "2026-05-05T13:35:54Z", value: 176 }, + { id: 0, unit: "bpm", timestamp: "2026-05-07T08:27:46Z", value: 170 }, + { id: 1, unit: "bpm", timestamp: "2026-05-07T08:28:16Z", value: 110 }, + { id: 2, unit: "bpm", timestamp: "2026-05-07T08:28:46Z", value: 122 }, + { id: 3, unit: "bpm", timestamp: "2026-05-07T08:29:16Z", value: 60 }, + { id: 4, unit: "bpm", timestamp: "2026-05-07T08:29:46Z", value: 151 }, ], hypnogram: [ { id: 0, unit: "stage", - timestamp: "2026-05-05T13:33:54Z", + timestamp: "2026-05-07T08:27:46Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 0, + value: 1, }, { id: 1, unit: "stage", - timestamp: "2026-05-05T13:34:24Z", + timestamp: "2026-05-07T08:28:16Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 1, + value: -1, }, { id: 2, unit: "stage", - timestamp: "2026-05-05T13:34:54Z", + timestamp: "2026-05-07T08:28:46Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 2, + value: -1, }, { id: 3, unit: "stage", - timestamp: "2026-05-05T13:35:24Z", + timestamp: "2026-05-07T08:29:16Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 2, + value: 1, }, { id: 4, unit: "stage", - timestamp: "2026-05-05T13:35:54Z", + timestamp: "2026-05-07T08:29:46Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: -1, + value: 2, }, ], respiratory_rate: [ - { id: 0, unit: "bpm", timestamp: "2026-05-05T13:33:54Z", value: 30 }, - { id: 1, unit: "bpm", timestamp: "2026-05-05T13:34:24Z", value: 21 }, - { id: 2, unit: "bpm", timestamp: "2026-05-05T13:34:54Z", value: 8 }, - { id: 3, unit: "bpm", timestamp: "2026-05-05T13:35:24Z", value: 29 }, - { id: 4, unit: "bpm", timestamp: "2026-05-05T13:35:54Z", value: 22 }, + { id: 0, unit: "bpm", timestamp: "2026-05-07T08:27:46Z", value: 14 }, + { id: 1, unit: "bpm", timestamp: "2026-05-07T08:28:16Z", value: 12 }, + { id: 2, unit: "bpm", timestamp: "2026-05-07T08:28:46Z", value: 20 }, + { id: 3, unit: "bpm", timestamp: "2026-05-07T08:29:16Z", value: 23 }, + { id: 4, unit: "bpm", timestamp: "2026-05-07T08:29:46Z", value: 15 }, ], }, created_at: "2023-02-27T20:31:24Z", @@ -165,138 +165,138 @@ describe("SleepClient", () => { { id: 0, unit: "rmssd", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 4, + timestamp: new Date("2026-05-07T08:27:46.000Z"), + value: 30, }, { id: 1, unit: "rmssd", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 95, + timestamp: new Date("2026-05-07T08:28:16.000Z"), + value: 44, }, { id: 2, unit: "rmssd", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 87, + timestamp: new Date("2026-05-07T08:28:46.000Z"), + value: 1, }, { id: 3, unit: "rmssd", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 52, + timestamp: new Date("2026-05-07T08:29:16.000Z"), + value: 97, }, { id: 4, unit: "rmssd", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 38, + timestamp: new Date("2026-05-07T08:29:46.000Z"), + value: 11, }, ], heartrate: [ { id: 0, unit: "bpm", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 79, + timestamp: new Date("2026-05-07T08:27:46.000Z"), + value: 170, }, { id: 1, unit: "bpm", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 156, + timestamp: new Date("2026-05-07T08:28:16.000Z"), + value: 110, }, { id: 2, unit: "bpm", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 183, + timestamp: new Date("2026-05-07T08:28:46.000Z"), + value: 122, }, { id: 3, unit: "bpm", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 4, + timestamp: new Date("2026-05-07T08:29:16.000Z"), + value: 60, }, { id: 4, unit: "bpm", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 176, + timestamp: new Date("2026-05-07T08:29:46.000Z"), + value: 151, }, ], hypnogram: [ { id: 0, unit: "stage", - timestamp: new Date("2026-05-05T13:33:54.000Z"), + timestamp: new Date("2026-05-07T08:27:46.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 0, + value: 1, }, { id: 1, unit: "stage", - timestamp: new Date("2026-05-05T13:34:24.000Z"), + timestamp: new Date("2026-05-07T08:28:16.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 1, + value: -1, }, { id: 2, unit: "stage", - timestamp: new Date("2026-05-05T13:34:54.000Z"), + timestamp: new Date("2026-05-07T08:28:46.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 2, + value: -1, }, { id: 3, unit: "stage", - timestamp: new Date("2026-05-05T13:35:24.000Z"), + timestamp: new Date("2026-05-07T08:29:16.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 2, + value: 1, }, { id: 4, unit: "stage", - timestamp: new Date("2026-05-05T13:35:54.000Z"), + timestamp: new Date("2026-05-07T08:29:46.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: -1, + value: 2, }, ], respiratoryRate: [ { id: 0, unit: "bpm", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 30, + timestamp: new Date("2026-05-07T08:27:46.000Z"), + value: 14, }, { id: 1, unit: "bpm", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 21, + timestamp: new Date("2026-05-07T08:28:16.000Z"), + value: 12, }, { id: 2, unit: "bpm", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 8, + timestamp: new Date("2026-05-07T08:28:46.000Z"), + value: 20, }, { id: 3, unit: "bpm", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 29, + timestamp: new Date("2026-05-07T08:29:16.000Z"), + value: 23, }, { id: 4, unit: "bpm", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 22, + timestamp: new Date("2026-05-07T08:29:46.000Z"), + value: 15, }, ], }, @@ -420,46 +420,46 @@ describe("SleepClient", () => { const rawResponseBody = { hrv: [ - { id: 0, timezone_offset: 1, type: "type", unit: "rmssd", timestamp: "2026-05-05T13:33:54Z", value: 4 }, { - id: 1, + id: 0, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-05-05T13:34:24Z", - value: 95, + timestamp: "2026-05-07T08:27:46Z", + value: 30, }, { - id: 2, + id: 1, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-05-05T13:34:54Z", - value: 87, + timestamp: "2026-05-07T08:28:16Z", + value: 44, }, + { id: 2, timezone_offset: 1, type: "type", unit: "rmssd", timestamp: "2026-05-07T08:28:46Z", value: 1 }, { id: 3, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-05-05T13:35:24Z", - value: 52, + timestamp: "2026-05-07T08:29:16Z", + value: 97, }, { id: 4, timezone_offset: 1, type: "type", unit: "rmssd", - timestamp: "2026-05-05T13:35:54Z", - value: 38, + timestamp: "2026-05-07T08:29:46Z", + value: 11, }, ], heartrate: [ - { id: 0, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:33:54Z", value: 79 }, - { id: 1, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:34:24Z", value: 156 }, - { id: 2, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:34:54Z", value: 183 }, - { id: 3, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:35:24Z", value: 4 }, - { id: 4, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:35:54Z", value: 176 }, + { id: 0, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:27:46Z", value: 170 }, + { id: 1, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:28:16Z", value: 110 }, + { id: 2, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:28:46Z", value: 122 }, + { id: 3, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:29:16Z", value: 60 }, + { id: 4, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:29:46Z", value: 151 }, ], hypnogram: [ { @@ -467,58 +467,58 @@ describe("SleepClient", () => { timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-05-05T13:33:54Z", + timestamp: "2026-05-07T08:27:46Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 0, + value: 1, }, { id: 1, timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-05-05T13:34:24Z", + timestamp: "2026-05-07T08:28:16Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 1, + value: -1, }, { id: 2, timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-05-05T13:34:54Z", + timestamp: "2026-05-07T08:28:46Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 2, + value: -1, }, { id: 3, timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-05-05T13:35:24Z", + timestamp: "2026-05-07T08:29:16Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: 2, + value: 1, }, { id: 4, timezone_offset: 1, type: "type", unit: "stage", - timestamp: "2026-05-05T13:35:54Z", + timestamp: "2026-05-07T08:29:46Z", start: "2024-01-15T09:30:00Z", end: "2024-01-15T09:30:00Z", - value: -1, + value: 2, }, ], respiratory_rate: [ - { id: 0, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:33:54Z", value: 30 }, - { id: 1, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:34:24Z", value: 21 }, - { id: 2, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:34:54Z", value: 8 }, - { id: 3, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:35:24Z", value: 29 }, - { id: 4, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-05T13:35:54Z", value: 22 }, + { id: 0, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:27:46Z", value: 14 }, + { id: 1, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:28:16Z", value: 12 }, + { id: 2, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:28:46Z", value: 20 }, + { id: 3, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:29:16Z", value: 23 }, + { id: 4, timezone_offset: 1, type: "type", unit: "bpm", timestamp: "2026-05-07T08:29:46Z", value: 15 }, ], }; @@ -540,40 +540,40 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 4, + timestamp: new Date("2026-05-07T08:27:46.000Z"), + value: 30, }, { id: 1, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 95, + timestamp: new Date("2026-05-07T08:28:16.000Z"), + value: 44, }, { id: 2, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 87, + timestamp: new Date("2026-05-07T08:28:46.000Z"), + value: 1, }, { id: 3, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 52, + timestamp: new Date("2026-05-07T08:29:16.000Z"), + value: 97, }, { id: 4, timezoneOffset: 1, type: "type", unit: "rmssd", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 38, + timestamp: new Date("2026-05-07T08:29:46.000Z"), + value: 11, }, ], heartrate: [ @@ -582,40 +582,40 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 79, + timestamp: new Date("2026-05-07T08:27:46.000Z"), + value: 170, }, { id: 1, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 156, + timestamp: new Date("2026-05-07T08:28:16.000Z"), + value: 110, }, { id: 2, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 183, + timestamp: new Date("2026-05-07T08:28:46.000Z"), + value: 122, }, { id: 3, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 4, + timestamp: new Date("2026-05-07T08:29:16.000Z"), + value: 60, }, { id: 4, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 176, + timestamp: new Date("2026-05-07T08:29:46.000Z"), + value: 151, }, ], hypnogram: [ @@ -624,50 +624,50 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-05-05T13:33:54.000Z"), + timestamp: new Date("2026-05-07T08:27:46.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 0, + value: 1, }, { id: 1, timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-05-05T13:34:24.000Z"), + timestamp: new Date("2026-05-07T08:28:16.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 1, + value: -1, }, { id: 2, timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-05-05T13:34:54.000Z"), + timestamp: new Date("2026-05-07T08:28:46.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 2, + value: -1, }, { id: 3, timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-05-05T13:35:24.000Z"), + timestamp: new Date("2026-05-07T08:29:16.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: 2, + value: 1, }, { id: 4, timezoneOffset: 1, type: "type", unit: "stage", - timestamp: new Date("2026-05-05T13:35:54.000Z"), + timestamp: new Date("2026-05-07T08:29:46.000Z"), start: new Date("2024-01-15T09:30:00.000Z"), end: new Date("2024-01-15T09:30:00.000Z"), - value: -1, + value: 2, }, ], respiratoryRate: [ @@ -676,40 +676,40 @@ describe("SleepClient", () => { timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:33:54.000Z"), - value: 30, + timestamp: new Date("2026-05-07T08:27:46.000Z"), + value: 14, }, { id: 1, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:34:24.000Z"), - value: 21, + timestamp: new Date("2026-05-07T08:28:16.000Z"), + value: 12, }, { id: 2, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:34:54.000Z"), - value: 8, + timestamp: new Date("2026-05-07T08:28:46.000Z"), + value: 20, }, { id: 3, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:35:24.000Z"), - value: 29, + timestamp: new Date("2026-05-07T08:29:16.000Z"), + value: 23, }, { id: 4, timezoneOffset: 1, type: "type", unit: "bpm", - timestamp: new Date("2026-05-05T13:35:54.000Z"), - value: 22, + timestamp: new Date("2026-05-07T08:29:46.000Z"), + value: 15, }, ], }); diff --git a/tests/wire/team.test.ts b/tests/wire/team.test.ts index 9f6b100..b338c06 100644 --- a/tests/wire/team.test.ts +++ b/tests/wire/team.test.ts @@ -131,16 +131,16 @@ describe("TeamClient", () => { user_id: "56bd81c9-6219-4000-a775-ae85526eba18", team_id: "56bd81c9-6219-4000-a775-ae85526eba18", client_user_id: "ZTEwZjNjMjctOTI2ZS00M2Vm", - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-07T08:27:47Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-07T08:27:47Z", source: { name: "Oura", slug: "oura", logo: "logo_url" }, }, ], - fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-05-05T13:33:56Z" }, - fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-05T13:33:56Z" }, + fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-05-07T08:27:47Z" }, + fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-07T08:27:47Z" }, ingestion_start: "ingestion_start", ingestion_end: "ingestion_end", }, @@ -162,7 +162,7 @@ describe("TeamClient", () => { userId: "56bd81c9-6219-4000-a775-ae85526eba18", teamId: "56bd81c9-6219-4000-a775-ae85526eba18", clientUserId: "ZTEwZjNjMjctOTI2ZS00M2Vm", - createdOn: new Date("2026-05-05T13:33:56.000Z"), + createdOn: new Date("2026-05-07T08:27:47.000Z"), connectedSources: [ { provider: { @@ -170,7 +170,7 @@ describe("TeamClient", () => { slug: "oura", logo: "https://logo_url.com", }, - createdOn: new Date("2026-05-05T13:33:56.000Z"), + createdOn: new Date("2026-05-07T08:27:47.000Z"), source: { name: "Oura", slug: "oura", @@ -181,12 +181,12 @@ describe("TeamClient", () => { fallbackTimeZone: { id: "Europe/London", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-07T08:27:47.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-07T08:27:47.000Z"), }, ingestionStart: "ingestion_start", ingestionEnd: "ingestion_end", diff --git a/tests/wire/testkit.test.ts b/tests/wire/testkit.test.ts index a840d57..677eeed 100644 --- a/tests/wire/testkit.test.ts +++ b/tests/wire/testkit.test.ts @@ -22,9 +22,9 @@ describe("TestkitClient", () => { }; const rawResponseBody = { order: { - user_id: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - team_id: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + user_id: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + team_id: "5d056033-0045-425b-b03d-08dc2b7815f8", patient_details: { first_name: "first_name", last_name: "last_name", @@ -118,9 +118,9 @@ describe("TestkitClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -230,9 +230,9 @@ describe("TestkitClient", () => { }); expect(response).toEqual({ order: { - userId: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - teamId: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + userId: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + teamId: "5d056033-0045-425b-b03d-08dc2b7815f8", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -332,9 +332,9 @@ describe("TestkitClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", @@ -498,9 +498,9 @@ describe("TestkitClient", () => { }; const rawResponseBody = { order: { - user_id: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - team_id: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + user_id: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + team_id: "5d056033-0045-425b-b03d-08dc2b7815f8", patient_details: { first_name: "first_name", last_name: "last_name", @@ -594,9 +594,9 @@ describe("TestkitClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outbound_tracking_number: "", outbound_tracking_url: "", inbound_tracking_number: "", @@ -701,9 +701,9 @@ describe("TestkitClient", () => { }); expect(response).toEqual({ order: { - userId: "4eddb457-d362-4886-b4c7-f625923e6886", - id: "67ad4876-5346-4b51-9ef9-429a5978752e", - teamId: "2c70d2ec-1255-415d-8eb4-d4aeb7d01be9", + userId: "4366053a-b9de-4008-b46a-3b3e1d97e4b6", + id: "49b8095c-59cb-4b1a-ad7c-7a2ee2866d67", + teamId: "5d056033-0045-425b-b03d-08dc2b7815f8", patientDetails: { firstName: "first_name", lastName: "last_name", @@ -803,9 +803,9 @@ describe("TestkitClient", () => { details: { type: "testkit", data: { - id: "2fc293b6-8ecb-4fb4-a8fc-b3f552295d61", + id: "a5a87d3f-5a8e-490e-9542-4325fcf75b13", shipment: { - id: "fbbb6ed9-26ff-4caf-bae8-dea572286eed", + id: "c8610353-2da8-4703-8a4b-afdeedc35181", outboundTrackingNumber: "", outboundTrackingUrl: "", inboundTrackingNumber: "", diff --git a/tests/wire/user.test.ts b/tests/wire/user.test.ts index 8c5733f..da29beb 100644 --- a/tests/wire/user.test.ts +++ b/tests/wire/user.test.ts @@ -15,23 +15,23 @@ describe("UserClient", () => { user_id: "56bd81c9-6219-4000-a775-ae85526eba18", team_id: "56bd81c9-6219-4000-a775-ae85526eba18", client_user_id: "ZTEwZjNjMjctOTI2ZS00M2Vm", - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-07T08:27:47Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-07T08:27:47Z", source: { name: "Oura", slug: "oura", logo: "logo_url" }, }, ], fallback_time_zone: { id: "Europe/London", source_slug: "manual", - updated_at: "2026-05-05T13:33:56Z", + updated_at: "2026-05-07T08:27:47Z", }, fallback_birth_date: { value: "1989-09-12", source_slug: "manual", - updated_at: "2026-05-05T13:33:56Z", + updated_at: "2026-05-07T08:27:47Z", }, ingestion_start: "ingestion_start", ingestion_end: "ingestion_end", @@ -54,7 +54,7 @@ describe("UserClient", () => { userId: "56bd81c9-6219-4000-a775-ae85526eba18", teamId: "56bd81c9-6219-4000-a775-ae85526eba18", clientUserId: "ZTEwZjNjMjctOTI2ZS00M2Vm", - createdOn: new Date("2026-05-05T13:33:56.000Z"), + createdOn: new Date("2026-05-07T08:27:47.000Z"), connectedSources: [ { provider: { @@ -62,7 +62,7 @@ describe("UserClient", () => { slug: "oura", logo: "https://logo_url.com", }, - createdOn: new Date("2026-05-05T13:33:56.000Z"), + createdOn: new Date("2026-05-07T08:27:47.000Z"), source: { name: "Oura", slug: "oura", @@ -73,12 +73,12 @@ describe("UserClient", () => { fallbackTimeZone: { id: "Europe/London", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-07T08:27:47.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-07T08:27:47.000Z"), }, ingestionStart: "ingestion_start", ingestionEnd: "ingestion_end", @@ -111,16 +111,16 @@ describe("UserClient", () => { user_id: "56bd81c9-6219-4000-a775-ae85526eba18", team_id: "56bd81c9-6219-4000-a775-ae85526eba18", client_user_id: "ZTEwZjNjMjctOTI2ZS00M2Vm", - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-07T08:27:47Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-07T08:27:47Z", source: { name: "Oura", slug: "oura", logo: "logo_url" }, }, ], - fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-05-05T13:33:56Z" }, - fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-05T13:33:56Z" }, + fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-05-07T08:27:47Z" }, + fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-07T08:27:47Z" }, ingestion_start: "ingestion_start", ingestion_end: "ingestion_end", }; @@ -141,7 +141,7 @@ describe("UserClient", () => { userId: "56bd81c9-6219-4000-a775-ae85526eba18", teamId: "56bd81c9-6219-4000-a775-ae85526eba18", clientUserId: "ZTEwZjNjMjctOTI2ZS00M2Vm", - createdOn: new Date("2026-05-05T13:33:56.000Z"), + createdOn: new Date("2026-05-07T08:27:47.000Z"), connectedSources: [ { provider: { @@ -149,7 +149,7 @@ describe("UserClient", () => { slug: "oura", logo: "https://logo_url.com", }, - createdOn: new Date("2026-05-05T13:33:56.000Z"), + createdOn: new Date("2026-05-07T08:27:47.000Z"), source: { name: "Oura", slug: "oura", @@ -160,12 +160,12 @@ describe("UserClient", () => { fallbackTimeZone: { id: "Europe/London", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-07T08:27:47.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-07T08:27:47.000Z"), }, ingestionStart: "ingestion_start", ingestionEnd: "ingestion_end", @@ -982,16 +982,16 @@ describe("UserClient", () => { user_id: "56bd81c9-6219-4000-a775-ae85526eba18", team_id: "56bd81c9-6219-4000-a775-ae85526eba18", client_user_id: "ZTEwZjNjMjctOTI2ZS00M2Vm", - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-07T08:27:47Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-07T08:27:47Z", source: { name: "Oura", slug: "oura", logo: "logo_url" }, }, ], - fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-05-05T13:33:56Z" }, - fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-05T13:33:56Z" }, + fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-05-07T08:27:47Z" }, + fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-07T08:27:47Z" }, ingestion_start: "ingestion_start", ingestion_end: "ingestion_end", }; @@ -1011,7 +1011,7 @@ describe("UserClient", () => { userId: "56bd81c9-6219-4000-a775-ae85526eba18", teamId: "56bd81c9-6219-4000-a775-ae85526eba18", clientUserId: "ZTEwZjNjMjctOTI2ZS00M2Vm", - createdOn: new Date("2026-05-05T13:33:56.000Z"), + createdOn: new Date("2026-05-07T08:27:47.000Z"), connectedSources: [ { provider: { @@ -1019,7 +1019,7 @@ describe("UserClient", () => { slug: "oura", logo: "https://logo_url.com", }, - createdOn: new Date("2026-05-05T13:33:56.000Z"), + createdOn: new Date("2026-05-07T08:27:47.000Z"), source: { name: "Oura", slug: "oura", @@ -1030,12 +1030,12 @@ describe("UserClient", () => { fallbackTimeZone: { id: "Europe/London", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-07T08:27:47.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-07T08:27:47.000Z"), }, ingestionStart: "ingestion_start", ingestionEnd: "ingestion_end", @@ -1116,16 +1116,16 @@ describe("UserClient", () => { user_id: "56bd81c9-6219-4000-a775-ae85526eba18", team_id: "56bd81c9-6219-4000-a775-ae85526eba18", client_user_id: "ZTEwZjNjMjctOTI2ZS00M2Vm", - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-07T08:27:47Z", connected_sources: [ { provider: { name: "Oura", slug: "oura", logo: "https://logo_url.com" }, - created_on: "2026-05-05T13:33:56Z", + created_on: "2026-05-07T08:27:47Z", source: { name: "Oura", slug: "oura", logo: "logo_url" }, }, ], - fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-05-05T13:33:56Z" }, - fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-05T13:33:56Z" }, + fallback_time_zone: { id: "Europe/London", source_slug: "manual", updated_at: "2026-05-07T08:27:47Z" }, + fallback_birth_date: { value: "1989-09-12", source_slug: "manual", updated_at: "2026-05-07T08:27:47Z" }, ingestion_start: "ingestion_start", ingestion_end: "ingestion_end", }; @@ -1139,7 +1139,7 @@ describe("UserClient", () => { userId: "56bd81c9-6219-4000-a775-ae85526eba18", teamId: "56bd81c9-6219-4000-a775-ae85526eba18", clientUserId: "ZTEwZjNjMjctOTI2ZS00M2Vm", - createdOn: new Date("2026-05-05T13:33:56.000Z"), + createdOn: new Date("2026-05-07T08:27:47.000Z"), connectedSources: [ { provider: { @@ -1147,7 +1147,7 @@ describe("UserClient", () => { slug: "oura", logo: "https://logo_url.com", }, - createdOn: new Date("2026-05-05T13:33:56.000Z"), + createdOn: new Date("2026-05-07T08:27:47.000Z"), source: { name: "Oura", slug: "oura", @@ -1158,12 +1158,12 @@ describe("UserClient", () => { fallbackTimeZone: { id: "Europe/London", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-07T08:27:47.000Z"), }, fallbackBirthDate: { value: "1989-09-12", sourceSlug: "manual", - updatedAt: new Date("2026-05-05T13:33:56.000Z"), + updatedAt: new Date("2026-05-07T08:27:47.000Z"), }, ingestionStart: "ingestion_start", ingestionEnd: "ingestion_end", diff --git a/tests/wire/vitals.test.ts b/tests/wire/vitals.test.ts index 50dce65..de705c3 100644 --- a/tests/wire/vitals.test.ts +++ b/tests/wire/vitals.test.ts @@ -2217,7 +2217,7 @@ describe("VitalsClient", () => { unit: "min", timestamp: "2024-01-15T09:30:00Z", start: "2023-02-13T14:57:24Z", - end: "2026-05-05T13:38:54Z", + end: "2026-05-07T08:32:46Z", value: 42, }, ], @@ -2257,7 +2257,7 @@ describe("VitalsClient", () => { unit: "min", timestamp: new Date("2024-01-15T09:30:00.000Z"), start: new Date("2023-02-13T14:57:24.000Z"), - end: new Date("2026-05-05T13:38:54.000Z"), + end: new Date("2026-05-07T08:32:46.000Z"), value: 42, }, ], @@ -4331,7 +4331,7 @@ describe("VitalsClient", () => { oura: [ { source: { provider: "oura", type: "ring" }, - data: [{ unit: "mmHg", timestamp: "2026-05-05T13:33:55Z", systolic: 125, diastolic: 75 }], + data: [{ unit: "mmHg", timestamp: "2026-05-07T08:27:46Z", systolic: 125, diastolic: 75 }], }, ], }, @@ -4366,7 +4366,7 @@ describe("VitalsClient", () => { data: [ { unit: "mmHg", - timestamp: new Date("2026-05-05T13:33:55.000Z"), + timestamp: new Date("2026-05-07T08:27:46.000Z"), systolic: 125, diastolic: 75, }, @@ -4536,7 +4536,7 @@ describe("VitalsClient", () => { unit: "min", timestamp: "2024-01-15T09:30:00Z", start: "2023-02-13T14:57:24Z", - end: "2026-05-05T13:38:54Z", + end: "2026-05-07T08:32:46Z", value: 42, }, ]; @@ -4563,7 +4563,7 @@ describe("VitalsClient", () => { unit: "min", timestamp: new Date("2024-01-15T09:30:00.000Z"), start: new Date("2023-02-13T14:57:24.000Z"), - end: new Date("2026-05-05T13:38:54.000Z"), + end: new Date("2026-05-07T08:32:46.000Z"), value: 42, }, ]); @@ -5994,7 +5994,7 @@ describe("VitalsClient", () => { type: "type", unit: "mmHg", grouping: [{ key: "value" }], - timestamp: "2026-05-05T13:33:55Z", + timestamp: "2026-05-07T08:27:46Z", systolic: 125, diastolic: 75, }, @@ -6025,7 +6025,7 @@ describe("VitalsClient", () => { key: "value", }, ], - timestamp: new Date("2026-05-05T13:33:55.000Z"), + timestamp: new Date("2026-05-07T08:27:46.000Z"), systolic: 125, diastolic: 75, },