@shipengine/js-api
Advanced tools
| import { AxiosInstance } from "axios"; | ||
| import { Settings } from "./types"; | ||
| import { AccountSettings } from "./types"; | ||
| export declare class AccountSettingsAPI { | ||
| private client; | ||
| constructor(client: AxiosInstance); | ||
| getAccountSettings: () => Promise<import("axios").AxiosResponse<Settings, any>>; | ||
| get: () => Promise<import("axios").AxiosResponse<AccountSettings, any>>; | ||
| update: (settings: AccountSettings) => Promise<import("axios").AxiosResponse<AccountSettings, any>>; | ||
| } |
@@ -0,4 +1,8 @@ | ||
| import { DimensionUnit } from "../dimensions"; | ||
| import { LabelLayout } from "../labels"; | ||
| export interface Settings { | ||
| defaultLabelLayout: LabelLayout | null; | ||
| import { WeightUnit } from "../weight"; | ||
| export interface AccountSettings { | ||
| defaultLabelLayout?: LabelLayout; | ||
| dimension?: DimensionUnit; | ||
| weight?: WeightUnit; | ||
| } |
@@ -89,2 +89,3 @@ import { Address } from "../addresses"; | ||
| }; | ||
| export type WalletTransactionType = "adjustment" | "fund" | "purchase" | "reload" | "void"; | ||
| export type WalletTransaction = { | ||
@@ -98,3 +99,3 @@ amount: number; | ||
| transactionId: string; | ||
| transactionType: "fund" | "void" | "adjustment" | "purchase"; | ||
| transactionType: WalletTransactionType; | ||
| }; | ||
@@ -101,0 +102,0 @@ export type TransactionHistoryCsvLink = { |
+1
-1
| { | ||
| "name": "@shipengine/js-api", | ||
| "version": "0.1.2", | ||
| "version": "0.2.0", | ||
| "main": "./index.js", | ||
@@ -5,0 +5,0 @@ "types": "./index.d.ts", |
+1
-0
@@ -0,1 +1,2 @@ | ||
| export * from "./account-settings/types"; | ||
| export * from "./addresses/types"; | ||
@@ -2,0 +3,0 @@ export * from "./carriers/types"; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
213795
0.21%4324
0.16%