@shipengine/react-api 3.8.2 → 3.9.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,5 +1,6 @@
1
1
  import { SE } from "@shipengine/js-api";
2
2
  /**
3
+ * @internal
3
4
  * @category ShipEngine API Hooks
4
5
  * */
5
6
  export declare const useCreateFundingSource: () => import("@tanstack/react-query").UseMutationResult<SE.FundingSourceCreateResponse, SE.CodedError[], SE.CreateFundingSource, unknown>;
@@ -4,6 +4,7 @@ type AddFundsData = {
4
4
  funds: SE.Money;
5
5
  };
6
6
  /**
7
+ * @internal
7
8
  * @category ShipEngine API Hooks
8
9
  *
9
10
  * @see [ShipEngine API Reference](https://auctane.atlassian.net/wiki/spaces/~6272e3473d0b58006947a648/pages/3628370266/ShipEngine+Funding+Sources+API#PUT-v1/funding_sources/%7Bfunding_source_id%7D/add_funds)
@@ -1,4 +1,5 @@
1
1
  /**
2
+ * @internal
2
3
  * @category ShipEngine API Hooks
3
4
  */
4
5
  export declare const useGetFundingSourceById: (fundingSourceId: string) => import("@tanstack/react-query").UseQueryResult<import("@shipengine/js-api").FundingSource, import("@shipengine/js-api").CodedError[]>;
@@ -1,4 +1,5 @@
1
1
  /**
2
+ * @internal
2
3
  * @category ShipEngine API Hooks
3
4
  */
4
5
  export declare const useGetFundingSourceMetadata: () => import("@tanstack/react-query").UseQueryResult<import("@shipengine/js-api").MetadataResponse, import("@shipengine/js-api").CodedError[]>;
@@ -3,6 +3,7 @@ type FundingSourceTransactionsParams = {
3
3
  category?: string;
4
4
  } & PageableQuery & CreationRangeQuery & SortableQuery<"amount" | "category">;
5
5
  /**
6
+ * @internal
6
7
  * @category ShipEngine API Hooks
7
8
  */
8
9
  export declare const useGetFundingSourceTransactions: (fundingSourceId: string, params?: FundingSourceTransactionsParams) => import("@tanstack/react-query").UseQueryResult<import("@shipengine/js-api").FundingSourceTransactionsResponse, import("@shipengine/js-api").CodedError[]>;
@@ -1,6 +1,7 @@
1
1
  import { InsuranceFundingSourceAcceptedTermsResponse } from "@shipengine/js-api";
2
2
  import { QueryProps } from "../../utilities";
3
3
  /**
4
+ * @internal
4
5
  * @category ShipEngine API Hooks
5
6
  */
6
7
  export declare const useGetInsuranceFundingSourceAcceptedTerms: (params?: QueryProps<InsuranceFundingSourceAcceptedTermsResponse>) => import("@tanstack/react-query").UseQueryResult<InsuranceFundingSourceAcceptedTermsResponse, import("@shipengine/js-api").CodedError[]>;
@@ -1,4 +1,5 @@
1
1
  /**
2
+ * @internal
2
3
  * @category ShipEngine API Hooks
3
4
  */
4
5
  export declare const useListFundingSources: () => import("@tanstack/react-query").UseQueryResult<import("@shipengine/js-api").FundingSource[], import("@shipengine/js-api").CodedError[]>;
@@ -1,5 +1,6 @@
1
1
  import { SE } from "@shipengine/js-api";
2
2
  /**
3
+ * @internal
3
4
  * @category ShipEngine API Hooks
4
5
  * */
5
6
  export declare const useRegisterCarrier: () => import("@tanstack/react-query").UseMutationResult<SE.CarrierRegistrationResponse, SE.CodedError[], SE.CarrierRegistration, unknown>;
@@ -5,6 +5,7 @@ export type UpdateFundingSourceData = {
5
5
  fundingSourceId: string;
6
6
  };
7
7
  /**
8
+ * @internal
8
9
  * @category ShipEngine API Hooks
9
10
  * */
