@shipengine/react-api 4.0.1 → 4.2.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
@@ -76,25 +76,25 @@ const onError = (_errors) => _default();
76
76
 
77
77
  var o={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},l={};function a(e){return "string"==typeof e?o[e.toLowerCase()]:e}function c(e,r){return c=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},c(e,r)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return !1}}function f(e,r,t){return f=u()?Reflect.construct:function(e,r,t){var s=[null];s.push.apply(s,r);var i=new(Function.bind.apply(e,s));return t&&c(i,t.prototype),i},f.apply(null,arguments)}function h(e){if(null==e)return e;if(Array.isArray(e))return e.slice();if("object"==typeof e){var r={};return Object.keys(e).forEach(function(t){r[t]=e[t];}),r}return e}function v(e){return void 0===e?"undefined":null===e?"null":Array.isArray(e)?"[ "+e.map(function(e){return v(e)}).join(", ")+" ]":"object"==typeof e?JSON.stringify(e):"function"==typeof e?"[Function: "+e.name+"]":"boolean"==typeof e||"number"==typeof e?e:"'"+e.toString()+"'"}function p(e){if("string"!=typeof e){for(var r=new Array(arguments.length),t=0;t<arguments.length;t++)r[t]=v(arguments[t]);return r.join(" ")}for(var s=/%[sdj%]/g,i=1,n=arguments,o=n.length,l=String(e).replace(s,function(e){if("%%"===e)return "%";if(i>=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return "[Circular]"}default:return e}}),a=n[i];i<o;a=n[++i])l+=null===a||"object"!=typeof a?" "+a:" "+v(a);return l}function m(e,r){var t=e.split("\n");t[0]&&t[0].indexOf("call-stack-error")>=0&&t.shift();var s=t[r],i=null;if(s){var n=/^\s*(at|.*@)\s*(.+)?$/.exec(s);i=Array.isArray(n)&&n[2]?n[2]:s;}return i}Object.keys(o).forEach(function(e){l[o[e]]=e;});var y={};function d(e,r){if(r){if(y[r])return;y[r]=!0;}console.error(e+"\n");}function g(e){return y[e]}function w(){var e=[];return function(r,t){return t&&"object"==typeof t?-1!==e.indexOf(t)?"[Circular]":(e.push(t),t):t}}var b=/*#__PURE__*/function(){function e(){}return e.prototype.write=function(e){e.level<30?console.log(e):e.level<40?console.info(e):e.level<50?console.warn(e):console.error(e),e.err&&e.err.stack&&console.error(e.err.stack),e.obj&&console.log(e.obj);},e}(),j=/*#__PURE__*/function(){function e(r,t,s){var i,n,o,l,a=this;if(!(this instanceof e))return new e(r,t);if(void 0!==t&&(i=r,r=t,!(i instanceof e)))throw new TypeError("invalid Logger creation: do not pass a second arg");if(!r)throw new TypeError("options (object) is required");if(i){if(r.name)throw new TypeError("invalid options.name: child cannot set logger name")}else if(!r.name)throw new TypeError("options.name (string) is required");if(r.stream&&r.streams)throw new TypeError('cannot mix "streams" and "stream" options');if(r.streams&&!Array.isArray(r.streams))throw new TypeError("invalid options.streams: must be an array");if(r.serializers&&("object"!=typeof r.serializers||Array.isArray(r.serializers)))throw new TypeError("invalid options.serializers: must be an object");if(i&&s){this._level=i._level,this.streams=i.streams,this.serializers=i.serializers,this.src=i.src,n=this.fields={};var c=Object.keys(i.fields);for(l=0;l<c.length;l++)n[o=c[l]]=i.fields[o];var u=Object.keys(r);for(l=0;l<u.length;l++)n[o=u[l]]=r[o];}else {if(i){for(this._level=i._level,this.streams=[],l=0;l<i.streams.length;l++){var f=h(i.streams[l]);this.streams.push(f);}this.serializers=h(i.serializers),this.src=i.src,this.fields=h(i.fields),r.level&&this.level(r.level);}else this._level=Number.POSITIVE_INFINITY,this.streams=[],this.serializers=null,this.src=!1,this.fields={};r.stream?this.addStream({type:"stream",stream:r.stream,level:r.level}):r.streams?r.streams.forEach(function(e){a.addStream(e,r.level);}):i&&r.level?this.level(r.level):i||this.addStream({type:"raw",stream:new b,level:r.level}),r.serializers&&this.addSerializers(r.serializers),r.src&&(this.src=!0),delete(n=h(r)).stream,delete n.level,delete n.streams,delete n.serializers,delete n.src,this.serializers&&this._applySerializers(n),Object.keys(n).forEach(function(e){a.fields[e]=n[e];});}}var r=e.prototype;return r.addStream=function(e,r){void 0===r&&(r=30),(e=h(e)).type="raw",e.level=a(e.level||r),e.level<this._level&&(this._level=e.level),this.streams.push(e),delete this.haveNonRawStreams;},r.addSerializers=function(e){var r=this;this.serializers||(this.serializers={}),Object.keys(e).forEach(function(t){var s=e[t];if("function"!=typeof s)throw new TypeError(p('invalid serializer for "%s" field: must be a function',t));r.serializers[t]=s;});},r.child=function(e,r){return new this.constructor(this,e||{},r)},r.level=function(e){if(void 0===e)return this._level;for(var r=a(e),t=this.streams.length,s=0;s<t;s++)this.streams[s].level=r;this._level=r;},r.levels=function(e,r){if(void 0===e)return this.streams.map(function(e){return e.level});var t;if("number"==typeof e){if(void 0===(t=this.streams[e]))throw new Error("invalid stream index: "+e)}else {for(var s=this.streams.length,i=0;i<s;i++){var n=this.streams[i];if(n.name===e){t=n;break}}if(!t)throw new Error(p('no stream with name "%s"',e))}if(void 0===r)return t.level;var o=a(r);t.level=o,o<this._level&&(this._level=o);},r._applySerializers=function(e,r){var t=this;Object.keys(this.serializers).forEach(function(s){if(!(void 0===e[s]||r&&r[s]))try{e[s]=t.serializers[s](e[s]);}catch(r){d(p('bunyan: ERROR: Exception thrown from the "%s" Bunyan serializer. This should never happen. This is a bugin that serializer function.\n%s',s,r.stack||r)),e[s]=p('(Error in Bunyan log "%s" serializer broke field. See stderr for details.)',s);}});},r._emit=function(e,r){var t,s;if(void 0===this.haveNonRawStreams)for(this.haveNonRawStreams=!1,t=0;t<this.streams.length;t++)if(!this.streams[t].raw){this.haveNonRawStreams=!0;break}if(r||this.haveNonRawStreams)try{s=JSON.stringify(e,w())+"\n";}catch(r){var i=r.stack.split(/\n/g,2).join("\n");d('bunyan: ERROR: Exception in `JSON.stringify(rec)`. You can install the "safe-json-stringify" module to have Bunyan fallback to safer stringification. Record:\n'+function(e,r){return r||(r=" "),r+e.split(/\r?\n/g).join("\n"+r)}(p("%s\n%s",e,r.stack)),i),s=p("(Exception in JSON.stringify(rec): %j. See stderr for details.)\n",r.message);}if(r)return s;var n=e.level;for(t=0;t<this.streams.length;t++){var o=this.streams[t];o.level<=n&&o.stream.write(e);}return s},e}();function z(e){return function(){var r=this;function t(t){var n;t[0]instanceof Error?(s={err:r.serializers&&r.serializers.err?r.serializers.err(t[0]):k.err(t[0])},n={err:!0},i=1===t.length?[s.err.message]:Array.prototype.slice.call(t,1)):"object"!=typeof t[0]&&null!==t[0]||Array.isArray(t[0])?(s=null,i=Array.prototype.slice.call(t)):(s=t[0],i=1===t.length&&s.err&&s.err instanceof Error?[s.err.message]:Array.prototype.slice.call(t,1));var o=h(r.fields);o.level=e;var a=s?h(s):null;if(a&&(r.serializers&&r._applySerializers(a,n),Object.keys(a).forEach(function(e){o[e]=a[e];})),o.levelName=l[e],o.msg=i.length?p.apply(r,i):"",o.time||(o.time=new Date),r.src&&!o.src)try{throw new Error("call-stack-error")}catch(e){var c=e.stack?m(e.stack,2):"";c||g("src")||d("Unable to determine src line info","src"),o.src=c||"";}return o.v=1,o}var s=null,i=arguments,n=null;if(0===arguments.length)return this._level<=e;this._level>e||(n=t(i),this._emit(n));}}function S(e){var r=e.stack||e.toString();if(e.cause&&"function"==typeof e.cause){var t=e.cause();t&&(r+="\nCaused by: "+S(t));}return r}j.prototype.trace=z(10),j.prototype.debug=z(20),j.prototype.info=z(30),j.prototype.warn=z(40),j.prototype.error=z(50),j.prototype.fatal=z(60);var k={err:function(e){return e&&e.stack?{message:e.message,name:e.name,stack:S(e),code:e.code,signal:e.signal}:e}};function E(){return f(j,[].slice.call(arguments))}var A={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},R=/*#__PURE__*/function(){function e(e){var r=void 0===e?{}:e,t=r.logByLevel,s=r.css,i=void 0===s?A:s;this.logByLevel=void 0!==t&&t,this.css=i;}return e.prototype.write=function(e){var r,t,s=this.css.def,i=this.css.msg,n=this.css.src,o=e.childName?e.name+"/"+e.childName:e.name,a=l[e.level],c=(Array(6-a.length).join(" ")+a).toUpperCase();this.logByLevel?(10===e.level?a="debug":60===e.level&&(a="error"),t="function"==typeof console[a]?console[a]:console.log):t=console.log,r=e.level<20?this.css.levels.trace:e.level<30?this.css.levels.debug:e.level<40?this.css.levels.info:e.level<50?this.css.levels.warn:e.level<60?this.css.levels.error:this.css.levels.fatal;var u=function(e,r){return Array(r+1-(e+"").length).join("0")+e},f=[];f.push("[%s:%s:%s:%s] %c%s%c: %s: %c%s "+(e.src?"%c%s":"")),f.push(u(e.time.getHours(),2)),f.push(u(e.time.getMinutes(),2)),f.push(u(e.time.getSeconds(),2)),f.push(u(e.time.getMilliseconds(),4)),f.push(r),f.push(c),f.push(s),f.push(o),f.push(i),f.push(e.msg),e.src&&(f.push(n),f.push(e.src)),e.obj&&(f.push("\n"),f.push(e.obj)),e.err&&e.err.stack&&(f.push("\n"),f.push(e.err.stack)),t.apply(console,f);},e.getDefaultCss=function(){return A},e}();
