@shipengine/alchemy 5.0.6 → 5.0.7
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 +173 -23
- package/index.mjs +171 -25
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -10786,17 +10786,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
|
|
|
10786
10786
|
return AccountBillingPlanChangeType2;
|
|
10787
10787
|
})(AccountBillingPlanChangeType || {});
|
|
10788
10788
|
|
|
10789
|
-
var __getOwnPropSymbols$
|
|
10790
|
-
var __hasOwnProp$
|
|
10791
|
-
var __propIsEnum$
|
|
10792
|
-
var __objRest$
|
|
10789
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
10790
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
10791
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
10792
|
+
var __objRest$9 = (source, exclude) => {
|
|
10793
10793
|
var target = {};
|
|
10794
10794
|
for (var prop in source)
|
|
10795
|
-
if (__hasOwnProp$
|
|
10795
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10796
10796
|
target[prop] = source[prop];
|
|
10797
|
-
if (source != null && __getOwnPropSymbols$
|
|
10798
|
-
for (var prop of __getOwnPropSymbols$
|
|
10799
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10797
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
10798
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
10799
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
10800
10800
|
target[prop] = source[prop];
|
|
10801
10801
|
}
|
|
10802
10802
|
return target;
|
|
@@ -10810,7 +10810,7 @@ class CodedError {
|
|
|
10810
10810
|
this.message = message;
|
|
10811
10811
|
}
|
|
10812
10812
|
static fromObject(_a) {
|
|
10813
|
-
var _b = _a, { message } = _b, options = __objRest$
|
|
10813
|
+
var _b = _a, { message } = _b, options = __objRest$9(_b, ["message"]);
|
|
10814
10814
|
return new CodedError(message, options);
|
|
10815
10815
|
}
|
|
10816
10816
|
}
|
|
@@ -10918,6 +10918,21 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10918
10918
|
RateCardStatus
|
|
10919
10919
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10920
10920
|
|
|
10921
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
10922
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
10923
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
10924
|
+
var __objRest$8 = (source, exclude) => {
|
|
10925
|
+
var target = {};
|
|
10926
|
+
for (var prop in source)
|
|
10927
|
+
if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10928
|
+
target[prop] = source[prop];
|
|
10929
|
+
if (source != null && __getOwnPropSymbols$d)
|
|
10930
|
+
for (var prop of __getOwnPropSymbols$d(source)) {
|
|
10931
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
|
|
10932
|
+
target[prop] = source[prop];
|
|
10933
|
+
}
|
|
10934
|
+
return target;
|
|
10935
|
+
};
|
|
10921
10936
|
class AccountSettingsAPI {
|
|
10922
10937
|
constructor(client) {
|
|
10923
10938
|
this.client = client;
|
|
@@ -10935,6 +10950,31 @@ class AccountSettingsAPI {
|
|
|
10935
10950
|
this.update = (settings) => {
|
|
10936
10951
|
return this.client.put("/v1/account/settings", settings);
|
|
10937
10952
|
};
|
|
10953
|
+
/**
|
|
10954
|
+
* The `createImage` method creates an image that can be used in your printed labels.
|
|
10955
|
+
*/
|
|
10956
|
+
this.createImage = (data) => {
|
|
10957
|
+
return this.client.post("/v1/account/settings/images", data);
|
|
10958
|
+
};
|
|
10959
|
+
/**
|
|
10960
|
+
* The `updateImage` method updates specific image data for a given image id.
|
|
10961
|
+
*/
|
|
10962
|
+
this.updateImage = (_a) => {
|
|
10963
|
+
var _b = _a, { labelImageId } = _b, data = __objRest$8(_b, ["labelImageId"]);
|
|
10964
|
+
return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
|
|
10965
|
+
};
|
|
10966
|
+
/**
|
|
10967
|
+
* The `getImages` method retrieves a list of images for a given user.
|
|
10968
|
+
*/
|
|
10969
|
+
this.getImages = () => {
|
|
10970
|
+
return this.client.get("/v1/account/settings/images");
|
|
10971
|
+
};
|
|
10972
|
+
/**
|
|
10973
|
+
* The `deleteAccountImage` method deletes an image by id.
|
|
10974
|
+
*/
|
|
10975
|
+
this.deleteImage = (labelImageId) => {
|
|
10976
|
+
return this.client.delete(`/v1/account/settings/images/${labelImageId}`);
|
|
10977
|
+
};
|
|
10938
10978
|
this.client = client;
|
|
10939
10979
|
}
|
|
10940
10980
|
}
|
|
@@ -13600,7 +13640,7 @@ var ipaddr = {
|
|
|
13600
13640
|
}).call(commonjsGlobal);
|
|
13601
13641
|
} (ipaddr));
|
|
13602
13642
|
|
|
13603
|
-
var __async$
|
|
13643
|
+
var __async$A = (__this, __arguments, generator) => {
|
|
13604
13644
|
return new Promise((resolve, reject) => {
|
|
13605
13645
|
var fulfilled = (value) => {
|
|
13606
13646
|
try {
|
|
@@ -13620,7 +13660,7 @@ var __async$x = (__this, __arguments, generator) => {
|
|
|
13620
13660
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13621
13661
|
});
|
|
13622
13662
|
};
|
|
13623
|
-
const getEndUserIpAddress = () => __async$
|
|
13663
|
+
const getEndUserIpAddress = () => __async$A(void 0, null, function* () {
|
|
13624
13664
|
try {
|
|
13625
13665
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13626
13666
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13663,7 +13703,7 @@ var __objRest$7 = (source, exclude) => {
|
|
|
13663
13703
|
}
|
|
13664
13704
|
return target;
|
|
13665
13705
|
};
|
|
13666
|
-
var __async$
|
|
13706
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
13667
13707
|
return new Promise((resolve, reject) => {
|
|
13668
13708
|
var fulfilled = (value) => {
|
|
13669
13709
|
try {
|
|
@@ -13701,7 +13741,7 @@ class CarriersAPI {
|
|
|
13701
13741
|
/**
|
|
13702
13742
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
13703
13743
|
*/
|
|
13704
|
-
this.connect = (_a) => __async$
|
|
13744
|
+
this.connect = (_a) => __async$z(this, null, function* () {
|
|
13705
13745
|
var _b = _a, { carrierCode } = _b, connection = __objRest$7(_b, ["carrierCode"]);
|
|
13706
13746
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13707
13747
|
if (!endUserIpAddress)
|
|
@@ -16017,7 +16057,7 @@ var __spreadValues$5 = (a, b) => {
|
|
|
16017
16057
|
}
|
|
16018
16058
|
return a;
|
|
16019
16059
|
};
|
|
16020
|
-
var __async$
|
|
16060
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
16021
16061
|
return new Promise((resolve, reject) => {
|
|
16022
16062
|
var fulfilled = (value) => {
|
|
16023
16063
|
try {
|
|
@@ -16056,7 +16096,7 @@ class FundingSourcesAPI {
|
|
|
16056
16096
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16057
16097
|
* payment information to be collected from the user.
|
|
16058
16098
|
*/
|
|
16059
|
-
this.create = (createFundingSource) => __async$
|
|
16099
|
+
this.create = (createFundingSource) => __async$y(this, null, function* () {
|
|
16060
16100
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16061
16101
|
if (!endUserIpAddress)
|
|
16062
16102
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16069,7 +16109,7 @@ class FundingSourcesAPI {
|
|
|
16069
16109
|
* user to update the billing address or payment information associated with the
|
|
16070
16110
|
* funding source.
|
|
16071
16111
|
*/
|
|
16072
|
-
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$
|
|
16112
|
+
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$y(this, null, function* () {
|
|
16073
16113
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16074
16114
|
if (!endUserIpAddress)
|
|
16075
16115
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16086,7 +16126,7 @@ class FundingSourcesAPI {
|
|
|
16086
16126
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16087
16127
|
* it with a given funding source.
|
|
16088
16128
|
*/
|
|
16089
|
-
this.registerCarrier = (carrier) => __async$
|
|
16129
|
+
this.registerCarrier = (carrier) => __async$y(this, null, function* () {
|
|
16090
16130
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16091
16131
|
if (!endUserIpAddress)
|
|
16092
16132
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16097,7 +16137,7 @@ class FundingSourcesAPI {
|
|
|
16097
16137
|
/**
|
|
16098
16138
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16099
16139
|
*/
|
|
16100
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16140
|
+
this.addFunds = (amount, fundingSourceId) => __async$y(this, null, function* () {
|
|
16101
16141
|
return yield this.client.put(
|
|
16102
16142
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16103
16143
|
amount
|
|
@@ -16107,7 +16147,7 @@ class FundingSourcesAPI {
|
|
|
16107
16147
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16108
16148
|
* and attaching carriers
|
|
16109
16149
|
*/
|
|
16110
|
-
this.metadata = () => __async$
|
|
16150
|
+
this.metadata = () => __async$y(this, null, function* () {
|
|
16111
16151
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16112
16152
|
});
|
|
16113
16153
|
/**
|
|
@@ -16350,7 +16390,7 @@ class SalesOrdersAPI {
|
|
|
16350
16390
|
}
|
|
16351
16391
|
}
|
|
16352
16392
|
|
|
16353
|
-
var __async$
|
|
16393
|
+
var __async$x = (__this, __arguments, generator) => {
|
|
16354
16394
|
return new Promise((resolve, reject) => {
|
|
16355
16395
|
var fulfilled = (value) => {
|
|
16356
16396
|
try {
|
|
@@ -16393,7 +16433,7 @@ class ShipmentsAPI {
|
|
|
16393
16433
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
16394
16434
|
* items passed into this method.
|
|
16395
16435
|
*/
|
|
16396
|
-
this.create = (...shipments) => __async$
|
|
16436
|
+
this.create = (...shipments) => __async$x(this, null, function* () {
|
|
16397
16437
|
return this.client.post("/v1/shipments", {
|
|
16398
16438
|
shipments
|
|
16399
16439
|
});
|
|
@@ -16487,7 +16527,7 @@ var __spreadValues$4 = (a, b) => {
|
|
|
16487
16527
|
return a;
|
|
16488
16528
|
};
|
|
16489
16529
|
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
16490
|
-
var __async$
|
|
16530
|
+
var __async$w = (__this, __arguments, generator) => {
|
|
16491
16531
|
return new Promise((resolve, reject) => {
|
|
16492
16532
|
var fulfilled = (value) => {
|
|
16493
16533
|
try {
|
|
@@ -16581,7 +16621,7 @@ class ShipEngineAPI {
|
|
|
16581
16621
|
);
|
|
16582
16622
|
return res;
|
|
16583
16623
|
},
|
|
16584
|
-
(err) => __async$
|
|
16624
|
+
(err) => __async$w(this, null, function* () {
|
|
16585
16625
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
16586
16626
|
logger$1.error(
|
|
16587
16627
|
{ err, req: err.config, res: err.response },
|
|
@@ -16876,6 +16916,80 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
16876
16916
|
throw error;
|
|
16877
16917
|
});
|
|
16878
16918
|
|
|
16919
|
+
var __async$v = (__this, __arguments, generator) => {
|
|
16920
|
+
return new Promise((resolve, reject) => {
|
|
16921
|
+
var fulfilled = (value) => {
|
|
16922
|
+
try {
|
|
16923
|
+
step(generator.next(value));
|
|
16924
|
+
} catch (e) {
|
|
16925
|
+
reject(e);
|
|
16926
|
+
}
|
|
16927
|
+
};
|
|
16928
|
+
var rejected = (value) => {
|
|
16929
|
+
try {
|
|
16930
|
+
step(generator.throw(value));
|
|
16931
|
+
} catch (e) {
|
|
16932
|
+
reject(e);
|
|
16933
|
+
}
|
|
16934
|
+
};
|
|
16935
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
16936
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
16937
|
+
});
|
|
16938
|
+
};
|
|
16939
|
+
const useCreateAccountImage = () => {
|
|
16940
|
+
const { client } = useShipEngine();
|
|
16941
|
+
return reactQuery.useMutation({
|
|
16942
|
+
mutationFn: (data) => __async$v(void 0, null, function* () {
|
|
16943
|
+
const result = yield client.accountSettings.createImage(data);
|
|
16944
|
+
return result.data;
|
|
16945
|
+
}),
|
|
16946
|
+
mutationKey: ["useCreateAccountImage"],
|
|
16947
|
+
onError
|
|
16948
|
+
});
|
|
16949
|
+
};
|
|
16950
|
+
|
|
16951
|
+
var __async$u = (__this, __arguments, generator) => {
|
|
16952
|
+
return new Promise((resolve, reject) => {
|
|
16953
|
+
var fulfilled = (value) => {
|
|
16954
|
+
try {
|
|
16955
|
+
step(generator.next(value));
|
|
16956
|
+
} catch (e) {
|
|
16957
|
+
reject(e);
|
|
16958
|
+
}
|
|
16959
|
+
};
|
|
16960
|
+
var rejected = (value) => {
|
|
16961
|
+
try {
|
|
16962
|
+
step(generator.throw(value));
|
|
16963
|
+
} catch (e) {
|
|
16964
|
+
reject(e);
|
|
16965
|
+
}
|
|
16966
|
+
};
|
|
16967
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
16968
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
16969
|
+
});
|
|
16970
|
+
};
|
|
16971
|
+
const useDeleteAccountImage = () => {
|
|
16972
|
+
const { client } = useShipEngine();
|
|
16973
|
+
return reactQuery.useMutation({
|
|
16974
|
+
mutationFn: (labelImageId) => __async$u(void 0, null, function* () {
|
|
16975
|
+
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
16976
|
+
return result.data;
|
|
16977
|
+
}),
|
|
16978
|
+
mutationKey: ["useDeleteAccountImage"],
|
|
16979
|
+
onError
|
|
16980
|
+
});
|
|
16981
|
+
};
|
|
16982
|
+
|
|
16983
|
+
const useGetAccountImages = () => {
|
|
16984
|
+
const { client } = useShipEngine();
|
|
16985
|
+
return reactQuery.useQuery({
|
|
16986
|
+
onError,
|
|
16987
|
+
queryFn: () => client.accountSettings.getImages(),
|
|
16988
|
+
queryKey: ["useGetAccountImages"],
|
|
16989
|
+
select: (result) => result.data
|
|
16990
|
+
});
|
|
16991
|
+
};
|
|
16992
|
+
|
|
16879
16993
|
const useGetAccountSettings = () => {
|
|
16880
16994
|
const { client } = useShipEngine();
|
|
16881
16995
|
return reactQuery.useQuery({
|
|
@@ -16886,6 +17000,38 @@ const useGetAccountSettings = () => {
|
|
|
16886
17000
|
});
|
|
16887
17001
|
};
|
|
16888
17002
|
|
|
17003
|
+
var __async$t = (__this, __arguments, generator) => {
|
|
17004
|
+
return new Promise((resolve, reject) => {
|
|
17005
|
+
var fulfilled = (value) => {
|
|
17006
|
+
try {
|
|
17007
|
+
step(generator.next(value));
|
|
17008
|
+
} catch (e) {
|
|
17009
|
+
reject(e);
|
|
17010
|
+
}
|
|
17011
|
+
};
|
|
17012
|
+
var rejected = (value) => {
|
|
17013
|
+
try {
|
|
17014
|
+
step(generator.throw(value));
|
|
17015
|
+
} catch (e) {
|
|
17016
|
+
reject(e);
|
|
17017
|
+
}
|
|
17018
|
+
};
|
|
17019
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
17020
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
17021
|
+
});
|
|
17022
|
+
};
|
|
17023
|
+
const useUpdateAccountImage = () => {
|
|
17024
|
+
const { client } = useShipEngine();
|
|
17025
|
+
return reactQuery.useMutation({
|
|
17026
|
+
mutationFn: (data) => __async$t(void 0, null, function* () {
|
|
17027
|
+
const result = yield client.accountSettings.updateImage(data);
|
|
17028
|
+
return result.data;
|
|
17029
|
+
}),
|
|
17030
|
+
mutationKey: ["useUpdateAccountImage"],
|
|
17031
|
+
onError
|
|
17032
|
+
});
|
|
17033
|
+
};
|
|
17034
|
+
|
|
16889
17035
|
var __async$s = (__this, __arguments, generator) => {
|
|
16890
17036
|
return new Promise((resolve, reject) => {
|
|
16891
17037
|
var fulfilled = (value) => {
|
|
@@ -19521,6 +19667,7 @@ exports.useAddFunds = useAddFunds;
|
|
|
19521
19667
|
exports.useAlchemy = useAlchemy;
|
|
19522
19668
|
exports.useCalculateRates = useCalculateRates;
|
|
19523
19669
|
exports.useConnectCarrier = useConnectCarrier;
|
|
19670
|
+
exports.useCreateAccountImage = useCreateAccountImage;
|
|
19524
19671
|
exports.useCreateFundingSource = useCreateFundingSource;
|
|
19525
19672
|
exports.useCreateLabel = useCreateLabel;
|
|
19526
19673
|
exports.useCreateRateCard = useCreateRateCard;
|
|
@@ -19528,12 +19675,14 @@ exports.useCreateSalesOrderShipment = useCreateSalesOrderShipment;
|
|
|
19528
19675
|
exports.useCreateShipment = useCreateShipment;
|
|
19529
19676
|
exports.useCreateShippingRule = useCreateShippingRule;
|
|
19530
19677
|
exports.useCreateWarehouse = useCreateWarehouse;
|
|
19678
|
+
exports.useDeleteAccountImage = useDeleteAccountImage;
|
|
19531
19679
|
exports.useDeleteRateCard = useDeleteRateCard;
|
|
19532
19680
|
exports.useDeleteShippingRule = useDeleteShippingRule;
|
|
19533
19681
|
exports.useDeleteWarehouse = useDeleteWarehouse;
|
|
19534
19682
|
exports.useDownloadRateCard = useDownloadRateCard;
|
|
19535
19683
|
exports.useFundingSourcesAddFunds = useFundingSourcesAddFunds;
|
|
19536
19684
|
exports.useGetAccountBillingPlan = useGetAccountBillingPlan;
|
|
19685
|
+
exports.useGetAccountImages = useGetAccountImages;
|
|
19537
19686
|
exports.useGetAccountSettings = useGetAccountSettings;
|
|
19538
19687
|
exports.useGetAutoFundingConfiguration = useGetAutoFundingConfiguration;
|
|
19539
19688
|
exports.useGetCarrierById = useGetCarrierById;
|
|
@@ -19573,6 +19722,7 @@ exports.useRefreshOrderSource = useRefreshOrderSource;
|
|
|
19573
19722
|
exports.useRefreshOrderSourceAsync = useRefreshOrderSourceAsync;
|
|
19574
19723
|
exports.useRegisterCarrier = useRegisterCarrier;
|
|
19575
19724
|
exports.useShipEngine = useShipEngine;
|
|
19725
|
+
exports.useUpdateAccountImage = useUpdateAccountImage;
|
|
19576
19726
|
exports.useUpdateAccountSettings = useUpdateAccountSettings;
|
|
19577
19727
|
exports.useUpdateAutoFunding = useUpdateAutoFunding;
|
|
19578
19728
|
exports.useUpdateFundingSource = useUpdateFundingSource;
|
package/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { createContext, forwardRef, useContext, createElement as createElement$1, Fragment, useState, useCallback, useMemo, useRef } from 'react';
|
|
3
3
|
import { jsx as jsx$1 } from 'react/jsx-runtime';
|
|
4
4
|
import { GigerProvider, GigerTestProvider, DefaultPortalRefProvider } from '@shipengine/giger';
|
|
5
|
-
import { QueryClient, QueryClientProvider,
|
|
5
|
+
import { QueryClient, QueryClientProvider, useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
|
|
6
6
|
import { CacheProvider } from '@emotion/react';
|
|
7
7
|
import { I18nextProvider } from 'react-i18next';
|
|
8
8
|
import i18n from 'i18next';
|
|
@@ -10764,17 +10764,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
|
|
|
10764
10764
|
return AccountBillingPlanChangeType2;
|
|
10765
10765
|
})(AccountBillingPlanChangeType || {});
|
|
10766
10766
|
|
|
10767
|
-
var __getOwnPropSymbols$
|
|
10768
|
-
var __hasOwnProp$
|
|
10769
|
-
var __propIsEnum$
|
|
10770
|
-
var __objRest$
|
|
10767
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
10768
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
10769
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
10770
|
+
var __objRest$9 = (source, exclude) => {
|
|
10771
10771
|
var target = {};
|
|
10772
10772
|
for (var prop in source)
|
|
10773
|
-
if (__hasOwnProp$
|
|
10773
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10774
10774
|
target[prop] = source[prop];
|
|
10775
|
-
if (source != null && __getOwnPropSymbols$
|
|
10776
|
-
for (var prop of __getOwnPropSymbols$
|
|
10777
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10775
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
10776
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
10777
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
10778
10778
|
target[prop] = source[prop];
|
|
10779
10779
|
}
|
|
10780
10780
|
return target;
|
|
@@ -10788,7 +10788,7 @@ class CodedError {
|
|
|
10788
10788
|
this.message = message;
|
|
10789
10789
|
}
|
|
10790
10790
|
static fromObject(_a) {
|
|
10791
|
-
var _b = _a, { message } = _b, options = __objRest$
|
|
10791
|
+
var _b = _a, { message } = _b, options = __objRest$9(_b, ["message"]);
|
|
10792
10792
|
return new CodedError(message, options);
|
|
10793
10793
|
}
|
|
10794
10794
|
}
|
|
@@ -10896,6 +10896,21 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10896
10896
|
RateCardStatus
|
|
10897
10897
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10898
10898
|
|
|
10899
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
10900
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
10901
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
10902
|
+
var __objRest$8 = (source, exclude) => {
|
|
10903
|
+
var target = {};
|
|
10904
|
+
for (var prop in source)
|
|
10905
|
+
if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10906
|
+
target[prop] = source[prop];
|
|
10907
|
+
if (source != null && __getOwnPropSymbols$d)
|
|
10908
|
+
for (var prop of __getOwnPropSymbols$d(source)) {
|
|
10909
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
|
|
10910
|
+
target[prop] = source[prop];
|
|
10911
|
+
}
|
|
10912
|
+
return target;
|
|
10913
|
+
};
|
|
10899
10914
|
class AccountSettingsAPI {
|
|
10900
10915
|
constructor(client) {
|
|
10901
10916
|
this.client = client;
|
|
@@ -10913,6 +10928,31 @@ class AccountSettingsAPI {
|
|
|
10913
10928
|
this.update = (settings) => {
|
|
10914
10929
|
return this.client.put("/v1/account/settings", settings);
|
|
10915
10930
|
};
|
|
10931
|
+
/**
|
|
10932
|
+
* The `createImage` method creates an image that can be used in your printed labels.
|
|
10933
|
+
*/
|
|
10934
|
+
this.createImage = (data) => {
|
|
10935
|
+
return this.client.post("/v1/account/settings/images", data);
|
|
10936
|
+
};
|
|
10937
|
+
/**
|
|
10938
|
+
* The `updateImage` method updates specific image data for a given image id.
|
|
10939
|
+
*/
|
|
10940
|
+
this.updateImage = (_a) => {
|
|
10941
|
+
var _b = _a, { labelImageId } = _b, data = __objRest$8(_b, ["labelImageId"]);
|
|
10942
|
+
return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
|
|
10943
|
+
};
|
|
10944
|
+
/**
|
|
10945
|
+
* The `getImages` method retrieves a list of images for a given user.
|
|
10946
|
+
*/
|
|
10947
|
+
this.getImages = () => {
|
|
10948
|
+
return this.client.get("/v1/account/settings/images");
|
|
10949
|
+
};
|
|
10950
|
+
/**
|
|
10951
|
+
* The `deleteAccountImage` method deletes an image by id.
|
|
10952
|
+
*/
|
|
10953
|
+
this.deleteImage = (labelImageId) => {
|
|
10954
|
+
return this.client.delete(`/v1/account/settings/images/${labelImageId}`);
|
|
10955
|
+
};
|
|
10916
10956
|
this.client = client;
|
|
10917
10957
|
}
|
|
10918
10958
|
}
|
|
@@ -13578,7 +13618,7 @@ var ipaddr = {
|
|
|
13578
13618
|
}).call(commonjsGlobal);
|
|
13579
13619
|
} (ipaddr));
|
|
13580
13620
|
|
|
13581
|
-
var __async$
|
|
13621
|
+
var __async$A = (__this, __arguments, generator) => {
|
|
13582
13622
|
return new Promise((resolve, reject) => {
|
|
13583
13623
|
var fulfilled = (value) => {
|
|
13584
13624
|
try {
|
|
@@ -13598,7 +13638,7 @@ var __async$x = (__this, __arguments, generator) => {
|
|
|
13598
13638
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13599
13639
|
});
|
|
13600
13640
|
};
|
|
13601
|
-
const getEndUserIpAddress = () => __async$
|
|
13641
|
+
const getEndUserIpAddress = () => __async$A(void 0, null, function* () {
|
|
13602
13642
|
try {
|
|
13603
13643
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13604
13644
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13641,7 +13681,7 @@ var __objRest$7 = (source, exclude) => {
|
|
|
13641
13681
|
}
|
|
13642
13682
|
return target;
|
|
13643
13683
|
};
|
|
13644
|
-
var __async$
|
|
13684
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
13645
13685
|
return new Promise((resolve, reject) => {
|
|
13646
13686
|
var fulfilled = (value) => {
|
|
13647
13687
|
try {
|
|
@@ -13679,7 +13719,7 @@ class CarriersAPI {
|
|
|
13679
13719
|
/**
|
|
13680
13720
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
13681
13721
|
*/
|
|
13682
|
-
this.connect = (_a) => __async$
|
|
13722
|
+
this.connect = (_a) => __async$z(this, null, function* () {
|
|
13683
13723
|
var _b = _a, { carrierCode } = _b, connection = __objRest$7(_b, ["carrierCode"]);
|
|
13684
13724
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13685
13725
|
if (!endUserIpAddress)
|
|
@@ -15995,7 +16035,7 @@ var __spreadValues$5 = (a, b) => {
|
|
|
15995
16035
|
}
|
|
15996
16036
|
return a;
|
|
15997
16037
|
};
|
|
15998
|
-
var __async$
|
|
16038
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
15999
16039
|
return new Promise((resolve, reject) => {
|
|
16000
16040
|
var fulfilled = (value) => {
|
|
16001
16041
|
try {
|
|
@@ -16034,7 +16074,7 @@ class FundingSourcesAPI {
|
|
|
16034
16074
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16035
16075
|
* payment information to be collected from the user.
|
|
16036
16076
|
*/
|
|
16037
|
-
this.create = (createFundingSource) => __async$
|
|
16077
|
+
this.create = (createFundingSource) => __async$y(this, null, function* () {
|
|
16038
16078
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16039
16079
|
if (!endUserIpAddress)
|
|
16040
16080
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16047,7 +16087,7 @@ class FundingSourcesAPI {
|
|
|
16047
16087
|
* user to update the billing address or payment information associated with the
|
|
16048
16088
|
* funding source.
|
|
16049
16089
|
*/
|
|
16050
|
-
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$
|
|
16090
|
+
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$y(this, null, function* () {
|
|
16051
16091
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16052
16092
|
if (!endUserIpAddress)
|
|
16053
16093
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16064,7 +16104,7 @@ class FundingSourcesAPI {
|
|
|
16064
16104
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16065
16105
|
* it with a given funding source.
|
|
16066
16106
|
*/
|
|
16067
|
-
this.registerCarrier = (carrier) => __async$
|
|
16107
|
+
this.registerCarrier = (carrier) => __async$y(this, null, function* () {
|
|
16068
16108
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16069
16109
|
if (!endUserIpAddress)
|
|
16070
16110
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16075,7 +16115,7 @@ class FundingSourcesAPI {
|
|
|
16075
16115
|
/**
|
|
16076
16116
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16077
16117
|
*/
|
|
16078
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16118
|
+
this.addFunds = (amount, fundingSourceId) => __async$y(this, null, function* () {
|
|
16079
16119
|
return yield this.client.put(
|
|
16080
16120
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16081
16121
|
amount
|
|
@@ -16085,7 +16125,7 @@ class FundingSourcesAPI {
|
|
|
16085
16125
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16086
16126
|
* and attaching carriers
|
|
16087
16127
|
*/
|
|
16088
|
-
this.metadata = () => __async$
|
|
16128
|
+
this.metadata = () => __async$y(this, null, function* () {
|
|
16089
16129
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16090
16130
|
});
|
|
16091
16131
|
/**
|
|
@@ -16328,7 +16368,7 @@ class SalesOrdersAPI {
|
|
|
16328
16368
|
}
|
|
16329
16369
|
}
|
|
16330
16370
|
|
|
16331
|
-
var __async$
|
|
16371
|
+
var __async$x = (__this, __arguments, generator) => {
|
|
16332
16372
|
return new Promise((resolve, reject) => {
|
|
16333
16373
|
var fulfilled = (value) => {
|
|
16334
16374
|
try {
|
|
@@ -16371,7 +16411,7 @@ class ShipmentsAPI {
|
|
|
16371
16411
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
16372
16412
|
* items passed into this method.
|
|
16373
16413
|
*/
|
|
16374
|
-
this.create = (...shipments) => __async$
|
|
16414
|
+
this.create = (...shipments) => __async$x(this, null, function* () {
|
|
16375
16415
|
return this.client.post("/v1/shipments", {
|
|
16376
16416
|
shipments
|
|
16377
16417
|
});
|
|
@@ -16465,7 +16505,7 @@ var __spreadValues$4 = (a, b) => {
|
|
|
16465
16505
|
return a;
|
|
16466
16506
|
};
|
|
16467
16507
|
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
16468
|
-
var __async$
|
|
16508
|
+
var __async$w = (__this, __arguments, generator) => {
|
|
16469
16509
|
return new Promise((resolve, reject) => {
|
|
16470
16510
|
var fulfilled = (value) => {
|
|
16471
16511
|
try {
|
|
@@ -16559,7 +16599,7 @@ class ShipEngineAPI {
|
|
|
16559
16599
|
);
|
|
16560
16600
|
return res;
|
|
16561
16601
|
},
|
|
16562
|
-
(err) => __async$
|
|
16602
|
+
(err) => __async$w(this, null, function* () {
|
|
16563
16603
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
16564
16604
|
logger$1.error(
|
|
16565
16605
|
{ err, req: err.config, res: err.response },
|
|
@@ -16854,6 +16894,80 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
16854
16894
|
throw error;
|
|
16855
16895
|
});
|
|
16856
16896
|
|
|
16897
|
+
var __async$v = (__this, __arguments, generator) => {
|
|
16898
|
+
return new Promise((resolve, reject) => {
|
|
16899
|
+
var fulfilled = (value) => {
|
|
16900
|
+
try {
|
|
16901
|
+
step(generator.next(value));
|
|
16902
|
+
} catch (e) {
|
|
16903
|
+
reject(e);
|
|
16904
|
+
}
|
|
16905
|
+
};
|
|
16906
|
+
var rejected = (value) => {
|
|
16907
|
+
try {
|
|
16908
|
+
step(generator.throw(value));
|
|
16909
|
+
} catch (e) {
|
|
16910
|
+
reject(e);
|
|
16911
|
+
}
|
|
16912
|
+
};
|
|
16913
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
16914
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
16915
|
+
});
|
|
16916
|
+
};
|
|
16917
|
+
const useCreateAccountImage = () => {
|
|
16918
|
+
const { client } = useShipEngine();
|
|
16919
|
+
return useMutation({
|
|
16920
|
+
mutationFn: (data) => __async$v(void 0, null, function* () {
|
|
16921
|
+
const result = yield client.accountSettings.createImage(data);
|
|
16922
|
+
return result.data;
|
|
16923
|
+
}),
|
|
16924
|
+
mutationKey: ["useCreateAccountImage"],
|
|
16925
|
+
onError
|
|
16926
|
+
});
|
|
16927
|
+
};
|
|
16928
|
+
|
|
16929
|
+
var __async$u = (__this, __arguments, generator) => {
|
|
16930
|
+
return new Promise((resolve, reject) => {
|
|
16931
|
+
var fulfilled = (value) => {
|
|
16932
|
+
try {
|
|
16933
|
+
step(generator.next(value));
|
|
16934
|
+
} catch (e) {
|
|
16935
|
+
reject(e);
|
|
16936
|
+
}
|
|
16937
|
+
};
|
|
16938
|
+
var rejected = (value) => {
|
|
16939
|
+
try {
|
|
16940
|
+
step(generator.throw(value));
|
|
16941
|
+
} catch (e) {
|
|
16942
|
+
reject(e);
|
|
16943
|
+
}
|
|
16944
|
+
};
|
|
16945
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
16946
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
16947
|
+
});
|
|
16948
|
+
};
|
|
16949
|
+
const useDeleteAccountImage = () => {
|
|
16950
|
+
const { client } = useShipEngine();
|
|
16951
|
+
return useMutation({
|
|
16952
|
+
mutationFn: (labelImageId) => __async$u(void 0, null, function* () {
|
|
16953
|
+
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
16954
|
+
return result.data;
|
|
16955
|
+
}),
|
|
16956
|
+
mutationKey: ["useDeleteAccountImage"],
|
|
16957
|
+
onError
|
|
16958
|
+
});
|
|
16959
|
+
};
|
|
16960
|
+
|
|
16961
|
+
const useGetAccountImages = () => {
|
|
16962
|
+
const { client } = useShipEngine();
|
|
16963
|
+
return useQuery({
|
|
16964
|
+
onError,
|
|
16965
|
+
queryFn: () => client.accountSettings.getImages(),
|
|
16966
|
+
queryKey: ["useGetAccountImages"],
|
|
16967
|
+
select: (result) => result.data
|
|
16968
|
+
});
|
|
16969
|
+
};
|
|
16970
|
+
|
|
16857
16971
|
const useGetAccountSettings = () => {
|
|
16858
16972
|
const { client } = useShipEngine();
|
|
16859
16973
|
return useQuery({
|
|
@@ -16864,6 +16978,38 @@ const useGetAccountSettings = () => {
|
|
|
16864
16978
|
});
|
|
16865
16979
|
};
|
|
16866
16980
|
|
|
16981
|
+
var __async$t = (__this, __arguments, generator) => {
|
|
16982
|
+
return new Promise((resolve, reject) => {
|
|
16983
|
+
var fulfilled = (value) => {
|
|
16984
|
+
try {
|
|
16985
|
+
step(generator.next(value));
|
|
16986
|
+
} catch (e) {
|
|
16987
|
+
reject(e);
|
|
16988
|
+
}
|
|
16989
|
+
};
|
|
16990
|
+
var rejected = (value) => {
|
|
16991
|
+
try {
|
|
16992
|
+
step(generator.throw(value));
|
|
16993
|
+
} catch (e) {
|
|
16994
|
+
reject(e);
|
|
16995
|
+
}
|
|
16996
|
+
};
|
|
16997
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
16998
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
16999
|
+
});
|
|
17000
|
+
};
|
|
17001
|
+
const useUpdateAccountImage = () => {
|
|
17002
|
+
const { client } = useShipEngine();
|
|
17003
|
+
return useMutation({
|
|
17004
|
+
mutationFn: (data) => __async$t(void 0, null, function* () {
|
|
17005
|
+
const result = yield client.accountSettings.updateImage(data);
|
|
17006
|
+
return result.data;
|
|
17007
|
+
}),
|
|
17008
|
+
mutationKey: ["useUpdateAccountImage"],
|
|
17009
|
+
onError
|
|
17010
|
+
});
|
|
17011
|
+
};
|
|
17012
|
+
|
|
16867
17013
|
var __async$s = (__this, __arguments, generator) => {
|
|
16868
17014
|
return new Promise((resolve, reject) => {
|
|
16869
17015
|
var fulfilled = (value) => {
|
|
@@ -19450,4 +19596,4 @@ const alchemy = {
|
|
|
19450
19596
|
createElement
|
|
19451
19597
|
};
|
|
19452
19598
|
|
|
19453
|
-
export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, WarehousesAPI, alchemy, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, logger, onError, retryUntil, useAddFunds, useAlchemy, useCalculateRates, useConnectCarrier, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useDeleteRateCard, useDeleteShippingRule, useDeleteWarehouse, useDownloadRateCard, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetInsuranceAccount, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicesByCarrier, useGetShipment, useGetShipmentRates, useGetWalletHistory, useGetZonesByCarrier, useI18n, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListShipments, useListShippingRules, useListWarehouses, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUploadRateCard, useValidateAddresses, useVoidLabel };
|
|
19599
|
+
export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, WarehousesAPI, alchemy, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, logger, onError, retryUntil, useAddFunds, useAlchemy, useCalculateRates, useConnectCarrier, useCreateAccountImage, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useDeleteAccountImage, useDeleteRateCard, useDeleteShippingRule, useDeleteWarehouse, useDownloadRateCard, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetInsuranceAccount, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicesByCarrier, useGetShipment, useGetShipmentRates, useGetWalletHistory, useGetZonesByCarrier, useI18n, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListShipments, useListShippingRules, useListWarehouses, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUploadRateCard, useValidateAddresses, useVoidLabel };
|