Skip to content

Commit 5c353cc

Browse files
authored
WT-1727 Export smart checkout types (#932)
1 parent c03355f commit 5c353cc

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

packages/checkout/sdk/src/index.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,21 @@ export {
55
CHECKOUT_API_BASE_URL,
66
CheckoutStatus,
77
ExchangeType,
8+
FundingStepType,
89
GasEstimateType,
910
GasTokenType,
1011
ItemType,
1112
NetworkFilterTypes,
13+
RoutingOutcomeType,
1214
TokenFilterTypes,
1315
TransactionOrGasType,
1416
WalletFilterTypes,
1517
WalletProviderName,
1618
} from './types';
1719
export type {
1820
AllowedNetworkConfig,
21+
AvailableRoutingOptions,
22+
BalanceDelta,
1923
BuyOrder,
2024
BuyParams,
2125
BuyResult,
@@ -28,12 +32,17 @@ export type {
2832
ConnectParams,
2933
ConnectResult,
3034
DexConfig,
35+
FeePercentage,
36+
NativeItemRequirement,
3137
ERC20ItemRequirement,
3238
ERC721ItemRequirement,
33-
FeePercentage,
3439
FeeToken,
3540
FiatRampParams,
3641
FulfillmentTransaction,
42+
FundingItem,
43+
FundingRoute,
44+
FundingRouteFeeEstimate,
45+
FundingStep,
3746
GasAmount,
3847
GasEstimateBridgeToL2Result,
3948
GasEstimateParams,
@@ -51,23 +60,26 @@ export type {
5160
GetTokenAllowListResult,
5261
GetWalletAllowListParams,
5362
GetWalletAllowListResult,
54-
ItemRequirement,
55-
NativeItemRequirement,
63+
ItemBalance,
5664
NetworkFilter,
5765
NetworkInfo,
5866
OrderFee,
5967
RemoteConfiguration,
68+
RoutingOutcome,
6069
SellOrder,
6170
SellParams,
6271
SellResult,
6372
SellToken,
6473
SendTransactionParams,
6574
SendTransactionResult,
6675
SmartCheckoutParams,
76+
SmartCheckoutResult,
77+
SmartCheckoutRouter,
6778
SwitchNetworkParams,
6879
SwitchNetworkResult,
6980
TokenFilter,
7081
TokenInfo,
82+
TransactionRequirement,
7183
WalletFilter,
7284
WalletInfo,
7385
} from './types';

packages/checkout/sdk/src/types/smartCheckout.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ export type RoutesFound = {
431431
* @property {RoutingOutcomeType.NO_ROUTES_FOUND} type - Indicates that no funding routes were found for the transaction.
432432
* @property {string} message - The message indicating why no funding routes were found.
433433
*/
434-
type NoRoutesFound = {
434+
export type NoRoutesFound = {
435435
type: RoutingOutcomeType.NO_ROUTES_FOUND,
436436
message: string
437437
};
@@ -441,7 +441,7 @@ type NoRoutesFound = {
441441
* @property {RoutingOutcomeType.NO_ROUTE_OPTIONS} type - Indicates that no routing options were available for the transaction.
442442
* @property {string} message - The message indicating why no routing options were available.
443443
*/
444-
type NoRouteOptions = {
444+
export type NoRouteOptions = {
445445
type: RoutingOutcomeType.NO_ROUTE_OPTIONS,
446446
message: string
447447
};

0 commit comments

Comments
 (0)