From 759ef0df1b5514331a7f55281c88442bd5bf5bbc Mon Sep 17 00:00:00 2001 From: Jerko J <83344666+JJ-Cro@users.noreply.github.com> Date: Fri, 13 Sep 2024 16:55:46 +0200 Subject: [PATCH] feat(): renamed clients --- src/{AdvancedTradeClient.ts => CBAdvancedTradeClient.ts} | 2 +- src/{CoinbaseAppClient.ts => CBAppClient.ts} | 2 +- src/{CoinbaseExchange.ts => CBExchangeClient.ts} | 2 +- ...CoinbaseInternational.ts => CBInternationalClient.ts} | 2 +- src/{CoinbasePrime.ts => CBPrimeClient.ts} | 2 +- src/WebsocketClient.ts | 2 +- src/index.ts | 9 +++++---- 7 files changed, 11 insertions(+), 10 deletions(-) rename src/{AdvancedTradeClient.ts => CBAdvancedTradeClient.ts} (99%) rename src/{CoinbaseAppClient.ts => CBAppClient.ts} (99%) rename src/{CoinbaseExchange.ts => CBExchangeClient.ts} (99%) rename src/{CoinbaseInternational.ts => CBInternationalClient.ts} (99%) rename src/{CoinbasePrime.ts => CBPrimeClient.ts} (99%) diff --git a/src/AdvancedTradeClient.ts b/src/CBAdvancedTradeClient.ts similarity index 99% rename from src/AdvancedTradeClient.ts rename to src/CBAdvancedTradeClient.ts index 2a1ab23..701c53a 100644 --- a/src/AdvancedTradeClient.ts +++ b/src/CBAdvancedTradeClient.ts @@ -58,7 +58,7 @@ import { * REST client for Coinbase's Advanced Trade API: * https://docs.cdp.coinbase.com/advanced-trade/docs/api-overview/ */ -export class AdvancedTradeClient extends BaseRestClient { +export class CBAdvancedTradeClient extends BaseRestClient { constructor( restClientOptions: RestClientOptions = {}, requestOptions: AxiosRequestConfig = {}, diff --git a/src/CoinbaseAppClient.ts b/src/CBAppClient.ts similarity index 99% rename from src/CoinbaseAppClient.ts rename to src/CBAppClient.ts index d1540cf..6dd72a0 100644 --- a/src/CoinbaseAppClient.ts +++ b/src/CBAppClient.ts @@ -25,7 +25,7 @@ import { * REST client for Coinbase's Coinbase App API: * https://docs.cdp.coinbase.com/coinbase-app/docs/welcome */ -export class CoinbaseAppClient extends BaseRestClient { +export class CBAppClient extends BaseRestClient { constructor( restClientOptions: RestClientOptions = {}, requestOptions: AxiosRequestConfig = {}, diff --git a/src/CoinbaseExchange.ts b/src/CBExchangeClient.ts similarity index 99% rename from src/CoinbaseExchange.ts rename to src/CBExchangeClient.ts index 318a91f..0019ac2 100644 --- a/src/CoinbaseExchange.ts +++ b/src/CBExchangeClient.ts @@ -43,7 +43,7 @@ import { * REST client for Coinbase's Institutional Exchange API: * https://docs.cdp.coinbase.com/exchange/docs/welcome */ -export class CoinbaseExchange extends BaseRestClient { +export class CBExchangeClient extends BaseRestClient { constructor( restClientOptions: RestClientOptions = {}, requestOptions: AxiosRequestConfig = {}, diff --git a/src/CoinbaseInternational.ts b/src/CBInternationalClient.ts similarity index 99% rename from src/CoinbaseInternational.ts rename to src/CBInternationalClient.ts index ec71f1a..48a6ac5 100644 --- a/src/CoinbaseInternational.ts +++ b/src/CBInternationalClient.ts @@ -28,7 +28,7 @@ import { * REST client for Coinbase's Institutional International Exchange API: * https://docs.cdp.coinbase.com/intx/docs/welcome */ -export class CoinbaseInternational extends BaseRestClient { +export class CBInternationalClient extends BaseRestClient { constructor( restClientOptions: RestClientOptions = {}, requestOptions: AxiosRequestConfig = {}, diff --git a/src/CoinbasePrime.ts b/src/CBPrimeClient.ts similarity index 99% rename from src/CoinbasePrime.ts rename to src/CBPrimeClient.ts index 0661289..534c6a4 100644 --- a/src/CoinbasePrime.ts +++ b/src/CBPrimeClient.ts @@ -38,7 +38,7 @@ import { * REST client for Coinbase Prime API: * https://docs.cdp.coinbase.com/prime/docs/welcome */ -export class CoinbasePrime extends BaseRestClient { +export class CBPrimeClient extends BaseRestClient { constructor( restClientOptions: RestClientOptions = {}, requestOptions: AxiosRequestConfig = {}, diff --git a/src/WebsocketClient.ts b/src/WebsocketClient.ts index 7116851..674b7de 100644 --- a/src/WebsocketClient.ts +++ b/src/WebsocketClient.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ -import { AdvancedTradeClient } from './AdvancedTradeClient.js'; +import { AdvancedTradeClient } from './CBAdvancedTradeClient.js'; import { BaseWebsocketClient, EmittableEvent } from './lib/BaseWSClient.js'; import { neverGuard } from './lib/misc-util.js'; import { diff --git a/src/index.ts b/src/index.ts index 1ed6252..1d35095 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,8 @@ -export * from './AdvancedTradeClient.js'; -export * from './CoinbaseAppClient.js'; -export * from './CoinbaseInternational.js'; -export * from './CoinbasePrime.js'; +export * from './CBAdvancedTradeClient.js'; +export * from './CBAppClient.js'; +export * from './CBExchangeClient.js'; +export * from './CBInternationalClient.js'; +export * from './CBPrimeClient.js'; export * from './lib/websocket/logger.js'; export * from './lib/websocket/websocket-util.js'; export * from './types/request/advanced-trade-client.js';