@shipengine/react-api 3.1.0 → 3.1.1
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/labels/use-list-labels.d.ts +2 -2
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ListLabelsParams, ListLabelsResult } from "@shipengine/js-api";
|
|
2
|
-
import {
|
|
2
|
+
import { QueryProps } from "../../utilities";
|
|
3
3
|
/**
|
|
4
4
|
* @category ShipEngine API Hooks
|
|
5
5
|
*
|
|
6
6
|
* @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-labels/)
|
|
7
7
|
* @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/list_labels)
|
|
8
8
|
*/
|
|
9
|
-
export declare const useListLabels: (params
|
|
9
|
+
export declare const useListLabels: (params?: QueryProps<ListLabelsResult, ListLabelsParams>) => import("@tanstack/react-query").UseQueryResult<ListLabelsResult, import("@shipengine/js-api").CodedError[]>;
|
package/index.js
CHANGED
|
@@ -1210,7 +1210,7 @@ var __objRest$c = (source, exclude) => {
|
|
|
1210
1210
|
};
|
|
1211
1211
|
const useListLabels = (params) => {
|
|
1212
1212
|
const { client } = useShipEngine();
|
|
1213
|
-
const _a = params, { queryFnParams } = _a, rest = __objRest$c(_a, ["queryFnParams"]);
|
|
1213
|
+
const _a = __spreadValues$c({}, params), { queryFnParams } = _a, rest = __objRest$c(_a, ["queryFnParams"]);
|
|
1214
1214
|
return reactQuery.useQuery(__spreadProps$c(__spreadValues$c({}, rest), {
|
|
1215
1215
|
onError,
|
|
1216
1216
|
queryFn: () => client.labels.list(queryFnParams),
|
package/index.mjs
CHANGED
|
@@ -1207,7 +1207,7 @@ var __objRest$c = (source, exclude) => {
|
|
|
1207
1207
|
};
|
|
1208
1208
|
const useListLabels = (params) => {
|
|
1209
1209
|
const { client } = useShipEngine();
|
|
1210
|
-
const _a = params, { queryFnParams } = _a, rest = __objRest$c(_a, ["queryFnParams"]);
|
|
1210
|
+
const _a = __spreadValues$c({}, params), { queryFnParams } = _a, rest = __objRest$c(_a, ["queryFnParams"]);
|
|
1211
1211
|
return useQuery(__spreadProps$c(__spreadValues$c({}, rest), {
|
|
1212
1212
|
onError,
|
|
1213
1213
|
queryFn: () => client.labels.list(queryFnParams),
|