From e3c7af5cbe74c2eb1745e1fde473843893d9e65d Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 26 Aug 2026 11:30:46 +0000 Subject: [PATCH 1/2] refactor: migrate from @epilot/pricing-client to @epilot/sdk/pricing Replace the standalone @epilot/pricing-client peer/dev dependency with @epilot/sdk and import all types from the tree-shakeable @epilot/sdk/pricing entrypoint (usage was types-only, generated from the same OpenAPI spec). The legacy PriceTierEnhanced type is not part of the spec anymore and is not exported by the SDK, so it is now defined in this package. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_014ydZRYfnvFAgKVAXoJHkX5 --- .changeset/red-pandas-prefer-sdk.md | 9 + package.json | 4 +- pnpm-lock.yaml | 580 +++++++++++++++++- src/computations/apply-discounts.ts | 2 +- .../compute-composite-price.test.ts | 2 +- src/computations/compute-composite-price.ts | 2 +- .../compute-external-dynamic-tariff-values.ts | 2 +- .../compute-external-get-agitem-values.ts | 2 +- .../compute-per-unit-price-item-values.ts | 2 +- src/computations/compute-price-item.ts | 2 +- ...mpute-tiered-flat-fee-price-item-values.ts | 2 +- ...pute-tiered-graduated-price-item-values.ts | 2 +- ...compute-tiered-volume-price-item-values.ts | 2 +- src/computations/compute-totals.test.ts | 2 +- .../pricing-dynamic-tariff.test.ts | 2 +- src/computations/pricing-getag.test.ts | 2 +- src/coupons/types.ts | 2 +- src/coupons/utils.ts | 2 +- src/getag/extract-config.test.ts | 2 +- src/getag/extract-config.ts | 2 +- src/prices/approval.ts | 2 +- src/prices/convert-precision.ts | 2 +- src/prices/get-immutable-price-item.ts | 2 +- src/prices/get-price-recurrence.ts | 2 +- src/prices/get-price-tax.ts | 2 +- src/shared/types.ts | 15 +- src/taxes/extract-tax-from-price.ts | 2 +- src/taxes/get-tax-value.test.ts | 2 +- src/taxes/get-tax-value.ts | 2 +- src/tiers/compute-cumulative-value.ts | 2 +- src/time-frequency/constants.ts | 2 +- src/variables/getag/details.ts | 2 +- src/variables/getag/utils.test.ts | 2 +- src/variables/getag/utils.ts | 2 +- src/variables/types.ts | 2 +- 35 files changed, 617 insertions(+), 53 deletions(-) create mode 100644 .changeset/red-pandas-prefer-sdk.md diff --git a/.changeset/red-pandas-prefer-sdk.md b/.changeset/red-pandas-prefer-sdk.md new file mode 100644 index 00000000..e3f33714 --- /dev/null +++ b/.changeset/red-pandas-prefer-sdk.md @@ -0,0 +1,9 @@ +--- +"@epilot/pricing": major +--- + +Migrate from `@epilot/pricing-client` to `@epilot/sdk`. + +The peer dependency on `@epilot/pricing-client` is replaced by `@epilot/sdk` (`^2.18.31`), and all types are now imported from `@epilot/sdk/pricing`. Consumers must install `@epilot/sdk` instead of `@epilot/pricing-client`. + +The legacy `PriceTierEnhanced` type (removed from the OpenAPI spec and absent from the SDK) is now defined and exported by this package directly. diff --git a/package.json b/package.json index 1456adef..b01e3ed4 100644 --- a/package.json +++ b/package.json @@ -67,13 +67,13 @@ "dinero.js": "^1.9.1" }, "peerDependencies": { - "@epilot/pricing-client": "^3.55.1", + "@epilot/sdk": "^2.18.31", "i18next": "^25.1.2" }, "devDependencies": { "@changesets/cli": "^2.30.0", "@epilot/eslint-config": "^3.0.5", - "@epilot/pricing-client": "^3.55.1", + "@epilot/sdk": "^2.18.31", "@types/dinero.js": "^1.9.4", "@vitest/coverage-v8": "^1.6.1", "concurrently": "^9.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a599abd5..fea1183d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,9 +18,9 @@ importers: '@epilot/eslint-config': specifier: ^3.0.5 version: 3.0.5(eslint@9.28.0)(typescript@5.8.3) - '@epilot/pricing-client': - specifier: ^3.55.1 - version: 3.55.1(axios@1.9.0)(js-yaml@4.1.1) + '@epilot/sdk': + specifier: ^2.18.31 + version: 2.18.31(@material-ui/core@4.12.4(@types/react@17.0.93)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(axios@1.9.0)(js-yaml@4.1.1)(openapi-client-axios@7.8.0(axios@1.9.0)(js-yaml@4.1.1)) '@types/dinero.js': specifier: ^1.9.4 version: 1.9.4 @@ -70,6 +70,10 @@ packages: resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} + '@apidevtools/json-schema-ref-parser@11.9.3': + resolution: {integrity: sha512-60vepv88RwcJtSHrD6MjIL6Ta3SOYbgfnkHb+ppAVK+o9mXprRtulx7VlRl3lN3bbvysAfCS7WMVfhUYemB0IQ==} + engines: {node: '>= 16'} + '@babel/helper-string-parser@7.27.1': resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} engines: {node: '>=6.9.0'} @@ -153,8 +157,13 @@ packages: resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} - '@dazn/lambda-powertools-correlation-ids@1.28.1': - resolution: {integrity: sha512-/RZUT5ZlVcQxsWi+OolEwXUIsXHqffNeZ+eY4Je23s9VcztuqHuHeyrlJh1m5Kg76EsvQTq+5b1xvjf3J/6A1Q==} + '@emotion/hash@0.8.0': + resolution: {integrity: sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==} + + '@epilot/epilot-journey-sdk@2.0.0-alpha.1': + resolution: {integrity: sha512-1W9WxXflAJ7Z+ycR07D0BoFIOIL+wmPk6917MAk0XXx4VzYebzqa7RFOaYm2WrqLOppkQRhJVtlUHvPA0KDdRg==} + peerDependencies: + '@material-ui/core': 4.* '@epilot/eslint-config@3.0.5': resolution: {integrity: sha512-duUlWZtFFNcHEkyv0S2tEla4MHywgdMmKH7RYJ8xonE00lHE20LOmpYk1iNH7DqOBRWF5Uca9YrXNewebqxnew==} @@ -163,11 +172,18 @@ packages: eslint: '>= 9.0.0' typescript: '>= 5.0.0' - '@epilot/pricing-client@3.55.1': - resolution: {integrity: sha512-D/M34UK+D4kWiB3KEKzQfSuET3MvHdo2GcBlFVr4dhBVb+VfVZBUbytv5ch7fvLbEd2vXZ8is/5QepvIRd3bgQ==} + '@epilot/journey-client@0.5.3': + resolution: {integrity: sha512-fIxSuaW7aa7Nk5wOg5DddeMBXpRmvRKecH5JoQK9W556PVrMwGtaBAkKsBZ7I/zVI8Sce8yPcHJdMWg5DT1QtQ==} peerDependencies: axios: ^1.0.0 || >=0.25.0 <1.0.0 + '@epilot/sdk@2.18.31': + resolution: {integrity: sha512-8NFyxVTMYrtDN0U6J0xlXX0jM3bJOzgIujC77GRt8ay/Qvx7l0K1usF1pRkw/nd5cNOpw79IMeKNokoQ6cwjHA==} + hasBin: true + peerDependencies: + axios: ^1.0.0 + openapi-client-axios: ^7.0.0 + '@esbuild/aix-ppc64@0.21.5': resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} engines: {node: '>=12'} @@ -555,12 +571,65 @@ packages: '@jridgewell/trace-mapping@0.3.9': resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} + '@jsdevtools/ono@7.1.3': + resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==} + '@manypkg/find-root@1.1.0': resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==} '@manypkg/get-packages@1.1.3': resolution: {integrity: sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A==} + '@material-ui/core@4.12.4': + resolution: {integrity: sha512-tr7xekNlM9LjA6pagJmL8QCgZXaubWUwkJnoYcMKd4gw/t4XiyvnTkjdGrUVicyB2BsdaAv1tvow45bPM4sSwQ==} + engines: {node: '>=8.0.0'} + deprecated: Material UI v4 doesn't receive active development since September 2021. See the guide https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5. + peerDependencies: + '@types/react': ^16.8.6 || ^17.0.0 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + + '@material-ui/styles@4.11.5': + resolution: {integrity: sha512-o/41ot5JJiUsIETME9wVLAJrmIWL3j0R0Bj2kCOLbSfqEkKf0fmaPt+5vtblUh5eXr2S+J/8J3DaCb10+CzPGA==} + engines: {node: '>=8.0.0'} + deprecated: Material UI v4 doesn't receive active development since September 2021. See the guide https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5. + peerDependencies: + '@types/react': ^16.8.6 || ^17.0.0 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + + '@material-ui/system@4.12.2': + resolution: {integrity: sha512-6CSKu2MtmiJgcCGf6nBQpM8fLkuB9F55EKfbdTC80NND5wpTmKzwdhLYLH3zL4cLlK0gVaaltW7/wMuyTnN0Lw==} + engines: {node: '>=8.0.0'} + peerDependencies: + '@types/react': ^16.8.6 || ^17.0.0 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + + '@material-ui/types@5.1.0': + resolution: {integrity: sha512-7cqRjrY50b8QzRSYyhSpx4WRw2YuO0KKIGQEVk5J8uoz2BanawykgZGoWEqKm7pVIbzFDN0SpPcVV4IhOFkl8A==} + peerDependencies: + '@types/react': '*' + peerDependenciesMeta: + '@types/react': + optional: true + + '@material-ui/utils@4.11.3': + resolution: {integrity: sha512-ZuQPV4rBK/V1j2dIkSSEcH5uT6AaHuKWFfotADHsC0wVL1NLd2WkFCm4ZZbX33iO4ydl6V0GPngKm8HZQ2oujg==} + engines: {node: '>=8.0.0'} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -732,6 +801,20 @@ packages: '@types/node@22.15.29': resolution: {integrity: sha512-LNdjOkUDlU1RZb8e1kOIUpN1qQUlzGkEtbVNo53vbrwDg5om6oduhm4SiUaPW5ASTXhAiP0jInWG8Qx9fVlOeQ==} + '@types/prop-types@15.7.15': + resolution: {integrity: sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==} + + '@types/react-transition-group@4.4.12': + resolution: {integrity: sha512-8TV6R3h2j7a91c+1DXdJi3Syo69zzIZbz7Lg5tORM5LEJG7X/E6a1V3drRyBRZq7/utz7A+c4OgYLiLcYGHG6w==} + peerDependencies: + '@types/react': '*' + + '@types/react@17.0.93': + resolution: {integrity: sha512-KM4Ty/ZTLZupiYxZVAlP+InNJS3De6uBMdq0ePa6/04+eG9Y7ftnWfst1xTLQ5rwAhgHwQ4momt/O4KepdGBTw==} + + '@types/scheduler@0.16.8': + resolution: {integrity: sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==} + '@types/unist@3.0.3': resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} @@ -826,9 +909,20 @@ packages: engines: {node: '>=0.4.0'} hasBin: true + ajv-formats@2.1.1: + resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + ansi-colors@4.1.3: resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} engines: {node: '>=6'} @@ -978,6 +1072,10 @@ packages: resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} engines: {node: '>=12'} + clsx@1.2.1: + resolution: {integrity: sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==} + engines: {node: '>=6'} + color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -1000,6 +1098,10 @@ packages: confbox@0.1.8: resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==} + cookie@1.1.1: + resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} + engines: {node: '>=18'} + create-require@1.1.1: resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} @@ -1007,6 +1109,15 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} + css-vendor@2.0.8: + resolution: {integrity: sha512-x9Aq0XTInxrkuFeHKbYC7zWY8ai7qJ04Kxd9MnvbC1uO5DagxoHQjm4JvG+vCdXOoFtCjbL2XSZfxmoYa9uQVQ==} + + csstype@2.6.21: + resolution: {integrity: sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==} + + csstype@3.2.3: + resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + data-view-buffer@1.0.2: resolution: {integrity: sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==} engines: {node: '>= 0.4'} @@ -1081,6 +1192,9 @@ packages: resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==} engines: {node: '>=0.10.0'} + dom-helpers@5.2.1: + resolution: {integrity: sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==} + dunder-proto@1.0.1: resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} engines: {node: '>= 0.4'} @@ -1294,6 +1408,9 @@ packages: fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + fast-uri@3.1.6: + resolution: {integrity: sha512-7Ical1vFEMr0onbVzEDIreM22I4khW+fzyQPwvAFWBp1iwdshSZRsL4jjRvPG9JP1uiqMHRto+YU6R2/CzDz5Q==} + fastq@1.19.1: resolution: {integrity: sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==} @@ -1454,6 +1571,9 @@ packages: resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} engines: {node: '>= 0.4'} + hoist-non-react-statics@3.3.2: + resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} + html-escaper@2.0.2: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} @@ -1468,6 +1588,9 @@ packages: resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} engines: {node: '>=16.17.0'} + hyphenate-style-name@1.1.0: + resolution: {integrity: sha512-WDC/ui2VVRrz3jOVi+XtjqkDjiVjTtFaAGiW37k6b+ohyQ5wYDOGkvCZa8+H0nx3gyvv0+BST9xuOgIyGQ00gw==} + i18next@25.2.1: resolution: {integrity: sha512-+UoXK5wh+VlE1Zy5p6MjcvctHXAhRwQKCxiJD8noKZzIXmnAX8gdHX5fLPA3MEVxEN4vbZkQFy8N0LyD9tUqPw==} peerDependencies: @@ -1569,6 +1692,9 @@ packages: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} + is-in-browser@1.1.3: + resolution: {integrity: sha512-FeXIBgG/CPGd/WUxuEyvgGTEfwiG9Z4EKGxjNMRqviiIIfsmgrpnHLffEDdwUHqNva1VEW91o3xBT/m8Elgl9g==} + is-map@2.0.3: resolution: {integrity: sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==} engines: {node: '>= 0.4'} @@ -1655,6 +1781,9 @@ packages: resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==} engines: {node: '>=8'} + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + js-tokens@9.0.1: resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==} @@ -1676,6 +1805,9 @@ packages: json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + json-stable-stringify-without-jsonify@1.0.1: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} @@ -1686,6 +1818,30 @@ packages: jsonfile@4.0.0: resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} + jss-plugin-camel-case@10.10.0: + resolution: {integrity: sha512-z+HETfj5IYgFxh1wJnUAU8jByI48ED+v0fuTuhKrPR+pRBYS2EDwbusU8aFOpCdYhtRc9zhN+PJ7iNE8pAWyPw==} + + jss-plugin-default-unit@10.10.0: + resolution: {integrity: sha512-SvpajxIECi4JDUbGLefvNckmI+c2VWmP43qnEy/0eiwzRUsafg5DVSIWSzZe4d2vFX1u9nRDP46WCFV/PXVBGQ==} + + jss-plugin-global@10.10.0: + resolution: {integrity: sha512-icXEYbMufiNuWfuazLeN+BNJO16Ge88OcXU5ZDC2vLqElmMybA31Wi7lZ3lf+vgufRocvPj8443irhYRgWxP+A==} + + jss-plugin-nested@10.10.0: + resolution: {integrity: sha512-9R4JHxxGgiZhurDo3q7LdIiDEgtA1bTGzAbhSPyIOWb7ZubrjQe8acwhEQ6OEKydzpl8XHMtTnEwHXCARLYqYA==} + + jss-plugin-props-sort@10.10.0: + resolution: {integrity: sha512-5VNJvQJbnq/vRfje6uZLe/FyaOpzP/IH1LP+0fr88QamVrGJa0hpRRyAa0ea4U/3LcorJfBFVyC4yN2QC73lJg==} + + jss-plugin-rule-value-function@10.10.0: + resolution: {integrity: sha512-uEFJFgaCtkXeIPgki8ICw3Y7VMkL9GEan6SqmT9tqpwM+/t+hxfMUdU4wQ0MtOiMNWhwnckBV0IebrKcZM9C0g==} + + jss-plugin-vendor-prefixer@10.10.0: + resolution: {integrity: sha512-UY/41WumgjW8r1qMCO8l1ARg7NHnfRVWRhZ2E2m0DMYsr2DD91qIXLyNhiX83hHswR7Wm4D+oDYNC1zWCJWtqg==} + + jss@10.10.0: + resolution: {integrity: sha512-cqsOTS7jqPsPMjtKYDUpdFC0AbhYFLTcuGRqymgmdJIeQ8cH7+AgX7YSgQy79wXloZq2VvATYxUOUQEvS1V/Zw==} + keyv@4.5.4: resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} @@ -1771,6 +1927,10 @@ packages: lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + loose-envify@1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} + hasBin: true + loupe@2.3.7: resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==} @@ -1837,6 +1997,9 @@ packages: mlly@1.7.4: resolution: {integrity: sha512-qmdSIPC4bDJXgZTCR7XosJiNKySV7O215tsPtDN9iEO/7q/76b/ijtgRu/+epFXSJhijtTCCGp3DWS549P3xKw==} + mock-json-schema@1.1.2: + resolution: {integrity: sha512-3IyduYlhfzPy+nFN8wxUjloUi1hM7l8lN5LITuauUNMQltynJIOfLf/DADwTAp2d6kvSBtWojly1EuxX5B0WkA==} + mri@1.2.0: resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} engines: {node: '>=4'} @@ -1865,6 +2028,10 @@ packages: resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} + object-inspect@1.13.4: resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} engines: {node: '>= 0.4'} @@ -1896,12 +2063,19 @@ packages: resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} engines: {node: '>=12'} + openapi-backend@5.11.1: + resolution: {integrity: sha512-TsIbku0692sU1X5Ewhzj49ivd8EIT0GDtwbB7XvT234lY3+oJfTe3cUWaBzeKGeX+a1mjcluuJ4V+wTancRbdA==} + engines: {node: '>=12.0.0'} + openapi-client-axios@7.8.0: resolution: {integrity: sha512-EeMbETGAEUn2XB2tduIwaW8/fBc05ZJPiTGe0dXj4fUmNFKVLAh4rIX6xlIzfKTBdBW+UQEtHO8l3VBQ6DH+XQ==} peerDependencies: axios: '>=0.25.0' js-yaml: ^4.1.0 + openapi-schema-validator@12.1.3: + resolution: {integrity: sha512-xTHOmxU/VQGUgo7Cm0jhwbklOKobXby+/237EG967+3TQEYJztMgX9Q5UE2taZKwyKPUq0j11dngpGjUuxz1hQ==} + openapi-types@12.1.3: resolution: {integrity: sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==} @@ -2001,6 +2175,9 @@ packages: pkg-types@1.3.1: resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==} + popper.js@1.16.1-lts: + resolution: {integrity: sha512-Kjw8nKRl1m+VrSFCoVGPph93W/qrSO7ZkqPpTf7F4bk/sqcfWK019dWBUpE/fBOsOQY1dks/Bmcbfn1heM/IsA==} + possible-typed-array-names@1.1.0: resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==} engines: {node: '>= 0.4'} @@ -2031,6 +2208,9 @@ packages: resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + prop-types@15.8.1: + resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==} + proxy-from-env@1.1.0: resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} @@ -2058,9 +2238,30 @@ packages: queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + react-dom@17.0.2: + resolution: {integrity: sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==} + peerDependencies: + react: 17.0.2 + + react-is@16.13.1: + resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} + + react-is@17.0.2: + resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} + react-is@18.3.1: resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} + react-transition-group@4.4.5: + resolution: {integrity: sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==} + peerDependencies: + react: '>=16.6.0' + react-dom: '>=16.6.0' + + react@17.0.2: + resolution: {integrity: sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==} + engines: {node: '>=0.10.0'} + read-yaml-file@1.1.0: resolution: {integrity: sha512-VIMnQi/Z4HT2Fxuwg5KrY174U1VdUIASQVWXXyqtNRtxSr9IYkn1rsI6Tb6HsrHCmB7gVpNwX6JxPTHcH6IoTA==} engines: {node: '>=6'} @@ -2085,6 +2286,10 @@ packages: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} @@ -2134,6 +2339,9 @@ packages: safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + scheduler@0.20.2: + resolution: {integrity: sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==} + semver@6.3.1: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true @@ -2295,6 +2503,9 @@ packages: resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} engines: {node: '>=8'} + tiny-warning@1.0.3: + resolution: {integrity: sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==} + tinybench@2.9.0: resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} @@ -2560,6 +2771,13 @@ snapshots: '@jridgewell/gen-mapping': 0.3.8 '@jridgewell/trace-mapping': 0.3.25 + '@apidevtools/json-schema-ref-parser@11.9.3': + dependencies: + '@jsdevtools/ono': 7.1.3 + '@types/json-schema': 7.0.15 + js-yaml: 4.1.1 + optional: true + '@babel/helper-string-parser@7.27.1': {} '@babel/helper-validator-identifier@7.27.1': {} @@ -2724,7 +2942,17 @@ snapshots: dependencies: '@jridgewell/trace-mapping': 0.3.9 - '@dazn/lambda-powertools-correlation-ids@1.28.1': {} + '@emotion/hash@0.8.0': + optional: true + + '@epilot/epilot-journey-sdk@2.0.0-alpha.1(@material-ui/core@4.12.4(@types/react@17.0.93)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(axios@1.9.0)(js-yaml@4.1.1)': + dependencies: + '@epilot/journey-client': 0.5.3(axios@1.9.0)(js-yaml@4.1.1) + '@material-ui/core': 4.12.4(@types/react@17.0.93)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + transitivePeerDependencies: + - axios + - js-yaml + optional: true '@epilot/eslint-config@3.0.5(eslint@9.28.0)(typescript@5.8.3)': dependencies: @@ -2743,18 +2971,29 @@ snapshots: - eslint-import-resolver-webpack - supports-color - '@epilot/pricing-client@3.55.1(axios@1.9.0)(js-yaml@4.1.1)': + '@epilot/journey-client@0.5.3(axios@1.9.0)(js-yaml@4.1.1)': dependencies: - '@dazn/lambda-powertools-correlation-ids': 1.28.1 axios: 1.9.0 buffer: 6.0.3 https-browserify: 1.0.0 + openapi-backend: 5.11.1 openapi-client-axios: 7.8.0(axios@1.9.0)(js-yaml@4.1.1) stream-http: 3.2.0 url: 0.11.4 util: 0.12.5 transitivePeerDependencies: - js-yaml + optional: true + + '@epilot/sdk@2.18.31(@material-ui/core@4.12.4(@types/react@17.0.93)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(axios@1.9.0)(js-yaml@4.1.1)(openapi-client-axios@7.8.0(axios@1.9.0)(js-yaml@4.1.1))': + dependencies: + axios: 1.9.0 + openapi-client-axios: 7.8.0(axios@1.9.0)(js-yaml@4.1.1) + optionalDependencies: + '@epilot/epilot-journey-sdk': 2.0.0-alpha.1(@material-ui/core@4.12.4(@types/react@17.0.93)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(axios@1.9.0)(js-yaml@4.1.1) + transitivePeerDependencies: + - '@material-ui/core' + - js-yaml '@esbuild/aix-ppc64@0.21.5': optional: true @@ -3000,6 +3239,9 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 + '@jsdevtools/ono@7.1.3': + optional: true + '@manypkg/find-root@1.1.0': dependencies: '@babel/runtime': 7.27.4 @@ -3016,6 +3258,76 @@ snapshots: globby: 11.1.0 read-yaml-file: 1.1.0 + '@material-ui/core@4.12.4(@types/react@17.0.93)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)': + dependencies: + '@babel/runtime': 7.27.4 + '@material-ui/styles': 4.11.5(@types/react@17.0.93)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@material-ui/system': 4.12.2(@types/react@17.0.93)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@material-ui/types': 5.1.0(@types/react@17.0.93) + '@material-ui/utils': 4.11.3(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@types/react-transition-group': 4.4.12(@types/react@17.0.93) + clsx: 1.2.1 + hoist-non-react-statics: 3.3.2 + popper.js: 1.16.1-lts + prop-types: 15.8.1 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + react-is: 17.0.2 + react-transition-group: 4.4.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + optionalDependencies: + '@types/react': 17.0.93 + optional: true + + '@material-ui/styles@4.11.5(@types/react@17.0.93)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)': + dependencies: + '@babel/runtime': 7.27.4 + '@emotion/hash': 0.8.0 + '@material-ui/types': 5.1.0(@types/react@17.0.93) + '@material-ui/utils': 4.11.3(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + clsx: 1.2.1 + csstype: 2.6.21 + hoist-non-react-statics: 3.3.2 + jss: 10.10.0 + jss-plugin-camel-case: 10.10.0 + jss-plugin-default-unit: 10.10.0 + jss-plugin-global: 10.10.0 + jss-plugin-nested: 10.10.0 + jss-plugin-props-sort: 10.10.0 + jss-plugin-rule-value-function: 10.10.0 + jss-plugin-vendor-prefixer: 10.10.0 + prop-types: 15.8.1 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + optionalDependencies: + '@types/react': 17.0.93 + optional: true + + '@material-ui/system@4.12.2(@types/react@17.0.93)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)': + dependencies: + '@babel/runtime': 7.27.4 + '@material-ui/utils': 4.11.3(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + csstype: 2.6.21 + prop-types: 15.8.1 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + optionalDependencies: + '@types/react': 17.0.93 + optional: true + + '@material-ui/types@5.1.0(@types/react@17.0.93)': + optionalDependencies: + '@types/react': 17.0.93 + optional: true + + '@material-ui/utils@4.11.3(react-dom@17.0.2(react@17.0.2))(react@17.0.2)': + dependencies: + '@babel/runtime': 7.27.4 + prop-types: 15.8.1 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + react-is: 17.0.2 + optional: true + '@nodelib/fs.scandir@2.1.5': dependencies: '@nodelib/fs.stat': 2.0.5 @@ -3140,6 +3452,24 @@ snapshots: dependencies: undici-types: 6.21.0 + '@types/prop-types@15.7.15': + optional: true + + '@types/react-transition-group@4.4.12(@types/react@17.0.93)': + dependencies: + '@types/react': 17.0.93 + optional: true + + '@types/react@17.0.93': + dependencies: + '@types/prop-types': 15.7.15 + '@types/scheduler': 0.16.8 + csstype: 3.2.3 + optional: true + + '@types/scheduler@0.16.8': + optional: true + '@types/unist@3.0.3': {} '@typescript-eslint/eslint-plugin@8.0.1(@typescript-eslint/parser@8.0.1(eslint@9.28.0)(typescript@5.8.3))(eslint@9.28.0)(typescript@5.8.3)': @@ -3281,6 +3611,11 @@ snapshots: acorn@8.14.1: {} + ajv-formats@2.1.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + optional: true + ajv@6.12.6: dependencies: fast-deep-equal: 3.1.3 @@ -3288,6 +3623,14 @@ snapshots: json-schema-traverse: 0.4.1 uri-js: 4.4.1 + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.6 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + optional: true + ansi-colors@4.1.3: {} ansi-regex@5.0.1: {} @@ -3383,7 +3726,8 @@ snapshots: balanced-match@1.0.2: {} - base64-js@1.5.1: {} + base64-js@1.5.1: + optional: true bath-es5@3.0.3: {} @@ -3410,8 +3754,10 @@ snapshots: dependencies: base64-js: 1.5.1 ieee754: 1.2.1 + optional: true - builtin-status-codes@3.0.0: {} + builtin-status-codes@3.0.0: + optional: true cac@6.7.14: {} @@ -3473,6 +3819,9 @@ snapshots: strip-ansi: 6.0.1 wrap-ansi: 7.0.0 + clsx@1.2.1: + optional: true + color-convert@2.0.1: dependencies: color-name: 1.1.4 @@ -3497,6 +3846,9 @@ snapshots: confbox@0.1.8: {} + cookie@1.1.1: + optional: true + create-require@1.1.1: {} cross-spawn@7.0.6: @@ -3505,6 +3857,18 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 + css-vendor@2.0.8: + dependencies: + '@babel/runtime': 7.27.4 + is-in-browser: 1.1.3 + optional: true + + csstype@2.6.21: + optional: true + + csstype@3.2.3: + optional: true + data-view-buffer@1.0.2: dependencies: call-bound: 1.0.4 @@ -3571,6 +3935,12 @@ snapshots: dependencies: esutils: 2.0.3 + dom-helpers@5.2.1: + dependencies: + '@babel/runtime': 7.27.4 + csstype: 3.2.3 + optional: true + dunder-proto@1.0.1: dependencies: call-bind-apply-helpers: 1.0.2 @@ -3919,6 +4289,9 @@ snapshots: fast-levenshtein@2.0.6: {} + fast-uri@3.1.6: + optional: true + fastq@1.19.1: dependencies: reusify: 1.1.0 @@ -4088,14 +4461,23 @@ snapshots: dependencies: function-bind: 1.1.2 + hoist-non-react-statics@3.3.2: + dependencies: + react-is: 16.13.1 + optional: true + html-escaper@2.0.2: {} - https-browserify@1.0.0: {} + https-browserify@1.0.0: + optional: true human-id@4.1.3: {} human-signals@5.0.0: {} + hyphenate-style-name@1.1.0: + optional: true + i18next@25.2.1(typescript@5.8.3): dependencies: '@babel/runtime': 7.27.4 @@ -4106,7 +4488,8 @@ snapshots: dependencies: safer-buffer: 2.1.2 - ieee754@1.2.1: {} + ieee754@1.2.1: + optional: true ignore-by-default@1.0.1: {} @@ -4136,6 +4519,7 @@ snapshots: dependencies: call-bound: 1.0.4 has-tostringtag: 1.0.2 + optional: true is-array-buffer@3.0.5: dependencies: @@ -4200,6 +4584,9 @@ snapshots: dependencies: is-extglob: 2.1.1 + is-in-browser@1.1.3: + optional: true + is-map@2.0.3: {} is-negative-zero@2.0.3: {} @@ -4283,6 +4670,9 @@ snapshots: html-escaper: 2.0.2 istanbul-lib-report: 3.0.1 + js-tokens@4.0.0: + optional: true + js-tokens@9.0.1: {} js-yaml@3.14.2: @@ -4302,6 +4692,9 @@ snapshots: json-schema-traverse@0.4.1: {} + json-schema-traverse@1.0.0: + optional: true + json-stable-stringify-without-jsonify@1.0.1: {} json5@1.0.2: @@ -4312,6 +4705,60 @@ snapshots: optionalDependencies: graceful-fs: 4.2.11 + jss-plugin-camel-case@10.10.0: + dependencies: + '@babel/runtime': 7.27.4 + hyphenate-style-name: 1.1.0 + jss: 10.10.0 + optional: true + + jss-plugin-default-unit@10.10.0: + dependencies: + '@babel/runtime': 7.27.4 + jss: 10.10.0 + optional: true + + jss-plugin-global@10.10.0: + dependencies: + '@babel/runtime': 7.27.4 + jss: 10.10.0 + optional: true + + jss-plugin-nested@10.10.0: + dependencies: + '@babel/runtime': 7.27.4 + jss: 10.10.0 + tiny-warning: 1.0.3 + optional: true + + jss-plugin-props-sort@10.10.0: + dependencies: + '@babel/runtime': 7.27.4 + jss: 10.10.0 + optional: true + + jss-plugin-rule-value-function@10.10.0: + dependencies: + '@babel/runtime': 7.27.4 + jss: 10.10.0 + tiny-warning: 1.0.3 + optional: true + + jss-plugin-vendor-prefixer@10.10.0: + dependencies: + '@babel/runtime': 7.27.4 + css-vendor: 2.0.8 + jss: 10.10.0 + optional: true + + jss@10.10.0: + dependencies: + '@babel/runtime': 7.27.4 + csstype: 3.2.3 + is-in-browser: 1.1.3 + tiny-warning: 1.0.3 + optional: true + keyv@4.5.4: dependencies: json-buffer: 3.0.1 @@ -4387,6 +4834,11 @@ snapshots: lodash@4.17.21: {} + loose-envify@1.4.0: + dependencies: + js-tokens: 4.0.0 + optional: true + loupe@2.3.7: dependencies: get-func-name: 2.0.2 @@ -4456,6 +4908,11 @@ snapshots: pkg-types: 1.3.1 ufo: 1.6.1 + mock-json-schema@1.1.2: + dependencies: + lodash: 4.17.21 + optional: true + mri@1.2.0: {} ms@2.1.3: {} @@ -4483,6 +4940,9 @@ snapshots: dependencies: path-key: 4.0.0 + object-assign@4.1.1: + optional: true + object-inspect@1.13.4: {} object-keys@1.1.1: {} @@ -4524,6 +4984,20 @@ snapshots: dependencies: mimic-fn: 4.0.0 + openapi-backend@5.11.1: + dependencies: + '@apidevtools/json-schema-ref-parser': 11.9.3 + ajv: 8.20.0 + bath-es5: 3.0.3 + cookie: 1.1.1 + dereference-json-schema: 0.2.1 + lodash: 4.17.21 + mock-json-schema: 1.1.2 + openapi-schema-validator: 12.1.3 + openapi-types: 12.1.3 + qs: 6.14.0 + optional: true + openapi-client-axios@7.8.0(axios@1.9.0)(js-yaml@4.1.1): dependencies: axios: 1.9.0 @@ -4532,6 +5006,14 @@ snapshots: js-yaml: 4.1.1 openapi-types: 12.1.3 + openapi-schema-validator@12.1.3: + dependencies: + ajv: 8.20.0 + ajv-formats: 2.1.1(ajv@8.20.0) + lodash.merge: 4.6.2 + openapi-types: 12.1.3 + optional: true + openapi-types@12.1.3: {} optionator@0.9.4: @@ -4617,6 +5099,9 @@ snapshots: mlly: 1.7.4 pathe: 2.0.3 + popper.js@1.16.1-lts: + optional: true + possible-typed-array-names@1.1.0: {} postcss@8.5.4: @@ -4641,26 +5126,65 @@ snapshots: ansi-styles: 5.2.0 react-is: 18.3.1 + prop-types@15.8.1: + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + react-is: 16.13.1 + optional: true + proxy-from-env@1.1.0: {} pstree.remy@1.1.8: {} punycode.js@2.3.1: {} - punycode@1.4.1: {} + punycode@1.4.1: + optional: true punycode@2.3.1: {} qs@6.14.0: dependencies: side-channel: 1.1.0 + optional: true quansync@0.2.11: {} queue-microtask@1.2.3: {} + react-dom@17.0.2(react@17.0.2): + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + react: 17.0.2 + scheduler: 0.20.2 + optional: true + + react-is@16.13.1: + optional: true + + react-is@17.0.2: + optional: true + react-is@18.3.1: {} + react-transition-group@4.4.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2): + dependencies: + '@babel/runtime': 7.27.4 + dom-helpers: 5.2.1 + loose-envify: 1.4.0 + prop-types: 15.8.1 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + optional: true + + react@17.0.2: + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + optional: true + read-yaml-file@1.1.0: dependencies: graceful-fs: 4.2.11 @@ -4673,6 +5197,7 @@ snapshots: inherits: 2.0.4 string_decoder: 1.3.0 util-deprecate: 1.0.2 + optional: true readdirp@3.6.0: dependencies: @@ -4700,6 +5225,9 @@ snapshots: require-directory@2.1.1: {} + require-from-string@2.0.2: + optional: true + resolve-from@4.0.0: {} resolve-from@5.0.0: {} @@ -4756,7 +5284,8 @@ snapshots: has-symbols: 1.1.0 isarray: 2.0.5 - safe-buffer@5.2.1: {} + safe-buffer@5.2.1: + optional: true safe-push-apply@1.0.0: dependencies: @@ -4771,6 +5300,12 @@ snapshots: safer-buffer@2.1.2: {} + scheduler@0.20.2: + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + optional: true + semver@6.3.1: {} semver@7.7.2: {} @@ -4867,6 +5402,7 @@ snapshots: inherits: 2.0.4 readable-stream: 3.6.2 xtend: 4.0.2 + optional: true string-width@4.2.3: dependencies: @@ -4900,6 +5436,7 @@ snapshots: string_decoder@1.3.0: dependencies: safe-buffer: 5.2.1 + optional: true strip-ansi@6.0.1: dependencies: @@ -4948,6 +5485,9 @@ snapshots: glob: 7.2.3 minimatch: 3.1.2 + tiny-warning@1.0.3: + optional: true + tinybench@2.9.0: {} tinypool@0.8.4: {} @@ -5072,8 +5612,10 @@ snapshots: dependencies: punycode: 1.4.1 qs: 6.14.0 + optional: true - util-deprecate@1.0.2: {} + util-deprecate@1.0.2: + optional: true util@0.12.5: dependencies: @@ -5082,6 +5624,7 @@ snapshots: is-generator-function: 1.1.0 is-typed-array: 1.1.15 which-typed-array: 1.1.19 + optional: true v8-compile-cache-lib@3.0.1: {} @@ -5206,7 +5749,8 @@ snapshots: wrappy@1.0.2: {} - xtend@4.0.2: {} + xtend@4.0.2: + optional: true y18n@5.0.8: {} diff --git a/src/computations/apply-discounts.ts b/src/computations/apply-discounts.ts index dea25e36..328c1ff3 100644 --- a/src/computations/apply-discounts.ts +++ b/src/computations/apply-discounts.ts @@ -1,4 +1,4 @@ -import type { TaxItem } from '@epilot/pricing-client'; +import type { TaxItem } from '@epilot/sdk/pricing'; import { isCashbackCoupon, isFixedValueCoupon, isPercentageCoupon } from '../coupons/guards'; import { toDineroFromInteger, toDinero } from '../money/to-dinero'; import { PricingModel } from '../prices/constants'; diff --git a/src/computations/compute-composite-price.test.ts b/src/computations/compute-composite-price.test.ts index e7e47c58..6379266a 100644 --- a/src/computations/compute-composite-price.test.ts +++ b/src/computations/compute-composite-price.test.ts @@ -1,4 +1,4 @@ -import type { CompositePriceItemDto } from '@epilot/pricing-client'; +import type { CompositePriceItemDto } from '@epilot/sdk/pricing'; import { describe, expect, it } from 'vitest'; import * as samples from '../__tests__/fixtures/price.samples'; import * as results from '../__tests__/fixtures/pricing.results'; diff --git a/src/computations/compute-composite-price.ts b/src/computations/compute-composite-price.ts index 85ab5748..521bd4bb 100644 --- a/src/computations/compute-composite-price.ts +++ b/src/computations/compute-composite-price.ts @@ -6,7 +6,7 @@ import type { Price, CompositePriceItem, TaxAmountDto, -} from '@epilot/pricing-client'; +} from '@epilot/sdk/pricing'; import { DEFAULT_CURRENCY } from '../money/constants'; import { toDinero } from '../money/to-dinero'; import { PricingModel } from '../prices/constants'; diff --git a/src/computations/compute-external-dynamic-tariff-values.ts b/src/computations/compute-external-dynamic-tariff-values.ts index 9300a137..500934e0 100644 --- a/src/computations/compute-external-dynamic-tariff-values.ts +++ b/src/computations/compute-external-dynamic-tariff-values.ts @@ -1,4 +1,4 @@ -import type { PriceDynamicTariff, Tax, TaxItem } from '@epilot/pricing-client'; +import type { PriceDynamicTariff, Tax, TaxItem } from '@epilot/sdk/pricing'; import type { Currency } from 'dinero.js'; import { toDinero } from '../money/to-dinero'; import { ModeDynamicTariff } from '../prices/constants'; diff --git a/src/computations/compute-external-get-agitem-values.ts b/src/computations/compute-external-get-agitem-values.ts index 698b3af6..bb5d7920 100644 --- a/src/computations/compute-external-get-agitem-values.ts +++ b/src/computations/compute-external-get-agitem-values.ts @@ -1,4 +1,4 @@ -import type { PriceGetAg, Tax, TaxItem } from '@epilot/pricing-client'; +import type { PriceGetAg, Tax, TaxItem } from '@epilot/sdk/pricing'; import type { Currency } from 'dinero.js'; import { toDinero, toDineroFromInteger } from '../money/to-dinero'; import { MarkupPricingModel, TypeGetAg } from '../prices/constants'; diff --git a/src/computations/compute-per-unit-price-item-values.ts b/src/computations/compute-per-unit-price-item-values.ts index a8745380..1bd9b326 100644 --- a/src/computations/compute-per-unit-price-item-values.ts +++ b/src/computations/compute-per-unit-price-item-values.ts @@ -1,4 +1,4 @@ -import type { Tax, TaxItem } from '@epilot/pricing-client'; +import type { Tax, TaxItem } from '@epilot/sdk/pricing'; import type { Currency, Dinero } from 'dinero.js'; import { toDinero } from '../money/to-dinero'; import type { PriceItemsTotals } from '../prices/types'; diff --git a/src/computations/compute-price-item.ts b/src/computations/compute-price-item.ts index e36a74dd..8791af2f 100644 --- a/src/computations/compute-price-item.ts +++ b/src/computations/compute-price-item.ts @@ -7,7 +7,7 @@ import type { PriceItem, Price, TaxItem, -} from '@epilot/pricing-client'; +} from '@epilot/sdk/pricing'; import type { Currency } from 'dinero.js'; import { isValidCoupon } from '../coupons/guards'; import { getCouponOrder, getRedeemedPromoCouponIds } from '../coupons/utils'; diff --git a/src/computations/compute-tiered-flat-fee-price-item-values.ts b/src/computations/compute-tiered-flat-fee-price-item-values.ts index 464c32ea..b8d7a679 100644 --- a/src/computations/compute-tiered-flat-fee-price-item-values.ts +++ b/src/computations/compute-tiered-flat-fee-price-item-values.ts @@ -1,4 +1,4 @@ -import type { PriceTier, Tax, Price, TaxItem } from '@epilot/pricing-client'; +import type { PriceTier, Tax, Price, TaxItem } from '@epilot/sdk/pricing'; import type { Currency } from 'dinero.js'; import { toDineroFromInteger } from '../money/to-dinero'; import type { PriceItemsTotals } from '../prices/types'; diff --git a/src/computations/compute-tiered-graduated-price-item-values.ts b/src/computations/compute-tiered-graduated-price-item-values.ts index 8378f1f0..039d0f68 100644 --- a/src/computations/compute-tiered-graduated-price-item-values.ts +++ b/src/computations/compute-tiered-graduated-price-item-values.ts @@ -1,4 +1,4 @@ -import type { PriceTier, Tax, Price, TaxItem } from '@epilot/pricing-client'; +import type { PriceTier, Tax, Price, TaxItem } from '@epilot/sdk/pricing'; import type { Currency } from 'dinero.js'; import { toDineroFromInteger } from '../money/to-dinero'; import type { PriceItemsTotals } from '../prices/types'; diff --git a/src/computations/compute-tiered-volume-price-item-values.ts b/src/computations/compute-tiered-volume-price-item-values.ts index 628e41a3..2581ffac 100644 --- a/src/computations/compute-tiered-volume-price-item-values.ts +++ b/src/computations/compute-tiered-volume-price-item-values.ts @@ -1,4 +1,4 @@ -import type { PriceTier, Tax, Price, TaxItem } from '@epilot/pricing-client'; +import type { PriceTier, Tax, Price, TaxItem } from '@epilot/sdk/pricing'; import type { Currency } from 'dinero.js'; import { toDineroFromInteger } from '../money/to-dinero'; import type { PriceItemsTotals } from '../prices/types'; diff --git a/src/computations/compute-totals.test.ts b/src/computations/compute-totals.test.ts index c70457a1..026200e6 100644 --- a/src/computations/compute-totals.test.ts +++ b/src/computations/compute-totals.test.ts @@ -1,4 +1,4 @@ -import type { PriceItemDto, CompositePriceItemDto, PriceItemsDto, Price } from '@epilot/pricing-client'; +import type { PriceItemDto, CompositePriceItemDto, PriceItemsDto, Price } from '@epilot/sdk/pricing'; import { describe, expect, it } from 'vitest'; import * as samples from '../__tests__/fixtures/price.samples'; import * as results from '../__tests__/fixtures/pricing.results'; diff --git a/src/computations/pricing-dynamic-tariff.test.ts b/src/computations/pricing-dynamic-tariff.test.ts index 3c2c7bb8..431f6bfa 100644 --- a/src/computations/pricing-dynamic-tariff.test.ts +++ b/src/computations/pricing-dynamic-tariff.test.ts @@ -1,4 +1,4 @@ -import type { PriceItemDto } from '@epilot/pricing-client'; +import type { PriceItemDto } from '@epilot/sdk/pricing'; import { describe, expect, it } from 'vitest'; import { compositePriceDynamicManual, diff --git a/src/computations/pricing-getag.test.ts b/src/computations/pricing-getag.test.ts index 98719830..cd173514 100644 --- a/src/computations/pricing-getag.test.ts +++ b/src/computations/pricing-getag.test.ts @@ -1,4 +1,4 @@ -import type { PriceItem, PriceItemDto } from '@epilot/pricing-client'; +import type { PriceItem, PriceItemDto } from '@epilot/sdk/pricing'; import { describe, expect, it } from 'vitest'; import { compositePriceGetAG, diff --git a/src/coupons/types.ts b/src/coupons/types.ts index 7a1ead0c..afe06fa5 100644 --- a/src/coupons/types.ts +++ b/src/coupons/types.ts @@ -1,4 +1,4 @@ -import type { Coupon } from '@epilot/pricing-client'; +import type { Coupon } from '@epilot/sdk/pricing'; import type { Currency } from 'dinero.js'; import type { RemoveIndexSignature } from '../shared/type-utils'; diff --git a/src/coupons/utils.ts b/src/coupons/utils.ts index ae23eb35..8c3a6d28 100644 --- a/src/coupons/utils.ts +++ b/src/coupons/utils.ts @@ -1,4 +1,4 @@ -import type { CompositePriceItem, Coupon, RedeemedPromo } from '@epilot/pricing-client'; +import type { CompositePriceItem, Coupon, RedeemedPromo } from '@epilot/sdk/pricing'; import { isCashbackCoupon, isPercentageCoupon, isFixedValueCoupon } from './guards'; const getTimestamp = (dateString?: string): number => { diff --git a/src/getag/extract-config.test.ts b/src/getag/extract-config.test.ts index d35d445f..746cf776 100644 --- a/src/getag/extract-config.test.ts +++ b/src/getag/extract-config.test.ts @@ -1,4 +1,4 @@ -import type { CompositePriceItem, PriceGetAg, PriceItem, TariffTypeGetAg } from '@epilot/pricing-client'; +import type { CompositePriceItem, PriceGetAg, PriceItem, TariffTypeGetAg } from '@epilot/sdk/pricing'; import { describe, expect, it } from 'vitest'; import { extractGetAgConfig } from './extract-config'; diff --git a/src/getag/extract-config.ts b/src/getag/extract-config.ts index ade8919a..dc275fa1 100644 --- a/src/getag/extract-config.ts +++ b/src/getag/extract-config.ts @@ -1,4 +1,4 @@ -import type { CompositePriceItem, PriceGetAg, PriceItem, TariffTypeGetAg } from '@epilot/pricing-client'; +import type { CompositePriceItem, PriceGetAg, PriceItem, TariffTypeGetAg } from '@epilot/sdk/pricing'; import { isCompositePrice } from '../prices/utils'; /** diff --git a/src/prices/approval.ts b/src/prices/approval.ts index cee2df65..7e8b1a79 100644 --- a/src/prices/approval.ts +++ b/src/prices/approval.ts @@ -1,4 +1,4 @@ -import type { PriceItem, CompositePriceItem, Price } from '@epilot/pricing-client'; +import type { PriceItem, CompositePriceItem, Price } from '@epilot/sdk/pricing'; import { isCompositePriceItem } from './utils'; /** diff --git a/src/prices/convert-precision.ts b/src/prices/convert-precision.ts index d9aec363..90f053e9 100644 --- a/src/prices/convert-precision.ts +++ b/src/prices/convert-precision.ts @@ -1,4 +1,4 @@ -import type { CashbackAmount, PriceGetAg, TaxAmount, TaxAmountBreakdown } from '@epilot/pricing-client'; +import type { CashbackAmount, PriceGetAg, TaxAmount, TaxAmountBreakdown } from '@epilot/sdk/pricing'; import { toDineroFromInteger } from '../money/to-dinero'; import { PricingModel } from '../prices/constants'; import type { diff --git a/src/prices/get-immutable-price-item.ts b/src/prices/get-immutable-price-item.ts index 119035ac..31e6ef00 100644 --- a/src/prices/get-immutable-price-item.ts +++ b/src/prices/get-immutable-price-item.ts @@ -1,4 +1,4 @@ -import type { PriceItem, CompositePriceItem, PricingDetails } from '@epilot/pricing-client'; +import type { PriceItem, CompositePriceItem, PricingDetails } from '@epilot/sdk/pricing'; import { isValidCoupon } from '../coupons/guards'; import { toDinero } from '../money/to-dinero'; diff --git a/src/prices/get-price-recurrence.ts b/src/prices/get-price-recurrence.ts index f1172cc2..480ec9fe 100644 --- a/src/prices/get-price-recurrence.ts +++ b/src/prices/get-price-recurrence.ts @@ -1,4 +1,4 @@ -import type { Price, RecurrenceAmount, RecurrenceAmountWithTax, Tax } from '@epilot/pricing-client'; +import type { Price, RecurrenceAmount, RecurrenceAmountWithTax, Tax } from '@epilot/sdk/pricing'; export const getPriceRecurrence = (price: Price | undefined, recurrences: RecurrenceAmount[]) => { if (price?.type === 'recurring') { diff --git a/src/prices/get-price-tax.ts b/src/prices/get-price-tax.ts index 1a69b25a..1d5aae23 100644 --- a/src/prices/get-price-tax.ts +++ b/src/prices/get-price-tax.ts @@ -1,4 +1,4 @@ -import type { TaxItem } from '@epilot/pricing-client'; +import type { TaxItem } from '@epilot/sdk/pricing'; import type { Tax, Price, TaxAmountDto } from '../shared/types'; /** diff --git a/src/shared/types.ts b/src/shared/types.ts index ff7fb2ab..7bc0afa0 100644 --- a/src/shared/types.ts +++ b/src/shared/types.ts @@ -23,14 +23,25 @@ export type { PriceInputMappings, PriceInputMapping, PriceTier, - PriceTierEnhanced, PriceTierDisplayMode, CashbackAmount, RedeemedPromo, Order, TierDetails, CompositePriceItem, -} from '@epilot/pricing-client'; +} from '@epilot/sdk/pricing'; export type { Currency, Dinero } from 'dinero.js'; +import type { PriceTier } from '@epilot/sdk/pricing'; import type { i18n } from 'i18next'; export type I18n = Pick; + +/** + * Legacy type formerly exported by @epilot/pricing-client. The gross fields + * were removed from the OpenAPI specification, so it lives here now. + */ +export interface PriceTierEnhanced extends PriceTier { + unit_amount_gross?: number; + unit_amount_gross_decimal?: string; + flat_fee_amount_gross?: number; + flat_fee_amount_gross_decimal?: string; +} diff --git a/src/taxes/extract-tax-from-price.ts b/src/taxes/extract-tax-from-price.ts index 40f66175..6551ff42 100644 --- a/src/taxes/extract-tax-from-price.ts +++ b/src/taxes/extract-tax-from-price.ts @@ -1,4 +1,4 @@ -import type { CompositePriceItem, PriceItem, Tax, TaxItem } from '@epilot/pricing-client'; +import type { CompositePriceItem, PriceItem, Tax, TaxItem } from '@epilot/sdk/pricing'; import { isCompositePriceItem } from '../prices/utils'; export const extractTaxFromPriceItem = (item: PriceItem | CompositePriceItem) => { diff --git a/src/taxes/get-tax-value.test.ts b/src/taxes/get-tax-value.test.ts index ad64eff8..e33d0029 100644 --- a/src/taxes/get-tax-value.test.ts +++ b/src/taxes/get-tax-value.test.ts @@ -1,4 +1,4 @@ -import type { Tax } from '@epilot/pricing-client'; +import type { Tax } from '@epilot/sdk/pricing'; import { describe, expect, it } from 'vitest'; import * as taxes from '../__tests__/fixtures/tax.samples'; import { getTaxValue } from './get-tax-value'; diff --git a/src/taxes/get-tax-value.ts b/src/taxes/get-tax-value.ts index c89ada3b..7a6fb793 100644 --- a/src/taxes/get-tax-value.ts +++ b/src/taxes/get-tax-value.ts @@ -1,4 +1,4 @@ -import type { Tax, TaxItem } from '@epilot/pricing-client'; +import type { Tax, TaxItem } from '@epilot/sdk/pricing'; import { TaxRates } from './constants'; export const getTaxValue = (tax?: Tax | TaxItem): number => { diff --git a/src/tiers/compute-cumulative-value.ts b/src/tiers/compute-cumulative-value.ts index ae37b5a0..1acca1c3 100644 --- a/src/tiers/compute-cumulative-value.ts +++ b/src/tiers/compute-cumulative-value.ts @@ -1,4 +1,4 @@ -import type { PriceTier, Tax } from '@epilot/pricing-client'; +import type { PriceTier, Tax } from '@epilot/sdk/pricing'; import type { Currency, Dinero } from 'dinero.js'; import { DEFAULT_LOCALE } from '../money/constants'; import { DEFAULT_CURRENCY } from '../money/constants'; diff --git a/src/time-frequency/constants.ts b/src/time-frequency/constants.ts index 9d762162..9fe4227d 100644 --- a/src/time-frequency/constants.ts +++ b/src/time-frequency/constants.ts @@ -1,4 +1,4 @@ -import type { BillingPeriod } from '@epilot/pricing-client'; +import type { BillingPeriod } from '@epilot/sdk/pricing'; import type { NormalizationFactor } from './types'; /** diff --git a/src/variables/getag/details.ts b/src/variables/getag/details.ts index 843e77d9..60397fa3 100644 --- a/src/variables/getag/details.ts +++ b/src/variables/getag/details.ts @@ -1,5 +1,5 @@ import type { Currency, TimeFrequency } from '@epilot/pricing'; -import type { CompositePriceItem, PriceItem } from '@epilot/pricing-client'; +import type { CompositePriceItem, PriceItem } from '@epilot/sdk/pricing'; import { formatPriceUnit } from '../../money/formatters'; import type { I18n } from '../../shared/types'; import { extractTaxFromPriceItem } from '../../taxes/extract-tax-from-price'; diff --git a/src/variables/getag/utils.test.ts b/src/variables/getag/utils.test.ts index cda39a61..2650ccdb 100644 --- a/src/variables/getag/utils.test.ts +++ b/src/variables/getag/utils.test.ts @@ -1,4 +1,4 @@ -import type { PriceGetAg, TariffTypeGetAg } from '@epilot/pricing-client'; +import type { PriceGetAg, TariffTypeGetAg } from '@epilot/sdk/pricing'; import { describe, expect, it, vi } from 'vitest'; import { tax19percent } from '../../__tests__/fixtures/tax.samples'; import type { Currency, I18n } from '../../shared/types'; diff --git a/src/variables/getag/utils.ts b/src/variables/getag/utils.ts index d6fc9378..dc7b0a83 100644 --- a/src/variables/getag/utils.ts +++ b/src/variables/getag/utils.ts @@ -1,4 +1,4 @@ -import type { PriceGetAg, TariffTypeGetAg } from '@epilot/pricing-client'; +import type { PriceGetAg, TariffTypeGetAg } from '@epilot/sdk/pricing'; import { formatFeeAmountFromString } from '../../getag/formatters'; import { DEFAULT_CURRENCY } from '../../money/constants'; import { toDinero } from '../../money/to-dinero'; diff --git a/src/variables/types.ts b/src/variables/types.ts index 5f2f26b9..445204ed 100644 --- a/src/variables/types.ts +++ b/src/variables/types.ts @@ -6,7 +6,7 @@ import type { Product, RecurrenceAmount, RecurrenceAmountWithTax, -} from '@epilot/pricing-client'; +} from '@epilot/sdk/pricing'; export type PriceItemWithParent = | (PriceItem & { parent_item: CompositePriceItem }) From f0ed940c483556f56bd4ed5e6ed303fab4b4b111 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 26 Aug 2026 14:44:28 +0000 Subject: [PATCH 2/2] chore: release as minor instead of major Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_014ydZRYfnvFAgKVAXoJHkX5 --- .changeset/red-pandas-prefer-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/red-pandas-prefer-sdk.md b/.changeset/red-pandas-prefer-sdk.md index e3f33714..9ebcd466 100644 --- a/.changeset/red-pandas-prefer-sdk.md +++ b/.changeset/red-pandas-prefer-sdk.md @@ -1,5 +1,5 @@ --- -"@epilot/pricing": major +"@epilot/pricing": minor --- Migrate from `@epilot/pricing-client` to `@epilot/sdk`.