@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.mjs
CHANGED
|
@@ -10790,17 +10790,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
|
|
|
10790
10790
|
return AccountBillingPlanChangeType2;
|
|
10791
10791
|
})(AccountBillingPlanChangeType || {});
|
|
10792
10792
|
|
|
10793
|
-
var __getOwnPropSymbols$
|
|
10794
|
-
var __hasOwnProp$
|
|
10795
|
-
var __propIsEnum$
|
|
10793
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
10794
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
10795
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
10796
10796
|
var __objRest$p = (source, exclude) => {
|
|
10797
10797
|
var target = {};
|
|
10798
10798
|
for (var prop in source)
|
|
10799
|
-
if (__hasOwnProp$
|
|
10799
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10800
10800
|
target[prop] = source[prop];
|
|
10801
|
-
if (source != null && __getOwnPropSymbols$
|
|
10802
|
-
for (var prop of __getOwnPropSymbols$
|
|
10803
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10801
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
10802
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
10803
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
10804
10804
|
target[prop] = source[prop];
|
|
10805
10805
|
}
|
|
10806
10806
|
return target;
|
|
@@ -10933,17 +10933,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10933
10933
|
RateCardStatus
|
|
10934
10934
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10935
10935
|
|
|
10936
|
-
var __getOwnPropSymbols$
|
|
10937
|
-
var __hasOwnProp$
|
|
10938
|
-
var __propIsEnum$
|
|
10936
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
10937
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
10938
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
10939
10939
|
var __objRest$o = (source, exclude) => {
|
|
10940
10940
|
var target = {};
|
|
10941
10941
|
for (var prop in source)
|
|
10942
|
-
if (__hasOwnProp$
|
|
10942
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10943
10943
|
target[prop] = source[prop];
|
|
10944
|
-
if (source != null && __getOwnPropSymbols$
|
|
10945
|
-
for (var prop of __getOwnPropSymbols$
|
|
10946
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10944
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
10945
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
10946
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
10947
10947
|
target[prop] = source[prop];
|
|
10948
10948
|
}
|
|
10949
10949
|
return target;
|
|
@@ -13685,7 +13685,7 @@ var ipaddr = {
|
|
|
13685
13685
|
}).call(commonjsGlobal);
|
|
13686
13686
|
} (ipaddr));
|
|
13687
13687
|
|
|
13688
|
-
var __async$
|
|
13688
|
+
var __async$X = (__this, __arguments, generator) => {
|
|
13689
13689
|
return new Promise((resolve, reject) => {
|
|
13690
13690
|
var fulfilled = (value) => {
|
|
13691
13691
|
try {
|
|
@@ -13705,7 +13705,7 @@ var __async$U = (__this, __arguments, generator) => {
|
|
|
13705
13705
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13706
13706
|
});
|
|
13707
13707
|
};
|
|
13708
|
-
const getEndUserIpAddress = () => __async$
|
|
13708
|
+
const getEndUserIpAddress = () => __async$X(void 0, null, function* () {
|
|
13709
13709
|
try {
|
|
13710
13710
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13711
13711
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13748,38 +13748,38 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13748
13748
|
return obj;
|
|
13749
13749
|
};
|
|
13750
13750
|
|
|
13751
|
-
var __defProp$
|
|
13752
|
-
var __defProps$
|
|
13753
|
-
var __getOwnPropDescs$
|
|
13754
|
-
var __getOwnPropSymbols$
|
|
13755
|
-
var __hasOwnProp$
|
|
13756
|
-
var __propIsEnum$
|
|
13757
|
-
var __defNormalProp$
|
|
13758
|
-
var __spreadValues$
|
|
13751
|
+
var __defProp$u = Object.defineProperty;
|
|
13752
|
+
var __defProps$o = Object.defineProperties;
|
|
13753
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
13754
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
13755
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
13756
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
13757
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13758
|
+
var __spreadValues$u = (a, b) => {
|
|
13759
13759
|
for (var prop in b || (b = {}))
|
|
13760
|
-
if (__hasOwnProp$
|
|
13761
|
-
__defNormalProp$
|
|
13762
|
-
if (__getOwnPropSymbols$
|
|
13763
|
-
for (var prop of __getOwnPropSymbols$
|
|
13764
|
-
if (__propIsEnum$
|
|
13765
|
-
__defNormalProp$
|
|
13760
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
13761
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
13762
|
+
if (__getOwnPropSymbols$F)
|
|
13763
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
13764
|
+
if (__propIsEnum$F.call(b, prop))
|
|
13765
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
13766
13766
|
}
|
|
13767
13767
|
return a;
|
|
13768
13768
|
};
|
|
13769
|
-
var __spreadProps$
|
|
13769
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
13770
13770
|
var __objRest$n = (source, exclude) => {
|
|
13771
13771
|
var target = {};
|
|
13772
13772
|
for (var prop in source)
|
|
13773
|
-
if (__hasOwnProp$
|
|
13773
|
+
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13774
13774
|
target[prop] = source[prop];
|
|
13775
|
-
if (source != null && __getOwnPropSymbols$
|
|
13776
|
-
for (var prop of __getOwnPropSymbols$
|
|
13777
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13775
|
+
if (source != null && __getOwnPropSymbols$F)
|
|
13776
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
13777
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
13778
13778
|
target[prop] = source[prop];
|
|
13779
13779
|
}
|
|
13780
13780
|
return target;
|
|
13781
13781
|
};
|
|
13782
|
-
var __async$
|
|
13782
|
+
var __async$W = (__this, __arguments, generator) => {
|
|
13783
13783
|
return new Promise((resolve, reject) => {
|
|
13784
13784
|
var fulfilled = (value) => {
|
|
13785
13785
|
try {
|
|
@@ -13819,12 +13819,12 @@ class CarriersAPI {
|
|
|
13819
13819
|
/**
|
|
13820
13820
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
13821
13821
|
*/
|
|
13822
|
-
this.connect = (_a) => __async$
|
|
13822
|
+
this.connect = (_a) => __async$W(this, null, function* () {
|
|
13823
13823
|
var _b = _a, { carrierCode } = _b, connection = __objRest$n(_b, ["carrierCode"]);
|
|
13824
13824
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13825
13825
|
if (!endUserIpAddress)
|
|
13826
13826
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13827
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13827
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$o(__spreadValues$u({}, connection), {
|
|
13828
13828
|
endUserIpAddress
|
|
13829
13829
|
}));
|
|
13830
13830
|
});
|
|
@@ -13910,7 +13910,7 @@ class CarriersAPI {
|
|
|
13910
13910
|
}
|
|
13911
13911
|
}
|
|
13912
13912
|
|
|
13913
|
-
var __async$
|
|
13913
|
+
var __async$V = (__this, __arguments, generator) => {
|
|
13914
13914
|
return new Promise((resolve, reject) => {
|
|
13915
13915
|
var fulfilled = (value) => {
|
|
13916
13916
|
try {
|
|
@@ -13952,7 +13952,7 @@ class ConnectionsAPI {
|
|
|
13952
13952
|
/**
|
|
13953
13953
|
* The `connectCarrier` method connects a carrier to account.
|
|
13954
13954
|
*/
|
|
13955
|
-
this.connectCarrier = (carrierName, formData) => __async$
|
|
13955
|
+
this.connectCarrier = (carrierName, formData) => __async$V(this, null, function* () {
|
|
13956
13956
|
return yield this.client.post(
|
|
13957
13957
|
`/v1/connections/carriers/${carrierName}`,
|
|
13958
13958
|
formData,
|
|
@@ -16127,23 +16127,23 @@ class CustomPackagesAPI {
|
|
|
16127
16127
|
}
|
|
16128
16128
|
}
|
|
16129
16129
|
|
|
16130
|
-
var __defProp$
|
|
16131
|
-
var __getOwnPropSymbols$
|
|
16132
|
-
var __hasOwnProp$
|
|
16133
|
-
var __propIsEnum$
|
|
16134
|
-
var __defNormalProp$
|
|
16135
|
-
var __spreadValues$
|
|
16130
|
+
var __defProp$t = Object.defineProperty;
|
|
16131
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
16132
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
16133
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
16134
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16135
|
+
var __spreadValues$t = (a, b) => {
|
|
16136
16136
|
for (var prop in b || (b = {}))
|
|
16137
|
-
if (__hasOwnProp$
|
|
16138
|
-
__defNormalProp$
|
|
16139
|
-
if (__getOwnPropSymbols$
|
|
16140
|
-
for (var prop of __getOwnPropSymbols$
|
|
16141
|
-
if (__propIsEnum$
|
|
16142
|
-
__defNormalProp$
|
|
16137
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
16138
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
16139
|
+
if (__getOwnPropSymbols$E)
|
|
16140
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
16141
|
+
if (__propIsEnum$E.call(b, prop))
|
|
16142
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
16143
16143
|
}
|
|
16144
16144
|
return a;
|
|
16145
16145
|
};
|
|
16146
|
-
var __async$
|
|
16146
|
+
var __async$U = (__this, __arguments, generator) => {
|
|
16147
16147
|
return new Promise((resolve, reject) => {
|
|
16148
16148
|
var fulfilled = (value) => {
|
|
16149
16149
|
try {
|
|
@@ -16182,12 +16182,12 @@ class FundingSourcesAPI {
|
|
|
16182
16182
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16183
16183
|
* payment information to be collected from the user.
|
|
16184
16184
|
*/
|
|
16185
|
-
this.create = (createFundingSource) => __async$
|
|
16185
|
+
this.create = (createFundingSource) => __async$U(this, null, function* () {
|
|
16186
16186
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16187
16187
|
if (!endUserIpAddress) {
|
|
16188
16188
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16189
16189
|
}
|
|
16190
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16190
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$t({
|
|
16191
16191
|
endUserIpAddress
|
|
16192
16192
|
}, createFundingSource));
|
|
16193
16193
|
});
|
|
@@ -16196,7 +16196,7 @@ class FundingSourcesAPI {
|
|
|
16196
16196
|
* user to update the billing address or payment information associated with the
|
|
16197
16197
|
* funding source.
|
|
16198
16198
|
*/
|
|
16199
|
-
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$
|
|
16199
|
+
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$U(this, null, function* () {
|
|
16200
16200
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16201
16201
|
if (!endUserIpAddress) {
|
|
16202
16202
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16214,19 +16214,19 @@ class FundingSourcesAPI {
|
|
|
16214
16214
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16215
16215
|
* it with a given funding source.
|
|
16216
16216
|
*/
|
|
16217
|
-
this.registerCarrier = (carrier) => __async$
|
|
16217
|
+
this.registerCarrier = (carrier) => __async$U(this, null, function* () {
|
|
16218
16218
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16219
16219
|
if (!endUserIpAddress) {
|
|
16220
16220
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16221
16221
|
}
|
|
16222
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16222
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$t({
|
|
16223
16223
|
endUserIpAddress
|
|
16224
16224
|
}, carrier));
|
|
16225
16225
|
});
|
|
16226
16226
|
/**
|
|
16227
16227
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16228
16228
|
*/
|
|
16229
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16229
|
+
this.addFunds = (amount, fundingSourceId) => __async$U(this, null, function* () {
|
|
16230
16230
|
return yield this.client.put(
|
|
16231
16231
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16232
16232
|
amount
|
|
@@ -16236,7 +16236,7 @@ class FundingSourcesAPI {
|
|
|
16236
16236
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16237
16237
|
* and attaching carriers
|
|
16238
16238
|
*/
|
|
16239
|
-
this.metadata = () => __async$
|
|
16239
|
+
this.metadata = () => __async$U(this, null, function* () {
|
|
16240
16240
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16241
16241
|
});
|
|
16242
16242
|
/**
|
|
@@ -16288,6 +16288,55 @@ class InsuranceAPI {
|
|
|
16288
16288
|
}
|
|
16289
16289
|
}
|
|
16290
16290
|
|
|
16291
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
16292
|
+
return new Promise((resolve, reject) => {
|
|
16293
|
+
var fulfilled = (value) => {
|
|
16294
|
+
try {
|
|
16295
|
+
step(generator.next(value));
|
|
16296
|
+
} catch (e) {
|
|
16297
|
+
reject(e);
|
|
16298
|
+
}
|
|
16299
|
+
};
|
|
16300
|
+
var rejected = (value) => {
|
|
16301
|
+
try {
|
|
16302
|
+
step(generator.throw(value));
|
|
16303
|
+
} catch (e) {
|
|
16304
|
+
reject(e);
|
|
16305
|
+
}
|
|
16306
|
+
};
|
|
16307
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
16308
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
16309
|
+
});
|
|
16310
|
+
};
|
|
16311
|
+
class InvoiceAddressAPI {
|
|
16312
|
+
constructor(client) {
|
|
16313
|
+
this.client = client;
|
|
16314
|
+
/**
|
|
16315
|
+
* The `get` method retrieves the invoice address for a given user.
|
|
16316
|
+
*/
|
|
16317
|
+
this.get = () => {
|
|
16318
|
+
return this.client.get("/v1/invoice_address");
|
|
16319
|
+
};
|
|
16320
|
+
/**
|
|
16321
|
+
* The `create` method creates a new invoice address for a given user.
|
|
16322
|
+
*/
|
|
16323
|
+
this.create = (invoiceAddress) => __async$T(this, null, function* () {
|
|
16324
|
+
return yield this.client.post("/v1/invoice_address", {
|
|
16325
|
+
invoiceAddress
|
|
16326
|
+
});
|
|
16327
|
+
});
|
|
16328
|
+
/**
|
|
16329
|
+
* The `update` method updates a invoice address for a given user.
|
|
16330
|
+
*/
|
|
16331
|
+
this.update = (invoiceAddress) => __async$T(this, null, function* () {
|
|
16332
|
+
return yield this.client.put("/v1/invoice_address", {
|
|
16333
|
+
invoiceAddress
|
|
16334
|
+
});
|
|
16335
|
+
});
|
|
16336
|
+
this.client = client;
|
|
16337
|
+
}
|
|
16338
|
+
}
|
|
16339
|
+
|
|
16291
16340
|
class LabelsAPI {
|
|
16292
16341
|
constructor(client) {
|
|
16293
16342
|
this.client = client;
|
|
@@ -16323,17 +16372,17 @@ class LabelsAPI {
|
|
|
16323
16372
|
}
|
|
16324
16373
|
}
|
|
16325
16374
|
|
|
16326
|
-
var __getOwnPropSymbols$
|
|
16327
|
-
var __hasOwnProp$
|
|
16328
|
-
var __propIsEnum$
|
|
16375
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
16376
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
16377
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
16329
16378
|
var __objRest$m = (source, exclude) => {
|
|
16330
16379
|
var target = {};
|
|
16331
16380
|
for (var prop in source)
|
|
16332
|
-
if (__hasOwnProp$
|
|
16381
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16333
16382
|
target[prop] = source[prop];
|
|
16334
|
-
if (source != null && __getOwnPropSymbols$
|
|
16335
|
-
for (var prop of __getOwnPropSymbols$
|
|
16336
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16383
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
16384
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
16385
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
16337
16386
|
target[prop] = source[prop];
|
|
16338
16387
|
}
|
|
16339
16388
|
return target;
|
|
@@ -16454,19 +16503,19 @@ class RateCardsAPI {
|
|
|
16454
16503
|
}
|
|
16455
16504
|
}
|
|
16456
16505
|
|
|
16457
|
-
var __defProp$
|
|
16458
|
-
var __getOwnPropSymbols$
|
|
16459
|
-
var __hasOwnProp$
|
|
16460
|
-
var __propIsEnum$
|
|
16461
|
-
var __defNormalProp$
|
|
16462
|
-
var __spreadValues$
|
|
16506
|
+
var __defProp$s = Object.defineProperty;
|
|
16507
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
16508
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
16509
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
16510
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16511
|
+
var __spreadValues$s = (a, b) => {
|
|
16463
16512
|
for (var prop in b || (b = {}))
|
|
16464
|
-
if (__hasOwnProp$
|
|
16465
|
-
__defNormalProp$
|
|
16466
|
-
if (__getOwnPropSymbols$
|
|
16467
|
-
for (var prop of __getOwnPropSymbols$
|
|
16468
|
-
if (__propIsEnum$
|
|
16469
|
-
__defNormalProp$
|
|
16513
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
16514
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
16515
|
+
if (__getOwnPropSymbols$C)
|
|
16516
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
16517
|
+
if (__propIsEnum$C.call(b, prop))
|
|
16518
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
16470
16519
|
}
|
|
16471
16520
|
return a;
|
|
16472
16521
|
};
|
|
@@ -16488,7 +16537,7 @@ class RatesAPI {
|
|
|
16488
16537
|
* method.
|
|
16489
16538
|
*/
|
|
16490
16539
|
this.estimate = (params) => {
|
|
16491
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16540
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$s({}, params));
|
|
16492
16541
|
};
|
|
16493
16542
|
this.client = client;
|
|
16494
16543
|
}
|
|
@@ -16500,10 +16549,14 @@ class SalesOrderShipmentsAPI {
|
|
|
16500
16549
|
/**
|
|
16501
16550
|
* The `list` method retrieves a list of sales order shipments for a given user.
|
|
16502
16551
|
*/
|
|
16503
|
-
this.list = (body
|
|
16504
|
-
return this.client.post("/v-beta/shipments/list", body
|
|
16505
|
-
|
|
16506
|
-
|
|
16552
|
+
this.list = (body) => {
|
|
16553
|
+
return this.client.post("/v-beta/shipments/list", body);
|
|
16554
|
+
};
|
|
16555
|
+
/**
|
|
16556
|
+
* The `listShipmentsByExternalOrderId` method retrieves a list of shipments associated to a sales order that matches `externalOrderId`
|
|
16557
|
+
*/
|
|
16558
|
+
this.listShipmentsByExternalOrderId = (externalOrderId) => {
|
|
16559
|
+
return this.client.get(`/v-beta/shipments/external_order_id/${externalOrderId}`);
|
|
16507
16560
|
};
|
|
16508
16561
|
/**
|
|
16509
16562
|
* The `get` method retrieves a specific sales order shipment by `shipmentId`.
|
|
@@ -16545,6 +16598,13 @@ class SalesOrdersAPI {
|
|
|
16545
16598
|
this.get = (salesOrderId) => {
|
|
16546
16599
|
return this.client.get(`/v-beta/sales_orders/${salesOrderId}`);
|
|
16547
16600
|
};
|
|
16601
|
+
/**
|
|
16602
|
+
* The `getByExternalId` method retrieves a specific sales order by its `externalOrderId`.
|
|
16603
|
+
* @param externalOrderId Id that matches that of the desired sales order.
|
|
16604
|
+
*/
|
|
16605
|
+
this.getByExternalId = (externalOrderId) => {
|
|
16606
|
+
return this.client.get(`/v-beta/sales_orders/external_order_id/${externalOrderId}`);
|
|
16607
|
+
};
|
|
16548
16608
|
/**
|
|
16549
16609
|
* The `notifyShipped` method notifies order source that the order has been
|
|
16550
16610
|
* shipped. Typically, the order source will then notify the user based on
|
|
@@ -16557,7 +16617,7 @@ class SalesOrdersAPI {
|
|
|
16557
16617
|
}
|
|
16558
16618
|
}
|
|
16559
16619
|
|
|
16560
|
-
var __async$
|
|
16620
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
16561
16621
|
return new Promise((resolve, reject) => {
|
|
16562
16622
|
var fulfilled = (value) => {
|
|
16563
16623
|
try {
|
|
@@ -16615,7 +16675,7 @@ class SellersAPI {
|
|
|
16615
16675
|
/**
|
|
16616
16676
|
* Deletes an API Key
|
|
16617
16677
|
*/
|
|
16618
|
-
this.deleteSellerApiKey = (_0) => __async$
|
|
16678
|
+
this.deleteSellerApiKey = (_0) => __async$S(this, [_0], function* ({
|
|
16619
16679
|
encryptedApiKey,
|
|
16620
16680
|
sellerId,
|
|
16621
16681
|
isSandbox
|
|
@@ -16661,19 +16721,19 @@ class SellersAPI {
|
|
|
16661
16721
|
}
|
|
16662
16722
|
}
|
|
16663
16723
|
|
|
16664
|
-
var __defProp$
|
|
16665
|
-
var __getOwnPropSymbols$
|
|
16666
|
-
var __hasOwnProp$
|
|
16667
|
-
var __propIsEnum$
|
|
16668
|
-
var __defNormalProp$
|
|
16669
|
-
var __spreadValues$
|
|
16724
|
+
var __defProp$r = Object.defineProperty;
|
|
16725
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
16726
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
16727
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
16728
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16729
|
+
var __spreadValues$r = (a, b) => {
|
|
16670
16730
|
for (var prop in b || (b = {}))
|
|
16671
|
-
if (__hasOwnProp$
|
|
16672
|
-
__defNormalProp$
|
|
16673
|
-
if (__getOwnPropSymbols$
|
|
16674
|
-
for (var prop of __getOwnPropSymbols$
|
|
16675
|
-
if (__propIsEnum$
|
|
16676
|
-
__defNormalProp$
|
|
16731
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
16732
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
16733
|
+
if (__getOwnPropSymbols$B)
|
|
16734
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
16735
|
+
if (__propIsEnum$B.call(b, prop))
|
|
16736
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
16677
16737
|
}
|
|
16678
16738
|
return a;
|
|
16679
16739
|
};
|
|
@@ -16685,7 +16745,7 @@ class ServicePointsAPI {
|
|
|
16685
16745
|
* Either an address, coordinates, or an address query
|
|
16686
16746
|
*/
|
|
16687
16747
|
this.list = (options) => {
|
|
16688
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16748
|
+
return this.client.post("/v1/service_points/list", __spreadValues$r({}, options));
|
|
16689
16749
|
};
|
|
16690
16750
|
/**
|
|
16691
16751
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -16703,7 +16763,7 @@ class ServicePointsAPI {
|
|
|
16703
16763
|
}
|
|
16704
16764
|
}
|
|
16705
16765
|
|
|
16706
|
-
var __async$
|
|
16766
|
+
var __async$R = (__this, __arguments, generator) => {
|
|
16707
16767
|
return new Promise((resolve, reject) => {
|
|
16708
16768
|
var fulfilled = (value) => {
|
|
16709
16769
|
try {
|
|
@@ -16752,7 +16812,7 @@ class ShipmentsAPI {
|
|
|
16752
16812
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
16753
16813
|
* items passed into this method.
|
|
16754
16814
|
*/
|
|
16755
|
-
this.create = (...shipments) => __async$
|
|
16815
|
+
this.create = (...shipments) => __async$R(this, null, function* () {
|
|
16756
16816
|
return this.client.post("/v1/shipments", {
|
|
16757
16817
|
shipments
|
|
16758
16818
|
});
|
|
@@ -34144,26 +34204,26 @@ class WebhooksAPI {
|
|
|
34144
34204
|
}
|
|
34145
34205
|
}
|
|
34146
34206
|
|
|
34147
|
-
var __defProp$
|
|
34148
|
-
var __defProps$
|
|
34149
|
-
var __getOwnPropDescs$
|
|
34150
|
-
var __getOwnPropSymbols$
|
|
34151
|
-
var __hasOwnProp$
|
|
34152
|
-
var __propIsEnum$
|
|
34153
|
-
var __defNormalProp$
|
|
34154
|
-
var __spreadValues$
|
|
34207
|
+
var __defProp$q = Object.defineProperty;
|
|
34208
|
+
var __defProps$n = Object.defineProperties;
|
|
34209
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
34210
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
34211
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
34212
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
34213
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34214
|
+
var __spreadValues$q = (a, b) => {
|
|
34155
34215
|
for (var prop in b || (b = {}))
|
|
34156
|
-
if (__hasOwnProp$
|
|
34157
|
-
__defNormalProp$
|
|
34158
|
-
if (__getOwnPropSymbols$
|
|
34159
|
-
for (var prop of __getOwnPropSymbols$
|
|
34160
|
-
if (__propIsEnum$
|
|
34161
|
-
__defNormalProp$
|
|
34216
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
34217
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
34218
|
+
if (__getOwnPropSymbols$A)
|
|
34219
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
34220
|
+
if (__propIsEnum$A.call(b, prop))
|
|
34221
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
34162
34222
|
}
|
|
34163
34223
|
return a;
|
|
34164
34224
|
};
|
|
34165
|
-
var __spreadProps$
|
|
34166
|
-
var __async$
|
|
34225
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
34226
|
+
var __async$Q = (__this, __arguments, generator) => {
|
|
34167
34227
|
return new Promise((resolve, reject) => {
|
|
34168
34228
|
var fulfilled = (value) => {
|
|
34169
34229
|
try {
|
|
@@ -34186,7 +34246,7 @@ var __async$O = (__this, __arguments, generator) => {
|
|
|
34186
34246
|
const logger$1 = E({
|
|
34187
34247
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34188
34248
|
name: "shipengine-api",
|
|
34189
|
-
serializers: __spreadProps$
|
|
34249
|
+
serializers: __spreadProps$n(__spreadValues$q({}, k), {
|
|
34190
34250
|
req: (req) => ({
|
|
34191
34251
|
headers: req.headers,
|
|
34192
34252
|
method: req.method,
|
|
@@ -34211,7 +34271,7 @@ class ShipEngineAPI {
|
|
|
34211
34271
|
this.getSandboxToken = getSandboxToken;
|
|
34212
34272
|
const client = axios.create({
|
|
34213
34273
|
baseURL,
|
|
34214
|
-
headers: __spreadProps$
|
|
34274
|
+
headers: __spreadProps$n(__spreadValues$q({}, headers), {
|
|
34215
34275
|
"Content-Type": "application/json"
|
|
34216
34276
|
}),
|
|
34217
34277
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34246,7 +34306,7 @@ class ShipEngineAPI {
|
|
|
34246
34306
|
});
|
|
34247
34307
|
client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
|
|
34248
34308
|
client.interceptors.request.use(
|
|
34249
|
-
(config) => __async$
|
|
34309
|
+
(config) => __async$Q(this, null, function* () {
|
|
34250
34310
|
if (config.isSandbox) {
|
|
34251
34311
|
if (!this.sandboxToken) {
|
|
34252
34312
|
this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
|
|
@@ -34273,7 +34333,7 @@ class ShipEngineAPI {
|
|
|
34273
34333
|
);
|
|
34274
34334
|
return res;
|
|
34275
34335
|
},
|
|
34276
|
-
(err) => __async$
|
|
34336
|
+
(err) => __async$Q(this, null, function* () {
|
|
34277
34337
|
var _a, _b, _c, _d, _e;
|
|
34278
34338
|
logger$1.error(
|
|
34279
34339
|
{ err, req: err.config, res: err.response },
|
|
@@ -34320,7 +34380,7 @@ class ShipEngineAPI {
|
|
|
34320
34380
|
* that token (also known as Seller ID)
|
|
34321
34381
|
*/
|
|
34322
34382
|
getTenant(isSandbox) {
|
|
34323
|
-
return __async$
|
|
34383
|
+
return __async$Q(this, null, function* () {
|
|
34324
34384
|
var _a;
|
|
34325
34385
|
if (!isSandbox) {
|
|
34326
34386
|
return this.getTenantFromToken(this.token);
|
|
@@ -34411,6 +34471,15 @@ class ShipEngineAPI {
|
|
|
34411
34471
|
get insurance() {
|
|
34412
34472
|
return new InsuranceAPI(this.client);
|
|
34413
34473
|
}
|
|
34474
|
+
/**
|
|
34475
|
+
* The `invoiceAddress` method provides access to the Invoice Address endpoints
|
|
34476
|
+
* in ShipEngine API.
|
|
34477
|
+
*
|
|
34478
|
+
* @see {@link InvoiceAddress | The Invoice Address API module}
|
|
34479
|
+
*/
|
|
34480
|
+
get invoiceAddress() {
|
|
34481
|
+
return new InvoiceAddressAPI(this.client);
|
|
34482
|
+
}
|
|
34414
34483
|
/**
|
|
34415
34484
|
* The `labels` method provides access to the Label endpoints in ShipEngine API.
|
|
34416
34485
|
* e.g. Create Label, Get Label, Void Label, etc.
|
|
@@ -34590,25 +34659,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34590
34659
|
|
|
34591
34660
|
const onError = (_errors) => _default();
|
|
34592
34661
|
|
|
34593
|
-
var __defProp$
|
|
34594
|
-
var __defProps$
|
|
34595
|
-
var __getOwnPropDescs$
|
|
34596
|
-
var __getOwnPropSymbols$
|
|
34597
|
-
var __hasOwnProp$
|
|
34598
|
-
var __propIsEnum$
|
|
34599
|
-
var __defNormalProp$
|
|
34600
|
-
var __spreadValues$
|
|
34662
|
+
var __defProp$p = Object.defineProperty;
|
|
34663
|
+
var __defProps$m = Object.defineProperties;
|
|
34664
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
34665
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
34666
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
34667
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
34668
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34669
|
+
var __spreadValues$p = (a, b) => {
|
|
34601
34670
|
for (var prop in b || (b = {}))
|
|
34602
|
-
if (__hasOwnProp$
|
|
34603
|
-
__defNormalProp$
|
|
34604
|
-
if (__getOwnPropSymbols$
|
|
34605
|
-
for (var prop of __getOwnPropSymbols$
|
|
34606
|
-
if (__propIsEnum$
|
|
34607
|
-
__defNormalProp$
|
|
34671
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
34672
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
34673
|
+
if (__getOwnPropSymbols$z)
|
|
34674
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
34675
|
+
if (__propIsEnum$z.call(b, prop))
|
|
34676
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
34608
34677
|
}
|
|
34609
34678
|
return a;
|
|
34610
34679
|
};
|
|
34611
|
-
var __spreadProps$
|
|
34680
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
34612
34681
|
const streams = [];
|
|
34613
34682
|
if (process.env.NODE_ENV === "production") {
|
|
34614
34683
|
streams.push({
|
|
@@ -34617,7 +34686,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34617
34686
|
}
|
|
34618
34687
|
const logger = E({
|
|
34619
34688
|
name: "shipengine",
|
|
34620
|
-
serializers: __spreadProps$
|
|
34689
|
+
serializers: __spreadProps$m(__spreadValues$p({}, k), {
|
|
34621
34690
|
req: (req) => ({
|
|
34622
34691
|
headers: req.headers,
|
|
34623
34692
|
method: req.method,
|
|
@@ -34642,7 +34711,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
34642
34711
|
throw error;
|
|
34643
34712
|
});
|
|
34644
34713
|
|
|
34645
|
-
var __async$
|
|
34714
|
+
var __async$P = (__this, __arguments, generator) => {
|
|
34646
34715
|
return new Promise((resolve, reject) => {
|
|
34647
34716
|
var fulfilled = (value) => {
|
|
34648
34717
|
try {
|
|
@@ -34665,7 +34734,7 @@ var __async$N = (__this, __arguments, generator) => {
|
|
|
34665
34734
|
const useCreateAccountImage = () => {
|
|
34666
34735
|
const { client } = useShipEngine();
|
|
34667
34736
|
return useMutation({
|
|
34668
|
-
mutationFn: (data) => __async$
|
|
34737
|
+
mutationFn: (data) => __async$P(void 0, null, function* () {
|
|
34669
34738
|
const result = yield client.accountSettings.createImage(data);
|
|
34670
34739
|
return result.data;
|
|
34671
34740
|
}),
|
|
@@ -34674,7 +34743,7 @@ const useCreateAccountImage = () => {
|
|
|
34674
34743
|
});
|
|
34675
34744
|
};
|
|
34676
34745
|
|
|
34677
|
-
var __async$
|
|
34746
|
+
var __async$O = (__this, __arguments, generator) => {
|
|
34678
34747
|
return new Promise((resolve, reject) => {
|
|
34679
34748
|
var fulfilled = (value) => {
|
|
34680
34749
|
try {
|
|
@@ -34697,7 +34766,7 @@ var __async$M = (__this, __arguments, generator) => {
|
|
|
34697
34766
|
const useDeleteAccountImage = () => {
|
|
34698
34767
|
const { client } = useShipEngine();
|
|
34699
34768
|
return useMutation({
|
|
34700
|
-
mutationFn: (labelImageId) => __async$
|
|
34769
|
+
mutationFn: (labelImageId) => __async$O(void 0, null, function* () {
|
|
34701
34770
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
34702
34771
|
return result.data;
|
|
34703
34772
|
}),
|
|
@@ -34726,7 +34795,7 @@ const useGetAccountSettings = () => {
|
|
|
34726
34795
|
});
|
|
34727
34796
|
};
|
|
34728
34797
|
|
|
34729
|
-
var __async$
|
|
34798
|
+
var __async$N = (__this, __arguments, generator) => {
|
|
34730
34799
|
return new Promise((resolve, reject) => {
|
|
34731
34800
|
var fulfilled = (value) => {
|
|
34732
34801
|
try {
|
|
@@ -34749,7 +34818,7 @@ var __async$L = (__this, __arguments, generator) => {
|
|
|
34749
34818
|
const useUpdateAccountImage = () => {
|
|
34750
34819
|
const { client } = useShipEngine();
|
|
34751
34820
|
return useMutation({
|
|
34752
|
-
mutationFn: (data) => __async$
|
|
34821
|
+
mutationFn: (data) => __async$N(void 0, null, function* () {
|
|
34753
34822
|
const result = yield client.accountSettings.updateImage(data);
|
|
34754
34823
|
return result.data;
|
|
34755
34824
|
}),
|
|
@@ -34758,7 +34827,7 @@ const useUpdateAccountImage = () => {
|
|
|
34758
34827
|
});
|
|
34759
34828
|
};
|
|
34760
34829
|
|
|
34761
|
-
var __async$
|
|
34830
|
+
var __async$M = (__this, __arguments, generator) => {
|
|
34762
34831
|
return new Promise((resolve, reject) => {
|
|
34763
34832
|
var fulfilled = (value) => {
|
|
34764
34833
|
try {
|
|
@@ -34781,7 +34850,7 @@ var __async$K = (__this, __arguments, generator) => {
|
|
|
34781
34850
|
const useUpdateAccountSettings = () => {
|
|
34782
34851
|
const { client } = useShipEngine();
|
|
34783
34852
|
return useMutation({
|
|
34784
|
-
mutationFn: (settings) => __async$
|
|
34853
|
+
mutationFn: (settings) => __async$M(void 0, null, function* () {
|
|
34785
34854
|
const result = yield client.accountSettings.update(settings);
|
|
34786
34855
|
return result.data;
|
|
34787
34856
|
}),
|
|
@@ -34790,7 +34859,7 @@ const useUpdateAccountSettings = () => {
|
|
|
34790
34859
|
});
|
|
34791
34860
|
};
|
|
34792
34861
|
|
|
34793
|
-
var __async$
|
|
34862
|
+
var __async$L = (__this, __arguments, generator) => {
|
|
34794
34863
|
return new Promise((resolve, reject) => {
|
|
34795
34864
|
var fulfilled = (value) => {
|
|
34796
34865
|
try {
|
|
@@ -34813,7 +34882,7 @@ var __async$J = (__this, __arguments, generator) => {
|
|
|
34813
34882
|
const useParseAddress = () => {
|
|
34814
34883
|
const { client } = useShipEngine();
|
|
34815
34884
|
return useMutation({
|
|
34816
|
-
mutationFn: (_0) => __async$
|
|
34885
|
+
mutationFn: (_0) => __async$L(void 0, [_0], function* ({ address, text }) {
|
|
34817
34886
|
const result = yield client.addresses.parse(text, address);
|
|
34818
34887
|
return result.data;
|
|
34819
34888
|
}),
|
|
@@ -34822,7 +34891,7 @@ const useParseAddress = () => {
|
|
|
34822
34891
|
});
|
|
34823
34892
|
};
|
|
34824
34893
|
|
|
34825
|
-
var __async$
|
|
34894
|
+
var __async$K = (__this, __arguments, generator) => {
|
|
34826
34895
|
return new Promise((resolve, reject) => {
|
|
34827
34896
|
var fulfilled = (value) => {
|
|
34828
34897
|
try {
|
|
@@ -34845,7 +34914,7 @@ var __async$I = (__this, __arguments, generator) => {
|
|
|
34845
34914
|
const useValidateAddresses = () => {
|
|
34846
34915
|
const { client } = useShipEngine();
|
|
34847
34916
|
return useMutation({
|
|
34848
|
-
mutationFn: (addresses) => __async$
|
|
34917
|
+
mutationFn: (addresses) => __async$K(void 0, null, function* () {
|
|
34849
34918
|
const result = yield client.addresses.validate(addresses);
|
|
34850
34919
|
return result.data;
|
|
34851
34920
|
}),
|
|
@@ -34854,7 +34923,7 @@ const useValidateAddresses = () => {
|
|
|
34854
34923
|
});
|
|
34855
34924
|
};
|
|
34856
34925
|
|
|
34857
|
-
var __async$
|
|
34926
|
+
var __async$J = (__this, __arguments, generator) => {
|
|
34858
34927
|
return new Promise((resolve, reject) => {
|
|
34859
34928
|
var fulfilled = (value) => {
|
|
34860
34929
|
try {
|
|
@@ -34877,7 +34946,7 @@ var __async$H = (__this, __arguments, generator) => {
|
|
|
34877
34946
|
const useAddFunds = () => {
|
|
34878
34947
|
const { client } = useShipEngine();
|
|
34879
34948
|
return useMutation({
|
|
34880
|
-
mutationFn: (_0) => __async$
|
|
34949
|
+
mutationFn: (_0) => __async$J(void 0, [_0], function* ({ carrierId, funds }) {
|
|
34881
34950
|
const result = yield client.carriers.addFunds(carrierId, funds);
|
|
34882
34951
|
return result.data;
|
|
34883
34952
|
}),
|
|
@@ -34886,7 +34955,7 @@ const useAddFunds = () => {
|
|
|
34886
34955
|
});
|
|
34887
34956
|
};
|
|
34888
34957
|
|
|
34889
|
-
var __async$
|
|
34958
|
+
var __async$I = (__this, __arguments, generator) => {
|
|
34890
34959
|
return new Promise((resolve, reject) => {
|
|
34891
34960
|
var fulfilled = (value) => {
|
|
34892
34961
|
try {
|
|
@@ -34909,7 +34978,7 @@ var __async$G = (__this, __arguments, generator) => {
|
|
|
34909
34978
|
const useConnectCarrier = () => {
|
|
34910
34979
|
const { client } = useShipEngine();
|
|
34911
34980
|
return useMutation({
|
|
34912
|
-
mutationFn: (params) => __async$
|
|
34981
|
+
mutationFn: (params) => __async$I(void 0, null, function* () {
|
|
34913
34982
|
const result = yield client.carriers.connect(params);
|
|
34914
34983
|
return result.data;
|
|
34915
34984
|
}),
|
|
@@ -35018,41 +35087,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
35018
35087
|
});
|
|
35019
35088
|
};
|
|
35020
35089
|
|
|
35021
|
-
var __defProp$
|
|
35022
|
-
var __defProps$
|
|
35023
|
-
var __getOwnPropDescs$
|
|
35024
|
-
var __getOwnPropSymbols$
|
|
35025
|
-
var __hasOwnProp$
|
|
35026
|
-
var __propIsEnum$
|
|
35027
|
-
var __defNormalProp$
|
|
35028
|
-
var __spreadValues$
|
|
35090
|
+
var __defProp$o = Object.defineProperty;
|
|
35091
|
+
var __defProps$l = Object.defineProperties;
|
|
35092
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
35093
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
35094
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
35095
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
35096
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35097
|
+
var __spreadValues$o = (a, b) => {
|
|
35029
35098
|
for (var prop in b || (b = {}))
|
|
35030
|
-
if (__hasOwnProp$
|
|
35031
|
-
__defNormalProp$
|
|
35032
|
-
if (__getOwnPropSymbols$
|
|
35033
|
-
for (var prop of __getOwnPropSymbols$
|
|
35034
|
-
if (__propIsEnum$
|
|
35035
|
-
__defNormalProp$
|
|
35099
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
35100
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
35101
|
+
if (__getOwnPropSymbols$y)
|
|
35102
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
35103
|
+
if (__propIsEnum$y.call(b, prop))
|
|
35104
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
35036
35105
|
}
|
|
35037
35106
|
return a;
|
|
35038
35107
|
};
|
|
35039
|
-
var __spreadProps$
|
|
35108
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
35040
35109
|
var __objRest$l = (source, exclude) => {
|
|
35041
35110
|
var target = {};
|
|
35042
35111
|
for (var prop in source)
|
|
35043
|
-
if (__hasOwnProp$
|
|
35112
|
+
if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35044
35113
|
target[prop] = source[prop];
|
|
35045
|
-
if (source != null && __getOwnPropSymbols$
|
|
35046
|
-
for (var prop of __getOwnPropSymbols$
|
|
35047
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35114
|
+
if (source != null && __getOwnPropSymbols$y)
|
|
35115
|
+
for (var prop of __getOwnPropSymbols$y(source)) {
|
|
35116
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
|
|
35048
35117
|
target[prop] = source[prop];
|
|
35049
35118
|
}
|
|
35050
35119
|
return target;
|
|
35051
35120
|
};
|
|
35052
35121
|
const useListCarriers = (params) => {
|
|
35053
35122
|
const { client } = useShipEngine();
|
|
35054
|
-
const _a = __spreadValues$
|
|
35055
|
-
return useQuery(__spreadProps$
|
|
35123
|
+
const _a = __spreadValues$o({}, params), { queryFnParams } = _a, rest = __objRest$l(_a, ["queryFnParams"]);
|
|
35124
|
+
return useQuery(__spreadProps$l(__spreadValues$o({}, rest), {
|
|
35056
35125
|
onError,
|
|
35057
35126
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
35058
35127
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -35060,22 +35129,22 @@ const useListCarriers = (params) => {
|
|
|
35060
35129
|
}));
|
|
35061
35130
|
};
|
|
35062
35131
|
|
|
35063
|
-
var __getOwnPropSymbols$
|
|
35064
|
-
var __hasOwnProp$
|
|
35065
|
-
var __propIsEnum$
|
|
35132
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
35133
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
35134
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
35066
35135
|
var __objRest$k = (source, exclude) => {
|
|
35067
35136
|
var target = {};
|
|
35068
35137
|
for (var prop in source)
|
|
35069
|
-
if (__hasOwnProp$
|
|
35138
|
+
if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35070
35139
|
target[prop] = source[prop];
|
|
35071
|
-
if (source != null && __getOwnPropSymbols$
|
|
35072
|
-
for (var prop of __getOwnPropSymbols$
|
|
35073
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35140
|
+
if (source != null && __getOwnPropSymbols$x)
|
|
35141
|
+
for (var prop of __getOwnPropSymbols$x(source)) {
|
|
35142
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
|
|
35074
35143
|
target[prop] = source[prop];
|
|
35075
35144
|
}
|
|
35076
35145
|
return target;
|
|
35077
35146
|
};
|
|
35078
|
-
var __async$
|
|
35147
|
+
var __async$H = (__this, __arguments, generator) => {
|
|
35079
35148
|
return new Promise((resolve, reject) => {
|
|
35080
35149
|
var fulfilled = (value) => {
|
|
35081
35150
|
try {
|
|
@@ -35099,7 +35168,7 @@ const useUpdateAutoFunding = () => {
|
|
|
35099
35168
|
const { client } = useShipEngine();
|
|
35100
35169
|
const queryClient = useQueryClient();
|
|
35101
35170
|
return useMutation({
|
|
35102
|
-
mutationFn: (_a) => __async$
|
|
35171
|
+
mutationFn: (_a) => __async$H(void 0, null, function* () {
|
|
35103
35172
|
var _b = _a, { carrierId } = _b, options = __objRest$k(_b, ["carrierId"]);
|
|
35104
35173
|
const result = yield client.carriers.updateAutoFunding(carrierId, options);
|
|
35105
35174
|
return result.data;
|
|
@@ -35129,7 +35198,7 @@ const useGetZonesByCarrier = (carrierId) => {
|
|
|
35129
35198
|
});
|
|
35130
35199
|
};
|
|
35131
35200
|
|
|
35132
|
-
var __async$
|
|
35201
|
+
var __async$G = (__this, __arguments, generator) => {
|
|
35133
35202
|
return new Promise((resolve, reject) => {
|
|
35134
35203
|
var fulfilled = (value) => {
|
|
35135
35204
|
try {
|
|
@@ -35152,7 +35221,7 @@ var __async$E = (__this, __arguments, generator) => {
|
|
|
35152
35221
|
const useDeleteCarrier = () => {
|
|
35153
35222
|
const { client } = useShipEngine();
|
|
35154
35223
|
return useMutation({
|
|
35155
|
-
mutationFn: (carrierId) => __async$
|
|
35224
|
+
mutationFn: (carrierId) => __async$G(void 0, null, function* () {
|
|
35156
35225
|
const result = yield client.carriers.delete(carrierId);
|
|
35157
35226
|
return result.data;
|
|
35158
35227
|
}),
|
|
@@ -35161,17 +35230,17 @@ const useDeleteCarrier = () => {
|
|
|
35161
35230
|
});
|
|
35162
35231
|
};
|
|
35163
35232
|
|
|
35164
|
-
var __getOwnPropSymbols$
|
|
35165
|
-
var __hasOwnProp$
|
|
35166
|
-
var __propIsEnum$
|
|
35233
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
35234
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
35235
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
35167
35236
|
var __objRest$j = (source, exclude) => {
|
|
35168
35237
|
var target = {};
|
|
35169
35238
|
for (var prop in source)
|
|
35170
|
-
if (__hasOwnProp$
|
|
35239
|
+
if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35171
35240
|
target[prop] = source[prop];
|
|
35172
|
-
if (source != null && __getOwnPropSymbols$
|
|
35173
|
-
for (var prop of __getOwnPropSymbols$
|
|
35174
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35241
|
+
if (source != null && __getOwnPropSymbols$w)
|
|
35242
|
+
for (var prop of __getOwnPropSymbols$w(source)) {
|
|
35243
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
|
|
35175
35244
|
target[prop] = source[prop];
|
|
35176
35245
|
}
|
|
35177
35246
|
return target;
|
|
@@ -35188,17 +35257,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
35188
35257
|
});
|
|
35189
35258
|
};
|
|
35190
35259
|
|
|
35191
|
-
var __getOwnPropSymbols$
|
|
35192
|
-
var __hasOwnProp$
|
|
35193
|
-
var __propIsEnum$
|
|
35260
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
35261
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
35262
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
35194
35263
|
var __objRest$i = (source, exclude) => {
|
|
35195
35264
|
var target = {};
|
|
35196
35265
|
for (var prop in source)
|
|
35197
|
-
if (__hasOwnProp$
|
|
35266
|
+
if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35198
35267
|
target[prop] = source[prop];
|
|
35199
|
-
if (source != null && __getOwnPropSymbols$
|
|
35200
|
-
for (var prop of __getOwnPropSymbols$
|
|
35201
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35268
|
+
if (source != null && __getOwnPropSymbols$v)
|
|
35269
|
+
for (var prop of __getOwnPropSymbols$v(source)) {
|
|
35270
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
|
|
35202
35271
|
target[prop] = source[prop];
|
|
35203
35272
|
}
|
|
35204
35273
|
return target;
|
|
@@ -35215,7 +35284,7 @@ const useListCarrierConnections = (_params) => {
|
|
|
35215
35284
|
});
|
|
35216
35285
|
};
|
|
35217
35286
|
|
|
35218
|
-
var __async$
|
|
35287
|
+
var __async$F = (__this, __arguments, generator) => {
|
|
35219
35288
|
return new Promise((resolve, reject) => {
|
|
35220
35289
|
var fulfilled = (value) => {
|
|
35221
35290
|
try {
|
|
@@ -35238,7 +35307,7 @@ var __async$D = (__this, __arguments, generator) => {
|
|
|
35238
35307
|
const useConnectCarrierAccount = () => {
|
|
35239
35308
|
const { client } = useShipEngine();
|
|
35240
35309
|
return useMutation({
|
|
35241
|
-
mutationFn: (_0) => __async$
|
|
35310
|
+
mutationFn: (_0) => __async$F(void 0, [_0], function* ({ carrierName, formData }) {
|
|
35242
35311
|
const result = yield client.connections.connectCarrier(carrierName, formData);
|
|
35243
35312
|
return result.data;
|
|
35244
35313
|
}),
|
|
@@ -35258,33 +35327,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
35258
35327
|
});
|
|
35259
35328
|
};
|
|
35260
35329
|
|
|
35261
|
-
var __defProp$
|
|
35262
|
-
var __defProps$
|
|
35263
|
-
var __getOwnPropDescs$
|
|
35264
|
-
var __getOwnPropSymbols$
|
|
35265
|
-
var __hasOwnProp$
|
|
35266
|
-
var __propIsEnum$
|
|
35267
|
-
var __defNormalProp$
|
|
35268
|
-
var __spreadValues$
|
|
35330
|
+
var __defProp$n = Object.defineProperty;
|
|
35331
|
+
var __defProps$k = Object.defineProperties;
|
|
35332
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
35333
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
35334
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
35335
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
35336
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35337
|
+
var __spreadValues$n = (a, b) => {
|
|
35269
35338
|
for (var prop in b || (b = {}))
|
|
35270
|
-
if (__hasOwnProp$
|
|
35271
|
-
__defNormalProp$
|
|
35272
|
-
if (__getOwnPropSymbols$
|
|
35273
|
-
for (var prop of __getOwnPropSymbols$
|
|
35274
|
-
if (__propIsEnum$
|
|
35275
|
-
__defNormalProp$
|
|
35339
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
35340
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
35341
|
+
if (__getOwnPropSymbols$u)
|
|
35342
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
35343
|
+
if (__propIsEnum$u.call(b, prop))
|
|
35344
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
35276
35345
|
}
|
|
35277
35346
|
return a;
|
|
35278
35347
|
};
|
|
35279
|
-
var __spreadProps$
|
|
35348
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
35280
35349
|
var __objRest$h = (source, exclude) => {
|
|
35281
35350
|
var target = {};
|
|
35282
35351
|
for (var prop in source)
|
|
35283
|
-
if (__hasOwnProp$
|
|
35352
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35284
35353
|
target[prop] = source[prop];
|
|
35285
|
-
if (source != null && __getOwnPropSymbols$
|
|
35286
|
-
for (var prop of __getOwnPropSymbols$
|
|
35287
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35354
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
35355
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
35356
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
35288
35357
|
target[prop] = source[prop];
|
|
35289
35358
|
}
|
|
35290
35359
|
return target;
|
|
@@ -35297,7 +35366,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35297
35366
|
]);
|
|
35298
35367
|
const { client } = useShipEngine();
|
|
35299
35368
|
const { carrierName, carrierId } = queryFnParams;
|
|
35300
|
-
return useQuery(__spreadProps$
|
|
35369
|
+
return useQuery(__spreadProps$k(__spreadValues$n({}, params), {
|
|
35301
35370
|
onError,
|
|
35302
35371
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
35303
35372
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -35305,26 +35374,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35305
35374
|
}));
|
|
35306
35375
|
};
|
|
35307
35376
|
|
|
35308
|
-
var __defProp$
|
|
35309
|
-
var __defProps$
|
|
35310
|
-
var __getOwnPropDescs$
|
|
35311
|
-
var __getOwnPropSymbols$
|
|
35312
|
-
var __hasOwnProp$
|
|
35313
|
-
var __propIsEnum$
|
|
35314
|
-
var __defNormalProp$
|
|
35315
|
-
var __spreadValues$
|
|
35377
|
+
var __defProp$m = Object.defineProperty;
|
|
35378
|
+
var __defProps$j = Object.defineProperties;
|
|
35379
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
35380
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
35381
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
35382
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
35383
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35384
|
+
var __spreadValues$m = (a, b) => {
|
|
35316
35385
|
for (var prop in b || (b = {}))
|
|
35317
|
-
if (__hasOwnProp$
|
|
35318
|
-
__defNormalProp$
|
|
35319
|
-
if (__getOwnPropSymbols$
|
|
35320
|
-
for (var prop of __getOwnPropSymbols$
|
|
35321
|
-
if (__propIsEnum$
|
|
35322
|
-
__defNormalProp$
|
|
35386
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
35387
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
35388
|
+
if (__getOwnPropSymbols$t)
|
|
35389
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
35390
|
+
if (__propIsEnum$t.call(b, prop))
|
|
35391
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
35323
35392
|
}
|
|
35324
35393
|
return a;
|
|
35325
35394
|
};
|
|
35326
|
-
var __spreadProps$
|
|
35327
|
-
var __async$
|
|
35395
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
35396
|
+
var __async$E = (__this, __arguments, generator) => {
|
|
35328
35397
|
return new Promise((resolve, reject) => {
|
|
35329
35398
|
var fulfilled = (value) => {
|
|
35330
35399
|
try {
|
|
@@ -35346,8 +35415,8 @@ var __async$C = (__this, __arguments, generator) => {
|
|
|
35346
35415
|
};
|
|
35347
35416
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
35348
35417
|
const { client } = useShipEngine();
|
|
35349
|
-
return useMutation(__spreadProps$
|
|
35350
|
-
mutationFn: (_0) => __async$
|
|
35418
|
+
return useMutation(__spreadProps$j(__spreadValues$m({}, params), {
|
|
35419
|
+
mutationFn: (_0) => __async$E(void 0, [_0], function* ({
|
|
35351
35420
|
carrierName,
|
|
35352
35421
|
carrierId,
|
|
35353
35422
|
formData
|
|
@@ -35374,7 +35443,7 @@ const useListCustomPackageTypes = () => {
|
|
|
35374
35443
|
});
|
|
35375
35444
|
};
|
|
35376
35445
|
|
|
35377
|
-
var __async$
|
|
35446
|
+
var __async$D = (__this, __arguments, generator) => {
|
|
35378
35447
|
return new Promise((resolve, reject) => {
|
|
35379
35448
|
var fulfilled = (value) => {
|
|
35380
35449
|
try {
|
|
@@ -35397,7 +35466,7 @@ var __async$B = (__this, __arguments, generator) => {
|
|
|
35397
35466
|
const useCreateFundingSource = () => {
|
|
35398
35467
|
const { client } = useShipEngine();
|
|
35399
35468
|
return useMutation({
|
|
35400
|
-
mutationFn: (fundingSource) => __async$
|
|
35469
|
+
mutationFn: (fundingSource) => __async$D(void 0, null, function* () {
|
|
35401
35470
|
const result = yield client.fundingSources.create(fundingSource);
|
|
35402
35471
|
return result.data;
|
|
35403
35472
|
}),
|
|
@@ -35406,7 +35475,7 @@ const useCreateFundingSource = () => {
|
|
|
35406
35475
|
});
|
|
35407
35476
|
};
|
|
35408
35477
|
|
|
35409
|
-
var __async$
|
|
35478
|
+
var __async$C = (__this, __arguments, generator) => {
|
|
35410
35479
|
return new Promise((resolve, reject) => {
|
|
35411
35480
|
var fulfilled = (value) => {
|
|
35412
35481
|
try {
|
|
@@ -35429,7 +35498,7 @@ var __async$A = (__this, __arguments, generator) => {
|
|
|
35429
35498
|
const useFundingSourcesAddFunds = () => {
|
|
35430
35499
|
const { client } = useShipEngine();
|
|
35431
35500
|
return useMutation({
|
|
35432
|
-
mutationFn: (_0) => __async$
|
|
35501
|
+
mutationFn: (_0) => __async$C(void 0, [_0], function* ({ funds, fundingSourceId }) {
|
|
35433
35502
|
const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
|
|
35434
35503
|
return result.data;
|
|
35435
35504
|
}),
|
|
@@ -35458,7 +35527,7 @@ const useListFundingSources = () => {
|
|
|
35458
35527
|
});
|
|
35459
35528
|
};
|
|
35460
35529
|
|
|
35461
|
-
var __async$
|
|
35530
|
+
var __async$B = (__this, __arguments, generator) => {
|
|
35462
35531
|
return new Promise((resolve, reject) => {
|
|
35463
35532
|
var fulfilled = (value) => {
|
|
35464
35533
|
try {
|
|
@@ -35481,7 +35550,7 @@ var __async$z = (__this, __arguments, generator) => {
|
|
|
35481
35550
|
const useRegisterCarrier = () => {
|
|
35482
35551
|
const { client } = useShipEngine();
|
|
35483
35552
|
return useMutation({
|
|
35484
|
-
mutationFn: (carrier) => __async$
|
|
35553
|
+
mutationFn: (carrier) => __async$B(void 0, null, function* () {
|
|
35485
35554
|
const result = yield client.fundingSources.registerCarrier(carrier);
|
|
35486
35555
|
return result.data;
|
|
35487
35556
|
}),
|
|
@@ -35490,7 +35559,7 @@ const useRegisterCarrier = () => {
|
|
|
35490
35559
|
});
|
|
35491
35560
|
};
|
|
35492
35561
|
|
|
35493
|
-
var __async$
|
|
35562
|
+
var __async$A = (__this, __arguments, generator) => {
|
|
35494
35563
|
return new Promise((resolve, reject) => {
|
|
35495
35564
|
var fulfilled = (value) => {
|
|
35496
35565
|
try {
|
|
@@ -35513,7 +35582,7 @@ var __async$y = (__this, __arguments, generator) => {
|
|
|
35513
35582
|
const useUpdateFundingSource = () => {
|
|
35514
35583
|
const { client } = useShipEngine();
|
|
35515
35584
|
return useMutation({
|
|
35516
|
-
mutationFn: (_0) => __async$
|
|
35585
|
+
mutationFn: (_0) => __async$A(void 0, [_0], function* ({
|
|
35517
35586
|
billingInfo,
|
|
35518
35587
|
creditCardInfo,
|
|
35519
35588
|
fundingSourceId
|
|
@@ -35552,29 +35621,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
|
|
|
35552
35621
|
});
|
|
35553
35622
|
};
|
|
35554
35623
|
|
|
35555
|
-
var __defProp$
|
|
35556
|
-
var __defProps$
|
|
35557
|
-
var __getOwnPropDescs$
|
|
35558
|
-
var __getOwnPropSymbols$
|
|
35559
|
-
var __hasOwnProp$
|
|
35560
|
-
var __propIsEnum$
|
|
35561
|
-
var __defNormalProp$
|
|
35562
|
-
var __spreadValues$
|
|
35624
|
+
var __defProp$l = Object.defineProperty;
|
|
35625
|
+
var __defProps$i = Object.defineProperties;
|
|
35626
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
35627
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
35628
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
35629
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
35630
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35631
|
+
var __spreadValues$l = (a, b) => {
|
|
35563
35632
|
for (var prop in b || (b = {}))
|
|
35564
|
-
if (__hasOwnProp$
|
|
35565
|
-
__defNormalProp$
|
|
35566
|
-
if (__getOwnPropSymbols$
|
|
35567
|
-
for (var prop of __getOwnPropSymbols$
|
|
35568
|
-
if (__propIsEnum$
|
|
35569
|
-
__defNormalProp$
|
|
35633
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
35634
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
35635
|
+
if (__getOwnPropSymbols$s)
|
|
35636
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
35637
|
+
if (__propIsEnum$s.call(b, prop))
|
|
35638
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
35570
35639
|
}
|
|
35571
35640
|
return a;
|
|
35572
35641
|
};
|
|
35573
|
-
var __spreadProps$
|
|
35642
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
35574
35643
|
const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
|
|
35575
35644
|
const { client } = useShipEngine();
|
|
35576
|
-
const queryParams = __spreadValues$
|
|
35577
|
-
return useQuery(__spreadProps$
|
|
35645
|
+
const queryParams = __spreadValues$l({}, params);
|
|
35646
|
+
return useQuery(__spreadProps$i(__spreadValues$l({}, queryParams), {
|
|
35578
35647
|
onError,
|
|
35579
35648
|
queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
|
|
35580
35649
|
queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
|
|
@@ -35597,22 +35666,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
35597
35666
|
});
|
|
35598
35667
|
};
|
|
35599
35668
|
|
|
35600
|
-
var __getOwnPropSymbols$
|
|
35601
|
-
var __hasOwnProp$
|
|
35602
|
-
var __propIsEnum$
|
|
35669
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
35670
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
35671
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
35603
35672
|
var __objRest$g = (source, exclude) => {
|
|
35604
35673
|
var target = {};
|
|
35605
35674
|
for (var prop in source)
|
|
35606
|
-
if (__hasOwnProp$
|
|
35675
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35607
35676
|
target[prop] = source[prop];
|
|
35608
|
-
if (source != null && __getOwnPropSymbols$
|
|
35609
|
-
for (var prop of __getOwnPropSymbols$
|
|
35610
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35677
|
+
if (source != null && __getOwnPropSymbols$r)
|
|
35678
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
|
35679
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
|
35611
35680
|
target[prop] = source[prop];
|
|
35612
35681
|
}
|
|
35613
35682
|
return target;
|
|
35614
35683
|
};
|
|
35615
|
-
var __async$
|
|
35684
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
35616
35685
|
return new Promise((resolve, reject) => {
|
|
35617
35686
|
var fulfilled = (value) => {
|
|
35618
35687
|
try {
|
|
@@ -35635,7 +35704,7 @@ var __async$x = (__this, __arguments, generator) => {
|
|
|
35635
35704
|
const useAddInsuranceFunds = () => {
|
|
35636
35705
|
const { client } = useShipEngine();
|
|
35637
35706
|
return useMutation({
|
|
35638
|
-
mutationFn: (_a) => __async$
|
|
35707
|
+
mutationFn: (_a) => __async$z(void 0, null, function* () {
|
|
35639
35708
|
var _b = _a, { insuranceProvider } = _b, rest = __objRest$g(_b, ["insuranceProvider"]);
|
|
35640
35709
|
const result = yield client.insurance.addFunds(insuranceProvider, rest);
|
|
35641
35710
|
return result.data;
|
|
@@ -35645,6 +35714,137 @@ const useAddInsuranceFunds = () => {
|
|
|
35645
35714
|
});
|
|
35646
35715
|
};
|
|
35647
35716
|
|
|
35717
|
+
var __defProp$k = Object.defineProperty;
|
|
35718
|
+
var __defProps$h = Object.defineProperties;
|
|
35719
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
35720
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
35721
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
35722
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
35723
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35724
|
+
var __spreadValues$k = (a, b) => {
|
|
35725
|
+
for (var prop in b || (b = {}))
|
|
35726
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
35727
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
35728
|
+
if (__getOwnPropSymbols$q)
|
|
35729
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
35730
|
+
if (__propIsEnum$q.call(b, prop))
|
|
35731
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
35732
|
+
}
|
|
35733
|
+
return a;
|
|
35734
|
+
};
|
|
35735
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
35736
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
35737
|
+
return new Promise((resolve, reject) => {
|
|
35738
|
+
var fulfilled = (value) => {
|
|
35739
|
+
try {
|
|
35740
|
+
step(generator.next(value));
|
|
35741
|
+
} catch (e) {
|
|
35742
|
+
reject(e);
|
|
35743
|
+
}
|
|
35744
|
+
};
|
|
35745
|
+
var rejected = (value) => {
|
|
35746
|
+
try {
|
|
35747
|
+
step(generator.throw(value));
|
|
35748
|
+
} catch (e) {
|
|
35749
|
+
reject(e);
|
|
35750
|
+
}
|
|
35751
|
+
};
|
|
35752
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35753
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35754
|
+
});
|
|
35755
|
+
};
|
|
35756
|
+
const useCreateInvoiceAddress = (params) => {
|
|
35757
|
+
const { client } = useShipEngine();
|
|
35758
|
+
return useMutation(__spreadProps$h(__spreadValues$k({}, params), {
|
|
35759
|
+
mutationFn: (invoiceAddress) => __async$y(void 0, null, function* () {
|
|
35760
|
+
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
35761
|
+
return result.data.invoiceAddress;
|
|
35762
|
+
}),
|
|
35763
|
+
mutationKey: ["useCreateInvoiceAddress"],
|
|
35764
|
+
onError
|
|
35765
|
+
}));
|
|
35766
|
+
};
|
|
35767
|
+
|
|
35768
|
+
var __defProp$j = Object.defineProperty;
|
|
35769
|
+
var __defProps$g = Object.defineProperties;
|
|
35770
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
35771
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
35772
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
35773
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
35774
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35775
|
+
var __spreadValues$j = (a, b) => {
|
|
35776
|
+
for (var prop in b || (b = {}))
|
|
35777
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
35778
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
35779
|
+
if (__getOwnPropSymbols$p)
|
|
35780
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
35781
|
+
if (__propIsEnum$p.call(b, prop))
|
|
35782
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
35783
|
+
}
|
|
35784
|
+
return a;
|
|
35785
|
+
};
|
|
35786
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
35787
|
+
var __async$x = (__this, __arguments, generator) => {
|
|
35788
|
+
return new Promise((resolve, reject) => {
|
|
35789
|
+
var fulfilled = (value) => {
|
|
35790
|
+
try {
|
|
35791
|
+
step(generator.next(value));
|
|
35792
|
+
} catch (e) {
|
|
35793
|
+
reject(e);
|
|
35794
|
+
}
|
|
35795
|
+
};
|
|
35796
|
+
var rejected = (value) => {
|
|
35797
|
+
try {
|
|
35798
|
+
step(generator.throw(value));
|
|
35799
|
+
} catch (e) {
|
|
35800
|
+
reject(e);
|
|
35801
|
+
}
|
|
35802
|
+
};
|
|
35803
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35804
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35805
|
+
});
|
|
35806
|
+
};
|
|
35807
|
+
const useUpdateInvoiceAddress = (params) => {
|
|
35808
|
+
const { client } = useShipEngine();
|
|
35809
|
+
return useMutation(__spreadProps$g(__spreadValues$j({}, params), {
|
|
35810
|
+
mutationFn: (invoiceAddress) => __async$x(void 0, null, function* () {
|
|
35811
|
+
const result = yield client.invoiceAddress.update(invoiceAddress);
|
|
35812
|
+
return result.data.invoiceAddress;
|
|
35813
|
+
}),
|
|
35814
|
+
mutationKey: ["useUpdateInvoiceAddress"],
|
|
35815
|
+
onError
|
|
35816
|
+
}));
|
|
35817
|
+
};
|
|
35818
|
+
|
|
35819
|
+
var __defProp$i = Object.defineProperty;
|
|
35820
|
+
var __defProps$f = Object.defineProperties;
|
|
35821
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
35822
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
35823
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
35824
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
35825
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35826
|
+
var __spreadValues$i = (a, b) => {
|
|
35827
|
+
for (var prop in b || (b = {}))
|
|
35828
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
35829
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
35830
|
+
if (__getOwnPropSymbols$o)
|
|
35831
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
35832
|
+
if (__propIsEnum$o.call(b, prop))
|
|
35833
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
35834
|
+
}
|
|
35835
|
+
return a;
|
|
35836
|
+
};
|
|
35837
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
35838
|
+
const useGetInvoiceAddress = (params) => {
|
|
35839
|
+
const { client } = useShipEngine();
|
|
35840
|
+
return useQuery(__spreadProps$f(__spreadValues$i({}, params), {
|
|
35841
|
+
onError,
|
|
35842
|
+
queryFn: () => client.invoiceAddress.get(),
|
|
35843
|
+
queryKey: ["useGetInvoiceAddress"],
|
|
35844
|
+
select: (result) => result.data.invoiceAddress
|
|
35845
|
+
}));
|
|
35846
|
+
};
|
|
35847
|
+
|
|
35648
35848
|
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
35649
35849
|
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
35650
35850
|
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
@@ -36196,10 +36396,12 @@ const useRatesEstimate = () => {
|
|
|
36196
36396
|
});
|
|
36197
36397
|
};
|
|
36198
36398
|
|
|
36199
|
-
const useGetSalesOrder = (salesOrderId) => {
|
|
36399
|
+
const useGetSalesOrder = (salesOrderId, config) => {
|
|
36400
|
+
var _a;
|
|
36200
36401
|
const { client } = useShipEngine();
|
|
36402
|
+
const enabled = (_a = config == null ? void 0 : config.enabled) != null ? _a : true;
|
|
36201
36403
|
return useQuery({
|
|
36202
|
-
enabled: salesOrderId !== void 0,
|
|
36404
|
+
enabled: salesOrderId !== void 0 && enabled,
|
|
36203
36405
|
onError,
|
|
36204
36406
|
queryFn: () => {
|
|
36205
36407
|
if (salesOrderId)
|
|
@@ -36211,6 +36413,23 @@ const useGetSalesOrder = (salesOrderId) => {
|
|
|
36211
36413
|
});
|
|
36212
36414
|
};
|
|
36213
36415
|
|
|
36416
|
+
const useGetSalesOrderByExternalOrderId = (externalOrderId, config) => {
|
|
36417
|
+
var _a;
|
|
36418
|
+
const { client } = useShipEngine();
|
|
36419
|
+
const enabled = (_a = config == null ? void 0 : config.enabled) != null ? _a : true;
|
|
36420
|
+
return useQuery({
|
|
36421
|
+
enabled: externalOrderId !== void 0 && enabled,
|
|
36422
|
+
onError,
|
|
36423
|
+
queryFn: () => {
|
|
36424
|
+
if (externalOrderId)
|
|
36425
|
+
return client.salesOrders.getByExternalId(externalOrderId);
|
|
36426
|
+
return Promise.reject(new Error("externalOrderId is required"));
|
|
36427
|
+
},
|
|
36428
|
+
queryKey: ["useGetSalesOrderByExternalOrderId", externalOrderId],
|
|
36429
|
+
select: (result) => result.data
|
|
36430
|
+
});
|
|
36431
|
+
};
|
|
36432
|
+
|
|
36214
36433
|
const useListSalesOrders = (params = {}) => {
|
|
36215
36434
|
const { client } = useShipEngine();
|
|
36216
36435
|
return useQuery({
|
|
@@ -36333,13 +36552,14 @@ const useGetSalesOrderShipment = (shipmentId) => {
|
|
|
36333
36552
|
});
|
|
36334
36553
|
};
|
|
36335
36554
|
|
|
36336
|
-
const useListSalesOrderShipments = (
|
|
36555
|
+
const useListSalesOrderShipments = (body) => {
|
|
36337
36556
|
const { client } = useShipEngine();
|
|
36557
|
+
const { shipmentIds, salesOrderIds, externalOrderIds } = body;
|
|
36338
36558
|
return useQuery({
|
|
36339
|
-
enabled:
|
|
36559
|
+
enabled: !!((shipmentIds == null ? void 0 : shipmentIds.length) || (salesOrderIds == null ? void 0 : salesOrderIds.length) || (externalOrderIds == null ? void 0 : externalOrderIds.length)),
|
|
36340
36560
|
onError,
|
|
36341
|
-
queryFn: () => client.salesOrderShipments.list(
|
|
36342
|
-
queryKey: ["useListSalesOrderShipments",
|
|
36561
|
+
queryFn: () => client.salesOrderShipments.list(body),
|
|
36562
|
+
queryKey: ["useListSalesOrderShipments", body],
|
|
36343
36563
|
select: (result) => result.data.shipments
|
|
36344
36564
|
});
|
|
36345
36565
|
};
|
|
@@ -36392,6 +36612,17 @@ const useUpdateSalesOrderShipment = () => {
|
|
|
36392
36612
|
});
|
|
36393
36613
|
};
|
|
36394
36614
|
|
|
36615
|
+
const useListSalesOrderShipmentsByExternalOrderId = (externalOrderId) => {
|
|
36616
|
+
const { client } = useShipEngine();
|
|
36617
|
+
return useQuery({
|
|
36618
|
+
enabled: externalOrderId !== null && externalOrderId.length > 0,
|
|
36619
|
+
onError,
|
|
36620
|
+
queryFn: () => client.salesOrderShipments.listShipmentsByExternalOrderId(externalOrderId),
|
|
36621
|
+
queryKey: ["useListSalesOrderShipments", externalOrderId],
|
|
36622
|
+
select: (result) => result.data.shipments
|
|
36623
|
+
});
|
|
36624
|
+
};
|
|
36625
|
+
|
|
36395
36626
|
var __defProp$f = Object.defineProperty;
|
|
36396
36627
|
var __defProps$c = Object.defineProperties;
|
|
36397
36628
|
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
@@ -38709,4 +38940,4 @@ const alchemy = {
|
|
|
38709
38940
|
createElement
|
|
38710
38941
|
};
|
|
38711
38942
|
|
|
38712
|
-
export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useValidateAddresses, useVoidLabel };
|
|
38943
|
+
export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useValidateAddresses, useVoidLabel };
|