@shipengine/react-api 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/index.js +16 -0
  2. package/index.mjs +4844 -0
  3. package/package.json +18 -0
  4. package/shipengine-api-react/src/hooks/index.d.ts +32 -0
  5. package/shipengine-api-react/src/hooks/use-add-funds.d.ts +10 -0
  6. package/shipengine-api-react/src/hooks/use-calculate-rates.d.ts +16 -0
  7. package/shipengine-api-react/src/hooks/use-connect-carrier.d.ts +7 -0
  8. package/shipengine-api-react/src/hooks/use-create-label.d.ts +11 -0
  9. package/shipengine-api-react/src/hooks/use-create-sales-order-shipment.d.ts +10 -0
  10. package/shipengine-api-react/src/hooks/use-create-warehouse.d.ts +8 -0
  11. package/shipengine-api-react/src/hooks/use-delete-warehouse.d.ts +9 -0
  12. package/shipengine-api-react/src/hooks/use-get-account-settings.d.ts +6 -0
  13. package/shipengine-api-react/src/hooks/use-get-auto-funding-configuration.d.ts +4 -0
  14. package/shipengine-api-react/src/hooks/use-get-carrier-by-id.d.ts +7 -0
  15. package/shipengine-api-react/src/hooks/use-get-insurance-account.d.ts +8 -0
  16. package/shipengine-api-react/src/hooks/use-get-label.d.ts +6 -0
  17. package/shipengine-api-react/src/hooks/use-get-sales-order-shipment.d.ts +6 -0
  18. package/shipengine-api-react/src/hooks/use-get-sales-order.d.ts +6 -0
  19. package/shipengine-api-react/src/hooks/use-get-shipment.d.ts +6 -0
  20. package/shipengine-api-react/src/hooks/use-get-wallet-transaction-history.d.ts +5 -0
  21. package/shipengine-api-react/src/hooks/use-list-carriers.d.ts +7 -0
  22. package/shipengine-api-react/src/hooks/use-list-custom-package-types.d.ts +7 -0
  23. package/shipengine-api-react/src/hooks/use-list-labels.d.ts +8 -0
  24. package/shipengine-api-react/src/hooks/use-list-order-sources.d.ts +6 -0
  25. package/shipengine-api-react/src/hooks/use-list-sales-order-shipments.d.ts +5 -0
  26. package/shipengine-api-react/src/hooks/use-list-sales-orders.d.ts +7 -0
  27. package/shipengine-api-react/src/hooks/use-list-warehouses.d.ts +7 -0
  28. package/shipengine-api-react/src/hooks/use-notify-sales-order.d.ts +10 -0
  29. package/shipengine-api-react/src/hooks/use-parse-address.d.ts +12 -0
  30. package/shipengine-api-react/src/hooks/use-refresh-order-source.d.ts +11 -0
  31. package/shipengine-api-react/src/hooks/use-shipengine.d.ts +1 -0
  32. package/shipengine-api-react/src/hooks/use-update-auto-funding.d.ts +5 -0
  33. package/shipengine-api-react/src/hooks/use-update-billing.d.ts +8 -0
  34. package/shipengine-api-react/src/hooks/use-update-sales-order-shipment.d.ts +8 -0
  35. package/shipengine-api-react/src/hooks/use-update-warehouse.d.ts +10 -0
  36. package/shipengine-api-react/src/hooks/use-validate-addresses.d.ts +8 -0
  37. package/shipengine-api-react/src/hooks/use-void-label.d.ts +7 -0
  38. package/shipengine-api-react/src/index.d.ts +3 -0
  39. package/shipengine-api-react/src/providers/index.d.ts +1 -0
  40. package/shipengine-api-react/src/providers/shipengine.d.ts +12 -0
  41. package/shipengine-api-react/src/utilities/delay.d.ts +4 -0
  42. package/shipengine-api-react/src/utilities/error.d.ts +2 -0
  43. package/shipengine-api-react/src/utilities/index.d.ts +4 -0
  44. package/shipengine-api-react/src/utilities/logger.d.ts +1 -0
  45. package/shipengine-api-react/src/utilities/retry.d.ts +4 -0
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@shipengine/react-api",
3
+ "version": "0.1.0",
4
+ "main": "./index.js",
5
+ "types": "./index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./index.mjs",
9
+ "require": "./index.js"
10
+ }
11
+ },
12
+ "typedoc": {
13
+ "displayName": "@shipengine/react-api",
14
+ "entryPoint": "./src/index.ts",
15
+ "readmeFile": "./README.md",
16
+ "tsconfig": "./tsconfig.lib.json"
17
+ }
18
+ }
@@ -0,0 +1,32 @@
1
+ export * from "./use-add-funds";
2
+ export * from "./use-calculate-rates";
3
+ export * from "./use-update-auto-funding";
4
+ export * from "./use-connect-carrier";
5
+ export * from "./use-create-label";
6
+ export * from "./use-create-sales-order-shipment";
7
+ export * from "./use-create-warehouse";
8
+ export * from "./use-delete-warehouse";
9
+ export * from "./use-get-auto-funding-configuration";
10
+ export * from "./use-get-carrier-by-id";
11
+ export * from "./use-get-insurance-account";
12
+ export * from "./use-get-label";
13
+ export * from "./use-get-account-settings";
14
+ export * from "./use-get-wallet-transaction-history";
15
+ export * from "./use-get-sales-order";
16
+ export * from "./use-get-sales-order-shipment";
17
+ export * from "./use-list-carriers";
18
+ export * from "./use-list-labels";
19
+ export * from "./use-list-order-sources";
20
+ export * from "./use-list-custom-package-types";
21
+ export * from "./use-list-sales-orders";
22
+ export * from "./use-list-sales-order-shipments";
23
+ export * from "./use-list-warehouses";
24
+ export * from "./use-notify-sales-order";
25
+ export * from "./use-parse-address";
26
+ export * from "./use-refresh-order-source";
27
+ export * from "./use-update-billing";
28
+ export * from "./use-update-sales-order-shipment";
29
+ export * from "./use-update-warehouse";
30
+ export * from "./use-validate-addresses";
31
+ export * from "./use-void-label";
32
+ export * from "./use-get-shipment";
@@ -0,0 +1,10 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ /**
3
+ * @category ShipEngine API Hooks
4
+ *
5
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/carriers/add-funds/)
6
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/add_funds_to_carrier)
7
+ */
8
+ export declare const useAddFunds: (carrierId: string) => import("react-query").UseMutationResult<{
9
+ balance: SE.Money;
10
+ }, SE.CodedError[], SE.Money, unknown>;
@@ -0,0 +1,16 @@
1
+ import { CalculateRatesOptions } from "@shipengine/js-api";
2
+ export type CalculateRatesData = {
3
+ rateOptions: CalculateRatesOptions;
4
+ shipmentId: string;
5
+ };
6
+ /**
7
+ * @category ShipEngine API Hooks
8
+ *
9
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/calculate_rates)
10
+ */
11
+ export declare const useCalculateRates: () => import("react-query").UseMutationResult<Omit<import("@shipengine/js-api").Shipment, "items"> & {
12
+ items: import("@shipengine/js-api").SalesOrderShipmentItem[];
13
+ salesOrderIds: string[];
14
+ } & {
15
+ rateResponse: import("@shipengine/js-api").RateResponse;
16
+ }, import("@shipengine/js-api").CodedError[], CalculateRatesData, unknown>;
@@ -0,0 +1,7 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ /**
3
+ * @category ShipEngine API Hooks
4
+ *
5
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/register-stamps/)
6
+ */
7
+ export declare const useConnectCarrier: () => import("react-query").UseMutationResult<void, SE.CodedError[], SE.CarrierConnection, unknown>;
@@ -0,0 +1,11 @@
1
+ import { CreateLabelOptions } from "@shipengine/js-api";
2
+ export type CreateLabelData = {
3
+ rateId: string;
4
+ } & CreateLabelOptions;
5
+ /**
6
+ * @category ShipEngine API Hooks
7
+ *
8
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/labels/create-from-rate/)
9
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/create_label_from_rate)
10
+ */
11
+ export declare const useCreateLabel: () => import("react-query").UseMutationResult<import("@shipengine/js-api").Label, import("@shipengine/js-api").CodedError[], CreateLabelData, unknown>;
@@ -0,0 +1,10 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ export type CreateSalesOrderShipmentData = {
3
+ salesOrderId: string;
4
+ } & Partial<SE.SalesOrderShipment>;
5
+ /**
6
+ * @category ShipEngine API Hooks
7
+ *
8
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/orders/create-a-shipment/)
9
+ */
10
+ export declare const useCreateSalesOrderShipment: () => import("react-query").UseMutationResult<SE.SalesOrderShipment, SE.CodedError[], CreateSalesOrderShipmentData, unknown>;
@@ -0,0 +1,8 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ export type CreateWarehouseData = Partial<SE.Warehouse>;
3
+ /**
4
+ * @category ShipEngine API Hooks
5
+ *
6
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/create-warehouse/)
7
+ * */
8
+ export declare const useCreateWarehouse: () => import("react-query").UseMutationResult<SE.Warehouse, SE.CodedError[], Partial<SE.Warehouse>, unknown>;
@@ -0,0 +1,9 @@
1
+ export type DeleteWarehouseData = {
2
+ warehouseId: string;
3
+ };
4
+ /**
5
+ * @category ShipEngine API Hooks
6
+ *
7
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/delete-warehouse/)
8
+ * */
9
+ export declare const useDeleteWarehouse: () => import("react-query").UseMutationResult<void, import("@shipengine/js-api").CodedError[], DeleteWarehouseData, unknown>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ *
4
+ * @see [https://github.com/ShipEngine/shipengine-api-definition/pull/58/files#diff-775a1c7e38ec7549a98ad8c00e18cb9fc5b4c87ddeb1d496ca3525f48c7381e0
5
+ */
6
+ export declare const useGetAccountSettings: () => import("react-query").UseQueryResult<import("@shipengine/js-api").Settings, import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ */
4
+ export declare const useGetAutoFundingConfiguration: (carrierId?: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").CarrierAutoFundingSettingsResponse, import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ *
4
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/get-carrier-by-id/)
5
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/get_carrier_by_id)
6
+ */
7
+ export declare const useGetCarrierById: (carrierId?: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").Carrier, import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,8 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ /**
3
+ * @category ShipEngine API Hooks
4
+ *
5
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/shipping/insurance/#check-your-insurance-balance)
6
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/get_insurance_balance)
7
+ */
8
+ export declare const useGetInsuranceAccount: (insuranceProvider?: SE.InsuranceProvider) => import("react-query").UseQueryResult<SE.InsuranceAccount, SE.CodedError[]>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ *
4
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/get_label_by_id)
5
+ */
6
+ export declare const useGetLabel: (labelId?: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").Label, import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ *
4
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/orders/get-a-shipment-with-sales-order-items/)
5
+ */
6
+ export declare const useGetSalesOrderShipment: (shipmentId?: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").SalesOrderShipment, import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ *
4
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-orders/)
5
+ */
6
+ export declare const useGetSalesOrder: (salesOrderId?: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").SalesOrder, import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ *
4
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-orders/)
5
+ */
6
+ export declare const useGetShipment: (shipmentId: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").SalesOrderShipment, import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,5 @@
1
+ import { WalletTransactionHistory } from "@shipengine/js-api";
2
+ /**
3
+ * @category ShipEngine API Hooks
4
+ */
5
+ export declare const useGetWalletTransactionHistory: () => WalletTransactionHistory;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ *
4
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-carriers)
5
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/list_carriers)
6
+ */
7
+ export declare const useListCarriers: () => import("react-query").UseQueryResult<import("@shipengine/js-api").Carrier[], import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ *
4
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/shipping/custom-package-types/#list-your-package-types)
5
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#tag/package_types)
6
+ */
7
+ export declare const useListCustomPackageTypes: () => import("react-query").UseQueryResult<import("@shipengine/js-api").CustomPackage[], import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,8 @@
1
+ import { ListLabelsParams } from "@shipengine/js-api";
2
+ /**
3
+ * @category ShipEngine API Hooks
4
+ *
5
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-labels/)
6
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/list_labels)
7
+ */
8
+ export declare const useListLabels: (params?: ListLabelsParams) => import("react-query").UseQueryResult<import("@shipengine/js-api").Label[], import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ *
4
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-order-sources/)
5
+ */
6
+ export declare const useListOrderSources: () => import("react-query").UseQueryResult<import("@shipengine/js-api").OrderSource[], import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,5 @@
1
+ import { ListSalesOrderShipmentsParams } from "@shipengine/js-api";
2
+ /**
3
+ * @category ShipEngine API Hooks
4
+ */
5
+ export declare const useListSalesOrderShipments: (params?: ListSalesOrderShipmentsParams) => import("react-query").UseQueryResult<import("@shipengine/js-api").SalesOrderShipment[], import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,7 @@
1
+ import { ListSalesOrdersParams } from "@shipengine/js-api";
2
+ /**
3
+ * @category ShipEngine API Hooks
4
+ *
5
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-orders/)
6
+ */
7
+ export declare const useListSalesOrders: (params?: ListSalesOrdersParams) => import("react-query").UseQueryResult<import("@shipengine/js-api").SalesOrder[], import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ *
4
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-warehouses/)
5
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/list_warehouses)
6
+ */
7
+ export declare const useListWarehouses: () => import("react-query").UseQueryResult<import("@shipengine/js-api").Warehouse[], import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,10 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ export type NotifySalesOrderShippedData = {
3
+ salesOrderId: string;
4
+ } & SE.SalesOrderTracking;
5
+ /**
6
+ * @category ShipEngine API Hooks
7
+ *
8
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/notify-order-source/)
9
+ */
10
+ export declare const useNotifySalesOrderShipped: () => import("react-query").UseMutationResult<SE.SalesOrder, SE.CodedError[], NotifySalesOrderShippedData, unknown>;
@@ -0,0 +1,12 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ export type ParseAddressData = {
3
+ address?: Partial<SE.Address>;
4
+ text: string;
5
+ };
6
+ /**
7
+ * @category ShipEngine API Hooks
8
+ *
9
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/addresses/parse/)
10
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/parse_address)
11
+ */
12
+ export declare const useParseAddress: () => import("react-query").UseMutationResult<SE.AddressExtraction, SE.CodedError[], ParseAddressData, unknown>;
@@ -0,0 +1,11 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ /**
3
+ * @category ShipEngine API Hooks
4
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/refresh-order-source/)
5
+ */
6
+ export declare const useRefreshOrderSourceAsync: () => import("react-query").UseMutationResult<SE.OrderSource, unknown, string, unknown>;
7
+ /**
8
+ * @category ShipEngine API Hooks
9
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/refresh-order-source/)
10
+ */
11
+ export declare const useRefreshOrderSource: () => import("react-query").UseMutationResult<SE.OrderSource, SE.CodedError[], string, unknown>;
@@ -0,0 +1 @@
1
+ export declare const useShipEngine: () => import("../providers").ShipEngineContextValue;
@@ -0,0 +1,5 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ /**
3
+ * @category ShipEngine API Hooks
4
+ */
5
+ export declare const useUpdateAutoFunding: (carrierId: string) => import("react-query").UseMutationResult<SE.CarrierAutoFundingSettingsResponse, SE.CodedError[], SE.CarrierAutoFundingSettings, unknown>;
@@ -0,0 +1,8 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ /**
3
+ * @category ShipEngine API Hooks
4
+ */
5
+ export declare const useUpdateBilling: () => import("react-query").UseMutationResult<{}, SE.CodedError[], {
6
+ address: SE.Address;
7
+ creditCard: SE.CreditCard;
8
+ }, unknown>;
@@ -0,0 +1,8 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ export type UpdateSalesOrderShipmentData = Omit<Partial<SE.SalesOrderShipment>, "shipmentId"> & {
3
+ shipmentId: string;
4
+ };
5
+ /**
6
+ * @category ShipEngine API Hooks
7
+ */
8
+ export declare const useUpdateSalesOrderShipment: () => import("react-query").UseMutationResult<SE.SalesOrderShipment, SE.CodedError[], UpdateSalesOrderShipmentData, unknown>;
@@ -0,0 +1,10 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ export type UpdateWarehouseData = {
3
+ warehouseId: string;
4
+ } & Partial<SE.Warehouse>;
5
+ /**
6
+ * @category ShipEngine API Hooks
7
+ *
8
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/update-warehouse/)
9
+ * */
10
+ export declare const useUpdateWarehouse: () => import("react-query").UseMutationResult<void, SE.CodedError[], UpdateWarehouseData, unknown>;
@@ -0,0 +1,8 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ /**
3
+ * @category ShipEngine API Hooks
4
+ *
5
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/addresses/validation)
6
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/validate_address)
7
+ */
8
+ export declare const useValidateAddresses: () => import("react-query").UseMutationResult<SE.AddressValidation[], SE.CodedError[], SE.Address[], unknown>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ *
4
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/labels/voiding/)
5
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/void_label)
6
+ */
7
+ export declare const useVoidLabel: () => import("react-query").UseMutationResult<import("@shipengine/js-api").VoidRequest, import("@shipengine/js-api").CodedError[], string, unknown>;
@@ -0,0 +1,3 @@
1
+ export * from "./hooks";
2
+ export * from "./providers";
3
+ export * from "./utilities";
@@ -0,0 +1 @@
1
+ export * from "./shipengine";
@@ -0,0 +1,12 @@
1
+ import { AxiosRequestHeaders } from "axios";
2
+ import { ShipEngineAPI, ShipEngineAPIConfig } from "@shipengine/js-api";
3
+ export interface ShipEngineContextValue {
4
+ client: ShipEngineAPI;
5
+ }
6
+ export declare const ShipEngineContext: import("react").Context<ShipEngineContextValue | undefined>;
7
+ export type ShipEngineProviderProps = {
8
+ children: React.ReactNode;
9
+ getToken: () => Promise<string> | string;
10
+ headers?: AxiosRequestHeaders;
11
+ } & ShipEngineAPIConfig;
12
+ export declare const ShipEngineProvider: ({ baseURL, children, headers, getToken, }: ShipEngineProviderProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @category Utilities
3
+ */
4
+ export declare const delay: (ms: number) => Promise<unknown>;
@@ -0,0 +1,2 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ export declare const onError: (errors: SE.CodedError[]) => void;
@@ -0,0 +1,4 @@
1
+ export * from "./delay";
2
+ export * from "./error";
3
+ export * from "./logger";
4
+ export * from "./retry";
@@ -0,0 +1 @@
1
+ export declare const logger: import("browser-bunyan").Logger;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @category Utilities
3
+ */
4
+ export declare const retryUntil: <T>(callbackFn: () => Promise<T>, retries?: number, timeoutBetweenAttempts?: number) => Promise<T>;