@shipengine/react-api 4.2.1 → 4.3.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/hooks/labels/index.d.ts +1 -1
- package/hooks/labels/use-export-labels.d.ts +7 -0
- package/hooks/shipments/index.d.ts +1 -1
- package/hooks/shipments/use-export-shipments.d.ts +7 -0
- package/index.js +120 -100
- package/index.mjs +119 -99
- package/package.json +1 -1
- package/hooks/labels/use-download-labels.d.ts +0 -7
- package/hooks/shipments/use-download-shipments.d.ts +0 -7
package/hooks/labels/index.d.ts
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ExportLabelsParams } from "@shipengine/js-api";
|
|
2
|
+
import { QueryProps } from "../../utilities";
|
|
3
|
+
/**
|
|
4
|
+
* @category ShipEngine API Hooks
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export declare const useExportLabels: (params?: QueryProps<Blob, ExportLabelsParams>) => import("@tanstack/react-query").UseQueryResult<import("axios").AxiosResponse<Blob, any>, import("@shipengine/js-api").CodedError[]>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ExportShipmentsParams } from "@shipengine/js-api";
|
|
2
|
+
import { QueryProps } from "../../utilities";
|
|
3
|
+
/**
|
|
4
|
+
* @category ShipEngine API Hooks
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export declare const useExportShipments: (params?: QueryProps<Blob, ExportShipmentsParams>) => import("@tanstack/react-query").UseQueryResult<import("axios").AxiosResponse<Blob, any>, import("@shipengine/js-api").CodedError[]>;
|
package/index.js
CHANGED
|
@@ -79,25 +79,25 @@ const onError = (_errors) => _default();
|
|
|
79
79
|
|
|
80
80
|
var o={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},l={};function a(e){return "string"==typeof e?o[e.toLowerCase()]:e}function c(e,r){return c=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},c(e,r)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return !1}}function f(e,r,t){return f=u()?Reflect.construct:function(e,r,t){var s=[null];s.push.apply(s,r);var i=new(Function.bind.apply(e,s));return t&&c(i,t.prototype),i},f.apply(null,arguments)}function h(e){if(null==e)return e;if(Array.isArray(e))return e.slice();if("object"==typeof e){var r={};return Object.keys(e).forEach(function(t){r[t]=e[t];}),r}return e}function v(e){return void 0===e?"undefined":null===e?"null":Array.isArray(e)?"[ "+e.map(function(e){return v(e)}).join(", ")+" ]":"object"==typeof e?JSON.stringify(e):"function"==typeof e?"[Function: "+e.name+"]":"boolean"==typeof e||"number"==typeof e?e:"'"+e.toString()+"'"}function p(e){if("string"!=typeof e){for(var r=new Array(arguments.length),t=0;t<arguments.length;t++)r[t]=v(arguments[t]);return r.join(" ")}for(var s=/%[sdj%]/g,i=1,n=arguments,o=n.length,l=String(e).replace(s,function(e){if("%%"===e)return "%";if(i>=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return "[Circular]"}default:return e}}),a=n[i];i<o;a=n[++i])l+=null===a||"object"!=typeof a?" "+a:" "+v(a);return l}function m(e,r){var t=e.split("\n");t[0]&&t[0].indexOf("call-stack-error")>=0&&t.shift();var s=t[r],i=null;if(s){var n=/^\s*(at|.*@)\s*(.+)?$/.exec(s);i=Array.isArray(n)&&n[2]?n[2]:s;}return i}Object.keys(o).forEach(function(e){l[o[e]]=e;});var y={};function d(e,r){if(r){if(y[r])return;y[r]=!0;}console.error(e+"\n");}function g(e){return y[e]}function w(){var e=[];return function(r,t){return t&&"object"==typeof t?-1!==e.indexOf(t)?"[Circular]":(e.push(t),t):t}}var b=/*#__PURE__*/function(){function e(){}return e.prototype.write=function(e){e.level<30?console.log(e):e.level<40?console.info(e):e.level<50?console.warn(e):console.error(e),e.err&&e.err.stack&&console.error(e.err.stack),e.obj&&console.log(e.obj);},e}(),j=/*#__PURE__*/function(){function e(r,t,s){var i,n,o,l,a=this;if(!(this instanceof e))return new e(r,t);if(void 0!==t&&(i=r,r=t,!(i instanceof e)))throw new TypeError("invalid Logger creation: do not pass a second arg");if(!r)throw new TypeError("options (object) is required");if(i){if(r.name)throw new TypeError("invalid options.name: child cannot set logger name")}else if(!r.name)throw new TypeError("options.name (string) is required");if(r.stream&&r.streams)throw new TypeError('cannot mix "streams" and "stream" options');if(r.streams&&!Array.isArray(r.streams))throw new TypeError("invalid options.streams: must be an array");if(r.serializers&&("object"!=typeof r.serializers||Array.isArray(r.serializers)))throw new TypeError("invalid options.serializers: must be an object");if(i&&s){this._level=i._level,this.streams=i.streams,this.serializers=i.serializers,this.src=i.src,n=this.fields={};var c=Object.keys(i.fields);for(l=0;l<c.length;l++)n[o=c[l]]=i.fields[o];var u=Object.keys(r);for(l=0;l<u.length;l++)n[o=u[l]]=r[o];}else {if(i){for(this._level=i._level,this.streams=[],l=0;l<i.streams.length;l++){var f=h(i.streams[l]);this.streams.push(f);}this.serializers=h(i.serializers),this.src=i.src,this.fields=h(i.fields),r.level&&this.level(r.level);}else this._level=Number.POSITIVE_INFINITY,this.streams=[],this.serializers=null,this.src=!1,this.fields={};r.stream?this.addStream({type:"stream",stream:r.stream,level:r.level}):r.streams?r.streams.forEach(function(e){a.addStream(e,r.level);}):i&&r.level?this.level(r.level):i||this.addStream({type:"raw",stream:new b,level:r.level}),r.serializers&&this.addSerializers(r.serializers),r.src&&(this.src=!0),delete(n=h(r)).stream,delete n.level,delete n.streams,delete n.serializers,delete n.src,this.serializers&&this._applySerializers(n),Object.keys(n).forEach(function(e){a.fields[e]=n[e];});}}var r=e.prototype;return r.addStream=function(e,r){void 0===r&&(r=30),(e=h(e)).type="raw",e.level=a(e.level||r),e.level<this._level&&(this._level=e.level),this.streams.push(e),delete this.haveNonRawStreams;},r.addSerializers=function(e){var r=this;this.serializers||(this.serializers={}),Object.keys(e).forEach(function(t){var s=e[t];if("function"!=typeof s)throw new TypeError(p('invalid serializer for "%s" field: must be a function',t));r.serializers[t]=s;});},r.child=function(e,r){return new this.constructor(this,e||{},r)},r.level=function(e){if(void 0===e)return this._level;for(var r=a(e),t=this.streams.length,s=0;s<t;s++)this.streams[s].level=r;this._level=r;},r.levels=function(e,r){if(void 0===e)return this.streams.map(function(e){return e.level});var t;if("number"==typeof e){if(void 0===(t=this.streams[e]))throw new Error("invalid stream index: "+e)}else {for(var s=this.streams.length,i=0;i<s;i++){var n=this.streams[i];if(n.name===e){t=n;break}}if(!t)throw new Error(p('no stream with name "%s"',e))}if(void 0===r)return t.level;var o=a(r);t.level=o,o<this._level&&(this._level=o);},r._applySerializers=function(e,r){var t=this;Object.keys(this.serializers).forEach(function(s){if(!(void 0===e[s]||r&&r[s]))try{e[s]=t.serializers[s](e[s]);}catch(r){d(p('bunyan: ERROR: Exception thrown from the "%s" Bunyan serializer. This should never happen. This is a bugin that serializer function.\n%s',s,r.stack||r)),e[s]=p('(Error in Bunyan log "%s" serializer broke field. See stderr for details.)',s);}});},r._emit=function(e,r){var t,s;if(void 0===this.haveNonRawStreams)for(this.haveNonRawStreams=!1,t=0;t<this.streams.length;t++)if(!this.streams[t].raw){this.haveNonRawStreams=!0;break}if(r||this.haveNonRawStreams)try{s=JSON.stringify(e,w())+"\n";}catch(r){var i=r.stack.split(/\n/g,2).join("\n");d('bunyan: ERROR: Exception in `JSON.stringify(rec)`. You can install the "safe-json-stringify" module to have Bunyan fallback to safer stringification. Record:\n'+function(e,r){return r||(r=" "),r+e.split(/\r?\n/g).join("\n"+r)}(p("%s\n%s",e,r.stack)),i),s=p("(Exception in JSON.stringify(rec): %j. See stderr for details.)\n",r.message);}if(r)return s;var n=e.level;for(t=0;t<this.streams.length;t++){var o=this.streams[t];o.level<=n&&o.stream.write(e);}return s},e}();function z(e){return function(){var r=this;function t(t){var n;t[0]instanceof Error?(s={err:r.serializers&&r.serializers.err?r.serializers.err(t[0]):k.err(t[0])},n={err:!0},i=1===t.length?[s.err.message]:Array.prototype.slice.call(t,1)):"object"!=typeof t[0]&&null!==t[0]||Array.isArray(t[0])?(s=null,i=Array.prototype.slice.call(t)):(s=t[0],i=1===t.length&&s.err&&s.err instanceof Error?[s.err.message]:Array.prototype.slice.call(t,1));var o=h(r.fields);o.level=e;var a=s?h(s):null;if(a&&(r.serializers&&r._applySerializers(a,n),Object.keys(a).forEach(function(e){o[e]=a[e];})),o.levelName=l[e],o.msg=i.length?p.apply(r,i):"",o.time||(o.time=new Date),r.src&&!o.src)try{throw new Error("call-stack-error")}catch(e){var c=e.stack?m(e.stack,2):"";c||g("src")||d("Unable to determine src line info","src"),o.src=c||"";}return o.v=1,o}var s=null,i=arguments,n=null;if(0===arguments.length)return this._level<=e;this._level>e||(n=t(i),this._emit(n));}}function S(e){var r=e.stack||e.toString();if(e.cause&&"function"==typeof e.cause){var t=e.cause();t&&(r+="\nCaused by: "+S(t));}return r}j.prototype.trace=z(10),j.prototype.debug=z(20),j.prototype.info=z(30),j.prototype.warn=z(40),j.prototype.error=z(50),j.prototype.fatal=z(60);var k={err:function(e){return e&&e.stack?{message:e.message,name:e.name,stack:S(e),code:e.code,signal:e.signal}:e}};function E(){return f(j,[].slice.call(arguments))}var A={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},R=/*#__PURE__*/function(){function e(e){var r=void 0===e?{}:e,t=r.logByLevel,s=r.css,i=void 0===s?A:s;this.logByLevel=void 0!==t&&t,this.css=i;}return e.prototype.write=function(e){var r,t,s=this.css.def,i=this.css.msg,n=this.css.src,o=e.childName?e.name+"/"+e.childName:e.name,a=l[e.level],c=(Array(6-a.length).join(" ")+a).toUpperCase();this.logByLevel?(10===e.level?a="debug":60===e.level&&(a="error"),t="function"==typeof console[a]?console[a]:console.log):t=console.log,r=e.level<20?this.css.levels.trace:e.level<30?this.css.levels.debug:e.level<40?this.css.levels.info:e.level<50?this.css.levels.warn:e.level<60?this.css.levels.error:this.css.levels.fatal;var u=function(e,r){return Array(r+1-(e+"").length).join("0")+e},f=[];f.push("[%s:%s:%s:%s] %c%s%c: %s: %c%s "+(e.src?"%c%s":"")),f.push(u(e.time.getHours(),2)),f.push(u(e.time.getMinutes(),2)),f.push(u(e.time.getSeconds(),2)),f.push(u(e.time.getMilliseconds(),4)),f.push(r),f.push(c),f.push(s),f.push(o),f.push(i),f.push(e.msg),e.src&&(f.push(n),f.push(e.src)),e.obj&&(f.push("\n"),f.push(e.obj)),e.err&&e.err.stack&&(f.push("\n"),f.push(e.err.stack)),t.apply(console,f);},e.getDefaultCss=function(){return A},e}();
|
|
81
81
|
|
|
82
|
-
var __defProp$
|
|
83
|
-
var __defProps$
|
|
84
|
-
var __getOwnPropDescs$
|
|
85
|
-
var __getOwnPropSymbols$
|
|
86
|
-
var __hasOwnProp$
|
|
87
|
-
var __propIsEnum$
|
|
88
|
-
var __defNormalProp$
|
|
89
|
-
var __spreadValues$
|
|
82
|
+
var __defProp$y = Object.defineProperty;
|
|
83
|
+
var __defProps$x = Object.defineProperties;
|
|
84
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
85
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
86
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
87
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
88
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
89
|
+
var __spreadValues$y = (a, b) => {
|
|
90
90
|
for (var prop in b || (b = {}))
|
|
91
|
-
if (__hasOwnProp$
|
|
92
|
-
__defNormalProp$
|
|
93
|
-
if (__getOwnPropSymbols$
|
|
94
|
-
for (var prop of __getOwnPropSymbols$
|
|
95
|
-
if (__propIsEnum$
|
|
96
|
-
__defNormalProp$
|
|
91
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
92
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
93
|
+
if (__getOwnPropSymbols$H)
|
|
94
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
95
|
+
if (__propIsEnum$H.call(b, prop))
|
|
96
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
97
97
|
}
|
|
98
98
|
return a;
|
|
99
99
|
};
|
|
100
|
-
var __spreadProps$
|
|
100
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
101
101
|
const streams = [];
|
|
102
102
|
if (process.env.NODE_ENV === "production") {
|
|
103
103
|
streams.push({
|
|
@@ -106,7 +106,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
106
106
|
}
|
|
107
107
|
const logger = E({
|
|
108
108
|
name: "shipengine",
|
|
109
|
-
serializers: __spreadProps$
|
|
109
|
+
serializers: __spreadProps$x(__spreadValues$y({}, k), {
|
|
110
110
|
req: (req) => ({
|
|
111
111
|
headers: req.headers,
|
|
112
112
|
method: req.method,
|
|
@@ -343,25 +343,25 @@ const useValidateAddresses = () => {
|
|
|
343
343
|
});
|
|
344
344
|
};
|
|
345
345
|
|
|
346
|
-
var __defProp$
|
|
347
|
-
var __defProps$
|
|
348
|
-
var __getOwnPropDescs$
|
|
349
|
-
var __getOwnPropSymbols$
|
|
350
|
-
var __hasOwnProp$
|
|
351
|
-
var __propIsEnum$
|
|
352
|
-
var __defNormalProp$
|
|
353
|
-
var __spreadValues$
|
|
346
|
+
var __defProp$x = Object.defineProperty;
|
|
347
|
+
var __defProps$w = Object.defineProperties;
|
|
348
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
349
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
350
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
351
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
352
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
353
|
+
var __spreadValues$x = (a, b) => {
|
|
354
354
|
for (var prop in b || (b = {}))
|
|
355
|
-
if (__hasOwnProp$
|
|
356
|
-
__defNormalProp$
|
|
357
|
-
if (__getOwnPropSymbols$
|
|
358
|
-
for (var prop of __getOwnPropSymbols$
|
|
359
|
-
if (__propIsEnum$
|
|
360
|
-
__defNormalProp$
|
|
355
|
+
if (__hasOwnProp$G.call(b, prop))
|
|
356
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
357
|
+
if (__getOwnPropSymbols$G)
|
|
358
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
|
359
|
+
if (__propIsEnum$G.call(b, prop))
|
|
360
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
361
361
|
}
|
|
362
362
|
return a;
|
|
363
363
|
};
|
|
364
|
-
var __spreadProps$
|
|
364
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
365
365
|
var __async$N = (__this, __arguments, generator) => {
|
|
366
366
|
return new Promise((resolve, reject) => {
|
|
367
367
|
var fulfilled = (value) => {
|
|
@@ -384,7 +384,7 @@ var __async$N = (__this, __arguments, generator) => {
|
|
|
384
384
|
};
|
|
385
385
|
const useCreateAuctanePaySession = (params) => {
|
|
386
386
|
const { client } = useShipEngine();
|
|
387
|
-
return reactQuery.useMutation(__spreadProps$
|
|
387
|
+
return reactQuery.useMutation(__spreadProps$w(__spreadValues$x({}, params), {
|
|
388
388
|
mutationFn: (request) => __async$N(void 0, null, function* () {
|
|
389
389
|
const result = yield client.auctanePay.createSession(request);
|
|
390
390
|
return result.data;
|
|
@@ -394,29 +394,29 @@ const useCreateAuctanePaySession = (params) => {
|
|
|
394
394
|
}));
|
|
395
395
|
};
|
|
396
396
|
|
|
397
|
-
var __defProp$
|
|
398
|
-
var __defProps$
|
|
399
|
-
var __getOwnPropDescs$
|
|
400
|
-
var __getOwnPropSymbols$
|
|
401
|
-
var __hasOwnProp$
|
|
402
|
-
var __propIsEnum$
|
|
403
|
-
var __defNormalProp$
|
|
404
|
-
var __spreadValues$
|
|
397
|
+
var __defProp$w = Object.defineProperty;
|
|
398
|
+
var __defProps$v = Object.defineProperties;
|
|
399
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
400
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
401
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
402
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
403
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
404
|
+
var __spreadValues$w = (a, b) => {
|
|
405
405
|
for (var prop in b || (b = {}))
|
|
406
|
-
if (__hasOwnProp$
|
|
407
|
-
__defNormalProp$
|
|
408
|
-
if (__getOwnPropSymbols$
|
|
409
|
-
for (var prop of __getOwnPropSymbols$
|
|
410
|
-
if (__propIsEnum$
|
|
411
|
-
__defNormalProp$
|
|
406
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
407
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
408
|
+
if (__getOwnPropSymbols$F)
|
|
409
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
410
|
+
if (__propIsEnum$F.call(b, prop))
|
|
411
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
412
412
|
}
|
|
413
413
|
return a;
|
|
414
414
|
};
|
|
415
|
-
var __spreadProps$
|
|
415
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
416
416
|
const useGetAuctanePayConfig = (params) => {
|
|
417
417
|
const { client } = useShipEngine();
|
|
418
|
-
const queryParams = __spreadValues$
|
|
419
|
-
return reactQuery.useQuery(__spreadProps$
|
|
418
|
+
const queryParams = __spreadValues$w({}, params);
|
|
419
|
+
return reactQuery.useQuery(__spreadProps$v(__spreadValues$w({}, queryParams), {
|
|
420
420
|
onError,
|
|
421
421
|
queryFn: () => client.auctanePay.getConfig(),
|
|
422
422
|
queryKey: ["useGetAuctanePayConfig"],
|
|
@@ -588,41 +588,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
588
588
|
});
|
|
589
589
|
};
|
|
590
590
|
|
|
591
|
-
var __defProp$
|
|
592
|
-
var __defProps$
|
|
593
|
-
var __getOwnPropDescs$
|
|
594
|
-
var __getOwnPropSymbols$
|
|
595
|
-
var __hasOwnProp$
|
|
596
|
-
var __propIsEnum$
|
|
597
|
-
var __defNormalProp$
|
|
598
|
-
var __spreadValues$
|
|
591
|
+
var __defProp$v = Object.defineProperty;
|
|
592
|
+
var __defProps$u = Object.defineProperties;
|
|
593
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
594
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
595
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
596
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
597
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
598
|
+
var __spreadValues$v = (a, b) => {
|
|
599
599
|
for (var prop in b || (b = {}))
|
|
600
|
-
if (__hasOwnProp$
|
|
601
|
-
__defNormalProp$
|
|
602
|
-
if (__getOwnPropSymbols$
|
|
603
|
-
for (var prop of __getOwnPropSymbols$
|
|
604
|
-
if (__propIsEnum$
|
|
605
|
-
__defNormalProp$
|
|
600
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
601
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
602
|
+
if (__getOwnPropSymbols$E)
|
|
603
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
604
|
+
if (__propIsEnum$E.call(b, prop))
|
|
605
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
606
606
|
}
|
|
607
607
|
return a;
|
|
608
608
|
};
|
|
609
|
-
var __spreadProps$
|
|
609
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
610
610
|
var __objRest$p = (source, exclude) => {
|
|
611
611
|
var target = {};
|
|
612
612
|
for (var prop in source)
|
|
613
|
-
if (__hasOwnProp$
|
|
613
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
614
614
|
target[prop] = source[prop];
|
|
615
|
-
if (source != null && __getOwnPropSymbols$
|
|
616
|
-
for (var prop of __getOwnPropSymbols$
|
|
617
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
615
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
616
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
617
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
618
618
|
target[prop] = source[prop];
|
|
619
619
|
}
|
|
620
620
|
return target;
|
|
621
621
|
};
|
|
622
622
|
const useListCarriers = (params) => {
|
|
623
623
|
const { client } = useShipEngine();
|
|
624
|
-
const _a = __spreadValues$
|
|
625
|
-
return reactQuery.useQuery(__spreadProps$
|
|
624
|
+
const _a = __spreadValues$v({}, params), { queryFnParams } = _a, rest = __objRest$p(_a, ["queryFnParams"]);
|
|
625
|
+
return reactQuery.useQuery(__spreadProps$u(__spreadValues$v({}, rest), {
|
|
626
626
|
onError,
|
|
627
627
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
628
628
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -630,17 +630,17 @@ const useListCarriers = (params) => {
|
|
|
630
630
|
}));
|
|
631
631
|
};
|
|
632
632
|
|
|
633
|
-
var __getOwnPropSymbols$
|
|
634
|
-
var __hasOwnProp$
|
|
635
|
-
var __propIsEnum$
|
|
633
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
634
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
635
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
636
636
|
var __objRest$o = (source, exclude) => {
|
|
637
637
|
var target = {};
|
|
638
638
|
for (var prop in source)
|
|
639
|
-
if (__hasOwnProp$
|
|
639
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
640
640
|
target[prop] = source[prop];
|
|
641
|
-
if (source != null && __getOwnPropSymbols$
|
|
642
|
-
for (var prop of __getOwnPropSymbols$
|
|
643
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
641
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
642
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
643
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
644
644
|
target[prop] = source[prop];
|
|
645
645
|
}
|
|
646
646
|
return target;
|
|
@@ -731,17 +731,17 @@ const useDeleteCarrier = () => {
|
|
|
731
731
|
});
|
|
732
732
|
};
|
|
733
733
|
|
|
734
|
-
var __getOwnPropSymbols$
|
|
735
|
-
var __hasOwnProp$
|
|
736
|
-
var __propIsEnum$
|
|
734
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
735
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
736
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
737
737
|
var __objRest$n = (source, exclude) => {
|
|
738
738
|
var target = {};
|
|
739
739
|
for (var prop in source)
|
|
740
|
-
if (__hasOwnProp$
|
|
740
|
+
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
741
741
|
target[prop] = source[prop];
|
|
742
|
-
if (source != null && __getOwnPropSymbols$
|
|
743
|
-
for (var prop of __getOwnPropSymbols$
|
|
744
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
742
|
+
if (source != null && __getOwnPropSymbols$C)
|
|
743
|
+
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
744
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
745
745
|
target[prop] = source[prop];
|
|
746
746
|
}
|
|
747
747
|
return target;
|
|
@@ -758,17 +758,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
758
758
|
});
|
|
759
759
|
};
|
|
760
760
|
|
|
761
|
-
var __getOwnPropSymbols$
|
|
762
|
-
var __hasOwnProp$
|
|
763
|
-
var __propIsEnum$
|
|
761
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
762
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
763
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
764
764
|
var __objRest$m = (source, exclude) => {
|
|
765
765
|
var target = {};
|
|
766
766
|
for (var prop in source)
|
|
767
|
-
if (__hasOwnProp$
|
|
767
|
+
if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
768
768
|
target[prop] = source[prop];
|
|
769
|
-
if (source != null && __getOwnPropSymbols$
|
|
770
|
-
for (var prop of __getOwnPropSymbols$
|
|
771
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
769
|
+
if (source != null && __getOwnPropSymbols$B)
|
|
770
|
+
for (var prop of __getOwnPropSymbols$B(source)) {
|
|
771
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
|
|
772
772
|
target[prop] = source[prop];
|
|
773
773
|
}
|
|
774
774
|
return target;
|
|
@@ -785,6 +785,25 @@ const useListCarrierConnections = (_params) => {
|
|
|
785
785
|
});
|
|
786
786
|
};
|
|
787
787
|
|
|
788
|
+
var __defProp$u = Object.defineProperty;
|
|
789
|
+
var __defProps$t = Object.defineProperties;
|
|
790
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
791
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
792
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
793
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
794
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
795
|
+
var __spreadValues$u = (a, b) => {
|
|
796
|
+
for (var prop in b || (b = {}))
|
|
797
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
798
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
799
|
+
if (__getOwnPropSymbols$A)
|
|
800
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
801
|
+
if (__propIsEnum$A.call(b, prop))
|
|
802
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
803
|
+
}
|
|
804
|
+
return a;
|
|
805
|
+
};
|
|
806
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
788
807
|
var __async$I = (__this, __arguments, generator) => {
|
|
789
808
|
return new Promise((resolve, reject) => {
|
|
790
809
|
var fulfilled = (value) => {
|
|
@@ -809,7 +828,8 @@ const useConnectCarrierAccount = () => {
|
|
|
809
828
|
const { client } = useShipEngine();
|
|
810
829
|
return reactQuery.useMutation({
|
|
811
830
|
mutationFn: (_0) => __async$I(void 0, [_0], function* ({ carrierName, formData }) {
|
|
812
|
-
const
|
|
831
|
+
const formDataWithFlag = __spreadProps$t(__spreadValues$u({}, formData), { __skipDecamelize: true });
|
|
832
|
+
const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
|
|
813
833
|
return result.data;
|
|
814
834
|
}),
|
|
815
835
|
mutationKey: ["useConnectCarrierAccount"],
|
|
@@ -1739,13 +1759,13 @@ var __objRest$e = (source, exclude) => {
|
|
|
1739
1759
|
}
|
|
1740
1760
|
return target;
|
|
1741
1761
|
};
|
|
1742
|
-
const
|
|
1762
|
+
const useExportLabels = (params) => {
|
|
1743
1763
|
const { client } = useShipEngine();
|
|
1744
1764
|
const _a = __spreadValues$i({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
|
|
1745
1765
|
return reactQuery.useQuery(__spreadProps$h(__spreadValues$i({}, rest), {
|
|
1746
1766
|
onError,
|
|
1747
|
-
queryFn: () => client.labels.
|
|
1748
|
-
queryKey: ["
|
|
1767
|
+
queryFn: () => client.labels.export(queryFnParams),
|
|
1768
|
+
queryKey: ["useExportLabels", params]
|
|
1749
1769
|
}));
|
|
1750
1770
|
};
|
|
1751
1771
|
|
|
@@ -2698,13 +2718,13 @@ var __objRest$6 = (source, exclude) => {
|
|
|
2698
2718
|
}
|
|
2699
2719
|
return target;
|
|
2700
2720
|
};
|
|
2701
|
-
const
|
|
2721
|
+
const useExportShipments = (params) => {
|
|
2702
2722
|
const { client } = useShipEngine();
|
|
2703
2723
|
const _a = __spreadValues$c({}, params), { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
|
|
2704
2724
|
return reactQuery.useQuery(__spreadProps$b(__spreadValues$c({}, rest), {
|
|
2705
2725
|
onError,
|
|
2706
|
-
queryFn: () => client.shipments.
|
|
2707
|
-
queryKey: ["
|
|
2726
|
+
queryFn: () => client.shipments.export(queryFnParams),
|
|
2727
|
+
queryKey: ["useExportShipments", params]
|
|
2708
2728
|
}));
|
|
2709
2729
|
};
|
|
2710
2730
|
|
|
@@ -3735,10 +3755,10 @@ exports.useDeleteSellerApiKey = useDeleteSellerApiKey;
|
|
|
3735
3755
|
exports.useDeleteShippingRule = useDeleteShippingRule;
|
|
3736
3756
|
exports.useDeleteWarehouse = useDeleteWarehouse;
|
|
3737
3757
|
exports.useDeleteWebhook = useDeleteWebhook;
|
|
3738
|
-
exports.useDownloadLabels = useDownloadLabels;
|
|
3739
3758
|
exports.useDownloadRateCard = useDownloadRateCard;
|
|
3740
|
-
exports.useDownloadShipments = useDownloadShipments;
|
|
3741
3759
|
exports.useEditShippingRule = useEditShippingRule;
|
|
3760
|
+
exports.useExportLabels = useExportLabels;
|
|
3761
|
+
exports.useExportShipments = useExportShipments;
|
|
3742
3762
|
exports.useFundingSourcesAddFunds = useFundingSourcesAddFunds;
|
|
3743
3763
|
exports.useGetAccountBilling = useGetAccountBilling;
|
|
3744
3764
|
exports.useGetAccountBillingPlan = useGetAccountBillingPlan;
|
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$
|
|
80
|
-
var __defProps$
|
|
81
|
-
var __getOwnPropDescs$
|
|
82
|
-
var __getOwnPropSymbols$
|
|
83
|
-
var __hasOwnProp$
|
|
84
|
-
var __propIsEnum$
|
|
85
|
-
var __defNormalProp$
|
|
86
|
-
var __spreadValues$
|
|
79
|
+
var __defProp$y = Object.defineProperty;
|
|
80
|
+
var __defProps$x = Object.defineProperties;
|
|
81
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
82
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
83
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
84
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
85
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
86
|
+
var __spreadValues$y = (a, b) => {
|
|
87
87
|
for (var prop in b || (b = {}))
|
|
88
|
-
if (__hasOwnProp$
|
|
89
|
-
__defNormalProp$
|
|
90
|
-
if (__getOwnPropSymbols$
|
|
91
|
-
for (var prop of __getOwnPropSymbols$
|
|
92
|
-
if (__propIsEnum$
|
|
93
|
-
__defNormalProp$
|
|
88
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
89
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
90
|
+
if (__getOwnPropSymbols$H)
|
|
91
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
92
|
+
if (__propIsEnum$H.call(b, prop))
|
|
93
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
94
94
|
}
|
|
95
95
|
return a;
|
|
96
96
|
};
|
|
97
|
-
var __spreadProps$
|
|
97
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(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$
|
|
106
|
+
serializers: __spreadProps$x(__spreadValues$y({}, k), {
|
|
107
107
|
req: (req) => ({
|
|
108
108
|
headers: req.headers,
|
|
109
109
|
method: req.method,
|
|
@@ -340,25 +340,25 @@ const useValidateAddresses = () => {
|
|
|
340
340
|
});
|
|
341
341
|
};
|
|
342
342
|
|
|
343
|
-
var __defProp$
|
|
344
|
-
var __defProps$
|
|
345
|
-
var __getOwnPropDescs$
|
|
346
|
-
var __getOwnPropSymbols$
|
|
347
|
-
var __hasOwnProp$
|
|
348
|
-
var __propIsEnum$
|
|
349
|
-
var __defNormalProp$
|
|
350
|
-
var __spreadValues$
|
|
343
|
+
var __defProp$x = Object.defineProperty;
|
|
344
|
+
var __defProps$w = Object.defineProperties;
|
|
345
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
346
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
347
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
348
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
349
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
350
|
+
var __spreadValues$x = (a, b) => {
|
|
351
351
|
for (var prop in b || (b = {}))
|
|
352
|
-
if (__hasOwnProp$
|
|
353
|
-
__defNormalProp$
|
|
354
|
-
if (__getOwnPropSymbols$
|
|
355
|
-
for (var prop of __getOwnPropSymbols$
|
|
356
|
-
if (__propIsEnum$
|
|
357
|
-
__defNormalProp$
|
|
352
|
+
if (__hasOwnProp$G.call(b, prop))
|
|
353
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
354
|
+
if (__getOwnPropSymbols$G)
|
|
355
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
|
356
|
+
if (__propIsEnum$G.call(b, prop))
|
|
357
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
358
358
|
}
|
|
359
359
|
return a;
|
|
360
360
|
};
|
|
361
|
-
var __spreadProps$
|
|
361
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
362
362
|
var __async$N = (__this, __arguments, generator) => {
|
|
363
363
|
return new Promise((resolve, reject) => {
|
|
364
364
|
var fulfilled = (value) => {
|
|
@@ -381,7 +381,7 @@ var __async$N = (__this, __arguments, generator) => {
|
|
|
381
381
|
};
|
|
382
382
|
const useCreateAuctanePaySession = (params) => {
|
|
383
383
|
const { client } = useShipEngine();
|
|
384
|
-
return useMutation(__spreadProps$
|
|
384
|
+
return useMutation(__spreadProps$w(__spreadValues$x({}, params), {
|
|
385
385
|
mutationFn: (request) => __async$N(void 0, null, function* () {
|
|
386
386
|
const result = yield client.auctanePay.createSession(request);
|
|
387
387
|
return result.data;
|
|
@@ -391,29 +391,29 @@ const useCreateAuctanePaySession = (params) => {
|
|
|
391
391
|
}));
|
|
392
392
|
};
|
|
393
393
|
|
|
394
|
-
var __defProp$
|
|
395
|
-
var __defProps$
|
|
396
|
-
var __getOwnPropDescs$
|
|
397
|
-
var __getOwnPropSymbols$
|
|
398
|
-
var __hasOwnProp$
|
|
399
|
-
var __propIsEnum$
|
|
400
|
-
var __defNormalProp$
|
|
401
|
-
var __spreadValues$
|
|
394
|
+
var __defProp$w = Object.defineProperty;
|
|
395
|
+
var __defProps$v = Object.defineProperties;
|
|
396
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
397
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
398
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
399
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
400
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
401
|
+
var __spreadValues$w = (a, b) => {
|
|
402
402
|
for (var prop in b || (b = {}))
|
|
403
|
-
if (__hasOwnProp$
|
|
404
|
-
__defNormalProp$
|
|
405
|
-
if (__getOwnPropSymbols$
|
|
406
|
-
for (var prop of __getOwnPropSymbols$
|
|
407
|
-
if (__propIsEnum$
|
|
408
|
-
__defNormalProp$
|
|
403
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
404
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
405
|
+
if (__getOwnPropSymbols$F)
|
|
406
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
407
|
+
if (__propIsEnum$F.call(b, prop))
|
|
408
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
409
409
|
}
|
|
410
410
|
return a;
|
|
411
411
|
};
|
|
412
|
-
var __spreadProps$
|
|
412
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
413
413
|
const useGetAuctanePayConfig = (params) => {
|
|
414
414
|
const { client } = useShipEngine();
|
|
415
|
-
const queryParams = __spreadValues$
|
|
416
|
-
return useQuery(__spreadProps$
|
|
415
|
+
const queryParams = __spreadValues$w({}, params);
|
|
416
|
+
return useQuery(__spreadProps$v(__spreadValues$w({}, queryParams), {
|
|
417
417
|
onError,
|
|
418
418
|
queryFn: () => client.auctanePay.getConfig(),
|
|
419
419
|
queryKey: ["useGetAuctanePayConfig"],
|
|
@@ -585,41 +585,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
585
585
|
});
|
|
586
586
|
};
|
|
587
587
|
|
|
588
|
-
var __defProp$
|
|
589
|
-
var __defProps$
|
|
590
|
-
var __getOwnPropDescs$
|
|
591
|
-
var __getOwnPropSymbols$
|
|
592
|
-
var __hasOwnProp$
|
|
593
|
-
var __propIsEnum$
|
|
594
|
-
var __defNormalProp$
|
|
595
|
-
var __spreadValues$
|
|
588
|
+
var __defProp$v = Object.defineProperty;
|
|
589
|
+
var __defProps$u = Object.defineProperties;
|
|
590
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
591
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
592
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
593
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
594
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
595
|
+
var __spreadValues$v = (a, b) => {
|
|
596
596
|
for (var prop in b || (b = {}))
|
|
597
|
-
if (__hasOwnProp$
|
|
598
|
-
__defNormalProp$
|
|
599
|
-
if (__getOwnPropSymbols$
|
|
600
|
-
for (var prop of __getOwnPropSymbols$
|
|
601
|
-
if (__propIsEnum$
|
|
602
|
-
__defNormalProp$
|
|
597
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
598
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
599
|
+
if (__getOwnPropSymbols$E)
|
|
600
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
601
|
+
if (__propIsEnum$E.call(b, prop))
|
|
602
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
603
603
|
}
|
|
604
604
|
return a;
|
|
605
605
|
};
|
|
606
|
-
var __spreadProps$
|
|
606
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
607
607
|
var __objRest$p = (source, exclude) => {
|
|
608
608
|
var target = {};
|
|
609
609
|
for (var prop in source)
|
|
610
|
-
if (__hasOwnProp$
|
|
610
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
611
611
|
target[prop] = source[prop];
|
|
612
|
-
if (source != null && __getOwnPropSymbols$
|
|
613
|
-
for (var prop of __getOwnPropSymbols$
|
|
614
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
612
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
613
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
614
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
615
615
|
target[prop] = source[prop];
|
|
616
616
|
}
|
|
617
617
|
return target;
|
|
618
618
|
};
|
|
619
619
|
const useListCarriers = (params) => {
|
|
620
620
|
const { client } = useShipEngine();
|
|
621
|
-
const _a = __spreadValues$
|
|
622
|
-
return useQuery(__spreadProps$
|
|
621
|
+
const _a = __spreadValues$v({}, params), { queryFnParams } = _a, rest = __objRest$p(_a, ["queryFnParams"]);
|
|
622
|
+
return useQuery(__spreadProps$u(__spreadValues$v({}, rest), {
|
|
623
623
|
onError,
|
|
624
624
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
625
625
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -627,17 +627,17 @@ const useListCarriers = (params) => {
|
|
|
627
627
|
}));
|
|
628
628
|
};
|
|
629
629
|
|
|
630
|
-
var __getOwnPropSymbols$
|
|
631
|
-
var __hasOwnProp$
|
|
632
|
-
var __propIsEnum$
|
|
630
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
631
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
632
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
633
633
|
var __objRest$o = (source, exclude) => {
|
|
634
634
|
var target = {};
|
|
635
635
|
for (var prop in source)
|
|
636
|
-
if (__hasOwnProp$
|
|
636
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
637
637
|
target[prop] = source[prop];
|
|
638
|
-
if (source != null && __getOwnPropSymbols$
|
|
639
|
-
for (var prop of __getOwnPropSymbols$
|
|
640
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
638
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
639
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
640
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
641
641
|
target[prop] = source[prop];
|
|
642
642
|
}
|
|
643
643
|
return target;
|
|
@@ -728,17 +728,17 @@ const useDeleteCarrier = () => {
|
|
|
728
728
|
});
|
|
729
729
|
};
|
|
730
730
|
|
|
731
|
-
var __getOwnPropSymbols$
|
|
732
|
-
var __hasOwnProp$
|
|
733
|
-
var __propIsEnum$
|
|
731
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
732
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
733
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
734
734
|
var __objRest$n = (source, exclude) => {
|
|
735
735
|
var target = {};
|
|
736
736
|
for (var prop in source)
|
|
737
|
-
if (__hasOwnProp$
|
|
737
|
+
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
738
738
|
target[prop] = source[prop];
|
|
739
|
-
if (source != null && __getOwnPropSymbols$
|
|
740
|
-
for (var prop of __getOwnPropSymbols$
|
|
741
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
739
|
+
if (source != null && __getOwnPropSymbols$C)
|
|
740
|
+
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
741
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
742
742
|
target[prop] = source[prop];
|
|
743
743
|
}
|
|
744
744
|
return target;
|
|
@@ -755,17 +755,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
755
755
|
});
|
|
756
756
|
};
|
|
757
757
|
|
|
758
|
-
var __getOwnPropSymbols$
|
|
759
|
-
var __hasOwnProp$
|
|
760
|
-
var __propIsEnum$
|
|
758
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
759
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
760
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
761
761
|
var __objRest$m = (source, exclude) => {
|
|
762
762
|
var target = {};
|
|
763
763
|
for (var prop in source)
|
|
764
|
-
if (__hasOwnProp$
|
|
764
|
+
if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
765
765
|
target[prop] = source[prop];
|
|
766
|
-
if (source != null && __getOwnPropSymbols$
|
|
767
|
-
for (var prop of __getOwnPropSymbols$
|
|
768
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
766
|
+
if (source != null && __getOwnPropSymbols$B)
|
|
767
|
+
for (var prop of __getOwnPropSymbols$B(source)) {
|
|
768
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
|
|
769
769
|
target[prop] = source[prop];
|
|
770
770
|
}
|
|
771
771
|
return target;
|
|
@@ -782,6 +782,25 @@ const useListCarrierConnections = (_params) => {
|
|
|
782
782
|
});
|
|
783
783
|
};
|
|
784
784
|
|
|
785
|
+
var __defProp$u = Object.defineProperty;
|
|
786
|
+
var __defProps$t = Object.defineProperties;
|
|
787
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
788
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
789
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
790
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
791
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
792
|
+
var __spreadValues$u = (a, b) => {
|
|
793
|
+
for (var prop in b || (b = {}))
|
|
794
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
795
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
796
|
+
if (__getOwnPropSymbols$A)
|
|
797
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
798
|
+
if (__propIsEnum$A.call(b, prop))
|
|
799
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
800
|
+
}
|
|
801
|
+
return a;
|
|
802
|
+
};
|
|
803
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
785
804
|
var __async$I = (__this, __arguments, generator) => {
|
|
786
805
|
return new Promise((resolve, reject) => {
|
|
787
806
|
var fulfilled = (value) => {
|
|
@@ -806,7 +825,8 @@ const useConnectCarrierAccount = () => {
|
|
|
806
825
|
const { client } = useShipEngine();
|
|
807
826
|
return useMutation({
|
|
808
827
|
mutationFn: (_0) => __async$I(void 0, [_0], function* ({ carrierName, formData }) {
|
|
809
|
-
const
|
|
828
|
+
const formDataWithFlag = __spreadProps$t(__spreadValues$u({}, formData), { __skipDecamelize: true });
|
|
829
|
+
const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
|
|
810
830
|
return result.data;
|
|
811
831
|
}),
|
|
812
832
|
mutationKey: ["useConnectCarrierAccount"],
|
|
@@ -1736,13 +1756,13 @@ var __objRest$e = (source, exclude) => {
|
|
|
1736
1756
|
}
|
|
1737
1757
|
return target;
|
|
1738
1758
|
};
|
|
1739
|
-
const
|
|
1759
|
+
const useExportLabels = (params) => {
|
|
1740
1760
|
const { client } = useShipEngine();
|
|
1741
1761
|
const _a = __spreadValues$i({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
|
|
1742
1762
|
return useQuery(__spreadProps$h(__spreadValues$i({}, rest), {
|
|
1743
1763
|
onError,
|
|
1744
|
-
queryFn: () => client.labels.
|
|
1745
|
-
queryKey: ["
|
|
1764
|
+
queryFn: () => client.labels.export(queryFnParams),
|
|
1765
|
+
queryKey: ["useExportLabels", params]
|
|
1746
1766
|
}));
|
|
1747
1767
|
};
|
|
1748
1768
|
|
|
@@ -2695,13 +2715,13 @@ var __objRest$6 = (source, exclude) => {
|
|
|
2695
2715
|
}
|
|
2696
2716
|
return target;
|
|
2697
2717
|
};
|
|
2698
|
-
const
|
|
2718
|
+
const useExportShipments = (params) => {
|
|
2699
2719
|
const { client } = useShipEngine();
|
|
2700
2720
|
const _a = __spreadValues$c({}, params), { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
|
|
2701
2721
|
return useQuery(__spreadProps$b(__spreadValues$c({}, rest), {
|
|
2702
2722
|
onError,
|
|
2703
|
-
queryFn: () => client.shipments.
|
|
2704
|
-
queryKey: ["
|
|
2723
|
+
queryFn: () => client.shipments.export(queryFnParams),
|
|
2724
|
+
queryKey: ["useExportShipments", params]
|
|
2705
2725
|
}));
|
|
2706
2726
|
};
|
|
2707
2727
|
|
|
@@ -3695,4 +3715,4 @@ const useUpdateWebhook = (params) => {
|
|
|
3695
3715
|
}));
|
|
3696
3716
|
};
|
|
3697
3717
|
|
|
3698
|
-
export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook,
|
|
3718
|
+
export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DownloadLabelsParams } from "@shipengine/js-api";
|
|
2
|
-
import { QueryProps } from "../../utilities";
|
|
3
|
-
/**
|
|
4
|
-
* @category ShipEngine API Hooks
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
export declare const useDownloadLabels: (params?: QueryProps<Blob, DownloadLabelsParams>) => import("@tanstack/react-query").UseQueryResult<import("axios").AxiosResponse<Blob, any>, import("@shipengine/js-api").CodedError[]>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DownloadShipmentsParams } from "@shipengine/js-api";
|
|
2
|
-
import { QueryProps } from "../../utilities";
|
|
3
|
-
/**
|
|
4
|
-
* @category ShipEngine API Hooks
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
export declare const useDownloadShipments: (params?: QueryProps<Blob, DownloadShipmentsParams>) => import("@tanstack/react-query").UseQueryResult<import("axios").AxiosResponse<Blob, any>, import("@shipengine/js-api").CodedError[]>;
|