@shipengine/js-api 1.4.1 → 1.5.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/carriers/api.d.ts CHANGED
@@ -81,4 +81,9 @@ export declare class CarriersAPI {
81
81
  getZones: (carrierId: string) => Promise<import("axios").AxiosResponse<{
82
82
  zones: CarrierZone[];
83
83
  }, any>>;
84
+ /**
85
+ * Disconnect a Carrier of the given ID from the account.
86
+ * https://shipengine.github.io/shipengine-openapi/#operation/disconnect_carrier_by_id
87
+ */
88
+ delete: (carrierId: string) => Promise<import("axios").AxiosResponse<void, any>>;
84
89
  }
package/index.js CHANGED
@@ -1145,6 +1145,13 @@ class CarriersAPI {
1145
1145
  this.getZones = (carrierId) => {
1146
1146
  return this.client.get(`/v1/carriers/${carrierId}/zones`);
1147
1147
  };
1148
+ /**
1149
+ * Disconnect a Carrier of the given ID from the account.
1150
+ * https://shipengine.github.io/shipengine-openapi/#operation/disconnect_carrier_by_id
1151
+ */
1152
+ this.delete = (carrierId) => {
1153
+ return this.client.delete(`/v1/carriers/${carrierId}`);
1154
+ };
1148
1155
  this.client = client;
1149
1156
  }
1150
1157
  }
package/index.mjs CHANGED
@@ -1141,6 +1141,13 @@ class CarriersAPI {
1141
1141
  this.getZones = (carrierId) => {
1142
1142
  return this.client.get(`/v1/carriers/${carrierId}/zones`);
1143
1143
  };
1144
+ /**
1145
+ * Disconnect a Carrier of the given ID from the account.
1146
+ * https://shipengine.github.io/shipengine-openapi/#operation/disconnect_carrier_by_id
1147
+ */
1148
+ this.delete = (carrierId) => {
1149
+ return this.client.delete(`/v1/carriers/${carrierId}`);
1150
+ };
1144
1151
  this.client = client;
1145
1152
  }
1146
1153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "1.4.1",
3
+ "version": "1.5.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {