@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.js
CHANGED
|
@@ -4905,33 +4905,41 @@ var _getHolder = getHolder$2;
|
|
|
4905
4905
|
|
|
4906
4906
|
/** Used as references for various `Number` constants. */
|
|
4907
4907
|
|
|
4908
|
-
var
|
|
4908
|
+
var _isIndex;
|
|
4909
|
+
var hasRequired_isIndex;
|
|
4909
4910
|
|
|
4910
|
-
|
|
4911
|
-
|
|
4911
|
+
function require_isIndex () {
|
|
4912
|
+
if (hasRequired_isIndex) return _isIndex;
|
|
4913
|
+
hasRequired_isIndex = 1;
|
|
4914
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4912
4915
|
|
|
4913
|
-
/**
|
|
4914
|
-
|
|
4915
|
-
*
|
|
4916
|
-
* @private
|
|
4917
|
-
* @param {*} value The value to check.
|
|
4918
|
-
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4919
|
-
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4920
|
-
*/
|
|
4921
|
-
function isIndex$3(value, length) {
|
|
4922
|
-
var type = typeof value;
|
|
4923
|
-
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
4916
|
+
/** Used to detect unsigned integer values. */
|
|
4917
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
4924
4918
|
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
}
|
|
4919
|
+
/**
|
|
4920
|
+
* Checks if `value` is a valid array-like index.
|
|
4921
|
+
*
|
|
4922
|
+
* @private
|
|
4923
|
+
* @param {*} value The value to check.
|
|
4924
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4925
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4926
|
+
*/
|
|
4927
|
+
function isIndex(value, length) {
|
|
4928
|
+
var type = typeof value;
|
|
4929
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
4930
4930
|
|
|
4931
|
-
|
|
4931
|
+
return !!length &&
|
|
4932
|
+
(type == 'number' ||
|
|
4933
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4934
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
4935
|
+
}
|
|
4936
|
+
|
|
4937
|
+
_isIndex = isIndex;
|
|
4938
|
+
return _isIndex;
|
|
4939
|
+
}
|
|
4932
4940
|
|
|
4933
4941
|
var copyArray$2 = _copyArray,
|
|
4934
|
-
isIndex$2 =
|
|
4942
|
+
isIndex$2 = require_isIndex();
|
|
4935
4943
|
|
|
4936
4944
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4937
4945
|
var nativeMin$1 = Math.min;
|
|
@@ -6124,7 +6132,7 @@ var baseTimes = _baseTimes,
|
|
|
6124
6132
|
isArguments$2 = requireIsArguments(),
|
|
6125
6133
|
isArray$f = isArray_1,
|
|
6126
6134
|
isBuffer$4 = isBufferExports,
|
|
6127
|
-
isIndex$1 =
|
|
6135
|
+
isIndex$1 = require_isIndex(),
|
|
6128
6136
|
isTypedArray$1 = requireIsTypedArray();
|
|
6129
6137
|
|
|
6130
6138
|
/** Used for built-in method references. */
|
|
@@ -9455,7 +9463,7 @@ var _baseHasIn = baseHasIn$1;
|
|
|
9455
9463
|
var castPath = _castPath,
|
|
9456
9464
|
isArguments$1 = requireIsArguments(),
|
|
9457
9465
|
isArray$8 = isArray_1,
|
|
9458
|
-
isIndex =
|
|
9466
|
+
isIndex = require_isIndex(),
|
|
9459
9467
|
isLength = isLength_1,
|
|
9460
9468
|
toKey$3 = _toKey;
|
|
9461
9469
|
|
|
@@ -10345,7 +10353,7 @@ function require_isIterateeCall () {
|
|
|
10345
10353
|
hasRequired_isIterateeCall = 1;
|
|
10346
10354
|
var eq = requireEq(),
|
|
10347
10355
|
isArrayLike = isArrayLike_1,
|
|
10348
|
-
isIndex =
|
|
10356
|
+
isIndex = require_isIndex(),
|
|
10349
10357
|
isObject = isObject_1;
|
|
10350
10358
|
|
|
10351
10359
|
/**
|
|
@@ -10827,17 +10835,17 @@ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
|
|
|
10827
10835
|
return FeatureId2;
|
|
10828
10836
|
})(FeatureId || {});
|
|
10829
10837
|
|
|
10830
|
-
var __getOwnPropSymbols$
|
|
10831
|
-
var __hasOwnProp$
|
|
10832
|
-
var __propIsEnum$
|
|
10838
|
+
var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
|
|
10839
|
+
var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
|
|
10840
|
+
var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
|
|
10833
10841
|
var __objRest$x = (source, exclude) => {
|
|
10834
10842
|
var target = {};
|
|
10835
10843
|
for (var prop in source)
|
|
10836
|
-
if (__hasOwnProp$
|
|
10844
|
+
if (__hasOwnProp$13.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10837
10845
|
target[prop] = source[prop];
|
|
10838
|
-
if (source != null && __getOwnPropSymbols$
|
|
10839
|
-
for (var prop of __getOwnPropSymbols$
|
|
10840
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10846
|
+
if (source != null && __getOwnPropSymbols$13)
|
|
10847
|
+
for (var prop of __getOwnPropSymbols$13(source)) {
|
|
10848
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$13.call(source, prop))
|
|
10841
10849
|
target[prop] = source[prop];
|
|
10842
10850
|
}
|
|
10843
10851
|
return target;
|
|
@@ -10973,17 +10981,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10973
10981
|
RateCardStatus
|
|
10974
10982
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10975
10983
|
|
|
10976
|
-
var __getOwnPropSymbols$
|
|
10977
|
-
var __hasOwnProp$
|
|
10978
|
-
var __propIsEnum$
|
|
10984
|
+
var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
|
|
10985
|
+
var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
|
|
10986
|
+
var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
|
|
10979
10987
|
var __objRest$w = (source, exclude) => {
|
|
10980
10988
|
var target = {};
|
|
10981
10989
|
for (var prop in source)
|
|
10982
|
-
if (__hasOwnProp$
|
|
10990
|
+
if (__hasOwnProp$12.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10983
10991
|
target[prop] = source[prop];
|
|
10984
|
-
if (source != null && __getOwnPropSymbols$
|
|
10985
|
-
for (var prop of __getOwnPropSymbols$
|
|
10986
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10992
|
+
if (source != null && __getOwnPropSymbols$12)
|
|
10993
|
+
for (var prop of __getOwnPropSymbols$12(source)) {
|
|
10994
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$12.call(source, prop))
|
|
10987
10995
|
target[prop] = source[prop];
|
|
10988
10996
|
}
|
|
10989
10997
|
return target;
|
|
@@ -13884,7 +13892,7 @@ var ipaddr = {
|
|
|
13884
13892
|
}).call(commonjsGlobal);
|
|
13885
13893
|
} (ipaddr));
|
|
13886
13894
|
|
|
13887
|
-
var __async$
|
|
13895
|
+
var __async$1a = (__this, __arguments, generator) => {
|
|
13888
13896
|
return new Promise((resolve, reject) => {
|
|
13889
13897
|
var fulfilled = (value) => {
|
|
13890
13898
|
try {
|
|
@@ -13904,7 +13912,7 @@ var __async$18 = (__this, __arguments, generator) => {
|
|
|
13904
13912
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13905
13913
|
});
|
|
13906
13914
|
};
|
|
13907
|
-
const getEndUserIpAddress = () => __async$
|
|
13915
|
+
const getEndUserIpAddress = () => __async$1a(void 0, null, function* () {
|
|
13908
13916
|
try {
|
|
13909
13917
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13910
13918
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13965,38 +13973,38 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13965
13973
|
return obj;
|
|
13966
13974
|
};
|
|
13967
13975
|
|
|
13968
|
-
var __defProp$
|
|
13969
|
-
var __defProps$
|
|
13970
|
-
var __getOwnPropDescs$
|
|
13971
|
-
var __getOwnPropSymbols$
|
|
13972
|
-
var __hasOwnProp$
|
|
13973
|
-
var __propIsEnum$
|
|
13974
|
-
var __defNormalProp$
|
|
13975
|
-
var __spreadValues$
|
|
13976
|
+
var __defProp$S = Object.defineProperty;
|
|
13977
|
+
var __defProps$M = Object.defineProperties;
|
|
13978
|
+
var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
|
|
13979
|
+
var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
|
|
13980
|
+
var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
|
|
13981
|
+
var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
|
|
13982
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13983
|
+
var __spreadValues$S = (a, b) => {
|
|
13976
13984
|
for (var prop in b || (b = {}))
|
|
13977
|
-
if (__hasOwnProp$
|
|
13978
|
-
__defNormalProp$
|
|
13979
|
-
if (__getOwnPropSymbols$
|
|
13980
|
-
for (var prop of __getOwnPropSymbols$
|
|
13981
|
-
if (__propIsEnum$
|
|
13982
|
-
__defNormalProp$
|
|
13985
|
+
if (__hasOwnProp$11.call(b, prop))
|
|
13986
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
13987
|
+
if (__getOwnPropSymbols$11)
|
|
13988
|
+
for (var prop of __getOwnPropSymbols$11(b)) {
|
|
13989
|
+
if (__propIsEnum$11.call(b, prop))
|
|
13990
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
13983
13991
|
}
|
|
13984
13992
|
return a;
|
|
13985
13993
|
};
|
|
13986
|
-
var __spreadProps$
|
|
13994
|
+
var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
|
|
13987
13995
|
var __objRest$v = (source, exclude) => {
|
|
13988
13996
|
var target = {};
|
|
13989
13997
|
for (var prop in source)
|
|
13990
|
-
if (__hasOwnProp$
|
|
13998
|
+
if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13991
13999
|
target[prop] = source[prop];
|
|
13992
|
-
if (source != null && __getOwnPropSymbols$
|
|
13993
|
-
for (var prop of __getOwnPropSymbols$
|
|
13994
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
14000
|
+
if (source != null && __getOwnPropSymbols$11)
|
|
14001
|
+
for (var prop of __getOwnPropSymbols$11(source)) {
|
|
14002
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
|
|
13995
14003
|
target[prop] = source[prop];
|
|
13996
14004
|
}
|
|
13997
14005
|
return target;
|
|
13998
14006
|
};
|
|
13999
|
-
var __async$
|
|
14007
|
+
var __async$19 = (__this, __arguments, generator) => {
|
|
14000
14008
|
return new Promise((resolve, reject) => {
|
|
14001
14009
|
var fulfilled = (value) => {
|
|
14002
14010
|
try {
|
|
@@ -14036,12 +14044,12 @@ class CarriersAPI {
|
|
|
14036
14044
|
/**
|
|
14037
14045
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
14038
14046
|
*/
|
|
14039
|
-
this.connect = (_a) => __async$
|
|
14047
|
+
this.connect = (_a) => __async$19(this, null, function* () {
|
|
14040
14048
|
var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
|
|
14041
14049
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
14042
14050
|
if (!endUserIpAddress)
|
|
14043
14051
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
14044
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
14052
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$M(__spreadValues$S({}, connection), {
|
|
14045
14053
|
endUserIpAddress
|
|
14046
14054
|
}));
|
|
14047
14055
|
});
|
|
@@ -14121,26 +14129,36 @@ class CarriersAPI {
|
|
|
14121
14129
|
this.delete = (carrierId) => {
|
|
14122
14130
|
return this.client.delete(`/v1/carriers/${carrierId}`);
|
|
14123
14131
|
};
|
|
14132
|
+
/**
|
|
14133
|
+
* The `acceptTerms` method allows users to accept new versions of carrier terms.
|
|
14134
|
+
* Returns the status of each term.
|
|
14135
|
+
*/
|
|
14136
|
+
this.acceptTerms = (carrierId, request) => {
|
|
14137
|
+
return this.client.post(
|
|
14138
|
+
`/v1/carriers/${carrierId}/accepted_terms`,
|
|
14139
|
+
request
|
|
14140
|
+
);
|
|
14141
|
+
};
|
|
14124
14142
|
this.client = client;
|
|
14125
14143
|
}
|
|
14126
14144
|
}
|
|
14127
14145
|
|
|
14128
|
-
var __getOwnPropSymbols
|
|
14129
|
-
var __hasOwnProp
|
|
14130
|
-
var __propIsEnum
|
|
14146
|
+
var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
|
|
14147
|
+
var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
|
|
14148
|
+
var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
|
|
14131
14149
|
var __objRest$u = (source, exclude) => {
|
|
14132
14150
|
var target = {};
|
|
14133
14151
|
for (var prop in source)
|
|
14134
|
-
if (__hasOwnProp
|
|
14152
|
+
if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14135
14153
|
target[prop] = source[prop];
|
|
14136
|
-
if (source != null && __getOwnPropSymbols
|
|
14137
|
-
for (var prop of __getOwnPropSymbols
|
|
14138
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum
|
|
14154
|
+
if (source != null && __getOwnPropSymbols$10)
|
|
14155
|
+
for (var prop of __getOwnPropSymbols$10(source)) {
|
|
14156
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
|
|
14139
14157
|
target[prop] = source[prop];
|
|
14140
14158
|
}
|
|
14141
14159
|
return target;
|
|
14142
14160
|
};
|
|
14143
|
-
var __async$
|
|
14161
|
+
var __async$18 = (__this, __arguments, generator) => {
|
|
14144
14162
|
return new Promise((resolve, reject) => {
|
|
14145
14163
|
var fulfilled = (value) => {
|
|
14146
14164
|
try {
|
|
@@ -14182,7 +14200,7 @@ class ConnectionsAPI {
|
|
|
14182
14200
|
/**
|
|
14183
14201
|
* The `connectCarrier` method connects a carrier to account.
|
|
14184
14202
|
*/
|
|
14185
|
-
this.connectCarrier = (carrierName, formData) => __async$
|
|
14203
|
+
this.connectCarrier = (carrierName, formData) => __async$18(this, null, function* () {
|
|
14186
14204
|
return yield this.client.post(
|
|
14187
14205
|
`/v1/connections/carriers/${carrierName}`,
|
|
14188
14206
|
formData,
|
|
@@ -16350,23 +16368,23 @@ class CustomPackagesAPI {
|
|
|
16350
16368
|
}
|
|
16351
16369
|
}
|
|
16352
16370
|
|
|
16353
|
-
var __defProp$
|
|
16354
|
-
var __getOwnPropSymbols
|
|
16355
|
-
var __hasOwnProp
|
|
16356
|
-
var __propIsEnum
|
|
16357
|
-
var __defNormalProp$
|
|
16358
|
-
var __spreadValues$
|
|
16371
|
+
var __defProp$R = Object.defineProperty;
|
|
16372
|
+
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
16373
|
+
var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
|
|
16374
|
+
var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
|
|
16375
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16376
|
+
var __spreadValues$R = (a, b) => {
|
|
16359
16377
|
for (var prop in b || (b = {}))
|
|
16360
|
-
if (__hasOwnProp
|
|
16361
|
-
__defNormalProp$
|
|
16362
|
-
if (__getOwnPropSymbols
|
|
16363
|
-
for (var prop of __getOwnPropSymbols
|
|
16364
|
-
if (__propIsEnum
|
|
16365
|
-
__defNormalProp$
|
|
16378
|
+
if (__hasOwnProp$$.call(b, prop))
|
|
16379
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
16380
|
+
if (__getOwnPropSymbols$$)
|
|
16381
|
+
for (var prop of __getOwnPropSymbols$$(b)) {
|
|
16382
|
+
if (__propIsEnum$$.call(b, prop))
|
|
16383
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
16366
16384
|
}
|
|
16367
16385
|
return a;
|
|
16368
16386
|
};
|
|
16369
|
-
var __async$
|
|
16387
|
+
var __async$17 = (__this, __arguments, generator) => {
|
|
16370
16388
|
return new Promise((resolve, reject) => {
|
|
16371
16389
|
var fulfilled = (value) => {
|
|
16372
16390
|
try {
|
|
@@ -16405,12 +16423,12 @@ class FundingSourcesAPI {
|
|
|
16405
16423
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16406
16424
|
* payment information to be collected from the user.
|
|
16407
16425
|
*/
|
|
16408
|
-
this.create = (createFundingSource) => __async$
|
|
16426
|
+
this.create = (createFundingSource) => __async$17(this, null, function* () {
|
|
16409
16427
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16410
16428
|
if (!endUserIpAddress) {
|
|
16411
16429
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16412
16430
|
}
|
|
16413
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16431
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$R({
|
|
16414
16432
|
endUserIpAddress
|
|
16415
16433
|
}, createFundingSource));
|
|
16416
16434
|
});
|
|
@@ -16419,7 +16437,7 @@ class FundingSourcesAPI {
|
|
|
16419
16437
|
* user to update the billing address or payment information associated with the
|
|
16420
16438
|
* funding source.
|
|
16421
16439
|
*/
|
|
16422
|
-
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$
|
|
16440
|
+
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$17(this, null, function* () {
|
|
16423
16441
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16424
16442
|
if (!endUserIpAddress) {
|
|
16425
16443
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16429,7 +16447,7 @@ class FundingSourcesAPI {
|
|
|
16429
16447
|
{
|
|
16430
16448
|
billingInfo,
|
|
16431
16449
|
endUserIpAddress,
|
|
16432
|
-
paymentMethod: __spreadValues$
|
|
16450
|
+
paymentMethod: __spreadValues$R({
|
|
16433
16451
|
creditCardInfo
|
|
16434
16452
|
}, auctanePayInfo)
|
|
16435
16453
|
}
|
|
@@ -16439,19 +16457,19 @@ class FundingSourcesAPI {
|
|
|
16439
16457
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16440
16458
|
* it with a given funding source.
|
|
16441
16459
|
*/
|
|
16442
|
-
this.registerCarrier = (carrier) => __async$
|
|
16460
|
+
this.registerCarrier = (carrier) => __async$17(this, null, function* () {
|
|
16443
16461
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16444
16462
|
if (!endUserIpAddress) {
|
|
16445
16463
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16446
16464
|
}
|
|
16447
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16465
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$R({
|
|
16448
16466
|
endUserIpAddress
|
|
16449
16467
|
}, carrier));
|
|
16450
16468
|
});
|
|
16451
16469
|
/**
|
|
16452
16470
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16453
16471
|
*/
|
|
16454
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16472
|
+
this.addFunds = (amount, fundingSourceId) => __async$17(this, null, function* () {
|
|
16455
16473
|
return yield this.client.put(
|
|
16456
16474
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16457
16475
|
amount
|
|
@@ -16461,7 +16479,7 @@ class FundingSourcesAPI {
|
|
|
16461
16479
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16462
16480
|
* and attaching carriers
|
|
16463
16481
|
*/
|
|
16464
|
-
this.metadata = () => __async$
|
|
16482
|
+
this.metadata = () => __async$17(this, null, function* () {
|
|
16465
16483
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16466
16484
|
});
|
|
16467
16485
|
/**
|
|
@@ -16486,6 +16504,23 @@ class FundingSourcesAPI {
|
|
|
16486
16504
|
"/v1/insurance/funding_source/accepted_terms"
|
|
16487
16505
|
);
|
|
16488
16506
|
};
|
|
16507
|
+
/**
|
|
16508
|
+
* The `acceptedTerms` method retrieves all accepted terms for a specific funding source.
|
|
16509
|
+
*/
|
|
16510
|
+
this.acceptedTerms = (fundingSourceId) => {
|
|
16511
|
+
return this.client.get(
|
|
16512
|
+
`/v1/funding_sources/${fundingSourceId}/accepted_terms`
|
|
16513
|
+
);
|
|
16514
|
+
};
|
|
16515
|
+
/**
|
|
16516
|
+
* The`acceptTerms` method allows users to accept new versions of funding source terms.
|
|
16517
|
+
*/
|
|
16518
|
+
this.acceptTerms = (fundingSourceId, request) => {
|
|
16519
|
+
return this.client.post(
|
|
16520
|
+
`/v1/funding_sources/${fundingSourceId}/accepted_terms`,
|
|
16521
|
+
request
|
|
16522
|
+
);
|
|
16523
|
+
};
|
|
16489
16524
|
this.client = client;
|
|
16490
16525
|
}
|
|
16491
16526
|
}
|
|
@@ -16513,7 +16548,7 @@ class InsuranceAPI {
|
|
|
16513
16548
|
}
|
|
16514
16549
|
}
|
|
16515
16550
|
|
|
16516
|
-
var __async$
|
|
16551
|
+
var __async$16 = (__this, __arguments, generator) => {
|
|
16517
16552
|
return new Promise((resolve, reject) => {
|
|
16518
16553
|
var fulfilled = (value) => {
|
|
16519
16554
|
try {
|
|
@@ -16545,13 +16580,13 @@ class InvoiceAddressAPI {
|
|
|
16545
16580
|
/**
|
|
16546
16581
|
* The `create` method creates a new invoice address for a given user.
|
|
16547
16582
|
*/
|
|
16548
|
-
this.create = (invoiceAddress) => __async$
|
|
16583
|
+
this.create = (invoiceAddress) => __async$16(this, null, function* () {
|
|
16549
16584
|
return yield this.client.post("/v1/invoice_address", invoiceAddress);
|
|
16550
16585
|
});
|
|
16551
16586
|
/**
|
|
16552
16587
|
* The `update` method updates a invoice address for a given user.
|
|
16553
16588
|
*/
|
|
16554
|
-
this.update = (invoiceAddress) => __async$
|
|
16589
|
+
this.update = (invoiceAddress) => __async$16(this, null, function* () {
|
|
16555
16590
|
return yield this.client.put("/v1/invoice_address", invoiceAddress);
|
|
16556
16591
|
});
|
|
16557
16592
|
this.client = client;
|
|
@@ -16613,17 +16648,17 @@ class LabelsAPI {
|
|
|
16613
16648
|
}
|
|
16614
16649
|
}
|
|
16615
16650
|
|
|
16616
|
-
var __getOwnPropSymbols$
|
|
16617
|
-
var __hasOwnProp$
|
|
16618
|
-
var __propIsEnum$
|
|
16651
|
+
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
16652
|
+
var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
|
|
16653
|
+
var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
|
|
16619
16654
|
var __objRest$t = (source, exclude) => {
|
|
16620
16655
|
var target = {};
|
|
16621
16656
|
for (var prop in source)
|
|
16622
|
-
if (__hasOwnProp$
|
|
16657
|
+
if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16623
16658
|
target[prop] = source[prop];
|
|
16624
|
-
if (source != null && __getOwnPropSymbols$
|
|
16625
|
-
for (var prop of __getOwnPropSymbols$
|
|
16626
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16659
|
+
if (source != null && __getOwnPropSymbols$_)
|
|
16660
|
+
for (var prop of __getOwnPropSymbols$_(source)) {
|
|
16661
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
|
|
16627
16662
|
target[prop] = source[prop];
|
|
16628
16663
|
}
|
|
16629
16664
|
return target;
|
|
@@ -16744,19 +16779,19 @@ class RateCardsAPI {
|
|
|
16744
16779
|
}
|
|
16745
16780
|
}
|
|
16746
16781
|
|
|
16747
|
-
var __defProp$
|
|
16748
|
-
var __getOwnPropSymbols$
|
|
16749
|
-
var __hasOwnProp$
|
|
16750
|
-
var __propIsEnum$
|
|
16751
|
-
var __defNormalProp$
|
|
16752
|
-
var __spreadValues$
|
|
16782
|
+
var __defProp$Q = Object.defineProperty;
|
|
16783
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
16784
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
16785
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
16786
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16787
|
+
var __spreadValues$Q = (a, b) => {
|
|
16753
16788
|
for (var prop in b || (b = {}))
|
|
16754
|
-
if (__hasOwnProp$
|
|
16755
|
-
__defNormalProp$
|
|
16756
|
-
if (__getOwnPropSymbols$
|
|
16757
|
-
for (var prop of __getOwnPropSymbols$
|
|
16758
|
-
if (__propIsEnum$
|
|
16759
|
-
__defNormalProp$
|
|
16789
|
+
if (__hasOwnProp$Z.call(b, prop))
|
|
16790
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
16791
|
+
if (__getOwnPropSymbols$Z)
|
|
16792
|
+
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
16793
|
+
if (__propIsEnum$Z.call(b, prop))
|
|
16794
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
16760
16795
|
}
|
|
16761
16796
|
return a;
|
|
16762
16797
|
};
|
|
@@ -16778,7 +16813,7 @@ class RatesAPI {
|
|
|
16778
16813
|
* method.
|
|
16779
16814
|
*/
|
|
16780
16815
|
this.estimate = (params) => {
|
|
16781
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16816
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$Q({}, params));
|
|
16782
16817
|
};
|
|
16783
16818
|
this.client = client;
|
|
16784
16819
|
}
|
|
@@ -16858,7 +16893,7 @@ class SalesOrdersAPI {
|
|
|
16858
16893
|
}
|
|
16859
16894
|
}
|
|
16860
16895
|
|
|
16861
|
-
var __async$
|
|
16896
|
+
var __async$15 = (__this, __arguments, generator) => {
|
|
16862
16897
|
return new Promise((resolve, reject) => {
|
|
16863
16898
|
var fulfilled = (value) => {
|
|
16864
16899
|
try {
|
|
@@ -16916,7 +16951,7 @@ class SellersAPI {
|
|
|
16916
16951
|
/**
|
|
16917
16952
|
* Deletes an API Key
|
|
16918
16953
|
*/
|
|
16919
|
-
this.deleteSellerApiKey = (_0) => __async$
|
|
16954
|
+
this.deleteSellerApiKey = (_0) => __async$15(this, [_0], function* ({
|
|
16920
16955
|
encryptedApiKey,
|
|
16921
16956
|
sellerId,
|
|
16922
16957
|
isSandbox
|
|
@@ -16962,19 +16997,19 @@ class SellersAPI {
|
|
|
16962
16997
|
}
|
|
16963
16998
|
}
|
|
16964
16999
|
|
|
16965
|
-
var __defProp$
|
|
16966
|
-
var __getOwnPropSymbols$
|
|
16967
|
-
var __hasOwnProp$
|
|
16968
|
-
var __propIsEnum$
|
|
16969
|
-
var __defNormalProp$
|
|
16970
|
-
var __spreadValues$
|
|
17000
|
+
var __defProp$P = Object.defineProperty;
|
|
17001
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
17002
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
17003
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
17004
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
17005
|
+
var __spreadValues$P = (a, b) => {
|
|
16971
17006
|
for (var prop in b || (b = {}))
|
|
16972
|
-
if (__hasOwnProp$
|
|
16973
|
-
__defNormalProp$
|
|
16974
|
-
if (__getOwnPropSymbols$
|
|
16975
|
-
for (var prop of __getOwnPropSymbols$
|
|
16976
|
-
if (__propIsEnum$
|
|
16977
|
-
__defNormalProp$
|
|
17007
|
+
if (__hasOwnProp$Y.call(b, prop))
|
|
17008
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
17009
|
+
if (__getOwnPropSymbols$Y)
|
|
17010
|
+
for (var prop of __getOwnPropSymbols$Y(b)) {
|
|
17011
|
+
if (__propIsEnum$Y.call(b, prop))
|
|
17012
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
16978
17013
|
}
|
|
16979
17014
|
return a;
|
|
16980
17015
|
};
|
|
@@ -16986,7 +17021,7 @@ class ServicePointsAPI {
|
|
|
16986
17021
|
* Either an address, coordinates, or an address query
|
|
16987
17022
|
*/
|
|
16988
17023
|
this.list = (options) => {
|
|
16989
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
17024
|
+
return this.client.post("/v1/service_points/list", __spreadValues$P({}, options));
|
|
16990
17025
|
};
|
|
16991
17026
|
/**
|
|
16992
17027
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -17004,7 +17039,7 @@ class ServicePointsAPI {
|
|
|
17004
17039
|
}
|
|
17005
17040
|
}
|
|
17006
17041
|
|
|
17007
|
-
var __async$
|
|
17042
|
+
var __async$14 = (__this, __arguments, generator) => {
|
|
17008
17043
|
return new Promise((resolve, reject) => {
|
|
17009
17044
|
var fulfilled = (value) => {
|
|
17010
17045
|
try {
|
|
@@ -17053,7 +17088,7 @@ class ShipmentsAPI {
|
|
|
17053
17088
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
17054
17089
|
* items passed into this method.
|
|
17055
17090
|
*/
|
|
17056
|
-
this.create = (...shipments) => __async$
|
|
17091
|
+
this.create = (...shipments) => __async$14(this, null, function* () {
|
|
17057
17092
|
return this.client.post("/v1/shipments", {
|
|
17058
17093
|
shipments
|
|
17059
17094
|
});
|
|
@@ -34470,38 +34505,38 @@ class WebhooksAPI {
|
|
|
34470
34505
|
}
|
|
34471
34506
|
}
|
|
34472
34507
|
|
|
34473
|
-
var __defProp$
|
|
34474
|
-
var __defProps$
|
|
34475
|
-
var __getOwnPropDescs$
|
|
34476
|
-
var __getOwnPropSymbols$
|
|
34477
|
-
var __hasOwnProp$
|
|
34478
|
-
var __propIsEnum$
|
|
34479
|
-
var __defNormalProp$
|
|
34480
|
-
var __spreadValues$
|
|
34508
|
+
var __defProp$O = Object.defineProperty;
|
|
34509
|
+
var __defProps$L = Object.defineProperties;
|
|
34510
|
+
var __getOwnPropDescs$L = Object.getOwnPropertyDescriptors;
|
|
34511
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
34512
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
34513
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
34514
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34515
|
+
var __spreadValues$O = (a, b) => {
|
|
34481
34516
|
for (var prop in b || (b = {}))
|
|
34482
|
-
if (__hasOwnProp$
|
|
34483
|
-
__defNormalProp$
|
|
34484
|
-
if (__getOwnPropSymbols$
|
|
34485
|
-
for (var prop of __getOwnPropSymbols$
|
|
34486
|
-
if (__propIsEnum$
|
|
34487
|
-
__defNormalProp$
|
|
34517
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
34518
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
34519
|
+
if (__getOwnPropSymbols$X)
|
|
34520
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
34521
|
+
if (__propIsEnum$X.call(b, prop))
|
|
34522
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
34488
34523
|
}
|
|
34489
34524
|
return a;
|
|
34490
34525
|
};
|
|
34491
|
-
var __spreadProps$
|
|
34526
|
+
var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
|
|
34492
34527
|
var __objRest$s = (source, exclude) => {
|
|
34493
34528
|
var target = {};
|
|
34494
34529
|
for (var prop in source)
|
|
34495
|
-
if (__hasOwnProp$
|
|
34530
|
+
if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34496
34531
|
target[prop] = source[prop];
|
|
34497
|
-
if (source != null && __getOwnPropSymbols$
|
|
34498
|
-
for (var prop of __getOwnPropSymbols$
|
|
34499
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34532
|
+
if (source != null && __getOwnPropSymbols$X)
|
|
34533
|
+
for (var prop of __getOwnPropSymbols$X(source)) {
|
|
34534
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
|
|
34500
34535
|
target[prop] = source[prop];
|
|
34501
34536
|
}
|
|
34502
34537
|
return target;
|
|
34503
34538
|
};
|
|
34504
|
-
var __async$
|
|
34539
|
+
var __async$13 = (__this, __arguments, generator) => {
|
|
34505
34540
|
return new Promise((resolve, reject) => {
|
|
34506
34541
|
var fulfilled = (value) => {
|
|
34507
34542
|
try {
|
|
@@ -34524,7 +34559,7 @@ var __async$11 = (__this, __arguments, generator) => {
|
|
|
34524
34559
|
const logger$1 = E({
|
|
34525
34560
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34526
34561
|
name: "shipengine-api",
|
|
34527
|
-
serializers: __spreadProps$
|
|
34562
|
+
serializers: __spreadProps$L(__spreadValues$O({}, k), {
|
|
34528
34563
|
req: (req) => ({
|
|
34529
34564
|
headers: req.headers,
|
|
34530
34565
|
method: req.method,
|
|
@@ -34549,7 +34584,7 @@ class ShipEngineAPI {
|
|
|
34549
34584
|
this.getSandboxToken = getSandboxToken;
|
|
34550
34585
|
const client = axios.create({
|
|
34551
34586
|
baseURL,
|
|
34552
|
-
headers: __spreadProps$
|
|
34587
|
+
headers: __spreadProps$L(__spreadValues$O({}, headers), {
|
|
34553
34588
|
"Content-Type": "application/json"
|
|
34554
34589
|
}),
|
|
34555
34590
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34589,7 +34624,7 @@ class ShipEngineAPI {
|
|
|
34589
34624
|
});
|
|
34590
34625
|
client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
|
|
34591
34626
|
client.interceptors.request.use(
|
|
34592
|
-
(config) => __async$
|
|
34627
|
+
(config) => __async$13(this, null, function* () {
|
|
34593
34628
|
if (config.isSandbox) {
|
|
34594
34629
|
if (!this.sandboxToken) {
|
|
34595
34630
|
this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
|
|
@@ -34618,7 +34653,7 @@ class ShipEngineAPI {
|
|
|
34618
34653
|
}
|
|
34619
34654
|
return res;
|
|
34620
34655
|
},
|
|
34621
|
-
(err) => __async$
|
|
34656
|
+
(err) => __async$13(this, null, function* () {
|
|
34622
34657
|
var _a, _b, _c, _d, _e;
|
|
34623
34658
|
if (debug) {
|
|
34624
34659
|
logger$1.error(
|
|
@@ -34667,7 +34702,7 @@ class ShipEngineAPI {
|
|
|
34667
34702
|
* that token (also known as Seller ID)
|
|
34668
34703
|
*/
|
|
34669
34704
|
getTenant(isSandbox) {
|
|
34670
|
-
return __async$
|
|
34705
|
+
return __async$13(this, null, function* () {
|
|
34671
34706
|
var _a;
|
|
34672
34707
|
if (!isSandbox) {
|
|
34673
34708
|
return this.getTenantFromToken(this.token);
|
|
@@ -34986,25 +35021,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34986
35021
|
|
|
34987
35022
|
const onError = (_errors) => _default();
|
|
34988
35023
|
|
|
34989
|
-
var __defProp$
|
|
34990
|
-
var __defProps$
|
|
34991
|
-
var __getOwnPropDescs$
|
|
34992
|
-
var __getOwnPropSymbols$
|
|
34993
|
-
var __hasOwnProp$
|
|
34994
|
-
var __propIsEnum$
|
|
34995
|
-
var __defNormalProp$
|
|
34996
|
-
var __spreadValues$
|
|
35024
|
+
var __defProp$N = Object.defineProperty;
|
|
35025
|
+
var __defProps$K = Object.defineProperties;
|
|
35026
|
+
var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
|
|
35027
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
35028
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
35029
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
35030
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35031
|
+
var __spreadValues$N = (a, b) => {
|
|
34997
35032
|
for (var prop in b || (b = {}))
|
|
34998
|
-
if (__hasOwnProp$
|
|
34999
|
-
__defNormalProp$
|
|
35000
|
-
if (__getOwnPropSymbols$
|
|
35001
|
-
for (var prop of __getOwnPropSymbols$
|
|
35002
|
-
if (__propIsEnum$
|
|
35003
|
-
__defNormalProp$
|
|
35033
|
+
if (__hasOwnProp$W.call(b, prop))
|
|
35034
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
35035
|
+
if (__getOwnPropSymbols$W)
|
|
35036
|
+
for (var prop of __getOwnPropSymbols$W(b)) {
|
|
35037
|
+
if (__propIsEnum$W.call(b, prop))
|
|
35038
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
35004
35039
|
}
|
|
35005
35040
|
return a;
|
|
35006
35041
|
};
|
|
35007
|
-
var __spreadProps$
|
|
35042
|
+
var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
|
|
35008
35043
|
const streams = [];
|
|
35009
35044
|
if (process.env.NODE_ENV === "production") {
|
|
35010
35045
|
streams.push({
|
|
@@ -35013,7 +35048,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
35013
35048
|
}
|
|
35014
35049
|
const logger = E({
|
|
35015
35050
|
name: "shipengine",
|
|
35016
|
-
serializers: __spreadProps$
|
|
35051
|
+
serializers: __spreadProps$K(__spreadValues$N({}, k), {
|
|
35017
35052
|
req: (req) => ({
|
|
35018
35053
|
headers: req.headers,
|
|
35019
35054
|
method: req.method,
|
|
@@ -35038,7 +35073,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
35038
35073
|
throw error;
|
|
35039
35074
|
});
|
|
35040
35075
|
|
|
35041
|
-
var __async$
|
|
35076
|
+
var __async$12 = (__this, __arguments, generator) => {
|
|
35042
35077
|
return new Promise((resolve, reject) => {
|
|
35043
35078
|
var fulfilled = (value) => {
|
|
35044
35079
|
try {
|
|
@@ -35061,7 +35096,7 @@ var __async$10 = (__this, __arguments, generator) => {
|
|
|
35061
35096
|
const useCreateAccountImage = () => {
|
|
35062
35097
|
const { client } = useShipEngine();
|
|
35063
35098
|
return reactQuery.useMutation({
|
|
35064
|
-
mutationFn: (data) => __async$
|
|
35099
|
+
mutationFn: (data) => __async$12(void 0, null, function* () {
|
|
35065
35100
|
const result = yield client.accountSettings.createImage(data);
|
|
35066
35101
|
return result.data;
|
|
35067
35102
|
}),
|
|
@@ -35070,7 +35105,7 @@ const useCreateAccountImage = () => {
|
|
|
35070
35105
|
});
|
|
35071
35106
|
};
|
|
35072
35107
|
|
|
35073
|
-
var __async
|
|
35108
|
+
var __async$11 = (__this, __arguments, generator) => {
|
|
35074
35109
|
return new Promise((resolve, reject) => {
|
|
35075
35110
|
var fulfilled = (value) => {
|
|
35076
35111
|
try {
|
|
@@ -35093,7 +35128,7 @@ var __async$$ = (__this, __arguments, generator) => {
|
|
|
35093
35128
|
const useDeleteAccountImage = () => {
|
|
35094
35129
|
const { client } = useShipEngine();
|
|
35095
35130
|
return reactQuery.useMutation({
|
|
35096
|
-
mutationFn: (labelImageId) => __async
|
|
35131
|
+
mutationFn: (labelImageId) => __async$11(void 0, null, function* () {
|
|
35097
35132
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
35098
35133
|
return result.data;
|
|
35099
35134
|
}),
|
|
@@ -35122,7 +35157,7 @@ const useGetAccountSettings = () => {
|
|
|
35122
35157
|
});
|
|
35123
35158
|
};
|
|
35124
35159
|
|
|
35125
|
-
var __async$
|
|
35160
|
+
var __async$10 = (__this, __arguments, generator) => {
|
|
35126
35161
|
return new Promise((resolve, reject) => {
|
|
35127
35162
|
var fulfilled = (value) => {
|
|
35128
35163
|
try {
|
|
@@ -35145,7 +35180,7 @@ var __async$_ = (__this, __arguments, generator) => {
|
|
|
35145
35180
|
const useUpdateAccountImage = () => {
|
|
35146
35181
|
const { client } = useShipEngine();
|
|
35147
35182
|
return reactQuery.useMutation({
|
|
35148
|
-
mutationFn: (data) => __async$
|
|
35183
|
+
mutationFn: (data) => __async$10(void 0, null, function* () {
|
|
35149
35184
|
const result = yield client.accountSettings.updateImage(data);
|
|
35150
35185
|
return result.data;
|
|
35151
35186
|
}),
|
|
@@ -35154,7 +35189,7 @@ const useUpdateAccountImage = () => {
|
|
|
35154
35189
|
});
|
|
35155
35190
|
};
|
|
35156
35191
|
|
|
35157
|
-
var __async
|
|
35192
|
+
var __async$$ = (__this, __arguments, generator) => {
|
|
35158
35193
|
return new Promise((resolve, reject) => {
|
|
35159
35194
|
var fulfilled = (value) => {
|
|
35160
35195
|
try {
|
|
@@ -35177,7 +35212,7 @@ var __async$Z = (__this, __arguments, generator) => {
|
|
|
35177
35212
|
const useUpdateAccountSettings = () => {
|
|
35178
35213
|
const { client } = useShipEngine();
|
|
35179
35214
|
return reactQuery.useMutation({
|
|
35180
|
-
mutationFn: (settings) => __async
|
|
35215
|
+
mutationFn: (settings) => __async$$(void 0, null, function* () {
|
|
35181
35216
|
const result = yield client.accountSettings.update(settings);
|
|
35182
35217
|
return result.data;
|
|
35183
35218
|
}),
|
|
@@ -35186,6 +35221,35 @@ const useUpdateAccountSettings = () => {
|
|
|
35186
35221
|
});
|
|
35187
35222
|
};
|
|
35188
35223
|
|
|
35224
|
+
var __defProp$M = Object.defineProperty;
|
|
35225
|
+
var __defProps$J = Object.defineProperties;
|
|
35226
|
+
var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
|
|
35227
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
35228
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
35229
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
35230
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35231
|
+
var __spreadValues$M = (a, b) => {
|
|
35232
|
+
for (var prop in b || (b = {}))
|
|
35233
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
35234
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
35235
|
+
if (__getOwnPropSymbols$V)
|
|
35236
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
35237
|
+
if (__propIsEnum$V.call(b, prop))
|
|
35238
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
35239
|
+
}
|
|
35240
|
+
return a;
|
|
35241
|
+
};
|
|
35242
|
+
var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
|
|
35243
|
+
const useListAccountAddons = (params) => {
|
|
35244
|
+
const { client } = useShipEngine();
|
|
35245
|
+
return reactQuery.useQuery(__spreadProps$J(__spreadValues$M({}, params), {
|
|
35246
|
+
onError,
|
|
35247
|
+
queryFn: () => client.accountAddons.list(),
|
|
35248
|
+
queryKey: ["useListAccountAddons"],
|
|
35249
|
+
select: (result) => result.data.addons
|
|
35250
|
+
}));
|
|
35251
|
+
};
|
|
35252
|
+
|
|
35189
35253
|
var __defProp$L = Object.defineProperty;
|
|
35190
35254
|
var __defProps$I = Object.defineProperties;
|
|
35191
35255
|
var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
|
|
@@ -35205,36 +35269,7 @@ var __spreadValues$L = (a, b) => {
|
|
|
35205
35269
|
return a;
|
|
35206
35270
|
};
|
|
35207
35271
|
var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
|
|
35208
|
-
|
|
35209
|
-
const { client } = useShipEngine();
|
|
35210
|
-
return reactQuery.useQuery(__spreadProps$I(__spreadValues$L({}, params), {
|
|
35211
|
-
onError,
|
|
35212
|
-
queryFn: () => client.accountAddons.list(),
|
|
35213
|
-
queryKey: ["useListAccountAddons"],
|
|
35214
|
-
select: (result) => result.data.addons
|
|
35215
|
-
}));
|
|
35216
|
-
};
|
|
35217
|
-
|
|
35218
|
-
var __defProp$K = Object.defineProperty;
|
|
35219
|
-
var __defProps$H = Object.defineProperties;
|
|
35220
|
-
var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
|
|
35221
|
-
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
35222
|
-
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
35223
|
-
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
35224
|
-
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35225
|
-
var __spreadValues$K = (a, b) => {
|
|
35226
|
-
for (var prop in b || (b = {}))
|
|
35227
|
-
if (__hasOwnProp$T.call(b, prop))
|
|
35228
|
-
__defNormalProp$K(a, prop, b[prop]);
|
|
35229
|
-
if (__getOwnPropSymbols$T)
|
|
35230
|
-
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
35231
|
-
if (__propIsEnum$T.call(b, prop))
|
|
35232
|
-
__defNormalProp$K(a, prop, b[prop]);
|
|
35233
|
-
}
|
|
35234
|
-
return a;
|
|
35235
|
-
};
|
|
35236
|
-
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
35237
|
-
var __async$Y = (__this, __arguments, generator) => {
|
|
35272
|
+
var __async$_ = (__this, __arguments, generator) => {
|
|
35238
35273
|
return new Promise((resolve, reject) => {
|
|
35239
35274
|
var fulfilled = (value) => {
|
|
35240
35275
|
try {
|
|
@@ -35256,8 +35291,8 @@ var __async$Y = (__this, __arguments, generator) => {
|
|
|
35256
35291
|
};
|
|
35257
35292
|
const useEnableAccountAddon = (params) => {
|
|
35258
35293
|
const { client } = useShipEngine();
|
|
35259
|
-
return reactQuery.useMutation(__spreadProps$
|
|
35260
|
-
mutationFn: (addonType) => __async$
|
|
35294
|
+
return reactQuery.useMutation(__spreadProps$I(__spreadValues$L({}, params), {
|
|
35295
|
+
mutationFn: (addonType) => __async$_(void 0, null, function* () {
|
|
35261
35296
|
const result = yield client.accountAddons.enable(addonType);
|
|
35262
35297
|
return result.data;
|
|
35263
35298
|
}),
|
|
@@ -35266,26 +35301,26 @@ const useEnableAccountAddon = (params) => {
|
|
|
35266
35301
|
}));
|
|
35267
35302
|
};
|
|
35268
35303
|
|
|
35269
|
-
var __defProp$
|
|
35270
|
-
var __defProps$
|
|
35271
|
-
var __getOwnPropDescs$
|
|
35272
|
-
var __getOwnPropSymbols$
|
|
35273
|
-
var __hasOwnProp$
|
|
35274
|
-
var __propIsEnum$
|
|
35275
|
-
var __defNormalProp$
|
|
35276
|
-
var __spreadValues$
|
|
35304
|
+
var __defProp$K = Object.defineProperty;
|
|
35305
|
+
var __defProps$H = Object.defineProperties;
|
|
35306
|
+
var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
|
|
35307
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
35308
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
35309
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
35310
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35311
|
+
var __spreadValues$K = (a, b) => {
|
|
35277
35312
|
for (var prop in b || (b = {}))
|
|
35278
|
-
if (__hasOwnProp$
|
|
35279
|
-
__defNormalProp$
|
|
35280
|
-
if (__getOwnPropSymbols$
|
|
35281
|
-
for (var prop of __getOwnPropSymbols$
|
|
35282
|
-
if (__propIsEnum$
|
|
35283
|
-
__defNormalProp$
|
|
35313
|
+
if (__hasOwnProp$T.call(b, prop))
|
|
35314
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
35315
|
+
if (__getOwnPropSymbols$T)
|
|
35316
|
+
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
35317
|
+
if (__propIsEnum$T.call(b, prop))
|
|
35318
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
35284
35319
|
}
|
|
35285
35320
|
return a;
|
|
35286
35321
|
};
|
|
35287
|
-
var __spreadProps$
|
|
35288
|
-
var __async$
|
|
35322
|
+
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
35323
|
+
var __async$Z = (__this, __arguments, generator) => {
|
|
35289
35324
|
return new Promise((resolve, reject) => {
|
|
35290
35325
|
var fulfilled = (value) => {
|
|
35291
35326
|
try {
|
|
@@ -35307,8 +35342,8 @@ var __async$X = (__this, __arguments, generator) => {
|
|
|
35307
35342
|
};
|
|
35308
35343
|
const useDisableAccountAddon = (params) => {
|
|
35309
35344
|
const { client } = useShipEngine();
|
|
35310
|
-
return reactQuery.useMutation(__spreadProps$
|
|
35311
|
-
mutationFn: (addonType) => __async$
|
|
35345
|
+
return reactQuery.useMutation(__spreadProps$H(__spreadValues$K({}, params), {
|
|
35346
|
+
mutationFn: (addonType) => __async$Z(void 0, null, function* () {
|
|
35312
35347
|
const result = yield client.accountAddons.disable(addonType);
|
|
35313
35348
|
return result.data;
|
|
35314
35349
|
}),
|
|
@@ -35317,28 +35352,28 @@ const useDisableAccountAddon = (params) => {
|
|
|
35317
35352
|
}));
|
|
35318
35353
|
};
|
|
35319
35354
|
|
|
35320
|
-
var __defProp$
|
|
35321
|
-
var __defProps$
|
|
35322
|
-
var __getOwnPropDescs$
|
|
35323
|
-
var __getOwnPropSymbols$
|
|
35324
|
-
var __hasOwnProp$
|
|
35325
|
-
var __propIsEnum$
|
|
35326
|
-
var __defNormalProp$
|
|
35327
|
-
var __spreadValues$
|
|
35355
|
+
var __defProp$J = Object.defineProperty;
|
|
35356
|
+
var __defProps$G = Object.defineProperties;
|
|
35357
|
+
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
35358
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
35359
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
35360
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
35361
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35362
|
+
var __spreadValues$J = (a, b) => {
|
|
35328
35363
|
for (var prop in b || (b = {}))
|
|
35329
|
-
if (__hasOwnProp$
|
|
35330
|
-
__defNormalProp$
|
|
35331
|
-
if (__getOwnPropSymbols$
|
|
35332
|
-
for (var prop of __getOwnPropSymbols$
|
|
35333
|
-
if (__propIsEnum$
|
|
35334
|
-
__defNormalProp$
|
|
35364
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
35365
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
35366
|
+
if (__getOwnPropSymbols$S)
|
|
35367
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
35368
|
+
if (__propIsEnum$S.call(b, prop))
|
|
35369
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
35335
35370
|
}
|
|
35336
35371
|
return a;
|
|
35337
35372
|
};
|
|
35338
|
-
var __spreadProps$
|
|
35373
|
+
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
35339
35374
|
const useListAccountFeatures = (params) => {
|
|
35340
35375
|
const { client } = useShipEngine();
|
|
35341
|
-
return reactQuery.useQuery(__spreadProps$
|
|
35376
|
+
return reactQuery.useQuery(__spreadProps$G(__spreadValues$J({}, params), {
|
|
35342
35377
|
onError,
|
|
35343
35378
|
queryFn: () => client.accountFeatures.list(),
|
|
35344
35379
|
queryKey: ["useListAccountFeatures"],
|
|
@@ -35346,7 +35381,7 @@ const useListAccountFeatures = (params) => {
|
|
|
35346
35381
|
}));
|
|
35347
35382
|
};
|
|
35348
35383
|
|
|
35349
|
-
var __async$
|
|
35384
|
+
var __async$Y = (__this, __arguments, generator) => {
|
|
35350
35385
|
return new Promise((resolve, reject) => {
|
|
35351
35386
|
var fulfilled = (value) => {
|
|
35352
35387
|
try {
|
|
@@ -35369,7 +35404,7 @@ var __async$W = (__this, __arguments, generator) => {
|
|
|
35369
35404
|
const useRequestAccountFeature = () => {
|
|
35370
35405
|
const { client } = useShipEngine();
|
|
35371
35406
|
return reactQuery.useMutation({
|
|
35372
|
-
mutationFn: (request) => __async$
|
|
35407
|
+
mutationFn: (request) => __async$Y(void 0, null, function* () {
|
|
35373
35408
|
const result = yield client.accountFeatures.request(request);
|
|
35374
35409
|
return result.data;
|
|
35375
35410
|
}),
|
|
@@ -35378,7 +35413,7 @@ const useRequestAccountFeature = () => {
|
|
|
35378
35413
|
});
|
|
35379
35414
|
};
|
|
35380
35415
|
|
|
35381
|
-
var __async$
|
|
35416
|
+
var __async$X = (__this, __arguments, generator) => {
|
|
35382
35417
|
return new Promise((resolve, reject) => {
|
|
35383
35418
|
var fulfilled = (value) => {
|
|
35384
35419
|
try {
|
|
@@ -35401,7 +35436,7 @@ var __async$V = (__this, __arguments, generator) => {
|
|
|
35401
35436
|
const useParseAddress = () => {
|
|
35402
35437
|
const { client } = useShipEngine();
|
|
35403
35438
|
return reactQuery.useMutation({
|
|
35404
|
-
mutationFn: (_0) => __async$
|
|
35439
|
+
mutationFn: (_0) => __async$X(void 0, [_0], function* ({ address, text }) {
|
|
35405
35440
|
const result = yield client.addresses.parse(text, address);
|
|
35406
35441
|
return result.data;
|
|
35407
35442
|
}),
|
|
@@ -35410,7 +35445,7 @@ const useParseAddress = () => {
|
|
|
35410
35445
|
});
|
|
35411
35446
|
};
|
|
35412
35447
|
|
|
35413
|
-
var __async$
|
|
35448
|
+
var __async$W = (__this, __arguments, generator) => {
|
|
35414
35449
|
return new Promise((resolve, reject) => {
|
|
35415
35450
|
var fulfilled = (value) => {
|
|
35416
35451
|
try {
|
|
@@ -35433,7 +35468,7 @@ var __async$U = (__this, __arguments, generator) => {
|
|
|
35433
35468
|
const useValidateAddresses = () => {
|
|
35434
35469
|
const { client } = useShipEngine();
|
|
35435
35470
|
return reactQuery.useMutation({
|
|
35436
|
-
mutationFn: (addresses) => __async$
|
|
35471
|
+
mutationFn: (addresses) => __async$W(void 0, null, function* () {
|
|
35437
35472
|
const result = yield client.addresses.validate(addresses);
|
|
35438
35473
|
return result.data;
|
|
35439
35474
|
}),
|
|
@@ -35442,26 +35477,26 @@ const useValidateAddresses = () => {
|
|
|
35442
35477
|
});
|
|
35443
35478
|
};
|
|
35444
35479
|
|
|
35445
|
-
var __defProp$
|
|
35446
|
-
var __defProps$
|
|
35447
|
-
var __getOwnPropDescs$
|
|
35448
|
-
var __getOwnPropSymbols$
|
|
35449
|
-
var __hasOwnProp$
|
|
35450
|
-
var __propIsEnum$
|
|
35451
|
-
var __defNormalProp$
|
|
35452
|
-
var __spreadValues$
|
|
35480
|
+
var __defProp$I = Object.defineProperty;
|
|
35481
|
+
var __defProps$F = Object.defineProperties;
|
|
35482
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
35483
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
35484
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
35485
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
35486
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35487
|
+
var __spreadValues$I = (a, b) => {
|
|
35453
35488
|
for (var prop in b || (b = {}))
|
|
35454
|
-
if (__hasOwnProp$
|
|
35455
|
-
__defNormalProp$
|
|
35456
|
-
if (__getOwnPropSymbols$
|
|
35457
|
-
for (var prop of __getOwnPropSymbols$
|
|
35458
|
-
if (__propIsEnum$
|
|
35459
|
-
__defNormalProp$
|
|
35489
|
+
if (__hasOwnProp$R.call(b, prop))
|
|
35490
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35491
|
+
if (__getOwnPropSymbols$R)
|
|
35492
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
35493
|
+
if (__propIsEnum$R.call(b, prop))
|
|
35494
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35460
35495
|
}
|
|
35461
35496
|
return a;
|
|
35462
35497
|
};
|
|
35463
|
-
var __spreadProps$
|
|
35464
|
-
var __async$
|
|
35498
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
35499
|
+
var __async$V = (__this, __arguments, generator) => {
|
|
35465
35500
|
return new Promise((resolve, reject) => {
|
|
35466
35501
|
var fulfilled = (value) => {
|
|
35467
35502
|
try {
|
|
@@ -35483,8 +35518,8 @@ var __async$T = (__this, __arguments, generator) => {
|
|
|
35483
35518
|
};
|
|
35484
35519
|
const useCreateAuctanePaySession = (params) => {
|
|
35485
35520
|
const { client } = useShipEngine();
|
|
35486
|
-
return reactQuery.useMutation(__spreadProps$
|
|
35487
|
-
mutationFn: (request) => __async$
|
|
35521
|
+
return reactQuery.useMutation(__spreadProps$F(__spreadValues$I({}, params), {
|
|
35522
|
+
mutationFn: (request) => __async$V(void 0, null, function* () {
|
|
35488
35523
|
const result = yield client.auctanePay.createSession(request);
|
|
35489
35524
|
return result.data;
|
|
35490
35525
|
}),
|
|
@@ -35493,6 +35528,36 @@ const useCreateAuctanePaySession = (params) => {
|
|
|
35493
35528
|
}));
|
|
35494
35529
|
};
|
|
35495
35530
|
|
|
35531
|
+
var __defProp$H = Object.defineProperty;
|
|
35532
|
+
var __defProps$E = Object.defineProperties;
|
|
35533
|
+
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
35534
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
35535
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
35536
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
35537
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35538
|
+
var __spreadValues$H = (a, b) => {
|
|
35539
|
+
for (var prop in b || (b = {}))
|
|
35540
|
+
if (__hasOwnProp$Q.call(b, prop))
|
|
35541
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
35542
|
+
if (__getOwnPropSymbols$Q)
|
|
35543
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
35544
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
35545
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
35546
|
+
}
|
|
35547
|
+
return a;
|
|
35548
|
+
};
|
|
35549
|
+
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
35550
|
+
const useGetAuctanePayConfig = (params) => {
|
|
35551
|
+
const { client } = useShipEngine();
|
|
35552
|
+
const queryParams = __spreadValues$H({}, params);
|
|
35553
|
+
return reactQuery.useQuery(__spreadProps$E(__spreadValues$H({}, queryParams), {
|
|
35554
|
+
onError,
|
|
35555
|
+
queryFn: () => client.auctanePay.getConfig(),
|
|
35556
|
+
queryKey: ["useGetAuctanePayConfig"],
|
|
35557
|
+
select: (result) => result.data
|
|
35558
|
+
}));
|
|
35559
|
+
};
|
|
35560
|
+
|
|
35496
35561
|
var __defProp$G = Object.defineProperty;
|
|
35497
35562
|
var __defProps$D = Object.defineProperties;
|
|
35498
35563
|
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
@@ -35512,37 +35577,7 @@ var __spreadValues$G = (a, b) => {
|
|
|
35512
35577
|
return a;
|
|
35513
35578
|
};
|
|
35514
35579
|
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
35515
|
-
|
|
35516
|
-
const { client } = useShipEngine();
|
|
35517
|
-
const queryParams = __spreadValues$G({}, params);
|
|
35518
|
-
return reactQuery.useQuery(__spreadProps$D(__spreadValues$G({}, queryParams), {
|
|
35519
|
-
onError,
|
|
35520
|
-
queryFn: () => client.auctanePay.getConfig(),
|
|
35521
|
-
queryKey: ["useGetAuctanePayConfig"],
|
|
35522
|
-
select: (result) => result.data
|
|
35523
|
-
}));
|
|
35524
|
-
};
|
|
35525
|
-
|
|
35526
|
-
var __defProp$F = Object.defineProperty;
|
|
35527
|
-
var __defProps$C = Object.defineProperties;
|
|
35528
|
-
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
35529
|
-
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
35530
|
-
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
35531
|
-
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
35532
|
-
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35533
|
-
var __spreadValues$F = (a, b) => {
|
|
35534
|
-
for (var prop in b || (b = {}))
|
|
35535
|
-
if (__hasOwnProp$O.call(b, prop))
|
|
35536
|
-
__defNormalProp$F(a, prop, b[prop]);
|
|
35537
|
-
if (__getOwnPropSymbols$O)
|
|
35538
|
-
for (var prop of __getOwnPropSymbols$O(b)) {
|
|
35539
|
-
if (__propIsEnum$O.call(b, prop))
|
|
35540
|
-
__defNormalProp$F(a, prop, b[prop]);
|
|
35541
|
-
}
|
|
35542
|
-
return a;
|
|
35543
|
-
};
|
|
35544
|
-
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
35545
|
-
var __async$S = (__this, __arguments, generator) => {
|
|
35580
|
+
var __async$U = (__this, __arguments, generator) => {
|
|
35546
35581
|
return new Promise((resolve, reject) => {
|
|
35547
35582
|
var fulfilled = (value) => {
|
|
35548
35583
|
try {
|
|
@@ -35564,8 +35599,8 @@ var __async$S = (__this, __arguments, generator) => {
|
|
|
35564
35599
|
};
|
|
35565
35600
|
const usePreviewTransaction = (params) => {
|
|
35566
35601
|
const { client } = useShipEngine();
|
|
35567
|
-
return reactQuery.useMutation(__spreadProps$
|
|
35568
|
-
mutationFn: (_0) => __async$
|
|
35602
|
+
return reactQuery.useMutation(__spreadProps$D(__spreadValues$G({}, params), {
|
|
35603
|
+
mutationFn: (_0) => __async$U(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
|
|
35569
35604
|
const request = {
|
|
35570
35605
|
amount,
|
|
35571
35606
|
transactionCategory
|
|
@@ -35578,6 +35613,36 @@ const usePreviewTransaction = (params) => {
|
|
|
35578
35613
|
}));
|
|
35579
35614
|
};
|
|
35580
35615
|
|
|
35616
|
+
var __defProp$F = Object.defineProperty;
|
|
35617
|
+
var __defProps$C = Object.defineProperties;
|
|
35618
|
+
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
35619
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
35620
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
35621
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
35622
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35623
|
+
var __spreadValues$F = (a, b) => {
|
|
35624
|
+
for (var prop in b || (b = {}))
|
|
35625
|
+
if (__hasOwnProp$O.call(b, prop))
|
|
35626
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
35627
|
+
if (__getOwnPropSymbols$O)
|
|
35628
|
+
for (var prop of __getOwnPropSymbols$O(b)) {
|
|
35629
|
+
if (__propIsEnum$O.call(b, prop))
|
|
35630
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
35631
|
+
}
|
|
35632
|
+
return a;
|
|
35633
|
+
};
|
|
35634
|
+
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
35635
|
+
const useGetPaymentMethods = (params) => {
|
|
35636
|
+
const { client } = useShipEngine();
|
|
35637
|
+
const queryParams = __spreadValues$F({}, params);
|
|
35638
|
+
return reactQuery.useQuery(__spreadProps$C(__spreadValues$F({}, queryParams), {
|
|
35639
|
+
onError,
|
|
35640
|
+
queryFn: () => client.auctanePay.getPaymentMethods(),
|
|
35641
|
+
queryKey: ["useGetPaymentMethods"],
|
|
35642
|
+
select: (result) => result.data
|
|
35643
|
+
}));
|
|
35644
|
+
};
|
|
35645
|
+
|
|
35581
35646
|
var __defProp$E = Object.defineProperty;
|
|
35582
35647
|
var __defProps$B = Object.defineProperties;
|
|
35583
35648
|
var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
|
|
@@ -35597,14 +35662,35 @@ var __spreadValues$E = (a, b) => {
|
|
|
35597
35662
|
return a;
|
|
35598
35663
|
};
|
|
35599
35664
|
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
35600
|
-
|
|
35665
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
35666
|
+
return new Promise((resolve, reject) => {
|
|
35667
|
+
var fulfilled = (value) => {
|
|
35668
|
+
try {
|
|
35669
|
+
step(generator.next(value));
|
|
35670
|
+
} catch (e) {
|
|
35671
|
+
reject(e);
|
|
35672
|
+
}
|
|
35673
|
+
};
|
|
35674
|
+
var rejected = (value) => {
|
|
35675
|
+
try {
|
|
35676
|
+
step(generator.throw(value));
|
|
35677
|
+
} catch (e) {
|
|
35678
|
+
reject(e);
|
|
35679
|
+
}
|
|
35680
|
+
};
|
|
35681
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35682
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35683
|
+
});
|
|
35684
|
+
};
|
|
35685
|
+
const useDeletePaymentMethod = (params) => {
|
|
35601
35686
|
const { client } = useShipEngine();
|
|
35602
|
-
|
|
35603
|
-
|
|
35604
|
-
|
|
35605
|
-
|
|
35606
|
-
|
|
35607
|
-
|
|
35687
|
+
return reactQuery.useMutation(__spreadProps$B(__spreadValues$E({}, params), {
|
|
35688
|
+
mutationFn: (paymentMethodId) => __async$T(void 0, null, function* () {
|
|
35689
|
+
const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
|
|
35690
|
+
return result.data;
|
|
35691
|
+
}),
|
|
35692
|
+
mutationKey: ["useDeletePaymentMethod"],
|
|
35693
|
+
onError
|
|
35608
35694
|
}));
|
|
35609
35695
|
};
|
|
35610
35696
|
|
|
@@ -35627,7 +35713,7 @@ var __spreadValues$D = (a, b) => {
|
|
|
35627
35713
|
return a;
|
|
35628
35714
|
};
|
|
35629
35715
|
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
35630
|
-
var __async$
|
|
35716
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
35631
35717
|
return new Promise((resolve, reject) => {
|
|
35632
35718
|
var fulfilled = (value) => {
|
|
35633
35719
|
try {
|
|
@@ -35647,14 +35733,14 @@ var __async$R = (__this, __arguments, generator) => {
|
|
|
35647
35733
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35648
35734
|
});
|
|
35649
35735
|
};
|
|
35650
|
-
const
|
|
35736
|
+
const useUpdatePaymentMethod = (params) => {
|
|
35651
35737
|
const { client } = useShipEngine();
|
|
35652
35738
|
return reactQuery.useMutation(__spreadProps$A(__spreadValues$D({}, params), {
|
|
35653
|
-
mutationFn: (
|
|
35654
|
-
const result = yield client.auctanePay.
|
|
35739
|
+
mutationFn: (_0) => __async$S(void 0, [_0], function* ({ paymentMethodId, payload }) {
|
|
35740
|
+
const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
|
|
35655
35741
|
return result.data;
|
|
35656
35742
|
}),
|
|
35657
|
-
mutationKey: ["
|
|
35743
|
+
mutationKey: ["useUpdatePaymentMethod"],
|
|
35658
35744
|
onError
|
|
35659
35745
|
}));
|
|
35660
35746
|
};
|
|
@@ -35678,7 +35764,7 @@ var __spreadValues$C = (a, b) => {
|
|
|
35678
35764
|
return a;
|
|
35679
35765
|
};
|
|
35680
35766
|
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
35681
|
-
var __async$
|
|
35767
|
+
var __async$R = (__this, __arguments, generator) => {
|
|
35682
35768
|
return new Promise((resolve, reject) => {
|
|
35683
35769
|
var fulfilled = (value) => {
|
|
35684
35770
|
try {
|
|
@@ -35698,14 +35784,14 @@ var __async$Q = (__this, __arguments, generator) => {
|
|
|
35698
35784
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35699
35785
|
});
|
|
35700
35786
|
};
|
|
35701
|
-
const
|
|
35787
|
+
const useIdentityVerification = (params) => {
|
|
35702
35788
|
const { client } = useShipEngine();
|
|
35703
35789
|
return reactQuery.useMutation(__spreadProps$z(__spreadValues$C({}, params), {
|
|
35704
|
-
mutationFn: (
|
|
35705
|
-
const result = yield client.auctanePay.
|
|
35790
|
+
mutationFn: () => __async$R(void 0, null, function* () {
|
|
35791
|
+
const result = yield client.auctanePay.identityVerification();
|
|
35706
35792
|
return result.data;
|
|
35707
35793
|
}),
|
|
35708
|
-
mutationKey: ["
|
|
35794
|
+
mutationKey: ["useIdentityVerification"],
|
|
35709
35795
|
onError
|
|
35710
35796
|
}));
|
|
35711
35797
|
};
|
|
@@ -35729,7 +35815,18 @@ var __spreadValues$B = (a, b) => {
|
|
|
35729
35815
|
return a;
|
|
35730
35816
|
};
|
|
35731
35817
|
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
35732
|
-
|
|
35818
|
+
const useGetPaymentAccount = (params) => {
|
|
35819
|
+
const { client } = useShipEngine();
|
|
35820
|
+
const queryParams = __spreadValues$B({}, params);
|
|
35821
|
+
return reactQuery.useQuery(__spreadProps$y(__spreadValues$B({}, queryParams), {
|
|
35822
|
+
onError,
|
|
35823
|
+
queryFn: () => client.auctanePay.getPaymentAccount(),
|
|
35824
|
+
queryKey: ["useGetPaymentAccount"],
|
|
35825
|
+
select: (result) => result.data
|
|
35826
|
+
}));
|
|
35827
|
+
};
|
|
35828
|
+
|
|
35829
|
+
var __async$Q = (__this, __arguments, generator) => {
|
|
35733
35830
|
return new Promise((resolve, reject) => {
|
|
35734
35831
|
var fulfilled = (value) => {
|
|
35735
35832
|
try {
|
|
@@ -35749,49 +35846,19 @@ var __async$P = (__this, __arguments, generator) => {
|
|
|
35749
35846
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35750
35847
|
});
|
|
35751
35848
|
};
|
|
35752
|
-
const
|
|
35849
|
+
const useAcceptCarrierTerms = (carrierId) => {
|
|
35753
35850
|
const { client } = useShipEngine();
|
|
35754
|
-
return reactQuery.useMutation(
|
|
35755
|
-
mutationFn: () => __async$
|
|
35756
|
-
const result = yield client.
|
|
35757
|
-
return result.data;
|
|
35851
|
+
return reactQuery.useMutation({
|
|
35852
|
+
mutationFn: (request) => __async$Q(void 0, null, function* () {
|
|
35853
|
+
const result = yield client.carriers.acceptTerms(carrierId, request);
|
|
35854
|
+
return result.data.acceptedTerms;
|
|
35758
35855
|
}),
|
|
35759
|
-
mutationKey: ["
|
|
35856
|
+
mutationKey: ["useAcceptCarrierTerms", carrierId],
|
|
35760
35857
|
onError
|
|
35761
|
-
})
|
|
35762
|
-
};
|
|
35763
|
-
|
|
35764
|
-
var __defProp$A = Object.defineProperty;
|
|
35765
|
-
var __defProps$x = Object.defineProperties;
|
|
35766
|
-
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
35767
|
-
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
35768
|
-
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
35769
|
-
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
35770
|
-
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35771
|
-
var __spreadValues$A = (a, b) => {
|
|
35772
|
-
for (var prop in b || (b = {}))
|
|
35773
|
-
if (__hasOwnProp$J.call(b, prop))
|
|
35774
|
-
__defNormalProp$A(a, prop, b[prop]);
|
|
35775
|
-
if (__getOwnPropSymbols$J)
|
|
35776
|
-
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
35777
|
-
if (__propIsEnum$J.call(b, prop))
|
|
35778
|
-
__defNormalProp$A(a, prop, b[prop]);
|
|
35779
|
-
}
|
|
35780
|
-
return a;
|
|
35781
|
-
};
|
|
35782
|
-
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
35783
|
-
const useGetPaymentAccount = (params) => {
|
|
35784
|
-
const { client } = useShipEngine();
|
|
35785
|
-
const queryParams = __spreadValues$A({}, params);
|
|
35786
|
-
return reactQuery.useQuery(__spreadProps$x(__spreadValues$A({}, queryParams), {
|
|
35787
|
-
onError,
|
|
35788
|
-
queryFn: () => client.auctanePay.getPaymentAccount(),
|
|
35789
|
-
queryKey: ["useGetPaymentAccount"],
|
|
35790
|
-
select: (result) => result.data
|
|
35791
|
-
}));
|
|
35858
|
+
});
|
|
35792
35859
|
};
|
|
35793
35860
|
|
|
35794
|
-
var __async$
|
|
35861
|
+
var __async$P = (__this, __arguments, generator) => {
|
|
35795
35862
|
return new Promise((resolve, reject) => {
|
|
35796
35863
|
var fulfilled = (value) => {
|
|
35797
35864
|
try {
|
|
@@ -35814,7 +35881,7 @@ var __async$O = (__this, __arguments, generator) => {
|
|
|
35814
35881
|
const useAddFunds = () => {
|
|
35815
35882
|
const { client } = useShipEngine();
|
|
35816
35883
|
return reactQuery.useMutation({
|
|
35817
|
-
mutationFn: (_0) => __async$
|
|
35884
|
+
mutationFn: (_0) => __async$P(void 0, [_0], function* ({ carrierId, funds }) {
|
|
35818
35885
|
const result = yield client.carriers.addFunds(carrierId, funds);
|
|
35819
35886
|
return result.data;
|
|
35820
35887
|
}),
|
|
@@ -35823,7 +35890,7 @@ const useAddFunds = () => {
|
|
|
35823
35890
|
});
|
|
35824
35891
|
};
|
|
35825
35892
|
|
|
35826
|
-
var __async$
|
|
35893
|
+
var __async$O = (__this, __arguments, generator) => {
|
|
35827
35894
|
return new Promise((resolve, reject) => {
|
|
35828
35895
|
var fulfilled = (value) => {
|
|
35829
35896
|
try {
|
|
@@ -35846,7 +35913,7 @@ var __async$N = (__this, __arguments, generator) => {
|
|
|
35846
35913
|
const useConnectCarrier = () => {
|
|
35847
35914
|
const { client } = useShipEngine();
|
|
35848
35915
|
return reactQuery.useMutation({
|
|
35849
|
-
mutationFn: (params) => __async$
|
|
35916
|
+
mutationFn: (params) => __async$O(void 0, null, function* () {
|
|
35850
35917
|
const result = yield client.carriers.connect(params);
|
|
35851
35918
|
return result.data;
|
|
35852
35919
|
}),
|
|
@@ -35955,41 +36022,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
35955
36022
|
});
|
|
35956
36023
|
};
|
|
35957
36024
|
|
|
35958
|
-
var __defProp$
|
|
35959
|
-
var __defProps$
|
|
35960
|
-
var __getOwnPropDescs$
|
|
35961
|
-
var __getOwnPropSymbols$
|
|
35962
|
-
var __hasOwnProp$
|
|
35963
|
-
var __propIsEnum$
|
|
35964
|
-
var __defNormalProp$
|
|
35965
|
-
var __spreadValues$
|
|
36025
|
+
var __defProp$A = Object.defineProperty;
|
|
36026
|
+
var __defProps$x = Object.defineProperties;
|
|
36027
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
36028
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
36029
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
36030
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
36031
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36032
|
+
var __spreadValues$A = (a, b) => {
|
|
35966
36033
|
for (var prop in b || (b = {}))
|
|
35967
|
-
if (__hasOwnProp$
|
|
35968
|
-
__defNormalProp$
|
|
35969
|
-
if (__getOwnPropSymbols$
|
|
35970
|
-
for (var prop of __getOwnPropSymbols$
|
|
35971
|
-
if (__propIsEnum$
|
|
35972
|
-
__defNormalProp$
|
|
36034
|
+
if (__hasOwnProp$J.call(b, prop))
|
|
36035
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
36036
|
+
if (__getOwnPropSymbols$J)
|
|
36037
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
36038
|
+
if (__propIsEnum$J.call(b, prop))
|
|
36039
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
35973
36040
|
}
|
|
35974
36041
|
return a;
|
|
35975
36042
|
};
|
|
35976
|
-
var __spreadProps$
|
|
36043
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
35977
36044
|
var __objRest$r = (source, exclude) => {
|
|
35978
36045
|
var target = {};
|
|
35979
36046
|
for (var prop in source)
|
|
35980
|
-
if (__hasOwnProp$
|
|
36047
|
+
if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35981
36048
|
target[prop] = source[prop];
|
|
35982
|
-
if (source != null && __getOwnPropSymbols$
|
|
35983
|
-
for (var prop of __getOwnPropSymbols$
|
|
35984
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36049
|
+
if (source != null && __getOwnPropSymbols$J)
|
|
36050
|
+
for (var prop of __getOwnPropSymbols$J(source)) {
|
|
36051
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
|
|
35985
36052
|
target[prop] = source[prop];
|
|
35986
36053
|
}
|
|
35987
36054
|
return target;
|
|
35988
36055
|
};
|
|
35989
36056
|
const useListCarriers = (params) => {
|
|
35990
36057
|
const { client } = useShipEngine();
|
|
35991
|
-
const _a = __spreadValues$
|
|
35992
|
-
return reactQuery.useQuery(__spreadProps$
|
|
36058
|
+
const _a = __spreadValues$A({}, params), { queryFnParams } = _a, rest = __objRest$r(_a, ["queryFnParams"]);
|
|
36059
|
+
return reactQuery.useQuery(__spreadProps$x(__spreadValues$A({}, rest), {
|
|
35993
36060
|
onError,
|
|
35994
36061
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
35995
36062
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -35997,22 +36064,22 @@ const useListCarriers = (params) => {
|
|
|
35997
36064
|
}));
|
|
35998
36065
|
};
|
|
35999
36066
|
|
|
36000
|
-
var __getOwnPropSymbols$
|
|
36001
|
-
var __hasOwnProp$
|
|
36002
|
-
var __propIsEnum$
|
|
36067
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
36068
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
36069
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
36003
36070
|
var __objRest$q = (source, exclude) => {
|
|
36004
36071
|
var target = {};
|
|
36005
36072
|
for (var prop in source)
|
|
36006
|
-
if (__hasOwnProp$
|
|
36073
|
+
if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36007
36074
|
target[prop] = source[prop];
|
|
36008
|
-
if (source != null && __getOwnPropSymbols$
|
|
36009
|
-
for (var prop of __getOwnPropSymbols$
|
|
36010
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36075
|
+
if (source != null && __getOwnPropSymbols$I)
|
|
36076
|
+
for (var prop of __getOwnPropSymbols$I(source)) {
|
|
36077
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
|
|
36011
36078
|
target[prop] = source[prop];
|
|
36012
36079
|
}
|
|
36013
36080
|
return target;
|
|
36014
36081
|
};
|
|
36015
|
-
var __async$
|
|
36082
|
+
var __async$N = (__this, __arguments, generator) => {
|
|
36016
36083
|
return new Promise((resolve, reject) => {
|
|
36017
36084
|
var fulfilled = (value) => {
|
|
36018
36085
|
try {
|
|
@@ -36036,7 +36103,7 @@ const useUpdateAutoFunding = () => {
|
|
|
36036
36103
|
const { client } = useShipEngine();
|
|
36037
36104
|
const queryClient = reactQuery.useQueryClient();
|
|
36038
36105
|
return reactQuery.useMutation({
|
|
36039
|
-
mutationFn: (_a) => __async$
|
|
36106
|
+
mutationFn: (_a) => __async$N(void 0, null, function* () {
|
|
36040
36107
|
var _b = _a, { carrierId } = _b, options = __objRest$q(_b, ["carrierId"]);
|
|
36041
36108
|
const result = yield client.carriers.updateAutoFunding(carrierId, options);
|
|
36042
36109
|
return result.data;
|
|
@@ -36066,7 +36133,7 @@ const useGetZonesByCarrier = (carrierId) => {
|
|
|
36066
36133
|
});
|
|
36067
36134
|
};
|
|
36068
36135
|
|
|
36069
|
-
var __async$
|
|
36136
|
+
var __async$M = (__this, __arguments, generator) => {
|
|
36070
36137
|
return new Promise((resolve, reject) => {
|
|
36071
36138
|
var fulfilled = (value) => {
|
|
36072
36139
|
try {
|
|
@@ -36089,7 +36156,7 @@ var __async$L = (__this, __arguments, generator) => {
|
|
|
36089
36156
|
const useDeleteCarrier = () => {
|
|
36090
36157
|
const { client } = useShipEngine();
|
|
36091
36158
|
return reactQuery.useMutation({
|
|
36092
|
-
mutationFn: (carrierId) => __async$
|
|
36159
|
+
mutationFn: (carrierId) => __async$M(void 0, null, function* () {
|
|
36093
36160
|
const result = yield client.carriers.delete(carrierId);
|
|
36094
36161
|
return result.data;
|
|
36095
36162
|
}),
|
|
@@ -36098,17 +36165,17 @@ const useDeleteCarrier = () => {
|
|
|
36098
36165
|
});
|
|
36099
36166
|
};
|
|
36100
36167
|
|
|
36101
|
-
var __getOwnPropSymbols$
|
|
36102
|
-
var __hasOwnProp$
|
|
36103
|
-
var __propIsEnum$
|
|
36168
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
36169
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
36170
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
36104
36171
|
var __objRest$p = (source, exclude) => {
|
|
36105
36172
|
var target = {};
|
|
36106
36173
|
for (var prop in source)
|
|
36107
|
-
if (__hasOwnProp$
|
|
36174
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36108
36175
|
target[prop] = source[prop];
|
|
36109
|
-
if (source != null && __getOwnPropSymbols$
|
|
36110
|
-
for (var prop of __getOwnPropSymbols$
|
|
36111
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36176
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
36177
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
36178
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
36112
36179
|
target[prop] = source[prop];
|
|
36113
36180
|
}
|
|
36114
36181
|
return target;
|
|
@@ -36125,17 +36192,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
36125
36192
|
});
|
|
36126
36193
|
};
|
|
36127
36194
|
|
|
36128
|
-
var __getOwnPropSymbols$
|
|
36129
|
-
var __hasOwnProp$
|
|
36130
|
-
var __propIsEnum$
|
|
36195
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
36196
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
36197
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
36131
36198
|
var __objRest$o = (source, exclude) => {
|
|
36132
36199
|
var target = {};
|
|
36133
36200
|
for (var prop in source)
|
|
36134
|
-
if (__hasOwnProp$
|
|
36201
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36135
36202
|
target[prop] = source[prop];
|
|
36136
|
-
if (source != null && __getOwnPropSymbols$
|
|
36137
|
-
for (var prop of __getOwnPropSymbols$
|
|
36138
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36203
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
36204
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
36205
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
36139
36206
|
target[prop] = source[prop];
|
|
36140
36207
|
}
|
|
36141
36208
|
return target;
|
|
@@ -36152,26 +36219,26 @@ const useListCarrierConnections = (_params) => {
|
|
|
36152
36219
|
});
|
|
36153
36220
|
};
|
|
36154
36221
|
|
|
36155
|
-
var __defProp$
|
|
36156
|
-
var __defProps$
|
|
36157
|
-
var __getOwnPropDescs$
|
|
36158
|
-
var __getOwnPropSymbols$
|
|
36159
|
-
var __hasOwnProp$
|
|
36160
|
-
var __propIsEnum$
|
|
36161
|
-
var __defNormalProp$
|
|
36162
|
-
var __spreadValues$
|
|
36222
|
+
var __defProp$z = Object.defineProperty;
|
|
36223
|
+
var __defProps$w = Object.defineProperties;
|
|
36224
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
36225
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
36226
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
36227
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
36228
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36229
|
+
var __spreadValues$z = (a, b) => {
|
|
36163
36230
|
for (var prop in b || (b = {}))
|
|
36164
|
-
if (__hasOwnProp$
|
|
36165
|
-
__defNormalProp$
|
|
36166
|
-
if (__getOwnPropSymbols$
|
|
36167
|
-
for (var prop of __getOwnPropSymbols$
|
|
36168
|
-
if (__propIsEnum$
|
|
36169
|
-
__defNormalProp$
|
|
36231
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
36232
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
36233
|
+
if (__getOwnPropSymbols$F)
|
|
36234
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
36235
|
+
if (__propIsEnum$F.call(b, prop))
|
|
36236
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
36170
36237
|
}
|
|
36171
36238
|
return a;
|
|
36172
36239
|
};
|
|
36173
|
-
var __spreadProps$
|
|
36174
|
-
var __async$
|
|
36240
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
36241
|
+
var __async$L = (__this, __arguments, generator) => {
|
|
36175
36242
|
return new Promise((resolve, reject) => {
|
|
36176
36243
|
var fulfilled = (value) => {
|
|
36177
36244
|
try {
|
|
@@ -36194,8 +36261,8 @@ var __async$K = (__this, __arguments, generator) => {
|
|
|
36194
36261
|
const useConnectCarrierAccount = () => {
|
|
36195
36262
|
const { client } = useShipEngine();
|
|
36196
36263
|
return reactQuery.useMutation({
|
|
36197
|
-
mutationFn: (_0) => __async$
|
|
36198
|
-
const formDataWithFlag = __spreadProps$
|
|
36264
|
+
mutationFn: (_0) => __async$L(void 0, [_0], function* ({ carrierName, formData }) {
|
|
36265
|
+
const formDataWithFlag = __spreadProps$w(__spreadValues$z({}, formData), { __skipDecamelize: true });
|
|
36199
36266
|
const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
|
|
36200
36267
|
return result.data;
|
|
36201
36268
|
}),
|
|
@@ -36215,33 +36282,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
36215
36282
|
});
|
|
36216
36283
|
};
|
|
36217
36284
|
|
|
36218
|
-
var __defProp$
|
|
36219
|
-
var __defProps$
|
|
36220
|
-
var __getOwnPropDescs$
|
|
36221
|
-
var __getOwnPropSymbols$
|
|
36222
|
-
var __hasOwnProp$
|
|
36223
|
-
var __propIsEnum$
|
|
36224
|
-
var __defNormalProp$
|
|
36225
|
-
var __spreadValues$
|
|
36285
|
+
var __defProp$y = Object.defineProperty;
|
|
36286
|
+
var __defProps$v = Object.defineProperties;
|
|
36287
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
36288
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
36289
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
36290
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
36291
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36292
|
+
var __spreadValues$y = (a, b) => {
|
|
36226
36293
|
for (var prop in b || (b = {}))
|
|
36227
|
-
if (__hasOwnProp$
|
|
36228
|
-
__defNormalProp$
|
|
36229
|
-
if (__getOwnPropSymbols$
|
|
36230
|
-
for (var prop of __getOwnPropSymbols$
|
|
36231
|
-
if (__propIsEnum$
|
|
36232
|
-
__defNormalProp$
|
|
36294
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
36295
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
36296
|
+
if (__getOwnPropSymbols$E)
|
|
36297
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
36298
|
+
if (__propIsEnum$E.call(b, prop))
|
|
36299
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
36233
36300
|
}
|
|
36234
36301
|
return a;
|
|
36235
36302
|
};
|
|
36236
|
-
var __spreadProps$
|
|
36303
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
36237
36304
|
var __objRest$n = (source, exclude) => {
|
|
36238
36305
|
var target = {};
|
|
36239
36306
|
for (var prop in source)
|
|
36240
|
-
if (__hasOwnProp$
|
|
36307
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36241
36308
|
target[prop] = source[prop];
|
|
36242
|
-
if (source != null && __getOwnPropSymbols$
|
|
36243
|
-
for (var prop of __getOwnPropSymbols$
|
|
36244
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36309
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
36310
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
36311
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
36245
36312
|
target[prop] = source[prop];
|
|
36246
36313
|
}
|
|
36247
36314
|
return target;
|
|
@@ -36254,7 +36321,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
36254
36321
|
]);
|
|
36255
36322
|
const { client } = useShipEngine();
|
|
36256
36323
|
const { carrierName, carrierId } = queryFnParams;
|
|
36257
|
-
return reactQuery.useQuery(__spreadProps$
|
|
36324
|
+
return reactQuery.useQuery(__spreadProps$v(__spreadValues$y({}, params), {
|
|
36258
36325
|
onError,
|
|
36259
36326
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
36260
36327
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -36262,26 +36329,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
36262
36329
|
}));
|
|
36263
36330
|
};
|
|
36264
36331
|
|
|
36265
|
-
var __defProp$
|
|
36266
|
-
var __defProps$
|
|
36267
|
-
var __getOwnPropDescs$
|
|
36268
|
-
var __getOwnPropSymbols$
|
|
36269
|
-
var __hasOwnProp$
|
|
36270
|
-
var __propIsEnum$
|
|
36271
|
-
var __defNormalProp$
|
|
36272
|
-
var __spreadValues$
|
|
36332
|
+
var __defProp$x = Object.defineProperty;
|
|
36333
|
+
var __defProps$u = Object.defineProperties;
|
|
36334
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
36335
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
36336
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
36337
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
36338
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36339
|
+
var __spreadValues$x = (a, b) => {
|
|
36273
36340
|
for (var prop in b || (b = {}))
|
|
36274
|
-
if (__hasOwnProp$
|
|
36275
|
-
__defNormalProp$
|
|
36276
|
-
if (__getOwnPropSymbols$
|
|
36277
|
-
for (var prop of __getOwnPropSymbols$
|
|
36278
|
-
if (__propIsEnum$
|
|
36279
|
-
__defNormalProp$
|
|
36341
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
36342
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
36343
|
+
if (__getOwnPropSymbols$D)
|
|
36344
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
36345
|
+
if (__propIsEnum$D.call(b, prop))
|
|
36346
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
36280
36347
|
}
|
|
36281
36348
|
return a;
|
|
36282
36349
|
};
|
|
36283
|
-
var __spreadProps$
|
|
36284
|
-
var __async$
|
|
36350
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
36351
|
+
var __async$K = (__this, __arguments, generator) => {
|
|
36285
36352
|
return new Promise((resolve, reject) => {
|
|
36286
36353
|
var fulfilled = (value) => {
|
|
36287
36354
|
try {
|
|
@@ -36303,8 +36370,8 @@ var __async$J = (__this, __arguments, generator) => {
|
|
|
36303
36370
|
};
|
|
36304
36371
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
36305
36372
|
const { client } = useShipEngine();
|
|
36306
|
-
return reactQuery.useMutation(__spreadProps$
|
|
36307
|
-
mutationFn: (_0) => __async$
|
|
36373
|
+
return reactQuery.useMutation(__spreadProps$u(__spreadValues$x({}, params), {
|
|
36374
|
+
mutationFn: (_0) => __async$K(void 0, [_0], function* ({
|
|
36308
36375
|
carrierName,
|
|
36309
36376
|
carrierId,
|
|
36310
36377
|
formData
|
|
@@ -36321,26 +36388,26 @@ const useUpdateConnectionsCarrierSettings = (params) => {
|
|
|
36321
36388
|
}));
|
|
36322
36389
|
};
|
|
36323
36390
|
|
|
36324
|
-
var __defProp$
|
|
36325
|
-
var __defProps$
|
|
36326
|
-
var __getOwnPropDescs$
|
|
36327
|
-
var __getOwnPropSymbols$
|
|
36328
|
-
var __hasOwnProp$
|
|
36329
|
-
var __propIsEnum$
|
|
36330
|
-
var __defNormalProp$
|
|
36331
|
-
var __spreadValues$
|
|
36391
|
+
var __defProp$w = Object.defineProperty;
|
|
36392
|
+
var __defProps$t = Object.defineProperties;
|
|
36393
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
36394
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
36395
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
36396
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
36397
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36398
|
+
var __spreadValues$w = (a, b) => {
|
|
36332
36399
|
for (var prop in b || (b = {}))
|
|
36333
|
-
if (__hasOwnProp$
|
|
36334
|
-
__defNormalProp$
|
|
36335
|
-
if (__getOwnPropSymbols$
|
|
36336
|
-
for (var prop of __getOwnPropSymbols$
|
|
36337
|
-
if (__propIsEnum$
|
|
36338
|
-
__defNormalProp$
|
|
36400
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
36401
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
36402
|
+
if (__getOwnPropSymbols$C)
|
|
36403
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
36404
|
+
if (__propIsEnum$C.call(b, prop))
|
|
36405
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
36339
36406
|
}
|
|
36340
36407
|
return a;
|
|
36341
36408
|
};
|
|
36342
|
-
var __spreadProps$
|
|
36343
|
-
var __async$
|
|
36409
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
36410
|
+
var __async$J = (__this, __arguments, generator) => {
|
|
36344
36411
|
return new Promise((resolve, reject) => {
|
|
36345
36412
|
var fulfilled = (value) => {
|
|
36346
36413
|
try {
|
|
@@ -36362,8 +36429,8 @@ var __async$I = (__this, __arguments, generator) => {
|
|
|
36362
36429
|
};
|
|
36363
36430
|
const useRequestStampsAccountUrls = (params) => {
|
|
36364
36431
|
const { client } = useShipEngine();
|
|
36365
|
-
return reactQuery.useMutation(__spreadProps$
|
|
36366
|
-
mutationFn: (request) => __async$
|
|
36432
|
+
return reactQuery.useMutation(__spreadProps$t(__spreadValues$w({}, params), {
|
|
36433
|
+
mutationFn: (request) => __async$J(void 0, null, function* () {
|
|
36367
36434
|
const result = yield client.connections.requestStampsAccountUrls(request);
|
|
36368
36435
|
return result.data;
|
|
36369
36436
|
}),
|
|
@@ -36382,6 +36449,38 @@ const useListCustomPackageTypes = () => {
|
|
|
36382
36449
|
});
|
|
36383
36450
|
};
|
|
36384
36451
|
|
|
36452
|
+
var __async$I = (__this, __arguments, generator) => {
|
|
36453
|
+
return new Promise((resolve, reject) => {
|
|
36454
|
+
var fulfilled = (value) => {
|
|
36455
|
+
try {
|
|
36456
|
+
step(generator.next(value));
|
|
36457
|
+
} catch (e) {
|
|
36458
|
+
reject(e);
|
|
36459
|
+
}
|
|
36460
|
+
};
|
|
36461
|
+
var rejected = (value) => {
|
|
36462
|
+
try {
|
|
36463
|
+
step(generator.throw(value));
|
|
36464
|
+
} catch (e) {
|
|
36465
|
+
reject(e);
|
|
36466
|
+
}
|
|
36467
|
+
};
|
|
36468
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
36469
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
36470
|
+
});
|
|
36471
|
+
};
|
|
36472
|
+
const useAcceptFundingSourceTerms = (fundingSourceId) => {
|
|
36473
|
+
const { client } = useShipEngine();
|
|
36474
|
+
return reactQuery.useMutation({
|
|
36475
|
+
mutationFn: (request) => __async$I(void 0, null, function* () {
|
|
36476
|
+
const result = yield client.fundingSources.acceptTerms(fundingSourceId, request);
|
|
36477
|
+
return result.data.acceptedTerms;
|
|
36478
|
+
}),
|
|
36479
|
+
mutationKey: ["useAcceptFundingSourceTerms", fundingSourceId],
|
|
36480
|
+
onError
|
|
36481
|
+
});
|
|
36482
|
+
};
|
|
36483
|
+
|
|
36385
36484
|
var __async$H = (__this, __arguments, generator) => {
|
|
36386
36485
|
return new Promise((resolve, reject) => {
|
|
36387
36486
|
var fulfilled = (value) => {
|
|
@@ -36446,6 +36545,36 @@ const useFundingSourcesAddFunds = () => {
|
|
|
36446
36545
|
});
|
|
36447
36546
|
};
|
|
36448
36547
|
|
|
36548
|
+
var __defProp$v = Object.defineProperty;
|
|
36549
|
+
var __defProps$s = Object.defineProperties;
|
|
36550
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
36551
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
36552
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
36553
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
36554
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36555
|
+
var __spreadValues$v = (a, b) => {
|
|
36556
|
+
for (var prop in b || (b = {}))
|
|
36557
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
36558
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
36559
|
+
if (__getOwnPropSymbols$B)
|
|
36560
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
36561
|
+
if (__propIsEnum$B.call(b, prop))
|
|
36562
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
36563
|
+
}
|
|
36564
|
+
return a;
|
|
36565
|
+
};
|
|
36566
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
36567
|
+
const useGetFundingSourceAcceptedTerms = (fundingSourceId, params) => {
|
|
36568
|
+
const { client } = useShipEngine();
|
|
36569
|
+
const queryParams = __spreadValues$v({}, params);
|
|
36570
|
+
return reactQuery.useQuery(__spreadProps$s(__spreadValues$v({}, queryParams), {
|
|
36571
|
+
onError,
|
|
36572
|
+
queryFn: () => client.fundingSources.acceptedTerms(fundingSourceId),
|
|
36573
|
+
queryKey: ["useGetFundingSourceAcceptedTerms", fundingSourceId],
|
|
36574
|
+
select: (result) => result.data.acceptedTerms
|
|
36575
|
+
}));
|
|
36576
|
+
};
|
|
36577
|
+
|
|
36449
36578
|
const useGetFundingSourceById = (fundingSourceId) => {
|
|
36450
36579
|
const { client } = useShipEngine();
|
|
36451
36580
|
return reactQuery.useQuery({
|
|
@@ -40371,6 +40500,8 @@ exports.logger = logger;
|
|
|
40371
40500
|
exports.onError = onError;
|
|
40372
40501
|
exports.parseError = parseError;
|
|
40373
40502
|
exports.retryUntil = retryUntil;
|
|
40503
|
+
exports.useAcceptCarrierTerms = useAcceptCarrierTerms;
|
|
40504
|
+
exports.useAcceptFundingSourceTerms = useAcceptFundingSourceTerms;
|
|
40374
40505
|
exports.useAddFunds = useAddFunds;
|
|
40375
40506
|
exports.useAddInsuranceFunds = useAddInsuranceFunds;
|
|
40376
40507
|
exports.useAddSandboxCarriers = useAddSandboxCarriers;
|
|
@@ -40422,6 +40553,7 @@ exports.useGetCarrierConnectionForm = useGetCarrierConnectionForm;
|
|
|
40422
40553
|
exports.useGetConnectionsCarrierSettings = useGetConnectionsCarrierSettings;
|
|
40423
40554
|
exports.useGetCountriesByCarrier = useGetCountriesByCarrier;
|
|
40424
40555
|
exports.useGetCurrenciesByCarrier = useGetCurrenciesByCarrier;
|
|
40556
|
+
exports.useGetFundingSourceAcceptedTerms = useGetFundingSourceAcceptedTerms;
|
|
40425
40557
|
exports.useGetFundingSourceById = useGetFundingSourceById;
|
|
40426
40558
|
exports.useGetFundingSourceMetadata = useGetFundingSourceMetadata;
|
|
40427
40559
|
exports.useGetFundingSourceTransactions = useGetFundingSourceTransactions;
|