diff --git a/src/Options.ts b/src/Options.ts index a6b547a2..271b0faf 100644 --- a/src/Options.ts +++ b/src/Options.ts @@ -1,6 +1,6 @@ -import { AxiosRequestConfig } from 'axios'; +import { type AxiosRequestConfig } from 'axios'; -import Xor from './types/Xor'; +import type Xor from './types/Xor'; type Options = Xor< { diff --git a/src/binders/Binder.ts b/src/binders/Binder.ts index db776fb5..36232e01 100644 --- a/src/binders/Binder.ts +++ b/src/binders/Binder.ts @@ -1,6 +1,6 @@ import breakUrl from '../communication/breakUrl'; -import Page from '../data/page/Page'; -import Maybe from '../types/Maybe'; +import type Page from '../data/page/Page'; +import type Maybe from '../types/Maybe'; /** * A binder is the interface for a certain type of information. There is a binder for orders, and one for customers, et diff --git a/src/binders/applePay/ApplePayBinder.ts b/src/binders/applePay/ApplePayBinder.ts index 0f09d5a6..11775b91 100644 --- a/src/binders/applePay/ApplePayBinder.ts +++ b/src/binders/applePay/ApplePayBinder.ts @@ -1,8 +1,8 @@ -import NetworkClient from '../../communication/NetworkClient'; -import ApplePaySession from '../../data/applePaySession/ApplePaySession'; +import type NetworkClient from '../../communication/NetworkClient'; +import type ApplePaySession from '../../data/applePaySession/ApplePaySession'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; -import { RequestPaymentSessionParameters } from './parameters'; +import type Callback from '../../types/Callback'; +import { type RequestPaymentSessionParameters } from './parameters'; const pathSegments = 'wallets/applepay/sessions'; diff --git a/src/binders/applePay/parameters.ts b/src/binders/applePay/parameters.ts index 5ebddd24..9d4d5e44 100644 --- a/src/binders/applePay/parameters.ts +++ b/src/binders/applePay/parameters.ts @@ -1,4 +1,4 @@ -import { IdempotencyParameter } from '../../types/parameters'; +import { type IdempotencyParameter } from '../../types/parameters'; export interface RequestPaymentSessionParameters extends IdempotencyParameter { /** diff --git a/src/binders/chargebacks/ChargebacksBinder.ts b/src/binders/chargebacks/ChargebacksBinder.ts index 32ac0392..a498fdb1 100644 --- a/src/binders/chargebacks/ChargebacksBinder.ts +++ b/src/binders/chargebacks/ChargebacksBinder.ts @@ -1,10 +1,11 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Chargeback, { ChargebackData } from '../../data/chargebacks/Chargeback'; -import Page from '../../data/page/Page'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Chargeback from '../../data/chargebacks/Chargeback'; +import { type ChargebackData } from '../../data/chargebacks/Chargeback'; +import type Page from '../../data/page/Page'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Binder from '../Binder'; -import { IterateParameters, PageParameters } from './parameters'; +import { type IterateParameters, type PageParameters } from './parameters'; const pathSegment = 'chargebacks'; diff --git a/src/binders/chargebacks/parameters.ts b/src/binders/chargebacks/parameters.ts index 5344e5f2..14387b8c 100644 --- a/src/binders/chargebacks/parameters.ts +++ b/src/binders/chargebacks/parameters.ts @@ -1,5 +1,5 @@ -import { ChargebackEmbed } from '../../data/chargebacks/Chargeback'; -import { PaginationParameters, ThrottlingParameter } from '../../types/parameters'; +import { type ChargebackEmbed } from '../../data/chargebacks/Chargeback'; +import { type PaginationParameters, type ThrottlingParameter } from '../../types/parameters'; export type PageParameters = PaginationParameters & { profileId?: string; diff --git a/src/binders/customers/CustomersBinder.ts b/src/binders/customers/CustomersBinder.ts index 9824dbe4..a60d1783 100644 --- a/src/binders/customers/CustomersBinder.ts +++ b/src/binders/customers/CustomersBinder.ts @@ -1,12 +1,13 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Customer, { CustomerData } from '../../data/customers/Customer'; -import Page from '../../data/page/Page'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Customer from '../../data/customers/Customer'; +import { type CustomerData } from '../../data/customers/Customer'; +import type Page from '../../data/page/Page'; import ApiError from '../../errors/ApiError'; import checkId from '../../plumbing/checkId'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Binder from '../Binder'; -import { CreateParameters, DeleteParameters, GetParameters, IterateParameters, PageParameters, UpdateParameters } from './parameters'; +import { type CreateParameters, type DeleteParameters, type GetParameters, type IterateParameters, type PageParameters, type UpdateParameters } from './parameters'; const pathSegment = 'customers'; diff --git a/src/binders/customers/mandates/CustomerMandatesBinder.ts b/src/binders/customers/mandates/CustomerMandatesBinder.ts index 424b7118..3b96be56 100644 --- a/src/binders/customers/mandates/CustomerMandatesBinder.ts +++ b/src/binders/customers/mandates/CustomerMandatesBinder.ts @@ -1,13 +1,13 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import { MandateData } from '../../../data/customers/mandates/data'; -import Mandate from '../../../data/customers/mandates/Mandate'; -import Page from '../../../data/page/Page'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import { type MandateData } from '../../../data/customers/mandates/data'; +import type Mandate from '../../../data/customers/mandates/Mandate'; +import type Page from '../../../data/page/Page'; import ApiError from '../../../errors/ApiError'; import checkId from '../../../plumbing/checkId'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { CreateParameters, GetParameters, IterateParameters, PageParameters, RevokeParameters } from './parameters'; +import { type CreateParameters, type GetParameters, type IterateParameters, type PageParameters, type RevokeParameters } from './parameters'; function getPathSegments(customerId: string) { return `customers/${customerId}/mandates`; diff --git a/src/binders/customers/mandates/parameters.ts b/src/binders/customers/mandates/parameters.ts index a8257818..ff1ed508 100644 --- a/src/binders/customers/mandates/parameters.ts +++ b/src/binders/customers/mandates/parameters.ts @@ -1,5 +1,5 @@ -import { MandateData } from '../../../data/customers/mandates/data'; -import { IdempotencyParameter, PaginationParameters, ThrottlingParameter } from '../../../types/parameters'; +import { type MandateData } from '../../../data/customers/mandates/data'; +import { type IdempotencyParameter, type PaginationParameters, type ThrottlingParameter } from '../../../types/parameters'; interface ContextParameters { customerId: string; diff --git a/src/binders/customers/parameters.ts b/src/binders/customers/parameters.ts index 3905813a..9c6762ad 100644 --- a/src/binders/customers/parameters.ts +++ b/src/binders/customers/parameters.ts @@ -1,6 +1,6 @@ -import { CustomerData } from '../../data/customers/Customer'; -import { IdempotencyParameter, PaginationParameters, ThrottlingParameter } from '../../types/parameters'; -import PickOptional from '../../types/PickOptional'; +import { type CustomerData } from '../../data/customers/Customer'; +import { type IdempotencyParameter, type PaginationParameters, type ThrottlingParameter } from '../../types/parameters'; +import type PickOptional from '../../types/PickOptional'; interface ContextParameter { testmode?: boolean; diff --git a/src/binders/customers/payments/CustomerPaymentsBinder.ts b/src/binders/customers/payments/CustomerPaymentsBinder.ts index 55494d6b..5fddcb4a 100644 --- a/src/binders/customers/payments/CustomerPaymentsBinder.ts +++ b/src/binders/customers/payments/CustomerPaymentsBinder.ts @@ -1,13 +1,13 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Page from '../../../data/page/Page'; -import { PaymentData } from '../../../data/payments/data'; -import Payment from '../../../data/payments/Payment'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Page from '../../../data/page/Page'; +import { type PaymentData } from '../../../data/payments/data'; +import type Payment from '../../../data/payments/Payment'; import ApiError from '../../../errors/ApiError'; import checkId from '../../../plumbing/checkId'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { CreateParameters, IterateParameters, PageParameters } from './parameters'; +import { type CreateParameters, type IterateParameters, type PageParameters } from './parameters'; function getPathSegments(customerId: string) { return `customers/${customerId}/payments`; diff --git a/src/binders/customers/payments/parameters.ts b/src/binders/customers/payments/parameters.ts index b43271e8..5a2d4fa0 100644 --- a/src/binders/customers/payments/parameters.ts +++ b/src/binders/customers/payments/parameters.ts @@ -1,7 +1,7 @@ -import { PaymentMethod } from '../../../data/global'; -import { PaymentData } from '../../../data/payments/data'; -import { IdempotencyParameter, PaginationParameters, ThrottlingParameter } from '../../../types/parameters'; -import PickOptional from '../../../types/PickOptional'; +import { type PaymentMethod } from '../../../data/global'; +import { type PaymentData } from '../../../data/payments/data'; +import { type IdempotencyParameter, type PaginationParameters, type ThrottlingParameter } from '../../../types/parameters'; +import type PickOptional from '../../../types/PickOptional'; interface ContextParameters { customerId: string; diff --git a/src/binders/customers/subscriptions/CustomerSubscriptionsBinder.ts b/src/binders/customers/subscriptions/CustomerSubscriptionsBinder.ts index 10223fff..7edf280a 100644 --- a/src/binders/customers/subscriptions/CustomerSubscriptionsBinder.ts +++ b/src/binders/customers/subscriptions/CustomerSubscriptionsBinder.ts @@ -1,13 +1,13 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Page from '../../../data/page/Page'; -import { SubscriptionData } from '../../../data/subscriptions/data'; -import Subscription from '../../../data/subscriptions/Subscription'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Page from '../../../data/page/Page'; +import { type SubscriptionData } from '../../../data/subscriptions/data'; +import type Subscription from '../../../data/subscriptions/Subscription'; import ApiError from '../../../errors/ApiError'; import checkId from '../../../plumbing/checkId'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { CancelParameters, CreateParameters, GetParameters, IterateParameters, PageParameters, UpdateParameters } from './parameters'; +import { type CancelParameters, type CreateParameters, type GetParameters, type IterateParameters, type PageParameters, type UpdateParameters } from './parameters'; function getPathSegments(customerId: string) { return `customers/${customerId}/subscriptions`; diff --git a/src/binders/customers/subscriptions/parameters.ts b/src/binders/customers/subscriptions/parameters.ts index cd0c4a46..a03d605f 100644 --- a/src/binders/customers/subscriptions/parameters.ts +++ b/src/binders/customers/subscriptions/parameters.ts @@ -1,6 +1,6 @@ -import { SubscriptionData } from '../../../data/subscriptions/data'; -import { IdempotencyParameter, PaginationParameters, ThrottlingParameter } from '../../../types/parameters'; -import PickOptional from '../../../types/PickOptional'; +import { type SubscriptionData } from '../../../data/subscriptions/data'; +import { type IdempotencyParameter, type PaginationParameters, type ThrottlingParameter } from '../../../types/parameters'; +import type PickOptional from '../../../types/PickOptional'; interface ContextParameters { customerId: string; diff --git a/src/binders/methods/MethodsBinder.ts b/src/binders/methods/MethodsBinder.ts index 78927b12..8ccd70b1 100644 --- a/src/binders/methods/MethodsBinder.ts +++ b/src/binders/methods/MethodsBinder.ts @@ -1,10 +1,10 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Method from '../../data/methods/Method'; -import { MethodData } from '../../data/methods/data'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Method from '../../data/methods/Method'; +import { type MethodData } from '../../data/methods/data'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Binder from '../Binder'; -import { GetParameters, ListParameters } from './parameters'; +import { type GetParameters, type ListParameters } from './parameters'; const pathSegment = 'methods'; diff --git a/src/binders/methods/parameters.ts b/src/binders/methods/parameters.ts index 24c8fa25..bbff0cf5 100644 --- a/src/binders/methods/parameters.ts +++ b/src/binders/methods/parameters.ts @@ -1,5 +1,5 @@ -import { Amount, Locale, SequenceType } from '../../data/global'; -import { MethodInclude } from '../../data/methods/data'; +import { type Amount, type Locale, type SequenceType } from '../../data/global'; +import { type MethodInclude } from '../../data/methods/data'; export interface GetParameters { /** diff --git a/src/binders/onboarding/OnboardingBinder.ts b/src/binders/onboarding/OnboardingBinder.ts index 5ec8c9ff..d70337fd 100644 --- a/src/binders/onboarding/OnboardingBinder.ts +++ b/src/binders/onboarding/OnboardingBinder.ts @@ -1,10 +1,10 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import { OnboardingData } from '../../data/onboarding/data'; -import Onboarding from '../../data/onboarding/Onboarding'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import { type OnboardingData } from '../../data/onboarding/data'; +import type Onboarding from '../../data/onboarding/Onboarding'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Binder from '../Binder'; -import { SubmitParameters } from './parameters'; +import { type SubmitParameters } from './parameters'; const pathSegments = 'onboarding/me'; diff --git a/src/binders/onboarding/parameters.ts b/src/binders/onboarding/parameters.ts index 9ba4e4ac..72096c9d 100644 --- a/src/binders/onboarding/parameters.ts +++ b/src/binders/onboarding/parameters.ts @@ -1,5 +1,5 @@ -import { Address } from '../../data/global'; -import { IdempotencyParameter } from '../../types/parameters'; +import { type Address } from '../../data/global'; +import { type IdempotencyParameter } from '../../types/parameters'; export interface SubmitParameters extends IdempotencyParameter { /** diff --git a/src/binders/orders/OrdersBinder.ts b/src/binders/orders/OrdersBinder.ts index 134205c9..62aed54a 100644 --- a/src/binders/orders/OrdersBinder.ts +++ b/src/binders/orders/OrdersBinder.ts @@ -1,13 +1,13 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Page from '../../data/page/Page'; -import { OrderData } from '../../data/orders/data'; -import Order from '../../data/orders/Order'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Page from '../../data/page/Page'; +import { type OrderData } from '../../data/orders/data'; +import type Order from '../../data/orders/Order'; import ApiError from '../../errors/ApiError'; import checkId from '../../plumbing/checkId'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Binder from '../Binder'; -import { CancelParameters, CreateParameters, GetParameters, IterateParameters, PageParameters, UpdateParameters } from './parameters'; +import { type CancelParameters, type CreateParameters, type GetParameters, type IterateParameters, type PageParameters, type UpdateParameters } from './parameters'; export const pathSegment = 'orders'; diff --git a/src/binders/orders/orderlines/OrderLinesBinder.ts b/src/binders/orders/orderlines/OrderLinesBinder.ts index 42a94196..3193fc43 100644 --- a/src/binders/orders/orderlines/OrderLinesBinder.ts +++ b/src/binders/orders/orderlines/OrderLinesBinder.ts @@ -1,12 +1,12 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import { OrderData } from '../../../data/orders/data'; -import Order from '../../../data/orders/Order'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import { type OrderData } from '../../../data/orders/data'; +import type Order from '../../../data/orders/Order'; import ApiError from '../../../errors/ApiError'; import checkId from '../../../plumbing/checkId'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { CancelParameters, UpdateParameters } from './parameters'; +import { type CancelParameters, type UpdateParameters } from './parameters'; function getPathSegments(orderId: string) { return `orders/${orderId}/lines`; diff --git a/src/binders/orders/orderlines/parameters.ts b/src/binders/orders/orderlines/parameters.ts index 8a7313a0..412ff2bc 100644 --- a/src/binders/orders/orderlines/parameters.ts +++ b/src/binders/orders/orderlines/parameters.ts @@ -1,7 +1,7 @@ -import { Amount } from '../../../data/global'; -import { OrderLineData } from '../../../data/orders/orderlines/OrderLine'; -import { IdempotencyParameter } from '../../../types/parameters'; -import PickOptional from '../../../types/PickOptional'; +import { type Amount } from '../../../data/global'; +import { type OrderLineData } from '../../../data/orders/orderlines/OrderLine'; +import { type IdempotencyParameter } from '../../../types/parameters'; +import type PickOptional from '../../../types/PickOptional'; interface ContextParameters { orderId: string; diff --git a/src/binders/orders/parameters.ts b/src/binders/orders/parameters.ts index b528d40b..39b59061 100644 --- a/src/binders/orders/parameters.ts +++ b/src/binders/orders/parameters.ts @@ -1,9 +1,9 @@ -import { PaymentMethod } from '../../data/global'; -import { OrderData, OrderEmbed } from '../../data/orders/data'; -import { OrderLineData } from '../../data/orders/orderlines/OrderLine'; -import { IdempotencyParameter, PaginationParameters, ThrottlingParameter } from '../../types/parameters'; -import { CreateParameters as PaymentCreateParameters } from '../payments/parameters'; -import PickOptional from '../../types/PickOptional'; +import { type PaymentMethod } from '../../data/global'; +import { type OrderData, type OrderEmbed } from '../../data/orders/data'; +import { type OrderLineData } from '../../data/orders/orderlines/OrderLine'; +import { type IdempotencyParameter, type PaginationParameters, type ThrottlingParameter } from '../../types/parameters'; +import { type CreateParameters as PaymentCreateParameters } from '../payments/parameters'; +import type PickOptional from '../../types/PickOptional'; export type CreateParameters = Pick & PickOptional & { diff --git a/src/binders/orders/shipments/OrderShipmentsBinder.ts b/src/binders/orders/shipments/OrderShipmentsBinder.ts index aedaa7c3..2c31475a 100644 --- a/src/binders/orders/shipments/OrderShipmentsBinder.ts +++ b/src/binders/orders/shipments/OrderShipmentsBinder.ts @@ -1,11 +1,12 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Shipment, { ShipmentData } from '../../../data/orders/shipments/Shipment'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Shipment from '../../../data/orders/shipments/Shipment'; +import { type ShipmentData } from '../../../data/orders/shipments/Shipment'; import ApiError from '../../../errors/ApiError'; import checkId from '../../../plumbing/checkId'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { CreateParameters, GetParameters, ListParameters, UpdateParameters } from './parameters'; +import { type CreateParameters, type GetParameters, type ListParameters, type UpdateParameters } from './parameters'; export function getPathSegments(orderId: string) { return `orders/${orderId}/shipments`; diff --git a/src/binders/orders/shipments/parameters.ts b/src/binders/orders/shipments/parameters.ts index 6e74758f..0d07756a 100644 --- a/src/binders/orders/shipments/parameters.ts +++ b/src/binders/orders/shipments/parameters.ts @@ -1,7 +1,7 @@ -import { Amount } from '../../../data/global'; -import { ShipmentData } from '../../../data/orders/shipments/Shipment'; -import { IdempotencyParameter } from '../../../types/parameters'; -import PickRequired from '../../../types/PickRequired'; +import { type Amount } from '../../../data/global'; +import { type ShipmentData } from '../../../data/orders/shipments/Shipment'; +import { type IdempotencyParameter } from '../../../types/parameters'; +import type PickRequired from '../../../types/PickRequired'; interface ContextParameters { orderId: string; diff --git a/src/binders/organizations/OrganizationsBinder.ts b/src/binders/organizations/OrganizationsBinder.ts index 49bb9c8d..79ff7541 100644 --- a/src/binders/organizations/OrganizationsBinder.ts +++ b/src/binders/organizations/OrganizationsBinder.ts @@ -1,9 +1,10 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Organization, { OrganizationData } from '../../data/organizations/Organizations'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Organization from '../../data/organizations/Organizations'; +import { type OrganizationData } from '../../data/organizations/Organizations'; import ApiError from '../../errors/ApiError'; import checkId from '../../plumbing/checkId'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Binder from '../Binder'; const pathSegment = 'organizations'; diff --git a/src/binders/paymentLinks/PaymentLinksBinder.ts b/src/binders/paymentLinks/PaymentLinksBinder.ts index d42d574c..3f155fa3 100644 --- a/src/binders/paymentLinks/PaymentLinksBinder.ts +++ b/src/binders/paymentLinks/PaymentLinksBinder.ts @@ -1,13 +1,13 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Page from '../../data/page/Page'; -import { PaymentLinkData } from '../../data/paymentLinks/data'; -import PaymentLink from '../../data/paymentLinks/PaymentLink'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Page from '../../data/page/Page'; +import { type PaymentLinkData } from '../../data/paymentLinks/data'; +import type PaymentLink from '../../data/paymentLinks/PaymentLink'; import ApiError from '../../errors/ApiError'; import checkId from '../../plumbing/checkId'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Binder from '../Binder'; -import { CreateParameters, GetParameters, IterateParameters, PageParameters } from './parameters'; +import { type CreateParameters, type GetParameters, type IterateParameters, type PageParameters } from './parameters'; const pathSegment = 'payment-links'; diff --git a/src/binders/paymentLinks/parameters.ts b/src/binders/paymentLinks/parameters.ts index bbca6c64..61291fd5 100644 --- a/src/binders/paymentLinks/parameters.ts +++ b/src/binders/paymentLinks/parameters.ts @@ -1,5 +1,5 @@ -import { PaymentLinkData } from '../../data/paymentLinks/data'; -import { IdempotencyParameter, PaginationParameters, ThrottlingParameter } from '../../types/parameters'; +import { type PaymentLinkData } from '../../data/paymentLinks/data'; +import { type IdempotencyParameter, type PaginationParameters, type ThrottlingParameter } from '../../types/parameters'; export type CreateParameters = Pick & { profileId?: string; diff --git a/src/binders/payments/PaymentsBinder.ts b/src/binders/payments/PaymentsBinder.ts index 74cb55bf..43ed6b7d 100644 --- a/src/binders/payments/PaymentsBinder.ts +++ b/src/binders/payments/PaymentsBinder.ts @@ -1,13 +1,13 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Page from '../../data/page/Page'; -import { PaymentData } from '../../data/payments/data'; -import Payment from '../../data/payments/Payment'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Page from '../../data/page/Page'; +import { type PaymentData } from '../../data/payments/data'; +import type Payment from '../../data/payments/Payment'; import ApiError from '../../errors/ApiError'; import checkId from '../../plumbing/checkId'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Binder from '../Binder'; -import { CancelParameters, CreateParameters, GetParameters, IterateParameters, PageParameters, UpdateParameters } from './parameters'; +import { type CancelParameters, type CreateParameters, type GetParameters, type IterateParameters, type PageParameters, type UpdateParameters } from './parameters'; const pathSegment = 'payments'; diff --git a/src/binders/payments/captures/PaymentCapturesBinder.ts b/src/binders/payments/captures/PaymentCapturesBinder.ts index 432c2174..b39450db 100644 --- a/src/binders/payments/captures/PaymentCapturesBinder.ts +++ b/src/binders/payments/captures/PaymentCapturesBinder.ts @@ -1,13 +1,13 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Page from '../../../data/page/Page'; -import Capture from '../../../data/payments/captures/Capture'; -import { CaptureData } from '../../../data/payments/captures/data'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Page from '../../../data/page/Page'; +import type Capture from '../../../data/payments/captures/Capture'; +import { type CaptureData } from '../../../data/payments/captures/data'; import ApiError from '../../../errors/ApiError'; import checkId from '../../../plumbing/checkId'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { GetParameters, IterateParameters, PageParameters } from './parameters'; +import { type GetParameters, type IterateParameters, type PageParameters } from './parameters'; function getPathSegments(paymentId: string) { return `payments/${paymentId}/captures`; diff --git a/src/binders/payments/captures/parameters.ts b/src/binders/payments/captures/parameters.ts index 945964f7..d4a52d69 100644 --- a/src/binders/payments/captures/parameters.ts +++ b/src/binders/payments/captures/parameters.ts @@ -1,5 +1,5 @@ -import { CaptureEmbed } from '../../../data/payments/captures/data'; -import { PaginationParameters, ThrottlingParameter } from '../../../types/parameters'; +import { type CaptureEmbed } from '../../../data/payments/captures/data'; +import { type PaginationParameters, type ThrottlingParameter } from '../../../types/parameters'; interface ContextParameters { paymentId: string; diff --git a/src/binders/payments/chargebacks/PaymentChargebacksBinder.ts b/src/binders/payments/chargebacks/PaymentChargebacksBinder.ts index f82df930..ce0a6085 100644 --- a/src/binders/payments/chargebacks/PaymentChargebacksBinder.ts +++ b/src/binders/payments/chargebacks/PaymentChargebacksBinder.ts @@ -1,12 +1,13 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Chargeback, { ChargebackData } from '../../../data/chargebacks/Chargeback'; -import Page from '../../../data/page/Page'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Chargeback from '../../../data/chargebacks/Chargeback'; +import { type ChargebackData } from '../../../data/chargebacks/Chargeback'; +import type Page from '../../../data/page/Page'; import ApiError from '../../../errors/ApiError'; import checkId from '../../../plumbing/checkId'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { GetParameters, IterateParameters, PageParameters } from './parameters'; +import { type GetParameters, type IterateParameters, type PageParameters } from './parameters'; function getPathSegments(paymentId: string) { return `payments/${paymentId}/chargebacks`; diff --git a/src/binders/payments/chargebacks/parameters.ts b/src/binders/payments/chargebacks/parameters.ts index 3804af76..65b4420d 100644 --- a/src/binders/payments/chargebacks/parameters.ts +++ b/src/binders/payments/chargebacks/parameters.ts @@ -1,5 +1,5 @@ -import { ChargebackEmbed } from '../../../data/chargebacks/Chargeback'; -import { PaginationParameters, ThrottlingParameter } from '../../../types/parameters'; +import { type ChargebackEmbed } from '../../../data/chargebacks/Chargeback'; +import { type PaginationParameters, type ThrottlingParameter } from '../../../types/parameters'; interface ContextParameters { paymentId: string; diff --git a/src/binders/payments/orders/OrderPaymentsBinder.ts b/src/binders/payments/orders/OrderPaymentsBinder.ts index c24c7d22..2ed1e7ef 100644 --- a/src/binders/payments/orders/OrderPaymentsBinder.ts +++ b/src/binders/payments/orders/OrderPaymentsBinder.ts @@ -1,12 +1,12 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import { PaymentData } from '../../../data/payments/data'; -import Payment from '../../../data/payments/Payment'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import { type PaymentData } from '../../../data/payments/data'; +import type Payment from '../../../data/payments/Payment'; import ApiError from '../../../errors/ApiError'; import checkId from '../../../plumbing/checkId'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { CreateParameters } from './parameters'; +import { type CreateParameters } from './parameters'; function getPathSegments(orderId: string) { return `orders/${orderId}/payments`; diff --git a/src/binders/payments/orders/parameters.ts b/src/binders/payments/orders/parameters.ts index 18dad7e0..274b049a 100644 --- a/src/binders/payments/orders/parameters.ts +++ b/src/binders/payments/orders/parameters.ts @@ -1,6 +1,6 @@ -import { PaymentMethod } from '../../../data/global'; -import { PaymentData } from '../../../data/payments/data'; -import { IdempotencyParameter } from '../../../types/parameters'; +import { type PaymentMethod } from '../../../data/global'; +import { type PaymentData } from '../../../data/payments/data'; +import { type IdempotencyParameter } from '../../../types/parameters'; interface ContextParameters { orderId: string; diff --git a/src/binders/payments/parameters.ts b/src/binders/payments/parameters.ts index d1722375..09599c13 100644 --- a/src/binders/payments/parameters.ts +++ b/src/binders/payments/parameters.ts @@ -1,8 +1,8 @@ -import { Address, Amount, PaymentMethod } from '../../data/global'; -import { Issuer } from '../../data/Issuer'; -import { PaymentData, PaymentEmbed, PaymentInclude } from '../../data/payments/data'; -import { IdempotencyParameter, PaginationParameters, ThrottlingParameter } from '../../types/parameters'; -import PickOptional from '../../types/PickOptional'; +import { type Address, type Amount, type PaymentMethod } from '../../data/global'; +import { type Issuer } from '../../data/Issuer'; +import { type PaymentData, type PaymentEmbed, type PaymentInclude } from '../../data/payments/data'; +import { type IdempotencyParameter, type PaginationParameters, type ThrottlingParameter } from '../../types/parameters'; +import type PickOptional from '../../types/PickOptional'; export type CreateParameters = Pick & PickOptional & { diff --git a/src/binders/payments/refunds/PaymentRefundsBinder.ts b/src/binders/payments/refunds/PaymentRefundsBinder.ts index 40c8b28a..50cfd11e 100644 --- a/src/binders/payments/refunds/PaymentRefundsBinder.ts +++ b/src/binders/payments/refunds/PaymentRefundsBinder.ts @@ -1,13 +1,13 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Page from '../../../data/page/Page'; -import { RefundData } from '../../../data/refunds/data'; -import Refund from '../../../data/refunds/Refund'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Page from '../../../data/page/Page'; +import { type RefundData } from '../../../data/refunds/data'; +import type Refund from '../../../data/refunds/Refund'; import ApiError from '../../../errors/ApiError'; import checkId from '../../../plumbing/checkId'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { CancelParameters, CreateParameters, GetParameters, IterateParameters, PageParameters } from './parameters'; +import { type CancelParameters, type CreateParameters, type GetParameters, type IterateParameters, type PageParameters } from './parameters'; function getPathSegments(paymentId: string) { return `payments/${paymentId}/refunds`; diff --git a/src/binders/payments/refunds/parameters.ts b/src/binders/payments/refunds/parameters.ts index b050c6e6..35eaf966 100644 --- a/src/binders/payments/refunds/parameters.ts +++ b/src/binders/payments/refunds/parameters.ts @@ -1,6 +1,6 @@ -import { RefundData, RefundEmbed } from '../../../data/refunds/data'; -import { IdempotencyParameter, PaginationParameters, ThrottlingParameter } from '../../../types/parameters'; -import PickOptional from '../../../types/PickOptional'; +import { type RefundData, type RefundEmbed } from '../../../data/refunds/data'; +import { type IdempotencyParameter, type PaginationParameters, type ThrottlingParameter } from '../../../types/parameters'; +import type PickOptional from '../../../types/PickOptional'; interface ContextParameters { paymentId: string; diff --git a/src/binders/permissions/PermissionsBinder.ts b/src/binders/permissions/PermissionsBinder.ts index 42ecafe5..58280861 100644 --- a/src/binders/permissions/PermissionsBinder.ts +++ b/src/binders/permissions/PermissionsBinder.ts @@ -1,7 +1,8 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Permission, { PermissionData } from '../../data/permissions/Permission'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Permission from '../../data/permissions/Permission'; +import { type PermissionData } from '../../data/permissions/Permission'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Binder from '../Binder'; const pathSegment = 'permissions'; diff --git a/src/binders/profiles/ProfilesBinder.ts b/src/binders/profiles/ProfilesBinder.ts index 60d1b438..be5df31b 100644 --- a/src/binders/profiles/ProfilesBinder.ts +++ b/src/binders/profiles/ProfilesBinder.ts @@ -1,13 +1,13 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Page from '../../data/page/Page'; -import { ProfileData } from '../../data/profiles/data'; -import Profile from '../../data/profiles/Profile'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Page from '../../data/page/Page'; +import { type ProfileData } from '../../data/profiles/data'; +import type Profile from '../../data/profiles/Profile'; import ApiError from '../../errors/ApiError'; import checkId from '../../plumbing/checkId'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Binder from '../Binder'; -import { CreateParameters, DeleteParameters, IterateParameters, PageParameters, UpdateParameters } from './parameters'; +import { type CreateParameters, type DeleteParameters, type IterateParameters, type PageParameters, type UpdateParameters } from './parameters'; const pathSegment = 'profiles'; diff --git a/src/binders/profiles/giftcardIssuers/ProfileGiftcardIssuersBinder.ts b/src/binders/profiles/giftcardIssuers/ProfileGiftcardIssuersBinder.ts index 348a859e..cd61e594 100644 --- a/src/binders/profiles/giftcardIssuers/ProfileGiftcardIssuersBinder.ts +++ b/src/binders/profiles/giftcardIssuers/ProfileGiftcardIssuersBinder.ts @@ -1,11 +1,12 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import IssuerModel, { IssuerData } from '../../../data/issuer/IssuerModel'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import {type IssuerData} from '../../../data/issuer/IssuerModel'; +import type IssuerModel from '../../../data/issuer/IssuerModel'; import ApiError from '../../../errors/ApiError'; import renege from '../../../plumbing/renege'; import checkId from '../../../plumbing/checkId'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { Parameters } from './parameters'; +import { type Parameters } from './parameters'; function getPathSegments(profileId: string) { return `profiles/${profileId}/methods/giftcard/issuers`; diff --git a/src/binders/profiles/giftcardIssuers/parameters.ts b/src/binders/profiles/giftcardIssuers/parameters.ts index 695e6e01..5d75baa6 100644 --- a/src/binders/profiles/giftcardIssuers/parameters.ts +++ b/src/binders/profiles/giftcardIssuers/parameters.ts @@ -1,4 +1,4 @@ -import { IdempotencyParameter } from '../../../types/parameters'; +import { type IdempotencyParameter } from '../../../types/parameters'; export interface Parameters extends IdempotencyParameter { /** diff --git a/src/binders/profiles/methods/ProfileMethodsBinder.ts b/src/binders/profiles/methods/ProfileMethodsBinder.ts index e695206a..026705cc 100644 --- a/src/binders/profiles/methods/ProfileMethodsBinder.ts +++ b/src/binders/profiles/methods/ProfileMethodsBinder.ts @@ -1,12 +1,12 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import { MethodData } from '../../../data/methods/data'; -import Method from '../../../data/methods/Method'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import { type MethodData } from '../../../data/methods/data'; +import type Method from '../../../data/methods/Method'; import ApiError from '../../../errors/ApiError'; import renege from '../../../plumbing/renege'; import checkId from '../../../plumbing/checkId'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { Parameters } from './parameters'; +import { type Parameters } from './parameters'; function getPathSegments(profileId: string) { return `profiles/${profileId}/methods`; diff --git a/src/binders/profiles/methods/parameters.ts b/src/binders/profiles/methods/parameters.ts index 79115f8f..b4cbd790 100644 --- a/src/binders/profiles/methods/parameters.ts +++ b/src/binders/profiles/methods/parameters.ts @@ -1,5 +1,5 @@ -import { PaymentMethod } from '../../../types'; -import { IdempotencyParameter } from '../../../types/parameters'; +import { type PaymentMethod } from '../../../types'; +import { type IdempotencyParameter } from '../../../types/parameters'; export interface Parameters extends IdempotencyParameter { /** diff --git a/src/binders/profiles/parameters.ts b/src/binders/profiles/parameters.ts index 3d5192e8..b12f3ce5 100644 --- a/src/binders/profiles/parameters.ts +++ b/src/binders/profiles/parameters.ts @@ -1,6 +1,6 @@ -import { ProfileData } from '../../data/profiles/data'; -import { IdempotencyParameter, PaginationParameters, ThrottlingParameter } from '../../types/parameters'; -import PickOptional from '../../types/PickOptional'; +import { type ProfileData } from '../../data/profiles/data'; +import { type IdempotencyParameter, type PaginationParameters, type ThrottlingParameter } from '../../types/parameters'; +import type PickOptional from '../../types/PickOptional'; export type CreateParameters = Pick & PickOptional & IdempotencyParameter; diff --git a/src/binders/profiles/voucherIssuers/ProfileVoucherIssuersBinder.ts b/src/binders/profiles/voucherIssuers/ProfileVoucherIssuersBinder.ts index 0d51fb07..3a1b924d 100644 --- a/src/binders/profiles/voucherIssuers/ProfileVoucherIssuersBinder.ts +++ b/src/binders/profiles/voucherIssuers/ProfileVoucherIssuersBinder.ts @@ -1,11 +1,12 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import IssuerModel, { IssuerData } from '../../../data/issuer/IssuerModel'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type IssuerModel from '../../../data/issuer/IssuerModel'; +import { type IssuerData } from '../../../data/issuer/IssuerModel'; import ApiError from '../../../errors/ApiError'; -import renege from '../../../plumbing/renege'; import checkId from '../../../plumbing/checkId'; -import Callback from '../../../types/Callback'; +import renege from '../../../plumbing/renege'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { CreateParameters, Parameters } from './parameters'; +import { type CreateParameters, type Parameters } from './parameters'; function getPathSegments(profileId: string) { return `profiles/${profileId}/methods/voucher/issuers`; diff --git a/src/binders/profiles/voucherIssuers/parameters.ts b/src/binders/profiles/voucherIssuers/parameters.ts index 875dc900..9d0dde8a 100644 --- a/src/binders/profiles/voucherIssuers/parameters.ts +++ b/src/binders/profiles/voucherIssuers/parameters.ts @@ -1,4 +1,4 @@ -import { IdempotencyParameter } from '../../../types/parameters'; +import { type IdempotencyParameter } from '../../../types/parameters'; export interface Parameters extends IdempotencyParameter { /** diff --git a/src/binders/refunds/RefundsBinder.ts b/src/binders/refunds/RefundsBinder.ts index d12bd335..5832ba2c 100644 --- a/src/binders/refunds/RefundsBinder.ts +++ b/src/binders/refunds/RefundsBinder.ts @@ -1,11 +1,11 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Page from '../../data/page/Page'; -import { RefundData } from '../../data/refunds/data'; -import Refund from '../../data/refunds/Refund'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Page from '../../data/page/Page'; +import { type RefundData } from '../../data/refunds/data'; +import type Refund from '../../data/refunds/Refund'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Binder from '../Binder'; -import { IterateParameters, PageParameters } from './parameters'; +import { type IterateParameters, type PageParameters } from './parameters'; const pathSegment = 'refunds'; diff --git a/src/binders/refunds/orders/OrderRefundsBinder.ts b/src/binders/refunds/orders/OrderRefundsBinder.ts index a72746ad..7e0280db 100644 --- a/src/binders/refunds/orders/OrderRefundsBinder.ts +++ b/src/binders/refunds/orders/OrderRefundsBinder.ts @@ -1,13 +1,13 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Page from '../../../data/page/Page'; -import { RefundData } from '../../../data/refunds/data'; -import Refund from '../../../data/refunds/Refund'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Page from '../../../data/page/Page'; +import { type RefundData } from '../../../data/refunds/data'; +import type Refund from '../../../data/refunds/Refund'; import ApiError from '../../../errors/ApiError'; import checkId from '../../../plumbing/checkId'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { CreateParameters, IterateParameters, PageParameters } from './parameters'; +import { type CreateParameters, type IterateParameters, type PageParameters } from './parameters'; export function getPathSegments(orderId: string) { return `orders/${orderId}/refunds`; diff --git a/src/binders/refunds/orders/parameters.ts b/src/binders/refunds/orders/parameters.ts index acb55394..455d5905 100644 --- a/src/binders/refunds/orders/parameters.ts +++ b/src/binders/refunds/orders/parameters.ts @@ -1,6 +1,6 @@ -import { Amount } from '../../../data/global'; -import { RefundData } from '../../../data/refunds/data'; -import { IdempotencyParameter, PaginationParameters, ThrottlingParameter } from '../../../types/parameters'; +import { type Amount } from '../../../data/global'; +import { type RefundData } from '../../../data/refunds/data'; +import { type IdempotencyParameter, type PaginationParameters, type ThrottlingParameter } from '../../../types/parameters'; interface ContextParameters { orderId: string; diff --git a/src/binders/refunds/parameters.ts b/src/binders/refunds/parameters.ts index e40eef73..eca3a963 100644 --- a/src/binders/refunds/parameters.ts +++ b/src/binders/refunds/parameters.ts @@ -1,4 +1,4 @@ -import { PaginationParameters, ThrottlingParameter } from '../../types/parameters'; +import { type PaginationParameters, type ThrottlingParameter } from '../../types/parameters'; export type PageParameters = PaginationParameters & { profileId?: string; diff --git a/src/binders/settlements/SettlementsBinder.ts b/src/binders/settlements/SettlementsBinder.ts index bf71c3b4..4d94fbe1 100644 --- a/src/binders/settlements/SettlementsBinder.ts +++ b/src/binders/settlements/SettlementsBinder.ts @@ -1,11 +1,11 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Page from '../../data/page/Page'; -import { SettlementData } from '../../data/settlements/data'; -import SettlementModel from '../../data/settlements/SettlementModel'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Page from '../../data/page/Page'; +import { type SettlementData } from '../../data/settlements/data'; +import type SettlementModel from '../../data/settlements/SettlementModel'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Binder from '../Binder'; -import { IterateParameters, PageParameters } from './parameters'; +import { type IterateParameters, type PageParameters } from './parameters'; const pathSegment = 'settlements'; diff --git a/src/binders/settlements/captures/SettlementCapturesBinder.ts b/src/binders/settlements/captures/SettlementCapturesBinder.ts index 0c4aa144..61f66357 100644 --- a/src/binders/settlements/captures/SettlementCapturesBinder.ts +++ b/src/binders/settlements/captures/SettlementCapturesBinder.ts @@ -1,11 +1,11 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Page from '../../../data/page/Page'; -import Capture from '../../../data/payments/captures/Capture'; -import { CaptureData } from '../../../data/payments/captures/data'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Page from '../../../data/page/Page'; +import type Capture from '../../../data/payments/captures/Capture'; +import { type CaptureData } from '../../../data/payments/captures/data'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { IterateParameters, PageParameters } from './parameters'; +import { type IterateParameters, type PageParameters } from './parameters'; export function getPathSegments(settlementId: string) { return `settlements/${settlementId}/captures`; diff --git a/src/binders/settlements/captures/parameters.ts b/src/binders/settlements/captures/parameters.ts index e5762e81..77aac6fa 100644 --- a/src/binders/settlements/captures/parameters.ts +++ b/src/binders/settlements/captures/parameters.ts @@ -1,5 +1,5 @@ -import { ThrottlingParameter } from '../../../types/parameters'; -import { PageParameters as CapturePageParameters } from '../../payments/captures/parameters'; +import { type ThrottlingParameter } from '../../../types/parameters'; +import { type PageParameters as CapturePageParameters } from '../../payments/captures/parameters'; export type PageParameters = Omit & { settlementId: string; diff --git a/src/binders/settlements/chargebacks/SettlementChargebacksBinder.ts b/src/binders/settlements/chargebacks/SettlementChargebacksBinder.ts index 3327696d..60e14bc2 100644 --- a/src/binders/settlements/chargebacks/SettlementChargebacksBinder.ts +++ b/src/binders/settlements/chargebacks/SettlementChargebacksBinder.ts @@ -1,10 +1,11 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Chargeback, { ChargebackData } from '../../../data/chargebacks/Chargeback'; -import Page from '../../../data/page/Page'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Chargeback from '../../../data/chargebacks/Chargeback'; +import { type ChargebackData } from '../../../data/chargebacks/Chargeback'; +import type Page from '../../../data/page/Page'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { IterateParameters, PageParameters } from './parameters'; +import { type IterateParameters, type PageParameters } from './parameters'; export function getPathSegments(settlementId: string) { return `settlements/${settlementId}/chargebacks`; diff --git a/src/binders/settlements/chargebacks/parameters.ts b/src/binders/settlements/chargebacks/parameters.ts index 5ac760e6..b65fbdf9 100644 --- a/src/binders/settlements/chargebacks/parameters.ts +++ b/src/binders/settlements/chargebacks/parameters.ts @@ -1,5 +1,5 @@ -import { ThrottlingParameter } from '../../../types/parameters'; -import { PageParameters as ChargebacksPageParameters } from '../../chargebacks/parameters'; +import { type ThrottlingParameter } from '../../../types/parameters'; +import { type PageParameters as ChargebacksPageParameters } from '../../chargebacks/parameters'; export type PageParameters = ChargebacksPageParameters & { settlementId: string; diff --git a/src/binders/settlements/parameters.ts b/src/binders/settlements/parameters.ts index d04acc81..c0447ac0 100644 --- a/src/binders/settlements/parameters.ts +++ b/src/binders/settlements/parameters.ts @@ -1,4 +1,4 @@ -import { PaginationParameters, ThrottlingParameter } from '../../types/parameters'; +import { type PaginationParameters, type ThrottlingParameter } from '../../types/parameters'; export type PageParameters = PaginationParameters; diff --git a/src/binders/settlements/payments/SettlementPaymentsBinder.ts b/src/binders/settlements/payments/SettlementPaymentsBinder.ts index 2f5e2866..9783eb11 100644 --- a/src/binders/settlements/payments/SettlementPaymentsBinder.ts +++ b/src/binders/settlements/payments/SettlementPaymentsBinder.ts @@ -1,11 +1,11 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Page from '../../../data/page/Page'; -import { PaymentData } from '../../../data/payments/data'; -import Payment from '../../../data/payments/Payment'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Page from '../../../data/page/Page'; +import { type PaymentData } from '../../../data/payments/data'; +import type Payment from '../../../data/payments/Payment'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { IterateParameters, PageParameters } from './parameters'; +import { type IterateParameters, type PageParameters } from './parameters'; export function getPathSegments(settlementId: string) { return `settlements/${settlementId}/payments`; diff --git a/src/binders/settlements/payments/parameters.ts b/src/binders/settlements/payments/parameters.ts index 4635e80b..07dd252f 100644 --- a/src/binders/settlements/payments/parameters.ts +++ b/src/binders/settlements/payments/parameters.ts @@ -1,5 +1,5 @@ -import { ThrottlingParameter } from '../../../types/parameters'; -import { PageParameters as PaymentPageParameters } from '../../payments/parameters'; +import { type ThrottlingParameter } from '../../../types/parameters'; +import { type PageParameters as PaymentPageParameters } from '../../payments/parameters'; export type PageParameters = PaymentPageParameters & { settlementId: string; diff --git a/src/binders/settlements/refunds/SettlementRefundsBinder.ts b/src/binders/settlements/refunds/SettlementRefundsBinder.ts index 32d3af83..68b71d00 100644 --- a/src/binders/settlements/refunds/SettlementRefundsBinder.ts +++ b/src/binders/settlements/refunds/SettlementRefundsBinder.ts @@ -1,11 +1,11 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Page from '../../../data/page/Page'; -import { RefundData } from '../../../data/refunds/data'; -import Refund from '../../../data/refunds/Refund'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Page from '../../../data/page/Page'; +import { type RefundData } from '../../../data/refunds/data'; +import type Refund from '../../../data/refunds/Refund'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { IterateParameters, PageParameters } from './parameters'; +import { type IterateParameters, type PageParameters } from './parameters'; export function getPathSegments(settlementId: string) { return `settlements/${settlementId}/refunds`; diff --git a/src/binders/settlements/refunds/parameters.ts b/src/binders/settlements/refunds/parameters.ts index fd0863ad..0dc77779 100644 --- a/src/binders/settlements/refunds/parameters.ts +++ b/src/binders/settlements/refunds/parameters.ts @@ -1,5 +1,5 @@ -import { ThrottlingParameter } from '../../../types/parameters'; -import { PageParameters as RefundsPageParameters } from '../../refunds/parameters'; +import { type ThrottlingParameter } from '../../../types/parameters'; +import { type PageParameters as RefundsPageParameters } from '../../refunds/parameters'; export type PageParameters = RefundsPageParameters & { settlementId: string; diff --git a/src/binders/subscriptions/SubscriptionsBinder.ts b/src/binders/subscriptions/SubscriptionsBinder.ts index c52749c0..2a326de9 100644 --- a/src/binders/subscriptions/SubscriptionsBinder.ts +++ b/src/binders/subscriptions/SubscriptionsBinder.ts @@ -1,11 +1,11 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Page from '../../data/page/Page'; -import { SubscriptionData } from '../../data/subscriptions/data'; -import Subscription from '../../data/subscriptions/Subscription'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Page from '../../data/page/Page'; +import { type SubscriptionData } from '../../data/subscriptions/data'; +import type Subscription from '../../data/subscriptions/Subscription'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Binder from '../Binder'; -import { IterateParameters, PageParameters } from './parameters'; +import { type IterateParameters, type PageParameters } from './parameters'; const pathSegment = 'subscriptions'; diff --git a/src/binders/subscriptions/parameters.ts b/src/binders/subscriptions/parameters.ts index e40eef73..eca3a963 100644 --- a/src/binders/subscriptions/parameters.ts +++ b/src/binders/subscriptions/parameters.ts @@ -1,4 +1,4 @@ -import { PaginationParameters, ThrottlingParameter } from '../../types/parameters'; +import { type PaginationParameters, type ThrottlingParameter } from '../../types/parameters'; export type PageParameters = PaginationParameters & { profileId?: string; diff --git a/src/binders/subscriptions/payments/SubscriptionPaymentsBinder.ts b/src/binders/subscriptions/payments/SubscriptionPaymentsBinder.ts index 7b0b4c47..4bd8c14a 100644 --- a/src/binders/subscriptions/payments/SubscriptionPaymentsBinder.ts +++ b/src/binders/subscriptions/payments/SubscriptionPaymentsBinder.ts @@ -1,13 +1,13 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Page from '../../../data/page/Page'; -import { PaymentData } from '../../../data/payments/data'; -import Payment from '../../../data/payments/Payment'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Page from '../../../data/page/Page'; +import { type PaymentData } from '../../../data/payments/data'; +import type Payment from '../../../data/payments/Payment'; import ApiError from '../../../errors/ApiError'; import checkId from '../../../plumbing/checkId'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Binder from '../../Binder'; -import { IterateParameters, PageParameters } from './parameters'; +import { type IterateParameters, type PageParameters } from './parameters'; function getPathSegments(customerId: string, subscriptionId: string): string { return `customers/${customerId}/subscriptions/${subscriptionId}/payments`; diff --git a/src/binders/subscriptions/payments/parameters.ts b/src/binders/subscriptions/payments/parameters.ts index 535065e4..8d0bb134 100644 --- a/src/binders/subscriptions/payments/parameters.ts +++ b/src/binders/subscriptions/payments/parameters.ts @@ -1,4 +1,4 @@ -import { PaginationParameters, ThrottlingParameter } from '../../../types/parameters'; +import { type PaginationParameters, type ThrottlingParameter } from '../../../types/parameters'; interface ContextParameters { testmode?: boolean; diff --git a/src/communication/NetworkClient.ts b/src/communication/NetworkClient.ts index 527ef731..a842957d 100644 --- a/src/communication/NetworkClient.ts +++ b/src/communication/NetworkClient.ts @@ -1,19 +1,19 @@ import https from 'https'; -import { SecureContextOptions } from 'tls'; +import { type SecureContextOptions } from 'tls'; -import axios, { AxiosInstance, AxiosRequestConfig, AxiosRequestHeaders, AxiosResponse } from 'axios'; +import axios, { type AxiosInstance, type AxiosRequestConfig, type AxiosRequestHeaders, type AxiosResponse } from 'axios'; import { run } from 'ruply'; -import Page from '../data/page/Page'; +import type Page from '../data/page/Page'; import ApiError from '../errors/ApiError'; -import Options from '../Options'; +import type Options from '../Options'; import DemandingIterator from '../plumbing/iteration/DemandingIterator'; import HelpfulIterator from '../plumbing/iteration/HelpfulIterator'; import Throttler from '../plumbing/Throttler'; -import Maybe from '../types/Maybe'; -import { IdempotencyParameter } from '../types/parameters'; +import type Maybe from '../types/Maybe'; +import { type IdempotencyParameter } from '../types/parameters'; import breakUrl from './breakUrl'; -import buildUrl, { SearchParameters } from './buildUrl'; +import buildUrl, { type SearchParameters } from './buildUrl'; import dromedaryCase from './dromedaryCase'; import makeRetrying, { idempotencyHeaderName } from './makeRetrying'; import fling from '../plumbing/fling'; diff --git a/src/communication/TransformingNetworkClient.ts b/src/communication/TransformingNetworkClient.ts index a137deae..bf0e6d33 100644 --- a/src/communication/TransformingNetworkClient.ts +++ b/src/communication/TransformingNetworkClient.ts @@ -1,7 +1,7 @@ -import Model from '../data/Model'; +import type Model from '../data/Model'; import fling from '../plumbing/fling'; -import Maybe from '../types/Maybe'; -import NetworkClient from './NetworkClient'; +import type Maybe from '../types/Maybe'; +import type NetworkClient from './NetworkClient'; export class Transformers { readonly add: >(resource: R, transformer: (networkClient: TransformingNetworkClient, input: T) => any) => Transformers; diff --git a/src/communication/buildUrl.ts b/src/communication/buildUrl.ts index 4aaa0285..97f667f1 100644 --- a/src/communication/buildUrl.ts +++ b/src/communication/buildUrl.ts @@ -3,7 +3,7 @@ import { URLSearchParams } from 'url'; import { apply, runIf } from 'ruply'; import getEntries from '../plumbing/getEntries'; -import Maybe from '../types/Maybe'; +import type Maybe from '../types/Maybe'; export type SearchParameters = Record; diff --git a/src/communication/makeRetrying.ts b/src/communication/makeRetrying.ts index 8e3732ca..316e0bd5 100644 --- a/src/communication/makeRetrying.ts +++ b/src/communication/makeRetrying.ts @@ -1,6 +1,6 @@ import { randomBytes } from 'crypto'; -import axios, { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, Method } from 'axios'; +import axios, { type AxiosError, type AxiosInstance, type AxiosRequestConfig, type AxiosResponse, Method } from 'axios'; /** * The name of the property in the request configuration which indicates which attempt this is. `0` for the initial diff --git a/src/createMollieClient.ts b/src/createMollieClient.ts index 3c69390a..9e83a2ce 100644 --- a/src/createMollieClient.ts +++ b/src/createMollieClient.ts @@ -3,7 +3,7 @@ import { version as libraryVersion } from '../package.json'; import caCertificates from './cacert.pem'; import NetworkClient from './communication/NetworkClient'; import TransformingNetworkClient, { Transformers } from './communication/TransformingNetworkClient'; -import Options from './Options'; +import type Options from './Options'; // Transformers import { transform as transformPayment } from './data/payments/Payment'; diff --git a/src/data/Helper.ts b/src/data/Helper.ts index f7ba733c..d0af7ab8 100644 --- a/src/data/Helper.ts +++ b/src/data/Helper.ts @@ -1,13 +1,13 @@ -import { inspect, InspectOptionsStylized } from 'util'; -import TransformingNetworkClient from '../communication/TransformingNetworkClient'; +import { inspect, type InspectOptionsStylized } from 'util'; +import type TransformingNetworkClient from '../communication/TransformingNetworkClient'; import buildFromEntries from '../plumbing/buildFromEntries'; import capitalize from '../plumbing/capitalize'; import getEntries from '../plumbing/getEntries'; import renege from '../plumbing/renege'; -import Callback from '../types/Callback'; -import Maybe from '../types/Maybe'; -import { Links } from './global'; -import Model from './Model'; +import type Callback from '../types/Callback'; +import type Maybe from '../types/Maybe'; +import { type Links } from './global'; +import type Model from './Model'; const stringRepresentationBlacklist = new Set(['resource', 'id', '_links', '_embedded']); diff --git a/src/data/Model.ts b/src/data/Model.ts index 5db30108..7387c32c 100644 --- a/src/data/Model.ts +++ b/src/data/Model.ts @@ -1,4 +1,4 @@ -import Maybe from '../types/Maybe'; +import type Maybe from '../types/Maybe'; export default interface Model = string> { /** diff --git a/src/data/chargebacks/Chargeback.ts b/src/data/chargebacks/Chargeback.ts index 8f2caec6..c46bb0c1 100644 --- a/src/data/chargebacks/Chargeback.ts +++ b/src/data/chargebacks/Chargeback.ts @@ -1,10 +1,11 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Seal from '../../types/Seal'; -import { Amount, Links, Url } from '../global'; -import Helper from '../Helper'; -import Model from '../Model'; -import { PaymentData } from '../payments/data'; -import Payment, { transform as transformPayment } from '../payments/Payment'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Seal from '../../types/Seal'; +import { type Amount, type Links, type Url } from '../global'; +import type Helper from '../Helper'; +import type Model from '../Model'; +import { type PaymentData } from '../payments/data'; +import type Payment from '../payments/Payment'; +import { transform as transformPayment } from '../payments/Payment'; import ChargebackHelper from './ChargebackHelper'; export interface ChargebackData extends Model<'chargeback'> { diff --git a/src/data/chargebacks/ChargebackHelper.ts b/src/data/chargebacks/ChargebackHelper.ts index 24deaa93..360cdbc3 100644 --- a/src/data/chargebacks/ChargebackHelper.ts +++ b/src/data/chargebacks/ChargebackHelper.ts @@ -1,11 +1,12 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; import renege from '../../plumbing/renege'; import resolveIf from '../../plumbing/resolveIf'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Helper from '../Helper'; -import Payment from '../payments/Payment'; -import { PaymentData } from '../payments/data'; -import Chargeback, { ChargebackData } from './Chargeback'; +import type Payment from '../payments/Payment'; +import { type PaymentData } from '../payments/data'; +import type Chargeback from './Chargeback'; +import { type ChargebackData } from './Chargeback'; export default class ChargebackHelper extends Helper { constructor(networkClient: TransformingNetworkClient, protected readonly links: ChargebackData['_links'], protected readonly embedded: ChargebackData['_embedded']) { diff --git a/src/data/customers/Customer.ts b/src/data/customers/Customer.ts index 3840fde8..61449ba7 100644 --- a/src/data/customers/Customer.ts +++ b/src/data/customers/Customer.ts @@ -1,7 +1,7 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Seal from '../../types/Seal'; -import { ApiMode, Links, Locale, PaymentMethod, Url } from '../global'; -import Model from '../Model'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Seal from '../../types/Seal'; +import { type ApiMode, type Links, type Locale, type PaymentMethod, type Url } from '../global'; +import type Model from '../Model'; import CustomerHelper from './CustomerHelper'; export interface CustomerData extends Model<'customer'> { diff --git a/src/data/customers/CustomerHelper.ts b/src/data/customers/CustomerHelper.ts index 840aae52..c96dd600 100644 --- a/src/data/customers/CustomerHelper.ts +++ b/src/data/customers/CustomerHelper.ts @@ -1,16 +1,17 @@ import { runIf } from 'ruply'; -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import HelpfulIterator from '../../plumbing/iteration/HelpfulIterator'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type HelpfulIterator from '../../plumbing/iteration/HelpfulIterator'; import emptyHelpfulIterator from '../../plumbing/iteration/emptyHelpfulIterator'; -import { ThrottlingParameter } from '../../types/parameters'; +import { type ThrottlingParameter } from '../../types/parameters'; import Helper from '../Helper'; -import Payment from '../payments/Payment'; -import { PaymentData } from '../payments/data'; -import Subscription from '../subscriptions/Subscription'; -import { SubscriptionData } from '../subscriptions/data'; -import Customer, { CustomerData } from './Customer'; -import Mandate from './mandates/Mandate'; -import { MandateData } from './mandates/data'; +import type Payment from '../payments/Payment'; +import { type PaymentData } from '../payments/data'; +import type Subscription from '../subscriptions/Subscription'; +import { type SubscriptionData } from '../subscriptions/data'; +import type Customer from './Customer'; +import { type CustomerData } from './Customer'; +import type Mandate from './mandates/Mandate'; +import { type MandateData } from './mandates/data'; export default class CustomerHelper extends Helper { constructor(networkClient: TransformingNetworkClient, protected readonly links: CustomerData['_links']) { diff --git a/src/data/customers/mandates/Mandate.ts b/src/data/customers/mandates/Mandate.ts index fb3ce690..e645f533 100644 --- a/src/data/customers/mandates/Mandate.ts +++ b/src/data/customers/mandates/Mandate.ts @@ -1,6 +1,6 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Seal from '../../../types/Seal'; -import { MandateData } from './data'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Seal from '../../../types/Seal'; +import { type MandateData } from './data'; import MandateHelper from './MandateHelper'; type Mandate = Seal; diff --git a/src/data/customers/mandates/MandateHelper.ts b/src/data/customers/mandates/MandateHelper.ts index 2bd83961..5387b6a7 100644 --- a/src/data/customers/mandates/MandateHelper.ts +++ b/src/data/customers/mandates/MandateHelper.ts @@ -1,10 +1,11 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Helper from '../../Helper'; -import Customer, { CustomerData } from '../Customer'; -import { MandateData, MandateStatus } from './data'; -import Mandate from './Mandate'; +import type Customer from '../Customer'; +import { type CustomerData } from '../Customer'; +import { MandateStatus, type MandateData } from './data'; +import type Mandate from './Mandate'; export default class MandateHelper extends Helper { constructor(networkClient: TransformingNetworkClient, protected readonly links: MandateData['_links']) { diff --git a/src/data/customers/mandates/data.ts b/src/data/customers/mandates/data.ts index b8641a79..efd1ee28 100644 --- a/src/data/customers/mandates/data.ts +++ b/src/data/customers/mandates/data.ts @@ -1,6 +1,6 @@ -import Nullable from '../../../types/Nullable'; -import { ApiMode, CardLabel, Links, Url } from '../../global'; -import Model from '../../Model'; +import type Nullable from '../../../types/Nullable'; +import { type ApiMode, type CardLabel, type Links, type Url } from '../../global'; +import type Model from '../../Model'; export interface MandateData extends Model<'mandate'> { /** diff --git a/src/data/issuer/IssuerModel.ts b/src/data/issuer/IssuerModel.ts index d154737c..f36afefe 100644 --- a/src/data/issuer/IssuerModel.ts +++ b/src/data/issuer/IssuerModel.ts @@ -1,8 +1,8 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Seal from '../../types/Seal'; -import { Links } from '../global'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Seal from '../../types/Seal'; +import { type Links } from '../global'; import Helper from '../Helper'; -import Model from '../Model'; +import type Model from '../Model'; export interface IssuerData extends Model<'issuer'> { /** diff --git a/src/data/methods/Method.ts b/src/data/methods/Method.ts index f31d5e9c..4c53491b 100644 --- a/src/data/methods/Method.ts +++ b/src/data/methods/Method.ts @@ -1,6 +1,6 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Seal from '../../types/Seal'; -import { MethodData } from './data'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Seal from '../../types/Seal'; +import { type MethodData } from './data'; import MethodHelper from './MethodHelper'; type Method = Seal; diff --git a/src/data/methods/MethodHelper.ts b/src/data/methods/MethodHelper.ts index eee998cb..7583352a 100644 --- a/src/data/methods/MethodHelper.ts +++ b/src/data/methods/MethodHelper.ts @@ -1,7 +1,7 @@ import ApiError from '../../errors/ApiError'; import Helper from '../Helper'; -import { MethodData, MethodImageSize } from './data'; -import Method from './Method'; +import { type MethodData, MethodImageSize } from './data'; +import type Method from './Method'; export default class MethodHelper extends Helper { /** diff --git a/src/data/methods/data.ts b/src/data/methods/data.ts index bd92ce58..9b6f6518 100644 --- a/src/data/methods/data.ts +++ b/src/data/methods/data.ts @@ -1,6 +1,6 @@ -import Nullable from '../../types/Nullable'; -import { Amount, FeeRegion, Links, PaymentMethod as PaymentMethodEnum } from '../global'; -import Model from '../Model'; +import type Nullable from '../../types/Nullable'; +import { type Amount, type FeeRegion, type Links, type PaymentMethod as PaymentMethodEnum } from '../global'; +import type Model from '../Model'; export interface MethodData extends Model<'method', PaymentMethodEnum> { /** diff --git a/src/data/onboarding/Onboarding.ts b/src/data/onboarding/Onboarding.ts index bba425d6..3083f428 100644 --- a/src/data/onboarding/Onboarding.ts +++ b/src/data/onboarding/Onboarding.ts @@ -1,6 +1,6 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Seal from '../../types/Seal'; -import { OnboardingData } from './data'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Seal from '../../types/Seal'; +import { type OnboardingData } from './data'; import OnboardingHelper from './OnboardingHelper'; type Onboarding = Seal; diff --git a/src/data/onboarding/OnboardingHelper.ts b/src/data/onboarding/OnboardingHelper.ts index 782c1e85..6f60ffd0 100644 --- a/src/data/onboarding/OnboardingHelper.ts +++ b/src/data/onboarding/OnboardingHelper.ts @@ -1,10 +1,11 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; +import type Callback from '../../types/Callback'; import Helper from '../Helper'; -import Organization, { OrganizationData } from '../organizations/Organizations'; -import { OnboardingData, OnboardingStatus } from './data'; -import Onboarding from './Onboarding'; +import type Organization from '../organizations/Organizations'; +import { type OrganizationData } from '../organizations/Organizations'; +import { OnboardingStatus, type OnboardingData } from './data'; +import type Onboarding from './Onboarding'; export default class OnboardingHelper extends Helper { constructor(networkClient: TransformingNetworkClient, protected readonly links: OnboardingData['_links']) { diff --git a/src/data/onboarding/data.ts b/src/data/onboarding/data.ts index 34a9f602..0431efdf 100644 --- a/src/data/onboarding/data.ts +++ b/src/data/onboarding/data.ts @@ -1,5 +1,5 @@ -import { Links, Url } from '../global'; -import Model from '../Model'; +import { type Links, type Url } from '../global'; +import type Model from '../Model'; /** * Get the status of onboarding of the authenticated organization. diff --git a/src/data/orders/Order.ts b/src/data/orders/Order.ts index d1c488dc..0081e74d 100644 --- a/src/data/orders/Order.ts +++ b/src/data/orders/Order.ts @@ -1,11 +1,15 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Seal from '../../types/Seal'; -import Payment, { transform as transformPayment } from '../payments/Payment'; -import Refund, { transform as transformRefund } from '../refunds/Refund'; -import { OrderData } from './data'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Seal from '../../types/Seal'; +import type Payment from '../payments/Payment'; +import { transform as transformPayment } from '../payments/Payment'; +import type Refund from '../refunds/Refund'; +import { transform as transformRefund } from '../refunds/Refund'; +import { type OrderData } from './data'; import OrderHelper from './OrderHelper'; -import OrderLine, { transform as transformOrderLine } from './orderlines/OrderLine'; -import Shipment, { transform as transformShipment } from './shipments/Shipment'; +import type OrderLine from './orderlines/OrderLine'; +import { transform as transformOrderLine } from './orderlines/OrderLine'; +import type Shipment from './shipments/Shipment'; +import { transform as transformShipment } from './shipments/Shipment'; type Order = Seal< Omit & { diff --git a/src/data/orders/OrderHelper.ts b/src/data/orders/OrderHelper.ts index 3bc0d7a8..327e1847 100644 --- a/src/data/orders/OrderHelper.ts +++ b/src/data/orders/OrderHelper.ts @@ -2,20 +2,21 @@ import { runIf } from 'ruply'; import { pathSegment as ordersPathSegment } from '../../binders/orders/OrdersBinder'; import { getPathSegments as getOrderShipmentsPathSegments } from '../../binders/orders/shipments/OrderShipmentsBinder'; import { getPathSegments as getOrderRefundsPathSegments } from '../../binders/refunds/orders/OrderRefundsBinder'; -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; import HelpfulIterator from '../../plumbing/iteration/HelpfulIterator'; import makeAsync from '../../plumbing/iteration/makeAsync'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; -import Nullable from '../../types/Nullable'; -import { ThrottlingParameter } from '../../types/parameters'; +import type Callback from '../../types/Callback'; +import type Nullable from '../../types/Nullable'; +import { type ThrottlingParameter } from '../../types/parameters'; import Helper from '../Helper'; -import Payment from '../payments/Payment'; -import Refund from '../refunds/Refund'; -import { RefundData } from '../refunds/data'; -import Order from './Order'; -import { OrderData, OrderEmbed, OrderStatus } from './data'; -import Shipment, { ShipmentData } from './shipments/Shipment'; +import type Payment from '../payments/Payment'; +import type Refund from '../refunds/Refund'; +import { type RefundData } from '../refunds/data'; +import type Order from './Order'; +import { OrderEmbed, OrderStatus, type OrderData } from './data'; +import type Shipment from './shipments/Shipment'; +import { type ShipmentData } from './shipments/Shipment'; export default class OrderHelper extends Helper { constructor(networkClient: TransformingNetworkClient, protected readonly links: OrderData['_links'], protected readonly embedded: Order['_embedded']) { diff --git a/src/data/orders/data.ts b/src/data/orders/data.ts index aee0926d..b6373128 100644 --- a/src/data/orders/data.ts +++ b/src/data/orders/data.ts @@ -1,10 +1,10 @@ -import Nullable from '../../types/Nullable'; -import { Address, Amount, ApiMode, Links, Url } from '../global'; -import Model from '../Model'; -import { PaymentData } from '../payments/data'; -import { RefundData } from '../refunds/data'; -import { OrderLineData } from './orderlines/OrderLine'; -import { ShipmentData } from './shipments/Shipment'; +import type Nullable from '../../types/Nullable'; +import { type Address, type Amount, type ApiMode, type Links, type Url } from '../global'; +import type Model from '../Model'; +import { type PaymentData } from '../payments/data'; +import { type RefundData } from '../refunds/data'; +import { type OrderLineData } from './orderlines/OrderLine'; +import { type ShipmentData } from './shipments/Shipment'; export interface OrderData extends Model<'order'> { /** diff --git a/src/data/orders/orderlines/OrderLine.ts b/src/data/orders/orderlines/OrderLine.ts index 15d27e67..d0786be4 100644 --- a/src/data/orders/orderlines/OrderLine.ts +++ b/src/data/orders/orderlines/OrderLine.ts @@ -1,7 +1,7 @@ -import Seal from '../../../types/Seal'; -import { Amount, Url } from '../../global'; -import Model from '../../Model'; -import { OrderStatus } from '../data'; +import type Seal from '../../../types/Seal'; +import { type Amount, type Url } from '../../global'; +import type Model from '../../Model'; +import { type OrderStatus } from '../data'; export interface OrderLineData extends Model<'orderline'> { /** diff --git a/src/data/orders/shipments/Shipment.ts b/src/data/orders/shipments/Shipment.ts index 94d46538..d5cada8b 100644 --- a/src/data/orders/shipments/Shipment.ts +++ b/src/data/orders/shipments/Shipment.ts @@ -1,8 +1,9 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Seal from '../../../types/Seal'; -import { Links, Url } from '../../global'; -import Model from '../../Model'; -import OrderLine, { OrderLineData, transform as transformOrderLine } from '../orderlines/OrderLine'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Seal from '../../../types/Seal'; +import { type Links, type Url } from '../../global'; +import type Model from '../../Model'; +import type OrderLine from '../orderlines/OrderLine'; +import { transform as transformOrderLine, type OrderLineData } from '../orderlines/OrderLine'; import ShipmentHelper from './ShipmentHelper'; export interface ShipmentData extends Model<'shipment'> { diff --git a/src/data/orders/shipments/ShipmentHelper.ts b/src/data/orders/shipments/ShipmentHelper.ts index b91e36da..811895fb 100644 --- a/src/data/orders/shipments/ShipmentHelper.ts +++ b/src/data/orders/shipments/ShipmentHelper.ts @@ -1,10 +1,11 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; import renege from '../../../plumbing/renege'; -import Callback from '../../../types/Callback'; +import type Callback from '../../../types/Callback'; import Helper from '../../Helper'; -import Shipment, { ShipmentData } from '../../orders/shipments/Shipment'; -import { OrderData } from '../data'; -import Order from '../Order'; +import type Shipment from '../../orders/shipments/Shipment'; +import { type ShipmentData } from '../../orders/shipments/Shipment'; +import { type OrderData } from '../data'; +import type Order from '../Order'; export default class ShipmentHelper extends Helper { constructor(networkClient: TransformingNetworkClient, protected readonly links: ShipmentData['_links']) { diff --git a/src/data/organizations/Organizations.ts b/src/data/organizations/Organizations.ts index e166a0e1..13d29b47 100644 --- a/src/data/organizations/Organizations.ts +++ b/src/data/organizations/Organizations.ts @@ -1,8 +1,8 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Seal from '../../types/Seal'; -import { Address, Links, Locale } from '../global'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Seal from '../../types/Seal'; +import { type Address, type Links, type Locale } from '../global'; import Helper from '../Helper'; -import Model from '../Model'; +import type Model from '../Model'; export interface OrganizationData extends Model<'organization'> { /** diff --git a/src/data/page/Page.ts b/src/data/page/Page.ts index 82168cde..6c8361b0 100644 --- a/src/data/page/Page.ts +++ b/src/data/page/Page.ts @@ -1,6 +1,6 @@ -import Maybe from '../../types/Maybe'; -import Nullable from '../../types/Nullable'; -import { Links, Url } from '../global'; +import type Maybe from '../../types/Maybe'; +import type Nullable from '../../types/Nullable'; +import { type Links, type Url } from '../global'; export default interface Page extends Array { links: PageLinks; diff --git a/src/data/paymentLinks/PaymentLink.ts b/src/data/paymentLinks/PaymentLink.ts index fc375ad9..d80cef2c 100644 --- a/src/data/paymentLinks/PaymentLink.ts +++ b/src/data/paymentLinks/PaymentLink.ts @@ -1,6 +1,6 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Seal from '../../types/Seal'; -import { PaymentLinkData } from './data'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Seal from '../../types/Seal'; +import { type PaymentLinkData } from './data'; import PaymentLinkHelper from './PaymentLinkHelper'; type PaymentLink = Seal, PaymentLinkHelper>; diff --git a/src/data/paymentLinks/PaymentLinkHelper.ts b/src/data/paymentLinks/PaymentLinkHelper.ts index 842442cf..6b1adbc5 100644 --- a/src/data/paymentLinks/PaymentLinkHelper.ts +++ b/src/data/paymentLinks/PaymentLinkHelper.ts @@ -1,7 +1,7 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; import Helper from '../Helper'; -import { PaymentLinkData } from './data'; -import PaymentLink from './PaymentLink'; +import { type PaymentLinkData } from './data'; +import type PaymentLink from './PaymentLink'; export default class PaymentLinkHelper extends Helper { constructor(networkClient: TransformingNetworkClient, protected readonly links: PaymentLinkData['_links']) { diff --git a/src/data/paymentLinks/data.ts b/src/data/paymentLinks/data.ts index 7c25a953..f9386405 100644 --- a/src/data/paymentLinks/data.ts +++ b/src/data/paymentLinks/data.ts @@ -1,5 +1,5 @@ -import { Amount, ApiMode, Links, Url } from '../global'; -import Model from '../Model'; +import { type Amount, type ApiMode, type Links, type Url } from '../global'; +import type Model from '../Model'; export interface PaymentLinkData extends Model<'payment-link'> { /** diff --git a/src/data/payments/Payment.ts b/src/data/payments/Payment.ts index 5ef50094..b1c25bb2 100644 --- a/src/data/payments/Payment.ts +++ b/src/data/payments/Payment.ts @@ -1,8 +1,10 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Seal from '../../types/Seal'; -import Chargeback, { transform as transformChargeback } from '../chargebacks/Chargeback'; -import Refund, { transform as transformRefund } from '../refunds/Refund'; -import { PaymentData } from './data'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Seal from '../../types/Seal'; +import type Chargeback from '../chargebacks/Chargeback'; +import { transform as transformChargeback } from '../chargebacks/Chargeback'; +import type Refund from '../refunds/Refund'; +import { transform as transformRefund } from '../refunds/Refund'; +import { type PaymentData } from './data'; import PaymentHelper from './PaymentHelper'; type Payment = Seal< diff --git a/src/data/payments/PaymentHelper.ts b/src/data/payments/PaymentHelper.ts index 68ed0973..b071cfe3 100644 --- a/src/data/payments/PaymentHelper.ts +++ b/src/data/payments/PaymentHelper.ts @@ -1,25 +1,26 @@ import { runIf } from 'ruply'; -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; import HelpfulIterator from '../../plumbing/iteration/HelpfulIterator'; import emptyHelpfulIterator from '../../plumbing/iteration/emptyHelpfulIterator'; import makeAsync from '../../plumbing/iteration/makeAsync'; import renege from '../../plumbing/renege'; import undefinedPromise from '../../plumbing/undefinedPromise'; -import Callback from '../../types/Callback'; -import Maybe from '../../types/Maybe'; -import Nullable from '../../types/Nullable'; -import { ThrottlingParameter } from '../../types/parameters'; +import type Callback from '../../types/Callback'; +import type Maybe from '../../types/Maybe'; +import type Nullable from '../../types/Nullable'; +import { type ThrottlingParameter } from '../../types/parameters'; import Helper from '../Helper'; -import Chargeback, { ChargebackData } from '../chargebacks/Chargeback'; -import { Amount, SequenceType } from '../global'; -import Order from '../orders/Order'; -import { OrderData } from '../orders/data'; -import Refund from '../refunds/Refund'; -import { RefundData } from '../refunds/data'; -import Payment from './Payment'; -import Capture from './captures/Capture'; -import { CaptureData } from './captures/data'; -import { BankTransferLinks, PaymentData, PaymentStatus } from './data'; +import type Chargeback from '../chargebacks/Chargeback'; +import { type ChargebackData } from '../chargebacks/Chargeback'; +import { SequenceType, type Amount } from '../global'; +import type Order from '../orders/Order'; +import { type OrderData } from '../orders/data'; +import type Refund from '../refunds/Refund'; +import { type RefundData } from '../refunds/data'; +import type Payment from './Payment'; +import type Capture from './captures/Capture'; +import { type CaptureData } from './captures/data'; +import { PaymentStatus, type BankTransferLinks, type PaymentData } from './data'; export default class PaymentHelper extends Helper { constructor(networkClient: TransformingNetworkClient, protected readonly links: PaymentData['_links'], protected readonly embedded: Payment['_embedded']) { diff --git a/src/data/payments/captures/Capture.ts b/src/data/payments/captures/Capture.ts index 68025810..fceaa62d 100644 --- a/src/data/payments/captures/Capture.ts +++ b/src/data/payments/captures/Capture.ts @@ -1,8 +1,9 @@ -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; -import Seal from '../../../types/Seal'; -import Payment, { transform as transformPayment } from '../Payment'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type Seal from '../../../types/Seal'; +import type Payment from '../Payment'; +import { transform as transformPayment } from '../Payment'; import CaptureHelper from './CaptureHelper'; -import { CaptureData } from './data'; +import { type CaptureData } from './data'; type Capture = Seal & { _embedded?: { payment?: Payment } }, CaptureHelper>; diff --git a/src/data/payments/captures/CaptureHelper.ts b/src/data/payments/captures/CaptureHelper.ts index 76d709d3..dd8feafc 100644 --- a/src/data/payments/captures/CaptureHelper.ts +++ b/src/data/payments/captures/CaptureHelper.ts @@ -1,16 +1,17 @@ import { runIf } from 'ruply'; -import TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; +import type TransformingNetworkClient from '../../../communication/TransformingNetworkClient'; import renege from '../../../plumbing/renege'; import resolveIf from '../../../plumbing/resolveIf'; import undefinedPromise from '../../../plumbing/undefinedPromise'; -import Callback from '../../../types/Callback'; -import Maybe from '../../../types/Maybe'; +import type Callback from '../../../types/Callback'; +import type Maybe from '../../../types/Maybe'; import Helper from '../../Helper'; -import Shipment, { ShipmentData } from '../../orders/shipments/Shipment'; -import Payment from '../Payment'; -import { PaymentData } from '../data'; -import Capture from './Capture'; -import { CaptureData } from './data'; +import type Shipment from '../../orders/shipments/Shipment'; +import { type ShipmentData } from '../../orders/shipments/Shipment'; +import type Payment from '../Payment'; +import { type PaymentData } from '../data'; +import type Capture from './Capture'; +import { type CaptureData } from './data'; export default class CaptureHelper extends Helper { constructor(networkClient: TransformingNetworkClient, protected readonly links: CaptureData['_links'], protected readonly embedded: Capture['_embedded']) { diff --git a/src/data/payments/captures/data.ts b/src/data/payments/captures/data.ts index 4b4a53c4..9279f2cc 100644 --- a/src/data/payments/captures/data.ts +++ b/src/data/payments/captures/data.ts @@ -1,6 +1,6 @@ -import { Amount, ApiMode, Links, Url } from '../../global'; -import Model from '../../Model'; -import { PaymentData } from '../data'; +import { type Amount, type ApiMode, type Links, type Url } from '../../global'; +import type Model from '../../Model'; +import { type PaymentData } from '../data'; export interface CaptureData extends Model<'capture'> { /** diff --git a/src/data/payments/data.ts b/src/data/payments/data.ts index 797e72ca..e1564fdd 100644 --- a/src/data/payments/data.ts +++ b/src/data/payments/data.ts @@ -1,8 +1,8 @@ -import Nullable from '../../types/Nullable'; -import { ChargebackData } from '../chargebacks/Chargeback'; -import { Address, Amount, ApiMode, CardAudience, CardFailureReason, CardLabel, FeeRegion, HistoricPaymentMethod, Links, Locale, PaymentMethod, SequenceType, Url } from '../global'; -import Model from '../Model'; -import { RefundData } from '../refunds/data'; +import type Nullable from '../../types/Nullable'; +import { type ChargebackData } from '../chargebacks/Chargeback'; +import { type Address, type Amount, type ApiMode, type CardAudience, type CardFailureReason, type CardLabel, type FeeRegion, type HistoricPaymentMethod, type Links, type Locale, type PaymentMethod, type SequenceType, type Url } from '../global'; +import type Model from '../Model'; +import { type RefundData } from '../refunds/data'; export interface PaymentData extends Model<'payment'> { /** diff --git a/src/data/permissions/Permission.ts b/src/data/permissions/Permission.ts index bc0ef75a..64a97d3f 100644 --- a/src/data/permissions/Permission.ts +++ b/src/data/permissions/Permission.ts @@ -1,8 +1,8 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Seal from '../../types/Seal'; -import { Links } from '../global'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Seal from '../../types/Seal'; +import { type Links } from '../global'; import Helper from '../Helper'; -import Model from '../Model'; +import type Model from '../Model'; export interface PermissionData extends Model<'permission'> { /** diff --git a/src/data/profiles/Profile.ts b/src/data/profiles/Profile.ts index 1fc1ede5..808f1c37 100644 --- a/src/data/profiles/Profile.ts +++ b/src/data/profiles/Profile.ts @@ -1,6 +1,6 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Seal from '../../types/Seal'; -import { ProfileData } from './data'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Seal from '../../types/Seal'; +import { type ProfileData } from './data'; import ProfileHelper from './ProfileHelper'; type Profile = Seal; diff --git a/src/data/profiles/ProfileHelper.ts b/src/data/profiles/ProfileHelper.ts index 6a70c76f..b771a306 100644 --- a/src/data/profiles/ProfileHelper.ts +++ b/src/data/profiles/ProfileHelper.ts @@ -1,21 +1,22 @@ import { runIf } from 'ruply'; -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import HelpfulIterator from '../../plumbing/iteration/HelpfulIterator'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import breakUrl from '../../communication/breakUrl'; +import type HelpfulIterator from '../../plumbing/iteration/HelpfulIterator'; import emptyHelpfulIterator from '../../plumbing/iteration/emptyHelpfulIterator'; import renege from '../../plumbing/renege'; -import Callback from '../../types/Callback'; -import { ThrottlingParameter } from '../../types/parameters'; +import type Callback from '../../types/Callback'; +import { type ThrottlingParameter } from '../../types/parameters'; import Helper from '../Helper'; -import Chargeback, { ChargebackData } from '../chargebacks/Chargeback'; -import Method from '../methods/Method'; -import { MethodData } from '../methods/data'; -import Payment from '../payments/Payment'; -import { PaymentData } from '../payments/data'; -import Refund from '../refunds/Refund'; -import { RefundData } from '../refunds/data'; -import Profile from './Profile'; -import { ProfileData, ProfileStatus } from './data'; -import breakUrl from '../../communication/breakUrl'; +import type Chargeback from '../chargebacks/Chargeback'; +import { type ChargebackData } from '../chargebacks/Chargeback'; +import type Method from '../methods/Method'; +import { type MethodData } from '../methods/data'; +import type Payment from '../payments/Payment'; +import { type PaymentData } from '../payments/data'; +import type Refund from '../refunds/Refund'; +import { type RefundData } from '../refunds/data'; +import type Profile from './Profile'; +import { ProfileStatus, type ProfileData } from './data'; export default class ProfileHelper extends Helper { constructor(networkClient: TransformingNetworkClient, protected readonly links: ProfileData['_links']) { diff --git a/src/data/profiles/data.ts b/src/data/profiles/data.ts index 34cb3ce9..61215e7e 100644 --- a/src/data/profiles/data.ts +++ b/src/data/profiles/data.ts @@ -1,6 +1,6 @@ -import Nullable from '../../types/Nullable'; -import { ApiMode, Links, Url } from '../global'; -import Model from '../Model'; +import type Nullable from '../../types/Nullable'; +import { type ApiMode, type Links, type Url } from '../global'; +import type Model from '../Model'; export interface ProfileData extends Model<'profile'> { /** diff --git a/src/data/refunds/Refund.ts b/src/data/refunds/Refund.ts index 028ed42b..30b919a8 100644 --- a/src/data/refunds/Refund.ts +++ b/src/data/refunds/Refund.ts @@ -1,8 +1,10 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Seal from '../../types/Seal'; -import OrderLine, { transform as transformOrderLine } from '../orders/orderlines/OrderLine'; -import Payment, { transform as transformPayment } from '../payments/Payment'; -import { RefundData } from './data'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Seal from '../../types/Seal'; +import type OrderLine from '../orders/orderlines/OrderLine'; +import { transform as transformOrderLine } from '../orders/orderlines/OrderLine'; +import type Payment from '../payments/Payment'; +import { transform as transformPayment } from '../payments/Payment'; +import { type RefundData } from './data'; import RefundHelper from './RefundHelper'; type Refund = Seal & { lines?: OrderLine[]; _embedded?: { payment?: Payment } }, RefundHelper>; diff --git a/src/data/refunds/RefundHelper.ts b/src/data/refunds/RefundHelper.ts index 324cd60a..633af715 100644 --- a/src/data/refunds/RefundHelper.ts +++ b/src/data/refunds/RefundHelper.ts @@ -1,16 +1,16 @@ import { runIf } from 'ruply'; -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; import renege from '../../plumbing/renege'; import undefinedPromise from '../../plumbing/undefinedPromise'; -import Callback from '../../types/Callback'; -import Maybe from '../../types/Maybe'; +import type Callback from '../../types/Callback'; +import type Maybe from '../../types/Maybe'; import Helper from '../Helper'; -import Order from '../orders/Order'; -import { OrderData } from '../orders/data'; -import Payment from '../payments/Payment'; -import { PaymentData } from '../payments/data'; -import Refund from './Refund'; -import { RefundData, RefundStatus } from './data'; +import type Order from '../orders/Order'; +import { type OrderData } from '../orders/data'; +import type Payment from '../payments/Payment'; +import { type PaymentData } from '../payments/data'; +import type Refund from './Refund'; +import { type RefundData, RefundStatus } from './data'; import resolveIf from '../../plumbing/resolveIf'; export default class RefundHelper extends Helper { diff --git a/src/data/refunds/data.ts b/src/data/refunds/data.ts index 8dc869c4..080049f1 100644 --- a/src/data/refunds/data.ts +++ b/src/data/refunds/data.ts @@ -1,7 +1,7 @@ -import { Amount, Links, Url } from '../global'; -import Model from '../Model'; -import { OrderLineData } from '../orders/orderlines/OrderLine'; -import { PaymentData } from '../payments/data'; +import { type Amount, type Links, type Url } from '../global'; +import type Model from '../Model'; +import { type OrderLineData } from '../orders/orderlines/OrderLine'; +import { type PaymentData } from '../payments/data'; export interface RefundData extends Model<'refund'> { /** diff --git a/src/data/settlements/SettlementHelper.ts b/src/data/settlements/SettlementHelper.ts index 77c35b10..3fc6c9da 100644 --- a/src/data/settlements/SettlementHelper.ts +++ b/src/data/settlements/SettlementHelper.ts @@ -1,15 +1,16 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import { Capture } from '../../types'; -import { ThrottlingParameter } from '../../types/parameters'; -import Chargeback, { ChargebackData } from '../chargebacks/Chargeback'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import { type Capture } from '../../types'; +import { type ThrottlingParameter } from '../../types/parameters'; +import type Chargeback from '../chargebacks/Chargeback'; +import { type ChargebackData } from '../chargebacks/Chargeback'; import Helper from '../Helper'; -import { CaptureData } from '../payments/captures/data'; -import { PaymentData } from '../payments/data'; -import Payment from '../payments/Payment'; -import { RefundData } from '../refunds/data'; -import Refund from '../refunds/Refund'; -import { SettlementData } from './data'; -import SettlementModel from './SettlementModel'; +import { type CaptureData } from '../payments/captures/data'; +import { type PaymentData } from '../payments/data'; +import type Payment from '../payments/Payment'; +import { type RefundData } from '../refunds/data'; +import type Refund from '../refunds/Refund'; +import { type SettlementData } from './data'; +import type SettlementModel from './SettlementModel'; export default class SettlementHelper extends Helper { constructor(networkClient: TransformingNetworkClient, protected readonly links: SettlementData['_links']) { diff --git a/src/data/settlements/SettlementModel.ts b/src/data/settlements/SettlementModel.ts index 0fec84e3..d7f31e1f 100644 --- a/src/data/settlements/SettlementModel.ts +++ b/src/data/settlements/SettlementModel.ts @@ -1,6 +1,6 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Seal from '../../types/Seal'; -import { SettlementData } from './data'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Seal from '../../types/Seal'; +import { type SettlementData } from './data'; import SettlementHelper from './SettlementHelper'; type SettlementModel = Seal, SettlementHelper>; diff --git a/src/data/settlements/data.ts b/src/data/settlements/data.ts index 902b15af..96cb16eb 100644 --- a/src/data/settlements/data.ts +++ b/src/data/settlements/data.ts @@ -1,6 +1,6 @@ -import Nullable from '../../types/Nullable'; -import { Amount, Links, Url } from '../global'; -import Model from '../Model'; +import type Nullable from '../../types/Nullable'; +import { type Amount, type Links, type Url } from '../global'; +import type Model from '../Model'; export interface SettlementData extends Model<'settlement'> { /** diff --git a/src/data/subscriptions/Subscription.ts b/src/data/subscriptions/Subscription.ts index dac78f0c..c6b382c9 100644 --- a/src/data/subscriptions/Subscription.ts +++ b/src/data/subscriptions/Subscription.ts @@ -1,6 +1,6 @@ -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import Seal from '../../types/Seal'; -import { SubscriptionData } from './data'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type Seal from '../../types/Seal'; +import { type SubscriptionData } from './data'; import SubscriptionHelper from './SubscriptionHelper'; type Subscription = Seal; diff --git a/src/data/subscriptions/SubscriptionHelper.ts b/src/data/subscriptions/SubscriptionHelper.ts index 2a9ed294..9f1dcd98 100644 --- a/src/data/subscriptions/SubscriptionHelper.ts +++ b/src/data/subscriptions/SubscriptionHelper.ts @@ -1,20 +1,21 @@ import { runIf } from 'ruply'; -import TransformingNetworkClient from '../../communication/TransformingNetworkClient'; -import HelpfulIterator from '../../plumbing/iteration/HelpfulIterator'; +import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; +import type HelpfulIterator from '../../plumbing/iteration/HelpfulIterator'; import emptyHelpfulIterator from '../../plumbing/iteration/emptyHelpfulIterator'; import renege from '../../plumbing/renege'; import undefinedPromise from '../../plumbing/undefinedPromise'; -import Callback from '../../types/Callback'; -import Maybe from '../../types/Maybe'; -import { ThrottlingParameter } from '../../types/parameters'; +import type Callback from '../../types/Callback'; +import type Maybe from '../../types/Maybe'; +import { type ThrottlingParameter } from '../../types/parameters'; import Helper from '../Helper'; -import Customer, { CustomerData } from '../customers/Customer'; -import Payment from '../payments/Payment'; -import { PaymentData } from '../payments/data'; -import Profile from '../profiles/Profile'; -import { ProfileData } from '../profiles/data'; -import Subscription from './Subscription'; -import { SubscriptionData, SubscriptionStatus } from './data'; +import type Customer from '../customers/Customer'; +import { type CustomerData } from '../customers/Customer'; +import type Payment from '../payments/Payment'; +import { type PaymentData } from '../payments/data'; +import type Profile from '../profiles/Profile'; +import { type ProfileData } from '../profiles/data'; +import type Subscription from './Subscription'; +import { SubscriptionStatus, type SubscriptionData } from './data'; export default class SubscriptionHelper extends Helper { constructor(networkClient: TransformingNetworkClient, protected readonly links: SubscriptionData['_links']) { diff --git a/src/data/subscriptions/data.ts b/src/data/subscriptions/data.ts index 8d71ff1c..88911065 100644 --- a/src/data/subscriptions/data.ts +++ b/src/data/subscriptions/data.ts @@ -1,5 +1,5 @@ -import { Amount, ApiMode, Links, Url } from '../global'; -import Model from '../Model'; +import { type Amount, type ApiMode, type Links, type Url } from '../global'; +import type Model from '../Model'; export interface SubscriptionData extends Model<'subscription'> { /** diff --git a/src/errors/ApiError.ts b/src/errors/ApiError.ts index 3490231f..61ded5fd 100644 --- a/src/errors/ApiError.ts +++ b/src/errors/ApiError.ts @@ -1,8 +1,8 @@ -import { AxiosResponse } from 'axios'; +import { type AxiosResponse } from 'axios'; import { idempotencyHeaderName } from '../communication/makeRetrying'; -import { Links, Url } from '../data/global'; -import Maybe from '../types/Maybe'; +import { type Links, type Url } from '../data/global'; +import type Maybe from '../types/Maybe'; type ApiErrorLinks = Record & Links; type Info = { diff --git a/src/plumbing/checkId.ts b/src/plumbing/checkId.ts index 564f5d23..7249822c 100644 --- a/src/plumbing/checkId.ts +++ b/src/plumbing/checkId.ts @@ -1,4 +1,4 @@ -import Maybe from '../types/Maybe'; +import type Maybe from '../types/Maybe'; type ResourceKind = 'capture' | 'chargeback' | 'customer' | 'mandate' | 'order' | 'orderline' | 'organization' | 'payment' | 'payment-link' | 'profile' | 'refund' | 'shipment' | 'subscription'; diff --git a/src/plumbing/iteration/DemandingIterator.ts b/src/plumbing/iteration/DemandingIterator.ts index 6600e3b2..8516e0d6 100644 --- a/src/plumbing/iteration/DemandingIterator.ts +++ b/src/plumbing/iteration/DemandingIterator.ts @@ -1,5 +1,5 @@ import convertToNonNegativeInteger from '../convertToNonNegativeInteger'; -import HelpfulIterator from './HelpfulIterator'; +import type HelpfulIterator from './HelpfulIterator'; import LazyIterator from './LazyIterator'; function getInfinity() { diff --git a/src/plumbing/iteration/HelpfulIterator.ts b/src/plumbing/iteration/HelpfulIterator.ts index 94c46843..b5afc269 100644 --- a/src/plumbing/iteration/HelpfulIterator.ts +++ b/src/plumbing/iteration/HelpfulIterator.ts @@ -1,4 +1,4 @@ -import IteratorHelpers from './IteratorHelpers'; +import type IteratorHelpers from './IteratorHelpers'; import convertToNonNegativeInteger from '../convertToNonNegativeInteger'; async function* drop(wrappee: AsyncIterator, remaining: number): AsyncIterator { diff --git a/src/plumbing/iteration/IteratorHelpers.ts b/src/plumbing/iteration/IteratorHelpers.ts index c1f8b50b..9913a912 100644 --- a/src/plumbing/iteration/IteratorHelpers.ts +++ b/src/plumbing/iteration/IteratorHelpers.ts @@ -1,4 +1,4 @@ -import Maybe from '../../types/Maybe'; +import type Maybe from '../../types/Maybe'; type Vehicle = AsyncIterator | AsyncIterable; type MappedVehicle, U> = V extends AsyncIterator ? AsyncIterator : AsyncIterable; diff --git a/src/plumbing/iteration/LazyIterator.ts b/src/plumbing/iteration/LazyIterator.ts index 572ba868..fb311313 100644 --- a/src/plumbing/iteration/LazyIterator.ts +++ b/src/plumbing/iteration/LazyIterator.ts @@ -1,5 +1,5 @@ import { apply } from 'ruply'; -import HelpfulIterator from './HelpfulIterator'; +import type HelpfulIterator from './HelpfulIterator'; /** * An iterator which creates an upstream iterator using the factory function passed to the constructor, but only once diff --git a/src/types/Callback.ts b/src/types/Callback.ts index 60c609f0..de8a29c5 100644 --- a/src/types/Callback.ts +++ b/src/types/Callback.ts @@ -1,4 +1,4 @@ -import Nullable from './Nullable'; +import type Nullable from './Nullable'; type Callback = (error: Nullable, result: R) => void;