@shipengine/js-api 2.5.0 → 2.5.2

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.
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from "axios";
2
- import { AccountImage, AccountImageResponse, AccountImagesResponse, AccountSettings, UpdateAccountImage } from "./types";
2
+ import { AccountImage, AccountImageResponse, AccountImagesResponse, ShipEngineAccountSettings, UpdateAccountImage } from "./types";
3
3
  /**
4
4
  * # Account Settings API module - /v1/account/settings
5
5
  */
@@ -9,13 +9,13 @@ export declare class AccountSettingsAPI {
9
9
  /**
10
10
  * The `get` method retrieves the account settings for a given user.
11
11
  */
12
- get: () => Promise<import("axios").AxiosResponse<AccountSettings, any>>;
12
+ get: () => Promise<import("axios").AxiosResponse<ShipEngineAccountSettings, any>>;
13
13
  /**
14
14
  * The `update` method updates specific account settings for a given user.
15
15
  *
16
- * @params Partial<AccountSettings> The account settings to update.
16
+ * @params Partial<ShipEngineAccountSettings> The account settings to update.
17
17
  */
18
- update: (settings: Partial<AccountSettings>) => Promise<import("axios").AxiosResponse<AccountSettings, any>>;
18
+ update: (settings: Partial<ShipEngineAccountSettings>) => Promise<import("axios").AxiosResponse<ShipEngineAccountSettings, any>>;
19
19
  /**
20
20
  * The `createImage` method creates an image that can be used in your printed labels.
21
21
  */
@@ -2,7 +2,7 @@ import { DimensionUnit } from "../dimensions";
2
2
  import { LabelLayout } from "../labels";
3
3
  import { PageableResult } from "../resources";
4
4
  import { WeightUnit } from "../weight";
5
- export interface AccountSettings {
5
+ export interface ShipEngineAccountSettings {
6
6
  defaultLabelLayout: LabelLayout;
7
7
  dimensionsUnit: DimensionUnit;
8
8
  taxIdentifier?: string;
package/index.js CHANGED
@@ -180,7 +180,7 @@ class AccountSettingsAPI {
180
180
  /**
181
181
  * The `update` method updates specific account settings for a given user.
182
182
  *
183
- * @params Partial<AccountSettings> The account settings to update.
183
+ * @params Partial<ShipEngineAccountSettings> The account settings to update.
184
184
  */
185
185
  this.update = (settings) => {
186
186
  return this.client.put("/v1/account/settings", settings);
package/index.mjs CHANGED
@@ -176,7 +176,7 @@ class AccountSettingsAPI {
176
176
  /**
177
177
  * The `update` method updates specific account settings for a given user.
178
178
  *
179
- * @params Partial<AccountSettings> The account settings to update.
179
+ * @params Partial<ShipEngineAccountSettings> The account settings to update.
180
180
  */
181
181
  this.update = (settings) => {
182
182
  return this.client.put("/v1/account/settings", settings);
package/labels/types.d.ts CHANGED
@@ -18,6 +18,8 @@ export type Label = {
18
18
  chargeEvent: LabelChargeEvent;
19
19
  createdAt: string;
20
20
  displayScheme: LabelDisplayScheme;
21
+ externalOrderId: string | null;
22
+ externalShipmentId: string | null;
21
23
  formDownload: LinkedResource;
22
24
  insuranceClaim: LinkedResource;
23
25
  insuranceCost: Money;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {