@shipengine/react-api 4.2.1 → 4.3.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.
@@ -5,4 +5,4 @@ export * from "./use-get-label";
5
5
  export * from "./use-list-labels";
6
6
  export * from "./use-void-label";
7
7
  export * from "./use-list-labels-infinite";
8
- export * from "./use-download-labels";
8
+ export * from "./use-export-labels";
@@ -0,0 +1,7 @@
1
+ import { ExportLabelsParams } from "@shipengine/js-api";
2
+ import { QueryProps } from "../../utilities";
3
+ /**
4
+ * @category ShipEngine API Hooks
5
+ *
6
+ */
7
+ export declare const useExportLabels: (params?: QueryProps<Blob, ExportLabelsParams>) => import("@tanstack/react-query").UseQueryResult<import("axios").AxiosResponse<Blob, any>, import("@shipengine/js-api").CodedError[]>;
@@ -4,4 +4,4 @@ export * from "./use-get-shipment";
4
4
  export * from "./use-list-shipments";
5
5
  export * from "./use-get-shipment-by-external-id";
6
6
  export * from "./use-cancel-shipment";
7
- export * from "./use-download-shipments";
7
+ export * from "./use-export-shipments";
@@ -0,0 +1,7 @@
1
+ import { ExportShipmentsParams } from "@shipengine/js-api";
2
+ import { QueryProps } from "../../utilities";
3
+ /**
4
+ * @category ShipEngine API Hooks
5
+ *
6
+ */
7
+ export declare const useExportShipments: (params?: QueryProps<Blob, ExportShipmentsParams>) => import("@tanstack/react-query").UseQueryResult<import("axios").AxiosResponse<Blob, any>, import("@shipengine/js-api").CodedError[]>;
package/index.js CHANGED
@@ -1739,13 +1739,13 @@ var __objRest$e = (source, exclude) => {
1739
1739
  }
1740
1740
  return target;
1741
1741
  };
1742
- const useDownloadLabels = (params) => {
1742
+ const useExportLabels = (params) => {
1743
1743
  const { client } = useShipEngine();
1744
1744
  const _a = __spreadValues$i({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
1745
1745
  return reactQuery.useQuery(__spreadProps$h(__spreadValues$i({}, rest), {
1746
1746
  onError,
1747
- queryFn: () => client.labels.download(queryFnParams),
1748
- queryKey: ["useDownloadLabels", params]
1747
+ queryFn: () => client.labels.export(queryFnParams),
1748
+ queryKey: ["useExportLabels", params]
1749
1749
  }));
1750
1750
  };
1751
1751
 
@@ -2698,13 +2698,13 @@ var __objRest$6 = (source, exclude) => {
2698
2698
  }
2699
2699
  return target;
2700
2700
  };
2701
- const useDownloadShipments = (params) => {
2701
+ const useExportShipments = (params) => {
2702
2702
  const { client } = useShipEngine();
2703
2703
  const _a = __spreadValues$c({}, params), { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
2704
2704
  return reactQuery.useQuery(__spreadProps$b(__spreadValues$c({}, rest), {
2705
2705
  onError,
2706
- queryFn: () => client.shipments.download(queryFnParams),
2707
- queryKey: ["useDownloadShipments", params]
2706
+ queryFn: () => client.shipments.export(queryFnParams),
2707
+ queryKey: ["useExportShipments", params]
2708
2708
  }));
2709
2709
  };
2710
2710
 
@@ -3735,10 +3735,10 @@ exports.useDeleteSellerApiKey = useDeleteSellerApiKey;
3735
3735
  exports.useDeleteShippingRule = useDeleteShippingRule;
3736
3736
  exports.useDeleteWarehouse = useDeleteWarehouse;
3737
3737
  exports.useDeleteWebhook = useDeleteWebhook;
3738
- exports.useDownloadLabels = useDownloadLabels;
3739
3738
  exports.useDownloadRateCard = useDownloadRateCard;
3740
- exports.useDownloadShipments = useDownloadShipments;
3741
3739
  exports.useEditShippingRule = useEditShippingRule;
3740
+ exports.useExportLabels = useExportLabels;
3741
+ exports.useExportShipments = useExportShipments;
3742
3742
  exports.useFundingSourcesAddFunds = useFundingSourcesAddFunds;
3743
3743
  exports.useGetAccountBilling = useGetAccountBilling;
3744
3744
  exports.useGetAccountBillingPlan = useGetAccountBillingPlan;
package/index.mjs CHANGED
@@ -1736,13 +1736,13 @@ var __objRest$e = (source, exclude) => {
1736
1736
  }
1737
1737
  return target;
1738
1738
  };
1739
- const useDownloadLabels = (params) => {
1739
+ const useExportLabels = (params) => {
1740
1740
  const { client } = useShipEngine();
1741
1741
  const _a = __spreadValues$i({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
1742
1742
  return useQuery(__spreadProps$h(__spreadValues$i({}, rest), {
1743
1743
  onError,
1744
- queryFn: () => client.labels.download(queryFnParams),
1745
- queryKey: ["useDownloadLabels", params]
1744
+ queryFn: () => client.labels.export(queryFnParams),
1745
+ queryKey: ["useExportLabels", params]
1746
1746
  }));
1747
1747
  };
1748
1748
 
@@ -2695,13 +2695,13 @@ var __objRest$6 = (source, exclude) => {
2695
2695
  }
2696
2696
  return target;
2697
2697
  };
2698
- const useDownloadShipments = (params) => {
2698
+ const useExportShipments = (params) => {
2699
2699
  const { client } = useShipEngine();
2700
2700
  const _a = __spreadValues$c({}, params), { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
2701
2701
  return useQuery(__spreadProps$b(__spreadValues$c({}, rest), {
2702
2702
  onError,
2703
- queryFn: () => client.shipments.download(queryFnParams),
2704
- queryKey: ["useDownloadShipments", params]
2703
+ queryFn: () => client.shipments.export(queryFnParams),
2704
+ queryKey: ["useExportShipments", params]
2705
2705
  }));
2706
2706
  };
2707
2707
 
@@ -3695,4 +3695,4 @@ const useUpdateWebhook = (params) => {
3695
3695
  }));
3696
3696
  };
3697
3697
 
3698
- export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadLabels, useDownloadRateCard, useDownloadShipments, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
3698
+ export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/react-api",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -1,7 +0,0 @@
1
- import { DownloadLabelsParams } from "@shipengine/js-api";
2
- import { QueryProps } from "../../utilities";
3
- /**
4
- * @category ShipEngine API Hooks
5
- *
6
- */
7
- export declare const useDownloadLabels: (params?: QueryProps<Blob, DownloadLabelsParams>) => import("@tanstack/react-query").UseQueryResult<import("axios").AxiosResponse<Blob, any>, import("@shipengine/js-api").CodedError[]>;
@@ -1,7 +0,0 @@
1
- import { DownloadShipmentsParams } from "@shipengine/js-api";
2
- import { QueryProps } from "../../utilities";
3
- /**
4
- * @category ShipEngine API Hooks
5
- *
6
- */
7
- export declare const useDownloadShipments: (params?: QueryProps<Blob, DownloadShipmentsParams>) => import("@tanstack/react-query").UseQueryResult<import("axios").AxiosResponse<Blob, any>, import("@shipengine/js-api").CodedError[]>;