@shipengine/react-api 3.10.5 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hooks/funding-sources/use-update-funding-source.d.ts +6 -1
- package/hooks/labels/index.d.ts +1 -0
- package/hooks/labels/use-list-labels-infinite.d.ts +11 -0
- package/index.js +312 -232
- package/index.mjs +313 -234
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -79,25 +79,25 @@ const onError = (_errors) => _default();
|
|
|
79
79
|
|
|
80
80
|
var o={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},l={};function a(e){return "string"==typeof e?o[e.toLowerCase()]:e}function c(e,r){return c=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},c(e,r)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return !1}}function f(e,r,t){return f=u()?Reflect.construct:function(e,r,t){var s=[null];s.push.apply(s,r);var i=new(Function.bind.apply(e,s));return t&&c(i,t.prototype),i},f.apply(null,arguments)}function h(e){if(null==e)return e;if(Array.isArray(e))return e.slice();if("object"==typeof e){var r={};return Object.keys(e).forEach(function(t){r[t]=e[t];}),r}return e}function v(e){return void 0===e?"undefined":null===e?"null":Array.isArray(e)?"[ "+e.map(function(e){return v(e)}).join(", ")+" ]":"object"==typeof e?JSON.stringify(e):"function"==typeof e?"[Function: "+e.name+"]":"boolean"==typeof e||"number"==typeof e?e:"'"+e.toString()+"'"}function p(e){if("string"!=typeof e){for(var r=new Array(arguments.length),t=0;t<arguments.length;t++)r[t]=v(arguments[t]);return r.join(" ")}for(var s=/%[sdj%]/g,i=1,n=arguments,o=n.length,l=String(e).replace(s,function(e){if("%%"===e)return "%";if(i>=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return "[Circular]"}default:return e}}),a=n[i];i<o;a=n[++i])l+=null===a||"object"!=typeof a?" "+a:" "+v(a);return l}function m(e,r){var t=e.split("\n");t[0]&&t[0].indexOf("call-stack-error")>=0&&t.shift();var s=t[r],i=null;if(s){var n=/^\s*(at|.*@)\s*(.+)?$/.exec(s);i=Array.isArray(n)&&n[2]?n[2]:s;}return i}Object.keys(o).forEach(function(e){l[o[e]]=e;});var y={};function d(e,r){if(r){if(y[r])return;y[r]=!0;}console.error(e+"\n");}function g(e){return y[e]}function w(){var e=[];return function(r,t){return t&&"object"==typeof t?-1!==e.indexOf(t)?"[Circular]":(e.push(t),t):t}}var b=/*#__PURE__*/function(){function e(){}return e.prototype.write=function(e){e.level<30?console.log(e):e.level<40?console.info(e):e.level<50?console.warn(e):console.error(e),e.err&&e.err.stack&&console.error(e.err.stack),e.obj&&console.log(e.obj);},e}(),j=/*#__PURE__*/function(){function e(r,t,s){var i,n,o,l,a=this;if(!(this instanceof e))return new e(r,t);if(void 0!==t&&(i=r,r=t,!(i instanceof e)))throw new TypeError("invalid Logger creation: do not pass a second arg");if(!r)throw new TypeError("options (object) is required");if(i){if(r.name)throw new TypeError("invalid options.name: child cannot set logger name")}else if(!r.name)throw new TypeError("options.name (string) is required");if(r.stream&&r.streams)throw new TypeError('cannot mix "streams" and "stream" options');if(r.streams&&!Array.isArray(r.streams))throw new TypeError("invalid options.streams: must be an array");if(r.serializers&&("object"!=typeof r.serializers||Array.isArray(r.serializers)))throw new TypeError("invalid options.serializers: must be an object");if(i&&s){this._level=i._level,this.streams=i.streams,this.serializers=i.serializers,this.src=i.src,n=this.fields={};var c=Object.keys(i.fields);for(l=0;l<c.length;l++)n[o=c[l]]=i.fields[o];var u=Object.keys(r);for(l=0;l<u.length;l++)n[o=u[l]]=r[o];}else {if(i){for(this._level=i._level,this.streams=[],l=0;l<i.streams.length;l++){var f=h(i.streams[l]);this.streams.push(f);}this.serializers=h(i.serializers),this.src=i.src,this.fields=h(i.fields),r.level&&this.level(r.level);}else this._level=Number.POSITIVE_INFINITY,this.streams=[],this.serializers=null,this.src=!1,this.fields={};r.stream?this.addStream({type:"stream",stream:r.stream,level:r.level}):r.streams?r.streams.forEach(function(e){a.addStream(e,r.level);}):i&&r.level?this.level(r.level):i||this.addStream({type:"raw",stream:new b,level:r.level}),r.serializers&&this.addSerializers(r.serializers),r.src&&(this.src=!0),delete(n=h(r)).stream,delete n.level,delete n.streams,delete n.serializers,delete n.src,this.serializers&&this._applySerializers(n),Object.keys(n).forEach(function(e){a.fields[e]=n[e];});}}var r=e.prototype;return r.addStream=function(e,r){void 0===r&&(r=30),(e=h(e)).type="raw",e.level=a(e.level||r),e.level<this._level&&(this._level=e.level),this.streams.push(e),delete this.haveNonRawStreams;},r.addSerializers=function(e){var r=this;this.serializers||(this.serializers={}),Object.keys(e).forEach(function(t){var s=e[t];if("function"!=typeof s)throw new TypeError(p('invalid serializer for "%s" field: must be a function',t));r.serializers[t]=s;});},r.child=function(e,r){return new this.constructor(this,e||{},r)},r.level=function(e){if(void 0===e)return this._level;for(var r=a(e),t=this.streams.length,s=0;s<t;s++)this.streams[s].level=r;this._level=r;},r.levels=function(e,r){if(void 0===e)return this.streams.map(function(e){return e.level});var t;if("number"==typeof e){if(void 0===(t=this.streams[e]))throw new Error("invalid stream index: "+e)}else {for(var s=this.streams.length,i=0;i<s;i++){var n=this.streams[i];if(n.name===e){t=n;break}}if(!t)throw new Error(p('no stream with name "%s"',e))}if(void 0===r)return t.level;var o=a(r);t.level=o,o<this._level&&(this._level=o);},r._applySerializers=function(e,r){var t=this;Object.keys(this.serializers).forEach(function(s){if(!(void 0===e[s]||r&&r[s]))try{e[s]=t.serializers[s](e[s]);}catch(r){d(p('bunyan: ERROR: Exception thrown from the "%s" Bunyan serializer. This should never happen. This is a bugin that serializer function.\n%s',s,r.stack||r)),e[s]=p('(Error in Bunyan log "%s" serializer broke field. See stderr for details.)',s);}});},r._emit=function(e,r){var t,s;if(void 0===this.haveNonRawStreams)for(this.haveNonRawStreams=!1,t=0;t<this.streams.length;t++)if(!this.streams[t].raw){this.haveNonRawStreams=!0;break}if(r||this.haveNonRawStreams)try{s=JSON.stringify(e,w())+"\n";}catch(r){var i=r.stack.split(/\n/g,2).join("\n");d('bunyan: ERROR: Exception in `JSON.stringify(rec)`. You can install the "safe-json-stringify" module to have Bunyan fallback to safer stringification. Record:\n'+function(e,r){return r||(r=" "),r+e.split(/\r?\n/g).join("\n"+r)}(p("%s\n%s",e,r.stack)),i),s=p("(Exception in JSON.stringify(rec): %j. See stderr for details.)\n",r.message);}if(r)return s;var n=e.level;for(t=0;t<this.streams.length;t++){var o=this.streams[t];o.level<=n&&o.stream.write(e);}return s},e}();function z(e){return function(){var r=this;function t(t){var n;t[0]instanceof Error?(s={err:r.serializers&&r.serializers.err?r.serializers.err(t[0]):k.err(t[0])},n={err:!0},i=1===t.length?[s.err.message]:Array.prototype.slice.call(t,1)):"object"!=typeof t[0]&&null!==t[0]||Array.isArray(t[0])?(s=null,i=Array.prototype.slice.call(t)):(s=t[0],i=1===t.length&&s.err&&s.err instanceof Error?[s.err.message]:Array.prototype.slice.call(t,1));var o=h(r.fields);o.level=e;var a=s?h(s):null;if(a&&(r.serializers&&r._applySerializers(a,n),Object.keys(a).forEach(function(e){o[e]=a[e];})),o.levelName=l[e],o.msg=i.length?p.apply(r,i):"",o.time||(o.time=new Date),r.src&&!o.src)try{throw new Error("call-stack-error")}catch(e){var c=e.stack?m(e.stack,2):"";c||g("src")||d("Unable to determine src line info","src"),o.src=c||"";}return o.v=1,o}var s=null,i=arguments,n=null;if(0===arguments.length)return this._level<=e;this._level>e||(n=t(i),this._emit(n));}}function S(e){var r=e.stack||e.toString();if(e.cause&&"function"==typeof e.cause){var t=e.cause();t&&(r+="\nCaused by: "+S(t));}return r}j.prototype.trace=z(10),j.prototype.debug=z(20),j.prototype.info=z(30),j.prototype.warn=z(40),j.prototype.error=z(50),j.prototype.fatal=z(60);var k={err:function(e){return e&&e.stack?{message:e.message,name:e.name,stack:S(e),code:e.code,signal:e.signal}:e}};function E(){return f(j,[].slice.call(arguments))}var A={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},R=/*#__PURE__*/function(){function e(e){var r=void 0===e?{}:e,t=r.logByLevel,s=r.css,i=void 0===s?A:s;this.logByLevel=void 0!==t&&t,this.css=i;}return e.prototype.write=function(e){var r,t,s=this.css.def,i=this.css.msg,n=this.css.src,o=e.childName?e.name+"/"+e.childName:e.name,a=l[e.level],c=(Array(6-a.length).join(" ")+a).toUpperCase();this.logByLevel?(10===e.level?a="debug":60===e.level&&(a="error"),t="function"==typeof console[a]?console[a]:console.log):t=console.log,r=e.level<20?this.css.levels.trace:e.level<30?this.css.levels.debug:e.level<40?this.css.levels.info:e.level<50?this.css.levels.warn:e.level<60?this.css.levels.error:this.css.levels.fatal;var u=function(e,r){return Array(r+1-(e+"").length).join("0")+e},f=[];f.push("[%s:%s:%s:%s] %c%s%c: %s: %c%s "+(e.src?"%c%s":"")),f.push(u(e.time.getHours(),2)),f.push(u(e.time.getMinutes(),2)),f.push(u(e.time.getSeconds(),2)),f.push(u(e.time.getMilliseconds(),4)),f.push(r),f.push(c),f.push(s),f.push(o),f.push(i),f.push(e.msg),e.src&&(f.push(n),f.push(e.src)),e.obj&&(f.push("\n"),f.push(e.obj)),e.err&&e.err.stack&&(f.push("\n"),f.push(e.err.stack)),t.apply(console,f);},e.getDefaultCss=function(){return A},e}();
|
|
81
81
|
|
|
82
|
-
var __defProp$
|
|
83
|
-
var __defProps$
|
|
84
|
-
var __getOwnPropDescs$
|
|
85
|
-
var __getOwnPropSymbols$
|
|
86
|
-
var __hasOwnProp$
|
|
87
|
-
var __propIsEnum$
|
|
88
|
-
var __defNormalProp$
|
|
89
|
-
var __spreadValues$
|
|
82
|
+
var __defProp$o = Object.defineProperty;
|
|
83
|
+
var __defProps$n = Object.defineProperties;
|
|
84
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
85
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
86
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
87
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
88
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
89
|
+
var __spreadValues$o = (a, b) => {
|
|
90
90
|
for (var prop in b || (b = {}))
|
|
91
|
-
if (__hasOwnProp$
|
|
92
|
-
__defNormalProp$
|
|
93
|
-
if (__getOwnPropSymbols$
|
|
94
|
-
for (var prop of __getOwnPropSymbols$
|
|
95
|
-
if (__propIsEnum$
|
|
96
|
-
__defNormalProp$
|
|
91
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
92
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
93
|
+
if (__getOwnPropSymbols$y)
|
|
94
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
95
|
+
if (__propIsEnum$y.call(b, prop))
|
|
96
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
97
97
|
}
|
|
98
98
|
return a;
|
|
99
99
|
};
|
|
100
|
-
var __spreadProps$
|
|
100
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
101
101
|
const streams = [];
|
|
102
102
|
if (process.env.NODE_ENV === "production") {
|
|
103
103
|
streams.push({
|
|
@@ -106,7 +106,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
106
106
|
}
|
|
107
107
|
const logger = E({
|
|
108
108
|
name: "shipengine",
|
|
109
|
-
serializers: __spreadProps$
|
|
109
|
+
serializers: __spreadProps$n(__spreadValues$o({}, k), {
|
|
110
110
|
req: (req) => ({
|
|
111
111
|
headers: req.headers,
|
|
112
112
|
method: req.method,
|
|
@@ -131,7 +131,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
131
131
|
throw error;
|
|
132
132
|
});
|
|
133
133
|
|
|
134
|
-
var __async$
|
|
134
|
+
var __async$P = (__this, __arguments, generator) => {
|
|
135
135
|
return new Promise((resolve, reject) => {
|
|
136
136
|
var fulfilled = (value) => {
|
|
137
137
|
try {
|
|
@@ -154,7 +154,7 @@ var __async$O = (__this, __arguments, generator) => {
|
|
|
154
154
|
const useCreateAccountImage = () => {
|
|
155
155
|
const { client } = useShipEngine();
|
|
156
156
|
return reactQuery.useMutation({
|
|
157
|
-
mutationFn: (data) => __async$
|
|
157
|
+
mutationFn: (data) => __async$P(void 0, null, function* () {
|
|
158
158
|
const result = yield client.accountSettings.createImage(data);
|
|
159
159
|
return result.data;
|
|
160
160
|
}),
|
|
@@ -163,7 +163,7 @@ const useCreateAccountImage = () => {
|
|
|
163
163
|
});
|
|
164
164
|
};
|
|
165
165
|
|
|
166
|
-
var __async$
|
|
166
|
+
var __async$O = (__this, __arguments, generator) => {
|
|
167
167
|
return new Promise((resolve, reject) => {
|
|
168
168
|
var fulfilled = (value) => {
|
|
169
169
|
try {
|
|
@@ -186,7 +186,7 @@ var __async$N = (__this, __arguments, generator) => {
|
|
|
186
186
|
const useDeleteAccountImage = () => {
|
|
187
187
|
const { client } = useShipEngine();
|
|
188
188
|
return reactQuery.useMutation({
|
|
189
|
-
mutationFn: (labelImageId) => __async$
|
|
189
|
+
mutationFn: (labelImageId) => __async$O(void 0, null, function* () {
|
|
190
190
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
191
191
|
return result.data;
|
|
192
192
|
}),
|
|
@@ -215,7 +215,7 @@ const useGetAccountSettings = () => {
|
|
|
215
215
|
});
|
|
216
216
|
};
|
|
217
217
|
|
|
218
|
-
var __async$
|
|
218
|
+
var __async$N = (__this, __arguments, generator) => {
|
|
219
219
|
return new Promise((resolve, reject) => {
|
|
220
220
|
var fulfilled = (value) => {
|
|
221
221
|
try {
|
|
@@ -238,7 +238,7 @@ var __async$M = (__this, __arguments, generator) => {
|
|
|
238
238
|
const useUpdateAccountImage = () => {
|
|
239
239
|
const { client } = useShipEngine();
|
|
240
240
|
return reactQuery.useMutation({
|
|
241
|
-
mutationFn: (data) => __async$
|
|
241
|
+
mutationFn: (data) => __async$N(void 0, null, function* () {
|
|
242
242
|
const result = yield client.accountSettings.updateImage(data);
|
|
243
243
|
return result.data;
|
|
244
244
|
}),
|
|
@@ -247,7 +247,7 @@ const useUpdateAccountImage = () => {
|
|
|
247
247
|
});
|
|
248
248
|
};
|
|
249
249
|
|
|
250
|
-
var __async$
|
|
250
|
+
var __async$M = (__this, __arguments, generator) => {
|
|
251
251
|
return new Promise((resolve, reject) => {
|
|
252
252
|
var fulfilled = (value) => {
|
|
253
253
|
try {
|
|
@@ -270,7 +270,7 @@ var __async$L = (__this, __arguments, generator) => {
|
|
|
270
270
|
const useUpdateAccountSettings = () => {
|
|
271
271
|
const { client } = useShipEngine();
|
|
272
272
|
return reactQuery.useMutation({
|
|
273
|
-
mutationFn: (settings) => __async$
|
|
273
|
+
mutationFn: (settings) => __async$M(void 0, null, function* () {
|
|
274
274
|
const result = yield client.accountSettings.update(settings);
|
|
275
275
|
return result.data;
|
|
276
276
|
}),
|
|
@@ -279,7 +279,7 @@ const useUpdateAccountSettings = () => {
|
|
|
279
279
|
});
|
|
280
280
|
};
|
|
281
281
|
|
|
282
|
-
var __async$
|
|
282
|
+
var __async$L = (__this, __arguments, generator) => {
|
|
283
283
|
return new Promise((resolve, reject) => {
|
|
284
284
|
var fulfilled = (value) => {
|
|
285
285
|
try {
|
|
@@ -302,7 +302,7 @@ var __async$K = (__this, __arguments, generator) => {
|
|
|
302
302
|
const useParseAddress = () => {
|
|
303
303
|
const { client } = useShipEngine();
|
|
304
304
|
return reactQuery.useMutation({
|
|
305
|
-
mutationFn: (_0) => __async$
|
|
305
|
+
mutationFn: (_0) => __async$L(void 0, [_0], function* ({ address, text }) {
|
|
306
306
|
const result = yield client.addresses.parse(text, address);
|
|
307
307
|
return result.data;
|
|
308
308
|
}),
|
|
@@ -311,7 +311,7 @@ const useParseAddress = () => {
|
|
|
311
311
|
});
|
|
312
312
|
};
|
|
313
313
|
|
|
314
|
-
var __async$
|
|
314
|
+
var __async$K = (__this, __arguments, generator) => {
|
|
315
315
|
return new Promise((resolve, reject) => {
|
|
316
316
|
var fulfilled = (value) => {
|
|
317
317
|
try {
|
|
@@ -334,7 +334,7 @@ var __async$J = (__this, __arguments, generator) => {
|
|
|
334
334
|
const useValidateAddresses = () => {
|
|
335
335
|
const { client } = useShipEngine();
|
|
336
336
|
return reactQuery.useMutation({
|
|
337
|
-
mutationFn: (addresses) => __async$
|
|
337
|
+
mutationFn: (addresses) => __async$K(void 0, null, function* () {
|
|
338
338
|
const result = yield client.addresses.validate(addresses);
|
|
339
339
|
return result.data;
|
|
340
340
|
}),
|
|
@@ -343,7 +343,7 @@ const useValidateAddresses = () => {
|
|
|
343
343
|
});
|
|
344
344
|
};
|
|
345
345
|
|
|
346
|
-
var __async$
|
|
346
|
+
var __async$J = (__this, __arguments, generator) => {
|
|
347
347
|
return new Promise((resolve, reject) => {
|
|
348
348
|
var fulfilled = (value) => {
|
|
349
349
|
try {
|
|
@@ -366,7 +366,7 @@ var __async$I = (__this, __arguments, generator) => {
|
|
|
366
366
|
const useAddFunds = () => {
|
|
367
367
|
const { client } = useShipEngine();
|
|
368
368
|
return reactQuery.useMutation({
|
|
369
|
-
mutationFn: (_0) => __async$
|
|
369
|
+
mutationFn: (_0) => __async$J(void 0, [_0], function* ({ carrierId, funds }) {
|
|
370
370
|
const result = yield client.carriers.addFunds(carrierId, funds);
|
|
371
371
|
return result.data;
|
|
372
372
|
}),
|
|
@@ -375,7 +375,7 @@ const useAddFunds = () => {
|
|
|
375
375
|
});
|
|
376
376
|
};
|
|
377
377
|
|
|
378
|
-
var __async$
|
|
378
|
+
var __async$I = (__this, __arguments, generator) => {
|
|
379
379
|
return new Promise((resolve, reject) => {
|
|
380
380
|
var fulfilled = (value) => {
|
|
381
381
|
try {
|
|
@@ -398,7 +398,7 @@ var __async$H = (__this, __arguments, generator) => {
|
|
|
398
398
|
const useConnectCarrier = () => {
|
|
399
399
|
const { client } = useShipEngine();
|
|
400
400
|
return reactQuery.useMutation({
|
|
401
|
-
mutationFn: (params) => __async$
|
|
401
|
+
mutationFn: (params) => __async$I(void 0, null, function* () {
|
|
402
402
|
const result = yield client.carriers.connect(params);
|
|
403
403
|
return result.data;
|
|
404
404
|
}),
|
|
@@ -507,41 +507,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
507
507
|
});
|
|
508
508
|
};
|
|
509
509
|
|
|
510
|
-
var __defProp$
|
|
511
|
-
var __defProps$
|
|
512
|
-
var __getOwnPropDescs$
|
|
513
|
-
var __getOwnPropSymbols$
|
|
514
|
-
var __hasOwnProp$
|
|
515
|
-
var __propIsEnum$
|
|
516
|
-
var __defNormalProp$
|
|
517
|
-
var __spreadValues$
|
|
510
|
+
var __defProp$n = Object.defineProperty;
|
|
511
|
+
var __defProps$m = Object.defineProperties;
|
|
512
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
513
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
514
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
515
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
516
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
517
|
+
var __spreadValues$n = (a, b) => {
|
|
518
518
|
for (var prop in b || (b = {}))
|
|
519
|
-
if (__hasOwnProp$
|
|
520
|
-
__defNormalProp$
|
|
521
|
-
if (__getOwnPropSymbols$
|
|
522
|
-
for (var prop of __getOwnPropSymbols$
|
|
523
|
-
if (__propIsEnum$
|
|
524
|
-
__defNormalProp$
|
|
519
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
520
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
521
|
+
if (__getOwnPropSymbols$x)
|
|
522
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
523
|
+
if (__propIsEnum$x.call(b, prop))
|
|
524
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
525
525
|
}
|
|
526
526
|
return a;
|
|
527
527
|
};
|
|
528
|
-
var __spreadProps$
|
|
529
|
-
var __objRest$
|
|
528
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
529
|
+
var __objRest$l = (source, exclude) => {
|
|
530
530
|
var target = {};
|
|
531
531
|
for (var prop in source)
|
|
532
|
-
if (__hasOwnProp$
|
|
532
|
+
if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
533
533
|
target[prop] = source[prop];
|
|
534
|
-
if (source != null && __getOwnPropSymbols$
|
|
535
|
-
for (var prop of __getOwnPropSymbols$
|
|
536
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
534
|
+
if (source != null && __getOwnPropSymbols$x)
|
|
535
|
+
for (var prop of __getOwnPropSymbols$x(source)) {
|
|
536
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
|
|
537
537
|
target[prop] = source[prop];
|
|
538
538
|
}
|
|
539
539
|
return target;
|
|
540
540
|
};
|
|
541
541
|
const useListCarriers = (params) => {
|
|
542
542
|
const { client } = useShipEngine();
|
|
543
|
-
const _a = __spreadValues$
|
|
544
|
-
return reactQuery.useQuery(__spreadProps$
|
|
543
|
+
const _a = __spreadValues$n({}, params), { queryFnParams } = _a, rest = __objRest$l(_a, ["queryFnParams"]);
|
|
544
|
+
return reactQuery.useQuery(__spreadProps$m(__spreadValues$n({}, rest), {
|
|
545
545
|
onError,
|
|
546
546
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
547
547
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -549,22 +549,22 @@ const useListCarriers = (params) => {
|
|
|
549
549
|
}));
|
|
550
550
|
};
|
|
551
551
|
|
|
552
|
-
var __getOwnPropSymbols$
|
|
553
|
-
var __hasOwnProp$
|
|
554
|
-
var __propIsEnum$
|
|
555
|
-
var __objRest$
|
|
552
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
553
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
554
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
555
|
+
var __objRest$k = (source, exclude) => {
|
|
556
556
|
var target = {};
|
|
557
557
|
for (var prop in source)
|
|
558
|
-
if (__hasOwnProp$
|
|
558
|
+
if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
559
559
|
target[prop] = source[prop];
|
|
560
|
-
if (source != null && __getOwnPropSymbols$
|
|
561
|
-
for (var prop of __getOwnPropSymbols$
|
|
562
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
560
|
+
if (source != null && __getOwnPropSymbols$w)
|
|
561
|
+
for (var prop of __getOwnPropSymbols$w(source)) {
|
|
562
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
|
|
563
563
|
target[prop] = source[prop];
|
|
564
564
|
}
|
|
565
565
|
return target;
|
|
566
566
|
};
|
|
567
|
-
var __async$
|
|
567
|
+
var __async$H = (__this, __arguments, generator) => {
|
|
568
568
|
return new Promise((resolve, reject) => {
|
|
569
569
|
var fulfilled = (value) => {
|
|
570
570
|
try {
|
|
@@ -588,8 +588,8 @@ const useUpdateAutoFunding = () => {
|
|
|
588
588
|
const { client } = useShipEngine();
|
|
589
589
|
const queryClient = reactQuery.useQueryClient();
|
|
590
590
|
return reactQuery.useMutation({
|
|
591
|
-
mutationFn: (_a) => __async$
|
|
592
|
-
var _b = _a, { carrierId } = _b, options = __objRest$
|
|
591
|
+
mutationFn: (_a) => __async$H(void 0, null, function* () {
|
|
592
|
+
var _b = _a, { carrierId } = _b, options = __objRest$k(_b, ["carrierId"]);
|
|
593
593
|
const result = yield client.carriers.updateAutoFunding(carrierId, options);
|
|
594
594
|
return result.data;
|
|
595
595
|
}),
|
|
@@ -618,7 +618,7 @@ const useGetZonesByCarrier = (carrierId) => {
|
|
|
618
618
|
});
|
|
619
619
|
};
|
|
620
620
|
|
|
621
|
-
var __async$
|
|
621
|
+
var __async$G = (__this, __arguments, generator) => {
|
|
622
622
|
return new Promise((resolve, reject) => {
|
|
623
623
|
var fulfilled = (value) => {
|
|
624
624
|
try {
|
|
@@ -641,7 +641,7 @@ var __async$F = (__this, __arguments, generator) => {
|
|
|
641
641
|
const useDeleteCarrier = () => {
|
|
642
642
|
const { client } = useShipEngine();
|
|
643
643
|
return reactQuery.useMutation({
|
|
644
|
-
mutationFn: (carrierId) => __async$
|
|
644
|
+
mutationFn: (carrierId) => __async$G(void 0, null, function* () {
|
|
645
645
|
const result = yield client.carriers.delete(carrierId);
|
|
646
646
|
return result.data;
|
|
647
647
|
}),
|
|
@@ -650,24 +650,24 @@ const useDeleteCarrier = () => {
|
|
|
650
650
|
});
|
|
651
651
|
};
|
|
652
652
|
|
|
653
|
-
var __getOwnPropSymbols$
|
|
654
|
-
var __hasOwnProp$
|
|
655
|
-
var __propIsEnum$
|
|
656
|
-
var __objRest$
|
|
653
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
654
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
655
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
656
|
+
var __objRest$j = (source, exclude) => {
|
|
657
657
|
var target = {};
|
|
658
658
|
for (var prop in source)
|
|
659
|
-
if (__hasOwnProp$
|
|
659
|
+
if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
660
660
|
target[prop] = source[prop];
|
|
661
|
-
if (source != null && __getOwnPropSymbols$
|
|
662
|
-
for (var prop of __getOwnPropSymbols$
|
|
663
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
661
|
+
if (source != null && __getOwnPropSymbols$v)
|
|
662
|
+
for (var prop of __getOwnPropSymbols$v(source)) {
|
|
663
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
|
|
664
664
|
target[prop] = source[prop];
|
|
665
665
|
}
|
|
666
666
|
return target;
|
|
667
667
|
};
|
|
668
668
|
const useGetCarrierConnectionForm = (_params) => {
|
|
669
669
|
const { client } = useShipEngine();
|
|
670
|
-
const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$
|
|
670
|
+
const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$j(_a, ["carrierName", "enabled"]);
|
|
671
671
|
return reactQuery.useQuery({
|
|
672
672
|
enabled,
|
|
673
673
|
onError,
|
|
@@ -677,24 +677,24 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
677
677
|
});
|
|
678
678
|
};
|
|
679
679
|
|
|
680
|
-
var __getOwnPropSymbols$
|
|
681
|
-
var __hasOwnProp$
|
|
682
|
-
var __propIsEnum$
|
|
683
|
-
var __objRest$
|
|
680
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
681
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
682
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
683
|
+
var __objRest$i = (source, exclude) => {
|
|
684
684
|
var target = {};
|
|
685
685
|
for (var prop in source)
|
|
686
|
-
if (__hasOwnProp$
|
|
686
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
687
687
|
target[prop] = source[prop];
|
|
688
|
-
if (source != null && __getOwnPropSymbols$
|
|
689
|
-
for (var prop of __getOwnPropSymbols$
|
|
690
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
688
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
689
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
690
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
691
691
|
target[prop] = source[prop];
|
|
692
692
|
}
|
|
693
693
|
return target;
|
|
694
694
|
};
|
|
695
695
|
const useListCarrierConnections = (_params) => {
|
|
696
696
|
const { client } = useShipEngine();
|
|
697
|
-
const _a = _params || {}, { enabled = true } = _a, params = __objRest$
|
|
697
|
+
const _a = _params || {}, { enabled = true } = _a, params = __objRest$i(_a, ["enabled"]);
|
|
698
698
|
return reactQuery.useQuery({
|
|
699
699
|
enabled,
|
|
700
700
|
onError,
|
|
@@ -704,7 +704,7 @@ const useListCarrierConnections = (_params) => {
|
|
|
704
704
|
});
|
|
705
705
|
};
|
|
706
706
|
|
|
707
|
-
var __async$
|
|
707
|
+
var __async$F = (__this, __arguments, generator) => {
|
|
708
708
|
return new Promise((resolve, reject) => {
|
|
709
709
|
var fulfilled = (value) => {
|
|
710
710
|
try {
|
|
@@ -727,7 +727,7 @@ var __async$E = (__this, __arguments, generator) => {
|
|
|
727
727
|
const useConnectCarrierAccount = () => {
|
|
728
728
|
const { client } = useShipEngine();
|
|
729
729
|
return reactQuery.useMutation({
|
|
730
|
-
mutationFn: (_0) => __async$
|
|
730
|
+
mutationFn: (_0) => __async$F(void 0, [_0], function* ({ carrierName, formData }) {
|
|
731
731
|
const result = yield client.connections.connectCarrier(carrierName, formData);
|
|
732
732
|
return result.data;
|
|
733
733
|
}),
|
|
@@ -747,33 +747,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
747
747
|
});
|
|
748
748
|
};
|
|
749
749
|
|
|
750
|
-
var __defProp$
|
|
751
|
-
var __defProps$
|
|
752
|
-
var __getOwnPropDescs$
|
|
753
|
-
var __getOwnPropSymbols$
|
|
754
|
-
var __hasOwnProp$
|
|
755
|
-
var __propIsEnum$
|
|
756
|
-
var __defNormalProp$
|
|
757
|
-
var __spreadValues$
|
|
750
|
+
var __defProp$m = Object.defineProperty;
|
|
751
|
+
var __defProps$l = Object.defineProperties;
|
|
752
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
753
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
754
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
755
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
756
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
757
|
+
var __spreadValues$m = (a, b) => {
|
|
758
758
|
for (var prop in b || (b = {}))
|
|
759
|
-
if (__hasOwnProp$
|
|
760
|
-
__defNormalProp$
|
|
761
|
-
if (__getOwnPropSymbols$
|
|
762
|
-
for (var prop of __getOwnPropSymbols$
|
|
763
|
-
if (__propIsEnum$
|
|
764
|
-
__defNormalProp$
|
|
759
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
760
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
761
|
+
if (__getOwnPropSymbols$t)
|
|
762
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
763
|
+
if (__propIsEnum$t.call(b, prop))
|
|
764
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
765
765
|
}
|
|
766
766
|
return a;
|
|
767
767
|
};
|
|
768
|
-
var __spreadProps$
|
|
769
|
-
var __objRest$
|
|
768
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
769
|
+
var __objRest$h = (source, exclude) => {
|
|
770
770
|
var target = {};
|
|
771
771
|
for (var prop in source)
|
|
772
|
-
if (__hasOwnProp$
|
|
772
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
773
773
|
target[prop] = source[prop];
|
|
774
|
-
if (source != null && __getOwnPropSymbols$
|
|
775
|
-
for (var prop of __getOwnPropSymbols$
|
|
776
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
774
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
775
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
776
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
777
777
|
target[prop] = source[prop];
|
|
778
778
|
}
|
|
779
779
|
return target;
|
|
@@ -781,12 +781,12 @@ var __objRest$g = (source, exclude) => {
|
|
|
781
781
|
const useGetConnectionsCarrierSettings = (_a) => {
|
|
782
782
|
var _b = _a, {
|
|
783
783
|
queryFnParams
|
|
784
|
-
} = _b, params = __objRest$
|
|
784
|
+
} = _b, params = __objRest$h(_b, [
|
|
785
785
|
"queryFnParams"
|
|
786
786
|
]);
|
|
787
787
|
const { client } = useShipEngine();
|
|
788
788
|
const { carrierName, carrierId } = queryFnParams;
|
|
789
|
-
return reactQuery.useQuery(__spreadProps$
|
|
789
|
+
return reactQuery.useQuery(__spreadProps$l(__spreadValues$m({}, params), {
|
|
790
790
|
onError,
|
|
791
791
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
792
792
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -794,26 +794,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
794
794
|
}));
|
|
795
795
|
};
|
|
796
796
|
|
|
797
|
-
var __defProp$
|
|
798
|
-
var __defProps$
|
|
799
|
-
var __getOwnPropDescs$
|
|
800
|
-
var __getOwnPropSymbols$
|
|
801
|
-
var __hasOwnProp$
|
|
802
|
-
var __propIsEnum$
|
|
803
|
-
var __defNormalProp$
|
|
804
|
-
var __spreadValues$
|
|
797
|
+
var __defProp$l = Object.defineProperty;
|
|
798
|
+
var __defProps$k = Object.defineProperties;
|
|
799
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
800
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
801
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
802
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
803
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
804
|
+
var __spreadValues$l = (a, b) => {
|
|
805
805
|
for (var prop in b || (b = {}))
|
|
806
|
-
if (__hasOwnProp$
|
|
807
|
-
__defNormalProp$
|
|
808
|
-
if (__getOwnPropSymbols$
|
|
809
|
-
for (var prop of __getOwnPropSymbols$
|
|
810
|
-
if (__propIsEnum$
|
|
811
|
-
__defNormalProp$
|
|
806
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
807
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
808
|
+
if (__getOwnPropSymbols$s)
|
|
809
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
810
|
+
if (__propIsEnum$s.call(b, prop))
|
|
811
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
812
812
|
}
|
|
813
813
|
return a;
|
|
814
814
|
};
|
|
815
|
-
var __spreadProps$
|
|
816
|
-
var __async$
|
|
815
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
816
|
+
var __async$E = (__this, __arguments, generator) => {
|
|
817
817
|
return new Promise((resolve, reject) => {
|
|
818
818
|
var fulfilled = (value) => {
|
|
819
819
|
try {
|
|
@@ -835,8 +835,8 @@ var __async$D = (__this, __arguments, generator) => {
|
|
|
835
835
|
};
|
|
836
836
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
837
837
|
const { client } = useShipEngine();
|
|
838
|
-
return reactQuery.useMutation(__spreadProps$
|
|
839
|
-
mutationFn: (_0) => __async$
|
|
838
|
+
return reactQuery.useMutation(__spreadProps$k(__spreadValues$l({}, params), {
|
|
839
|
+
mutationFn: (_0) => __async$E(void 0, [_0], function* ({
|
|
840
840
|
carrierName,
|
|
841
841
|
carrierId,
|
|
842
842
|
formData
|
|
@@ -863,7 +863,7 @@ const useListCustomPackageTypes = () => {
|
|
|
863
863
|
});
|
|
864
864
|
};
|
|
865
865
|
|
|
866
|
-
var __async$
|
|
866
|
+
var __async$D = (__this, __arguments, generator) => {
|
|
867
867
|
return new Promise((resolve, reject) => {
|
|
868
868
|
var fulfilled = (value) => {
|
|
869
869
|
try {
|
|
@@ -886,7 +886,7 @@ var __async$C = (__this, __arguments, generator) => {
|
|
|
886
886
|
const useCreateFundingSource = () => {
|
|
887
887
|
const { client } = useShipEngine();
|
|
888
888
|
return reactQuery.useMutation({
|
|
889
|
-
mutationFn: (fundingSource) => __async$
|
|
889
|
+
mutationFn: (fundingSource) => __async$D(void 0, null, function* () {
|
|
890
890
|
const result = yield client.fundingSources.create(fundingSource);
|
|
891
891
|
return result.data;
|
|
892
892
|
}),
|
|
@@ -895,7 +895,7 @@ const useCreateFundingSource = () => {
|
|
|
895
895
|
});
|
|
896
896
|
};
|
|
897
897
|
|
|
898
|
-
var __async$
|
|
898
|
+
var __async$C = (__this, __arguments, generator) => {
|
|
899
899
|
return new Promise((resolve, reject) => {
|
|
900
900
|
var fulfilled = (value) => {
|
|
901
901
|
try {
|
|
@@ -918,7 +918,7 @@ var __async$B = (__this, __arguments, generator) => {
|
|
|
918
918
|
const useFundingSourcesAddFunds = () => {
|
|
919
919
|
const { client } = useShipEngine();
|
|
920
920
|
return reactQuery.useMutation({
|
|
921
|
-
mutationFn: (_0) => __async$
|
|
921
|
+
mutationFn: (_0) => __async$C(void 0, [_0], function* ({ funds, fundingSourceId }) {
|
|
922
922
|
const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
|
|
923
923
|
return result.data;
|
|
924
924
|
}),
|
|
@@ -947,7 +947,7 @@ const useListFundingSources = () => {
|
|
|
947
947
|
});
|
|
948
948
|
};
|
|
949
949
|
|
|
950
|
-
var __async$
|
|
950
|
+
var __async$B = (__this, __arguments, generator) => {
|
|
951
951
|
return new Promise((resolve, reject) => {
|
|
952
952
|
var fulfilled = (value) => {
|
|
953
953
|
try {
|
|
@@ -970,7 +970,7 @@ var __async$A = (__this, __arguments, generator) => {
|
|
|
970
970
|
const useRegisterCarrier = () => {
|
|
971
971
|
const { client } = useShipEngine();
|
|
972
972
|
return reactQuery.useMutation({
|
|
973
|
-
mutationFn: (carrier) => __async$
|
|
973
|
+
mutationFn: (carrier) => __async$B(void 0, null, function* () {
|
|
974
974
|
const result = yield client.fundingSources.registerCarrier(carrier);
|
|
975
975
|
return result.data;
|
|
976
976
|
}),
|
|
@@ -979,7 +979,7 @@ const useRegisterCarrier = () => {
|
|
|
979
979
|
});
|
|
980
980
|
};
|
|
981
981
|
|
|
982
|
-
var __async$
|
|
982
|
+
var __async$A = (__this, __arguments, generator) => {
|
|
983
983
|
return new Promise((resolve, reject) => {
|
|
984
984
|
var fulfilled = (value) => {
|
|
985
985
|
try {
|
|
@@ -1002,14 +1002,16 @@ var __async$z = (__this, __arguments, generator) => {
|
|
|
1002
1002
|
const useUpdateFundingSource = () => {
|
|
1003
1003
|
const { client } = useShipEngine();
|
|
1004
1004
|
return reactQuery.useMutation({
|
|
1005
|
-
mutationFn: (_0) => __async$
|
|
1005
|
+
mutationFn: (_0) => __async$A(void 0, [_0], function* ({
|
|
1006
1006
|
billingInfo,
|
|
1007
1007
|
creditCardInfo,
|
|
1008
|
-
fundingSourceId
|
|
1008
|
+
fundingSourceId,
|
|
1009
|
+
auctanePayInfo
|
|
1009
1010
|
}) {
|
|
1010
1011
|
const result = yield client.fundingSources.update(
|
|
1011
1012
|
billingInfo,
|
|
1012
1013
|
creditCardInfo,
|
|
1014
|
+
auctanePayInfo,
|
|
1013
1015
|
fundingSourceId
|
|
1014
1016
|
);
|
|
1015
1017
|
return result.data;
|
|
@@ -1041,29 +1043,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
|
|
|
1041
1043
|
});
|
|
1042
1044
|
};
|
|
1043
1045
|
|
|
1044
|
-
var __defProp$
|
|
1045
|
-
var __defProps$
|
|
1046
|
-
var __getOwnPropDescs$
|
|
1047
|
-
var __getOwnPropSymbols$
|
|
1048
|
-
var __hasOwnProp$
|
|
1049
|
-
var __propIsEnum$
|
|
1050
|
-
var __defNormalProp$
|
|
1051
|
-
var __spreadValues$
|
|
1046
|
+
var __defProp$k = Object.defineProperty;
|
|
1047
|
+
var __defProps$j = Object.defineProperties;
|
|
1048
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
1049
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
1050
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
1051
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
1052
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1053
|
+
var __spreadValues$k = (a, b) => {
|
|
1052
1054
|
for (var prop in b || (b = {}))
|
|
1053
|
-
if (__hasOwnProp$
|
|
1054
|
-
__defNormalProp$
|
|
1055
|
-
if (__getOwnPropSymbols$
|
|
1056
|
-
for (var prop of __getOwnPropSymbols$
|
|
1057
|
-
if (__propIsEnum$
|
|
1058
|
-
__defNormalProp$
|
|
1055
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
1056
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
1057
|
+
if (__getOwnPropSymbols$r)
|
|
1058
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
1059
|
+
if (__propIsEnum$r.call(b, prop))
|
|
1060
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
1059
1061
|
}
|
|
1060
1062
|
return a;
|
|
1061
1063
|
};
|
|
1062
|
-
var __spreadProps$
|
|
1064
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
1063
1065
|
const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
|
|
1064
1066
|
const { client } = useShipEngine();
|
|
1065
|
-
const queryParams = __spreadValues$
|
|
1066
|
-
return reactQuery.useQuery(__spreadProps$
|
|
1067
|
+
const queryParams = __spreadValues$k({}, params);
|
|
1068
|
+
return reactQuery.useQuery(__spreadProps$j(__spreadValues$k({}, queryParams), {
|
|
1067
1069
|
onError,
|
|
1068
1070
|
queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
|
|
1069
1071
|
queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
|
|
@@ -1086,22 +1088,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
1086
1088
|
});
|
|
1087
1089
|
};
|
|
1088
1090
|
|
|
1089
|
-
var __getOwnPropSymbols$
|
|
1090
|
-
var __hasOwnProp$
|
|
1091
|
-
var __propIsEnum$
|
|
1092
|
-
var __objRest$
|
|
1091
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
1092
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
1093
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
1094
|
+
var __objRest$g = (source, exclude) => {
|
|
1093
1095
|
var target = {};
|
|
1094
1096
|
for (var prop in source)
|
|
1095
|
-
if (__hasOwnProp$
|
|
1097
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1096
1098
|
target[prop] = source[prop];
|
|
1097
|
-
if (source != null && __getOwnPropSymbols$
|
|
1098
|
-
for (var prop of __getOwnPropSymbols$
|
|
1099
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1099
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
1100
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
1101
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
1100
1102
|
target[prop] = source[prop];
|
|
1101
1103
|
}
|
|
1102
1104
|
return target;
|
|
1103
1105
|
};
|
|
1104
|
-
var __async$
|
|
1106
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
1105
1107
|
return new Promise((resolve, reject) => {
|
|
1106
1108
|
var fulfilled = (value) => {
|
|
1107
1109
|
try {
|
|
@@ -1124,8 +1126,8 @@ var __async$y = (__this, __arguments, generator) => {
|
|
|
1124
1126
|
const useAddInsuranceFunds = () => {
|
|
1125
1127
|
const { client } = useShipEngine();
|
|
1126
1128
|
return reactQuery.useMutation({
|
|
1127
|
-
mutationFn: (_a) => __async$
|
|
1128
|
-
var _b = _a, { insuranceProvider } = _b, rest = __objRest$
|
|
1129
|
+
mutationFn: (_a) => __async$z(void 0, null, function* () {
|
|
1130
|
+
var _b = _a, { insuranceProvider } = _b, rest = __objRest$g(_b, ["insuranceProvider"]);
|
|
1129
1131
|
const result = yield client.insurance.addFunds(insuranceProvider, rest);
|
|
1130
1132
|
return result.data;
|
|
1131
1133
|
}),
|
|
@@ -1134,6 +1136,57 @@ const useAddInsuranceFunds = () => {
|
|
|
1134
1136
|
});
|
|
1135
1137
|
};
|
|
1136
1138
|
|
|
1139
|
+
var __defProp$j = Object.defineProperty;
|
|
1140
|
+
var __defProps$i = Object.defineProperties;
|
|
1141
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
1142
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
1143
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
1144
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
1145
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1146
|
+
var __spreadValues$j = (a, b) => {
|
|
1147
|
+
for (var prop in b || (b = {}))
|
|
1148
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
1149
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
1150
|
+
if (__getOwnPropSymbols$p)
|
|
1151
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
1152
|
+
if (__propIsEnum$p.call(b, prop))
|
|
1153
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
1154
|
+
}
|
|
1155
|
+
return a;
|
|
1156
|
+
};
|
|
1157
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
1158
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
1159
|
+
return new Promise((resolve, reject) => {
|
|
1160
|
+
var fulfilled = (value) => {
|
|
1161
|
+
try {
|
|
1162
|
+
step(generator.next(value));
|
|
1163
|
+
} catch (e) {
|
|
1164
|
+
reject(e);
|
|
1165
|
+
}
|
|
1166
|
+
};
|
|
1167
|
+
var rejected = (value) => {
|
|
1168
|
+
try {
|
|
1169
|
+
step(generator.throw(value));
|
|
1170
|
+
} catch (e) {
|
|
1171
|
+
reject(e);
|
|
1172
|
+
}
|
|
1173
|
+
};
|
|
1174
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1175
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
1176
|
+
});
|
|
1177
|
+
};
|
|
1178
|
+
const useCreateInvoiceAddress = (params) => {
|
|
1179
|
+
const { client } = useShipEngine();
|
|
1180
|
+
return reactQuery.useMutation(__spreadProps$i(__spreadValues$j({}, params), {
|
|
1181
|
+
mutationFn: (invoiceAddress) => __async$y(void 0, null, function* () {
|
|
1182
|
+
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
1183
|
+
return result.data;
|
|
1184
|
+
}),
|
|
1185
|
+
mutationKey: ["useCreateInvoiceAddress"],
|
|
1186
|
+
onError
|
|
1187
|
+
}));
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1137
1190
|
var __defProp$i = Object.defineProperty;
|
|
1138
1191
|
var __defProps$h = Object.defineProperties;
|
|
1139
1192
|
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
@@ -1173,14 +1226,14 @@ var __async$x = (__this, __arguments, generator) => {
|
|
|
1173
1226
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
1174
1227
|
});
|
|
1175
1228
|
};
|
|
1176
|
-
const
|
|
1229
|
+
const useUpdateInvoiceAddress = (params) => {
|
|
1177
1230
|
const { client } = useShipEngine();
|
|
1178
1231
|
return reactQuery.useMutation(__spreadProps$h(__spreadValues$i({}, params), {
|
|
1179
1232
|
mutationFn: (invoiceAddress) => __async$x(void 0, null, function* () {
|
|
1180
|
-
const result = yield client.invoiceAddress.
|
|
1233
|
+
const result = yield client.invoiceAddress.update(invoiceAddress);
|
|
1181
1234
|
return result.data;
|
|
1182
1235
|
}),
|
|
1183
|
-
mutationKey: ["
|
|
1236
|
+
mutationKey: ["useUpdateInvoiceAddress"],
|
|
1184
1237
|
onError
|
|
1185
1238
|
}));
|
|
1186
1239
|
};
|
|
@@ -1204,6 +1257,31 @@ var __spreadValues$h = (a, b) => {
|
|
|
1204
1257
|
return a;
|
|
1205
1258
|
};
|
|
1206
1259
|
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
1260
|
+
const useGetInvoiceAddress = (params) => {
|
|
1261
|
+
const { client } = useShipEngine();
|
|
1262
|
+
return reactQuery.useQuery(__spreadProps$g(__spreadValues$h({}, params), {
|
|
1263
|
+
onError,
|
|
1264
|
+
queryFn: () => client.invoiceAddress.get(),
|
|
1265
|
+
queryKey: ["useGetInvoiceAddress"],
|
|
1266
|
+
select: (result) => result.data
|
|
1267
|
+
}));
|
|
1268
|
+
};
|
|
1269
|
+
|
|
1270
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
1271
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
1272
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
1273
|
+
var __objRest$f = (source, exclude) => {
|
|
1274
|
+
var target = {};
|
|
1275
|
+
for (var prop in source)
|
|
1276
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1277
|
+
target[prop] = source[prop];
|
|
1278
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
1279
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
1280
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
1281
|
+
target[prop] = source[prop];
|
|
1282
|
+
}
|
|
1283
|
+
return target;
|
|
1284
|
+
};
|
|
1207
1285
|
var __async$w = (__this, __arguments, generator) => {
|
|
1208
1286
|
return new Promise((resolve, reject) => {
|
|
1209
1287
|
var fulfilled = (value) => {
|
|
@@ -1224,50 +1302,53 @@ var __async$w = (__this, __arguments, generator) => {
|
|
|
1224
1302
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
1225
1303
|
});
|
|
1226
1304
|
};
|
|
1227
|
-
const
|
|
1305
|
+
const useCreateLabel = () => {
|
|
1228
1306
|
const { client } = useShipEngine();
|
|
1229
|
-
return reactQuery.useMutation(
|
|
1230
|
-
mutationFn: (
|
|
1231
|
-
|
|
1307
|
+
return reactQuery.useMutation({
|
|
1308
|
+
mutationFn: (_a) => __async$w(void 0, null, function* () {
|
|
1309
|
+
var _b = _a, { rateId } = _b, options = __objRest$f(_b, ["rateId"]);
|
|
1310
|
+
const result = yield client.labels.createByRateId(rateId, options);
|
|
1232
1311
|
return result.data;
|
|
1233
1312
|
}),
|
|
1234
|
-
mutationKey: ["
|
|
1313
|
+
mutationKey: ["useCreateLabel"],
|
|
1235
1314
|
onError
|
|
1236
|
-
})
|
|
1315
|
+
});
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
const useGetLabel = (labelId) => {
|
|
1319
|
+
const { client } = useShipEngine();
|
|
1320
|
+
return reactQuery.useQuery({
|
|
1321
|
+
enabled: labelId !== void 0,
|
|
1322
|
+
onError,
|
|
1323
|
+
queryFn: () => {
|
|
1324
|
+
if (labelId)
|
|
1325
|
+
return client.labels.get(labelId);
|
|
1326
|
+
return Promise.reject(new Error("labelId is require"));
|
|
1327
|
+
},
|
|
1328
|
+
queryKey: ["useGetLabel", labelId],
|
|
1329
|
+
select: (result) => result.data
|
|
1330
|
+
});
|
|
1237
1331
|
};
|
|
1238
1332
|
|
|
1239
1333
|
var __defProp$g = Object.defineProperty;
|
|
1240
1334
|
var __defProps$f = Object.defineProperties;
|
|
1241
1335
|
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
1242
|
-
var __getOwnPropSymbols$
|
|
1243
|
-
var __hasOwnProp$
|
|
1244
|
-
var __propIsEnum$
|
|
1336
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
1337
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
1338
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
1245
1339
|
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1246
1340
|
var __spreadValues$g = (a, b) => {
|
|
1247
1341
|
for (var prop in b || (b = {}))
|
|
1248
|
-
if (__hasOwnProp$
|
|
1342
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
1249
1343
|
__defNormalProp$g(a, prop, b[prop]);
|
|
1250
|
-
if (__getOwnPropSymbols$
|
|
1251
|
-
for (var prop of __getOwnPropSymbols$
|
|
1252
|
-
if (__propIsEnum$
|
|
1344
|
+
if (__getOwnPropSymbols$l)
|
|
1345
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
1346
|
+
if (__propIsEnum$l.call(b, prop))
|
|
1253
1347
|
__defNormalProp$g(a, prop, b[prop]);
|
|
1254
1348
|
}
|
|
1255
1349
|
return a;
|
|
1256
1350
|
};
|
|
1257
1351
|
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
1258
|
-
const useGetInvoiceAddress = (params) => {
|
|
1259
|
-
const { client } = useShipEngine();
|
|
1260
|
-
return reactQuery.useQuery(__spreadProps$f(__spreadValues$g({}, params), {
|
|
1261
|
-
onError,
|
|
1262
|
-
queryFn: () => client.invoiceAddress.get(),
|
|
1263
|
-
queryKey: ["useGetInvoiceAddress"],
|
|
1264
|
-
select: (result) => result.data
|
|
1265
|
-
}));
|
|
1266
|
-
};
|
|
1267
|
-
|
|
1268
|
-
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
1269
|
-
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
1270
|
-
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
1271
1352
|
var __objRest$e = (source, exclude) => {
|
|
1272
1353
|
var target = {};
|
|
1273
1354
|
for (var prop in source)
|
|
@@ -1280,6 +1361,17 @@ var __objRest$e = (source, exclude) => {
|
|
|
1280
1361
|
}
|
|
1281
1362
|
return target;
|
|
1282
1363
|
};
|
|
1364
|
+
const useListLabels = (params) => {
|
|
1365
|
+
const { client } = useShipEngine();
|
|
1366
|
+
const _a = __spreadValues$g({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
|
|
1367
|
+
return reactQuery.useQuery(__spreadProps$f(__spreadValues$g({}, rest), {
|
|
1368
|
+
onError,
|
|
1369
|
+
queryFn: () => client.labels.list(queryFnParams),
|
|
1370
|
+
queryKey: ["useListLabels", params],
|
|
1371
|
+
select: (result) => result.data
|
|
1372
|
+
}));
|
|
1373
|
+
};
|
|
1374
|
+
|
|
1283
1375
|
var __async$v = (__this, __arguments, generator) => {
|
|
1284
1376
|
return new Promise((resolve, reject) => {
|
|
1285
1377
|
var fulfilled = (value) => {
|
|
@@ -1300,34 +1392,18 @@ var __async$v = (__this, __arguments, generator) => {
|
|
|
1300
1392
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
1301
1393
|
});
|
|
1302
1394
|
};
|
|
1303
|
-
const
|
|
1395
|
+
const useVoidLabel = () => {
|
|
1304
1396
|
const { client } = useShipEngine();
|
|
1305
1397
|
return reactQuery.useMutation({
|
|
1306
|
-
mutationFn: (
|
|
1307
|
-
|
|
1308
|
-
const result = yield client.labels.createByRateId(rateId, options);
|
|
1398
|
+
mutationFn: (labelId) => __async$v(void 0, null, function* () {
|
|
1399
|
+
const result = yield client.labels.void(labelId);
|
|
1309
1400
|
return result.data;
|
|
1310
1401
|
}),
|
|
1311
|
-
mutationKey: ["
|
|
1402
|
+
mutationKey: ["useVoidLabel"],
|
|
1312
1403
|
onError
|
|
1313
1404
|
});
|
|
1314
1405
|
};
|
|
1315
1406
|
|
|
1316
|
-
const useGetLabel = (labelId) => {
|
|
1317
|
-
const { client } = useShipEngine();
|
|
1318
|
-
return reactQuery.useQuery({
|
|
1319
|
-
enabled: labelId !== void 0,
|
|
1320
|
-
onError,
|
|
1321
|
-
queryFn: () => {
|
|
1322
|
-
if (labelId)
|
|
1323
|
-
return client.labels.get(labelId);
|
|
1324
|
-
return Promise.reject(new Error("labelId is require"));
|
|
1325
|
-
},
|
|
1326
|
-
queryKey: ["useGetLabel", labelId],
|
|
1327
|
-
select: (result) => result.data
|
|
1328
|
-
});
|
|
1329
|
-
};
|
|
1330
|
-
|
|
1331
1407
|
var __defProp$f = Object.defineProperty;
|
|
1332
1408
|
var __defProps$e = Object.defineProperties;
|
|
1333
1409
|
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
@@ -1359,17 +1435,6 @@ var __objRest$d = (source, exclude) => {
|
|
|
1359
1435
|
}
|
|
1360
1436
|
return target;
|
|
1361
1437
|
};
|
|
1362
|
-
const useListLabels = (params) => {
|
|
1363
|
-
const { client } = useShipEngine();
|
|
1364
|
-
const _a = __spreadValues$f({}, params), { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
|
|
1365
|
-
return reactQuery.useQuery(__spreadProps$e(__spreadValues$f({}, rest), {
|
|
1366
|
-
onError,
|
|
1367
|
-
queryFn: () => client.labels.list(queryFnParams),
|
|
1368
|
-
queryKey: ["useListLabels", params],
|
|
1369
|
-
select: (result) => result.data
|
|
1370
|
-
}));
|
|
1371
|
-
};
|
|
1372
|
-
|
|
1373
1438
|
var __async$u = (__this, __arguments, generator) => {
|
|
1374
1439
|
return new Promise((resolve, reject) => {
|
|
1375
1440
|
var fulfilled = (value) => {
|
|
@@ -1390,16 +1455,30 @@ var __async$u = (__this, __arguments, generator) => {
|
|
|
1390
1455
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
1391
1456
|
});
|
|
1392
1457
|
};
|
|
1393
|
-
const
|
|
1458
|
+
const useListLabelsInfinite = (params) => {
|
|
1394
1459
|
const { client } = useShipEngine();
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1460
|
+
const _a = __spreadValues$f({}, params), { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
|
|
1461
|
+
return reactQuery.useInfiniteQuery(__spreadProps$e(__spreadValues$f({}, rest), {
|
|
1462
|
+
getNextPageParam: (lastPage) => {
|
|
1463
|
+
if (lastPage.page < lastPage.pages) {
|
|
1464
|
+
return lastPage.page + 1;
|
|
1465
|
+
}
|
|
1466
|
+
return void 0;
|
|
1467
|
+
},
|
|
1468
|
+
onError,
|
|
1469
|
+
queryFn: (_0) => __async$u(void 0, [_0], function* ({ pageParam = 1 }) {
|
|
1470
|
+
const response = yield client.labels.list(__spreadProps$e(__spreadValues$f({}, queryFnParams), { page: pageParam }));
|
|
1471
|
+
return response.data;
|
|
1399
1472
|
}),
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1473
|
+
queryKey: ["useListLabelsInfinite", params],
|
|
1474
|
+
select: (data) => {
|
|
1475
|
+
return {
|
|
1476
|
+
labels: data.pages.flatMap((page) => page.labels),
|
|
1477
|
+
pageParams: data.pageParams,
|
|
1478
|
+
pages: data.pages
|
|
1479
|
+
};
|
|
1480
|
+
}
|
|
1481
|
+
}));
|
|
1403
1482
|
};
|
|
1404
1483
|
|
|
1405
1484
|
var __defProp$e = Object.defineProperty;
|
|
@@ -3303,6 +3382,7 @@ exports.useListCarriers = useListCarriers;
|
|
|
3303
3382
|
exports.useListCustomPackageTypes = useListCustomPackageTypes;
|
|
3304
3383
|
exports.useListFundingSources = useListFundingSources;
|
|
3305
3384
|
exports.useListLabels = useListLabels;
|
|
3385
|
+
exports.useListLabelsInfinite = useListLabelsInfinite;
|
|
3306
3386
|
exports.useListOrderSources = useListOrderSources;
|
|
3307
3387
|
exports.useListOrderSourcesConnections = useListOrderSourcesConnections;
|
|
3308
3388
|
exports.useListRateCards = useListRateCards;
|