Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@shipengine/js-api

Package Overview
Dependencies
Maintainers
26
Versions
256
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shipengine/js-api - npm Package Compare versions

Comparing version
0.1.2
to
0.2.0
+3
-2
account-settings/api.d.ts
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>>;
}
+6
-2

@@ -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 = {

{
"name": "@shipengine/js-api",
"version": "0.1.2",
"version": "0.2.0",
"main": "./index.js",

@@ -5,0 +5,0 @@ "types": "./index.d.ts",

@@ -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