@shipengine/react-api 4.1.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -79,25 +79,25 @@ const onError = (_errors) => _default();
79
79
 
80
80
  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}();
81
81
 
82
- var __defProp$w = Object.defineProperty;
83
- var __defProps$v = Object.defineProperties;
84
- var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
85
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
86
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
87
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
88
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
89
- var __spreadValues$w = (a, b) => {
82
+ var __defProp$x = Object.defineProperty;
83
+ var __defProps$w = Object.defineProperties;
84
+ var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
85
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
86
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
87
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
88
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
89
+ var __spreadValues$x = (a, b) => {
90
90
  for (var prop in b || (b = {}))
91
- if (__hasOwnProp$F.call(b, prop))
92
- __defNormalProp$w(a, prop, b[prop]);
93
- if (__getOwnPropSymbols$F)
94
- for (var prop of __getOwnPropSymbols$F(b)) {
95
- if (__propIsEnum$F.call(b, prop))
96
- __defNormalProp$w(a, prop, b[prop]);
91
+ if (__hasOwnProp$G.call(b, prop))
92
+ __defNormalProp$x(a, prop, b[prop]);
93
+ if (__getOwnPropSymbols$G)
94
+ for (var prop of __getOwnPropSymbols$G(b)) {
95
+ if (__propIsEnum$G.call(b, prop))
96
+ __defNormalProp$x(a, prop, b[prop]);
97
97
  }
98
98
  return a;
99
99
  };
100
- var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
100
+ var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
101
101
  const streams = [];
102
102
  if (process.env.NODE_ENV === "production") {
103
103
  streams.push({
@@ -106,7 +106,7 @@ if (process.env.NODE_ENV === "production") {
106
106
  }
107
107
  const logger = E({
108
108
  name: "shipengine",
109
- serializers: __spreadProps$v(__spreadValues$w({}, k), {
109
+ serializers: __spreadProps$w(__spreadValues$x({}, k), {
110
110
  req: (req) => ({
111
111
  headers: req.headers,
112
112
  method: req.method,
@@ -343,25 +343,25 @@ const useValidateAddresses = () => {
343
343
  });
344
344
  };
345
345
 
346
- var __defProp$v = Object.defineProperty;
347
- var __defProps$u = Object.defineProperties;
348
- var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
349
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
350
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
351
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
352
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
353
- var __spreadValues$v = (a, b) => {
346
+ var __defProp$w = Object.defineProperty;
347
+ var __defProps$v = Object.defineProperties;
348
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
349
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
350
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
351
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
352
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
353
+ var __spreadValues$w = (a, b) => {
354
354
  for (var prop in b || (b = {}))
355
- if (__hasOwnProp$E.call(b, prop))
356
- __defNormalProp$v(a, prop, b[prop]);
357
- if (__getOwnPropSymbols$E)
358
- for (var prop of __getOwnPropSymbols$E(b)) {
359
- if (__propIsEnum$E.call(b, prop))
360
- __defNormalProp$v(a, prop, b[prop]);
355
+ if (__hasOwnProp$F.call(b, prop))
356
+ __defNormalProp$w(a, prop, b[prop]);
357
+ if (__getOwnPropSymbols$F)
358
+ for (var prop of __getOwnPropSymbols$F(b)) {
359
+ if (__propIsEnum$F.call(b, prop))
360
+ __defNormalProp$w(a, prop, b[prop]);
361
361
  }
362
362
  return a;
363
363
  };
364
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
364
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
365
365
  var __async$N = (__this, __arguments, generator) => {
366
366
  return new Promise((resolve, reject) => {
367
367
  var fulfilled = (value) => {
@@ -384,7 +384,7 @@ var __async$N = (__this, __arguments, generator) => {
384
384
  };
385
385
  const useCreateAuctanePaySession = (params) => {
386
386
  const { client } = useShipEngine();
387
- return reactQuery.useMutation(__spreadProps$u(__spreadValues$v({}, params), {
387
+ return reactQuery.useMutation(__spreadProps$v(__spreadValues$w({}, params), {
388
388
  mutationFn: (request) => __async$N(void 0, null, function* () {
389
389
  const result = yield client.auctanePay.createSession(request);
390
390
  return result.data;
@@ -394,29 +394,29 @@ const useCreateAuctanePaySession = (params) => {
394
394
  }));
395
395
  };
396
396
 
397
- var __defProp$u = Object.defineProperty;
398
- var __defProps$t = Object.defineProperties;
399
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
400
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
401
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
402
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
403
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
404
- var __spreadValues$u = (a, b) => {
397
+ var __defProp$v = Object.defineProperty;
398
+ var __defProps$u = Object.defineProperties;
399
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
400
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
401
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
402
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
403
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
404
+ var __spreadValues$v = (a, b) => {
405
405
  for (var prop in b || (b = {}))
406
- if (__hasOwnProp$D.call(b, prop))
407
- __defNormalProp$u(a, prop, b[prop]);
408
- if (__getOwnPropSymbols$D)
409
- for (var prop of __getOwnPropSymbols$D(b)) {
410
- if (__propIsEnum$D.call(b, prop))
411
- __defNormalProp$u(a, prop, b[prop]);
406
+ if (__hasOwnProp$E.call(b, prop))
407
+ __defNormalProp$v(a, prop, b[prop]);
408
+ if (__getOwnPropSymbols$E)
409
+ for (var prop of __getOwnPropSymbols$E(b)) {
410
+ if (__propIsEnum$E.call(b, prop))
411
+ __defNormalProp$v(a, prop, b[prop]);
412
412
  }
413
413
  return a;
414
414
  };
415
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
415
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
416
416
  const useGetAuctanePayConfig = (params) => {
417
417
  const { client } = useShipEngine();
418
- const queryParams = __spreadValues$u({}, params);
419
- return reactQuery.useQuery(__spreadProps$t(__spreadValues$u({}, queryParams), {
418
+ const queryParams = __spreadValues$v({}, params);
419
+ return reactQuery.useQuery(__spreadProps$u(__spreadValues$v({}, queryParams), {
420
420
  onError,
421
421
  queryFn: () => client.auctanePay.getConfig(),
422
422
  queryKey: ["useGetAuctanePayConfig"],
@@ -588,41 +588,41 @@ const useGetServicesByCarrier = (carrierId) => {
588
588
  });
589
589
  };
590
590
 
591
- var __defProp$t = Object.defineProperty;
592
- var __defProps$s = Object.defineProperties;
593
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
594
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
595
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
596
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
597
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
598
- var __spreadValues$t = (a, b) => {
591
+ var __defProp$u = Object.defineProperty;
592
+ var __defProps$t = Object.defineProperties;
593
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
594
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
595
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
596
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
597
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
598
+ var __spreadValues$u = (a, b) => {
599
599
  for (var prop in b || (b = {}))
600
- if (__hasOwnProp$C.call(b, prop))
601
- __defNormalProp$t(a, prop, b[prop]);
602
- if (__getOwnPropSymbols$C)
603
- for (var prop of __getOwnPropSymbols$C(b)) {
604
- if (__propIsEnum$C.call(b, prop))
605
- __defNormalProp$t(a, prop, b[prop]);
600
+ if (__hasOwnProp$D.call(b, prop))
601
+ __defNormalProp$u(a, prop, b[prop]);
602
+ if (__getOwnPropSymbols$D)
603
+ for (var prop of __getOwnPropSymbols$D(b)) {
604
+ if (__propIsEnum$D.call(b, prop))
605
+ __defNormalProp$u(a, prop, b[prop]);
606
606
  }
607
607
  return a;
608
608
  };
609
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
610
- var __objRest$o = (source, exclude) => {
609
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
610
+ var __objRest$p = (source, exclude) => {
611
611
  var target = {};
612
612
  for (var prop in source)
613
- if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
613
+ if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
614
614
  target[prop] = source[prop];
615
- if (source != null && __getOwnPropSymbols$C)
616
- for (var prop of __getOwnPropSymbols$C(source)) {
617
- if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
615
+ if (source != null && __getOwnPropSymbols$D)
616
+ for (var prop of __getOwnPropSymbols$D(source)) {
617
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
618
618
  target[prop] = source[prop];
619
619
  }
620
620
  return target;
621
621
  };
622
622
  const useListCarriers = (params) => {
623
623
  const { client } = useShipEngine();
624
- const _a = __spreadValues$t({}, params), { queryFnParams } = _a, rest = __objRest$o(_a, ["queryFnParams"]);
625
- return reactQuery.useQuery(__spreadProps$s(__spreadValues$t({}, rest), {
624
+ const _a = __spreadValues$u({}, params), { queryFnParams } = _a, rest = __objRest$p(_a, ["queryFnParams"]);
625
+ return reactQuery.useQuery(__spreadProps$t(__spreadValues$u({}, rest), {
626
626
  onError,
627
627
  queryFn: () => client.carriers.list(queryFnParams),
628
628
  queryKey: ["useListCarriers", queryFnParams],
@@ -630,17 +630,17 @@ const useListCarriers = (params) => {
630
630
  }));
631
631
  };
632
632
 
633
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
634
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
635
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
636
- var __objRest$n = (source, exclude) => {
633
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
634
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
635
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
636
+ var __objRest$o = (source, exclude) => {
637
637
  var target = {};
638
638
  for (var prop in source)
639
- if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
639
+ if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
640
640
  target[prop] = source[prop];
641
- if (source != null && __getOwnPropSymbols$B)
642
- for (var prop of __getOwnPropSymbols$B(source)) {
643
- if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
641
+ if (source != null && __getOwnPropSymbols$C)
642
+ for (var prop of __getOwnPropSymbols$C(source)) {
643
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
644
644
  target[prop] = source[prop];
645
645
  }
646
646
  return target;
@@ -670,7 +670,7 @@ const useUpdateAutoFunding = () => {
670
670
  const queryClient = reactQuery.useQueryClient();
671
671
  return reactQuery.useMutation({
672
672
  mutationFn: (_a) => __async$K(void 0, null, function* () {
673
- var _b = _a, { carrierId } = _b, options = __objRest$n(_b, ["carrierId"]);
673
+ var _b = _a, { carrierId } = _b, options = __objRest$o(_b, ["carrierId"]);
674
674
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
675
675
  return result.data;
676
676
  }),
@@ -731,24 +731,24 @@ const useDeleteCarrier = () => {
731
731
  });
732
732
  };
733
733
 
734
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
735
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
736
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
737
- var __objRest$m = (source, exclude) => {
734
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
735
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
736
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
737
+ var __objRest$n = (source, exclude) => {
738
738
  var target = {};
739
739
  for (var prop in source)
740
- if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
740
+ if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
741
741
  target[prop] = source[prop];
742
- if (source != null && __getOwnPropSymbols$A)
743
- for (var prop of __getOwnPropSymbols$A(source)) {
744
- if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
742
+ if (source != null && __getOwnPropSymbols$B)
743
+ for (var prop of __getOwnPropSymbols$B(source)) {
744
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
745
745
  target[prop] = source[prop];
746
746
  }
747
747
  return target;
748
748
  };
749
749
  const useGetCarrierConnectionForm = (_params) => {
750
750
  const { client } = useShipEngine();
751
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$m(_a, ["carrierName", "enabled"]);
751
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$n(_a, ["carrierName", "enabled"]);
752
752
  return reactQuery.useQuery({
753
753
  enabled,
754
754
  onError,
@@ -758,24 +758,24 @@ const useGetCarrierConnectionForm = (_params) => {
758
758
  });
759
759
  };
760
760
 
761
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
762
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
763
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
764
- var __objRest$l = (source, exclude) => {
761
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
762
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
763
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
764
+ var __objRest$m = (source, exclude) => {
765
765
  var target = {};
766
766
  for (var prop in source)
767
- if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
767
+ if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
768
768
  target[prop] = source[prop];
769
- if (source != null && __getOwnPropSymbols$z)
770
- for (var prop of __getOwnPropSymbols$z(source)) {
771
- if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
769
+ if (source != null && __getOwnPropSymbols$A)
770
+ for (var prop of __getOwnPropSymbols$A(source)) {
771
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
772
772
  target[prop] = source[prop];
773
773
  }
774
774
  return target;
775
775
  };
776
776
  const useListCarrierConnections = (_params) => {
777
777
  const { client } = useShipEngine();
778
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$l(_a, ["enabled"]);
778
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$m(_a, ["enabled"]);
779
779
  return reactQuery.useQuery({
780
780
  enabled,
781
781
  onError,
@@ -828,33 +828,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
828
828
  });
829
829
  };
830
830
 
831
- var __defProp$s = Object.defineProperty;
832
- var __defProps$r = Object.defineProperties;
833
- var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
834
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
835
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
836
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
837
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
838
- var __spreadValues$s = (a, b) => {
831
+ var __defProp$t = Object.defineProperty;
832
+ var __defProps$s = Object.defineProperties;
833
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
834
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
835
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
836
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
837
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
838
+ var __spreadValues$t = (a, b) => {
839
839
  for (var prop in b || (b = {}))
840
- if (__hasOwnProp$y.call(b, prop))
841
- __defNormalProp$s(a, prop, b[prop]);
842
- if (__getOwnPropSymbols$y)
843
- for (var prop of __getOwnPropSymbols$y(b)) {
844
- if (__propIsEnum$y.call(b, prop))
845
- __defNormalProp$s(a, prop, b[prop]);
840
+ if (__hasOwnProp$z.call(b, prop))
841
+ __defNormalProp$t(a, prop, b[prop]);
842
+ if (__getOwnPropSymbols$z)
843
+ for (var prop of __getOwnPropSymbols$z(b)) {
844
+ if (__propIsEnum$z.call(b, prop))
845
+ __defNormalProp$t(a, prop, b[prop]);
846
846
  }
847
847
  return a;
848
848
  };
849
- var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
850
- var __objRest$k = (source, exclude) => {
849
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
850
+ var __objRest$l = (source, exclude) => {
851
851
  var target = {};
852
852
  for (var prop in source)
853
- if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
853
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
854
854
  target[prop] = source[prop];
855
- if (source != null && __getOwnPropSymbols$y)
856
- for (var prop of __getOwnPropSymbols$y(source)) {
857
- if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
855
+ if (source != null && __getOwnPropSymbols$z)
856
+ for (var prop of __getOwnPropSymbols$z(source)) {
857
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
858
858
  target[prop] = source[prop];
859
859
  }
860
860
  return target;
@@ -862,12 +862,12 @@ var __objRest$k = (source, exclude) => {
862
862
  const useGetConnectionsCarrierSettings = (_a) => {
863
863
  var _b = _a, {
864
864
  queryFnParams
865
- } = _b, params = __objRest$k(_b, [
865
+ } = _b, params = __objRest$l(_b, [
866
866
  "queryFnParams"
867
867
  ]);
868
868
  const { client } = useShipEngine();
869
869
  const { carrierName, carrierId } = queryFnParams;
870
- return reactQuery.useQuery(__spreadProps$r(__spreadValues$s({}, params), {
870
+ return reactQuery.useQuery(__spreadProps$s(__spreadValues$t({}, params), {
871
871
  onError,
872
872
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
873
873
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -875,25 +875,25 @@ const useGetConnectionsCarrierSettings = (_a) => {
875
875
  }));
876
876
  };
877
877
 
878
- var __defProp$r = Object.defineProperty;
879
- var __defProps$q = Object.defineProperties;
880
- var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
881
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
882
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
883
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
884
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
885
- var __spreadValues$r = (a, b) => {
878
+ var __defProp$s = Object.defineProperty;
879
+ var __defProps$r = Object.defineProperties;
880
+ var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
881
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
882
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
883
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
884
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
885
+ var __spreadValues$s = (a, b) => {
886
886
  for (var prop in b || (b = {}))
887
- if (__hasOwnProp$x.call(b, prop))
888
- __defNormalProp$r(a, prop, b[prop]);
889
- if (__getOwnPropSymbols$x)
890
- for (var prop of __getOwnPropSymbols$x(b)) {
891
- if (__propIsEnum$x.call(b, prop))
892
- __defNormalProp$r(a, prop, b[prop]);
887
+ if (__hasOwnProp$y.call(b, prop))
888
+ __defNormalProp$s(a, prop, b[prop]);
889
+ if (__getOwnPropSymbols$y)
890
+ for (var prop of __getOwnPropSymbols$y(b)) {
891
+ if (__propIsEnum$y.call(b, prop))
892
+ __defNormalProp$s(a, prop, b[prop]);
893
893
  }
894
894
  return a;
895
895
  };
896
- var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
896
+ var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
897
897
  var __async$H = (__this, __arguments, generator) => {
898
898
  return new Promise((resolve, reject) => {
899
899
  var fulfilled = (value) => {
@@ -916,7 +916,7 @@ var __async$H = (__this, __arguments, generator) => {
916
916
  };
917
917
  const useUpdateConnectionsCarrierSettings = (params) => {
918
918
  const { client } = useShipEngine();
919
- return reactQuery.useMutation(__spreadProps$q(__spreadValues$r({}, params), {
919
+ return reactQuery.useMutation(__spreadProps$r(__spreadValues$s({}, params), {
920
920
  mutationFn: (_0) => __async$H(void 0, [_0], function* ({
921
921
  carrierName,
922
922
  carrierId,
@@ -1086,12 +1086,14 @@ const useUpdateFundingSource = () => {
1086
1086
  mutationFn: (_0) => __async$D(void 0, [_0], function* ({
1087
1087
  billingInfo,
1088
1088
  creditCardInfo,
1089
+ bankAccountInfo,
1089
1090
  fundingSourceId,
1090
1091
  auctanePayInfo
1091
1092
  }) {
1092
1093
  const result = yield client.fundingSources.update(
1093
1094
  billingInfo,
1094
1095
  creditCardInfo,
1096
+ bankAccountInfo,
1095
1097
  auctanePayInfo,
1096
1098
  fundingSourceId
1097
1099
  );
@@ -1124,29 +1126,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
1124
1126
  });
1125
1127
  };
1126
1128
 
1127
- var __defProp$q = Object.defineProperty;
1128
- var __defProps$p = Object.defineProperties;
1129
- var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
1130
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
1131
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
1132
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
1133
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1134
- var __spreadValues$q = (a, b) => {
1129
+ var __defProp$r = Object.defineProperty;
1130
+ var __defProps$q = Object.defineProperties;
1131
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
1132
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
1133
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
1134
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
1135
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1136
+ var __spreadValues$r = (a, b) => {
1135
1137
  for (var prop in b || (b = {}))
1136
- if (__hasOwnProp$w.call(b, prop))
1137
- __defNormalProp$q(a, prop, b[prop]);
1138
- if (__getOwnPropSymbols$w)
1139
- for (var prop of __getOwnPropSymbols$w(b)) {
1140
- if (__propIsEnum$w.call(b, prop))
1141
- __defNormalProp$q(a, prop, b[prop]);
1138
+ if (__hasOwnProp$x.call(b, prop))
1139
+ __defNormalProp$r(a, prop, b[prop]);
1140
+ if (__getOwnPropSymbols$x)
1141
+ for (var prop of __getOwnPropSymbols$x(b)) {
1142
+ if (__propIsEnum$x.call(b, prop))
1143
+ __defNormalProp$r(a, prop, b[prop]);
1142
1144
  }
1143
1145
  return a;
1144
1146
  };
1145
- var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
1147
+ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
1146
1148
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
1147
1149
  const { client } = useShipEngine();
1148
- const queryParams = __spreadValues$q({}, params);
1149
- return reactQuery.useQuery(__spreadProps$p(__spreadValues$q({}, queryParams), {
1150
+ const queryParams = __spreadValues$r({}, params);
1151
+ return reactQuery.useQuery(__spreadProps$q(__spreadValues$r({}, queryParams), {
1150
1152
  onError,
1151
1153
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
1152
1154
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -1169,17 +1171,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
1169
1171
  });
1170
1172
  };
1171
1173
 
1172
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
1173
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
1174
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
1175
- var __objRest$j = (source, exclude) => {
1174
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
1175
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
1176
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
1177
+ var __objRest$k = (source, exclude) => {
1176
1178
  var target = {};
1177
1179
  for (var prop in source)
1178
- if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
1180
+ if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
1179
1181
  target[prop] = source[prop];
1180
- if (source != null && __getOwnPropSymbols$v)
1181
- for (var prop of __getOwnPropSymbols$v(source)) {
1182
- if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
1182
+ if (source != null && __getOwnPropSymbols$w)
1183
+ for (var prop of __getOwnPropSymbols$w(source)) {
1184
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
1183
1185
  target[prop] = source[prop];
1184
1186
  }
1185
1187
  return target;
@@ -1208,7 +1210,7 @@ const useAddInsuranceFunds = () => {
1208
1210
  const { client } = useShipEngine();
1209
1211
  return reactQuery.useMutation({
1210
1212
  mutationFn: (_a) => __async$C(void 0, null, function* () {
1211
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$j(_b, ["insuranceProvider"]);
1213
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$k(_b, ["insuranceProvider"]);
1212
1214
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
1213
1215
  return result.data;
1214
1216
  }),
@@ -1217,25 +1219,25 @@ const useAddInsuranceFunds = () => {
1217
1219
  });
1218
1220
  };
1219
1221
 
1220
- var __defProp$p = Object.defineProperty;
1221
- var __defProps$o = Object.defineProperties;
1222
- var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
1223
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
1224
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
1225
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
1226
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1227
- var __spreadValues$p = (a, b) => {
1222
+ var __defProp$q = Object.defineProperty;
1223
+ var __defProps$p = Object.defineProperties;
1224
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
1225
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
1226
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
1227
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
1228
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1229
+ var __spreadValues$q = (a, b) => {
1228
1230
  for (var prop in b || (b = {}))
1229
- if (__hasOwnProp$u.call(b, prop))
1230
- __defNormalProp$p(a, prop, b[prop]);
1231
- if (__getOwnPropSymbols$u)
1232
- for (var prop of __getOwnPropSymbols$u(b)) {
1233
- if (__propIsEnum$u.call(b, prop))
1234
- __defNormalProp$p(a, prop, b[prop]);
1231
+ if (__hasOwnProp$v.call(b, prop))
1232
+ __defNormalProp$q(a, prop, b[prop]);
1233
+ if (__getOwnPropSymbols$v)
1234
+ for (var prop of __getOwnPropSymbols$v(b)) {
1235
+ if (__propIsEnum$v.call(b, prop))
1236
+ __defNormalProp$q(a, prop, b[prop]);
1235
1237
  }
1236
1238
  return a;
1237
1239
  };
1238
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
1240
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
1239
1241
  var __async$B = (__this, __arguments, generator) => {
1240
1242
  return new Promise((resolve, reject) => {
1241
1243
  var fulfilled = (value) => {
@@ -1258,7 +1260,7 @@ var __async$B = (__this, __arguments, generator) => {
1258
1260
  };
1259
1261
  const useCreateInvoiceAddress = (params) => {
1260
1262
  const { client } = useShipEngine();
1261
- return reactQuery.useMutation(__spreadProps$o(__spreadValues$p({}, params), {
1263
+ return reactQuery.useMutation(__spreadProps$p(__spreadValues$q({}, params), {
1262
1264
  mutationFn: (invoiceAddress) => __async$B(void 0, null, function* () {
1263
1265
  const result = yield client.invoiceAddress.create(invoiceAddress);
1264
1266
  return result.data;
@@ -1268,25 +1270,25 @@ const useCreateInvoiceAddress = (params) => {
1268
1270
  }));
1269
1271
  };
1270
1272
 
1271
- var __defProp$o = Object.defineProperty;
1272
- var __defProps$n = Object.defineProperties;
1273
- var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
1274
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
1275
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
1276
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
1277
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1278
- var __spreadValues$o = (a, b) => {
1273
+ var __defProp$p = Object.defineProperty;
1274
+ var __defProps$o = Object.defineProperties;
1275
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
1276
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
1277
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
1278
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
1279
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1280
+ var __spreadValues$p = (a, b) => {
1279
1281
  for (var prop in b || (b = {}))
1280
- if (__hasOwnProp$t.call(b, prop))
1281
- __defNormalProp$o(a, prop, b[prop]);
1282
- if (__getOwnPropSymbols$t)
1283
- for (var prop of __getOwnPropSymbols$t(b)) {
1284
- if (__propIsEnum$t.call(b, prop))
1285
- __defNormalProp$o(a, prop, b[prop]);
1282
+ if (__hasOwnProp$u.call(b, prop))
1283
+ __defNormalProp$p(a, prop, b[prop]);
1284
+ if (__getOwnPropSymbols$u)
1285
+ for (var prop of __getOwnPropSymbols$u(b)) {
1286
+ if (__propIsEnum$u.call(b, prop))
1287
+ __defNormalProp$p(a, prop, b[prop]);
1286
1288
  }
1287
1289
  return a;
1288
1290
  };
1289
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
1291
+ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
1290
1292
  var __async$A = (__this, __arguments, generator) => {
1291
1293
  return new Promise((resolve, reject) => {
1292
1294
  var fulfilled = (value) => {
@@ -1309,7 +1311,7 @@ var __async$A = (__this, __arguments, generator) => {
1309
1311
  };
1310
1312
  const useUpdateInvoiceAddress = (params) => {
1311
1313
  const { client } = useShipEngine();
1312
- return reactQuery.useMutation(__spreadProps$n(__spreadValues$o({}, params), {
1314
+ return reactQuery.useMutation(__spreadProps$o(__spreadValues$p({}, params), {
1313
1315
  mutationFn: (invoiceAddress) => __async$A(void 0, null, function* () {
1314
1316
  const result = yield client.invoiceAddress.update(invoiceAddress);
1315
1317
  return result.data;
@@ -1319,6 +1321,35 @@ const useUpdateInvoiceAddress = (params) => {
1319
1321
  }));
1320
1322
  };
1321
1323
 
1324
+ var __defProp$o = Object.defineProperty;
1325
+ var __defProps$n = Object.defineProperties;
1326
+ var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
1327
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
1328
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
1329
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
1330
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1331
+ var __spreadValues$o = (a, b) => {
1332
+ for (var prop in b || (b = {}))
1333
+ if (__hasOwnProp$t.call(b, prop))
1334
+ __defNormalProp$o(a, prop, b[prop]);
1335
+ if (__getOwnPropSymbols$t)
1336
+ for (var prop of __getOwnPropSymbols$t(b)) {
1337
+ if (__propIsEnum$t.call(b, prop))
1338
+ __defNormalProp$o(a, prop, b[prop]);
1339
+ }
1340
+ return a;
1341
+ };
1342
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
1343
+ const useGetInvoiceAddress = (params) => {
1344
+ const { client } = useShipEngine();
1345
+ return reactQuery.useQuery(__spreadProps$n(__spreadValues$o({}, params), {
1346
+ onError,
1347
+ queryFn: () => client.invoiceAddress.get(),
1348
+ queryKey: ["useGetInvoiceAddress"],
1349
+ select: (result) => result.data
1350
+ }));
1351
+ };
1352
+
1322
1353
  var __defProp$n = Object.defineProperty;
1323
1354
  var __defProps$m = Object.defineProperties;
1324
1355
  var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
@@ -1338,13 +1369,48 @@ var __spreadValues$n = (a, b) => {
1338
1369
  return a;
1339
1370
  };
1340
1371
  var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
1341
- const useGetInvoiceAddress = (params) => {
1372
+ var __objRest$j = (source, exclude) => {
1373
+ var target = {};
1374
+ for (var prop in source)
1375
+ if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
1376
+ target[prop] = source[prop];
1377
+ if (source != null && __getOwnPropSymbols$s)
1378
+ for (var prop of __getOwnPropSymbols$s(source)) {
1379
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
1380
+ target[prop] = source[prop];
1381
+ }
1382
+ return target;
1383
+ };
1384
+ var __async$z = (__this, __arguments, generator) => {
1385
+ return new Promise((resolve, reject) => {
1386
+ var fulfilled = (value) => {
1387
+ try {
1388
+ step(generator.next(value));
1389
+ } catch (e) {
1390
+ reject(e);
1391
+ }
1392
+ };
1393
+ var rejected = (value) => {
1394
+ try {
1395
+ step(generator.throw(value));
1396
+ } catch (e) {
1397
+ reject(e);
1398
+ }
1399
+ };
1400
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
1401
+ step((generator = generator.apply(__this, __arguments)).next());
1402
+ });
1403
+ };
1404
+ const useCreateLabelByRateId = (params) => {
1342
1405
  const { client } = useShipEngine();
1343
- return reactQuery.useQuery(__spreadProps$m(__spreadValues$n({}, params), {
1344
- onError,
1345
- queryFn: () => client.invoiceAddress.get(),
1346
- queryKey: ["useGetInvoiceAddress"],
1347
- select: (result) => result.data
1406
+ return reactQuery.useMutation(__spreadProps$m(__spreadValues$n({}, params), {
1407
+ mutationFn: (_a) => __async$z(void 0, null, function* () {
1408
+ var _b = _a, { rateId } = _b, options = __objRest$j(_b, ["rateId"]);
1409
+ const result = yield client.labels.createByRateId(rateId, options);
1410
+ return result.data;
1411
+ }),
1412
+ mutationKey: ["useCreateLabelByRateId"],
1413
+ onError
1348
1414
  }));
1349
1415
  };
1350
1416
 
@@ -1379,7 +1445,7 @@ var __objRest$i = (source, exclude) => {
1379
1445
  }
1380
1446
  return target;
1381
1447
  };
1382
- var __async$z = (__this, __arguments, generator) => {
1448
+ var __async$y = (__this, __arguments, generator) => {
1383
1449
  return new Promise((resolve, reject) => {
1384
1450
  var fulfilled = (value) => {
1385
1451
  try {
@@ -1399,15 +1465,15 @@ var __async$z = (__this, __arguments, generator) => {
1399
1465
  step((generator = generator.apply(__this, __arguments)).next());
1400
1466
  });
1401
1467
  };
1402
- const useCreateLabelByRateId = (params) => {
1468
+ const useCreateLabelByShipmentId = (params) => {
1403
1469
  const { client } = useShipEngine();
1404
1470
  return reactQuery.useMutation(__spreadProps$l(__spreadValues$m({}, params), {
1405
- mutationFn: (_a) => __async$z(void 0, null, function* () {
1406
- var _b = _a, { rateId } = _b, options = __objRest$i(_b, ["rateId"]);
1407
- const result = yield client.labels.createByRateId(rateId, options);
1471
+ mutationFn: (_a) => __async$y(void 0, null, function* () {
1472
+ var _b = _a, { shipmentId } = _b, options = __objRest$i(_b, ["shipmentId"]);
1473
+ const result = yield client.labels.createByShipmentId(shipmentId, options);
1408
1474
  return result.data;
1409
1475
  }),
1410
- mutationKey: ["useCreateLabelByRateId"],
1476
+ mutationKey: ["useCreateLabelByShipmentId"],
1411
1477
  onError
1412
1478
  }));
1413
1479
  };
@@ -1443,7 +1509,7 @@ var __objRest$h = (source, exclude) => {
1443
1509
  }
1444
1510
  return target;
1445
1511
  };
1446
- var __async$y = (__this, __arguments, generator) => {
1512
+ var __async$x = (__this, __arguments, generator) => {
1447
1513
  return new Promise((resolve, reject) => {
1448
1514
  var fulfilled = (value) => {
1449
1515
  try {
@@ -1463,19 +1529,34 @@ var __async$y = (__this, __arguments, generator) => {
1463
1529
  step((generator = generator.apply(__this, __arguments)).next());
1464
1530
  });
1465
1531
  };
1466
- const useCreateLabelByShipmentId = (params) => {
1532
+ const useCreateLabel = (params) => {
1467
1533
  const { client } = useShipEngine();
1468
1534
  return reactQuery.useMutation(__spreadProps$k(__spreadValues$l({}, params), {
1469
- mutationFn: (_a) => __async$y(void 0, null, function* () {
1470
- var _b = _a, { shipmentId } = _b, options = __objRest$h(_b, ["shipmentId"]);
1471
- const result = yield client.labels.createByShipmentId(shipmentId, options);
1535
+ mutationFn: (_a) => __async$x(void 0, null, function* () {
1536
+ var _b = _a, { rateId } = _b, options = __objRest$h(_b, ["rateId"]);
1537
+ const result = yield client.labels.createByRateId(rateId, options);
1472
1538
  return result.data;
1473
1539
  }),
1474
- mutationKey: ["useCreateLabelByShipmentId"],
1540
+ mutationKey: ["useCreateLabel"],
1475
1541
  onError
1476
1542
  }));
1477
1543
  };
1478
1544
 
1545
+ const useGetLabel = (labelId) => {
1546
+ const { client } = useShipEngine();
1547
+ return reactQuery.useQuery({
1548
+ enabled: labelId !== void 0,
1549
+ onError,
1550
+ queryFn: () => {
1551
+ if (labelId)
1552
+ return client.labels.get(labelId);
1553
+ return Promise.reject(new Error("labelId is require"));
1554
+ },
1555
+ queryKey: ["useGetLabel", labelId],
1556
+ select: (result) => result.data
1557
+ });
1558
+ };
1559
+
1479
1560
  var __defProp$k = Object.defineProperty;
1480
1561
  var __defProps$j = Object.defineProperties;
1481
1562
  var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
@@ -1507,7 +1588,18 @@ var __objRest$g = (source, exclude) => {
1507
1588
  }
1508
1589
  return target;
1509
1590
  };
1510
- var __async$x = (__this, __arguments, generator) => {
1591
+ const useListLabels = (params) => {
1592
+ const { client } = useShipEngine();
1593
+ const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
1594
+ return reactQuery.useQuery(__spreadProps$j(__spreadValues$k({}, rest), {
1595
+ onError,
1596
+ queryFn: () => client.labels.list(queryFnParams),
1597
+ queryKey: ["useListLabels", params],
1598
+ select: (result) => result.data
1599
+ }));
1600
+ };
1601
+
1602
+ var __async$w = (__this, __arguments, generator) => {
1511
1603
  return new Promise((resolve, reject) => {
1512
1604
  var fulfilled = (value) => {
1513
1605
  try {
@@ -1527,31 +1619,15 @@ var __async$x = (__this, __arguments, generator) => {
1527
1619
  step((generator = generator.apply(__this, __arguments)).next());
1528
1620
  });
1529
1621
  };
1530
- const useCreateLabel = (params) => {
1622
+ const useVoidLabel = () => {
1531
1623
  const { client } = useShipEngine();
1532
- return reactQuery.useMutation(__spreadProps$j(__spreadValues$k({}, params), {
1533
- mutationFn: (_a) => __async$x(void 0, null, function* () {
1534
- var _b = _a, { rateId } = _b, options = __objRest$g(_b, ["rateId"]);
1535
- const result = yield client.labels.createByRateId(rateId, options);
1624
+ return reactQuery.useMutation({
1625
+ mutationFn: (labelId) => __async$w(void 0, null, function* () {
1626
+ const result = yield client.labels.void(labelId);
1536
1627
  return result.data;
1537
1628
  }),
1538
- mutationKey: ["useCreateLabel"],
1629
+ mutationKey: ["useVoidLabel"],
1539
1630
  onError
1540
- }));
1541
- };
1542
-
1543
- const useGetLabel = (labelId) => {
1544
- const { client } = useShipEngine();
1545
- return reactQuery.useQuery({
1546
- enabled: labelId !== void 0,
1547
- onError,
1548
- queryFn: () => {
1549
- if (labelId)
1550
- return client.labels.get(labelId);
1551
- return Promise.reject(new Error("labelId is require"));
1552
- },
1553
- queryKey: ["useGetLabel", labelId],
1554
- select: (result) => result.data
1555
1631
  });
1556
1632
  };
1557
1633
 
@@ -1586,80 +1662,6 @@ var __objRest$f = (source, exclude) => {
1586
1662
  }
1587
1663
  return target;
1588
1664
  };
1589
- const useListLabels = (params) => {
1590
- const { client } = useShipEngine();
1591
- const _a = __spreadValues$j({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
1592
- return reactQuery.useQuery(__spreadProps$i(__spreadValues$j({}, rest), {
1593
- onError,
1594
- queryFn: () => client.labels.list(queryFnParams),
1595
- queryKey: ["useListLabels", params],
1596
- select: (result) => result.data
1597
- }));
1598
- };
1599
-
1600
- var __async$w = (__this, __arguments, generator) => {
1601
- return new Promise((resolve, reject) => {
1602
- var fulfilled = (value) => {
1603
- try {
1604
- step(generator.next(value));
1605
- } catch (e) {
1606
- reject(e);
1607
- }
1608
- };
1609
- var rejected = (value) => {
1610
- try {
1611
- step(generator.throw(value));
1612
- } catch (e) {
1613
- reject(e);
1614
- }
1615
- };
1616
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
1617
- step((generator = generator.apply(__this, __arguments)).next());
1618
- });
1619
- };
1620
- const useVoidLabel = () => {
1621
- const { client } = useShipEngine();
1622
- return reactQuery.useMutation({
1623
- mutationFn: (labelId) => __async$w(void 0, null, function* () {
1624
- const result = yield client.labels.void(labelId);
1625
- return result.data;
1626
- }),
1627
- mutationKey: ["useVoidLabel"],
1628
- onError
1629
- });
1630
- };
1631
-
1632
- var __defProp$i = Object.defineProperty;
1633
- var __defProps$h = Object.defineProperties;
1634
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
1635
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
1636
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
1637
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
1638
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1639
- var __spreadValues$i = (a, b) => {
1640
- for (var prop in b || (b = {}))
1641
- if (__hasOwnProp$n.call(b, prop))
1642
- __defNormalProp$i(a, prop, b[prop]);
1643
- if (__getOwnPropSymbols$n)
1644
- for (var prop of __getOwnPropSymbols$n(b)) {
1645
- if (__propIsEnum$n.call(b, prop))
1646
- __defNormalProp$i(a, prop, b[prop]);
1647
- }
1648
- return a;
1649
- };
1650
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
1651
- var __objRest$e = (source, exclude) => {
1652
- var target = {};
1653
- for (var prop in source)
1654
- if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
1655
- target[prop] = source[prop];
1656
- if (source != null && __getOwnPropSymbols$n)
1657
- for (var prop of __getOwnPropSymbols$n(source)) {
1658
- if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
1659
- target[prop] = source[prop];
1660
- }
1661
- return target;
1662
- };
1663
1665
  var __async$v = (__this, __arguments, generator) => {
1664
1666
  return new Promise((resolve, reject) => {
1665
1667
  var fulfilled = (value) => {
@@ -1682,8 +1684,8 @@ var __async$v = (__this, __arguments, generator) => {
1682
1684
  };
1683
1685
  const useListLabelsInfinite = (params) => {
1684
1686
  const { client } = useShipEngine();
1685
- const _a = __spreadValues$i({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
1686
- return reactQuery.useInfiniteQuery(__spreadProps$h(__spreadValues$i({}, rest), {
1687
+ const _a = __spreadValues$j({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
1688
+ return reactQuery.useInfiniteQuery(__spreadProps$i(__spreadValues$j({}, rest), {
1687
1689
  getNextPageParam: (lastPage) => {
1688
1690
  if (lastPage.page < lastPage.pages) {
1689
1691
  return lastPage.page + 1;
@@ -1692,7 +1694,7 @@ const useListLabelsInfinite = (params) => {
1692
1694
  },
1693
1695
  onError,
1694
1696
  queryFn: (_0) => __async$v(void 0, [_0], function* ({ pageParam = 1 }) {
1695
- const response = yield client.labels.list(__spreadProps$h(__spreadValues$i({}, queryFnParams), { page: pageParam }));
1697
+ const response = yield client.labels.list(__spreadProps$i(__spreadValues$j({}, queryFnParams), { page: pageParam }));
1696
1698
  return response.data;
1697
1699
  }),
1698
1700
  queryKey: ["useListLabelsInfinite", params],
@@ -1706,69 +1708,69 @@ const useListLabelsInfinite = (params) => {
1706
1708
  }));
1707
1709
  };
1708
1710
 
1709
- var __defProp$h = Object.defineProperty;
1710
- var __defProps$g = Object.defineProperties;
1711
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
1712
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
1713
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
1714
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
1715
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1716
- var __spreadValues$h = (a, b) => {
1711
+ var __defProp$i = Object.defineProperty;
1712
+ var __defProps$h = Object.defineProperties;
1713
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
1714
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
1715
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
1716
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
1717
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1718
+ var __spreadValues$i = (a, b) => {
1717
1719
  for (var prop in b || (b = {}))
1718
- if (__hasOwnProp$m.call(b, prop))
1719
- __defNormalProp$h(a, prop, b[prop]);
1720
- if (__getOwnPropSymbols$m)
1721
- for (var prop of __getOwnPropSymbols$m(b)) {
1722
- if (__propIsEnum$m.call(b, prop))
1723
- __defNormalProp$h(a, prop, b[prop]);
1720
+ if (__hasOwnProp$n.call(b, prop))
1721
+ __defNormalProp$i(a, prop, b[prop]);
1722
+ if (__getOwnPropSymbols$n)
1723
+ for (var prop of __getOwnPropSymbols$n(b)) {
1724
+ if (__propIsEnum$n.call(b, prop))
1725
+ __defNormalProp$i(a, prop, b[prop]);
1724
1726
  }
1725
1727
  return a;
1726
1728
  };
1727
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
1728
- var __objRest$d = (source, exclude) => {
1729
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
1730
+ var __objRest$e = (source, exclude) => {
1729
1731
  var target = {};
1730
1732
  for (var prop in source)
1731
- if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
1733
+ if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
1732
1734
  target[prop] = source[prop];
1733
- if (source != null && __getOwnPropSymbols$m)
1734
- for (var prop of __getOwnPropSymbols$m(source)) {
1735
- if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
1735
+ if (source != null && __getOwnPropSymbols$n)
1736
+ for (var prop of __getOwnPropSymbols$n(source)) {
1737
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
1736
1738
  target[prop] = source[prop];
1737
1739
  }
1738
1740
  return target;
1739
1741
  };
1740
1742
  const useDownloadLabels = (params) => {
1741
1743
  const { client } = useShipEngine();
1742
- const _a = __spreadValues$h({}, params), { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
1743
- return reactQuery.useQuery(__spreadProps$g(__spreadValues$h({}, rest), {
1744
+ const _a = __spreadValues$i({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
1745
+ return reactQuery.useQuery(__spreadProps$h(__spreadValues$i({}, rest), {
1744
1746
  onError,
1745
1747
  queryFn: () => client.labels.download(queryFnParams),
1746
1748
  queryKey: ["useDownloadLabels", params]
1747
1749
  }));
1748
1750
  };
1749
1751
 
1750
- var __defProp$g = Object.defineProperty;
1751
- var __defProps$f = Object.defineProperties;
1752
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
1753
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
1754
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
1755
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
1756
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1757
- var __spreadValues$g = (a, b) => {
1752
+ var __defProp$h = Object.defineProperty;
1753
+ var __defProps$g = Object.defineProperties;
1754
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
1755
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
1756
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
1757
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
1758
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1759
+ var __spreadValues$h = (a, b) => {
1758
1760
  for (var prop in b || (b = {}))
1759
- if (__hasOwnProp$l.call(b, prop))
1760
- __defNormalProp$g(a, prop, b[prop]);
1761
- if (__getOwnPropSymbols$l)
1762
- for (var prop of __getOwnPropSymbols$l(b)) {
1763
- if (__propIsEnum$l.call(b, prop))
1764
- __defNormalProp$g(a, prop, b[prop]);
1761
+ if (__hasOwnProp$m.call(b, prop))
1762
+ __defNormalProp$h(a, prop, b[prop]);
1763
+ if (__getOwnPropSymbols$m)
1764
+ for (var prop of __getOwnPropSymbols$m(b)) {
1765
+ if (__propIsEnum$m.call(b, prop))
1766
+ __defNormalProp$h(a, prop, b[prop]);
1765
1767
  }
1766
1768
  return a;
1767
1769
  };
1768
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
1770
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
1769
1771
  const useListOrderSources = (params) => {
1770
1772
  const { client } = useShipEngine();
1771
- return reactQuery.useQuery(__spreadProps$f(__spreadValues$g({}, params), {
1773
+ return reactQuery.useQuery(__spreadProps$g(__spreadValues$h({}, params), {
1772
1774
  onError,
1773
1775
  queryFn: () => client.orderSources.list(),
1774
1776
  queryKey: ["useListOrderSources"],
@@ -2206,17 +2208,17 @@ const useListSalesOrders = (params = {}) => {
2206
2208
  });
2207
2209
  };
2208
2210
 
2209
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
2210
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
2211
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
2212
- var __objRest$c = (source, exclude) => {
2211
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
2212
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
2213
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
2214
+ var __objRest$d = (source, exclude) => {
2213
2215
  var target = {};
2214
2216
  for (var prop in source)
2215
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
2217
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
2216
2218
  target[prop] = source[prop];
2217
- if (source != null && __getOwnPropSymbols$k)
2218
- for (var prop of __getOwnPropSymbols$k(source)) {
2219
- if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
2219
+ if (source != null && __getOwnPropSymbols$l)
2220
+ for (var prop of __getOwnPropSymbols$l(source)) {
2221
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
2220
2222
  target[prop] = source[prop];
2221
2223
  }
2222
2224
  return target;
@@ -2245,7 +2247,7 @@ const useNotifySalesOrderShipped = () => {
2245
2247
  const { client } = useShipEngine();
2246
2248
  return reactQuery.useMutation({
2247
2249
  mutationFn: (_a) => __async$k(void 0, null, function* () {
2248
- var _b = _a, { salesOrderId } = _b, tracking = __objRest$c(_b, ["salesOrderId"]);
2250
+ var _b = _a, { salesOrderId } = _b, tracking = __objRest$d(_b, ["salesOrderId"]);
2249
2251
  const result = yield client.salesOrders.notifyShipped(salesOrderId, tracking);
2250
2252
  return result.data;
2251
2253
  }),
@@ -2254,17 +2256,17 @@ const useNotifySalesOrderShipped = () => {
2254
2256
  });
2255
2257
  };
2256
2258
 
2257
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
2258
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
2259
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
2260
- var __objRest$b = (source, exclude) => {
2259
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
2260
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
2261
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
2262
+ var __objRest$c = (source, exclude) => {
2261
2263
  var target = {};
2262
2264
  for (var prop in source)
2263
- if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
2265
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
2264
2266
  target[prop] = source[prop];
2265
- if (source != null && __getOwnPropSymbols$j)
2266
- for (var prop of __getOwnPropSymbols$j(source)) {
2267
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
2267
+ if (source != null && __getOwnPropSymbols$k)
2268
+ for (var prop of __getOwnPropSymbols$k(source)) {
2269
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
2268
2270
  target[prop] = source[prop];
2269
2271
  }
2270
2272
  return target;
@@ -2293,7 +2295,7 @@ const useCreateSalesOrderShipment = () => {
2293
2295
  const { client } = useShipEngine();
2294
2296
  return reactQuery.useMutation({
2295
2297
  mutationFn: (_a) => __async$j(void 0, null, function* () {
2296
- var _b = _a, { salesOrderId } = _b, shipment = __objRest$b(_b, ["salesOrderId"]);
2298
+ var _b = _a, { salesOrderId } = _b, shipment = __objRest$c(_b, ["salesOrderId"]);
2297
2299
  const result = yield client.salesOrderShipments.create(salesOrderId, shipment);
2298
2300
  return result.data;
2299
2301
  }),
@@ -2329,17 +2331,17 @@ const useListSalesOrderShipments = (body) => {
2329
2331
  });
2330
2332
  };
2331
2333
 
2332
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
2333
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
2334
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
2335
- var __objRest$a = (source, exclude) => {
2334
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
2335
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
2336
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
2337
+ var __objRest$b = (source, exclude) => {
2336
2338
  var target = {};
2337
2339
  for (var prop in source)
2338
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
2340
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
2339
2341
  target[prop] = source[prop];
2340
- if (source != null && __getOwnPropSymbols$i)
2341
- for (var prop of __getOwnPropSymbols$i(source)) {
2342
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
2342
+ if (source != null && __getOwnPropSymbols$j)
2343
+ for (var prop of __getOwnPropSymbols$j(source)) {
2344
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
2343
2345
  target[prop] = source[prop];
2344
2346
  }
2345
2347
  return target;
@@ -2368,7 +2370,7 @@ const useUpdateSalesOrderShipment = () => {
2368
2370
  const { client } = useShipEngine();
2369
2371
  return reactQuery.useMutation({
2370
2372
  mutationFn: (_a) => __async$i(void 0, null, function* () {
2371
- var _b = _a, { shipmentId } = _b, shipment = __objRest$a(_b, ["shipmentId"]);
2373
+ var _b = _a, { shipmentId } = _b, shipment = __objRest$b(_b, ["shipmentId"]);
2372
2374
  const result = yield client.salesOrderShipments.update(shipmentId, shipment);
2373
2375
  return result.data;
2374
2376
  }),
@@ -2388,25 +2390,25 @@ const useListSalesOrderShipmentsByExternalOrderId = (externalOrderId) => {
2388
2390
  });
2389
2391
  };
2390
2392
 
2391
- var __defProp$f = Object.defineProperty;
2392
- var __defProps$e = Object.defineProperties;
2393
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
2394
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2395
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2396
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2397
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2398
- var __spreadValues$f = (a, b) => {
2393
+ var __defProp$g = Object.defineProperty;
2394
+ var __defProps$f = Object.defineProperties;
2395
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
2396
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
2397
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
2398
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
2399
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2400
+ var __spreadValues$g = (a, b) => {
2399
2401
  for (var prop in b || (b = {}))
2400
- if (__hasOwnProp$h.call(b, prop))
2401
- __defNormalProp$f(a, prop, b[prop]);
2402
- if (__getOwnPropSymbols$h)
2403
- for (var prop of __getOwnPropSymbols$h(b)) {
2404
- if (__propIsEnum$h.call(b, prop))
2405
- __defNormalProp$f(a, prop, b[prop]);
2402
+ if (__hasOwnProp$i.call(b, prop))
2403
+ __defNormalProp$g(a, prop, b[prop]);
2404
+ if (__getOwnPropSymbols$i)
2405
+ for (var prop of __getOwnPropSymbols$i(b)) {
2406
+ if (__propIsEnum$i.call(b, prop))
2407
+ __defNormalProp$g(a, prop, b[prop]);
2406
2408
  }
2407
2409
  return a;
2408
2410
  };
2409
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
2411
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
2410
2412
  var __async$h = (__this, __arguments, generator) => {
2411
2413
  return new Promise((resolve, reject) => {
2412
2414
  var fulfilled = (value) => {
@@ -2448,7 +2450,7 @@ const useCreateShipment = () => {
2448
2450
  postalCode: "",
2449
2451
  stateProvince: ""
2450
2452
  };
2451
- return (yield client.shipments.create(__spreadProps$e(__spreadValues$f({}, shipment), {
2453
+ return (yield client.shipments.create(__spreadProps$f(__spreadValues$g({}, shipment), {
2452
2454
  shipTo
2453
2455
  }))).data;
2454
2456
  }),
@@ -2457,43 +2459,43 @@ const useCreateShipment = () => {
2457
2459
  });
2458
2460
  };
2459
2461
 
2460
- var __defProp$e = Object.defineProperty;
2461
- var __defProps$d = Object.defineProperties;
2462
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
2463
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
2464
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
2465
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
2466
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2467
- var __spreadValues$e = (a, b) => {
2462
+ var __defProp$f = Object.defineProperty;
2463
+ var __defProps$e = Object.defineProperties;
2464
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
2465
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2466
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2467
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2468
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2469
+ var __spreadValues$f = (a, b) => {
2468
2470
  for (var prop in b || (b = {}))
2469
- if (__hasOwnProp$g.call(b, prop))
2470
- __defNormalProp$e(a, prop, b[prop]);
2471
- if (__getOwnPropSymbols$g)
2472
- for (var prop of __getOwnPropSymbols$g(b)) {
2473
- if (__propIsEnum$g.call(b, prop))
2474
- __defNormalProp$e(a, prop, b[prop]);
2471
+ if (__hasOwnProp$h.call(b, prop))
2472
+ __defNormalProp$f(a, prop, b[prop]);
2473
+ if (__getOwnPropSymbols$h)
2474
+ for (var prop of __getOwnPropSymbols$h(b)) {
2475
+ if (__propIsEnum$h.call(b, prop))
2476
+ __defNormalProp$f(a, prop, b[prop]);
2475
2477
  }
2476
2478
  return a;
2477
2479
  };
2478
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
2479
- var __objRest$9 = (source, exclude) => {
2480
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
2481
+ var __objRest$a = (source, exclude) => {
2480
2482
  var target = {};
2481
2483
  for (var prop in source)
2482
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
2484
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
2483
2485
  target[prop] = source[prop];
2484
- if (source != null && __getOwnPropSymbols$g)
2485
- for (var prop of __getOwnPropSymbols$g(source)) {
2486
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
2486
+ if (source != null && __getOwnPropSymbols$h)
2487
+ for (var prop of __getOwnPropSymbols$h(source)) {
2488
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
2487
2489
  target[prop] = source[prop];
2488
2490
  }
2489
2491
  return target;
2490
2492
  };
2491
2493
  const useGetShipmentRates = (params) => {
2492
2494
  const { client } = useShipEngine();
2493
- const _a = params, { queryFnParams } = _a, rest = __objRest$9(_a, ["queryFnParams"]);
2495
+ const _a = params, { queryFnParams } = _a, rest = __objRest$a(_a, ["queryFnParams"]);
2494
2496
  const shipmentId = queryFnParams == null ? void 0 : queryFnParams.shipmentId;
2495
2497
  const createdAtStart = queryFnParams == null ? void 0 : queryFnParams.createdAtStart;
2496
- return reactQuery.useQuery(__spreadProps$d(__spreadValues$e({
2498
+ return reactQuery.useQuery(__spreadProps$e(__spreadValues$f({
2497
2499
  enabled: shipmentId !== void 0
2498
2500
  }, rest), {
2499
2501
  onError,
@@ -2508,33 +2510,33 @@ const useGetShipmentRates = (params) => {
2508
2510
  }));
2509
2511
  };
2510
2512
 
2511
- var __defProp$d = Object.defineProperty;
2512
- var __defProps$c = Object.defineProperties;
2513
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
2514
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
2515
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
2516
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
2517
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2518
- var __spreadValues$d = (a, b) => {
2513
+ var __defProp$e = Object.defineProperty;
2514
+ var __defProps$d = Object.defineProperties;
2515
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
2516
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
2517
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
2518
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
2519
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2520
+ var __spreadValues$e = (a, b) => {
2519
2521
  for (var prop in b || (b = {}))
2520
- if (__hasOwnProp$f.call(b, prop))
2521
- __defNormalProp$d(a, prop, b[prop]);
2522
- if (__getOwnPropSymbols$f)
2523
- for (var prop of __getOwnPropSymbols$f(b)) {
2524
- if (__propIsEnum$f.call(b, prop))
2525
- __defNormalProp$d(a, prop, b[prop]);
2522
+ if (__hasOwnProp$g.call(b, prop))
2523
+ __defNormalProp$e(a, prop, b[prop]);
2524
+ if (__getOwnPropSymbols$g)
2525
+ for (var prop of __getOwnPropSymbols$g(b)) {
2526
+ if (__propIsEnum$g.call(b, prop))
2527
+ __defNormalProp$e(a, prop, b[prop]);
2526
2528
  }
2527
2529
  return a;
2528
2530
  };
2529
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
2530
- var __objRest$8 = (source, exclude) => {
2531
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
2532
+ var __objRest$9 = (source, exclude) => {
2531
2533
  var target = {};
2532
2534
  for (var prop in source)
2533
- if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
2535
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
2534
2536
  target[prop] = source[prop];
2535
- if (source != null && __getOwnPropSymbols$f)
2536
- for (var prop of __getOwnPropSymbols$f(source)) {
2537
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
2537
+ if (source != null && __getOwnPropSymbols$g)
2538
+ for (var prop of __getOwnPropSymbols$g(source)) {
2539
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
2538
2540
  target[prop] = source[prop];
2539
2541
  }
2540
2542
  return target;
@@ -2545,12 +2547,12 @@ const useGetShipment = (params) => {
2545
2547
  const shipmentId = typeof params === "string" ? params : (_a = params == null ? void 0 : params.queryFnParams) == null ? void 0 : _a.shipmentId;
2546
2548
  const getQueryProps = () => {
2547
2549
  if (typeof params !== "string") {
2548
- const _a2 = params, rest = __objRest$8(_a2, ["queryFnParams"]);
2550
+ const _a2 = params, rest = __objRest$9(_a2, ["queryFnParams"]);
2549
2551
  return rest;
2550
2552
  }
2551
2553
  return {};
2552
2554
  };
2553
- return reactQuery.useQuery(__spreadProps$c(__spreadValues$d({}, getQueryProps()), {
2555
+ return reactQuery.useQuery(__spreadProps$d(__spreadValues$e({}, getQueryProps()), {
2554
2556
  enabled: shipmentId !== void 0,
2555
2557
  onError,
2556
2558
  queryFn: () => {
@@ -2564,23 +2566,23 @@ const useGetShipment = (params) => {
2564
2566
  }));
2565
2567
  };
2566
2568
 
2567
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2568
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2569
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
2570
- var __objRest$7 = (source, exclude) => {
2569
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
2570
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
2571
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
2572
+ var __objRest$8 = (source, exclude) => {
2571
2573
  var target = {};
2572
2574
  for (var prop in source)
2573
- if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
2575
+ if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
2574
2576
  target[prop] = source[prop];
2575
- if (source != null && __getOwnPropSymbols$e)
2576
- for (var prop of __getOwnPropSymbols$e(source)) {
2577
- if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
2577
+ if (source != null && __getOwnPropSymbols$f)
2578
+ for (var prop of __getOwnPropSymbols$f(source)) {
2579
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
2578
2580
  target[prop] = source[prop];
2579
2581
  }
2580
2582
  return target;
2581
2583
  };
2582
2584
  const useListShipments = (_params) => {
2583
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$7(_a, ["enabled"]);
2585
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$8(_a, ["enabled"]);
2584
2586
  const { client } = useShipEngine();
2585
2587
  return reactQuery.useQuery({
2586
2588
  enabled,
@@ -2591,41 +2593,41 @@ const useListShipments = (_params) => {
2591
2593
  });
2592
2594
  };
2593
2595
 
2594
- var __defProp$c = Object.defineProperty;
2595
- var __defProps$b = Object.defineProperties;
2596
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
2597
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
2598
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
2599
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
2600
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2601
- var __spreadValues$c = (a, b) => {
2596
+ var __defProp$d = Object.defineProperty;
2597
+ var __defProps$c = Object.defineProperties;
2598
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
2599
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2600
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2601
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
2602
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2603
+ var __spreadValues$d = (a, b) => {
2602
2604
  for (var prop in b || (b = {}))
2603
- if (__hasOwnProp$d.call(b, prop))
2604
- __defNormalProp$c(a, prop, b[prop]);
2605
- if (__getOwnPropSymbols$d)
2606
- for (var prop of __getOwnPropSymbols$d(b)) {
2607
- if (__propIsEnum$d.call(b, prop))
2608
- __defNormalProp$c(a, prop, b[prop]);
2605
+ if (__hasOwnProp$e.call(b, prop))
2606
+ __defNormalProp$d(a, prop, b[prop]);
2607
+ if (__getOwnPropSymbols$e)
2608
+ for (var prop of __getOwnPropSymbols$e(b)) {
2609
+ if (__propIsEnum$e.call(b, prop))
2610
+ __defNormalProp$d(a, prop, b[prop]);
2609
2611
  }
2610
2612
  return a;
2611
2613
  };
2612
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
2613
- var __objRest$6 = (source, exclude) => {
2614
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
2615
+ var __objRest$7 = (source, exclude) => {
2614
2616
  var target = {};
2615
2617
  for (var prop in source)
2616
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
2618
+ if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
2617
2619
  target[prop] = source[prop];
2618
- if (source != null && __getOwnPropSymbols$d)
2619
- for (var prop of __getOwnPropSymbols$d(source)) {
2620
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
2620
+ if (source != null && __getOwnPropSymbols$e)
2621
+ for (var prop of __getOwnPropSymbols$e(source)) {
2622
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
2621
2623
  target[prop] = source[prop];
2622
2624
  }
2623
2625
  return target;
2624
2626
  };
2625
2627
  const useGetShipmentByExternalId = (params) => {
2626
2628
  const { client } = useShipEngine();
2627
- const _a = params, { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
2628
- return reactQuery.useQuery(__spreadProps$b(__spreadValues$c({}, rest), {
2629
+ const _a = params, { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
2630
+ return reactQuery.useQuery(__spreadProps$c(__spreadValues$d({}, rest), {
2629
2631
  onError,
2630
2632
  queryFn: () => client.shipments.getByExternalId(queryFnParams.externalId),
2631
2633
  queryKey: ["useGetShipmentByExternalId", queryFnParams],
@@ -2665,6 +2667,47 @@ const useCancelShipment = () => {
2665
2667
  });
2666
2668
  };
2667
2669
 
2670
+ var __defProp$c = Object.defineProperty;
2671
+ var __defProps$b = Object.defineProperties;
2672
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
2673
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
2674
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
2675
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
2676
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2677
+ var __spreadValues$c = (a, b) => {
2678
+ for (var prop in b || (b = {}))
2679
+ if (__hasOwnProp$d.call(b, prop))
2680
+ __defNormalProp$c(a, prop, b[prop]);
2681
+ if (__getOwnPropSymbols$d)
2682
+ for (var prop of __getOwnPropSymbols$d(b)) {
2683
+ if (__propIsEnum$d.call(b, prop))
2684
+ __defNormalProp$c(a, prop, b[prop]);
2685
+ }
2686
+ return a;
2687
+ };
2688
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
2689
+ var __objRest$6 = (source, exclude) => {
2690
+ var target = {};
2691
+ for (var prop in source)
2692
+ if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
2693
+ target[prop] = source[prop];
2694
+ if (source != null && __getOwnPropSymbols$d)
2695
+ for (var prop of __getOwnPropSymbols$d(source)) {
2696
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
2697
+ target[prop] = source[prop];
2698
+ }
2699
+ return target;
2700
+ };
2701
+ const useDownloadShipments = (params) => {
2702
+ const { client } = useShipEngine();
2703
+ const _a = __spreadValues$c({}, params), { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
2704
+ return reactQuery.useQuery(__spreadProps$b(__spreadValues$c({}, rest), {
2705
+ onError,
2706
+ queryFn: () => client.shipments.download(queryFnParams),
2707
+ queryKey: ["useDownloadShipments", params]
2708
+ }));
2709
+ };
2710
+
2668
2711
  var __defProp$b = Object.defineProperty;
2669
2712
  var __defProps$a = Object.defineProperties;
2670
2713
  var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
@@ -3694,6 +3737,7 @@ exports.useDeleteWarehouse = useDeleteWarehouse;
3694
3737
  exports.useDeleteWebhook = useDeleteWebhook;
3695
3738
  exports.useDownloadLabels = useDownloadLabels;
3696
3739
  exports.useDownloadRateCard = useDownloadRateCard;
3740
+ exports.useDownloadShipments = useDownloadShipments;
3697
3741
  exports.useEditShippingRule = useEditShippingRule;
3698
3742
  exports.useFundingSourcesAddFunds = useFundingSourcesAddFunds;
3699
3743
  exports.useGetAccountBilling = useGetAccountBilling;