From 675ee16b59625f4e105cfbb785a56c07bc541798 Mon Sep 17 00:00:00 2001 From: Jules Casteran Date: Thu, 11 Jul 2024 15:05:49 +0200 Subject: [PATCH 1/2] fix(scw): export Decimal class --- packages/clients/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/clients/src/index.ts b/packages/clients/src/index.ts index 4d31a12d9..0bce6c0e6 100644 --- a/packages/clients/src/index.ts +++ b/packages/clients/src/index.ts @@ -23,6 +23,7 @@ export { withUserAgentSuffix, } from './scw/client-ini-factory' export type { ClientConfig } from './scw/client-ini-factory' +export { Decimal } from './scw/custom-types' export type { Money, ScwFile, TimeSeries } from './scw/custom-types' /* eslint-disable import/export,no-restricted-syntax */ export * as Errors from './scw/errors/standard' From b2a2829803e9b05bc4726f38c97e3048be451b91 Mon Sep 17 00:00:00 2001 From: Jules Casteran Date: Thu, 11 Jul 2024 15:08:51 +0200 Subject: [PATCH 2/2] fix(scw): export decimal marshal and unmarshal --- packages/clients/src/internals.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/clients/src/internals.ts b/packages/clients/src/internals.ts index 539063d2f..2487d4c83 100644 --- a/packages/clients/src/internals.ts +++ b/packages/clients/src/internals.ts @@ -11,9 +11,11 @@ export { authenticateWithSessionToken } from './scw/auth' /* eslint-enable deprecation/deprecation */ export type { DefaultValues } from './scw/client-settings' export { + marshalDecimal, marshalScwFile, marshalMoney, marshalTimeSeries, + unmarshalDecimal, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo,