@shipengine/alchemy 6.0.21 → 6.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +553 -421
- package/index.mjs +546 -422
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -10790,17 +10790,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
|
|
|
10790
10790
|
return AccountBillingPlanChangeType2;
|
|
10791
10791
|
})(AccountBillingPlanChangeType || {});
|
|
10792
10792
|
|
|
10793
|
-
var __getOwnPropSymbols$
|
|
10794
|
-
var __hasOwnProp$
|
|
10795
|
-
var __propIsEnum$
|
|
10793
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
10794
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
10795
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
10796
10796
|
var __objRest$p = (source, exclude) => {
|
|
10797
10797
|
var target = {};
|
|
10798
10798
|
for (var prop in source)
|
|
10799
|
-
if (__hasOwnProp$
|
|
10799
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10800
10800
|
target[prop] = source[prop];
|
|
10801
|
-
if (source != null && __getOwnPropSymbols$
|
|
10802
|
-
for (var prop of __getOwnPropSymbols$
|
|
10803
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10801
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
10802
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
10803
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
10804
10804
|
target[prop] = source[prop];
|
|
10805
10805
|
}
|
|
10806
10806
|
return target;
|
|
@@ -10933,17 +10933,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10933
10933
|
RateCardStatus
|
|
10934
10934
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10935
10935
|
|
|
10936
|
-
var __getOwnPropSymbols$
|
|
10937
|
-
var __hasOwnProp$
|
|
10938
|
-
var __propIsEnum$
|
|
10936
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
10937
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
10938
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
10939
10939
|
var __objRest$o = (source, exclude) => {
|
|
10940
10940
|
var target = {};
|
|
10941
10941
|
for (var prop in source)
|
|
10942
|
-
if (__hasOwnProp$
|
|
10942
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10943
10943
|
target[prop] = source[prop];
|
|
10944
|
-
if (source != null && __getOwnPropSymbols$
|
|
10945
|
-
for (var prop of __getOwnPropSymbols$
|
|
10946
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10944
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
10945
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
10946
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
10947
10947
|
target[prop] = source[prop];
|
|
10948
10948
|
}
|
|
10949
10949
|
return target;
|
|
@@ -13685,7 +13685,7 @@ var ipaddr = {
|
|
|
13685
13685
|
}).call(commonjsGlobal);
|
|
13686
13686
|
} (ipaddr));
|
|
13687
13687
|
|
|
13688
|
-
var __async$
|
|
13688
|
+
var __async$X = (__this, __arguments, generator) => {
|
|
13689
13689
|
return new Promise((resolve, reject) => {
|
|
13690
13690
|
var fulfilled = (value) => {
|
|
13691
13691
|
try {
|
|
@@ -13705,7 +13705,7 @@ var __async$U = (__this, __arguments, generator) => {
|
|
|
13705
13705
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13706
13706
|
});
|
|
13707
13707
|
};
|
|
13708
|
-
const getEndUserIpAddress = () => __async$
|
|
13708
|
+
const getEndUserIpAddress = () => __async$X(void 0, null, function* () {
|
|
13709
13709
|
try {
|
|
13710
13710
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13711
13711
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13717,38 +13717,69 @@ const getEndUserIpAddress = () => __async$U(void 0, null, function* () {
|
|
|
13717
13717
|
}
|
|
13718
13718
|
});
|
|
13719
13719
|
|
|
13720
|
-
|
|
13721
|
-
|
|
13722
|
-
|
|
13723
|
-
|
|
13724
|
-
|
|
13725
|
-
|
|
13726
|
-
|
|
13727
|
-
|
|
13720
|
+
const camelizeKeys = (obj) => {
|
|
13721
|
+
if (Array.isArray(obj)) {
|
|
13722
|
+
return obj.map(camelizeKeys);
|
|
13723
|
+
} else if (obj !== null && typeof obj === "object") {
|
|
13724
|
+
const newObj = {};
|
|
13725
|
+
for (const key in obj) {
|
|
13726
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
13727
|
+
const newKey = key.replace(/_([a-z])/g, (match, letter) => letter.toUpperCase());
|
|
13728
|
+
newObj[newKey] = camelizeKeys(obj[key]);
|
|
13729
|
+
}
|
|
13730
|
+
}
|
|
13731
|
+
return newObj;
|
|
13732
|
+
}
|
|
13733
|
+
return obj;
|
|
13734
|
+
};
|
|
13735
|
+
const decamelizeKeys = (obj, separator = "_") => {
|
|
13736
|
+
if (Array.isArray(obj)) {
|
|
13737
|
+
return obj.map((item) => decamelizeKeys(item, separator));
|
|
13738
|
+
} else if (obj !== null && typeof obj === "object") {
|
|
13739
|
+
const newObj = {};
|
|
13740
|
+
for (const key in obj) {
|
|
13741
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
13742
|
+
const newKey = key.replace(/([A-Z])/g, (match) => separator + match.toLowerCase());
|
|
13743
|
+
newObj[newKey] = decamelizeKeys(obj[key], separator);
|
|
13744
|
+
}
|
|
13745
|
+
}
|
|
13746
|
+
return newObj;
|
|
13747
|
+
}
|
|
13748
|
+
return obj;
|
|
13749
|
+
};
|
|
13750
|
+
|
|
13751
|
+
var __defProp$u = Object.defineProperty;
|
|
13752
|
+
var __defProps$o = Object.defineProperties;
|
|
13753
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
13754
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
13755
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
13756
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
13757
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13758
|
+
var __spreadValues$u = (a, b) => {
|
|
13728
13759
|
for (var prop in b || (b = {}))
|
|
13729
|
-
if (__hasOwnProp$
|
|
13730
|
-
__defNormalProp$
|
|
13731
|
-
if (__getOwnPropSymbols$
|
|
13732
|
-
for (var prop of __getOwnPropSymbols$
|
|
13733
|
-
if (__propIsEnum$
|
|
13734
|
-
__defNormalProp$
|
|
13760
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
13761
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
13762
|
+
if (__getOwnPropSymbols$F)
|
|
13763
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
13764
|
+
if (__propIsEnum$F.call(b, prop))
|
|
13765
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
13735
13766
|
}
|
|
13736
13767
|
return a;
|
|
13737
13768
|
};
|
|
13738
|
-
var __spreadProps$
|
|
13769
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
13739
13770
|
var __objRest$n = (source, exclude) => {
|
|
13740
13771
|
var target = {};
|
|
13741
13772
|
for (var prop in source)
|
|
13742
|
-
if (__hasOwnProp$
|
|
13773
|
+
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13743
13774
|
target[prop] = source[prop];
|
|
13744
|
-
if (source != null && __getOwnPropSymbols$
|
|
13745
|
-
for (var prop of __getOwnPropSymbols$
|
|
13746
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13775
|
+
if (source != null && __getOwnPropSymbols$F)
|
|
13776
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
13777
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
13747
13778
|
target[prop] = source[prop];
|
|
13748
13779
|
}
|
|
13749
13780
|
return target;
|
|
13750
13781
|
};
|
|
13751
|
-
var __async$
|
|
13782
|
+
var __async$W = (__this, __arguments, generator) => {
|
|
13752
13783
|
return new Promise((resolve, reject) => {
|
|
13753
13784
|
var fulfilled = (value) => {
|
|
13754
13785
|
try {
|
|
@@ -13788,12 +13819,12 @@ class CarriersAPI {
|
|
|
13788
13819
|
/**
|
|
13789
13820
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
13790
13821
|
*/
|
|
13791
|
-
this.connect = (_a) => __async$
|
|
13822
|
+
this.connect = (_a) => __async$W(this, null, function* () {
|
|
13792
13823
|
var _b = _a, { carrierCode } = _b, connection = __objRest$n(_b, ["carrierCode"]);
|
|
13793
13824
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13794
13825
|
if (!endUserIpAddress)
|
|
13795
13826
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13796
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13827
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$o(__spreadValues$u({}, connection), {
|
|
13797
13828
|
endUserIpAddress
|
|
13798
13829
|
}));
|
|
13799
13830
|
});
|
|
@@ -13879,7 +13910,7 @@ class CarriersAPI {
|
|
|
13879
13910
|
}
|
|
13880
13911
|
}
|
|
13881
13912
|
|
|
13882
|
-
var __async$
|
|
13913
|
+
var __async$V = (__this, __arguments, generator) => {
|
|
13883
13914
|
return new Promise((resolve, reject) => {
|
|
13884
13915
|
var fulfilled = (value) => {
|
|
13885
13916
|
try {
|
|
@@ -13921,7 +13952,7 @@ class ConnectionsAPI {
|
|
|
13921
13952
|
/**
|
|
13922
13953
|
* The `connectCarrier` method connects a carrier to account.
|
|
13923
13954
|
*/
|
|
13924
|
-
this.connectCarrier = (carrierName, formData) => __async$
|
|
13955
|
+
this.connectCarrier = (carrierName, formData) => __async$V(this, null, function* () {
|
|
13925
13956
|
return yield this.client.post(
|
|
13926
13957
|
`/v1/connections/carriers/${carrierName}`,
|
|
13927
13958
|
formData,
|
|
@@ -13969,144 +14000,6 @@ class ConnectionsAPI {
|
|
|
13969
14000
|
|
|
13970
14001
|
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}();
|
|
13971
14002
|
|
|
13972
|
-
var humpsExports = {};
|
|
13973
|
-
var humps = {
|
|
13974
|
-
get exports(){ return humpsExports; },
|
|
13975
|
-
set exports(v){ humpsExports = v; },
|
|
13976
|
-
};
|
|
13977
|
-
|
|
13978
|
-
(function (module) {
|
|
13979
|
-
(function(global) {
|
|
13980
|
-
|
|
13981
|
-
var _processKeys = function(convert, obj, options) {
|
|
13982
|
-
if(!_isObject(obj) || _isDate(obj) || _isRegExp(obj) || _isBoolean(obj) || _isFunction(obj)) {
|
|
13983
|
-
return obj;
|
|
13984
|
-
}
|
|
13985
|
-
|
|
13986
|
-
var output,
|
|
13987
|
-
i = 0,
|
|
13988
|
-
l = 0;
|
|
13989
|
-
|
|
13990
|
-
if(_isArray(obj)) {
|
|
13991
|
-
output = [];
|
|
13992
|
-
for(l=obj.length; i<l; i++) {
|
|
13993
|
-
output.push(_processKeys(convert, obj[i], options));
|
|
13994
|
-
}
|
|
13995
|
-
}
|
|
13996
|
-
else {
|
|
13997
|
-
output = {};
|
|
13998
|
-
for(var key in obj) {
|
|
13999
|
-
if(Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
14000
|
-
output[convert(key, options)] = _processKeys(convert, obj[key], options);
|
|
14001
|
-
}
|
|
14002
|
-
}
|
|
14003
|
-
}
|
|
14004
|
-
return output;
|
|
14005
|
-
};
|
|
14006
|
-
|
|
14007
|
-
// String conversion methods
|
|
14008
|
-
|
|
14009
|
-
var separateWords = function(string, options) {
|
|
14010
|
-
options = options || {};
|
|
14011
|
-
var separator = options.separator || '_';
|
|
14012
|
-
var split = options.split || /(?=[A-Z])/;
|
|
14013
|
-
|
|
14014
|
-
return string.split(split).join(separator);
|
|
14015
|
-
};
|
|
14016
|
-
|
|
14017
|
-
var camelize = function(string) {
|
|
14018
|
-
if (_isNumerical(string)) {
|
|
14019
|
-
return string;
|
|
14020
|
-
}
|
|
14021
|
-
string = string.replace(/[\-_\s]+(.)?/g, function(match, chr) {
|
|
14022
|
-
return chr ? chr.toUpperCase() : '';
|
|
14023
|
-
});
|
|
14024
|
-
// Ensure 1st char is always lowercase
|
|
14025
|
-
return string.substr(0, 1).toLowerCase() + string.substr(1);
|
|
14026
|
-
};
|
|
14027
|
-
|
|
14028
|
-
var pascalize = function(string) {
|
|
14029
|
-
var camelized = camelize(string);
|
|
14030
|
-
// Ensure 1st char is always uppercase
|
|
14031
|
-
return camelized.substr(0, 1).toUpperCase() + camelized.substr(1);
|
|
14032
|
-
};
|
|
14033
|
-
|
|
14034
|
-
var decamelize = function(string, options) {
|
|
14035
|
-
return separateWords(string, options).toLowerCase();
|
|
14036
|
-
};
|
|
14037
|
-
|
|
14038
|
-
// Utilities
|
|
14039
|
-
// Taken from Underscore.js
|
|
14040
|
-
|
|
14041
|
-
var toString = Object.prototype.toString;
|
|
14042
|
-
|
|
14043
|
-
var _isFunction = function(obj) {
|
|
14044
|
-
return typeof(obj) === 'function';
|
|
14045
|
-
};
|
|
14046
|
-
var _isObject = function(obj) {
|
|
14047
|
-
return obj === Object(obj);
|
|
14048
|
-
};
|
|
14049
|
-
var _isArray = function(obj) {
|
|
14050
|
-
return toString.call(obj) == '[object Array]';
|
|
14051
|
-
};
|
|
14052
|
-
var _isDate = function(obj) {
|
|
14053
|
-
return toString.call(obj) == '[object Date]';
|
|
14054
|
-
};
|
|
14055
|
-
var _isRegExp = function(obj) {
|
|
14056
|
-
return toString.call(obj) == '[object RegExp]';
|
|
14057
|
-
};
|
|
14058
|
-
var _isBoolean = function(obj) {
|
|
14059
|
-
return toString.call(obj) == '[object Boolean]';
|
|
14060
|
-
};
|
|
14061
|
-
|
|
14062
|
-
// Performant way to determine if obj coerces to a number
|
|
14063
|
-
var _isNumerical = function(obj) {
|
|
14064
|
-
obj = obj - 0;
|
|
14065
|
-
return obj === obj;
|
|
14066
|
-
};
|
|
14067
|
-
|
|
14068
|
-
// Sets up function which handles processing keys
|
|
14069
|
-
// allowing the convert function to be modified by a callback
|
|
14070
|
-
var _processor = function(convert, options) {
|
|
14071
|
-
var callback = options && 'process' in options ? options.process : options;
|
|
14072
|
-
|
|
14073
|
-
if(typeof(callback) !== 'function') {
|
|
14074
|
-
return convert;
|
|
14075
|
-
}
|
|
14076
|
-
|
|
14077
|
-
return function(string, options) {
|
|
14078
|
-
return callback(string, convert, options);
|
|
14079
|
-
}
|
|
14080
|
-
};
|
|
14081
|
-
|
|
14082
|
-
var humps = {
|
|
14083
|
-
camelize: camelize,
|
|
14084
|
-
decamelize: decamelize,
|
|
14085
|
-
pascalize: pascalize,
|
|
14086
|
-
depascalize: decamelize,
|
|
14087
|
-
camelizeKeys: function(object, options) {
|
|
14088
|
-
return _processKeys(_processor(camelize, options), object);
|
|
14089
|
-
},
|
|
14090
|
-
decamelizeKeys: function(object, options) {
|
|
14091
|
-
return _processKeys(_processor(decamelize, options), object, options);
|
|
14092
|
-
},
|
|
14093
|
-
pascalizeKeys: function(object, options) {
|
|
14094
|
-
return _processKeys(_processor(pascalize, options), object);
|
|
14095
|
-
},
|
|
14096
|
-
depascalizeKeys: function () {
|
|
14097
|
-
return this.decamelizeKeys.apply(this, arguments);
|
|
14098
|
-
}
|
|
14099
|
-
};
|
|
14100
|
-
|
|
14101
|
-
if (module.exports) {
|
|
14102
|
-
module.exports = humps;
|
|
14103
|
-
} else {
|
|
14104
|
-
global.humps = humps;
|
|
14105
|
-
}
|
|
14106
|
-
|
|
14107
|
-
})(commonjsGlobal);
|
|
14108
|
-
} (humps));
|
|
14109
|
-
|
|
14110
14003
|
class InvalidTokenError extends Error {
|
|
14111
14004
|
}
|
|
14112
14005
|
InvalidTokenError.prototype.name = "InvalidTokenError";
|
|
@@ -16234,23 +16127,23 @@ class CustomPackagesAPI {
|
|
|
16234
16127
|
}
|
|
16235
16128
|
}
|
|
16236
16129
|
|
|
16237
|
-
var __defProp$
|
|
16238
|
-
var __getOwnPropSymbols$
|
|
16239
|
-
var __hasOwnProp$
|
|
16240
|
-
var __propIsEnum$
|
|
16241
|
-
var __defNormalProp$
|
|
16242
|
-
var __spreadValues$
|
|
16130
|
+
var __defProp$t = Object.defineProperty;
|
|
16131
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
16132
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
16133
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
16134
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16135
|
+
var __spreadValues$t = (a, b) => {
|
|
16243
16136
|
for (var prop in b || (b = {}))
|
|
16244
|
-
if (__hasOwnProp$
|
|
16245
|
-
__defNormalProp$
|
|
16246
|
-
if (__getOwnPropSymbols$
|
|
16247
|
-
for (var prop of __getOwnPropSymbols$
|
|
16248
|
-
if (__propIsEnum$
|
|
16249
|
-
__defNormalProp$
|
|
16137
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
16138
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
16139
|
+
if (__getOwnPropSymbols$E)
|
|
16140
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
16141
|
+
if (__propIsEnum$E.call(b, prop))
|
|
16142
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
16250
16143
|
}
|
|
16251
16144
|
return a;
|
|
16252
16145
|
};
|
|
16253
|
-
var __async$
|
|
16146
|
+
var __async$U = (__this, __arguments, generator) => {
|
|
16254
16147
|
return new Promise((resolve, reject) => {
|
|
16255
16148
|
var fulfilled = (value) => {
|
|
16256
16149
|
try {
|
|
@@ -16289,12 +16182,12 @@ class FundingSourcesAPI {
|
|
|
16289
16182
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16290
16183
|
* payment information to be collected from the user.
|
|
16291
16184
|
*/
|
|
16292
|
-
this.create = (createFundingSource) => __async$
|
|
16185
|
+
this.create = (createFundingSource) => __async$U(this, null, function* () {
|
|
16293
16186
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16294
16187
|
if (!endUserIpAddress) {
|
|
16295
16188
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16296
16189
|
}
|
|
16297
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16190
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$t({
|
|
16298
16191
|
endUserIpAddress
|
|
16299
16192
|
}, createFundingSource));
|
|
16300
16193
|
});
|
|
@@ -16303,7 +16196,7 @@ class FundingSourcesAPI {
|
|
|
16303
16196
|
* user to update the billing address or payment information associated with the
|
|
16304
16197
|
* funding source.
|
|
16305
16198
|
*/
|
|
16306
|
-
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$
|
|
16199
|
+
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$U(this, null, function* () {
|
|
16307
16200
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16308
16201
|
if (!endUserIpAddress) {
|
|
16309
16202
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16321,19 +16214,19 @@ class FundingSourcesAPI {
|
|
|
16321
16214
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16322
16215
|
* it with a given funding source.
|
|
16323
16216
|
*/
|
|
16324
|
-
this.registerCarrier = (carrier) => __async$
|
|
16217
|
+
this.registerCarrier = (carrier) => __async$U(this, null, function* () {
|
|
16325
16218
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16326
16219
|
if (!endUserIpAddress) {
|
|
16327
16220
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16328
16221
|
}
|
|
16329
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16222
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$t({
|
|
16330
16223
|
endUserIpAddress
|
|
16331
16224
|
}, carrier));
|
|
16332
16225
|
});
|
|
16333
16226
|
/**
|
|
16334
16227
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16335
16228
|
*/
|
|
16336
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16229
|
+
this.addFunds = (amount, fundingSourceId) => __async$U(this, null, function* () {
|
|
16337
16230
|
return yield this.client.put(
|
|
16338
16231
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16339
16232
|
amount
|
|
@@ -16343,7 +16236,7 @@ class FundingSourcesAPI {
|
|
|
16343
16236
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16344
16237
|
* and attaching carriers
|
|
16345
16238
|
*/
|
|
16346
|
-
this.metadata = () => __async$
|
|
16239
|
+
this.metadata = () => __async$U(this, null, function* () {
|
|
16347
16240
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16348
16241
|
});
|
|
16349
16242
|
/**
|
|
@@ -16395,6 +16288,55 @@ class InsuranceAPI {
|
|
|
16395
16288
|
}
|
|
16396
16289
|
}
|
|
16397
16290
|
|
|
16291
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
16292
|
+
return new Promise((resolve, reject) => {
|
|
16293
|
+
var fulfilled = (value) => {
|
|
16294
|
+
try {
|
|
16295
|
+
step(generator.next(value));
|
|
16296
|
+
} catch (e) {
|
|
16297
|
+
reject(e);
|
|
16298
|
+
}
|
|
16299
|
+
};
|
|
16300
|
+
var rejected = (value) => {
|
|
16301
|
+
try {
|
|
16302
|
+
step(generator.throw(value));
|
|
16303
|
+
} catch (e) {
|
|
16304
|
+
reject(e);
|
|
16305
|
+
}
|
|
16306
|
+
};
|
|
16307
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
16308
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
16309
|
+
});
|
|
16310
|
+
};
|
|
16311
|
+
class InvoiceAddressAPI {
|
|
16312
|
+
constructor(client) {
|
|
16313
|
+
this.client = client;
|
|
16314
|
+
/**
|
|
16315
|
+
* The `get` method retrieves the invoice address for a given user.
|
|
16316
|
+
*/
|
|
16317
|
+
this.get = () => {
|
|
16318
|
+
return this.client.get("/v1/invoice_address");
|
|
16319
|
+
};
|
|
16320
|
+
/**
|
|
16321
|
+
* The `create` method creates a new invoice address for a given user.
|
|
16322
|
+
*/
|
|
16323
|
+
this.create = (invoiceAddress) => __async$T(this, null, function* () {
|
|
16324
|
+
return yield this.client.post("/v1/invoice_address", {
|
|
16325
|
+
invoiceAddress
|
|
16326
|
+
});
|
|
16327
|
+
});
|
|
16328
|
+
/**
|
|
16329
|
+
* The `update` method updates a invoice address for a given user.
|
|
16330
|
+
*/
|
|
16331
|
+
this.update = (invoiceAddress) => __async$T(this, null, function* () {
|
|
16332
|
+
return yield this.client.put("/v1/invoice_address", {
|
|
16333
|
+
invoiceAddress
|
|
16334
|
+
});
|
|
16335
|
+
});
|
|
16336
|
+
this.client = client;
|
|
16337
|
+
}
|
|
16338
|
+
}
|
|
16339
|
+
|
|
16398
16340
|
class LabelsAPI {
|
|
16399
16341
|
constructor(client) {
|
|
16400
16342
|
this.client = client;
|
|
@@ -16430,17 +16372,17 @@ class LabelsAPI {
|
|
|
16430
16372
|
}
|
|
16431
16373
|
}
|
|
16432
16374
|
|
|
16433
|
-
var __getOwnPropSymbols$
|
|
16434
|
-
var __hasOwnProp$
|
|
16435
|
-
var __propIsEnum$
|
|
16375
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
16376
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
16377
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
16436
16378
|
var __objRest$m = (source, exclude) => {
|
|
16437
16379
|
var target = {};
|
|
16438
16380
|
for (var prop in source)
|
|
16439
|
-
if (__hasOwnProp$
|
|
16381
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16440
16382
|
target[prop] = source[prop];
|
|
16441
|
-
if (source != null && __getOwnPropSymbols$
|
|
16442
|
-
for (var prop of __getOwnPropSymbols$
|
|
16443
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16383
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
16384
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
16385
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
16444
16386
|
target[prop] = source[prop];
|
|
16445
16387
|
}
|
|
16446
16388
|
return target;
|
|
@@ -16561,19 +16503,19 @@ class RateCardsAPI {
|
|
|
16561
16503
|
}
|
|
16562
16504
|
}
|
|
16563
16505
|
|
|
16564
|
-
var __defProp$
|
|
16565
|
-
var __getOwnPropSymbols$
|
|
16566
|
-
var __hasOwnProp$
|
|
16567
|
-
var __propIsEnum$
|
|
16568
|
-
var __defNormalProp$
|
|
16569
|
-
var __spreadValues$
|
|
16506
|
+
var __defProp$s = Object.defineProperty;
|
|
16507
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
16508
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
16509
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
16510
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16511
|
+
var __spreadValues$s = (a, b) => {
|
|
16570
16512
|
for (var prop in b || (b = {}))
|
|
16571
|
-
if (__hasOwnProp$
|
|
16572
|
-
__defNormalProp$
|
|
16573
|
-
if (__getOwnPropSymbols$
|
|
16574
|
-
for (var prop of __getOwnPropSymbols$
|
|
16575
|
-
if (__propIsEnum$
|
|
16576
|
-
__defNormalProp$
|
|
16513
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
16514
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
16515
|
+
if (__getOwnPropSymbols$C)
|
|
16516
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
16517
|
+
if (__propIsEnum$C.call(b, prop))
|
|
16518
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
16577
16519
|
}
|
|
16578
16520
|
return a;
|
|
16579
16521
|
};
|
|
@@ -16595,7 +16537,7 @@ class RatesAPI {
|
|
|
16595
16537
|
* method.
|
|
16596
16538
|
*/
|
|
16597
16539
|
this.estimate = (params) => {
|
|
16598
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16540
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$s({}, params));
|
|
16599
16541
|
};
|
|
16600
16542
|
this.client = client;
|
|
16601
16543
|
}
|
|
@@ -16607,10 +16549,14 @@ class SalesOrderShipmentsAPI {
|
|
|
16607
16549
|
/**
|
|
16608
16550
|
* The `list` method retrieves a list of sales order shipments for a given user.
|
|
16609
16551
|
*/
|
|
16610
|
-
this.list = (body
|
|
16611
|
-
return this.client.post("/v-beta/shipments/list", body
|
|
16612
|
-
|
|
16613
|
-
|
|
16552
|
+
this.list = (body) => {
|
|
16553
|
+
return this.client.post("/v-beta/shipments/list", body);
|
|
16554
|
+
};
|
|
16555
|
+
/**
|
|
16556
|
+
* The `listShipmentsByExternalOrderId` method retrieves a list of shipments associated to a sales order that matches `externalOrderId`
|
|
16557
|
+
*/
|
|
16558
|
+
this.listShipmentsByExternalOrderId = (externalOrderId) => {
|
|
16559
|
+
return this.client.get(`/v-beta/shipments/external_order_id/${externalOrderId}`);
|
|
16614
16560
|
};
|
|
16615
16561
|
/**
|
|
16616
16562
|
* The `get` method retrieves a specific sales order shipment by `shipmentId`.
|
|
@@ -16652,6 +16598,13 @@ class SalesOrdersAPI {
|
|
|
16652
16598
|
this.get = (salesOrderId) => {
|
|
16653
16599
|
return this.client.get(`/v-beta/sales_orders/${salesOrderId}`);
|
|
16654
16600
|
};
|
|
16601
|
+
/**
|
|
16602
|
+
* The `getByExternalId` method retrieves a specific sales order by its `externalOrderId`.
|
|
16603
|
+
* @param externalOrderId Id that matches that of the desired sales order.
|
|
16604
|
+
*/
|
|
16605
|
+
this.getByExternalId = (externalOrderId) => {
|
|
16606
|
+
return this.client.get(`/v-beta/sales_orders/external_order_id/${externalOrderId}`);
|
|
16607
|
+
};
|
|
16655
16608
|
/**
|
|
16656
16609
|
* The `notifyShipped` method notifies order source that the order has been
|
|
16657
16610
|
* shipped. Typically, the order source will then notify the user based on
|
|
@@ -16664,7 +16617,7 @@ class SalesOrdersAPI {
|
|
|
16664
16617
|
}
|
|
16665
16618
|
}
|
|
16666
16619
|
|
|
16667
|
-
var __async$
|
|
16620
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
16668
16621
|
return new Promise((resolve, reject) => {
|
|
16669
16622
|
var fulfilled = (value) => {
|
|
16670
16623
|
try {
|
|
@@ -16722,7 +16675,7 @@ class SellersAPI {
|
|
|
16722
16675
|
/**
|
|
16723
16676
|
* Deletes an API Key
|
|
16724
16677
|
*/
|
|
16725
|
-
this.deleteSellerApiKey = (_0) => __async$
|
|
16678
|
+
this.deleteSellerApiKey = (_0) => __async$S(this, [_0], function* ({
|
|
16726
16679
|
encryptedApiKey,
|
|
16727
16680
|
sellerId,
|
|
16728
16681
|
isSandbox
|
|
@@ -16768,19 +16721,19 @@ class SellersAPI {
|
|
|
16768
16721
|
}
|
|
16769
16722
|
}
|
|
16770
16723
|
|
|
16771
|
-
var __defProp$
|
|
16772
|
-
var __getOwnPropSymbols$
|
|
16773
|
-
var __hasOwnProp$
|
|
16774
|
-
var __propIsEnum$
|
|
16775
|
-
var __defNormalProp$
|
|
16776
|
-
var __spreadValues$
|
|
16724
|
+
var __defProp$r = Object.defineProperty;
|
|
16725
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
16726
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
16727
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
16728
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16729
|
+
var __spreadValues$r = (a, b) => {
|
|
16777
16730
|
for (var prop in b || (b = {}))
|
|
16778
|
-
if (__hasOwnProp$
|
|
16779
|
-
__defNormalProp$
|
|
16780
|
-
if (__getOwnPropSymbols$
|
|
16781
|
-
for (var prop of __getOwnPropSymbols$
|
|
16782
|
-
if (__propIsEnum$
|
|
16783
|
-
__defNormalProp$
|
|
16731
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
16732
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
16733
|
+
if (__getOwnPropSymbols$B)
|
|
16734
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
16735
|
+
if (__propIsEnum$B.call(b, prop))
|
|
16736
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
16784
16737
|
}
|
|
16785
16738
|
return a;
|
|
16786
16739
|
};
|
|
@@ -16792,7 +16745,7 @@ class ServicePointsAPI {
|
|
|
16792
16745
|
* Either an address, coordinates, or an address query
|
|
16793
16746
|
*/
|
|
16794
16747
|
this.list = (options) => {
|
|
16795
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16748
|
+
return this.client.post("/v1/service_points/list", __spreadValues$r({}, options));
|
|
16796
16749
|
};
|
|
16797
16750
|
/**
|
|
16798
16751
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -16810,7 +16763,7 @@ class ServicePointsAPI {
|
|
|
16810
16763
|
}
|
|
16811
16764
|
}
|
|
16812
16765
|
|
|
16813
|
-
var __async$
|
|
16766
|
+
var __async$R = (__this, __arguments, generator) => {
|
|
16814
16767
|
return new Promise((resolve, reject) => {
|
|
16815
16768
|
var fulfilled = (value) => {
|
|
16816
16769
|
try {
|
|
@@ -16859,7 +16812,7 @@ class ShipmentsAPI {
|
|
|
16859
16812
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
16860
16813
|
* items passed into this method.
|
|
16861
16814
|
*/
|
|
16862
|
-
this.create = (...shipments) => __async$
|
|
16815
|
+
this.create = (...shipments) => __async$R(this, null, function* () {
|
|
16863
16816
|
return this.client.post("/v1/shipments", {
|
|
16864
16817
|
shipments
|
|
16865
16818
|
});
|
|
@@ -34251,26 +34204,26 @@ class WebhooksAPI {
|
|
|
34251
34204
|
}
|
|
34252
34205
|
}
|
|
34253
34206
|
|
|
34254
|
-
var __defProp$
|
|
34255
|
-
var __defProps$
|
|
34256
|
-
var __getOwnPropDescs$
|
|
34257
|
-
var __getOwnPropSymbols$
|
|
34258
|
-
var __hasOwnProp$
|
|
34259
|
-
var __propIsEnum$
|
|
34260
|
-
var __defNormalProp$
|
|
34261
|
-
var __spreadValues$
|
|
34207
|
+
var __defProp$q = Object.defineProperty;
|
|
34208
|
+
var __defProps$n = Object.defineProperties;
|
|
34209
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
34210
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
34211
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
34212
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
34213
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34214
|
+
var __spreadValues$q = (a, b) => {
|
|
34262
34215
|
for (var prop in b || (b = {}))
|
|
34263
|
-
if (__hasOwnProp$
|
|
34264
|
-
__defNormalProp$
|
|
34265
|
-
if (__getOwnPropSymbols$
|
|
34266
|
-
for (var prop of __getOwnPropSymbols$
|
|
34267
|
-
if (__propIsEnum$
|
|
34268
|
-
__defNormalProp$
|
|
34216
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
34217
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
34218
|
+
if (__getOwnPropSymbols$A)
|
|
34219
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
34220
|
+
if (__propIsEnum$A.call(b, prop))
|
|
34221
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
34269
34222
|
}
|
|
34270
34223
|
return a;
|
|
34271
34224
|
};
|
|
34272
|
-
var __spreadProps$
|
|
34273
|
-
var __async$
|
|
34225
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
34226
|
+
var __async$Q = (__this, __arguments, generator) => {
|
|
34274
34227
|
return new Promise((resolve, reject) => {
|
|
34275
34228
|
var fulfilled = (value) => {
|
|
34276
34229
|
try {
|
|
@@ -34293,7 +34246,7 @@ var __async$O = (__this, __arguments, generator) => {
|
|
|
34293
34246
|
const logger$1 = E({
|
|
34294
34247
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34295
34248
|
name: "shipengine-api",
|
|
34296
|
-
serializers: __spreadProps$
|
|
34249
|
+
serializers: __spreadProps$n(__spreadValues$q({}, k), {
|
|
34297
34250
|
req: (req) => ({
|
|
34298
34251
|
headers: req.headers,
|
|
34299
34252
|
method: req.method,
|
|
@@ -34318,14 +34271,14 @@ class ShipEngineAPI {
|
|
|
34318
34271
|
this.getSandboxToken = getSandboxToken;
|
|
34319
34272
|
const client = axios.create({
|
|
34320
34273
|
baseURL,
|
|
34321
|
-
headers: __spreadProps$
|
|
34274
|
+
headers: __spreadProps$n(__spreadValues$q({}, headers), {
|
|
34322
34275
|
"Content-Type": "application/json"
|
|
34323
34276
|
}),
|
|
34324
|
-
paramsSerializer: (params) => lib.stringify(
|
|
34277
|
+
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
34325
34278
|
transformRequest: [
|
|
34326
34279
|
(data) => {
|
|
34327
34280
|
if (data && !(data instanceof FormData))
|
|
34328
|
-
return
|
|
34281
|
+
return decamelizeKeys(data);
|
|
34329
34282
|
else
|
|
34330
34283
|
return data;
|
|
34331
34284
|
},
|
|
@@ -34345,7 +34298,7 @@ class ShipEngineAPI {
|
|
|
34345
34298
|
},
|
|
34346
34299
|
(data) => {
|
|
34347
34300
|
if (data && !(data instanceof Blob))
|
|
34348
|
-
return
|
|
34301
|
+
return camelizeKeys(data);
|
|
34349
34302
|
else
|
|
34350
34303
|
return data;
|
|
34351
34304
|
}
|
|
@@ -34353,7 +34306,7 @@ class ShipEngineAPI {
|
|
|
34353
34306
|
});
|
|
34354
34307
|
client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
|
|
34355
34308
|
client.interceptors.request.use(
|
|
34356
|
-
(config) => __async$
|
|
34309
|
+
(config) => __async$Q(this, null, function* () {
|
|
34357
34310
|
if (config.isSandbox) {
|
|
34358
34311
|
if (!this.sandboxToken) {
|
|
34359
34312
|
this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
|
|
@@ -34380,7 +34333,7 @@ class ShipEngineAPI {
|
|
|
34380
34333
|
);
|
|
34381
34334
|
return res;
|
|
34382
34335
|
},
|
|
34383
|
-
(err) => __async$
|
|
34336
|
+
(err) => __async$Q(this, null, function* () {
|
|
34384
34337
|
var _a, _b, _c, _d, _e;
|
|
34385
34338
|
logger$1.error(
|
|
34386
34339
|
{ err, req: err.config, res: err.response },
|
|
@@ -34427,7 +34380,7 @@ class ShipEngineAPI {
|
|
|
34427
34380
|
* that token (also known as Seller ID)
|
|
34428
34381
|
*/
|
|
34429
34382
|
getTenant(isSandbox) {
|
|
34430
|
-
return __async$
|
|
34383
|
+
return __async$Q(this, null, function* () {
|
|
34431
34384
|
var _a;
|
|
34432
34385
|
if (!isSandbox) {
|
|
34433
34386
|
return this.getTenantFromToken(this.token);
|
|
@@ -34518,6 +34471,15 @@ class ShipEngineAPI {
|
|
|
34518
34471
|
get insurance() {
|
|
34519
34472
|
return new InsuranceAPI(this.client);
|
|
34520
34473
|
}
|
|
34474
|
+
/**
|
|
34475
|
+
* The `invoiceAddress` method provides access to the Invoice Address endpoints
|
|
34476
|
+
* in ShipEngine API.
|
|
34477
|
+
*
|
|
34478
|
+
* @see {@link InvoiceAddress | The Invoice Address API module}
|
|
34479
|
+
*/
|
|
34480
|
+
get invoiceAddress() {
|
|
34481
|
+
return new InvoiceAddressAPI(this.client);
|
|
34482
|
+
}
|
|
34521
34483
|
/**
|
|
34522
34484
|
* The `labels` method provides access to the Label endpoints in ShipEngine API.
|
|
34523
34485
|
* e.g. Create Label, Get Label, Void Label, etc.
|
|
@@ -34697,25 +34659,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34697
34659
|
|
|
34698
34660
|
const onError = (_errors) => _default();
|
|
34699
34661
|
|
|
34700
|
-
var __defProp$
|
|
34701
|
-
var __defProps$
|
|
34702
|
-
var __getOwnPropDescs$
|
|
34703
|
-
var __getOwnPropSymbols$
|
|
34704
|
-
var __hasOwnProp$
|
|
34705
|
-
var __propIsEnum$
|
|
34706
|
-
var __defNormalProp$
|
|
34707
|
-
var __spreadValues$
|
|
34662
|
+
var __defProp$p = Object.defineProperty;
|
|
34663
|
+
var __defProps$m = Object.defineProperties;
|
|
34664
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
34665
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
34666
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
34667
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
34668
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34669
|
+
var __spreadValues$p = (a, b) => {
|
|
34708
34670
|
for (var prop in b || (b = {}))
|
|
34709
|
-
if (__hasOwnProp$
|
|
34710
|
-
__defNormalProp$
|
|
34711
|
-
if (__getOwnPropSymbols$
|
|
34712
|
-
for (var prop of __getOwnPropSymbols$
|
|
34713
|
-
if (__propIsEnum$
|
|
34714
|
-
__defNormalProp$
|
|
34671
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
34672
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
34673
|
+
if (__getOwnPropSymbols$z)
|
|
34674
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
34675
|
+
if (__propIsEnum$z.call(b, prop))
|
|
34676
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
34715
34677
|
}
|
|
34716
34678
|
return a;
|
|
34717
34679
|
};
|
|
34718
|
-
var __spreadProps$
|
|
34680
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
34719
34681
|
const streams = [];
|
|
34720
34682
|
if (process.env.NODE_ENV === "production") {
|
|
34721
34683
|
streams.push({
|
|
@@ -34724,7 +34686,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34724
34686
|
}
|
|
34725
34687
|
const logger = E({
|
|
34726
34688
|
name: "shipengine",
|
|
34727
|
-
serializers: __spreadProps$
|
|
34689
|
+
serializers: __spreadProps$m(__spreadValues$p({}, k), {
|
|
34728
34690
|
req: (req) => ({
|
|
34729
34691
|
headers: req.headers,
|
|
34730
34692
|
method: req.method,
|
|
@@ -34749,7 +34711,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
34749
34711
|
throw error;
|
|
34750
34712
|
});
|
|
34751
34713
|
|
|
34752
|
-
var __async$
|
|
34714
|
+
var __async$P = (__this, __arguments, generator) => {
|
|
34753
34715
|
return new Promise((resolve, reject) => {
|
|
34754
34716
|
var fulfilled = (value) => {
|
|
34755
34717
|
try {
|
|
@@ -34772,7 +34734,7 @@ var __async$N = (__this, __arguments, generator) => {
|
|
|
34772
34734
|
const useCreateAccountImage = () => {
|
|
34773
34735
|
const { client } = useShipEngine();
|
|
34774
34736
|
return useMutation({
|
|
34775
|
-
mutationFn: (data) => __async$
|
|
34737
|
+
mutationFn: (data) => __async$P(void 0, null, function* () {
|
|
34776
34738
|
const result = yield client.accountSettings.createImage(data);
|
|
34777
34739
|
return result.data;
|
|
34778
34740
|
}),
|
|
@@ -34781,7 +34743,7 @@ const useCreateAccountImage = () => {
|
|
|
34781
34743
|
});
|
|
34782
34744
|
};
|
|
34783
34745
|
|
|
34784
|
-
var __async$
|
|
34746
|
+
var __async$O = (__this, __arguments, generator) => {
|
|
34785
34747
|
return new Promise((resolve, reject) => {
|
|
34786
34748
|
var fulfilled = (value) => {
|
|
34787
34749
|
try {
|
|
@@ -34804,7 +34766,7 @@ var __async$M = (__this, __arguments, generator) => {
|
|
|
34804
34766
|
const useDeleteAccountImage = () => {
|
|
34805
34767
|
const { client } = useShipEngine();
|
|
34806
34768
|
return useMutation({
|
|
34807
|
-
mutationFn: (labelImageId) => __async$
|
|
34769
|
+
mutationFn: (labelImageId) => __async$O(void 0, null, function* () {
|
|
34808
34770
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
34809
34771
|
return result.data;
|
|
34810
34772
|
}),
|
|
@@ -34833,7 +34795,7 @@ const useGetAccountSettings = () => {
|
|
|
34833
34795
|
});
|
|
34834
34796
|
};
|
|
34835
34797
|
|
|
34836
|
-
var __async$
|
|
34798
|
+
var __async$N = (__this, __arguments, generator) => {
|
|
34837
34799
|
return new Promise((resolve, reject) => {
|
|
34838
34800
|
var fulfilled = (value) => {
|
|
34839
34801
|
try {
|
|
@@ -34856,7 +34818,7 @@ var __async$L = (__this, __arguments, generator) => {
|
|
|
34856
34818
|
const useUpdateAccountImage = () => {
|
|
34857
34819
|
const { client } = useShipEngine();
|
|
34858
34820
|
return useMutation({
|
|
34859
|
-
mutationFn: (data) => __async$
|
|
34821
|
+
mutationFn: (data) => __async$N(void 0, null, function* () {
|
|
34860
34822
|
const result = yield client.accountSettings.updateImage(data);
|
|
34861
34823
|
return result.data;
|
|
34862
34824
|
}),
|
|
@@ -34865,7 +34827,7 @@ const useUpdateAccountImage = () => {
|
|
|
34865
34827
|
});
|
|
34866
34828
|
};
|
|
34867
34829
|
|
|
34868
|
-
var __async$
|
|
34830
|
+
var __async$M = (__this, __arguments, generator) => {
|
|
34869
34831
|
return new Promise((resolve, reject) => {
|
|
34870
34832
|
var fulfilled = (value) => {
|
|
34871
34833
|
try {
|
|
@@ -34888,7 +34850,7 @@ var __async$K = (__this, __arguments, generator) => {
|
|
|
34888
34850
|
const useUpdateAccountSettings = () => {
|
|
34889
34851
|
const { client } = useShipEngine();
|
|
34890
34852
|
return useMutation({
|
|
34891
|
-
mutationFn: (settings) => __async$
|
|
34853
|
+
mutationFn: (settings) => __async$M(void 0, null, function* () {
|
|
34892
34854
|
const result = yield client.accountSettings.update(settings);
|
|
34893
34855
|
return result.data;
|
|
34894
34856
|
}),
|
|
@@ -34897,7 +34859,7 @@ const useUpdateAccountSettings = () => {
|
|
|
34897
34859
|
});
|
|
34898
34860
|
};
|
|
34899
34861
|
|
|
34900
|
-
var __async$
|
|
34862
|
+
var __async$L = (__this, __arguments, generator) => {
|
|
34901
34863
|
return new Promise((resolve, reject) => {
|
|
34902
34864
|
var fulfilled = (value) => {
|
|
34903
34865
|
try {
|
|
@@ -34920,7 +34882,7 @@ var __async$J = (__this, __arguments, generator) => {
|
|
|
34920
34882
|
const useParseAddress = () => {
|
|
34921
34883
|
const { client } = useShipEngine();
|
|
34922
34884
|
return useMutation({
|
|
34923
|
-
mutationFn: (_0) => __async$
|
|
34885
|
+
mutationFn: (_0) => __async$L(void 0, [_0], function* ({ address, text }) {
|
|
34924
34886
|
const result = yield client.addresses.parse(text, address);
|
|
34925
34887
|
return result.data;
|
|
34926
34888
|
}),
|
|
@@ -34929,7 +34891,7 @@ const useParseAddress = () => {
|
|
|
34929
34891
|
});
|
|
34930
34892
|
};
|
|
34931
34893
|
|
|
34932
|
-
var __async$
|
|
34894
|
+
var __async$K = (__this, __arguments, generator) => {
|
|
34933
34895
|
return new Promise((resolve, reject) => {
|
|
34934
34896
|
var fulfilled = (value) => {
|
|
34935
34897
|
try {
|
|
@@ -34952,7 +34914,7 @@ var __async$I = (__this, __arguments, generator) => {
|
|
|
34952
34914
|
const useValidateAddresses = () => {
|
|
34953
34915
|
const { client } = useShipEngine();
|
|
34954
34916
|
return useMutation({
|
|
34955
|
-
mutationFn: (addresses) => __async$
|
|
34917
|
+
mutationFn: (addresses) => __async$K(void 0, null, function* () {
|
|
34956
34918
|
const result = yield client.addresses.validate(addresses);
|
|
34957
34919
|
return result.data;
|
|
34958
34920
|
}),
|
|
@@ -34961,7 +34923,7 @@ const useValidateAddresses = () => {
|
|
|
34961
34923
|
});
|
|
34962
34924
|
};
|
|
34963
34925
|
|
|
34964
|
-
var __async$
|
|
34926
|
+
var __async$J = (__this, __arguments, generator) => {
|
|
34965
34927
|
return new Promise((resolve, reject) => {
|
|
34966
34928
|
var fulfilled = (value) => {
|
|
34967
34929
|
try {
|
|
@@ -34984,7 +34946,7 @@ var __async$H = (__this, __arguments, generator) => {
|
|
|
34984
34946
|
const useAddFunds = () => {
|
|
34985
34947
|
const { client } = useShipEngine();
|
|
34986
34948
|
return useMutation({
|
|
34987
|
-
mutationFn: (_0) => __async$
|
|
34949
|
+
mutationFn: (_0) => __async$J(void 0, [_0], function* ({ carrierId, funds }) {
|
|
34988
34950
|
const result = yield client.carriers.addFunds(carrierId, funds);
|
|
34989
34951
|
return result.data;
|
|
34990
34952
|
}),
|
|
@@ -34993,7 +34955,7 @@ const useAddFunds = () => {
|
|
|
34993
34955
|
});
|
|
34994
34956
|
};
|
|
34995
34957
|
|
|
34996
|
-
var __async$
|
|
34958
|
+
var __async$I = (__this, __arguments, generator) => {
|
|
34997
34959
|
return new Promise((resolve, reject) => {
|
|
34998
34960
|
var fulfilled = (value) => {
|
|
34999
34961
|
try {
|
|
@@ -35016,7 +34978,7 @@ var __async$G = (__this, __arguments, generator) => {
|
|
|
35016
34978
|
const useConnectCarrier = () => {
|
|
35017
34979
|
const { client } = useShipEngine();
|
|
35018
34980
|
return useMutation({
|
|
35019
|
-
mutationFn: (params) => __async$
|
|
34981
|
+
mutationFn: (params) => __async$I(void 0, null, function* () {
|
|
35020
34982
|
const result = yield client.carriers.connect(params);
|
|
35021
34983
|
return result.data;
|
|
35022
34984
|
}),
|
|
@@ -35125,41 +35087,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
35125
35087
|
});
|
|
35126
35088
|
};
|
|
35127
35089
|
|
|
35128
|
-
var __defProp$
|
|
35129
|
-
var __defProps$
|
|
35130
|
-
var __getOwnPropDescs$
|
|
35131
|
-
var __getOwnPropSymbols$
|
|
35132
|
-
var __hasOwnProp$
|
|
35133
|
-
var __propIsEnum$
|
|
35134
|
-
var __defNormalProp$
|
|
35135
|
-
var __spreadValues$
|
|
35090
|
+
var __defProp$o = Object.defineProperty;
|
|
35091
|
+
var __defProps$l = Object.defineProperties;
|
|
35092
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
35093
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
35094
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
35095
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
35096
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35097
|
+
var __spreadValues$o = (a, b) => {
|
|
35136
35098
|
for (var prop in b || (b = {}))
|
|
35137
|
-
if (__hasOwnProp$
|
|
35138
|
-
__defNormalProp$
|
|
35139
|
-
if (__getOwnPropSymbols$
|
|
35140
|
-
for (var prop of __getOwnPropSymbols$
|
|
35141
|
-
if (__propIsEnum$
|
|
35142
|
-
__defNormalProp$
|
|
35099
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
35100
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
35101
|
+
if (__getOwnPropSymbols$y)
|
|
35102
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
35103
|
+
if (__propIsEnum$y.call(b, prop))
|
|
35104
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
35143
35105
|
}
|
|
35144
35106
|
return a;
|
|
35145
35107
|
};
|
|
35146
|
-
var __spreadProps$
|
|
35108
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
35147
35109
|
var __objRest$l = (source, exclude) => {
|
|
35148
35110
|
var target = {};
|
|
35149
35111
|
for (var prop in source)
|
|
35150
|
-
if (__hasOwnProp$
|
|
35112
|
+
if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35151
35113
|
target[prop] = source[prop];
|
|
35152
|
-
if (source != null && __getOwnPropSymbols$
|
|
35153
|
-
for (var prop of __getOwnPropSymbols$
|
|
35154
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35114
|
+
if (source != null && __getOwnPropSymbols$y)
|
|
35115
|
+
for (var prop of __getOwnPropSymbols$y(source)) {
|
|
35116
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
|
|
35155
35117
|
target[prop] = source[prop];
|
|
35156
35118
|
}
|
|
35157
35119
|
return target;
|
|
35158
35120
|
};
|
|
35159
35121
|
const useListCarriers = (params) => {
|
|
35160
35122
|
const { client } = useShipEngine();
|
|
35161
|
-
const _a = __spreadValues$
|
|
35162
|
-
return useQuery(__spreadProps$
|
|
35123
|
+
const _a = __spreadValues$o({}, params), { queryFnParams } = _a, rest = __objRest$l(_a, ["queryFnParams"]);
|
|
35124
|
+
return useQuery(__spreadProps$l(__spreadValues$o({}, rest), {
|
|
35163
35125
|
onError,
|
|
35164
35126
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
35165
35127
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -35167,22 +35129,22 @@ const useListCarriers = (params) => {
|
|
|
35167
35129
|
}));
|
|
35168
35130
|
};
|
|
35169
35131
|
|
|
35170
|
-
var __getOwnPropSymbols$
|
|
35171
|
-
var __hasOwnProp$
|
|
35172
|
-
var __propIsEnum$
|
|
35132
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
35133
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
35134
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
35173
35135
|
var __objRest$k = (source, exclude) => {
|
|
35174
35136
|
var target = {};
|
|
35175
35137
|
for (var prop in source)
|
|
35176
|
-
if (__hasOwnProp$
|
|
35138
|
+
if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35177
35139
|
target[prop] = source[prop];
|
|
35178
|
-
if (source != null && __getOwnPropSymbols$
|
|
35179
|
-
for (var prop of __getOwnPropSymbols$
|
|
35180
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35140
|
+
if (source != null && __getOwnPropSymbols$x)
|
|
35141
|
+
for (var prop of __getOwnPropSymbols$x(source)) {
|
|
35142
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
|
|
35181
35143
|
target[prop] = source[prop];
|
|
35182
35144
|
}
|
|
35183
35145
|
return target;
|
|
35184
35146
|
};
|
|
35185
|
-
var __async$
|
|
35147
|
+
var __async$H = (__this, __arguments, generator) => {
|
|
35186
35148
|
return new Promise((resolve, reject) => {
|
|
35187
35149
|
var fulfilled = (value) => {
|
|
35188
35150
|
try {
|
|
@@ -35206,7 +35168,7 @@ const useUpdateAutoFunding = () => {
|
|
|
35206
35168
|
const { client } = useShipEngine();
|
|
35207
35169
|
const queryClient = useQueryClient();
|
|
35208
35170
|
return useMutation({
|
|
35209
|
-
mutationFn: (_a) => __async$
|
|
35171
|
+
mutationFn: (_a) => __async$H(void 0, null, function* () {
|
|
35210
35172
|
var _b = _a, { carrierId } = _b, options = __objRest$k(_b, ["carrierId"]);
|
|
35211
35173
|
const result = yield client.carriers.updateAutoFunding(carrierId, options);
|
|
35212
35174
|
return result.data;
|
|
@@ -35236,7 +35198,7 @@ const useGetZonesByCarrier = (carrierId) => {
|
|
|
35236
35198
|
});
|
|
35237
35199
|
};
|
|
35238
35200
|
|
|
35239
|
-
var __async$
|
|
35201
|
+
var __async$G = (__this, __arguments, generator) => {
|
|
35240
35202
|
return new Promise((resolve, reject) => {
|
|
35241
35203
|
var fulfilled = (value) => {
|
|
35242
35204
|
try {
|
|
@@ -35259,7 +35221,7 @@ var __async$E = (__this, __arguments, generator) => {
|
|
|
35259
35221
|
const useDeleteCarrier = () => {
|
|
35260
35222
|
const { client } = useShipEngine();
|
|
35261
35223
|
return useMutation({
|
|
35262
|
-
mutationFn: (carrierId) => __async$
|
|
35224
|
+
mutationFn: (carrierId) => __async$G(void 0, null, function* () {
|
|
35263
35225
|
const result = yield client.carriers.delete(carrierId);
|
|
35264
35226
|
return result.data;
|
|
35265
35227
|
}),
|
|
@@ -35268,17 +35230,17 @@ const useDeleteCarrier = () => {
|
|
|
35268
35230
|
});
|
|
35269
35231
|
};
|
|
35270
35232
|
|
|
35271
|
-
var __getOwnPropSymbols$
|
|
35272
|
-
var __hasOwnProp$
|
|
35273
|
-
var __propIsEnum$
|
|
35233
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
35234
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
35235
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
35274
35236
|
var __objRest$j = (source, exclude) => {
|
|
35275
35237
|
var target = {};
|
|
35276
35238
|
for (var prop in source)
|
|
35277
|
-
if (__hasOwnProp$
|
|
35239
|
+
if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35278
35240
|
target[prop] = source[prop];
|
|
35279
|
-
if (source != null && __getOwnPropSymbols$
|
|
35280
|
-
for (var prop of __getOwnPropSymbols$
|
|
35281
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35241
|
+
if (source != null && __getOwnPropSymbols$w)
|
|
35242
|
+
for (var prop of __getOwnPropSymbols$w(source)) {
|
|
35243
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
|
|
35282
35244
|
target[prop] = source[prop];
|
|
35283
35245
|
}
|
|
35284
35246
|
return target;
|
|
@@ -35295,17 +35257,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
35295
35257
|
});
|
|
35296
35258
|
};
|
|
35297
35259
|
|
|
35298
|
-
var __getOwnPropSymbols$
|
|
35299
|
-
var __hasOwnProp$
|
|
35300
|
-
var __propIsEnum$
|
|
35260
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
35261
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
35262
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
35301
35263
|
var __objRest$i = (source, exclude) => {
|
|
35302
35264
|
var target = {};
|
|
35303
35265
|
for (var prop in source)
|
|
35304
|
-
if (__hasOwnProp$
|
|
35266
|
+
if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35305
35267
|
target[prop] = source[prop];
|
|
35306
|
-
if (source != null && __getOwnPropSymbols$
|
|
35307
|
-
for (var prop of __getOwnPropSymbols$
|
|
35308
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35268
|
+
if (source != null && __getOwnPropSymbols$v)
|
|
35269
|
+
for (var prop of __getOwnPropSymbols$v(source)) {
|
|
35270
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
|
|
35309
35271
|
target[prop] = source[prop];
|
|
35310
35272
|
}
|
|
35311
35273
|
return target;
|
|
@@ -35322,7 +35284,7 @@ const useListCarrierConnections = (_params) => {
|
|
|
35322
35284
|
});
|
|
35323
35285
|
};
|
|
35324
35286
|
|
|
35325
|
-
var __async$
|
|
35287
|
+
var __async$F = (__this, __arguments, generator) => {
|
|
35326
35288
|
return new Promise((resolve, reject) => {
|
|
35327
35289
|
var fulfilled = (value) => {
|
|
35328
35290
|
try {
|
|
@@ -35345,7 +35307,7 @@ var __async$D = (__this, __arguments, generator) => {
|
|
|
35345
35307
|
const useConnectCarrierAccount = () => {
|
|
35346
35308
|
const { client } = useShipEngine();
|
|
35347
35309
|
return useMutation({
|
|
35348
|
-
mutationFn: (_0) => __async$
|
|
35310
|
+
mutationFn: (_0) => __async$F(void 0, [_0], function* ({ carrierName, formData }) {
|
|
35349
35311
|
const result = yield client.connections.connectCarrier(carrierName, formData);
|
|
35350
35312
|
return result.data;
|
|
35351
35313
|
}),
|
|
@@ -35365,33 +35327,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
35365
35327
|
});
|
|
35366
35328
|
};
|
|
35367
35329
|
|
|
35368
|
-
var __defProp$
|
|
35369
|
-
var __defProps$
|
|
35370
|
-
var __getOwnPropDescs$
|
|
35371
|
-
var __getOwnPropSymbols$
|
|
35372
|
-
var __hasOwnProp$
|
|
35373
|
-
var __propIsEnum$
|
|
35374
|
-
var __defNormalProp$
|
|
35375
|
-
var __spreadValues$
|
|
35330
|
+
var __defProp$n = Object.defineProperty;
|
|
35331
|
+
var __defProps$k = Object.defineProperties;
|
|
35332
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
35333
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
35334
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
35335
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
35336
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35337
|
+
var __spreadValues$n = (a, b) => {
|
|
35376
35338
|
for (var prop in b || (b = {}))
|
|
35377
|
-
if (__hasOwnProp$
|
|
35378
|
-
__defNormalProp$
|
|
35379
|
-
if (__getOwnPropSymbols$
|
|
35380
|
-
for (var prop of __getOwnPropSymbols$
|
|
35381
|
-
if (__propIsEnum$
|
|
35382
|
-
__defNormalProp$
|
|
35339
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
35340
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
35341
|
+
if (__getOwnPropSymbols$u)
|
|
35342
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
35343
|
+
if (__propIsEnum$u.call(b, prop))
|
|
35344
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
35383
35345
|
}
|
|
35384
35346
|
return a;
|
|
35385
35347
|
};
|
|
35386
|
-
var __spreadProps$
|
|
35348
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
35387
35349
|
var __objRest$h = (source, exclude) => {
|
|
35388
35350
|
var target = {};
|
|
35389
35351
|
for (var prop in source)
|
|
35390
|
-
if (__hasOwnProp$
|
|
35352
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35391
35353
|
target[prop] = source[prop];
|
|
35392
|
-
if (source != null && __getOwnPropSymbols$
|
|
35393
|
-
for (var prop of __getOwnPropSymbols$
|
|
35394
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35354
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
35355
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
35356
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
35395
35357
|
target[prop] = source[prop];
|
|
35396
35358
|
}
|
|
35397
35359
|
return target;
|
|
@@ -35404,7 +35366,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35404
35366
|
]);
|
|
35405
35367
|
const { client } = useShipEngine();
|
|
35406
35368
|
const { carrierName, carrierId } = queryFnParams;
|
|
35407
|
-
return useQuery(__spreadProps$
|
|
35369
|
+
return useQuery(__spreadProps$k(__spreadValues$n({}, params), {
|
|
35408
35370
|
onError,
|
|
35409
35371
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
35410
35372
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -35412,26 +35374,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35412
35374
|
}));
|
|
35413
35375
|
};
|
|
35414
35376
|
|
|
35415
|
-
var __defProp$
|
|
35416
|
-
var __defProps$
|
|
35417
|
-
var __getOwnPropDescs$
|
|
35418
|
-
var __getOwnPropSymbols$
|
|
35419
|
-
var __hasOwnProp$
|
|
35420
|
-
var __propIsEnum$
|
|
35421
|
-
var __defNormalProp$
|
|
35422
|
-
var __spreadValues$
|
|
35377
|
+
var __defProp$m = Object.defineProperty;
|
|
35378
|
+
var __defProps$j = Object.defineProperties;
|
|
35379
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
35380
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
35381
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
35382
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
35383
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35384
|
+
var __spreadValues$m = (a, b) => {
|
|
35423
35385
|
for (var prop in b || (b = {}))
|
|
35424
|
-
if (__hasOwnProp$
|
|
35425
|
-
__defNormalProp$
|
|
35426
|
-
if (__getOwnPropSymbols$
|
|
35427
|
-
for (var prop of __getOwnPropSymbols$
|
|
35428
|
-
if (__propIsEnum$
|
|
35429
|
-
__defNormalProp$
|
|
35386
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
35387
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
35388
|
+
if (__getOwnPropSymbols$t)
|
|
35389
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
35390
|
+
if (__propIsEnum$t.call(b, prop))
|
|
35391
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
35430
35392
|
}
|
|
35431
35393
|
return a;
|
|
35432
35394
|
};
|
|
35433
|
-
var __spreadProps$
|
|
35434
|
-
var __async$
|
|
35395
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
35396
|
+
var __async$E = (__this, __arguments, generator) => {
|
|
35435
35397
|
return new Promise((resolve, reject) => {
|
|
35436
35398
|
var fulfilled = (value) => {
|
|
35437
35399
|
try {
|
|
@@ -35453,8 +35415,8 @@ var __async$C = (__this, __arguments, generator) => {
|
|
|
35453
35415
|
};
|
|
35454
35416
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
35455
35417
|
const { client } = useShipEngine();
|
|
35456
|
-
return useMutation(__spreadProps$
|
|
35457
|
-
mutationFn: (_0) => __async$
|
|
35418
|
+
return useMutation(__spreadProps$j(__spreadValues$m({}, params), {
|
|
35419
|
+
mutationFn: (_0) => __async$E(void 0, [_0], function* ({
|
|
35458
35420
|
carrierName,
|
|
35459
35421
|
carrierId,
|
|
35460
35422
|
formData
|
|
@@ -35481,7 +35443,7 @@ const useListCustomPackageTypes = () => {
|
|
|
35481
35443
|
});
|
|
35482
35444
|
};
|
|
35483
35445
|
|
|
35484
|
-
var __async$
|
|
35446
|
+
var __async$D = (__this, __arguments, generator) => {
|
|
35485
35447
|
return new Promise((resolve, reject) => {
|
|
35486
35448
|
var fulfilled = (value) => {
|
|
35487
35449
|
try {
|
|
@@ -35504,7 +35466,7 @@ var __async$B = (__this, __arguments, generator) => {
|
|
|
35504
35466
|
const useCreateFundingSource = () => {
|
|
35505
35467
|
const { client } = useShipEngine();
|
|
35506
35468
|
return useMutation({
|
|
35507
|
-
mutationFn: (fundingSource) => __async$
|
|
35469
|
+
mutationFn: (fundingSource) => __async$D(void 0, null, function* () {
|
|
35508
35470
|
const result = yield client.fundingSources.create(fundingSource);
|
|
35509
35471
|
return result.data;
|
|
35510
35472
|
}),
|
|
@@ -35513,7 +35475,7 @@ const useCreateFundingSource = () => {
|
|
|
35513
35475
|
});
|
|
35514
35476
|
};
|
|
35515
35477
|
|
|
35516
|
-
var __async$
|
|
35478
|
+
var __async$C = (__this, __arguments, generator) => {
|
|
35517
35479
|
return new Promise((resolve, reject) => {
|
|
35518
35480
|
var fulfilled = (value) => {
|
|
35519
35481
|
try {
|
|
@@ -35536,7 +35498,7 @@ var __async$A = (__this, __arguments, generator) => {
|
|
|
35536
35498
|
const useFundingSourcesAddFunds = () => {
|
|
35537
35499
|
const { client } = useShipEngine();
|
|
35538
35500
|
return useMutation({
|
|
35539
|
-
mutationFn: (_0) => __async$
|
|
35501
|
+
mutationFn: (_0) => __async$C(void 0, [_0], function* ({ funds, fundingSourceId }) {
|
|
35540
35502
|
const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
|
|
35541
35503
|
return result.data;
|
|
35542
35504
|
}),
|
|
@@ -35565,7 +35527,7 @@ const useListFundingSources = () => {
|
|
|
35565
35527
|
});
|
|
35566
35528
|
};
|
|
35567
35529
|
|
|
35568
|
-
var __async$
|
|
35530
|
+
var __async$B = (__this, __arguments, generator) => {
|
|
35569
35531
|
return new Promise((resolve, reject) => {
|
|
35570
35532
|
var fulfilled = (value) => {
|
|
35571
35533
|
try {
|
|
@@ -35588,7 +35550,7 @@ var __async$z = (__this, __arguments, generator) => {
|
|
|
35588
35550
|
const useRegisterCarrier = () => {
|
|
35589
35551
|
const { client } = useShipEngine();
|
|
35590
35552
|
return useMutation({
|
|
35591
|
-
mutationFn: (carrier) => __async$
|
|
35553
|
+
mutationFn: (carrier) => __async$B(void 0, null, function* () {
|
|
35592
35554
|
const result = yield client.fundingSources.registerCarrier(carrier);
|
|
35593
35555
|
return result.data;
|
|
35594
35556
|
}),
|
|
@@ -35597,7 +35559,7 @@ const useRegisterCarrier = () => {
|
|
|
35597
35559
|
});
|
|
35598
35560
|
};
|
|
35599
35561
|
|
|
35600
|
-
var __async$
|
|
35562
|
+
var __async$A = (__this, __arguments, generator) => {
|
|
35601
35563
|
return new Promise((resolve, reject) => {
|
|
35602
35564
|
var fulfilled = (value) => {
|
|
35603
35565
|
try {
|
|
@@ -35620,7 +35582,7 @@ var __async$y = (__this, __arguments, generator) => {
|
|
|
35620
35582
|
const useUpdateFundingSource = () => {
|
|
35621
35583
|
const { client } = useShipEngine();
|
|
35622
35584
|
return useMutation({
|
|
35623
|
-
mutationFn: (_0) => __async$
|
|
35585
|
+
mutationFn: (_0) => __async$A(void 0, [_0], function* ({
|
|
35624
35586
|
billingInfo,
|
|
35625
35587
|
creditCardInfo,
|
|
35626
35588
|
fundingSourceId
|
|
@@ -35659,29 +35621,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
|
|
|
35659
35621
|
});
|
|
35660
35622
|
};
|
|
35661
35623
|
|
|
35662
|
-
var __defProp$
|
|
35663
|
-
var __defProps$
|
|
35664
|
-
var __getOwnPropDescs$
|
|
35665
|
-
var __getOwnPropSymbols$
|
|
35666
|
-
var __hasOwnProp$
|
|
35667
|
-
var __propIsEnum$
|
|
35668
|
-
var __defNormalProp$
|
|
35669
|
-
var __spreadValues$
|
|
35624
|
+
var __defProp$l = Object.defineProperty;
|
|
35625
|
+
var __defProps$i = Object.defineProperties;
|
|
35626
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
35627
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
35628
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
35629
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
35630
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35631
|
+
var __spreadValues$l = (a, b) => {
|
|
35670
35632
|
for (var prop in b || (b = {}))
|
|
35671
|
-
if (__hasOwnProp$
|
|
35672
|
-
__defNormalProp$
|
|
35673
|
-
if (__getOwnPropSymbols$
|
|
35674
|
-
for (var prop of __getOwnPropSymbols$
|
|
35675
|
-
if (__propIsEnum$
|
|
35676
|
-
__defNormalProp$
|
|
35633
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
35634
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
35635
|
+
if (__getOwnPropSymbols$s)
|
|
35636
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
35637
|
+
if (__propIsEnum$s.call(b, prop))
|
|
35638
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
35677
35639
|
}
|
|
35678
35640
|
return a;
|
|
35679
35641
|
};
|
|
35680
|
-
var __spreadProps$
|
|
35642
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
35681
35643
|
const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
|
|
35682
35644
|
const { client } = useShipEngine();
|
|
35683
|
-
const queryParams = __spreadValues$
|
|
35684
|
-
return useQuery(__spreadProps$
|
|
35645
|
+
const queryParams = __spreadValues$l({}, params);
|
|
35646
|
+
return useQuery(__spreadProps$i(__spreadValues$l({}, queryParams), {
|
|
35685
35647
|
onError,
|
|
35686
35648
|
queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
|
|
35687
35649
|
queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
|
|
@@ -35704,22 +35666,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
35704
35666
|
});
|
|
35705
35667
|
};
|
|
35706
35668
|
|
|
35707
|
-
var __getOwnPropSymbols$
|
|
35708
|
-
var __hasOwnProp$
|
|
35709
|
-
var __propIsEnum$
|
|
35669
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
35670
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
35671
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
35710
35672
|
var __objRest$g = (source, exclude) => {
|
|
35711
35673
|
var target = {};
|
|
35712
35674
|
for (var prop in source)
|
|
35713
|
-
if (__hasOwnProp$
|
|
35675
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35714
35676
|
target[prop] = source[prop];
|
|
35715
|
-
if (source != null && __getOwnPropSymbols$
|
|
35716
|
-
for (var prop of __getOwnPropSymbols$
|
|
35717
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35677
|
+
if (source != null && __getOwnPropSymbols$r)
|
|
35678
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
|
35679
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
|
35718
35680
|
target[prop] = source[prop];
|
|
35719
35681
|
}
|
|
35720
35682
|
return target;
|
|
35721
35683
|
};
|
|
35722
|
-
var __async$
|
|
35684
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
35723
35685
|
return new Promise((resolve, reject) => {
|
|
35724
35686
|
var fulfilled = (value) => {
|
|
35725
35687
|
try {
|
|
@@ -35742,7 +35704,7 @@ var __async$x = (__this, __arguments, generator) => {
|
|
|
35742
35704
|
const useAddInsuranceFunds = () => {
|
|
35743
35705
|
const { client } = useShipEngine();
|
|
35744
35706
|
return useMutation({
|
|
35745
|
-
mutationFn: (_a) => __async$
|
|
35707
|
+
mutationFn: (_a) => __async$z(void 0, null, function* () {
|
|
35746
35708
|
var _b = _a, { insuranceProvider } = _b, rest = __objRest$g(_b, ["insuranceProvider"]);
|
|
35747
35709
|
const result = yield client.insurance.addFunds(insuranceProvider, rest);
|
|
35748
35710
|
return result.data;
|
|
@@ -35752,6 +35714,137 @@ const useAddInsuranceFunds = () => {
|
|
|
35752
35714
|
});
|
|
35753
35715
|
};
|
|
35754
35716
|
|
|
35717
|
+
var __defProp$k = Object.defineProperty;
|
|
35718
|
+
var __defProps$h = Object.defineProperties;
|
|
35719
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
35720
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
35721
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
35722
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
35723
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35724
|
+
var __spreadValues$k = (a, b) => {
|
|
35725
|
+
for (var prop in b || (b = {}))
|
|
35726
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
35727
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
35728
|
+
if (__getOwnPropSymbols$q)
|
|
35729
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
35730
|
+
if (__propIsEnum$q.call(b, prop))
|
|
35731
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
35732
|
+
}
|
|
35733
|
+
return a;
|
|
35734
|
+
};
|
|
35735
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
35736
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
35737
|
+
return new Promise((resolve, reject) => {
|
|
35738
|
+
var fulfilled = (value) => {
|
|
35739
|
+
try {
|
|
35740
|
+
step(generator.next(value));
|
|
35741
|
+
} catch (e) {
|
|
35742
|
+
reject(e);
|
|
35743
|
+
}
|
|
35744
|
+
};
|
|
35745
|
+
var rejected = (value) => {
|
|
35746
|
+
try {
|
|
35747
|
+
step(generator.throw(value));
|
|
35748
|
+
} catch (e) {
|
|
35749
|
+
reject(e);
|
|
35750
|
+
}
|
|
35751
|
+
};
|
|
35752
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35753
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35754
|
+
});
|
|
35755
|
+
};
|
|
35756
|
+
const useCreateInvoiceAddress = (params) => {
|
|
35757
|
+
const { client } = useShipEngine();
|
|
35758
|
+
return useMutation(__spreadProps$h(__spreadValues$k({}, params), {
|
|
35759
|
+
mutationFn: (invoiceAddress) => __async$y(void 0, null, function* () {
|
|
35760
|
+
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
35761
|
+
return result.data.invoiceAddress;
|
|
35762
|
+
}),
|
|
35763
|
+
mutationKey: ["useCreateInvoiceAddress"],
|
|
35764
|
+
onError
|
|
35765
|
+
}));
|
|
35766
|
+
};
|
|
35767
|
+
|
|
35768
|
+
var __defProp$j = Object.defineProperty;
|
|
35769
|
+
var __defProps$g = Object.defineProperties;
|
|
35770
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
35771
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
35772
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
35773
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
35774
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35775
|
+
var __spreadValues$j = (a, b) => {
|
|
35776
|
+
for (var prop in b || (b = {}))
|
|
35777
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
35778
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
35779
|
+
if (__getOwnPropSymbols$p)
|
|
35780
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
35781
|
+
if (__propIsEnum$p.call(b, prop))
|
|
35782
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
35783
|
+
}
|
|
35784
|
+
return a;
|
|
35785
|
+
};
|
|
35786
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
35787
|
+
var __async$x = (__this, __arguments, generator) => {
|
|
35788
|
+
return new Promise((resolve, reject) => {
|
|
35789
|
+
var fulfilled = (value) => {
|
|
35790
|
+
try {
|
|
35791
|
+
step(generator.next(value));
|
|
35792
|
+
} catch (e) {
|
|
35793
|
+
reject(e);
|
|
35794
|
+
}
|
|
35795
|
+
};
|
|
35796
|
+
var rejected = (value) => {
|
|
35797
|
+
try {
|
|
35798
|
+
step(generator.throw(value));
|
|
35799
|
+
} catch (e) {
|
|
35800
|
+
reject(e);
|
|
35801
|
+
}
|
|
35802
|
+
};
|
|
35803
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35804
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35805
|
+
});
|
|
35806
|
+
};
|
|
35807
|
+
const useUpdateInvoiceAddress = (params) => {
|
|
35808
|
+
const { client } = useShipEngine();
|
|
35809
|
+
return useMutation(__spreadProps$g(__spreadValues$j({}, params), {
|
|
35810
|
+
mutationFn: (invoiceAddress) => __async$x(void 0, null, function* () {
|
|
35811
|
+
const result = yield client.invoiceAddress.update(invoiceAddress);
|
|
35812
|
+
return result.data.invoiceAddress;
|
|
35813
|
+
}),
|
|
35814
|
+
mutationKey: ["useUpdateInvoiceAddress"],
|
|
35815
|
+
onError
|
|
35816
|
+
}));
|
|
35817
|
+
};
|
|
35818
|
+
|
|
35819
|
+
var __defProp$i = Object.defineProperty;
|
|
35820
|
+
var __defProps$f = Object.defineProperties;
|
|
35821
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
35822
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
35823
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
35824
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
35825
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35826
|
+
var __spreadValues$i = (a, b) => {
|
|
35827
|
+
for (var prop in b || (b = {}))
|
|
35828
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
35829
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
35830
|
+
if (__getOwnPropSymbols$o)
|
|
35831
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
35832
|
+
if (__propIsEnum$o.call(b, prop))
|
|
35833
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
35834
|
+
}
|
|
35835
|
+
return a;
|
|
35836
|
+
};
|
|
35837
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
35838
|
+
const useGetInvoiceAddress = (params) => {
|
|
35839
|
+
const { client } = useShipEngine();
|
|
35840
|
+
return useQuery(__spreadProps$f(__spreadValues$i({}, params), {
|
|
35841
|
+
onError,
|
|
35842
|
+
queryFn: () => client.invoiceAddress.get(),
|
|
35843
|
+
queryKey: ["useGetInvoiceAddress"],
|
|
35844
|
+
select: (result) => result.data.invoiceAddress
|
|
35845
|
+
}));
|
|
35846
|
+
};
|
|
35847
|
+
|
|
35755
35848
|
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
35756
35849
|
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
35757
35850
|
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
@@ -36303,10 +36396,12 @@ const useRatesEstimate = () => {
|
|
|
36303
36396
|
});
|
|
36304
36397
|
};
|
|
36305
36398
|
|
|
36306
|
-
const useGetSalesOrder = (salesOrderId) => {
|
|
36399
|
+
const useGetSalesOrder = (salesOrderId, config) => {
|
|
36400
|
+
var _a;
|
|
36307
36401
|
const { client } = useShipEngine();
|
|
36402
|
+
const enabled = (_a = config == null ? void 0 : config.enabled) != null ? _a : true;
|
|
36308
36403
|
return useQuery({
|
|
36309
|
-
enabled: salesOrderId !== void 0,
|
|
36404
|
+
enabled: salesOrderId !== void 0 && enabled,
|
|
36310
36405
|
onError,
|
|
36311
36406
|
queryFn: () => {
|
|
36312
36407
|
if (salesOrderId)
|
|
@@ -36318,6 +36413,23 @@ const useGetSalesOrder = (salesOrderId) => {
|
|
|
36318
36413
|
});
|
|
36319
36414
|
};
|
|
36320
36415
|
|
|
36416
|
+
const useGetSalesOrderByExternalOrderId = (externalOrderId, config) => {
|
|
36417
|
+
var _a;
|
|
36418
|
+
const { client } = useShipEngine();
|
|
36419
|
+
const enabled = (_a = config == null ? void 0 : config.enabled) != null ? _a : true;
|
|
36420
|
+
return useQuery({
|
|
36421
|
+
enabled: externalOrderId !== void 0 && enabled,
|
|
36422
|
+
onError,
|
|
36423
|
+
queryFn: () => {
|
|
36424
|
+
if (externalOrderId)
|
|
36425
|
+
return client.salesOrders.getByExternalId(externalOrderId);
|
|
36426
|
+
return Promise.reject(new Error("externalOrderId is required"));
|
|
36427
|
+
},
|
|
36428
|
+
queryKey: ["useGetSalesOrderByExternalOrderId", externalOrderId],
|
|
36429
|
+
select: (result) => result.data
|
|
36430
|
+
});
|
|
36431
|
+
};
|
|
36432
|
+
|
|
36321
36433
|
const useListSalesOrders = (params = {}) => {
|
|
36322
36434
|
const { client } = useShipEngine();
|
|
36323
36435
|
return useQuery({
|
|
@@ -36440,13 +36552,14 @@ const useGetSalesOrderShipment = (shipmentId) => {
|
|
|
36440
36552
|
});
|
|
36441
36553
|
};
|
|
36442
36554
|
|
|
36443
|
-
const useListSalesOrderShipments = (
|
|
36555
|
+
const useListSalesOrderShipments = (body) => {
|
|
36444
36556
|
const { client } = useShipEngine();
|
|
36557
|
+
const { shipmentIds, salesOrderIds, externalOrderIds } = body;
|
|
36445
36558
|
return useQuery({
|
|
36446
|
-
enabled:
|
|
36559
|
+
enabled: !!((shipmentIds == null ? void 0 : shipmentIds.length) || (salesOrderIds == null ? void 0 : salesOrderIds.length) || (externalOrderIds == null ? void 0 : externalOrderIds.length)),
|
|
36447
36560
|
onError,
|
|
36448
|
-
queryFn: () => client.salesOrderShipments.list(
|
|
36449
|
-
queryKey: ["useListSalesOrderShipments",
|
|
36561
|
+
queryFn: () => client.salesOrderShipments.list(body),
|
|
36562
|
+
queryKey: ["useListSalesOrderShipments", body],
|
|
36450
36563
|
select: (result) => result.data.shipments
|
|
36451
36564
|
});
|
|
36452
36565
|
};
|
|
@@ -36499,6 +36612,17 @@ const useUpdateSalesOrderShipment = () => {
|
|
|
36499
36612
|
});
|
|
36500
36613
|
};
|
|
36501
36614
|
|
|
36615
|
+
const useListSalesOrderShipmentsByExternalOrderId = (externalOrderId) => {
|
|
36616
|
+
const { client } = useShipEngine();
|
|
36617
|
+
return useQuery({
|
|
36618
|
+
enabled: externalOrderId !== null && externalOrderId.length > 0,
|
|
36619
|
+
onError,
|
|
36620
|
+
queryFn: () => client.salesOrderShipments.listShipmentsByExternalOrderId(externalOrderId),
|
|
36621
|
+
queryKey: ["useListSalesOrderShipments", externalOrderId],
|
|
36622
|
+
select: (result) => result.data.shipments
|
|
36623
|
+
});
|
|
36624
|
+
};
|
|
36625
|
+
|
|
36502
36626
|
var __defProp$f = Object.defineProperty;
|
|
36503
36627
|
var __defProps$c = Object.defineProperties;
|
|
36504
36628
|
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
@@ -38816,4 +38940,4 @@ const alchemy = {
|
|
|
38816
38940
|
createElement
|
|
38817
38941
|
};
|
|
38818
38942
|
|
|
38819
|
-
export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useValidateAddresses, useVoidLabel };
|
|
38943
|
+
export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useValidateAddresses, useVoidLabel };
|