@shipengine/js-api 0.48.2 → 0.48.4
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,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
|
-
import { PageableResult } from "../resources";
|
|
2
|
+
import { CreationRangeQuery, PageableQuery, PageableResult, SortableQuery } from "../resources";
|
|
3
3
|
import { Label, LabelLayout, VoidRequest } from "./types";
|
|
4
4
|
/**
|
|
5
5
|
* # Labels API - Create Label Options
|
|
@@ -36,13 +36,44 @@ export interface CreateLabelOptions {
|
|
|
36
36
|
/**
|
|
37
37
|
* # Labels API - List Labels Params
|
|
38
38
|
*/
|
|
39
|
-
export
|
|
39
|
+
export type ListLabelsParams = {
|
|
40
|
+
/**
|
|
41
|
+
* `batchId` is an optional string to retrieve labels within a given batch.
|
|
42
|
+
*/
|
|
43
|
+
batchId?: string;
|
|
44
|
+
/**
|
|
45
|
+
* `carrierId` is an optional string to limit results to only lables for
|
|
46
|
+
* a specific carrier.
|
|
47
|
+
*/
|
|
48
|
+
carrierId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* `labelStatus` optionally allows filtering results to a specific status.
|
|
51
|
+
*/
|
|
52
|
+
labelStatus?: Label["status"];
|
|
53
|
+
/**
|
|
54
|
+
* `rateId` is an optional string to return labels purchased with a
|
|
55
|
+
* specific rate.
|
|
56
|
+
*/
|
|
57
|
+
rateId?: string;
|
|
58
|
+
/**
|
|
59
|
+
* `serviceCode` is an optional string to limit results to only labels for
|
|
60
|
+
* a specific carrier service.
|
|
61
|
+
*/
|
|
62
|
+
serviceCode?: string;
|
|
40
63
|
/**
|
|
41
64
|
* `shipmentId` is an optional string to filter labels by shipment ID. This
|
|
42
65
|
* is a unique identifier that ShipEngine API associates with your shipment.
|
|
43
66
|
*/
|
|
44
67
|
shipmentId?: string;
|
|
45
|
-
|
|
68
|
+
/** `trackingNumber` is an optional string to retrieve labels for a specific
|
|
69
|
+
* tracking number
|
|
70
|
+
*/
|
|
71
|
+
trackingNumber?: string;
|
|
72
|
+
/** `warehouseId` is an optional string to limit results to only those
|
|
73
|
+
* originating from a specific warehouse.
|
|
74
|
+
*/
|
|
75
|
+
warehouseId?: string;
|
|
76
|
+
} & PageableQuery & CreationRangeQuery & SortableQuery<"created_at" | "modified_at" | "order_date">;
|
|
46
77
|
export type ListLabelsResult = {
|
|
47
78
|
labels: Label[];
|
|
48
79
|
} & PageableResult;
|
package/package.json
CHANGED
|
@@ -51,6 +51,10 @@ export type ListSalesOrderShipmentsParams = {
|
|
|
51
51
|
* querying sales orders.
|
|
52
52
|
*/
|
|
53
53
|
salesOrderIds?: string[];
|
|
54
|
+
/**
|
|
55
|
+
* `shipmentIds` is an optional array of shipment IDs to fetch.
|
|
56
|
+
*/
|
|
57
|
+
shipmentIds?: string[];
|
|
54
58
|
} & PageableQuery & CreationRangeQuery & ModificationRangeQuery & SortableQuery<"created_at" | "modified_at" | "order_date">;
|
|
55
59
|
/**
|
|
56
60
|
* # Sales Order Shipments - List Sales Order Shipments Body
|