@shipengine/react-api 3.15.1 → 4.0.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,4 +1,5 @@
1
- export * from "./use-create-label";
1
+ export * from "./use-create-label-by-rate-id";
2
+ export * from "./use-create-label-by-shipment-id";
2
3
  export * from "./use-get-label";
3
4
  export * from "./use-list-labels";
4
5
  export * from "./use-void-label";
@@ -0,0 +1,12 @@
1
+ import { CreateLabelOptions, Label } from "@shipengine/js-api";
2
+ import { MutationProps } from "../../utilities";
3
+ export type CreateLabelByRateIdData = {
4
+ rateId: string;
5
+ } & CreateLabelOptions;
6
+ /**
7
+ * @category ShipEngine API Hooks
8
+ *
9
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/labels/create-from-rate/)
10
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/create_label_from_rate)
11
+ */
12
+ export declare const useCreateLabelByRateId: (params?: MutationProps<CreateLabelByRateIdData, Label>) => import("@tanstack/react-query").UseMutationResult<Label, import("@shipengine/js-api").CodedError[], CreateLabelByRateIdData, unknown>;
@@ -0,0 +1,12 @@
1
+ import { CreateLabelOptions, Label } from "@shipengine/js-api";
2
+ import { MutationProps } from "../../utilities";
3
+ export type CreateLabelByShipmentIdData = {
4
+ shipmentId: string;
5
+ } & CreateLabelOptions;
6
+ /**
7
+ * @category ShipEngine API Hooks
8
+ *
9
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/labels/create-from-shipment/)
10
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/create_label_from_shipment)
11
+ */
12
+ export declare const useCreateLabelByShipmentId: (params?: MutationProps<CreateLabelByShipmentIdData, Label>) => import("@tanstack/react-query").UseMutationResult<Label, import("@shipengine/js-api").CodedError[], CreateLabelByShipmentIdData, unknown>;