@shipengine/alchemy 6.0.44 → 6.0.46

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.
Files changed (3) hide show
  1. package/index.js +18 -15
  2. package/index.mjs +17 -14
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -16277,7 +16277,7 @@ class FundingSourcesAPI {
16277
16277
  * user to update the billing address or payment information associated with the
16278
16278
  * funding source.
16279
16279
  */
16280
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$Z(this, null, function* () {
16280
+ this.update = (billingInfo, creditCardInfo, bankAccountInfo, auctanePayInfo, fundingSourceId) => __async$Z(this, null, function* () {
16281
16281
  const endUserIpAddress = yield getEndUserIpAddress();
16282
16282
  if (!endUserIpAddress) {
16283
16283
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16288,6 +16288,7 @@ class FundingSourcesAPI {
16288
16288
  billingInfo,
16289
16289
  endUserIpAddress,
16290
16290
  paymentMethod: __spreadValues$D({
16291
+ bankAccountInfo,
16291
16292
  creditCardInfo
16292
16293
  }, auctanePayInfo)
16293
16294
  }
@@ -16456,10 +16457,10 @@ class LabelsAPI {
16456
16457
  return this.client.put(`/v1/labels/${labelId}/void`);
16457
16458
  };
16458
16459
  /**
16459
- * The `download` method allows for downloading a CSV document of labels based on the provided parameters.
16460
+ * The `export` method allows to export a CSV document of labels based on the provided parameters.
16460
16461
  */
16461
- this.download = (params) => {
16462
- return this.client.get("/v1/labels/downloads", {
16462
+ this.export = (params) => {
16463
+ return this.client.get("/v1/labels/export", {
16463
16464
  headers: {
16464
16465
  Accept: "text/csv"
16465
16466
  },
@@ -16928,10 +16929,10 @@ class ShipmentsAPI {
16928
16929
  return this.client.put(`/v1/shipments/${shipmentId}/cancel`);
16929
16930
  };
16930
16931
  /**
16931
- * The `download` method allows for downloading a CSV document of shipments based on the provided parameters.
16932
+ * The `export` method allows to export a CSV document of shipments based on the provided parameters.
16932
16933
  */
16933
- this.download = (params) => {
16934
- return this.client.get("/v1/shipments/downloads", {
16934
+ this.export = (params) => {
16935
+ return this.client.get("/v1/shipments/export", {
16935
16936
  headers: {
16936
16937
  Accept: "text/csv"
16937
16938
  },
@@ -35793,12 +35794,14 @@ const useUpdateFundingSource = () => {
35793
35794
  mutationFn: (_0) => __async$E(void 0, [_0], function* ({
35794
35795
  billingInfo,
35795
35796
  creditCardInfo,
35797
+ bankAccountInfo,
35796
35798
  fundingSourceId,
35797
35799
  auctanePayInfo
35798
35800
  }) {
35799
35801
  const result = yield client.fundingSources.update(
35800
35802
  billingInfo,
35801
35803
  creditCardInfo,
35804
+ bankAccountInfo,
35802
35805
  auctanePayInfo,
35803
35806
  fundingSourceId
35804
35807
  );
@@ -36444,13 +36447,13 @@ var __objRest$f = (source, exclude) => {
36444
36447
  }
36445
36448
  return target;
36446
36449
  };
36447
- const useDownloadLabels = (params) => {
36450
+ const useExportLabels = (params) => {
36448
36451
  const { client } = useShipEngine();
36449
36452
  const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
36450
36453
  return reactQuery.useQuery(__spreadProps$h(__spreadValues$k({}, rest), {
36451
36454
  onError,
36452
- queryFn: () => client.labels.download(queryFnParams),
36453
- queryKey: ["useDownloadLabels", params]
36455
+ queryFn: () => client.labels.export(queryFnParams),
36456
+ queryKey: ["useExportLabels", params]
36454
36457
  }));
36455
36458
  };
36456
36459
 
@@ -37403,13 +37406,13 @@ var __objRest$7 = (source, exclude) => {
37403
37406
  }
37404
37407
  return target;
37405
37408
  };
37406
- const useDownloadShipments = (params) => {
37409
+ const useExportShipments = (params) => {
37407
37410
  const { client } = useShipEngine();
37408
37411
  const _a = __spreadValues$e({}, params), { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
37409
37412
  return reactQuery.useQuery(__spreadProps$b(__spreadValues$e({}, rest), {
37410
37413
  onError,
37411
- queryFn: () => client.shipments.download(queryFnParams),
37412
- queryKey: ["useDownloadShipments", params]
37414
+ queryFn: () => client.shipments.export(queryFnParams),
37415
+ queryKey: ["useExportShipments", params]
37413
37416
  }));
37414
37417
  };
37415
37418
 
@@ -39626,10 +39629,10 @@ exports.useDeleteSellerApiKey = useDeleteSellerApiKey;
39626
39629
  exports.useDeleteShippingRule = useDeleteShippingRule;
39627
39630
  exports.useDeleteWarehouse = useDeleteWarehouse;
39628
39631
  exports.useDeleteWebhook = useDeleteWebhook;
39629
- exports.useDownloadLabels = useDownloadLabels;
39630
39632
  exports.useDownloadRateCard = useDownloadRateCard;
39631
- exports.useDownloadShipments = useDownloadShipments;
39632
39633
  exports.useEditShippingRule = useEditShippingRule;
39634
+ exports.useExportLabels = useExportLabels;
39635
+ exports.useExportShipments = useExportShipments;
39633
39636
  exports.useFundingSourcesAddFunds = useFundingSourcesAddFunds;
39634
39637
  exports.useGetAccountBilling = useGetAccountBilling;
39635
39638
  exports.useGetAccountBillingPlan = useGetAccountBillingPlan;
package/index.mjs CHANGED
@@ -16255,7 +16255,7 @@ class FundingSourcesAPI {
16255
16255
  * user to update the billing address or payment information associated with the
16256
16256
  * funding source.
16257
16257
  */
16258
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$Z(this, null, function* () {
16258
+ this.update = (billingInfo, creditCardInfo, bankAccountInfo, auctanePayInfo, fundingSourceId) => __async$Z(this, null, function* () {
16259
16259
  const endUserIpAddress = yield getEndUserIpAddress();
16260
16260
  if (!endUserIpAddress) {
16261
16261
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16266,6 +16266,7 @@ class FundingSourcesAPI {
16266
16266
  billingInfo,
16267
16267
  endUserIpAddress,
16268
16268
  paymentMethod: __spreadValues$D({
16269
+ bankAccountInfo,
16269
16270
  creditCardInfo
16270
16271
  }, auctanePayInfo)
16271
16272
  }
@@ -16434,10 +16435,10 @@ class LabelsAPI {
16434
16435
  return this.client.put(`/v1/labels/${labelId}/void`);
16435
16436
  };
16436
16437
  /**
16437
- * The `download` method allows for downloading a CSV document of labels based on the provided parameters.
16438
+ * The `export` method allows to export a CSV document of labels based on the provided parameters.
16438
16439
  */
16439
- this.download = (params) => {
16440
- return this.client.get("/v1/labels/downloads", {
16440
+ this.export = (params) => {
16441
+ return this.client.get("/v1/labels/export", {
16441
16442
  headers: {
16442
16443
  Accept: "text/csv"
16443
16444
  },
@@ -16906,10 +16907,10 @@ class ShipmentsAPI {
16906
16907
  return this.client.put(`/v1/shipments/${shipmentId}/cancel`);
16907
16908
  };
16908
16909
  /**
16909
- * The `download` method allows for downloading a CSV document of shipments based on the provided parameters.
16910
+ * The `export` method allows to export a CSV document of shipments based on the provided parameters.
16910
16911
  */
16911
- this.download = (params) => {
16912
- return this.client.get("/v1/shipments/downloads", {
16912
+ this.export = (params) => {
16913
+ return this.client.get("/v1/shipments/export", {
16913
16914
  headers: {
16914
16915
  Accept: "text/csv"
16915
16916
  },
@@ -35771,12 +35772,14 @@ const useUpdateFundingSource = () => {
35771
35772
  mutationFn: (_0) => __async$E(void 0, [_0], function* ({
35772
35773
  billingInfo,
35773
35774
  creditCardInfo,
35775
+ bankAccountInfo,
35774
35776
  fundingSourceId,
35775
35777
  auctanePayInfo
35776
35778
  }) {
35777
35779
  const result = yield client.fundingSources.update(
35778
35780
  billingInfo,
35779
35781
  creditCardInfo,
35782
+ bankAccountInfo,
35780
35783
  auctanePayInfo,
35781
35784
  fundingSourceId
35782
35785
  );
@@ -36422,13 +36425,13 @@ var __objRest$f = (source, exclude) => {
36422
36425
  }
36423
36426
  return target;
36424
36427
  };
36425
- const useDownloadLabels = (params) => {
36428
+ const useExportLabels = (params) => {
36426
36429
  const { client } = useShipEngine();
36427
36430
  const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
36428
36431
  return useQuery(__spreadProps$h(__spreadValues$k({}, rest), {
36429
36432
  onError,
36430
- queryFn: () => client.labels.download(queryFnParams),
36431
- queryKey: ["useDownloadLabels", params]
36433
+ queryFn: () => client.labels.export(queryFnParams),
36434
+ queryKey: ["useExportLabels", params]
36432
36435
  }));
36433
36436
  };
36434
36437
 
@@ -37381,13 +37384,13 @@ var __objRest$7 = (source, exclude) => {
37381
37384
  }
37382
37385
  return target;
37383
37386
  };
37384
- const useDownloadShipments = (params) => {
37387
+ const useExportShipments = (params) => {
37385
37388
  const { client } = useShipEngine();
37386
37389
  const _a = __spreadValues$e({}, params), { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
37387
37390
  return useQuery(__spreadProps$b(__spreadValues$e({}, rest), {
37388
37391
  onError,
37389
- queryFn: () => client.shipments.download(queryFnParams),
37390
- queryKey: ["useDownloadShipments", params]
37392
+ queryFn: () => client.shipments.export(queryFnParams),
37393
+ queryKey: ["useExportShipments", params]
37391
37394
  }));
37392
37395
  };
37393
37396
 
@@ -39511,4 +39514,4 @@ const alchemy = {
39511
39514
  createElement
39512
39515
  };
39513
39516
 
39514
- export { AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, 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, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
39517
+ export { AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, 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, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, 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/alchemy",
3
- "version": "6.0.44",
3
+ "version": "6.0.46",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {