@shipengine/react-api 3.13.0 → 3.13.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 +1 @@
1
- export * from "./use-create-session";
1
+ export * from "./use-create-auctane-pay-session";
@@ -0,0 +1,6 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ import { MutationProps } from "../../utilities";
3
+ /**
4
+ * @category ShipEngine API Hooks
5
+ */
6
+ export declare const useCreateAuctanePaySession: (params?: MutationProps<SE.CreateSessionRequest, SE.CreateSessionResponse>) => import("@tanstack/react-query").UseMutationResult<SE.CreateSessionResponse, SE.CodedError[], SE.CreateSessionRequest, unknown>;
package/index.js CHANGED
@@ -382,14 +382,14 @@ var __async$K = (__this, __arguments, generator) => {
382
382
  step((generator = generator.apply(__this, __arguments)).next());
383
383
  });
384
384
  };
385
- const useCreateSession = (params) => {
385
+ const useCreateAuctanePaySession = (params) => {
386
386
  const { client } = useShipEngine();
387
387
  return reactQuery.useMutation(__spreadProps$n(__spreadValues$o({}, params), {
388
388
  mutationFn: (request) => __async$K(void 0, null, function* () {
389
389
  const result = yield client.auctanePay.createSession(request);
390
390
  return result.data;
391
391
  }),
392
- mutationKey: ["useCreateSession"],
392
+ mutationKey: ["useCreateAuctanePaySession"],
393
393
  onError
394
394
  }));
395
395
  };
@@ -3375,6 +3375,7 @@ exports.useCarrierConnectionsServicesList = useCarrierConnectionsServicesList;
3375
3375
  exports.useConnectCarrier = useConnectCarrier;
3376
3376
  exports.useConnectCarrierAccount = useConnectCarrierAccount;
3377
3377
  exports.useCreateAccountImage = useCreateAccountImage;
3378
+ exports.useCreateAuctanePaySession = useCreateAuctanePaySession;
3378
3379
  exports.useCreateFundingSource = useCreateFundingSource;
3379
3380
  exports.useCreateInvoiceAddress = useCreateInvoiceAddress;
3380
3381
  exports.useCreateLabel = useCreateLabel;
@@ -3382,7 +3383,6 @@ exports.useCreateRateCard = useCreateRateCard;
3382
3383
  exports.useCreateSalesOrderShipment = useCreateSalesOrderShipment;
3383
3384
  exports.useCreateSandboxSeller = useCreateSandboxSeller;
3384
3385
  exports.useCreateSellerApiKey = useCreateSellerApiKey;
3385
- exports.useCreateSession = useCreateSession;
3386
3386
  exports.useCreateShipment = useCreateShipment;
3387
3387
  exports.useCreateShippingRule = useCreateShippingRule;
3388
3388
  exports.useCreateWarehouse = useCreateWarehouse;
package/index.mjs CHANGED
@@ -379,14 +379,14 @@ var __async$K = (__this, __arguments, generator) => {
379
379
  step((generator = generator.apply(__this, __arguments)).next());
380
380
  });
381
381
  };
382
- const useCreateSession = (params) => {
382
+ const useCreateAuctanePaySession = (params) => {
383
383
  const { client } = useShipEngine();
384
384
  return useMutation(__spreadProps$n(__spreadValues$o({}, params), {
385
385
  mutationFn: (request) => __async$K(void 0, null, function* () {
386
386
  const result = yield client.auctanePay.createSession(request);
387
387
  return result.data;
388
388
  }),
389
- mutationKey: ["useCreateSession"],
389
+ mutationKey: ["useCreateAuctanePaySession"],
390
390
  onError
391
391
  }));
392
392
  };
@@ -3357,4 +3357,4 @@ const useUpdateWebhook = (params) => {
3357
3357
  }));
3358
3358
  };
3359
3359
 
3360
- export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateSession, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, 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, useValidateAddresses, useVoidLabel };
3360
+ export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, 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, useValidateAddresses, useVoidLabel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/react-api",
3
- "version": "3.13.0",
3
+ "version": "3.13.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -1,19 +0,0 @@
1
- import { SE } from "@shipengine/js-api";
2
- import { MutationProps } from "../../utilities";
3
- /**
4
- * @category ShipEngine API Hooks
5
- */
6
- export declare const useCreateSession: (params?: MutationProps<SE.CreateSessionRequest, SE.CreateSessionResponse>) => import("@tanstack/react-query").UseMutationResult<SE.CreateSessionResponse, SE.CodedError[], SE.CreateSessionRequest, unknown>;
7
- /**
8
- * @example of implementation
9
- * ```tsx
10
- * const { mutate, data, isLoading, error } = useCreateSession();
11
- *
12
- * const handleCreateSession = () => {
13
- * mutate({
14
- * returnUrl: "https://example.com/return",
15
- * transactionCategory: "add_funds"
16
- * });
17
- * };
18
- * ```
19
- * */