@shipengine/react-api 2.13.0 → 2.13.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.
@@ -2,3 +2,5 @@ export * from "./use-get-carrier-connection-form";
2
2
  export * from "./use-list-carriers";
3
3
  export * from "./use-connect-carrier-account";
4
4
  export * from "./use-carrier-services-list";
5
+ export * from "./use-get-connections-carrier-settings";
6
+ export * from "./use-update-connections-carrier-settings";
@@ -0,0 +1,10 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ import { QueryPropsRequiredParams } from "../../utilities";
3
+ export type GetConnectionsCarrierSettingsParams<T> = {
4
+ carrierCode: string;
5
+ carrierName: T;
6
+ };
7
+ /**
8
+ * @category ShipEngine API Hooks
9
+ */
10
+ export declare const useGetConnectionsCarrierSettings: <Name extends SE.ConnectionsCarrierName>({ queryFnParams, ...params }: QueryPropsRequiredParams<SE.ConnectionsCarrierSettingsResponse<Name>, GetConnectionsCarrierSettingsParams<Name>>) => import("@tanstack/react-query").UseQueryResult<SE.ConnectionsCarrierSettingsResponse<Name>, SE.CodedError[]>;
@@ -0,0 +1,11 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ import { MutationProps } from "../../utilities";
3
+ export type UpdateConnectionsCarrierParams<Name extends SE.ConnectionsCarrierName> = {
4
+ carrierCode: string;
5
+ carrierName: Name;
6
+ formData: SE.ConnectionsCarrierSettingsData<Name>;
7
+ };
8
+ /**
9
+ * @category ShipEngine API Hooks
10
+ */
11
+ export declare const useUpdateConnectionsCarrierSettings: <Name extends SE.ConnectionsCarrierName>(params?: MutationProps<UpdateConnectionsCarrierParams<Name>, void, SE.CodedError[], unknown> | undefined) => import("@tanstack/react-query").UseMutationResult<void, SE.CodedError[], UpdateConnectionsCarrierParams<Name>, unknown>;
package/index.js CHANGED
@@ -77,25 +77,25 @@ const onError = (_errors) => _default();
77
77
 
78
78
  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}();
79
79
 
