@shipengine/alchemy 6.0.11 → 6.0.13
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 +2 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -10982,7 +10982,7 @@ class AccountSettingsAPI {
|
|
|
10982
10982
|
/**
|
|
10983
10983
|
* The `update` method updates specific account settings for a given user.
|
|
10984
10984
|
*
|
|
10985
|
-
* @params Partial<
|
|
10985
|
+
* @params Partial<ShipEngineAccountSettings> The account settings to update.
|
|
10986
10986
|
*/
|
|
10987
10987
|
this.update = (settings) => {
|
|
10988
10988
|
return this.client.put("/v1/account/settings", settings);
|
|
@@ -36461,7 +36461,7 @@ const useCreateShipment = () => {
|
|
|
36461
36461
|
return reactQuery.useMutation({
|
|
36462
36462
|
mutationFn: (shipment) => __async$g(void 0, null, function* () {
|
|
36463
36463
|
var _a;
|
|
36464
|
-
if (shipment.warehouseId === void 0) {
|
|
36464
|
+
if (shipment.warehouseId === void 0 && shipment.shipFrom === void 0) {
|
|
36465
36465
|
throw new CodedError("errorMessages.noWarehouses", {
|
|
36466
36466
|
errorCode: "unknown",
|
|
36467
36467
|
errorSource: "client",
|
package/index.mjs
CHANGED
|
@@ -10960,7 +10960,7 @@ class AccountSettingsAPI {
|
|
|
10960
10960
|
/**
|
|
10961
10961
|
* The `update` method updates specific account settings for a given user.
|
|
10962
10962
|
*
|
|
10963
|
-
* @params Partial<
|
|
10963
|
+
* @params Partial<ShipEngineAccountSettings> The account settings to update.
|
|
10964
10964
|
*/
|
|
10965
10965
|
this.update = (settings) => {
|
|
10966
10966
|
return this.client.put("/v1/account/settings", settings);
|
|
@@ -36439,7 +36439,7 @@ const useCreateShipment = () => {
|
|
|
36439
36439
|
return useMutation({
|
|
36440
36440
|
mutationFn: (shipment) => __async$g(void 0, null, function* () {
|
|
36441
36441
|
var _a;
|
|
36442
|
-
if (shipment.warehouseId === void 0) {
|
|
36442
|
+
if (shipment.warehouseId === void 0 && shipment.shipFrom === void 0) {
|
|
36443
36443
|
throw new CodedError("errorMessages.noWarehouses", {
|
|
36444
36444
|
errorCode: "unknown",
|
|
36445
36445
|
errorSource: "client",
|