@shipengine/alchemy 6.0.46 → 6.0.47
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 +270 -225
- package/index.mjs +270 -225
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4883,33 +4883,41 @@ var _getHolder = getHolder$2;
|
|
|
4883
4883
|
|
|
4884
4884
|
/** Used as references for various `Number` constants. */
|
|
4885
4885
|
|
|
4886
|
-
var
|
|
4886
|
+
var _isIndex;
|
|
4887
|
+
var hasRequired_isIndex;
|
|
4887
4888
|
|
|
4888
|
-
|
|
4889
|
-
|
|
4889
|
+
function require_isIndex () {
|
|
4890
|
+
if (hasRequired_isIndex) return _isIndex;
|
|
4891
|
+
hasRequired_isIndex = 1;
|
|
4892
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4890
4893
|
|
|
4891
|
-
/**
|
|
4892
|
-
|
|
4893
|
-
*
|
|
4894
|
-
* @private
|
|
4895
|
-
* @param {*} value The value to check.
|
|
4896
|
-
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4897
|
-
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4898
|
-
*/
|
|
4899
|
-
function isIndex$3(value, length) {
|
|
4900
|
-
var type = typeof value;
|
|
4901
|
-
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
4894
|
+
/** Used to detect unsigned integer values. */
|
|
4895
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
4902
4896
|
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
}
|
|
4897
|
+
/**
|
|
4898
|
+
* Checks if `value` is a valid array-like index.
|
|
4899
|
+
*
|
|
4900
|
+
* @private
|
|
4901
|
+
* @param {*} value The value to check.
|
|
4902
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4903
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4904
|
+
*/
|
|
4905
|
+
function isIndex(value, length) {
|
|
4906
|
+
var type = typeof value;
|
|
4907
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
4908
|
+
|
|
4909
|
+
return !!length &&
|
|
4910
|
+
(type == 'number' ||
|
|
4911
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4912
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
4913
|
+
}
|
|
4908
4914
|
|
|
4909
|
-
|
|
4915
|
+
_isIndex = isIndex;
|
|
4916
|
+
return _isIndex;
|
|
4917
|
+
}
|
|
4910
4918
|
|
|
4911
4919
|
var copyArray$2 = _copyArray,
|
|
4912
|
-
isIndex$2 =
|
|
4920
|
+
isIndex$2 = require_isIndex();
|
|
4913
4921
|
|
|
4914
4922
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4915
4923
|
var nativeMin$1 = Math.min;
|
|
@@ -6102,7 +6110,7 @@ var baseTimes = _baseTimes,
|
|
|
6102
6110
|
isArguments$2 = requireIsArguments(),
|
|
6103
6111
|
isArray$f = isArray_1,
|
|
6104
6112
|
isBuffer$4 = isBufferExports,
|
|
6105
|
-
isIndex$1 =
|
|
6113
|
+
isIndex$1 = require_isIndex(),
|
|
6106
6114
|
isTypedArray$1 = requireIsTypedArray();
|
|
6107
6115
|
|
|
6108
6116
|
/** Used for built-in method references. */
|
|
@@ -9433,7 +9441,7 @@ var _baseHasIn = baseHasIn$1;
|
|
|
9433
9441
|
var castPath = _castPath,
|
|
9434
9442
|
isArguments$1 = requireIsArguments(),
|
|
9435
9443
|
isArray$8 = isArray_1,
|
|
9436
|
-
isIndex =
|
|
9444
|
+
isIndex = require_isIndex(),
|
|
9437
9445
|
isLength = isLength_1,
|
|
9438
9446
|
toKey$3 = _toKey;
|
|
9439
9447
|
|
|
@@ -10323,7 +10331,7 @@ function require_isIterateeCall () {
|
|
|
10323
10331
|
hasRequired_isIterateeCall = 1;
|
|
10324
10332
|
var eq = requireEq(),
|
|
10325
10333
|
isArrayLike = isArrayLike_1,
|
|
10326
|
-
isIndex =
|
|
10334
|
+
isIndex = require_isIndex(),
|
|
10327
10335
|
isObject = isObject_1;
|
|
10328
10336
|
|
|
10329
10337
|
/**
|
|
@@ -10790,17 +10798,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
|
|
|
10790
10798
|
return AccountBillingPlanChangeType2;
|
|
10791
10799
|
})(AccountBillingPlanChangeType || {});
|
|
10792
10800
|
|
|
10793
|
-
var __getOwnPropSymbols$
|
|
10794
|
-
var __hasOwnProp$
|
|
10795
|
-
var __propIsEnum$
|
|
10796
|
-
var __objRest$
|
|
10801
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
10802
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
10803
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
10804
|
+
var __objRest$v = (source, exclude) => {
|
|
10797
10805
|
var target = {};
|
|
10798
10806
|
for (var prop in source)
|
|
10799
|
-
if (__hasOwnProp$
|
|
10807
|
+
if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10800
10808
|
target[prop] = source[prop];
|
|
10801
|
-
if (source != null && __getOwnPropSymbols$
|
|
10802
|
-
for (var prop of __getOwnPropSymbols$
|
|
10803
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10809
|
+
if (source != null && __getOwnPropSymbols$R)
|
|
10810
|
+
for (var prop of __getOwnPropSymbols$R(source)) {
|
|
10811
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
|
|
10804
10812
|
target[prop] = source[prop];
|
|
10805
10813
|
}
|
|
10806
10814
|
return target;
|
|
@@ -10814,7 +10822,7 @@ class CodedError {
|
|
|
10814
10822
|
this.message = message;
|
|
10815
10823
|
}
|
|
10816
10824
|
static fromObject(_a) {
|
|
10817
|
-
var _b = _a, { message } = _b, options = __objRest$
|
|
10825
|
+
var _b = _a, { message } = _b, options = __objRest$v(_b, ["message"]);
|
|
10818
10826
|
return new CodedError(message, options);
|
|
10819
10827
|
}
|
|
10820
10828
|
}
|
|
@@ -10935,17 +10943,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10935
10943
|
RateCardStatus
|
|
10936
10944
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10937
10945
|
|
|
10938
|
-
var __getOwnPropSymbols$
|
|
10939
|
-
var __hasOwnProp$
|
|
10940
|
-
var __propIsEnum$
|
|
10941
|
-
var __objRest$
|
|
10946
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
10947
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
10948
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
10949
|
+
var __objRest$u = (source, exclude) => {
|
|
10942
10950
|
var target = {};
|
|
10943
10951
|
for (var prop in source)
|
|
10944
|
-
if (__hasOwnProp$
|
|
10952
|
+
if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10945
10953
|
target[prop] = source[prop];
|
|
10946
|
-
if (source != null && __getOwnPropSymbols$
|
|
10947
|
-
for (var prop of __getOwnPropSymbols$
|
|
10948
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10954
|
+
if (source != null && __getOwnPropSymbols$Q)
|
|
10955
|
+
for (var prop of __getOwnPropSymbols$Q(source)) {
|
|
10956
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
|
|
10949
10957
|
target[prop] = source[prop];
|
|
10950
10958
|
}
|
|
10951
10959
|
return target;
|
|
@@ -10977,7 +10985,7 @@ class AccountSettingsAPI {
|
|
|
10977
10985
|
* The `updateImage` method updates specific image data for a given image id.
|
|
10978
10986
|
*/
|
|
10979
10987
|
this.updateImage = (_a) => {
|
|
10980
|
-
var _b = _a, { labelImageId } = _b, data = __objRest$
|
|
10988
|
+
var _b = _a, { labelImageId } = _b, data = __objRest$u(_b, ["labelImageId"]);
|
|
10981
10989
|
return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
|
|
10982
10990
|
};
|
|
10983
10991
|
/**
|
|
@@ -13826,33 +13834,33 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13826
13834
|
return obj;
|
|
13827
13835
|
};
|
|
13828
13836
|
|
|
13829
|
-
var __defProp$
|
|
13830
|
-
var __defProps$
|
|
13831
|
-
var __getOwnPropDescs$
|
|
13832
|
-
var __getOwnPropSymbols$
|
|
13833
|
-
var __hasOwnProp$
|
|
13834
|
-
var __propIsEnum$
|
|
13835
|
-
var __defNormalProp$
|
|
13836
|
-
var __spreadValues$
|
|
13837
|
+
var __defProp$F = Object.defineProperty;
|
|
13838
|
+
var __defProps$z = Object.defineProperties;
|
|
13839
|
+
var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
|
|
13840
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
13841
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
13842
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
13843
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13844
|
+
var __spreadValues$F = (a, b) => {
|
|
13837
13845
|
for (var prop in b || (b = {}))
|
|
13838
|
-
if (__hasOwnProp$
|
|
13839
|
-
__defNormalProp$
|
|
13840
|
-
if (__getOwnPropSymbols$
|
|
13841
|
-
for (var prop of __getOwnPropSymbols$
|
|
13842
|
-
if (__propIsEnum$
|
|
13843
|
-
__defNormalProp$
|
|
13846
|
+
if (__hasOwnProp$P.call(b, prop))
|
|
13847
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
13848
|
+
if (__getOwnPropSymbols$P)
|
|
13849
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
13850
|
+
if (__propIsEnum$P.call(b, prop))
|
|
13851
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
13844
13852
|
}
|
|
13845
13853
|
return a;
|
|
13846
13854
|
};
|
|
13847
|
-
var __spreadProps$
|
|
13848
|
-
var __objRest$
|
|
13855
|
+
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
13856
|
+
var __objRest$t = (source, exclude) => {
|
|
13849
13857
|
var target = {};
|
|
13850
13858
|
for (var prop in source)
|
|
13851
|
-
if (__hasOwnProp$
|
|
13859
|
+
if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13852
13860
|
target[prop] = source[prop];
|
|
13853
|
-
if (source != null && __getOwnPropSymbols$
|
|
13854
|
-
for (var prop of __getOwnPropSymbols$
|
|
13855
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13861
|
+
if (source != null && __getOwnPropSymbols$P)
|
|
13862
|
+
for (var prop of __getOwnPropSymbols$P(source)) {
|
|
13863
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
|
|
13856
13864
|
target[prop] = source[prop];
|
|
13857
13865
|
}
|
|
13858
13866
|
return target;
|
|
@@ -13898,11 +13906,11 @@ class CarriersAPI {
|
|
|
13898
13906
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
13899
13907
|
*/
|
|
13900
13908
|
this.connect = (_a) => __async$$(this, null, function* () {
|
|
13901
|
-
var _b = _a, { carrierCode } = _b, connection = __objRest$
|
|
13909
|
+
var _b = _a, { carrierCode } = _b, connection = __objRest$t(_b, ["carrierCode"]);
|
|
13902
13910
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13903
13911
|
if (!endUserIpAddress)
|
|
13904
13912
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13905
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13913
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$z(__spreadValues$F({}, connection), {
|
|
13906
13914
|
endUserIpAddress
|
|
13907
13915
|
}));
|
|
13908
13916
|
});
|
|
@@ -16186,19 +16194,19 @@ class CustomPackagesAPI {
|
|
|
16186
16194
|
}
|
|
16187
16195
|
}
|
|
16188
16196
|
|
|
16189
|
-
var __defProp$
|
|
16190
|
-
var __getOwnPropSymbols$
|
|
16191
|
-
var __hasOwnProp$
|
|
16192
|
-
var __propIsEnum$
|
|
16193
|
-
var __defNormalProp$
|
|
16194
|
-
var __spreadValues$
|
|
16197
|
+
var __defProp$E = Object.defineProperty;
|
|
16198
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
16199
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
16200
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
16201
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16202
|
+
var __spreadValues$E = (a, b) => {
|
|
16195
16203
|
for (var prop in b || (b = {}))
|
|
16196
|
-
if (__hasOwnProp$
|
|
16197
|
-
__defNormalProp$
|
|
16198
|
-
if (__getOwnPropSymbols$
|
|
16199
|
-
for (var prop of __getOwnPropSymbols$
|
|
16200
|
-
if (__propIsEnum$
|
|
16201
|
-
__defNormalProp$
|
|
16204
|
+
if (__hasOwnProp$O.call(b, prop))
|
|
16205
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
16206
|
+
if (__getOwnPropSymbols$O)
|
|
16207
|
+
for (var prop of __getOwnPropSymbols$O(b)) {
|
|
16208
|
+
if (__propIsEnum$O.call(b, prop))
|
|
16209
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
16202
16210
|
}
|
|
16203
16211
|
return a;
|
|
16204
16212
|
};
|
|
@@ -16246,7 +16254,7 @@ class FundingSourcesAPI {
|
|
|
16246
16254
|
if (!endUserIpAddress) {
|
|
16247
16255
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16248
16256
|
}
|
|
16249
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16257
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$E({
|
|
16250
16258
|
endUserIpAddress
|
|
16251
16259
|
}, createFundingSource));
|
|
16252
16260
|
});
|
|
@@ -16265,7 +16273,7 @@ class FundingSourcesAPI {
|
|
|
16265
16273
|
{
|
|
16266
16274
|
billingInfo,
|
|
16267
16275
|
endUserIpAddress,
|
|
16268
|
-
paymentMethod: __spreadValues$
|
|
16276
|
+
paymentMethod: __spreadValues$E({
|
|
16269
16277
|
bankAccountInfo,
|
|
16270
16278
|
creditCardInfo
|
|
16271
16279
|
}, auctanePayInfo)
|
|
@@ -16281,7 +16289,7 @@ class FundingSourcesAPI {
|
|
|
16281
16289
|
if (!endUserIpAddress) {
|
|
16282
16290
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16283
16291
|
}
|
|
16284
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16292
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$E({
|
|
16285
16293
|
endUserIpAddress
|
|
16286
16294
|
}, carrier));
|
|
16287
16295
|
});
|
|
@@ -16450,17 +16458,17 @@ class LabelsAPI {
|
|
|
16450
16458
|
}
|
|
16451
16459
|
}
|
|
16452
16460
|
|
|
16453
|
-
var __getOwnPropSymbols$
|
|
16454
|
-
var __hasOwnProp$
|
|
16455
|
-
var __propIsEnum$
|
|
16456
|
-
var __objRest$
|
|
16461
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
16462
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
16463
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
16464
|
+
var __objRest$s = (source, exclude) => {
|
|
16457
16465
|
var target = {};
|
|
16458
16466
|
for (var prop in source)
|
|
16459
|
-
if (__hasOwnProp$
|
|
16467
|
+
if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16460
16468
|
target[prop] = source[prop];
|
|
16461
|
-
if (source != null && __getOwnPropSymbols$
|
|
16462
|
-
for (var prop of __getOwnPropSymbols$
|
|
16463
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16469
|
+
if (source != null && __getOwnPropSymbols$N)
|
|
16470
|
+
for (var prop of __getOwnPropSymbols$N(source)) {
|
|
16471
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
|
|
16464
16472
|
target[prop] = source[prop];
|
|
16465
16473
|
}
|
|
16466
16474
|
return target;
|
|
@@ -16492,7 +16500,7 @@ class OrderSourcesAPI {
|
|
|
16492
16500
|
* The `update` method will allow the user to update a connected Order Source
|
|
16493
16501
|
*/
|
|
16494
16502
|
this.update = (_a) => {
|
|
16495
|
-
var _b = _a, { orderSourceId } = _b, rest = __objRest$
|
|
16503
|
+
var _b = _a, { orderSourceId } = _b, rest = __objRest$s(_b, ["orderSourceId"]);
|
|
16496
16504
|
return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
|
|
16497
16505
|
};
|
|
16498
16506
|
/**
|
|
@@ -16581,19 +16589,19 @@ class RateCardsAPI {
|
|
|
16581
16589
|
}
|
|
16582
16590
|
}
|
|
16583
16591
|
|
|
16584
|
-
var __defProp$
|
|
16585
|
-
var __getOwnPropSymbols$
|
|
16586
|
-
var __hasOwnProp$
|
|
16587
|
-
var __propIsEnum$
|
|
16588
|
-
var __defNormalProp$
|
|
16589
|
-
var __spreadValues$
|
|
16592
|
+
var __defProp$D = Object.defineProperty;
|
|
16593
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
16594
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
16595
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
|
16596
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16597
|
+
var __spreadValues$D = (a, b) => {
|
|
16590
16598
|
for (var prop in b || (b = {}))
|
|
16591
|
-
if (__hasOwnProp$
|
|
16592
|
-
__defNormalProp$
|
|
16593
|
-
if (__getOwnPropSymbols$
|
|
16594
|
-
for (var prop of __getOwnPropSymbols$
|
|
16595
|
-
if (__propIsEnum$
|
|
16596
|
-
__defNormalProp$
|
|
16599
|
+
if (__hasOwnProp$M.call(b, prop))
|
|
16600
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
16601
|
+
if (__getOwnPropSymbols$M)
|
|
16602
|
+
for (var prop of __getOwnPropSymbols$M(b)) {
|
|
16603
|
+
if (__propIsEnum$M.call(b, prop))
|
|
16604
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
16597
16605
|
}
|
|
16598
16606
|
return a;
|
|
16599
16607
|
};
|
|
@@ -16615,7 +16623,7 @@ class RatesAPI {
|
|
|
16615
16623
|
* method.
|
|
16616
16624
|
*/
|
|
16617
16625
|
this.estimate = (params) => {
|
|
16618
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16626
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$D({}, params));
|
|
16619
16627
|
};
|
|
16620
16628
|
this.client = client;
|
|
16621
16629
|
}
|
|
@@ -16799,19 +16807,19 @@ class SellersAPI {
|
|
|
16799
16807
|
}
|
|
16800
16808
|
}
|
|
16801
16809
|
|
|
16802
|
-
var __defProp$
|
|
16803
|
-
var __getOwnPropSymbols$
|
|
16804
|
-
var __hasOwnProp$
|
|
16805
|
-
var __propIsEnum$
|
|
16806
|
-
var __defNormalProp$
|
|
16807
|
-
var __spreadValues$
|
|
16810
|
+
var __defProp$C = Object.defineProperty;
|
|
16811
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
16812
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
16813
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
|
16814
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16815
|
+
var __spreadValues$C = (a, b) => {
|
|
16808
16816
|
for (var prop in b || (b = {}))
|
|
16809
|
-
if (__hasOwnProp$
|
|
16810
|
-
__defNormalProp$
|
|
16811
|
-
if (__getOwnPropSymbols$
|
|
16812
|
-
for (var prop of __getOwnPropSymbols$
|
|
16813
|
-
if (__propIsEnum$
|
|
16814
|
-
__defNormalProp$
|
|
16817
|
+
if (__hasOwnProp$L.call(b, prop))
|
|
16818
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
16819
|
+
if (__getOwnPropSymbols$L)
|
|
16820
|
+
for (var prop of __getOwnPropSymbols$L(b)) {
|
|
16821
|
+
if (__propIsEnum$L.call(b, prop))
|
|
16822
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
16815
16823
|
}
|
|
16816
16824
|
return a;
|
|
16817
16825
|
};
|
|
@@ -16823,7 +16831,7 @@ class ServicePointsAPI {
|
|
|
16823
16831
|
* Either an address, coordinates, or an address query
|
|
16824
16832
|
*/
|
|
16825
16833
|
this.list = (options) => {
|
|
16826
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16834
|
+
return this.client.post("/v1/service_points/list", __spreadValues$C({}, options));
|
|
16827
16835
|
};
|
|
16828
16836
|
/**
|
|
16829
16837
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -34294,25 +34302,37 @@ class WebhooksAPI {
|
|
|
34294
34302
|
}
|
|
34295
34303
|
}
|
|
34296
34304
|
|
|
34297
|
-
var __defProp$
|
|
34298
|
-
var __defProps$
|
|
34299
|
-
var __getOwnPropDescs$
|
|
34300
|
-
var __getOwnPropSymbols$
|
|
34301
|
-
var __hasOwnProp$
|
|
34302
|
-
var __propIsEnum$
|
|
34303
|
-
var __defNormalProp$
|
|
34304
|
-
var __spreadValues$
|
|
34305
|
+
var __defProp$B = Object.defineProperty;
|
|
34306
|
+
var __defProps$y = Object.defineProperties;
|
|
34307
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
34308
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
34309
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
|
34310
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
|
34311
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34312
|
+
var __spreadValues$B = (a, b) => {
|
|
34305
34313
|
for (var prop in b || (b = {}))
|
|
34306
|
-
if (__hasOwnProp$
|
|
34307
|
-
__defNormalProp$
|
|
34308
|
-
if (__getOwnPropSymbols$
|
|
34309
|
-
for (var prop of __getOwnPropSymbols$
|
|
34310
|
-
if (__propIsEnum$
|
|
34311
|
-
__defNormalProp$
|
|
34314
|
+
if (__hasOwnProp$K.call(b, prop))
|
|
34315
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
34316
|
+
if (__getOwnPropSymbols$K)
|
|
34317
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
|
34318
|
+
if (__propIsEnum$K.call(b, prop))
|
|
34319
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
34312
34320
|
}
|
|
34313
34321
|
return a;
|
|
34314
34322
|
};
|
|
34315
|
-
var __spreadProps$
|
|
34323
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
34324
|
+
var __objRest$r = (source, exclude) => {
|
|
34325
|
+
var target = {};
|
|
34326
|
+
for (var prop in source)
|
|
34327
|
+
if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34328
|
+
target[prop] = source[prop];
|
|
34329
|
+
if (source != null && __getOwnPropSymbols$K)
|
|
34330
|
+
for (var prop of __getOwnPropSymbols$K(source)) {
|
|
34331
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
|
|
34332
|
+
target[prop] = source[prop];
|
|
34333
|
+
}
|
|
34334
|
+
return target;
|
|
34335
|
+
};
|
|
34316
34336
|
var __async$V = (__this, __arguments, generator) => {
|
|
34317
34337
|
return new Promise((resolve, reject) => {
|
|
34318
34338
|
var fulfilled = (value) => {
|
|
@@ -34336,7 +34356,7 @@ var __async$V = (__this, __arguments, generator) => {
|
|
|
34336
34356
|
const logger$1 = E({
|
|
34337
34357
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34338
34358
|
name: "shipengine-api",
|
|
34339
|
-
serializers: __spreadProps$
|
|
34359
|
+
serializers: __spreadProps$y(__spreadValues$B({}, k), {
|
|
34340
34360
|
req: (req) => ({
|
|
34341
34361
|
headers: req.headers,
|
|
34342
34362
|
method: req.method,
|
|
@@ -34361,16 +34381,21 @@ class ShipEngineAPI {
|
|
|
34361
34381
|
this.getSandboxToken = getSandboxToken;
|
|
34362
34382
|
const client = axios.create({
|
|
34363
34383
|
baseURL,
|
|
34364
|
-
headers: __spreadProps$
|
|
34384
|
+
headers: __spreadProps$y(__spreadValues$B({}, headers), {
|
|
34365
34385
|
"Content-Type": "application/json"
|
|
34366
34386
|
}),
|
|
34367
34387
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
34368
34388
|
transformRequest: [
|
|
34369
34389
|
(data) => {
|
|
34370
|
-
if (data && !(data instanceof FormData))
|
|
34390
|
+
if (data && !(data instanceof FormData) && !data.__skipDecamelize)
|
|
34371
34391
|
return decamelizeKeys(data);
|
|
34372
|
-
else
|
|
34392
|
+
else {
|
|
34393
|
+
if (data && data.__skipDecamelize) {
|
|
34394
|
+
const _a = data, cleanData = __objRest$r(_a, ["__skipDecamelize"]);
|
|
34395
|
+
return cleanData;
|
|
34396
|
+
}
|
|
34373
34397
|
return data;
|
|
34398
|
+
}
|
|
34374
34399
|
},
|
|
34375
34400
|
(data) => {
|
|
34376
34401
|
if (data && !(data instanceof FormData))
|
|
@@ -34765,25 +34790,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34765
34790
|
|
|
34766
34791
|
const onError = (_errors) => _default();
|
|
34767
34792
|
|
|
34768
|
-
var __defProp$
|
|
34769
|
-
var __defProps$
|
|
34770
|
-
var __getOwnPropDescs$
|
|
34771
|
-
var __getOwnPropSymbols$
|
|
34772
|
-
var __hasOwnProp$
|
|
34773
|
-
var __propIsEnum$
|
|
34774
|
-
var __defNormalProp$
|
|
34775
|
-
var __spreadValues$
|
|
34793
|
+
var __defProp$A = Object.defineProperty;
|
|
34794
|
+
var __defProps$x = Object.defineProperties;
|
|
34795
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
34796
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
34797
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
34798
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
34799
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34800
|
+
var __spreadValues$A = (a, b) => {
|
|
34776
34801
|
for (var prop in b || (b = {}))
|
|
34777
|
-
if (__hasOwnProp$
|
|
34778
|
-
__defNormalProp$
|
|
34779
|
-
if (__getOwnPropSymbols$
|
|
34780
|
-
for (var prop of __getOwnPropSymbols$
|
|
34781
|
-
if (__propIsEnum$
|
|
34782
|
-
__defNormalProp$
|
|
34802
|
+
if (__hasOwnProp$J.call(b, prop))
|
|
34803
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
34804
|
+
if (__getOwnPropSymbols$J)
|
|
34805
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
34806
|
+
if (__propIsEnum$J.call(b, prop))
|
|
34807
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
34783
34808
|
}
|
|
34784
34809
|
return a;
|
|
34785
34810
|
};
|
|
34786
|
-
var __spreadProps$
|
|
34811
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
34787
34812
|
const streams = [];
|
|
34788
34813
|
if (process.env.NODE_ENV === "production") {
|
|
34789
34814
|
streams.push({
|
|
@@ -34792,7 +34817,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34792
34817
|
}
|
|
34793
34818
|
const logger = E({
|
|
34794
34819
|
name: "shipengine",
|
|
34795
|
-
serializers: __spreadProps$
|
|
34820
|
+
serializers: __spreadProps$x(__spreadValues$A({}, k), {
|
|
34796
34821
|
req: (req) => ({
|
|
34797
34822
|
headers: req.headers,
|
|
34798
34823
|
method: req.method,
|
|
@@ -35029,25 +35054,25 @@ const useValidateAddresses = () => {
|
|
|
35029
35054
|
});
|
|
35030
35055
|
};
|
|
35031
35056
|
|
|
35032
|
-
var __defProp$
|
|
35033
|
-
var __defProps$
|
|
35034
|
-
var __getOwnPropDescs$
|
|
35035
|
-
var __getOwnPropSymbols$
|
|
35036
|
-
var __hasOwnProp$
|
|
35037
|
-
var __propIsEnum$
|
|
35038
|
-
var __defNormalProp$
|
|
35039
|
-
var __spreadValues$
|
|
35057
|
+
var __defProp$z = Object.defineProperty;
|
|
35058
|
+
var __defProps$w = Object.defineProperties;
|
|
35059
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
35060
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
35061
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
35062
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
35063
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35064
|
+
var __spreadValues$z = (a, b) => {
|
|
35040
35065
|
for (var prop in b || (b = {}))
|
|
35041
|
-
if (__hasOwnProp$
|
|
35042
|
-
__defNormalProp$
|
|
35043
|
-
if (__getOwnPropSymbols$
|
|
35044
|
-
for (var prop of __getOwnPropSymbols$
|
|
35045
|
-
if (__propIsEnum$
|
|
35046
|
-
__defNormalProp$
|
|
35066
|
+
if (__hasOwnProp$I.call(b, prop))
|
|
35067
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
35068
|
+
if (__getOwnPropSymbols$I)
|
|
35069
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
|
35070
|
+
if (__propIsEnum$I.call(b, prop))
|
|
35071
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
35047
35072
|
}
|
|
35048
35073
|
return a;
|
|
35049
35074
|
};
|
|
35050
|
-
var __spreadProps$
|
|
35075
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
35051
35076
|
var __async$O = (__this, __arguments, generator) => {
|
|
35052
35077
|
return new Promise((resolve, reject) => {
|
|
35053
35078
|
var fulfilled = (value) => {
|
|
@@ -35070,7 +35095,7 @@ var __async$O = (__this, __arguments, generator) => {
|
|
|
35070
35095
|
};
|
|
35071
35096
|
const useCreateAuctanePaySession = (params) => {
|
|
35072
35097
|
const { client } = useShipEngine();
|
|
35073
|
-
return useMutation(__spreadProps$
|
|
35098
|
+
return useMutation(__spreadProps$w(__spreadValues$z({}, params), {
|
|
35074
35099
|
mutationFn: (request) => __async$O(void 0, null, function* () {
|
|
35075
35100
|
const result = yield client.auctanePay.createSession(request);
|
|
35076
35101
|
return result.data;
|
|
@@ -35080,29 +35105,29 @@ const useCreateAuctanePaySession = (params) => {
|
|
|
35080
35105
|
}));
|
|
35081
35106
|
};
|
|
35082
35107
|
|
|
35083
|
-
var __defProp$
|
|
35084
|
-
var __defProps$
|
|
35085
|
-
var __getOwnPropDescs$
|
|
35086
|
-
var __getOwnPropSymbols$
|
|
35087
|
-
var __hasOwnProp$
|
|
35088
|
-
var __propIsEnum$
|
|
35089
|
-
var __defNormalProp$
|
|
35090
|
-
var __spreadValues$
|
|
35108
|
+
var __defProp$y = Object.defineProperty;
|
|
35109
|
+
var __defProps$v = Object.defineProperties;
|
|
35110
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
35111
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
35112
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
35113
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
35114
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35115
|
+
var __spreadValues$y = (a, b) => {
|
|
35091
35116
|
for (var prop in b || (b = {}))
|
|
35092
|
-
if (__hasOwnProp$
|
|
35093
|
-
__defNormalProp$
|
|
35094
|
-
if (__getOwnPropSymbols$
|
|
35095
|
-
for (var prop of __getOwnPropSymbols$
|
|
35096
|
-
if (__propIsEnum$
|
|
35097
|
-
__defNormalProp$
|
|
35117
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
35118
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
35119
|
+
if (__getOwnPropSymbols$H)
|
|
35120
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
35121
|
+
if (__propIsEnum$H.call(b, prop))
|
|
35122
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
35098
35123
|
}
|
|
35099
35124
|
return a;
|
|
35100
35125
|
};
|
|
35101
|
-
var __spreadProps$
|
|
35126
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
35102
35127
|
const useGetAuctanePayConfig = (params) => {
|
|
35103
35128
|
const { client } = useShipEngine();
|
|
35104
|
-
const queryParams = __spreadValues$
|
|
35105
|
-
return useQuery(__spreadProps$
|
|
35129
|
+
const queryParams = __spreadValues$y({}, params);
|
|
35130
|
+
return useQuery(__spreadProps$v(__spreadValues$y({}, queryParams), {
|
|
35106
35131
|
onError,
|
|
35107
35132
|
queryFn: () => client.auctanePay.getConfig(),
|
|
35108
35133
|
queryKey: ["useGetAuctanePayConfig"],
|
|
@@ -35274,41 +35299,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
35274
35299
|
});
|
|
35275
35300
|
};
|
|
35276
35301
|
|
|
35277
|
-
var __defProp$
|
|
35278
|
-
var __defProps$
|
|
35279
|
-
var __getOwnPropDescs$
|
|
35280
|
-
var __getOwnPropSymbols$
|
|
35281
|
-
var __hasOwnProp$
|
|
35282
|
-
var __propIsEnum$
|
|
35283
|
-
var __defNormalProp$
|
|
35284
|
-
var __spreadValues$
|
|
35302
|
+
var __defProp$x = Object.defineProperty;
|
|
35303
|
+
var __defProps$u = Object.defineProperties;
|
|
35304
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
35305
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
35306
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
35307
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
35308
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35309
|
+
var __spreadValues$x = (a, b) => {
|
|
35285
35310
|
for (var prop in b || (b = {}))
|
|
35286
|
-
if (__hasOwnProp$
|
|
35287
|
-
__defNormalProp$
|
|
35288
|
-
if (__getOwnPropSymbols$
|
|
35289
|
-
for (var prop of __getOwnPropSymbols$
|
|
35290
|
-
if (__propIsEnum$
|
|
35291
|
-
__defNormalProp$
|
|
35311
|
+
if (__hasOwnProp$G.call(b, prop))
|
|
35312
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
35313
|
+
if (__getOwnPropSymbols$G)
|
|
35314
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
|
35315
|
+
if (__propIsEnum$G.call(b, prop))
|
|
35316
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
35292
35317
|
}
|
|
35293
35318
|
return a;
|
|
35294
35319
|
};
|
|
35295
|
-
var __spreadProps$
|
|
35320
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
35296
35321
|
var __objRest$q = (source, exclude) => {
|
|
35297
35322
|
var target = {};
|
|
35298
35323
|
for (var prop in source)
|
|
35299
|
-
if (__hasOwnProp$
|
|
35324
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35300
35325
|
target[prop] = source[prop];
|
|
35301
|
-
if (source != null && __getOwnPropSymbols$
|
|
35302
|
-
for (var prop of __getOwnPropSymbols$
|
|
35303
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35326
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
35327
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
35328
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
35304
35329
|
target[prop] = source[prop];
|
|
35305
35330
|
}
|
|
35306
35331
|
return target;
|
|
35307
35332
|
};
|
|
35308
35333
|
const useListCarriers = (params) => {
|
|
35309
35334
|
const { client } = useShipEngine();
|
|
35310
|
-
const _a = __spreadValues$
|
|
35311
|
-
return useQuery(__spreadProps$
|
|
35335
|
+
const _a = __spreadValues$x({}, params), { queryFnParams } = _a, rest = __objRest$q(_a, ["queryFnParams"]);
|
|
35336
|
+
return useQuery(__spreadProps$u(__spreadValues$x({}, rest), {
|
|
35312
35337
|
onError,
|
|
35313
35338
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
35314
35339
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -35316,17 +35341,17 @@ const useListCarriers = (params) => {
|
|
|
35316
35341
|
}));
|
|
35317
35342
|
};
|
|
35318
35343
|
|
|
35319
|
-
var __getOwnPropSymbols$
|
|
35320
|
-
var __hasOwnProp$
|
|
35321
|
-
var __propIsEnum$
|
|
35344
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
35345
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
35346
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
35322
35347
|
var __objRest$p = (source, exclude) => {
|
|
35323
35348
|
var target = {};
|
|
35324
35349
|
for (var prop in source)
|
|
35325
|
-
if (__hasOwnProp$
|
|
35350
|
+
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35326
35351
|
target[prop] = source[prop];
|
|
35327
|
-
if (source != null && __getOwnPropSymbols$
|
|
35328
|
-
for (var prop of __getOwnPropSymbols$
|
|
35329
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35352
|
+
if (source != null && __getOwnPropSymbols$F)
|
|
35353
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
35354
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
35330
35355
|
target[prop] = source[prop];
|
|
35331
35356
|
}
|
|
35332
35357
|
return target;
|
|
@@ -35417,17 +35442,17 @@ const useDeleteCarrier = () => {
|
|
|
35417
35442
|
});
|
|
35418
35443
|
};
|
|
35419
35444
|
|
|
35420
|
-
var __getOwnPropSymbols$
|
|
35421
|
-
var __hasOwnProp$
|
|
35422
|
-
var __propIsEnum$
|
|
35445
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
35446
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
35447
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
35423
35448
|
var __objRest$o = (source, exclude) => {
|
|
35424
35449
|
var target = {};
|
|
35425
35450
|
for (var prop in source)
|
|
35426
|
-
if (__hasOwnProp$
|
|
35451
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35427
35452
|
target[prop] = source[prop];
|
|
35428
|
-
if (source != null && __getOwnPropSymbols$
|
|
35429
|
-
for (var prop of __getOwnPropSymbols$
|
|
35430
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35453
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
35454
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
35455
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
35431
35456
|
target[prop] = source[prop];
|
|
35432
35457
|
}
|
|
35433
35458
|
return target;
|
|
@@ -35444,17 +35469,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
35444
35469
|
});
|
|
35445
35470
|
};
|
|
35446
35471
|
|
|
35447
|
-
var __getOwnPropSymbols$
|
|
35448
|
-
var __hasOwnProp$
|
|
35449
|
-
var __propIsEnum$
|
|
35472
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
35473
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
35474
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
35450
35475
|
var __objRest$n = (source, exclude) => {
|
|
35451
35476
|
var target = {};
|
|
35452
35477
|
for (var prop in source)
|
|
35453
|
-
if (__hasOwnProp$
|
|
35478
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35454
35479
|
target[prop] = source[prop];
|
|
35455
|
-
if (source != null && __getOwnPropSymbols$
|
|
35456
|
-
for (var prop of __getOwnPropSymbols$
|
|
35457
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35480
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
35481
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
35482
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
35458
35483
|
target[prop] = source[prop];
|
|
35459
35484
|
}
|
|
35460
35485
|
return target;
|
|
@@ -35471,6 +35496,25 @@ const useListCarrierConnections = (_params) => {
|
|
|
35471
35496
|
});
|
|
35472
35497
|
};
|
|
35473
35498
|
|
|
35499
|
+
var __defProp$w = Object.defineProperty;
|
|
35500
|
+
var __defProps$t = Object.defineProperties;
|
|
35501
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
35502
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
35503
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
35504
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
35505
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35506
|
+
var __spreadValues$w = (a, b) => {
|
|
35507
|
+
for (var prop in b || (b = {}))
|
|
35508
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
35509
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
35510
|
+
if (__getOwnPropSymbols$C)
|
|
35511
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
35512
|
+
if (__propIsEnum$C.call(b, prop))
|
|
35513
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
35514
|
+
}
|
|
35515
|
+
return a;
|
|
35516
|
+
};
|
|
35517
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
35474
35518
|
var __async$J = (__this, __arguments, generator) => {
|
|
35475
35519
|
return new Promise((resolve, reject) => {
|
|
35476
35520
|
var fulfilled = (value) => {
|
|
@@ -35495,7 +35539,8 @@ const useConnectCarrierAccount = () => {
|
|
|
35495
35539
|
const { client } = useShipEngine();
|
|
35496
35540
|
return useMutation({
|
|
35497
35541
|
mutationFn: (_0) => __async$J(void 0, [_0], function* ({ carrierName, formData }) {
|
|
35498
|
-
const
|
|
35542
|
+
const formDataWithFlag = __spreadProps$t(__spreadValues$w({}, formData), { __skipDecamelize: true });
|
|
35543
|
+
const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
|
|
35499
35544
|
return result.data;
|
|
35500
35545
|
}),
|
|
35501
35546
|
mutationKey: ["useConnectCarrierAccount"],
|