Skip to content

Commit

Permalink
fix x-client rollup bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeSchwert committed Feb 28, 2024
1 parent fecb259 commit 0ac07e4
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 3 deletions.
94 changes: 92 additions & 2 deletions packages/x-client/src/types/api.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,92 @@
export * from '@imtbl/generated-clients/dist/imx/api';
export * from '@imtbl/generated-clients/dist/imx/models';
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable max-len */
import { imx } from '@imtbl/generated-clients';

/**
* Need to specifically export the classes and interfaces from the generated
* clients imx object for rollup to bundle them correctly.
*/

export class AssetsApi extends imx.AssetsApi {}
export class BalancesApi extends imx.BalancesApi {}
export class CollectionsApi extends imx.CollectionsApi {}
export class DepositsApi extends imx.DepositsApi {}
export class EncodingApi extends imx.EncodingApi {}
export class ExchangesApi extends imx.ExchangesApi {}
export class MintsApi extends imx.MintsApi {}
export class MetadataApi extends imx.MetadataApi {}
export class MetadataRefreshesApi extends imx.MetadataRefreshesApi {}
export class NftCheckoutPrimaryApi extends imx.NftCheckoutPrimaryApi {}
export class OrdersApi extends imx.OrdersApi {}
export class PrimarySalesApi extends imx.PrimarySalesApi {}
export class ProjectsApi extends imx.ProjectsApi {}
export class TokensApi extends imx.TokensApi {}
export class TradesApi extends imx.TradesApi {}
export class TransfersApi extends imx.TransfersApi {}
export class UsersApi extends imx.UsersApi {}
export class WithdrawalsApi extends imx.WithdrawalsApi {}

export interface APIError extends imx.APIError {}
export interface AcceptPrimarySaleBadRequestBody extends imx.AcceptPrimarySaleBadRequestBody {}
export interface AcceptPrimarySaleForbiddenBody extends imx.AcceptPrimarySaleForbiddenBody {}
export interface AcceptPrimarySaleNotFoundBody extends imx.AcceptPrimarySaleNotFoundBody {}
export interface AcceptPrimarySaleOKBody extends imx.AcceptPrimarySaleOKBody {}
export interface AcceptPrimarySaleUnauthorizedBody extends imx.AcceptPrimarySaleUnauthorizedBody {}
export interface AddMetadataSchemaToCollectionRequest extends imx.AddMetadataSchemaToCollectionRequest {}
export interface AssetsApiGetAssetRequest extends imx.AssetsApiGetAssetRequest {}
export interface AssetsApiListAssetsRequest extends imx.AssetsApiListAssetsRequest {}
export interface BalancesApiGetBalanceRequest extends imx.BalancesApiGetBalanceRequest {}
export interface BalancesApiListBalancesRequest extends imx.BalancesApiListBalancesRequest {}
export interface CancelOrderResponse extends imx.CancelOrderResponse {}
export interface CollectionsApiGetCollectionRequest extends imx.CollectionsApiGetCollectionRequest {}
export interface CollectionsApiListCollectionFiltersRequest extends imx.CollectionsApiListCollectionFiltersRequest {}
export interface CollectionsApiListCollectionsRequest extends imx.CollectionsApiListCollectionsRequest {}
export interface CreateCollectionRequest extends imx.CreateCollectionRequest {}
export interface CreateMetadataRefreshRequest extends imx.CreateMetadataRefreshRequest {}
export interface CreateOrderResponse extends imx.CreateOrderResponse {}
export interface CreatePrimarySaleBadRequestBody extends imx.CreatePrimarySaleBadRequestBody {}
export interface CreatePrimarySaleCreatedBody extends imx.CreatePrimarySaleCreatedBody {}
export interface CreatePrimarySaleForbiddenBody extends imx.CreatePrimarySaleForbiddenBody {}
export interface CreatePrimarySaleNotFoundBody extends imx.CreatePrimarySaleNotFoundBody {}
export interface CreatePrimarySaleUnauthorizedBody extends imx.CreatePrimarySaleUnauthorizedBody {}
export interface CreateTradeResponse extends imx.CreateTradeResponse {}
export interface CreateTransferResponseV1 extends imx.CreateTransferResponseV1 {}
export interface DepositsApiGetDepositRequest extends imx.DepositsApiGetDepositRequest {}
export interface DepositsApiListDepositsRequest extends imx.DepositsApiListDepositsRequest {}
export interface ExchangesApiCreateExchangeRequest extends imx.ExchangesApiCreateExchangeRequest {}
export interface ExchangesApiGetExchangeRequest extends imx.ExchangesApiGetExchangeRequest {}
export interface ExchangesApiGetExchangesRequest extends imx.ExchangesApiGetExchangesRequest {}
export interface GetSignableCancelOrderRequest extends imx.GetSignableCancelOrderRequest {}
export interface GetSignableOrderRequest extends imx.GetSignableOrderRequest {}
export interface GetSignableTradeRequest extends imx.GetSignableTradeRequest {}
export interface MintsApiGetMintRequest extends imx.MintsApiGetMintRequest {}
export interface MintsApiListMintsRequest extends imx.MintsApiListMintsRequest {}
export interface MintsApiMintTokensRequest extends imx.MintsApiMintTokensRequest {}
export interface MintRequest extends imx.MintRequest {}
export interface MintTokensResponse extends imx.MintTokensResponse {}
export interface MetadataApiGetMetadataSchemaRequest extends imx.MetadataApiGetMetadataSchemaRequest {}
export interface MetadataSchemaRequest extends imx.MetadataSchemaRequest {}
export interface NftCheckoutPrimaryApiCreateNftPrimaryRequest extends imx.NftCheckoutPrimaryApiCreateNftPrimaryRequest {}
export interface NftCheckoutPrimaryApiGetCurrenciesNFTCheckoutPrimaryRequest extends imx.NftCheckoutPrimaryApiGetCurrenciesNFTCheckoutPrimaryRequest {}
export interface NftCheckoutPrimaryApiGetNftPrimaryTransactionRequest extends imx.NftCheckoutPrimaryApiGetNftPrimaryTransactionRequest {}
export interface NftCheckoutPrimaryApiGetNftPrimaryTransactionsRequest extends imx.NftCheckoutPrimaryApiGetNftPrimaryTransactionsRequest {}
export interface OrdersApiCreateOrderV3Request extends imx.OrdersApiCreateOrderV3Request {}
export interface OrdersApiGetOrderV3Request extends imx.OrdersApiGetOrderV3Request {}
export interface OrdersApiListOrdersV3Request extends imx.OrdersApiListOrdersV3Request {}
export interface PrimarySalesApiCreatePrimarySaleRequest extends imx.PrimarySalesApiCreatePrimarySaleRequest {}
export interface PrimarySalesApiSignableCreatePrimarySaleRequest extends imx.PrimarySalesApiSignableCreatePrimarySaleRequest {}
export interface RejectPrimarySaleBadRequestBody extends imx.RejectPrimarySaleBadRequestBody {}
export interface RejectPrimarySaleForbiddenBody extends imx.RejectPrimarySaleForbiddenBody {}
export interface RejectPrimarySaleNotFoundBody extends imx.RejectPrimarySaleNotFoundBody {}
export interface RejectPrimarySaleOKBody extends imx.RejectPrimarySaleOKBody {}
export interface RejectPrimarySaleUnauthorizedBody extends imx.RejectPrimarySaleUnauthorizedBody {}
export interface SignableToken extends imx.SignableToken {}
export interface TokensApiGetTokenRequest extends imx.TokensApiGetTokenRequest {}
export interface TokensApiListTokensRequest extends imx.TokensApiListTokensRequest {}
export interface TradesApiGetTradeV3Request extends imx.TradesApiGetTradeV3Request {}
export interface TradesApiListTradesV3Request extends imx.TradesApiListTradesV3Request {}
export interface TransfersApiGetTransferRequest extends imx.TransfersApiGetTransferRequest {}
export interface TransfersApiListTransfersRequest extends imx.TransfersApiListTransfersRequest {}
export interface UpdateCollectionRequest extends imx.UpdateCollectionRequest {}
export interface WithdrawalsApiGetWithdrawalRequest extends imx.WithdrawalsApiGetWithdrawalRequest {}
export interface WithdrawalsApiListWithdrawalsRequest extends imx.WithdrawalsApiListWithdrawalsRequest {}
1 change: 0 additions & 1 deletion packages/x-client/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ export * from './tokens';
export * from './requests';
export * from './transfers';
export * from './errors';
// eslint-disable-next-line import/export
export * from './api';

0 comments on commit 0ac07e4

Please sign in to comment.