@shipengine/alchemy 5.0.15 → 5.0.17

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 +8 -1
  2. package/index.mjs +8 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -16485,6 +16485,12 @@ class ShippingRulesAPI {
16485
16485
  shippingRule
16486
16486
  );
16487
16487
  };
16488
+ /**
16489
+ * The `getConditionOptions` method retrieves the list of condition options availables for creating shipping rules.
16490
+ */
16491
+ this.getConditionOptions = () => {
16492
+ return this.client.get(`/v1/shipping_rules/rule_conditions_options`);
16493
+ };
16488
16494
  this.client = client;
16489
16495
  }
16490
16496
  }
@@ -17568,9 +17574,10 @@ const useGetFundingSourceMetadata = () => {
17568
17574
  const useGetFundingSourceTransactions = (fundingSourceId, params) => {
17569
17575
  const { client } = useShipEngine();
17570
17576
  return reactQuery.useQuery({
17577
+ keepPreviousData: true,
17571
17578
  onError,
17572
17579
  queryFn: () => client.fundingSources.transactions(fundingSourceId, params),
17573
- queryKey: ["useGetFundingSourceTransactions", fundingSourceId],
17580
+ queryKey: ["useGetFundingSourceTransactions", fundingSourceId, params],
17574
17581
  select: (result) => result.data
17575
17582
  });
17576
17583
  };
package/index.mjs CHANGED
@@ -16463,6 +16463,12 @@ class ShippingRulesAPI {
16463
16463
  shippingRule
16464
16464
  );
16465
16465
  };
16466
+ /**
16467
+ * The `getConditionOptions` method retrieves the list of condition options availables for creating shipping rules.
16468
+ */
16469
+ this.getConditionOptions = () => {
16470
+ return this.client.get(`/v1/shipping_rules/rule_conditions_options`);
16471
+ };
16466
16472
  this.client = client;
16467
16473
  }
16468
16474
  }
@@ -17546,9 +17552,10 @@ const useGetFundingSourceMetadata = () => {
17546
17552
  const useGetFundingSourceTransactions = (fundingSourceId, params) => {
17547
17553
  const { client } = useShipEngine();
17548
17554
  return useQuery({
17555
+ keepPreviousData: true,
17549
17556
  onError,
17550
17557
  queryFn: () => client.fundingSources.transactions(fundingSourceId, params),
17551
- queryKey: ["useGetFundingSourceTransactions", fundingSourceId],
17558
+ queryKey: ["useGetFundingSourceTransactions", fundingSourceId, params],
17552
17559
  select: (result) => result.data
17553
17560
  });
17554
17561
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/alchemy",
3
- "version": "5.0.15",
3
+ "version": "5.0.17",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {