@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.
@@ -1,9 +1,9 @@
1
1
  import { ListLabelsParams, ListLabelsResult } from "@shipengine/js-api";
2
- import { QueryPropsRequiredParams } from "../../utilities";
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: QueryPropsRequiredParams<ListLabelsResult, ListLabelsParams>) => import("@tanstack/react-query").UseQueryResult<ListLabelsResult, import("@shipengine/js-api").CodedError[]>;
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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/react-api",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {