@shipengine/js-api 4.2.1 → 4.3.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/index.js +6 -6
- package/index.mjs +6 -6
- package/labels/api.d.ts +3 -3
- package/labels/types.d.ts +1 -1
- package/package.json +1 -1
- package/shipments/api.d.ts +3 -3
- package/shipments/types.d.ts +1 -1
package/index.js
CHANGED
|
@@ -3725,10 +3725,10 @@ class LabelsAPI {
|
|
|
3725
3725
|
return this.client.put(`/v1/labels/${labelId}/void`);
|
|
3726
3726
|
};
|
|
3727
3727
|
/**
|
|
3728
|
-
* The `
|
|
3728
|
+
* The `export` method allows to export a CSV document of labels based on the provided parameters.
|
|
3729
3729
|
*/
|
|
3730
|
-
this.
|
|
3731
|
-
return this.client.get("/v1/labels/
|
|
3730
|
+
this.export = (params) => {
|
|
3731
|
+
return this.client.get("/v1/labels/export", {
|
|
3732
3732
|
headers: {
|
|
3733
3733
|
Accept: "text/csv"
|
|
3734
3734
|
},
|
|
@@ -4197,10 +4197,10 @@ class ShipmentsAPI {
|
|
|
4197
4197
|
return this.client.put(`/v1/shipments/${shipmentId}/cancel`);
|
|
4198
4198
|
};
|
|
4199
4199
|
/**
|
|
4200
|
-
* The `
|
|
4200
|
+
* The `export` method allows to export a CSV document of shipments based on the provided parameters.
|
|
4201
4201
|
*/
|
|
4202
|
-
this.
|
|
4203
|
-
return this.client.get("/v1/shipments/
|
|
4202
|
+
this.export = (params) => {
|
|
4203
|
+
return this.client.get("/v1/shipments/export", {
|
|
4204
4204
|
headers: {
|
|
4205
4205
|
Accept: "text/csv"
|
|
4206
4206
|
},
|
package/index.mjs
CHANGED
|
@@ -3721,10 +3721,10 @@ class LabelsAPI {
|
|
|
3721
3721
|
return this.client.put(`/v1/labels/${labelId}/void`);
|
|
3722
3722
|
};
|
|
3723
3723
|
/**
|
|
3724
|
-
* The `
|
|
3724
|
+
* The `export` method allows to export a CSV document of labels based on the provided parameters.
|
|
3725
3725
|
*/
|
|
3726
|
-
this.
|
|
3727
|
-
return this.client.get("/v1/labels/
|
|
3726
|
+
this.export = (params) => {
|
|
3727
|
+
return this.client.get("/v1/labels/export", {
|
|
3728
3728
|
headers: {
|
|
3729
3729
|
Accept: "text/csv"
|
|
3730
3730
|
},
|
|
@@ -4193,10 +4193,10 @@ class ShipmentsAPI {
|
|
|
4193
4193
|
return this.client.put(`/v1/shipments/${shipmentId}/cancel`);
|
|
4194
4194
|
};
|
|
4195
4195
|
/**
|
|
4196
|
-
* The `
|
|
4196
|
+
* The `export` method allows to export a CSV document of shipments based on the provided parameters.
|
|
4197
4197
|
*/
|
|
4198
|
-
this.
|
|
4199
|
-
return this.client.get("/v1/shipments/
|
|
4198
|
+
this.export = (params) => {
|
|
4199
|
+
return this.client.get("/v1/shipments/export", {
|
|
4200
4200
|
headers: {
|
|
4201
4201
|
Accept: "text/csv"
|
|
4202
4202
|
},
|
package/labels/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
|
-
import { CreateLabelOptions,
|
|
2
|
+
import { CreateLabelOptions, ExportLabelsParams, Label, ListLabelsParams, ListLabelsResult, VoidRequest } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* # Labels API module - /v1/labels
|
|
5
5
|
*/
|
|
@@ -33,7 +33,7 @@ export declare class LabelsAPI {
|
|
|
33
33
|
*/
|
|
34
34
|
void: (labelId: string) => Promise<import("axios").AxiosResponse<VoidRequest, any>>;
|
|
35
35
|
/**
|
|
36
|
-
* The `
|
|
36
|
+
* The `export` method allows to export a CSV document of labels based on the provided parameters.
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
export: (params?: ExportLabelsParams) => Promise<import("axios").AxiosResponse<Blob, any>>;
|
|
39
39
|
}
|
package/labels/types.d.ts
CHANGED
package/package.json
CHANGED
package/shipments/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
2
|
import { PageableResult } from "../resources";
|
|
3
|
-
import {
|
|
3
|
+
import { ExportShipmentsParams, ListShipmentOptions, Shipment, ShipmentRateResponse } from "./types";
|
|
4
4
|
/**
|
|
5
5
|
* # Shipments - Get Shipment Rates Options
|
|
6
6
|
*/
|
|
@@ -72,7 +72,7 @@ export declare class ShipmentsAPI {
|
|
|
72
72
|
*/
|
|
73
73
|
cancel: (shipmentId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
74
74
|
/**
|
|
75
|
-
* The `
|
|
75
|
+
* The `export` method allows to export a CSV document of shipments based on the provided parameters.
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
export: (params?: ExportShipmentsParams) => Promise<import("axios").AxiosResponse<Blob, any>>;
|
|
78
78
|
}
|
package/shipments/types.d.ts
CHANGED
|
@@ -274,7 +274,7 @@ export type ListShipmentOptions = {
|
|
|
274
274
|
shipmentStatus?: ShipmentStatus;
|
|
275
275
|
} & BatchableQuery & PageableQuery & CreationRangeQuery & ModificationRangeQuery & SortableQuery & TaggableQuery;
|
|
276
276
|
export type ShipmentColumns = "shipment_id" | "packages" | "recipient" | "shipping_service" | "created_date" | "modified_at" | "status";
|
|
277
|
-
export type
|
|
277
|
+
export type ExportShipmentsParams = {
|
|
278
278
|
/**
|
|
279
279
|
* CSV column names to export
|
|
280
280
|
*/
|