@shipengine/alchemy 2.2.4 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { createContext, forwardRef, useContext, createElement as createElement$1
3
3
  import { jsx as jsx$1, jsxs as jsxs$1 } from 'react/jsx-runtime';
4
4
  import { css, Global, ThemeProvider, CacheProvider } from '@emotion/react';
5
5
  import { BrandName } from '@packlink/brands';
6
- import { getEmotionResetStyles, createIconCache, GigerConfigProvider } from '@packlink/giger';
6
+ import { createIconCache, getEmotionResetStyles, GigerConfigProvider, GigerTestProvider } from '@packlink/giger';
7
7
  import { QueryClient, QueryClientProvider, useQuery, useMutation, useQueryClient } from 'react-query';
8
8
  import { Theme } from '@packlink/giger-theme';
9
9
  import { I18nextProvider } from 'react-i18next';
@@ -2455,17 +2455,17 @@ Object.defineProperty(dist, "__esModule", { value: true });
2455
2455
  var _default = dist.default = (function () {
2456
2456
  });
2457
2457
 
2458
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2459
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2460
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
2458
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2459
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2460
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
2461
2461
  var __objRest$8 = (source, exclude) => {
2462
2462
  var target = {};
2463
2463
  for (var prop in source)
2464
- if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
2464
+ if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
2465
2465
  target[prop] = source[prop];
2466
- if (source != null && __getOwnPropSymbols$e)
2467
- for (var prop of __getOwnPropSymbols$e(source)) {
2468
- if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
2466
+ if (source != null && __getOwnPropSymbols$c)
2467
+ for (var prop of __getOwnPropSymbols$c(source)) {
2468
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
2469
2469
  target[prop] = source[prop];
2470
2470
  }
2471
2471
  return target;
@@ -5232,7 +5232,7 @@ var ipaddr = {
5232
5232
  }).call(commonjsGlobal);
5233
5233
  } (ipaddr));
5234
5234
 
