@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 CHANGED
@@ -3725,10 +3725,10 @@ class LabelsAPI {
3725
3725
  return this.client.put(`/v1/labels/${labelId}/void`);
3726
3726
  };
3727
3727
  /**
3728
- * The `download` method allows for downloading a CSV document of labels based on the provided parameters.
3728
+ * The `export` method allows to export a CSV document of labels based on the provided parameters.
3729
3729
  */
3730
- this.download = (params) => {
3731
- return this.client.get("/v1/labels/downloads", {
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 `download` method allows for downloading a CSV document of shipments based on the provided parameters.
4200
+ * The `export` method allows to export a CSV document of shipments based on the provided parameters.
4201
4201
  */
4202
- this.download = (params) => {
4203
- return this.client.get("/v1/shipments/downloads", {
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 `download` method allows for downloading a CSV document of labels based on the provided parameters.
3724
+ * The `export` method allows to export a CSV document of labels based on the provided parameters.
3725
3725
  */
3726
- this.download = (params) => {
3727
- return this.client.get("/v1/labels/downloads", {
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 `download` method allows for downloading a CSV document of shipments based on the provided parameters.
4196
+ * The `export` method allows to export a CSV document of shipments based on the provided parameters.
4197
4197
  */
4198
- this.download = (params) => {
4199
- return this.client.get("/v1/shipments/downloads", {
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, DownloadLabelsParams, Label, ListLabelsParams, ListLabelsResult, VoidRequest } from "./types";
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 `download` method allows for downloading a CSV document of labels based on the provided parameters.
36
+ * The `export` method allows to export a CSV document of labels based on the provided parameters.
37
37
  */
38
- download: (params?: DownloadLabelsParams) => Promise<import("axios").AxiosResponse<Blob, any>>;
38
+ export: (params?: ExportLabelsParams) => Promise<import("axios").AxiosResponse<Blob, any>>;
39
39
  }
package/labels/types.d.ts CHANGED
@@ -143,7 +143,7 @@ export interface CreateLabelOptions {
143
143
  */
144
144
  validateAddress?: string;
145
145
  }
146
- export type DownloadLabelsParams = {
146
+ export type ExportLabelsParams = {
147
147
  /**
148
148
  * CSV column names to export
149
149
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  import { AxiosInstance } from "axios";
2
2
  import { PageableResult } from "../resources";
3
- import { DownloadShipmentsParams, ListShipmentOptions, Shipment, ShipmentRateResponse } from "./types";
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 `download` method allows for downloading a CSV document of shipments based on the provided parameters.
75
+ * The `export` method allows to export a CSV document of shipments based on the provided parameters.
76
76
  */
77
- download: (params?: DownloadShipmentsParams) => Promise<import("axios").AxiosResponse<Blob, any>>;
77
+ export: (params?: ExportShipmentsParams) => Promise<import("axios").AxiosResponse<Blob, any>>;
78
78
  }
@@ -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 DownloadShipmentsParams = {
277
+ export type ExportShipmentsParams = {
278
278
  /**
279
279
  * CSV column names to export
280
280
  */