@shipengine/react-api 3.8.3 → 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.
- package/hooks/index.d.ts +1 -0
- package/hooks/invoice-address/index.d.ts +3 -0
- package/hooks/invoice-address/use-create-invoice-address.d.ts +7 -0
- package/hooks/invoice-address/use-get-invoice-address.d.ts +7 -0
- package/hooks/invoice-address/use-update-invoice-address.d.ts +7 -0
- package/hooks/sales-orders/index.d.ts +1 -0
- package/hooks/sales-orders/use-get-sales-order-by-external-order-id.d.ts +8 -0
- package/hooks/sales-orders/use-get-sales-order.d.ts +3 -1
- package/hooks/sales-orders-shipment/index.d.ts +1 -0
- package/hooks/sales-orders-shipment/use-list-sales-order-shipments-by-external-order-id.d.ts +4 -0
- package/hooks/sales-orders-shipment/use-list-sales-order-shipments.d.ts +2 -2
- package/index.js +325 -158
- package/index.mjs +321 -159
- package/package.json +1 -1
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,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>;
|
|
@@ -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<
|
|
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 {
|
|
1
|
+
import { ListSalesOrderShipmentBody } from "@shipengine/js-api";
|
|
2
2
|
/**
|
|
3
3
|
* @category ShipEngine API Hooks
|
|
4
4
|
*/
|
|
5
|
-
export declare const useListSalesOrderShipments: (
|
|
5
|
+
export declare const useListSalesOrderShipments: (body: ListSalesOrderShipmentBody) => import("@tanstack/react-query").UseQueryResult<import("@shipengine/js-api").SalesOrderShipment[], import("@shipengine/js-api").CodedError[]>;
|