@shipengine/js-api 2.0.1 → 2.1.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
@@ -3875,10 +3875,16 @@ class SellersAPI {
3875
3875
  /**
3876
3876
  * Adds sandbox carriers to a seller, you can pass in a flag to try to reuse the carrier connection.
3877
3877
  */
3878
- this.addSandboxCarriers = ({ sellerId, tryReuseCarrierConnection }) => {
3879
- return this.client.post(`/v1/sellers/add_sandbox_carriers/${sellerId}`, {
3880
- tryReuseCarrierConnection
3881
- });
3878
+ this.addSandboxCarriers = (props) => {
3879
+ return this.client.post(
3880
+ `/v1/sellers/add_sandbox_carriers/${props.sellerId}`,
3881
+ {
3882
+ tryReuseCarrierConnection: props.tryReuseCarrierConnection
3883
+ },
3884
+ {
3885
+ isSandbox: props.isSandbox
3886
+ }
3887
+ );
3882
3888
  };
3883
3889
  this.client = client;
3884
3890
  }
package/index.mjs CHANGED
@@ -3871,10 +3871,16 @@ class SellersAPI {
3871
3871
  /**
3872
3872
  * Adds sandbox carriers to a seller, you can pass in a flag to try to reuse the carrier connection.
3873
3873
  */
3874
- this.addSandboxCarriers = ({ sellerId, tryReuseCarrierConnection }) => {
3875
- return this.client.post(`/v1/sellers/add_sandbox_carriers/${sellerId}`, {
3876
- tryReuseCarrierConnection
3877
- });
3874
+ this.addSandboxCarriers = (props) => {
3875
+ return this.client.post(
3876
+ `/v1/sellers/add_sandbox_carriers/${props.sellerId}`,
3877
+ {
3878
+ tryReuseCarrierConnection: props.tryReuseCarrierConnection
3879
+ },
3880
+ {
3881
+ isSandbox: props.isSandbox
3882
+ }
3883
+ );
3878
3884
  };
3879
3885
  this.client = client;
3880
3886
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
package/sellers/api.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AxiosInstance } from "axios";
2
+ import { SandboxableMutation } from "../resources";
2
3
  import type { ListSandboxSellersParams, SandboxMethodParams } from "./types";
3
4
  /**
4
5
  * Sellers API endpoints
@@ -18,5 +19,5 @@ export declare class SellersAPI {
18
19
  /**
19
20
  * Adds sandbox carriers to a seller, you can pass in a flag to try to reuse the carrier connection.
20
21
  */
21
- addSandboxCarriers: ({ sellerId, tryReuseCarrierConnection }: SandboxMethodParams) => Promise<import("axios").AxiosResponse<void, any>>;
22
+ addSandboxCarriers: (props: SandboxableMutation<SandboxMethodParams>) => Promise<import("axios").AxiosResponse<void, any>>;
22
23
  }