78
78
 
79
- var __defProp$v = Object.defineProperty;
80
- var __defProps$u = Object.defineProperties;
81
- var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
82
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
83
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
84
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
85
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
86
- var __spreadValues$v = (a, b) => {
79
+ var __defProp$x = Object.defineProperty;
80
+ var __defProps$w = Object.defineProperties;
81
+ var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
82
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
83
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
84
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
85
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
86
+ var __spreadValues$x = (a, b) => {
87
87
  for (var prop in b || (b = {}))
88
- if (__hasOwnProp$E.call(b, prop))
89
- __defNormalProp$v(a, prop, b[prop]);
90
- if (__getOwnPropSymbols$E)
91
- for (var prop of __getOwnPropSymbols$E(b)) {
92
- if (__propIsEnum$E.call(b, prop))
93
- __defNormalProp$v(a, prop, b[prop]);
88
+ if (__hasOwnProp$G.call(b, prop))
89
+ __defNormalProp$x(a, prop, b[prop]);
90
+ if (__getOwnPropSymbols$G)
91
+ for (var prop of __getOwnPropSymbols$G(b)) {
92
+ if (__propIsEnum$G.call(b, prop))
93
+ __defNormalProp$x(a, prop, b[prop]);
94
94
  }
95
95
  return a;
96
96
  };
97
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
97
+ var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
98
98
  const streams = [];
99
99
  if (process.env.NODE_ENV === "production") {
100
100
  streams.push({
@@ -103,7 +103,7 @@ if (process.env.NODE_ENV === "production") {
103
103
  }
104
104
  const logger = E({
105
105
  name: "shipengine",
106
- serializers: __spreadProps$u(__spreadValues$v({}, k), {
106
+ serializers: __spreadProps$w(__spreadValues$x({}, k), {
107
107
  req: (req) => ({
108
108
  headers: req.headers,
109
109
  method: req.method,
@@ -340,25 +340,25 @@ const useValidateAddresses = () => {
340
340
  });
341
341
  };
342
342
 
343
- var __defProp$u = Object.defineProperty;
344
- var __defProps$t = Object.defineProperties;
345
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
346
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
347
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
348
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
349
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
350
- var __spreadValues$u = (a, b) => {
343
+ var __defProp$w = Object.defineProperty;
344
+ var __defProps$v = Object.defineProperties;
345
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
346
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
347
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
348
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
349
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
350
+ var __spreadValues$w = (a, b) => {
351
351
  for (var prop in b || (b = {}))
352
- if (__hasOwnProp$D.call(b, prop))
353
- __defNormalProp$u(a, prop, b[prop]);
354
- if (__getOwnPropSymbols$D)
355
- for (var prop of __getOwnPropSymbols$D(b)) {
356
- if (__propIsEnum$D.call(b, prop))
357
- __defNormalProp$u(a, prop, b[prop]);
352
+ if (__hasOwnProp$F.call(b, prop))
353
+ __defNormalProp$w(a, prop, b[prop]);
354
+ if (__getOwnPropSymbols$F)
355
+ for (var prop of __getOwnPropSymbols$F(b)) {
356
+ if (__propIsEnum$F.call(b, prop))
357
+ __defNormalProp$w(a, prop, b[prop]);
358
358
  }
359
359
  return a;
360
360
  };
361
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
361
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
362
362
  var __async$N = (__this, __arguments, generator) => {
363
363
  return new Promise((resolve, reject) => {
364
364
  var fulfilled = (value) => {
@@ -381,7 +381,7 @@ var __async$N = (__this, __arguments, generator) => {
381
381
  };
382
382
  const useCreateAuctanePaySession = (params) => {
383
383
  const { client } = useShipEngine();
384
- return useMutation(__spreadProps$t(__spreadValues$u({}, params), {
384
+ return useMutation(__spreadProps$v(__spreadValues$w({}, params), {
385
385
  mutationFn: (request) => __async$N(void 0, null, function* () {
386
386
  const result = yield client.auctanePay.createSession(request);
387
387
  return result.data;
@@ -391,29 +391,29 @@ const useCreateAuctanePaySession = (params) => {
391
391
  }));
392
392
  };
393
393
 
394
- var __defProp$t = Object.defineProperty;
395
- var __defProps$s = Object.defineProperties;
396
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
397
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
398
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
399
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
400
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
401
- var __spreadValues$t = (a, b) => {
394
+ var __defProp$v = Object.defineProperty;
395
+ var __defProps$u = Object.defineProperties;
396
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
397
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
398
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
399
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
400
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
401
+ var __spreadValues$v = (a, b) => {
402
402
  for (var prop in b || (b = {}))
403
- if (__hasOwnProp$C.call(b, prop))
404
- __defNormalProp$t(a, prop, b[prop]);
405
- if (__getOwnPropSymbols$C)
406
- for (var prop of __getOwnPropSymbols$C(b)) {
407
- if (__propIsEnum$C.call(b, prop))
408
- __defNormalProp$t(a, prop, b[prop]);
403
+ if (__hasOwnProp$E.call(b, prop))
404
+ __defNormalProp$v(a, prop, b[prop]);
405
+ if (__getOwnPropSymbols$E)
406
+ for (var prop of __getOwnPropSymbols$E(b)) {
407
+ if (__propIsEnum$E.call(b, prop))
408
+ __defNormalProp$v(a, prop, b[prop]);
409
409
  }
410
410
  return a;
411
411
  };
412
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
412
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
413
413
  const useGetAuctanePayConfig = (params) => {
414
414
  const { client } = useShipEngine();
415
- const queryParams = __spreadValues$t({}, params);
416
- return useQuery(__spreadProps$s(__spreadValues$t({}, queryParams), {
415
+ const queryParams = __spreadValues$v({}, params);
416
+ return useQuery(__spreadProps$u(__spreadValues$v({}, queryParams), {
417
417
  onError,
418
418
  queryFn: () => client.auctanePay.getConfig(),
419
419
  queryKey: ["useGetAuctanePayConfig"],
@@ -585,41 +585,41 @@ const useGetServicesByCarrier = (carrierId) => {
585
585
  });
586
586
  };
587
587
 
588
- var __defProp$s = Object.defineProperty;
589
- var __defProps$r = Object.defineProperties;
590
- var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
591
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
592
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
593
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
594
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
595
- var __spreadValues$s = (a, b) => {
588
+ var __defProp$u = Object.defineProperty;
589
+ var __defProps$t = Object.defineProperties;
590
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
591
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
592
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
593
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
594
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
595
+ var __spreadValues$u = (a, b) => {
596
596
  for (var prop in b || (b = {}))
597
- if (__hasOwnProp$B.call(b, prop))
598
- __defNormalProp$s(a, prop, b[prop]);
599
- if (__getOwnPropSymbols$B)
600
- for (var prop of __getOwnPropSymbols$B(b)) {
601
- if (__propIsEnum$B.call(b, prop))
602
- __defNormalProp$s(a, prop, b[prop]);
597
+ if (__hasOwnProp$D.call(b, prop))
598
+ __defNormalProp$u(a, prop, b[prop]);
599
+ if (__getOwnPropSymbols$D)
600
+ for (var prop of __getOwnPropSymbols$D(b)) {
601
+ if (__propIsEnum$D.call(b, prop))
602
+ __defNormalProp$u(a, prop, b[prop]);
603
603
  }
604
604
  return a;
605
605
  };
606
- var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
607
- var __objRest$n = (source, exclude) => {
606
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
607
+ var __objRest$p = (source, exclude) => {
608
608
  var target = {};
609
609
  for (var prop in source)
610
- if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
610
+ if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
611
611
  target[prop] = source[prop];
612
- if (source != null && __getOwnPropSymbols$B)
613
- for (var prop of __getOwnPropSymbols$B(source)) {
614
- if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
612
+ if (source != null && __getOwnPropSymbols$D)
613
+ for (var prop of __getOwnPropSymbols$D(source)) {
614
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
615
615
  target[prop] = source[prop];
616
616
  }
617
617
  return target;
618
618
  };
619
619
  const useListCarriers = (params) => {
620
620
  const { client } = useShipEngine();
621
- const _a = __spreadValues$s({}, params), { queryFnParams } = _a, rest = __objRest$n(_a, ["queryFnParams"]);
622
- return useQuery(__spreadProps$r(__spreadValues$s({}, rest), {
621
+ const _a = __spreadValues$u({}, params), { queryFnParams } = _a, rest = __objRest$p(_a, ["queryFnParams"]);
622
+ return useQuery(__spreadProps$t(__spreadValues$u({}, rest), {
623
623
  onError,
624
624
  queryFn: () => client.carriers.list(queryFnParams),
625
625
  queryKey: ["useListCarriers", queryFnParams],
@@ -627,17 +627,17 @@ const useListCarriers = (params) => {
627
627
  }));
628
628
  };
629
629
 
630
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
631
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
632
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
633
- var __objRest$m = (source, exclude) => {
630
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
631
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
632
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
633
+ var __objRest$o = (source, exclude) => {
634
634
  var target = {};
635
635
  for (var prop in source)
636
- if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
636
+ if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
637
637
  target[prop] = source[prop];
638
- if (source != null && __getOwnPropSymbols$A)
639
- for (var prop of __getOwnPropSymbols$A(source)) {
640
- if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
638
+ if (source != null && __getOwnPropSymbols$C)
639
+ for (var prop of __getOwnPropSymbols$C(source)) {
640
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
641
641
  target[prop] = source[prop];
642
642
  }
643
643
  return target;
@@ -667,7 +667,7 @@ const useUpdateAutoFunding = () => {
667
667
  const queryClient = useQueryClient();
668
668
  return useMutation({
669
669
  mutationFn: (_a) => __async$K(void 0, null, function* () {
670
- var _b = _a, { carrierId } = _b, options = __objRest$m(_b, ["carrierId"]);
670
+ var _b = _a, { carrierId } = _b, options = __objRest$o(_b, ["carrierId"]);
671
671
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
672
672
  return result.data;
673
673
  }),
@@ -728,24 +728,24 @@ const useDeleteCarrier = () => {
728
728
  });
729
729
  };
730
730
 
731
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
732
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
733
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
734
- var __objRest$l = (source, exclude) => {
731
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
732
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
733
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
734
+ var __objRest$n = (source, exclude) => {
735
735
  var target = {};
736
736
  for (var prop in source)
737
- if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
737
+ if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
738
738
  target[prop] = source[prop];
739
- if (source != null && __getOwnPropSymbols$z)
740
- for (var prop of __getOwnPropSymbols$z(source)) {
741
- if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
739
+ if (source != null && __getOwnPropSymbols$B)
740
+ for (var prop of __getOwnPropSymbols$B(source)) {
741
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
742
742
  target[prop] = source[prop];
743
743
  }
744
744
  return target;
745
745
  };
746
746
  const useGetCarrierConnectionForm = (_params) => {
747
747
  const { client } = useShipEngine();
748
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$l(_a, ["carrierName", "enabled"]);
748
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$n(_a, ["carrierName", "enabled"]);
749
749
  return useQuery({
750
750
  enabled,
751
751
  onError,
@@ -755,24 +755,24 @@ const useGetCarrierConnectionForm = (_params) => {
755
755
  });
756
756
  };
757
757
 
758
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
759
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
760
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
761
- var __objRest$k = (source, exclude) => {
758
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
759
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
760
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
761
+ var __objRest$m = (source, exclude) => {
762
762
  var target = {};
763
763
  for (var prop in source)
764
- if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
764
+ if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
765
765
  target[prop] = source[prop];
766
- if (source != null && __getOwnPropSymbols$y)
767
- for (var prop of __getOwnPropSymbols$y(source)) {
768
- if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
766
+ if (source != null && __getOwnPropSymbols$A)
767
+ for (var prop of __getOwnPropSymbols$A(source)) {
768
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
769
769
  target[prop] = source[prop];
770
770
  }
771
771
  return target;
772
772
  };
773
773
  const useListCarrierConnections = (_params) => {
774
774
  const { client } = useShipEngine();
775
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$k(_a, ["enabled"]);
775
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$m(_a, ["enabled"]);
776
776
  return useQuery({
777
777
  enabled,
778
778
  onError,
@@ -825,33 +825,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
825
825
  });
826
826
  };
827
827
 
828
- var __defProp$r = Object.defineProperty;
829
- var __defProps$q = Object.defineProperties;
830
- var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
831
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
832
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
833
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
834
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
835
- var __spreadValues$r = (a, b) => {
828
+ var __defProp$t = Object.defineProperty;
829
+ var __defProps$s = Object.defineProperties;
830
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
831
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
832
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
833
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
834
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
835
+ var __spreadValues$t = (a, b) => {
836
836
  for (var prop in b || (b = {}))
837
- if (__hasOwnProp$x.call(b, prop))
838
- __defNormalProp$r(a, prop, b[prop]);
839
- if (__getOwnPropSymbols$x)
840
- for (var prop of __getOwnPropSymbols$x(b)) {
841
- if (__propIsEnum$x.call(b, prop))
842
- __defNormalProp$r(a, prop, b[prop]);
837
+ if (__hasOwnProp$z.call(b, prop))
838
+ __defNormalProp$t(a, prop, b[prop]);
839
+ if (__getOwnPropSymbols$z)
840
+ for (var prop of __getOwnPropSymbols$z(b)) {
841
+ if (__propIsEnum$z.call(b, prop))
842
+ __defNormalProp$t(a, prop, b[prop]);
843
843
  }
844
844
  return a;
845
845
  };
846
- var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
847
- var __objRest$j = (source, exclude) => {
846
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
847
+ var __objRest$l = (source, exclude) => {
848
848
  var target = {};
849
849
  for (var prop in source)
850
- if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
850
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
851
851
  target[prop] = source[prop];
852
- if (source != null && __getOwnPropSymbols$x)
853
- for (var prop of __getOwnPropSymbols$x(source)) {
854
- if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
852
+ if (source != null && __getOwnPropSymbols$z)
853
+ for (var prop of __getOwnPropSymbols$z(source)) {
854
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
855
855
  target[prop] = source[prop];
856
856
  }
857
857
  return target;
@@ -859,12 +859,12 @@ var __objRest$j = (source, exclude) => {
859
859
  const useGetConnectionsCarrierSettings = (_a) => {
860
860
  var _b = _a, {
861
861
  queryFnParams
862
- } = _b, params = __objRest$j(_b, [
862
+ } = _b, params = __objRest$l(_b, [
863
863
  "queryFnParams"
864
864
  ]);
865
865
  const { client } = useShipEngine();
866
866
  const { carrierName, carrierId } = queryFnParams;
867
- return useQuery(__spreadProps$q(__spreadValues$r({}, params), {
867
+ return useQuery(__spreadProps$s(__spreadValues$t({}, params), {
868
868
  onError,
869
869
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
870
870
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -872,25 +872,25 @@ const useGetConnectionsCarrierSettings = (_a) => {
872
872
  }));
873
873
  };
874
874
 
875
- var __defProp$q = Object.defineProperty;
876
- var __defProps$p = Object.defineProperties;
877
- var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
878
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
879
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
880
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
881
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
882
- var __spreadValues$q = (a, b) => {
875
+ var __defProp$s = Object.defineProperty;
876
+ var __defProps$r = Object.defineProperties;
877
+ var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
878
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
879
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
880
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
881
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
882
+ var __spreadValues$s = (a, b) => {
883
883
  for (var prop in b || (b = {}))
884
- if (__hasOwnProp$w.call(b, prop))
885
- __defNormalProp$q(a, prop, b[prop]);
886
- if (__getOwnPropSymbols$w)
887
- for (var prop of __getOwnPropSymbols$w(b)) {
888
- if (__propIsEnum$w.call(b, prop))
889
- __defNormalProp$q(a, prop, b[prop]);
884
+ if (__hasOwnProp$y.call(b, prop))
885
+ __defNormalProp$s(a, prop, b[prop]);
886
+ if (__getOwnPropSymbols$y)
887
+ for (var prop of __getOwnPropSymbols$y(b)) {
888
+ if (__propIsEnum$y.call(b, prop))
889
+ __defNormalProp$s(a, prop, b[prop]);
890
890
  }
891
891
  return a;
892
892
  };
893
- var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
893
+ var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
894
894
  var __async$H = (__this, __arguments, generator) => {
895
895
  return new Promise((resolve, reject) => {
896
896
  var fulfilled = (value) => {
@@ -913,7 +913,7 @@ var __async$H = (__this, __arguments, generator) => {
913
913
  };
914
914
  const useUpdateConnectionsCarrierSettings = (params) => {
915
915
  const { client } = useShipEngine();
916
- return useMutation(__spreadProps$p(__spreadValues$q({}, params), {
916
+ return useMutation(__spreadProps$r(__spreadValues$s({}, params), {
917
917
  mutationFn: (_0) => __async$H(void 0, [_0], function* ({
918
918
  carrierName,
919
919
  carrierId,
@@ -1121,29 +1121,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
1121
1121
  });
1122
1122
  };
1123
1123
 
1124
- var __defProp$p = Object.defineProperty;
1125
- var __defProps$o = Object.defineProperties;
1126
- var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
1127
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
1128
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
1129
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
1130
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1131
- var __spreadValues$p = (a, b) => {
1124
+ var __defProp$r = Object.defineProperty;
1125
+ var __defProps$q = Object.defineProperties;
1126
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
1127
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
1128
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
1129
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
1130
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1131
+ var __spreadValues$r = (a, b) => {
1132
1132
  for (var prop in b || (b = {}))
1133
- if (__hasOwnProp$v.call(b, prop))
1134
- __defNormalProp$p(a, prop, b[prop]);
1135
- if (__getOwnPropSymbols$v)
1136
- for (var prop of __getOwnPropSymbols$v(b)) {
1137
- if (__propIsEnum$v.call(b, prop))
1138
- __defNormalProp$p(a, prop, b[prop]);
1133
+ if (__hasOwnProp$x.call(b, prop))
1134
+ __defNormalProp$r(a, prop, b[prop]);
1135
+ if (__getOwnPropSymbols$x)
1136
+ for (var prop of __getOwnPropSymbols$x(b)) {
1137
+ if (__propIsEnum$x.call(b, prop))
1138
+ __defNormalProp$r(a, prop, b[prop]);
1139
1139
  }
1140
1140
  return a;
1141
1141
  };
1142
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
1142
+ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
1143
1143
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
1144
1144
  const { client } = useShipEngine();
1145
- const queryParams = __spreadValues$p({}, params);
1146
- return useQuery(__spreadProps$o(__spreadValues$p({}, queryParams), {
1145
+ const queryParams = __spreadValues$r({}, params);
1146
+ return useQuery(__spreadProps$q(__spreadValues$r({}, queryParams), {
1147
1147
  onError,
1148
1148
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
1149
1149
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -1166,17 +1166,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
1166
1166
  });
1167
1167
  };
1168
1168
 
1169
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
1170
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
1171
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
1172
- var __objRest$i = (source, exclude) => {
1169
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
1170
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
1171
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
1172
+ var __objRest$k = (source, exclude) => {
1173
1173
  var target = {};
1174
1174
  for (var prop in source)
1175
- if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
1175
+ if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
1176
1176
  target[prop] = source[prop];
1177
- if (source != null && __getOwnPropSymbols$u)
1178
- for (var prop of __getOwnPropSymbols$u(source)) {
1179
- if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
1177
+ if (source != null && __getOwnPropSymbols$w)
1178
+ for (var prop of __getOwnPropSymbols$w(source)) {
1179
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
1180
1180
  target[prop] = source[prop];
1181
1181
  }
1182
1182
  return target;
@@ -1205,7 +1205,7 @@ const useAddInsuranceFunds = () => {
1205
1205
  const { client } = useShipEngine();
1206
1206
  return useMutation({
1207
1207
  mutationFn: (_a) => __async$C(void 0, null, function* () {
1208
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$i(_b, ["insuranceProvider"]);
1208
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$k(_b, ["insuranceProvider"]);
1209
1209
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
1210
1210
  return result.data;
1211
1211
  }),
@@ -1214,25 +1214,25 @@ const useAddInsuranceFunds = () => {
1214
1214
  });
1215
1215
  };
1216
1216
 
1217
- var __defProp$o = Object.defineProperty;
1218
- var __defProps$n = Object.defineProperties;
1219
- var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
1220
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
1221
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
1222
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
1223
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1224
- var __spreadValues$o = (a, b) => {
1217
+ var __defProp$q = Object.defineProperty;
1218
+ var __defProps$p = Object.defineProperties;
1219
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
1220
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
1221
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
1222
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
1223
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1224
+ var __spreadValues$q = (a, b) => {
1225
1225
  for (var prop in b || (b = {}))
1226
- if (__hasOwnProp$t.call(b, prop))
1227
- __defNormalProp$o(a, prop, b[prop]);
1228
- if (__getOwnPropSymbols$t)
1229
- for (var prop of __getOwnPropSymbols$t(b)) {
1230
- if (__propIsEnum$t.call(b, prop))
1231
- __defNormalProp$o(a, prop, b[prop]);
1226
+ if (__hasOwnProp$v.call(b, prop))
1227
+ __defNormalProp$q(a, prop, b[prop]);
1228
+ if (__getOwnPropSymbols$v)
1229
+ for (var prop of __getOwnPropSymbols$v(b)) {
1230
+ if (__propIsEnum$v.call(b, prop))
1231
+ __defNormalProp$q(a, prop, b[prop]);
1232
1232
  }
1233
1233
  return a;
1234
1234
  };
1235
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
1235
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
1236
1236
  var __async$B = (__this, __arguments, generator) => {
1237
1237
  return new Promise((resolve, reject) => {
1238
1238
  var fulfilled = (value) => {
@@ -1255,7 +1255,7 @@ var __async$B = (__this, __arguments, generator) => {
1255
1255
  };
1256
1256
  const useCreateInvoiceAddress = (params) => {
1257
1257
  const { client } = useShipEngine();
1258
- return useMutation(__spreadProps$n(__spreadValues$o({}, params), {
1258
+ return useMutation(__spreadProps$p(__spreadValues$q({}, params), {
1259
1259
  mutationFn: (invoiceAddress) => __async$B(void 0, null, function* () {
1260
1260
  const result = yield client.invoiceAddress.create(invoiceAddress);
1261
1261
  return result.data;
@@ -1265,25 +1265,25 @@ const useCreateInvoiceAddress = (params) => {
1265
1265
  }));
1266
1266
  };
1267
1267
 
1268
- var __defProp$n = Object.defineProperty;
1269
- var __defProps$m = Object.defineProperties;
1270
- var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
1271
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
1272
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
1273
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
1274
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1275
- var __spreadValues$n = (a, b) => {
1268
+ var __defProp$p = Object.defineProperty;
1269
+ var __defProps$o = Object.defineProperties;
1270
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
1271
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
1272
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
1273
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
1274
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1275
+ var __spreadValues$p = (a, b) => {
1276
1276
  for (var prop in b || (b = {}))
1277
- if (__hasOwnProp$s.call(b, prop))
1278
- __defNormalProp$n(a, prop, b[prop]);
1279
- if (__getOwnPropSymbols$s)
1280
- for (var prop of __getOwnPropSymbols$s(b)) {
1281
- if (__propIsEnum$s.call(b, prop))
1282
- __defNormalProp$n(a, prop, b[prop]);
1277
+ if (__hasOwnProp$u.call(b, prop))
1278
+ __defNormalProp$p(a, prop, b[prop]);
1279
+ if (__getOwnPropSymbols$u)
1280
+ for (var prop of __getOwnPropSymbols$u(b)) {
1281
+ if (__propIsEnum$u.call(b, prop))
1282
+ __defNormalProp$p(a, prop, b[prop]);
1283
1283
  }
1284
1284
  return a;
1285
1285
  };
1286
- var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
1286
+ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
1287
1287
  var __async$A = (__this, __arguments, generator) => {
1288
1288
  return new Promise((resolve, reject) => {
1289
1289
  var fulfilled = (value) => {
@@ -1306,7 +1306,7 @@ var __async$A = (__this, __arguments, generator) => {
1306
1306
  };
1307
1307
  const useUpdateInvoiceAddress = (params) => {
1308
1308
  const { client } = useShipEngine();
1309
- return useMutation(__spreadProps$m(__spreadValues$n({}, params), {
1309
+ return useMutation(__spreadProps$o(__spreadValues$p({}, params), {
1310
1310
  mutationFn: (invoiceAddress) => __async$A(void 0, null, function* () {
1311
1311
  const result = yield client.invoiceAddress.update(invoiceAddress);
1312
1312
  return result.data;
@@ -1316,28 +1316,28 @@ const useUpdateInvoiceAddress = (params) => {
1316
1316
  }));
1317
1317
  };
1318
1318
 
1319
- var __defProp$m = Object.defineProperty;
1320
- var __defProps$l = Object.defineProperties;
1321
- var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
1322
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
1323
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
1324
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
1325
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1326
- var __spreadValues$m = (a, b) => {
1319
+ var __defProp$o = Object.defineProperty;
1320
+ var __defProps$n = Object.defineProperties;
1321
+ var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
1322
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
1323
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
1324
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
1325
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1326
+ var __spreadValues$o = (a, b) => {
1327
1327
  for (var prop in b || (b = {}))
1328
- if (__hasOwnProp$r.call(b, prop))
1329
- __defNormalProp$m(a, prop, b[prop]);
1330
- if (__getOwnPropSymbols$r)
1331
- for (var prop of __getOwnPropSymbols$r(b)) {
1332
- if (__propIsEnum$r.call(b, prop))
1333
- __defNormalProp$m(a, prop, b[prop]);
1328
+ if (__hasOwnProp$t.call(b, prop))
1329
+ __defNormalProp$o(a, prop, b[prop]);
1330
+ if (__getOwnPropSymbols$t)
1331
+ for (var prop of __getOwnPropSymbols$t(b)) {
1332
+ if (__propIsEnum$t.call(b, prop))
1333
+ __defNormalProp$o(a, prop, b[prop]);
1334
1334
  }
1335
1335
  return a;
1336
1336
  };
1337
- var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
1337
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
1338
1338
  const useGetInvoiceAddress = (params) => {
1339
1339
  const { client } = useShipEngine();
1340
- return useQuery(__spreadProps$l(__spreadValues$m({}, params), {
1340
+ return useQuery(__spreadProps$n(__spreadValues$o({}, params), {
1341
1341
  onError,
1342
1342
  queryFn: () => client.invoiceAddress.get(),
1343
1343
  queryKey: ["useGetInvoiceAddress"],
@@ -1345,33 +1345,33 @@ const useGetInvoiceAddress = (params) => {
1345
1345
  }));
1346
1346
  };
1347
1347
 
1348
- var __defProp$l = Object.defineProperty;
1349
- var __defProps$k = Object.defineProperties;
1350
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
1351
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
1352
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
1353
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
1354
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1355
- var __spreadValues$l = (a, b) => {
1348
+ var __defProp$n = Object.defineProperty;
1349
+ var __defProps$m = Object.defineProperties;
1350
+ var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
1351
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
1352
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
1353
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
1354
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1355
+ var __spreadValues$n = (a, b) => {
1356
1356
  for (var prop in b || (b = {}))
1357
- if (__hasOwnProp$q.call(b, prop))
1358
- __defNormalProp$l(a, prop, b[prop]);
1359
- if (__getOwnPropSymbols$q)
1360
- for (var prop of __getOwnPropSymbols$q(b)) {
1361
- if (__propIsEnum$q.call(b, prop))
1362
- __defNormalProp$l(a, prop, b[prop]);
1357
+ if (__hasOwnProp$s.call(b, prop))
1358
+ __defNormalProp$n(a, prop, b[prop]);
1359
+ if (__getOwnPropSymbols$s)
1360
+ for (var prop of __getOwnPropSymbols$s(b)) {
1361
+ if (__propIsEnum$s.call(b, prop))
1362
+ __defNormalProp$n(a, prop, b[prop]);
1363
1363
  }
1364
1364
  return a;
1365
1365
  };
1366
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
1367
- var __objRest$h = (source, exclude) => {
1366
+ var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
1367
+ var __objRest$j = (source, exclude) => {
1368
1368
  var target = {};
1369
1369
  for (var prop in source)
1370
- if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
1370
+ if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
1371
1371
  target[prop] = source[prop];
1372
- if (source != null && __getOwnPropSymbols$q)
1373
- for (var prop of __getOwnPropSymbols$q(source)) {
1374
- if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
1372
+ if (source != null && __getOwnPropSymbols$s)
1373
+ for (var prop of __getOwnPropSymbols$s(source)) {
1374
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
1375
1375
  target[prop] = source[prop];
1376
1376
  }
1377
1377
  return target;
@@ -1398,9 +1398,9 @@ var __async$z = (__this, __arguments, generator) => {
1398
1398
  };
1399
1399
  const useCreateLabelByRateId = (params) => {
1400
1400
  const { client } = useShipEngine();
1401
- return useMutation(__spreadProps$k(__spreadValues$l({}, params), {
1401
+ return useMutation(__spreadProps$m(__spreadValues$n({}, params), {
1402
1402
  mutationFn: (_a) => __async$z(void 0, null, function* () {
1403
- var _b = _a, { rateId } = _b, options = __objRest$h(_b, ["rateId"]);
1403
+ var _b = _a, { rateId } = _b, options = __objRest$j(_b, ["rateId"]);
1404
1404
  const result = yield client.labels.createByRateId(rateId, options);
1405
1405
  return result.data;
1406
1406
  }),
@@ -1409,33 +1409,33 @@ const useCreateLabelByRateId = (params) => {
1409
1409
  }));
1410
1410
  };
1411
1411
 
1412
- var __defProp$k = Object.defineProperty;
1413
- var __defProps$j = Object.defineProperties;
1414
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
1415
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
1416
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
1417
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
1418
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1419
- var __spreadValues$k = (a, b) => {
1412
+ var __defProp$m = Object.defineProperty;
1413
+ var __defProps$l = Object.defineProperties;
1414
+ var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
1415
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
1416
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
1417
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
1418
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1419
+ var __spreadValues$m = (a, b) => {
1420
1420
  for (var prop in b || (b = {}))
1421
- if (__hasOwnProp$p.call(b, prop))
1422
- __defNormalProp$k(a, prop, b[prop]);
1423
- if (__getOwnPropSymbols$p)
1424
- for (var prop of __getOwnPropSymbols$p(b)) {
1425
- if (__propIsEnum$p.call(b, prop))
1426
- __defNormalProp$k(a, prop, b[prop]);
1421
+ if (__hasOwnProp$r.call(b, prop))
1422
+ __defNormalProp$m(a, prop, b[prop]);
1423
+ if (__getOwnPropSymbols$r)
1424
+ for (var prop of __getOwnPropSymbols$r(b)) {
1425
+ if (__propIsEnum$r.call(b, prop))
1426
+ __defNormalProp$m(a, prop, b[prop]);
1427
1427
  }
1428
1428
  return a;
1429
1429
  };
1430
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
1431
- var __objRest$g = (source, exclude) => {
1430
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
1431
+ var __objRest$i = (source, exclude) => {
1432
1432
  var target = {};
1433
1433
  for (var prop in source)
1434
- if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
1434
+ if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
1435
1435
  target[prop] = source[prop];
1436
- if (source != null && __getOwnPropSymbols$p)
1437
- for (var prop of __getOwnPropSymbols$p(source)) {
1438
- if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
1436
+ if (source != null && __getOwnPropSymbols$r)
1437
+ for (var prop of __getOwnPropSymbols$r(source)) {
1438
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
1439
1439
  target[prop] = source[prop];
1440
1440
  }
1441
1441
  return target;
@@ -1462,9 +1462,9 @@ var __async$y = (__this, __arguments, generator) => {
1462
1462
  };
1463
1463
  const useCreateLabelByShipmentId = (params) => {
1464
1464
  const { client } = useShipEngine();
1465
- return useMutation(__spreadProps$j(__spreadValues$k({}, params), {
1465
+ return useMutation(__spreadProps$l(__spreadValues$m({}, params), {
1466
1466
  mutationFn: (_a) => __async$y(void 0, null, function* () {
1467
- var _b = _a, { shipmentId } = _b, options = __objRest$g(_b, ["shipmentId"]);
1467
+ var _b = _a, { shipmentId } = _b, options = __objRest$i(_b, ["shipmentId"]);
1468
1468
  const result = yield client.labels.createByShipmentId(shipmentId, options);
1469
1469
  return result.data;
1470
1470
  }),
@@ -1473,33 +1473,33 @@ const useCreateLabelByShipmentId = (params) => {
1473
1473
  }));
1474
1474
  };
1475
1475
 
1476
- var __defProp$j = Object.defineProperty;
1477
- var __defProps$i = Object.defineProperties;
1478
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
1479
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
1480
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
1481
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
1482
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1483
- var __spreadValues$j = (a, b) => {
1476
+ var __defProp$l = Object.defineProperty;
1477
+ var __defProps$k = Object.defineProperties;
1478
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
1479
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
1480
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
1481
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
1482
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1483
+ var __spreadValues$l = (a, b) => {
1484
1484
  for (var prop in b || (b = {}))
1485
- if (__hasOwnProp$o.call(b, prop))
1486
- __defNormalProp$j(a, prop, b[prop]);
1487
- if (__getOwnPropSymbols$o)
1488
- for (var prop of __getOwnPropSymbols$o(b)) {
1489
- if (__propIsEnum$o.call(b, prop))
1490
- __defNormalProp$j(a, prop, b[prop]);
1485
+ if (__hasOwnProp$q.call(b, prop))
1486
+ __defNormalProp$l(a, prop, b[prop]);
1487
+ if (__getOwnPropSymbols$q)
1488
+ for (var prop of __getOwnPropSymbols$q(b)) {
1489
+ if (__propIsEnum$q.call(b, prop))
1490
+ __defNormalProp$l(a, prop, b[prop]);
1491
1491
  }
1492
1492
  return a;
1493
1493
  };
1494
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
1495
- var __objRest$f = (source, exclude) => {
1494
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
1495
+ var __objRest$h = (source, exclude) => {
1496
1496
  var target = {};
1497
1497
  for (var prop in source)
1498
- if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
1498
+ if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
1499
1499
  target[prop] = source[prop];
1500
- if (source != null && __getOwnPropSymbols$o)
1501
- for (var prop of __getOwnPropSymbols$o(source)) {
1502
- if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
1500
+ if (source != null && __getOwnPropSymbols$q)
1501
+ for (var prop of __getOwnPropSymbols$q(source)) {
1502
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
1503
1503
  target[prop] = source[prop];
1504
1504
  }
1505
1505
  return target;
@@ -1526,9 +1526,9 @@ var __async$x = (__this, __arguments, generator) => {
1526
1526
  };
1527
1527
  const useCreateLabel = (params) => {
1528
1528
  const { client } = useShipEngine();
1529
- return useMutation(__spreadProps$i(__spreadValues$j({}, params), {
1529
+ return useMutation(__spreadProps$k(__spreadValues$l({}, params), {
1530
1530
  mutationFn: (_a) => __async$x(void 0, null, function* () {
1531
- var _b = _a, { rateId } = _b, options = __objRest$f(_b, ["rateId"]);
1531
+ var _b = _a, { rateId } = _b, options = __objRest$h(_b, ["rateId"]);
1532
1532
  const result = yield client.labels.createByRateId(rateId, options);
1533
1533
  return result.data;
1534
1534
  }),
@@ -1552,41 +1552,41 @@ const useGetLabel = (labelId) => {
1552
1552
  });
1553
1553
  };
1554
1554
 
1555
- var __defProp$i = Object.defineProperty;
1556
- var __defProps$h = Object.defineProperties;
1557
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
1558
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
1559
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
1560
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
1561
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1562
- var __spreadValues$i = (a, b) => {
1555
+ var __defProp$k = Object.defineProperty;
1556
+ var __defProps$j = Object.defineProperties;
1557
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
1558
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
1559
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
1560
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
1561
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1562
+ var __spreadValues$k = (a, b) => {
1563
1563
  for (var prop in b || (b = {}))
1564
- if (__hasOwnProp$n.call(b, prop))
1565
- __defNormalProp$i(a, prop, b[prop]);
1566
- if (__getOwnPropSymbols$n)
1567
- for (var prop of __getOwnPropSymbols$n(b)) {
1568
- if (__propIsEnum$n.call(b, prop))
1569
- __defNormalProp$i(a, prop, b[prop]);
1564
+ if (__hasOwnProp$p.call(b, prop))
1565
+ __defNormalProp$k(a, prop, b[prop]);
1566
+ if (__getOwnPropSymbols$p)
1567
+ for (var prop of __getOwnPropSymbols$p(b)) {
1568
+ if (__propIsEnum$p.call(b, prop))
1569
+ __defNormalProp$k(a, prop, b[prop]);
1570
1570
  }
1571
1571
  return a;
1572
1572
  };
1573
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
1574
- var __objRest$e = (source, exclude) => {
1573
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
1574
+ var __objRest$g = (source, exclude) => {
1575
1575
  var target = {};
1576
1576
  for (var prop in source)
1577
- if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
1577
+ if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
1578
1578
  target[prop] = source[prop];
1579
- if (source != null && __getOwnPropSymbols$n)
1580
- for (var prop of __getOwnPropSymbols$n(source)) {
1581
- if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
1579
+ if (source != null && __getOwnPropSymbols$p)
1580
+ for (var prop of __getOwnPropSymbols$p(source)) {
1581
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
1582
1582
  target[prop] = source[prop];
1583
1583
  }
1584
1584
  return target;
1585
1585
  };
1586
1586
  const useListLabels = (params) => {
1587
1587
  const { client } = useShipEngine();
1588
- const _a = __spreadValues$i({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
1589
- return useQuery(__spreadProps$h(__spreadValues$i({}, rest), {
1588
+ const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
1589
+ return useQuery(__spreadProps$j(__spreadValues$k({}, rest), {
1590
1590
  onError,
1591
1591
  queryFn: () => client.labels.list(queryFnParams),
1592
1592
  queryKey: ["useListLabels", params],
@@ -1626,33 +1626,33 @@ const useVoidLabel = () => {
1626
1626
  });
1627
1627
  };
1628
1628
 
1629
- var __defProp$h = Object.defineProperty;
1630
- var __defProps$g = Object.defineProperties;
1631
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
1632
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
1633
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
1634
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
1635
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1636
- var __spreadValues$h = (a, b) => {
1629
+ var __defProp$j = Object.defineProperty;
1630
+ var __defProps$i = Object.defineProperties;
1631
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
1632
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
1633
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
1634
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
1635
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1636
+ var __spreadValues$j = (a, b) => {
1637
1637
  for (var prop in b || (b = {}))
1638
- if (__hasOwnProp$m.call(b, prop))
1639
- __defNormalProp$h(a, prop, b[prop]);
1640
- if (__getOwnPropSymbols$m)
1641
- for (var prop of __getOwnPropSymbols$m(b)) {
1642
- if (__propIsEnum$m.call(b, prop))
1643
- __defNormalProp$h(a, prop, b[prop]);
1638
+ if (__hasOwnProp$o.call(b, prop))
1639
+ __defNormalProp$j(a, prop, b[prop]);
1640
+ if (__getOwnPropSymbols$o)
1641
+ for (var prop of __getOwnPropSymbols$o(b)) {
1642
+ if (__propIsEnum$o.call(b, prop))
1643
+ __defNormalProp$j(a, prop, b[prop]);
1644
1644
  }
1645
1645
  return a;
1646
1646
  };
1647
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
1648
- var __objRest$d = (source, exclude) => {
1647
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
1648
+ var __objRest$f = (source, exclude) => {
1649
1649
  var target = {};
1650
1650
  for (var prop in source)
1651
- if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
1651
+ if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
1652
1652
  target[prop] = source[prop];
1653
- if (source != null && __getOwnPropSymbols$m)
1654
- for (var prop of __getOwnPropSymbols$m(source)) {
1655
- if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
1653
+ if (source != null && __getOwnPropSymbols$o)
1654
+ for (var prop of __getOwnPropSymbols$o(source)) {
1655
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
1656
1656
  target[prop] = source[prop];
1657
1657
  }
1658
1658
  return target;
@@ -1679,8 +1679,8 @@ var __async$v = (__this, __arguments, generator) => {
1679
1679
  };
1680
1680
  const useListLabelsInfinite = (params) => {
1681
1681
  const { client } = useShipEngine();
1682
- const _a = __spreadValues$h({}, params), { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
1683
- return useInfiniteQuery(__spreadProps$g(__spreadValues$h({}, rest), {
1682
+ const _a = __spreadValues$j({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
1683
+ return useInfiniteQuery(__spreadProps$i(__spreadValues$j({}, rest), {
1684
1684
  getNextPageParam: (lastPage) => {
1685
1685
  if (lastPage.page < lastPage.pages) {
1686
1686
  return lastPage.page + 1;
@@ -1689,7 +1689,7 @@ const useListLabelsInfinite = (params) => {
1689
1689
  },
1690
1690
  onError,
1691
1691
  queryFn: (_0) => __async$v(void 0, [_0], function* ({ pageParam = 1 }) {
1692
- const response = yield client.labels.list(__spreadProps$g(__spreadValues$h({}, queryFnParams), { page: pageParam }));
1692
+ const response = yield client.labels.list(__spreadProps$i(__spreadValues$j({}, queryFnParams), { page: pageParam }));
1693
1693
  return response.data;
1694
1694
  }),
1695
1695
  queryKey: ["useListLabelsInfinite", params],
@@ -1703,28 +1703,69 @@ const useListLabelsInfinite = (params) => {
1703
1703
  }));
1704
1704
  };
1705
1705
 
1706
- var __defProp$g = Object.defineProperty;
1707
- var __defProps$f = Object.defineProperties;
1708
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
1709
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
1710
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
1711
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
1712
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1713
- var __spreadValues$g = (a, b) => {
1706
+ var __defProp$i = Object.defineProperty;
1707
+ var __defProps$h = Object.defineProperties;
1708
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
1709
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
1710
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
1711
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
1712
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1713
+ var __spreadValues$i = (a, b) => {
1714
+ for (var prop in b || (b = {}))
1715
+ if (__hasOwnProp$n.call(b, prop))
1716
+ __defNormalProp$i(a, prop, b[prop]);
1717
+ if (__getOwnPropSymbols$n)
1718
+ for (var prop of __getOwnPropSymbols$n(b)) {
1719
+ if (__propIsEnum$n.call(b, prop))
1720
+ __defNormalProp$i(a, prop, b[prop]);
1721
+ }
1722
+ return a;
1723
+ };
1724
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
1725
+ var __objRest$e = (source, exclude) => {
1726
+ var target = {};
1727
+ for (var prop in source)
1728
+ if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
1729
+ target[prop] = source[prop];
1730
+ if (source != null && __getOwnPropSymbols$n)
1731
+ for (var prop of __getOwnPropSymbols$n(source)) {
1732
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
1733
+ target[prop] = source[prop];
1734
+ }
1735
+ return target;
1736
+ };
1737
+ const useDownloadLabels = (params) => {
1738
+ const { client } = useShipEngine();
1739
+ const _a = __spreadValues$i({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
1740
+ return useQuery(__spreadProps$h(__spreadValues$i({}, rest), {
1741
+ onError,
1742
+ queryFn: () => client.labels.download(queryFnParams),
1743
+ queryKey: ["useDownloadLabels", params]
1744
+ }));
1745
+ };
1746
+
1747
+ var __defProp$h = Object.defineProperty;
1748
+ var __defProps$g = Object.defineProperties;
1749
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
1750
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
1751
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
1752
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
1753
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1754
+ var __spreadValues$h = (a, b) => {
1714
1755
  for (var prop in b || (b = {}))
1715
- if (__hasOwnProp$l.call(b, prop))
1716
- __defNormalProp$g(a, prop, b[prop]);
1717
- if (__getOwnPropSymbols$l)
1718
- for (var prop of __getOwnPropSymbols$l(b)) {
1719
- if (__propIsEnum$l.call(b, prop))
1720
- __defNormalProp$g(a, prop, b[prop]);
1756
+ if (__hasOwnProp$m.call(b, prop))
1757
+ __defNormalProp$h(a, prop, b[prop]);
1758
+ if (__getOwnPropSymbols$m)
1759
+ for (var prop of __getOwnPropSymbols$m(b)) {
1760
+ if (__propIsEnum$m.call(b, prop))
1761
+ __defNormalProp$h(a, prop, b[prop]);
1721
1762
  }
1722
1763
  return a;
1723
1764
  };
1724
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
1765
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
1725
1766
  const useListOrderSources = (params) => {
1726
1767
  const { client } = useShipEngine();
1727
- return useQuery(__spreadProps$f(__spreadValues$g({}, params), {
1768
+ return useQuery(__spreadProps$g(__spreadValues$h({}, params), {
1728
1769
  onError,
1729
1770
  queryFn: () => client.orderSources.list(),
1730
1771
  queryKey: ["useListOrderSources"],
@@ -2162,17 +2203,17 @@ const useListSalesOrders = (params = {}) => {
2162
2203
  });
2163
2204
  };
2164
2205
 
2165
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
2166
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
2167
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
2168
- var __objRest$c = (source, exclude) => {
2206
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
2207
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
2208
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
2209
+ var __objRest$d = (source, exclude) => {
2169
2210
  var target = {};
2170
2211
  for (var prop in source)
2171
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
2212
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
2172
2213
  target[prop] = source[prop];
2173
- if (source != null && __getOwnPropSymbols$k)
2174
- for (var prop of __getOwnPropSymbols$k(source)) {
2175
- if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
2214
+ if (source != null && __getOwnPropSymbols$l)
2215
+ for (var prop of __getOwnPropSymbols$l(source)) {
2216
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
2176
2217
  target[prop] = source[prop];
2177
2218
  }
2178
2219
  return target;
@@ -2201,7 +2242,7 @@ const useNotifySalesOrderShipped = () => {
2201
2242
  const { client } = useShipEngine();
2202
2243
  return useMutation({
2203
2244
  mutationFn: (_a) => __async$k(void 0, null, function* () {
2204
- var _b = _a, { salesOrderId } = _b, tracking = __objRest$c(_b, ["salesOrderId"]);
2245
+ var _b = _a, { salesOrderId } = _b, tracking = __objRest$d(_b, ["salesOrderId"]);
2205
2246
  const result = yield client.salesOrders.notifyShipped(salesOrderId, tracking);
2206
2247
  return result.data;
2207
2248
  }),
@@ -2210,17 +2251,17 @@ const useNotifySalesOrderShipped = () => {
2210
2251
  });
2211
2252
  };
2212
2253
 
2213
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
2214
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
2215
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
2216
- var __objRest$b = (source, exclude) => {
2254
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
2255
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
2256
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
2257
+ var __objRest$c = (source, exclude) => {
2217
2258
  var target = {};
2218
2259
  for (var prop in source)
2219
- if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
2260
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
2220
2261
  target[prop] = source[prop];
2221
- if (source != null && __getOwnPropSymbols$j)
2222
- for (var prop of __getOwnPropSymbols$j(source)) {
2223
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
2262
+ if (source != null && __getOwnPropSymbols$k)
2263
+ for (var prop of __getOwnPropSymbols$k(source)) {
2264
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
2224
2265
  target[prop] = source[prop];
2225
2266
  }
2226
2267
  return target;
@@ -2249,7 +2290,7 @@ const useCreateSalesOrderShipment = () => {
2249
2290
  const { client } = useShipEngine();
2250
2291
  return useMutation({
2251
2292
  mutationFn: (_a) => __async$j(void 0, null, function* () {
2252
- var _b = _a, { salesOrderId } = _b, shipment = __objRest$b(_b, ["salesOrderId"]);
2293
+ var _b = _a, { salesOrderId } = _b, shipment = __objRest$c(_b, ["salesOrderId"]);
2253
2294
  const result = yield client.salesOrderShipments.create(salesOrderId, shipment);
2254
2295
  return result.data;
2255
2296
  }),
@@ -2285,17 +2326,17 @@ const useListSalesOrderShipments = (body) => {
2285
2326
  });
2286
2327
  };
2287
2328
 
2288
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
2289
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
2290
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
2291
- var __objRest$a = (source, exclude) => {
2329
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
2330
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
2331
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
2332
+ var __objRest$b = (source, exclude) => {
2292
2333
  var target = {};
2293
2334
  for (var prop in source)
2294
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
2335
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
2295
2336
  target[prop] = source[prop];
2296
- if (source != null && __getOwnPropSymbols$i)
2297
- for (var prop of __getOwnPropSymbols$i(source)) {
2298
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
2337
+ if (source != null && __getOwnPropSymbols$j)
2338
+ for (var prop of __getOwnPropSymbols$j(source)) {
2339
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
2299
2340
  target[prop] = source[prop];
2300
2341
  }
2301
2342
  return target;
@@ -2324,7 +2365,7 @@ const useUpdateSalesOrderShipment = () => {
2324
2365
  const { client } = useShipEngine();
2325
2366
  return useMutation({
2326
2367
  mutationFn: (_a) => __async$i(void 0, null, function* () {
2327
- var _b = _a, { shipmentId } = _b, shipment = __objRest$a(_b, ["shipmentId"]);
2368
+ var _b = _a, { shipmentId } = _b, shipment = __objRest$b(_b, ["shipmentId"]);
2328
2369
  const result = yield client.salesOrderShipments.update(shipmentId, shipment);
2329
2370
  return result.data;
2330
2371
  }),
@@ -2344,25 +2385,25 @@ const useListSalesOrderShipmentsByExternalOrderId = (externalOrderId) => {
2344
2385
  });
2345
2386
  };
2346
2387
 
2347
- var __defProp$f = Object.defineProperty;
2348
- var __defProps$e = Object.defineProperties;
2349
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
2350
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2351
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2352
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2353
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2354
- var __spreadValues$f = (a, b) => {
2388
+ var __defProp$g = Object.defineProperty;
2389
+ var __defProps$f = Object.defineProperties;
2390
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
2391
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
2392
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
2393
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
2394
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2395
+ var __spreadValues$g = (a, b) => {
2355
2396
  for (var prop in b || (b = {}))
2356
- if (__hasOwnProp$h.call(b, prop))
2357
- __defNormalProp$f(a, prop, b[prop]);
2358
- if (__getOwnPropSymbols$h)
2359
- for (var prop of __getOwnPropSymbols$h(b)) {
2360
- if (__propIsEnum$h.call(b, prop))
2361
- __defNormalProp$f(a, prop, b[prop]);
2397
+ if (__hasOwnProp$i.call(b, prop))
2398
+ __defNormalProp$g(a, prop, b[prop]);
2399
+ if (__getOwnPropSymbols$i)
2400
+ for (var prop of __getOwnPropSymbols$i(b)) {
2401
+ if (__propIsEnum$i.call(b, prop))
2402
+ __defNormalProp$g(a, prop, b[prop]);
2362
2403
  }
2363
2404
  return a;
2364
2405
  };
2365
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
2406
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
2366
2407
  var __async$h = (__this, __arguments, generator) => {
2367
2408
  return new Promise((resolve, reject) => {
2368
2409
  var fulfilled = (value) => {
@@ -2404,7 +2445,7 @@ const useCreateShipment = () => {
2404
2445
  postalCode: "",
2405
2446
  stateProvince: ""
2406
2447
  };
2407
- return (yield client.shipments.create(__spreadProps$e(__spreadValues$f({}, shipment), {
2448
+ return (yield client.shipments.create(__spreadProps$f(__spreadValues$g({}, shipment), {
2408
2449
  shipTo
2409
2450
  }))).data;
2410
2451
  }),
@@ -2413,43 +2454,43 @@ const useCreateShipment = () => {
2413
2454
  });
2414
2455
  };
2415
2456
 
2416
- var __defProp$e = Object.defineProperty;
2417
- var __defProps$d = Object.defineProperties;
2418
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
2419
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
2420
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
2421
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
2422
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2423
- var __spreadValues$e = (a, b) => {
2457
+ var __defProp$f = Object.defineProperty;
2458
+ var __defProps$e = Object.defineProperties;
2459
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
2460
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2461
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2462
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2463
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2464
+ var __spreadValues$f = (a, b) => {
2424
2465
  for (var prop in b || (b = {}))
2425
- if (__hasOwnProp$g.call(b, prop))
2426
- __defNormalProp$e(a, prop, b[prop]);
2427
- if (__getOwnPropSymbols$g)
2428
- for (var prop of __getOwnPropSymbols$g(b)) {
2429
- if (__propIsEnum$g.call(b, prop))
2430
- __defNormalProp$e(a, prop, b[prop]);
2466
+ if (__hasOwnProp$h.call(b, prop))
2467
+ __defNormalProp$f(a, prop, b[prop]);
2468
+ if (__getOwnPropSymbols$h)
2469
+ for (var prop of __getOwnPropSymbols$h(b)) {
2470
+ if (__propIsEnum$h.call(b, prop))
2471
+ __defNormalProp$f(a, prop, b[prop]);
2431
2472
  }
2432
2473
  return a;
2433
2474
  };
2434
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
2435
- var __objRest$9 = (source, exclude) => {
2475
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
2476
+ var __objRest$a = (source, exclude) => {
2436
2477
  var target = {};
2437
2478
  for (var prop in source)
2438
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
2479
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
2439
2480
  target[prop] = source[prop];
2440
- if (source != null && __getOwnPropSymbols$g)
2441
- for (var prop of __getOwnPropSymbols$g(source)) {
2442
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
2481
+ if (source != null && __getOwnPropSymbols$h)
2482
+ for (var prop of __getOwnPropSymbols$h(source)) {
2483
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
2443
2484
  target[prop] = source[prop];
2444
2485
  }
2445
2486
  return target;
2446
2487
  };
2447
2488
  const useGetShipmentRates = (params) => {
2448
2489
  const { client } = useShipEngine();
2449
- const _a = params, { queryFnParams } = _a, rest = __objRest$9(_a, ["queryFnParams"]);
2490
+ const _a = params, { queryFnParams } = _a, rest = __objRest$a(_a, ["queryFnParams"]);
2450
2491
  const shipmentId = queryFnParams == null ? void 0 : queryFnParams.shipmentId;
2451
2492
  const createdAtStart = queryFnParams == null ? void 0 : queryFnParams.createdAtStart;
2452
- return useQuery(__spreadProps$d(__spreadValues$e({
2493
+ return useQuery(__spreadProps$e(__spreadValues$f({
2453
2494
  enabled: shipmentId !== void 0
2454
2495
  }, rest), {
2455
2496
  onError,
@@ -2464,33 +2505,33 @@ const useGetShipmentRates = (params) => {
2464
2505
  }));
2465
2506
  };
2466
2507
 
2467
- var __defProp$d = Object.defineProperty;
2468
- var __defProps$c = Object.defineProperties;
2469
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
2470
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
2471
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
2472
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
2473
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2474
- var __spreadValues$d = (a, b) => {
2508
+ var __defProp$e = Object.defineProperty;
2509
+ var __defProps$d = Object.defineProperties;
2510
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
2511
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
2512
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
2513
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
2514
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2515
+ var __spreadValues$e = (a, b) => {
2475
2516
  for (var prop in b || (b = {}))
2476
- if (__hasOwnProp$f.call(b, prop))
2477
- __defNormalProp$d(a, prop, b[prop]);
2478
- if (__getOwnPropSymbols$f)
2479
- for (var prop of __getOwnPropSymbols$f(b)) {
2480
- if (__propIsEnum$f.call(b, prop))
2481
- __defNormalProp$d(a, prop, b[prop]);
2517
+ if (__hasOwnProp$g.call(b, prop))
2518
+ __defNormalProp$e(a, prop, b[prop]);
2519
+ if (__getOwnPropSymbols$g)
2520
+ for (var prop of __getOwnPropSymbols$g(b)) {
2521
+ if (__propIsEnum$g.call(b, prop))
2522
+ __defNormalProp$e(a, prop, b[prop]);
2482
2523
  }
2483
2524
  return a;
2484
2525
  };
2485
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
2486
- var __objRest$8 = (source, exclude) => {
2526
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
2527
+ var __objRest$9 = (source, exclude) => {
2487
2528
  var target = {};
2488
2529
  for (var prop in source)
2489
- if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
2530
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
2490
2531
  target[prop] = source[prop];
2491
- if (source != null && __getOwnPropSymbols$f)
2492
- for (var prop of __getOwnPropSymbols$f(source)) {
2493
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
2532
+ if (source != null && __getOwnPropSymbols$g)
2533
+ for (var prop of __getOwnPropSymbols$g(source)) {
2534
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
2494
2535
  target[prop] = source[prop];
2495
2536
  }
2496
2537
  return target;
@@ -2501,12 +2542,12 @@ const useGetShipment = (params) => {
2501
2542
  const shipmentId = typeof params === "string" ? params : (_a = params == null ? void 0 : params.queryFnParams) == null ? void 0 : _a.shipmentId;
2502
2543
  const getQueryProps = () => {
2503
2544
  if (typeof params !== "string") {
2504
- const _a2 = params, rest = __objRest$8(_a2, ["queryFnParams"]);
2545
+ const _a2 = params, rest = __objRest$9(_a2, ["queryFnParams"]);
2505
2546
  return rest;
2506
2547
  }
2507
2548
  return {};
2508
2549
  };
2509
- return useQuery(__spreadProps$c(__spreadValues$d({}, getQueryProps()), {
2550
+ return useQuery(__spreadProps$d(__spreadValues$e({}, getQueryProps()), {
2510
2551
  enabled: shipmentId !== void 0,
2511
2552
  onError,
2512
2553
  queryFn: () => {
@@ -2520,23 +2561,23 @@ const useGetShipment = (params) => {
2520
2561
  }));
2521
2562
  };
2522
2563
 
2523
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2524
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2525
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
2526
- var __objRest$7 = (source, exclude) => {
2564
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
2565
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
2566
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
2567
+ var __objRest$8 = (source, exclude) => {
2527
2568
  var target = {};
2528
2569
  for (var prop in source)
2529
- if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
2570
+ if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
2530
2571
  target[prop] = source[prop];
2531
- if (source != null && __getOwnPropSymbols$e)
2532
- for (var prop of __getOwnPropSymbols$e(source)) {
2533
- if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
2572
+ if (source != null && __getOwnPropSymbols$f)
2573
+ for (var prop of __getOwnPropSymbols$f(source)) {
2574
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
2534
2575
  target[prop] = source[prop];
2535
2576
  }
2536
2577
  return target;
2537
2578
  };
2538
2579
  const useListShipments = (_params) => {
2539
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$7(_a, ["enabled"]);
2580
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$8(_a, ["enabled"]);
2540
2581
  const { client } = useShipEngine();
2541
2582
  return useQuery({
2542
2583
  enabled,
@@ -2547,41 +2588,41 @@ const useListShipments = (_params) => {
2547
2588
  });
2548
2589
  };
2549
2590
 
2550
- var __defProp$c = Object.defineProperty;
2551
- var __defProps$b = Object.defineProperties;
2552
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
2553
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
2554
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
2555
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
2556
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2557
- var __spreadValues$c = (a, b) => {
2591
+ var __defProp$d = Object.defineProperty;
2592
+ var __defProps$c = Object.defineProperties;
2593
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
2594
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2595
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2596
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
2597
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2598
+ var __spreadValues$d = (a, b) => {
2558
2599
  for (var prop in b || (b = {}))
2559
- if (__hasOwnProp$d.call(b, prop))
2560
- __defNormalProp$c(a, prop, b[prop]);
2561
- if (__getOwnPropSymbols$d)
2562
- for (var prop of __getOwnPropSymbols$d(b)) {
2563
- if (__propIsEnum$d.call(b, prop))
2564
- __defNormalProp$c(a, prop, b[prop]);
2600
+ if (__hasOwnProp$e.call(b, prop))
2601
+ __defNormalProp$d(a, prop, b[prop]);
2602
+ if (__getOwnPropSymbols$e)
2603
+ for (var prop of __getOwnPropSymbols$e(b)) {
2604
+ if (__propIsEnum$e.call(b, prop))
2605
+ __defNormalProp$d(a, prop, b[prop]);
2565
2606
  }
2566
2607
  return a;
2567
2608
  };
2568
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
2569
- var __objRest$6 = (source, exclude) => {
2609
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
2610
+ var __objRest$7 = (source, exclude) => {
2570
2611
  var target = {};
2571
2612
  for (var prop in source)
2572
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
2613
+ if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
2573
2614
  target[prop] = source[prop];
2574
- if (source != null && __getOwnPropSymbols$d)
2575
- for (var prop of __getOwnPropSymbols$d(source)) {
2576
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
2615
+ if (source != null && __getOwnPropSymbols$e)
2616
+ for (var prop of __getOwnPropSymbols$e(source)) {
2617
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
2577
2618
  target[prop] = source[prop];
2578
2619
  }
2579
2620
  return target;
2580
2621
  };
2581
2622
  const useGetShipmentByExternalId = (params) => {
2582
2623
  const { client } = useShipEngine();
2583
- const _a = params, { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
2584
- return useQuery(__spreadProps$b(__spreadValues$c({}, rest), {
2624
+ const _a = params, { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
2625
+ return useQuery(__spreadProps$c(__spreadValues$d({}, rest), {
2585
2626
  onError,
2586
2627
  queryFn: () => client.shipments.getByExternalId(queryFnParams.externalId),
2587
2628
  queryKey: ["useGetShipmentByExternalId", queryFnParams],
@@ -2621,6 +2662,47 @@ const useCancelShipment = () => {
2621
2662
  });
2622
2663
  };
2623
2664
 
2665
+ var __defProp$c = Object.defineProperty;
2666
+ var __defProps$b = Object.defineProperties;
2667
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
2668
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
2669
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
2670
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
2671
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2672
+ var __spreadValues$c = (a, b) => {
2673
+ for (var prop in b || (b = {}))
2674
+ if (__hasOwnProp$d.call(b, prop))
2675
+ __defNormalProp$c(a, prop, b[prop]);
2676
+ if (__getOwnPropSymbols$d)
2677
+ for (var prop of __getOwnPropSymbols$d(b)) {
2678
+ if (__propIsEnum$d.call(b, prop))
2679
+ __defNormalProp$c(a, prop, b[prop]);
2680
+ }
2681
+ return a;
2682
+ };
2683
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
2684
+ var __objRest$6 = (source, exclude) => {
2685
+ var target = {};
2686
+ for (var prop in source)
2687
+ if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
2688
+ target[prop] = source[prop];
2689
+ if (source != null && __getOwnPropSymbols$d)
2690
+ for (var prop of __getOwnPropSymbols$d(source)) {
2691
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
2692
+ target[prop] = source[prop];
2693
+ }
2694
+ return target;
2695
+ };
2696
+ const useDownloadShipments = (params) => {
2697
+ const { client } = useShipEngine();
2698
+ const _a = __spreadValues$c({}, params), { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
2699
+ return useQuery(__spreadProps$b(__spreadValues$c({}, rest), {
2700
+ onError,
2701
+ queryFn: () => client.shipments.download(queryFnParams),
2702
+ queryKey: ["useDownloadShipments", params]
2703
+ }));
2704
+ };
2705
+
2624
2706
  var __defProp$b = Object.defineProperty;
2625
2707
  var __defProps$a = Object.defineProperties;
2626
2708
  var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
@@ -3611,4 +3693,4 @@ const useUpdateWebhook = (params) => {
3611
3693
  }));
3612
3694
  };
3613
3695
 
3614
- export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, 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, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
3696
+ export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadLabels, useDownloadRateCard, useDownloadShipments, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };