@shipengine/react-api 3.13.2 → 3.14.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.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$p = Object.defineProperty;
80
- var __defProps$o = Object.defineProperties;
81
- var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
82
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
83
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
84
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
85
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
86
- var __spreadValues$p = (a, b) => {
79
+ var __defProp$r = Object.defineProperty;
80
+ var __defProps$q = Object.defineProperties;
81
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
82
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
83
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
84
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
85
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
86
+ var __spreadValues$r = (a, b) => {
87
87
  for (var prop in b || (b = {}))
88
- if (__hasOwnProp$z.call(b, prop))
89
- __defNormalProp$p(a, prop, b[prop]);
90
- if (__getOwnPropSymbols$z)
91
- for (var prop of __getOwnPropSymbols$z(b)) {
92
- if (__propIsEnum$z.call(b, prop))
93
- __defNormalProp$p(a, prop, b[prop]);
88
+ if (__hasOwnProp$B.call(b, prop))
89
+ __defNormalProp$r(a, prop, b[prop]);
90
+ if (__getOwnPropSymbols$B)
91
+ for (var prop of __getOwnPropSymbols$B(b)) {
92
+ if (__propIsEnum$B.call(b, prop))
93
+ __defNormalProp$r(a, prop, b[prop]);
94
94
  }
95
95
  return a;
96
96
  };
97
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
97
+ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(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$o(__spreadValues$p({}, k), {
106
+ serializers: __spreadProps$q(__spreadValues$r({}, k), {
107
107
  req: (req) => ({
108
108
  headers: req.headers,
109
109
  method: req.method,
@@ -128,7 +128,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
128
128
  throw error;
129
129
  });
130
130
 
131
- var __async$Q = (__this, __arguments, generator) => {
131
+ var __async$R = (__this, __arguments, generator) => {
132
132
  return new Promise((resolve, reject) => {
133
133
  var fulfilled = (value) => {
134
134
  try {
@@ -151,7 +151,7 @@ var __async$Q = (__this, __arguments, generator) => {
151
151
  const useCreateAccountImage = () => {
152
152
  const { client } = useShipEngine();
153
153
  return useMutation({
154
- mutationFn: (data) => __async$Q(void 0, null, function* () {
154
+ mutationFn: (data) => __async$R(void 0, null, function* () {
155
155
  const result = yield client.accountSettings.createImage(data);
156
156
  return result.data;
157
157
  }),
@@ -160,7 +160,7 @@ const useCreateAccountImage = () => {
160
160
  });
161
161
  };
162
162
 
163
- var __async$P = (__this, __arguments, generator) => {
163
+ var __async$Q = (__this, __arguments, generator) => {
164
164
  return new Promise((resolve, reject) => {
165
165
  var fulfilled = (value) => {
166
166
  try {
@@ -183,7 +183,7 @@ var __async$P = (__this, __arguments, generator) => {
183
183
  const useDeleteAccountImage = () => {
184
184
  const { client } = useShipEngine();
185
185
  return useMutation({
186
- mutationFn: (labelImageId) => __async$P(void 0, null, function* () {
186
+ mutationFn: (labelImageId) => __async$Q(void 0, null, function* () {
187
187
  const result = yield client.accountSettings.deleteImage(labelImageId);
188
188
  return result.data;
189
189
  }),
@@ -212,7 +212,7 @@ const useGetAccountSettings = () => {
212
212
  });
213
213
  };
214
214
 
215
- var __async$O = (__this, __arguments, generator) => {
215
+ var __async$P = (__this, __arguments, generator) => {
216
216
  return new Promise((resolve, reject) => {
217
217
  var fulfilled = (value) => {
218
218
  try {
@@ -235,7 +235,7 @@ var __async$O = (__this, __arguments, generator) => {
235
235
  const useUpdateAccountImage = () => {
236
236
  const { client } = useShipEngine();
237
237
  return useMutation({
238
- mutationFn: (data) => __async$O(void 0, null, function* () {
238
+ mutationFn: (data) => __async$P(void 0, null, function* () {
239
239
  const result = yield client.accountSettings.updateImage(data);
240
240
  return result.data;
241
241
  }),
@@ -244,7 +244,7 @@ const useUpdateAccountImage = () => {
244
244
  });
245
245
  };
246
246
 
247
- var __async$N = (__this, __arguments, generator) => {
247
+ var __async$O = (__this, __arguments, generator) => {
248
248
  return new Promise((resolve, reject) => {
249
249
  var fulfilled = (value) => {
250
250
  try {
@@ -267,7 +267,7 @@ var __async$N = (__this, __arguments, generator) => {
267
267
  const useUpdateAccountSettings = () => {
268
268
  const { client } = useShipEngine();
269
269
  return useMutation({
270
- mutationFn: (settings) => __async$N(void 0, null, function* () {
270
+ mutationFn: (settings) => __async$O(void 0, null, function* () {
271
271
  const result = yield client.accountSettings.update(settings);
272
272
  return result.data;
273
273
  }),
@@ -276,7 +276,7 @@ const useUpdateAccountSettings = () => {
276
276
  });
277
277
  };
278
278
 
279
- var __async$M = (__this, __arguments, generator) => {
279
+ var __async$N = (__this, __arguments, generator) => {
280
280
  return new Promise((resolve, reject) => {
281
281
  var fulfilled = (value) => {
282
282
  try {
@@ -299,7 +299,7 @@ var __async$M = (__this, __arguments, generator) => {
299
299
  const useParseAddress = () => {
300
300
  const { client } = useShipEngine();
301
301
  return useMutation({
302
- mutationFn: (_0) => __async$M(void 0, [_0], function* ({ address, text }) {
302
+ mutationFn: (_0) => __async$N(void 0, [_0], function* ({ address, text }) {
303
303
  const result = yield client.addresses.parse(text, address);
304
304
  return result.data;
305
305
  }),
@@ -308,7 +308,7 @@ const useParseAddress = () => {
308
308
  });
309
309
  };
310
310
 
311
- var __async$L = (__this, __arguments, generator) => {
311
+ var __async$M = (__this, __arguments, generator) => {
312
312
  return new Promise((resolve, reject) => {
313
313
  var fulfilled = (value) => {
314
314
  try {
@@ -331,7 +331,7 @@ var __async$L = (__this, __arguments, generator) => {
331
331
  const useValidateAddresses = () => {
332
332
  const { client } = useShipEngine();
333
333
  return useMutation({
334
- mutationFn: (addresses) => __async$L(void 0, null, function* () {
334
+ mutationFn: (addresses) => __async$M(void 0, null, function* () {
335
335
  const result = yield client.addresses.validate(addresses);
336
336
  return result.data;
337
337
  }),
@@ -340,26 +340,26 @@ const useValidateAddresses = () => {
340
340
  });
341
341
  };
342
342
 
343
- var __defProp$o = Object.defineProperty;
344
- var __defProps$n = Object.defineProperties;
345
- var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
346
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
347
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
348
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
349
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
350
- var __spreadValues$o = (a, b) => {
343
+ var __defProp$q = Object.defineProperty;
344
+ var __defProps$p = Object.defineProperties;
345
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
346
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
347
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
348
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
349
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
350
+ var __spreadValues$q = (a, b) => {
351
351
  for (var prop in b || (b = {}))
352
- if (__hasOwnProp$y.call(b, prop))
353
- __defNormalProp$o(a, prop, b[prop]);
354
- if (__getOwnPropSymbols$y)
355
- for (var prop of __getOwnPropSymbols$y(b)) {
356
- if (__propIsEnum$y.call(b, prop))
357
- __defNormalProp$o(a, prop, b[prop]);
352
+ if (__hasOwnProp$A.call(b, prop))
353
+ __defNormalProp$q(a, prop, b[prop]);
354
+ if (__getOwnPropSymbols$A)
355
+ for (var prop of __getOwnPropSymbols$A(b)) {
356
+ if (__propIsEnum$A.call(b, prop))
357
+ __defNormalProp$q(a, prop, b[prop]);
358
358
  }
359
359
  return a;
360
360
  };
361
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
362
- var __async$K = (__this, __arguments, generator) => {
361
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
362
+ var __async$L = (__this, __arguments, generator) => {
363
363
  return new Promise((resolve, reject) => {
364
364
  var fulfilled = (value) => {
365
365
  try {
@@ -381,8 +381,8 @@ var __async$K = (__this, __arguments, generator) => {
381
381
  };
382
382
  const useCreateAuctanePaySession = (params) => {
383
383
  const { client } = useShipEngine();
384
- return useMutation(__spreadProps$n(__spreadValues$o({}, params), {
385
- mutationFn: (request) => __async$K(void 0, null, function* () {
384
+ return useMutation(__spreadProps$p(__spreadValues$q({}, params), {
385
+ mutationFn: (request) => __async$L(void 0, null, function* () {
386
386
  const result = yield client.auctanePay.createSession(request);
387
387
  return result.data;
388
388
  }),
@@ -391,7 +391,7 @@ const useCreateAuctanePaySession = (params) => {
391
391
  }));
392
392
  };
393
393
 
394
- var __async$J = (__this, __arguments, generator) => {
394
+ var __async$K = (__this, __arguments, generator) => {
395
395
  return new Promise((resolve, reject) => {
396
396
  var fulfilled = (value) => {
397
397
  try {
@@ -414,7 +414,7 @@ var __async$J = (__this, __arguments, generator) => {
414
414
  const useAddFunds = () => {
415
415
  const { client } = useShipEngine();
416
416
  return useMutation({
417
- mutationFn: (_0) => __async$J(void 0, [_0], function* ({ carrierId, funds }) {
417
+ mutationFn: (_0) => __async$K(void 0, [_0], function* ({ carrierId, funds }) {
418
418
  const result = yield client.carriers.addFunds(carrierId, funds);
419
419
  return result.data;
420
420
  }),
@@ -423,7 +423,7 @@ const useAddFunds = () => {
423
423
  });
424
424
  };
425
425
 
426
- var __async$I = (__this, __arguments, generator) => {
426
+ var __async$J = (__this, __arguments, generator) => {
427
427
  return new Promise((resolve, reject) => {
428
428
  var fulfilled = (value) => {
429
429
  try {
@@ -446,7 +446,7 @@ var __async$I = (__this, __arguments, generator) => {
446
446
  const useConnectCarrier = () => {
447
447
  const { client } = useShipEngine();
448
448
  return useMutation({
449
- mutationFn: (params) => __async$I(void 0, null, function* () {
449
+ mutationFn: (params) => __async$J(void 0, null, function* () {
450
450
  const result = yield client.carriers.connect(params);
451
451
  return result.data;
452
452
  }),
@@ -555,41 +555,41 @@ const useGetServicesByCarrier = (carrierId) => {
555
555
  });
556
556
  };
557
557
 
558
- var __defProp$n = Object.defineProperty;
559
- var __defProps$m = Object.defineProperties;
560
- var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
561
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
562
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
563
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
564
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
565
- var __spreadValues$n = (a, b) => {
558
+ var __defProp$p = Object.defineProperty;
559
+ var __defProps$o = Object.defineProperties;
560
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
561
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
562
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
563
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
564
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
565
+ var __spreadValues$p = (a, b) => {
566
566
  for (var prop in b || (b = {}))
567
- if (__hasOwnProp$x.call(b, prop))
568
- __defNormalProp$n(a, prop, b[prop]);
569
- if (__getOwnPropSymbols$x)
570
- for (var prop of __getOwnPropSymbols$x(b)) {
571
- if (__propIsEnum$x.call(b, prop))
572
- __defNormalProp$n(a, prop, b[prop]);
567
+ if (__hasOwnProp$z.call(b, prop))
568
+ __defNormalProp$p(a, prop, b[prop]);
569
+ if (__getOwnPropSymbols$z)
570
+ for (var prop of __getOwnPropSymbols$z(b)) {
571
+ if (__propIsEnum$z.call(b, prop))
572
+ __defNormalProp$p(a, prop, b[prop]);
573
573
  }
574
574
  return a;
575
575
  };
576
- var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
576
+ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
577
577
  var __objRest$l = (source, exclude) => {
578
578
  var target = {};
579
579
  for (var prop in source)
580
- if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
580
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
581
581
  target[prop] = source[prop];
582
- if (source != null && __getOwnPropSymbols$x)
583
- for (var prop of __getOwnPropSymbols$x(source)) {
584
- if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
582
+ if (source != null && __getOwnPropSymbols$z)
583
+ for (var prop of __getOwnPropSymbols$z(source)) {
584
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
585
585
  target[prop] = source[prop];
586
586
  }
587
587
  return target;
588
588
  };
589
589
  const useListCarriers = (params) => {
590
590
  const { client } = useShipEngine();
591
- const _a = __spreadValues$n({}, params), { queryFnParams } = _a, rest = __objRest$l(_a, ["queryFnParams"]);
592
- return useQuery(__spreadProps$m(__spreadValues$n({}, rest), {
591
+ const _a = __spreadValues$p({}, params), { queryFnParams } = _a, rest = __objRest$l(_a, ["queryFnParams"]);
592
+ return useQuery(__spreadProps$o(__spreadValues$p({}, rest), {
593
593
  onError,
594
594
  queryFn: () => client.carriers.list(queryFnParams),
595
595
  queryKey: ["useListCarriers", queryFnParams],
@@ -597,22 +597,22 @@ const useListCarriers = (params) => {
597
597
  }));
598
598
  };
599
599
 
600
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
601
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
602
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
600
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
601
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
602
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
603
603
  var __objRest$k = (source, exclude) => {
604
604
  var target = {};
605
605
  for (var prop in source)
606
- if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
606
+ if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
607
607
  target[prop] = source[prop];
608
- if (source != null && __getOwnPropSymbols$w)
609
- for (var prop of __getOwnPropSymbols$w(source)) {
610
- if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
608
+ if (source != null && __getOwnPropSymbols$y)
609
+ for (var prop of __getOwnPropSymbols$y(source)) {
610
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
611
611
  target[prop] = source[prop];
612
612
  }
613
613
  return target;
614
614
  };
615
- var __async$H = (__this, __arguments, generator) => {
615
+ var __async$I = (__this, __arguments, generator) => {
616
616
  return new Promise((resolve, reject) => {
617
617
  var fulfilled = (value) => {
618
618
  try {
@@ -636,7 +636,7 @@ const useUpdateAutoFunding = () => {
636
636
  const { client } = useShipEngine();
637
637
  const queryClient = useQueryClient();
638
638
  return useMutation({
639
- mutationFn: (_a) => __async$H(void 0, null, function* () {
639
+ mutationFn: (_a) => __async$I(void 0, null, function* () {
640
640
  var _b = _a, { carrierId } = _b, options = __objRest$k(_b, ["carrierId"]);
641
641
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
642
642
  return result.data;
@@ -666,7 +666,7 @@ const useGetZonesByCarrier = (carrierId) => {
666
666
  });
667
667
  };
668
668
 
669
- var __async$G = (__this, __arguments, generator) => {
669
+ var __async$H = (__this, __arguments, generator) => {
670
670
  return new Promise((resolve, reject) => {
671
671
  var fulfilled = (value) => {
672
672
  try {
@@ -689,7 +689,7 @@ var __async$G = (__this, __arguments, generator) => {
689
689
  const useDeleteCarrier = () => {
690
690
  const { client } = useShipEngine();
691
691
  return useMutation({
692
- mutationFn: (carrierId) => __async$G(void 0, null, function* () {
692
+ mutationFn: (carrierId) => __async$H(void 0, null, function* () {
693
693
  const result = yield client.carriers.delete(carrierId);
694
694
  return result.data;
695
695
  }),
@@ -698,17 +698,17 @@ const useDeleteCarrier = () => {
698
698
  });
699
699
  };
700
700
 
701
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
702
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
703
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
701
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
702
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
703
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
704
704
  var __objRest$j = (source, exclude) => {
705
705
  var target = {};
706
706
  for (var prop in source)
707
- if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
707
+ if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
708
708
  target[prop] = source[prop];
709
- if (source != null && __getOwnPropSymbols$v)
710
- for (var prop of __getOwnPropSymbols$v(source)) {
711
- if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
709
+ if (source != null && __getOwnPropSymbols$x)
710
+ for (var prop of __getOwnPropSymbols$x(source)) {
711
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
712
712
  target[prop] = source[prop];
713
713
  }
714
714
  return target;
@@ -725,17 +725,17 @@ const useGetCarrierConnectionForm = (_params) => {
725
725
  });
726
726
  };
727
727
 
728
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
729
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
730
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
728
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
729
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
730
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
731
731
  var __objRest$i = (source, exclude) => {
732
732
  var target = {};
733
733
  for (var prop in source)
734
- if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
734
+ if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
735
735
  target[prop] = source[prop];
736
- if (source != null && __getOwnPropSymbols$u)
737
- for (var prop of __getOwnPropSymbols$u(source)) {
738
- if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
736
+ if (source != null && __getOwnPropSymbols$w)
737
+ for (var prop of __getOwnPropSymbols$w(source)) {
738
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
739
739
  target[prop] = source[prop];
740
740
  }
741
741
  return target;
@@ -752,7 +752,7 @@ const useListCarrierConnections = (_params) => {
752
752
  });
753
753
  };
754
754
 
755
- var __async$F = (__this, __arguments, generator) => {
755
+ var __async$G = (__this, __arguments, generator) => {
756
756
  return new Promise((resolve, reject) => {
757
757
  var fulfilled = (value) => {
758
758
  try {
@@ -775,7 +775,7 @@ var __async$F = (__this, __arguments, generator) => {
775
775
  const useConnectCarrierAccount = () => {
776
776
  const { client } = useShipEngine();
777
777
  return useMutation({
778
- mutationFn: (_0) => __async$F(void 0, [_0], function* ({ carrierName, formData }) {
778
+ mutationFn: (_0) => __async$G(void 0, [_0], function* ({ carrierName, formData }) {
779
779
  const result = yield client.connections.connectCarrier(carrierName, formData);
780
780
  return result.data;
781
781
  }),
@@ -795,33 +795,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
795
795
  });
796
796
  };
797
797
 
798
- var __defProp$m = Object.defineProperty;
799
- var __defProps$l = Object.defineProperties;
800
- var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
801
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
802
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
803
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
804
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
805
- var __spreadValues$m = (a, b) => {
798
+ var __defProp$o = Object.defineProperty;
799
+ var __defProps$n = Object.defineProperties;
800
+ var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
801
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
802
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
803
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
804
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
805
+ var __spreadValues$o = (a, b) => {
806
806
  for (var prop in b || (b = {}))
807
- if (__hasOwnProp$t.call(b, prop))
808
- __defNormalProp$m(a, prop, b[prop]);
809
- if (__getOwnPropSymbols$t)
810
- for (var prop of __getOwnPropSymbols$t(b)) {
811
- if (__propIsEnum$t.call(b, prop))
812
- __defNormalProp$m(a, prop, b[prop]);
807
+ if (__hasOwnProp$v.call(b, prop))
808
+ __defNormalProp$o(a, prop, b[prop]);
809
+ if (__getOwnPropSymbols$v)
810
+ for (var prop of __getOwnPropSymbols$v(b)) {
811
+ if (__propIsEnum$v.call(b, prop))
812
+ __defNormalProp$o(a, prop, b[prop]);
813
813
  }
814
814
  return a;
815
815
  };
816
- var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
816
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
817
817
  var __objRest$h = (source, exclude) => {
818
818
  var target = {};
819
819
  for (var prop in source)
820
- if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
820
+ if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
821
821
  target[prop] = source[prop];
822
- if (source != null && __getOwnPropSymbols$t)
823
- for (var prop of __getOwnPropSymbols$t(source)) {
824
- if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
822
+ if (source != null && __getOwnPropSymbols$v)
823
+ for (var prop of __getOwnPropSymbols$v(source)) {
824
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
825
825
  target[prop] = source[prop];
826
826
  }
827
827
  return target;
@@ -834,7 +834,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
834
834
  ]);
835
835
  const { client } = useShipEngine();
836
836
  const { carrierName, carrierId } = queryFnParams;
837
- return useQuery(__spreadProps$l(__spreadValues$m({}, params), {
837
+ return useQuery(__spreadProps$n(__spreadValues$o({}, params), {
838
838
  onError,
839
839
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
840
840
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -842,26 +842,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
842
842
  }));
843
843
  };
844
844
 
845
- var __defProp$l = Object.defineProperty;
846
- var __defProps$k = Object.defineProperties;
847
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
848
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
849
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
850
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
851
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
852
- var __spreadValues$l = (a, b) => {
845
+ var __defProp$n = Object.defineProperty;
846
+ var __defProps$m = Object.defineProperties;
847
+ var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
848
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
849
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
850
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
851
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
852
+ var __spreadValues$n = (a, b) => {
853
853
  for (var prop in b || (b = {}))
854
- if (__hasOwnProp$s.call(b, prop))
855
- __defNormalProp$l(a, prop, b[prop]);
856
- if (__getOwnPropSymbols$s)
857
- for (var prop of __getOwnPropSymbols$s(b)) {
858
- if (__propIsEnum$s.call(b, prop))
859
- __defNormalProp$l(a, prop, b[prop]);
854
+ if (__hasOwnProp$u.call(b, prop))
855
+ __defNormalProp$n(a, prop, b[prop]);
856
+ if (__getOwnPropSymbols$u)
857
+ for (var prop of __getOwnPropSymbols$u(b)) {
858
+ if (__propIsEnum$u.call(b, prop))
859
+ __defNormalProp$n(a, prop, b[prop]);
860
860
  }
861
861
  return a;
862
862
  };
863
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
864
- var __async$E = (__this, __arguments, generator) => {
863
+ var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
864
+ var __async$F = (__this, __arguments, generator) => {
865
865
  return new Promise((resolve, reject) => {
866
866
  var fulfilled = (value) => {
867
867
  try {
@@ -883,8 +883,8 @@ var __async$E = (__this, __arguments, generator) => {
883
883
  };
884
884
  const useUpdateConnectionsCarrierSettings = (params) => {
885
885
  const { client } = useShipEngine();
886
- return useMutation(__spreadProps$k(__spreadValues$l({}, params), {
887
- mutationFn: (_0) => __async$E(void 0, [_0], function* ({
886
+ return useMutation(__spreadProps$m(__spreadValues$n({}, params), {
887
+ mutationFn: (_0) => __async$F(void 0, [_0], function* ({
888
888
  carrierName,
889
889
  carrierId,
890
890
  formData
@@ -911,7 +911,7 @@ const useListCustomPackageTypes = () => {
911
911
  });
912
912
  };
913
913
 
914
- var __async$D = (__this, __arguments, generator) => {
914
+ var __async$E = (__this, __arguments, generator) => {
915
915
  return new Promise((resolve, reject) => {
916
916
  var fulfilled = (value) => {
917
917
  try {
@@ -934,7 +934,7 @@ var __async$D = (__this, __arguments, generator) => {
934
934
  const useCreateFundingSource = () => {
935
935
  const { client } = useShipEngine();
936
936
  return useMutation({
937
- mutationFn: (fundingSource) => __async$D(void 0, null, function* () {
937
+ mutationFn: (fundingSource) => __async$E(void 0, null, function* () {
938
938
  const result = yield client.fundingSources.create(fundingSource);
939
939
  return result.data;
940
940
  }),
@@ -943,7 +943,7 @@ const useCreateFundingSource = () => {
943
943
  });
944
944
  };
945
945
 
946
- var __async$C = (__this, __arguments, generator) => {
946
+ var __async$D = (__this, __arguments, generator) => {
947
947
  return new Promise((resolve, reject) => {
948
948
  var fulfilled = (value) => {
949
949
  try {
@@ -966,7 +966,7 @@ var __async$C = (__this, __arguments, generator) => {
966
966
  const useFundingSourcesAddFunds = () => {
967
967
  const { client } = useShipEngine();
968
968
  return useMutation({
969
- mutationFn: (_0) => __async$C(void 0, [_0], function* ({ funds, fundingSourceId }) {
969
+ mutationFn: (_0) => __async$D(void 0, [_0], function* ({ funds, fundingSourceId }) {
970
970
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
971
971
  return result.data;
972
972
  }),
@@ -995,7 +995,7 @@ const useListFundingSources = () => {
995
995
  });
996
996
  };
997
997
 
998
- var __async$B = (__this, __arguments, generator) => {
998
+ var __async$C = (__this, __arguments, generator) => {
999
999
  return new Promise((resolve, reject) => {
1000
1000
  var fulfilled = (value) => {
1001
1001
  try {
@@ -1018,7 +1018,7 @@ var __async$B = (__this, __arguments, generator) => {
1018
1018
  const useRegisterCarrier = () => {
1019
1019
  const { client } = useShipEngine();
1020
1020
  return useMutation({
1021
- mutationFn: (carrier) => __async$B(void 0, null, function* () {
1021
+ mutationFn: (carrier) => __async$C(void 0, null, function* () {
1022
1022
  const result = yield client.fundingSources.registerCarrier(carrier);
1023
1023
  return result.data;
1024
1024
  }),
@@ -1027,7 +1027,7 @@ const useRegisterCarrier = () => {
1027
1027
  });
1028
1028
  };
1029
1029
 
1030
- var __async$A = (__this, __arguments, generator) => {
1030
+ var __async$B = (__this, __arguments, generator) => {
1031
1031
  return new Promise((resolve, reject) => {
1032
1032
  var fulfilled = (value) => {
1033
1033
  try {
@@ -1050,7 +1050,7 @@ var __async$A = (__this, __arguments, generator) => {
1050
1050
  const useUpdateFundingSource = () => {
1051
1051
  const { client } = useShipEngine();
1052
1052
  return useMutation({
1053
- mutationFn: (_0) => __async$A(void 0, [_0], function* ({
1053
+ mutationFn: (_0) => __async$B(void 0, [_0], function* ({
1054
1054
  billingInfo,
1055
1055
  creditCardInfo,
1056
1056
  fundingSourceId,
@@ -1091,29 +1091,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
1091
1091
  });
1092
1092
  };
1093
1093
 
1094
- var __defProp$k = Object.defineProperty;
1095
- var __defProps$j = Object.defineProperties;
1096
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
1097
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
1098
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
1099
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
1100
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1101
- var __spreadValues$k = (a, b) => {
1094
+ var __defProp$m = Object.defineProperty;
1095
+ var __defProps$l = Object.defineProperties;
1096
+ var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
1097
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
1098
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
1099
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
1100
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1101
+ var __spreadValues$m = (a, b) => {
1102
1102
  for (var prop in b || (b = {}))
1103
- if (__hasOwnProp$r.call(b, prop))
1104
- __defNormalProp$k(a, prop, b[prop]);
1105
- if (__getOwnPropSymbols$r)
1106
- for (var prop of __getOwnPropSymbols$r(b)) {
1107
- if (__propIsEnum$r.call(b, prop))
1108
- __defNormalProp$k(a, prop, b[prop]);
1103
+ if (__hasOwnProp$t.call(b, prop))
1104
+ __defNormalProp$m(a, prop, b[prop]);
1105
+ if (__getOwnPropSymbols$t)
1106
+ for (var prop of __getOwnPropSymbols$t(b)) {
1107
+ if (__propIsEnum$t.call(b, prop))
1108
+ __defNormalProp$m(a, prop, b[prop]);
1109
1109
  }
1110
1110
  return a;
1111
1111
  };
1112
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
1112
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
1113
1113
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
1114
1114
  const { client } = useShipEngine();
1115
- const queryParams = __spreadValues$k({}, params);
1116
- return useQuery(__spreadProps$j(__spreadValues$k({}, queryParams), {
1115
+ const queryParams = __spreadValues$m({}, params);
1116
+ return useQuery(__spreadProps$l(__spreadValues$m({}, queryParams), {
1117
1117
  onError,
1118
1118
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
1119
1119
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -1136,22 +1136,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
1136
1136
  });
1137
1137
  };
1138
1138
 
1139
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
1140
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
1141
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
1139
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
1140
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
1141
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
1142
1142
  var __objRest$g = (source, exclude) => {
1143
1143
  var target = {};
1144
1144
  for (var prop in source)
1145
- if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
1145
+ if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
1146
1146
  target[prop] = source[prop];
1147
- if (source != null && __getOwnPropSymbols$q)
1148
- for (var prop of __getOwnPropSymbols$q(source)) {
1149
- if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
1147
+ if (source != null && __getOwnPropSymbols$s)
1148
+ for (var prop of __getOwnPropSymbols$s(source)) {
1149
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
1150
1150
  target[prop] = source[prop];
1151
1151
  }
1152
1152
  return target;
1153
1153
  };
1154
- var __async$z = (__this, __arguments, generator) => {
1154
+ var __async$A = (__this, __arguments, generator) => {
1155
1155
  return new Promise((resolve, reject) => {
1156
1156
  var fulfilled = (value) => {
1157
1157
  try {
@@ -1174,7 +1174,7 @@ var __async$z = (__this, __arguments, generator) => {
1174
1174
  const useAddInsuranceFunds = () => {
1175
1175
  const { client } = useShipEngine();
1176
1176
  return useMutation({
1177
- mutationFn: (_a) => __async$z(void 0, null, function* () {
1177
+ mutationFn: (_a) => __async$A(void 0, null, function* () {
1178
1178
  var _b = _a, { insuranceProvider } = _b, rest = __objRest$g(_b, ["insuranceProvider"]);
1179
1179
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
1180
1180
  return result.data;
@@ -1184,26 +1184,26 @@ const useAddInsuranceFunds = () => {
1184
1184
  });
1185
1185
  };
1186
1186
 
1187
- var __defProp$j = Object.defineProperty;
1188
- var __defProps$i = Object.defineProperties;
1189
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
1190
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
1191
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
1192
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
1193
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1194
- var __spreadValues$j = (a, b) => {
1187
+ var __defProp$l = Object.defineProperty;
1188
+ var __defProps$k = Object.defineProperties;
1189
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
1190
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
1191
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
1192
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
1193
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1194
+ var __spreadValues$l = (a, b) => {
1195
1195
  for (var prop in b || (b = {}))
1196
- if (__hasOwnProp$p.call(b, prop))
1197
- __defNormalProp$j(a, prop, b[prop]);
1198
- if (__getOwnPropSymbols$p)
1199
- for (var prop of __getOwnPropSymbols$p(b)) {
1200
- if (__propIsEnum$p.call(b, prop))
1201
- __defNormalProp$j(a, prop, b[prop]);
1196
+ if (__hasOwnProp$r.call(b, prop))
1197
+ __defNormalProp$l(a, prop, b[prop]);
1198
+ if (__getOwnPropSymbols$r)
1199
+ for (var prop of __getOwnPropSymbols$r(b)) {
1200
+ if (__propIsEnum$r.call(b, prop))
1201
+ __defNormalProp$l(a, prop, b[prop]);
1202
1202
  }
1203
1203
  return a;
1204
1204
  };
1205
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
1206
- var __async$y = (__this, __arguments, generator) => {
1205
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
1206
+ var __async$z = (__this, __arguments, generator) => {
1207
1207
  return new Promise((resolve, reject) => {
1208
1208
  var fulfilled = (value) => {
1209
1209
  try {
@@ -1225,8 +1225,8 @@ var __async$y = (__this, __arguments, generator) => {
1225
1225
  };
1226
1226
  const useCreateInvoiceAddress = (params) => {
1227
1227
  const { client } = useShipEngine();
1228
- return useMutation(__spreadProps$i(__spreadValues$j({}, params), {
1229
- mutationFn: (invoiceAddress) => __async$y(void 0, null, function* () {
1228
+ return useMutation(__spreadProps$k(__spreadValues$l({}, params), {
1229
+ mutationFn: (invoiceAddress) => __async$z(void 0, null, function* () {
1230
1230
  const result = yield client.invoiceAddress.create(invoiceAddress);
1231
1231
  return result.data;
1232
1232
  }),
@@ -1235,26 +1235,26 @@ const useCreateInvoiceAddress = (params) => {
1235
1235
  }));
1236
1236
  };
1237
1237
 
1238
- var __defProp$i = Object.defineProperty;
1239
- var __defProps$h = Object.defineProperties;
1240
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
1241
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
1242
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
1243
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
1244
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1245
- var __spreadValues$i = (a, b) => {
1238
+ var __defProp$k = Object.defineProperty;
1239
+ var __defProps$j = Object.defineProperties;
1240
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
1241
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
1242
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
1243
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
1244
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1245
+ var __spreadValues$k = (a, b) => {
1246
1246
  for (var prop in b || (b = {}))
1247
- if (__hasOwnProp$o.call(b, prop))
1248
- __defNormalProp$i(a, prop, b[prop]);
1249
- if (__getOwnPropSymbols$o)
1250
- for (var prop of __getOwnPropSymbols$o(b)) {
1251
- if (__propIsEnum$o.call(b, prop))
1252
- __defNormalProp$i(a, prop, b[prop]);
1247
+ if (__hasOwnProp$q.call(b, prop))
1248
+ __defNormalProp$k(a, prop, b[prop]);
1249
+ if (__getOwnPropSymbols$q)
1250
+ for (var prop of __getOwnPropSymbols$q(b)) {
1251
+ if (__propIsEnum$q.call(b, prop))
1252
+ __defNormalProp$k(a, prop, b[prop]);
1253
1253
  }
1254
1254
  return a;
1255
1255
  };
1256
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
1257
- var __async$x = (__this, __arguments, generator) => {
1256
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
1257
+ var __async$y = (__this, __arguments, generator) => {
1258
1258
  return new Promise((resolve, reject) => {
1259
1259
  var fulfilled = (value) => {
1260
1260
  try {
@@ -1276,8 +1276,8 @@ var __async$x = (__this, __arguments, generator) => {
1276
1276
  };
1277
1277
  const useUpdateInvoiceAddress = (params) => {
1278
1278
  const { client } = useShipEngine();
1279
- return useMutation(__spreadProps$h(__spreadValues$i({}, params), {
1280
- mutationFn: (invoiceAddress) => __async$x(void 0, null, function* () {
1279
+ return useMutation(__spreadProps$j(__spreadValues$k({}, params), {
1280
+ mutationFn: (invoiceAddress) => __async$y(void 0, null, function* () {
1281
1281
  const result = yield client.invoiceAddress.update(invoiceAddress);
1282
1282
  return result.data;
1283
1283
  }),
@@ -1286,28 +1286,28 @@ const useUpdateInvoiceAddress = (params) => {
1286
1286
  }));
1287
1287
  };
1288
1288
 
1289
- var __defProp$h = Object.defineProperty;
1290
- var __defProps$g = Object.defineProperties;
1291
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
1292
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
1293
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
1294
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
1295
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1296
- var __spreadValues$h = (a, b) => {
1289
+ var __defProp$j = Object.defineProperty;
1290
+ var __defProps$i = Object.defineProperties;
1291
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
1292
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
1293
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
1294
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
1295
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1296
+ var __spreadValues$j = (a, b) => {
1297
1297
  for (var prop in b || (b = {}))
1298
- if (__hasOwnProp$n.call(b, prop))
1299
- __defNormalProp$h(a, prop, b[prop]);
1300
- if (__getOwnPropSymbols$n)
1301
- for (var prop of __getOwnPropSymbols$n(b)) {
1302
- if (__propIsEnum$n.call(b, prop))
1303
- __defNormalProp$h(a, prop, b[prop]);
1298
+ if (__hasOwnProp$p.call(b, prop))
1299
+ __defNormalProp$j(a, prop, b[prop]);
1300
+ if (__getOwnPropSymbols$p)
1301
+ for (var prop of __getOwnPropSymbols$p(b)) {
1302
+ if (__propIsEnum$p.call(b, prop))
1303
+ __defNormalProp$j(a, prop, b[prop]);
1304
1304
  }
1305
1305
  return a;
1306
1306
  };
1307
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
1307
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
1308
1308
  const useGetInvoiceAddress = (params) => {
1309
1309
  const { client } = useShipEngine();
1310
- return useQuery(__spreadProps$g(__spreadValues$h({}, params), {
1310
+ return useQuery(__spreadProps$i(__spreadValues$j({}, params), {
1311
1311
  onError,
1312
1312
  queryFn: () => client.invoiceAddress.get(),
1313
1313
  queryKey: ["useGetInvoiceAddress"],
@@ -1315,22 +1315,22 @@ const useGetInvoiceAddress = (params) => {
1315
1315
  }));
1316
1316
  };
1317
1317
 
1318
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
1319
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
1320
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
1318
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
1319
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
1320
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
1321
1321
  var __objRest$f = (source, exclude) => {
1322
1322
  var target = {};
1323
1323
  for (var prop in source)
1324
- if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
1324
+ if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
1325
1325
  target[prop] = source[prop];
1326
- if (source != null && __getOwnPropSymbols$m)
1327
- for (var prop of __getOwnPropSymbols$m(source)) {
1328
- if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
1326
+ if (source != null && __getOwnPropSymbols$o)
1327
+ for (var prop of __getOwnPropSymbols$o(source)) {
1328
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
1329
1329
  target[prop] = source[prop];
1330
1330
  }
1331
1331
  return target;
1332
1332
  };
1333
- var __async$w = (__this, __arguments, generator) => {
1333
+ var __async$x = (__this, __arguments, generator) => {
1334
1334
  return new Promise((resolve, reject) => {
1335
1335
  var fulfilled = (value) => {
1336
1336
  try {
@@ -1353,7 +1353,7 @@ var __async$w = (__this, __arguments, generator) => {
1353
1353
  const useCreateLabel = () => {
1354
1354
  const { client } = useShipEngine();
1355
1355
  return useMutation({
1356
- mutationFn: (_a) => __async$w(void 0, null, function* () {
1356
+ mutationFn: (_a) => __async$x(void 0, null, function* () {
1357
1357
  var _b = _a, { rateId } = _b, options = __objRest$f(_b, ["rateId"]);
1358
1358
  const result = yield client.labels.createByRateId(rateId, options);
1359
1359
  return result.data;
@@ -1378,41 +1378,41 @@ const useGetLabel = (labelId) => {
1378
1378
  });
1379
1379
  };
1380
1380
 
1381
- var __defProp$g = Object.defineProperty;
1382
- var __defProps$f = Object.defineProperties;
1383
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
1384
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
1385
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
1386
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
1387
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1388
- var __spreadValues$g = (a, b) => {
1381
+ var __defProp$i = Object.defineProperty;
1382
+ var __defProps$h = Object.defineProperties;
1383
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
1384
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
1385
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
1386
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
1387
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1388
+ var __spreadValues$i = (a, b) => {
1389
1389
  for (var prop in b || (b = {}))
1390
- if (__hasOwnProp$l.call(b, prop))
1391
- __defNormalProp$g(a, prop, b[prop]);
1392
- if (__getOwnPropSymbols$l)
1393
- for (var prop of __getOwnPropSymbols$l(b)) {
1394
- if (__propIsEnum$l.call(b, prop))
1395
- __defNormalProp$g(a, prop, b[prop]);
1390
+ if (__hasOwnProp$n.call(b, prop))
1391
+ __defNormalProp$i(a, prop, b[prop]);
1392
+ if (__getOwnPropSymbols$n)
1393
+ for (var prop of __getOwnPropSymbols$n(b)) {
1394
+ if (__propIsEnum$n.call(b, prop))
1395
+ __defNormalProp$i(a, prop, b[prop]);
1396
1396
  }
1397
1397
  return a;
1398
1398
  };
1399
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
1399
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
1400
1400
  var __objRest$e = (source, exclude) => {
1401
1401
  var target = {};
1402
1402
  for (var prop in source)
1403
- if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
1403
+ if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
1404
1404
  target[prop] = source[prop];
1405
- if (source != null && __getOwnPropSymbols$l)
1406
- for (var prop of __getOwnPropSymbols$l(source)) {
1407
- if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
1405
+ if (source != null && __getOwnPropSymbols$n)
1406
+ for (var prop of __getOwnPropSymbols$n(source)) {
1407
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
1408
1408
  target[prop] = source[prop];
1409
1409
  }
1410
1410
  return target;
1411
1411
  };
1412
1412
  const useListLabels = (params) => {
1413
1413
  const { client } = useShipEngine();
1414
- const _a = __spreadValues$g({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
1415
- return useQuery(__spreadProps$f(__spreadValues$g({}, rest), {
1414
+ const _a = __spreadValues$i({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
1415
+ return useQuery(__spreadProps$h(__spreadValues$i({}, rest), {
1416
1416
  onError,
1417
1417
  queryFn: () => client.labels.list(queryFnParams),
1418
1418
  queryKey: ["useListLabels", params],
@@ -1420,7 +1420,7 @@ const useListLabels = (params) => {
1420
1420
  }));
1421
1421
  };
1422
1422
 
1423
- var __async$v = (__this, __arguments, generator) => {
1423
+ var __async$w = (__this, __arguments, generator) => {
1424
1424
  return new Promise((resolve, reject) => {
1425
1425
  var fulfilled = (value) => {
1426
1426
  try {
@@ -1443,7 +1443,7 @@ var __async$v = (__this, __arguments, generator) => {
1443
1443
  const useVoidLabel = () => {
1444
1444
  const { client } = useShipEngine();
1445
1445
  return useMutation({
1446
- mutationFn: (labelId) => __async$v(void 0, null, function* () {
1446
+ mutationFn: (labelId) => __async$w(void 0, null, function* () {
1447
1447
  const result = yield client.labels.void(labelId);
1448
1448
  return result.data;
1449
1449
  }),
@@ -1452,38 +1452,38 @@ const useVoidLabel = () => {
1452
1452
  });
1453
1453
  };
1454
1454
 
1455
- var __defProp$f = Object.defineProperty;
1456
- var __defProps$e = Object.defineProperties;
1457
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
1458
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
1459
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
1460
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
1461
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1462
- var __spreadValues$f = (a, b) => {
1455
+ var __defProp$h = Object.defineProperty;
1456
+ var __defProps$g = Object.defineProperties;
1457
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
1458
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
1459
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
1460
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
1461
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1462
+ var __spreadValues$h = (a, b) => {
1463
1463
  for (var prop in b || (b = {}))
1464
- if (__hasOwnProp$k.call(b, prop))
1465
- __defNormalProp$f(a, prop, b[prop]);
1466
- if (__getOwnPropSymbols$k)
1467
- for (var prop of __getOwnPropSymbols$k(b)) {
1468
- if (__propIsEnum$k.call(b, prop))
1469
- __defNormalProp$f(a, prop, b[prop]);
1464
+ if (__hasOwnProp$m.call(b, prop))
1465
+ __defNormalProp$h(a, prop, b[prop]);
1466
+ if (__getOwnPropSymbols$m)
1467
+ for (var prop of __getOwnPropSymbols$m(b)) {
1468
+ if (__propIsEnum$m.call(b, prop))
1469
+ __defNormalProp$h(a, prop, b[prop]);
1470
1470
  }
1471
1471
  return a;
1472
1472
  };
1473
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
1473
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
1474
1474
  var __objRest$d = (source, exclude) => {
1475
1475
  var target = {};
1476
1476
  for (var prop in source)
1477
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
1477
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
1478
1478
  target[prop] = source[prop];
1479
- if (source != null && __getOwnPropSymbols$k)
1480
- for (var prop of __getOwnPropSymbols$k(source)) {
1481
- if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
1479
+ if (source != null && __getOwnPropSymbols$m)
1480
+ for (var prop of __getOwnPropSymbols$m(source)) {
1481
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
1482
1482
  target[prop] = source[prop];
1483
1483
  }
1484
1484
  return target;
1485
1485
  };
1486
- var __async$u = (__this, __arguments, generator) => {
1486
+ var __async$v = (__this, __arguments, generator) => {
1487
1487
  return new Promise((resolve, reject) => {
1488
1488
  var fulfilled = (value) => {
1489
1489
  try {
@@ -1505,8 +1505,8 @@ var __async$u = (__this, __arguments, generator) => {
1505
1505
  };
1506
1506
  const useListLabelsInfinite = (params) => {
1507
1507
  const { client } = useShipEngine();
1508
- const _a = __spreadValues$f({}, params), { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
1509
- return useInfiniteQuery(__spreadProps$e(__spreadValues$f({}, rest), {
1508
+ const _a = __spreadValues$h({}, params), { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
1509
+ return useInfiniteQuery(__spreadProps$g(__spreadValues$h({}, rest), {
1510
1510
  getNextPageParam: (lastPage) => {
1511
1511
  if (lastPage.page < lastPage.pages) {
1512
1512
  return lastPage.page + 1;
@@ -1514,8 +1514,8 @@ const useListLabelsInfinite = (params) => {
1514
1514
  return void 0;
1515
1515
  },
1516
1516
  onError,
1517
- queryFn: (_0) => __async$u(void 0, [_0], function* ({ pageParam = 1 }) {
1518
- const response = yield client.labels.list(__spreadProps$e(__spreadValues$f({}, queryFnParams), { page: pageParam }));
1517
+ queryFn: (_0) => __async$v(void 0, [_0], function* ({ pageParam = 1 }) {
1518
+ const response = yield client.labels.list(__spreadProps$g(__spreadValues$h({}, queryFnParams), { page: pageParam }));
1519
1519
  return response.data;
1520
1520
  }),
1521
1521
  queryKey: ["useListLabelsInfinite", params],
@@ -1529,28 +1529,28 @@ const useListLabelsInfinite = (params) => {
1529
1529
  }));
1530
1530
  };
1531
1531
 
1532
- var __defProp$e = Object.defineProperty;
1533
- var __defProps$d = Object.defineProperties;
1534
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
1535
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
1536
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
1537
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
1538
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1539
- var __spreadValues$e = (a, b) => {
1532
+ var __defProp$g = Object.defineProperty;
1533
+ var __defProps$f = Object.defineProperties;
1534
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
1535
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
1536
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
1537
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
1538
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1539
+ var __spreadValues$g = (a, b) => {
1540
1540
  for (var prop in b || (b = {}))
1541
- if (__hasOwnProp$j.call(b, prop))
1542
- __defNormalProp$e(a, prop, b[prop]);
1543
- if (__getOwnPropSymbols$j)
1544
- for (var prop of __getOwnPropSymbols$j(b)) {
1545
- if (__propIsEnum$j.call(b, prop))
1546
- __defNormalProp$e(a, prop, b[prop]);
1541
+ if (__hasOwnProp$l.call(b, prop))
1542
+ __defNormalProp$g(a, prop, b[prop]);
1543
+ if (__getOwnPropSymbols$l)
1544
+ for (var prop of __getOwnPropSymbols$l(b)) {
1545
+ if (__propIsEnum$l.call(b, prop))
1546
+ __defNormalProp$g(a, prop, b[prop]);
1547
1547
  }
1548
1548
  return a;
1549
1549
  };
1550
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
1550
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
1551
1551
  const useListOrderSources = (params) => {
1552
1552
  const { client } = useShipEngine();
1553
- return useQuery(__spreadProps$d(__spreadValues$e({}, params), {
1553
+ return useQuery(__spreadProps$f(__spreadValues$g({}, params), {
1554
1554
  onError,
1555
1555
  queryFn: () => client.orderSources.list(),
1556
1556
  queryKey: ["useListOrderSources"],
@@ -1558,7 +1558,7 @@ const useListOrderSources = (params) => {
1558
1558
  }));
1559
1559
  };
1560
1560
 
1561
- var __async$t = (__this, __arguments, generator) => {
1561
+ var __async$u = (__this, __arguments, generator) => {
1562
1562
  return new Promise((resolve, reject) => {
1563
1563
  var fulfilled = (value) => {
1564
1564
  try {
@@ -1581,7 +1581,7 @@ var __async$t = (__this, __arguments, generator) => {
1581
1581
  const useRefreshOrderSourceAsync = () => {
1582
1582
  const { client } = useShipEngine();
1583
1583
  return useMutation({
1584
- mutationFn: (orderSourceId) => __async$t(void 0, null, function* () {
1584
+ mutationFn: (orderSourceId) => __async$u(void 0, null, function* () {
1585
1585
  const result = yield client.orderSources.refresh(orderSourceId);
1586
1586
  return result.data;
1587
1587
  }),
@@ -1592,9 +1592,9 @@ const useRefreshOrderSource = () => {
1592
1592
  const { client } = useShipEngine();
1593
1593
  const { mutateAsync: refreshOrderSourceAsync } = useRefreshOrderSourceAsync();
1594
1594
  return useMutation({
1595
- mutationFn: (orderSourceId) => __async$t(void 0, null, function* () {
1595
+ mutationFn: (orderSourceId) => __async$u(void 0, null, function* () {
1596
1596
  yield refreshOrderSourceAsync(orderSourceId);
1597
- const waitResult = yield retryUntil(() => __async$t(void 0, null, function* () {
1597
+ const waitResult = yield retryUntil(() => __async$u(void 0, null, function* () {
1598
1598
  const { data: checkResult } = yield client.orderSources.get(orderSourceId);
1599
1599
  if (["preparing_update", "updating"].includes(checkResult.refreshInfo.status)) {
1600
1600
  throw new SE.CodedError("Order source is still refreshing");
@@ -1608,7 +1608,7 @@ const useRefreshOrderSource = () => {
1608
1608
  });
1609
1609
  };
1610
1610
 
1611
- var __async$s = (__this, __arguments, generator) => {
1611
+ var __async$t = (__this, __arguments, generator) => {
1612
1612
  return new Promise((resolve, reject) => {
1613
1613
  var fulfilled = (value) => {
1614
1614
  try {
@@ -1631,7 +1631,7 @@ var __async$s = (__this, __arguments, generator) => {
1631
1631
  const useDeactivateOrderSource = () => {
1632
1632
  const { client } = useShipEngine();
1633
1633
  return useMutation({
1634
- mutationFn: (orderSourceId) => __async$s(void 0, null, function* () {
1634
+ mutationFn: (orderSourceId) => __async$t(void 0, null, function* () {
1635
1635
  const result = yield client.orderSources.deactivate(orderSourceId);
1636
1636
  return result.data;
1637
1637
  }),
@@ -1650,7 +1650,7 @@ const useListOrderSourcesConnections = () => {
1650
1650
  });
1651
1651
  };
1652
1652
 
1653
- var __async$r = (__this, __arguments, generator) => {
1653
+ var __async$s = (__this, __arguments, generator) => {
1654
1654
  return new Promise((resolve, reject) => {
1655
1655
  var fulfilled = (value) => {
1656
1656
  try {
@@ -1673,7 +1673,7 @@ var __async$r = (__this, __arguments, generator) => {
1673
1673
  const useUpdateOrderSource = () => {
1674
1674
  const { client } = useShipEngine();
1675
1675
  return useMutation({
1676
- mutationFn: (params) => __async$r(void 0, null, function* () {
1676
+ mutationFn: (params) => __async$s(void 0, null, function* () {
1677
1677
  const result = yield client.orderSources.update(params);
1678
1678
  return result.data;
1679
1679
  }),
@@ -1682,7 +1682,7 @@ const useUpdateOrderSource = () => {
1682
1682
  });
1683
1683
  };
1684
1684
 
1685
- var __async$q = (__this, __arguments, generator) => {
1685
+ var __async$r = (__this, __arguments, generator) => {
1686
1686
  return new Promise((resolve, reject) => {
1687
1687
  var fulfilled = (value) => {
1688
1688
  try {
@@ -1705,7 +1705,7 @@ var __async$q = (__this, __arguments, generator) => {
1705
1705
  const useCreateRateCard = () => {
1706
1706
  const { client } = useShipEngine();
1707
1707
  return useMutation({
1708
- mutationFn: (rateCard) => __async$q(void 0, null, function* () {
1708
+ mutationFn: (rateCard) => __async$r(void 0, null, function* () {
1709
1709
  const result = yield client.rateCards.create(rateCard);
1710
1710
  return result.data;
1711
1711
  }),
@@ -1752,7 +1752,7 @@ const useListRateCards = (carrierIds) => {
1752
1752
  });
1753
1753
  };
1754
1754
 
1755
- var __async$p = (__this, __arguments, generator) => {
1755
+ var __async$q = (__this, __arguments, generator) => {
1756
1756
  return new Promise((resolve, reject) => {
1757
1757
  var fulfilled = (value) => {
1758
1758
  try {
@@ -1775,7 +1775,7 @@ var __async$p = (__this, __arguments, generator) => {
1775
1775
  const usePublishRateCard = () => {
1776
1776
  const { client } = useShipEngine();
1777
1777
  return useMutation({
1778
- mutationFn: (rateCardId) => __async$p(void 0, null, function* () {
1778
+ mutationFn: (rateCardId) => __async$q(void 0, null, function* () {
1779
1779
  return yield client.rateCards.publish(rateCardId);
1780
1780
  }),
1781
1781
  mutationKey: ["usePublishRateCard"],
@@ -1783,7 +1783,7 @@ const usePublishRateCard = () => {
1783
1783
  });
1784
1784
  };
1785
1785
 
1786
- var __async$o = (__this, __arguments, generator) => {
1786
+ var __async$p = (__this, __arguments, generator) => {
1787
1787
  return new Promise((resolve, reject) => {
1788
1788
  var fulfilled = (value) => {
1789
1789
  try {
@@ -1806,7 +1806,7 @@ var __async$o = (__this, __arguments, generator) => {
1806
1806
  const useUpdateRateCard = () => {
1807
1807
  const { client } = useShipEngine();
1808
1808
  return useMutation({
1809
- mutationFn: (rateCard) => __async$o(void 0, null, function* () {
1809
+ mutationFn: (rateCard) => __async$p(void 0, null, function* () {
1810
1810
  const result = yield client.rateCards.update(rateCard);
1811
1811
  return result.data;
1812
1812
  }),
@@ -1815,7 +1815,7 @@ const useUpdateRateCard = () => {
1815
1815
  });
1816
1816
  };
1817
1817
 
1818
- var __async$n = (__this, __arguments, generator) => {
1818
+ var __async$o = (__this, __arguments, generator) => {
1819
1819
  return new Promise((resolve, reject) => {
1820
1820
  var fulfilled = (value) => {
1821
1821
  try {
@@ -1838,7 +1838,7 @@ var __async$n = (__this, __arguments, generator) => {
1838
1838
  const useUploadRateCard = () => {
1839
1839
  const { client } = useShipEngine();
1840
1840
  return useMutation({
1841
- mutationFn: (_0) => __async$n(void 0, [_0], function* ({ rateCardId, file }) {
1841
+ mutationFn: (_0) => __async$o(void 0, [_0], function* ({ rateCardId, file }) {
1842
1842
  const result = yield client.rateCards.upload(rateCardId, file);
1843
1843
  return result.data;
1844
1844
  }),
@@ -1847,7 +1847,7 @@ const useUploadRateCard = () => {
1847
1847
  });
1848
1848
  };
1849
1849
 
1850
- var __async$m = (__this, __arguments, generator) => {
1850
+ var __async$n = (__this, __arguments, generator) => {
1851
1851
  return new Promise((resolve, reject) => {
1852
1852
  var fulfilled = (value) => {
1853
1853
  try {
@@ -1870,7 +1870,7 @@ var __async$m = (__this, __arguments, generator) => {
1870
1870
  const useDeleteRateCard = () => {
1871
1871
  const { client } = useShipEngine();
1872
1872
  return useMutation({
1873
- mutationFn: (rateCardId) => __async$m(void 0, null, function* () {
1873
+ mutationFn: (rateCardId) => __async$n(void 0, null, function* () {
1874
1874
  const result = yield client.rateCards.delete(rateCardId);
1875
1875
  return result.data;
1876
1876
  }),
@@ -1879,7 +1879,7 @@ const useDeleteRateCard = () => {
1879
1879
  });
1880
1880
  };
1881
1881
 
1882
- var __async$l = (__this, __arguments, generator) => {
1882
+ var __async$m = (__this, __arguments, generator) => {
1883
1883
  return new Promise((resolve, reject) => {
1884
1884
  var fulfilled = (value) => {
1885
1885
  try {
@@ -1902,7 +1902,7 @@ var __async$l = (__this, __arguments, generator) => {
1902
1902
  const useCalculateRates = () => {
1903
1903
  const { client } = useShipEngine();
1904
1904
  return useMutation({
1905
- mutationFn: (_0) => __async$l(void 0, [_0], function* ({ rateOptions, shipmentId }) {
1905
+ mutationFn: (_0) => __async$m(void 0, [_0], function* ({ rateOptions, shipmentId }) {
1906
1906
  const result = yield client.rates.calculateByShipmentId(shipmentId, rateOptions);
1907
1907
  return result.data;
1908
1908
  }),
@@ -1911,7 +1911,7 @@ const useCalculateRates = () => {
1911
1911
  });
1912
1912
  };
1913
1913
 
1914
- var __async$k = (__this, __arguments, generator) => {
1914
+ var __async$l = (__this, __arguments, generator) => {
1915
1915
  return new Promise((resolve, reject) => {
1916
1916
  var fulfilled = (value) => {
1917
1917
  try {
@@ -1934,7 +1934,7 @@ var __async$k = (__this, __arguments, generator) => {
1934
1934
  const useRatesEstimate = () => {
1935
1935
  const { client } = useShipEngine();
1936
1936
  return useMutation({
1937
- mutationFn: (_0) => __async$k(void 0, [_0], function* ({ rateParams }) {
1937
+ mutationFn: (_0) => __async$l(void 0, [_0], function* ({ rateParams }) {
1938
1938
  const result = yield client.rates.estimate(rateParams);
1939
1939
  return result.data;
1940
1940
  }),
@@ -1988,22 +1988,22 @@ const useListSalesOrders = (params = {}) => {
1988
1988
  });
1989
1989
  };
1990
1990
 
1991
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
1992
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
1993
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
1991
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
1992
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
1993
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
1994
1994
  var __objRest$c = (source, exclude) => {
1995
1995
  var target = {};
1996
1996
  for (var prop in source)
1997
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
1997
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
1998
1998
  target[prop] = source[prop];
1999
- if (source != null && __getOwnPropSymbols$i)
2000
- for (var prop of __getOwnPropSymbols$i(source)) {
2001
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
1999
+ if (source != null && __getOwnPropSymbols$k)
2000
+ for (var prop of __getOwnPropSymbols$k(source)) {
2001
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
2002
2002
  target[prop] = source[prop];
2003
2003
  }
2004
2004
  return target;
2005
2005
  };
2006
- var __async$j = (__this, __arguments, generator) => {
2006
+ var __async$k = (__this, __arguments, generator) => {
2007
2007
  return new Promise((resolve, reject) => {
2008
2008
  var fulfilled = (value) => {
2009
2009
  try {
@@ -2026,7 +2026,7 @@ var __async$j = (__this, __arguments, generator) => {
2026
2026
  const useNotifySalesOrderShipped = () => {
2027
2027
  const { client } = useShipEngine();
2028
2028
  return useMutation({
2029
- mutationFn: (_a) => __async$j(void 0, null, function* () {
2029
+ mutationFn: (_a) => __async$k(void 0, null, function* () {
2030
2030
  var _b = _a, { salesOrderId } = _b, tracking = __objRest$c(_b, ["salesOrderId"]);
2031
2031
  const result = yield client.salesOrders.notifyShipped(salesOrderId, tracking);
2032
2032
  return result.data;
@@ -2036,22 +2036,22 @@ const useNotifySalesOrderShipped = () => {
2036
2036
  });
2037
2037
  };
2038
2038
 
2039
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2040
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2041
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2039
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
2040
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
2041
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
2042
2042
  var __objRest$b = (source, exclude) => {
2043
2043
  var target = {};
2044
2044
  for (var prop in source)
2045
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
2045
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
2046
2046
  target[prop] = source[prop];
2047
- if (source != null && __getOwnPropSymbols$h)
2048
- for (var prop of __getOwnPropSymbols$h(source)) {
2049
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
2047
+ if (source != null && __getOwnPropSymbols$j)
2048
+ for (var prop of __getOwnPropSymbols$j(source)) {
2049
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
2050
2050
  target[prop] = source[prop];
2051
2051
  }
2052
2052
  return target;
2053
2053
  };
2054
- var __async$i = (__this, __arguments, generator) => {
2054
+ var __async$j = (__this, __arguments, generator) => {
2055
2055
  return new Promise((resolve, reject) => {
2056
2056
  var fulfilled = (value) => {
2057
2057
  try {
@@ -2074,7 +2074,7 @@ var __async$i = (__this, __arguments, generator) => {
2074
2074
  const useCreateSalesOrderShipment = () => {
2075
2075
  const { client } = useShipEngine();
2076
2076
  return useMutation({
2077
- mutationFn: (_a) => __async$i(void 0, null, function* () {
2077
+ mutationFn: (_a) => __async$j(void 0, null, function* () {
2078
2078
  var _b = _a, { salesOrderId } = _b, shipment = __objRest$b(_b, ["salesOrderId"]);
2079
2079
  const result = yield client.salesOrderShipments.create(salesOrderId, shipment);
2080
2080
  return result.data;
@@ -2111,22 +2111,22 @@ const useListSalesOrderShipments = (body) => {
2111
2111
  });
2112
2112
  };
2113
2113
 
2114
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
2115
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
2116
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
2114
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
2115
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
2116
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
2117
2117
  var __objRest$a = (source, exclude) => {
2118
2118
  var target = {};
2119
2119
  for (var prop in source)
2120
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
2120
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
2121
2121
  target[prop] = source[prop];
2122
- if (source != null && __getOwnPropSymbols$g)
2123
- for (var prop of __getOwnPropSymbols$g(source)) {
2124
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
2122
+ if (source != null && __getOwnPropSymbols$i)
2123
+ for (var prop of __getOwnPropSymbols$i(source)) {
2124
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
2125
2125
  target[prop] = source[prop];
2126
2126
  }
2127
2127
  return target;
2128
2128
  };
2129
- var __async$h = (__this, __arguments, generator) => {
2129
+ var __async$i = (__this, __arguments, generator) => {
2130
2130
  return new Promise((resolve, reject) => {
2131
2131
  var fulfilled = (value) => {
2132
2132
  try {
@@ -2149,7 +2149,7 @@ var __async$h = (__this, __arguments, generator) => {
2149
2149
  const useUpdateSalesOrderShipment = () => {
2150
2150
  const { client } = useShipEngine();
2151
2151
  return useMutation({
2152
- mutationFn: (_a) => __async$h(void 0, null, function* () {
2152
+ mutationFn: (_a) => __async$i(void 0, null, function* () {
2153
2153
  var _b = _a, { shipmentId } = _b, shipment = __objRest$a(_b, ["shipmentId"]);
2154
2154
  const result = yield client.salesOrderShipments.update(shipmentId, shipment);
2155
2155
  return result.data;
@@ -2170,26 +2170,26 @@ const useListSalesOrderShipmentsByExternalOrderId = (externalOrderId) => {
2170
2170
  });
2171
2171
  };
2172
2172
 
2173
- var __defProp$d = Object.defineProperty;
2174
- var __defProps$c = Object.defineProperties;
2175
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
2176
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
2177
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
2178
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
2179
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2180
- var __spreadValues$d = (a, b) => {
2173
+ var __defProp$f = Object.defineProperty;
2174
+ var __defProps$e = Object.defineProperties;
2175
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
2176
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2177
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2178
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2179
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2180
+ var __spreadValues$f = (a, b) => {
2181
2181
  for (var prop in b || (b = {}))
2182
- if (__hasOwnProp$f.call(b, prop))
2183
- __defNormalProp$d(a, prop, b[prop]);
2184
- if (__getOwnPropSymbols$f)
2185
- for (var prop of __getOwnPropSymbols$f(b)) {
2186
- if (__propIsEnum$f.call(b, prop))
2187
- __defNormalProp$d(a, prop, b[prop]);
2182
+ if (__hasOwnProp$h.call(b, prop))
2183
+ __defNormalProp$f(a, prop, b[prop]);
2184
+ if (__getOwnPropSymbols$h)
2185
+ for (var prop of __getOwnPropSymbols$h(b)) {
2186
+ if (__propIsEnum$h.call(b, prop))
2187
+ __defNormalProp$f(a, prop, b[prop]);
2188
2188
  }
2189
2189
  return a;
2190
2190
  };
2191
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
2192
- var __async$g = (__this, __arguments, generator) => {
2191
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
2192
+ var __async$h = (__this, __arguments, generator) => {
2193
2193
  return new Promise((resolve, reject) => {
2194
2194
  var fulfilled = (value) => {
2195
2195
  try {
@@ -2212,7 +2212,7 @@ var __async$g = (__this, __arguments, generator) => {
2212
2212
  const useCreateShipment = () => {
2213
2213
  const { client } = useShipEngine();
2214
2214
  return useMutation({
2215
- mutationFn: (shipment) => __async$g(void 0, null, function* () {
2215
+ mutationFn: (shipment) => __async$h(void 0, null, function* () {
2216
2216
  var _a;
2217
2217
  if (shipment.warehouseId === void 0 && shipment.shipFrom === void 0) {
2218
2218
  throw new SE.CodedError("errorMessages.noWarehouses", {
@@ -2230,7 +2230,7 @@ const useCreateShipment = () => {
2230
2230
  postalCode: "",
2231
2231
  stateProvince: ""
2232
2232
  };
2233
- return (yield client.shipments.create(__spreadProps$c(__spreadValues$d({}, shipment), {
2233
+ return (yield client.shipments.create(__spreadProps$e(__spreadValues$f({}, shipment), {
2234
2234
  shipTo
2235
2235
  }))).data;
2236
2236
  }),
@@ -2239,33 +2239,33 @@ const useCreateShipment = () => {
2239
2239
  });
2240
2240
  };
2241
2241
 
2242
- var __defProp$c = Object.defineProperty;
2243
- var __defProps$b = Object.defineProperties;
2244
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
2245
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2246
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2247
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
2248
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2249
- var __spreadValues$c = (a, b) => {
2250
- for (var prop in b || (b = {}))
2251
- if (__hasOwnProp$e.call(b, prop))
2252
- __defNormalProp$c(a, prop, b[prop]);
2253
- if (__getOwnPropSymbols$e)
2254
- for (var prop of __getOwnPropSymbols$e(b)) {
2255
- if (__propIsEnum$e.call(b, prop))
2256
- __defNormalProp$c(a, prop, b[prop]);
2257
- }
2242
+ var __defProp$e = Object.defineProperty;
2243
+ var __defProps$d = Object.defineProperties;
2244
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
2245
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
2246
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
2247
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
2248
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2249
+ var __spreadValues$e = (a, b) => {
2250
+ for (var prop in b || (b = {}))
2251
+ if (__hasOwnProp$g.call(b, prop))
2252
+ __defNormalProp$e(a, prop, b[prop]);
2253
+ if (__getOwnPropSymbols$g)
2254
+ for (var prop of __getOwnPropSymbols$g(b)) {
2255
+ if (__propIsEnum$g.call(b, prop))
2256
+ __defNormalProp$e(a, prop, b[prop]);
2257
+ }
2258
2258
  return a;
2259
2259
  };
2260
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
2260
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
2261
2261
  var __objRest$9 = (source, exclude) => {
2262
2262
  var target = {};
2263
2263
  for (var prop in source)
2264
- if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
2264
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
2265
2265
  target[prop] = source[prop];
2266
- if (source != null && __getOwnPropSymbols$e)
2267
- for (var prop of __getOwnPropSymbols$e(source)) {
2268
- if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
2266
+ if (source != null && __getOwnPropSymbols$g)
2267
+ for (var prop of __getOwnPropSymbols$g(source)) {
2268
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
2269
2269
  target[prop] = source[prop];
2270
2270
  }
2271
2271
  return target;
@@ -2275,7 +2275,7 @@ const useGetShipmentRates = (params) => {
2275
2275
  const _a = params, { queryFnParams } = _a, rest = __objRest$9(_a, ["queryFnParams"]);
2276
2276
  const shipmentId = queryFnParams == null ? void 0 : queryFnParams.shipmentId;
2277
2277
  const createdAtStart = queryFnParams == null ? void 0 : queryFnParams.createdAtStart;
2278
- return useQuery(__spreadProps$b(__spreadValues$c({
2278
+ return useQuery(__spreadProps$d(__spreadValues$e({
2279
2279
  enabled: shipmentId !== void 0
2280
2280
  }, rest), {
2281
2281
  onError,
@@ -2290,33 +2290,33 @@ const useGetShipmentRates = (params) => {
2290
2290
  }));
2291
2291
  };
2292
2292
 
2293
- var __defProp$b = Object.defineProperty;
2294
- var __defProps$a = Object.defineProperties;
2295
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
2296
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
2297
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
2298
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
2299
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2300
- var __spreadValues$b = (a, b) => {
2293
+ var __defProp$d = Object.defineProperty;
2294
+ var __defProps$c = Object.defineProperties;
2295
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
2296
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
2297
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
2298
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
2299
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2300
+ var __spreadValues$d = (a, b) => {
2301
2301
  for (var prop in b || (b = {}))
2302
- if (__hasOwnProp$d.call(b, prop))
2303
- __defNormalProp$b(a, prop, b[prop]);
2304
- if (__getOwnPropSymbols$d)
2305
- for (var prop of __getOwnPropSymbols$d(b)) {
2306
- if (__propIsEnum$d.call(b, prop))
2307
- __defNormalProp$b(a, prop, b[prop]);
2302
+ if (__hasOwnProp$f.call(b, prop))
2303
+ __defNormalProp$d(a, prop, b[prop]);
2304
+ if (__getOwnPropSymbols$f)
2305
+ for (var prop of __getOwnPropSymbols$f(b)) {
2306
+ if (__propIsEnum$f.call(b, prop))
2307
+ __defNormalProp$d(a, prop, b[prop]);
2308
2308
  }
2309
2309
  return a;
2310
2310
  };
2311
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
2311
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
2312
2312
  var __objRest$8 = (source, exclude) => {
2313
2313
  var target = {};
2314
2314
  for (var prop in source)
2315
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
2315
+ if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
2316
2316
  target[prop] = source[prop];
2317
- if (source != null && __getOwnPropSymbols$d)
2318
- for (var prop of __getOwnPropSymbols$d(source)) {
2319
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
2317
+ if (source != null && __getOwnPropSymbols$f)
2318
+ for (var prop of __getOwnPropSymbols$f(source)) {
2319
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
2320
2320
  target[prop] = source[prop];
2321
2321
  }
2322
2322
  return target;
@@ -2332,7 +2332,7 @@ const useGetShipment = (params) => {
2332
2332
  }
2333
2333
  return {};
2334
2334
  };
2335
- return useQuery(__spreadProps$a(__spreadValues$b({}, getQueryProps()), {
2335
+ return useQuery(__spreadProps$c(__spreadValues$d({}, getQueryProps()), {
2336
2336
  enabled: shipmentId !== void 0,
2337
2337
  onError,
2338
2338
  queryFn: () => {
@@ -2346,17 +2346,17 @@ const useGetShipment = (params) => {
2346
2346
  }));
2347
2347
  };
2348
2348
 
2349
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2350
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2351
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
2349
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2350
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2351
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
2352
2352
  var __objRest$7 = (source, exclude) => {
2353
2353
  var target = {};
2354
2354
  for (var prop in source)
2355
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
2355
+ if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
2356
2356
  target[prop] = source[prop];
2357
- if (source != null && __getOwnPropSymbols$c)
2358
- for (var prop of __getOwnPropSymbols$c(source)) {
2359
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
2357
+ if (source != null && __getOwnPropSymbols$e)
2358
+ for (var prop of __getOwnPropSymbols$e(source)) {
2359
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
2360
2360
  target[prop] = source[prop];
2361
2361
  }
2362
2362
  return target;
@@ -2373,33 +2373,33 @@ const useListShipments = (_params) => {
2373
2373
  });
2374
2374
  };
2375
2375
 
2376
- var __defProp$a = Object.defineProperty;
2377
- var __defProps$9 = Object.defineProperties;
2378
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2379
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2380
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2381
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
2382
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2383
- var __spreadValues$a = (a, b) => {
2376
+ var __defProp$c = Object.defineProperty;
2377
+ var __defProps$b = Object.defineProperties;
2378
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
2379
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
2380
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
2381
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
2382
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2383
+ var __spreadValues$c = (a, b) => {
2384
2384
  for (var prop in b || (b = {}))
2385
- if (__hasOwnProp$b.call(b, prop))
2386
- __defNormalProp$a(a, prop, b[prop]);
2387
- if (__getOwnPropSymbols$b)
2388
- for (var prop of __getOwnPropSymbols$b(b)) {
2389
- if (__propIsEnum$b.call(b, prop))
2390
- __defNormalProp$a(a, prop, b[prop]);
2385
+ if (__hasOwnProp$d.call(b, prop))
2386
+ __defNormalProp$c(a, prop, b[prop]);
2387
+ if (__getOwnPropSymbols$d)
2388
+ for (var prop of __getOwnPropSymbols$d(b)) {
2389
+ if (__propIsEnum$d.call(b, prop))
2390
+ __defNormalProp$c(a, prop, b[prop]);
2391
2391
  }
2392
2392
  return a;
2393
2393
  };
2394
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2394
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
2395
2395
  var __objRest$6 = (source, exclude) => {
2396
2396
  var target = {};
2397
2397
  for (var prop in source)
2398
- if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
2398
+ if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
2399
2399
  target[prop] = source[prop];
2400
- if (source != null && __getOwnPropSymbols$b)
2401
- for (var prop of __getOwnPropSymbols$b(source)) {
2402
- if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
2400
+ if (source != null && __getOwnPropSymbols$d)
2401
+ for (var prop of __getOwnPropSymbols$d(source)) {
2402
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
2403
2403
  target[prop] = source[prop];
2404
2404
  }
2405
2405
  return target;
@@ -2407,7 +2407,7 @@ var __objRest$6 = (source, exclude) => {
2407
2407
  const useGetShipmentByExternalId = (params) => {
2408
2408
  const { client } = useShipEngine();
2409
2409
  const _a = params, { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
2410
- return useQuery(__spreadProps$9(__spreadValues$a({}, rest), {
2410
+ return useQuery(__spreadProps$b(__spreadValues$c({}, rest), {
2411
2411
  onError,
2412
2412
  queryFn: () => client.shipments.getByExternalId(queryFnParams.externalId),
2413
2413
  queryKey: ["useGetShipmentByExternalId", queryFnParams],
@@ -2415,7 +2415,7 @@ const useGetShipmentByExternalId = (params) => {
2415
2415
  }));
2416
2416
  };
2417
2417
 
2418
- var __async$f = (__this, __arguments, generator) => {
2418
+ var __async$g = (__this, __arguments, generator) => {
2419
2419
  return new Promise((resolve, reject) => {
2420
2420
  var fulfilled = (value) => {
2421
2421
  try {
@@ -2438,7 +2438,7 @@ var __async$f = (__this, __arguments, generator) => {
2438
2438
  const useCancelShipment = () => {
2439
2439
  const { client } = useShipEngine();
2440
2440
  return useMutation({
2441
- mutationFn: (shipmentId) => __async$f(void 0, null, function* () {
2441
+ mutationFn: (shipmentId) => __async$g(void 0, null, function* () {
2442
2442
  const result = yield client.shipments.cancel(shipmentId);
2443
2443
  return result.data;
2444
2444
  }),
@@ -2447,41 +2447,41 @@ const useCancelShipment = () => {
2447
2447
  });
2448
2448
  };
2449
2449
 
2450
- var __defProp$9 = Object.defineProperty;
2451
- var __defProps$8 = Object.defineProperties;
2452
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2453
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2454
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2455
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
2456
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2457
- var __spreadValues$9 = (a, b) => {
2450
+ var __defProp$b = Object.defineProperty;
2451
+ var __defProps$a = Object.defineProperties;
2452
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
2453
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2454
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2455
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
2456
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2457
+ var __spreadValues$b = (a, b) => {
2458
2458
  for (var prop in b || (b = {}))
2459
- if (__hasOwnProp$a.call(b, prop))
2460
- __defNormalProp$9(a, prop, b[prop]);
2461
- if (__getOwnPropSymbols$a)
2462
- for (var prop of __getOwnPropSymbols$a(b)) {
2463
- if (__propIsEnum$a.call(b, prop))
2464
- __defNormalProp$9(a, prop, b[prop]);
2459
+ if (__hasOwnProp$c.call(b, prop))
2460
+ __defNormalProp$b(a, prop, b[prop]);
2461
+ if (__getOwnPropSymbols$c)
2462
+ for (var prop of __getOwnPropSymbols$c(b)) {
2463
+ if (__propIsEnum$c.call(b, prop))
2464
+ __defNormalProp$b(a, prop, b[prop]);
2465
2465
  }
2466
2466
  return a;
2467
2467
  };
2468
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2468
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
2469
2469
  var __objRest$5 = (source, exclude) => {
2470
2470
  var target = {};
2471
2471
  for (var prop in source)
2472
- if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
2472
+ if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
2473
2473
  target[prop] = source[prop];
2474
- if (source != null && __getOwnPropSymbols$a)
2475
- for (var prop of __getOwnPropSymbols$a(source)) {
2476
- if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
2474
+ if (source != null && __getOwnPropSymbols$c)
2475
+ for (var prop of __getOwnPropSymbols$c(source)) {
2476
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
2477
2477
  target[prop] = source[prop];
2478
2478
  }
2479
2479
  return target;
2480
2480
  };
2481
2481
  const useListShippingRules = (params) => {
2482
2482
  const { client } = useShipEngine();
2483
- const _a = __spreadValues$9({}, params), { queryFnParams } = _a, rest = __objRest$5(_a, ["queryFnParams"]);
2484
- return useQuery(__spreadProps$8(__spreadValues$9({}, rest), {
2483
+ const _a = __spreadValues$b({}, params), { queryFnParams } = _a, rest = __objRest$5(_a, ["queryFnParams"]);
2484
+ return useQuery(__spreadProps$a(__spreadValues$b({}, rest), {
2485
2485
  onError,
2486
2486
  queryFn: () => {
2487
2487
  return client.shippingRules.list(queryFnParams);
@@ -2491,7 +2491,7 @@ const useListShippingRules = (params) => {
2491
2491
  }));
2492
2492
  };
2493
2493
 
2494
- var __async$e = (__this, __arguments, generator) => {
2494
+ var __async$f = (__this, __arguments, generator) => {
2495
2495
  return new Promise((resolve, reject) => {
2496
2496
  var fulfilled = (value) => {
2497
2497
  try {
@@ -2514,7 +2514,7 @@ var __async$e = (__this, __arguments, generator) => {
2514
2514
  const useCreateShippingRule = () => {
2515
2515
  const { client } = useShipEngine();
2516
2516
  return useMutation({
2517
- mutationFn: (props) => __async$e(void 0, null, function* () {
2517
+ mutationFn: (props) => __async$f(void 0, null, function* () {
2518
2518
  const result = yield client.shippingRules.create(props);
2519
2519
  return result.data;
2520
2520
  }),
@@ -2523,7 +2523,7 @@ const useCreateShippingRule = () => {
2523
2523
  });
2524
2524
  };
2525
2525
 
2526
- var __async$d = (__this, __arguments, generator) => {
2526
+ var __async$e = (__this, __arguments, generator) => {
2527
2527
  return new Promise((resolve, reject) => {
2528
2528
  var fulfilled = (value) => {
2529
2529
  try {
@@ -2546,7 +2546,7 @@ var __async$d = (__this, __arguments, generator) => {
2546
2546
  const useDeleteShippingRule = () => {
2547
2547
  const { client } = useShipEngine();
2548
2548
  return useMutation({
2549
- mutationFn: (props) => __async$d(void 0, null, function* () {
2549
+ mutationFn: (props) => __async$e(void 0, null, function* () {
2550
2550
  const result = yield client.shippingRules.delete(props);
2551
2551
  return result.data;
2552
2552
  }),
@@ -2555,7 +2555,7 @@ const useDeleteShippingRule = () => {
2555
2555
  });
2556
2556
  };
2557
2557
 
2558
- var __async$c = (__this, __arguments, generator) => {
2558
+ var __async$d = (__this, __arguments, generator) => {
2559
2559
  return new Promise((resolve, reject) => {
2560
2560
  var fulfilled = (value) => {
2561
2561
  try {
@@ -2578,7 +2578,7 @@ var __async$c = (__this, __arguments, generator) => {
2578
2578
  const useEditShippingRule = () => {
2579
2579
  const { client } = useShipEngine();
2580
2580
  return useMutation({
2581
- mutationFn: (props) => __async$c(void 0, null, function* () {
2581
+ mutationFn: (props) => __async$d(void 0, null, function* () {
2582
2582
  const result = yield client.shippingRules.edit(props);
2583
2583
  return result.data;
2584
2584
  }),
@@ -2587,41 +2587,41 @@ const useEditShippingRule = () => {
2587
2587
  });
2588
2588
  };
2589
2589
 
2590
- var __defProp$8 = Object.defineProperty;
2591
- var __defProps$7 = Object.defineProperties;
2592
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2593
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
2594
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
2595
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
2596
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2597
- var __spreadValues$8 = (a, b) => {
2590
+ var __defProp$a = Object.defineProperty;
2591
+ var __defProps$9 = Object.defineProperties;
2592
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2593
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2594
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2595
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
2596
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2597
+ var __spreadValues$a = (a, b) => {
2598
2598
  for (var prop in b || (b = {}))
2599
- if (__hasOwnProp$9.call(b, prop))
2600
- __defNormalProp$8(a, prop, b[prop]);
2601
- if (__getOwnPropSymbols$9)
2602
- for (var prop of __getOwnPropSymbols$9(b)) {
2603
- if (__propIsEnum$9.call(b, prop))
2604
- __defNormalProp$8(a, prop, b[prop]);
2599
+ if (__hasOwnProp$b.call(b, prop))
2600
+ __defNormalProp$a(a, prop, b[prop]);
2601
+ if (__getOwnPropSymbols$b)
2602
+ for (var prop of __getOwnPropSymbols$b(b)) {
2603
+ if (__propIsEnum$b.call(b, prop))
2604
+ __defNormalProp$a(a, prop, b[prop]);
2605
2605
  }
2606
2606
  return a;
2607
2607
  };
2608
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2608
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2609
2609
  var __objRest$4 = (source, exclude) => {
2610
2610
  var target = {};
2611
2611
  for (var prop in source)
2612
- if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
2612
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
2613
2613
  target[prop] = source[prop];
2614
- if (source != null && __getOwnPropSymbols$9)
2615
- for (var prop of __getOwnPropSymbols$9(source)) {
2616
- if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
2614
+ if (source != null && __getOwnPropSymbols$b)
2615
+ for (var prop of __getOwnPropSymbols$b(source)) {
2616
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
2617
2617
  target[prop] = source[prop];
2618
2618
  }
2619
2619
  return target;
2620
2620
  };
2621
2621
  const useGetShippingRuleConditionsOptions = (params) => {
2622
2622
  const { client } = useShipEngine();
2623
- const _a = __spreadValues$8({}, params), { queryFnParams } = _a, rest = __objRest$4(_a, ["queryFnParams"]);
2624
- return useQuery(__spreadProps$7(__spreadValues$8({}, rest), {
2623
+ const _a = __spreadValues$a({}, params), { queryFnParams } = _a, rest = __objRest$4(_a, ["queryFnParams"]);
2624
+ return useQuery(__spreadProps$9(__spreadValues$a({}, rest), {
2625
2625
  onError,
2626
2626
  queryFn: () => {
2627
2627
  return client.shippingRules.getConditionOptions(queryFnParams);
@@ -2631,41 +2631,41 @@ const useGetShippingRuleConditionsOptions = (params) => {
2631
2631
  }));
2632
2632
  };
2633
2633
 
2634
- var __defProp$7 = Object.defineProperty;
2635
- var __defProps$6 = Object.defineProperties;
2636
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2637
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
2638
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
2639
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
2640
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2641
- var __spreadValues$7 = (a, b) => {
2634
+ var __defProp$9 = Object.defineProperty;
2635
+ var __defProps$8 = Object.defineProperties;
2636
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2637
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2638
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2639
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
2640
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2641
+ var __spreadValues$9 = (a, b) => {
2642
2642
  for (var prop in b || (b = {}))
2643
- if (__hasOwnProp$8.call(b, prop))
2644
- __defNormalProp$7(a, prop, b[prop]);
2645
- if (__getOwnPropSymbols$8)
2646
- for (var prop of __getOwnPropSymbols$8(b)) {
2647
- if (__propIsEnum$8.call(b, prop))
2648
- __defNormalProp$7(a, prop, b[prop]);
2643
+ if (__hasOwnProp$a.call(b, prop))
2644
+ __defNormalProp$9(a, prop, b[prop]);
2645
+ if (__getOwnPropSymbols$a)
2646
+ for (var prop of __getOwnPropSymbols$a(b)) {
2647
+ if (__propIsEnum$a.call(b, prop))
2648
+ __defNormalProp$9(a, prop, b[prop]);
2649
2649
  }
2650
2650
  return a;
2651
2651
  };
2652
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2652
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2653
2653
  var __objRest$3 = (source, exclude) => {
2654
2654
  var target = {};
2655
2655
  for (var prop in source)
2656
- if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
2656
+ if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
2657
2657
  target[prop] = source[prop];
2658
- if (source != null && __getOwnPropSymbols$8)
2659
- for (var prop of __getOwnPropSymbols$8(source)) {
2660
- if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
2658
+ if (source != null && __getOwnPropSymbols$a)
2659
+ for (var prop of __getOwnPropSymbols$a(source)) {
2660
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
2661
2661
  target[prop] = source[prop];
2662
2662
  }
2663
2663
  return target;
2664
2664
  };
2665
2665
  const useGetShippingRuleById = (params) => {
2666
2666
  const { client } = useShipEngine();
2667
- const _a = __spreadValues$7({}, params), { queryFnParams } = _a, rest = __objRest$3(_a, ["queryFnParams"]);
2668
- return useQuery(__spreadProps$6(__spreadValues$7({}, rest), {
2667
+ const _a = __spreadValues$9({}, params), { queryFnParams } = _a, rest = __objRest$3(_a, ["queryFnParams"]);
2668
+ return useQuery(__spreadProps$8(__spreadValues$9({}, rest), {
2669
2669
  onError,
2670
2670
  queryFn: () => {
2671
2671
  return client.shippingRules.get(queryFnParams);
@@ -2690,7 +2690,7 @@ const useGetThemeById = (themeId) => {
2690
2690
  });
2691
2691
  };
2692
2692
 
2693
- var __async$b = (__this, __arguments, generator) => {
2693
+ var __async$c = (__this, __arguments, generator) => {
2694
2694
  return new Promise((resolve, reject) => {
2695
2695
  var fulfilled = (value) => {
2696
2696
  try {
@@ -2713,7 +2713,7 @@ var __async$b = (__this, __arguments, generator) => {
2713
2713
  const useCreateWarehouse = () => {
2714
2714
  const { client } = useShipEngine();
2715
2715
  return useMutation({
2716
- mutationFn: (data) => __async$b(void 0, null, function* () {
2716
+ mutationFn: (data) => __async$c(void 0, null, function* () {
2717
2717
  const result = yield client.warehouses.create(data);
2718
2718
  return result.data;
2719
2719
  }),
@@ -2722,7 +2722,7 @@ const useCreateWarehouse = () => {
2722
2722
  });
2723
2723
  };
2724
2724
 
2725
- var __async$a = (__this, __arguments, generator) => {
2725
+ var __async$b = (__this, __arguments, generator) => {
2726
2726
  return new Promise((resolve, reject) => {
2727
2727
  var fulfilled = (value) => {
2728
2728
  try {
@@ -2745,7 +2745,7 @@ var __async$a = (__this, __arguments, generator) => {
2745
2745
  const useDeleteWarehouse = () => {
2746
2746
  const { client } = useShipEngine();
2747
2747
  return useMutation({
2748
- mutationFn: (_0) => __async$a(void 0, [_0], function* ({ warehouseId }) {
2748
+ mutationFn: (_0) => __async$b(void 0, [_0], function* ({ warehouseId }) {
2749
2749
  const result = yield client.warehouses.delete(warehouseId);
2750
2750
  return result.data;
2751
2751
  }),
@@ -2754,41 +2754,41 @@ const useDeleteWarehouse = () => {
2754
2754
  });
2755
2755
  };
2756
2756
 
2757
- var __defProp$6 = Object.defineProperty;
2758
- var __defProps$5 = Object.defineProperties;
2759
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2760
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
2761
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
2762
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
2763
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2764
- var __spreadValues$6 = (a, b) => {
2757
+ var __defProp$8 = Object.defineProperty;
2758
+ var __defProps$7 = Object.defineProperties;
2759
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2760
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
2761
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
2762
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
2763
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2764
+ var __spreadValues$8 = (a, b) => {
2765
2765
  for (var prop in b || (b = {}))
2766
- if (__hasOwnProp$7.call(b, prop))
2767
- __defNormalProp$6(a, prop, b[prop]);
2768
- if (__getOwnPropSymbols$7)
2769
- for (var prop of __getOwnPropSymbols$7(b)) {
2770
- if (__propIsEnum$7.call(b, prop))
2771
- __defNormalProp$6(a, prop, b[prop]);
2766
+ if (__hasOwnProp$9.call(b, prop))
2767
+ __defNormalProp$8(a, prop, b[prop]);
2768
+ if (__getOwnPropSymbols$9)
2769
+ for (var prop of __getOwnPropSymbols$9(b)) {
2770
+ if (__propIsEnum$9.call(b, prop))
2771
+ __defNormalProp$8(a, prop, b[prop]);
2772
2772
  }
2773
2773
  return a;
2774
2774
  };
2775
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
2775
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2776
2776
  var __objRest$2 = (source, exclude) => {
2777
2777
  var target = {};
2778
2778
  for (var prop in source)
2779
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
2779
+ if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
2780
2780
  target[prop] = source[prop];
2781
- if (source != null && __getOwnPropSymbols$7)
2782
- for (var prop of __getOwnPropSymbols$7(source)) {
2783
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
2781
+ if (source != null && __getOwnPropSymbols$9)
2782
+ for (var prop of __getOwnPropSymbols$9(source)) {
2783
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
2784
2784
  target[prop] = source[prop];
2785
2785
  }
2786
2786
  return target;
2787
2787
  };
2788
2788
  const useListWarehouses = (params) => {
2789
2789
  const { client } = useShipEngine();
2790
- const _a = __spreadValues$6({}, params), { queryFnParams } = _a, rest = __objRest$2(_a, ["queryFnParams"]);
2791
- return useQuery(__spreadProps$5(__spreadValues$6({}, rest), {
2790
+ const _a = __spreadValues$8({}, params), { queryFnParams } = _a, rest = __objRest$2(_a, ["queryFnParams"]);
2791
+ return useQuery(__spreadProps$7(__spreadValues$8({}, rest), {
2792
2792
  onError,
2793
2793
  queryFn: () => client.warehouses.list(queryFnParams),
2794
2794
  queryKey: ["useListWarehouses", queryFnParams],
@@ -2796,22 +2796,22 @@ const useListWarehouses = (params) => {
2796
2796
  }));
2797
2797
  };
2798
2798
 
2799
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
2800
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
2801
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
2799
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
2800
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
2801
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
2802
2802
  var __objRest$1 = (source, exclude) => {
2803
2803
  var target = {};
2804
2804
  for (var prop in source)
2805
- if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
2805
+ if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
2806
2806
  target[prop] = source[prop];
2807
- if (source != null && __getOwnPropSymbols$6)
2808
- for (var prop of __getOwnPropSymbols$6(source)) {
2809
- if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
2807
+ if (source != null && __getOwnPropSymbols$8)
2808
+ for (var prop of __getOwnPropSymbols$8(source)) {
2809
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
2810
2810
  target[prop] = source[prop];
2811
2811
  }
2812
2812
  return target;
2813
2813
  };
2814
- var __async$9 = (__this, __arguments, generator) => {
2814
+ var __async$a = (__this, __arguments, generator) => {
2815
2815
  return new Promise((resolve, reject) => {
2816
2816
  var fulfilled = (value) => {
2817
2817
  try {
@@ -2834,7 +2834,7 @@ var __async$9 = (__this, __arguments, generator) => {
2834
2834
  const useUpdateWarehouse = () => {
2835
2835
  const { client } = useShipEngine();
2836
2836
  return useMutation({
2837
- mutationFn: (_a) => __async$9(void 0, null, function* () {
2837
+ mutationFn: (_a) => __async$a(void 0, null, function* () {
2838
2838
  var _b = _a, { warehouseId } = _b, warehouse = __objRest$1(_b, ["warehouseId"]);
2839
2839
  const result = yield client.warehouses.update(warehouseId, warehouse);
2840
2840
  return result.data;
@@ -2854,7 +2854,7 @@ const useGetAccountBillingPlan = () => {
2854
2854
  });
2855
2855
  };
2856
2856
 
2857
- var __async$8 = (__this, __arguments, generator) => {
2857
+ var __async$9 = (__this, __arguments, generator) => {
2858
2858
  return new Promise((resolve, reject) => {
2859
2859
  var fulfilled = (value) => {
2860
2860
  try {
@@ -2877,7 +2877,7 @@ var __async$8 = (__this, __arguments, generator) => {
2877
2877
  const useUpdateAccountBillingPlan = () => {
2878
2878
  const { client } = useShipEngine();
2879
2879
  return useMutation({
2880
- mutationFn: (code) => __async$8(void 0, null, function* () {
2880
+ mutationFn: (code) => __async$9(void 0, null, function* () {
2881
2881
  const result = yield client.accountBillingPlan.update({ code });
2882
2882
  return result.data;
2883
2883
  }),
@@ -2886,6 +2886,86 @@ const useUpdateAccountBillingPlan = () => {
2886
2886
  });
2887
2887
  };
2888
2888
 
2889
+ var __defProp$7 = Object.defineProperty;
2890
+ var __defProps$6 = Object.defineProperties;
2891
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2892
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
2893
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
2894
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
2895
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2896
+ var __spreadValues$7 = (a, b) => {
2897
+ for (var prop in b || (b = {}))
2898
+ if (__hasOwnProp$7.call(b, prop))
2899
+ __defNormalProp$7(a, prop, b[prop]);
2900
+ if (__getOwnPropSymbols$7)
2901
+ for (var prop of __getOwnPropSymbols$7(b)) {
2902
+ if (__propIsEnum$7.call(b, prop))
2903
+ __defNormalProp$7(a, prop, b[prop]);
2904
+ }
2905
+ return a;
2906
+ };
2907
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2908
+ const useGetAccountBilling = (params) => {
2909
+ const { client } = useShipEngine();
2910
+ return useQuery(__spreadProps$6(__spreadValues$7({}, params), {
2911
+ onError,
2912
+ queryFn: () => client.accountBilling.get(),
2913
+ queryKey: ["useGetAccountBilling"],
2914
+ select: (result) => result.data
2915
+ }));
2916
+ };
2917
+
2918
+ var __defProp$6 = Object.defineProperty;
2919
+ var __defProps$5 = Object.defineProperties;
2920
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2921
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
2922
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
2923
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
2924
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2925
+ var __spreadValues$6 = (a, b) => {
2926
+ for (var prop in b || (b = {}))
2927
+ if (__hasOwnProp$6.call(b, prop))
2928
+ __defNormalProp$6(a, prop, b[prop]);
2929
+ if (__getOwnPropSymbols$6)
2930
+ for (var prop of __getOwnPropSymbols$6(b)) {
2931
+ if (__propIsEnum$6.call(b, prop))
2932
+ __defNormalProp$6(a, prop, b[prop]);
2933
+ }
2934
+ return a;
2935
+ };
2936
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
2937
+ var __async$8 = (__this, __arguments, generator) => {
2938
+ return new Promise((resolve, reject) => {
2939
+ var fulfilled = (value) => {
2940
+ try {
2941
+ step(generator.next(value));
2942
+ } catch (e) {
2943
+ reject(e);
2944
+ }
2945
+ };
2946
+ var rejected = (value) => {
2947
+ try {
2948
+ step(generator.throw(value));
2949
+ } catch (e) {
2950
+ reject(e);
2951
+ }
2952
+ };
2953
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
2954
+ step((generator = generator.apply(__this, __arguments)).next());
2955
+ });
2956
+ };
2957
+ const useUpsertAccountBilling = (params) => {
2958
+ const { client } = useShipEngine();
2959
+ return useMutation(__spreadProps$5(__spreadValues$6({}, params), {
2960
+ mutationFn: (billing) => __async$8(void 0, null, function* () {
2961
+ const result = yield client.accountBilling.put(billing);
2962
+ return result.data;
2963
+ }),
2964
+ mutationKey: ["useUpsertAccountBilling"],
2965
+ onError
2966
+ }));
2967
+ };
2968
+
2889
2969
  var __defProp$5 = Object.defineProperty;
2890
2970
  var __defProps$4 = Object.defineProperties;
2891
2971
  var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
@@ -3357,4 +3437,4 @@ const useUpdateWebhook = (params) => {
3357
3437
  }));
3358
3438
  };
3359
3439
 
3360
- export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useValidateAddresses, useVoidLabel };
3440
+ export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };