@shipengine/alchemy 6.0.79 → 6.0.80
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 +615 -483
- package/index.mjs +613 -484
- 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
|
/**
|
|
@@ -10805,17 +10813,17 @@ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
|
|
|
10805
10813
|
return FeatureId2;
|
|
10806
10814
|
})(FeatureId || {});
|
|
10807
10815
|
|
|
10808
|
-
var __getOwnPropSymbols$
|
|
10809
|
-
var __hasOwnProp$
|
|
10810
|
-
var __propIsEnum$
|
|
10816
|
+
var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
|
|
10817
|
+
var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
|
|
10818
|
+
var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
|
|
10811
10819
|
var __objRest$x = (source, exclude) => {
|
|
10812
10820
|
var target = {};
|
|
10813
10821
|
for (var prop in source)
|
|
10814
|
-
if (__hasOwnProp$
|
|
10822
|
+
if (__hasOwnProp$13.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10815
10823
|
target[prop] = source[prop];
|
|
10816
|
-
if (source != null && __getOwnPropSymbols$
|
|
10817
|
-
for (var prop of __getOwnPropSymbols$
|
|
10818
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10824
|
+
if (source != null && __getOwnPropSymbols$13)
|
|
10825
|
+
for (var prop of __getOwnPropSymbols$13(source)) {
|
|
10826
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$13.call(source, prop))
|
|
10819
10827
|
target[prop] = source[prop];
|
|
10820
10828
|
}
|
|
10821
10829
|
return target;
|
|
@@ -10951,17 +10959,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10951
10959
|
RateCardStatus
|
|
10952
10960
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10953
10961
|
|
|
10954
|
-
var __getOwnPropSymbols$
|
|
10955
|
-
var __hasOwnProp$
|
|
10956
|
-
var __propIsEnum$
|
|
10962
|
+
var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
|
|
10963
|
+
var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
|
|
10964
|
+
var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
|
|
10957
10965
|
var __objRest$w = (source, exclude) => {
|
|
10958
10966
|
var target = {};
|
|
10959
10967
|
for (var prop in source)
|
|
10960
|
-
if (__hasOwnProp$
|
|
10968
|
+
if (__hasOwnProp$12.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10961
10969
|
target[prop] = source[prop];
|
|
10962
|
-
if (source != null && __getOwnPropSymbols$
|
|
10963
|
-
for (var prop of __getOwnPropSymbols$
|
|
10964
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10970
|
+
if (source != null && __getOwnPropSymbols$12)
|
|
10971
|
+
for (var prop of __getOwnPropSymbols$12(source)) {
|
|
10972
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$12.call(source, prop))
|
|
10965
10973
|
target[prop] = source[prop];
|
|
10966
10974
|
}
|
|
10967
10975
|
return target;
|
|
@@ -13862,7 +13870,7 @@ var ipaddr = {
|
|
|
13862
13870
|
}).call(commonjsGlobal);
|
|
13863
13871
|
} (ipaddr));
|
|
13864
13872
|
|
|
13865
|
-
var __async$
|
|
13873
|
+
var __async$1a = (__this, __arguments, generator) => {
|
|
13866
13874
|
return new Promise((resolve, reject) => {
|
|
13867
13875
|
var fulfilled = (value) => {
|
|
13868
13876
|
try {
|
|
@@ -13882,7 +13890,7 @@ var __async$18 = (__this, __arguments, generator) => {
|
|
|
13882
13890
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13883
13891
|
});
|
|
13884
13892
|
};
|
|
13885
|
-
const getEndUserIpAddress = () => __async$
|
|
13893
|
+
const getEndUserIpAddress = () => __async$1a(void 0, null, function* () {
|
|
13886
13894
|
try {
|
|
13887
13895
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13888
13896
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13943,38 +13951,38 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13943
13951
|
return obj;
|
|
13944
13952
|
};
|
|
13945
13953
|
|
|
13946
|
-
var __defProp$
|
|
13947
|
-
var __defProps$
|
|
13948
|
-
var __getOwnPropDescs$
|
|
13949
|
-
var __getOwnPropSymbols$
|
|
13950
|
-
var __hasOwnProp$
|
|
13951
|
-
var __propIsEnum$
|
|
13952
|
-
var __defNormalProp$
|
|
13953
|
-
var __spreadValues$
|
|
13954
|
+
var __defProp$S = Object.defineProperty;
|
|
13955
|
+
var __defProps$M = Object.defineProperties;
|
|
13956
|
+
var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
|
|
13957
|
+
var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
|
|
13958
|
+
var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
|
|
13959
|
+
var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
|
|
13960
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13961
|
+
var __spreadValues$S = (a, b) => {
|
|
13954
13962
|
for (var prop in b || (b = {}))
|
|
13955
|
-
if (__hasOwnProp$
|
|
13956
|
-
__defNormalProp$
|
|
13957
|
-
if (__getOwnPropSymbols$
|
|
13958
|
-
for (var prop of __getOwnPropSymbols$
|
|
13959
|
-
if (__propIsEnum$
|
|
13960
|
-
__defNormalProp$
|
|
13963
|
+
if (__hasOwnProp$11.call(b, prop))
|
|
13964
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
13965
|
+
if (__getOwnPropSymbols$11)
|
|
13966
|
+
for (var prop of __getOwnPropSymbols$11(b)) {
|
|
13967
|
+
if (__propIsEnum$11.call(b, prop))
|
|
13968
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
13961
13969
|
}
|
|
13962
13970
|
return a;
|
|
13963
13971
|
};
|
|
13964
|
-
var __spreadProps$
|
|
13972
|
+
var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
|
|
13965
13973
|
var __objRest$v = (source, exclude) => {
|
|
13966
13974
|
var target = {};
|
|
13967
13975
|
for (var prop in source)
|
|
13968
|
-
if (__hasOwnProp$
|
|
13976
|
+
if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13969
13977
|
target[prop] = source[prop];
|
|
13970
|
-
if (source != null && __getOwnPropSymbols$
|
|
13971
|
-
for (var prop of __getOwnPropSymbols$
|
|
13972
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13978
|
+
if (source != null && __getOwnPropSymbols$11)
|
|
13979
|
+
for (var prop of __getOwnPropSymbols$11(source)) {
|
|
13980
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
|
|
13973
13981
|
target[prop] = source[prop];
|
|
13974
13982
|
}
|
|
13975
13983
|
return target;
|
|
13976
13984
|
};
|
|
13977
|
-
var __async$
|
|
13985
|
+
var __async$19 = (__this, __arguments, generator) => {
|
|
13978
13986
|
return new Promise((resolve, reject) => {
|
|
13979
13987
|
var fulfilled = (value) => {
|
|
13980
13988
|
try {
|
|
@@ -14014,12 +14022,12 @@ class CarriersAPI {
|
|
|
14014
14022
|
/**
|
|
14015
14023
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
14016
14024
|
*/
|
|
14017
|
-
this.connect = (_a) => __async$
|
|
14025
|
+
this.connect = (_a) => __async$19(this, null, function* () {
|
|
14018
14026
|
var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
|
|
14019
14027
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
14020
14028
|
if (!endUserIpAddress)
|
|
14021
14029
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
14022
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
14030
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$M(__spreadValues$S({}, connection), {
|
|
14023
14031
|
endUserIpAddress
|
|
14024
14032
|
}));
|
|
14025
14033
|
});
|
|
@@ -14099,26 +14107,36 @@ class CarriersAPI {
|
|
|
14099
14107
|
this.delete = (carrierId) => {
|
|
14100
14108
|
return this.client.delete(`/v1/carriers/${carrierId}`);
|
|
14101
14109
|
};
|
|
14110
|
+
/**
|
|
14111
|
+
* The `acceptTerms` method allows users to accept new versions of carrier terms.
|
|
14112
|
+
* Returns the status of each term.
|
|
14113
|
+
*/
|
|
14114
|
+
this.acceptTerms = (carrierId, request) => {
|
|
14115
|
+
return this.client.post(
|
|
14116
|
+
`/v1/carriers/${carrierId}/accepted_terms`,
|
|
14117
|
+
request
|
|
14118
|
+
);
|
|
14119
|
+
};
|
|
14102
14120
|
this.client = client;
|
|
14103
14121
|
}
|
|
14104
14122
|
}
|
|
14105
14123
|
|
|
14106
|
-
var __getOwnPropSymbols
|
|
14107
|
-
var __hasOwnProp
|
|
14108
|
-
var __propIsEnum
|
|
14124
|
+
var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
|
|
14125
|
+
var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
|
|
14126
|
+
var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
|
|
14109
14127
|
var __objRest$u = (source, exclude) => {
|
|
14110
14128
|
var target = {};
|
|
14111
14129
|
for (var prop in source)
|
|
14112
|
-
if (__hasOwnProp
|
|
14130
|
+
if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14113
14131
|
target[prop] = source[prop];
|
|
14114
|
-
if (source != null && __getOwnPropSymbols
|
|
14115
|
-
for (var prop of __getOwnPropSymbols
|
|
14116
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum
|
|
14132
|
+
if (source != null && __getOwnPropSymbols$10)
|
|
14133
|
+
for (var prop of __getOwnPropSymbols$10(source)) {
|
|
14134
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
|
|
14117
14135
|
target[prop] = source[prop];
|
|
14118
14136
|
}
|
|
14119
14137
|
return target;
|
|
14120
14138
|
};
|
|
14121
|
-
var __async$
|
|
14139
|
+
var __async$18 = (__this, __arguments, generator) => {
|
|
14122
14140
|
return new Promise((resolve, reject) => {
|
|
14123
14141
|
var fulfilled = (value) => {
|
|
14124
14142
|
try {
|
|
@@ -14160,7 +14178,7 @@ class ConnectionsAPI {
|
|
|
14160
14178
|
/**
|
|
14161
14179
|
* The `connectCarrier` method connects a carrier to account.
|
|
14162
14180
|
*/
|
|
14163
|
-
this.connectCarrier = (carrierName, formData) => __async$
|
|
14181
|
+
this.connectCarrier = (carrierName, formData) => __async$18(this, null, function* () {
|
|
14164
14182
|
return yield this.client.post(
|
|
14165
14183
|
`/v1/connections/carriers/${carrierName}`,
|
|
14166
14184
|
formData,
|
|
@@ -16328,23 +16346,23 @@ class CustomPackagesAPI {
|
|
|
16328
16346
|
}
|
|
16329
16347
|
}
|
|
16330
16348
|
|
|
16331
|
-
var __defProp$
|
|
16332
|
-
var __getOwnPropSymbols
|
|
16333
|
-
var __hasOwnProp
|
|
16334
|
-
var __propIsEnum
|
|
16335
|
-
var __defNormalProp$
|
|
16336
|
-
var __spreadValues$
|
|
16349
|
+
var __defProp$R = Object.defineProperty;
|
|
16350
|
+
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
16351
|
+
var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
|
|
16352
|
+
var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
|
|
16353
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16354
|
+
var __spreadValues$R = (a, b) => {
|
|
16337
16355
|
for (var prop in b || (b = {}))
|
|
16338
|
-
if (__hasOwnProp
|
|
16339
|
-
__defNormalProp$
|
|
16340
|
-
if (__getOwnPropSymbols
|
|
16341
|
-
for (var prop of __getOwnPropSymbols
|
|
16342
|
-
if (__propIsEnum
|
|
16343
|
-
__defNormalProp$
|
|
16356
|
+
if (__hasOwnProp$$.call(b, prop))
|
|
16357
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
16358
|
+
if (__getOwnPropSymbols$$)
|
|
16359
|
+
for (var prop of __getOwnPropSymbols$$(b)) {
|
|
16360
|
+
if (__propIsEnum$$.call(b, prop))
|
|
16361
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
16344
16362
|
}
|
|
16345
16363
|
return a;
|
|
16346
16364
|
};
|
|
16347
|
-
var __async$
|
|
16365
|
+
var __async$17 = (__this, __arguments, generator) => {
|
|
16348
16366
|
return new Promise((resolve, reject) => {
|
|
16349
16367
|
var fulfilled = (value) => {
|
|
16350
16368
|
try {
|
|
@@ -16383,12 +16401,12 @@ class FundingSourcesAPI {
|
|
|
16383
16401
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16384
16402
|
* payment information to be collected from the user.
|
|
16385
16403
|
*/
|
|
16386
|
-
this.create = (createFundingSource) => __async$
|
|
16404
|
+
this.create = (createFundingSource) => __async$17(this, null, function* () {
|
|
16387
16405
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16388
16406
|
if (!endUserIpAddress) {
|
|
16389
16407
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16390
16408
|
}
|
|
16391
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16409
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$R({
|
|
16392
16410
|
endUserIpAddress
|
|
16393
16411
|
}, createFundingSource));
|
|
16394
16412
|
});
|
|
@@ -16397,7 +16415,7 @@ class FundingSourcesAPI {
|
|
|
16397
16415
|
* user to update the billing address or payment information associated with the
|
|
16398
16416
|
* funding source.
|
|
16399
16417
|
*/
|
|
16400
|
-
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$
|
|
16418
|
+
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$17(this, null, function* () {
|
|
16401
16419
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16402
16420
|
if (!endUserIpAddress) {
|
|
16403
16421
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16407,7 +16425,7 @@ class FundingSourcesAPI {
|
|
|
16407
16425
|
{
|
|
16408
16426
|
billingInfo,
|
|
16409
16427
|
endUserIpAddress,
|
|
16410
|
-
paymentMethod: __spreadValues$
|
|
16428
|
+
paymentMethod: __spreadValues$R({
|
|
16411
16429
|
creditCardInfo
|
|
16412
16430
|
}, auctanePayInfo)
|
|
16413
16431
|
}
|
|
@@ -16417,19 +16435,19 @@ class FundingSourcesAPI {
|
|
|
16417
16435
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16418
16436
|
* it with a given funding source.
|
|
16419
16437
|
*/
|
|
16420
|
-
this.registerCarrier = (carrier) => __async$
|
|
16438
|
+
this.registerCarrier = (carrier) => __async$17(this, null, function* () {
|
|
16421
16439
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16422
16440
|
if (!endUserIpAddress) {
|
|
16423
16441
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16424
16442
|
}
|
|
16425
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16443
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$R({
|
|
16426
16444
|
endUserIpAddress
|
|
16427
16445
|
}, carrier));
|
|
16428
16446
|
});
|
|
16429
16447
|
/**
|
|
16430
16448
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16431
16449
|
*/
|
|
16432
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16450
|
+
this.addFunds = (amount, fundingSourceId) => __async$17(this, null, function* () {
|
|
16433
16451
|
return yield this.client.put(
|
|
16434
16452
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16435
16453
|
amount
|
|
@@ -16439,7 +16457,7 @@ class FundingSourcesAPI {
|
|
|
16439
16457
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16440
16458
|
* and attaching carriers
|
|
16441
16459
|
*/
|
|
16442
|
-
this.metadata = () => __async$
|
|
16460
|
+
this.metadata = () => __async$17(this, null, function* () {
|
|
16443
16461
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16444
16462
|
});
|
|
16445
16463
|
/**
|
|
@@ -16464,6 +16482,23 @@ class FundingSourcesAPI {
|
|
|
16464
16482
|
"/v1/insurance/funding_source/accepted_terms"
|
|
16465
16483
|
);
|
|
16466
16484
|
};
|
|
16485
|
+
/**
|
|
16486
|
+
* The `acceptedTerms` method retrieves all accepted terms for a specific funding source.
|
|
16487
|
+
*/
|
|
16488
|
+
this.acceptedTerms = (fundingSourceId) => {
|
|
16489
|
+
return this.client.get(
|
|
16490
|
+
`/v1/funding_sources/${fundingSourceId}/accepted_terms`
|
|
16491
|
+
);
|
|
16492
|
+
};
|
|
16493
|
+
/**
|
|
16494
|
+
* The`acceptTerms` method allows users to accept new versions of funding source terms.
|
|
16495
|
+
*/
|
|
16496
|
+
this.acceptTerms = (fundingSourceId, request) => {
|
|
16497
|
+
return this.client.post(
|
|
16498
|
+
`/v1/funding_sources/${fundingSourceId}/accepted_terms`,
|
|
16499
|
+
request
|
|
16500
|
+
);
|
|
16501
|
+
};
|
|
16467
16502
|
this.client = client;
|
|
16468
16503
|
}
|
|
16469
16504
|
}
|
|
@@ -16491,7 +16526,7 @@ class InsuranceAPI {
|
|
|
16491
16526
|
}
|
|
16492
16527
|
}
|
|
16493
16528
|
|
|
16494
|
-
var __async$
|
|
16529
|
+
var __async$16 = (__this, __arguments, generator) => {
|
|
16495
16530
|
return new Promise((resolve, reject) => {
|
|
16496
16531
|
var fulfilled = (value) => {
|
|
16497
16532
|
try {
|
|
@@ -16523,13 +16558,13 @@ class InvoiceAddressAPI {
|
|
|
16523
16558
|
/**
|
|
16524
16559
|
* The `create` method creates a new invoice address for a given user.
|
|
16525
16560
|
*/
|
|
16526
|
-
this.create = (invoiceAddress) => __async$
|
|
16561
|
+
this.create = (invoiceAddress) => __async$16(this, null, function* () {
|
|
16527
16562
|
return yield this.client.post("/v1/invoice_address", invoiceAddress);
|
|
16528
16563
|
});
|
|
16529
16564
|
/**
|
|
16530
16565
|
* The `update` method updates a invoice address for a given user.
|
|
16531
16566
|
*/
|
|
16532
|
-
this.update = (invoiceAddress) => __async$
|
|
16567
|
+
this.update = (invoiceAddress) => __async$16(this, null, function* () {
|
|
16533
16568
|
return yield this.client.put("/v1/invoice_address", invoiceAddress);
|
|
16534
16569
|
});
|
|
16535
16570
|
this.client = client;
|
|
@@ -16591,17 +16626,17 @@ class LabelsAPI {
|
|
|
16591
16626
|
}
|
|
16592
16627
|
}
|
|
16593
16628
|
|
|
16594
|
-
var __getOwnPropSymbols$
|
|
16595
|
-
var __hasOwnProp$
|
|
16596
|
-
var __propIsEnum$
|
|
16629
|
+
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
16630
|
+
var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
|
|
16631
|
+
var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
|
|
16597
16632
|
var __objRest$t = (source, exclude) => {
|
|
16598
16633
|
var target = {};
|
|
16599
16634
|
for (var prop in source)
|
|
16600
|
-
if (__hasOwnProp$
|
|
16635
|
+
if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16601
16636
|
target[prop] = source[prop];
|
|
16602
|
-
if (source != null && __getOwnPropSymbols$
|
|
16603
|
-
for (var prop of __getOwnPropSymbols$
|
|
16604
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16637
|
+
if (source != null && __getOwnPropSymbols$_)
|
|
16638
|
+
for (var prop of __getOwnPropSymbols$_(source)) {
|
|
16639
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
|
|
16605
16640
|
target[prop] = source[prop];
|
|
16606
16641
|
}
|
|
16607
16642
|
return target;
|
|
@@ -16722,19 +16757,19 @@ class RateCardsAPI {
|
|
|
16722
16757
|
}
|
|
16723
16758
|
}
|
|
16724
16759
|
|
|
16725
|
-
var __defProp$
|
|
16726
|
-
var __getOwnPropSymbols$
|
|
16727
|
-
var __hasOwnProp$
|
|
16728
|
-
var __propIsEnum$
|
|
16729
|
-
var __defNormalProp$
|
|
16730
|
-
var __spreadValues$
|
|
16760
|
+
var __defProp$Q = Object.defineProperty;
|
|
16761
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
16762
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
16763
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
16764
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16765
|
+
var __spreadValues$Q = (a, b) => {
|
|
16731
16766
|
for (var prop in b || (b = {}))
|
|
16732
|
-
if (__hasOwnProp$
|
|
16733
|
-
__defNormalProp$
|
|
16734
|
-
if (__getOwnPropSymbols$
|
|
16735
|
-
for (var prop of __getOwnPropSymbols$
|
|
16736
|
-
if (__propIsEnum$
|
|
16737
|
-
__defNormalProp$
|
|
16767
|
+
if (__hasOwnProp$Z.call(b, prop))
|
|
16768
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
16769
|
+
if (__getOwnPropSymbols$Z)
|
|
16770
|
+
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
16771
|
+
if (__propIsEnum$Z.call(b, prop))
|
|
16772
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
16738
16773
|
}
|
|
16739
16774
|
return a;
|
|
16740
16775
|
};
|
|
@@ -16756,7 +16791,7 @@ class RatesAPI {
|
|
|
16756
16791
|
* method.
|
|
16757
16792
|
*/
|
|
16758
16793
|
this.estimate = (params) => {
|
|
16759
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16794
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$Q({}, params));
|
|
16760
16795
|
};
|
|
16761
16796
|
this.client = client;
|
|
16762
16797
|
}
|
|
@@ -16836,7 +16871,7 @@ class SalesOrdersAPI {
|
|
|
16836
16871
|
}
|
|
16837
16872
|
}
|
|
16838
16873
|
|
|
16839
|
-
var __async$
|
|
16874
|
+
var __async$15 = (__this, __arguments, generator) => {
|
|
16840
16875
|
return new Promise((resolve, reject) => {
|
|
16841
16876
|
var fulfilled = (value) => {
|
|
16842
16877
|
try {
|
|
@@ -16894,7 +16929,7 @@ class SellersAPI {
|
|
|
16894
16929
|
/**
|
|
16895
16930
|
* Deletes an API Key
|
|
16896
16931
|
*/
|
|
16897
|
-
this.deleteSellerApiKey = (_0) => __async$
|
|
16932
|
+
this.deleteSellerApiKey = (_0) => __async$15(this, [_0], function* ({
|
|
16898
16933
|
encryptedApiKey,
|
|
16899
16934
|
sellerId,
|
|
16900
16935
|
isSandbox
|
|
@@ -16940,19 +16975,19 @@ class SellersAPI {
|
|
|
16940
16975
|
}
|
|
16941
16976
|
}
|
|
16942
16977
|
|
|
16943
|
-
var __defProp$
|
|
16944
|
-
var __getOwnPropSymbols$
|
|
16945
|
-
var __hasOwnProp$
|
|
16946
|
-
var __propIsEnum$
|
|
16947
|
-
var __defNormalProp$
|
|
16948
|
-
var __spreadValues$
|
|
16978
|
+
var __defProp$P = Object.defineProperty;
|
|
16979
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
16980
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
16981
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
16982
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16983
|
+
var __spreadValues$P = (a, b) => {
|
|
16949
16984
|
for (var prop in b || (b = {}))
|
|
16950
|
-
if (__hasOwnProp$
|
|
16951
|
-
__defNormalProp$
|
|
16952
|
-
if (__getOwnPropSymbols$
|
|
16953
|
-
for (var prop of __getOwnPropSymbols$
|
|
16954
|
-
if (__propIsEnum$
|
|
16955
|
-
__defNormalProp$
|
|
16985
|
+
if (__hasOwnProp$Y.call(b, prop))
|
|
16986
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
16987
|
+
if (__getOwnPropSymbols$Y)
|
|
16988
|
+
for (var prop of __getOwnPropSymbols$Y(b)) {
|
|
16989
|
+
if (__propIsEnum$Y.call(b, prop))
|
|
16990
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
16956
16991
|
}
|
|
16957
16992
|
return a;
|
|
16958
16993
|
};
|
|
@@ -16964,7 +16999,7 @@ class ServicePointsAPI {
|
|
|
16964
16999
|
* Either an address, coordinates, or an address query
|
|
16965
17000
|
*/
|
|
16966
17001
|
this.list = (options) => {
|
|
16967
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
17002
|
+
return this.client.post("/v1/service_points/list", __spreadValues$P({}, options));
|
|
16968
17003
|
};
|
|
16969
17004
|
/**
|
|
16970
17005
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -16982,7 +17017,7 @@ class ServicePointsAPI {
|
|
|
16982
17017
|
}
|
|
16983
17018
|
}
|
|
16984
17019
|
|
|
16985
|
-
var __async$
|
|
17020
|
+
var __async$14 = (__this, __arguments, generator) => {
|
|
16986
17021
|
return new Promise((resolve, reject) => {
|
|
16987
17022
|
var fulfilled = (value) => {
|
|
16988
17023
|
try {
|
|
@@ -17031,7 +17066,7 @@ class ShipmentsAPI {
|
|
|
17031
17066
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
17032
17067
|
* items passed into this method.
|
|
17033
17068
|
*/
|
|
17034
|
-
this.create = (...shipments) => __async$
|
|
17069
|
+
this.create = (...shipments) => __async$14(this, null, function* () {
|
|
17035
17070
|
return this.client.post("/v1/shipments", {
|
|
17036
17071
|
shipments
|
|
17037
17072
|
});
|
|
@@ -34448,38 +34483,38 @@ class WebhooksAPI {
|
|
|
34448
34483
|
}
|
|
34449
34484
|
}
|
|
34450
34485
|
|
|
34451
|
-
var __defProp$
|
|
34452
|
-
var __defProps$
|
|
34453
|
-
var __getOwnPropDescs$
|
|
34454
|
-
var __getOwnPropSymbols$
|
|
34455
|
-
var __hasOwnProp$
|
|
34456
|
-
var __propIsEnum$
|
|
34457
|
-
var __defNormalProp$
|
|
34458
|
-
var __spreadValues$
|
|
34486
|
+
var __defProp$O = Object.defineProperty;
|
|
34487
|
+
var __defProps$L = Object.defineProperties;
|
|
34488
|
+
var __getOwnPropDescs$L = Object.getOwnPropertyDescriptors;
|
|
34489
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
34490
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
34491
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
34492
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34493
|
+
var __spreadValues$O = (a, b) => {
|
|
34459
34494
|
for (var prop in b || (b = {}))
|
|
34460
|
-
if (__hasOwnProp$
|
|
34461
|
-
__defNormalProp$
|
|
34462
|
-
if (__getOwnPropSymbols$
|
|
34463
|
-
for (var prop of __getOwnPropSymbols$
|
|
34464
|
-
if (__propIsEnum$
|
|
34465
|
-
__defNormalProp$
|
|
34495
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
34496
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
34497
|
+
if (__getOwnPropSymbols$X)
|
|
34498
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
34499
|
+
if (__propIsEnum$X.call(b, prop))
|
|
34500
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
34466
34501
|
}
|
|
34467
34502
|
return a;
|
|
34468
34503
|
};
|
|
34469
|
-
var __spreadProps$
|
|
34504
|
+
var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
|
|
34470
34505
|
var __objRest$s = (source, exclude) => {
|
|
34471
34506
|
var target = {};
|
|
34472
34507
|
for (var prop in source)
|
|
34473
|
-
if (__hasOwnProp$
|
|
34508
|
+
if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34474
34509
|
target[prop] = source[prop];
|
|
34475
|
-
if (source != null && __getOwnPropSymbols$
|
|
34476
|
-
for (var prop of __getOwnPropSymbols$
|
|
34477
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34510
|
+
if (source != null && __getOwnPropSymbols$X)
|
|
34511
|
+
for (var prop of __getOwnPropSymbols$X(source)) {
|
|
34512
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
|
|
34478
34513
|
target[prop] = source[prop];
|
|
34479
34514
|
}
|
|
34480
34515
|
return target;
|
|
34481
34516
|
};
|
|
34482
|
-
var __async$
|
|
34517
|
+
var __async$13 = (__this, __arguments, generator) => {
|
|
34483
34518
|
return new Promise((resolve, reject) => {
|
|
34484
34519
|
var fulfilled = (value) => {
|
|
34485
34520
|
try {
|
|
@@ -34502,7 +34537,7 @@ var __async$11 = (__this, __arguments, generator) => {
|
|
|
34502
34537
|
const logger$1 = E({
|
|
34503
34538
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34504
34539
|
name: "shipengine-api",
|
|
34505
|
-
serializers: __spreadProps$
|
|
34540
|
+
serializers: __spreadProps$L(__spreadValues$O({}, k), {
|
|
34506
34541
|
req: (req) => ({
|
|
34507
34542
|
headers: req.headers,
|
|
34508
34543
|
method: req.method,
|
|
@@ -34527,7 +34562,7 @@ class ShipEngineAPI {
|
|
|
34527
34562
|
this.getSandboxToken = getSandboxToken;
|
|
34528
34563
|
const client = axios.create({
|
|
34529
34564
|
baseURL,
|
|
34530
|
-
headers: __spreadProps$
|
|
34565
|
+
headers: __spreadProps$L(__spreadValues$O({}, headers), {
|
|
34531
34566
|
"Content-Type": "application/json"
|
|
34532
34567
|
}),
|
|
34533
34568
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34567,7 +34602,7 @@ class ShipEngineAPI {
|
|
|
34567
34602
|
});
|
|
34568
34603
|
client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
|
|
34569
34604
|
client.interceptors.request.use(
|
|
34570
|
-
(config) => __async$
|
|
34605
|
+
(config) => __async$13(this, null, function* () {
|
|
34571
34606
|
if (config.isSandbox) {
|
|
34572
34607
|
if (!this.sandboxToken) {
|
|
34573
34608
|
this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
|
|
@@ -34596,7 +34631,7 @@ class ShipEngineAPI {
|
|
|
34596
34631
|
}
|
|
34597
34632
|
return res;
|
|
34598
34633
|
},
|
|
34599
|
-
(err) => __async$
|
|
34634
|
+
(err) => __async$13(this, null, function* () {
|
|
34600
34635
|
var _a, _b, _c, _d, _e;
|
|
34601
34636
|
if (debug) {
|
|
34602
34637
|
logger$1.error(
|
|
@@ -34645,7 +34680,7 @@ class ShipEngineAPI {
|
|
|
34645
34680
|
* that token (also known as Seller ID)
|
|
34646
34681
|
*/
|
|
34647
34682
|
getTenant(isSandbox) {
|
|
34648
|
-
return __async$
|
|
34683
|
+
return __async$13(this, null, function* () {
|
|
34649
34684
|
var _a;
|
|
34650
34685
|
if (!isSandbox) {
|
|
34651
34686
|
return this.getTenantFromToken(this.token);
|
|
@@ -34964,25 +34999,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34964
34999
|
|
|
34965
35000
|
const onError = (_errors) => _default();
|
|
34966
35001
|
|
|
34967
|
-
var __defProp$
|
|
34968
|
-
var __defProps$
|
|
34969
|
-
var __getOwnPropDescs$
|
|
34970
|
-
var __getOwnPropSymbols$
|
|
34971
|
-
var __hasOwnProp$
|
|
34972
|
-
var __propIsEnum$
|
|
34973
|
-
var __defNormalProp$
|
|
34974
|
-
var __spreadValues$
|
|
35002
|
+
var __defProp$N = Object.defineProperty;
|
|
35003
|
+
var __defProps$K = Object.defineProperties;
|
|
35004
|
+
var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
|
|
35005
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
35006
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
35007
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
35008
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35009
|
+
var __spreadValues$N = (a, b) => {
|
|
34975
35010
|
for (var prop in b || (b = {}))
|
|
34976
|
-
if (__hasOwnProp$
|
|
34977
|
-
__defNormalProp$
|
|
34978
|
-
if (__getOwnPropSymbols$
|
|
34979
|
-
for (var prop of __getOwnPropSymbols$
|
|
34980
|
-
if (__propIsEnum$
|
|
34981
|
-
__defNormalProp$
|
|
35011
|
+
if (__hasOwnProp$W.call(b, prop))
|
|
35012
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
35013
|
+
if (__getOwnPropSymbols$W)
|
|
35014
|
+
for (var prop of __getOwnPropSymbols$W(b)) {
|
|
35015
|
+
if (__propIsEnum$W.call(b, prop))
|
|
35016
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
34982
35017
|
}
|
|
34983
35018
|
return a;
|
|
34984
35019
|
};
|
|
34985
|
-
var __spreadProps$
|
|
35020
|
+
var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
|
|
34986
35021
|
const streams = [];
|
|
34987
35022
|
if (process.env.NODE_ENV === "production") {
|
|
34988
35023
|
streams.push({
|
|
@@ -34991,7 +35026,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34991
35026
|
}
|
|
34992
35027
|
const logger = E({
|
|
34993
35028
|
name: "shipengine",
|
|
34994
|
-
serializers: __spreadProps$
|
|
35029
|
+
serializers: __spreadProps$K(__spreadValues$N({}, k), {
|
|
34995
35030
|
req: (req) => ({
|
|
34996
35031
|
headers: req.headers,
|
|
34997
35032
|
method: req.method,
|
|
@@ -35016,7 +35051,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
35016
35051
|
throw error;
|
|
35017
35052
|
});
|
|
35018
35053
|
|
|
35019
|
-
var __async$
|
|
35054
|
+
var __async$12 = (__this, __arguments, generator) => {
|
|
35020
35055
|
return new Promise((resolve, reject) => {
|
|
35021
35056
|
var fulfilled = (value) => {
|
|
35022
35057
|
try {
|
|
@@ -35039,7 +35074,7 @@ var __async$10 = (__this, __arguments, generator) => {
|
|
|
35039
35074
|
const useCreateAccountImage = () => {
|
|
35040
35075
|
const { client } = useShipEngine();
|
|
35041
35076
|
return useMutation({
|
|
35042
|
-
mutationFn: (data) => __async$
|
|
35077
|
+
mutationFn: (data) => __async$12(void 0, null, function* () {
|
|
35043
35078
|
const result = yield client.accountSettings.createImage(data);
|
|
35044
35079
|
return result.data;
|
|
35045
35080
|
}),
|
|
@@ -35048,7 +35083,7 @@ const useCreateAccountImage = () => {
|
|
|
35048
35083
|
});
|
|
35049
35084
|
};
|
|
35050
35085
|
|
|
35051
|
-
var __async
|
|
35086
|
+
var __async$11 = (__this, __arguments, generator) => {
|
|
35052
35087
|
return new Promise((resolve, reject) => {
|
|
35053
35088
|
var fulfilled = (value) => {
|
|
35054
35089
|
try {
|
|
@@ -35071,7 +35106,7 @@ var __async$$ = (__this, __arguments, generator) => {
|
|
|
35071
35106
|
const useDeleteAccountImage = () => {
|
|
35072
35107
|
const { client } = useShipEngine();
|
|
35073
35108
|
return useMutation({
|
|
35074
|
-
mutationFn: (labelImageId) => __async
|
|
35109
|
+
mutationFn: (labelImageId) => __async$11(void 0, null, function* () {
|
|
35075
35110
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
35076
35111
|
return result.data;
|
|
35077
35112
|
}),
|
|
@@ -35100,7 +35135,7 @@ const useGetAccountSettings = () => {
|
|
|
35100
35135
|
});
|
|
35101
35136
|
};
|
|
35102
35137
|
|
|
35103
|
-
var __async$
|
|
35138
|
+
var __async$10 = (__this, __arguments, generator) => {
|
|
35104
35139
|
return new Promise((resolve, reject) => {
|
|
35105
35140
|
var fulfilled = (value) => {
|
|
35106
35141
|
try {
|
|
@@ -35123,7 +35158,7 @@ var __async$_ = (__this, __arguments, generator) => {
|
|
|
35123
35158
|
const useUpdateAccountImage = () => {
|
|
35124
35159
|
const { client } = useShipEngine();
|
|
35125
35160
|
return useMutation({
|
|
35126
|
-
mutationFn: (data) => __async$
|
|
35161
|
+
mutationFn: (data) => __async$10(void 0, null, function* () {
|
|
35127
35162
|
const result = yield client.accountSettings.updateImage(data);
|
|
35128
35163
|
return result.data;
|
|
35129
35164
|
}),
|
|
@@ -35132,7 +35167,7 @@ const useUpdateAccountImage = () => {
|
|
|
35132
35167
|
});
|
|
35133
35168
|
};
|
|
35134
35169
|
|
|
35135
|
-
var __async
|
|
35170
|
+
var __async$$ = (__this, __arguments, generator) => {
|
|
35136
35171
|
return new Promise((resolve, reject) => {
|
|
35137
35172
|
var fulfilled = (value) => {
|
|
35138
35173
|
try {
|
|
@@ -35155,7 +35190,7 @@ var __async$Z = (__this, __arguments, generator) => {
|
|
|
35155
35190
|
const useUpdateAccountSettings = () => {
|
|
35156
35191
|
const { client } = useShipEngine();
|
|
35157
35192
|
return useMutation({
|
|
35158
|
-
mutationFn: (settings) => __async
|
|
35193
|
+
mutationFn: (settings) => __async$$(void 0, null, function* () {
|
|
35159
35194
|
const result = yield client.accountSettings.update(settings);
|
|
35160
35195
|
return result.data;
|
|
35161
35196
|
}),
|
|
@@ -35164,6 +35199,35 @@ const useUpdateAccountSettings = () => {
|
|
|
35164
35199
|
});
|
|
35165
35200
|
};
|
|
35166
35201
|
|
|
35202
|
+
var __defProp$M = Object.defineProperty;
|
|
35203
|
+
var __defProps$J = Object.defineProperties;
|
|
35204
|
+
var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
|
|
35205
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
35206
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
35207
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
35208
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35209
|
+
var __spreadValues$M = (a, b) => {
|
|
35210
|
+
for (var prop in b || (b = {}))
|
|
35211
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
35212
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
35213
|
+
if (__getOwnPropSymbols$V)
|
|
35214
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
35215
|
+
if (__propIsEnum$V.call(b, prop))
|
|
35216
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
35217
|
+
}
|
|
35218
|
+
return a;
|
|
35219
|
+
};
|
|
35220
|
+
var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
|
|
35221
|
+
const useListAccountAddons = (params) => {
|
|
35222
|
+
const { client } = useShipEngine();
|
|
35223
|
+
return useQuery(__spreadProps$J(__spreadValues$M({}, params), {
|
|
35224
|
+
onError,
|
|
35225
|
+
queryFn: () => client.accountAddons.list(),
|
|
35226
|
+
queryKey: ["useListAccountAddons"],
|
|
35227
|
+
select: (result) => result.data.addons
|
|
35228
|
+
}));
|
|
35229
|
+
};
|
|
35230
|
+
|
|
35167
35231
|
var __defProp$L = Object.defineProperty;
|
|
35168
35232
|
var __defProps$I = Object.defineProperties;
|
|
35169
35233
|
var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
|
|
@@ -35183,36 +35247,7 @@ var __spreadValues$L = (a, b) => {
|
|
|
35183
35247
|
return a;
|
|
35184
35248
|
};
|
|
35185
35249
|
var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
|
|
35186
|
-
|
|
35187
|
-
const { client } = useShipEngine();
|
|
35188
|
-
return useQuery(__spreadProps$I(__spreadValues$L({}, params), {
|
|
35189
|
-
onError,
|
|
35190
|
-
queryFn: () => client.accountAddons.list(),
|
|
35191
|
-
queryKey: ["useListAccountAddons"],
|
|
35192
|
-
select: (result) => result.data.addons
|
|
35193
|
-
}));
|
|
35194
|
-
};
|
|
35195
|
-
|
|
35196
|
-
var __defProp$K = Object.defineProperty;
|
|
35197
|
-
var __defProps$H = Object.defineProperties;
|
|
35198
|
-
var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
|
|
35199
|
-
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
35200
|
-
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
35201
|
-
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
35202
|
-
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35203
|
-
var __spreadValues$K = (a, b) => {
|
|
35204
|
-
for (var prop in b || (b = {}))
|
|
35205
|
-
if (__hasOwnProp$T.call(b, prop))
|
|
35206
|
-
__defNormalProp$K(a, prop, b[prop]);
|
|
35207
|
-
if (__getOwnPropSymbols$T)
|
|
35208
|
-
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
35209
|
-
if (__propIsEnum$T.call(b, prop))
|
|
35210
|
-
__defNormalProp$K(a, prop, b[prop]);
|
|
35211
|
-
}
|
|
35212
|
-
return a;
|
|
35213
|
-
};
|
|
35214
|
-
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
35215
|
-
var __async$Y = (__this, __arguments, generator) => {
|
|
35250
|
+
var __async$_ = (__this, __arguments, generator) => {
|
|
35216
35251
|
return new Promise((resolve, reject) => {
|
|
35217
35252
|
var fulfilled = (value) => {
|
|
35218
35253
|
try {
|
|
@@ -35234,8 +35269,8 @@ var __async$Y = (__this, __arguments, generator) => {
|
|
|
35234
35269
|
};
|
|
35235
35270
|
const useEnableAccountAddon = (params) => {
|
|
35236
35271
|
const { client } = useShipEngine();
|
|
35237
|
-
return useMutation(__spreadProps$
|
|
35238
|
-
mutationFn: (addonType) => __async$
|
|
35272
|
+
return useMutation(__spreadProps$I(__spreadValues$L({}, params), {
|
|
35273
|
+
mutationFn: (addonType) => __async$_(void 0, null, function* () {
|
|
35239
35274
|
const result = yield client.accountAddons.enable(addonType);
|
|
35240
35275
|
return result.data;
|
|
35241
35276
|
}),
|
|
@@ -35244,26 +35279,26 @@ const useEnableAccountAddon = (params) => {
|
|
|
35244
35279
|
}));
|
|
35245
35280
|
};
|
|
35246
35281
|
|
|
35247
|
-
var __defProp$
|
|
35248
|
-
var __defProps$
|
|
35249
|
-
var __getOwnPropDescs$
|
|
35250
|
-
var __getOwnPropSymbols$
|
|
35251
|
-
var __hasOwnProp$
|
|
35252
|
-
var __propIsEnum$
|
|
35253
|
-
var __defNormalProp$
|
|
35254
|
-
var __spreadValues$
|
|
35282
|
+
var __defProp$K = Object.defineProperty;
|
|
35283
|
+
var __defProps$H = Object.defineProperties;
|
|
35284
|
+
var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
|
|
35285
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
35286
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
35287
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
35288
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35289
|
+
var __spreadValues$K = (a, b) => {
|
|
35255
35290
|
for (var prop in b || (b = {}))
|
|
35256
|
-
if (__hasOwnProp$
|
|
35257
|
-
__defNormalProp$
|
|
35258
|
-
if (__getOwnPropSymbols$
|
|
35259
|
-
for (var prop of __getOwnPropSymbols$
|
|
35260
|
-
if (__propIsEnum$
|
|
35261
|
-
__defNormalProp$
|
|
35291
|
+
if (__hasOwnProp$T.call(b, prop))
|
|
35292
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
35293
|
+
if (__getOwnPropSymbols$T)
|
|
35294
|
+
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
35295
|
+
if (__propIsEnum$T.call(b, prop))
|
|
35296
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
35262
35297
|
}
|
|
35263
35298
|
return a;
|
|
35264
35299
|
};
|
|
35265
|
-
var __spreadProps$
|
|
35266
|
-
var __async$
|
|
35300
|
+
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
35301
|
+
var __async$Z = (__this, __arguments, generator) => {
|
|
35267
35302
|
return new Promise((resolve, reject) => {
|
|
35268
35303
|
var fulfilled = (value) => {
|
|
35269
35304
|
try {
|
|
@@ -35285,8 +35320,8 @@ var __async$X = (__this, __arguments, generator) => {
|
|
|
35285
35320
|
};
|
|
35286
35321
|
const useDisableAccountAddon = (params) => {
|
|
35287
35322
|
const { client } = useShipEngine();
|
|
35288
|
-
return useMutation(__spreadProps$
|
|
35289
|
-
mutationFn: (addonType) => __async$
|
|
35323
|
+
return useMutation(__spreadProps$H(__spreadValues$K({}, params), {
|
|
35324
|
+
mutationFn: (addonType) => __async$Z(void 0, null, function* () {
|
|
35290
35325
|
const result = yield client.accountAddons.disable(addonType);
|
|
35291
35326
|
return result.data;
|
|
35292
35327
|
}),
|
|
@@ -35295,28 +35330,28 @@ const useDisableAccountAddon = (params) => {
|
|
|
35295
35330
|
}));
|
|
35296
35331
|
};
|
|
35297
35332
|
|
|
35298
|
-
var __defProp$
|
|
35299
|
-
var __defProps$
|
|
35300
|
-
var __getOwnPropDescs$
|
|
35301
|
-
var __getOwnPropSymbols$
|
|
35302
|
-
var __hasOwnProp$
|
|
35303
|
-
var __propIsEnum$
|
|
35304
|
-
var __defNormalProp$
|
|
35305
|
-
var __spreadValues$
|
|
35333
|
+
var __defProp$J = Object.defineProperty;
|
|
35334
|
+
var __defProps$G = Object.defineProperties;
|
|
35335
|
+
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
35336
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
35337
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
35338
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
35339
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35340
|
+
var __spreadValues$J = (a, b) => {
|
|
35306
35341
|
for (var prop in b || (b = {}))
|
|
35307
|
-
if (__hasOwnProp$
|
|
35308
|
-
__defNormalProp$
|
|
35309
|
-
if (__getOwnPropSymbols$
|
|
35310
|
-
for (var prop of __getOwnPropSymbols$
|
|
35311
|
-
if (__propIsEnum$
|
|
35312
|
-
__defNormalProp$
|
|
35342
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
35343
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
35344
|
+
if (__getOwnPropSymbols$S)
|
|
35345
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
35346
|
+
if (__propIsEnum$S.call(b, prop))
|
|
35347
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
35313
35348
|
}
|
|
35314
35349
|
return a;
|
|
35315
35350
|
};
|
|
35316
|
-
var __spreadProps$
|
|
35351
|
+
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
35317
35352
|
const useListAccountFeatures = (params) => {
|
|
35318
35353
|
const { client } = useShipEngine();
|
|
35319
|
-
return useQuery(__spreadProps$
|
|
35354
|
+
return useQuery(__spreadProps$G(__spreadValues$J({}, params), {
|
|
35320
35355
|
onError,
|
|
35321
35356
|
queryFn: () => client.accountFeatures.list(),
|
|
35322
35357
|
queryKey: ["useListAccountFeatures"],
|
|
@@ -35324,7 +35359,7 @@ const useListAccountFeatures = (params) => {
|
|
|
35324
35359
|
}));
|
|
35325
35360
|
};
|
|
35326
35361
|
|
|
35327
|
-
var __async$
|
|
35362
|
+
var __async$Y = (__this, __arguments, generator) => {
|
|
35328
35363
|
return new Promise((resolve, reject) => {
|
|
35329
35364
|
var fulfilled = (value) => {
|
|
35330
35365
|
try {
|
|
@@ -35347,7 +35382,7 @@ var __async$W = (__this, __arguments, generator) => {
|
|
|
35347
35382
|
const useRequestAccountFeature = () => {
|
|
35348
35383
|
const { client } = useShipEngine();
|
|
35349
35384
|
return useMutation({
|
|
35350
|
-
mutationFn: (request) => __async$
|
|
35385
|
+
mutationFn: (request) => __async$Y(void 0, null, function* () {
|
|
35351
35386
|
const result = yield client.accountFeatures.request(request);
|
|
35352
35387
|
return result.data;
|
|
35353
35388
|
}),
|
|
@@ -35356,7 +35391,7 @@ const useRequestAccountFeature = () => {
|
|
|
35356
35391
|
});
|
|
35357
35392
|
};
|
|
35358
35393
|
|
|
35359
|
-
var __async$
|
|
35394
|
+
var __async$X = (__this, __arguments, generator) => {
|
|
35360
35395
|
return new Promise((resolve, reject) => {
|
|
35361
35396
|
var fulfilled = (value) => {
|
|
35362
35397
|
try {
|
|
@@ -35379,7 +35414,7 @@ var __async$V = (__this, __arguments, generator) => {
|
|
|
35379
35414
|
const useParseAddress = () => {
|
|
35380
35415
|
const { client } = useShipEngine();
|
|
35381
35416
|
return useMutation({
|
|
35382
|
-
mutationFn: (_0) => __async$
|
|
35417
|
+
mutationFn: (_0) => __async$X(void 0, [_0], function* ({ address, text }) {
|
|
35383
35418
|
const result = yield client.addresses.parse(text, address);
|
|
35384
35419
|
return result.data;
|
|
35385
35420
|
}),
|
|
@@ -35388,7 +35423,7 @@ const useParseAddress = () => {
|
|
|
35388
35423
|
});
|
|
35389
35424
|
};
|
|
35390
35425
|
|
|
35391
|
-
var __async$
|
|
35426
|
+
var __async$W = (__this, __arguments, generator) => {
|
|
35392
35427
|
return new Promise((resolve, reject) => {
|
|
35393
35428
|
var fulfilled = (value) => {
|
|
35394
35429
|
try {
|
|
@@ -35411,7 +35446,7 @@ var __async$U = (__this, __arguments, generator) => {
|
|
|
35411
35446
|
const useValidateAddresses = () => {
|
|
35412
35447
|
const { client } = useShipEngine();
|
|
35413
35448
|
return useMutation({
|
|
35414
|
-
mutationFn: (addresses) => __async$
|
|
35449
|
+
mutationFn: (addresses) => __async$W(void 0, null, function* () {
|
|
35415
35450
|
const result = yield client.addresses.validate(addresses);
|
|
35416
35451
|
return result.data;
|
|
35417
35452
|
}),
|
|
@@ -35420,26 +35455,26 @@ const useValidateAddresses = () => {
|
|
|
35420
35455
|
});
|
|
35421
35456
|
};
|
|
35422
35457
|
|
|
35423
|
-
var __defProp$
|
|
35424
|
-
var __defProps$
|
|
35425
|
-
var __getOwnPropDescs$
|
|
35426
|
-
var __getOwnPropSymbols$
|
|
35427
|
-
var __hasOwnProp$
|
|
35428
|
-
var __propIsEnum$
|
|
35429
|
-
var __defNormalProp$
|
|
35430
|
-
var __spreadValues$
|
|
35458
|
+
var __defProp$I = Object.defineProperty;
|
|
35459
|
+
var __defProps$F = Object.defineProperties;
|
|
35460
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
35461
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
35462
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
35463
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
35464
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35465
|
+
var __spreadValues$I = (a, b) => {
|
|
35431
35466
|
for (var prop in b || (b = {}))
|
|
35432
|
-
if (__hasOwnProp$
|
|
35433
|
-
__defNormalProp$
|
|
35434
|
-
if (__getOwnPropSymbols$
|
|
35435
|
-
for (var prop of __getOwnPropSymbols$
|
|
35436
|
-
if (__propIsEnum$
|
|
35437
|
-
__defNormalProp$
|
|
35467
|
+
if (__hasOwnProp$R.call(b, prop))
|
|
35468
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35469
|
+
if (__getOwnPropSymbols$R)
|
|
35470
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
35471
|
+
if (__propIsEnum$R.call(b, prop))
|
|
35472
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35438
35473
|
}
|
|
35439
35474
|
return a;
|
|
35440
35475
|
};
|
|
35441
|
-
var __spreadProps$
|
|
35442
|
-
var __async$
|
|
35476
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
35477
|
+
var __async$V = (__this, __arguments, generator) => {
|
|
35443
35478
|
return new Promise((resolve, reject) => {
|
|
35444
35479
|
var fulfilled = (value) => {
|
|
35445
35480
|
try {
|
|
@@ -35461,8 +35496,8 @@ var __async$T = (__this, __arguments, generator) => {
|
|
|
35461
35496
|
};
|
|
35462
35497
|
const useCreateAuctanePaySession = (params) => {
|
|
35463
35498
|
const { client } = useShipEngine();
|
|
35464
|
-
return useMutation(__spreadProps$
|
|
35465
|
-
mutationFn: (request) => __async$
|
|
35499
|
+
return useMutation(__spreadProps$F(__spreadValues$I({}, params), {
|
|
35500
|
+
mutationFn: (request) => __async$V(void 0, null, function* () {
|
|
35466
35501
|
const result = yield client.auctanePay.createSession(request);
|
|
35467
35502
|
return result.data;
|
|
35468
35503
|
}),
|
|
@@ -35471,6 +35506,36 @@ const useCreateAuctanePaySession = (params) => {
|
|
|
35471
35506
|
}));
|
|
35472
35507
|
};
|
|
35473
35508
|
|
|
35509
|
+
var __defProp$H = Object.defineProperty;
|
|
35510
|
+
var __defProps$E = Object.defineProperties;
|
|
35511
|
+
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
35512
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
35513
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
35514
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
35515
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35516
|
+
var __spreadValues$H = (a, b) => {
|
|
35517
|
+
for (var prop in b || (b = {}))
|
|
35518
|
+
if (__hasOwnProp$Q.call(b, prop))
|
|
35519
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
35520
|
+
if (__getOwnPropSymbols$Q)
|
|
35521
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
35522
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
35523
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
35524
|
+
}
|
|
35525
|
+
return a;
|
|
35526
|
+
};
|
|
35527
|
+
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
35528
|
+
const useGetAuctanePayConfig = (params) => {
|
|
35529
|
+
const { client } = useShipEngine();
|
|
35530
|
+
const queryParams = __spreadValues$H({}, params);
|
|
35531
|
+
return useQuery(__spreadProps$E(__spreadValues$H({}, queryParams), {
|
|
35532
|
+
onError,
|
|
35533
|
+
queryFn: () => client.auctanePay.getConfig(),
|
|
35534
|
+
queryKey: ["useGetAuctanePayConfig"],
|
|
35535
|
+
select: (result) => result.data
|
|
35536
|
+
}));
|
|
35537
|
+
};
|
|
35538
|
+
|
|
35474
35539
|
var __defProp$G = Object.defineProperty;
|
|
35475
35540
|
var __defProps$D = Object.defineProperties;
|
|
35476
35541
|
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
@@ -35490,37 +35555,7 @@ var __spreadValues$G = (a, b) => {
|
|
|
35490
35555
|
return a;
|
|
35491
35556
|
};
|
|
35492
35557
|
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
35493
|
-
|
|
35494
|
-
const { client } = useShipEngine();
|
|
35495
|
-
const queryParams = __spreadValues$G({}, params);
|
|
35496
|
-
return useQuery(__spreadProps$D(__spreadValues$G({}, queryParams), {
|
|
35497
|
-
onError,
|
|
35498
|
-
queryFn: () => client.auctanePay.getConfig(),
|
|
35499
|
-
queryKey: ["useGetAuctanePayConfig"],
|
|
35500
|
-
select: (result) => result.data
|
|
35501
|
-
}));
|
|
35502
|
-
};
|
|
35503
|
-
|
|
35504
|
-
var __defProp$F = Object.defineProperty;
|
|
35505
|
-
var __defProps$C = Object.defineProperties;
|
|
35506
|
-
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
35507
|
-
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
35508
|
-
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
35509
|
-
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
35510
|
-
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35511
|
-
var __spreadValues$F = (a, b) => {
|
|
35512
|
-
for (var prop in b || (b = {}))
|
|
35513
|
-
if (__hasOwnProp$O.call(b, prop))
|
|
35514
|
-
__defNormalProp$F(a, prop, b[prop]);
|
|
35515
|
-
if (__getOwnPropSymbols$O)
|
|
35516
|
-
for (var prop of __getOwnPropSymbols$O(b)) {
|
|
35517
|
-
if (__propIsEnum$O.call(b, prop))
|
|
35518
|
-
__defNormalProp$F(a, prop, b[prop]);
|
|
35519
|
-
}
|
|
35520
|
-
return a;
|
|
35521
|
-
};
|
|
35522
|
-
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
35523
|
-
var __async$S = (__this, __arguments, generator) => {
|
|
35558
|
+
var __async$U = (__this, __arguments, generator) => {
|
|
35524
35559
|
return new Promise((resolve, reject) => {
|
|
35525
35560
|
var fulfilled = (value) => {
|
|
35526
35561
|
try {
|
|
@@ -35542,8 +35577,8 @@ var __async$S = (__this, __arguments, generator) => {
|
|
|
35542
35577
|
};
|
|
35543
35578
|
const usePreviewTransaction = (params) => {
|
|
35544
35579
|
const { client } = useShipEngine();
|
|
35545
|
-
return useMutation(__spreadProps$
|
|
35546
|
-
mutationFn: (_0) => __async$
|
|
35580
|
+
return useMutation(__spreadProps$D(__spreadValues$G({}, params), {
|
|
35581
|
+
mutationFn: (_0) => __async$U(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
|
|
35547
35582
|
const request = {
|
|
35548
35583
|
amount,
|
|
35549
35584
|
transactionCategory
|
|
@@ -35556,6 +35591,36 @@ const usePreviewTransaction = (params) => {
|
|
|
35556
35591
|
}));
|
|
35557
35592
|
};
|
|
35558
35593
|
|
|
35594
|
+
var __defProp$F = Object.defineProperty;
|
|
35595
|
+
var __defProps$C = Object.defineProperties;
|
|
35596
|
+
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
35597
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
35598
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
35599
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
35600
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35601
|
+
var __spreadValues$F = (a, b) => {
|
|
35602
|
+
for (var prop in b || (b = {}))
|
|
35603
|
+
if (__hasOwnProp$O.call(b, prop))
|
|
35604
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
35605
|
+
if (__getOwnPropSymbols$O)
|
|
35606
|
+
for (var prop of __getOwnPropSymbols$O(b)) {
|
|
35607
|
+
if (__propIsEnum$O.call(b, prop))
|
|
35608
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
35609
|
+
}
|
|
35610
|
+
return a;
|
|
35611
|
+
};
|
|
35612
|
+
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
35613
|
+
const useGetPaymentMethods = (params) => {
|
|
35614
|
+
const { client } = useShipEngine();
|
|
35615
|
+
const queryParams = __spreadValues$F({}, params);
|
|
35616
|
+
return useQuery(__spreadProps$C(__spreadValues$F({}, queryParams), {
|
|
35617
|
+
onError,
|
|
35618
|
+
queryFn: () => client.auctanePay.getPaymentMethods(),
|
|
35619
|
+
queryKey: ["useGetPaymentMethods"],
|
|
35620
|
+
select: (result) => result.data
|
|
35621
|
+
}));
|
|
35622
|
+
};
|
|
35623
|
+
|
|
35559
35624
|
var __defProp$E = Object.defineProperty;
|
|
35560
35625
|
var __defProps$B = Object.defineProperties;
|
|
35561
35626
|
var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
|
|
@@ -35575,14 +35640,35 @@ var __spreadValues$E = (a, b) => {
|
|
|
35575
35640
|
return a;
|
|
35576
35641
|
};
|
|
35577
35642
|
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
35578
|
-
|
|
35643
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
35644
|
+
return new Promise((resolve, reject) => {
|
|
35645
|
+
var fulfilled = (value) => {
|
|
35646
|
+
try {
|
|
35647
|
+
step(generator.next(value));
|
|
35648
|
+
} catch (e) {
|
|
35649
|
+
reject(e);
|
|
35650
|
+
}
|
|
35651
|
+
};
|
|
35652
|
+
var rejected = (value) => {
|
|
35653
|
+
try {
|
|
35654
|
+
step(generator.throw(value));
|
|
35655
|
+
} catch (e) {
|
|
35656
|
+
reject(e);
|
|
35657
|
+
}
|
|
35658
|
+
};
|
|
35659
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35660
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35661
|
+
});
|
|
35662
|
+
};
|
|
35663
|
+
const useDeletePaymentMethod = (params) => {
|
|
35579
35664
|
const { client } = useShipEngine();
|
|
35580
|
-
|
|
35581
|
-
|
|
35582
|
-
|
|
35583
|
-
|
|
35584
|
-
|
|
35585
|
-
|
|
35665
|
+
return useMutation(__spreadProps$B(__spreadValues$E({}, params), {
|
|
35666
|
+
mutationFn: (paymentMethodId) => __async$T(void 0, null, function* () {
|
|
35667
|
+
const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
|
|
35668
|
+
return result.data;
|
|
35669
|
+
}),
|
|
35670
|
+
mutationKey: ["useDeletePaymentMethod"],
|
|
35671
|
+
onError
|
|
35586
35672
|
}));
|
|
35587
35673
|
};
|
|
35588
35674
|
|
|
@@ -35605,7 +35691,7 @@ var __spreadValues$D = (a, b) => {
|
|
|
35605
35691
|
return a;
|
|
35606
35692
|
};
|
|
35607
35693
|
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
35608
|
-
var __async$
|
|
35694
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
35609
35695
|
return new Promise((resolve, reject) => {
|
|
35610
35696
|
var fulfilled = (value) => {
|
|
35611
35697
|
try {
|
|
@@ -35625,14 +35711,14 @@ var __async$R = (__this, __arguments, generator) => {
|
|
|
35625
35711
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35626
35712
|
});
|
|
35627
35713
|
};
|
|
35628
|
-
const
|
|
35714
|
+
const useUpdatePaymentMethod = (params) => {
|
|
35629
35715
|
const { client } = useShipEngine();
|
|
35630
35716
|
return useMutation(__spreadProps$A(__spreadValues$D({}, params), {
|
|
35631
|
-
mutationFn: (
|
|
35632
|
-
const result = yield client.auctanePay.
|
|
35717
|
+
mutationFn: (_0) => __async$S(void 0, [_0], function* ({ paymentMethodId, payload }) {
|
|
35718
|
+
const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
|
|
35633
35719
|
return result.data;
|
|
35634
35720
|
}),
|
|
35635
|
-
mutationKey: ["
|
|
35721
|
+
mutationKey: ["useUpdatePaymentMethod"],
|
|
35636
35722
|
onError
|
|
35637
35723
|
}));
|
|
35638
35724
|
};
|
|
@@ -35656,7 +35742,7 @@ var __spreadValues$C = (a, b) => {
|
|
|
35656
35742
|
return a;
|
|
35657
35743
|
};
|
|
35658
35744
|
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
35659
|
-
var __async$
|
|
35745
|
+
var __async$R = (__this, __arguments, generator) => {
|
|
35660
35746
|
return new Promise((resolve, reject) => {
|
|
35661
35747
|
var fulfilled = (value) => {
|
|
35662
35748
|
try {
|
|
@@ -35676,14 +35762,14 @@ var __async$Q = (__this, __arguments, generator) => {
|
|
|
35676
35762
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35677
35763
|
});
|
|
35678
35764
|
};
|
|
35679
|
-
const
|
|
35765
|
+
const useIdentityVerification = (params) => {
|
|
35680
35766
|
const { client } = useShipEngine();
|
|
35681
35767
|
return useMutation(__spreadProps$z(__spreadValues$C({}, params), {
|
|
35682
|
-
mutationFn: (
|
|
35683
|
-
const result = yield client.auctanePay.
|
|
35768
|
+
mutationFn: () => __async$R(void 0, null, function* () {
|
|
35769
|
+
const result = yield client.auctanePay.identityVerification();
|
|
35684
35770
|
return result.data;
|
|
35685
35771
|
}),
|
|
35686
|
-
mutationKey: ["
|
|
35772
|
+
mutationKey: ["useIdentityVerification"],
|
|
35687
35773
|
onError
|
|
35688
35774
|
}));
|
|
35689
35775
|
};
|
|
@@ -35707,7 +35793,18 @@ var __spreadValues$B = (a, b) => {
|
|
|
35707
35793
|
return a;
|
|
35708
35794
|
};
|
|
35709
35795
|
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
35710
|
-
|
|
35796
|
+
const useGetPaymentAccount = (params) => {
|
|
35797
|
+
const { client } = useShipEngine();
|
|
35798
|
+
const queryParams = __spreadValues$B({}, params);
|
|
35799
|
+
return useQuery(__spreadProps$y(__spreadValues$B({}, queryParams), {
|
|
35800
|
+
onError,
|
|
35801
|
+
queryFn: () => client.auctanePay.getPaymentAccount(),
|
|
35802
|
+
queryKey: ["useGetPaymentAccount"],
|
|
35803
|
+
select: (result) => result.data
|
|
35804
|
+
}));
|
|
35805
|
+
};
|
|
35806
|
+
|
|
35807
|
+
var __async$Q = (__this, __arguments, generator) => {
|
|
35711
35808
|
return new Promise((resolve, reject) => {
|
|
35712
35809
|
var fulfilled = (value) => {
|
|
35713
35810
|
try {
|
|
@@ -35727,49 +35824,19 @@ var __async$P = (__this, __arguments, generator) => {
|
|
|
35727
35824
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35728
35825
|
});
|
|
35729
35826
|
};
|
|
35730
|
-
const
|
|
35827
|
+
const useAcceptCarrierTerms = (carrierId) => {
|
|
35731
35828
|
const { client } = useShipEngine();
|
|
35732
|
-
return useMutation(
|
|
35733
|
-
mutationFn: () => __async$
|
|
35734
|
-
const result = yield client.
|
|
35735
|
-
return result.data;
|
|
35829
|
+
return useMutation({
|
|
35830
|
+
mutationFn: (request) => __async$Q(void 0, null, function* () {
|
|
35831
|
+
const result = yield client.carriers.acceptTerms(carrierId, request);
|
|
35832
|
+
return result.data.acceptedTerms;
|
|
35736
35833
|
}),
|
|
35737
|
-
mutationKey: ["
|
|
35834
|
+
mutationKey: ["useAcceptCarrierTerms", carrierId],
|
|
35738
35835
|
onError
|
|
35739
|
-
})
|
|
35740
|
-
};
|
|
35741
|
-
|
|
35742
|
-
var __defProp$A = Object.defineProperty;
|
|
35743
|
-
var __defProps$x = Object.defineProperties;
|
|
35744
|
-
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
35745
|
-
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
35746
|
-
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
35747
|
-
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
35748
|
-
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35749
|
-
var __spreadValues$A = (a, b) => {
|
|
35750
|
-
for (var prop in b || (b = {}))
|
|
35751
|
-
if (__hasOwnProp$J.call(b, prop))
|
|
35752
|
-
__defNormalProp$A(a, prop, b[prop]);
|
|
35753
|
-
if (__getOwnPropSymbols$J)
|
|
35754
|
-
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
35755
|
-
if (__propIsEnum$J.call(b, prop))
|
|
35756
|
-
__defNormalProp$A(a, prop, b[prop]);
|
|
35757
|
-
}
|
|
35758
|
-
return a;
|
|
35759
|
-
};
|
|
35760
|
-
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
35761
|
-
const useGetPaymentAccount = (params) => {
|
|
35762
|
-
const { client } = useShipEngine();
|
|
35763
|
-
const queryParams = __spreadValues$A({}, params);
|
|
35764
|
-
return useQuery(__spreadProps$x(__spreadValues$A({}, queryParams), {
|
|
35765
|
-
onError,
|
|
35766
|
-
queryFn: () => client.auctanePay.getPaymentAccount(),
|
|
35767
|
-
queryKey: ["useGetPaymentAccount"],
|
|
35768
|
-
select: (result) => result.data
|
|
35769
|
-
}));
|
|
35836
|
+
});
|
|
35770
35837
|
};
|
|
35771
35838
|
|
|
35772
|
-
var __async$
|
|
35839
|
+
var __async$P = (__this, __arguments, generator) => {
|
|
35773
35840
|
return new Promise((resolve, reject) => {
|
|
35774
35841
|
var fulfilled = (value) => {
|
|
35775
35842
|
try {
|
|
@@ -35792,7 +35859,7 @@ var __async$O = (__this, __arguments, generator) => {
|
|
|
35792
35859
|
const useAddFunds = () => {
|
|
35793
35860
|
const { client } = useShipEngine();
|
|
35794
35861
|
return useMutation({
|
|
35795
|
-
mutationFn: (_0) => __async$
|
|
35862
|
+
mutationFn: (_0) => __async$P(void 0, [_0], function* ({ carrierId, funds }) {
|
|
35796
35863
|
const result = yield client.carriers.addFunds(carrierId, funds);
|
|
35797
35864
|
return result.data;
|
|
35798
35865
|
}),
|
|
@@ -35801,7 +35868,7 @@ const useAddFunds = () => {
|
|
|
35801
35868
|
});
|
|
35802
35869
|
};
|
|
35803
35870
|
|
|
35804
|
-
var __async$
|
|
35871
|
+
var __async$O = (__this, __arguments, generator) => {
|
|
35805
35872
|
return new Promise((resolve, reject) => {
|
|
35806
35873
|
var fulfilled = (value) => {
|
|
35807
35874
|
try {
|
|
@@ -35824,7 +35891,7 @@ var __async$N = (__this, __arguments, generator) => {
|
|
|
35824
35891
|
const useConnectCarrier = () => {
|
|
35825
35892
|
const { client } = useShipEngine();
|
|
35826
35893
|
return useMutation({
|
|
35827
|
-
mutationFn: (params) => __async$
|
|
35894
|
+
mutationFn: (params) => __async$O(void 0, null, function* () {
|
|
35828
35895
|
const result = yield client.carriers.connect(params);
|
|
35829
35896
|
return result.data;
|
|
35830
35897
|
}),
|
|
@@ -35933,41 +36000,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
35933
36000
|
});
|
|
35934
36001
|
};
|
|
35935
36002
|
|
|
35936
|
-
var __defProp$
|
|
35937
|
-
var __defProps$
|
|
35938
|
-
var __getOwnPropDescs$
|
|
35939
|
-
var __getOwnPropSymbols$
|
|
35940
|
-
var __hasOwnProp$
|
|
35941
|
-
var __propIsEnum$
|
|
35942
|
-
var __defNormalProp$
|
|
35943
|
-
var __spreadValues$
|
|
36003
|
+
var __defProp$A = Object.defineProperty;
|
|
36004
|
+
var __defProps$x = Object.defineProperties;
|
|
36005
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
36006
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
36007
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
36008
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
36009
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36010
|
+
var __spreadValues$A = (a, b) => {
|
|
35944
36011
|
for (var prop in b || (b = {}))
|
|
35945
|
-
if (__hasOwnProp$
|
|
35946
|
-
__defNormalProp$
|
|
35947
|
-
if (__getOwnPropSymbols$
|
|
35948
|
-
for (var prop of __getOwnPropSymbols$
|
|
35949
|
-
if (__propIsEnum$
|
|
35950
|
-
__defNormalProp$
|
|
36012
|
+
if (__hasOwnProp$J.call(b, prop))
|
|
36013
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
36014
|
+
if (__getOwnPropSymbols$J)
|
|
36015
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
36016
|
+
if (__propIsEnum$J.call(b, prop))
|
|
36017
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
35951
36018
|
}
|
|
35952
36019
|
return a;
|
|
35953
36020
|
};
|
|
35954
|
-
var __spreadProps$
|
|
36021
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
35955
36022
|
var __objRest$r = (source, exclude) => {
|
|
35956
36023
|
var target = {};
|
|
35957
36024
|
for (var prop in source)
|
|
35958
|
-
if (__hasOwnProp$
|
|
36025
|
+
if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35959
36026
|
target[prop] = source[prop];
|
|
35960
|
-
if (source != null && __getOwnPropSymbols$
|
|
35961
|
-
for (var prop of __getOwnPropSymbols$
|
|
35962
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36027
|
+
if (source != null && __getOwnPropSymbols$J)
|
|
36028
|
+
for (var prop of __getOwnPropSymbols$J(source)) {
|
|
36029
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
|
|
35963
36030
|
target[prop] = source[prop];
|
|
35964
36031
|
}
|
|
35965
36032
|
return target;
|
|
35966
36033
|
};
|
|
35967
36034
|
const useListCarriers = (params) => {
|
|
35968
36035
|
const { client } = useShipEngine();
|
|
35969
|
-
const _a = __spreadValues$
|
|
35970
|
-
return useQuery(__spreadProps$
|
|
36036
|
+
const _a = __spreadValues$A({}, params), { queryFnParams } = _a, rest = __objRest$r(_a, ["queryFnParams"]);
|
|
36037
|
+
return useQuery(__spreadProps$x(__spreadValues$A({}, rest), {
|
|
35971
36038
|
onError,
|
|
35972
36039
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
35973
36040
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -35975,22 +36042,22 @@ const useListCarriers = (params) => {
|
|
|
35975
36042
|
}));
|
|
35976
36043
|
};
|
|
35977
36044
|
|
|
35978
|
-
var __getOwnPropSymbols$
|
|
35979
|
-
var __hasOwnProp$
|
|
35980
|
-
var __propIsEnum$
|
|
36045
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
36046
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
36047
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
35981
36048
|
var __objRest$q = (source, exclude) => {
|
|
35982
36049
|
var target = {};
|
|
35983
36050
|
for (var prop in source)
|
|
35984
|
-
if (__hasOwnProp$
|
|
36051
|
+
if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35985
36052
|
target[prop] = source[prop];
|
|
35986
|
-
if (source != null && __getOwnPropSymbols$
|
|
35987
|
-
for (var prop of __getOwnPropSymbols$
|
|
35988
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36053
|
+
if (source != null && __getOwnPropSymbols$I)
|
|
36054
|
+
for (var prop of __getOwnPropSymbols$I(source)) {
|
|
36055
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
|
|
35989
36056
|
target[prop] = source[prop];
|
|
35990
36057
|
}
|
|
35991
36058
|
return target;
|
|
35992
36059
|
};
|
|
35993
|
-
var __async$
|
|
36060
|
+
var __async$N = (__this, __arguments, generator) => {
|
|
35994
36061
|
return new Promise((resolve, reject) => {
|
|
35995
36062
|
var fulfilled = (value) => {
|
|
35996
36063
|
try {
|
|
@@ -36014,7 +36081,7 @@ const useUpdateAutoFunding = () => {
|
|
|
36014
36081
|
const { client } = useShipEngine();
|
|
36015
36082
|
const queryClient = useQueryClient();
|
|
36016
36083
|
return useMutation({
|
|
36017
|
-
mutationFn: (_a) => __async$
|
|
36084
|
+
mutationFn: (_a) => __async$N(void 0, null, function* () {
|
|
36018
36085
|
var _b = _a, { carrierId } = _b, options = __objRest$q(_b, ["carrierId"]);
|
|
36019
36086
|
const result = yield client.carriers.updateAutoFunding(carrierId, options);
|
|
36020
36087
|
return result.data;
|
|
@@ -36044,7 +36111,7 @@ const useGetZonesByCarrier = (carrierId) => {
|
|
|
36044
36111
|
});
|
|
36045
36112
|
};
|
|
36046
36113
|
|
|
36047
|
-
var __async$
|
|
36114
|
+
var __async$M = (__this, __arguments, generator) => {
|
|
36048
36115
|
return new Promise((resolve, reject) => {
|
|
36049
36116
|
var fulfilled = (value) => {
|
|
36050
36117
|
try {
|
|
@@ -36067,7 +36134,7 @@ var __async$L = (__this, __arguments, generator) => {
|
|
|
36067
36134
|
const useDeleteCarrier = () => {
|
|
36068
36135
|
const { client } = useShipEngine();
|
|
36069
36136
|
return useMutation({
|
|
36070
|
-
mutationFn: (carrierId) => __async$
|
|
36137
|
+
mutationFn: (carrierId) => __async$M(void 0, null, function* () {
|
|
36071
36138
|
const result = yield client.carriers.delete(carrierId);
|
|
36072
36139
|
return result.data;
|
|
36073
36140
|
}),
|
|
@@ -36076,17 +36143,17 @@ const useDeleteCarrier = () => {
|
|
|
36076
36143
|
});
|
|
36077
36144
|
};
|
|
36078
36145
|
|
|
36079
|
-
var __getOwnPropSymbols$
|
|
36080
|
-
var __hasOwnProp$
|
|
36081
|
-
var __propIsEnum$
|
|
36146
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
36147
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
36148
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
36082
36149
|
var __objRest$p = (source, exclude) => {
|
|
36083
36150
|
var target = {};
|
|
36084
36151
|
for (var prop in source)
|
|
36085
|
-
if (__hasOwnProp$
|
|
36152
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36086
36153
|
target[prop] = source[prop];
|
|
36087
|
-
if (source != null && __getOwnPropSymbols$
|
|
36088
|
-
for (var prop of __getOwnPropSymbols$
|
|
36089
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36154
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
36155
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
36156
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
36090
36157
|
target[prop] = source[prop];
|
|
36091
36158
|
}
|
|
36092
36159
|
return target;
|
|
@@ -36103,17 +36170,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
36103
36170
|
});
|
|
36104
36171
|
};
|
|
36105
36172
|
|
|
36106
|
-
var __getOwnPropSymbols$
|
|
36107
|
-
var __hasOwnProp$
|
|
36108
|
-
var __propIsEnum$
|
|
36173
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
36174
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
36175
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
36109
36176
|
var __objRest$o = (source, exclude) => {
|
|
36110
36177
|
var target = {};
|
|
36111
36178
|
for (var prop in source)
|
|
36112
|
-
if (__hasOwnProp$
|
|
36179
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36113
36180
|
target[prop] = source[prop];
|
|
36114
|
-
if (source != null && __getOwnPropSymbols$
|
|
36115
|
-
for (var prop of __getOwnPropSymbols$
|
|
36116
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36181
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
36182
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
36183
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
36117
36184
|
target[prop] = source[prop];
|
|
36118
36185
|
}
|
|
36119
36186
|
return target;
|
|
@@ -36130,26 +36197,26 @@ const useListCarrierConnections = (_params) => {
|
|
|
36130
36197
|
});
|
|
36131
36198
|
};
|
|
36132
36199
|
|
|
36133
|
-
var __defProp$
|
|
36134
|
-
var __defProps$
|
|
36135
|
-
var __getOwnPropDescs$
|
|
36136
|
-
var __getOwnPropSymbols$
|
|
36137
|
-
var __hasOwnProp$
|
|
36138
|
-
var __propIsEnum$
|
|
36139
|
-
var __defNormalProp$
|
|
36140
|
-
var __spreadValues$
|
|
36200
|
+
var __defProp$z = Object.defineProperty;
|
|
36201
|
+
var __defProps$w = Object.defineProperties;
|
|
36202
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
36203
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
36204
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
36205
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
36206
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36207
|
+
var __spreadValues$z = (a, b) => {
|
|
36141
36208
|
for (var prop in b || (b = {}))
|
|
36142
|
-
if (__hasOwnProp$
|
|
36143
|
-
__defNormalProp$
|
|
36144
|
-
if (__getOwnPropSymbols$
|
|
36145
|
-
for (var prop of __getOwnPropSymbols$
|
|
36146
|
-
if (__propIsEnum$
|
|
36147
|
-
__defNormalProp$
|
|
36209
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
36210
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
36211
|
+
if (__getOwnPropSymbols$F)
|
|
36212
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
36213
|
+
if (__propIsEnum$F.call(b, prop))
|
|
36214
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
36148
36215
|
}
|
|
36149
36216
|
return a;
|
|
36150
36217
|
};
|
|
36151
|
-
var __spreadProps$
|
|
36152
|
-
var __async$
|
|
36218
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
36219
|
+
var __async$L = (__this, __arguments, generator) => {
|
|
36153
36220
|
return new Promise((resolve, reject) => {
|
|
36154
36221
|
var fulfilled = (value) => {
|
|
36155
36222
|
try {
|
|
@@ -36172,8 +36239,8 @@ var __async$K = (__this, __arguments, generator) => {
|
|
|
36172
36239
|
const useConnectCarrierAccount = () => {
|
|
36173
36240
|
const { client } = useShipEngine();
|
|
36174
36241
|
return useMutation({
|
|
36175
|
-
mutationFn: (_0) => __async$
|
|
36176
|
-
const formDataWithFlag = __spreadProps$
|
|
36242
|
+
mutationFn: (_0) => __async$L(void 0, [_0], function* ({ carrierName, formData }) {
|
|
36243
|
+
const formDataWithFlag = __spreadProps$w(__spreadValues$z({}, formData), { __skipDecamelize: true });
|
|
36177
36244
|
const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
|
|
36178
36245
|
return result.data;
|
|
36179
36246
|
}),
|
|
@@ -36193,33 +36260,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
36193
36260
|
});
|
|
36194
36261
|
};
|
|
36195
36262
|
|
|
36196
|
-
var __defProp$
|
|
36197
|
-
var __defProps$
|
|
36198
|
-
var __getOwnPropDescs$
|
|
36199
|
-
var __getOwnPropSymbols$
|
|
36200
|
-
var __hasOwnProp$
|
|
36201
|
-
var __propIsEnum$
|
|
36202
|
-
var __defNormalProp$
|
|
36203
|
-
var __spreadValues$
|
|
36263
|
+
var __defProp$y = Object.defineProperty;
|
|
36264
|
+
var __defProps$v = Object.defineProperties;
|
|
36265
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
36266
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
36267
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
36268
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
36269
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36270
|
+
var __spreadValues$y = (a, b) => {
|
|
36204
36271
|
for (var prop in b || (b = {}))
|
|
36205
|
-
if (__hasOwnProp$
|
|
36206
|
-
__defNormalProp$
|
|
36207
|
-
if (__getOwnPropSymbols$
|
|
36208
|
-
for (var prop of __getOwnPropSymbols$
|
|
36209
|
-
if (__propIsEnum$
|
|
36210
|
-
__defNormalProp$
|
|
36272
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
36273
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
36274
|
+
if (__getOwnPropSymbols$E)
|
|
36275
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
36276
|
+
if (__propIsEnum$E.call(b, prop))
|
|
36277
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
36211
36278
|
}
|
|
36212
36279
|
return a;
|
|
36213
36280
|
};
|
|
36214
|
-
var __spreadProps$
|
|
36281
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
36215
36282
|
var __objRest$n = (source, exclude) => {
|
|
36216
36283
|
var target = {};
|
|
36217
36284
|
for (var prop in source)
|
|
36218
|
-
if (__hasOwnProp$
|
|
36285
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36219
36286
|
target[prop] = source[prop];
|
|
36220
|
-
if (source != null && __getOwnPropSymbols$
|
|
36221
|
-
for (var prop of __getOwnPropSymbols$
|
|
36222
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36287
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
36288
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
36289
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
36223
36290
|
target[prop] = source[prop];
|
|
36224
36291
|
}
|
|
36225
36292
|
return target;
|
|
@@ -36232,7 +36299,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
36232
36299
|
]);
|
|
36233
36300
|
const { client } = useShipEngine();
|
|
36234
36301
|
const { carrierName, carrierId } = queryFnParams;
|
|
36235
|
-
return useQuery(__spreadProps$
|
|
36302
|
+
return useQuery(__spreadProps$v(__spreadValues$y({}, params), {
|
|
36236
36303
|
onError,
|
|
36237
36304
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
36238
36305
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -36240,26 +36307,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
36240
36307
|
}));
|
|
36241
36308
|
};
|
|
36242
36309
|
|
|
36243
|
-
var __defProp$
|
|
36244
|
-
var __defProps$
|
|
36245
|
-
var __getOwnPropDescs$
|
|
36246
|
-
var __getOwnPropSymbols$
|
|
36247
|
-
var __hasOwnProp$
|
|
36248
|
-
var __propIsEnum$
|
|
36249
|
-
var __defNormalProp$
|
|
36250
|
-
var __spreadValues$
|
|
36310
|
+
var __defProp$x = Object.defineProperty;
|
|
36311
|
+
var __defProps$u = Object.defineProperties;
|
|
36312
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
36313
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
36314
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
36315
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
36316
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36317
|
+
var __spreadValues$x = (a, b) => {
|
|
36251
36318
|
for (var prop in b || (b = {}))
|
|
36252
|
-
if (__hasOwnProp$
|
|
36253
|
-
__defNormalProp$
|
|
36254
|
-
if (__getOwnPropSymbols$
|
|
36255
|
-
for (var prop of __getOwnPropSymbols$
|
|
36256
|
-
if (__propIsEnum$
|
|
36257
|
-
__defNormalProp$
|
|
36319
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
36320
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
36321
|
+
if (__getOwnPropSymbols$D)
|
|
36322
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
36323
|
+
if (__propIsEnum$D.call(b, prop))
|
|
36324
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
36258
36325
|
}
|
|
36259
36326
|
return a;
|
|
36260
36327
|
};
|
|
36261
|
-
var __spreadProps$
|
|
36262
|
-
var __async$
|
|
36328
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
36329
|
+
var __async$K = (__this, __arguments, generator) => {
|
|
36263
36330
|
return new Promise((resolve, reject) => {
|
|
36264
36331
|
var fulfilled = (value) => {
|
|
36265
36332
|
try {
|
|
@@ -36281,8 +36348,8 @@ var __async$J = (__this, __arguments, generator) => {
|
|
|
36281
36348
|
};
|
|
36282
36349
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
36283
36350
|
const { client } = useShipEngine();
|
|
36284
|
-
return useMutation(__spreadProps$
|
|
36285
|
-
mutationFn: (_0) => __async$
|
|
36351
|
+
return useMutation(__spreadProps$u(__spreadValues$x({}, params), {
|
|
36352
|
+
mutationFn: (_0) => __async$K(void 0, [_0], function* ({
|
|
36286
36353
|
carrierName,
|
|
36287
36354
|
carrierId,
|
|
36288
36355
|
formData
|
|
@@ -36299,26 +36366,26 @@ const useUpdateConnectionsCarrierSettings = (params) => {
|
|
|
36299
36366
|
}));
|
|
36300
36367
|
};
|
|
36301
36368
|
|
|
36302
|
-
var __defProp$
|
|
36303
|
-
var __defProps$
|
|
36304
|
-
var __getOwnPropDescs$
|
|
36305
|
-
var __getOwnPropSymbols$
|
|
36306
|
-
var __hasOwnProp$
|
|
36307
|
-
var __propIsEnum$
|
|
36308
|
-
var __defNormalProp$
|
|
36309
|
-
var __spreadValues$
|
|
36369
|
+
var __defProp$w = Object.defineProperty;
|
|
36370
|
+
var __defProps$t = Object.defineProperties;
|
|
36371
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
36372
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
36373
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
36374
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
36375
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36376
|
+
var __spreadValues$w = (a, b) => {
|
|
36310
36377
|
for (var prop in b || (b = {}))
|
|
36311
|
-
if (__hasOwnProp$
|
|
36312
|
-
__defNormalProp$
|
|
36313
|
-
if (__getOwnPropSymbols$
|
|
36314
|
-
for (var prop of __getOwnPropSymbols$
|
|
36315
|
-
if (__propIsEnum$
|
|
36316
|
-
__defNormalProp$
|
|
36378
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
36379
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
36380
|
+
if (__getOwnPropSymbols$C)
|
|
36381
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
36382
|
+
if (__propIsEnum$C.call(b, prop))
|
|
36383
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
36317
36384
|
}
|
|
36318
36385
|
return a;
|
|
36319
36386
|
};
|
|
36320
|
-
var __spreadProps$
|
|
36321
|
-
var __async$
|
|
36387
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
36388
|
+
var __async$J = (__this, __arguments, generator) => {
|
|
36322
36389
|
return new Promise((resolve, reject) => {
|
|
36323
36390
|
var fulfilled = (value) => {
|
|
36324
36391
|
try {
|
|
@@ -36340,8 +36407,8 @@ var __async$I = (__this, __arguments, generator) => {
|
|
|
36340
36407
|
};
|
|
36341
36408
|
const useRequestStampsAccountUrls = (params) => {
|
|
36342
36409
|
const { client } = useShipEngine();
|
|
36343
|
-
return useMutation(__spreadProps$
|
|
36344
|
-
mutationFn: (request) => __async$
|
|
36410
|
+
return useMutation(__spreadProps$t(__spreadValues$w({}, params), {
|
|
36411
|
+
mutationFn: (request) => __async$J(void 0, null, function* () {
|
|
36345
36412
|
const result = yield client.connections.requestStampsAccountUrls(request);
|
|
36346
36413
|
return result.data;
|
|
36347
36414
|
}),
|
|
@@ -36360,6 +36427,38 @@ const useListCustomPackageTypes = () => {
|
|
|
36360
36427
|
});
|
|
36361
36428
|
};
|
|
36362
36429
|
|
|
36430
|
+
var __async$I = (__this, __arguments, generator) => {
|
|
36431
|
+
return new Promise((resolve, reject) => {
|
|
36432
|
+
var fulfilled = (value) => {
|
|
36433
|
+
try {
|
|
36434
|
+
step(generator.next(value));
|
|
36435
|
+
} catch (e) {
|
|
36436
|
+
reject(e);
|
|
36437
|
+
}
|
|
36438
|
+
};
|
|
36439
|
+
var rejected = (value) => {
|
|
36440
|
+
try {
|
|
36441
|
+
step(generator.throw(value));
|
|
36442
|
+
} catch (e) {
|
|
36443
|
+
reject(e);
|
|
36444
|
+
}
|
|
36445
|
+
};
|
|
36446
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
36447
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
36448
|
+
});
|
|
36449
|
+
};
|
|
36450
|
+
const useAcceptFundingSourceTerms = (fundingSourceId) => {
|
|
36451
|
+
const { client } = useShipEngine();
|
|
36452
|
+
return useMutation({
|
|
36453
|
+
mutationFn: (request) => __async$I(void 0, null, function* () {
|
|
36454
|
+
const result = yield client.fundingSources.acceptTerms(fundingSourceId, request);
|
|
36455
|
+
return result.data.acceptedTerms;
|
|
36456
|
+
}),
|
|
36457
|
+
mutationKey: ["useAcceptFundingSourceTerms", fundingSourceId],
|
|
36458
|
+
onError
|
|
36459
|
+
});
|
|
36460
|
+
};
|
|
36461
|
+
|
|
36363
36462
|
var __async$H = (__this, __arguments, generator) => {
|
|
36364
36463
|
return new Promise((resolve, reject) => {
|
|
36365
36464
|
var fulfilled = (value) => {
|
|
@@ -36424,6 +36523,36 @@ const useFundingSourcesAddFunds = () => {
|
|
|
36424
36523
|
});
|
|
36425
36524
|
};
|
|
36426
36525
|
|
|
36526
|
+
var __defProp$v = Object.defineProperty;
|
|
36527
|
+
var __defProps$s = Object.defineProperties;
|
|
36528
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
36529
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
36530
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
36531
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
36532
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36533
|
+
var __spreadValues$v = (a, b) => {
|
|
36534
|
+
for (var prop in b || (b = {}))
|
|
36535
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
36536
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
36537
|
+
if (__getOwnPropSymbols$B)
|
|
36538
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
36539
|
+
if (__propIsEnum$B.call(b, prop))
|
|
36540
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
36541
|
+
}
|
|
36542
|
+
return a;
|
|
36543
|
+
};
|
|
36544
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
36545
|
+
const useGetFundingSourceAcceptedTerms = (fundingSourceId, params) => {
|
|
36546
|
+
const { client } = useShipEngine();
|
|
36547
|
+
const queryParams = __spreadValues$v({}, params);
|
|
36548
|
+
return useQuery(__spreadProps$s(__spreadValues$v({}, queryParams), {
|
|
36549
|
+
onError,
|
|
36550
|
+
queryFn: () => client.fundingSources.acceptedTerms(fundingSourceId),
|
|
36551
|
+
queryKey: ["useGetFundingSourceAcceptedTerms", fundingSourceId],
|
|
36552
|
+
select: (result) => result.data.acceptedTerms
|
|
36553
|
+
}));
|
|
36554
|
+
};
|
|
36555
|
+
|
|
36427
36556
|
const useGetFundingSourceById = (fundingSourceId) => {
|
|
36428
36557
|
const { client } = useShipEngine();
|
|
36429
36558
|
return useQuery({
|
|
@@ -40284,4 +40413,4 @@ const alchemy = {
|
|
|
40284
40413
|
createElement
|
|
40285
40414
|
};
|
|
40286
40415
|
|
|
40287
|
-
export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountFeaturesAPI, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FeatureId, 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, useDisableAccountAddon, useDownloadRateCard, useEditShippingRule, useEnableAccountAddon, 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, useListAccountFeatures, 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, useRequestAccountFeature, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|
|
40416
|
+
export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountFeaturesAPI, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FeatureId, 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, useAcceptCarrierTerms, useAcceptFundingSourceTerms, 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, useDisableAccountAddon, useDownloadRateCard, useEditShippingRule, useEnableAccountAddon, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceAcceptedTerms, 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, useListAccountFeatures, 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, useRequestAccountFeature, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|