@shipengine/alchemy 5.0.14 → 5.0.16
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.
- package/index.js +6 -2
- package/index.mjs +6 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -16480,7 +16480,10 @@ class ShippingRulesAPI {
|
|
|
16480
16480
|
* `ShippingRule`.
|
|
16481
16481
|
*/
|
|
16482
16482
|
this.edit = (shippingRule) => {
|
|
16483
|
-
return this.client.put(
|
|
16483
|
+
return this.client.put(
|
|
16484
|
+
`/v1/shipping_rules/${shippingRule.shippingRuleId}`,
|
|
16485
|
+
shippingRule
|
|
16486
|
+
);
|
|
16484
16487
|
};
|
|
16485
16488
|
this.client = client;
|
|
16486
16489
|
}
|
|
@@ -17565,9 +17568,10 @@ const useGetFundingSourceMetadata = () => {
|
|
|
17565
17568
|
const useGetFundingSourceTransactions = (fundingSourceId, params) => {
|
|
17566
17569
|
const { client } = useShipEngine();
|
|
17567
17570
|
return reactQuery.useQuery({
|
|
17571
|
+
keepPreviousData: true,
|
|
17568
17572
|
onError,
|
|
17569
17573
|
queryFn: () => client.fundingSources.transactions(fundingSourceId, params),
|
|
17570
|
-
queryKey: ["useGetFundingSourceTransactions", fundingSourceId],
|
|
17574
|
+
queryKey: ["useGetFundingSourceTransactions", fundingSourceId, params],
|
|
17571
17575
|
select: (result) => result.data
|
|
17572
17576
|
});
|
|
17573
17577
|
};
|
package/index.mjs
CHANGED
|
@@ -16458,7 +16458,10 @@ class ShippingRulesAPI {
|
|
|
16458
16458
|
* `ShippingRule`.
|
|
16459
16459
|
*/
|
|
16460
16460
|
this.edit = (shippingRule) => {
|
|
16461
|
-
return this.client.put(
|
|
16461
|
+
return this.client.put(
|
|
16462
|
+
`/v1/shipping_rules/${shippingRule.shippingRuleId}`,
|
|
16463
|
+
shippingRule
|
|
16464
|
+
);
|
|
16462
16465
|
};
|
|
16463
16466
|
this.client = client;
|
|
16464
16467
|
}
|
|
@@ -17543,9 +17546,10 @@ const useGetFundingSourceMetadata = () => {
|
|
|
17543
17546
|
const useGetFundingSourceTransactions = (fundingSourceId, params) => {
|
|
17544
17547
|
const { client } = useShipEngine();
|
|
17545
17548
|
return useQuery({
|
|
17549
|
+
keepPreviousData: true,
|
|
17546
17550
|
onError,
|
|
17547
17551
|
queryFn: () => client.fundingSources.transactions(fundingSourceId, params),
|
|
17548
|
-
queryKey: ["useGetFundingSourceTransactions", fundingSourceId],
|
|
17552
|
+
queryKey: ["useGetFundingSourceTransactions", fundingSourceId, params],
|
|
17549
17553
|
select: (result) => result.data
|
|
17550
17554
|
});
|
|
17551
17555
|
};
|