@shipengine/alchemy 6.0.41 → 6.0.43
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 +560 -441
- package/index.mjs +559 -442
- 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$
|
|
10796
|
-
var __objRest$
|
|
10793
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
10794
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
10795
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
10796
|
+
var __objRest$t = (source, exclude) => {
|
|
10797
10797
|
var target = {};
|
|
10798
10798
|
for (var prop in source)
|
|
10799
|
-
if (__hasOwnProp$
|
|
10799
|
+
if (__hasOwnProp$P.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$P)
|
|
10802
|
+
for (var prop of __getOwnPropSymbols$P(source)) {
|
|
10803
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
|
|
10804
10804
|
target[prop] = source[prop];
|
|
10805
10805
|
}
|
|
10806
10806
|
return target;
|
|
@@ -10814,7 +10814,7 @@ class CodedError {
|
|
|
10814
10814
|
this.message = message;
|
|
10815
10815
|
}
|
|
10816
10816
|
static fromObject(_a) {
|
|
10817
|
-
var _b = _a, { message } = _b, options = __objRest$
|
|
10817
|
+
var _b = _a, { message } = _b, options = __objRest$t(_b, ["message"]);
|
|
10818
10818
|
return new CodedError(message, options);
|
|
10819
10819
|
}
|
|
10820
10820
|
}
|
|
@@ -10935,17 +10935,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10935
10935
|
RateCardStatus
|
|
10936
10936
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10937
10937
|
|
|
10938
|
-
var __getOwnPropSymbols$
|
|
10939
|
-
var __hasOwnProp$
|
|
10940
|
-
var __propIsEnum$
|
|
10941
|
-
var __objRest$
|
|
10938
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
10939
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
10940
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
10941
|
+
var __objRest$s = (source, exclude) => {
|
|
10942
10942
|
var target = {};
|
|
10943
10943
|
for (var prop in source)
|
|
10944
|
-
if (__hasOwnProp$
|
|
10944
|
+
if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10945
10945
|
target[prop] = source[prop];
|
|
10946
|
-
if (source != null && __getOwnPropSymbols$
|
|
10947
|
-
for (var prop of __getOwnPropSymbols$
|
|
10948
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10946
|
+
if (source != null && __getOwnPropSymbols$O)
|
|
10947
|
+
for (var prop of __getOwnPropSymbols$O(source)) {
|
|
10948
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
|
|
10949
10949
|
target[prop] = source[prop];
|
|
10950
10950
|
}
|
|
10951
10951
|
return target;
|
|
@@ -10977,7 +10977,7 @@ class AccountSettingsAPI {
|
|
|
10977
10977
|
* The `updateImage` method updates specific image data for a given image id.
|
|
10978
10978
|
*/
|
|
10979
10979
|
this.updateImage = (_a) => {
|
|
10980
|
-
var _b = _a, { labelImageId } = _b, data = __objRest$
|
|
10980
|
+
var _b = _a, { labelImageId } = _b, data = __objRest$s(_b, ["labelImageId"]);
|
|
10981
10981
|
return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
|
|
10982
10982
|
};
|
|
10983
10983
|
/**
|
|
@@ -13749,7 +13749,7 @@ var ipaddr = {
|
|
|
13749
13749
|
}).call(commonjsGlobal);
|
|
13750
13750
|
} (ipaddr));
|
|
13751
13751
|
|
|
13752
|
-
var __async
|
|
13752
|
+
var __async$10 = (__this, __arguments, generator) => {
|
|
13753
13753
|
return new Promise((resolve, reject) => {
|
|
13754
13754
|
var fulfilled = (value) => {
|
|
13755
13755
|
try {
|
|
@@ -13769,7 +13769,7 @@ var __async$$ = (__this, __arguments, generator) => {
|
|
|
13769
13769
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13770
13770
|
});
|
|
13771
13771
|
};
|
|
13772
|
-
const getEndUserIpAddress = () => __async
|
|
13772
|
+
const getEndUserIpAddress = () => __async$10(void 0, null, function* () {
|
|
13773
13773
|
try {
|
|
13774
13774
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13775
13775
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13826,38 +13826,38 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13826
13826
|
return obj;
|
|
13827
13827
|
};
|
|
13828
13828
|
|
|
13829
|
-
var __defProp$
|
|
13830
|
-
var __defProps$
|
|
13831
|
-
var __getOwnPropDescs$
|
|
13832
|
-
var __getOwnPropSymbols$
|
|
13833
|
-
var __hasOwnProp$
|
|
13834
|
-
var __propIsEnum$
|
|
13835
|
-
var __defNormalProp$
|
|
13836
|
-
var __spreadValues$
|
|
13829
|
+
var __defProp$D = Object.defineProperty;
|
|
13830
|
+
var __defProps$x = Object.defineProperties;
|
|
13831
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
13832
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
13833
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
13834
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
13835
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13836
|
+
var __spreadValues$D = (a, b) => {
|
|
13837
13837
|
for (var prop in b || (b = {}))
|
|
13838
|
-
if (__hasOwnProp$
|
|
13839
|
-
__defNormalProp$
|
|
13840
|
-
if (__getOwnPropSymbols$
|
|
13841
|
-
for (var prop of __getOwnPropSymbols$
|
|
13842
|
-
if (__propIsEnum$
|
|
13843
|
-
__defNormalProp$
|
|
13838
|
+
if (__hasOwnProp$N.call(b, prop))
|
|
13839
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
13840
|
+
if (__getOwnPropSymbols$N)
|
|
13841
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
13842
|
+
if (__propIsEnum$N.call(b, prop))
|
|
13843
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
13844
13844
|
}
|
|
13845
13845
|
return a;
|
|
13846
13846
|
};
|
|
13847
|
-
var __spreadProps$
|
|
13848
|
-
var __objRest$
|
|
13847
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
13848
|
+
var __objRest$r = (source, exclude) => {
|
|
13849
13849
|
var target = {};
|
|
13850
13850
|
for (var prop in source)
|
|
13851
|
-
if (__hasOwnProp$
|
|
13851
|
+
if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13852
13852
|
target[prop] = source[prop];
|
|
13853
|
-
if (source != null && __getOwnPropSymbols$
|
|
13854
|
-
for (var prop of __getOwnPropSymbols$
|
|
13855
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13853
|
+
if (source != null && __getOwnPropSymbols$N)
|
|
13854
|
+
for (var prop of __getOwnPropSymbols$N(source)) {
|
|
13855
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
|
|
13856
13856
|
target[prop] = source[prop];
|
|
13857
13857
|
}
|
|
13858
13858
|
return target;
|
|
13859
13859
|
};
|
|
13860
|
-
var __async
|
|
13860
|
+
var __async$$ = (__this, __arguments, generator) => {
|
|
13861
13861
|
return new Promise((resolve, reject) => {
|
|
13862
13862
|
var fulfilled = (value) => {
|
|
13863
13863
|
try {
|
|
@@ -13897,12 +13897,12 @@ class CarriersAPI {
|
|
|
13897
13897
|
/**
|
|
13898
13898
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
13899
13899
|
*/
|
|
13900
|
-
this.connect = (_a) => __async
|
|
13901
|
-
var _b = _a, { carrierCode } = _b, connection = __objRest$
|
|
13900
|
+
this.connect = (_a) => __async$$(this, null, function* () {
|
|
13901
|
+
var _b = _a, { carrierCode } = _b, connection = __objRest$r(_b, ["carrierCode"]);
|
|
13902
13902
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13903
13903
|
if (!endUserIpAddress)
|
|
13904
13904
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13905
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13905
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$x(__spreadValues$D({}, connection), {
|
|
13906
13906
|
endUserIpAddress
|
|
13907
13907
|
}));
|
|
13908
13908
|
});
|
|
@@ -13988,7 +13988,7 @@ class CarriersAPI {
|
|
|
13988
13988
|
}
|
|
13989
13989
|
}
|
|
13990
13990
|
|
|
13991
|
-
var __async$
|
|
13991
|
+
var __async$_ = (__this, __arguments, generator) => {
|
|
13992
13992
|
return new Promise((resolve, reject) => {
|
|
13993
13993
|
var fulfilled = (value) => {
|
|
13994
13994
|
try {
|
|
@@ -14030,7 +14030,7 @@ class ConnectionsAPI {
|
|
|
14030
14030
|
/**
|
|
14031
14031
|
* The `connectCarrier` method connects a carrier to account.
|
|
14032
14032
|
*/
|
|
14033
|
-
this.connectCarrier = (carrierName, formData) => __async$
|
|
14033
|
+
this.connectCarrier = (carrierName, formData) => __async$_(this, null, function* () {
|
|
14034
14034
|
return yield this.client.post(
|
|
14035
14035
|
`/v1/connections/carriers/${carrierName}`,
|
|
14036
14036
|
formData,
|
|
@@ -16186,23 +16186,23 @@ class CustomPackagesAPI {
|
|
|
16186
16186
|
}
|
|
16187
16187
|
}
|
|
16188
16188
|
|
|
16189
|
-
var __defProp$
|
|
16190
|
-
var __getOwnPropSymbols$
|
|
16191
|
-
var __hasOwnProp$
|
|
16192
|
-
var __propIsEnum$
|
|
16193
|
-
var __defNormalProp$
|
|
16194
|
-
var __spreadValues$
|
|
16189
|
+
var __defProp$C = Object.defineProperty;
|
|
16190
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
16191
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
16192
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
|
16193
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16194
|
+
var __spreadValues$C = (a, b) => {
|
|
16195
16195
|
for (var prop in b || (b = {}))
|
|
16196
|
-
if (__hasOwnProp$
|
|
16197
|
-
__defNormalProp$
|
|
16198
|
-
if (__getOwnPropSymbols$
|
|
16199
|
-
for (var prop of __getOwnPropSymbols$
|
|
16200
|
-
if (__propIsEnum$
|
|
16201
|
-
__defNormalProp$
|
|
16196
|
+
if (__hasOwnProp$M.call(b, prop))
|
|
16197
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
16198
|
+
if (__getOwnPropSymbols$M)
|
|
16199
|
+
for (var prop of __getOwnPropSymbols$M(b)) {
|
|
16200
|
+
if (__propIsEnum$M.call(b, prop))
|
|
16201
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
16202
16202
|
}
|
|
16203
16203
|
return a;
|
|
16204
16204
|
};
|
|
16205
|
-
var __async$
|
|
16205
|
+
var __async$Z = (__this, __arguments, generator) => {
|
|
16206
16206
|
return new Promise((resolve, reject) => {
|
|
16207
16207
|
var fulfilled = (value) => {
|
|
16208
16208
|
try {
|
|
@@ -16241,12 +16241,12 @@ class FundingSourcesAPI {
|
|
|
16241
16241
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16242
16242
|
* payment information to be collected from the user.
|
|
16243
16243
|
*/
|
|
16244
|
-
this.create = (createFundingSource) => __async$
|
|
16244
|
+
this.create = (createFundingSource) => __async$Z(this, null, function* () {
|
|
16245
16245
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16246
16246
|
if (!endUserIpAddress) {
|
|
16247
16247
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16248
16248
|
}
|
|
16249
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16249
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$C({
|
|
16250
16250
|
endUserIpAddress
|
|
16251
16251
|
}, createFundingSource));
|
|
16252
16252
|
});
|
|
@@ -16255,7 +16255,7 @@ class FundingSourcesAPI {
|
|
|
16255
16255
|
* user to update the billing address or payment information associated with the
|
|
16256
16256
|
* funding source.
|
|
16257
16257
|
*/
|
|
16258
|
-
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$
|
|
16258
|
+
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$Z(this, null, function* () {
|
|
16259
16259
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16260
16260
|
if (!endUserIpAddress) {
|
|
16261
16261
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16265,7 +16265,7 @@ class FundingSourcesAPI {
|
|
|
16265
16265
|
{
|
|
16266
16266
|
billingInfo,
|
|
16267
16267
|
endUserIpAddress,
|
|
16268
|
-
paymentMethod: __spreadValues$
|
|
16268
|
+
paymentMethod: __spreadValues$C({
|
|
16269
16269
|
creditCardInfo
|
|
16270
16270
|
}, auctanePayInfo)
|
|
16271
16271
|
}
|
|
@@ -16275,19 +16275,19 @@ class FundingSourcesAPI {
|
|
|
16275
16275
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16276
16276
|
* it with a given funding source.
|
|
16277
16277
|
*/
|
|
16278
|
-
this.registerCarrier = (carrier) => __async$
|
|
16278
|
+
this.registerCarrier = (carrier) => __async$Z(this, null, function* () {
|
|
16279
16279
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16280
16280
|
if (!endUserIpAddress) {
|
|
16281
16281
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16282
16282
|
}
|
|
16283
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16283
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$C({
|
|
16284
16284
|
endUserIpAddress
|
|
16285
16285
|
}, carrier));
|
|
16286
16286
|
});
|
|
16287
16287
|
/**
|
|
16288
16288
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16289
16289
|
*/
|
|
16290
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16290
|
+
this.addFunds = (amount, fundingSourceId) => __async$Z(this, null, function* () {
|
|
16291
16291
|
return yield this.client.put(
|
|
16292
16292
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16293
16293
|
amount
|
|
@@ -16297,7 +16297,7 @@ class FundingSourcesAPI {
|
|
|
16297
16297
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16298
16298
|
* and attaching carriers
|
|
16299
16299
|
*/
|
|
16300
|
-
this.metadata = () => __async$
|
|
16300
|
+
this.metadata = () => __async$Z(this, null, function* () {
|
|
16301
16301
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16302
16302
|
});
|
|
16303
16303
|
/**
|
|
@@ -16349,7 +16349,7 @@ class InsuranceAPI {
|
|
|
16349
16349
|
}
|
|
16350
16350
|
}
|
|
16351
16351
|
|
|
16352
|
-
var __async$
|
|
16352
|
+
var __async$Y = (__this, __arguments, generator) => {
|
|
16353
16353
|
return new Promise((resolve, reject) => {
|
|
16354
16354
|
var fulfilled = (value) => {
|
|
16355
16355
|
try {
|
|
@@ -16381,13 +16381,13 @@ class InvoiceAddressAPI {
|
|
|
16381
16381
|
/**
|
|
16382
16382
|
* The `create` method creates a new invoice address for a given user.
|
|
16383
16383
|
*/
|
|
16384
|
-
this.create = (invoiceAddress) => __async$
|
|
16384
|
+
this.create = (invoiceAddress) => __async$Y(this, null, function* () {
|
|
16385
16385
|
return yield this.client.post("/v1/invoice_address", invoiceAddress);
|
|
16386
16386
|
});
|
|
16387
16387
|
/**
|
|
16388
16388
|
* The `update` method updates a invoice address for a given user.
|
|
16389
16389
|
*/
|
|
16390
|
-
this.update = (invoiceAddress) => __async$
|
|
16390
|
+
this.update = (invoiceAddress) => __async$Y(this, null, function* () {
|
|
16391
16391
|
return yield this.client.put("/v1/invoice_address", invoiceAddress);
|
|
16392
16392
|
});
|
|
16393
16393
|
this.client = client;
|
|
@@ -16433,21 +16433,33 @@ class LabelsAPI {
|
|
|
16433
16433
|
this.void = (labelId) => {
|
|
16434
16434
|
return this.client.put(`/v1/labels/${labelId}/void`);
|
|
16435
16435
|
};
|
|
16436
|
+
/**
|
|
16437
|
+
* The `download` method allows for downloading a CSV document of labels based on the provided parameters.
|
|
16438
|
+
*/
|
|
16439
|
+
this.download = (params) => {
|
|
16440
|
+
return this.client.get("/v1/labels/downloads", {
|
|
16441
|
+
headers: {
|
|
16442
|
+
Accept: "text/csv"
|
|
16443
|
+
},
|
|
16444
|
+
params,
|
|
16445
|
+
responseType: "blob"
|
|
16446
|
+
});
|
|
16447
|
+
};
|
|
16436
16448
|
this.client = client;
|
|
16437
16449
|
}
|
|
16438
16450
|
}
|
|
16439
16451
|
|
|
16440
|
-
var __getOwnPropSymbols$
|
|
16441
|
-
var __hasOwnProp$
|
|
16442
|
-
var __propIsEnum$
|
|
16443
|
-
var __objRest$
|
|
16452
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
16453
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
16454
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
|
16455
|
+
var __objRest$q = (source, exclude) => {
|
|
16444
16456
|
var target = {};
|
|
16445
16457
|
for (var prop in source)
|
|
16446
|
-
if (__hasOwnProp$
|
|
16458
|
+
if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16447
16459
|
target[prop] = source[prop];
|
|
16448
|
-
if (source != null && __getOwnPropSymbols$
|
|
16449
|
-
for (var prop of __getOwnPropSymbols$
|
|
16450
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16460
|
+
if (source != null && __getOwnPropSymbols$L)
|
|
16461
|
+
for (var prop of __getOwnPropSymbols$L(source)) {
|
|
16462
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
|
|
16451
16463
|
target[prop] = source[prop];
|
|
16452
16464
|
}
|
|
16453
16465
|
return target;
|
|
@@ -16479,7 +16491,7 @@ class OrderSourcesAPI {
|
|
|
16479
16491
|
* The `update` method will allow the user to update a connected Order Source
|
|
16480
16492
|
*/
|
|
16481
16493
|
this.update = (_a) => {
|
|
16482
|
-
var _b = _a, { orderSourceId } = _b, rest = __objRest$
|
|
16494
|
+
var _b = _a, { orderSourceId } = _b, rest = __objRest$q(_b, ["orderSourceId"]);
|
|
16483
16495
|
return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
|
|
16484
16496
|
};
|
|
16485
16497
|
/**
|
|
@@ -16568,19 +16580,19 @@ class RateCardsAPI {
|
|
|
16568
16580
|
}
|
|
16569
16581
|
}
|
|
16570
16582
|
|
|
16571
|
-
var __defProp$
|
|
16572
|
-
var __getOwnPropSymbols$
|
|
16573
|
-
var __hasOwnProp$
|
|
16574
|
-
var __propIsEnum$
|
|
16575
|
-
var __defNormalProp$
|
|
16576
|
-
var __spreadValues$
|
|
16583
|
+
var __defProp$B = Object.defineProperty;
|
|
16584
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
16585
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
|
16586
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
|
16587
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16588
|
+
var __spreadValues$B = (a, b) => {
|
|
16577
16589
|
for (var prop in b || (b = {}))
|
|
16578
|
-
if (__hasOwnProp$
|
|
16579
|
-
__defNormalProp$
|
|
16580
|
-
if (__getOwnPropSymbols$
|
|
16581
|
-
for (var prop of __getOwnPropSymbols$
|
|
16582
|
-
if (__propIsEnum$
|
|
16583
|
-
__defNormalProp$
|
|
16590
|
+
if (__hasOwnProp$K.call(b, prop))
|
|
16591
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
16592
|
+
if (__getOwnPropSymbols$K)
|
|
16593
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
|
16594
|
+
if (__propIsEnum$K.call(b, prop))
|
|
16595
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
16584
16596
|
}
|
|
16585
16597
|
return a;
|
|
16586
16598
|
};
|
|
@@ -16602,7 +16614,7 @@ class RatesAPI {
|
|
|
16602
16614
|
* method.
|
|
16603
16615
|
*/
|
|
16604
16616
|
this.estimate = (params) => {
|
|
16605
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16617
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$B({}, params));
|
|
16606
16618
|
};
|
|
16607
16619
|
this.client = client;
|
|
16608
16620
|
}
|
|
@@ -16682,7 +16694,7 @@ class SalesOrdersAPI {
|
|
|
16682
16694
|
}
|
|
16683
16695
|
}
|
|
16684
16696
|
|
|
16685
|
-
var __async$
|
|
16697
|
+
var __async$X = (__this, __arguments, generator) => {
|
|
16686
16698
|
return new Promise((resolve, reject) => {
|
|
16687
16699
|
var fulfilled = (value) => {
|
|
16688
16700
|
try {
|
|
@@ -16740,7 +16752,7 @@ class SellersAPI {
|
|
|
16740
16752
|
/**
|
|
16741
16753
|
* Deletes an API Key
|
|
16742
16754
|
*/
|
|
16743
|
-
this.deleteSellerApiKey = (_0) => __async$
|
|
16755
|
+
this.deleteSellerApiKey = (_0) => __async$X(this, [_0], function* ({
|
|
16744
16756
|
encryptedApiKey,
|
|
16745
16757
|
sellerId,
|
|
16746
16758
|
isSandbox
|
|
@@ -16786,19 +16798,19 @@ class SellersAPI {
|
|
|
16786
16798
|
}
|
|
16787
16799
|
}
|
|
16788
16800
|
|
|
16789
|
-
var __defProp$
|
|
16790
|
-
var __getOwnPropSymbols$
|
|
16791
|
-
var __hasOwnProp$
|
|
16792
|
-
var __propIsEnum$
|
|
16793
|
-
var __defNormalProp$
|
|
16794
|
-
var __spreadValues$
|
|
16801
|
+
var __defProp$A = Object.defineProperty;
|
|
16802
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
16803
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
16804
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
16805
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16806
|
+
var __spreadValues$A = (a, b) => {
|
|
16795
16807
|
for (var prop in b || (b = {}))
|
|
16796
|
-
if (__hasOwnProp$
|
|
16797
|
-
__defNormalProp$
|
|
16798
|
-
if (__getOwnPropSymbols$
|
|
16799
|
-
for (var prop of __getOwnPropSymbols$
|
|
16800
|
-
if (__propIsEnum$
|
|
16801
|
-
__defNormalProp$
|
|
16808
|
+
if (__hasOwnProp$J.call(b, prop))
|
|
16809
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
16810
|
+
if (__getOwnPropSymbols$J)
|
|
16811
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
16812
|
+
if (__propIsEnum$J.call(b, prop))
|
|
16813
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
16802
16814
|
}
|
|
16803
16815
|
return a;
|
|
16804
16816
|
};
|
|
@@ -16810,7 +16822,7 @@ class ServicePointsAPI {
|
|
|
16810
16822
|
* Either an address, coordinates, or an address query
|
|
16811
16823
|
*/
|
|
16812
16824
|
this.list = (options) => {
|
|
16813
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16825
|
+
return this.client.post("/v1/service_points/list", __spreadValues$A({}, options));
|
|
16814
16826
|
};
|
|
16815
16827
|
/**
|
|
16816
16828
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -16828,7 +16840,7 @@ class ServicePointsAPI {
|
|
|
16828
16840
|
}
|
|
16829
16841
|
}
|
|
16830
16842
|
|
|
16831
|
-
var __async$
|
|
16843
|
+
var __async$W = (__this, __arguments, generator) => {
|
|
16832
16844
|
return new Promise((resolve, reject) => {
|
|
16833
16845
|
var fulfilled = (value) => {
|
|
16834
16846
|
try {
|
|
@@ -16877,7 +16889,7 @@ class ShipmentsAPI {
|
|
|
16877
16889
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
16878
16890
|
* items passed into this method.
|
|
16879
16891
|
*/
|
|
16880
|
-
this.create = (...shipments) => __async$
|
|
16892
|
+
this.create = (...shipments) => __async$W(this, null, function* () {
|
|
16881
16893
|
return this.client.post("/v1/shipments", {
|
|
16882
16894
|
shipments
|
|
16883
16895
|
});
|
|
@@ -34269,26 +34281,26 @@ class WebhooksAPI {
|
|
|
34269
34281
|
}
|
|
34270
34282
|
}
|
|
34271
34283
|
|
|
34272
|
-
var __defProp$
|
|
34273
|
-
var __defProps$
|
|
34274
|
-
var __getOwnPropDescs$
|
|
34275
|
-
var __getOwnPropSymbols$
|
|
34276
|
-
var __hasOwnProp$
|
|
34277
|
-
var __propIsEnum$
|
|
34278
|
-
var __defNormalProp$
|
|
34279
|
-
var __spreadValues$
|
|
34284
|
+
var __defProp$z = Object.defineProperty;
|
|
34285
|
+
var __defProps$w = Object.defineProperties;
|
|
34286
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
34287
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
34288
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
34289
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
34290
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34291
|
+
var __spreadValues$z = (a, b) => {
|
|
34280
34292
|
for (var prop in b || (b = {}))
|
|
34281
|
-
if (__hasOwnProp$
|
|
34282
|
-
__defNormalProp$
|
|
34283
|
-
if (__getOwnPropSymbols$
|
|
34284
|
-
for (var prop of __getOwnPropSymbols$
|
|
34285
|
-
if (__propIsEnum$
|
|
34286
|
-
__defNormalProp$
|
|
34293
|
+
if (__hasOwnProp$I.call(b, prop))
|
|
34294
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
34295
|
+
if (__getOwnPropSymbols$I)
|
|
34296
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
|
34297
|
+
if (__propIsEnum$I.call(b, prop))
|
|
34298
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
34287
34299
|
}
|
|
34288
34300
|
return a;
|
|
34289
34301
|
};
|
|
34290
|
-
var __spreadProps$
|
|
34291
|
-
var __async$
|
|
34302
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
34303
|
+
var __async$V = (__this, __arguments, generator) => {
|
|
34292
34304
|
return new Promise((resolve, reject) => {
|
|
34293
34305
|
var fulfilled = (value) => {
|
|
34294
34306
|
try {
|
|
@@ -34311,7 +34323,7 @@ var __async$U = (__this, __arguments, generator) => {
|
|
|
34311
34323
|
const logger$1 = E({
|
|
34312
34324
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34313
34325
|
name: "shipengine-api",
|
|
34314
|
-
serializers: __spreadProps$
|
|
34326
|
+
serializers: __spreadProps$w(__spreadValues$z({}, k), {
|
|
34315
34327
|
req: (req) => ({
|
|
34316
34328
|
headers: req.headers,
|
|
34317
34329
|
method: req.method,
|
|
@@ -34336,7 +34348,7 @@ class ShipEngineAPI {
|
|
|
34336
34348
|
this.getSandboxToken = getSandboxToken;
|
|
34337
34349
|
const client = axios.create({
|
|
34338
34350
|
baseURL,
|
|
34339
|
-
headers: __spreadProps$
|
|
34351
|
+
headers: __spreadProps$w(__spreadValues$z({}, headers), {
|
|
34340
34352
|
"Content-Type": "application/json"
|
|
34341
34353
|
}),
|
|
34342
34354
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34371,7 +34383,7 @@ class ShipEngineAPI {
|
|
|
34371
34383
|
});
|
|
34372
34384
|
client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
|
|
34373
34385
|
client.interceptors.request.use(
|
|
34374
|
-
(config) => __async$
|
|
34386
|
+
(config) => __async$V(this, null, function* () {
|
|
34375
34387
|
if (config.isSandbox) {
|
|
34376
34388
|
if (!this.sandboxToken) {
|
|
34377
34389
|
this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
|
|
@@ -34398,7 +34410,7 @@ class ShipEngineAPI {
|
|
|
34398
34410
|
);
|
|
34399
34411
|
return res;
|
|
34400
34412
|
},
|
|
34401
|
-
(err) => __async$
|
|
34413
|
+
(err) => __async$V(this, null, function* () {
|
|
34402
34414
|
var _a, _b, _c, _d, _e;
|
|
34403
34415
|
logger$1.error(
|
|
34404
34416
|
{ err, req: err.config, res: err.response },
|
|
@@ -34445,7 +34457,7 @@ class ShipEngineAPI {
|
|
|
34445
34457
|
* that token (also known as Seller ID)
|
|
34446
34458
|
*/
|
|
34447
34459
|
getTenant(isSandbox) {
|
|
34448
|
-
return __async$
|
|
34460
|
+
return __async$V(this, null, function* () {
|
|
34449
34461
|
var _a;
|
|
34450
34462
|
if (!isSandbox) {
|
|
34451
34463
|
return this.getTenantFromToken(this.token);
|
|
@@ -34740,25 +34752,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34740
34752
|
|
|
34741
34753
|
const onError = (_errors) => _default();
|
|
34742
34754
|
|
|
34743
|
-
var __defProp$
|
|
34744
|
-
var __defProps$
|
|
34745
|
-
var __getOwnPropDescs$
|
|
34746
|
-
var __getOwnPropSymbols$
|
|
34747
|
-
var __hasOwnProp$
|
|
34748
|
-
var __propIsEnum$
|
|
34749
|
-
var __defNormalProp$
|
|
34750
|
-
var __spreadValues$
|
|
34755
|
+
var __defProp$y = Object.defineProperty;
|
|
34756
|
+
var __defProps$v = Object.defineProperties;
|
|
34757
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
34758
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
34759
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
34760
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
34761
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34762
|
+
var __spreadValues$y = (a, b) => {
|
|
34751
34763
|
for (var prop in b || (b = {}))
|
|
34752
|
-
if (__hasOwnProp$
|
|
34753
|
-
__defNormalProp$
|
|
34754
|
-
if (__getOwnPropSymbols$
|
|
34755
|
-
for (var prop of __getOwnPropSymbols$
|
|
34756
|
-
if (__propIsEnum$
|
|
34757
|
-
__defNormalProp$
|
|
34764
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
34765
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
34766
|
+
if (__getOwnPropSymbols$H)
|
|
34767
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
34768
|
+
if (__propIsEnum$H.call(b, prop))
|
|
34769
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
34758
34770
|
}
|
|
34759
34771
|
return a;
|
|
34760
34772
|
};
|
|
34761
|
-
var __spreadProps$
|
|
34773
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
34762
34774
|
const streams = [];
|
|
34763
34775
|
if (process.env.NODE_ENV === "production") {
|
|
34764
34776
|
streams.push({
|
|
@@ -34767,7 +34779,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34767
34779
|
}
|
|
34768
34780
|
const logger = E({
|
|
34769
34781
|
name: "shipengine",
|
|
34770
|
-
serializers: __spreadProps$
|
|
34782
|
+
serializers: __spreadProps$v(__spreadValues$y({}, k), {
|
|
34771
34783
|
req: (req) => ({
|
|
34772
34784
|
headers: req.headers,
|
|
34773
34785
|
method: req.method,
|
|
@@ -34792,7 +34804,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
34792
34804
|
throw error;
|
|
34793
34805
|
});
|
|
34794
34806
|
|
|
34795
|
-
var __async$
|
|
34807
|
+
var __async$U = (__this, __arguments, generator) => {
|
|
34796
34808
|
return new Promise((resolve, reject) => {
|
|
34797
34809
|
var fulfilled = (value) => {
|
|
34798
34810
|
try {
|
|
@@ -34815,7 +34827,7 @@ var __async$T = (__this, __arguments, generator) => {
|
|
|
34815
34827
|
const useCreateAccountImage = () => {
|
|
34816
34828
|
const { client } = useShipEngine();
|
|
34817
34829
|
return useMutation({
|
|
34818
|
-
mutationFn: (data) => __async$
|
|
34830
|
+
mutationFn: (data) => __async$U(void 0, null, function* () {
|
|
34819
34831
|
const result = yield client.accountSettings.createImage(data);
|
|
34820
34832
|
return result.data;
|
|
34821
34833
|
}),
|
|
@@ -34824,7 +34836,7 @@ const useCreateAccountImage = () => {
|
|
|
34824
34836
|
});
|
|
34825
34837
|
};
|
|
34826
34838
|
|
|
34827
|
-
var __async$
|
|
34839
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
34828
34840
|
return new Promise((resolve, reject) => {
|
|
34829
34841
|
var fulfilled = (value) => {
|
|
34830
34842
|
try {
|
|
@@ -34847,7 +34859,7 @@ var __async$S = (__this, __arguments, generator) => {
|
|
|
34847
34859
|
const useDeleteAccountImage = () => {
|
|
34848
34860
|
const { client } = useShipEngine();
|
|
34849
34861
|
return useMutation({
|
|
34850
|
-
mutationFn: (labelImageId) => __async$
|
|
34862
|
+
mutationFn: (labelImageId) => __async$T(void 0, null, function* () {
|
|
34851
34863
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
34852
34864
|
return result.data;
|
|
34853
34865
|
}),
|
|
@@ -34876,7 +34888,7 @@ const useGetAccountSettings = () => {
|
|
|
34876
34888
|
});
|
|
34877
34889
|
};
|
|
34878
34890
|
|
|
34879
|
-
var __async$
|
|
34891
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
34880
34892
|
return new Promise((resolve, reject) => {
|
|
34881
34893
|
var fulfilled = (value) => {
|
|
34882
34894
|
try {
|
|
@@ -34899,7 +34911,7 @@ var __async$R = (__this, __arguments, generator) => {
|
|
|
34899
34911
|
const useUpdateAccountImage = () => {
|
|
34900
34912
|
const { client } = useShipEngine();
|
|
34901
34913
|
return useMutation({
|
|
34902
|
-
mutationFn: (data) => __async$
|
|
34914
|
+
mutationFn: (data) => __async$S(void 0, null, function* () {
|
|
34903
34915
|
const result = yield client.accountSettings.updateImage(data);
|
|
34904
34916
|
return result.data;
|
|
34905
34917
|
}),
|
|
@@ -34908,7 +34920,7 @@ const useUpdateAccountImage = () => {
|
|
|
34908
34920
|
});
|
|
34909
34921
|
};
|
|
34910
34922
|
|
|
34911
|
-
var __async$
|
|
34923
|
+
var __async$R = (__this, __arguments, generator) => {
|
|
34912
34924
|
return new Promise((resolve, reject) => {
|
|
34913
34925
|
var fulfilled = (value) => {
|
|
34914
34926
|
try {
|
|
@@ -34931,7 +34943,7 @@ var __async$Q = (__this, __arguments, generator) => {
|
|
|
34931
34943
|
const useUpdateAccountSettings = () => {
|
|
34932
34944
|
const { client } = useShipEngine();
|
|
34933
34945
|
return useMutation({
|
|
34934
|
-
mutationFn: (settings) => __async$
|
|
34946
|
+
mutationFn: (settings) => __async$R(void 0, null, function* () {
|
|
34935
34947
|
const result = yield client.accountSettings.update(settings);
|
|
34936
34948
|
return result.data;
|
|
34937
34949
|
}),
|
|
@@ -34940,7 +34952,7 @@ const useUpdateAccountSettings = () => {
|
|
|
34940
34952
|
});
|
|
34941
34953
|
};
|
|
34942
34954
|
|
|
34943
|
-
var __async$
|
|
34955
|
+
var __async$Q = (__this, __arguments, generator) => {
|
|
34944
34956
|
return new Promise((resolve, reject) => {
|
|
34945
34957
|
var fulfilled = (value) => {
|
|
34946
34958
|
try {
|
|
@@ -34963,7 +34975,7 @@ var __async$P = (__this, __arguments, generator) => {
|
|
|
34963
34975
|
const useParseAddress = () => {
|
|
34964
34976
|
const { client } = useShipEngine();
|
|
34965
34977
|
return useMutation({
|
|
34966
|
-
mutationFn: (_0) => __async$
|
|
34978
|
+
mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ address, text }) {
|
|
34967
34979
|
const result = yield client.addresses.parse(text, address);
|
|
34968
34980
|
return result.data;
|
|
34969
34981
|
}),
|
|
@@ -34972,7 +34984,7 @@ const useParseAddress = () => {
|
|
|
34972
34984
|
});
|
|
34973
34985
|
};
|
|
34974
34986
|
|
|
34975
|
-
var __async$
|
|
34987
|
+
var __async$P = (__this, __arguments, generator) => {
|
|
34976
34988
|
return new Promise((resolve, reject) => {
|
|
34977
34989
|
var fulfilled = (value) => {
|
|
34978
34990
|
try {
|
|
@@ -34995,7 +35007,7 @@ var __async$O = (__this, __arguments, generator) => {
|
|
|
34995
35007
|
const useValidateAddresses = () => {
|
|
34996
35008
|
const { client } = useShipEngine();
|
|
34997
35009
|
return useMutation({
|
|
34998
|
-
mutationFn: (addresses) => __async$
|
|
35010
|
+
mutationFn: (addresses) => __async$P(void 0, null, function* () {
|
|
34999
35011
|
const result = yield client.addresses.validate(addresses);
|
|
35000
35012
|
return result.data;
|
|
35001
35013
|
}),
|
|
@@ -35004,26 +35016,26 @@ const useValidateAddresses = () => {
|
|
|
35004
35016
|
});
|
|
35005
35017
|
};
|
|
35006
35018
|
|
|
35007
|
-
var __defProp$
|
|
35008
|
-
var __defProps$
|
|
35009
|
-
var __getOwnPropDescs$
|
|
35010
|
-
var __getOwnPropSymbols$
|
|
35011
|
-
var __hasOwnProp$
|
|
35012
|
-
var __propIsEnum$
|
|
35013
|
-
var __defNormalProp$
|
|
35014
|
-
var __spreadValues$
|
|
35019
|
+
var __defProp$x = Object.defineProperty;
|
|
35020
|
+
var __defProps$u = Object.defineProperties;
|
|
35021
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
35022
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
35023
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
35024
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
35025
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35026
|
+
var __spreadValues$x = (a, b) => {
|
|
35015
35027
|
for (var prop in b || (b = {}))
|
|
35016
|
-
if (__hasOwnProp$
|
|
35017
|
-
__defNormalProp$
|
|
35018
|
-
if (__getOwnPropSymbols$
|
|
35019
|
-
for (var prop of __getOwnPropSymbols$
|
|
35020
|
-
if (__propIsEnum$
|
|
35021
|
-
__defNormalProp$
|
|
35028
|
+
if (__hasOwnProp$G.call(b, prop))
|
|
35029
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
35030
|
+
if (__getOwnPropSymbols$G)
|
|
35031
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
|
35032
|
+
if (__propIsEnum$G.call(b, prop))
|
|
35033
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
35022
35034
|
}
|
|
35023
35035
|
return a;
|
|
35024
35036
|
};
|
|
35025
|
-
var __spreadProps$
|
|
35026
|
-
var __async$
|
|
35037
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
35038
|
+
var __async$O = (__this, __arguments, generator) => {
|
|
35027
35039
|
return new Promise((resolve, reject) => {
|
|
35028
35040
|
var fulfilled = (value) => {
|
|
35029
35041
|
try {
|
|
@@ -35045,8 +35057,8 @@ var __async$N = (__this, __arguments, generator) => {
|
|
|
35045
35057
|
};
|
|
35046
35058
|
const useCreateAuctanePaySession = (params) => {
|
|
35047
35059
|
const { client } = useShipEngine();
|
|
35048
|
-
return useMutation(__spreadProps$
|
|
35049
|
-
mutationFn: (request) => __async$
|
|
35060
|
+
return useMutation(__spreadProps$u(__spreadValues$x({}, params), {
|
|
35061
|
+
mutationFn: (request) => __async$O(void 0, null, function* () {
|
|
35050
35062
|
const result = yield client.auctanePay.createSession(request);
|
|
35051
35063
|
return result.data;
|
|
35052
35064
|
}),
|
|
@@ -35055,29 +35067,29 @@ const useCreateAuctanePaySession = (params) => {
|
|
|
35055
35067
|
}));
|
|
35056
35068
|
};
|
|
35057
35069
|
|
|
35058
|
-
var __defProp$
|
|
35059
|
-
var __defProps$
|
|
35060
|
-
var __getOwnPropDescs$
|
|
35061
|
-
var __getOwnPropSymbols$
|
|
35062
|
-
var __hasOwnProp$
|
|
35063
|
-
var __propIsEnum$
|
|
35064
|
-
var __defNormalProp$
|
|
35065
|
-
var __spreadValues$
|
|
35070
|
+
var __defProp$w = Object.defineProperty;
|
|
35071
|
+
var __defProps$t = Object.defineProperties;
|
|
35072
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
35073
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
35074
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
35075
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
35076
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35077
|
+
var __spreadValues$w = (a, b) => {
|
|
35066
35078
|
for (var prop in b || (b = {}))
|
|
35067
|
-
if (__hasOwnProp$
|
|
35068
|
-
__defNormalProp$
|
|
35069
|
-
if (__getOwnPropSymbols$
|
|
35070
|
-
for (var prop of __getOwnPropSymbols$
|
|
35071
|
-
if (__propIsEnum$
|
|
35072
|
-
__defNormalProp$
|
|
35079
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
35080
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
35081
|
+
if (__getOwnPropSymbols$F)
|
|
35082
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
35083
|
+
if (__propIsEnum$F.call(b, prop))
|
|
35084
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
35073
35085
|
}
|
|
35074
35086
|
return a;
|
|
35075
35087
|
};
|
|
35076
|
-
var __spreadProps$
|
|
35088
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
35077
35089
|
const useGetAuctanePayConfig = (params) => {
|
|
35078
35090
|
const { client } = useShipEngine();
|
|
35079
|
-
const queryParams = __spreadValues$
|
|
35080
|
-
return useQuery(__spreadProps$
|
|
35091
|
+
const queryParams = __spreadValues$w({}, params);
|
|
35092
|
+
return useQuery(__spreadProps$t(__spreadValues$w({}, queryParams), {
|
|
35081
35093
|
onError,
|
|
35082
35094
|
queryFn: () => client.auctanePay.getConfig(),
|
|
35083
35095
|
queryKey: ["useGetAuctanePayConfig"],
|
|
@@ -35085,7 +35097,7 @@ const useGetAuctanePayConfig = (params) => {
|
|
|
35085
35097
|
}));
|
|
35086
35098
|
};
|
|
35087
35099
|
|
|
35088
|
-
var __async$
|
|
35100
|
+
var __async$N = (__this, __arguments, generator) => {
|
|
35089
35101
|
return new Promise((resolve, reject) => {
|
|
35090
35102
|
var fulfilled = (value) => {
|
|
35091
35103
|
try {
|
|
@@ -35108,7 +35120,7 @@ var __async$M = (__this, __arguments, generator) => {
|
|
|
35108
35120
|
const useAddFunds = () => {
|
|
35109
35121
|
const { client } = useShipEngine();
|
|
35110
35122
|
return useMutation({
|
|
35111
|
-
mutationFn: (_0) => __async$
|
|
35123
|
+
mutationFn: (_0) => __async$N(void 0, [_0], function* ({ carrierId, funds }) {
|
|
35112
35124
|
const result = yield client.carriers.addFunds(carrierId, funds);
|
|
35113
35125
|
return result.data;
|
|
35114
35126
|
}),
|
|
@@ -35117,7 +35129,7 @@ const useAddFunds = () => {
|
|
|
35117
35129
|
});
|
|
35118
35130
|
};
|
|
35119
35131
|
|
|
35120
|
-
var __async$
|
|
35132
|
+
var __async$M = (__this, __arguments, generator) => {
|
|
35121
35133
|
return new Promise((resolve, reject) => {
|
|
35122
35134
|
var fulfilled = (value) => {
|
|
35123
35135
|
try {
|
|
@@ -35140,7 +35152,7 @@ var __async$L = (__this, __arguments, generator) => {
|
|
|
35140
35152
|
const useConnectCarrier = () => {
|
|
35141
35153
|
const { client } = useShipEngine();
|
|
35142
35154
|
return useMutation({
|
|
35143
|
-
mutationFn: (params) => __async$
|
|
35155
|
+
mutationFn: (params) => __async$M(void 0, null, function* () {
|
|
35144
35156
|
const result = yield client.carriers.connect(params);
|
|
35145
35157
|
return result.data;
|
|
35146
35158
|
}),
|
|
@@ -35249,41 +35261,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
35249
35261
|
});
|
|
35250
35262
|
};
|
|
35251
35263
|
|
|
35252
|
-
var __defProp$
|
|
35253
|
-
var __defProps$
|
|
35254
|
-
var __getOwnPropDescs$
|
|
35255
|
-
var __getOwnPropSymbols$
|
|
35256
|
-
var __hasOwnProp$
|
|
35257
|
-
var __propIsEnum$
|
|
35258
|
-
var __defNormalProp$
|
|
35259
|
-
var __spreadValues$
|
|
35264
|
+
var __defProp$v = Object.defineProperty;
|
|
35265
|
+
var __defProps$s = Object.defineProperties;
|
|
35266
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
35267
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
35268
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
35269
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
35270
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35271
|
+
var __spreadValues$v = (a, b) => {
|
|
35260
35272
|
for (var prop in b || (b = {}))
|
|
35261
|
-
if (__hasOwnProp$
|
|
35262
|
-
__defNormalProp$
|
|
35263
|
-
if (__getOwnPropSymbols$
|
|
35264
|
-
for (var prop of __getOwnPropSymbols$
|
|
35265
|
-
if (__propIsEnum$
|
|
35266
|
-
__defNormalProp$
|
|
35273
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
35274
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
35275
|
+
if (__getOwnPropSymbols$E)
|
|
35276
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
35277
|
+
if (__propIsEnum$E.call(b, prop))
|
|
35278
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
35267
35279
|
}
|
|
35268
35280
|
return a;
|
|
35269
35281
|
};
|
|
35270
|
-
var __spreadProps$
|
|
35271
|
-
var __objRest$
|
|
35282
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
35283
|
+
var __objRest$p = (source, exclude) => {
|
|
35272
35284
|
var target = {};
|
|
35273
35285
|
for (var prop in source)
|
|
35274
|
-
if (__hasOwnProp$
|
|
35286
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35275
35287
|
target[prop] = source[prop];
|
|
35276
|
-
if (source != null && __getOwnPropSymbols$
|
|
35277
|
-
for (var prop of __getOwnPropSymbols$
|
|
35278
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35288
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
35289
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
35290
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
35279
35291
|
target[prop] = source[prop];
|
|
35280
35292
|
}
|
|
35281
35293
|
return target;
|
|
35282
35294
|
};
|
|
35283
35295
|
const useListCarriers = (params) => {
|
|
35284
35296
|
const { client } = useShipEngine();
|
|
35285
|
-
const _a = __spreadValues$
|
|
35286
|
-
return useQuery(__spreadProps$
|
|
35297
|
+
const _a = __spreadValues$v({}, params), { queryFnParams } = _a, rest = __objRest$p(_a, ["queryFnParams"]);
|
|
35298
|
+
return useQuery(__spreadProps$s(__spreadValues$v({}, rest), {
|
|
35287
35299
|
onError,
|
|
35288
35300
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
35289
35301
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -35291,22 +35303,22 @@ const useListCarriers = (params) => {
|
|
|
35291
35303
|
}));
|
|
35292
35304
|
};
|
|
35293
35305
|
|
|
35294
|
-
var __getOwnPropSymbols$
|
|
35295
|
-
var __hasOwnProp$
|
|
35296
|
-
var __propIsEnum$
|
|
35297
|
-
var __objRest$
|
|
35306
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
35307
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
35308
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
35309
|
+
var __objRest$o = (source, exclude) => {
|
|
35298
35310
|
var target = {};
|
|
35299
35311
|
for (var prop in source)
|
|
35300
|
-
if (__hasOwnProp$
|
|
35312
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35301
35313
|
target[prop] = source[prop];
|
|
35302
|
-
if (source != null && __getOwnPropSymbols$
|
|
35303
|
-
for (var prop of __getOwnPropSymbols$
|
|
35304
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35314
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
35315
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
35316
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
35305
35317
|
target[prop] = source[prop];
|
|
35306
35318
|
}
|
|
35307
35319
|
return target;
|
|
35308
35320
|
};
|
|
35309
|
-
var __async$
|
|
35321
|
+
var __async$L = (__this, __arguments, generator) => {
|
|
35310
35322
|
return new Promise((resolve, reject) => {
|
|
35311
35323
|
var fulfilled = (value) => {
|
|
35312
35324
|
try {
|
|
@@ -35330,8 +35342,8 @@ const useUpdateAutoFunding = () => {
|
|
|
35330
35342
|
const { client } = useShipEngine();
|
|
35331
35343
|
const queryClient = useQueryClient();
|
|
35332
35344
|
return useMutation({
|
|
35333
|
-
mutationFn: (_a) => __async$
|
|
35334
|
-
var _b = _a, { carrierId } = _b, options = __objRest$
|
|
35345
|
+
mutationFn: (_a) => __async$L(void 0, null, function* () {
|
|
35346
|
+
var _b = _a, { carrierId } = _b, options = __objRest$o(_b, ["carrierId"]);
|
|
35335
35347
|
const result = yield client.carriers.updateAutoFunding(carrierId, options);
|
|
35336
35348
|
return result.data;
|
|
35337
35349
|
}),
|
|
@@ -35360,7 +35372,7 @@ const useGetZonesByCarrier = (carrierId) => {
|
|
|
35360
35372
|
});
|
|
35361
35373
|
};
|
|
35362
35374
|
|
|
35363
|
-
var __async$
|
|
35375
|
+
var __async$K = (__this, __arguments, generator) => {
|
|
35364
35376
|
return new Promise((resolve, reject) => {
|
|
35365
35377
|
var fulfilled = (value) => {
|
|
35366
35378
|
try {
|
|
@@ -35383,7 +35395,7 @@ var __async$J = (__this, __arguments, generator) => {
|
|
|
35383
35395
|
const useDeleteCarrier = () => {
|
|
35384
35396
|
const { client } = useShipEngine();
|
|
35385
35397
|
return useMutation({
|
|
35386
|
-
mutationFn: (carrierId) => __async$
|
|
35398
|
+
mutationFn: (carrierId) => __async$K(void 0, null, function* () {
|
|
35387
35399
|
const result = yield client.carriers.delete(carrierId);
|
|
35388
35400
|
return result.data;
|
|
35389
35401
|
}),
|
|
@@ -35392,24 +35404,24 @@ const useDeleteCarrier = () => {
|
|
|
35392
35404
|
});
|
|
35393
35405
|
};
|
|
35394
35406
|
|
|
35395
|
-
var __getOwnPropSymbols$
|
|
35396
|
-
var __hasOwnProp$
|
|
35397
|
-
var __propIsEnum$
|
|
35398
|
-
var __objRest$
|
|
35407
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
35408
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
35409
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
35410
|
+
var __objRest$n = (source, exclude) => {
|
|
35399
35411
|
var target = {};
|
|
35400
35412
|
for (var prop in source)
|
|
35401
|
-
if (__hasOwnProp$
|
|
35413
|
+
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35402
35414
|
target[prop] = source[prop];
|
|
35403
|
-
if (source != null && __getOwnPropSymbols$
|
|
35404
|
-
for (var prop of __getOwnPropSymbols$
|
|
35405
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35415
|
+
if (source != null && __getOwnPropSymbols$C)
|
|
35416
|
+
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
35417
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
35406
35418
|
target[prop] = source[prop];
|
|
35407
35419
|
}
|
|
35408
35420
|
return target;
|
|
35409
35421
|
};
|
|
35410
35422
|
const useGetCarrierConnectionForm = (_params) => {
|
|
35411
35423
|
const { client } = useShipEngine();
|
|
35412
|
-
const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$
|
|
35424
|
+
const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$n(_a, ["carrierName", "enabled"]);
|
|
35413
35425
|
return useQuery({
|
|
35414
35426
|
enabled,
|
|
35415
35427
|
onError,
|
|
@@ -35419,24 +35431,24 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
35419
35431
|
});
|
|
35420
35432
|
};
|
|
35421
35433
|
|
|
35422
|
-
var __getOwnPropSymbols$
|
|
35423
|
-
var __hasOwnProp$
|
|
35424
|
-
var __propIsEnum$
|
|
35425
|
-
var __objRest$
|
|
35434
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
35435
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
35436
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
35437
|
+
var __objRest$m = (source, exclude) => {
|
|
35426
35438
|
var target = {};
|
|
35427
35439
|
for (var prop in source)
|
|
35428
|
-
if (__hasOwnProp$
|
|
35440
|
+
if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35429
35441
|
target[prop] = source[prop];
|
|
35430
|
-
if (source != null && __getOwnPropSymbols$
|
|
35431
|
-
for (var prop of __getOwnPropSymbols$
|
|
35432
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35442
|
+
if (source != null && __getOwnPropSymbols$B)
|
|
35443
|
+
for (var prop of __getOwnPropSymbols$B(source)) {
|
|
35444
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
|
|
35433
35445
|
target[prop] = source[prop];
|
|
35434
35446
|
}
|
|
35435
35447
|
return target;
|
|
35436
35448
|
};
|
|
35437
35449
|
const useListCarrierConnections = (_params) => {
|
|
35438
35450
|
const { client } = useShipEngine();
|
|
35439
|
-
const _a = _params || {}, { enabled = true } = _a, params = __objRest$
|
|
35451
|
+
const _a = _params || {}, { enabled = true } = _a, params = __objRest$m(_a, ["enabled"]);
|
|
35440
35452
|
return useQuery({
|
|
35441
35453
|
enabled,
|
|
35442
35454
|
onError,
|
|
@@ -35446,7 +35458,7 @@ const useListCarrierConnections = (_params) => {
|
|
|
35446
35458
|
});
|
|
35447
35459
|
};
|
|
35448
35460
|
|
|
35449
|
-
var __async$
|
|
35461
|
+
var __async$J = (__this, __arguments, generator) => {
|
|
35450
35462
|
return new Promise((resolve, reject) => {
|
|
35451
35463
|
var fulfilled = (value) => {
|
|
35452
35464
|
try {
|
|
@@ -35469,7 +35481,7 @@ var __async$I = (__this, __arguments, generator) => {
|
|
|
35469
35481
|
const useConnectCarrierAccount = () => {
|
|
35470
35482
|
const { client } = useShipEngine();
|
|
35471
35483
|
return useMutation({
|
|
35472
|
-
mutationFn: (_0) => __async$
|
|
35484
|
+
mutationFn: (_0) => __async$J(void 0, [_0], function* ({ carrierName, formData }) {
|
|
35473
35485
|
const result = yield client.connections.connectCarrier(carrierName, formData);
|
|
35474
35486
|
return result.data;
|
|
35475
35487
|
}),
|
|
@@ -35489,33 +35501,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
35489
35501
|
});
|
|
35490
35502
|
};
|
|
35491
35503
|
|
|
35492
|
-
var __defProp$
|
|
35493
|
-
var __defProps$
|
|
35494
|
-
var __getOwnPropDescs$
|
|
35495
|
-
var __getOwnPropSymbols$
|
|
35496
|
-
var __hasOwnProp$
|
|
35497
|
-
var __propIsEnum$
|
|
35498
|
-
var __defNormalProp$
|
|
35499
|
-
var __spreadValues$
|
|
35504
|
+
var __defProp$u = Object.defineProperty;
|
|
35505
|
+
var __defProps$r = Object.defineProperties;
|
|
35506
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
35507
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
35508
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
35509
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
35510
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35511
|
+
var __spreadValues$u = (a, b) => {
|
|
35500
35512
|
for (var prop in b || (b = {}))
|
|
35501
|
-
if (__hasOwnProp$
|
|
35502
|
-
__defNormalProp$
|
|
35503
|
-
if (__getOwnPropSymbols$
|
|
35504
|
-
for (var prop of __getOwnPropSymbols$
|
|
35505
|
-
if (__propIsEnum$
|
|
35506
|
-
__defNormalProp$
|
|
35513
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
35514
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
35515
|
+
if (__getOwnPropSymbols$A)
|
|
35516
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
35517
|
+
if (__propIsEnum$A.call(b, prop))
|
|
35518
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
35507
35519
|
}
|
|
35508
35520
|
return a;
|
|
35509
35521
|
};
|
|
35510
|
-
var __spreadProps$
|
|
35511
|
-
var __objRest$
|
|
35522
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
35523
|
+
var __objRest$l = (source, exclude) => {
|
|
35512
35524
|
var target = {};
|
|
35513
35525
|
for (var prop in source)
|
|
35514
|
-
if (__hasOwnProp$
|
|
35526
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35515
35527
|
target[prop] = source[prop];
|
|
35516
|
-
if (source != null && __getOwnPropSymbols$
|
|
35517
|
-
for (var prop of __getOwnPropSymbols$
|
|
35518
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35528
|
+
if (source != null && __getOwnPropSymbols$A)
|
|
35529
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
|
35530
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
|
35519
35531
|
target[prop] = source[prop];
|
|
35520
35532
|
}
|
|
35521
35533
|
return target;
|
|
@@ -35523,12 +35535,12 @@ var __objRest$j = (source, exclude) => {
|
|
|
35523
35535
|
const useGetConnectionsCarrierSettings = (_a) => {
|
|
35524
35536
|
var _b = _a, {
|
|
35525
35537
|
queryFnParams
|
|
35526
|
-
} = _b, params = __objRest$
|
|
35538
|
+
} = _b, params = __objRest$l(_b, [
|
|
35527
35539
|
"queryFnParams"
|
|
35528
35540
|
]);
|
|
35529
35541
|
const { client } = useShipEngine();
|
|
35530
35542
|
const { carrierName, carrierId } = queryFnParams;
|
|
35531
|
-
return useQuery(__spreadProps$
|
|
35543
|
+
return useQuery(__spreadProps$r(__spreadValues$u({}, params), {
|
|
35532
35544
|
onError,
|
|
35533
35545
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
35534
35546
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -35536,26 +35548,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35536
35548
|
}));
|
|
35537
35549
|
};
|
|
35538
35550
|
|
|
35539
|
-
var __defProp$
|
|
35540
|
-
var __defProps$
|
|
35541
|
-
var __getOwnPropDescs$
|
|
35542
|
-
var __getOwnPropSymbols$
|
|
35543
|
-
var __hasOwnProp$
|
|
35544
|
-
var __propIsEnum$
|
|
35545
|
-
var __defNormalProp$
|
|
35546
|
-
var __spreadValues$
|
|
35551
|
+
var __defProp$t = Object.defineProperty;
|
|
35552
|
+
var __defProps$q = Object.defineProperties;
|
|
35553
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
35554
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
35555
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
35556
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
35557
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35558
|
+
var __spreadValues$t = (a, b) => {
|
|
35547
35559
|
for (var prop in b || (b = {}))
|
|
35548
|
-
if (__hasOwnProp$
|
|
35549
|
-
__defNormalProp$
|
|
35550
|
-
if (__getOwnPropSymbols$
|
|
35551
|
-
for (var prop of __getOwnPropSymbols$
|
|
35552
|
-
if (__propIsEnum$
|
|
35553
|
-
__defNormalProp$
|
|
35560
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
35561
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
35562
|
+
if (__getOwnPropSymbols$z)
|
|
35563
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
35564
|
+
if (__propIsEnum$z.call(b, prop))
|
|
35565
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
35554
35566
|
}
|
|
35555
35567
|
return a;
|
|
35556
35568
|
};
|
|
35557
|
-
var __spreadProps$
|
|
35558
|
-
var __async$
|
|
35569
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
35570
|
+
var __async$I = (__this, __arguments, generator) => {
|
|
35559
35571
|
return new Promise((resolve, reject) => {
|
|
35560
35572
|
var fulfilled = (value) => {
|
|
35561
35573
|
try {
|
|
@@ -35577,8 +35589,8 @@ var __async$H = (__this, __arguments, generator) => {
|
|
|
35577
35589
|
};
|
|
35578
35590
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
35579
35591
|
const { client } = useShipEngine();
|
|
35580
|
-
return useMutation(__spreadProps$
|
|
35581
|
-
mutationFn: (_0) => __async$
|
|
35592
|
+
return useMutation(__spreadProps$q(__spreadValues$t({}, params), {
|
|
35593
|
+
mutationFn: (_0) => __async$I(void 0, [_0], function* ({
|
|
35582
35594
|
carrierName,
|
|
35583
35595
|
carrierId,
|
|
35584
35596
|
formData
|
|
@@ -35605,7 +35617,7 @@ const useListCustomPackageTypes = () => {
|
|
|
35605
35617
|
});
|
|
35606
35618
|
};
|
|
35607
35619
|
|
|
35608
|
-
var __async$
|
|
35620
|
+
var __async$H = (__this, __arguments, generator) => {
|
|
35609
35621
|
return new Promise((resolve, reject) => {
|
|
35610
35622
|
var fulfilled = (value) => {
|
|
35611
35623
|
try {
|
|
@@ -35628,7 +35640,7 @@ var __async$G = (__this, __arguments, generator) => {
|
|
|
35628
35640
|
const useCreateFundingSource = () => {
|
|
35629
35641
|
const { client } = useShipEngine();
|
|
35630
35642
|
return useMutation({
|
|
35631
|
-
mutationFn: (fundingSource) => __async$
|
|
35643
|
+
mutationFn: (fundingSource) => __async$H(void 0, null, function* () {
|
|
35632
35644
|
const result = yield client.fundingSources.create(fundingSource);
|
|
35633
35645
|
return result.data;
|
|
35634
35646
|
}),
|
|
@@ -35637,7 +35649,7 @@ const useCreateFundingSource = () => {
|
|
|
35637
35649
|
});
|
|
35638
35650
|
};
|
|
35639
35651
|
|
|
35640
|
-
var __async$
|
|
35652
|
+
var __async$G = (__this, __arguments, generator) => {
|
|
35641
35653
|
return new Promise((resolve, reject) => {
|
|
35642
35654
|
var fulfilled = (value) => {
|
|
35643
35655
|
try {
|
|
@@ -35660,7 +35672,7 @@ var __async$F = (__this, __arguments, generator) => {
|
|
|
35660
35672
|
const useFundingSourcesAddFunds = () => {
|
|
35661
35673
|
const { client } = useShipEngine();
|
|
35662
35674
|
return useMutation({
|
|
35663
|
-
mutationFn: (_0) => __async$
|
|
35675
|
+
mutationFn: (_0) => __async$G(void 0, [_0], function* ({ funds, fundingSourceId }) {
|
|
35664
35676
|
const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
|
|
35665
35677
|
return result.data;
|
|
35666
35678
|
}),
|
|
@@ -35689,7 +35701,7 @@ const useListFundingSources = () => {
|
|
|
35689
35701
|
});
|
|
35690
35702
|
};
|
|
35691
35703
|
|
|
35692
|
-
var __async$
|
|
35704
|
+
var __async$F = (__this, __arguments, generator) => {
|
|
35693
35705
|
return new Promise((resolve, reject) => {
|
|
35694
35706
|
var fulfilled = (value) => {
|
|
35695
35707
|
try {
|
|
@@ -35712,7 +35724,7 @@ var __async$E = (__this, __arguments, generator) => {
|
|
|
35712
35724
|
const useRegisterCarrier = () => {
|
|
35713
35725
|
const { client } = useShipEngine();
|
|
35714
35726
|
return useMutation({
|
|
35715
|
-
mutationFn: (carrier) => __async$
|
|
35727
|
+
mutationFn: (carrier) => __async$F(void 0, null, function* () {
|
|
35716
35728
|
const result = yield client.fundingSources.registerCarrier(carrier);
|
|
35717
35729
|
return result.data;
|
|
35718
35730
|
}),
|
|
@@ -35721,7 +35733,7 @@ const useRegisterCarrier = () => {
|
|
|
35721
35733
|
});
|
|
35722
35734
|
};
|
|
35723
35735
|
|
|
35724
|
-
var __async$
|
|
35736
|
+
var __async$E = (__this, __arguments, generator) => {
|
|
35725
35737
|
return new Promise((resolve, reject) => {
|
|
35726
35738
|
var fulfilled = (value) => {
|
|
35727
35739
|
try {
|
|
@@ -35744,7 +35756,7 @@ var __async$D = (__this, __arguments, generator) => {
|
|
|
35744
35756
|
const useUpdateFundingSource = () => {
|
|
35745
35757
|
const { client } = useShipEngine();
|
|
35746
35758
|
return useMutation({
|
|
35747
|
-
mutationFn: (_0) => __async$
|
|
35759
|
+
mutationFn: (_0) => __async$E(void 0, [_0], function* ({
|
|
35748
35760
|
billingInfo,
|
|
35749
35761
|
creditCardInfo,
|
|
35750
35762
|
fundingSourceId,
|
|
@@ -35785,29 +35797,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
|
|
|
35785
35797
|
});
|
|
35786
35798
|
};
|
|
35787
35799
|
|
|
35788
|
-
var __defProp$
|
|
35789
|
-
var __defProps$
|
|
35790
|
-
var __getOwnPropDescs$
|
|
35791
|
-
var __getOwnPropSymbols$
|
|
35792
|
-
var __hasOwnProp$
|
|
35793
|
-
var __propIsEnum$
|
|
35794
|
-
var __defNormalProp$
|
|
35795
|
-
var __spreadValues$
|
|
35800
|
+
var __defProp$s = Object.defineProperty;
|
|
35801
|
+
var __defProps$p = Object.defineProperties;
|
|
35802
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
35803
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
35804
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
35805
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
35806
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35807
|
+
var __spreadValues$s = (a, b) => {
|
|
35796
35808
|
for (var prop in b || (b = {}))
|
|
35797
|
-
if (__hasOwnProp$
|
|
35798
|
-
__defNormalProp$
|
|
35799
|
-
if (__getOwnPropSymbols$
|
|
35800
|
-
for (var prop of __getOwnPropSymbols$
|
|
35801
|
-
if (__propIsEnum$
|
|
35802
|
-
__defNormalProp$
|
|
35809
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
35810
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
35811
|
+
if (__getOwnPropSymbols$y)
|
|
35812
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
35813
|
+
if (__propIsEnum$y.call(b, prop))
|
|
35814
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
35803
35815
|
}
|
|
35804
35816
|
return a;
|
|
35805
35817
|
};
|
|
35806
|
-
var __spreadProps$
|
|
35818
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
35807
35819
|
const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
|
|
35808
35820
|
const { client } = useShipEngine();
|
|
35809
|
-
const queryParams = __spreadValues$
|
|
35810
|
-
return useQuery(__spreadProps$
|
|
35821
|
+
const queryParams = __spreadValues$s({}, params);
|
|
35822
|
+
return useQuery(__spreadProps$p(__spreadValues$s({}, queryParams), {
|
|
35811
35823
|
onError,
|
|
35812
35824
|
queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
|
|
35813
35825
|
queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
|
|
@@ -35830,22 +35842,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
35830
35842
|
});
|
|
35831
35843
|
};
|
|
35832
35844
|
|
|
35833
|
-
var __getOwnPropSymbols$
|
|
35834
|
-
var __hasOwnProp$
|
|
35835
|
-
var __propIsEnum$
|
|
35836
|
-
var __objRest$
|
|
35845
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
35846
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
35847
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
35848
|
+
var __objRest$k = (source, exclude) => {
|
|
35837
35849
|
var target = {};
|
|
35838
35850
|
for (var prop in source)
|
|
35839
|
-
if (__hasOwnProp$
|
|
35851
|
+
if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35840
35852
|
target[prop] = source[prop];
|
|
35841
|
-
if (source != null && __getOwnPropSymbols$
|
|
35842
|
-
for (var prop of __getOwnPropSymbols$
|
|
35843
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35853
|
+
if (source != null && __getOwnPropSymbols$x)
|
|
35854
|
+
for (var prop of __getOwnPropSymbols$x(source)) {
|
|
35855
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
|
|
35844
35856
|
target[prop] = source[prop];
|
|
35845
35857
|
}
|
|
35846
35858
|
return target;
|
|
35847
35859
|
};
|
|
35848
|
-
var __async$
|
|
35860
|
+
var __async$D = (__this, __arguments, generator) => {
|
|
35849
35861
|
return new Promise((resolve, reject) => {
|
|
35850
35862
|
var fulfilled = (value) => {
|
|
35851
35863
|
try {
|
|
@@ -35868,8 +35880,8 @@ var __async$C = (__this, __arguments, generator) => {
|
|
|
35868
35880
|
const useAddInsuranceFunds = () => {
|
|
35869
35881
|
const { client } = useShipEngine();
|
|
35870
35882
|
return useMutation({
|
|
35871
|
-
mutationFn: (_a) => __async$
|
|
35872
|
-
var _b = _a, { insuranceProvider } = _b, rest = __objRest$
|
|
35883
|
+
mutationFn: (_a) => __async$D(void 0, null, function* () {
|
|
35884
|
+
var _b = _a, { insuranceProvider } = _b, rest = __objRest$k(_b, ["insuranceProvider"]);
|
|
35873
35885
|
const result = yield client.insurance.addFunds(insuranceProvider, rest);
|
|
35874
35886
|
return result.data;
|
|
35875
35887
|
}),
|
|
@@ -35878,26 +35890,26 @@ const useAddInsuranceFunds = () => {
|
|
|
35878
35890
|
});
|
|
35879
35891
|
};
|
|
35880
35892
|
|
|
35881
|
-
var __defProp$
|
|
35882
|
-
var __defProps$
|
|
35883
|
-
var __getOwnPropDescs$
|
|
35884
|
-
var __getOwnPropSymbols$
|
|
35885
|
-
var __hasOwnProp$
|
|
35886
|
-
var __propIsEnum$
|
|
35887
|
-
var __defNormalProp$
|
|
35888
|
-
var __spreadValues$
|
|
35893
|
+
var __defProp$r = Object.defineProperty;
|
|
35894
|
+
var __defProps$o = Object.defineProperties;
|
|
35895
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
35896
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
35897
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
35898
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
35899
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35900
|
+
var __spreadValues$r = (a, b) => {
|
|
35889
35901
|
for (var prop in b || (b = {}))
|
|
35890
|
-
if (__hasOwnProp$
|
|
35891
|
-
__defNormalProp$
|
|
35892
|
-
if (__getOwnPropSymbols$
|
|
35893
|
-
for (var prop of __getOwnPropSymbols$
|
|
35894
|
-
if (__propIsEnum$
|
|
35895
|
-
__defNormalProp$
|
|
35902
|
+
if (__hasOwnProp$w.call(b, prop))
|
|
35903
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
35904
|
+
if (__getOwnPropSymbols$w)
|
|
35905
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
|
35906
|
+
if (__propIsEnum$w.call(b, prop))
|
|
35907
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
35896
35908
|
}
|
|
35897
35909
|
return a;
|
|
35898
35910
|
};
|
|
35899
|
-
var __spreadProps$
|
|
35900
|
-
var __async$
|
|
35911
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
35912
|
+
var __async$C = (__this, __arguments, generator) => {
|
|
35901
35913
|
return new Promise((resolve, reject) => {
|
|
35902
35914
|
var fulfilled = (value) => {
|
|
35903
35915
|
try {
|
|
@@ -35919,8 +35931,8 @@ var __async$B = (__this, __arguments, generator) => {
|
|
|
35919
35931
|
};
|
|
35920
35932
|
const useCreateInvoiceAddress = (params) => {
|
|
35921
35933
|
const { client } = useShipEngine();
|
|
35922
|
-
return useMutation(__spreadProps$
|
|
35923
|
-
mutationFn: (invoiceAddress) => __async$
|
|
35934
|
+
return useMutation(__spreadProps$o(__spreadValues$r({}, params), {
|
|
35935
|
+
mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
|
|
35924
35936
|
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
35925
35937
|
return result.data;
|
|
35926
35938
|
}),
|
|
@@ -35929,6 +35941,86 @@ const useCreateInvoiceAddress = (params) => {
|
|
|
35929
35941
|
}));
|
|
35930
35942
|
};
|
|
35931
35943
|
|
|
35944
|
+
var __defProp$q = Object.defineProperty;
|
|
35945
|
+
var __defProps$n = Object.defineProperties;
|
|
35946
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
35947
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
35948
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
35949
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
35950
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35951
|
+
var __spreadValues$q = (a, b) => {
|
|
35952
|
+
for (var prop in b || (b = {}))
|
|
35953
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
35954
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
35955
|
+
if (__getOwnPropSymbols$v)
|
|
35956
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
35957
|
+
if (__propIsEnum$v.call(b, prop))
|
|
35958
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
35959
|
+
}
|
|
35960
|
+
return a;
|
|
35961
|
+
};
|
|
35962
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
35963
|
+
var __async$B = (__this, __arguments, generator) => {
|
|
35964
|
+
return new Promise((resolve, reject) => {
|
|
35965
|
+
var fulfilled = (value) => {
|
|
35966
|
+
try {
|
|
35967
|
+
step(generator.next(value));
|
|
35968
|
+
} catch (e) {
|
|
35969
|
+
reject(e);
|
|
35970
|
+
}
|
|
35971
|
+
};
|
|
35972
|
+
var rejected = (value) => {
|
|
35973
|
+
try {
|
|
35974
|
+
step(generator.throw(value));
|
|
35975
|
+
} catch (e) {
|
|
35976
|
+
reject(e);
|
|
35977
|
+
}
|
|
35978
|
+
};
|
|
35979
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35980
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35981
|
+
});
|
|
35982
|
+
};
|
|
35983
|
+
const useUpdateInvoiceAddress = (params) => {
|
|
35984
|
+
const { client } = useShipEngine();
|
|
35985
|
+
return useMutation(__spreadProps$n(__spreadValues$q({}, params), {
|
|
35986
|
+
mutationFn: (invoiceAddress) => __async$B(void 0, null, function* () {
|
|
35987
|
+
const result = yield client.invoiceAddress.update(invoiceAddress);
|
|
35988
|
+
return result.data;
|
|
35989
|
+
}),
|
|
35990
|
+
mutationKey: ["useUpdateInvoiceAddress"],
|
|
35991
|
+
onError
|
|
35992
|
+
}));
|
|
35993
|
+
};
|
|
35994
|
+
|
|
35995
|
+
var __defProp$p = Object.defineProperty;
|
|
35996
|
+
var __defProps$m = Object.defineProperties;
|
|
35997
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
35998
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
35999
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
36000
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
36001
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36002
|
+
var __spreadValues$p = (a, b) => {
|
|
36003
|
+
for (var prop in b || (b = {}))
|
|
36004
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
36005
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
36006
|
+
if (__getOwnPropSymbols$u)
|
|
36007
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
36008
|
+
if (__propIsEnum$u.call(b, prop))
|
|
36009
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
36010
|
+
}
|
|
36011
|
+
return a;
|
|
36012
|
+
};
|
|
36013
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
36014
|
+
const useGetInvoiceAddress = (params) => {
|
|
36015
|
+
const { client } = useShipEngine();
|
|
36016
|
+
return useQuery(__spreadProps$m(__spreadValues$p({}, params), {
|
|
36017
|
+
onError,
|
|
36018
|
+
queryFn: () => client.invoiceAddress.get(),
|
|
36019
|
+
queryKey: ["useGetInvoiceAddress"],
|
|
36020
|
+
select: (result) => result.data
|
|
36021
|
+
}));
|
|
36022
|
+
};
|
|
36023
|
+
|
|
35932
36024
|
var __defProp$o = Object.defineProperty;
|
|
35933
36025
|
var __defProps$l = Object.defineProperties;
|
|
35934
36026
|
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
@@ -35948,6 +36040,18 @@ var __spreadValues$o = (a, b) => {
|
|
|
35948
36040
|
return a;
|
|
35949
36041
|
};
|
|
35950
36042
|
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
36043
|
+
var __objRest$j = (source, exclude) => {
|
|
36044
|
+
var target = {};
|
|
36045
|
+
for (var prop in source)
|
|
36046
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36047
|
+
target[prop] = source[prop];
|
|
36048
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
36049
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
36050
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
36051
|
+
target[prop] = source[prop];
|
|
36052
|
+
}
|
|
36053
|
+
return target;
|
|
36054
|
+
};
|
|
35951
36055
|
var __async$A = (__this, __arguments, generator) => {
|
|
35952
36056
|
return new Promise((resolve, reject) => {
|
|
35953
36057
|
var fulfilled = (value) => {
|
|
@@ -35968,14 +36072,15 @@ var __async$A = (__this, __arguments, generator) => {
|
|
|
35968
36072
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35969
36073
|
});
|
|
35970
36074
|
};
|
|
35971
|
-
const
|
|
36075
|
+
const useCreateLabelByRateId = (params) => {
|
|
35972
36076
|
const { client } = useShipEngine();
|
|
35973
36077
|
return useMutation(__spreadProps$l(__spreadValues$o({}, params), {
|
|
35974
|
-
mutationFn: (
|
|
35975
|
-
|
|
36078
|
+
mutationFn: (_a) => __async$A(void 0, null, function* () {
|
|
36079
|
+
var _b = _a, { rateId } = _b, options = __objRest$j(_b, ["rateId"]);
|
|
36080
|
+
const result = yield client.labels.createByRateId(rateId, options);
|
|
35976
36081
|
return result.data;
|
|
35977
36082
|
}),
|
|
35978
|
-
mutationKey: ["
|
|
36083
|
+
mutationKey: ["useCreateLabelByRateId"],
|
|
35979
36084
|
onError
|
|
35980
36085
|
}));
|
|
35981
36086
|
};
|
|
@@ -35999,13 +36104,48 @@ var __spreadValues$n = (a, b) => {
|
|
|
35999
36104
|
return a;
|
|
36000
36105
|
};
|
|
36001
36106
|
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
36002
|
-
|
|
36107
|
+
var __objRest$i = (source, exclude) => {
|
|
36108
|
+
var target = {};
|
|
36109
|
+
for (var prop in source)
|
|
36110
|
+
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36111
|
+
target[prop] = source[prop];
|
|
36112
|
+
if (source != null && __getOwnPropSymbols$s)
|
|
36113
|
+
for (var prop of __getOwnPropSymbols$s(source)) {
|
|
36114
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
|
|
36115
|
+
target[prop] = source[prop];
|
|
36116
|
+
}
|
|
36117
|
+
return target;
|
|
36118
|
+
};
|
|
36119
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
36120
|
+
return new Promise((resolve, reject) => {
|
|
36121
|
+
var fulfilled = (value) => {
|
|
36122
|
+
try {
|
|
36123
|
+
step(generator.next(value));
|
|
36124
|
+
} catch (e) {
|
|
36125
|
+
reject(e);
|
|
36126
|
+
}
|
|
36127
|
+
};
|
|
36128
|
+
var rejected = (value) => {
|
|
36129
|
+
try {
|
|
36130
|
+
step(generator.throw(value));
|
|
36131
|
+
} catch (e) {
|
|
36132
|
+
reject(e);
|
|
36133
|
+
}
|
|
36134
|
+
};
|
|
36135
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
36136
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
36137
|
+
});
|
|
36138
|
+
};
|
|
36139
|
+
const useCreateLabelByShipmentId = (params) => {
|
|
36003
36140
|
const { client } = useShipEngine();
|
|
36004
|
-
return
|
|
36005
|
-
|
|
36006
|
-
|
|
36007
|
-
|
|
36008
|
-
|
|
36141
|
+
return useMutation(__spreadProps$k(__spreadValues$n({}, params), {
|
|
36142
|
+
mutationFn: (_a) => __async$z(void 0, null, function* () {
|
|
36143
|
+
var _b = _a, { shipmentId } = _b, options = __objRest$i(_b, ["shipmentId"]);
|
|
36144
|
+
const result = yield client.labels.createByShipmentId(shipmentId, options);
|
|
36145
|
+
return result.data;
|
|
36146
|
+
}),
|
|
36147
|
+
mutationKey: ["useCreateLabelByShipmentId"],
|
|
36148
|
+
onError
|
|
36009
36149
|
}));
|
|
36010
36150
|
};
|
|
36011
36151
|
|
|
@@ -36040,7 +36180,7 @@ var __objRest$h = (source, exclude) => {
|
|
|
36040
36180
|
}
|
|
36041
36181
|
return target;
|
|
36042
36182
|
};
|
|
36043
|
-
var __async$
|
|
36183
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
36044
36184
|
return new Promise((resolve, reject) => {
|
|
36045
36185
|
var fulfilled = (value) => {
|
|
36046
36186
|
try {
|
|
@@ -36060,10 +36200,10 @@ var __async$z = (__this, __arguments, generator) => {
|
|
|
36060
36200
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
36061
36201
|
});
|
|
36062
36202
|
};
|
|
36063
|
-
const
|
|
36203
|
+
const useCreateLabel = (params) => {
|
|
36064
36204
|
const { client } = useShipEngine();
|
|
36065
36205
|
return useMutation(__spreadProps$j(__spreadValues$m({}, params), {
|
|
36066
|
-
mutationFn: (_a) => __async$
|
|
36206
|
+
mutationFn: (_a) => __async$y(void 0, null, function* () {
|
|
36067
36207
|
var _b = _a, { rateId } = _b, options = __objRest$h(_b, ["rateId"]);
|
|
36068
36208
|
const result = yield client.labels.createByRateId(rateId, options);
|
|
36069
36209
|
return result.data;
|
|
@@ -36073,6 +36213,21 @@ const useCreateLabelByRateId = (params) => {
|
|
|
36073
36213
|
}));
|
|
36074
36214
|
};
|
|
36075
36215
|
|
|
36216
|
+
const useGetLabel = (labelId) => {
|
|
36217
|
+
const { client } = useShipEngine();
|
|
36218
|
+
return useQuery({
|
|
36219
|
+
enabled: labelId !== void 0,
|
|
36220
|
+
onError,
|
|
36221
|
+
queryFn: () => {
|
|
36222
|
+
if (labelId)
|
|
36223
|
+
return client.labels.get(labelId);
|
|
36224
|
+
return Promise.reject(new Error("labelId is require"));
|
|
36225
|
+
},
|
|
36226
|
+
queryKey: ["useGetLabel", labelId],
|
|
36227
|
+
select: (result) => result.data
|
|
36228
|
+
});
|
|
36229
|
+
};
|
|
36230
|
+
|
|
36076
36231
|
var __defProp$l = Object.defineProperty;
|
|
36077
36232
|
var __defProps$i = Object.defineProperties;
|
|
36078
36233
|
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
@@ -36104,7 +36259,18 @@ var __objRest$g = (source, exclude) => {
|
|
|
36104
36259
|
}
|
|
36105
36260
|
return target;
|
|
36106
36261
|
};
|
|
36107
|
-
|
|
36262
|
+
const useListLabels = (params) => {
|
|
36263
|
+
const { client } = useShipEngine();
|
|
36264
|
+
const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
|
|
36265
|
+
return useQuery(__spreadProps$i(__spreadValues$l({}, rest), {
|
|
36266
|
+
onError,
|
|
36267
|
+
queryFn: () => client.labels.list(queryFnParams),
|
|
36268
|
+
queryKey: ["useListLabels", params],
|
|
36269
|
+
select: (result) => result.data
|
|
36270
|
+
}));
|
|
36271
|
+
};
|
|
36272
|
+
|
|
36273
|
+
var __async$x = (__this, __arguments, generator) => {
|
|
36108
36274
|
return new Promise((resolve, reject) => {
|
|
36109
36275
|
var fulfilled = (value) => {
|
|
36110
36276
|
try {
|
|
@@ -36124,31 +36290,15 @@ var __async$y = (__this, __arguments, generator) => {
|
|
|
36124
36290
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
36125
36291
|
});
|
|
36126
36292
|
};
|
|
36127
|
-
const
|
|
36293
|
+
const useVoidLabel = () => {
|
|
36128
36294
|
const { client } = useShipEngine();
|
|
36129
|
-
return useMutation(
|
|
36130
|
-
mutationFn: (
|
|
36131
|
-
|
|
36132
|
-
const result = yield client.labels.createByShipmentId(shipmentId, options);
|
|
36295
|
+
return useMutation({
|
|
36296
|
+
mutationFn: (labelId) => __async$x(void 0, null, function* () {
|
|
36297
|
+
const result = yield client.labels.void(labelId);
|
|
36133
36298
|
return result.data;
|
|
36134
36299
|
}),
|
|
36135
|
-
mutationKey: ["
|
|
36300
|
+
mutationKey: ["useVoidLabel"],
|
|
36136
36301
|
onError
|
|
36137
|
-
}));
|
|
36138
|
-
};
|
|
36139
|
-
|
|
36140
|
-
const useGetLabel = (labelId) => {
|
|
36141
|
-
const { client } = useShipEngine();
|
|
36142
|
-
return useQuery({
|
|
36143
|
-
enabled: labelId !== void 0,
|
|
36144
|
-
onError,
|
|
36145
|
-
queryFn: () => {
|
|
36146
|
-
if (labelId)
|
|
36147
|
-
return client.labels.get(labelId);
|
|
36148
|
-
return Promise.reject(new Error("labelId is require"));
|
|
36149
|
-
},
|
|
36150
|
-
queryKey: ["useGetLabel", labelId],
|
|
36151
|
-
select: (result) => result.data
|
|
36152
36302
|
});
|
|
36153
36303
|
};
|
|
36154
36304
|
|
|
@@ -36183,18 +36333,7 @@ var __objRest$f = (source, exclude) => {
|
|
|
36183
36333
|
}
|
|
36184
36334
|
return target;
|
|
36185
36335
|
};
|
|
36186
|
-
|
|
36187
|
-
const { client } = useShipEngine();
|
|
36188
|
-
const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
|
|
36189
|
-
return useQuery(__spreadProps$h(__spreadValues$k({}, rest), {
|
|
36190
|
-
onError,
|
|
36191
|
-
queryFn: () => client.labels.list(queryFnParams),
|
|
36192
|
-
queryKey: ["useListLabels", params],
|
|
36193
|
-
select: (result) => result.data
|
|
36194
|
-
}));
|
|
36195
|
-
};
|
|
36196
|
-
|
|
36197
|
-
var __async$x = (__this, __arguments, generator) => {
|
|
36336
|
+
var __async$w = (__this, __arguments, generator) => {
|
|
36198
36337
|
return new Promise((resolve, reject) => {
|
|
36199
36338
|
var fulfilled = (value) => {
|
|
36200
36339
|
try {
|
|
@@ -36214,16 +36353,30 @@ var __async$x = (__this, __arguments, generator) => {
|
|
|
36214
36353
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
36215
36354
|
});
|
|
36216
36355
|
};
|
|
36217
|
-
const
|
|
36356
|
+
const useListLabelsInfinite = (params) => {
|
|
36218
36357
|
const { client } = useShipEngine();
|
|
36219
|
-
|
|
36220
|
-
|
|
36221
|
-
|
|
36222
|
-
|
|
36358
|
+
const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
|
|
36359
|
+
return useInfiniteQuery(__spreadProps$h(__spreadValues$k({}, rest), {
|
|
36360
|
+
getNextPageParam: (lastPage) => {
|
|
36361
|
+
if (lastPage.page < lastPage.pages) {
|
|
36362
|
+
return lastPage.page + 1;
|
|
36363
|
+
}
|
|
36364
|
+
return void 0;
|
|
36365
|
+
},
|
|
36366
|
+
onError,
|
|
36367
|
+
queryFn: (_0) => __async$w(void 0, [_0], function* ({ pageParam = 1 }) {
|
|
36368
|
+
const response = yield client.labels.list(__spreadProps$h(__spreadValues$k({}, queryFnParams), { page: pageParam }));
|
|
36369
|
+
return response.data;
|
|
36223
36370
|
}),
|
|
36224
|
-
|
|
36225
|
-
|
|
36226
|
-
|
|
36371
|
+
queryKey: ["useListLabelsInfinite", params],
|
|
36372
|
+
select: (data) => {
|
|
36373
|
+
return {
|
|
36374
|
+
labels: data.pages.flatMap((page) => page.labels),
|
|
36375
|
+
pageParams: data.pageParams,
|
|
36376
|
+
pages: data.pages
|
|
36377
|
+
};
|
|
36378
|
+
}
|
|
36379
|
+
}));
|
|
36227
36380
|
};
|
|
36228
36381
|
|
|
36229
36382
|
var __defProp$j = Object.defineProperty;
|
|
@@ -36257,49 +36410,13 @@ var __objRest$e = (source, exclude) => {
|
|
|
36257
36410
|
}
|
|
36258
36411
|
return target;
|
|
36259
36412
|
};
|
|
36260
|
-
|
|
36261
|
-
return new Promise((resolve, reject) => {
|
|
36262
|
-
var fulfilled = (value) => {
|
|
36263
|
-
try {
|
|
36264
|
-
step(generator.next(value));
|
|
36265
|
-
} catch (e) {
|
|
36266
|
-
reject(e);
|
|
36267
|
-
}
|
|
36268
|
-
};
|
|
36269
|
-
var rejected = (value) => {
|
|
36270
|
-
try {
|
|
36271
|
-
step(generator.throw(value));
|
|
36272
|
-
} catch (e) {
|
|
36273
|
-
reject(e);
|
|
36274
|
-
}
|
|
36275
|
-
};
|
|
36276
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
36277
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
36278
|
-
});
|
|
36279
|
-
};
|
|
36280
|
-
const useListLabelsInfinite = (params) => {
|
|
36413
|
+
const useDownloadLabels = (params) => {
|
|
36281
36414
|
const { client } = useShipEngine();
|
|
36282
36415
|
const _a = __spreadValues$j({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
|
|
36283
|
-
return
|
|
36284
|
-
getNextPageParam: (lastPage) => {
|
|
36285
|
-
if (lastPage.page < lastPage.pages) {
|
|
36286
|
-
return lastPage.page + 1;
|
|
36287
|
-
}
|
|
36288
|
-
return void 0;
|
|
36289
|
-
},
|
|
36416
|
+
return useQuery(__spreadProps$g(__spreadValues$j({}, rest), {
|
|
36290
36417
|
onError,
|
|
36291
|
-
queryFn: (
|
|
36292
|
-
|
|
36293
|
-
return response.data;
|
|
36294
|
-
}),
|
|
36295
|
-
queryKey: ["useListLabelsInfinite", params],
|
|
36296
|
-
select: (data) => {
|
|
36297
|
-
return {
|
|
36298
|
-
labels: data.pages.flatMap((page) => page.labels),
|
|
36299
|
-
pageParams: data.pageParams,
|
|
36300
|
-
pages: data.pages
|
|
36301
|
-
};
|
|
36302
|
-
}
|
|
36418
|
+
queryFn: () => client.labels.download(queryFnParams),
|
|
36419
|
+
queryKey: ["useDownloadLabels", params]
|
|
36303
36420
|
}));
|
|
36304
36421
|
};
|
|
36305
36422
|
|
|
@@ -39341,4 +39458,4 @@ const alchemy = {
|
|
|
39341
39458
|
createElement
|
|
39342
39459
|
};
|
|
39343
39460
|
|
|
39344
|
-
export { AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, 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, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, 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, useListLabelsInfinite, 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, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|
|
39461
|
+
export { AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, 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, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadLabels, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, 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, useListLabelsInfinite, 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, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|