@shipengine/alchemy 6.0.45 → 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.
Files changed (3) hide show
  1. package/index.js +284 -239
  2. package/index.mjs +283 -238
  3. 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 MAX_SAFE_INTEGER$1 = 9007199254740991;
4886
+ var _isIndex;
4887
+ var hasRequired_isIndex;
4887
4888
 
4888
- /** Used to detect unsigned integer values. */
4889
- var reIsUint = /^(?:0|[1-9]\d*)$/;
4889
+ function require_isIndex () {
4890
+ if (hasRequired_isIndex) return _isIndex;
4891
+ hasRequired_isIndex = 1;
4892
+ var MAX_SAFE_INTEGER = 9007199254740991;
4890
4893
 
4891
- /**
4892
- * Checks if `value` is a valid array-like index.
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
- return !!length &&
4904
- (type == 'number' ||
4905
- (type != 'symbol' && reIsUint.test(value))) &&
4906
- (value > -1 && value % 1 == 0 && value < length);
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
- var _isIndex = isIndex$3;
4915
+ _isIndex = isIndex;
4916
+ return _isIndex;
4917
+ }
4910
4918
 
4911
4919
  var copyArray$2 = _copyArray,
4912
- isIndex$2 = _isIndex;
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 = _isIndex,
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 = _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 = _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$Q = Object.getOwnPropertySymbols;
10794
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
10795
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
10796
- var __objRest$u = (source, exclude) => {
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$Q.call(source, prop) && exclude.indexOf(prop) < 0)
10807
+ if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
10800
10808
  target[prop] = source[prop];
10801
- if (source != null && __getOwnPropSymbols$Q)
10802
- for (var prop of __getOwnPropSymbols$Q(source)) {
10803
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
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$u(_b, ["message"]);
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$P = Object.getOwnPropertySymbols;
10939
- var __hasOwnProp$P = Object.prototype.hasOwnProperty;
10940
- var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
10941
- var __objRest$t = (source, exclude) => {
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$P.call(source, prop) && exclude.indexOf(prop) < 0)
10952
+ if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
10945
10953
  target[prop] = source[prop];
10946
- if (source != null && __getOwnPropSymbols$P)
10947
- for (var prop of __getOwnPropSymbols$P(source)) {
10948
- if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
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$t(_b, ["labelImageId"]);
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$E = Object.defineProperty;
13830
- var __defProps$y = Object.defineProperties;
13831
- var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
13832
- var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
13833
- var __hasOwnProp$O = Object.prototype.hasOwnProperty;
13834
- var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
13835
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13836
- var __spreadValues$E = (a, b) => {
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$O.call(b, prop))
13839
- __defNormalProp$E(a, prop, b[prop]);
13840
- if (__getOwnPropSymbols$O)
13841
- for (var prop of __getOwnPropSymbols$O(b)) {
13842
- if (__propIsEnum$O.call(b, prop))
13843
- __defNormalProp$E(a, prop, b[prop]);
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$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
13848
- var __objRest$s = (source, exclude) => {
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$O.call(source, prop) && exclude.indexOf(prop) < 0)
13859
+ if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
13852
13860
  target[prop] = source[prop];
13853
- if (source != null && __getOwnPropSymbols$O)
13854
- for (var prop of __getOwnPropSymbols$O(source)) {
13855
- if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
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$s(_b, ["carrierCode"]);
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$y(__spreadValues$E({}, connection), {
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$D = Object.defineProperty;
16190
- var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
16191
- var __hasOwnProp$N = Object.prototype.hasOwnProperty;
16192
- var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
16193
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16194
- var __spreadValues$D = (a, b) => {
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$N.call(b, prop))
16197
- __defNormalProp$D(a, prop, b[prop]);
16198
- if (__getOwnPropSymbols$N)
16199
- for (var prop of __getOwnPropSymbols$N(b)) {
16200
- if (__propIsEnum$N.call(b, prop))
16201
- __defNormalProp$D(a, prop, b[prop]);
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$D({
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$D({
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$D({
16292
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$E({
16285
16293
  endUserIpAddress
16286
16294
  }, carrier));
16287
16295
  });
@@ -16435,10 +16443,10 @@ class LabelsAPI {
16435
16443
  return this.client.put(`/v1/labels/${labelId}/void`);
16436
16444
  };
16437
16445
  /**
16438
- * The `download` method allows for downloading a CSV document of labels based on the provided parameters.
16446
+ * The `export` method allows to export a CSV document of labels based on the provided parameters.
16439
16447
  */
16440
- this.download = (params) => {
16441
- return this.client.get("/v1/labels/downloads", {
16448
+ this.export = (params) => {
16449
+ return this.client.get("/v1/labels/export", {
16442
16450
  headers: {
16443
16451
  Accept: "text/csv"
16444
16452
  },
@@ -16450,17 +16458,17 @@ class LabelsAPI {
16450
16458
  }
16451
16459
  }
16452
16460
 
16453
- var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
16454
- var __hasOwnProp$M = Object.prototype.hasOwnProperty;
16455
- var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
16456
- var __objRest$r = (source, exclude) => {
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$M.call(source, prop) && exclude.indexOf(prop) < 0)
16467
+ if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
16460
16468
  target[prop] = source[prop];
16461
- if (source != null && __getOwnPropSymbols$M)
16462
- for (var prop of __getOwnPropSymbols$M(source)) {
16463
- if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
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$r(_b, ["orderSourceId"]);
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$C = Object.defineProperty;
16585
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
16586
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
16587
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
16588
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16589
- var __spreadValues$C = (a, b) => {
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$L.call(b, prop))
16592
- __defNormalProp$C(a, prop, b[prop]);
16593
- if (__getOwnPropSymbols$L)
16594
- for (var prop of __getOwnPropSymbols$L(b)) {
16595
- if (__propIsEnum$L.call(b, prop))
16596
- __defNormalProp$C(a, prop, b[prop]);
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$C({}, params));
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$B = Object.defineProperty;
16803
- var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
16804
- var __hasOwnProp$K = Object.prototype.hasOwnProperty;
16805
- var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
16806
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16807
- var __spreadValues$B = (a, b) => {
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$K.call(b, prop))
16810
- __defNormalProp$B(a, prop, b[prop]);
16811
- if (__getOwnPropSymbols$K)
16812
- for (var prop of __getOwnPropSymbols$K(b)) {
16813
- if (__propIsEnum$K.call(b, prop))
16814
- __defNormalProp$B(a, prop, b[prop]);
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$B({}, options));
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
@@ -16907,10 +16915,10 @@ class ShipmentsAPI {
16907
16915
  return this.client.put(`/v1/shipments/${shipmentId}/cancel`);
16908
16916
  };
16909
16917
  /**
16910
- * The `download` method allows for downloading a CSV document of shipments based on the provided parameters.
16918
+ * The `export` method allows to export a CSV document of shipments based on the provided parameters.
16911
16919
  */
16912
- this.download = (params) => {
16913
- return this.client.get("/v1/shipments/downloads", {
16920
+ this.export = (params) => {
16921
+ return this.client.get("/v1/shipments/export", {
16914
16922
  headers: {
16915
16923
  Accept: "text/csv"
16916
16924
  },
@@ -34294,25 +34302,37 @@ class WebhooksAPI {
34294
34302
  }
34295
34303
  }
34296
34304
 
34297
- var __defProp$A = Object.defineProperty;
34298
- var __defProps$x = Object.defineProperties;
34299
- var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
34300
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
34301
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
34302
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
34303
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34304
- var __spreadValues$A = (a, b) => {
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$J.call(b, prop))
34307
- __defNormalProp$A(a, prop, b[prop]);
34308
- if (__getOwnPropSymbols$J)
34309
- for (var prop of __getOwnPropSymbols$J(b)) {
34310
- if (__propIsEnum$J.call(b, prop))
34311
- __defNormalProp$A(a, prop, b[prop]);
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$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
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$x(__spreadValues$A({}, k), {
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$x(__spreadValues$A({}, headers), {
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$z = Object.defineProperty;
34769
- var __defProps$w = Object.defineProperties;
34770
- var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
34771
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
34772
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
34773
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
34774
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34775
- var __spreadValues$z = (a, b) => {
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$I.call(b, prop))
34778
- __defNormalProp$z(a, prop, b[prop]);
34779
- if (__getOwnPropSymbols$I)
34780
- for (var prop of __getOwnPropSymbols$I(b)) {
34781
- if (__propIsEnum$I.call(b, prop))
34782
- __defNormalProp$z(a, prop, b[prop]);
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$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
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$w(__spreadValues$z({}, k), {
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$y = Object.defineProperty;
35033
- var __defProps$v = Object.defineProperties;
35034
- var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
35035
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
35036
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
35037
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
35038
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35039
- var __spreadValues$y = (a, b) => {
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$H.call(b, prop))
35042
- __defNormalProp$y(a, prop, b[prop]);
35043
- if (__getOwnPropSymbols$H)
35044
- for (var prop of __getOwnPropSymbols$H(b)) {
35045
- if (__propIsEnum$H.call(b, prop))
35046
- __defNormalProp$y(a, prop, b[prop]);
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$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
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$v(__spreadValues$y({}, params), {
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$x = Object.defineProperty;
35084
- var __defProps$u = Object.defineProperties;
35085
- var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
35086
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
35087
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
35088
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
35089
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35090
- var __spreadValues$x = (a, b) => {
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$G.call(b, prop))
35093
- __defNormalProp$x(a, prop, b[prop]);
35094
- if (__getOwnPropSymbols$G)
35095
- for (var prop of __getOwnPropSymbols$G(b)) {
35096
- if (__propIsEnum$G.call(b, prop))
35097
- __defNormalProp$x(a, prop, b[prop]);
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$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
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$x({}, params);
35105
- return useQuery(__spreadProps$u(__spreadValues$x({}, queryParams), {
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$w = Object.defineProperty;
35278
- var __defProps$t = Object.defineProperties;
35279
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
35280
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
35281
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
35282
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
35283
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35284
- var __spreadValues$w = (a, b) => {
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$F.call(b, prop))
35287
- __defNormalProp$w(a, prop, b[prop]);
35288
- if (__getOwnPropSymbols$F)
35289
- for (var prop of __getOwnPropSymbols$F(b)) {
35290
- if (__propIsEnum$F.call(b, prop))
35291
- __defNormalProp$w(a, prop, b[prop]);
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$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
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$F.call(source, prop) && exclude.indexOf(prop) < 0)
35324
+ if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
35300
35325
  target[prop] = source[prop];
35301
- if (source != null && __getOwnPropSymbols$F)
35302
- for (var prop of __getOwnPropSymbols$F(source)) {
35303
- if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
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$w({}, params), { queryFnParams } = _a, rest = __objRest$q(_a, ["queryFnParams"]);
35311
- return useQuery(__spreadProps$t(__spreadValues$w({}, rest), {
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$E = Object.getOwnPropertySymbols;
35320
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
35321
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
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$E.call(source, prop) && exclude.indexOf(prop) < 0)
35350
+ if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
35326
35351
  target[prop] = source[prop];
35327
- if (source != null && __getOwnPropSymbols$E)
35328
- for (var prop of __getOwnPropSymbols$E(source)) {
35329
- if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
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$D = Object.getOwnPropertySymbols;
35421
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35422
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
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$D.call(source, prop) && exclude.indexOf(prop) < 0)
35451
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
35427
35452
  target[prop] = source[prop];
35428
- if (source != null && __getOwnPropSymbols$D)
35429
- for (var prop of __getOwnPropSymbols$D(source)) {
35430
- if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
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$C = Object.getOwnPropertySymbols;
35448
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35449
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
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$C.call(source, prop) && exclude.indexOf(prop) < 0)
35478
+ if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
35454
35479
  target[prop] = source[prop];
35455
- if (source != null && __getOwnPropSymbols$C)
35456
- for (var prop of __getOwnPropSymbols$C(source)) {
35457
- if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
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 result = yield client.connections.connectCarrier(carrierName, formData);
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"],
@@ -36425,13 +36470,13 @@ var __objRest$f = (source, exclude) => {
36425
36470
  }
36426
36471
  return target;
36427
36472
  };
36428
- const useDownloadLabels = (params) => {
36473
+ const useExportLabels = (params) => {
36429
36474
  const { client } = useShipEngine();
36430
36475
  const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
36431
36476
  return useQuery(__spreadProps$h(__spreadValues$k({}, rest), {
36432
36477
  onError,
36433
- queryFn: () => client.labels.download(queryFnParams),
36434
- queryKey: ["useDownloadLabels", params]
36478
+ queryFn: () => client.labels.export(queryFnParams),
36479
+ queryKey: ["useExportLabels", params]
36435
36480
  }));
36436
36481
  };
36437
36482
 
@@ -37384,13 +37429,13 @@ var __objRest$7 = (source, exclude) => {
37384
37429
  }
37385
37430
  return target;
37386
37431
  };
37387
- const useDownloadShipments = (params) => {
37432
+ const useExportShipments = (params) => {
37388
37433
  const { client } = useShipEngine();
37389
37434
  const _a = __spreadValues$e({}, params), { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
37390
37435
  return useQuery(__spreadProps$b(__spreadValues$e({}, rest), {
37391
37436
  onError,
37392
- queryFn: () => client.shipments.download(queryFnParams),
37393
- queryKey: ["useDownloadShipments", params]
37437
+ queryFn: () => client.shipments.export(queryFnParams),
37438
+ queryKey: ["useExportShipments", params]
37394
37439
  }));
37395
37440
  };
37396
37441
 
@@ -39514,4 +39559,4 @@ const alchemy = {
39514
39559
  createElement
39515
39560
  };
39516
39561
 
39517
- export { AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadLabels, useDownloadRateCard, useDownloadShipments, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
39562
+ export { AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };