@shipengine/js-api 1.18.0 → 1.19.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.
package/labels/api.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AxiosInstance } from "axios";
2
2
  import { CreationRangeQuery, PageableQuery, PageableResult, SortableQuery } from "../resources";
3
- import { Label, LabelLayout, VoidRequest } from "./types";
3
+ import { Label, LabelLayout, LabelStatus, VoidRequest } from "./types";
4
4
  /**
5
5
  * # Labels API - Create Label Options
6
6
  */
@@ -57,7 +57,7 @@ export type ListLabelsParams = {
57
57
  /**
58
58
  * `labelStatus` optionally allows filtering results to a specific status.
59
59
  */
60
- labelStatus?: Label["status"];
60
+ labelStatus?: LabelStatus;
61
61
  /**
62
62
  * `rateId` is an optional string to return labels purchased with a
63
63
  * specific rate.
package/labels/types.d.ts CHANGED
@@ -19,6 +19,10 @@ export type LabelFormat = "pdf" | "png" | "zpl";
19
19
  * @category Entities
20
20
  */
21
21
  export type LabelLayout = "4x6" | "letter";
22
+ /**
23
+ * @category Entities
24
+ */
25
+ export type LabelStatus = "processing" | "completed" | "error" | "voided";
22
26
  /**
23
27
  * @category Entities
24
28
  */
@@ -52,7 +56,7 @@ export type Label = {
52
56
  shipDate: string;
53
57
  shipmentCost: Money;
54
58
  shipmentId: string;
55
- status: "processing" | "completed" | "error" | "voided";
59
+ status: LabelStatus;
56
60
  trackable: boolean;
57
61
  trackingNumber: string;
58
62
  trackingStatus: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {