Skip to content

Commit

Permalink
Merge pull request #15 from tiagosiebler/importsfix
Browse files Browse the repository at this point in the history
fix(): import paths
  • Loading branch information
tiagosiebler authored Sep 13, 2024
2 parents 1f8855c + 685f9dc commit 582dc62
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 33 deletions.
16 changes: 8 additions & 8 deletions src/AdvancedTradeClient.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { AxiosRequestConfig } from 'axios';
import { nanoid } from 'nanoid';

import { BaseRestClient } from './lib/BaseRestClient.js';
import {
REST_CLIENT_TYPE_ENUM,
RestClientOptions,
RestClientType,
} from './lib/requestUtils.js';
import {
AllocateAdvTradePortfolioRequest,
GetAdvTradeFillsRequest,
Expand All @@ -15,14 +22,7 @@ import {
PreviewAdvTradeOrderRequest,
SubmitAdvTradeConvertQuoteRequest,
SubmitAdvTradeOrderRequest,
} from 'types/request/advanced-trade-client.js';

import { BaseRestClient } from './lib/BaseRestClient.js';
import {
REST_CLIENT_TYPE_ENUM,
RestClientOptions,
RestClientType,
} from './lib/requestUtils.js';
} from './types/request/advanced-trade-client.js';
import {
AdvTradeAccount,
AdvTradeAccountsList,
Expand Down
18 changes: 9 additions & 9 deletions src/CoinbaseAppClient.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import { AxiosRequestConfig } from 'axios';
import { nanoid } from 'nanoid';

import { BaseRestClient } from './lib/BaseRestClient.js';
import {
REST_CLIENT_TYPE_ENUM,
RestClientOptions,
RestClientType,
} from './lib/requestUtils.js';
import {
CBAppDepositFundsRequest,
CBAppSendMoneyRequest,
CBAppTransferMoneyRequest,
CBAppWithdrawFundsRequest,
} from 'types/request/coinbase-app-client.js';
} from './types/request/coinbase-app-client.js';
import {
CBAppAccount,
CBAppAddress,
CBAppDepositWithdrawal,
CBAppPagination,
CBAppTransaction,
} from 'types/response/coinbase-app-client.js';

import { BaseRestClient } from './lib/BaseRestClient.js';
import {
REST_CLIENT_TYPE_ENUM,
RestClientOptions,
RestClientType,
} from './lib/requestUtils.js';
} from './types/response/coinbase-app-client.js';

/**
* REST client for Coinbase's Coinbase App API:
Expand Down
16 changes: 8 additions & 8 deletions src/CoinbasePrime.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { AxiosRequestConfig } from 'axios';
import { nanoid } from 'nanoid';

import { BaseRestClient } from './lib/BaseRestClient.js';
import {
REST_CLIENT_TYPE_ENUM,
RestClientOptions,
RestClientType,
} from './lib/requestUtils.js';
import {
CreatePrimeAddressBookEntryRequest,
CreatePrimeConversionRequest,
Expand All @@ -25,14 +32,7 @@ import {
GetPrimeWalletTransactionsRequest,
GetPrimeWeb3WalletBalancesRequest,
SubmitPrimeOrderRequest,
} from 'types/request/coinbase-prime.js';

import { BaseRestClient } from './lib/BaseRestClient.js';
import {
REST_CLIENT_TYPE_ENUM,
RestClientOptions,
RestClientType,
} from './lib/requestUtils.js';
} from './types/request/coinbase-prime.js';

/**
* REST client for Coinbase Prime API:
Expand Down
5 changes: 1 addition & 4 deletions src/WebsocketClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
WsTopicRequest,
} from './lib/websocket/websocket-util.js';
import { WSConnectedResult } from './lib/websocket/WsStore.types.js';
import { APISuccessResponse } from './types/shared.types.js';
import { WsMarket } from './types/websockets/client.js';
import {
WsOperation,
Expand Down Expand Up @@ -76,9 +75,7 @@ export class WebsocketClient extends BaseWebsocketClient<WsKey> {
throw new Error(`Unhandled WsKey: "${wsKey}"`);
}

private async getWSConnectionInfo(
_wsKey: WsKey,
): Promise<APISuccessResponse<{}>> {
private async getWSConnectionInfo(_wsKey: WsKey): Promise<{}> {
throw new Error('not used');
}

Expand Down
4 changes: 2 additions & 2 deletions src/types/request/advanced-trade-client.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { OrderConfiguration } from 'types/shared.types';

/**
*
* Account Endpoints
*
*/

import { OrderConfiguration } from '../shared.types.js';

/**
*
* Products Endpoints
Expand Down
2 changes: 1 addition & 1 deletion src/types/response/advanced-trade-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
*/

import { OrderConfiguration } from 'types/shared.types';
import { OrderConfiguration } from '../shared.types.js';

interface Balance {
value: string;
Expand Down
2 changes: 1 addition & 1 deletion src/types/websockets/requests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type WsOperation = 'TODO:';
export type WsOperation = 'subscribe' | 'unsubscribe';

export interface WsRequestOperation<TWSTopic extends string> {
id: number;
Expand Down

0 comments on commit 582dc62

Please sign in to comment.