80
- var __defProp$7 = Object.defineProperty;
81
- var __defProps$7 = Object.defineProperties;
82
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
83
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
84
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
85
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
86
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
87
- var __spreadValues$7 = (a, b) => {
80
+ var __defProp$9 = Object.defineProperty;
81
+ var __defProps$9 = Object.defineProperties;
82
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
83
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
84
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
85
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
86
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
87
+ var __spreadValues$9 = (a, b) => {
88
88
  for (var prop in b || (b = {}))
89
- if (__hasOwnProp$i.call(b, prop))
90
- __defNormalProp$7(a, prop, b[prop]);
91
- if (__getOwnPropSymbols$i)
92
- for (var prop of __getOwnPropSymbols$i(b)) {
93
- if (__propIsEnum$i.call(b, prop))
94
- __defNormalProp$7(a, prop, b[prop]);
89
+ if (__hasOwnProp$k.call(b, prop))
90
+ __defNormalProp$9(a, prop, b[prop]);
91
+ if (__getOwnPropSymbols$k)
92
+ for (var prop of __getOwnPropSymbols$k(b)) {
93
+ if (__propIsEnum$k.call(b, prop))
94
+ __defNormalProp$9(a, prop, b[prop]);
95
95
  }
96
96
  return a;
97
97
  };
98
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
98
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
99
99
  const streams = [];
100
100
  if (process.env.NODE_ENV === "production") {
101
101
  streams.push({
@@ -104,7 +104,7 @@ if (process.env.NODE_ENV === "production") {
104
104
  }
105
105
  const logger = E({
106
106
  name: "shipengine",
107
- serializers: __spreadProps$7(__spreadValues$7({}, k), {
107
+ serializers: __spreadProps$9(__spreadValues$9({}, k), {
108
108
  req: (req) => ({
109
109
  headers: req.headers,
110
110
  method: req.method,
@@ -129,7 +129,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
129
129
  throw error;
130
130
  });
131
131
 
132
- var __async$G = (__this, __arguments, generator) => {
132
+ var __async$H = (__this, __arguments, generator) => {
133
133
  return new Promise((resolve, reject) => {
134
134
  var fulfilled = (value) => {
135
135
  try {
@@ -152,7 +152,7 @@ var __async$G = (__this, __arguments, generator) => {
152
152
  const useCreateAccountImage = () => {
153
153
  const { client } = useShipEngine();
154
154
  return reactQuery.useMutation({
155
- mutationFn: (data) => __async$G(void 0, null, function* () {
155
+ mutationFn: (data) => __async$H(void 0, null, function* () {
156
156
  const result = yield client.accountSettings.createImage(data);
157
157
  return result.data;
158
158
  }),
@@ -161,7 +161,7 @@ const useCreateAccountImage = () => {
161
161
  });
162
162
  };
163
163
 
164
- var __async$F = (__this, __arguments, generator) => {
164
+ var __async$G = (__this, __arguments, generator) => {
165
165
  return new Promise((resolve, reject) => {
166
166
  var fulfilled = (value) => {
167
167
  try {
@@ -184,7 +184,7 @@ var __async$F = (__this, __arguments, generator) => {
184
184
  const useDeleteAccountImage = () => {
185
185
  const { client } = useShipEngine();
186
186
  return reactQuery.useMutation({
187
- mutationFn: (labelImageId) => __async$F(void 0, null, function* () {
187
+ mutationFn: (labelImageId) => __async$G(void 0, null, function* () {
188
188
  const result = yield client.accountSettings.deleteImage(labelImageId);
189
189
  return result.data;
190
190
  }),
@@ -213,7 +213,7 @@ const useGetAccountSettings = () => {
213
213
  });
214
214
  };
215
215
 
216
- var __async$E = (__this, __arguments, generator) => {
216
+ var __async$F = (__this, __arguments, generator) => {
217
217
  return new Promise((resolve, reject) => {
218
218
  var fulfilled = (value) => {
219
219
  try {
@@ -236,7 +236,7 @@ var __async$E = (__this, __arguments, generator) => {
236
236
  const useUpdateAccountImage = () => {
237
237
  const { client } = useShipEngine();
238
238
  return reactQuery.useMutation({
239
- mutationFn: (data) => __async$E(void 0, null, function* () {
239
+ mutationFn: (data) => __async$F(void 0, null, function* () {
240
240
  const result = yield client.accountSettings.updateImage(data);
241
241
  return result.data;
242
242
  }),
@@ -245,7 +245,7 @@ const useUpdateAccountImage = () => {
245
245
  });
246
246
  };
247
247
 
248
- var __async$D = (__this, __arguments, generator) => {
248
+ var __async$E = (__this, __arguments, generator) => {
249
249
  return new Promise((resolve, reject) => {
250
250
  var fulfilled = (value) => {
251
251
  try {
@@ -268,7 +268,7 @@ var __async$D = (__this, __arguments, generator) => {
268
268
  const useUpdateAccountSettings = () => {
269
269
  const { client } = useShipEngine();
270
270
  return reactQuery.useMutation({
271
- mutationFn: (settings) => __async$D(void 0, null, function* () {
271
+ mutationFn: (settings) => __async$E(void 0, null, function* () {
272
272
  const result = yield client.accountSettings.update(settings);
273
273
  return result.data;
274
274
  }),
@@ -277,7 +277,7 @@ const useUpdateAccountSettings = () => {
277
277
  });
278
278
  };
279
279
 
280
- var __async$C = (__this, __arguments, generator) => {
280
+ var __async$D = (__this, __arguments, generator) => {
281
281
  return new Promise((resolve, reject) => {
282
282
  var fulfilled = (value) => {
283
283
  try {
@@ -300,7 +300,7 @@ var __async$C = (__this, __arguments, generator) => {
300
300
  const useParseAddress = () => {
301
301
  const { client } = useShipEngine();
302
302
  return reactQuery.useMutation({
303
- mutationFn: (_0) => __async$C(void 0, [_0], function* ({ address, text }) {
303
+ mutationFn: (_0) => __async$D(void 0, [_0], function* ({ address, text }) {
304
304
  const result = yield client.addresses.parse(text, address);
305
305
  return result.data;
306
306
  }),
@@ -309,7 +309,7 @@ const useParseAddress = () => {
309
309
  });
310
310
  };
311
311
 
312
- var __async$B = (__this, __arguments, generator) => {
312
+ var __async$C = (__this, __arguments, generator) => {
313
313
  return new Promise((resolve, reject) => {
314
314
  var fulfilled = (value) => {
315
315
  try {
@@ -332,7 +332,7 @@ var __async$B = (__this, __arguments, generator) => {
332
332
  const useValidateAddresses = () => {
333
333
  const { client } = useShipEngine();
334
334
  return reactQuery.useMutation({
335
- mutationFn: (addresses) => __async$B(void 0, null, function* () {
335
+ mutationFn: (addresses) => __async$C(void 0, null, function* () {
336
336
  const result = yield client.addresses.validate(addresses);
337
337
  return result.data;
338
338
  }),
@@ -341,7 +341,7 @@ const useValidateAddresses = () => {
341
341
  });
342
342
  };
343
343
 
344
- var __async$A = (__this, __arguments, generator) => {
344
+ var __async$B = (__this, __arguments, generator) => {
345
345
  return new Promise((resolve, reject) => {
346
346
  var fulfilled = (value) => {
347
347
  try {
@@ -364,7 +364,7 @@ var __async$A = (__this, __arguments, generator) => {
364
364
  const useAddFunds = () => {
365
365
  const { client } = useShipEngine();
366
366
  return reactQuery.useMutation({
367
- mutationFn: (_0) => __async$A(void 0, [_0], function* ({ carrierId, funds }) {
367
+ mutationFn: (_0) => __async$B(void 0, [_0], function* ({ carrierId, funds }) {
368
368
  const result = yield client.carriers.addFunds(carrierId, funds);
369
369
  return result.data;
370
370
  }),
@@ -373,7 +373,7 @@ const useAddFunds = () => {
373
373
  });
374
374
  };
375
375
 
376
- var __async$z = (__this, __arguments, generator) => {
376
+ var __async$A = (__this, __arguments, generator) => {
377
377
  return new Promise((resolve, reject) => {
378
378
  var fulfilled = (value) => {
379
379
  try {
@@ -396,7 +396,7 @@ var __async$z = (__this, __arguments, generator) => {
396
396
  const useConnectCarrier = () => {
397
397
  const { client } = useShipEngine();
398
398
  return reactQuery.useMutation({
399
- mutationFn: (params) => __async$z(void 0, null, function* () {
399
+ mutationFn: (params) => __async$A(void 0, null, function* () {
400
400
  const result = yield client.carriers.connect(params);
401
401
  return result.data;
402
402
  }),
@@ -515,22 +515,22 @@ const useListCarriers = () => {
515
515
  });
516
516
  };
517
517
 
518
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
519
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
520
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
521
- var __objRest$b = (source, exclude) => {
518
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
519
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
520
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
521
+ var __objRest$c = (source, exclude) => {
522
522
  var target = {};
523
523
  for (var prop in source)
524
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
524
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
525
525
  target[prop] = source[prop];
526
- if (source != null && __getOwnPropSymbols$h)
527
- for (var prop of __getOwnPropSymbols$h(source)) {
528
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
526
+ if (source != null && __getOwnPropSymbols$j)
527
+ for (var prop of __getOwnPropSymbols$j(source)) {
528
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
529
529
  target[prop] = source[prop];
530
530
  }
531
531
  return target;
532
532
  };
533
- var __async$y = (__this, __arguments, generator) => {
533
+ var __async$z = (__this, __arguments, generator) => {
534
534
  return new Promise((resolve, reject) => {
535
535
  var fulfilled = (value) => {
536
536
  try {
@@ -554,8 +554,8 @@ const useUpdateAutoFunding = () => {
554
554
  const { client } = useShipEngine();
555
555
  const queryClient = reactQuery.useQueryClient();
556
556
  return reactQuery.useMutation({
557
- mutationFn: (_a) => __async$y(void 0, null, function* () {
558
- var _b = _a, { carrierId } = _b, options = __objRest$b(_b, ["carrierId"]);
557
+ mutationFn: (_a) => __async$z(void 0, null, function* () {
558
+ var _b = _a, { carrierId } = _b, options = __objRest$c(_b, ["carrierId"]);
559
559
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
560
560
  return result.data;
561
561
  }),
@@ -584,7 +584,7 @@ const useGetZonesByCarrier = (carrierId) => {
584
584
  });
585
585
  };
586
586
 
587
- var __async$x = (__this, __arguments, generator) => {
587
+ var __async$y = (__this, __arguments, generator) => {
588
588
  return new Promise((resolve, reject) => {
589
589
  var fulfilled = (value) => {
590
590
  try {
@@ -607,7 +607,7 @@ var __async$x = (__this, __arguments, generator) => {
607
607
  const useDeleteCarrier = () => {
608
608
  const { client } = useShipEngine();
609
609
  return reactQuery.useMutation({
610
- mutationFn: (carrierId) => __async$x(void 0, null, function* () {
610
+ mutationFn: (carrierId) => __async$y(void 0, null, function* () {
611
611
  const result = yield client.carriers.delete(carrierId);
612
612
  return result.data;
613
613
  }),
@@ -616,24 +616,24 @@ const useDeleteCarrier = () => {
616
616
  });
617
617
  };
618
618
 
619
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
620
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
621
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
622
- var __objRest$a = (source, exclude) => {
619
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
620
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
621
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
622
+ var __objRest$b = (source, exclude) => {
623
623
  var target = {};
624
624
  for (var prop in source)
625
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
625
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
626
626
  target[prop] = source[prop];
627
- if (source != null && __getOwnPropSymbols$g)
628
- for (var prop of __getOwnPropSymbols$g(source)) {
629
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
627
+ if (source != null && __getOwnPropSymbols$i)
628
+ for (var prop of __getOwnPropSymbols$i(source)) {
629
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
630
630
  target[prop] = source[prop];
631
631
  }
632
632
  return target;
633
633
  };
634
634
  const useGetCarrierConnectionForm = (_params) => {
635
635
  const { client } = useShipEngine();
636
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$a(_a, ["carrierName", "enabled"]);
636
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$b(_a, ["carrierName", "enabled"]);
637
637
  return reactQuery.useQuery({
638
638
  enabled,
639
639
  onError,
@@ -643,24 +643,24 @@ const useGetCarrierConnectionForm = (_params) => {
643
643
  });
644
644
  };
645
645
 
646
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
647
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
648
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
649
- var __objRest$9 = (source, exclude) => {
646
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
647
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
648
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
649
+ var __objRest$a = (source, exclude) => {
650
650
  var target = {};
651
651
  for (var prop in source)
652
- if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
652
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
653
653
  target[prop] = source[prop];
654
- if (source != null && __getOwnPropSymbols$f)
655
- for (var prop of __getOwnPropSymbols$f(source)) {
656
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
654
+ if (source != null && __getOwnPropSymbols$h)
655
+ for (var prop of __getOwnPropSymbols$h(source)) {
656
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
657
657
  target[prop] = source[prop];
658
658
  }
659
659
  return target;
660
660
  };
661
661
  const useListCarrierConnections = (_params) => {
662
662
  const { client } = useShipEngine();
663
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$9(_a, ["enabled"]);
663
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$a(_a, ["enabled"]);
664
664
  return reactQuery.useQuery({
665
665
  enabled,
666
666
  onError,
@@ -670,7 +670,7 @@ const useListCarrierConnections = (_params) => {
670
670
  });
671
671
  };
672
672
 
673
- var __async$w = (__this, __arguments, generator) => {
673
+ var __async$x = (__this, __arguments, generator) => {
674
674
  return new Promise((resolve, reject) => {
675
675
  var fulfilled = (value) => {
676
676
  try {
@@ -693,7 +693,7 @@ var __async$w = (__this, __arguments, generator) => {
693
693
  const useConnectCarrierAccount = () => {
694
694
  const { client } = useShipEngine();
695
695
  return reactQuery.useMutation({
696
- mutationFn: (_0) => __async$w(void 0, [_0], function* ({ carrierName, formData }) {
696
+ mutationFn: (_0) => __async$x(void 0, [_0], function* ({ carrierName, formData }) {
697
697
  const result = yield client.connections.connectCarrier(carrierName, formData);
698
698
  return result.data;
699
699
  }),
@@ -713,6 +713,112 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
713
713
  });
714
714
  };
715
715
 
716
+ var __defProp$8 = Object.defineProperty;
717
+ var __defProps$8 = Object.defineProperties;
718
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
719
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
720
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
721
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
722
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
723
+ var __spreadValues$8 = (a, b) => {
724
+ for (var prop in b || (b = {}))
725
+ if (__hasOwnProp$g.call(b, prop))
726
+ __defNormalProp$8(a, prop, b[prop]);
727
+ if (__getOwnPropSymbols$g)
728
+ for (var prop of __getOwnPropSymbols$g(b)) {
729
+ if (__propIsEnum$g.call(b, prop))
730
+ __defNormalProp$8(a, prop, b[prop]);
731
+ }
732
+ return a;
733
+ };
734
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
735
+ var __objRest$9 = (source, exclude) => {
736
+ var target = {};
737
+ for (var prop in source)
738
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
739
+ target[prop] = source[prop];
740
+ if (source != null && __getOwnPropSymbols$g)
741
+ for (var prop of __getOwnPropSymbols$g(source)) {
742
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
743
+ target[prop] = source[prop];
744
+ }
745
+ return target;
746
+ };
747
+ const useGetConnectionsCarrierSettings = (_a) => {
748
+ var _b = _a, {
749
+ queryFnParams
750
+ } = _b, params = __objRest$9(_b, [
751
+ "queryFnParams"
752
+ ]);
753
+ const { client } = useShipEngine();
754
+ const { carrierName, carrierCode } = queryFnParams;
755
+ return reactQuery.useQuery(__spreadProps$8(__spreadValues$8({}, params), {
756
+ onError,
757
+ queryFn: () => client.connections.getCarrierSettings(carrierName, carrierCode),
758
+ queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierCode],
759
+ select: (result) => result.data
760
+ }));
761
+ };
762
+
763
+ var __defProp$7 = Object.defineProperty;
764
+ var __defProps$7 = Object.defineProperties;
765
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
766
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
767
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
768
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
769
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
770
+ var __spreadValues$7 = (a, b) => {
771
+ for (var prop in b || (b = {}))
772
+ if (__hasOwnProp$f.call(b, prop))
773
+ __defNormalProp$7(a, prop, b[prop]);
774
+ if (__getOwnPropSymbols$f)
775
+ for (var prop of __getOwnPropSymbols$f(b)) {
776
+ if (__propIsEnum$f.call(b, prop))
777
+ __defNormalProp$7(a, prop, b[prop]);
778
+ }
779
+ return a;
780
+ };
781
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
782
+ var __async$w = (__this, __arguments, generator) => {
783
+ return new Promise((resolve, reject) => {
784
+ var fulfilled = (value) => {
785
+ try {
786
+ step(generator.next(value));
787
+ } catch (e) {
788
+ reject(e);
789
+ }
790
+ };
791
+ var rejected = (value) => {
792
+ try {
793
+ step(generator.throw(value));
794
+ } catch (e) {
795
+ reject(e);
796
+ }
797
+ };
798
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
799
+ step((generator = generator.apply(__this, __arguments)).next());
800
+ });
801
+ };
802
+ const useUpdateConnectionsCarrierSettings = (params) => {
803
+ const { client } = useShipEngine();
804
+ return reactQuery.useMutation(__spreadProps$7(__spreadValues$7({}, params), {
805
+ mutationFn: (_0) => __async$w(void 0, [_0], function* ({
806
+ carrierName,
807
+ carrierCode,
808
+ formData
809
+ }) {
810
+ const result = yield client.connections.updateCarrierSettings(
811
+ carrierName,
812
+ carrierCode,
813
+ formData
814
+ );
815
+ return result.data;
816
+ }),
817
+ mutationKey: ["useUpdateConnectionsCarrierSettings"],
818
+ onError
819
+ }));
820
+ };
821
+
716
822
  const useListCustomPackageTypes = () => {
717
823
  const { client } = useShipEngine();
718
824
  return reactQuery.useQuery({
@@ -2484,6 +2590,7 @@ exports.useGetAccountSettings = useGetAccountSettings;
2484
2590
  exports.useGetAutoFundingConfiguration = useGetAutoFundingConfiguration;
2485
2591
  exports.useGetCarrierById = useGetCarrierById;
2486
2592
  exports.useGetCarrierConnectionForm = useGetCarrierConnectionForm;
2593
+ exports.useGetConnectionsCarrierSettings = useGetConnectionsCarrierSettings;
2487
2594
  exports.useGetCountriesByCarrier = useGetCountriesByCarrier;
2488
2595
  exports.useGetCurrenciesByCarrier = useGetCurrenciesByCarrier;
2489
2596
  exports.useGetFundingSourceById = useGetFundingSourceById;
@@ -2532,6 +2639,7 @@ exports.useUpdateAccountBillingPlan = useUpdateAccountBillingPlan;
2532
2639
  exports.useUpdateAccountImage = useUpdateAccountImage;
2533
2640
  exports.useUpdateAccountSettings = useUpdateAccountSettings;
2534
2641
  exports.useUpdateAutoFunding = useUpdateAutoFunding;
2642
+ exports.useUpdateConnectionsCarrierSettings = useUpdateConnectionsCarrierSettings;
2535
2643
  exports.useUpdateFundingSource = useUpdateFundingSource;
2536
2644
  exports.useUpdateRateCard = useUpdateRateCard;
2537
2645
  exports.useUpdateSalesOrderShipment = useUpdateSalesOrderShipment;
package/index.mjs CHANGED
@@ -74,25 +74,25 @@ const onError = (_errors) => _default();
74
74
 
75
75
  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}();
76
76
 
77
- var __defProp$7 = Object.defineProperty;
78
- var __defProps$7 = Object.defineProperties;
79
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
80
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
81
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
82
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
83
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
84
- var __spreadValues$7 = (a, b) => {
77
+ var __defProp$9 = Object.defineProperty;
78
+ var __defProps$9 = Object.defineProperties;
79
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
80
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
81
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
82
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
83
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
84
+ var __spreadValues$9 = (a, b) => {
85
85
  for (var prop in b || (b = {}))
86
- if (__hasOwnProp$i.call(b, prop))
87
- __defNormalProp$7(a, prop, b[prop]);
88
- if (__getOwnPropSymbols$i)
89
- for (var prop of __getOwnPropSymbols$i(b)) {
90
- if (__propIsEnum$i.call(b, prop))
91
- __defNormalProp$7(a, prop, b[prop]);
86
+ if (__hasOwnProp$k.call(b, prop))
87
+ __defNormalProp$9(a, prop, b[prop]);
88
+ if (__getOwnPropSymbols$k)
89
+ for (var prop of __getOwnPropSymbols$k(b)) {
90
+ if (__propIsEnum$k.call(b, prop))
91
+ __defNormalProp$9(a, prop, b[prop]);
92
92
  }
93
93
  return a;
94
94
  };
95
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
95
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
96
96
  const streams = [];
97
97
  if (process.env.NODE_ENV === "production") {
98
98
  streams.push({
@@ -101,7 +101,7 @@ if (process.env.NODE_ENV === "production") {
101
101
  }
102
102
  const logger = E({
103
103
  name: "shipengine",
104
- serializers: __spreadProps$7(__spreadValues$7({}, k), {
104
+ serializers: __spreadProps$9(__spreadValues$9({}, k), {
105
105
  req: (req) => ({
106
106
  headers: req.headers,
107
107
  method: req.method,
@@ -126,7 +126,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
126
126
  throw error;
127
127
  });
128
128
 
129
- var __async$G = (__this, __arguments, generator) => {
129
+ var __async$H = (__this, __arguments, generator) => {
130
130
  return new Promise((resolve, reject) => {
131
131
  var fulfilled = (value) => {
132
132
  try {
@@ -149,7 +149,7 @@ var __async$G = (__this, __arguments, generator) => {
149
149
  const useCreateAccountImage = () => {
150
150
  const { client } = useShipEngine();
151
151
  return useMutation({
152
- mutationFn: (data) => __async$G(void 0, null, function* () {
152
+ mutationFn: (data) => __async$H(void 0, null, function* () {
153
153
  const result = yield client.accountSettings.createImage(data);
154
154
  return result.data;
155
155
  }),
@@ -158,7 +158,7 @@ const useCreateAccountImage = () => {
158
158
  });
159
159
  };
160
160
 
161
- var __async$F = (__this, __arguments, generator) => {
161
+ var __async$G = (__this, __arguments, generator) => {
162
162
  return new Promise((resolve, reject) => {
163
163
  var fulfilled = (value) => {
164
164
  try {
@@ -181,7 +181,7 @@ var __async$F = (__this, __arguments, generator) => {
181
181
  const useDeleteAccountImage = () => {
182
182
  const { client } = useShipEngine();
183
183
  return useMutation({
184
- mutationFn: (labelImageId) => __async$F(void 0, null, function* () {
184
+ mutationFn: (labelImageId) => __async$G(void 0, null, function* () {
185
185
  const result = yield client.accountSettings.deleteImage(labelImageId);
186
186
  return result.data;
187
187
  }),
@@ -210,7 +210,7 @@ const useGetAccountSettings = () => {
210
210
  });
211
211
  };
212
212
 
213
- var __async$E = (__this, __arguments, generator) => {
213
+ var __async$F = (__this, __arguments, generator) => {
214
214
  return new Promise((resolve, reject) => {
215
215
  var fulfilled = (value) => {
216
216
  try {
@@ -233,7 +233,7 @@ var __async$E = (__this, __arguments, generator) => {
233
233
  const useUpdateAccountImage = () => {
234
234
  const { client } = useShipEngine();
235
235
  return useMutation({
236
- mutationFn: (data) => __async$E(void 0, null, function* () {
236
+ mutationFn: (data) => __async$F(void 0, null, function* () {
237
237
  const result = yield client.accountSettings.updateImage(data);
238
238
  return result.data;
239
239
  }),
@@ -242,7 +242,7 @@ const useUpdateAccountImage = () => {
242
242
  });
243
243
  };
244
244
 
245
- var __async$D = (__this, __arguments, generator) => {
245
+ var __async$E = (__this, __arguments, generator) => {
246
246
  return new Promise((resolve, reject) => {
247
247
  var fulfilled = (value) => {
248
248
  try {
@@ -265,7 +265,7 @@ var __async$D = (__this, __arguments, generator) => {
265
265
  const useUpdateAccountSettings = () => {
266
266
  const { client } = useShipEngine();
267
267
  return useMutation({
268
- mutationFn: (settings) => __async$D(void 0, null, function* () {
268
+ mutationFn: (settings) => __async$E(void 0, null, function* () {
269
269
  const result = yield client.accountSettings.update(settings);
270
270
  return result.data;
271
271
  }),
@@ -274,7 +274,7 @@ const useUpdateAccountSettings = () => {
274
274
  });
275
275
  };
276
276
 
277
- var __async$C = (__this, __arguments, generator) => {
277
+ var __async$D = (__this, __arguments, generator) => {
278
278
  return new Promise((resolve, reject) => {
279
279
  var fulfilled = (value) => {
280
280
  try {
@@ -297,7 +297,7 @@ var __async$C = (__this, __arguments, generator) => {
297
297
  const useParseAddress = () => {
298
298
  const { client } = useShipEngine();
299
299
  return useMutation({
300
- mutationFn: (_0) => __async$C(void 0, [_0], function* ({ address, text }) {
300
+ mutationFn: (_0) => __async$D(void 0, [_0], function* ({ address, text }) {
301
301
  const result = yield client.addresses.parse(text, address);
302
302
  return result.data;
303
303
  }),
@@ -306,7 +306,7 @@ const useParseAddress = () => {
306
306
  });
307
307
  };
308
308
 
309
- var __async$B = (__this, __arguments, generator) => {
309
+ var __async$C = (__this, __arguments, generator) => {
310
310
  return new Promise((resolve, reject) => {
311
311
  var fulfilled = (value) => {
312
312
  try {
@@ -329,7 +329,7 @@ var __async$B = (__this, __arguments, generator) => {
329
329
  const useValidateAddresses = () => {
330
330
  const { client } = useShipEngine();
331
331
  return useMutation({
332
- mutationFn: (addresses) => __async$B(void 0, null, function* () {
332
+ mutationFn: (addresses) => __async$C(void 0, null, function* () {
333
333
  const result = yield client.addresses.validate(addresses);
334
334
  return result.data;
335
335
  }),
@@ -338,7 +338,7 @@ const useValidateAddresses = () => {
338
338
  });
339
339
  };
340
340
 
341
- var __async$A = (__this, __arguments, generator) => {
341
+ var __async$B = (__this, __arguments, generator) => {
342
342
  return new Promise((resolve, reject) => {
343
343
  var fulfilled = (value) => {
344
344
  try {
@@ -361,7 +361,7 @@ var __async$A = (__this, __arguments, generator) => {
361
361
  const useAddFunds = () => {
362
362
  const { client } = useShipEngine();
363
363
  return useMutation({
364
- mutationFn: (_0) => __async$A(void 0, [_0], function* ({ carrierId, funds }) {
364
+ mutationFn: (_0) => __async$B(void 0, [_0], function* ({ carrierId, funds }) {
365
365
  const result = yield client.carriers.addFunds(carrierId, funds);
366
366
  return result.data;
367
367
  }),
@@ -370,7 +370,7 @@ const useAddFunds = () => {
370
370
  });
371
371
  };
372
372
 
373
- var __async$z = (__this, __arguments, generator) => {
373
+ var __async$A = (__this, __arguments, generator) => {
374
374
  return new Promise((resolve, reject) => {
375
375
  var fulfilled = (value) => {
376
376
  try {
@@ -393,7 +393,7 @@ var __async$z = (__this, __arguments, generator) => {
393
393
  const useConnectCarrier = () => {
394
394
  const { client } = useShipEngine();
395
395
  return useMutation({
396
- mutationFn: (params) => __async$z(void 0, null, function* () {
396
+ mutationFn: (params) => __async$A(void 0, null, function* () {
397
397
  const result = yield client.carriers.connect(params);
398
398
  return result.data;
399
399
  }),
@@ -512,22 +512,22 @@ const useListCarriers = () => {
512
512
  });
513
513
  };
514
514
 
515
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
516
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
517
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
518
- var __objRest$b = (source, exclude) => {
515
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
516
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
517
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
518
+ var __objRest$c = (source, exclude) => {
519
519
  var target = {};
520
520
  for (var prop in source)
521
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
521
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
522
522
  target[prop] = source[prop];
523
- if (source != null && __getOwnPropSymbols$h)
524
- for (var prop of __getOwnPropSymbols$h(source)) {
525
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
523
+ if (source != null && __getOwnPropSymbols$j)
524
+ for (var prop of __getOwnPropSymbols$j(source)) {
525
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
526
526
  target[prop] = source[prop];
527
527
  }
528
528
  return target;
529
529
  };
530
- var __async$y = (__this, __arguments, generator) => {
530
+ var __async$z = (__this, __arguments, generator) => {
531
531
  return new Promise((resolve, reject) => {
532
532
  var fulfilled = (value) => {
533
533
  try {
@@ -551,8 +551,8 @@ const useUpdateAutoFunding = () => {
551
551
  const { client } = useShipEngine();
552
552
  const queryClient = useQueryClient();
553
553
  return useMutation({
554
- mutationFn: (_a) => __async$y(void 0, null, function* () {
555
- var _b = _a, { carrierId } = _b, options = __objRest$b(_b, ["carrierId"]);
554
+ mutationFn: (_a) => __async$z(void 0, null, function* () {
555
+ var _b = _a, { carrierId } = _b, options = __objRest$c(_b, ["carrierId"]);
556
556
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
557
557
  return result.data;
558
558
  }),
@@ -581,7 +581,7 @@ const useGetZonesByCarrier = (carrierId) => {
581
581
  });
582
582
  };
583
583
 
584
- var __async$x = (__this, __arguments, generator) => {
584
+ var __async$y = (__this, __arguments, generator) => {
585
585
  return new Promise((resolve, reject) => {
586
586
  var fulfilled = (value) => {
587
587
  try {
@@ -604,7 +604,7 @@ var __async$x = (__this, __arguments, generator) => {
604
604
  const useDeleteCarrier = () => {
605
605
  const { client } = useShipEngine();
606
606
  return useMutation({
607
- mutationFn: (carrierId) => __async$x(void 0, null, function* () {
607
+ mutationFn: (carrierId) => __async$y(void 0, null, function* () {
608
608
  const result = yield client.carriers.delete(carrierId);
609
609
  return result.data;
610
610
  }),
@@ -613,24 +613,24 @@ const useDeleteCarrier = () => {
613
613
  });
614
614
  };
615
615
 
616
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
617
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
618
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
619
- var __objRest$a = (source, exclude) => {
616
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
617
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
618
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
619
+ var __objRest$b = (source, exclude) => {
620
620
  var target = {};
621
621
  for (var prop in source)
622
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
622
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
623
623
  target[prop] = source[prop];
624
- if (source != null && __getOwnPropSymbols$g)
625
- for (var prop of __getOwnPropSymbols$g(source)) {
626
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
624
+ if (source != null && __getOwnPropSymbols$i)
625
+ for (var prop of __getOwnPropSymbols$i(source)) {
626
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
627
627
  target[prop] = source[prop];
628
628
  }
629
629
  return target;
630
630
  };
631
631
  const useGetCarrierConnectionForm = (_params) => {
632
632
  const { client } = useShipEngine();
633
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$a(_a, ["carrierName", "enabled"]);
633
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$b(_a, ["carrierName", "enabled"]);
634
634
  return useQuery({
635
635
  enabled,
636
636
  onError,
@@ -640,24 +640,24 @@ const useGetCarrierConnectionForm = (_params) => {
640
640
  });
641
641
  };
642
642
 
643
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
644
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
645
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
646
- var __objRest$9 = (source, exclude) => {
643
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
644
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
645
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
646
+ var __objRest$a = (source, exclude) => {
647
647
  var target = {};
648
648
  for (var prop in source)
649
- if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
649
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
650
650
  target[prop] = source[prop];
651
- if (source != null && __getOwnPropSymbols$f)
652
- for (var prop of __getOwnPropSymbols$f(source)) {
653
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
651
+ if (source != null && __getOwnPropSymbols$h)
652
+ for (var prop of __getOwnPropSymbols$h(source)) {
653
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
654
654
  target[prop] = source[prop];
655
655
  }
656
656
  return target;
657
657
  };
658
658
  const useListCarrierConnections = (_params) => {
659
659
  const { client } = useShipEngine();
660
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$9(_a, ["enabled"]);
660
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$a(_a, ["enabled"]);
661
661
  return useQuery({
662
662
  enabled,
663
663
  onError,
@@ -667,7 +667,7 @@ const useListCarrierConnections = (_params) => {
667
667
  });
668
668
  };
669
669
 
670
- var __async$w = (__this, __arguments, generator) => {
670
+ var __async$x = (__this, __arguments, generator) => {
671
671
  return new Promise((resolve, reject) => {
672
672
  var fulfilled = (value) => {
673
673
  try {
@@ -690,7 +690,7 @@ var __async$w = (__this, __arguments, generator) => {
690
690
  const useConnectCarrierAccount = () => {
691
691
  const { client } = useShipEngine();
692
692
  return useMutation({
693
- mutationFn: (_0) => __async$w(void 0, [_0], function* ({ carrierName, formData }) {
693
+ mutationFn: (_0) => __async$x(void 0, [_0], function* ({ carrierName, formData }) {
694
694
  const result = yield client.connections.connectCarrier(carrierName, formData);
695
695
  return result.data;
696
696
  }),
@@ -710,6 +710,112 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
710
710
  });
711
711
  };
712
712
 
713
+ var __defProp$8 = Object.defineProperty;
714
+ var __defProps$8 = Object.defineProperties;
715
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
716
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
717
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
718
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
719
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
720
+ var __spreadValues$8 = (a, b) => {
721
+ for (var prop in b || (b = {}))
722
+ if (__hasOwnProp$g.call(b, prop))
723
+ __defNormalProp$8(a, prop, b[prop]);
724
+ if (__getOwnPropSymbols$g)
725
+ for (var prop of __getOwnPropSymbols$g(b)) {
726
+ if (__propIsEnum$g.call(b, prop))
727
+ __defNormalProp$8(a, prop, b[prop]);
728
+ }
729
+ return a;
730
+ };
731
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
732
+ var __objRest$9 = (source, exclude) => {
733
+ var target = {};
734
+ for (var prop in source)
735
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
736
+ target[prop] = source[prop];
737
+ if (source != null && __getOwnPropSymbols$g)
738
+ for (var prop of __getOwnPropSymbols$g(source)) {
739
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
740
+ target[prop] = source[prop];
741
+ }
742
+ return target;
743
+ };
744
+ const useGetConnectionsCarrierSettings = (_a) => {
745
+ var _b = _a, {
746
+ queryFnParams
747
+ } = _b, params = __objRest$9(_b, [
748
+ "queryFnParams"
749
+ ]);
750
+ const { client } = useShipEngine();
751
+ const { carrierName, carrierCode } = queryFnParams;
752
+ return useQuery(__spreadProps$8(__spreadValues$8({}, params), {
753
+ onError,
754
+ queryFn: () => client.connections.getCarrierSettings(carrierName, carrierCode),
755
+ queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierCode],
756
+ select: (result) => result.data
757
+ }));
758
+ };
759
+
760
+ var __defProp$7 = Object.defineProperty;
761
+ var __defProps$7 = Object.defineProperties;
762
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
763
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
764
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
765
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
766
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
767
+ var __spreadValues$7 = (a, b) => {
768
+ for (var prop in b || (b = {}))
769
+ if (__hasOwnProp$f.call(b, prop))
770
+ __defNormalProp$7(a, prop, b[prop]);
771
+ if (__getOwnPropSymbols$f)
772
+ for (var prop of __getOwnPropSymbols$f(b)) {
773
+ if (__propIsEnum$f.call(b, prop))
774
+ __defNormalProp$7(a, prop, b[prop]);
775
+ }
776
+ return a;
777
+ };
778
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
779
+ var __async$w = (__this, __arguments, generator) => {
780
+ return new Promise((resolve, reject) => {
781
+ var fulfilled = (value) => {
782
+ try {
783
+ step(generator.next(value));
784
+ } catch (e) {
785
+ reject(e);
786
+ }
787
+ };
788
+ var rejected = (value) => {
789
+ try {
790
+ step(generator.throw(value));
791
+ } catch (e) {
792
+ reject(e);
793
+ }
794
+ };
795
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
796
+ step((generator = generator.apply(__this, __arguments)).next());
797
+ });
798
+ };
799
+ const useUpdateConnectionsCarrierSettings = (params) => {
800
+ const { client } = useShipEngine();
801
+ return useMutation(__spreadProps$7(__spreadValues$7({}, params), {
802
+ mutationFn: (_0) => __async$w(void 0, [_0], function* ({
803
+ carrierName,
804
+ carrierCode,
805
+ formData
806
+ }) {
807
+ const result = yield client.connections.updateCarrierSettings(
808
+ carrierName,
809
+ carrierCode,
810
+ formData
811
+ );
812
+ return result.data;
813
+ }),
814
+ mutationKey: ["useUpdateConnectionsCarrierSettings"],
815
+ onError
816
+ }));
817
+ };
818
+
713
819
  const useListCustomPackageTypes = () => {
714
820
  const { client } = useShipEngine();
715
821
  return useQuery({
@@ -2442,4 +2548,4 @@ const useUpdateWebhook = (params) => {
2442
2548
  }));
2443
2549
  };
2444
2550
 
2445
- export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useCalculateRates, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListSandboxSellerIds, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useValidateAddresses, useVoidLabel };
2551
+ export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useCalculateRates, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListSandboxSellerIds, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useValidateAddresses, useVoidLabel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/react-api",
3
- "version": "2.13.0",
3
+ "version": "2.13.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {