@shipengine/react-api 2.15.2 → 3.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.
- package/hooks/carriers/use-list-carriers.d.ts +3 -1
- package/hooks/shipping-rules/use-create-shipping-rule.d.ts +4 -2
- package/hooks/shipping-rules/use-delete-shipping-rule.d.ts +4 -1
- package/hooks/shipping-rules/use-edit-shipping-rule.d.ts +4 -2
- package/hooks/shipping-rules/use-get-shipping-rule-by-id.d.ts +5 -1
- package/hooks/shipping-rules/use-get-shipping-rule-conditions-options.d.ts +3 -1
- package/hooks/shipping-rules/use-list-shipping-rules.d.ts +2 -2
- package/hooks/warehouses/use-list-warehouses.d.ts +3 -4
- package/index.js +391 -251
- package/index.mjs +391 -251
- package/package.json +1 -1
- package/providers/shipengine.d.ts +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Carrier, SandboxableQuery } 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-carriers)
|
|
5
7
|
* @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/list_carriers)
|
|
6
8
|
*/
|
|
7
|
-
export declare const useListCarriers: () => import("@tanstack/react-query").UseQueryResult<
|
|
9
|
+
export declare const useListCarriers: (params?: QueryProps<Carrier[], SandboxableQuery>) => import("@tanstack/react-query").UseQueryResult<Carrier[], import("@shipengine/js-api").CodedError[]>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { ShippingRuleCreateInput } from "@shipengine/js-api";
|
|
1
|
+
import { SandboxableMutation, ShippingRuleCreateInput } from "@shipengine/js-api";
|
|
2
2
|
/**
|
|
3
3
|
* @category ShipEngine API Hooks
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
|
-
export declare const useCreateShippingRule: () => import("@tanstack/react-query").UseMutationResult<import("@shipengine/js-api").ShippingRule, import("@shipengine/js-api").CodedError[],
|
|
6
|
+
export declare const useCreateShippingRule: () => import("@tanstack/react-query").UseMutationResult<import("@shipengine/js-api").ShippingRule, import("@shipengine/js-api").CodedError[], SandboxableMutation<{
|
|
7
|
+
shippingRule: ShippingRuleCreateInput;
|
|
8
|
+
}>, unknown>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { SandboxableMutation } from "@shipengine/js-api";
|
|
1
2
|
/**
|
|
2
3
|
* @category ShipEngine API Hooks
|
|
3
4
|
*
|
|
4
5
|
*/
|
|
5
|
-
export declare const useDeleteShippingRule: () => import("@tanstack/react-query").UseMutationResult<any, import("@shipengine/js-api").CodedError[],
|
|
6
|
+
export declare const useDeleteShippingRule: () => import("@tanstack/react-query").UseMutationResult<any, import("@shipengine/js-api").CodedError[], SandboxableMutation<{
|
|
7
|
+
shippingRuleId: string;
|
|
8
|
+
}>, unknown>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { ShippingRuleEditInput } from "@shipengine/js-api";
|
|
1
|
+
import { SandboxableMutation, ShippingRuleEditInput } from "@shipengine/js-api";
|
|
2
2
|
/**
|
|
3
3
|
* @category ShipEngine API Hooks
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
|
-
export declare const useEditShippingRule: () => import("@tanstack/react-query").UseMutationResult<import("@shipengine/js-api").ShippingRule, import("@shipengine/js-api").CodedError[],
|
|
6
|
+
export declare const useEditShippingRule: () => import("@tanstack/react-query").UseMutationResult<import("@shipengine/js-api").ShippingRule, import("@shipengine/js-api").CodedError[], SandboxableMutation<{
|
|
7
|
+
shippingRule: ShippingRuleEditInput;
|
|
8
|
+
}>, unknown>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { SandboxableQuery, ShippingRule } from "@shipengine/js-api";
|
|
2
|
+
import { QueryProps } from "../../utilities";
|
|
1
3
|
/**
|
|
2
4
|
* @category ShipEngine API Hooks
|
|
3
5
|
*
|
|
4
6
|
*/
|
|
5
|
-
export declare const useGetShippingRuleById: (
|
|
7
|
+
export declare const useGetShippingRuleById: (params: QueryProps<ShippingRule, SandboxableQuery<{
|
|
8
|
+
shippingRuleId: string;
|
|
9
|
+
}>>) => import("@tanstack/react-query").UseQueryResult<ShippingRule, import("@shipengine/js-api").CodedError[]>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { RuleConditionsOptions, SandboxableQuery } from "@shipengine/js-api";
|
|
2
|
+
import { QueryProps } from "../../utilities";
|
|
1
3
|
/**
|
|
2
4
|
* @category ShipEngine API Hooks
|
|
3
5
|
*
|
|
4
6
|
*/
|
|
5
|
-
export declare const useGetShippingRuleConditionsOptions: () => import("@tanstack/react-query").UseQueryResult<
|
|
7
|
+
export declare const useGetShippingRuleConditionsOptions: (params?: QueryProps<RuleConditionsOptions[], SandboxableQuery>) => import("@tanstack/react-query").UseQueryResult<RuleConditionsOptions[], import("@shipengine/js-api").CodedError[]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ShippingRule } from "@shipengine/js-api";
|
|
1
|
+
import { SandboxableQuery, ShippingRule } from "@shipengine/js-api";
|
|
2
2
|
import { QueryProps } from "../../utilities";
|
|
3
3
|
/**
|
|
4
4
|
* @category ShipEngine API Hooks
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
-
export declare const useListShippingRules: (params?: QueryProps<ShippingRule[]>) => import("@tanstack/react-query").UseQueryResult<ShippingRule[], import("@shipengine/js-api").CodedError[]>;
|
|
7
|
+
export declare const useListShippingRules: (params?: QueryProps<ShippingRule[], SandboxableQuery>) => import("@tanstack/react-query").UseQueryResult<ShippingRule[], import("@shipengine/js-api").CodedError[]>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
1
|
+
import { SandboxableQuery, Warehouse } from "@shipengine/js-api";
|
|
2
|
+
import { QueryProps } from "../../utilities";
|
|
4
3
|
/**
|
|
5
4
|
* @category ShipEngine API Hooks
|
|
6
5
|
*
|
|
7
6
|
* @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-warehouses/)
|
|
8
7
|
* @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/list_warehouses)
|
|
9
8
|
*/
|
|
10
|
-
export declare const useListWarehouses: (
|
|
9
|
+
export declare const useListWarehouses: (params?: QueryProps<Warehouse[], SandboxableQuery>) => import("@tanstack/react-query").UseQueryResult<Warehouse[], import("@shipengine/js-api").CodedError[]>;
|