5235
- var __async$x = (__this, __arguments, generator) => {
5235
+ var __async$w = (__this, __arguments, generator) => {
5236
5236
  return new Promise((resolve, reject) => {
5237
5237
  var fulfilled = (value) => {
5238
5238
  try {
@@ -5252,7 +5252,7 @@ var __async$x = (__this, __arguments, generator) => {
5252
5252
  step((generator = generator.apply(__this, __arguments)).next());
5253
5253
  });
5254
5254
  };
5255
- const getEndUserIpAddress = () => __async$x(void 0, null, function* () {
5255
+ const getEndUserIpAddress = () => __async$w(void 0, null, function* () {
5256
5256
  try {
5257
5257
  const response = yield axios.get("https://api.ipify.org/?format=json");
5258
5258
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -5264,38 +5264,38 @@ const getEndUserIpAddress = () => __async$x(void 0, null, function* () {
5264
5264
  }
5265
5265
  });
5266
5266
 
5267
- var __defProp$7 = Object.defineProperty;
5268
- var __defProps$5 = Object.defineProperties;
5269
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
5270
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
5271
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
5272
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
5273
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5274
- var __spreadValues$7 = (a, b) => {
5267
+ var __defProp$5 = Object.defineProperty;
5268
+ var __defProps$3 = Object.defineProperties;
5269
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
5270
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
5271
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
5272
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
5273
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5274
+ var __spreadValues$5 = (a, b) => {
5275
5275
  for (var prop in b || (b = {}))
5276
- if (__hasOwnProp$d.call(b, prop))
5277
- __defNormalProp$7(a, prop, b[prop]);
5278
- if (__getOwnPropSymbols$d)
5279
- for (var prop of __getOwnPropSymbols$d(b)) {
5280
- if (__propIsEnum$d.call(b, prop))
5281
- __defNormalProp$7(a, prop, b[prop]);
5276
+ if (__hasOwnProp$b.call(b, prop))
5277
+ __defNormalProp$5(a, prop, b[prop]);
5278
+ if (__getOwnPropSymbols$b)
5279
+ for (var prop of __getOwnPropSymbols$b(b)) {
5280
+ if (__propIsEnum$b.call(b, prop))
5281
+ __defNormalProp$5(a, prop, b[prop]);
5282
5282
  }
5283
5283
  return a;
5284
5284
  };
5285
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
5285
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
5286
5286
  var __objRest$7 = (source, exclude) => {
5287
5287
  var target = {};
5288
5288
  for (var prop in source)
5289
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
5289
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
5290
5290
  target[prop] = source[prop];
5291
- if (source != null && __getOwnPropSymbols$d)
5292
- for (var prop of __getOwnPropSymbols$d(source)) {
5293
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
5291
+ if (source != null && __getOwnPropSymbols$b)
5292
+ for (var prop of __getOwnPropSymbols$b(source)) {
5293
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
5294
5294
  target[prop] = source[prop];
5295
5295
  }
5296
5296
  return target;
5297
5297
  };
5298
- var __async$w = (__this, __arguments, generator) => {
5298
+ var __async$v = (__this, __arguments, generator) => {
5299
5299
  return new Promise((resolve, reject) => {
5300
5300
  var fulfilled = (value) => {
5301
5301
  try {
@@ -5333,12 +5333,12 @@ class CarriersAPI {
5333
5333
  /**
5334
5334
  * The `connect` method connects a carrier account to a user's ShipEngine account.
5335
5335
  */
5336
- this.connect = (_a) => __async$w(this, null, function* () {
5336
+ this.connect = (_a) => __async$v(this, null, function* () {
5337
5337
  var _b = _a, { carrierCode } = _b, connection = __objRest$7(_b, ["carrierCode"]);
5338
5338
  const endUserIpAddress = yield getEndUserIpAddress();
5339
5339
  if (!endUserIpAddress)
5340
5340
  return Promise.reject([new CodedError("Unable to get IP address")]);
5341
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$5(__spreadValues$7({}, connection), {
5341
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$3(__spreadValues$5({}, connection), {
5342
5342
  endUserIpAddress
5343
5343
  }));
5344
5344
  });
@@ -7613,23 +7613,23 @@ class CustomPackagesAPI {
7613
7613
  }
7614
7614
  }
7615
7615
 
7616
- var __defProp$6 = Object.defineProperty;
7617
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
7618
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
7619
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
7620
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7621
- var __spreadValues$6 = (a, b) => {
7616
+ var __defProp$4 = Object.defineProperty;
7617
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
7618
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
7619
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
7620
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7621
+ var __spreadValues$4 = (a, b) => {
7622
7622
  for (var prop in b || (b = {}))
7623
- if (__hasOwnProp$c.call(b, prop))
7624
- __defNormalProp$6(a, prop, b[prop]);
7625
- if (__getOwnPropSymbols$c)
7626
- for (var prop of __getOwnPropSymbols$c(b)) {
7627
- if (__propIsEnum$c.call(b, prop))
7628
- __defNormalProp$6(a, prop, b[prop]);
7623
+ if (__hasOwnProp$a.call(b, prop))
7624
+ __defNormalProp$4(a, prop, b[prop]);
7625
+ if (__getOwnPropSymbols$a)
7626
+ for (var prop of __getOwnPropSymbols$a(b)) {
7627
+ if (__propIsEnum$a.call(b, prop))
7628
+ __defNormalProp$4(a, prop, b[prop]);
7629
7629
  }
7630
7630
  return a;
7631
7631
  };
7632
- var __async$v = (__this, __arguments, generator) => {
7632
+ var __async$u = (__this, __arguments, generator) => {
7633
7633
  return new Promise((resolve, reject) => {
7634
7634
  var fulfilled = (value) => {
7635
7635
  try {
@@ -7668,11 +7668,11 @@ class FundingSourcesAPI {
7668
7668
  * The `create` method creates a new funding source for a given user. This requires
7669
7669
  * payment information to be collected from the user.
7670
7670
  */
7671
- this.create = (createFundingSource) => __async$v(this, null, function* () {
7671
+ this.create = (createFundingSource) => __async$u(this, null, function* () {
7672
7672
  const endUserIpAddress = yield getEndUserIpAddress();
7673
7673
  if (!endUserIpAddress)
7674
7674
  return Promise.reject([new CodedError("Unable to get IP address")]);
7675
- return yield this.client.post("/v1/funding_sources", __spreadValues$6({
7675
+ return yield this.client.post("/v1/funding_sources", __spreadValues$4({
7676
7676
  endUserIpAddress
7677
7677
  }, createFundingSource));
7678
7678
  });
@@ -7681,7 +7681,7 @@ class FundingSourcesAPI {
7681
7681
  * user to update the billing address or payment information associated with the
7682
7682
  * funding source.
7683
7683
  */
7684
- this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$v(this, null, function* () {
7684
+ this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$u(this, null, function* () {
7685
7685
  const endUserIpAddress = yield getEndUserIpAddress();
7686
7686
  if (!endUserIpAddress)
7687
7687
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -7698,18 +7698,18 @@ class FundingSourcesAPI {
7698
7698
  * The `registerCarrier` method registers a carrier account and associates
7699
7699
  * it with a given funding source.
7700
7700
  */
7701
- this.registerCarrier = (carrier) => __async$v(this, null, function* () {
7701
+ this.registerCarrier = (carrier) => __async$u(this, null, function* () {
7702
7702
  const endUserIpAddress = yield getEndUserIpAddress();
7703
7703
  if (!endUserIpAddress)
7704
7704
  return Promise.reject([new CodedError("Unable to get IP address")]);
7705
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$6({
7705
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$4({
7706
7706
  endUserIpAddress
7707
7707
  }, carrier));
7708
7708
  });
7709
7709
  /**
7710
7710
  * The `addFunds` method allows you to add funds to a funding source.
7711
7711
  */
7712
- this.addFunds = (amount, fundingSourceId) => __async$v(this, null, function* () {
7712
+ this.addFunds = (amount, fundingSourceId) => __async$u(this, null, function* () {
7713
7713
  return yield this.client.put(
7714
7714
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
7715
7715
  amount
@@ -7943,7 +7943,7 @@ class SalesOrdersAPI {
7943
7943
  }
7944
7944
  }
7945
7945
 
7946
- var __async$u = (__this, __arguments, generator) => {
7946
+ var __async$t = (__this, __arguments, generator) => {
7947
7947
  return new Promise((resolve, reject) => {
7948
7948
  var fulfilled = (value) => {
7949
7949
  try {
@@ -7986,7 +7986,7 @@ class ShipmentsAPI {
7986
7986
  * The `create` method allows for creating shipments based on a list of shipment
7987
7987
  * items passed into this method.
7988
7988
  */
7989
- this.create = (...shipments) => __async$u(this, null, function* () {
7989
+ this.create = (...shipments) => __async$t(this, null, function* () {
7990
7990
  return this.client.post("/v1/shipments", {
7991
7991
  shipments
7992
7992
  });
@@ -8030,26 +8030,26 @@ class WarehousesAPI {
8030
8030
  }
8031
8031
  }
8032
8032
 
8033
- var __defProp$5 = Object.defineProperty;
8034
- var __defProps$4 = Object.defineProperties;
8035
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
8036
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
8037
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
8038
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
8039
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8040
- var __spreadValues$5 = (a, b) => {
8033
+ var __defProp$3 = Object.defineProperty;
8034
+ var __defProps$2 = Object.defineProperties;
8035
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
8036
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
8037
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
8038
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
8039
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8040
+ var __spreadValues$3 = (a, b) => {
8041
8041
  for (var prop in b || (b = {}))
8042
- if (__hasOwnProp$b.call(b, prop))
8043
- __defNormalProp$5(a, prop, b[prop]);
8044
- if (__getOwnPropSymbols$b)
8045
- for (var prop of __getOwnPropSymbols$b(b)) {
8046
- if (__propIsEnum$b.call(b, prop))
8047
- __defNormalProp$5(a, prop, b[prop]);
8042
+ if (__hasOwnProp$9.call(b, prop))
8043
+ __defNormalProp$3(a, prop, b[prop]);
8044
+ if (__getOwnPropSymbols$9)
8045
+ for (var prop of __getOwnPropSymbols$9(b)) {
8046
+ if (__propIsEnum$9.call(b, prop))
8047
+ __defNormalProp$3(a, prop, b[prop]);
8048
8048
  }
8049
8049
  return a;
8050
8050
  };
8051
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
8052
- var __async$t = (__this, __arguments, generator) => {
8051
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
8052
+ var __async$s = (__this, __arguments, generator) => {
8053
8053
  return new Promise((resolve, reject) => {
8054
8054
  var fulfilled = (value) => {
8055
8055
  try {
@@ -8071,7 +8071,7 @@ var __async$t = (__this, __arguments, generator) => {
8071
8071
  };
8072
8072
  const logger$1 = E({
8073
8073
  name: "shipengine-api",
8074
- serializers: __spreadProps$4(__spreadValues$5({}, k), {
8074
+ serializers: __spreadProps$2(__spreadValues$3({}, k), {
8075
8075
  req: (req) => ({
8076
8076
  headers: req.headers,
8077
8077
  method: req.method,
@@ -8096,7 +8096,7 @@ class ShipEngineAPI {
8096
8096
  constructor(token, { baseURL, headers, getToken }) {
8097
8097
  const client = axios.create({
8098
8098
  baseURL,
8099
- headers: __spreadProps$4(__spreadValues$5({}, headers), {
8099
+ headers: __spreadProps$2(__spreadValues$3({}, headers), {
8100
8100
  Authorization: `Bearer ${token}`,
8101
8101
  "Content-Type": "application/json"
8102
8102
  }),
@@ -8143,7 +8143,7 @@ class ShipEngineAPI {
8143
8143
  );
8144
8144
  return res;
8145
8145
  },
8146
- (err) => __async$t(this, null, function* () {
8146
+ (err) => __async$s(this, null, function* () {
8147
8147
  var _a, _b, _c, _d, _e, _f, _g;
8148
8148
  logger$1.error(
8149
8149
  { err, req: err.config, res: err.response },
@@ -8370,25 +8370,25 @@ const delay = (ms) => new Promise((resolve) => {
8370
8370
 
8371
8371
  const onError = (errors) => errors.forEach(console.log);
8372
8372
 
8373
- var __defProp$4 = Object.defineProperty;
8374
- var __defProps$3 = Object.defineProperties;
8375
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
8376
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
8377
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
8378
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
8379
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8380
- var __spreadValues$4 = (a, b) => {
8373
+ var __defProp$2 = Object.defineProperty;
8374
+ var __defProps$1 = Object.defineProperties;
8375
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
8376
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
8377
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
8378
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
8379
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8380
+ var __spreadValues$2 = (a, b) => {
8381
8381
  for (var prop in b || (b = {}))
8382
- if (__hasOwnProp$a.call(b, prop))
8383
- __defNormalProp$4(a, prop, b[prop]);
8384
- if (__getOwnPropSymbols$a)
8385
- for (var prop of __getOwnPropSymbols$a(b)) {
8386
- if (__propIsEnum$a.call(b, prop))
8387
- __defNormalProp$4(a, prop, b[prop]);
8382
+ if (__hasOwnProp$8.call(b, prop))
8383
+ __defNormalProp$2(a, prop, b[prop]);
8384
+ if (__getOwnPropSymbols$8)
8385
+ for (var prop of __getOwnPropSymbols$8(b)) {
8386
+ if (__propIsEnum$8.call(b, prop))
8387
+ __defNormalProp$2(a, prop, b[prop]);
8388
8388
  }
8389
8389
  return a;
8390
8390
  };
8391
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
8391
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
8392
8392
  const streams = [];
8393
8393
  if (process.env.NODE_ENV === "production") {
8394
8394
  streams.push({
@@ -8397,7 +8397,7 @@ if (process.env.NODE_ENV === "production") {
8397
8397
  }
8398
8398
  const logger = E({
8399
8399
  name: "shipengine",
8400
- serializers: __spreadProps$3(__spreadValues$4({}, k), {
8400
+ serializers: __spreadProps$1(__spreadValues$2({}, k), {
8401
8401
  req: (req) => ({
8402
8402
  headers: req.headers,
8403
8403
  method: req.method,
@@ -8432,7 +8432,7 @@ const useGetAccountSettings = () => {
8432
8432
  });
8433
8433
  };
8434
8434
 
8435
- var __async$s = (__this, __arguments, generator) => {
8435
+ var __async$r = (__this, __arguments, generator) => {
8436
8436
  return new Promise((resolve, reject) => {
8437
8437
  var fulfilled = (value) => {
8438
8438
  try {
@@ -8455,7 +8455,7 @@ var __async$s = (__this, __arguments, generator) => {
8455
8455
  const useUpdateAccountSettings = () => {
8456
8456
  const { client } = useShipEngine();
8457
8457
  return useMutation({
8458
- mutationFn: (settings) => __async$s(void 0, null, function* () {
8458
+ mutationFn: (settings) => __async$r(void 0, null, function* () {
8459
8459
  const result = yield client.accountSettings.update(settings);
8460
8460
  return result.data;
8461
8461
  }),
@@ -8464,7 +8464,7 @@ const useUpdateAccountSettings = () => {
8464
8464
  });
8465
8465
  };
8466
8466
 
8467
- var __async$r = (__this, __arguments, generator) => {
8467
+ var __async$q = (__this, __arguments, generator) => {
8468
8468
  return new Promise((resolve, reject) => {
8469
8469
  var fulfilled = (value) => {
8470
8470
  try {
@@ -8487,7 +8487,7 @@ var __async$r = (__this, __arguments, generator) => {
8487
8487
  const useParseAddress = () => {
8488
8488
  const { client } = useShipEngine();
8489
8489
  return useMutation({
8490
- mutationFn: (_0) => __async$r(void 0, [_0], function* ({ address, text }) {
8490
+ mutationFn: (_0) => __async$q(void 0, [_0], function* ({ address, text }) {
8491
8491
  const result = yield client.addresses.parse(text, address);
8492
8492
  return result.data;
8493
8493
  }),
@@ -8496,7 +8496,7 @@ const useParseAddress = () => {
8496
8496
  });
8497
8497
  };
8498
8498
 
8499
- var __async$q = (__this, __arguments, generator) => {
8499
+ var __async$p = (__this, __arguments, generator) => {
8500
8500
  return new Promise((resolve, reject) => {
8501
8501
  var fulfilled = (value) => {
8502
8502
  try {
@@ -8519,7 +8519,7 @@ var __async$q = (__this, __arguments, generator) => {
8519
8519
  const useValidateAddresses = () => {
8520
8520
  const { client } = useShipEngine();
8521
8521
  return useMutation({
8522
- mutationFn: (addresses) => __async$q(void 0, null, function* () {
8522
+ mutationFn: (addresses) => __async$p(void 0, null, function* () {
8523
8523
  const result = yield client.addresses.validate(addresses);
8524
8524
  return result.data;
8525
8525
  }),
@@ -8528,7 +8528,7 @@ const useValidateAddresses = () => {
8528
8528
  });
8529
8529
  };
8530
8530
 
8531
- var __async$p = (__this, __arguments, generator) => {
8531
+ var __async$o = (__this, __arguments, generator) => {
8532
8532
  return new Promise((resolve, reject) => {
8533
8533
  var fulfilled = (value) => {
8534
8534
  try {
@@ -8551,7 +8551,7 @@ var __async$p = (__this, __arguments, generator) => {
8551
8551
  const useAddFunds = (carrierId) => {
8552
8552
  const { client } = useShipEngine();
8553
8553
  return useMutation({
8554
- mutationFn: (funds) => __async$p(void 0, null, function* () {
8554
+ mutationFn: (funds) => __async$o(void 0, null, function* () {
8555
8555
  const result = yield client.carriers.addFunds(carrierId, funds);
8556
8556
  return result.data;
8557
8557
  }),
@@ -8560,7 +8560,7 @@ const useAddFunds = (carrierId) => {
8560
8560
  });
8561
8561
  };
8562
8562
 
8563
- var __async$o = (__this, __arguments, generator) => {
8563
+ var __async$n = (__this, __arguments, generator) => {
8564
8564
  return new Promise((resolve, reject) => {
8565
8565
  var fulfilled = (value) => {
8566
8566
  try {
@@ -8583,7 +8583,7 @@ var __async$o = (__this, __arguments, generator) => {
8583
8583
  const useConnectCarrier = () => {
8584
8584
  const { client } = useShipEngine();
8585
8585
  return useMutation({
8586
- mutationFn: (params) => __async$o(void 0, null, function* () {
8586
+ mutationFn: (params) => __async$n(void 0, null, function* () {
8587
8587
  const result = yield client.carriers.connect(params);
8588
8588
  return result.data;
8589
8589
  }),
@@ -8720,7 +8720,7 @@ const useListCarriers = () => {
8720
8720
  });
8721
8721
  };
8722
8722
 
8723
- var __async$n = (__this, __arguments, generator) => {
8723
+ var __async$m = (__this, __arguments, generator) => {
8724
8724
  return new Promise((resolve, reject) => {
8725
8725
  var fulfilled = (value) => {
8726
8726
  try {
@@ -8744,7 +8744,7 @@ const useUpdateAutoFunding = (carrierId) => {
8744
8744
  const { client } = useShipEngine();
8745
8745
  const queryClient = useQueryClient();
8746
8746
  return useMutation({
8747
- mutationFn: (options) => __async$n(void 0, null, function* () {
8747
+ mutationFn: (options) => __async$m(void 0, null, function* () {
8748
8748
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
8749
8749
  return result.data;
8750
8750
  }),
@@ -8766,7 +8766,7 @@ const useListCustomPackageTypes = () => {
8766
8766
  });
8767
8767
  };
8768
8768
 
8769
- var __async$m = (__this, __arguments, generator) => {
8769
+ var __async$l = (__this, __arguments, generator) => {
8770
8770
  return new Promise((resolve, reject) => {
8771
8771
  var fulfilled = (value) => {
8772
8772
  try {
@@ -8789,7 +8789,7 @@ var __async$m = (__this, __arguments, generator) => {
8789
8789
  const useCreateFundingSource = () => {
8790
8790
  const { client } = useShipEngine();
8791
8791
  return useMutation({
8792
- mutationFn: (fundingSource) => __async$m(void 0, null, function* () {
8792
+ mutationFn: (fundingSource) => __async$l(void 0, null, function* () {
8793
8793
  const result = yield client.fundingSources.create(fundingSource);
8794
8794
  return result.data;
8795
8795
  }),
@@ -8798,7 +8798,7 @@ const useCreateFundingSource = () => {
8798
8798
  });
8799
8799
  };
8800
8800
 
8801
- var __async$l = (__this, __arguments, generator) => {
8801
+ var __async$k = (__this, __arguments, generator) => {
8802
8802
  return new Promise((resolve, reject) => {
8803
8803
  var fulfilled = (value) => {
8804
8804
  try {
@@ -8821,7 +8821,7 @@ var __async$l = (__this, __arguments, generator) => {
8821
8821
  const useFundingSourcesAddFunds = (fundingSourceId) => {
8822
8822
  const { client } = useShipEngine();
8823
8823
  return useMutation({
8824
- mutationFn: (funds) => __async$l(void 0, null, function* () {
8824
+ mutationFn: (funds) => __async$k(void 0, null, function* () {
8825
8825
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
8826
8826
  return result.data;
8827
8827
  }),
@@ -8850,7 +8850,7 @@ const useListFundingSources = () => {
8850
8850
  });
8851
8851
  };
8852
8852
 
8853
- var __async$k = (__this, __arguments, generator) => {
8853
+ var __async$j = (__this, __arguments, generator) => {
8854
8854
  return new Promise((resolve, reject) => {
8855
8855
  var fulfilled = (value) => {
8856
8856
  try {
@@ -8873,7 +8873,7 @@ var __async$k = (__this, __arguments, generator) => {
8873
8873
  const useRegisterCarrier = () => {
8874
8874
  const { client } = useShipEngine();
8875
8875
  return useMutation({
8876
- mutationFn: (carrier) => __async$k(void 0, null, function* () {
8876
+ mutationFn: (carrier) => __async$j(void 0, null, function* () {
8877
8877
  const result = yield client.fundingSources.registerCarrier(carrier);
8878
8878
  return result.data;
8879
8879
  }),
@@ -8882,7 +8882,7 @@ const useRegisterCarrier = () => {
8882
8882
  });
8883
8883
  };
8884
8884
 
8885
- var __async$j = (__this, __arguments, generator) => {
8885
+ var __async$i = (__this, __arguments, generator) => {
8886
8886
  return new Promise((resolve, reject) => {
8887
8887
  var fulfilled = (value) => {
8888
8888
  try {
@@ -8905,7 +8905,7 @@ var __async$j = (__this, __arguments, generator) => {
8905
8905
  const useUpdateFundingSource = () => {
8906
8906
  const { client } = useShipEngine();
8907
8907
  return useMutation({
8908
- mutationFn: (_0) => __async$j(void 0, [_0], function* ({
8908
+ mutationFn: (_0) => __async$i(void 0, [_0], function* ({
8909
8909
  billingInfo,
8910
8910
  creditCardInfo,
8911
8911
  fundingSourceId
@@ -8937,22 +8937,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
8937
8937
  });
8938
8938
  };
8939
8939
 
8940
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
8941
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
8942
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
8940
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
8941
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
8942
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
8943
8943
  var __objRest$6 = (source, exclude) => {
8944
8944
  var target = {};
8945
8945
  for (var prop in source)
8946
- if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
8946
+ if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
8947
8947
  target[prop] = source[prop];
8948
- if (source != null && __getOwnPropSymbols$9)
8949
- for (var prop of __getOwnPropSymbols$9(source)) {
8950
- if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
8948
+ if (source != null && __getOwnPropSymbols$7)
8949
+ for (var prop of __getOwnPropSymbols$7(source)) {
8950
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
8951
8951
  target[prop] = source[prop];
8952
8952
  }
8953
8953
  return target;
8954
8954
  };
8955
- var __async$i = (__this, __arguments, generator) => {
8955
+ var __async$h = (__this, __arguments, generator) => {
8956
8956
  return new Promise((resolve, reject) => {
8957
8957
  var fulfilled = (value) => {
8958
8958
  try {
@@ -8975,7 +8975,7 @@ var __async$i = (__this, __arguments, generator) => {
8975
8975
  const useCreateLabel = () => {
8976
8976
  const { client } = useShipEngine();
8977
8977
  return useMutation({
8978
- mutationFn: (_a) => __async$i(void 0, null, function* () {
8978
+ mutationFn: (_a) => __async$h(void 0, null, function* () {
8979
8979
  var _b = _a, { rateId } = _b, options = __objRest$6(_b, ["rateId"]);
8980
8980
  const result = yield client.labels.createByRateId(rateId, options);
8981
8981
  return result.data;
@@ -9011,7 +9011,7 @@ const useListLabels = (params) => {
9011
9011
  });
9012
9012
  };
9013
9013
 
9014
- var __async$h = (__this, __arguments, generator) => {
9014
+ var __async$g = (__this, __arguments, generator) => {
9015
9015
  return new Promise((resolve, reject) => {
9016
9016
  var fulfilled = (value) => {
9017
9017
  try {
@@ -9034,7 +9034,7 @@ var __async$h = (__this, __arguments, generator) => {
9034
9034
  const useVoidLabel = () => {
9035
9035
  const { client } = useShipEngine();
9036
9036
  return useMutation({
9037
- mutationFn: (labelId) => __async$h(void 0, null, function* () {
9037
+ mutationFn: (labelId) => __async$g(void 0, null, function* () {
9038
9038
  const result = yield client.labels.void(labelId);
9039
9039
  return result.data;
9040
9040
  }),
@@ -9053,7 +9053,7 @@ const useListOrderSources = () => {
9053
9053
  });
9054
9054
  };
9055
9055
 
9056
- var __async$g = (__this, __arguments, generator) => {
9056
+ var __async$f = (__this, __arguments, generator) => {
9057
9057
  return new Promise((resolve, reject) => {
9058
9058
  var fulfilled = (value) => {
9059
9059
  try {
@@ -9076,7 +9076,7 @@ var __async$g = (__this, __arguments, generator) => {
9076
9076
  const useRefreshOrderSourceAsync = () => {
9077
9077
  const { client } = useShipEngine();
9078
9078
  return useMutation({
9079
- mutationFn: (orderSourceId) => __async$g(void 0, null, function* () {
9079
+ mutationFn: (orderSourceId) => __async$f(void 0, null, function* () {
9080
9080
  const result = yield client.orderSources.refresh(orderSourceId);
9081
9081
  return result.data;
9082
9082
  }),
@@ -9087,9 +9087,9 @@ const useRefreshOrderSource = () => {
9087
9087
  const { client } = useShipEngine();
9088
9088
  const { mutateAsync: refreshOrderSourceAsync } = useRefreshOrderSourceAsync();
9089
9089
  return useMutation({
9090
- mutationFn: (orderSourceId) => __async$g(void 0, null, function* () {
9090
+ mutationFn: (orderSourceId) => __async$f(void 0, null, function* () {
9091
9091
  yield refreshOrderSourceAsync(orderSourceId);
9092
- const waitResult = yield retryUntil(() => __async$g(void 0, null, function* () {
9092
+ const waitResult = yield retryUntil(() => __async$f(void 0, null, function* () {
9093
9093
  const { data: checkResult } = yield client.orderSources.get(orderSourceId);
9094
9094
  if (["preparing_update", "updating"].includes(checkResult.refreshInfo.status)) {
9095
9095
  throw new CodedError("Order source is still refreshing");
@@ -9103,7 +9103,7 @@ const useRefreshOrderSource = () => {
9103
9103
  });
9104
9104
  };
9105
9105
 
9106
- var __async$f = (__this, __arguments, generator) => {
9106
+ var __async$e = (__this, __arguments, generator) => {
9107
9107
  return new Promise((resolve, reject) => {
9108
9108
  var fulfilled = (value) => {
9109
9109
  try {
@@ -9126,7 +9126,7 @@ var __async$f = (__this, __arguments, generator) => {
9126
9126
  const useCreateRateCard = () => {
9127
9127
  const { client } = useShipEngine();
9128
9128
  return useMutation({
9129
- mutationFn: (rateCard) => __async$f(void 0, null, function* () {
9129
+ mutationFn: (rateCard) => __async$e(void 0, null, function* () {
9130
9130
  const result = yield client.rateCards.create(rateCard);
9131
9131
  return result.data;
9132
9132
  }),
@@ -9173,7 +9173,7 @@ const useListRateCards = (carrierIds) => {
9173
9173
  });
9174
9174
  };
9175
9175
 
9176
- var __async$e = (__this, __arguments, generator) => {
9176
+ var __async$d = (__this, __arguments, generator) => {
9177
9177
  return new Promise((resolve, reject) => {
9178
9178
  var fulfilled = (value) => {
9179
9179
  try {
@@ -9196,7 +9196,7 @@ var __async$e = (__this, __arguments, generator) => {
9196
9196
  const usePublishRateCard = () => {
9197
9197
  const { client } = useShipEngine();
9198
9198
  return useMutation({
9199
- mutationFn: (rateCardId) => __async$e(void 0, null, function* () {
9199
+ mutationFn: (rateCardId) => __async$d(void 0, null, function* () {
9200
9200
  return yield client.rateCards.publish(rateCardId);
9201
9201
  }),
9202
9202
  mutationKey: ["usePublishRateCard"],
@@ -9204,7 +9204,7 @@ const usePublishRateCard = () => {
9204
9204
  });
9205
9205
  };
9206
9206
 
9207
- var __async$d = (__this, __arguments, generator) => {
9207
+ var __async$c = (__this, __arguments, generator) => {
9208
9208
  return new Promise((resolve, reject) => {
9209
9209
  var fulfilled = (value) => {
9210
9210
  try {
@@ -9227,7 +9227,7 @@ var __async$d = (__this, __arguments, generator) => {
9227
9227
  const useUpdateRateCard = () => {
9228
9228
  const { client } = useShipEngine();
9229
9229
  return useMutation({
9230
- mutationFn: (rateCard) => __async$d(void 0, null, function* () {
9230
+ mutationFn: (rateCard) => __async$c(void 0, null, function* () {
9231
9231
  const result = yield client.rateCards.update(rateCard);
9232
9232
  return result.data;
9233
9233
  }),
@@ -9236,7 +9236,7 @@ const useUpdateRateCard = () => {
9236
9236
  });
9237
9237
  };
9238
9238
 
9239
- var __async$c = (__this, __arguments, generator) => {
9239
+ var __async$b = (__this, __arguments, generator) => {
9240
9240
  return new Promise((resolve, reject) => {
9241
9241
  var fulfilled = (value) => {
9242
9242
  try {
@@ -9259,7 +9259,7 @@ var __async$c = (__this, __arguments, generator) => {
9259
9259
  const useUploadRateCard = () => {
9260
9260
  const { client } = useShipEngine();
9261
9261
  return useMutation({
9262
- mutationFn: (_0) => __async$c(void 0, [_0], function* ({ rateCardId, file }) {
9262
+ mutationFn: (_0) => __async$b(void 0, [_0], function* ({ rateCardId, file }) {
9263
9263
  const result = yield client.rateCards.upload(rateCardId, file);
9264
9264
  return result.data;
9265
9265
  }),
@@ -9268,7 +9268,7 @@ const useUploadRateCard = () => {
9268
9268
  });
9269
9269
  };
9270
9270
 
9271
- var __async$b = (__this, __arguments, generator) => {
9271
+ var __async$a = (__this, __arguments, generator) => {
9272
9272
  return new Promise((resolve, reject) => {
9273
9273
  var fulfilled = (value) => {
9274
9274
  try {
@@ -9291,7 +9291,7 @@ var __async$b = (__this, __arguments, generator) => {
9291
9291
  const useDeleteRateCard = () => {
9292
9292
  const { client } = useShipEngine();
9293
9293
  return useMutation({
9294
- mutationFn: (rateCardId) => __async$b(void 0, null, function* () {
9294
+ mutationFn: (rateCardId) => __async$a(void 0, null, function* () {
9295
9295
  const result = yield client.rateCards.delete(rateCardId);
9296
9296
  return result.data;
9297
9297
  }),
@@ -9300,7 +9300,7 @@ const useDeleteRateCard = () => {
9300
9300
  });
9301
9301
  };
9302
9302
 
9303
- var __async$a = (__this, __arguments, generator) => {
9303
+ var __async$9 = (__this, __arguments, generator) => {
9304
9304
  return new Promise((resolve, reject) => {
9305
9305
  var fulfilled = (value) => {
9306
9306
  try {
@@ -9323,7 +9323,7 @@ var __async$a = (__this, __arguments, generator) => {
9323
9323
  const useCalculateRates = () => {
9324
9324
  const { client } = useShipEngine();
9325
9325
  return useMutation({
9326
- mutationFn: (_0) => __async$a(void 0, [_0], function* ({ rateOptions, shipmentId }) {
9326
+ mutationFn: (_0) => __async$9(void 0, [_0], function* ({ rateOptions, shipmentId }) {
9327
9327
  const result = yield client.rates.calculateByShipmentId(shipmentId, rateOptions);
9328
9328
  return result.data;
9329
9329
  }),
@@ -9358,22 +9358,22 @@ const useListSalesOrders = (params = {}) => {
9358
9358
  });
9359
9359
  };
9360
9360
 
9361
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
9362
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
9363
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
9361
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
9362
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
9363
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
9364
9364
  var __objRest$5 = (source, exclude) => {
9365
9365
  var target = {};
9366
9366
  for (var prop in source)
9367
- if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
9367
+ if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
9368
9368
  target[prop] = source[prop];
9369
- if (source != null && __getOwnPropSymbols$8)
9370
- for (var prop of __getOwnPropSymbols$8(source)) {
9371
- if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
9369
+ if (source != null && __getOwnPropSymbols$6)
9370
+ for (var prop of __getOwnPropSymbols$6(source)) {
9371
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
9372
9372
  target[prop] = source[prop];
9373
9373
  }
9374
9374
  return target;
9375
9375
  };
9376
- var __async$9 = (__this, __arguments, generator) => {
9376
+ var __async$8 = (__this, __arguments, generator) => {
9377
9377
  return new Promise((resolve, reject) => {
9378
9378
  var fulfilled = (value) => {
9379
9379
  try {
@@ -9396,7 +9396,7 @@ var __async$9 = (__this, __arguments, generator) => {
9396
9396
  const useNotifySalesOrderShipped = () => {
9397
9397
  const { client } = useShipEngine();
9398
9398
  return useMutation({
9399
- mutationFn: (_a) => __async$9(void 0, null, function* () {
9399
+ mutationFn: (_a) => __async$8(void 0, null, function* () {
9400
9400
  var _b = _a, { salesOrderId } = _b, tracking = __objRest$5(_b, ["salesOrderId"]);
9401
9401
  const result = yield client.salesOrders.notifyShipped(salesOrderId, tracking);
9402
9402
  return result.data;
@@ -9406,22 +9406,22 @@ const useNotifySalesOrderShipped = () => {
9406
9406
  });
9407
9407
  };
9408
9408
 
9409
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
9410
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
9411
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
9409
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
9410
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
9411
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
9412
9412
  var __objRest$4 = (source, exclude) => {
9413
9413
  var target = {};
9414
9414
  for (var prop in source)
9415
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
9415
+ if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
9416
9416
  target[prop] = source[prop];
9417
- if (source != null && __getOwnPropSymbols$7)
9418
- for (var prop of __getOwnPropSymbols$7(source)) {
9419
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
9417
+ if (source != null && __getOwnPropSymbols$5)
9418
+ for (var prop of __getOwnPropSymbols$5(source)) {
9419
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
9420
9420
  target[prop] = source[prop];
9421
9421
  }
9422
9422
  return target;
9423
9423
  };
9424
- var __async$8 = (__this, __arguments, generator) => {
9424
+ var __async$7 = (__this, __arguments, generator) => {
9425
9425
  return new Promise((resolve, reject) => {
9426
9426
  var fulfilled = (value) => {
9427
9427
  try {
@@ -9444,7 +9444,7 @@ var __async$8 = (__this, __arguments, generator) => {
9444
9444
  const useCreateSalesOrderShipment = () => {
9445
9445
  const { client } = useShipEngine();
9446
9446
  return useMutation({
9447
- mutationFn: (_a) => __async$8(void 0, null, function* () {
9447
+ mutationFn: (_a) => __async$7(void 0, null, function* () {
9448
9448
  var _b = _a, { salesOrderId } = _b, shipment = __objRest$4(_b, ["salesOrderId"]);
9449
9449
  const result = yield client.salesOrderShipments.create(salesOrderId, shipment);
9450
9450
  return result.data;
@@ -9480,22 +9480,22 @@ const useListSalesOrderShipments = (params) => {
9480
9480
  });
9481
9481
  };
9482
9482
 
9483
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
9484
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
9485
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
9483
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
9484
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
9485
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
9486
9486
  var __objRest$3 = (source, exclude) => {
9487
9487
  var target = {};
9488
9488
  for (var prop in source)
9489
- if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
9489
+ if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
9490
9490
  target[prop] = source[prop];
9491
- if (source != null && __getOwnPropSymbols$6)
9492
- for (var prop of __getOwnPropSymbols$6(source)) {
9493
- if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
9491
+ if (source != null && __getOwnPropSymbols$4)
9492
+ for (var prop of __getOwnPropSymbols$4(source)) {
9493
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
9494
9494
  target[prop] = source[prop];
9495
9495
  }
9496
9496
  return target;
9497
9497
  };
9498
- var __async$7 = (__this, __arguments, generator) => {
9498
+ var __async$6 = (__this, __arguments, generator) => {
9499
9499
  return new Promise((resolve, reject) => {
9500
9500
  var fulfilled = (value) => {
9501
9501
  try {
@@ -9518,7 +9518,7 @@ var __async$7 = (__this, __arguments, generator) => {
9518
9518
  const useUpdateSalesOrderShipment = () => {
9519
9519
  const { client } = useShipEngine();
9520
9520
  return useMutation({
9521
- mutationFn: (_a) => __async$7(void 0, null, function* () {
9521
+ mutationFn: (_a) => __async$6(void 0, null, function* () {
9522
9522
  var _b = _a, { shipmentId } = _b, shipment = __objRest$3(_b, ["shipmentId"]);
9523
9523
  const result = yield client.salesOrderShipments.update(shipmentId, shipment);
9524
9524
  return result.data;
@@ -9528,26 +9528,26 @@ const useUpdateSalesOrderShipment = () => {
9528
9528
  });
9529
9529
  };
9530
9530
 
9531
- var __defProp$3 = Object.defineProperty;
9532
- var __defProps$2 = Object.defineProperties;
9533
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
9534
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
9535
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
9536
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
9537
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9538
- var __spreadValues$3 = (a, b) => {
9531
+ var __defProp$1 = Object.defineProperty;
9532
+ var __defProps = Object.defineProperties;
9533
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
9534
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
9535
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
9536
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
9537
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9538
+ var __spreadValues$1 = (a, b) => {
9539
9539
  for (var prop in b || (b = {}))
9540
- if (__hasOwnProp$5.call(b, prop))
9541
- __defNormalProp$3(a, prop, b[prop]);
9542
- if (__getOwnPropSymbols$5)
9543
- for (var prop of __getOwnPropSymbols$5(b)) {
9544
- if (__propIsEnum$5.call(b, prop))
9545
- __defNormalProp$3(a, prop, b[prop]);
9540
+ if (__hasOwnProp$3.call(b, prop))
9541
+ __defNormalProp$1(a, prop, b[prop]);
9542
+ if (__getOwnPropSymbols$3)
9543
+ for (var prop of __getOwnPropSymbols$3(b)) {
9544
+ if (__propIsEnum$3.call(b, prop))
9545
+ __defNormalProp$1(a, prop, b[prop]);
9546
9546
  }
9547
9547
  return a;
9548
9548
  };
9549
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
9550
- var __async$6 = (__this, __arguments, generator) => {
9549
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9550
+ var __async$5 = (__this, __arguments, generator) => {
9551
9551
  return new Promise((resolve, reject) => {
9552
9552
  var fulfilled = (value) => {
9553
9553
  try {
@@ -9570,7 +9570,7 @@ var __async$6 = (__this, __arguments, generator) => {
9570
9570
  const useCreateShipment = () => {
9571
9571
  const { client } = useShipEngine();
9572
9572
  return useMutation({
9573
- mutationFn: (shipment) => __async$6(void 0, null, function* () {
9573
+ mutationFn: (shipment) => __async$5(void 0, null, function* () {
9574
9574
  var _a;
9575
9575
  if (shipment.warehouseId === void 0) {
9576
9576
  throw new CodedError("errorMessages.noWarehouses", {
@@ -9588,7 +9588,7 @@ const useCreateShipment = () => {
9588
9588
  postalCode: "",
9589
9589
  stateProvince: ""
9590
9590
  };
9591
- return (yield client.shipments.create(__spreadProps$2(__spreadValues$3({}, shipment), {
9591
+ return (yield client.shipments.create(__spreadProps(__spreadValues$1({}, shipment), {
9592
9592
  shipTo
9593
9593
  }))).data;
9594
9594
  }),
@@ -9629,17 +9629,17 @@ const useGetShipment = (shipmentId) => {
9629
9629
  });
9630
9630
  };
9631
9631
 
9632
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
9633
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
9634
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
9632
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
9633
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
9634
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
9635
9635
  var __objRest$2 = (source, exclude) => {
9636
9636
  var target = {};
9637
9637
  for (var prop in source)
9638
- if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
9638
+ if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
9639
9639
  target[prop] = source[prop];
9640
- if (source != null && __getOwnPropSymbols$4)
9641
- for (var prop of __getOwnPropSymbols$4(source)) {
9642
- if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
9640
+ if (source != null && __getOwnPropSymbols$2)
9641
+ for (var prop of __getOwnPropSymbols$2(source)) {
9642
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
9643
9643
  target[prop] = source[prop];
9644
9644
  }
9645
9645
  return target;
@@ -9656,7 +9656,7 @@ const useListShipments = (_params) => {
9656
9656
  });
9657
9657
  };
9658
9658
 
9659
- var __async$5 = (__this, __arguments, generator) => {
9659
+ var __async$4 = (__this, __arguments, generator) => {
9660
9660
  return new Promise((resolve, reject) => {
9661
9661
  var fulfilled = (value) => {
9662
9662
  try {
@@ -9679,7 +9679,7 @@ var __async$5 = (__this, __arguments, generator) => {
9679
9679
  const useCreateWarehouse = () => {
9680
9680
  const { client } = useShipEngine();
9681
9681
  return useMutation({
9682
- mutationFn: (data) => __async$5(void 0, null, function* () {
9682
+ mutationFn: (data) => __async$4(void 0, null, function* () {
9683
9683
  const result = yield client.warehouses.create(data);
9684
9684
  return result.data;
9685
9685
  }),
@@ -9688,7 +9688,7 @@ const useCreateWarehouse = () => {
9688
9688
  });
9689
9689
  };
9690
9690
 
9691
- var __async$4 = (__this, __arguments, generator) => {
9691
+ var __async$3 = (__this, __arguments, generator) => {
9692
9692
  return new Promise((resolve, reject) => {
9693
9693
  var fulfilled = (value) => {
9694
9694
  try {
@@ -9711,7 +9711,7 @@ var __async$4 = (__this, __arguments, generator) => {
9711
9711
  const useDeleteWarehouse = () => {
9712
9712
  const { client } = useShipEngine();
9713
9713
  return useMutation({
9714
- mutationFn: (_0) => __async$4(void 0, [_0], function* ({ warehouseId }) {
9714
+ mutationFn: (_0) => __async$3(void 0, [_0], function* ({ warehouseId }) {
9715
9715
  const result = yield client.warehouses.delete(warehouseId);
9716
9716
  return result.data;
9717
9717
  }),
@@ -9732,22 +9732,22 @@ const useListWarehouses = (options) => {
9732
9732
  });
9733
9733
  };
9734
9734
 
9735
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
9736
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
9737
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
9735
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
9736
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
9737
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
9738
9738
  var __objRest$1 = (source, exclude) => {
9739
9739
  var target = {};
9740
9740
  for (var prop in source)
9741
- if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
9741
+ if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
9742
9742
  target[prop] = source[prop];
9743
- if (source != null && __getOwnPropSymbols$3)
9744
- for (var prop of __getOwnPropSymbols$3(source)) {
9745
- if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop))
9743
+ if (source != null && __getOwnPropSymbols$1)
9744
+ for (var prop of __getOwnPropSymbols$1(source)) {
9745
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
9746
9746
  target[prop] = source[prop];
9747
9747
  }
9748
9748
  return target;
9749
9749
  };
9750
- var __async$3 = (__this, __arguments, generator) => {
9750
+ var __async$2 = (__this, __arguments, generator) => {
9751
9751
  return new Promise((resolve, reject) => {
9752
9752
  var fulfilled = (value) => {
9753
9753
  try {
@@ -9770,7 +9770,7 @@ var __async$3 = (__this, __arguments, generator) => {
9770
9770
  const useUpdateWarehouse = () => {
9771
9771
  const { client } = useShipEngine();
9772
9772
  return useMutation({
9773
- mutationFn: (_a) => __async$3(void 0, null, function* () {
9773
+ mutationFn: (_a) => __async$2(void 0, null, function* () {
9774
9774
  var _b = _a, { warehouseId } = _b, warehouse = __objRest$1(_b, ["warehouseId"]);
9775
9775
  const result = yield client.warehouses.update(warehouseId, warehouse);
9776
9776
  return result.data;
@@ -9780,7 +9780,7 @@ const useUpdateWarehouse = () => {
9780
9780
  });
9781
9781
  };
9782
9782
 
9783
- var __async$2 = (__this, __arguments, generator) => {
9783
+ var __async$1 = (__this, __arguments, generator) => {
9784
9784
  return new Promise((resolve, reject) => {
9785
9785
  var fulfilled = (value) => {
9786
9786
  try {
@@ -9803,12 +9803,12 @@ var __async$2 = (__this, __arguments, generator) => {
9803
9803
  const useLoadFonts = ({ cdnURL = "/", scope, theme }) => {
9804
9804
  const [fontFamily, setFontFamily] = useState();
9805
9805
  useEffect(() => {
9806
- (() => __async$2(void 0, null, function* () {
9806
+ (() => __async$1(void 0, null, function* () {
9807
9807
  var _a;
9808
9808
  try {
9809
9809
  const fontFaces = (_a = theme == null ? void 0 : theme.fontFaces) != null ? _a : [];
9810
9810
  yield Promise.all(
9811
- fontFaces.map((_0) => __async$2(void 0, [_0], function* ({ family, source, descriptors }) {
9811
+ fontFaces.map((_0) => __async$1(void 0, [_0], function* ({ family, source, descriptors }) {
9812
9812
  const fontSources = source.map((url) => `url(${url.replace("$cdnUrl", cdnURL)})`).join(", ");
9813
9813
  try {
9814
9814
  const font = new FontFace(family, fontSources, descriptors);
@@ -9830,7 +9830,7 @@ const useLoadFonts = ({ cdnURL = "/", scope, theme }) => {
9830
9830
  });
9831
9831
  };
9832
9832
 
9833
- var __async$1 = (__this, __arguments, generator) => {
9833
+ var __async = (__this, __arguments, generator) => {
9834
9834
  return new Promise((resolve, reject) => {
9835
9835
  var fulfilled = (value) => {
9836
9836
  try {
@@ -9853,7 +9853,7 @@ var __async$1 = (__this, __arguments, generator) => {
9853
9853
  const useLoadIcons = ({ brandName, cdnURL = "/" }) => {
9854
9854
  const [iconIndex, setIconIndex] = useState();
9855
9855
  useEffect(() => {
9856
- (() => __async$1(void 0, null, function* () {
9856
+ (() => __async(void 0, null, function* () {
9857
9857
  try {
9858
9858
  const result = yield axios.get("/brand/iconIndex.json", { baseURL: cdnURL });
9859
9859
  setIconIndex(result.data);
@@ -9863,7 +9863,7 @@ const useLoadIcons = ({ brandName, cdnURL = "/" }) => {
9863
9863
  }))();
9864
9864
  }, [brandName, cdnURL]);
9865
9865
  return useCallback(
9866
- (iconName) => __async$1(void 0, null, function* () {
9866
+ (iconName) => __async(void 0, null, function* () {
9867
9867
  if (iconIndex) {
9868
9868
  const iconBrand = (iconIndex[iconName.toLowerCase()] || []).includes(brandName) ? brandName : BrandName.FALLBACK;
9869
9869
  const result = yield axios.get(
@@ -9889,39 +9889,7 @@ const useLoadTheme = ({ cdnURL = "/", brandName }) => {
9889
9889
  return theme;
9890
9890
  };
9891
9891
 
9892
- var __defProp$2 = Object.defineProperty;
9893
- var __defProps$1 = Object.defineProperties;
9894
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
9895
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
9896
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
9897
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
9898
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9899
- var __spreadValues$2 = (a, b) => {
9900
- for (var prop in b || (b = {}))
9901
- if (__hasOwnProp$2.call(b, prop))
9902
- __defNormalProp$2(a, prop, b[prop]);
9903
- if (__getOwnPropSymbols$2)
9904
- for (var prop of __getOwnPropSymbols$2(b)) {
9905
- if (__propIsEnum$2.call(b, prop))
9906
- __defNormalProp$2(a, prop, b[prop]);
9907
- }
9908
- return a;
9909
- };
9910
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
9911
9892
  const AlchemyContext = createContext(void 0);
9912
- const renderAlchemyProviders = ({
9913
- baseURL,
9914
- children,
9915
- getToken,
9916
- theme,
9917
- scope,
9918
- fontStyles,
9919
- iconCache,
9920
- resolveIcon
9921
- }) => /* @__PURE__ */ jsxs(ThemeProvider, { theme, children: [
9922
- /* @__PURE__ */ jsx(Global, { styles: [getEmotionResetStyles(scope), fontStyles] }),
9923
- /* @__PURE__ */ jsx(GigerConfigProvider, { iconCache, resolveIcon, children: /* @__PURE__ */ jsx(ShipEngine, { baseURL, getToken, children }) })
9924
- ] });
9925
9893
  const AlchemyProvider = ({
9926
9894
  baseURL = "https://api.shipengine.com",
9927
9895
  brandName = BrandName.FALLBACK,
@@ -9939,7 +9907,10 @@ const AlchemyProvider = ({
9939
9907
  if (!theme)
9940
9908
  return null;
9941
9909
  const contextValue = { baseURL, brandName, cdnURL, getToken, locale, onError, scope, theme };
9942
- return /* @__PURE__ */ jsx(AlchemyContext.Provider, { value: contextValue, children: renderAlchemyProviders(__spreadProps$1(__spreadValues$2({}, contextValue), { children, fontStyles, iconCache, resolveIcon })) });
9910
+ return /* @__PURE__ */ jsx(AlchemyContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs(ThemeProvider, { theme, children: [
9911
+ /* @__PURE__ */ jsx(Global, { styles: [getEmotionResetStyles(scope), fontStyles] }),
9912
+ /* @__PURE__ */ jsx(GigerConfigProvider, { iconCache, resolveIcon, children: /* @__PURE__ */ jsx(ShipEngine, { baseURL, getToken, children }) })
9913
+ ] }) });
9943
9914
  };
9944
9915
  const useAlchemy = () => {
9945
9916
  const context = useContext(AlchemyContext);
@@ -9949,57 +9920,10 @@ const useAlchemy = () => {
9949
9920
  return context;
9950
9921
  };
9951
9922
 
9952
- var __defProp$1 = Object.defineProperty;
9953
- var __defProps = Object.defineProperties;
9954
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
9955
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
9956
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
9957
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
9958
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9959
- var __spreadValues$1 = (a, b) => {
9960
- for (var prop in b || (b = {}))
9961
- if (__hasOwnProp$1.call(b, prop))
9962
- __defNormalProp$1(a, prop, b[prop]);
9963
- if (__getOwnPropSymbols$1)
9964
- for (var prop of __getOwnPropSymbols$1(b)) {
9965
- if (__propIsEnum$1.call(b, prop))
9966
- __defNormalProp$1(a, prop, b[prop]);
9967
- }
9968
- return a;
9969
- };
9970
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9971
- var __async = (__this, __arguments, generator) => {
9972
- return new Promise((resolve, reject) => {
9973
- var fulfilled = (value) => {
9974
- try {
9975
- step(generator.next(value));
9976
- } catch (e) {
9977
- reject(e);
9978
- }
9979
- };
9980
- var rejected = (value) => {
9981
- try {
9982
- step(generator.throw(value));
9983
- } catch (e) {
9984
- reject(e);
9985
- }
9986
- };
9987
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
9988
- step((generator = generator.apply(__this, __arguments)).next());
9989
- });
9990
- };
9991
9923
  const AlchemyTestProvider = ({ baseURL, children }) => {
9992
9924
  const scope = "lmnt";
9993
9925
  const theme = useMemo(() => new Theme(), []);
9994
- const fontStyles = css({ [`.${scope}`]: { fontFamily: theme.defaultFontFamily } });
9995
9926
  const getToken = useCallback(() => "none", []);
9996
- const iconCache = useMemo(createIconCache, []);
9997
- const resolveIcon = useCallback(
9998
- (iconName) => __async(void 0, null, function* () {
9999
- return `<svg data-svg-id="${iconName}">mock icon-${iconName}</svg>`;
10000
- }),
10001
- []
10002
- );
10003
9927
  const contextValue = {
10004
9928
  baseURL,
10005
9929
  brandName: BrandName.FALLBACK,
@@ -10009,7 +9933,7 @@ const AlchemyTestProvider = ({ baseURL, children }) => {
10009
9933
  scope,
10010
9934
  theme
10011
9935
  };
10012
- return /* @__PURE__ */ jsx(AlchemyContext.Provider, { value: contextValue, children: renderAlchemyProviders(__spreadProps(__spreadValues$1({}, contextValue), { children, fontStyles, iconCache, resolveIcon })) });
9936
+ return /* @__PURE__ */ jsx(AlchemyContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(GigerTestProvider, { theme, children: /* @__PURE__ */ jsx(ShipEngine, { baseURL, getToken, children }) }) });
10013
9937
  };
10014
9938
 
10015
9939
  var classnamesExports = {};
@@ -10630,4 +10554,4 @@ const alchemy = {
10630
10554
  createElement
10631
10555
  };
10632
10556
 
10633
- export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ElementContainerProvider, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, WarehousesAPI, alchemy, alchemy as default, delay, getEndUserIpAddress, isCodedError, isCodedErrors, logger, memoizedCreateCache, onError, renderAlchemyProviders, retryUntil, useAddFunds, useAlchemy, useCalculateRates, useConnectCarrier, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateShipment, useCreateWarehouse, useDeleteRateCard, useDeleteWarehouse, useDownloadRateCard, useElementContainer, useFundingSourcesAddFunds, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetInsuranceAccount, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicesByCarrier, useGetShipment, useGetShipmentRates, useGetWalletHistory, useI18n, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListShipments, useListWarehouses, useLoadFonts, useLoadIcons, useLoadTheme, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUploadRateCard, useValidateAddresses, useVoidLabel };
10557
+ export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ElementContainerProvider, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, WarehousesAPI, alchemy, alchemy as default, delay, getEndUserIpAddress, isCodedError, isCodedErrors, logger, memoizedCreateCache, onError, retryUntil, useAddFunds, useAlchemy, useCalculateRates, useConnectCarrier, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateShipment, useCreateWarehouse, useDeleteRateCard, useDeleteWarehouse, useDownloadRateCard, useElementContainer, useFundingSourcesAddFunds, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetInsuranceAccount, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicesByCarrier, useGetShipment, useGetShipmentRates, useGetWalletHistory, useI18n, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListShipments, useListWarehouses, useLoadFonts, useLoadIcons, useLoadTheme, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUploadRateCard, useValidateAddresses, useVoidLabel };