@shipengine/alchemy 6.0.38 → 6.0.40

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 +171 -132
  2. package/index.mjs +171 -133
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -10812,17 +10812,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10812
10812
  return AccountBillingPlanChangeType2;
10813
10813
  })(AccountBillingPlanChangeType || {});
10814
10814
 
10815
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
10816
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
10817
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
10815
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
10816
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
10817
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
10818
10818
  var __objRest$q = (source, exclude) => {
10819
10819
  var target = {};
10820
10820
  for (var prop in source)
10821
- if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
10821
+ if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
10822
10822
  target[prop] = source[prop];
10823
- if (source != null && __getOwnPropSymbols$L)
10824
- for (var prop of __getOwnPropSymbols$L(source)) {
10825
- if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
10823
+ if (source != null && __getOwnPropSymbols$M)
10824
+ for (var prop of __getOwnPropSymbols$M(source)) {
10825
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
10826
10826
  target[prop] = source[prop];
10827
10827
  }
10828
10828
  return target;
@@ -10957,17 +10957,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10957
10957
  RateCardStatus
10958
10958
  }, Symbol.toStringTag, { value: 'Module' }));
10959
10959
 
10960
- var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
10961
- var __hasOwnProp$K = Object.prototype.hasOwnProperty;
10962
- var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
10960
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
10961
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
10962
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
10963
10963
  var __objRest$p = (source, exclude) => {
10964
10964
  var target = {};
10965
10965
  for (var prop in source)
10966
- if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
10966
+ if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
10967
10967
  target[prop] = source[prop];
10968
- if (source != null && __getOwnPropSymbols$K)
10969
- for (var prop of __getOwnPropSymbols$K(source)) {
10970
- if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
10968
+ if (source != null && __getOwnPropSymbols$L)
10969
+ for (var prop of __getOwnPropSymbols$L(source)) {
10970
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
10971
10971
  target[prop] = source[prop];
10972
10972
  }
10973
10973
  return target;
@@ -11052,7 +11052,15 @@ class AuctanePayAPI {
11052
11052
  * @returns a promise that resolves to the created session
11053
11053
  */
11054
11054
  this.createSession = (request) => {
11055
- return this.client.post("/internal/auctane_pay/sessions", request);
11055
+ return this.client.post("/v1/payments/sessions", request);
11056
+ };
11057
+ /**
11058
+ * The `getConfig` method get the AuctanePay config, such as the "adyenClientKey"
11059
+ *
11060
+ * @returns a promise that returns the AuctanePay config
11061
+ */
11062
+ this.getConfig = () => {
11063
+ return this.client.get("/v1/payments/config");
11056
11064
  };
11057
11065
  this.client = client;
11058
11066
  }
@@ -13840,33 +13848,33 @@ const decamelizeKeys = (obj, separator = "_") => {
13840
13848
  return obj;
13841
13849
  };
13842
13850
 
13843
- var __defProp$y = Object.defineProperty;
13844
- var __defProps$s = Object.defineProperties;
13845
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
13846
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
13847
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
13848
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
13849
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13850
- var __spreadValues$y = (a, b) => {
13851
+ var __defProp$z = Object.defineProperty;
13852
+ var __defProps$t = Object.defineProperties;
13853
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
13854
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
13855
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
13856
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
13857
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13858
+ var __spreadValues$z = (a, b) => {
13851
13859
  for (var prop in b || (b = {}))
13852
- if (__hasOwnProp$J.call(b, prop))
13853
- __defNormalProp$y(a, prop, b[prop]);
13854
- if (__getOwnPropSymbols$J)
13855
- for (var prop of __getOwnPropSymbols$J(b)) {
13856
- if (__propIsEnum$J.call(b, prop))
13857
- __defNormalProp$y(a, prop, b[prop]);
13860
+ if (__hasOwnProp$K.call(b, prop))
13861
+ __defNormalProp$z(a, prop, b[prop]);
13862
+ if (__getOwnPropSymbols$K)
13863
+ for (var prop of __getOwnPropSymbols$K(b)) {
13864
+ if (__propIsEnum$K.call(b, prop))
13865
+ __defNormalProp$z(a, prop, b[prop]);
13858
13866
  }
13859
13867
  return a;
13860
13868
  };
13861
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
13869
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
13862
13870
  var __objRest$o = (source, exclude) => {
13863
13871
  var target = {};
13864
13872
  for (var prop in source)
13865
- if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
13873
+ if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
13866
13874
  target[prop] = source[prop];
13867
- if (source != null && __getOwnPropSymbols$J)
13868
- for (var prop of __getOwnPropSymbols$J(source)) {
13869
- if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
13875
+ if (source != null && __getOwnPropSymbols$K)
13876
+ for (var prop of __getOwnPropSymbols$K(source)) {
13877
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
13870
13878
  target[prop] = source[prop];
13871
13879
  }
13872
13880
  return target;
@@ -13916,7 +13924,7 @@ class CarriersAPI {
13916
13924
  const endUserIpAddress = yield getEndUserIpAddress();
13917
13925
  if (!endUserIpAddress)
13918
13926
  return Promise.reject([new CodedError("Unable to get IP address")]);
13919
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$s(__spreadValues$y({}, connection), {
13927
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$t(__spreadValues$z({}, connection), {
13920
13928
  endUserIpAddress
13921
13929
  }));
13922
13930
  });
@@ -16200,19 +16208,19 @@ class CustomPackagesAPI {
16200
16208
  }
16201
16209
  }
16202
16210
 
16203
- var __defProp$x = Object.defineProperty;
16204
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
16205
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
16206
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
16207
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16208
- var __spreadValues$x = (a, b) => {
16211
+ var __defProp$y = Object.defineProperty;
16212
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
16213
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
16214
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
16215
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16216
+ var __spreadValues$y = (a, b) => {
16209
16217
  for (var prop in b || (b = {}))
16210
- if (__hasOwnProp$I.call(b, prop))
16211
- __defNormalProp$x(a, prop, b[prop]);
16212
- if (__getOwnPropSymbols$I)
16213
- for (var prop of __getOwnPropSymbols$I(b)) {
16214
- if (__propIsEnum$I.call(b, prop))
16215
- __defNormalProp$x(a, prop, b[prop]);
16218
+ if (__hasOwnProp$J.call(b, prop))
16219
+ __defNormalProp$y(a, prop, b[prop]);
16220
+ if (__getOwnPropSymbols$J)
16221
+ for (var prop of __getOwnPropSymbols$J(b)) {
16222
+ if (__propIsEnum$J.call(b, prop))
16223
+ __defNormalProp$y(a, prop, b[prop]);
16216
16224
  }
16217
16225
  return a;
16218
16226
  };
@@ -16260,7 +16268,7 @@ class FundingSourcesAPI {
16260
16268
  if (!endUserIpAddress) {
16261
16269
  return Promise.reject([new CodedError("Unable to get IP address")]);
16262
16270
  }
16263
- return yield this.client.post("/v1/funding_sources", __spreadValues$x({
16271
+ return yield this.client.post("/v1/funding_sources", __spreadValues$y({
16264
16272
  endUserIpAddress
16265
16273
  }, createFundingSource));
16266
16274
  });
@@ -16279,7 +16287,7 @@ class FundingSourcesAPI {
16279
16287
  {
16280
16288
  billingInfo,
16281
16289
  endUserIpAddress,
16282
- paymentMethod: __spreadValues$x({
16290
+ paymentMethod: __spreadValues$y({
16283
16291
  creditCardInfo
16284
16292
  }, auctanePayInfo)
16285
16293
  }
@@ -16294,7 +16302,7 @@ class FundingSourcesAPI {
16294
16302
  if (!endUserIpAddress) {
16295
16303
  return Promise.reject([new CodedError("Unable to get IP address")]);
16296
16304
  }
16297
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$x({
16305
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$y({
16298
16306
  endUserIpAddress
16299
16307
  }, carrier));
16300
16308
  });
@@ -16443,17 +16451,17 @@ class LabelsAPI {
16443
16451
  }
16444
16452
  }
16445
16453
 
16446
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
16447
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
16448
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
16454
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
16455
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
16456
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
16449
16457
  var __objRest$n = (source, exclude) => {
16450
16458
  var target = {};
16451
16459
  for (var prop in source)
16452
- if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
16460
+ if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
16453
16461
  target[prop] = source[prop];
16454
- if (source != null && __getOwnPropSymbols$H)
16455
- for (var prop of __getOwnPropSymbols$H(source)) {
16456
- if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
16462
+ if (source != null && __getOwnPropSymbols$I)
16463
+ for (var prop of __getOwnPropSymbols$I(source)) {
16464
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
16457
16465
  target[prop] = source[prop];
16458
16466
  }
16459
16467
  return target;
@@ -16574,19 +16582,19 @@ class RateCardsAPI {
16574
16582
  }
16575
16583
  }
16576
16584
 
16577
- var __defProp$w = Object.defineProperty;
16578
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
16579
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
16580
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
16581
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16582
- var __spreadValues$w = (a, b) => {
16585
+ var __defProp$x = Object.defineProperty;
16586
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
16587
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
16588
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
16589
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16590
+ var __spreadValues$x = (a, b) => {
16583
16591
  for (var prop in b || (b = {}))
16584
- if (__hasOwnProp$G.call(b, prop))
16585
- __defNormalProp$w(a, prop, b[prop]);
16586
- if (__getOwnPropSymbols$G)
16587
- for (var prop of __getOwnPropSymbols$G(b)) {
16588
- if (__propIsEnum$G.call(b, prop))
16589
- __defNormalProp$w(a, prop, b[prop]);
16592
+ if (__hasOwnProp$H.call(b, prop))
16593
+ __defNormalProp$x(a, prop, b[prop]);
16594
+ if (__getOwnPropSymbols$H)
16595
+ for (var prop of __getOwnPropSymbols$H(b)) {
16596
+ if (__propIsEnum$H.call(b, prop))
16597
+ __defNormalProp$x(a, prop, b[prop]);
16590
16598
  }
16591
16599
  return a;
16592
16600
  };
@@ -16608,7 +16616,7 @@ class RatesAPI {
16608
16616
  * method.
16609
16617
  */
16610
16618
  this.estimate = (params) => {
16611
- return this.client.post("/v1/rates/estimate", __spreadValues$w({}, params));
16619
+ return this.client.post("/v1/rates/estimate", __spreadValues$x({}, params));
16612
16620
  };
16613
16621
  this.client = client;
16614
16622
  }
@@ -16792,19 +16800,19 @@ class SellersAPI {
16792
16800
  }
16793
16801
  }
16794
16802
 
16795
- var __defProp$v = Object.defineProperty;
16796
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
16797
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
16798
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
16799
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16800
- var __spreadValues$v = (a, b) => {
16803
+ var __defProp$w = Object.defineProperty;
16804
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
16805
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
16806
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
16807
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16808
+ var __spreadValues$w = (a, b) => {
16801
16809
  for (var prop in b || (b = {}))
16802
- if (__hasOwnProp$F.call(b, prop))
16803
- __defNormalProp$v(a, prop, b[prop]);
16804
- if (__getOwnPropSymbols$F)
16805
- for (var prop of __getOwnPropSymbols$F(b)) {
16806
- if (__propIsEnum$F.call(b, prop))
16807
- __defNormalProp$v(a, prop, b[prop]);
16810
+ if (__hasOwnProp$G.call(b, prop))
16811
+ __defNormalProp$w(a, prop, b[prop]);
16812
+ if (__getOwnPropSymbols$G)
16813
+ for (var prop of __getOwnPropSymbols$G(b)) {
16814
+ if (__propIsEnum$G.call(b, prop))
16815
+ __defNormalProp$w(a, prop, b[prop]);
16808
16816
  }
16809
16817
  return a;
16810
16818
  };
@@ -16816,7 +16824,7 @@ class ServicePointsAPI {
16816
16824
  * Either an address, coordinates, or an address query
16817
16825
  */
16818
16826
  this.list = (options) => {
16819
- return this.client.post("/v1/service_points/list", __spreadValues$v({}, options));
16827
+ return this.client.post("/v1/service_points/list", __spreadValues$w({}, options));
16820
16828
  };
16821
16829
  /**
16822
16830
  * Get a specific service point by its carrier code, country code, and id
@@ -34275,25 +34283,25 @@ class WebhooksAPI {
34275
34283
  }
34276
34284
  }
34277
34285
 
34278
- var __defProp$u = Object.defineProperty;
34279
- var __defProps$r = Object.defineProperties;
34280
- var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
34281
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
34282
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
34283
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
34284
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34285
- var __spreadValues$u = (a, b) => {
34286
+ var __defProp$v = Object.defineProperty;
34287
+ var __defProps$s = Object.defineProperties;
34288
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
34289
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
34290
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
34291
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
34292
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34293
+ var __spreadValues$v = (a, b) => {
34286
34294
  for (var prop in b || (b = {}))
34287
- if (__hasOwnProp$E.call(b, prop))
34288
- __defNormalProp$u(a, prop, b[prop]);
34289
- if (__getOwnPropSymbols$E)
34290
- for (var prop of __getOwnPropSymbols$E(b)) {
34291
- if (__propIsEnum$E.call(b, prop))
34292
- __defNormalProp$u(a, prop, b[prop]);
34295
+ if (__hasOwnProp$F.call(b, prop))
34296
+ __defNormalProp$v(a, prop, b[prop]);
34297
+ if (__getOwnPropSymbols$F)
34298
+ for (var prop of __getOwnPropSymbols$F(b)) {
34299
+ if (__propIsEnum$F.call(b, prop))
34300
+ __defNormalProp$v(a, prop, b[prop]);
34293
34301
  }
34294
34302
  return a;
34295
34303
  };
34296
- var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
34304
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
34297
34305
  var __async$T = (__this, __arguments, generator) => {
34298
34306
  return new Promise((resolve, reject) => {
34299
34307
  var fulfilled = (value) => {
@@ -34317,7 +34325,7 @@ var __async$T = (__this, __arguments, generator) => {
34317
34325
  const logger$1 = E({
34318
34326
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34319
34327
  name: "shipengine-api",
34320
- serializers: __spreadProps$r(__spreadValues$u({}, k), {
34328
+ serializers: __spreadProps$s(__spreadValues$v({}, k), {
34321
34329
  req: (req) => ({
34322
34330
  headers: req.headers,
34323
34331
  method: req.method,
@@ -34342,7 +34350,7 @@ class ShipEngineAPI {
34342
34350
  this.getSandboxToken = getSandboxToken;
34343
34351
  const client = axios.create({
34344
34352
  baseURL,
34345
- headers: __spreadProps$r(__spreadValues$u({}, headers), {
34353
+ headers: __spreadProps$s(__spreadValues$v({}, headers), {
34346
34354
  "Content-Type": "application/json"
34347
34355
  }),
34348
34356
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34746,25 +34754,25 @@ const delay = (ms) => new Promise((resolve) => {
34746
34754
 
34747
34755
  const onError = (_errors) => _default();
34748
34756
 
34749
- var __defProp$t = Object.defineProperty;
34750
- var __defProps$q = Object.defineProperties;
34751
- var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
34752
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
34753
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
34754
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
34755
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34756
- var __spreadValues$t = (a, b) => {
34757
+ var __defProp$u = Object.defineProperty;
34758
+ var __defProps$r = Object.defineProperties;
34759
+ var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
34760
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
34761
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
34762
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
34763
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34764
+ var __spreadValues$u = (a, b) => {
34757
34765
  for (var prop in b || (b = {}))
34758
- if (__hasOwnProp$D.call(b, prop))
34759
- __defNormalProp$t(a, prop, b[prop]);
34760
- if (__getOwnPropSymbols$D)
34761
- for (var prop of __getOwnPropSymbols$D(b)) {
34762
- if (__propIsEnum$D.call(b, prop))
34763
- __defNormalProp$t(a, prop, b[prop]);
34766
+ if (__hasOwnProp$E.call(b, prop))
34767
+ __defNormalProp$u(a, prop, b[prop]);
34768
+ if (__getOwnPropSymbols$E)
34769
+ for (var prop of __getOwnPropSymbols$E(b)) {
34770
+ if (__propIsEnum$E.call(b, prop))
34771
+ __defNormalProp$u(a, prop, b[prop]);
34764
34772
  }
34765
34773
  return a;
34766
34774
  };
34767
- var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
34775
+ var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
34768
34776
  const streams = [];
34769
34777
  if (process.env.NODE_ENV === "production") {
34770
34778
  streams.push({
@@ -34773,7 +34781,7 @@ if (process.env.NODE_ENV === "production") {
34773
34781
  }
34774
34782
  const logger = E({
34775
34783
  name: "shipengine",
34776
- serializers: __spreadProps$q(__spreadValues$t({}, k), {
34784
+ serializers: __spreadProps$r(__spreadValues$u({}, k), {
34777
34785
  req: (req) => ({
34778
34786
  headers: req.headers,
34779
34787
  method: req.method,
@@ -35010,25 +35018,25 @@ const useValidateAddresses = () => {
35010
35018
  });
35011
35019
  };
35012
35020
 
35013
- var __defProp$s = Object.defineProperty;
35014
- var __defProps$p = Object.defineProperties;
35015
- var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
35016
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35017
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35018
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35019
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35020
- var __spreadValues$s = (a, b) => {
35021
+ var __defProp$t = Object.defineProperty;
35022
+ var __defProps$q = Object.defineProperties;
35023
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
35024
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35025
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35026
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35027
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35028
+ var __spreadValues$t = (a, b) => {
35021
35029
  for (var prop in b || (b = {}))
35022
- if (__hasOwnProp$C.call(b, prop))
35023
- __defNormalProp$s(a, prop, b[prop]);
35024
- if (__getOwnPropSymbols$C)
35025
- for (var prop of __getOwnPropSymbols$C(b)) {
35026
- if (__propIsEnum$C.call(b, prop))
35027
- __defNormalProp$s(a, prop, b[prop]);
35030
+ if (__hasOwnProp$D.call(b, prop))
35031
+ __defNormalProp$t(a, prop, b[prop]);
35032
+ if (__getOwnPropSymbols$D)
35033
+ for (var prop of __getOwnPropSymbols$D(b)) {
35034
+ if (__propIsEnum$D.call(b, prop))
35035
+ __defNormalProp$t(a, prop, b[prop]);
35028
35036
  }
35029
35037
  return a;
35030
35038
  };
35031
- var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
35039
+ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
35032
35040
  var __async$M = (__this, __arguments, generator) => {
35033
35041
  return new Promise((resolve, reject) => {
35034
35042
  var fulfilled = (value) => {
@@ -35051,7 +35059,7 @@ var __async$M = (__this, __arguments, generator) => {
35051
35059
  };
35052
35060
  const useCreateAuctanePaySession = (params) => {
35053
35061
  const { client } = useShipEngine();
35054
- return reactQuery.useMutation(__spreadProps$p(__spreadValues$s({}, params), {
35062
+ return reactQuery.useMutation(__spreadProps$q(__spreadValues$t({}, params), {
35055
35063
  mutationFn: (request) => __async$M(void 0, null, function* () {
35056
35064
  const result = yield client.auctanePay.createSession(request);
35057
35065
  return result.data;
@@ -35061,6 +35069,36 @@ const useCreateAuctanePaySession = (params) => {
35061
35069
  }));
35062
35070
  };
35063
35071
 
35072
+ var __defProp$s = Object.defineProperty;
35073
+ var __defProps$p = Object.defineProperties;
35074
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
35075
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35076
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35077
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35078
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35079
+ var __spreadValues$s = (a, b) => {
35080
+ for (var prop in b || (b = {}))
35081
+ if (__hasOwnProp$C.call(b, prop))
35082
+ __defNormalProp$s(a, prop, b[prop]);
35083
+ if (__getOwnPropSymbols$C)
35084
+ for (var prop of __getOwnPropSymbols$C(b)) {
35085
+ if (__propIsEnum$C.call(b, prop))
35086
+ __defNormalProp$s(a, prop, b[prop]);
35087
+ }
35088
+ return a;
35089
+ };
35090
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
35091
+ const useGetAuctanePayConfig = (params) => {
35092
+ const { client } = useShipEngine();
35093
+ const queryParams = __spreadValues$s({}, params);
35094
+ return reactQuery.useQuery(__spreadProps$p(__spreadValues$s({}, queryParams), {
35095
+ onError,
35096
+ queryFn: () => client.auctanePay.getConfig(),
35097
+ queryKey: ["useGetAuctanePayConfig"],
35098
+ select: (result) => result.data
35099
+ }));
35100
+ };
35101
+
35064
35102
  var __async$L = (__this, __arguments, generator) => {
35065
35103
  return new Promise((resolve, reject) => {
35066
35104
  var fulfilled = (value) => {
@@ -39335,6 +39373,7 @@ exports.useGetAccountBilling = useGetAccountBilling;
39335
39373
  exports.useGetAccountBillingPlan = useGetAccountBillingPlan;
39336
39374
  exports.useGetAccountImages = useGetAccountImages;
39337
39375
  exports.useGetAccountSettings = useGetAccountSettings;
39376
+ exports.useGetAuctanePayConfig = useGetAuctanePayConfig;
39338
39377
  exports.useGetAutoFundingConfiguration = useGetAutoFundingConfiguration;
39339
39378
  exports.useGetCarrierById = useGetCarrierById;
39340
39379
  exports.useGetCarrierConnectionForm = useGetCarrierConnectionForm;
package/index.mjs CHANGED
@@ -10790,17 +10790,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10790
10790
  return AccountBillingPlanChangeType2;
10791
10791
  })(AccountBillingPlanChangeType || {});
10792
10792
 
10793
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
10794
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
10795
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
10793
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
10794
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
10795
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
10796
10796
  var __objRest$q = (source, exclude) => {
10797
10797
  var target = {};
10798
10798
  for (var prop in source)
10799
- if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
10799
+ if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
10800
10800
  target[prop] = source[prop];
10801
- if (source != null && __getOwnPropSymbols$L)
10802
- for (var prop of __getOwnPropSymbols$L(source)) {
10803
- if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
10801
+ if (source != null && __getOwnPropSymbols$M)
10802
+ for (var prop of __getOwnPropSymbols$M(source)) {
10803
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
10804
10804
  target[prop] = source[prop];
10805
10805
  }
10806
10806
  return target;
@@ -10935,17 +10935,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10935
10935
  RateCardStatus
10936
10936
  }, Symbol.toStringTag, { value: 'Module' }));
10937
10937
 
10938
- var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
10939
- var __hasOwnProp$K = Object.prototype.hasOwnProperty;
10940
- var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
10938
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
10939
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
10940
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
10941
10941
  var __objRest$p = (source, exclude) => {
10942
10942
  var target = {};
10943
10943
  for (var prop in source)
10944
- if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
10944
+ if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
10945
10945
  target[prop] = source[prop];
10946
- if (source != null && __getOwnPropSymbols$K)
10947
- for (var prop of __getOwnPropSymbols$K(source)) {
10948
- if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
10946
+ if (source != null && __getOwnPropSymbols$L)
10947
+ for (var prop of __getOwnPropSymbols$L(source)) {
10948
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
10949
10949
  target[prop] = source[prop];
10950
10950
  }
10951
10951
  return target;
@@ -11030,7 +11030,15 @@ class AuctanePayAPI {
11030
11030
  * @returns a promise that resolves to the created session
11031
11031
  */
11032
11032
  this.createSession = (request) => {
11033
- return this.client.post("/internal/auctane_pay/sessions", request);
11033
+ return this.client.post("/v1/payments/sessions", request);
11034
+ };
11035
+ /**
11036
+ * The `getConfig` method get the AuctanePay config, such as the "adyenClientKey"
11037
+ *
11038
+ * @returns a promise that returns the AuctanePay config
11039
+ */
11040
+ this.getConfig = () => {
11041
+ return this.client.get("/v1/payments/config");
11034
11042
  };
11035
11043
  this.client = client;
11036
11044
  }
@@ -13818,33 +13826,33 @@ const decamelizeKeys = (obj, separator = "_") => {
13818
13826
  return obj;
13819
13827
  };
13820
13828
 
13821
- var __defProp$y = Object.defineProperty;
13822
- var __defProps$s = Object.defineProperties;
13823
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
13824
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
13825
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
13826
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
13827
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13828
- var __spreadValues$y = (a, b) => {
13829
+ var __defProp$z = Object.defineProperty;
13830
+ var __defProps$t = Object.defineProperties;
13831
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
13832
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
13833
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
13834
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
13835
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13836
+ var __spreadValues$z = (a, b) => {
13829
13837
  for (var prop in b || (b = {}))
13830
- if (__hasOwnProp$J.call(b, prop))
13831
- __defNormalProp$y(a, prop, b[prop]);
13832
- if (__getOwnPropSymbols$J)
13833
- for (var prop of __getOwnPropSymbols$J(b)) {
13834
- if (__propIsEnum$J.call(b, prop))
13835
- __defNormalProp$y(a, prop, b[prop]);
13838
+ if (__hasOwnProp$K.call(b, prop))
13839
+ __defNormalProp$z(a, prop, b[prop]);
13840
+ if (__getOwnPropSymbols$K)
13841
+ for (var prop of __getOwnPropSymbols$K(b)) {
13842
+ if (__propIsEnum$K.call(b, prop))
13843
+ __defNormalProp$z(a, prop, b[prop]);
13836
13844
  }
13837
13845
  return a;
13838
13846
  };
13839
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
13847
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
13840
13848
  var __objRest$o = (source, exclude) => {
13841
13849
  var target = {};
13842
13850
  for (var prop in source)
13843
- if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
13851
+ if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
13844
13852
  target[prop] = source[prop];
13845
- if (source != null && __getOwnPropSymbols$J)
13846
- for (var prop of __getOwnPropSymbols$J(source)) {
13847
- if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
13853
+ if (source != null && __getOwnPropSymbols$K)
13854
+ for (var prop of __getOwnPropSymbols$K(source)) {
13855
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
13848
13856
  target[prop] = source[prop];
13849
13857
  }
13850
13858
  return target;
@@ -13894,7 +13902,7 @@ class CarriersAPI {
13894
13902
  const endUserIpAddress = yield getEndUserIpAddress();
13895
13903
  if (!endUserIpAddress)
13896
13904
  return Promise.reject([new CodedError("Unable to get IP address")]);
13897
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$s(__spreadValues$y({}, connection), {
13905
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$t(__spreadValues$z({}, connection), {
13898
13906
  endUserIpAddress
13899
13907
  }));
13900
13908
  });
@@ -16178,19 +16186,19 @@ class CustomPackagesAPI {
16178
16186
  }
16179
16187
  }
16180
16188
 
16181
- var __defProp$x = Object.defineProperty;
16182
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
16183
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
16184
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
16185
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16186
- var __spreadValues$x = (a, b) => {
16189
+ var __defProp$y = Object.defineProperty;
16190
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
16191
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
16192
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
16193
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16194
+ var __spreadValues$y = (a, b) => {
16187
16195
  for (var prop in b || (b = {}))
16188
- if (__hasOwnProp$I.call(b, prop))
16189
- __defNormalProp$x(a, prop, b[prop]);
16190
- if (__getOwnPropSymbols$I)
16191
- for (var prop of __getOwnPropSymbols$I(b)) {
16192
- if (__propIsEnum$I.call(b, prop))
16193
- __defNormalProp$x(a, prop, b[prop]);
16196
+ if (__hasOwnProp$J.call(b, prop))
16197
+ __defNormalProp$y(a, prop, b[prop]);
16198
+ if (__getOwnPropSymbols$J)
16199
+ for (var prop of __getOwnPropSymbols$J(b)) {
16200
+ if (__propIsEnum$J.call(b, prop))
16201
+ __defNormalProp$y(a, prop, b[prop]);
16194
16202
  }
16195
16203
  return a;
16196
16204
  };
@@ -16238,7 +16246,7 @@ class FundingSourcesAPI {
16238
16246
  if (!endUserIpAddress) {
16239
16247
  return Promise.reject([new CodedError("Unable to get IP address")]);
16240
16248
  }
16241
- return yield this.client.post("/v1/funding_sources", __spreadValues$x({
16249
+ return yield this.client.post("/v1/funding_sources", __spreadValues$y({
16242
16250
  endUserIpAddress
16243
16251
  }, createFundingSource));
16244
16252
  });
@@ -16257,7 +16265,7 @@ class FundingSourcesAPI {
16257
16265
  {
16258
16266
  billingInfo,
16259
16267
  endUserIpAddress,
16260
- paymentMethod: __spreadValues$x({
16268
+ paymentMethod: __spreadValues$y({
16261
16269
  creditCardInfo
16262
16270
  }, auctanePayInfo)
16263
16271
  }
@@ -16272,7 +16280,7 @@ class FundingSourcesAPI {
16272
16280
  if (!endUserIpAddress) {
16273
16281
  return Promise.reject([new CodedError("Unable to get IP address")]);
16274
16282
  }
16275
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$x({
16283
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$y({
16276
16284
  endUserIpAddress
16277
16285
  }, carrier));
16278
16286
  });
@@ -16421,17 +16429,17 @@ class LabelsAPI {
16421
16429
  }
16422
16430
  }
16423
16431
 
16424
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
16425
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
16426
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
16432
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
16433
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
16434
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
16427
16435
  var __objRest$n = (source, exclude) => {
16428
16436
  var target = {};
16429
16437
  for (var prop in source)
16430
- if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
16438
+ if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
16431
16439
  target[prop] = source[prop];
16432
- if (source != null && __getOwnPropSymbols$H)
16433
- for (var prop of __getOwnPropSymbols$H(source)) {
16434
- if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
16440
+ if (source != null && __getOwnPropSymbols$I)
16441
+ for (var prop of __getOwnPropSymbols$I(source)) {
16442
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
16435
16443
  target[prop] = source[prop];
16436
16444
  }
16437
16445
  return target;
@@ -16552,19 +16560,19 @@ class RateCardsAPI {
16552
16560
  }
16553
16561
  }
16554
16562
 
16555
- var __defProp$w = Object.defineProperty;
16556
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
16557
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
16558
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
16559
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16560
- var __spreadValues$w = (a, b) => {
16563
+ var __defProp$x = Object.defineProperty;
16564
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
16565
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
16566
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
16567
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16568
+ var __spreadValues$x = (a, b) => {
16561
16569
  for (var prop in b || (b = {}))
16562
- if (__hasOwnProp$G.call(b, prop))
16563
- __defNormalProp$w(a, prop, b[prop]);
16564
- if (__getOwnPropSymbols$G)
16565
- for (var prop of __getOwnPropSymbols$G(b)) {
16566
- if (__propIsEnum$G.call(b, prop))
16567
- __defNormalProp$w(a, prop, b[prop]);
16570
+ if (__hasOwnProp$H.call(b, prop))
16571
+ __defNormalProp$x(a, prop, b[prop]);
16572
+ if (__getOwnPropSymbols$H)
16573
+ for (var prop of __getOwnPropSymbols$H(b)) {
16574
+ if (__propIsEnum$H.call(b, prop))
16575
+ __defNormalProp$x(a, prop, b[prop]);
16568
16576
  }
16569
16577
  return a;
16570
16578
  };
@@ -16586,7 +16594,7 @@ class RatesAPI {
16586
16594
  * method.
16587
16595
  */
16588
16596
  this.estimate = (params) => {
16589
- return this.client.post("/v1/rates/estimate", __spreadValues$w({}, params));
16597
+ return this.client.post("/v1/rates/estimate", __spreadValues$x({}, params));
16590
16598
  };
16591
16599
  this.client = client;
16592
16600
  }
@@ -16770,19 +16778,19 @@ class SellersAPI {
16770
16778
  }
16771
16779
  }
16772
16780
 
16773
- var __defProp$v = Object.defineProperty;
16774
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
16775
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
16776
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
16777
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16778
- var __spreadValues$v = (a, b) => {
16781
+ var __defProp$w = Object.defineProperty;
16782
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
16783
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
16784
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
16785
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16786
+ var __spreadValues$w = (a, b) => {
16779
16787
  for (var prop in b || (b = {}))
16780
- if (__hasOwnProp$F.call(b, prop))
16781
- __defNormalProp$v(a, prop, b[prop]);
16782
- if (__getOwnPropSymbols$F)
16783
- for (var prop of __getOwnPropSymbols$F(b)) {
16784
- if (__propIsEnum$F.call(b, prop))
16785
- __defNormalProp$v(a, prop, b[prop]);
16788
+ if (__hasOwnProp$G.call(b, prop))
16789
+ __defNormalProp$w(a, prop, b[prop]);
16790
+ if (__getOwnPropSymbols$G)
16791
+ for (var prop of __getOwnPropSymbols$G(b)) {
16792
+ if (__propIsEnum$G.call(b, prop))
16793
+ __defNormalProp$w(a, prop, b[prop]);
16786
16794
  }
16787
16795
  return a;
16788
16796
  };
@@ -16794,7 +16802,7 @@ class ServicePointsAPI {
16794
16802
  * Either an address, coordinates, or an address query
16795
16803
  */
16796
16804
  this.list = (options) => {
16797
- return this.client.post("/v1/service_points/list", __spreadValues$v({}, options));
16805
+ return this.client.post("/v1/service_points/list", __spreadValues$w({}, options));
16798
16806
  };
16799
16807
  /**
16800
16808
  * Get a specific service point by its carrier code, country code, and id
@@ -34253,25 +34261,25 @@ class WebhooksAPI {
34253
34261
  }
34254
34262
  }
34255
34263
 
34256
- var __defProp$u = Object.defineProperty;
34257
- var __defProps$r = Object.defineProperties;
34258
- var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
34259
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
34260
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
34261
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
34262
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34263
- var __spreadValues$u = (a, b) => {
34264
+ var __defProp$v = Object.defineProperty;
34265
+ var __defProps$s = Object.defineProperties;
34266
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
34267
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
34268
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
34269
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
34270
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34271
+ var __spreadValues$v = (a, b) => {
34264
34272
  for (var prop in b || (b = {}))
34265
- if (__hasOwnProp$E.call(b, prop))
34266
- __defNormalProp$u(a, prop, b[prop]);
34267
- if (__getOwnPropSymbols$E)
34268
- for (var prop of __getOwnPropSymbols$E(b)) {
34269
- if (__propIsEnum$E.call(b, prop))
34270
- __defNormalProp$u(a, prop, b[prop]);
34273
+ if (__hasOwnProp$F.call(b, prop))
34274
+ __defNormalProp$v(a, prop, b[prop]);
34275
+ if (__getOwnPropSymbols$F)
34276
+ for (var prop of __getOwnPropSymbols$F(b)) {
34277
+ if (__propIsEnum$F.call(b, prop))
34278
+ __defNormalProp$v(a, prop, b[prop]);
34271
34279
  }
34272
34280
  return a;
34273
34281
  };
34274
- var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
34282
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
34275
34283
  var __async$T = (__this, __arguments, generator) => {
34276
34284
  return new Promise((resolve, reject) => {
34277
34285
  var fulfilled = (value) => {
@@ -34295,7 +34303,7 @@ var __async$T = (__this, __arguments, generator) => {
34295
34303
  const logger$1 = E({
34296
34304
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34297
34305
  name: "shipengine-api",
34298
- serializers: __spreadProps$r(__spreadValues$u({}, k), {
34306
+ serializers: __spreadProps$s(__spreadValues$v({}, k), {
34299
34307
  req: (req) => ({
34300
34308
  headers: req.headers,
34301
34309
  method: req.method,
@@ -34320,7 +34328,7 @@ class ShipEngineAPI {
34320
34328
  this.getSandboxToken = getSandboxToken;
34321
34329
  const client = axios.create({
34322
34330
  baseURL,
34323
- headers: __spreadProps$r(__spreadValues$u({}, headers), {
34331
+ headers: __spreadProps$s(__spreadValues$v({}, headers), {
34324
34332
  "Content-Type": "application/json"
34325
34333
  }),
34326
34334
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34724,25 +34732,25 @@ const delay = (ms) => new Promise((resolve) => {
34724
34732
 
34725
34733
  const onError = (_errors) => _default();
34726
34734
 
34727
- var __defProp$t = Object.defineProperty;
34728
- var __defProps$q = Object.defineProperties;
34729
- var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
34730
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
34731
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
34732
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
34733
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34734
- var __spreadValues$t = (a, b) => {
34735
+ var __defProp$u = Object.defineProperty;
34736
+ var __defProps$r = Object.defineProperties;
34737
+ var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
34738
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
34739
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
34740
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
34741
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34742
+ var __spreadValues$u = (a, b) => {
34735
34743
  for (var prop in b || (b = {}))
34736
- if (__hasOwnProp$D.call(b, prop))
34737
- __defNormalProp$t(a, prop, b[prop]);
34738
- if (__getOwnPropSymbols$D)
34739
- for (var prop of __getOwnPropSymbols$D(b)) {
34740
- if (__propIsEnum$D.call(b, prop))
34741
- __defNormalProp$t(a, prop, b[prop]);
34744
+ if (__hasOwnProp$E.call(b, prop))
34745
+ __defNormalProp$u(a, prop, b[prop]);
34746
+ if (__getOwnPropSymbols$E)
34747
+ for (var prop of __getOwnPropSymbols$E(b)) {
34748
+ if (__propIsEnum$E.call(b, prop))
34749
+ __defNormalProp$u(a, prop, b[prop]);
34742
34750
  }
34743
34751
  return a;
34744
34752
  };
34745
- var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
34753
+ var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
34746
34754
  const streams = [];
34747
34755
  if (process.env.NODE_ENV === "production") {
34748
34756
  streams.push({
@@ -34751,7 +34759,7 @@ if (process.env.NODE_ENV === "production") {
34751
34759
  }
34752
34760
  const logger = E({
34753
34761
  name: "shipengine",
34754
- serializers: __spreadProps$q(__spreadValues$t({}, k), {
34762
+ serializers: __spreadProps$r(__spreadValues$u({}, k), {
34755
34763
  req: (req) => ({
34756
34764
  headers: req.headers,
34757
34765
  method: req.method,
@@ -34988,25 +34996,25 @@ const useValidateAddresses = () => {
34988
34996
  });
34989
34997
  };
34990
34998
 
34991
- var __defProp$s = Object.defineProperty;
34992
- var __defProps$p = Object.defineProperties;
34993
- var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
34994
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
34995
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
34996
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
34997
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34998
- var __spreadValues$s = (a, b) => {
34999
+ var __defProp$t = Object.defineProperty;
35000
+ var __defProps$q = Object.defineProperties;
35001
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
35002
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35003
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35004
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35005
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35006
+ var __spreadValues$t = (a, b) => {
34999
35007
  for (var prop in b || (b = {}))
35000
- if (__hasOwnProp$C.call(b, prop))
35001
- __defNormalProp$s(a, prop, b[prop]);
35002
- if (__getOwnPropSymbols$C)
35003
- for (var prop of __getOwnPropSymbols$C(b)) {
35004
- if (__propIsEnum$C.call(b, prop))
35005
- __defNormalProp$s(a, prop, b[prop]);
35008
+ if (__hasOwnProp$D.call(b, prop))
35009
+ __defNormalProp$t(a, prop, b[prop]);
35010
+ if (__getOwnPropSymbols$D)
35011
+ for (var prop of __getOwnPropSymbols$D(b)) {
35012
+ if (__propIsEnum$D.call(b, prop))
35013
+ __defNormalProp$t(a, prop, b[prop]);
35006
35014
  }
35007
35015
  return a;
35008
35016
  };
35009
- var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
35017
+ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
35010
35018
  var __async$M = (__this, __arguments, generator) => {
35011
35019
  return new Promise((resolve, reject) => {
35012
35020
  var fulfilled = (value) => {
@@ -35029,7 +35037,7 @@ var __async$M = (__this, __arguments, generator) => {
35029
35037
  };
35030
35038
  const useCreateAuctanePaySession = (params) => {
35031
35039
  const { client } = useShipEngine();
35032
- return useMutation(__spreadProps$p(__spreadValues$s({}, params), {
35040
+ return useMutation(__spreadProps$q(__spreadValues$t({}, params), {
35033
35041
  mutationFn: (request) => __async$M(void 0, null, function* () {
35034
35042
  const result = yield client.auctanePay.createSession(request);
35035
35043
  return result.data;
@@ -35039,6 +35047,36 @@ const useCreateAuctanePaySession = (params) => {
35039
35047
  }));
35040
35048
  };
35041
35049
 
35050
+ var __defProp$s = Object.defineProperty;
35051
+ var __defProps$p = Object.defineProperties;
35052
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
35053
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35054
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35055
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35056
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35057
+ var __spreadValues$s = (a, b) => {
35058
+ for (var prop in b || (b = {}))
35059
+ if (__hasOwnProp$C.call(b, prop))
35060
+ __defNormalProp$s(a, prop, b[prop]);
35061
+ if (__getOwnPropSymbols$C)
35062
+ for (var prop of __getOwnPropSymbols$C(b)) {
35063
+ if (__propIsEnum$C.call(b, prop))
35064
+ __defNormalProp$s(a, prop, b[prop]);
35065
+ }
35066
+ return a;
35067
+ };
35068
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
35069
+ const useGetAuctanePayConfig = (params) => {
35070
+ const { client } = useShipEngine();
35071
+ const queryParams = __spreadValues$s({}, params);
35072
+ return useQuery(__spreadProps$p(__spreadValues$s({}, queryParams), {
35073
+ onError,
35074
+ queryFn: () => client.auctanePay.getConfig(),
35075
+ queryKey: ["useGetAuctanePayConfig"],
35076
+ select: (result) => result.data
35077
+ }));
35078
+ };
35079
+
35042
35080
  var __async$L = (__this, __arguments, generator) => {
35043
35081
  return new Promise((resolve, reject) => {
35044
35082
  var fulfilled = (value) => {
@@ -39215,4 +39253,4 @@ const alchemy = {
39215
39253
  createElement
39216
39254
  };
39217
39255
 
39218
- 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, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, 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 };
39256
+ 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, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/alchemy",
3
- "version": "6.0.38",
3
+ "version": "6.0.40",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {