@shipengine/react-api 1.0.0 → 1.1.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./use-get-account-billing-plan";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useGetAccountBillingPlan: () => import("@tanstack/react-query").UseQueryResult<import("packages/shipengine-api/javascript/src/account-billing-plan").AccountBillingPlanResponse, import("@shipengine/js-api").CodedError[]>;
|
package/hooks/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1489,6 +1489,16 @@ const useUpdateWarehouse = () => {
|
|
|
1489
1489
|
});
|
|
1490
1490
|
};
|
|
1491
1491
|
|
|
1492
|
+
const useGetAccountBillingPlan = () => {
|
|
1493
|
+
const { client } = useShipEngine();
|
|
1494
|
+
return reactQuery.useQuery({
|
|
1495
|
+
onError,
|
|
1496
|
+
queryFn: () => client.accountBillingPlan.get(),
|
|
1497
|
+
queryKey: ["useGetAccountBillingPlan"],
|
|
1498
|
+
select: (result) => result.data
|
|
1499
|
+
});
|
|
1500
|
+
};
|
|
1501
|
+
|
|
1492
1502
|
exports.ShipEngine = ShipEngine;
|
|
1493
1503
|
exports.ShipEngineContext = ShipEngineContext;
|
|
1494
1504
|
exports.delay = delay;
|
|
@@ -1508,6 +1518,7 @@ exports.useDeleteRateCard = useDeleteRateCard;
|
|
|
1508
1518
|
exports.useDeleteWarehouse = useDeleteWarehouse;
|
|
1509
1519
|
exports.useDownloadRateCard = useDownloadRateCard;
|
|
1510
1520
|
exports.useFundingSourcesAddFunds = useFundingSourcesAddFunds;
|
|
1521
|
+
exports.useGetAccountBillingPlan = useGetAccountBillingPlan;
|
|
1511
1522
|
exports.useGetAccountSettings = useGetAccountSettings;
|
|
1512
1523
|
exports.useGetAutoFundingConfiguration = useGetAutoFundingConfiguration;
|
|
1513
1524
|
exports.useGetCarrierById = useGetCarrierById;
|
package/index.mjs
CHANGED
|
@@ -1486,4 +1486,14 @@ const useUpdateWarehouse = () => {
|
|
|
1486
1486
|
});
|
|
1487
1487
|
};
|
|
1488
1488
|
|
|
1489
|
-
|
|
1489
|
+
const useGetAccountBillingPlan = () => {
|
|
1490
|
+
const { client } = useShipEngine();
|
|
1491
|
+
return useQuery({
|
|
1492
|
+
onError,
|
|
1493
|
+
queryFn: () => client.accountBillingPlan.get(),
|
|
1494
|
+
queryKey: ["useGetAccountBillingPlan"],
|
|
1495
|
+
select: (result) => result.data
|
|
1496
|
+
});
|
|
1497
|
+
};
|
|
1498
|
+
|
|
1499
|
+
export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useCalculateRates, useConnectCarrier, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateShipment, useCreateWarehouse, useDeleteRateCard, useDeleteWarehouse, useDownloadRateCard, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetInsuranceAccount, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicesByCarrier, useGetShipment, useGetShipmentRates, useGetWalletHistory, useGetZonesByCarrier, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListShipments, useListWarehouses, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUploadRateCard, useValidateAddresses, useVoidLabel };
|