@shipengine/react-api 3.7.0 → 3.8.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$j = Object.defineProperty;
80
- var __defProps$i = Object.defineProperties;
81
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
82
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
83
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
84
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
85
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
86
- var __spreadValues$j = (a, b) => {
79
+ var __defProp$k = Object.defineProperty;
80
+ var __defProps$j = Object.defineProperties;
81
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
82
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
83
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
84
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
85
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
86
+ var __spreadValues$k = (a, b) => {
87
87
  for (var prop in b || (b = {}))
88
- if (__hasOwnProp$t.call(b, prop))
89
- __defNormalProp$j(a, prop, b[prop]);
90
- if (__getOwnPropSymbols$t)
91
- for (var prop of __getOwnPropSymbols$t(b)) {
92
- if (__propIsEnum$t.call(b, prop))
93
- __defNormalProp$j(a, prop, b[prop]);
88
+ if (__hasOwnProp$u.call(b, prop))
89
+ __defNormalProp$k(a, prop, b[prop]);
90
+ if (__getOwnPropSymbols$u)
91
+ for (var prop of __getOwnPropSymbols$u(b)) {
92
+ if (__propIsEnum$u.call(b, prop))
93
+ __defNormalProp$k(a, prop, b[prop]);
94
94
  }
95
95
  return a;
96
96
  };
97
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
97
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(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$i(__spreadValues$j({}, k), {
106
+ serializers: __spreadProps$j(__spreadValues$k({}, k), {
107
107
  req: (req) => ({
108
108
  headers: req.headers,
109
109
  method: req.method,
@@ -504,41 +504,41 @@ const useGetServicesByCarrier = (carrierId) => {
504
504
  });
505
505
  };
506
506
 
507
- var __defProp$i = Object.defineProperty;
508
- var __defProps$h = Object.defineProperties;
509
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
510
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
511
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
512
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
513
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
514
- var __spreadValues$i = (a, b) => {
507
+ var __defProp$j = Object.defineProperty;
508
+ var __defProps$i = Object.defineProperties;
509
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
510
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
511
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
512
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
513
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
514
+ var __spreadValues$j = (a, b) => {
515
515
  for (var prop in b || (b = {}))
516
- if (__hasOwnProp$s.call(b, prop))
517
- __defNormalProp$i(a, prop, b[prop]);
518
- if (__getOwnPropSymbols$s)
519
- for (var prop of __getOwnPropSymbols$s(b)) {
520
- if (__propIsEnum$s.call(b, prop))
521
- __defNormalProp$i(a, prop, b[prop]);
516
+ if (__hasOwnProp$t.call(b, prop))
517
+ __defNormalProp$j(a, prop, b[prop]);
518
+ if (__getOwnPropSymbols$t)
519
+ for (var prop of __getOwnPropSymbols$t(b)) {
520
+ if (__propIsEnum$t.call(b, prop))
521
+ __defNormalProp$j(a, prop, b[prop]);
522
522
  }
523
523
  return a;
524
524
  };
525
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
526
- var __objRest$j = (source, exclude) => {
525
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
526
+ var __objRest$k = (source, exclude) => {
527
527
  var target = {};
528
528
  for (var prop in source)
529
- if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
529
+ if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
530
530
  target[prop] = source[prop];
531
- if (source != null && __getOwnPropSymbols$s)
532
- for (var prop of __getOwnPropSymbols$s(source)) {
533
- if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
531
+ if (source != null && __getOwnPropSymbols$t)
532
+ for (var prop of __getOwnPropSymbols$t(source)) {
533
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
534
534
  target[prop] = source[prop];
535
535
  }
536
536
  return target;
537
537
  };
538
538
  const useListCarriers = (params) => {
539
539
  const { client } = useShipEngine();
540
- const _a = __spreadValues$i({}, params), { queryFnParams } = _a, rest = __objRest$j(_a, ["queryFnParams"]);
541
- return useQuery(__spreadProps$h(__spreadValues$i({}, rest), {
540
+ const _a = __spreadValues$j({}, params), { queryFnParams } = _a, rest = __objRest$k(_a, ["queryFnParams"]);
541
+ return useQuery(__spreadProps$i(__spreadValues$j({}, rest), {
542
542
  onError,
543
543
  queryFn: () => client.carriers.list(queryFnParams),
544
544
  queryKey: ["useListCarriers", queryFnParams],
@@ -546,17 +546,17 @@ const useListCarriers = (params) => {
546
546
  }));
547
547
  };
548
548
 
549
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
550
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
551
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
552
- var __objRest$i = (source, exclude) => {
549
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
550
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
551
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
552
+ var __objRest$j = (source, exclude) => {
553
553
  var target = {};
554
554
  for (var prop in source)
555
- if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
555
+ if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
556
556
  target[prop] = source[prop];
557
- if (source != null && __getOwnPropSymbols$r)
558
- for (var prop of __getOwnPropSymbols$r(source)) {
559
- if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
557
+ if (source != null && __getOwnPropSymbols$s)
558
+ for (var prop of __getOwnPropSymbols$s(source)) {
559
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
560
560
  target[prop] = source[prop];
561
561
  }
562
562
  return target;
@@ -586,7 +586,7 @@ const useUpdateAutoFunding = () => {
586
586
  const queryClient = useQueryClient();
587
587
  return useMutation({
588
588
  mutationFn: (_a) => __async$E(void 0, null, function* () {
589
- var _b = _a, { carrierId } = _b, options = __objRest$i(_b, ["carrierId"]);
589
+ var _b = _a, { carrierId } = _b, options = __objRest$j(_b, ["carrierId"]);
590
590
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
591
591
  return result.data;
592
592
  }),
@@ -647,24 +647,24 @@ const useDeleteCarrier = () => {
647
647
  });
648
648
  };
649
649
 
650
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
651
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
652
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
653
- var __objRest$h = (source, exclude) => {
650
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
651
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
652
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
653
+ var __objRest$i = (source, exclude) => {
654
654
  var target = {};
655
655
  for (var prop in source)
656
- if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
656
+ if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
657
657
  target[prop] = source[prop];
658
- if (source != null && __getOwnPropSymbols$q)
659
- for (var prop of __getOwnPropSymbols$q(source)) {
660
- if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
658
+ if (source != null && __getOwnPropSymbols$r)
659
+ for (var prop of __getOwnPropSymbols$r(source)) {
660
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
661
661
  target[prop] = source[prop];
662
662
  }
663
663
  return target;
664
664
  };
665
665
  const useGetCarrierConnectionForm = (_params) => {
666
666
  const { client } = useShipEngine();
667
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$h(_a, ["carrierName", "enabled"]);
667
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$i(_a, ["carrierName", "enabled"]);
668
668
  return useQuery({
669
669
  enabled,
670
670
  onError,
@@ -674,24 +674,24 @@ const useGetCarrierConnectionForm = (_params) => {
674
674
  });
675
675
  };
676
676
 
677
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
678
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
679
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
680
- var __objRest$g = (source, exclude) => {
677
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
678
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
679
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
680
+ var __objRest$h = (source, exclude) => {
681
681
  var target = {};
682
682
  for (var prop in source)
683
- if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
683
+ if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
684
684
  target[prop] = source[prop];
685
- if (source != null && __getOwnPropSymbols$p)
686
- for (var prop of __getOwnPropSymbols$p(source)) {
687
- if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
685
+ if (source != null && __getOwnPropSymbols$q)
686
+ for (var prop of __getOwnPropSymbols$q(source)) {
687
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
688
688
  target[prop] = source[prop];
689
689
  }
690
690
  return target;
691
691
  };
692
692
  const useListCarrierConnections = (_params) => {
693
693
  const { client } = useShipEngine();
694
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$g(_a, ["enabled"]);
694
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$h(_a, ["enabled"]);
695
695
  return useQuery({
696
696
  enabled,
697
697
  onError,
@@ -744,33 +744,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
744
744
  });
745
745
  };
746
746
 
747
- var __defProp$h = Object.defineProperty;
748
- var __defProps$g = Object.defineProperties;
749
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
750
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
751
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
752
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
753
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
754
- var __spreadValues$h = (a, b) => {
747
+ var __defProp$i = Object.defineProperty;
748
+ var __defProps$h = Object.defineProperties;
749
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
750
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
751
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
752
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
753
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
754
+ var __spreadValues$i = (a, b) => {
755
755
  for (var prop in b || (b = {}))
756
- if (__hasOwnProp$o.call(b, prop))
757
- __defNormalProp$h(a, prop, b[prop]);
758
- if (__getOwnPropSymbols$o)
759
- for (var prop of __getOwnPropSymbols$o(b)) {
760
- if (__propIsEnum$o.call(b, prop))
761
- __defNormalProp$h(a, prop, b[prop]);
756
+ if (__hasOwnProp$p.call(b, prop))
757
+ __defNormalProp$i(a, prop, b[prop]);
758
+ if (__getOwnPropSymbols$p)
759
+ for (var prop of __getOwnPropSymbols$p(b)) {
760
+ if (__propIsEnum$p.call(b, prop))
761
+ __defNormalProp$i(a, prop, b[prop]);
762
762
  }
763
763
  return a;
764
764
  };
765
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
766
- var __objRest$f = (source, exclude) => {
765
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
766
+ var __objRest$g = (source, exclude) => {
767
767
  var target = {};
768
768
  for (var prop in source)
769
- if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
769
+ if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
770
770
  target[prop] = source[prop];
771
- if (source != null && __getOwnPropSymbols$o)
772
- for (var prop of __getOwnPropSymbols$o(source)) {
773
- if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
771
+ if (source != null && __getOwnPropSymbols$p)
772
+ for (var prop of __getOwnPropSymbols$p(source)) {
773
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
774
774
  target[prop] = source[prop];
775
775
  }
776
776
  return target;
@@ -778,12 +778,12 @@ var __objRest$f = (source, exclude) => {
778
778
  const useGetConnectionsCarrierSettings = (_a) => {
779
779
  var _b = _a, {
780
780
  queryFnParams
781
- } = _b, params = __objRest$f(_b, [
781
+ } = _b, params = __objRest$g(_b, [
782
782
  "queryFnParams"
783
783
  ]);
784
784
  const { client } = useShipEngine();
785
785
  const { carrierName, carrierId } = queryFnParams;
786
- return useQuery(__spreadProps$g(__spreadValues$h({}, params), {
786
+ return useQuery(__spreadProps$h(__spreadValues$i({}, params), {
787
787
  onError,
788
788
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
789
789
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -791,25 +791,25 @@ const useGetConnectionsCarrierSettings = (_a) => {
791
791
  }));
792
792
  };
793
793
 
794
- var __defProp$g = Object.defineProperty;
795
- var __defProps$f = Object.defineProperties;
796
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
797
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
798
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
799
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
800
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
801
- var __spreadValues$g = (a, b) => {
794
+ var __defProp$h = Object.defineProperty;
795
+ var __defProps$g = Object.defineProperties;
796
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
797
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
798
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
799
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
800
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
801
+ var __spreadValues$h = (a, b) => {
802
802
  for (var prop in b || (b = {}))
803
- if (__hasOwnProp$n.call(b, prop))
804
- __defNormalProp$g(a, prop, b[prop]);
805
- if (__getOwnPropSymbols$n)
806
- for (var prop of __getOwnPropSymbols$n(b)) {
807
- if (__propIsEnum$n.call(b, prop))
808
- __defNormalProp$g(a, prop, b[prop]);
803
+ if (__hasOwnProp$o.call(b, prop))
804
+ __defNormalProp$h(a, prop, b[prop]);
805
+ if (__getOwnPropSymbols$o)
806
+ for (var prop of __getOwnPropSymbols$o(b)) {
807
+ if (__propIsEnum$o.call(b, prop))
808
+ __defNormalProp$h(a, prop, b[prop]);
809
809
  }
810
810
  return a;
811
811
  };
812
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
812
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
813
813
  var __async$B = (__this, __arguments, generator) => {
814
814
  return new Promise((resolve, reject) => {
815
815
  var fulfilled = (value) => {
@@ -832,7 +832,7 @@ var __async$B = (__this, __arguments, generator) => {
832
832
  };
833
833
  const useUpdateConnectionsCarrierSettings = (params) => {
834
834
  const { client } = useShipEngine();
835
- return useMutation(__spreadProps$f(__spreadValues$g({}, params), {
835
+ return useMutation(__spreadProps$g(__spreadValues$h({}, params), {
836
836
  mutationFn: (_0) => __async$B(void 0, [_0], function* ({
837
837
  carrierName,
838
838
  carrierId,
@@ -1038,29 +1038,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
1038
1038
  });
1039
1039
  };
1040
1040
 
1041
- var __defProp$f = Object.defineProperty;
1042
- var __defProps$e = Object.defineProperties;
1043
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
1044
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
1045
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
1046
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
1047
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1048
- var __spreadValues$f = (a, b) => {
1041
+ var __defProp$g = Object.defineProperty;
1042
+ var __defProps$f = Object.defineProperties;
1043
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
1044
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
1045
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
1046
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
1047
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1048
+ var __spreadValues$g = (a, b) => {
1049
1049
  for (var prop in b || (b = {}))
1050
- if (__hasOwnProp$m.call(b, prop))
1051
- __defNormalProp$f(a, prop, b[prop]);
1052
- if (__getOwnPropSymbols$m)
1053
- for (var prop of __getOwnPropSymbols$m(b)) {
1054
- if (__propIsEnum$m.call(b, prop))
1055
- __defNormalProp$f(a, prop, b[prop]);
1050
+ if (__hasOwnProp$n.call(b, prop))
1051
+ __defNormalProp$g(a, prop, b[prop]);
1052
+ if (__getOwnPropSymbols$n)
1053
+ for (var prop of __getOwnPropSymbols$n(b)) {
1054
+ if (__propIsEnum$n.call(b, prop))
1055
+ __defNormalProp$g(a, prop, b[prop]);
1056
1056
  }
1057
1057
  return a;
1058
1058
  };
1059
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
1059
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
1060
1060
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
1061
1061
  const { client } = useShipEngine();
1062
- const queryParams = __spreadValues$f({}, params);
1063
- return useQuery(__spreadProps$e(__spreadValues$f({}, queryParams), {
1062
+ const queryParams = __spreadValues$g({}, params);
1063
+ return useQuery(__spreadProps$f(__spreadValues$g({}, queryParams), {
1064
1064
  onError,
1065
1065
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
1066
1066
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -1083,17 +1083,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
1083
1083
  });
1084
1084
  };
1085
1085
 
1086
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
1087
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
1088
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
1089
- var __objRest$e = (source, exclude) => {
1086
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
1087
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
1088
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
1089
+ var __objRest$f = (source, exclude) => {
1090
1090
  var target = {};
1091
1091
  for (var prop in source)
1092
- if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
1092
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
1093
1093
  target[prop] = source[prop];
1094
- if (source != null && __getOwnPropSymbols$l)
1095
- for (var prop of __getOwnPropSymbols$l(source)) {
1096
- if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
1094
+ if (source != null && __getOwnPropSymbols$m)
1095
+ for (var prop of __getOwnPropSymbols$m(source)) {
1096
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
1097
1097
  target[prop] = source[prop];
1098
1098
  }
1099
1099
  return target;
@@ -1122,7 +1122,7 @@ const useAddInsuranceFunds = () => {
1122
1122
  const { client } = useShipEngine();
1123
1123
  return useMutation({
1124
1124
  mutationFn: (_a) => __async$w(void 0, null, function* () {
1125
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$e(_b, ["insuranceProvider"]);
1125
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$f(_b, ["insuranceProvider"]);
1126
1126
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
1127
1127
  return result.data;
1128
1128
  }),
@@ -1131,17 +1131,17 @@ const useAddInsuranceFunds = () => {
1131
1131
  });
1132
1132
  };
1133
1133
 
1134
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
1135
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
1136
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
1137
- var __objRest$d = (source, exclude) => {
1134
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
1135
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
1136
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
1137
+ var __objRest$e = (source, exclude) => {
1138
1138
  var target = {};
1139
1139
  for (var prop in source)
1140
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
1140
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
1141
1141
  target[prop] = source[prop];
1142
- if (source != null && __getOwnPropSymbols$k)
1143
- for (var prop of __getOwnPropSymbols$k(source)) {
1144
- if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
1142
+ if (source != null && __getOwnPropSymbols$l)
1143
+ for (var prop of __getOwnPropSymbols$l(source)) {
1144
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
1145
1145
  target[prop] = source[prop];
1146
1146
  }
1147
1147
  return target;
@@ -1170,7 +1170,7 @@ const useCreateLabel = () => {
1170
1170
  const { client } = useShipEngine();
1171
1171
  return useMutation({
1172
1172
  mutationFn: (_a) => __async$v(void 0, null, function* () {
1173
- var _b = _a, { rateId } = _b, options = __objRest$d(_b, ["rateId"]);
1173
+ var _b = _a, { rateId } = _b, options = __objRest$e(_b, ["rateId"]);
1174
1174
  const result = yield client.labels.createByRateId(rateId, options);
1175
1175
  return result.data;
1176
1176
  }),
@@ -1194,41 +1194,41 @@ const useGetLabel = (labelId) => {
1194
1194
  });
1195
1195
  };
1196
1196
 
1197
- var __defProp$e = Object.defineProperty;
1198
- var __defProps$d = Object.defineProperties;
1199
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
1200
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
1201
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
1202
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
1203
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1204
- var __spreadValues$e = (a, b) => {
1197
+ var __defProp$f = Object.defineProperty;
1198
+ var __defProps$e = Object.defineProperties;
1199
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
1200
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
1201
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
1202
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
1203
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1204
+ var __spreadValues$f = (a, b) => {
1205
1205
  for (var prop in b || (b = {}))
1206
- if (__hasOwnProp$j.call(b, prop))
1207
- __defNormalProp$e(a, prop, b[prop]);
1208
- if (__getOwnPropSymbols$j)
1209
- for (var prop of __getOwnPropSymbols$j(b)) {
1210
- if (__propIsEnum$j.call(b, prop))
1211
- __defNormalProp$e(a, prop, b[prop]);
1206
+ if (__hasOwnProp$k.call(b, prop))
1207
+ __defNormalProp$f(a, prop, b[prop]);
1208
+ if (__getOwnPropSymbols$k)
1209
+ for (var prop of __getOwnPropSymbols$k(b)) {
1210
+ if (__propIsEnum$k.call(b, prop))
1211
+ __defNormalProp$f(a, prop, b[prop]);
1212
1212
  }
1213
1213
  return a;
1214
1214
  };
1215
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
1216
- var __objRest$c = (source, exclude) => {
1215
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
1216
+ var __objRest$d = (source, exclude) => {
1217
1217
  var target = {};
1218
1218
  for (var prop in source)
1219
- if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
1219
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
1220
1220
  target[prop] = source[prop];
1221
- if (source != null && __getOwnPropSymbols$j)
1222
- for (var prop of __getOwnPropSymbols$j(source)) {
1223
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
1221
+ if (source != null && __getOwnPropSymbols$k)
1222
+ for (var prop of __getOwnPropSymbols$k(source)) {
1223
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
1224
1224
  target[prop] = source[prop];
1225
1225
  }
1226
1226
  return target;
1227
1227
  };
1228
1228
  const useListLabels = (params) => {
1229
1229
  const { client } = useShipEngine();
1230
- const _a = __spreadValues$e({}, params), { queryFnParams } = _a, rest = __objRest$c(_a, ["queryFnParams"]);
1231
- return useQuery(__spreadProps$d(__spreadValues$e({}, rest), {
1230
+ const _a = __spreadValues$f({}, params), { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
1231
+ return useQuery(__spreadProps$e(__spreadValues$f({}, rest), {
1232
1232
  onError,
1233
1233
  queryFn: () => client.labels.list(queryFnParams),
1234
1234
  queryKey: ["useListLabels", params],
@@ -1268,28 +1268,28 @@ const useVoidLabel = () => {
1268
1268
  });
1269
1269
  };
1270
1270
 
1271
- var __defProp$d = Object.defineProperty;
1272
- var __defProps$c = Object.defineProperties;
1273
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1274
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
1275
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
1276
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
1277
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1278
- var __spreadValues$d = (a, b) => {
1271
+ var __defProp$e = Object.defineProperty;
1272
+ var __defProps$d = Object.defineProperties;
1273
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
1274
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
1275
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
1276
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
1277
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1278
+ var __spreadValues$e = (a, b) => {
1279
1279
  for (var prop in b || (b = {}))
1280
- if (__hasOwnProp$i.call(b, prop))
1281
- __defNormalProp$d(a, prop, b[prop]);
1282
- if (__getOwnPropSymbols$i)
1283
- for (var prop of __getOwnPropSymbols$i(b)) {
1284
- if (__propIsEnum$i.call(b, prop))
1285
- __defNormalProp$d(a, prop, b[prop]);
1280
+ if (__hasOwnProp$j.call(b, prop))
1281
+ __defNormalProp$e(a, prop, b[prop]);
1282
+ if (__getOwnPropSymbols$j)
1283
+ for (var prop of __getOwnPropSymbols$j(b)) {
1284
+ if (__propIsEnum$j.call(b, prop))
1285
+ __defNormalProp$e(a, prop, b[prop]);
1286
1286
  }
1287
1287
  return a;
1288
1288
  };
1289
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1289
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
1290
1290
  const useListOrderSources = (params) => {
1291
1291
  const { client } = useShipEngine();
1292
- return useQuery(__spreadProps$c(__spreadValues$d({}, params), {
1292
+ return useQuery(__spreadProps$d(__spreadValues$e({}, params), {
1293
1293
  onError,
1294
1294
  queryFn: () => client.orderSources.list(),
1295
1295
  queryKey: ["useListOrderSources"],
@@ -1708,17 +1708,17 @@ const useListSalesOrders = (params = {}) => {
1708
1708
  });
1709
1709
  };
1710
1710
 
1711
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
1712
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
1713
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
1714
- var __objRest$b = (source, exclude) => {
1711
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
1712
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
1713
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
1714
+ var __objRest$c = (source, exclude) => {
1715
1715
  var target = {};
1716
1716
  for (var prop in source)
1717
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
1717
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
1718
1718
  target[prop] = source[prop];
1719
- if (source != null && __getOwnPropSymbols$h)
1720
- for (var prop of __getOwnPropSymbols$h(source)) {
1721
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
1719
+ if (source != null && __getOwnPropSymbols$i)
1720
+ for (var prop of __getOwnPropSymbols$i(source)) {
1721
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
1722
1722
  target[prop] = source[prop];
1723
1723
  }
1724
1724
  return target;
@@ -1747,7 +1747,7 @@ const useNotifySalesOrderShipped = () => {
1747
1747
  const { client } = useShipEngine();
1748
1748
  return useMutation({
1749
1749
  mutationFn: (_a) => __async$j(void 0, null, function* () {
1750
- var _b = _a, { salesOrderId } = _b, tracking = __objRest$b(_b, ["salesOrderId"]);
1750
+ var _b = _a, { salesOrderId } = _b, tracking = __objRest$c(_b, ["salesOrderId"]);
1751
1751
  const result = yield client.salesOrders.notifyShipped(salesOrderId, tracking);
1752
1752
  return result.data;
1753
1753
  }),
@@ -1756,17 +1756,17 @@ const useNotifySalesOrderShipped = () => {
1756
1756
  });
1757
1757
  };
1758
1758
 
1759
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
1760
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
1761
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
1762
- var __objRest$a = (source, exclude) => {
1759
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
1760
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
1761
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
1762
+ var __objRest$b = (source, exclude) => {
1763
1763
  var target = {};
1764
1764
  for (var prop in source)
1765
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
1765
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
1766
1766
  target[prop] = source[prop];
1767
- if (source != null && __getOwnPropSymbols$g)
1768
- for (var prop of __getOwnPropSymbols$g(source)) {
1769
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
1767
+ if (source != null && __getOwnPropSymbols$h)
1768
+ for (var prop of __getOwnPropSymbols$h(source)) {
1769
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
1770
1770
  target[prop] = source[prop];
1771
1771
  }
1772
1772
  return target;
@@ -1795,7 +1795,7 @@ const useCreateSalesOrderShipment = () => {
1795
1795
  const { client } = useShipEngine();
1796
1796
  return useMutation({
1797
1797
  mutationFn: (_a) => __async$i(void 0, null, function* () {
1798
- var _b = _a, { salesOrderId } = _b, shipment = __objRest$a(_b, ["salesOrderId"]);
1798
+ var _b = _a, { salesOrderId } = _b, shipment = __objRest$b(_b, ["salesOrderId"]);
1799
1799
  const result = yield client.salesOrderShipments.create(salesOrderId, shipment);
1800
1800
  return result.data;
1801
1801
  }),
@@ -1830,17 +1830,17 @@ const useListSalesOrderShipments = (params) => {
1830
1830
  });
1831
1831
  };
1832
1832
 
1833
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
1834
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
1835
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
1836
- var __objRest$9 = (source, exclude) => {
1833
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
1834
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
1835
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
1836
+ var __objRest$a = (source, exclude) => {
1837
1837
  var target = {};
1838
1838
  for (var prop in source)
1839
- if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
1839
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
1840
1840
  target[prop] = source[prop];
1841
- if (source != null && __getOwnPropSymbols$f)
1842
- for (var prop of __getOwnPropSymbols$f(source)) {
1843
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
1841
+ if (source != null && __getOwnPropSymbols$g)
1842
+ for (var prop of __getOwnPropSymbols$g(source)) {
1843
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
1844
1844
  target[prop] = source[prop];
1845
1845
  }
1846
1846
  return target;
@@ -1869,7 +1869,7 @@ const useUpdateSalesOrderShipment = () => {
1869
1869
  const { client } = useShipEngine();
1870
1870
  return useMutation({
1871
1871
  mutationFn: (_a) => __async$h(void 0, null, function* () {
1872
- var _b = _a, { shipmentId } = _b, shipment = __objRest$9(_b, ["shipmentId"]);
1872
+ var _b = _a, { shipmentId } = _b, shipment = __objRest$a(_b, ["shipmentId"]);
1873
1873
  const result = yield client.salesOrderShipments.update(shipmentId, shipment);
1874
1874
  return result.data;
1875
1875
  }),
@@ -1878,25 +1878,25 @@ const useUpdateSalesOrderShipment = () => {
1878
1878
  });
1879
1879
  };
1880
1880
 
1881
- var __defProp$c = Object.defineProperty;
1882
- var __defProps$b = Object.defineProperties;
1883
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
1884
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
1885
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
1886
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
1887
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1888
- var __spreadValues$c = (a, b) => {
1881
+ var __defProp$d = Object.defineProperty;
1882
+ var __defProps$c = Object.defineProperties;
1883
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1884
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
1885
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
1886
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
1887
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1888
+ var __spreadValues$d = (a, b) => {
1889
1889
  for (var prop in b || (b = {}))
1890
- if (__hasOwnProp$e.call(b, prop))
1891
- __defNormalProp$c(a, prop, b[prop]);
1892
- if (__getOwnPropSymbols$e)
1893
- for (var prop of __getOwnPropSymbols$e(b)) {
1894
- if (__propIsEnum$e.call(b, prop))
1895
- __defNormalProp$c(a, prop, b[prop]);
1890
+ if (__hasOwnProp$f.call(b, prop))
1891
+ __defNormalProp$d(a, prop, b[prop]);
1892
+ if (__getOwnPropSymbols$f)
1893
+ for (var prop of __getOwnPropSymbols$f(b)) {
1894
+ if (__propIsEnum$f.call(b, prop))
1895
+ __defNormalProp$d(a, prop, b[prop]);
1896
1896
  }
1897
1897
  return a;
1898
1898
  };
1899
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
1899
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1900
1900
  var __async$g = (__this, __arguments, generator) => {
1901
1901
  return new Promise((resolve, reject) => {
1902
1902
  var fulfilled = (value) => {
@@ -1938,7 +1938,7 @@ const useCreateShipment = () => {
1938
1938
  postalCode: "",
1939
1939
  stateProvince: ""
1940
1940
  };
1941
- return (yield client.shipments.create(__spreadProps$b(__spreadValues$c({}, shipment), {
1941
+ return (yield client.shipments.create(__spreadProps$c(__spreadValues$d({}, shipment), {
1942
1942
  shipTo
1943
1943
  }))).data;
1944
1944
  }),
@@ -1947,10 +1947,44 @@ const useCreateShipment = () => {
1947
1947
  });
1948
1948
  };
1949
1949
 
1950
- const useGetShipmentRates = (shipmentId, createdAtStart) => {
1950
+ var __defProp$c = Object.defineProperty;
1951
+ var __defProps$b = Object.defineProperties;
1952
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
1953
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
1954
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
1955
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
1956
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1957
+ var __spreadValues$c = (a, b) => {
1958
+ for (var prop in b || (b = {}))
1959
+ if (__hasOwnProp$e.call(b, prop))
1960
+ __defNormalProp$c(a, prop, b[prop]);
1961
+ if (__getOwnPropSymbols$e)
1962
+ for (var prop of __getOwnPropSymbols$e(b)) {
1963
+ if (__propIsEnum$e.call(b, prop))
1964
+ __defNormalProp$c(a, prop, b[prop]);
1965
+ }
1966
+ return a;
1967
+ };
1968
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
1969
+ var __objRest$9 = (source, exclude) => {
1970
+ var target = {};
1971
+ for (var prop in source)
1972
+ if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
1973
+ target[prop] = source[prop];
1974
+ if (source != null && __getOwnPropSymbols$e)
1975
+ for (var prop of __getOwnPropSymbols$e(source)) {
1976
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
1977
+ target[prop] = source[prop];
1978
+ }
1979
+ return target;
1980
+ };
1981
+ const useGetShipmentRates = (params) => {
1951
1982
  const { client } = useShipEngine();
1952
- return useQuery({
1953
- enabled: shipmentId !== void 0,
1983
+ const _a = params, { queryFnParams } = _a, rest = __objRest$9(_a, ["queryFnParams"]);
1984
+ const { createdAtStart, shipmentId } = queryFnParams;
1985
+ return useQuery(__spreadProps$b(__spreadValues$c({
1986
+ enabled: shipmentId !== void 0
1987
+ }, rest), {
1954
1988
  onError,
1955
1989
  queryFn: () => {
1956
1990
  if (shipmentId) {
@@ -1958,9 +1992,9 @@ const useGetShipmentRates = (shipmentId, createdAtStart) => {
1958
1992
  }
1959
1993
  return Promise.reject(new Error("shipmentId is required"));
1960
1994
  },
1961
- queryKey: ["useGetShipmentRates", shipmentId, createdAtStart],
1995
+ queryKey: ["useGetShipmentRates", queryFnParams],
1962
1996
  select: (result) => result.data
1963
- });
1997
+ }));
1964
1998
  };
1965
1999
 
1966
2000
  var __defProp$b = Object.defineProperty;