10
11
  export declare const useUpdateFundingSource: () => import("@tanstack/react-query").UseMutationResult<{
package/hooks/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from "./connections";
5
5
  export * from "./custom-packages";
6
6
  export * from "./funding-sources";
7
7
  export * from "./insurance";
8
+ export * from "./invoice-address";
8
9
  export * from "./labels";
9
10
  export * from "./order-sources";
10
11
  export * from "./rate-cards";
@@ -0,0 +1,3 @@
1
+ export * from "./use-create-invoice-address";
2
+ export * from "./use-update-invoice-address";
3
+ export * from "./use-get-invoice-address";
@@ -0,0 +1,7 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ import { MutationProps } from "../../utilities";
3
+ /**
4
+ * @internal
5
+ * @category ShipEngine API Hooks
6
+ */
7
+ export declare const useCreateInvoiceAddress: (params?: MutationProps<SE.InvoiceAddress, SE.InvoiceAddress>) => import("@tanstack/react-query").UseMutationResult<SE.InvoiceAddress, SE.CodedError[], SE.InvoiceAddress, unknown>;
@@ -0,0 +1,7 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ import { QueryProps } from "../../utilities";
3
+ /**
4
+ * @internal
5
+ * @category ShipEngine API Hooks
6
+ */
7
+ export declare const useGetInvoiceAddress: (params?: QueryProps<SE.InvoiceAddress>) => import("@tanstack/react-query").UseQueryResult<SE.InvoiceAddress, SE.CodedError[]>;
@@ -0,0 +1,7 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ import { MutationProps } from "../../utilities";
3
+ /**
4
+ * @internal
5
+ * @category ShipEngine API Hooks
6
+ */
7
+ export declare const useUpdateInvoiceAddress: (params?: MutationProps<SE.InvoiceAddress, SE.InvoiceAddress>) => import("@tanstack/react-query").UseMutationResult<SE.InvoiceAddress, SE.CodedError[], SE.InvoiceAddress, unknown>;
@@ -1,3 +1,4 @@
1
1
  export * from "./use-get-sales-order";
2
+ export * from "./use-get-sales-order-by-external-order-id";
2
3
  export * from "./use-list-sales-orders";
3
4
  export * from "./use-notify-sales-order";
@@ -0,0 +1,8 @@
1
+ import { SalesOrder } from "@shipengine/js-api";
2
+ import { QueryProps } from "../../utilities";
3
+ /**
4
+ * @category ShipEngine API Hooks
5
+ *
6
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-orders/)
7
+ */
8
+ export declare const useGetSalesOrderByExternalOrderId: (externalOrderId?: string, config?: QueryProps<SalesOrder>) => import("@tanstack/react-query").UseQueryResult<SalesOrder, import("@shipengine/js-api").CodedError[]>;
@@ -1,6 +1,8 @@
1
+ import { SalesOrder } from "@shipengine/js-api";
2
+ import { QueryProps } from "../../utilities";
1
3
  /**
2
4
  * @category ShipEngine API Hooks
3
5
  *
4
6
  * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-orders/)
5
7
  */
6
- export declare const useGetSalesOrder: (salesOrderId?: string) => import("@tanstack/react-query").UseQueryResult<import("@shipengine/js-api").SalesOrder, import("@shipengine/js-api").CodedError[]>;
8
+ export declare const useGetSalesOrder: (salesOrderId?: string, config?: QueryProps<SalesOrder>) => import("@tanstack/react-query").UseQueryResult<SalesOrder, import("@shipengine/js-api").CodedError[]>;
@@ -2,3 +2,4 @@ export * from "./use-create-sales-order-shipment";
2
2
  export * from "./use-get-sales-order-shipment";
3
3
  export * from "./use-list-sales-order-shipments";
4
4
  export * from "./use-update-sales-order-shipment";
5
+ export * from "./use-list-sales-order-shipments-by-external-order-id";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ */
4
+ export declare const useListSalesOrderShipmentsByExternalOrderId: (externalOrderId: string) => import("@tanstack/react-query").UseQueryResult<import("@shipengine/js-api").SalesOrderShipment[], import("@shipengine/js-api").CodedError[]>;
@@ -1,5 +1,5 @@
1
- import { ListSalesOrderShipmentsParams } from "@shipengine/js-api";
1
+ import { ListSalesOrderShipmentBody } from "@shipengine/js-api";
2
2
  /**
3
3
  * @category ShipEngine API Hooks
4
4
  */
5
- export declare const useListSalesOrderShipments: (params?: ListSalesOrderShipmentsParams) => import("@tanstack/react-query").UseQueryResult<import("@shipengine/js-api").SalesOrderShipment[], import("@shipengine/js-api").CodedError[]>;
5
+ export declare const useListSalesOrderShipments: (body: ListSalesOrderShipmentBody) => import("@tanstack/react-query").UseQueryResult<import("@shipengine/js-api").SalesOrderShipment[], import("@shipengine/js-api").CodedError[]>;