@shipengine/react-api 3.1.2 → 3.2.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.
@@ -1,7 +1,7 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SandboxableMutation, SE } from "@shipengine/js-api";
2
2
  /**
3
3
  * @category ShipEngine API Hooks
4
4
  *
5
5
  * No documentation available for this endpoint
6
6
  */
7
- export declare const useAddSandboxCarriers: () => import("@tanstack/react-query").UseMutationResult<void, SE.CodedError[], SE.SandboxMethodParams, unknown>;
7
+ export declare const useAddSandboxCarriers: () => import("@tanstack/react-query").UseMutationResult<void, SE.CodedError[], SandboxableMutation<SE.SandboxMethodParams>, unknown>;
package/index.js CHANGED
@@ -2536,11 +2536,8 @@ var __async$4 = (__this, __arguments, generator) => {
2536
2536
  const useAddSandboxCarriers = () => {
2537
2537
  const { client } = useShipEngine();
2538
2538
  return reactQuery.useMutation({
2539
- mutationFn: (_0) => __async$4(void 0, [_0], function* ({ sellerId, tryReuseCarrierConnection }) {
2540
- const result = yield client.sellers.addSandboxCarriers({
2541
- sellerId,
2542
- tryReuseCarrierConnection
2543
- });
2539
+ mutationFn: (props) => __async$4(void 0, null, function* () {
2540
+ const result = yield client.sellers.addSandboxCarriers(props);
2544
2541
  return result.data;
2545
2542
  }),
2546
2543
  mutationKey: ["useAddSandboxCarriers"],
package/index.mjs CHANGED
@@ -2533,11 +2533,8 @@ var __async$4 = (__this, __arguments, generator) => {
2533
2533
  const useAddSandboxCarriers = () => {
2534
2534
  const { client } = useShipEngine();
2535
2535
  return useMutation({
2536
- mutationFn: (_0) => __async$4(void 0, [_0], function* ({ sellerId, tryReuseCarrierConnection }) {
2537
- const result = yield client.sellers.addSandboxCarriers({
2538
- sellerId,
2539
- tryReuseCarrierConnection
2540
- });
2536
+ mutationFn: (props) => __async$4(void 0, null, function* () {
2537
+ const result = yield client.sellers.addSandboxCarriers(props);
2541
2538
  return result.data;
2542
2539
  }),
2543
2540
  mutationKey: ["useAddSandboxCarriers"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/react-api",
3
- "version": "3.1.2",
3
+ "version": "3.2.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {