@shipengine/alchemy 6.0.3 → 6.0.4
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 +12 -9
- package/index.mjs +12 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -16607,10 +16607,16 @@ class SellersAPI {
|
|
|
16607
16607
|
/**
|
|
16608
16608
|
* Adds sandbox carriers to a seller, you can pass in a flag to try to reuse the carrier connection.
|
|
16609
16609
|
*/
|
|
16610
|
-
this.addSandboxCarriers = (
|
|
16611
|
-
return this.client.post(
|
|
16612
|
-
|
|
16613
|
-
|
|
16610
|
+
this.addSandboxCarriers = (props) => {
|
|
16611
|
+
return this.client.post(
|
|
16612
|
+
`/v1/sellers/add_sandbox_carriers/${props.sellerId}`,
|
|
16613
|
+
{
|
|
16614
|
+
tryReuseCarrierConnection: props.tryReuseCarrierConnection
|
|
16615
|
+
},
|
|
16616
|
+
{
|
|
16617
|
+
isSandbox: props.isSandbox
|
|
16618
|
+
}
|
|
16619
|
+
);
|
|
16614
16620
|
};
|
|
16615
16621
|
this.client = client;
|
|
16616
16622
|
}
|
|
@@ -36961,11 +36967,8 @@ var __async$5 = (__this, __arguments, generator) => {
|
|
|
36961
36967
|
const useAddSandboxCarriers = () => {
|
|
36962
36968
|
const { client } = useShipEngine();
|
|
36963
36969
|
return reactQuery.useMutation({
|
|
36964
|
-
mutationFn: (
|
|
36965
|
-
const result = yield client.sellers.addSandboxCarriers(
|
|
36966
|
-
sellerId,
|
|
36967
|
-
tryReuseCarrierConnection
|
|
36968
|
-
});
|
|
36970
|
+
mutationFn: (props) => __async$5(void 0, null, function* () {
|
|
36971
|
+
const result = yield client.sellers.addSandboxCarriers(props);
|
|
36969
36972
|
return result.data;
|
|
36970
36973
|
}),
|
|
36971
36974
|
mutationKey: ["useAddSandboxCarriers"],
|
package/index.mjs
CHANGED
|
@@ -16585,10 +16585,16 @@ class SellersAPI {
|
|
|
16585
16585
|
/**
|
|
16586
16586
|
* Adds sandbox carriers to a seller, you can pass in a flag to try to reuse the carrier connection.
|
|
16587
16587
|
*/
|
|
16588
|
-
this.addSandboxCarriers = (
|
|
16589
|
-
return this.client.post(
|
|
16590
|
-
|
|
16591
|
-
|
|
16588
|
+
this.addSandboxCarriers = (props) => {
|
|
16589
|
+
return this.client.post(
|
|
16590
|
+
`/v1/sellers/add_sandbox_carriers/${props.sellerId}`,
|
|
16591
|
+
{
|
|
16592
|
+
tryReuseCarrierConnection: props.tryReuseCarrierConnection
|
|
16593
|
+
},
|
|
16594
|
+
{
|
|
16595
|
+
isSandbox: props.isSandbox
|
|
16596
|
+
}
|
|
16597
|
+
);
|
|
16592
16598
|
};
|
|
16593
16599
|
this.client = client;
|
|
16594
16600
|
}
|
|
@@ -36939,11 +36945,8 @@ var __async$5 = (__this, __arguments, generator) => {
|
|
|
36939
36945
|
const useAddSandboxCarriers = () => {
|
|
36940
36946
|
const { client } = useShipEngine();
|
|
36941
36947
|
return useMutation({
|
|
36942
|
-
mutationFn: (
|
|
36943
|
-
const result = yield client.sellers.addSandboxCarriers(
|
|
36944
|
-
sellerId,
|
|
36945
|
-
tryReuseCarrierConnection
|
|
36946
|
-
});
|
|
36948
|
+
mutationFn: (props) => __async$5(void 0, null, function* () {
|
|
36949
|
+
const result = yield client.sellers.addSandboxCarriers(props);
|
|
36947
36950
|
return result.data;
|
|
36948
36951
|
}),
|
|
36949
36952
|
mutationKey: ["useAddSandboxCarriers"],
|