@shipengine/alchemy 6.0.22 → 6.0.23
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 +517 -280
- package/index.mjs +512 -281
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -10812,17 +10812,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
|
|
|
10812
10812
|
return AccountBillingPlanChangeType2;
|
|
10813
10813
|
})(AccountBillingPlanChangeType || {});
|
|
10814
10814
|
|
|
10815
|
-
var __getOwnPropSymbols$
|
|
10816
|
-
var __hasOwnProp$
|
|
10817
|
-
var __propIsEnum$
|
|
10815
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
10816
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
10817
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
10818
10818
|
var __objRest$p = (source, exclude) => {
|
|
10819
10819
|
var target = {};
|
|
10820
10820
|
for (var prop in source)
|
|
10821
|
-
if (__hasOwnProp$
|
|
10821
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10822
10822
|
target[prop] = source[prop];
|
|
10823
|
-
if (source != null && __getOwnPropSymbols$
|
|
10824
|
-
for (var prop of __getOwnPropSymbols$
|
|
10825
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10823
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
10824
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
10825
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
10826
10826
|
target[prop] = source[prop];
|
|
10827
10827
|
}
|
|
10828
10828
|
return target;
|
|
@@ -10955,17 +10955,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10955
10955
|
RateCardStatus
|
|
10956
10956
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10957
10957
|
|
|
10958
|
-
var __getOwnPropSymbols$
|
|
10959
|
-
var __hasOwnProp$
|
|
10960
|
-
var __propIsEnum$
|
|
10958
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
10959
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
10960
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
10961
10961
|
var __objRest$o = (source, exclude) => {
|
|
10962
10962
|
var target = {};
|
|
10963
10963
|
for (var prop in source)
|
|
10964
|
-
if (__hasOwnProp$
|
|
10964
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10965
10965
|
target[prop] = source[prop];
|
|
10966
|
-
if (source != null && __getOwnPropSymbols$
|
|
10967
|
-
for (var prop of __getOwnPropSymbols$
|
|
10968
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10966
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
10967
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
10968
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
10969
10969
|
target[prop] = source[prop];
|
|
10970
10970
|
}
|
|
10971
10971
|
return target;
|
|
@@ -13707,7 +13707,7 @@ var ipaddr = {
|
|
|
13707
13707
|
}).call(commonjsGlobal);
|
|
13708
13708
|
} (ipaddr));
|
|
13709
13709
|
|
|
13710
|
-
var __async$
|
|
13710
|
+
var __async$X = (__this, __arguments, generator) => {
|
|
13711
13711
|
return new Promise((resolve, reject) => {
|
|
13712
13712
|
var fulfilled = (value) => {
|
|
13713
13713
|
try {
|
|
@@ -13727,7 +13727,7 @@ var __async$U = (__this, __arguments, generator) => {
|
|
|
13727
13727
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13728
13728
|
});
|
|
13729
13729
|
};
|
|
13730
|
-
const getEndUserIpAddress = () => __async$
|
|
13730
|
+
const getEndUserIpAddress = () => __async$X(void 0, null, function* () {
|
|
13731
13731
|
try {
|
|
13732
13732
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13733
13733
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13770,38 +13770,38 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13770
13770
|
return obj;
|
|
13771
13771
|
};
|
|
13772
13772
|
|
|
13773
|
-
var __defProp$
|
|
13774
|
-
var __defProps$
|
|
13775
|
-
var __getOwnPropDescs$
|
|
13776
|
-
var __getOwnPropSymbols$
|
|
13777
|
-
var __hasOwnProp$
|
|
13778
|
-
var __propIsEnum$
|
|
13779
|
-
var __defNormalProp$
|
|
13780
|
-
var __spreadValues$
|
|
13773
|
+
var __defProp$u = Object.defineProperty;
|
|
13774
|
+
var __defProps$o = Object.defineProperties;
|
|
13775
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
13776
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
13777
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
13778
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
13779
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13780
|
+
var __spreadValues$u = (a, b) => {
|
|
13781
13781
|
for (var prop in b || (b = {}))
|
|
13782
|
-
if (__hasOwnProp$
|
|
13783
|
-
__defNormalProp$
|
|
13784
|
-
if (__getOwnPropSymbols$
|
|
13785
|
-
for (var prop of __getOwnPropSymbols$
|
|
13786
|
-
if (__propIsEnum$
|
|
13787
|
-
__defNormalProp$
|
|
13782
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
13783
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
13784
|
+
if (__getOwnPropSymbols$F)
|
|
13785
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
13786
|
+
if (__propIsEnum$F.call(b, prop))
|
|
13787
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
13788
13788
|
}
|
|
13789
13789
|
return a;
|
|
13790
13790
|
};
|
|
13791
|
-
var __spreadProps$
|
|
13791
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
13792
13792
|
var __objRest$n = (source, exclude) => {
|
|
13793
13793
|
var target = {};
|
|
13794
13794
|
for (var prop in source)
|
|
13795
|
-
if (__hasOwnProp$
|
|
13795
|
+
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13796
13796
|
target[prop] = source[prop];
|
|
13797
|
-
if (source != null && __getOwnPropSymbols$
|
|
13798
|
-
for (var prop of __getOwnPropSymbols$
|
|
13799
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13797
|
+
if (source != null && __getOwnPropSymbols$F)
|
|
13798
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
13799
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
13800
13800
|
target[prop] = source[prop];
|
|
13801
13801
|
}
|
|
13802
13802
|
return target;
|
|
13803
13803
|
};
|
|
13804
|
-
var __async$
|
|
13804
|
+
var __async$W = (__this, __arguments, generator) => {
|
|
13805
13805
|
return new Promise((resolve, reject) => {
|
|
13806
13806
|
var fulfilled = (value) => {
|
|
13807
13807
|
try {
|
|
@@ -13841,12 +13841,12 @@ class CarriersAPI {
|
|
|
13841
13841
|
/**
|
|
13842
13842
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
13843
13843
|
*/
|
|
13844
|
-
this.connect = (_a) => __async$
|
|
13844
|
+
this.connect = (_a) => __async$W(this, null, function* () {
|
|
13845
13845
|
var _b = _a, { carrierCode } = _b, connection = __objRest$n(_b, ["carrierCode"]);
|
|
13846
13846
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13847
13847
|
if (!endUserIpAddress)
|
|
13848
13848
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13849
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13849
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$o(__spreadValues$u({}, connection), {
|
|
13850
13850
|
endUserIpAddress
|
|
13851
13851
|
}));
|
|
13852
13852
|
});
|
|
@@ -13932,7 +13932,7 @@ class CarriersAPI {
|
|
|
13932
13932
|
}
|
|
13933
13933
|
}
|
|
13934
13934
|
|
|
13935
|
-
var __async$
|
|
13935
|
+
var __async$V = (__this, __arguments, generator) => {
|
|
13936
13936
|
return new Promise((resolve, reject) => {
|
|
13937
13937
|
var fulfilled = (value) => {
|
|
13938
13938
|
try {
|
|
@@ -13974,7 +13974,7 @@ class ConnectionsAPI {
|
|
|
13974
13974
|
/**
|
|
13975
13975
|
* The `connectCarrier` method connects a carrier to account.
|
|
13976
13976
|
*/
|
|
13977
|
-
this.connectCarrier = (carrierName, formData) => __async$
|
|
13977
|
+
this.connectCarrier = (carrierName, formData) => __async$V(this, null, function* () {
|
|
13978
13978
|
return yield this.client.post(
|
|
13979
13979
|
`/v1/connections/carriers/${carrierName}`,
|
|
13980
13980
|
formData,
|
|
@@ -16149,23 +16149,23 @@ class CustomPackagesAPI {
|
|
|
16149
16149
|
}
|
|
16150
16150
|
}
|
|
16151
16151
|
|
|
16152
|
-
var __defProp$
|
|
16153
|
-
var __getOwnPropSymbols$
|
|
16154
|
-
var __hasOwnProp$
|
|
16155
|
-
var __propIsEnum$
|
|
16156
|
-
var __defNormalProp$
|
|
16157
|
-
var __spreadValues$
|
|
16152
|
+
var __defProp$t = Object.defineProperty;
|
|
16153
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
16154
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
16155
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
16156
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16157
|
+
var __spreadValues$t = (a, b) => {
|
|
16158
16158
|
for (var prop in b || (b = {}))
|
|
16159
|
-
if (__hasOwnProp$
|
|
16160
|
-
__defNormalProp$
|
|
16161
|
-
if (__getOwnPropSymbols$
|
|
16162
|
-
for (var prop of __getOwnPropSymbols$
|
|
16163
|
-
if (__propIsEnum$
|
|
16164
|
-
__defNormalProp$
|
|
16159
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
16160
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
16161
|
+
if (__getOwnPropSymbols$E)
|
|
16162
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
16163
|
+
if (__propIsEnum$E.call(b, prop))
|
|
16164
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
16165
16165
|
}
|
|
16166
16166
|
return a;
|
|
16167
16167
|
};
|
|
16168
|
-
var __async$
|
|
16168
|
+
var __async$U = (__this, __arguments, generator) => {
|
|
16169
16169
|
return new Promise((resolve, reject) => {
|
|
16170
16170
|
var fulfilled = (value) => {
|
|
16171
16171
|
try {
|
|
@@ -16204,12 +16204,12 @@ class FundingSourcesAPI {
|
|
|
16204
16204
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16205
16205
|
* payment information to be collected from the user.
|
|
16206
16206
|
*/
|
|
16207
|
-
this.create = (createFundingSource) => __async$
|
|
16207
|
+
this.create = (createFundingSource) => __async$U(this, null, function* () {
|
|
16208
16208
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16209
16209
|
if (!endUserIpAddress) {
|
|
16210
16210
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16211
16211
|
}
|
|
16212
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16212
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$t({
|
|
16213
16213
|
endUserIpAddress
|
|
16214
16214
|
}, createFundingSource));
|
|
16215
16215
|
});
|
|
@@ -16218,7 +16218,7 @@ class FundingSourcesAPI {
|
|
|
16218
16218
|
* user to update the billing address or payment information associated with the
|
|
16219
16219
|
* funding source.
|
|
16220
16220
|
*/
|
|
16221
|
-
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$
|
|
16221
|
+
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$U(this, null, function* () {
|
|
16222
16222
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16223
16223
|
if (!endUserIpAddress) {
|
|
16224
16224
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16236,19 +16236,19 @@ class FundingSourcesAPI {
|
|
|
16236
16236
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16237
16237
|
* it with a given funding source.
|
|
16238
16238
|
*/
|
|
16239
|
-
this.registerCarrier = (carrier) => __async$
|
|
16239
|
+
this.registerCarrier = (carrier) => __async$U(this, null, function* () {
|
|
16240
16240
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16241
16241
|
if (!endUserIpAddress) {
|
|
16242
16242
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16243
16243
|
}
|
|
16244
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16244
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$t({
|
|
16245
16245
|
endUserIpAddress
|
|
16246
16246
|
}, carrier));
|
|
16247
16247
|
});
|
|
16248
16248
|
/**
|
|
16249
16249
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16250
16250
|
*/
|
|
16251
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16251
|
+
this.addFunds = (amount, fundingSourceId) => __async$U(this, null, function* () {
|
|
16252
16252
|
return yield this.client.put(
|
|
16253
16253
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16254
16254
|
amount
|
|
@@ -16258,7 +16258,7 @@ class FundingSourcesAPI {
|
|
|
16258
16258
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16259
16259
|
* and attaching carriers
|
|
16260
16260
|
*/
|
|
16261
|
-
this.metadata = () => __async$
|
|
16261
|
+
this.metadata = () => __async$U(this, null, function* () {
|
|
16262
16262
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16263
16263
|
});
|
|
16264
16264
|
/**
|
|
@@ -16310,6 +16310,55 @@ class InsuranceAPI {
|
|
|
16310
16310
|
}
|
|
16311
16311
|
}
|
|
16312
16312
|
|
|
16313
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
16314
|
+
return new Promise((resolve, reject) => {
|
|
16315
|
+
var fulfilled = (value) => {
|
|
16316
|
+
try {
|
|
16317
|
+
step(generator.next(value));
|
|
16318
|
+
} catch (e) {
|
|
16319
|
+
reject(e);
|
|
16320
|
+
}
|
|
16321
|
+
};
|
|
16322
|
+
var rejected = (value) => {
|
|
16323
|
+
try {
|
|
16324
|
+
step(generator.throw(value));
|
|
16325
|
+
} catch (e) {
|
|
16326
|
+
reject(e);
|
|
16327
|
+
}
|
|
16328
|
+
};
|
|
16329
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
16330
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
16331
|
+
});
|
|
16332
|
+
};
|
|
16333
|
+
class InvoiceAddressAPI {
|
|
16334
|
+
constructor(client) {
|
|
16335
|
+
this.client = client;
|
|
16336
|
+
/**
|
|
16337
|
+
* The `get` method retrieves the invoice address for a given user.
|
|
16338
|
+
*/
|
|
16339
|
+
this.get = () => {
|
|
16340
|
+
return this.client.get("/v1/invoice_address");
|
|
16341
|
+
};
|
|
16342
|
+
/**
|
|
16343
|
+
* The `create` method creates a new invoice address for a given user.
|
|
16344
|
+
*/
|
|
16345
|
+
this.create = (invoiceAddress) => __async$T(this, null, function* () {
|
|
16346
|
+
return yield this.client.post("/v1/invoice_address", {
|
|
16347
|
+
invoiceAddress
|
|
16348
|
+
});
|
|
16349
|
+
});
|
|
16350
|
+
/**
|
|
16351
|
+
* The `update` method updates a invoice address for a given user.
|
|
16352
|
+
*/
|
|
16353
|
+
this.update = (invoiceAddress) => __async$T(this, null, function* () {
|
|
16354
|
+
return yield this.client.put("/v1/invoice_address", {
|
|
16355
|
+
invoiceAddress
|
|
16356
|
+
});
|
|
16357
|
+
});
|
|
16358
|
+
this.client = client;
|
|
16359
|
+
}
|
|
16360
|
+
}
|
|
16361
|
+
|
|
16313
16362
|
class LabelsAPI {
|
|
16314
16363
|
constructor(client) {
|
|
16315
16364
|
this.client = client;
|
|
@@ -16345,17 +16394,17 @@ class LabelsAPI {
|
|
|
16345
16394
|
}
|
|
16346
16395
|
}
|
|
16347
16396
|
|
|
16348
|
-
var __getOwnPropSymbols$
|
|
16349
|
-
var __hasOwnProp$
|
|
16350
|
-
var __propIsEnum$
|
|
16397
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
16398
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
16399
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
16351
16400
|
var __objRest$m = (source, exclude) => {
|
|
16352
16401
|
var target = {};
|
|
16353
16402
|
for (var prop in source)
|
|
16354
|
-
if (__hasOwnProp$
|
|
16403
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16355
16404
|
target[prop] = source[prop];
|
|
16356
|
-
if (source != null && __getOwnPropSymbols$
|
|
16357
|
-
for (var prop of __getOwnPropSymbols$
|
|
16358
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16405
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
16406
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
16407
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
16359
16408
|
target[prop] = source[prop];
|
|
16360
16409
|
}
|
|
16361
16410
|
return target;
|
|
@@ -16476,19 +16525,19 @@ class RateCardsAPI {
|
|
|
16476
16525
|
}
|
|
16477
16526
|
}
|
|
16478
16527
|
|
|
16479
|
-
var __defProp$
|
|
16480
|
-
var __getOwnPropSymbols$
|
|
16481
|
-
var __hasOwnProp$
|
|
16482
|
-
var __propIsEnum$
|
|
16483
|
-
var __defNormalProp$
|
|
16484
|
-
var __spreadValues$
|
|
16528
|
+
var __defProp$s = Object.defineProperty;
|
|
16529
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
16530
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
16531
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
16532
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16533
|
+
var __spreadValues$s = (a, b) => {
|
|
16485
16534
|
for (var prop in b || (b = {}))
|
|
16486
|
-
if (__hasOwnProp$
|
|
16487
|
-
__defNormalProp$
|
|
16488
|
-
if (__getOwnPropSymbols$
|
|
16489
|
-
for (var prop of __getOwnPropSymbols$
|
|
16490
|
-
if (__propIsEnum$
|
|
16491
|
-
__defNormalProp$
|
|
16535
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
16536
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
16537
|
+
if (__getOwnPropSymbols$C)
|
|
16538
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
16539
|
+
if (__propIsEnum$C.call(b, prop))
|
|
16540
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
16492
16541
|
}
|
|
16493
16542
|
return a;
|
|
16494
16543
|
};
|
|
@@ -16510,7 +16559,7 @@ class RatesAPI {
|
|
|
16510
16559
|
* method.
|
|
16511
16560
|
*/
|
|
16512
16561
|
this.estimate = (params) => {
|
|
16513
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16562
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$s({}, params));
|
|
16514
16563
|
};
|
|
16515
16564
|
this.client = client;
|
|
16516
16565
|
}
|
|
@@ -16522,10 +16571,14 @@ class SalesOrderShipmentsAPI {
|
|
|
16522
16571
|
/**
|
|
16523
16572
|
* The `list` method retrieves a list of sales order shipments for a given user.
|
|
16524
16573
|
*/
|
|
16525
|
-
this.list = (body
|
|
16526
|
-
return this.client.post("/v-beta/shipments/list", body
|
|
16527
|
-
|
|
16528
|
-
|
|
16574
|
+
this.list = (body) => {
|
|
16575
|
+
return this.client.post("/v-beta/shipments/list", body);
|
|
16576
|
+
};
|
|
16577
|
+
/**
|
|
16578
|
+
* The `listShipmentsByExternalOrderId` method retrieves a list of shipments associated to a sales order that matches `externalOrderId`
|
|
16579
|
+
*/
|
|
16580
|
+
this.listShipmentsByExternalOrderId = (externalOrderId) => {
|
|
16581
|
+
return this.client.get(`/v-beta/shipments/external_order_id/${externalOrderId}`);
|
|
16529
16582
|
};
|
|
16530
16583
|
/**
|
|
16531
16584
|
* The `get` method retrieves a specific sales order shipment by `shipmentId`.
|
|
@@ -16567,6 +16620,13 @@ class SalesOrdersAPI {
|
|
|
16567
16620
|
this.get = (salesOrderId) => {
|
|
16568
16621
|
return this.client.get(`/v-beta/sales_orders/${salesOrderId}`);
|
|
16569
16622
|
};
|
|
16623
|
+
/**
|
|
16624
|
+
* The `getByExternalId` method retrieves a specific sales order by its `externalOrderId`.
|
|
16625
|
+
* @param externalOrderId Id that matches that of the desired sales order.
|
|
16626
|
+
*/
|
|
16627
|
+
this.getByExternalId = (externalOrderId) => {
|
|
16628
|
+
return this.client.get(`/v-beta/sales_orders/external_order_id/${externalOrderId}`);
|
|
16629
|
+
};
|
|
16570
16630
|
/**
|
|
16571
16631
|
* The `notifyShipped` method notifies order source that the order has been
|
|
16572
16632
|
* shipped. Typically, the order source will then notify the user based on
|
|
@@ -16579,7 +16639,7 @@ class SalesOrdersAPI {
|
|
|
16579
16639
|
}
|
|
16580
16640
|
}
|
|
16581
16641
|
|
|
16582
|
-
var __async$
|
|
16642
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
16583
16643
|
return new Promise((resolve, reject) => {
|
|
16584
16644
|
var fulfilled = (value) => {
|
|
16585
16645
|
try {
|
|
@@ -16637,7 +16697,7 @@ class SellersAPI {
|
|
|
16637
16697
|
/**
|
|
16638
16698
|
* Deletes an API Key
|
|
16639
16699
|
*/
|
|
16640
|
-
this.deleteSellerApiKey = (_0) => __async$
|
|
16700
|
+
this.deleteSellerApiKey = (_0) => __async$S(this, [_0], function* ({
|
|
16641
16701
|
encryptedApiKey,
|
|
16642
16702
|
sellerId,
|
|
16643
16703
|
isSandbox
|
|
@@ -16683,19 +16743,19 @@ class SellersAPI {
|
|
|
16683
16743
|
}
|
|
16684
16744
|
}
|
|
16685
16745
|
|
|
16686
|
-
var __defProp$
|
|
16687
|
-
var __getOwnPropSymbols$
|
|
16688
|
-
var __hasOwnProp$
|
|
16689
|
-
var __propIsEnum$
|
|
16690
|
-
var __defNormalProp$
|
|
16691
|
-
var __spreadValues$
|
|
16746
|
+
var __defProp$r = Object.defineProperty;
|
|
16747
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
16748
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
16749
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
16750
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16751
|
+
var __spreadValues$r = (a, b) => {
|
|
16692
16752
|
for (var prop in b || (b = {}))
|
|
16693
|
-
if (__hasOwnProp$
|
|
16694
|
-
__defNormalProp$
|
|
16695
|
-
if (__getOwnPropSymbols$
|
|
16696
|
-
for (var prop of __getOwnPropSymbols$
|
|
16697
|
-
if (__propIsEnum$
|
|
16698
|
-
__defNormalProp$
|
|
16753
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
16754
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
16755
|
+
if (__getOwnPropSymbols$B)
|
|
16756
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
16757
|
+
if (__propIsEnum$B.call(b, prop))
|
|
16758
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
16699
16759
|
}
|
|
16700
16760
|
return a;
|
|
16701
16761
|
};
|
|
@@ -16707,7 +16767,7 @@ class ServicePointsAPI {
|
|
|
16707
16767
|
* Either an address, coordinates, or an address query
|
|
16708
16768
|
*/
|
|
16709
16769
|
this.list = (options) => {
|
|
16710
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16770
|
+
return this.client.post("/v1/service_points/list", __spreadValues$r({}, options));
|
|
16711
16771
|
};
|
|
16712
16772
|
/**
|
|
16713
16773
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -16725,7 +16785,7 @@ class ServicePointsAPI {
|
|
|
16725
16785
|
}
|
|
16726
16786
|
}
|
|
16727
16787
|
|
|
16728
|
-
var __async$
|
|
16788
|
+
var __async$R = (__this, __arguments, generator) => {
|
|
16729
16789
|
return new Promise((resolve, reject) => {
|
|
16730
16790
|
var fulfilled = (value) => {
|
|
16731
16791
|
try {
|
|
@@ -16774,7 +16834,7 @@ class ShipmentsAPI {
|
|
|
16774
16834
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
16775
16835
|
* items passed into this method.
|
|
16776
16836
|
*/
|
|
16777
|
-
this.create = (...shipments) => __async$
|
|
16837
|
+
this.create = (...shipments) => __async$R(this, null, function* () {
|
|
16778
16838
|
return this.client.post("/v1/shipments", {
|
|
16779
16839
|
shipments
|
|
16780
16840
|
});
|
|
@@ -34166,26 +34226,26 @@ class WebhooksAPI {
|
|
|
34166
34226
|
}
|
|
34167
34227
|
}
|
|
34168
34228
|
|
|
34169
|
-
var __defProp$
|
|
34170
|
-
var __defProps$
|
|
34171
|
-
var __getOwnPropDescs$
|
|
34172
|
-
var __getOwnPropSymbols$
|
|
34173
|
-
var __hasOwnProp$
|
|
34174
|
-
var __propIsEnum$
|
|
34175
|
-
var __defNormalProp$
|
|
34176
|
-
var __spreadValues$
|
|
34229
|
+
var __defProp$q = Object.defineProperty;
|
|
34230
|
+
var __defProps$n = Object.defineProperties;
|
|
34231
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
34232
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
34233
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
34234
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
34235
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34236
|
+
var __spreadValues$q = (a, b) => {
|
|
34177
34237
|
for (var prop in b || (b = {}))
|
|
34178
|
-
if (__hasOwnProp$
|
|
34179
|
-
__defNormalProp$
|
|
34180
|
-
if (__getOwnPropSymbols$
|
|
34181
|
-
for (var prop of __getOwnPropSymbols$
|
|
34182
|
-
if (__propIsEnum$
|
|
34183
|
-
__defNormalProp$
|
|
34238
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
34239
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
34240
|
+
if (__getOwnPropSymbols$A)
|
|
34241
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
34242
|
+
if (__propIsEnum$A.call(b, prop))
|
|
34243
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
34184
34244
|
}
|
|
34185
34245
|
return a;
|
|
34186
34246
|
};
|
|
34187
|
-
var __spreadProps$
|
|
34188
|
-
var __async$
|
|
34247
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
34248
|
+
var __async$Q = (__this, __arguments, generator) => {
|
|
34189
34249
|
return new Promise((resolve, reject) => {
|
|
34190
34250
|
var fulfilled = (value) => {
|
|
34191
34251
|
try {
|
|
@@ -34208,7 +34268,7 @@ var __async$O = (__this, __arguments, generator) => {
|
|
|
34208
34268
|
const logger$1 = E({
|
|
34209
34269
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34210
34270
|
name: "shipengine-api",
|
|
34211
|
-
serializers: __spreadProps$
|
|
34271
|
+
serializers: __spreadProps$n(__spreadValues$q({}, k), {
|
|
34212
34272
|
req: (req) => ({
|
|
34213
34273
|
headers: req.headers,
|
|
34214
34274
|
method: req.method,
|
|
@@ -34233,7 +34293,7 @@ class ShipEngineAPI {
|
|
|
34233
34293
|
this.getSandboxToken = getSandboxToken;
|
|
34234
34294
|
const client = axios.create({
|
|
34235
34295
|
baseURL,
|
|
34236
|
-
headers: __spreadProps$
|
|
34296
|
+
headers: __spreadProps$n(__spreadValues$q({}, headers), {
|
|
34237
34297
|
"Content-Type": "application/json"
|
|
34238
34298
|
}),
|
|
34239
34299
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34268,7 +34328,7 @@ class ShipEngineAPI {
|
|
|
34268
34328
|
});
|
|
34269
34329
|
client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
|
|
34270
34330
|
client.interceptors.request.use(
|
|
34271
|
-
(config) => __async$
|
|
34331
|
+
(config) => __async$Q(this, null, function* () {
|
|
34272
34332
|
if (config.isSandbox) {
|
|
34273
34333
|
if (!this.sandboxToken) {
|
|
34274
34334
|
this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
|
|
@@ -34295,7 +34355,7 @@ class ShipEngineAPI {
|
|
|
34295
34355
|
);
|
|
34296
34356
|
return res;
|
|
34297
34357
|
},
|
|
34298
|
-
(err) => __async$
|
|
34358
|
+
(err) => __async$Q(this, null, function* () {
|
|
34299
34359
|
var _a, _b, _c, _d, _e;
|
|
34300
34360
|
logger$1.error(
|
|
34301
34361
|
{ err, req: err.config, res: err.response },
|
|
@@ -34342,7 +34402,7 @@ class ShipEngineAPI {
|
|
|
34342
34402
|
* that token (also known as Seller ID)
|
|
34343
34403
|
*/
|
|
34344
34404
|
getTenant(isSandbox) {
|
|
34345
|
-
return __async$
|
|
34405
|
+
return __async$Q(this, null, function* () {
|
|
34346
34406
|
var _a;
|
|
34347
34407
|
if (!isSandbox) {
|
|
34348
34408
|
return this.getTenantFromToken(this.token);
|
|
@@ -34433,6 +34493,15 @@ class ShipEngineAPI {
|
|
|
34433
34493
|
get insurance() {
|
|
34434
34494
|
return new InsuranceAPI(this.client);
|
|
34435
34495
|
}
|
|
34496
|
+
/**
|
|
34497
|
+
* The `invoiceAddress` method provides access to the Invoice Address endpoints
|
|
34498
|
+
* in ShipEngine API.
|
|
34499
|
+
*
|
|
34500
|
+
* @see {@link InvoiceAddress | The Invoice Address API module}
|
|
34501
|
+
*/
|
|
34502
|
+
get invoiceAddress() {
|
|
34503
|
+
return new InvoiceAddressAPI(this.client);
|
|
34504
|
+
}
|
|
34436
34505
|
/**
|
|
34437
34506
|
* The `labels` method provides access to the Label endpoints in ShipEngine API.
|
|
34438
34507
|
* e.g. Create Label, Get Label, Void Label, etc.
|
|
@@ -34612,25 +34681,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34612
34681
|
|
|
34613
34682
|
const onError = (_errors) => _default();
|
|
34614
34683
|
|
|
34615
|
-
var __defProp$
|
|
34616
|
-
var __defProps$
|
|
34617
|
-
var __getOwnPropDescs$
|
|
34618
|
-
var __getOwnPropSymbols$
|
|
34619
|
-
var __hasOwnProp$
|
|
34620
|
-
var __propIsEnum$
|
|
34621
|
-
var __defNormalProp$
|
|
34622
|
-
var __spreadValues$
|
|
34684
|
+
var __defProp$p = Object.defineProperty;
|
|
34685
|
+
var __defProps$m = Object.defineProperties;
|
|
34686
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
34687
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
34688
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
34689
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
34690
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34691
|
+
var __spreadValues$p = (a, b) => {
|
|
34623
34692
|
for (var prop in b || (b = {}))
|
|
34624
|
-
if (__hasOwnProp$
|
|
34625
|
-
__defNormalProp$
|
|
34626
|
-
if (__getOwnPropSymbols$
|
|
34627
|
-
for (var prop of __getOwnPropSymbols$
|
|
34628
|
-
if (__propIsEnum$
|
|
34629
|
-
__defNormalProp$
|
|
34693
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
34694
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
34695
|
+
if (__getOwnPropSymbols$z)
|
|
34696
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
34697
|
+
if (__propIsEnum$z.call(b, prop))
|
|
34698
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
34630
34699
|
}
|
|
34631
34700
|
return a;
|
|
34632
34701
|
};
|
|
34633
|
-
var __spreadProps$
|
|
34702
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
34634
34703
|
const streams = [];
|
|
34635
34704
|
if (process.env.NODE_ENV === "production") {
|
|
34636
34705
|
streams.push({
|
|
@@ -34639,7 +34708,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34639
34708
|
}
|
|
34640
34709
|
const logger = E({
|
|
34641
34710
|
name: "shipengine",
|
|
34642
|
-
serializers: __spreadProps$
|
|
34711
|
+
serializers: __spreadProps$m(__spreadValues$p({}, k), {
|
|
34643
34712
|
req: (req) => ({
|
|
34644
34713
|
headers: req.headers,
|
|
34645
34714
|
method: req.method,
|
|
@@ -34664,7 +34733,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
34664
34733
|
throw error;
|
|
34665
34734
|
});
|
|
34666
34735
|
|
|
34667
|
-
var __async$
|
|
34736
|
+
var __async$P = (__this, __arguments, generator) => {
|
|
34668
34737
|
return new Promise((resolve, reject) => {
|
|
34669
34738
|
var fulfilled = (value) => {
|
|
34670
34739
|
try {
|
|
@@ -34687,7 +34756,7 @@ var __async$N = (__this, __arguments, generator) => {
|
|
|
34687
34756
|
const useCreateAccountImage = () => {
|
|
34688
34757
|
const { client } = useShipEngine();
|
|
34689
34758
|
return reactQuery.useMutation({
|
|
34690
|
-
mutationFn: (data) => __async$
|
|
34759
|
+
mutationFn: (data) => __async$P(void 0, null, function* () {
|
|
34691
34760
|
const result = yield client.accountSettings.createImage(data);
|
|
34692
34761
|
return result.data;
|
|
34693
34762
|
}),
|
|
@@ -34696,7 +34765,7 @@ const useCreateAccountImage = () => {
|
|
|
34696
34765
|
});
|
|
34697
34766
|
};
|
|
34698
34767
|
|
|
34699
|
-
var __async$
|
|
34768
|
+
var __async$O = (__this, __arguments, generator) => {
|
|
34700
34769
|
return new Promise((resolve, reject) => {
|
|
34701
34770
|
var fulfilled = (value) => {
|
|
34702
34771
|
try {
|
|
@@ -34719,7 +34788,7 @@ var __async$M = (__this, __arguments, generator) => {
|
|
|
34719
34788
|
const useDeleteAccountImage = () => {
|
|
34720
34789
|
const { client } = useShipEngine();
|
|
34721
34790
|
return reactQuery.useMutation({
|
|
34722
|
-
mutationFn: (labelImageId) => __async$
|
|
34791
|
+
mutationFn: (labelImageId) => __async$O(void 0, null, function* () {
|
|
34723
34792
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
34724
34793
|
return result.data;
|
|
34725
34794
|
}),
|
|
@@ -34748,7 +34817,7 @@ const useGetAccountSettings = () => {
|
|
|
34748
34817
|
});
|
|
34749
34818
|
};
|
|
34750
34819
|
|
|
34751
|
-
var __async$
|
|
34820
|
+
var __async$N = (__this, __arguments, generator) => {
|
|
34752
34821
|
return new Promise((resolve, reject) => {
|
|
34753
34822
|
var fulfilled = (value) => {
|
|
34754
34823
|
try {
|
|
@@ -34771,7 +34840,7 @@ var __async$L = (__this, __arguments, generator) => {
|
|
|
34771
34840
|
const useUpdateAccountImage = () => {
|
|
34772
34841
|
const { client } = useShipEngine();
|
|
34773
34842
|
return reactQuery.useMutation({
|
|
34774
|
-
mutationFn: (data) => __async$
|
|
34843
|
+
mutationFn: (data) => __async$N(void 0, null, function* () {
|
|
34775
34844
|
const result = yield client.accountSettings.updateImage(data);
|
|
34776
34845
|
return result.data;
|
|
34777
34846
|
}),
|
|
@@ -34780,7 +34849,7 @@ const useUpdateAccountImage = () => {
|
|
|
34780
34849
|
});
|
|
34781
34850
|
};
|
|
34782
34851
|
|
|
34783
|
-
var __async$
|
|
34852
|
+
var __async$M = (__this, __arguments, generator) => {
|
|
34784
34853
|
return new Promise((resolve, reject) => {
|
|
34785
34854
|
var fulfilled = (value) => {
|
|
34786
34855
|
try {
|
|
@@ -34803,7 +34872,7 @@ var __async$K = (__this, __arguments, generator) => {
|
|
|
34803
34872
|
const useUpdateAccountSettings = () => {
|
|
34804
34873
|
const { client } = useShipEngine();
|
|
34805
34874
|
return reactQuery.useMutation({
|
|
34806
|
-
mutationFn: (settings) => __async$
|
|
34875
|
+
mutationFn: (settings) => __async$M(void 0, null, function* () {
|
|
34807
34876
|
const result = yield client.accountSettings.update(settings);
|
|
34808
34877
|
return result.data;
|
|
34809
34878
|
}),
|
|
@@ -34812,7 +34881,7 @@ const useUpdateAccountSettings = () => {
|
|
|
34812
34881
|
});
|
|
34813
34882
|
};
|
|
34814
34883
|
|
|
34815
|
-
var __async$
|
|
34884
|
+
var __async$L = (__this, __arguments, generator) => {
|
|
34816
34885
|
return new Promise((resolve, reject) => {
|
|
34817
34886
|
var fulfilled = (value) => {
|
|
34818
34887
|
try {
|
|
@@ -34835,7 +34904,7 @@ var __async$J = (__this, __arguments, generator) => {
|
|
|
34835
34904
|
const useParseAddress = () => {
|
|
34836
34905
|
const { client } = useShipEngine();
|
|
34837
34906
|
return reactQuery.useMutation({
|
|
34838
|
-
mutationFn: (_0) => __async$
|
|
34907
|
+
mutationFn: (_0) => __async$L(void 0, [_0], function* ({ address, text }) {
|
|
34839
34908
|
const result = yield client.addresses.parse(text, address);
|
|
34840
34909
|
return result.data;
|
|
34841
34910
|
}),
|
|
@@ -34844,7 +34913,7 @@ const useParseAddress = () => {
|
|
|
34844
34913
|
});
|
|
34845
34914
|
};
|
|
34846
34915
|
|
|
34847
|
-
var __async$
|
|
34916
|
+
var __async$K = (__this, __arguments, generator) => {
|
|
34848
34917
|
return new Promise((resolve, reject) => {
|
|
34849
34918
|
var fulfilled = (value) => {
|
|
34850
34919
|
try {
|
|
@@ -34867,7 +34936,7 @@ var __async$I = (__this, __arguments, generator) => {
|
|
|
34867
34936
|
const useValidateAddresses = () => {
|
|
34868
34937
|
const { client } = useShipEngine();
|
|
34869
34938
|
return reactQuery.useMutation({
|
|
34870
|
-
mutationFn: (addresses) => __async$
|
|
34939
|
+
mutationFn: (addresses) => __async$K(void 0, null, function* () {
|
|
34871
34940
|
const result = yield client.addresses.validate(addresses);
|
|
34872
34941
|
return result.data;
|
|
34873
34942
|
}),
|
|
@@ -34876,7 +34945,7 @@ const useValidateAddresses = () => {
|
|
|
34876
34945
|
});
|
|
34877
34946
|
};
|
|
34878
34947
|
|
|
34879
|
-
var __async$
|
|
34948
|
+
var __async$J = (__this, __arguments, generator) => {
|
|
34880
34949
|
return new Promise((resolve, reject) => {
|
|
34881
34950
|
var fulfilled = (value) => {
|
|
34882
34951
|
try {
|
|
@@ -34899,7 +34968,7 @@ var __async$H = (__this, __arguments, generator) => {
|
|
|
34899
34968
|
const useAddFunds = () => {
|
|
34900
34969
|
const { client } = useShipEngine();
|
|
34901
34970
|
return reactQuery.useMutation({
|
|
34902
|
-
mutationFn: (_0) => __async$
|
|
34971
|
+
mutationFn: (_0) => __async$J(void 0, [_0], function* ({ carrierId, funds }) {
|
|
34903
34972
|
const result = yield client.carriers.addFunds(carrierId, funds);
|
|
34904
34973
|
return result.data;
|
|
34905
34974
|
}),
|
|
@@ -34908,7 +34977,7 @@ const useAddFunds = () => {
|
|
|
34908
34977
|
});
|
|
34909
34978
|
};
|
|
34910
34979
|
|
|
34911
|
-
var __async$
|
|
34980
|
+
var __async$I = (__this, __arguments, generator) => {
|
|
34912
34981
|
return new Promise((resolve, reject) => {
|
|
34913
34982
|
var fulfilled = (value) => {
|
|
34914
34983
|
try {
|
|
@@ -34931,7 +35000,7 @@ var __async$G = (__this, __arguments, generator) => {
|
|
|
34931
35000
|
const useConnectCarrier = () => {
|
|
34932
35001
|
const { client } = useShipEngine();
|
|
34933
35002
|
return reactQuery.useMutation({
|
|
34934
|
-
mutationFn: (params) => __async$
|
|
35003
|
+
mutationFn: (params) => __async$I(void 0, null, function* () {
|
|
34935
35004
|
const result = yield client.carriers.connect(params);
|
|
34936
35005
|
return result.data;
|
|
34937
35006
|
}),
|
|
@@ -35040,41 +35109,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
35040
35109
|
});
|
|
35041
35110
|
};
|
|
35042
35111
|
|
|
35043
|
-
var __defProp$
|
|
35044
|
-
var __defProps$
|
|
35045
|
-
var __getOwnPropDescs$
|
|
35046
|
-
var __getOwnPropSymbols$
|
|
35047
|
-
var __hasOwnProp$
|
|
35048
|
-
var __propIsEnum$
|
|
35049
|
-
var __defNormalProp$
|
|
35050
|
-
var __spreadValues$
|
|
35112
|
+
var __defProp$o = Object.defineProperty;
|
|
35113
|
+
var __defProps$l = Object.defineProperties;
|
|
35114
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
35115
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
35116
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
35117
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
35118
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35119
|
+
var __spreadValues$o = (a, b) => {
|
|
35051
35120
|
for (var prop in b || (b = {}))
|
|
35052
|
-
if (__hasOwnProp$
|
|
35053
|
-
__defNormalProp$
|
|
35054
|
-
if (__getOwnPropSymbols$
|
|
35055
|
-
for (var prop of __getOwnPropSymbols$
|
|
35056
|
-
if (__propIsEnum$
|
|
35057
|
-
__defNormalProp$
|
|
35121
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
35122
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
35123
|
+
if (__getOwnPropSymbols$y)
|
|
35124
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
35125
|
+
if (__propIsEnum$y.call(b, prop))
|
|
35126
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
35058
35127
|
}
|
|
35059
35128
|
return a;
|
|
35060
35129
|
};
|
|
35061
|
-
var __spreadProps$
|
|
35130
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
35062
35131
|
var __objRest$l = (source, exclude) => {
|
|
35063
35132
|
var target = {};
|
|
35064
35133
|
for (var prop in source)
|
|
35065
|
-
if (__hasOwnProp$
|
|
35134
|
+
if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35066
35135
|
target[prop] = source[prop];
|
|
35067
|
-
if (source != null && __getOwnPropSymbols$
|
|
35068
|
-
for (var prop of __getOwnPropSymbols$
|
|
35069
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35136
|
+
if (source != null && __getOwnPropSymbols$y)
|
|
35137
|
+
for (var prop of __getOwnPropSymbols$y(source)) {
|
|
35138
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
|
|
35070
35139
|
target[prop] = source[prop];
|
|
35071
35140
|
}
|
|
35072
35141
|
return target;
|
|
35073
35142
|
};
|
|
35074
35143
|
const useListCarriers = (params) => {
|
|
35075
35144
|
const { client } = useShipEngine();
|
|
35076
|
-
const _a = __spreadValues$
|
|
35077
|
-
return reactQuery.useQuery(__spreadProps$
|
|
35145
|
+
const _a = __spreadValues$o({}, params), { queryFnParams } = _a, rest = __objRest$l(_a, ["queryFnParams"]);
|
|
35146
|
+
return reactQuery.useQuery(__spreadProps$l(__spreadValues$o({}, rest), {
|
|
35078
35147
|
onError,
|
|
35079
35148
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
35080
35149
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -35082,22 +35151,22 @@ const useListCarriers = (params) => {
|
|
|
35082
35151
|
}));
|
|
35083
35152
|
};
|
|
35084
35153
|
|
|
35085
|
-
var __getOwnPropSymbols$
|
|
35086
|
-
var __hasOwnProp$
|
|
35087
|
-
var __propIsEnum$
|
|
35154
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
35155
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
35156
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
35088
35157
|
var __objRest$k = (source, exclude) => {
|
|
35089
35158
|
var target = {};
|
|
35090
35159
|
for (var prop in source)
|
|
35091
|
-
if (__hasOwnProp$
|
|
35160
|
+
if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35092
35161
|
target[prop] = source[prop];
|
|
35093
|
-
if (source != null && __getOwnPropSymbols$
|
|
35094
|
-
for (var prop of __getOwnPropSymbols$
|
|
35095
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35162
|
+
if (source != null && __getOwnPropSymbols$x)
|
|
35163
|
+
for (var prop of __getOwnPropSymbols$x(source)) {
|
|
35164
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
|
|
35096
35165
|
target[prop] = source[prop];
|
|
35097
35166
|
}
|
|
35098
35167
|
return target;
|
|
35099
35168
|
};
|
|
35100
|
-
var __async$
|
|
35169
|
+
var __async$H = (__this, __arguments, generator) => {
|
|
35101
35170
|
return new Promise((resolve, reject) => {
|
|
35102
35171
|
var fulfilled = (value) => {
|
|
35103
35172
|
try {
|
|
@@ -35121,7 +35190,7 @@ const useUpdateAutoFunding = () => {
|
|
|
35121
35190
|
const { client } = useShipEngine();
|
|
35122
35191
|
const queryClient = reactQuery.useQueryClient();
|
|
35123
35192
|
return reactQuery.useMutation({
|
|
35124
|
-
mutationFn: (_a) => __async$
|
|
35193
|
+
mutationFn: (_a) => __async$H(void 0, null, function* () {
|
|
35125
35194
|
var _b = _a, { carrierId } = _b, options = __objRest$k(_b, ["carrierId"]);
|
|
35126
35195
|
const result = yield client.carriers.updateAutoFunding(carrierId, options);
|
|
35127
35196
|
return result.data;
|
|
@@ -35151,7 +35220,7 @@ const useGetZonesByCarrier = (carrierId) => {
|
|
|
35151
35220
|
});
|
|
35152
35221
|
};
|
|
35153
35222
|
|
|
35154
|
-
var __async$
|
|
35223
|
+
var __async$G = (__this, __arguments, generator) => {
|
|
35155
35224
|
return new Promise((resolve, reject) => {
|
|
35156
35225
|
var fulfilled = (value) => {
|
|
35157
35226
|
try {
|
|
@@ -35174,7 +35243,7 @@ var __async$E = (__this, __arguments, generator) => {
|
|
|
35174
35243
|
const useDeleteCarrier = () => {
|
|
35175
35244
|
const { client } = useShipEngine();
|
|
35176
35245
|
return reactQuery.useMutation({
|
|
35177
|
-
mutationFn: (carrierId) => __async$
|
|
35246
|
+
mutationFn: (carrierId) => __async$G(void 0, null, function* () {
|
|
35178
35247
|
const result = yield client.carriers.delete(carrierId);
|
|
35179
35248
|
return result.data;
|
|
35180
35249
|
}),
|
|
@@ -35183,17 +35252,17 @@ const useDeleteCarrier = () => {
|
|
|
35183
35252
|
});
|
|
35184
35253
|
};
|
|
35185
35254
|
|
|
35186
|
-
var __getOwnPropSymbols$
|
|
35187
|
-
var __hasOwnProp$
|
|
35188
|
-
var __propIsEnum$
|
|
35255
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
35256
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
35257
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
35189
35258
|
var __objRest$j = (source, exclude) => {
|
|
35190
35259
|
var target = {};
|
|
35191
35260
|
for (var prop in source)
|
|
35192
|
-
if (__hasOwnProp$
|
|
35261
|
+
if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35193
35262
|
target[prop] = source[prop];
|
|
35194
|
-
if (source != null && __getOwnPropSymbols$
|
|
35195
|
-
for (var prop of __getOwnPropSymbols$
|
|
35196
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35263
|
+
if (source != null && __getOwnPropSymbols$w)
|
|
35264
|
+
for (var prop of __getOwnPropSymbols$w(source)) {
|
|
35265
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
|
|
35197
35266
|
target[prop] = source[prop];
|
|
35198
35267
|
}
|
|
35199
35268
|
return target;
|
|
@@ -35210,17 +35279,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
35210
35279
|
});
|
|
35211
35280
|
};
|
|
35212
35281
|
|
|
35213
|
-
var __getOwnPropSymbols$
|
|
35214
|
-
var __hasOwnProp$
|
|
35215
|
-
var __propIsEnum$
|
|
35282
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
35283
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
35284
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
35216
35285
|
var __objRest$i = (source, exclude) => {
|
|
35217
35286
|
var target = {};
|
|
35218
35287
|
for (var prop in source)
|
|
35219
|
-
if (__hasOwnProp$
|
|
35288
|
+
if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35220
35289
|
target[prop] = source[prop];
|
|
35221
|
-
if (source != null && __getOwnPropSymbols$
|
|
35222
|
-
for (var prop of __getOwnPropSymbols$
|
|
35223
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35290
|
+
if (source != null && __getOwnPropSymbols$v)
|
|
35291
|
+
for (var prop of __getOwnPropSymbols$v(source)) {
|
|
35292
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
|
|
35224
35293
|
target[prop] = source[prop];
|
|
35225
35294
|
}
|
|
35226
35295
|
return target;
|
|
@@ -35237,7 +35306,7 @@ const useListCarrierConnections = (_params) => {
|
|
|
35237
35306
|
});
|
|
35238
35307
|
};
|
|
35239
35308
|
|
|
35240
|
-
var __async$
|
|
35309
|
+
var __async$F = (__this, __arguments, generator) => {
|
|
35241
35310
|
return new Promise((resolve, reject) => {
|
|
35242
35311
|
var fulfilled = (value) => {
|
|
35243
35312
|
try {
|
|
@@ -35260,7 +35329,7 @@ var __async$D = (__this, __arguments, generator) => {
|
|
|
35260
35329
|
const useConnectCarrierAccount = () => {
|
|
35261
35330
|
const { client } = useShipEngine();
|
|
35262
35331
|
return reactQuery.useMutation({
|
|
35263
|
-
mutationFn: (_0) => __async$
|
|
35332
|
+
mutationFn: (_0) => __async$F(void 0, [_0], function* ({ carrierName, formData }) {
|
|
35264
35333
|
const result = yield client.connections.connectCarrier(carrierName, formData);
|
|
35265
35334
|
return result.data;
|
|
35266
35335
|
}),
|
|
@@ -35280,33 +35349,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
35280
35349
|
});
|
|
35281
35350
|
};
|
|
35282
35351
|
|
|
35283
|
-
var __defProp$
|
|
35284
|
-
var __defProps$
|
|
35285
|
-
var __getOwnPropDescs$
|
|
35286
|
-
var __getOwnPropSymbols$
|
|
35287
|
-
var __hasOwnProp$
|
|
35288
|
-
var __propIsEnum$
|
|
35289
|
-
var __defNormalProp$
|
|
35290
|
-
var __spreadValues$
|
|
35352
|
+
var __defProp$n = Object.defineProperty;
|
|
35353
|
+
var __defProps$k = Object.defineProperties;
|
|
35354
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
35355
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
35356
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
35357
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
35358
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35359
|
+
var __spreadValues$n = (a, b) => {
|
|
35291
35360
|
for (var prop in b || (b = {}))
|
|
35292
|
-
if (__hasOwnProp$
|
|
35293
|
-
__defNormalProp$
|
|
35294
|
-
if (__getOwnPropSymbols$
|
|
35295
|
-
for (var prop of __getOwnPropSymbols$
|
|
35296
|
-
if (__propIsEnum$
|
|
35297
|
-
__defNormalProp$
|
|
35361
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
35362
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
35363
|
+
if (__getOwnPropSymbols$u)
|
|
35364
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
35365
|
+
if (__propIsEnum$u.call(b, prop))
|
|
35366
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
35298
35367
|
}
|
|
35299
35368
|
return a;
|
|
35300
35369
|
};
|
|
35301
|
-
var __spreadProps$
|
|
35370
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
35302
35371
|
var __objRest$h = (source, exclude) => {
|
|
35303
35372
|
var target = {};
|
|
35304
35373
|
for (var prop in source)
|
|
35305
|
-
if (__hasOwnProp$
|
|
35374
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35306
35375
|
target[prop] = source[prop];
|
|
35307
|
-
if (source != null && __getOwnPropSymbols$
|
|
35308
|
-
for (var prop of __getOwnPropSymbols$
|
|
35309
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35376
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
35377
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
35378
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
35310
35379
|
target[prop] = source[prop];
|
|
35311
35380
|
}
|
|
35312
35381
|
return target;
|
|
@@ -35319,7 +35388,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35319
35388
|
]);
|
|
35320
35389
|
const { client } = useShipEngine();
|
|
35321
35390
|
const { carrierName, carrierId } = queryFnParams;
|
|
35322
|
-
return reactQuery.useQuery(__spreadProps$
|
|
35391
|
+
return reactQuery.useQuery(__spreadProps$k(__spreadValues$n({}, params), {
|
|
35323
35392
|
onError,
|
|
35324
35393
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
35325
35394
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -35327,26 +35396,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35327
35396
|
}));
|
|
35328
35397
|
};
|
|
35329
35398
|
|
|
35330
|
-
var __defProp$
|
|
35331
|
-
var __defProps$
|
|
35332
|
-
var __getOwnPropDescs$
|
|
35333
|
-
var __getOwnPropSymbols$
|
|
35334
|
-
var __hasOwnProp$
|
|
35335
|
-
var __propIsEnum$
|
|
35336
|
-
var __defNormalProp$
|
|
35337
|
-
var __spreadValues$
|
|
35399
|
+
var __defProp$m = Object.defineProperty;
|
|
35400
|
+
var __defProps$j = Object.defineProperties;
|
|
35401
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
35402
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
35403
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
35404
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
35405
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35406
|
+
var __spreadValues$m = (a, b) => {
|
|
35338
35407
|
for (var prop in b || (b = {}))
|
|
35339
|
-
if (__hasOwnProp$
|
|
35340
|
-
__defNormalProp$
|
|
35341
|
-
if (__getOwnPropSymbols$
|
|
35342
|
-
for (var prop of __getOwnPropSymbols$
|
|
35343
|
-
if (__propIsEnum$
|
|
35344
|
-
__defNormalProp$
|
|
35408
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
35409
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
35410
|
+
if (__getOwnPropSymbols$t)
|
|
35411
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
35412
|
+
if (__propIsEnum$t.call(b, prop))
|
|
35413
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
35345
35414
|
}
|
|
35346
35415
|
return a;
|
|
35347
35416
|
};
|
|
35348
|
-
var __spreadProps$
|
|
35349
|
-
var __async$
|
|
35417
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
35418
|
+
var __async$E = (__this, __arguments, generator) => {
|
|
35350
35419
|
return new Promise((resolve, reject) => {
|
|
35351
35420
|
var fulfilled = (value) => {
|
|
35352
35421
|
try {
|
|
@@ -35368,8 +35437,8 @@ var __async$C = (__this, __arguments, generator) => {
|
|
|
35368
35437
|
};
|
|
35369
35438
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
35370
35439
|
const { client } = useShipEngine();
|
|
35371
|
-
return reactQuery.useMutation(__spreadProps$
|
|
35372
|
-
mutationFn: (_0) => __async$
|
|
35440
|
+
return reactQuery.useMutation(__spreadProps$j(__spreadValues$m({}, params), {
|
|
35441
|
+
mutationFn: (_0) => __async$E(void 0, [_0], function* ({
|
|
35373
35442
|
carrierName,
|
|
35374
35443
|
carrierId,
|
|
35375
35444
|
formData
|
|
@@ -35396,7 +35465,7 @@ const useListCustomPackageTypes = () => {
|
|
|
35396
35465
|
});
|
|
35397
35466
|
};
|
|
35398
35467
|
|
|
35399
|
-
var __async$
|
|
35468
|
+
var __async$D = (__this, __arguments, generator) => {
|
|
35400
35469
|
return new Promise((resolve, reject) => {
|
|
35401
35470
|
var fulfilled = (value) => {
|
|
35402
35471
|
try {
|
|
@@ -35419,7 +35488,7 @@ var __async$B = (__this, __arguments, generator) => {
|
|
|
35419
35488
|
const useCreateFundingSource = () => {
|
|
35420
35489
|
const { client } = useShipEngine();
|
|
35421
35490
|
return reactQuery.useMutation({
|
|
35422
|
-
mutationFn: (fundingSource) => __async$
|
|
35491
|
+
mutationFn: (fundingSource) => __async$D(void 0, null, function* () {
|
|
35423
35492
|
const result = yield client.fundingSources.create(fundingSource);
|
|
35424
35493
|
return result.data;
|
|
35425
35494
|
}),
|
|
@@ -35428,7 +35497,7 @@ const useCreateFundingSource = () => {
|
|
|
35428
35497
|
});
|
|
35429
35498
|
};
|
|
35430
35499
|
|
|
35431
|
-
var __async$
|
|
35500
|
+
var __async$C = (__this, __arguments, generator) => {
|
|
35432
35501
|
return new Promise((resolve, reject) => {
|
|
35433
35502
|
var fulfilled = (value) => {
|
|
35434
35503
|
try {
|
|
@@ -35451,7 +35520,7 @@ var __async$A = (__this, __arguments, generator) => {
|
|
|
35451
35520
|
const useFundingSourcesAddFunds = () => {
|
|
35452
35521
|
const { client } = useShipEngine();
|
|
35453
35522
|
return reactQuery.useMutation({
|
|
35454
|
-
mutationFn: (_0) => __async$
|
|
35523
|
+
mutationFn: (_0) => __async$C(void 0, [_0], function* ({ funds, fundingSourceId }) {
|
|
35455
35524
|
const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
|
|
35456
35525
|
return result.data;
|
|
35457
35526
|
}),
|
|
@@ -35480,7 +35549,7 @@ const useListFundingSources = () => {
|
|
|
35480
35549
|
});
|
|
35481
35550
|
};
|
|
35482
35551
|
|
|
35483
|
-
var __async$
|
|
35552
|
+
var __async$B = (__this, __arguments, generator) => {
|
|
35484
35553
|
return new Promise((resolve, reject) => {
|
|
35485
35554
|
var fulfilled = (value) => {
|
|
35486
35555
|
try {
|
|
@@ -35503,7 +35572,7 @@ var __async$z = (__this, __arguments, generator) => {
|
|
|
35503
35572
|
const useRegisterCarrier = () => {
|
|
35504
35573
|
const { client } = useShipEngine();
|
|
35505
35574
|
return reactQuery.useMutation({
|
|
35506
|
-
mutationFn: (carrier) => __async$
|
|
35575
|
+
mutationFn: (carrier) => __async$B(void 0, null, function* () {
|
|
35507
35576
|
const result = yield client.fundingSources.registerCarrier(carrier);
|
|
35508
35577
|
return result.data;
|
|
35509
35578
|
}),
|
|
@@ -35512,7 +35581,7 @@ const useRegisterCarrier = () => {
|
|
|
35512
35581
|
});
|
|
35513
35582
|
};
|
|
35514
35583
|
|
|
35515
|
-
var __async$
|
|
35584
|
+
var __async$A = (__this, __arguments, generator) => {
|
|
35516
35585
|
return new Promise((resolve, reject) => {
|
|
35517
35586
|
var fulfilled = (value) => {
|
|
35518
35587
|
try {
|
|
@@ -35535,7 +35604,7 @@ var __async$y = (__this, __arguments, generator) => {
|
|
|
35535
35604
|
const useUpdateFundingSource = () => {
|
|
35536
35605
|
const { client } = useShipEngine();
|
|
35537
35606
|
return reactQuery.useMutation({
|
|
35538
|
-
mutationFn: (_0) => __async$
|
|
35607
|
+
mutationFn: (_0) => __async$A(void 0, [_0], function* ({
|
|
35539
35608
|
billingInfo,
|
|
35540
35609
|
creditCardInfo,
|
|
35541
35610
|
fundingSourceId
|
|
@@ -35574,29 +35643,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
|
|
|
35574
35643
|
});
|
|
35575
35644
|
};
|
|
35576
35645
|
|
|
35577
|
-
var __defProp$
|
|
35578
|
-
var __defProps$
|
|
35579
|
-
var __getOwnPropDescs$
|
|
35580
|
-
var __getOwnPropSymbols$
|
|
35581
|
-
var __hasOwnProp$
|
|
35582
|
-
var __propIsEnum$
|
|
35583
|
-
var __defNormalProp$
|
|
35584
|
-
var __spreadValues$
|
|
35646
|
+
var __defProp$l = Object.defineProperty;
|
|
35647
|
+
var __defProps$i = Object.defineProperties;
|
|
35648
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
35649
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
35650
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
35651
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
35652
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35653
|
+
var __spreadValues$l = (a, b) => {
|
|
35585
35654
|
for (var prop in b || (b = {}))
|
|
35586
|
-
if (__hasOwnProp$
|
|
35587
|
-
__defNormalProp$
|
|
35588
|
-
if (__getOwnPropSymbols$
|
|
35589
|
-
for (var prop of __getOwnPropSymbols$
|
|
35590
|
-
if (__propIsEnum$
|
|
35591
|
-
__defNormalProp$
|
|
35655
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
35656
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
35657
|
+
if (__getOwnPropSymbols$s)
|
|
35658
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
35659
|
+
if (__propIsEnum$s.call(b, prop))
|
|
35660
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
35592
35661
|
}
|
|
35593
35662
|
return a;
|
|
35594
35663
|
};
|
|
35595
|
-
var __spreadProps$
|
|
35664
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
35596
35665
|
const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
|
|
35597
35666
|
const { client } = useShipEngine();
|
|
35598
|
-
const queryParams = __spreadValues$
|
|
35599
|
-
return reactQuery.useQuery(__spreadProps$
|
|
35667
|
+
const queryParams = __spreadValues$l({}, params);
|
|
35668
|
+
return reactQuery.useQuery(__spreadProps$i(__spreadValues$l({}, queryParams), {
|
|
35600
35669
|
onError,
|
|
35601
35670
|
queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
|
|
35602
35671
|
queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
|
|
@@ -35619,22 +35688,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
35619
35688
|
});
|
|
35620
35689
|
};
|
|
35621
35690
|
|
|
35622
|
-
var __getOwnPropSymbols$
|
|
35623
|
-
var __hasOwnProp$
|
|
35624
|
-
var __propIsEnum$
|
|
35691
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
35692
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
35693
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
35625
35694
|
var __objRest$g = (source, exclude) => {
|
|
35626
35695
|
var target = {};
|
|
35627
35696
|
for (var prop in source)
|
|
35628
|
-
if (__hasOwnProp$
|
|
35697
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35629
35698
|
target[prop] = source[prop];
|
|
35630
|
-
if (source != null && __getOwnPropSymbols$
|
|
35631
|
-
for (var prop of __getOwnPropSymbols$
|
|
35632
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35699
|
+
if (source != null && __getOwnPropSymbols$r)
|
|
35700
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
|
35701
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
|
35633
35702
|
target[prop] = source[prop];
|
|
35634
35703
|
}
|
|
35635
35704
|
return target;
|
|
35636
35705
|
};
|
|
35637
|
-
var __async$
|
|
35706
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
35638
35707
|
return new Promise((resolve, reject) => {
|
|
35639
35708
|
var fulfilled = (value) => {
|
|
35640
35709
|
try {
|
|
@@ -35657,7 +35726,7 @@ var __async$x = (__this, __arguments, generator) => {
|
|
|
35657
35726
|
const useAddInsuranceFunds = () => {
|
|
35658
35727
|
const { client } = useShipEngine();
|
|
35659
35728
|
return reactQuery.useMutation({
|
|
35660
|
-
mutationFn: (_a) => __async$
|
|
35729
|
+
mutationFn: (_a) => __async$z(void 0, null, function* () {
|
|
35661
35730
|
var _b = _a, { insuranceProvider } = _b, rest = __objRest$g(_b, ["insuranceProvider"]);
|
|
35662
35731
|
const result = yield client.insurance.addFunds(insuranceProvider, rest);
|
|
35663
35732
|
return result.data;
|
|
@@ -35667,6 +35736,137 @@ const useAddInsuranceFunds = () => {
|
|
|
35667
35736
|
});
|
|
35668
35737
|
};
|
|
35669
35738
|
|
|
35739
|
+
var __defProp$k = Object.defineProperty;
|
|
35740
|
+
var __defProps$h = Object.defineProperties;
|
|
35741
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
35742
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
35743
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
35744
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
35745
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35746
|
+
var __spreadValues$k = (a, b) => {
|
|
35747
|
+
for (var prop in b || (b = {}))
|
|
35748
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
35749
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
35750
|
+
if (__getOwnPropSymbols$q)
|
|
35751
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
35752
|
+
if (__propIsEnum$q.call(b, prop))
|
|
35753
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
35754
|
+
}
|
|
35755
|
+
return a;
|
|
35756
|
+
};
|
|
35757
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
35758
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
35759
|
+
return new Promise((resolve, reject) => {
|
|
35760
|
+
var fulfilled = (value) => {
|
|
35761
|
+
try {
|
|
35762
|
+
step(generator.next(value));
|
|
35763
|
+
} catch (e) {
|
|
35764
|
+
reject(e);
|
|
35765
|
+
}
|
|
35766
|
+
};
|
|
35767
|
+
var rejected = (value) => {
|
|
35768
|
+
try {
|
|
35769
|
+
step(generator.throw(value));
|
|
35770
|
+
} catch (e) {
|
|
35771
|
+
reject(e);
|
|
35772
|
+
}
|
|
35773
|
+
};
|
|
35774
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35775
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35776
|
+
});
|
|
35777
|
+
};
|
|
35778
|
+
const useCreateInvoiceAddress = (params) => {
|
|
35779
|
+
const { client } = useShipEngine();
|
|
35780
|
+
return reactQuery.useMutation(__spreadProps$h(__spreadValues$k({}, params), {
|
|
35781
|
+
mutationFn: (invoiceAddress) => __async$y(void 0, null, function* () {
|
|
35782
|
+
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
35783
|
+
return result.data.invoiceAddress;
|
|
35784
|
+
}),
|
|
35785
|
+
mutationKey: ["useCreateInvoiceAddress"],
|
|
35786
|
+
onError
|
|
35787
|
+
}));
|
|
35788
|
+
};
|
|
35789
|
+
|
|
35790
|
+
var __defProp$j = Object.defineProperty;
|
|
35791
|
+
var __defProps$g = Object.defineProperties;
|
|
35792
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
35793
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
35794
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
35795
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
35796
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35797
|
+
var __spreadValues$j = (a, b) => {
|
|
35798
|
+
for (var prop in b || (b = {}))
|
|
35799
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
35800
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
35801
|
+
if (__getOwnPropSymbols$p)
|
|
35802
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
35803
|
+
if (__propIsEnum$p.call(b, prop))
|
|
35804
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
35805
|
+
}
|
|
35806
|
+
return a;
|
|
35807
|
+
};
|
|
35808
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
35809
|
+
var __async$x = (__this, __arguments, generator) => {
|
|
35810
|
+
return new Promise((resolve, reject) => {
|
|
35811
|
+
var fulfilled = (value) => {
|
|
35812
|
+
try {
|
|
35813
|
+
step(generator.next(value));
|
|
35814
|
+
} catch (e) {
|
|
35815
|
+
reject(e);
|
|
35816
|
+
}
|
|
35817
|
+
};
|
|
35818
|
+
var rejected = (value) => {
|
|
35819
|
+
try {
|
|
35820
|
+
step(generator.throw(value));
|
|
35821
|
+
} catch (e) {
|
|
35822
|
+
reject(e);
|
|
35823
|
+
}
|
|
35824
|
+
};
|
|
35825
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35826
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35827
|
+
});
|
|
35828
|
+
};
|
|
35829
|
+
const useUpdateInvoiceAddress = (params) => {
|
|
35830
|
+
const { client } = useShipEngine();
|
|
35831
|
+
return reactQuery.useMutation(__spreadProps$g(__spreadValues$j({}, params), {
|
|
35832
|
+
mutationFn: (invoiceAddress) => __async$x(void 0, null, function* () {
|
|
35833
|
+
const result = yield client.invoiceAddress.update(invoiceAddress);
|
|
35834
|
+
return result.data.invoiceAddress;
|
|
35835
|
+
}),
|
|
35836
|
+
mutationKey: ["useUpdateInvoiceAddress"],
|
|
35837
|
+
onError
|
|
35838
|
+
}));
|
|
35839
|
+
};
|
|
35840
|
+
|
|
35841
|
+
var __defProp$i = Object.defineProperty;
|
|
35842
|
+
var __defProps$f = Object.defineProperties;
|
|
35843
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
35844
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
35845
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
35846
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
35847
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35848
|
+
var __spreadValues$i = (a, b) => {
|
|
35849
|
+
for (var prop in b || (b = {}))
|
|
35850
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
35851
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
35852
|
+
if (__getOwnPropSymbols$o)
|
|
35853
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
35854
|
+
if (__propIsEnum$o.call(b, prop))
|
|
35855
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
35856
|
+
}
|
|
35857
|
+
return a;
|
|
35858
|
+
};
|
|
35859
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
35860
|
+
const useGetInvoiceAddress = (params) => {
|
|
35861
|
+
const { client } = useShipEngine();
|
|
35862
|
+
return reactQuery.useQuery(__spreadProps$f(__spreadValues$i({}, params), {
|
|
35863
|
+
onError,
|
|
35864
|
+
queryFn: () => client.invoiceAddress.get(),
|
|
35865
|
+
queryKey: ["useGetInvoiceAddress"],
|
|
35866
|
+
select: (result) => result.data.invoiceAddress
|
|
35867
|
+
}));
|
|
35868
|
+
};
|
|
35869
|
+
|
|
35670
35870
|
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
35671
35871
|
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
35672
35872
|
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
@@ -36218,10 +36418,12 @@ const useRatesEstimate = () => {
|
|
|
36218
36418
|
});
|
|
36219
36419
|
};
|
|
36220
36420
|
|
|
36221
|
-
const useGetSalesOrder = (salesOrderId) => {
|
|
36421
|
+
const useGetSalesOrder = (salesOrderId, config) => {
|
|
36422
|
+
var _a;
|
|
36222
36423
|
const { client } = useShipEngine();
|
|
36424
|
+
const enabled = (_a = config == null ? void 0 : config.enabled) != null ? _a : true;
|
|
36223
36425
|
return reactQuery.useQuery({
|
|
36224
|
-
enabled: salesOrderId !== void 0,
|
|
36426
|
+
enabled: salesOrderId !== void 0 && enabled,
|
|
36225
36427
|
onError,
|
|
36226
36428
|
queryFn: () => {
|
|
36227
36429
|
if (salesOrderId)
|
|
@@ -36233,6 +36435,23 @@ const useGetSalesOrder = (salesOrderId) => {
|
|
|
36233
36435
|
});
|
|
36234
36436
|
};
|
|
36235
36437
|
|
|
36438
|
+
const useGetSalesOrderByExternalOrderId = (externalOrderId, config) => {
|
|
36439
|
+
var _a;
|
|
36440
|
+
const { client } = useShipEngine();
|
|
36441
|
+
const enabled = (_a = config == null ? void 0 : config.enabled) != null ? _a : true;
|
|
36442
|
+
return reactQuery.useQuery({
|
|
36443
|
+
enabled: externalOrderId !== void 0 && enabled,
|
|
36444
|
+
onError,
|
|
36445
|
+
queryFn: () => {
|
|
36446
|
+
if (externalOrderId)
|
|
36447
|
+
return client.salesOrders.getByExternalId(externalOrderId);
|
|
36448
|
+
return Promise.reject(new Error("externalOrderId is required"));
|
|
36449
|
+
},
|
|
36450
|
+
queryKey: ["useGetSalesOrderByExternalOrderId", externalOrderId],
|
|
36451
|
+
select: (result) => result.data
|
|
36452
|
+
});
|
|
36453
|
+
};
|
|
36454
|
+
|
|
36236
36455
|
const useListSalesOrders = (params = {}) => {
|
|
36237
36456
|
const { client } = useShipEngine();
|
|
36238
36457
|
return reactQuery.useQuery({
|
|
@@ -36355,13 +36574,14 @@ const useGetSalesOrderShipment = (shipmentId) => {
|
|
|
36355
36574
|
});
|
|
36356
36575
|
};
|
|
36357
36576
|
|
|
36358
|
-
const useListSalesOrderShipments = (
|
|
36577
|
+
const useListSalesOrderShipments = (body) => {
|
|
36359
36578
|
const { client } = useShipEngine();
|
|
36579
|
+
const { shipmentIds, salesOrderIds, externalOrderIds } = body;
|
|
36360
36580
|
return reactQuery.useQuery({
|
|
36361
|
-
enabled:
|
|
36581
|
+
enabled: !!((shipmentIds == null ? void 0 : shipmentIds.length) || (salesOrderIds == null ? void 0 : salesOrderIds.length) || (externalOrderIds == null ? void 0 : externalOrderIds.length)),
|
|
36362
36582
|
onError,
|
|
36363
|
-
queryFn: () => client.salesOrderShipments.list(
|
|
36364
|
-
queryKey: ["useListSalesOrderShipments",
|
|
36583
|
+
queryFn: () => client.salesOrderShipments.list(body),
|
|
36584
|
+
queryKey: ["useListSalesOrderShipments", body],
|
|
36365
36585
|
select: (result) => result.data.shipments
|
|
36366
36586
|
});
|
|
36367
36587
|
};
|
|
@@ -36414,6 +36634,17 @@ const useUpdateSalesOrderShipment = () => {
|
|
|
36414
36634
|
});
|
|
36415
36635
|
};
|
|
36416
36636
|
|
|
36637
|
+
const useListSalesOrderShipmentsByExternalOrderId = (externalOrderId) => {
|
|
36638
|
+
const { client } = useShipEngine();
|
|
36639
|
+
return reactQuery.useQuery({
|
|
36640
|
+
enabled: externalOrderId !== null && externalOrderId.length > 0,
|
|
36641
|
+
onError,
|
|
36642
|
+
queryFn: () => client.salesOrderShipments.listShipmentsByExternalOrderId(externalOrderId),
|
|
36643
|
+
queryKey: ["useListSalesOrderShipments", externalOrderId],
|
|
36644
|
+
select: (result) => result.data.shipments
|
|
36645
|
+
});
|
|
36646
|
+
};
|
|
36647
|
+
|
|
36417
36648
|
var __defProp$f = Object.defineProperty;
|
|
36418
36649
|
var __defProps$c = Object.defineProperties;
|
|
36419
36650
|
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
@@ -38750,6 +38981,7 @@ exports.ErrorBoundary = ErrorBoundary;
|
|
|
38750
38981
|
exports.FundingSourcesAPI = FundingSourcesAPI;
|
|
38751
38982
|
exports.InsuranceAPI = InsuranceAPI;
|
|
38752
38983
|
exports.InsuranceProviderType = InsuranceProviderType;
|
|
38984
|
+
exports.InvoiceAddressAPI = InvoiceAddressAPI;
|
|
38753
38985
|
exports.LabelsAPI = LabelsAPI;
|
|
38754
38986
|
exports.MetadataCapability = MetadataCapability;
|
|
38755
38987
|
exports.MetadataRequirement = MetadataRequirement;
|
|
@@ -38798,6 +39030,7 @@ exports.useConnectCarrier = useConnectCarrier;
|
|
|
38798
39030
|
exports.useConnectCarrierAccount = useConnectCarrierAccount;
|
|
38799
39031
|
exports.useCreateAccountImage = useCreateAccountImage;
|
|
38800
39032
|
exports.useCreateFundingSource = useCreateFundingSource;
|
|
39033
|
+
exports.useCreateInvoiceAddress = useCreateInvoiceAddress;
|
|
38801
39034
|
exports.useCreateLabel = useCreateLabel;
|
|
38802
39035
|
exports.useCreateRateCard = useCreateRateCard;
|
|
38803
39036
|
exports.useCreateSalesOrderShipment = useCreateSalesOrderShipment;
|
|
@@ -38833,10 +39066,12 @@ exports.useGetFundingSourceTransactions = useGetFundingSourceTransactions;
|
|
|
38833
39066
|
exports.useGetHereToken = useGetHereToken;
|
|
38834
39067
|
exports.useGetInsuranceAccount = useGetInsuranceAccount;
|
|
38835
39068
|
exports.useGetInsuranceFundingSourceAcceptedTerms = useGetInsuranceFundingSourceAcceptedTerms;
|
|
39069
|
+
exports.useGetInvoiceAddress = useGetInvoiceAddress;
|
|
38836
39070
|
exports.useGetLabel = useGetLabel;
|
|
38837
39071
|
exports.useGetPackageRatingGroupByCarrier = useGetPackageRatingGroupByCarrier;
|
|
38838
39072
|
exports.useGetRateCardById = useGetRateCardById;
|
|
38839
39073
|
exports.useGetSalesOrder = useGetSalesOrder;
|
|
39074
|
+
exports.useGetSalesOrderByExternalOrderId = useGetSalesOrderByExternalOrderId;
|
|
38840
39075
|
exports.useGetSalesOrderShipment = useGetSalesOrderShipment;
|
|
38841
39076
|
exports.useGetServicePoint = useGetServicePoint;
|
|
38842
39077
|
exports.useGetServicesByCarrier = useGetServicesByCarrier;
|
|
@@ -38857,6 +39092,7 @@ exports.useListOrderSources = useListOrderSources;
|
|
|
38857
39092
|
exports.useListOrderSourcesConnections = useListOrderSourcesConnections;
|
|
38858
39093
|
exports.useListRateCards = useListRateCards;
|
|
38859
39094
|
exports.useListSalesOrderShipments = useListSalesOrderShipments;
|
|
39095
|
+
exports.useListSalesOrderShipmentsByExternalOrderId = useListSalesOrderShipmentsByExternalOrderId;
|
|
38860
39096
|
exports.useListSalesOrders = useListSalesOrders;
|
|
38861
39097
|
exports.useListSandboxSellerIds = useListSandboxSellerIds;
|
|
38862
39098
|
exports.useListSellerApiKeys = useListSellerApiKeys;
|
|
@@ -38880,6 +39116,7 @@ exports.useUpdateAccountSettings = useUpdateAccountSettings;
|
|
|
38880
39116
|
exports.useUpdateAutoFunding = useUpdateAutoFunding;
|
|
38881
39117
|
exports.useUpdateConnectionsCarrierSettings = useUpdateConnectionsCarrierSettings;
|
|
38882
39118
|
exports.useUpdateFundingSource = useUpdateFundingSource;
|
|
39119
|
+
exports.useUpdateInvoiceAddress = useUpdateInvoiceAddress;
|
|
38883
39120
|
exports.useUpdateOrderSource = useUpdateOrderSource;
|
|
38884
39121
|
exports.useUpdateRateCard = useUpdateRateCard;
|
|
38885
39122
|
exports.useUpdateSalesOrderShipment = useUpdateSalesOrderShipment;
|