@shipengine/alchemy 6.0.65 → 6.0.67
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 +361 -256
- package/index.mjs +360 -257
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4883,33 +4883,41 @@ var _getHolder = getHolder$2;
|
|
|
4883
4883
|
|
|
4884
4884
|
/** Used as references for various `Number` constants. */
|
|
4885
4885
|
|
|
4886
|
-
var
|
|
4886
|
+
var _isIndex;
|
|
4887
|
+
var hasRequired_isIndex;
|
|
4887
4888
|
|
|
4888
|
-
|
|
4889
|
-
|
|
4889
|
+
function require_isIndex () {
|
|
4890
|
+
if (hasRequired_isIndex) return _isIndex;
|
|
4891
|
+
hasRequired_isIndex = 1;
|
|
4892
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4890
4893
|
|
|
4891
|
-
/**
|
|
4892
|
-
|
|
4893
|
-
*
|
|
4894
|
-
* @private
|
|
4895
|
-
* @param {*} value The value to check.
|
|
4896
|
-
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4897
|
-
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4898
|
-
*/
|
|
4899
|
-
function isIndex$3(value, length) {
|
|
4900
|
-
var type = typeof value;
|
|
4901
|
-
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
4894
|
+
/** Used to detect unsigned integer values. */
|
|
4895
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
4902
4896
|
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
}
|
|
4897
|
+
/**
|
|
4898
|
+
* Checks if `value` is a valid array-like index.
|
|
4899
|
+
*
|
|
4900
|
+
* @private
|
|
4901
|
+
* @param {*} value The value to check.
|
|
4902
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4903
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4904
|
+
*/
|
|
4905
|
+
function isIndex(value, length) {
|
|
4906
|
+
var type = typeof value;
|
|
4907
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
4908
4908
|
|
|
4909
|
-
|
|
4909
|
+
return !!length &&
|
|
4910
|
+
(type == 'number' ||
|
|
4911
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4912
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
4913
|
+
}
|
|
4914
|
+
|
|
4915
|
+
_isIndex = isIndex;
|
|
4916
|
+
return _isIndex;
|
|
4917
|
+
}
|
|
4910
4918
|
|
|
4911
4919
|
var copyArray$2 = _copyArray,
|
|
4912
|
-
isIndex$2 =
|
|
4920
|
+
isIndex$2 = require_isIndex();
|
|
4913
4921
|
|
|
4914
4922
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4915
4923
|
var nativeMin$1 = Math.min;
|
|
@@ -6102,7 +6110,7 @@ var baseTimes = _baseTimes,
|
|
|
6102
6110
|
isArguments$2 = requireIsArguments(),
|
|
6103
6111
|
isArray$f = isArray_1,
|
|
6104
6112
|
isBuffer$4 = isBufferExports,
|
|
6105
|
-
isIndex$1 =
|
|
6113
|
+
isIndex$1 = require_isIndex(),
|
|
6106
6114
|
isTypedArray$1 = requireIsTypedArray();
|
|
6107
6115
|
|
|
6108
6116
|
/** Used for built-in method references. */
|
|
@@ -9433,7 +9441,7 @@ var _baseHasIn = baseHasIn$1;
|
|
|
9433
9441
|
var castPath = _castPath,
|
|
9434
9442
|
isArguments$1 = requireIsArguments(),
|
|
9435
9443
|
isArray$8 = isArray_1,
|
|
9436
|
-
isIndex =
|
|
9444
|
+
isIndex = require_isIndex(),
|
|
9437
9445
|
isLength = isLength_1,
|
|
9438
9446
|
toKey$3 = _toKey;
|
|
9439
9447
|
|
|
@@ -10323,7 +10331,7 @@ function require_isIterateeCall () {
|
|
|
10323
10331
|
hasRequired_isIterateeCall = 1;
|
|
10324
10332
|
var eq = requireEq(),
|
|
10325
10333
|
isArrayLike = isArrayLike_1,
|
|
10326
|
-
isIndex =
|
|
10334
|
+
isIndex = require_isIndex(),
|
|
10327
10335
|
isObject = isObject_1;
|
|
10328
10336
|
|
|
10329
10337
|
/**
|
|
@@ -10800,17 +10808,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
|
|
|
10800
10808
|
return AccountBillingPlanChangeType2;
|
|
10801
10809
|
})(AccountBillingPlanChangeType || {});
|
|
10802
10810
|
|
|
10803
|
-
var __getOwnPropSymbols
|
|
10804
|
-
var __hasOwnProp
|
|
10805
|
-
var __propIsEnum
|
|
10811
|
+
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
10812
|
+
var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
|
|
10813
|
+
var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
|
|
10806
10814
|
var __objRest$x = (source, exclude) => {
|
|
10807
10815
|
var target = {};
|
|
10808
10816
|
for (var prop in source)
|
|
10809
|
-
if (__hasOwnProp
|
|
10817
|
+
if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10810
10818
|
target[prop] = source[prop];
|
|
10811
|
-
if (source != null && __getOwnPropSymbols
|
|
10812
|
-
for (var prop of __getOwnPropSymbols
|
|
10813
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum
|
|
10819
|
+
if (source != null && __getOwnPropSymbols$$)
|
|
10820
|
+
for (var prop of __getOwnPropSymbols$$(source)) {
|
|
10821
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
|
|
10814
10822
|
target[prop] = source[prop];
|
|
10815
10823
|
}
|
|
10816
10824
|
return target;
|
|
@@ -10945,17 +10953,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10945
10953
|
RateCardStatus
|
|
10946
10954
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10947
10955
|
|
|
10948
|
-
var __getOwnPropSymbols$
|
|
10949
|
-
var __hasOwnProp$
|
|
10950
|
-
var __propIsEnum$
|
|
10956
|
+
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
10957
|
+
var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
|
|
10958
|
+
var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
|
|
10951
10959
|
var __objRest$w = (source, exclude) => {
|
|
10952
10960
|
var target = {};
|
|
10953
10961
|
for (var prop in source)
|
|
10954
|
-
if (__hasOwnProp$
|
|
10962
|
+
if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10955
10963
|
target[prop] = source[prop];
|
|
10956
|
-
if (source != null && __getOwnPropSymbols$
|
|
10957
|
-
for (var prop of __getOwnPropSymbols$
|
|
10958
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10964
|
+
if (source != null && __getOwnPropSymbols$_)
|
|
10965
|
+
for (var prop of __getOwnPropSymbols$_(source)) {
|
|
10966
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
|
|
10959
10967
|
target[prop] = source[prop];
|
|
10960
10968
|
}
|
|
10961
10969
|
return target;
|
|
@@ -11100,6 +11108,20 @@ class AuctanePayAPI {
|
|
|
11100
11108
|
payload
|
|
11101
11109
|
);
|
|
11102
11110
|
};
|
|
11111
|
+
/**
|
|
11112
|
+
* The `identityVerification` method returns a Plaid IDV verification URL for a given user
|
|
11113
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API#Identity-verification
|
|
11114
|
+
*/
|
|
11115
|
+
this.identityVerification = () => {
|
|
11116
|
+
return this.client.post("/v1/payments/identity_verification");
|
|
11117
|
+
};
|
|
11118
|
+
/**
|
|
11119
|
+
* The `getPaymentAccount` method returns the Payment Account data for a given user
|
|
11120
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API
|
|
11121
|
+
*/
|
|
11122
|
+
this.getPaymentAccount = () => {
|
|
11123
|
+
return this.client.get("/v1/payments/account");
|
|
11124
|
+
};
|
|
11103
11125
|
this.client = client;
|
|
11104
11126
|
}
|
|
11105
11127
|
}
|
|
@@ -13809,7 +13831,7 @@ var ipaddr = {
|
|
|
13809
13831
|
}).call(commonjsGlobal);
|
|
13810
13832
|
} (ipaddr));
|
|
13811
13833
|
|
|
13812
|
-
var __async$
|
|
13834
|
+
var __async$15 = (__this, __arguments, generator) => {
|
|
13813
13835
|
return new Promise((resolve, reject) => {
|
|
13814
13836
|
var fulfilled = (value) => {
|
|
13815
13837
|
try {
|
|
@@ -13829,7 +13851,7 @@ var __async$14 = (__this, __arguments, generator) => {
|
|
|
13829
13851
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13830
13852
|
});
|
|
13831
13853
|
};
|
|
13832
|
-
const getEndUserIpAddress = () => __async$
|
|
13854
|
+
const getEndUserIpAddress = () => __async$15(void 0, null, function* () {
|
|
13833
13855
|
try {
|
|
13834
13856
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13835
13857
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13890,38 +13912,38 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13890
13912
|
return obj;
|
|
13891
13913
|
};
|
|
13892
13914
|
|
|
13893
|
-
var __defProp$
|
|
13894
|
-
var __defProps$
|
|
13895
|
-
var __getOwnPropDescs$
|
|
13896
|
-
var __getOwnPropSymbols$
|
|
13897
|
-
var __hasOwnProp$
|
|
13898
|
-
var __propIsEnum$
|
|
13899
|
-
var __defNormalProp$
|
|
13900
|
-
var __spreadValues$
|
|
13915
|
+
var __defProp$O = Object.defineProperty;
|
|
13916
|
+
var __defProps$I = Object.defineProperties;
|
|
13917
|
+
var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
|
|
13918
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
13919
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
13920
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
13921
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13922
|
+
var __spreadValues$O = (a, b) => {
|
|
13901
13923
|
for (var prop in b || (b = {}))
|
|
13902
|
-
if (__hasOwnProp$
|
|
13903
|
-
__defNormalProp$
|
|
13904
|
-
if (__getOwnPropSymbols$
|
|
13905
|
-
for (var prop of __getOwnPropSymbols$
|
|
13906
|
-
if (__propIsEnum$
|
|
13907
|
-
__defNormalProp$
|
|
13924
|
+
if (__hasOwnProp$Z.call(b, prop))
|
|
13925
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
13926
|
+
if (__getOwnPropSymbols$Z)
|
|
13927
|
+
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
13928
|
+
if (__propIsEnum$Z.call(b, prop))
|
|
13929
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
13908
13930
|
}
|
|
13909
13931
|
return a;
|
|
13910
13932
|
};
|
|
13911
|
-
var __spreadProps$
|
|
13933
|
+
var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
|
|
13912
13934
|
var __objRest$v = (source, exclude) => {
|
|
13913
13935
|
var target = {};
|
|
13914
13936
|
for (var prop in source)
|
|
13915
|
-
if (__hasOwnProp$
|
|
13937
|
+
if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13916
13938
|
target[prop] = source[prop];
|
|
13917
|
-
if (source != null && __getOwnPropSymbols$
|
|
13918
|
-
for (var prop of __getOwnPropSymbols$
|
|
13919
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13939
|
+
if (source != null && __getOwnPropSymbols$Z)
|
|
13940
|
+
for (var prop of __getOwnPropSymbols$Z(source)) {
|
|
13941
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
|
|
13920
13942
|
target[prop] = source[prop];
|
|
13921
13943
|
}
|
|
13922
13944
|
return target;
|
|
13923
13945
|
};
|
|
13924
|
-
var __async$
|
|
13946
|
+
var __async$14 = (__this, __arguments, generator) => {
|
|
13925
13947
|
return new Promise((resolve, reject) => {
|
|
13926
13948
|
var fulfilled = (value) => {
|
|
13927
13949
|
try {
|
|
@@ -13961,12 +13983,12 @@ class CarriersAPI {
|
|
|
13961
13983
|
/**
|
|
13962
13984
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
13963
13985
|
*/
|
|
13964
|
-
this.connect = (_a) => __async$
|
|
13986
|
+
this.connect = (_a) => __async$14(this, null, function* () {
|
|
13965
13987
|
var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
|
|
13966
13988
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13967
13989
|
if (!endUserIpAddress)
|
|
13968
13990
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13969
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13991
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$I(__spreadValues$O({}, connection), {
|
|
13970
13992
|
endUserIpAddress
|
|
13971
13993
|
}));
|
|
13972
13994
|
});
|
|
@@ -14050,22 +14072,22 @@ class CarriersAPI {
|
|
|
14050
14072
|
}
|
|
14051
14073
|
}
|
|
14052
14074
|
|
|
14053
|
-
var __getOwnPropSymbols$
|
|
14054
|
-
var __hasOwnProp$
|
|
14055
|
-
var __propIsEnum$
|
|
14075
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
14076
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
14077
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
14056
14078
|
var __objRest$u = (source, exclude) => {
|
|
14057
14079
|
var target = {};
|
|
14058
14080
|
for (var prop in source)
|
|
14059
|
-
if (__hasOwnProp$
|
|
14081
|
+
if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14060
14082
|
target[prop] = source[prop];
|
|
14061
|
-
if (source != null && __getOwnPropSymbols$
|
|
14062
|
-
for (var prop of __getOwnPropSymbols$
|
|
14063
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
14083
|
+
if (source != null && __getOwnPropSymbols$Y)
|
|
14084
|
+
for (var prop of __getOwnPropSymbols$Y(source)) {
|
|
14085
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
|
|
14064
14086
|
target[prop] = source[prop];
|
|
14065
14087
|
}
|
|
14066
14088
|
return target;
|
|
14067
14089
|
};
|
|
14068
|
-
var __async$
|
|
14090
|
+
var __async$13 = (__this, __arguments, generator) => {
|
|
14069
14091
|
return new Promise((resolve, reject) => {
|
|
14070
14092
|
var fulfilled = (value) => {
|
|
14071
14093
|
try {
|
|
@@ -14107,7 +14129,7 @@ class ConnectionsAPI {
|
|
|
14107
14129
|
/**
|
|
14108
14130
|
* The `connectCarrier` method connects a carrier to account.
|
|
14109
14131
|
*/
|
|
14110
|
-
this.connectCarrier = (carrierName, formData) => __async$
|
|
14132
|
+
this.connectCarrier = (carrierName, formData) => __async$13(this, null, function* () {
|
|
14111
14133
|
return yield this.client.post(
|
|
14112
14134
|
`/v1/connections/carriers/${carrierName}`,
|
|
14113
14135
|
formData,
|
|
@@ -16275,23 +16297,23 @@ class CustomPackagesAPI {
|
|
|
16275
16297
|
}
|
|
16276
16298
|
}
|
|
16277
16299
|
|
|
16278
|
-
var __defProp$
|
|
16279
|
-
var __getOwnPropSymbols$
|
|
16280
|
-
var __hasOwnProp$
|
|
16281
|
-
var __propIsEnum$
|
|
16282
|
-
var __defNormalProp$
|
|
16283
|
-
var __spreadValues$
|
|
16300
|
+
var __defProp$N = Object.defineProperty;
|
|
16301
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
16302
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
16303
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
16304
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16305
|
+
var __spreadValues$N = (a, b) => {
|
|
16284
16306
|
for (var prop in b || (b = {}))
|
|
16285
|
-
if (__hasOwnProp$
|
|
16286
|
-
__defNormalProp$
|
|
16287
|
-
if (__getOwnPropSymbols$
|
|
16288
|
-
for (var prop of __getOwnPropSymbols$
|
|
16289
|
-
if (__propIsEnum$
|
|
16290
|
-
__defNormalProp$
|
|
16307
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
16308
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
16309
|
+
if (__getOwnPropSymbols$X)
|
|
16310
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
16311
|
+
if (__propIsEnum$X.call(b, prop))
|
|
16312
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
16291
16313
|
}
|
|
16292
16314
|
return a;
|
|
16293
16315
|
};
|
|
16294
|
-
var __async$
|
|
16316
|
+
var __async$12 = (__this, __arguments, generator) => {
|
|
16295
16317
|
return new Promise((resolve, reject) => {
|
|
16296
16318
|
var fulfilled = (value) => {
|
|
16297
16319
|
try {
|
|
@@ -16330,12 +16352,12 @@ class FundingSourcesAPI {
|
|
|
16330
16352
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16331
16353
|
* payment information to be collected from the user.
|
|
16332
16354
|
*/
|
|
16333
|
-
this.create = (createFundingSource) => __async$
|
|
16355
|
+
this.create = (createFundingSource) => __async$12(this, null, function* () {
|
|
16334
16356
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16335
16357
|
if (!endUserIpAddress) {
|
|
16336
16358
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16337
16359
|
}
|
|
16338
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16360
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$N({
|
|
16339
16361
|
endUserIpAddress
|
|
16340
16362
|
}, createFundingSource));
|
|
16341
16363
|
});
|
|
@@ -16344,7 +16366,7 @@ class FundingSourcesAPI {
|
|
|
16344
16366
|
* user to update the billing address or payment information associated with the
|
|
16345
16367
|
* funding source.
|
|
16346
16368
|
*/
|
|
16347
|
-
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$
|
|
16369
|
+
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$12(this, null, function* () {
|
|
16348
16370
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16349
16371
|
if (!endUserIpAddress) {
|
|
16350
16372
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16354,7 +16376,7 @@ class FundingSourcesAPI {
|
|
|
16354
16376
|
{
|
|
16355
16377
|
billingInfo,
|
|
16356
16378
|
endUserIpAddress,
|
|
16357
|
-
paymentMethod: __spreadValues$
|
|
16379
|
+
paymentMethod: __spreadValues$N({
|
|
16358
16380
|
creditCardInfo
|
|
16359
16381
|
}, auctanePayInfo)
|
|
16360
16382
|
}
|
|
@@ -16364,19 +16386,19 @@ class FundingSourcesAPI {
|
|
|
16364
16386
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16365
16387
|
* it with a given funding source.
|
|
16366
16388
|
*/
|
|
16367
|
-
this.registerCarrier = (carrier) => __async$
|
|
16389
|
+
this.registerCarrier = (carrier) => __async$12(this, null, function* () {
|
|
16368
16390
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16369
16391
|
if (!endUserIpAddress) {
|
|
16370
16392
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16371
16393
|
}
|
|
16372
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16394
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$N({
|
|
16373
16395
|
endUserIpAddress
|
|
16374
16396
|
}, carrier));
|
|
16375
16397
|
});
|
|
16376
16398
|
/**
|
|
16377
16399
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16378
16400
|
*/
|
|
16379
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16401
|
+
this.addFunds = (amount, fundingSourceId) => __async$12(this, null, function* () {
|
|
16380
16402
|
return yield this.client.put(
|
|
16381
16403
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16382
16404
|
amount
|
|
@@ -16386,7 +16408,7 @@ class FundingSourcesAPI {
|
|
|
16386
16408
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16387
16409
|
* and attaching carriers
|
|
16388
16410
|
*/
|
|
16389
|
-
this.metadata = () => __async$
|
|
16411
|
+
this.metadata = () => __async$12(this, null, function* () {
|
|
16390
16412
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16391
16413
|
});
|
|
16392
16414
|
/**
|
|
@@ -16438,7 +16460,7 @@ class InsuranceAPI {
|
|
|
16438
16460
|
}
|
|
16439
16461
|
}
|
|
16440
16462
|
|
|
16441
|
-
var __async$
|
|
16463
|
+
var __async$11 = (__this, __arguments, generator) => {
|
|
16442
16464
|
return new Promise((resolve, reject) => {
|
|
16443
16465
|
var fulfilled = (value) => {
|
|
16444
16466
|
try {
|
|
@@ -16470,13 +16492,13 @@ class InvoiceAddressAPI {
|
|
|
16470
16492
|
/**
|
|
16471
16493
|
* The `create` method creates a new invoice address for a given user.
|
|
16472
16494
|
*/
|
|
16473
|
-
this.create = (invoiceAddress) => __async$
|
|
16495
|
+
this.create = (invoiceAddress) => __async$11(this, null, function* () {
|
|
16474
16496
|
return yield this.client.post("/v1/invoice_address", invoiceAddress);
|
|
16475
16497
|
});
|
|
16476
16498
|
/**
|
|
16477
16499
|
* The `update` method updates a invoice address for a given user.
|
|
16478
16500
|
*/
|
|
16479
|
-
this.update = (invoiceAddress) => __async$
|
|
16501
|
+
this.update = (invoiceAddress) => __async$11(this, null, function* () {
|
|
16480
16502
|
return yield this.client.put("/v1/invoice_address", invoiceAddress);
|
|
16481
16503
|
});
|
|
16482
16504
|
this.client = client;
|
|
@@ -16538,17 +16560,17 @@ class LabelsAPI {
|
|
|
16538
16560
|
}
|
|
16539
16561
|
}
|
|
16540
16562
|
|
|
16541
|
-
var __getOwnPropSymbols$
|
|
16542
|
-
var __hasOwnProp$
|
|
16543
|
-
var __propIsEnum$
|
|
16563
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
16564
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
16565
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
16544
16566
|
var __objRest$t = (source, exclude) => {
|
|
16545
16567
|
var target = {};
|
|
16546
16568
|
for (var prop in source)
|
|
16547
|
-
if (__hasOwnProp$
|
|
16569
|
+
if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16548
16570
|
target[prop] = source[prop];
|
|
16549
|
-
if (source != null && __getOwnPropSymbols$
|
|
16550
|
-
for (var prop of __getOwnPropSymbols$
|
|
16551
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16571
|
+
if (source != null && __getOwnPropSymbols$W)
|
|
16572
|
+
for (var prop of __getOwnPropSymbols$W(source)) {
|
|
16573
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
|
|
16552
16574
|
target[prop] = source[prop];
|
|
16553
16575
|
}
|
|
16554
16576
|
return target;
|
|
@@ -16669,19 +16691,19 @@ class RateCardsAPI {
|
|
|
16669
16691
|
}
|
|
16670
16692
|
}
|
|
16671
16693
|
|
|
16672
|
-
var __defProp$
|
|
16673
|
-
var __getOwnPropSymbols$
|
|
16674
|
-
var __hasOwnProp$
|
|
16675
|
-
var __propIsEnum$
|
|
16676
|
-
var __defNormalProp$
|
|
16677
|
-
var __spreadValues$
|
|
16694
|
+
var __defProp$M = Object.defineProperty;
|
|
16695
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
16696
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
16697
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
16698
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16699
|
+
var __spreadValues$M = (a, b) => {
|
|
16678
16700
|
for (var prop in b || (b = {}))
|
|
16679
|
-
if (__hasOwnProp$
|
|
16680
|
-
__defNormalProp$
|
|
16681
|
-
if (__getOwnPropSymbols$
|
|
16682
|
-
for (var prop of __getOwnPropSymbols$
|
|
16683
|
-
if (__propIsEnum$
|
|
16684
|
-
__defNormalProp$
|
|
16701
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
16702
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
16703
|
+
if (__getOwnPropSymbols$V)
|
|
16704
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
16705
|
+
if (__propIsEnum$V.call(b, prop))
|
|
16706
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
16685
16707
|
}
|
|
16686
16708
|
return a;
|
|
16687
16709
|
};
|
|
@@ -16703,7 +16725,7 @@ class RatesAPI {
|
|
|
16703
16725
|
* method.
|
|
16704
16726
|
*/
|
|
16705
16727
|
this.estimate = (params) => {
|
|
16706
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16728
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$M({}, params));
|
|
16707
16729
|
};
|
|
16708
16730
|
this.client = client;
|
|
16709
16731
|
}
|
|
@@ -16783,7 +16805,7 @@ class SalesOrdersAPI {
|
|
|
16783
16805
|
}
|
|
16784
16806
|
}
|
|
16785
16807
|
|
|
16786
|
-
var __async
|
|
16808
|
+
var __async$10 = (__this, __arguments, generator) => {
|
|
16787
16809
|
return new Promise((resolve, reject) => {
|
|
16788
16810
|
var fulfilled = (value) => {
|
|
16789
16811
|
try {
|
|
@@ -16841,7 +16863,7 @@ class SellersAPI {
|
|
|
16841
16863
|
/**
|
|
16842
16864
|
* Deletes an API Key
|
|
16843
16865
|
*/
|
|
16844
|
-
this.deleteSellerApiKey = (_0) => __async
|
|
16866
|
+
this.deleteSellerApiKey = (_0) => __async$10(this, [_0], function* ({
|
|
16845
16867
|
encryptedApiKey,
|
|
16846
16868
|
sellerId,
|
|
16847
16869
|
isSandbox
|
|
@@ -16887,19 +16909,19 @@ class SellersAPI {
|
|
|
16887
16909
|
}
|
|
16888
16910
|
}
|
|
16889
16911
|
|
|
16890
|
-
var __defProp$
|
|
16891
|
-
var __getOwnPropSymbols$
|
|
16892
|
-
var __hasOwnProp$
|
|
16893
|
-
var __propIsEnum$
|
|
16894
|
-
var __defNormalProp$
|
|
16895
|
-
var __spreadValues$
|
|
16912
|
+
var __defProp$L = Object.defineProperty;
|
|
16913
|
+
var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
|
|
16914
|
+
var __hasOwnProp$U = Object.prototype.hasOwnProperty;
|
|
16915
|
+
var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
|
|
16916
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16917
|
+
var __spreadValues$L = (a, b) => {
|
|
16896
16918
|
for (var prop in b || (b = {}))
|
|
16897
|
-
if (__hasOwnProp$
|
|
16898
|
-
__defNormalProp$
|
|
16899
|
-
if (__getOwnPropSymbols$
|
|
16900
|
-
for (var prop of __getOwnPropSymbols$
|
|
16901
|
-
if (__propIsEnum$
|
|
16902
|
-
__defNormalProp$
|
|
16919
|
+
if (__hasOwnProp$U.call(b, prop))
|
|
16920
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
16921
|
+
if (__getOwnPropSymbols$U)
|
|
16922
|
+
for (var prop of __getOwnPropSymbols$U(b)) {
|
|
16923
|
+
if (__propIsEnum$U.call(b, prop))
|
|
16924
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
16903
16925
|
}
|
|
16904
16926
|
return a;
|
|
16905
16927
|
};
|
|
@@ -16911,7 +16933,7 @@ class ServicePointsAPI {
|
|
|
16911
16933
|
* Either an address, coordinates, or an address query
|
|
16912
16934
|
*/
|
|
16913
16935
|
this.list = (options) => {
|
|
16914
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16936
|
+
return this.client.post("/v1/service_points/list", __spreadValues$L({}, options));
|
|
16915
16937
|
};
|
|
16916
16938
|
/**
|
|
16917
16939
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -16929,7 +16951,7 @@ class ServicePointsAPI {
|
|
|
16929
16951
|
}
|
|
16930
16952
|
}
|
|
16931
16953
|
|
|
16932
|
-
var __async
|
|
16954
|
+
var __async$$ = (__this, __arguments, generator) => {
|
|
16933
16955
|
return new Promise((resolve, reject) => {
|
|
16934
16956
|
var fulfilled = (value) => {
|
|
16935
16957
|
try {
|
|
@@ -16978,7 +17000,7 @@ class ShipmentsAPI {
|
|
|
16978
17000
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
16979
17001
|
* items passed into this method.
|
|
16980
17002
|
*/
|
|
16981
|
-
this.create = (...shipments) => __async
|
|
17003
|
+
this.create = (...shipments) => __async$$(this, null, function* () {
|
|
16982
17004
|
return this.client.post("/v1/shipments", {
|
|
16983
17005
|
shipments
|
|
16984
17006
|
});
|
|
@@ -34395,38 +34417,38 @@ class WebhooksAPI {
|
|
|
34395
34417
|
}
|
|
34396
34418
|
}
|
|
34397
34419
|
|
|
34398
|
-
var __defProp$
|
|
34399
|
-
var __defProps$
|
|
34400
|
-
var __getOwnPropDescs$
|
|
34401
|
-
var __getOwnPropSymbols$
|
|
34402
|
-
var __hasOwnProp$
|
|
34403
|
-
var __propIsEnum$
|
|
34404
|
-
var __defNormalProp$
|
|
34405
|
-
var __spreadValues$
|
|
34420
|
+
var __defProp$K = Object.defineProperty;
|
|
34421
|
+
var __defProps$H = Object.defineProperties;
|
|
34422
|
+
var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
|
|
34423
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
34424
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
34425
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
34426
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34427
|
+
var __spreadValues$K = (a, b) => {
|
|
34406
34428
|
for (var prop in b || (b = {}))
|
|
34407
|
-
if (__hasOwnProp$
|
|
34408
|
-
__defNormalProp$
|
|
34409
|
-
if (__getOwnPropSymbols$
|
|
34410
|
-
for (var prop of __getOwnPropSymbols$
|
|
34411
|
-
if (__propIsEnum$
|
|
34412
|
-
__defNormalProp$
|
|
34429
|
+
if (__hasOwnProp$T.call(b, prop))
|
|
34430
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
34431
|
+
if (__getOwnPropSymbols$T)
|
|
34432
|
+
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
34433
|
+
if (__propIsEnum$T.call(b, prop))
|
|
34434
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
34413
34435
|
}
|
|
34414
34436
|
return a;
|
|
34415
34437
|
};
|
|
34416
|
-
var __spreadProps$
|
|
34438
|
+
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
34417
34439
|
var __objRest$s = (source, exclude) => {
|
|
34418
34440
|
var target = {};
|
|
34419
34441
|
for (var prop in source)
|
|
34420
|
-
if (__hasOwnProp$
|
|
34442
|
+
if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34421
34443
|
target[prop] = source[prop];
|
|
34422
|
-
if (source != null && __getOwnPropSymbols$
|
|
34423
|
-
for (var prop of __getOwnPropSymbols$
|
|
34424
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34444
|
+
if (source != null && __getOwnPropSymbols$T)
|
|
34445
|
+
for (var prop of __getOwnPropSymbols$T(source)) {
|
|
34446
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
|
|
34425
34447
|
target[prop] = source[prop];
|
|
34426
34448
|
}
|
|
34427
34449
|
return target;
|
|
34428
34450
|
};
|
|
34429
|
-
var __async$
|
|
34451
|
+
var __async$_ = (__this, __arguments, generator) => {
|
|
34430
34452
|
return new Promise((resolve, reject) => {
|
|
34431
34453
|
var fulfilled = (value) => {
|
|
34432
34454
|
try {
|
|
@@ -34449,7 +34471,7 @@ var __async$Z = (__this, __arguments, generator) => {
|
|
|
34449
34471
|
const logger$1 = E({
|
|
34450
34472
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34451
34473
|
name: "shipengine-api",
|
|
34452
|
-
serializers: __spreadProps$
|
|
34474
|
+
serializers: __spreadProps$H(__spreadValues$K({}, k), {
|
|
34453
34475
|
req: (req) => ({
|
|
34454
34476
|
headers: req.headers,
|
|
34455
34477
|
method: req.method,
|
|
@@ -34474,7 +34496,7 @@ class ShipEngineAPI {
|
|
|
34474
34496
|
this.getSandboxToken = getSandboxToken;
|
|
34475
34497
|
const client = axios.create({
|
|
34476
34498
|
baseURL,
|
|
34477
|
-
headers: __spreadProps$
|
|
34499
|
+
headers: __spreadProps$H(__spreadValues$K({}, headers), {
|
|
34478
34500
|
"Content-Type": "application/json"
|
|
34479
34501
|
}),
|
|
34480
34502
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34514,7 +34536,7 @@ class ShipEngineAPI {
|
|
|
34514
34536
|
});
|
|
34515
34537
|
client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
|
|
34516
34538
|
client.interceptors.request.use(
|
|
34517
|
-
(config) => __async$
|
|
34539
|
+
(config) => __async$_(this, null, function* () {
|
|
34518
34540
|
if (config.isSandbox) {
|
|
34519
34541
|
if (!this.sandboxToken) {
|
|
34520
34542
|
this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
|
|
@@ -34541,7 +34563,7 @@ class ShipEngineAPI {
|
|
|
34541
34563
|
);
|
|
34542
34564
|
return res;
|
|
34543
34565
|
},
|
|
34544
|
-
(err) => __async$
|
|
34566
|
+
(err) => __async$_(this, null, function* () {
|
|
34545
34567
|
var _a, _b, _c, _d, _e;
|
|
34546
34568
|
logger$1.error(
|
|
34547
34569
|
{ err, req: err.config, res: err.response },
|
|
@@ -34588,7 +34610,7 @@ class ShipEngineAPI {
|
|
|
34588
34610
|
* that token (also known as Seller ID)
|
|
34589
34611
|
*/
|
|
34590
34612
|
getTenant(isSandbox) {
|
|
34591
|
-
return __async$
|
|
34613
|
+
return __async$_(this, null, function* () {
|
|
34592
34614
|
var _a;
|
|
34593
34615
|
if (!isSandbox) {
|
|
34594
34616
|
return this.getTenantFromToken(this.token);
|
|
@@ -34898,25 +34920,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34898
34920
|
|
|
34899
34921
|
const onError = (_errors) => _default();
|
|
34900
34922
|
|
|
34901
|
-
var __defProp$
|
|
34902
|
-
var __defProps$
|
|
34903
|
-
var __getOwnPropDescs$
|
|
34904
|
-
var __getOwnPropSymbols$
|
|
34905
|
-
var __hasOwnProp$
|
|
34906
|
-
var __propIsEnum$
|
|
34907
|
-
var __defNormalProp$
|
|
34908
|
-
var __spreadValues$
|
|
34923
|
+
var __defProp$J = Object.defineProperty;
|
|
34924
|
+
var __defProps$G = Object.defineProperties;
|
|
34925
|
+
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
34926
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
34927
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
34928
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
34929
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34930
|
+
var __spreadValues$J = (a, b) => {
|
|
34909
34931
|
for (var prop in b || (b = {}))
|
|
34910
|
-
if (__hasOwnProp$
|
|
34911
|
-
__defNormalProp$
|
|
34912
|
-
if (__getOwnPropSymbols$
|
|
34913
|
-
for (var prop of __getOwnPropSymbols$
|
|
34914
|
-
if (__propIsEnum$
|
|
34915
|
-
__defNormalProp$
|
|
34932
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
34933
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
34934
|
+
if (__getOwnPropSymbols$S)
|
|
34935
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
34936
|
+
if (__propIsEnum$S.call(b, prop))
|
|
34937
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
34916
34938
|
}
|
|
34917
34939
|
return a;
|
|
34918
34940
|
};
|
|
34919
|
-
var __spreadProps$
|
|
34941
|
+
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
34920
34942
|
const streams = [];
|
|
34921
34943
|
if (process.env.NODE_ENV === "production") {
|
|
34922
34944
|
streams.push({
|
|
@@ -34925,7 +34947,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34925
34947
|
}
|
|
34926
34948
|
const logger = E({
|
|
34927
34949
|
name: "shipengine",
|
|
34928
|
-
serializers: __spreadProps$
|
|
34950
|
+
serializers: __spreadProps$G(__spreadValues$J({}, k), {
|
|
34929
34951
|
req: (req) => ({
|
|
34930
34952
|
headers: req.headers,
|
|
34931
34953
|
method: req.method,
|
|
@@ -34950,7 +34972,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
34950
34972
|
throw error;
|
|
34951
34973
|
});
|
|
34952
34974
|
|
|
34953
|
-
var __async$
|
|
34975
|
+
var __async$Z = (__this, __arguments, generator) => {
|
|
34954
34976
|
return new Promise((resolve, reject) => {
|
|
34955
34977
|
var fulfilled = (value) => {
|
|
34956
34978
|
try {
|
|
@@ -34973,7 +34995,7 @@ var __async$Y = (__this, __arguments, generator) => {
|
|
|
34973
34995
|
const useCreateAccountImage = () => {
|
|
34974
34996
|
const { client } = useShipEngine();
|
|
34975
34997
|
return useMutation({
|
|
34976
|
-
mutationFn: (data) => __async$
|
|
34998
|
+
mutationFn: (data) => __async$Z(void 0, null, function* () {
|
|
34977
34999
|
const result = yield client.accountSettings.createImage(data);
|
|
34978
35000
|
return result.data;
|
|
34979
35001
|
}),
|
|
@@ -34982,7 +35004,7 @@ const useCreateAccountImage = () => {
|
|
|
34982
35004
|
});
|
|
34983
35005
|
};
|
|
34984
35006
|
|
|
34985
|
-
var __async$
|
|
35007
|
+
var __async$Y = (__this, __arguments, generator) => {
|
|
34986
35008
|
return new Promise((resolve, reject) => {
|
|
34987
35009
|
var fulfilled = (value) => {
|
|
34988
35010
|
try {
|
|
@@ -35005,7 +35027,7 @@ var __async$X = (__this, __arguments, generator) => {
|
|
|
35005
35027
|
const useDeleteAccountImage = () => {
|
|
35006
35028
|
const { client } = useShipEngine();
|
|
35007
35029
|
return useMutation({
|
|
35008
|
-
mutationFn: (labelImageId) => __async$
|
|
35030
|
+
mutationFn: (labelImageId) => __async$Y(void 0, null, function* () {
|
|
35009
35031
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
35010
35032
|
return result.data;
|
|
35011
35033
|
}),
|
|
@@ -35034,7 +35056,7 @@ const useGetAccountSettings = () => {
|
|
|
35034
35056
|
});
|
|
35035
35057
|
};
|
|
35036
35058
|
|
|
35037
|
-
var __async$
|
|
35059
|
+
var __async$X = (__this, __arguments, generator) => {
|
|
35038
35060
|
return new Promise((resolve, reject) => {
|
|
35039
35061
|
var fulfilled = (value) => {
|
|
35040
35062
|
try {
|
|
@@ -35057,7 +35079,7 @@ var __async$W = (__this, __arguments, generator) => {
|
|
|
35057
35079
|
const useUpdateAccountImage = () => {
|
|
35058
35080
|
const { client } = useShipEngine();
|
|
35059
35081
|
return useMutation({
|
|
35060
|
-
mutationFn: (data) => __async$
|
|
35082
|
+
mutationFn: (data) => __async$X(void 0, null, function* () {
|
|
35061
35083
|
const result = yield client.accountSettings.updateImage(data);
|
|
35062
35084
|
return result.data;
|
|
35063
35085
|
}),
|
|
@@ -35066,7 +35088,7 @@ const useUpdateAccountImage = () => {
|
|
|
35066
35088
|
});
|
|
35067
35089
|
};
|
|
35068
35090
|
|
|
35069
|
-
var __async$
|
|
35091
|
+
var __async$W = (__this, __arguments, generator) => {
|
|
35070
35092
|
return new Promise((resolve, reject) => {
|
|
35071
35093
|
var fulfilled = (value) => {
|
|
35072
35094
|
try {
|
|
@@ -35089,7 +35111,7 @@ var __async$V = (__this, __arguments, generator) => {
|
|
|
35089
35111
|
const useUpdateAccountSettings = () => {
|
|
35090
35112
|
const { client } = useShipEngine();
|
|
35091
35113
|
return useMutation({
|
|
35092
|
-
mutationFn: (settings) => __async$
|
|
35114
|
+
mutationFn: (settings) => __async$W(void 0, null, function* () {
|
|
35093
35115
|
const result = yield client.accountSettings.update(settings);
|
|
35094
35116
|
return result.data;
|
|
35095
35117
|
}),
|
|
@@ -35098,28 +35120,28 @@ const useUpdateAccountSettings = () => {
|
|
|
35098
35120
|
});
|
|
35099
35121
|
};
|
|
35100
35122
|
|
|
35101
|
-
var __defProp$
|
|
35102
|
-
var __defProps$
|
|
35103
|
-
var __getOwnPropDescs$
|
|
35104
|
-
var __getOwnPropSymbols$
|
|
35105
|
-
var __hasOwnProp$
|
|
35106
|
-
var __propIsEnum$
|
|
35107
|
-
var __defNormalProp$
|
|
35108
|
-
var __spreadValues$
|
|
35123
|
+
var __defProp$I = Object.defineProperty;
|
|
35124
|
+
var __defProps$F = Object.defineProperties;
|
|
35125
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
35126
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
35127
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
35128
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
35129
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35130
|
+
var __spreadValues$I = (a, b) => {
|
|
35109
35131
|
for (var prop in b || (b = {}))
|
|
35110
|
-
if (__hasOwnProp$
|
|
35111
|
-
__defNormalProp$
|
|
35112
|
-
if (__getOwnPropSymbols$
|
|
35113
|
-
for (var prop of __getOwnPropSymbols$
|
|
35114
|
-
if (__propIsEnum$
|
|
35115
|
-
__defNormalProp$
|
|
35132
|
+
if (__hasOwnProp$R.call(b, prop))
|
|
35133
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35134
|
+
if (__getOwnPropSymbols$R)
|
|
35135
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
35136
|
+
if (__propIsEnum$R.call(b, prop))
|
|
35137
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35116
35138
|
}
|
|
35117
35139
|
return a;
|
|
35118
35140
|
};
|
|
35119
|
-
var __spreadProps$
|
|
35141
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
35120
35142
|
const useListAccountAddons = (params) => {
|
|
35121
35143
|
const { client } = useShipEngine();
|
|
35122
|
-
return useQuery(__spreadProps$
|
|
35144
|
+
return useQuery(__spreadProps$F(__spreadValues$I({}, params), {
|
|
35123
35145
|
onError,
|
|
35124
35146
|
queryFn: () => client.accountAddons.list(),
|
|
35125
35147
|
queryKey: ["useListAccountAddons"],
|
|
@@ -35127,7 +35149,7 @@ const useListAccountAddons = (params) => {
|
|
|
35127
35149
|
}));
|
|
35128
35150
|
};
|
|
35129
35151
|
|
|
35130
|
-
var __async$
|
|
35152
|
+
var __async$V = (__this, __arguments, generator) => {
|
|
35131
35153
|
return new Promise((resolve, reject) => {
|
|
35132
35154
|
var fulfilled = (value) => {
|
|
35133
35155
|
try {
|
|
@@ -35150,7 +35172,7 @@ var __async$U = (__this, __arguments, generator) => {
|
|
|
35150
35172
|
const useParseAddress = () => {
|
|
35151
35173
|
const { client } = useShipEngine();
|
|
35152
35174
|
return useMutation({
|
|
35153
|
-
mutationFn: (_0) => __async$
|
|
35175
|
+
mutationFn: (_0) => __async$V(void 0, [_0], function* ({ address, text }) {
|
|
35154
35176
|
const result = yield client.addresses.parse(text, address);
|
|
35155
35177
|
return result.data;
|
|
35156
35178
|
}),
|
|
@@ -35159,7 +35181,7 @@ const useParseAddress = () => {
|
|
|
35159
35181
|
});
|
|
35160
35182
|
};
|
|
35161
35183
|
|
|
35162
|
-
var __async$
|
|
35184
|
+
var __async$U = (__this, __arguments, generator) => {
|
|
35163
35185
|
return new Promise((resolve, reject) => {
|
|
35164
35186
|
var fulfilled = (value) => {
|
|
35165
35187
|
try {
|
|
@@ -35182,7 +35204,7 @@ var __async$T = (__this, __arguments, generator) => {
|
|
|
35182
35204
|
const useValidateAddresses = () => {
|
|
35183
35205
|
const { client } = useShipEngine();
|
|
35184
35206
|
return useMutation({
|
|
35185
|
-
mutationFn: (addresses) => __async$
|
|
35207
|
+
mutationFn: (addresses) => __async$U(void 0, null, function* () {
|
|
35186
35208
|
const result = yield client.addresses.validate(addresses);
|
|
35187
35209
|
return result.data;
|
|
35188
35210
|
}),
|
|
@@ -35191,6 +35213,87 @@ const useValidateAddresses = () => {
|
|
|
35191
35213
|
});
|
|
35192
35214
|
};
|
|
35193
35215
|
|
|
35216
|
+
var __defProp$H = Object.defineProperty;
|
|
35217
|
+
var __defProps$E = Object.defineProperties;
|
|
35218
|
+
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
35219
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
35220
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
35221
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
35222
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35223
|
+
var __spreadValues$H = (a, b) => {
|
|
35224
|
+
for (var prop in b || (b = {}))
|
|
35225
|
+
if (__hasOwnProp$Q.call(b, prop))
|
|
35226
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
35227
|
+
if (__getOwnPropSymbols$Q)
|
|
35228
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
35229
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
35230
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
35231
|
+
}
|
|
35232
|
+
return a;
|
|
35233
|
+
};
|
|
35234
|
+
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
35235
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
35236
|
+
return new Promise((resolve, reject) => {
|
|
35237
|
+
var fulfilled = (value) => {
|
|
35238
|
+
try {
|
|
35239
|
+
step(generator.next(value));
|
|
35240
|
+
} catch (e) {
|
|
35241
|
+
reject(e);
|
|
35242
|
+
}
|
|
35243
|
+
};
|
|
35244
|
+
var rejected = (value) => {
|
|
35245
|
+
try {
|
|
35246
|
+
step(generator.throw(value));
|
|
35247
|
+
} catch (e) {
|
|
35248
|
+
reject(e);
|
|
35249
|
+
}
|
|
35250
|
+
};
|
|
35251
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35252
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35253
|
+
});
|
|
35254
|
+
};
|
|
35255
|
+
const useCreateAuctanePaySession = (params) => {
|
|
35256
|
+
const { client } = useShipEngine();
|
|
35257
|
+
return useMutation(__spreadProps$E(__spreadValues$H({}, params), {
|
|
35258
|
+
mutationFn: (request) => __async$T(void 0, null, function* () {
|
|
35259
|
+
const result = yield client.auctanePay.createSession(request);
|
|
35260
|
+
return result.data;
|
|
35261
|
+
}),
|
|
35262
|
+
mutationKey: ["useCreateAuctanePaySession"],
|
|
35263
|
+
onError
|
|
35264
|
+
}));
|
|
35265
|
+
};
|
|
35266
|
+
|
|
35267
|
+
var __defProp$G = Object.defineProperty;
|
|
35268
|
+
var __defProps$D = Object.defineProperties;
|
|
35269
|
+
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
35270
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
35271
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
35272
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
35273
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35274
|
+
var __spreadValues$G = (a, b) => {
|
|
35275
|
+
for (var prop in b || (b = {}))
|
|
35276
|
+
if (__hasOwnProp$P.call(b, prop))
|
|
35277
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
35278
|
+
if (__getOwnPropSymbols$P)
|
|
35279
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
35280
|
+
if (__propIsEnum$P.call(b, prop))
|
|
35281
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
35282
|
+
}
|
|
35283
|
+
return a;
|
|
35284
|
+
};
|
|
35285
|
+
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
35286
|
+
const useGetAuctanePayConfig = (params) => {
|
|
35287
|
+
const { client } = useShipEngine();
|
|
35288
|
+
const queryParams = __spreadValues$G({}, params);
|
|
35289
|
+
return useQuery(__spreadProps$D(__spreadValues$G({}, queryParams), {
|
|
35290
|
+
onError,
|
|
35291
|
+
queryFn: () => client.auctanePay.getConfig(),
|
|
35292
|
+
queryKey: ["useGetAuctanePayConfig"],
|
|
35293
|
+
select: (result) => result.data
|
|
35294
|
+
}));
|
|
35295
|
+
};
|
|
35296
|
+
|
|
35194
35297
|
var __defProp$F = Object.defineProperty;
|
|
35195
35298
|
var __defProps$C = Object.defineProperties;
|
|
35196
35299
|
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
@@ -35230,14 +35333,18 @@ var __async$S = (__this, __arguments, generator) => {
|
|
|
35230
35333
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35231
35334
|
});
|
|
35232
35335
|
};
|
|
35233
|
-
const
|
|
35336
|
+
const usePreviewTransaction = (params) => {
|
|
35234
35337
|
const { client } = useShipEngine();
|
|
35235
35338
|
return useMutation(__spreadProps$C(__spreadValues$F({}, params), {
|
|
35236
|
-
mutationFn: (
|
|
35237
|
-
const
|
|
35339
|
+
mutationFn: (_0) => __async$S(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
|
|
35340
|
+
const request = {
|
|
35341
|
+
amount,
|
|
35342
|
+
transactionCategory
|
|
35343
|
+
};
|
|
35344
|
+
const result = yield client.auctanePay.previewTransaction(request);
|
|
35238
35345
|
return result.data;
|
|
35239
35346
|
}),
|
|
35240
|
-
mutationKey: ["
|
|
35347
|
+
mutationKey: ["usePreviewTransaction"],
|
|
35241
35348
|
onError
|
|
35242
35349
|
}));
|
|
35243
35350
|
};
|
|
@@ -35261,13 +35368,13 @@ var __spreadValues$E = (a, b) => {
|
|
|
35261
35368
|
return a;
|
|
35262
35369
|
};
|
|
35263
35370
|
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
35264
|
-
const
|
|
35371
|
+
const useGetPaymentMethods = (params) => {
|
|
35265
35372
|
const { client } = useShipEngine();
|
|
35266
35373
|
const queryParams = __spreadValues$E({}, params);
|
|
35267
35374
|
return useQuery(__spreadProps$B(__spreadValues$E({}, queryParams), {
|
|
35268
35375
|
onError,
|
|
35269
|
-
queryFn: () => client.auctanePay.
|
|
35270
|
-
queryKey: ["
|
|
35376
|
+
queryFn: () => client.auctanePay.getPaymentMethods(),
|
|
35377
|
+
queryKey: ["useGetPaymentMethods"],
|
|
35271
35378
|
select: (result) => result.data
|
|
35272
35379
|
}));
|
|
35273
35380
|
};
|
|
@@ -35311,18 +35418,14 @@ var __async$R = (__this, __arguments, generator) => {
|
|
|
35311
35418
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35312
35419
|
});
|
|
35313
35420
|
};
|
|
35314
|
-
const
|
|
35421
|
+
const useDeletePaymentMethod = (params) => {
|
|
35315
35422
|
const { client } = useShipEngine();
|
|
35316
35423
|
return useMutation(__spreadProps$A(__spreadValues$D({}, params), {
|
|
35317
|
-
mutationFn: (
|
|
35318
|
-
const
|
|
35319
|
-
amount,
|
|
35320
|
-
transactionCategory
|
|
35321
|
-
};
|
|
35322
|
-
const result = yield client.auctanePay.previewTransaction(request);
|
|
35424
|
+
mutationFn: (paymentMethodId) => __async$R(void 0, null, function* () {
|
|
35425
|
+
const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
|
|
35323
35426
|
return result.data;
|
|
35324
35427
|
}),
|
|
35325
|
-
mutationKey: ["
|
|
35428
|
+
mutationKey: ["useDeletePaymentMethod"],
|
|
35326
35429
|
onError
|
|
35327
35430
|
}));
|
|
35328
35431
|
};
|
|
@@ -35346,14 +35449,35 @@ var __spreadValues$C = (a, b) => {
|
|
|
35346
35449
|
return a;
|
|
35347
35450
|
};
|
|
35348
35451
|
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
35349
|
-
|
|
35452
|
+
var __async$Q = (__this, __arguments, generator) => {
|
|
35453
|
+
return new Promise((resolve, reject) => {
|
|
35454
|
+
var fulfilled = (value) => {
|
|
35455
|
+
try {
|
|
35456
|
+
step(generator.next(value));
|
|
35457
|
+
} catch (e) {
|
|
35458
|
+
reject(e);
|
|
35459
|
+
}
|
|
35460
|
+
};
|
|
35461
|
+
var rejected = (value) => {
|
|
35462
|
+
try {
|
|
35463
|
+
step(generator.throw(value));
|
|
35464
|
+
} catch (e) {
|
|
35465
|
+
reject(e);
|
|
35466
|
+
}
|
|
35467
|
+
};
|
|
35468
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35469
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35470
|
+
});
|
|
35471
|
+
};
|
|
35472
|
+
const useUpdatePaymentMethod = (params) => {
|
|
35350
35473
|
const { client } = useShipEngine();
|
|
35351
|
-
|
|
35352
|
-
|
|
35353
|
-
|
|
35354
|
-
|
|
35355
|
-
|
|
35356
|
-
|
|
35474
|
+
return useMutation(__spreadProps$z(__spreadValues$C({}, params), {
|
|
35475
|
+
mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ paymentMethodId, payload }) {
|
|
35476
|
+
const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
|
|
35477
|
+
return result.data;
|
|
35478
|
+
}),
|
|
35479
|
+
mutationKey: ["useUpdatePaymentMethod"],
|
|
35480
|
+
onError
|
|
35357
35481
|
}));
|
|
35358
35482
|
};
|
|
35359
35483
|
|
|
@@ -35376,7 +35500,7 @@ var __spreadValues$B = (a, b) => {
|
|
|
35376
35500
|
return a;
|
|
35377
35501
|
};
|
|
35378
35502
|
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
35379
|
-
var __async$
|
|
35503
|
+
var __async$P = (__this, __arguments, generator) => {
|
|
35380
35504
|
return new Promise((resolve, reject) => {
|
|
35381
35505
|
var fulfilled = (value) => {
|
|
35382
35506
|
try {
|
|
@@ -35396,14 +35520,14 @@ var __async$Q = (__this, __arguments, generator) => {
|
|
|
35396
35520
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35397
35521
|
});
|
|
35398
35522
|
};
|
|
35399
|
-
const
|
|
35523
|
+
const useIdentityVerification = (params) => {
|
|
35400
35524
|
const { client } = useShipEngine();
|
|
35401
35525
|
return useMutation(__spreadProps$y(__spreadValues$B({}, params), {
|
|
35402
|
-
mutationFn: (
|
|
35403
|
-
const result = yield client.auctanePay.
|
|
35526
|
+
mutationFn: () => __async$P(void 0, null, function* () {
|
|
35527
|
+
const result = yield client.auctanePay.identityVerification();
|
|
35404
35528
|
return result.data;
|
|
35405
35529
|
}),
|
|
35406
|
-
mutationKey: ["
|
|
35530
|
+
mutationKey: ["useIdentityVerification"],
|
|
35407
35531
|
onError
|
|
35408
35532
|
}));
|
|
35409
35533
|
};
|
|
@@ -35427,35 +35551,14 @@ var __spreadValues$A = (a, b) => {
|
|
|
35427
35551
|
return a;
|
|
35428
35552
|
};
|
|
35429
35553
|
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
35430
|
-
|
|
35431
|
-
return new Promise((resolve, reject) => {
|
|
35432
|
-
var fulfilled = (value) => {
|
|
35433
|
-
try {
|
|
35434
|
-
step(generator.next(value));
|
|
35435
|
-
} catch (e) {
|
|
35436
|
-
reject(e);
|
|
35437
|
-
}
|
|
35438
|
-
};
|
|
35439
|
-
var rejected = (value) => {
|
|
35440
|
-
try {
|
|
35441
|
-
step(generator.throw(value));
|
|
35442
|
-
} catch (e) {
|
|
35443
|
-
reject(e);
|
|
35444
|
-
}
|
|
35445
|
-
};
|
|
35446
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35447
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
35448
|
-
});
|
|
35449
|
-
};
|
|
35450
|
-
const useUpdatePaymentMethod = (params) => {
|
|
35554
|
+
const useGetPaymentAccount = (params) => {
|
|
35451
35555
|
const { client } = useShipEngine();
|
|
35452
|
-
|
|
35453
|
-
|
|
35454
|
-
|
|
35455
|
-
|
|
35456
|
-
|
|
35457
|
-
|
|
35458
|
-
onError
|
|
35556
|
+
const queryParams = __spreadValues$A({}, params);
|
|
35557
|
+
return useQuery(__spreadProps$x(__spreadValues$A({}, queryParams), {
|
|
35558
|
+
onError,
|
|
35559
|
+
queryFn: () => client.auctanePay.getPaymentAccount(),
|
|
35560
|
+
queryKey: ["useGetPaymentAccount"],
|
|
35561
|
+
select: (result) => result.data
|
|
35459
35562
|
}));
|
|
35460
35563
|
};
|
|
35461
35564
|
|
|
@@ -39974,4 +40077,4 @@ const alchemy = {
|
|
|
39974
40077
|
createElement
|
|
39975
40078
|
};
|
|
39976
40079
|
|
|
39977
|
-
export { AccountAddonsAPI, 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, UsersApi, 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, useDeletePaymentMethod, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListAccountAddons, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|
|
40080
|
+
export { AccountAddonsAPI, 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, UsersApi, 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, useDeletePaymentMethod, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentAccount, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useIdentityVerification, useListAccountAddons, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|