@shipengine/react-api 3.3.2 → 3.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.
@@ -3,4 +3,4 @@
3
3
  *
4
4
  * @see [https://github.com/ShipEngine/shipengine-api-definition/pull/58/files#diff-775a1c7e38ec7549a98ad8c00e18cb9fc5b4c87ddeb1d496ca3525f48c7381e0
5
5
  */
6
- export declare const useGetAccountSettings: () => import("@tanstack/react-query").UseQueryResult<import("@shipengine/js-api").AccountSettings, import("@shipengine/js-api").CodedError[]>;
6
+ export declare const useGetAccountSettings: () => import("@tanstack/react-query").UseQueryResult<import("@shipengine/js-api").ShipEngineAccountSettings, import("@shipengine/js-api").CodedError[]>;
@@ -2,4 +2,4 @@ import { SE } from "@shipengine/js-api";
2
2
  /**
3
3
  * @category ShipEngine API Hooks
4
4
  * */
5
- export declare const useUpdateAccountSettings: () => import("@tanstack/react-query").UseMutationResult<SE.AccountSettings, SE.CodedError[], Partial<SE.AccountSettings>, unknown>;
5
+ export declare const useUpdateAccountSettings: () => import("@tanstack/react-query").UseMutationResult<SE.ShipEngineAccountSettings, SE.CodedError[], SE.AccountSettings, unknown>;
@@ -1,3 +1,6 @@
1
1
  export * from "./use-add-sandbox-carriers";
2
2
  export * from "./use-create-sandbox-seller";
3
3
  export * from "./use-list-sandbox-seller-ids";
4
+ export * from "./use-list-seller-api-keys";
5
+ export * from "./use-create-seller-api-key";
6
+ export * from "./use-delete-seller-api-key";
@@ -0,0 +1,2 @@
1
+ import { CodedError, SandboxableMutation, SE } from "@shipengine/js-api";
2
+ export declare const useCreateSellerApiKey: () => import("@tanstack/react-query").UseMutationResult<SE.SellerApiKey, CodedError[], SandboxableMutation<Omit<SE.CreateSellerApiKeyParams, "sellerId">>, unknown>;
@@ -0,0 +1,2 @@
1
+ import { CodedError, SandboxableMutation, SE } from "@shipengine/js-api";
2
+ export declare const useDeleteSellerApiKey: () => import("@tanstack/react-query").UseMutationResult<void, CodedError[], SandboxableMutation<Omit<SE.DeleteSellerApiKeyParams, "sellerId">>, unknown>;
@@ -0,0 +1,3 @@
1
+ import { CodedError, SandboxableQuery, SE } from "@shipengine/js-api";
2
+ import { QueryProps } from "../../utilities";
3
+ export declare const useListSellerApiKeys: (params?: QueryProps<SE.SellerApiKey[], SandboxableQuery>) => import("@tanstack/react-query").UseQueryResult<SE.SellerApiKey[], CodedError[]>;
@@ -1,10 +1,16 @@
1
1
  import { SE } from "@shipengine/js-api";
2
- export type CreateShipmentData = {
2
+ export type CreateShipmentData = ({
3
3
  warehouseId: string;
4
- } & Partial<Omit<SE.Shipment, "items">>;
4
+ } | {
5
+ shipFrom: SE.Address;
6
+ }) & Partial<Omit<SE.Shipment, "items">>;
5
7
  /**
6
8
  * @category ShipEngine API Hooks
7
9
  *
8
10
  * @see [ShipEngine Developer Docs](https://shipengine.github.io/shipengine-openapi/#operation/create_shipments)
9
11
  */
10
- export declare const useCreateShipment: () => import("@tanstack/react-query").UseMutationResult<import("@shipengine/js-api").CreateShipmentResult, SE.CodedError[], CreateShipmentData, unknown>;
12
+ export declare const useCreateShipment: () => import("@tanstack/react-query").UseMutationResult<import("@shipengine/js-api").CreateShipmentResult, SE.CodedError[], ({
13
+ warehouseId: string;
14
+ } | {
15
+ shipFrom: SE.Address;
16
+ }) & Partial<Omit<SE.Shipment, "items">>, unknown>;