@shipengine/react-api 4.18.3-next.2 → 4.18.3
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/sellers/use-list-sandbox-seller-ids.d.ts +1 -2
- package/index.js +809 -829
- package/index.mjs +809 -829
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -78,25 +78,25 @@ const onError = (_errors) => _default();
|
|
|
78
78
|
|
|
79
79
|
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}();
|
|
80
80
|
|
|
81
|
-
var __defProp$
|
|
82
|
-
var __defProps$
|
|
83
|
-
var __getOwnPropDescs$
|
|
84
|
-
var __getOwnPropSymbols$
|
|
85
|
-
var __hasOwnProp$
|
|
86
|
-
var __propIsEnum$
|
|
87
|
-
var __defNormalProp$
|
|
88
|
-
var __spreadValues$
|
|
81
|
+
var __defProp$O = Object.defineProperty;
|
|
82
|
+
var __defProps$N = Object.defineProperties;
|
|
83
|
+
var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
|
|
84
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
85
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
86
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
87
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
88
|
+
var __spreadValues$O = (a, b) => {
|
|
89
89
|
for (var prop in b || (b = {}))
|
|
90
|
-
if (__hasOwnProp$
|
|
91
|
-
__defNormalProp$
|
|
92
|
-
if (__getOwnPropSymbols$
|
|
93
|
-
for (var prop of __getOwnPropSymbols$
|
|
94
|
-
if (__propIsEnum$
|
|
95
|
-
__defNormalProp$
|
|
90
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
91
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
92
|
+
if (__getOwnPropSymbols$X)
|
|
93
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
94
|
+
if (__propIsEnum$X.call(b, prop))
|
|
95
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
96
96
|
}
|
|
97
97
|
return a;
|
|
98
98
|
};
|
|
99
|
-
var __spreadProps$
|
|
99
|
+
var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
|
|
100
100
|
const streams = [];
|
|
101
101
|
if (process.env.NODE_ENV === "production") {
|
|
102
102
|
streams.push({
|
|
@@ -105,7 +105,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
105
105
|
}
|
|
106
106
|
const logger = E({
|
|
107
107
|
name: "shipengine",
|
|
108
|
-
serializers: __spreadProps$
|
|
108
|
+
serializers: __spreadProps$N(__spreadValues$O({}, k), {
|
|
109
109
|
req: (req) => ({
|
|
110
110
|
headers: req.headers,
|
|
111
111
|
method: req.method,
|
|
@@ -278,35 +278,6 @@ const useUpdateAccountSettings = () => {
|
|
|
278
278
|
});
|
|
279
279
|
};
|
|
280
280
|
|
|
281
|
-
var __defProp$O = Object.defineProperty;
|
|
282
|
-
var __defProps$N = Object.defineProperties;
|
|
283
|
-
var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
|
|
284
|
-
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
285
|
-
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
286
|
-
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
287
|
-
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
288
|
-
var __spreadValues$O = (a, b) => {
|
|
289
|
-
for (var prop in b || (b = {}))
|
|
290
|
-
if (__hasOwnProp$X.call(b, prop))
|
|
291
|
-
__defNormalProp$O(a, prop, b[prop]);
|
|
292
|
-
if (__getOwnPropSymbols$X)
|
|
293
|
-
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
294
|
-
if (__propIsEnum$X.call(b, prop))
|
|
295
|
-
__defNormalProp$O(a, prop, b[prop]);
|
|
296
|
-
}
|
|
297
|
-
return a;
|
|
298
|
-
};
|
|
299
|
-
var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
|
|
300
|
-
const useListAccountAddons = (params) => {
|
|
301
|
-
const { client } = useShipEngine();
|
|
302
|
-
return useQuery(__spreadProps$N(__spreadValues$O({}, params), {
|
|
303
|
-
onError,
|
|
304
|
-
queryFn: () => client.accountAddons.list(),
|
|
305
|
-
queryKey: ["useListAccountAddons"],
|
|
306
|
-
select: (result) => result.data.addons
|
|
307
|
-
}));
|
|
308
|
-
};
|
|
309
|
-
|
|
310
281
|
var __defProp$N = Object.defineProperty;
|
|
311
282
|
var __defProps$M = Object.defineProperties;
|
|
312
283
|
var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
|
|
@@ -326,35 +297,13 @@ var __spreadValues$N = (a, b) => {
|
|
|
326
297
|
return a;
|
|
327
298
|
};
|
|
328
299
|
var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
|
|
329
|
-
|
|
330
|
-
return new Promise((resolve, reject) => {
|
|
331
|
-
var fulfilled = (value) => {
|
|
332
|
-
try {
|
|
333
|
-
step(generator.next(value));
|
|
334
|
-
} catch (e) {
|
|
335
|
-
reject(e);
|
|
336
|
-
}
|
|
337
|
-
};
|
|
338
|
-
var rejected = (value) => {
|
|
339
|
-
try {
|
|
340
|
-
step(generator.throw(value));
|
|
341
|
-
} catch (e) {
|
|
342
|
-
reject(e);
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
346
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
347
|
-
});
|
|
348
|
-
};
|
|
349
|
-
const useEnableAccountAddon = (params) => {
|
|
300
|
+
const useListAccountAddons = (params) => {
|
|
350
301
|
const { client } = useShipEngine();
|
|
351
|
-
return
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
mutationKey: ["useEnableAccountAddon"],
|
|
357
|
-
onError
|
|
302
|
+
return useQuery(__spreadProps$M(__spreadValues$N({}, params), {
|
|
303
|
+
onError,
|
|
304
|
+
queryFn: () => client.accountAddons.list(),
|
|
305
|
+
queryKey: ["useListAccountAddons"],
|
|
306
|
+
select: (result) => result.data.addons
|
|
358
307
|
}));
|
|
359
308
|
};
|
|
360
309
|
|
|
@@ -377,7 +326,7 @@ var __spreadValues$M = (a, b) => {
|
|
|
377
326
|
return a;
|
|
378
327
|
};
|
|
379
328
|
var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
|
|
380
|
-
var __async
|
|
329
|
+
var __async$10 = (__this, __arguments, generator) => {
|
|
381
330
|
return new Promise((resolve, reject) => {
|
|
382
331
|
var fulfilled = (value) => {
|
|
383
332
|
try {
|
|
@@ -397,14 +346,14 @@ var __async$$ = (__this, __arguments, generator) => {
|
|
|
397
346
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
398
347
|
});
|
|
399
348
|
};
|
|
400
|
-
const
|
|
349
|
+
const useEnableAccountAddon = (params) => {
|
|
401
350
|
const { client } = useShipEngine();
|
|
402
351
|
return useMutation(__spreadProps$L(__spreadValues$M({}, params), {
|
|
403
|
-
mutationFn: (addonType) => __async
|
|
404
|
-
const result = yield client.accountAddons.
|
|
352
|
+
mutationFn: (addonType) => __async$10(void 0, null, function* () {
|
|
353
|
+
const result = yield client.accountAddons.enable(addonType);
|
|
405
354
|
return result.data;
|
|
406
355
|
}),
|
|
407
|
-
mutationKey: ["
|
|
356
|
+
mutationKey: ["useEnableAccountAddon"],
|
|
408
357
|
onError
|
|
409
358
|
}));
|
|
410
359
|
};
|
|
@@ -428,17 +377,7 @@ var __spreadValues$L = (a, b) => {
|
|
|
428
377
|
return a;
|
|
429
378
|
};
|
|
430
379
|
var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
|
|
431
|
-
|
|
432
|
-
const { client } = useShipEngine();
|
|
433
|
-
return useQuery(__spreadProps$K(__spreadValues$L({}, params), {
|
|
434
|
-
onError,
|
|
435
|
-
queryFn: () => client.accountFeatures.list(),
|
|
436
|
-
queryKey: ["useListAccountFeatures"],
|
|
437
|
-
select: (result) => result.data.features
|
|
438
|
-
}));
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
var __async$_ = (__this, __arguments, generator) => {
|
|
380
|
+
var __async$$ = (__this, __arguments, generator) => {
|
|
442
381
|
return new Promise((resolve, reject) => {
|
|
443
382
|
var fulfilled = (value) => {
|
|
444
383
|
try {
|
|
@@ -458,16 +397,16 @@ var __async$_ = (__this, __arguments, generator) => {
|
|
|
458
397
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
459
398
|
});
|
|
460
399
|
};
|
|
461
|
-
const
|
|
400
|
+
const useDisableAccountAddon = (params) => {
|
|
462
401
|
const { client } = useShipEngine();
|
|
463
|
-
return useMutation({
|
|
464
|
-
mutationFn: (
|
|
465
|
-
const result = yield client.
|
|
402
|
+
return useMutation(__spreadProps$K(__spreadValues$L({}, params), {
|
|
403
|
+
mutationFn: (addonType) => __async$$(void 0, null, function* () {
|
|
404
|
+
const result = yield client.accountAddons.disable(addonType);
|
|
466
405
|
return result.data;
|
|
467
406
|
}),
|
|
468
|
-
mutationKey: ["
|
|
407
|
+
mutationKey: ["useDisableAccountAddon"],
|
|
469
408
|
onError
|
|
470
|
-
});
|
|
409
|
+
}));
|
|
471
410
|
};
|
|
472
411
|
|
|
473
412
|
var __defProp$K = Object.defineProperty;
|
|
@@ -489,7 +428,17 @@ var __spreadValues$K = (a, b) => {
|
|
|
489
428
|
return a;
|
|
490
429
|
};
|
|
491
430
|
var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
|
|
492
|
-
|
|
431
|
+
const useListAccountFeatures = (params) => {
|
|
432
|
+
const { client } = useShipEngine();
|
|
433
|
+
return useQuery(__spreadProps$J(__spreadValues$K({}, params), {
|
|
434
|
+
onError,
|
|
435
|
+
queryFn: () => client.accountFeatures.list(),
|
|
436
|
+
queryKey: ["useListAccountFeatures"],
|
|
437
|
+
select: (result) => result.data.features
|
|
438
|
+
}));
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
var __async$_ = (__this, __arguments, generator) => {
|
|
493
442
|
return new Promise((resolve, reject) => {
|
|
494
443
|
var fulfilled = (value) => {
|
|
495
444
|
try {
|
|
@@ -509,15 +458,16 @@ var __async$Z = (__this, __arguments, generator) => {
|
|
|
509
458
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
510
459
|
});
|
|
511
460
|
};
|
|
512
|
-
const
|
|
461
|
+
const useRequestAccountFeature = () => {
|
|
513
462
|
const { client } = useShipEngine();
|
|
514
|
-
return useMutation(
|
|
515
|
-
mutationFn: () => __async$
|
|
516
|
-
yield client.
|
|
463
|
+
return useMutation({
|
|
464
|
+
mutationFn: (request) => __async$_(void 0, null, function* () {
|
|
465
|
+
const result = yield client.accountFeatures.request(request);
|
|
466
|
+
return result.data;
|
|
517
467
|
}),
|
|
518
|
-
mutationKey: ["
|
|
468
|
+
mutationKey: ["useRequestAccountFeature"],
|
|
519
469
|
onError
|
|
520
|
-
})
|
|
470
|
+
});
|
|
521
471
|
};
|
|
522
472
|
|
|
523
473
|
var __defProp$J = Object.defineProperty;
|
|
@@ -539,7 +489,7 @@ var __spreadValues$J = (a, b) => {
|
|
|
539
489
|
return a;
|
|
540
490
|
};
|
|
541
491
|
var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
|
|
542
|
-
var __async$
|
|
492
|
+
var __async$Z = (__this, __arguments, generator) => {
|
|
543
493
|
return new Promise((resolve, reject) => {
|
|
544
494
|
var fulfilled = (value) => {
|
|
545
495
|
try {
|
|
@@ -559,13 +509,13 @@ var __async$Y = (__this, __arguments, generator) => {
|
|
|
559
509
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
560
510
|
});
|
|
561
511
|
};
|
|
562
|
-
const
|
|
512
|
+
const useDisableRefundAssist = (params) => {
|
|
563
513
|
const { client } = useShipEngine();
|
|
564
514
|
return useMutation(__spreadProps$I(__spreadValues$J({}, params), {
|
|
565
|
-
mutationFn: () => __async$
|
|
566
|
-
yield client.accountRefundAssist.
|
|
515
|
+
mutationFn: () => __async$Z(void 0, null, function* () {
|
|
516
|
+
yield client.accountRefundAssist.disable();
|
|
567
517
|
}),
|
|
568
|
-
mutationKey: ["
|
|
518
|
+
mutationKey: ["useDisableRefundAssist"],
|
|
569
519
|
onError
|
|
570
520
|
}));
|
|
571
521
|
};
|
|
@@ -589,9 +539,59 @@ var __spreadValues$I = (a, b) => {
|
|
|
589
539
|
return a;
|
|
590
540
|
};
|
|
591
541
|
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
542
|
+
var __async$Y = (__this, __arguments, generator) => {
|
|
543
|
+
return new Promise((resolve, reject) => {
|
|
544
|
+
var fulfilled = (value) => {
|
|
545
|
+
try {
|
|
546
|
+
step(generator.next(value));
|
|
547
|
+
} catch (e) {
|
|
548
|
+
reject(e);
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
var rejected = (value) => {
|
|
552
|
+
try {
|
|
553
|
+
step(generator.throw(value));
|
|
554
|
+
} catch (e) {
|
|
555
|
+
reject(e);
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
559
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
560
|
+
});
|
|
561
|
+
};
|
|
562
|
+
const useEnableRefundAssist = (params) => {
|
|
563
|
+
const { client } = useShipEngine();
|
|
564
|
+
return useMutation(__spreadProps$H(__spreadValues$I({}, params), {
|
|
565
|
+
mutationFn: () => __async$Y(void 0, null, function* () {
|
|
566
|
+
yield client.accountRefundAssist.enable();
|
|
567
|
+
}),
|
|
568
|
+
mutationKey: ["useEnableRefundAssist"],
|
|
569
|
+
onError
|
|
570
|
+
}));
|
|
571
|
+
};
|
|
572
|
+
|
|
573
|
+
var __defProp$H = Object.defineProperty;
|
|
574
|
+
var __defProps$G = Object.defineProperties;
|
|
575
|
+
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
576
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
577
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
578
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
579
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
580
|
+
var __spreadValues$H = (a, b) => {
|
|
581
|
+
for (var prop in b || (b = {}))
|
|
582
|
+
if (__hasOwnProp$Q.call(b, prop))
|
|
583
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
584
|
+
if (__getOwnPropSymbols$Q)
|
|
585
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
586
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
587
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
588
|
+
}
|
|
589
|
+
return a;
|
|
590
|
+
};
|
|
591
|
+
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
592
592
|
const useGetRefundAssist = (params) => {
|
|
593
593
|
const { client } = useShipEngine();
|
|
594
|
-
return useQuery(__spreadProps$
|
|
594
|
+
return useQuery(__spreadProps$G(__spreadValues$H({}, params), {
|
|
595
595
|
onError,
|
|
596
596
|
queryFn: () => client.accountRefundAssist.get(),
|
|
597
597
|
queryKey: ["useGetRefundAssist"],
|
|
@@ -663,25 +663,25 @@ const useValidateAddresses = () => {
|
|
|
663
663
|
});
|
|
664
664
|
};
|
|
665
665
|
|
|
666
|
-
var __defProp$
|
|
667
|
-
var __defProps$
|
|
668
|
-
var __getOwnPropDescs$
|
|
669
|
-
var __getOwnPropSymbols$
|
|
670
|
-
var __hasOwnProp$
|
|
671
|
-
var __propIsEnum$
|
|
672
|
-
var __defNormalProp$
|
|
673
|
-
var __spreadValues$
|
|
666
|
+
var __defProp$G = Object.defineProperty;
|
|
667
|
+
var __defProps$F = Object.defineProperties;
|
|
668
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
669
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
670
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
671
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
672
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
673
|
+
var __spreadValues$G = (a, b) => {
|
|
674
674
|
for (var prop in b || (b = {}))
|
|
675
|
-
if (__hasOwnProp$
|
|
676
|
-
__defNormalProp$
|
|
677
|
-
if (__getOwnPropSymbols$
|
|
678
|
-
for (var prop of __getOwnPropSymbols$
|
|
679
|
-
if (__propIsEnum$
|
|
680
|
-
__defNormalProp$
|
|
675
|
+
if (__hasOwnProp$P.call(b, prop))
|
|
676
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
677
|
+
if (__getOwnPropSymbols$P)
|
|
678
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
679
|
+
if (__propIsEnum$P.call(b, prop))
|
|
680
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
681
681
|
}
|
|
682
682
|
return a;
|
|
683
683
|
};
|
|
684
|
-
var __spreadProps$
|
|
684
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
685
685
|
var __async$V = (__this, __arguments, generator) => {
|
|
686
686
|
return new Promise((resolve, reject) => {
|
|
687
687
|
var fulfilled = (value) => {
|
|
@@ -704,7 +704,7 @@ var __async$V = (__this, __arguments, generator) => {
|
|
|
704
704
|
};
|
|
705
705
|
const useCreateAuctanePaySession = (params) => {
|
|
706
706
|
const { client } = useShipEngine();
|
|
707
|
-
return useMutation(__spreadProps$
|
|
707
|
+
return useMutation(__spreadProps$F(__spreadValues$G({}, params), {
|
|
708
708
|
mutationFn: (request) => __async$V(void 0, null, function* () {
|
|
709
709
|
const result = yield client.auctanePay.createSession(request);
|
|
710
710
|
return result.data;
|
|
@@ -714,36 +714,6 @@ const useCreateAuctanePaySession = (params) => {
|
|
|
714
714
|
}));
|
|
715
715
|
};
|
|
716
716
|
|
|
717
|
-
var __defProp$G = Object.defineProperty;
|
|
718
|
-
var __defProps$F = Object.defineProperties;
|
|
719
|
-
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
720
|
-
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
721
|
-
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
722
|
-
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
723
|
-
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
724
|
-
var __spreadValues$G = (a, b) => {
|
|
725
|
-
for (var prop in b || (b = {}))
|
|
726
|
-
if (__hasOwnProp$P.call(b, prop))
|
|
727
|
-
__defNormalProp$G(a, prop, b[prop]);
|
|
728
|
-
if (__getOwnPropSymbols$P)
|
|
729
|
-
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
730
|
-
if (__propIsEnum$P.call(b, prop))
|
|
731
|
-
__defNormalProp$G(a, prop, b[prop]);
|
|
732
|
-
}
|
|
733
|
-
return a;
|
|
734
|
-
};
|
|
735
|
-
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
736
|
-
const useGetAuctanePayConfig = (params) => {
|
|
737
|
-
const { client } = useShipEngine();
|
|
738
|
-
const queryParams = __spreadValues$G({}, params);
|
|
739
|
-
return useQuery(__spreadProps$F(__spreadValues$G({}, queryParams), {
|
|
740
|
-
onError,
|
|
741
|
-
queryFn: () => client.auctanePay.getConfig(),
|
|
742
|
-
queryKey: ["useGetAuctanePayConfig"],
|
|
743
|
-
select: (result) => result.data
|
|
744
|
-
}));
|
|
745
|
-
};
|
|
746
|
-
|
|
747
717
|
var __defProp$F = Object.defineProperty;
|
|
748
718
|
var __defProps$E = Object.defineProperties;
|
|
749
719
|
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
@@ -763,39 +733,14 @@ var __spreadValues$F = (a, b) => {
|
|
|
763
733
|
return a;
|
|
764
734
|
};
|
|
765
735
|
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
766
|
-
|
|
767
|
-
return new Promise((resolve, reject) => {
|
|
768
|
-
var fulfilled = (value) => {
|
|
769
|
-
try {
|
|
770
|
-
step(generator.next(value));
|
|
771
|
-
} catch (e) {
|
|
772
|
-
reject(e);
|
|
773
|
-
}
|
|
774
|
-
};
|
|
775
|
-
var rejected = (value) => {
|
|
776
|
-
try {
|
|
777
|
-
step(generator.throw(value));
|
|
778
|
-
} catch (e) {
|
|
779
|
-
reject(e);
|
|
780
|
-
}
|
|
781
|
-
};
|
|
782
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
783
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
784
|
-
});
|
|
785
|
-
};
|
|
786
|
-
const usePreviewTransaction = (params) => {
|
|
736
|
+
const useGetAuctanePayConfig = (params) => {
|
|
787
737
|
const { client } = useShipEngine();
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
const result = yield client.auctanePay.previewTransaction(request);
|
|
795
|
-
return result.data;
|
|
796
|
-
}),
|
|
797
|
-
mutationKey: ["usePreviewTransaction"],
|
|
798
|
-
onError
|
|
738
|
+
const queryParams = __spreadValues$F({}, params);
|
|
739
|
+
return useQuery(__spreadProps$E(__spreadValues$F({}, queryParams), {
|
|
740
|
+
onError,
|
|
741
|
+
queryFn: () => client.auctanePay.getConfig(),
|
|
742
|
+
queryKey: ["useGetAuctanePayConfig"],
|
|
743
|
+
select: (result) => result.data
|
|
799
744
|
}));
|
|
800
745
|
};
|
|
801
746
|
|
|
@@ -818,14 +763,39 @@ var __spreadValues$E = (a, b) => {
|
|
|
818
763
|
return a;
|
|
819
764
|
};
|
|
820
765
|
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
821
|
-
|
|
766
|
+
var __async$U = (__this, __arguments, generator) => {
|
|
767
|
+
return new Promise((resolve, reject) => {
|
|
768
|
+
var fulfilled = (value) => {
|
|
769
|
+
try {
|
|
770
|
+
step(generator.next(value));
|
|
771
|
+
} catch (e) {
|
|
772
|
+
reject(e);
|
|
773
|
+
}
|
|
774
|
+
};
|
|
775
|
+
var rejected = (value) => {
|
|
776
|
+
try {
|
|
777
|
+
step(generator.throw(value));
|
|
778
|
+
} catch (e) {
|
|
779
|
+
reject(e);
|
|
780
|
+
}
|
|
781
|
+
};
|
|
782
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
783
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
784
|
+
});
|
|
785
|
+
};
|
|
786
|
+
const usePreviewTransaction = (params) => {
|
|
822
787
|
const { client } = useShipEngine();
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
788
|
+
return useMutation(__spreadProps$D(__spreadValues$E({}, params), {
|
|
789
|
+
mutationFn: (_0) => __async$U(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
|
|
790
|
+
const request = {
|
|
791
|
+
amount,
|
|
792
|
+
transactionCategory
|
|
793
|
+
};
|
|
794
|
+
const result = yield client.auctanePay.previewTransaction(request);
|
|
795
|
+
return result.data;
|
|
796
|
+
}),
|
|
797
|
+
mutationKey: ["usePreviewTransaction"],
|
|
798
|
+
onError
|
|
829
799
|
}));
|
|
830
800
|
};
|
|
831
801
|
|
|
@@ -848,35 +818,14 @@ var __spreadValues$D = (a, b) => {
|
|
|
848
818
|
return a;
|
|
849
819
|
};
|
|
850
820
|
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
851
|
-
|
|
852
|
-
return new Promise((resolve, reject) => {
|
|
853
|
-
var fulfilled = (value) => {
|
|
854
|
-
try {
|
|
855
|
-
step(generator.next(value));
|
|
856
|
-
} catch (e) {
|
|
857
|
-
reject(e);
|
|
858
|
-
}
|
|
859
|
-
};
|
|
860
|
-
var rejected = (value) => {
|
|
861
|
-
try {
|
|
862
|
-
step(generator.throw(value));
|
|
863
|
-
} catch (e) {
|
|
864
|
-
reject(e);
|
|
865
|
-
}
|
|
866
|
-
};
|
|
867
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
868
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
869
|
-
});
|
|
870
|
-
};
|
|
871
|
-
const useDeletePaymentMethod = (params) => {
|
|
821
|
+
const useGetPaymentMethods = (params) => {
|
|
872
822
|
const { client } = useShipEngine();
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
onError
|
|
823
|
+
const queryParams = __spreadValues$D({}, params);
|
|
824
|
+
return useQuery(__spreadProps$C(__spreadValues$D({}, queryParams), {
|
|
825
|
+
onError,
|
|
826
|
+
queryFn: () => client.auctanePay.getPaymentMethods(),
|
|
827
|
+
queryKey: ["useGetPaymentMethods"],
|
|
828
|
+
select: (result) => result.data
|
|
880
829
|
}));
|
|
881
830
|
};
|
|
882
831
|
|
|
@@ -899,7 +848,7 @@ var __spreadValues$C = (a, b) => {
|
|
|
899
848
|
return a;
|
|
900
849
|
};
|
|
901
850
|
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
902
|
-
var __async$
|
|
851
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
903
852
|
return new Promise((resolve, reject) => {
|
|
904
853
|
var fulfilled = (value) => {
|
|
905
854
|
try {
|
|
@@ -919,14 +868,14 @@ var __async$S = (__this, __arguments, generator) => {
|
|
|
919
868
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
920
869
|
});
|
|
921
870
|
};
|
|
922
|
-
const
|
|
871
|
+
const useDeletePaymentMethod = (params) => {
|
|
923
872
|
const { client } = useShipEngine();
|
|
924
873
|
return useMutation(__spreadProps$B(__spreadValues$C({}, params), {
|
|
925
|
-
mutationFn: (
|
|
926
|
-
const result = yield client.auctanePay.
|
|
874
|
+
mutationFn: (paymentMethodId) => __async$T(void 0, null, function* () {
|
|
875
|
+
const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
|
|
927
876
|
return result.data;
|
|
928
877
|
}),
|
|
929
|
-
mutationKey: ["
|
|
878
|
+
mutationKey: ["useDeletePaymentMethod"],
|
|
930
879
|
onError
|
|
931
880
|
}));
|
|
932
881
|
};
|
|
@@ -950,7 +899,7 @@ var __spreadValues$B = (a, b) => {
|
|
|
950
899
|
return a;
|
|
951
900
|
};
|
|
952
901
|
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
953
|
-
var __async$
|
|
902
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
954
903
|
return new Promise((resolve, reject) => {
|
|
955
904
|
var fulfilled = (value) => {
|
|
956
905
|
try {
|
|
@@ -970,14 +919,14 @@ var __async$R = (__this, __arguments, generator) => {
|
|
|
970
919
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
971
920
|
});
|
|
972
921
|
};
|
|
973
|
-
const
|
|
922
|
+
const useUpdatePaymentMethod = (params) => {
|
|
974
923
|
const { client } = useShipEngine();
|
|
975
924
|
return useMutation(__spreadProps$A(__spreadValues$B({}, params), {
|
|
976
|
-
mutationFn: () => __async$
|
|
977
|
-
const result = yield client.auctanePay.
|
|
925
|
+
mutationFn: (_0) => __async$S(void 0, [_0], function* ({ paymentMethodId, payload }) {
|
|
926
|
+
const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
|
|
978
927
|
return result.data;
|
|
979
928
|
}),
|
|
980
|
-
mutationKey: ["
|
|
929
|
+
mutationKey: ["useUpdatePaymentMethod"],
|
|
981
930
|
onError
|
|
982
931
|
}));
|
|
983
932
|
};
|
|
@@ -1001,10 +950,61 @@ var __spreadValues$A = (a, b) => {
|
|
|
1001
950
|
return a;
|
|
1002
951
|
};
|
|
1003
952
|
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
953
|
+
var __async$R = (__this, __arguments, generator) => {
|
|
954
|
+
return new Promise((resolve, reject) => {
|
|
955
|
+
var fulfilled = (value) => {
|
|
956
|
+
try {
|
|
957
|
+
step(generator.next(value));
|
|
958
|
+
} catch (e) {
|
|
959
|
+
reject(e);
|
|
960
|
+
}
|
|
961
|
+
};
|
|
962
|
+
var rejected = (value) => {
|
|
963
|
+
try {
|
|
964
|
+
step(generator.throw(value));
|
|
965
|
+
} catch (e) {
|
|
966
|
+
reject(e);
|
|
967
|
+
}
|
|
968
|
+
};
|
|
969
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
970
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
971
|
+
});
|
|
972
|
+
};
|
|
973
|
+
const useIdentityVerification = (params) => {
|
|
974
|
+
const { client } = useShipEngine();
|
|
975
|
+
return useMutation(__spreadProps$z(__spreadValues$A({}, params), {
|
|
976
|
+
mutationFn: () => __async$R(void 0, null, function* () {
|
|
977
|
+
const result = yield client.auctanePay.identityVerification();
|
|
978
|
+
return result.data;
|
|
979
|
+
}),
|
|
980
|
+
mutationKey: ["useIdentityVerification"],
|
|
981
|
+
onError
|
|
982
|
+
}));
|
|
983
|
+
};
|
|
984
|
+
|
|
985
|
+
var __defProp$z = Object.defineProperty;
|
|
986
|
+
var __defProps$y = Object.defineProperties;
|
|
987
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
988
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
989
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
990
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
991
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
992
|
+
var __spreadValues$z = (a, b) => {
|
|
993
|
+
for (var prop in b || (b = {}))
|
|
994
|
+
if (__hasOwnProp$I.call(b, prop))
|
|
995
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
996
|
+
if (__getOwnPropSymbols$I)
|
|
997
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
|
998
|
+
if (__propIsEnum$I.call(b, prop))
|
|
999
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
1000
|
+
}
|
|
1001
|
+
return a;
|
|
1002
|
+
};
|
|
1003
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
1004
1004
|
const useGetPaymentAccount = (params) => {
|
|
1005
1005
|
const { client } = useShipEngine();
|
|
1006
|
-
const queryParams = __spreadValues$
|
|
1007
|
-
return useQuery(__spreadProps$
|
|
1006
|
+
const queryParams = __spreadValues$z({}, params);
|
|
1007
|
+
return useQuery(__spreadProps$y(__spreadValues$z({}, queryParams), {
|
|
1008
1008
|
onError,
|
|
1009
1009
|
queryFn: () => client.auctanePay.getPaymentAccount(),
|
|
1010
1010
|
queryKey: ["useGetPaymentAccount"],
|
|
@@ -1208,41 +1208,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
1208
1208
|
});
|
|
1209
1209
|
};
|
|
1210
1210
|
|
|
1211
|
-
var __defProp$
|
|
1212
|
-
var __defProps$
|
|
1213
|
-
var __getOwnPropDescs$
|
|
1214
|
-
var __getOwnPropSymbols$
|
|
1215
|
-
var __hasOwnProp$
|
|
1216
|
-
var __propIsEnum$
|
|
1217
|
-
var __defNormalProp$
|
|
1218
|
-
var __spreadValues$
|
|
1211
|
+
var __defProp$y = Object.defineProperty;
|
|
1212
|
+
var __defProps$x = Object.defineProperties;
|
|
1213
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
1214
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
1215
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
1216
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
1217
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1218
|
+
var __spreadValues$y = (a, b) => {
|
|
1219
1219
|
for (var prop in b || (b = {}))
|
|
1220
|
-
if (__hasOwnProp$
|
|
1221
|
-
__defNormalProp$
|
|
1222
|
-
if (__getOwnPropSymbols$
|
|
1223
|
-
for (var prop of __getOwnPropSymbols$
|
|
1224
|
-
if (__propIsEnum$
|
|
1225
|
-
__defNormalProp$
|
|
1220
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
1221
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
1222
|
+
if (__getOwnPropSymbols$H)
|
|
1223
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
1224
|
+
if (__propIsEnum$H.call(b, prop))
|
|
1225
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
1226
1226
|
}
|
|
1227
1227
|
return a;
|
|
1228
1228
|
};
|
|
1229
|
-
var __spreadProps$
|
|
1229
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
1230
1230
|
var __objRest$q = (source, exclude) => {
|
|
1231
1231
|
var target = {};
|
|
1232
1232
|
for (var prop in source)
|
|
1233
|
-
if (__hasOwnProp$
|
|
1233
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1234
1234
|
target[prop] = source[prop];
|
|
1235
|
-
if (source != null && __getOwnPropSymbols$
|
|
1236
|
-
for (var prop of __getOwnPropSymbols$
|
|
1237
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1235
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
1236
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
1237
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
1238
1238
|
target[prop] = source[prop];
|
|
1239
1239
|
}
|
|
1240
1240
|
return target;
|
|
1241
1241
|
};
|
|
1242
1242
|
const useListCarriers = (params) => {
|
|
1243
1243
|
const { client } = useShipEngine();
|
|
1244
|
-
const _a = __spreadValues$
|
|
1245
|
-
return useQuery(__spreadProps$
|
|
1244
|
+
const _a = __spreadValues$y({}, params), { queryFnParams } = _a, rest = __objRest$q(_a, ["queryFnParams"]);
|
|
1245
|
+
return useQuery(__spreadProps$x(__spreadValues$y({}, rest), {
|
|
1246
1246
|
onError,
|
|
1247
1247
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
1248
1248
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -1250,17 +1250,17 @@ const useListCarriers = (params) => {
|
|
|
1250
1250
|
}));
|
|
1251
1251
|
};
|
|
1252
1252
|
|
|
1253
|
-
var __getOwnPropSymbols$
|
|
1254
|
-
var __hasOwnProp$
|
|
1255
|
-
var __propIsEnum$
|
|
1253
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
1254
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
1255
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
1256
1256
|
var __objRest$p = (source, exclude) => {
|
|
1257
1257
|
var target = {};
|
|
1258
1258
|
for (var prop in source)
|
|
1259
|
-
if (__hasOwnProp$
|
|
1259
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1260
1260
|
target[prop] = source[prop];
|
|
1261
|
-
if (source != null && __getOwnPropSymbols$
|
|
1262
|
-
for (var prop of __getOwnPropSymbols$
|
|
1263
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1261
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
1262
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
1263
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
1264
1264
|
target[prop] = source[prop];
|
|
1265
1265
|
}
|
|
1266
1266
|
return target;
|
|
@@ -1351,17 +1351,17 @@ const useDeleteCarrier = () => {
|
|
|
1351
1351
|
});
|
|
1352
1352
|
};
|
|
1353
1353
|
|
|
1354
|
-
var __getOwnPropSymbols$
|
|
1355
|
-
var __hasOwnProp$
|
|
1356
|
-
var __propIsEnum$
|
|
1354
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
1355
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
1356
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
1357
1357
|
var __objRest$o = (source, exclude) => {
|
|
1358
1358
|
var target = {};
|
|
1359
1359
|
for (var prop in source)
|
|
1360
|
-
if (__hasOwnProp$
|
|
1360
|
+
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1361
1361
|
target[prop] = source[prop];
|
|
1362
|
-
if (source != null && __getOwnPropSymbols$
|
|
1363
|
-
for (var prop of __getOwnPropSymbols$
|
|
1364
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1362
|
+
if (source != null && __getOwnPropSymbols$F)
|
|
1363
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
1364
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
1365
1365
|
target[prop] = source[prop];
|
|
1366
1366
|
}
|
|
1367
1367
|
return target;
|
|
@@ -1378,17 +1378,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
1378
1378
|
});
|
|
1379
1379
|
};
|
|
1380
1380
|
|
|
1381
|
-
var __getOwnPropSymbols$
|
|
1382
|
-
var __hasOwnProp$
|
|
1383
|
-
var __propIsEnum$
|
|
1381
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
1382
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
1383
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
1384
1384
|
var __objRest$n = (source, exclude) => {
|
|
1385
1385
|
var target = {};
|
|
1386
1386
|
for (var prop in source)
|
|
1387
|
-
if (__hasOwnProp$
|
|
1387
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1388
1388
|
target[prop] = source[prop];
|
|
1389
|
-
if (source != null && __getOwnPropSymbols$
|
|
1390
|
-
for (var prop of __getOwnPropSymbols$
|
|
1391
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1389
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
1390
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
1391
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
1392
1392
|
target[prop] = source[prop];
|
|
1393
1393
|
}
|
|
1394
1394
|
return target;
|
|
@@ -1405,26 +1405,26 @@ const useListCarrierConnections = (_params) => {
|
|
|
1405
1405
|
});
|
|
1406
1406
|
};
|
|
1407
1407
|
|
|
1408
|
-
var __defProp$
|
|
1409
|
-
var __defProps$
|
|
1410
|
-
var __getOwnPropDescs$
|
|
1411
|
-
var __getOwnPropSymbols$
|
|
1412
|
-
var __hasOwnProp$
|
|
1413
|
-
var __propIsEnum$
|
|
1414
|
-
var __defNormalProp$
|
|
1415
|
-
var __spreadValues$
|
|
1408
|
+
var __defProp$x = Object.defineProperty;
|
|
1409
|
+
var __defProps$w = Object.defineProperties;
|
|
1410
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
1411
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
1412
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
1413
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
1414
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1415
|
+
var __spreadValues$x = (a, b) => {
|
|
1416
1416
|
for (var prop in b || (b = {}))
|
|
1417
|
-
if (__hasOwnProp$
|
|
1418
|
-
__defNormalProp$
|
|
1419
|
-
if (__getOwnPropSymbols$
|
|
1420
|
-
for (var prop of __getOwnPropSymbols$
|
|
1421
|
-
if (__propIsEnum$
|
|
1422
|
-
__defNormalProp$
|
|
1423
|
-
}
|
|
1424
|
-
return a;
|
|
1425
|
-
};
|
|
1426
|
-
var __spreadProps$
|
|
1427
|
-
var __async$L = (__this, __arguments, generator) => {
|
|
1417
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
1418
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
1419
|
+
if (__getOwnPropSymbols$D)
|
|
1420
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
1421
|
+
if (__propIsEnum$D.call(b, prop))
|
|
1422
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
1423
|
+
}
|
|
1424
|
+
return a;
|
|
1425
|
+
};
|
|
1426
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
1427
|
+
var __async$L = (__this, __arguments, generator) => {
|
|
1428
1428
|
return new Promise((resolve, reject) => {
|
|
1429
1429
|
var fulfilled = (value) => {
|
|
1430
1430
|
try {
|
|
@@ -1448,7 +1448,7 @@ const useConnectCarrierAccount = () => {
|
|
|
1448
1448
|
const { client } = useShipEngine();
|
|
1449
1449
|
return useMutation({
|
|
1450
1450
|
mutationFn: (_0) => __async$L(void 0, [_0], function* ({ carrierName, formData }) {
|
|
1451
|
-
const formDataWithFlag = __spreadProps$
|
|
1451
|
+
const formDataWithFlag = __spreadProps$w(__spreadValues$x({}, formData), { __skipDecamelize: true });
|
|
1452
1452
|
const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
|
|
1453
1453
|
return result.data;
|
|
1454
1454
|
}),
|
|
@@ -1468,33 +1468,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
1468
1468
|
});
|
|
1469
1469
|
};
|
|
1470
1470
|
|
|
1471
|
-
var __defProp$
|
|
1472
|
-
var __defProps$
|
|
1473
|
-
var __getOwnPropDescs$
|
|
1474
|
-
var __getOwnPropSymbols$
|
|
1475
|
-
var __hasOwnProp$
|
|
1476
|
-
var __propIsEnum$
|
|
1477
|
-
var __defNormalProp$
|
|
1478
|
-
var __spreadValues$
|
|
1471
|
+
var __defProp$w = Object.defineProperty;
|
|
1472
|
+
var __defProps$v = Object.defineProperties;
|
|
1473
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
1474
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
1475
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
1476
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
1477
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1478
|
+
var __spreadValues$w = (a, b) => {
|
|
1479
1479
|
for (var prop in b || (b = {}))
|
|
1480
|
-
if (__hasOwnProp$
|
|
1481
|
-
__defNormalProp$
|
|
1482
|
-
if (__getOwnPropSymbols$
|
|
1483
|
-
for (var prop of __getOwnPropSymbols$
|
|
1484
|
-
if (__propIsEnum$
|
|
1485
|
-
__defNormalProp$
|
|
1480
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
1481
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1482
|
+
if (__getOwnPropSymbols$C)
|
|
1483
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
1484
|
+
if (__propIsEnum$C.call(b, prop))
|
|
1485
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1486
1486
|
}
|
|
1487
1487
|
return a;
|
|
1488
1488
|
};
|
|
1489
|
-
var __spreadProps$
|
|
1489
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
1490
1490
|
var __objRest$m = (source, exclude) => {
|
|
1491
1491
|
var target = {};
|
|
1492
1492
|
for (var prop in source)
|
|
1493
|
-
if (__hasOwnProp$
|
|
1493
|
+
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1494
1494
|
target[prop] = source[prop];
|
|
1495
|
-
if (source != null && __getOwnPropSymbols$
|
|
1496
|
-
for (var prop of __getOwnPropSymbols$
|
|
1497
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1495
|
+
if (source != null && __getOwnPropSymbols$C)
|
|
1496
|
+
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
1497
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
1498
1498
|
target[prop] = source[prop];
|
|
1499
1499
|
}
|
|
1500
1500
|
return target;
|
|
@@ -1507,7 +1507,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
1507
1507
|
]);
|
|
1508
1508
|
const { client } = useShipEngine();
|
|
1509
1509
|
const { carrierName, carrierId } = queryFnParams;
|
|
1510
|
-
return useQuery(__spreadProps$
|
|
1510
|
+
return useQuery(__spreadProps$v(__spreadValues$w({}, params), {
|
|
1511
1511
|
onError,
|
|
1512
1512
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
1513
1513
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -1515,25 +1515,25 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
1515
1515
|
}));
|
|
1516
1516
|
};
|
|
1517
1517
|
|
|
1518
|
-
var __defProp$
|
|
1519
|
-
var __defProps$
|
|
1520
|
-
var __getOwnPropDescs$
|
|
1521
|
-
var __getOwnPropSymbols$
|
|
1522
|
-
var __hasOwnProp$
|
|
1523
|
-
var __propIsEnum$
|
|
1524
|
-
var __defNormalProp$
|
|
1525
|
-
var __spreadValues$
|
|
1518
|
+
var __defProp$v = Object.defineProperty;
|
|
1519
|
+
var __defProps$u = Object.defineProperties;
|
|
1520
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
1521
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
1522
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
1523
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
1524
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1525
|
+
var __spreadValues$v = (a, b) => {
|
|
1526
1526
|
for (var prop in b || (b = {}))
|
|
1527
|
-
if (__hasOwnProp$
|
|
1528
|
-
__defNormalProp$
|
|
1529
|
-
if (__getOwnPropSymbols$
|
|
1530
|
-
for (var prop of __getOwnPropSymbols$
|
|
1531
|
-
if (__propIsEnum$
|
|
1532
|
-
__defNormalProp$
|
|
1527
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
1528
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
1529
|
+
if (__getOwnPropSymbols$B)
|
|
1530
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
1531
|
+
if (__propIsEnum$B.call(b, prop))
|
|
1532
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
1533
1533
|
}
|
|
1534
1534
|
return a;
|
|
1535
1535
|
};
|
|
1536
|
-
var __spreadProps$
|
|
1536
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
1537
1537
|
var __async$K = (__this, __arguments, generator) => {
|
|
1538
1538
|
return new Promise((resolve, reject) => {
|
|
1539
1539
|
var fulfilled = (value) => {
|
|
@@ -1556,7 +1556,7 @@ var __async$K = (__this, __arguments, generator) => {
|
|
|
1556
1556
|
};
|
|
1557
1557
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
1558
1558
|
const { client } = useShipEngine();
|
|
1559
|
-
return useMutation(__spreadProps$
|
|
1559
|
+
return useMutation(__spreadProps$u(__spreadValues$v({}, params), {
|
|
1560
1560
|
mutationFn: (_0) => __async$K(void 0, [_0], function* ({
|
|
1561
1561
|
carrierName,
|
|
1562
1562
|
carrierId,
|
|
@@ -1574,25 +1574,25 @@ const useUpdateConnectionsCarrierSettings = (params) => {
|
|
|
1574
1574
|
}));
|
|
1575
1575
|
};
|
|
1576
1576
|
|
|
1577
|
-
var __defProp$
|
|
1578
|
-
var __defProps$
|
|
1579
|
-
var __getOwnPropDescs$
|
|
1580
|
-
var __getOwnPropSymbols$
|
|
1581
|
-
var __hasOwnProp$
|
|
1582
|
-
var __propIsEnum$
|
|
1583
|
-
var __defNormalProp$
|
|
1584
|
-
var __spreadValues$
|
|
1577
|
+
var __defProp$u = Object.defineProperty;
|
|
1578
|
+
var __defProps$t = Object.defineProperties;
|
|
1579
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
1580
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
1581
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
1582
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
1583
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1584
|
+
var __spreadValues$u = (a, b) => {
|
|
1585
1585
|
for (var prop in b || (b = {}))
|
|
1586
|
-
if (__hasOwnProp$
|
|
1587
|
-
__defNormalProp$
|
|
1588
|
-
if (__getOwnPropSymbols$
|
|
1589
|
-
for (var prop of __getOwnPropSymbols$
|
|
1590
|
-
if (__propIsEnum$
|
|
1591
|
-
__defNormalProp$
|
|
1586
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
1587
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
1588
|
+
if (__getOwnPropSymbols$A)
|
|
1589
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
1590
|
+
if (__propIsEnum$A.call(b, prop))
|
|
1591
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
1592
1592
|
}
|
|
1593
1593
|
return a;
|
|
1594
1594
|
};
|
|
1595
|
-
var __spreadProps$
|
|
1595
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
1596
1596
|
var __async$J = (__this, __arguments, generator) => {
|
|
1597
1597
|
return new Promise((resolve, reject) => {
|
|
1598
1598
|
var fulfilled = (value) => {
|
|
@@ -1615,7 +1615,7 @@ var __async$J = (__this, __arguments, generator) => {
|
|
|
1615
1615
|
};
|
|
1616
1616
|
const useRequestStampsAccountUrls = (params) => {
|
|
1617
1617
|
const { client } = useShipEngine();
|
|
1618
|
-
return useMutation(__spreadProps$
|
|
1618
|
+
return useMutation(__spreadProps$t(__spreadValues$u({}, params), {
|
|
1619
1619
|
mutationFn: (request) => __async$J(void 0, null, function* () {
|
|
1620
1620
|
const result = yield client.connections.requestStampsAccountUrls(request);
|
|
1621
1621
|
return result.data;
|
|
@@ -1731,29 +1731,29 @@ const useFundingSourcesAddFunds = () => {
|
|
|
1731
1731
|
});
|
|
1732
1732
|
};
|
|
1733
1733
|
|
|
1734
|
-
var __defProp$
|
|
1735
|
-
var __defProps$
|
|
1736
|
-
var __getOwnPropDescs$
|
|
1737
|
-
var __getOwnPropSymbols$
|
|
1738
|
-
var __hasOwnProp$
|
|
1739
|
-
var __propIsEnum$
|
|
1740
|
-
var __defNormalProp$
|
|
1741
|
-
var __spreadValues$
|
|
1734
|
+
var __defProp$t = Object.defineProperty;
|
|
1735
|
+
var __defProps$s = Object.defineProperties;
|
|
1736
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
1737
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
1738
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
1739
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
1740
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1741
|
+
var __spreadValues$t = (a, b) => {
|
|
1742
1742
|
for (var prop in b || (b = {}))
|
|
1743
|
-
if (__hasOwnProp$
|
|
1744
|
-
__defNormalProp$
|
|
1745
|
-
if (__getOwnPropSymbols$
|
|
1746
|
-
for (var prop of __getOwnPropSymbols$
|
|
1747
|
-
if (__propIsEnum$
|
|
1748
|
-
__defNormalProp$
|
|
1743
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
1744
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
1745
|
+
if (__getOwnPropSymbols$z)
|
|
1746
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
1747
|
+
if (__propIsEnum$z.call(b, prop))
|
|
1748
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
1749
1749
|
}
|
|
1750
1750
|
return a;
|
|
1751
1751
|
};
|
|
1752
|
-
var __spreadProps$
|
|
1752
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
1753
1753
|
const useGetFundingSourceAcceptedTerms = (fundingSourceId, params) => {
|
|
1754
1754
|
const { client } = useShipEngine();
|
|
1755
|
-
const queryParams = __spreadValues$
|
|
1756
|
-
return useQuery(__spreadProps$
|
|
1755
|
+
const queryParams = __spreadValues$t({}, params);
|
|
1756
|
+
return useQuery(__spreadProps$s(__spreadValues$t({}, queryParams), {
|
|
1757
1757
|
onError,
|
|
1758
1758
|
queryFn: () => client.fundingSources.acceptedTerms(fundingSourceId),
|
|
1759
1759
|
queryKey: ["useGetFundingSourceAcceptedTerms", fundingSourceId],
|
|
@@ -1877,29 +1877,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
|
|
|
1877
1877
|
});
|
|
1878
1878
|
};
|
|
1879
1879
|
|
|
1880
|
-
var __defProp$
|
|
1881
|
-
var __defProps$
|
|
1882
|
-
var __getOwnPropDescs$
|
|
1883
|
-
var __getOwnPropSymbols$
|
|
1884
|
-
var __hasOwnProp$
|
|
1885
|
-
var __propIsEnum$
|
|
1886
|
-
var __defNormalProp$
|
|
1887
|
-
var __spreadValues$
|
|
1880
|
+
var __defProp$s = Object.defineProperty;
|
|
1881
|
+
var __defProps$r = Object.defineProperties;
|
|
1882
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
1883
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
1884
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
1885
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
1886
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1887
|
+
var __spreadValues$s = (a, b) => {
|
|
1888
1888
|
for (var prop in b || (b = {}))
|
|
1889
|
-
if (__hasOwnProp$
|
|
1890
|
-
__defNormalProp$
|
|
1891
|
-
if (__getOwnPropSymbols$
|
|
1892
|
-
for (var prop of __getOwnPropSymbols$
|
|
1893
|
-
if (__propIsEnum$
|
|
1894
|
-
__defNormalProp$
|
|
1889
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
1890
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
1891
|
+
if (__getOwnPropSymbols$y)
|
|
1892
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
1893
|
+
if (__propIsEnum$y.call(b, prop))
|
|
1894
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
1895
1895
|
}
|
|
1896
1896
|
return a;
|
|
1897
1897
|
};
|
|
1898
|
-
var __spreadProps$
|
|
1898
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
1899
1899
|
const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
|
|
1900
1900
|
const { client } = useShipEngine();
|
|
1901
|
-
const queryParams = __spreadValues$
|
|
1902
|
-
return useQuery(__spreadProps$
|
|
1901
|
+
const queryParams = __spreadValues$s({}, params);
|
|
1902
|
+
return useQuery(__spreadProps$r(__spreadValues$s({}, queryParams), {
|
|
1903
1903
|
onError,
|
|
1904
1904
|
queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
|
|
1905
1905
|
queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
|
|
@@ -1922,17 +1922,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
1922
1922
|
});
|
|
1923
1923
|
};
|
|
1924
1924
|
|
|
1925
|
-
var __getOwnPropSymbols$
|
|
1926
|
-
var __hasOwnProp$
|
|
1927
|
-
var __propIsEnum$
|
|
1925
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
1926
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
1927
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
1928
1928
|
var __objRest$l = (source, exclude) => {
|
|
1929
1929
|
var target = {};
|
|
1930
1930
|
for (var prop in source)
|
|
1931
|
-
if (__hasOwnProp$
|
|
1931
|
+
if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1932
1932
|
target[prop] = source[prop];
|
|
1933
|
-
if (source != null && __getOwnPropSymbols$
|
|
1934
|
-
for (var prop of __getOwnPropSymbols$
|
|
1935
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1933
|
+
if (source != null && __getOwnPropSymbols$x)
|
|
1934
|
+
for (var prop of __getOwnPropSymbols$x(source)) {
|
|
1935
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
|
|
1936
1936
|
target[prop] = source[prop];
|
|
1937
1937
|
}
|
|
1938
1938
|
return target;
|
|
@@ -1970,57 +1970,6 @@ const useAddInsuranceFunds = () => {
|
|
|
1970
1970
|
});
|
|
1971
1971
|
};
|
|
1972
1972
|
|
|
1973
|
-
var __defProp$s = Object.defineProperty;
|
|
1974
|
-
var __defProps$r = Object.defineProperties;
|
|
1975
|
-
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
1976
|
-
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
1977
|
-
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
1978
|
-
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
1979
|
-
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1980
|
-
var __spreadValues$s = (a, b) => {
|
|
1981
|
-
for (var prop in b || (b = {}))
|
|
1982
|
-
if (__hasOwnProp$x.call(b, prop))
|
|
1983
|
-
__defNormalProp$s(a, prop, b[prop]);
|
|
1984
|
-
if (__getOwnPropSymbols$x)
|
|
1985
|
-
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
1986
|
-
if (__propIsEnum$x.call(b, prop))
|
|
1987
|
-
__defNormalProp$s(a, prop, b[prop]);
|
|
1988
|
-
}
|
|
1989
|
-
return a;
|
|
1990
|
-
};
|
|
1991
|
-
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
1992
|
-
var __async$C = (__this, __arguments, generator) => {
|
|
1993
|
-
return new Promise((resolve, reject) => {
|
|
1994
|
-
var fulfilled = (value) => {
|
|
1995
|
-
try {
|
|
1996
|
-
step(generator.next(value));
|
|
1997
|
-
} catch (e) {
|
|
1998
|
-
reject(e);
|
|
1999
|
-
}
|
|
2000
|
-
};
|
|
2001
|
-
var rejected = (value) => {
|
|
2002
|
-
try {
|
|
2003
|
-
step(generator.throw(value));
|
|
2004
|
-
} catch (e) {
|
|
2005
|
-
reject(e);
|
|
2006
|
-
}
|
|
2007
|
-
};
|
|
2008
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2009
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
2010
|
-
});
|
|
2011
|
-
};
|
|
2012
|
-
const useCreateInvoiceAddress = (params) => {
|
|
2013
|
-
const { client } = useShipEngine();
|
|
2014
|
-
return useMutation(__spreadProps$r(__spreadValues$s({}, params), {
|
|
2015
|
-
mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
|
|
2016
|
-
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
2017
|
-
return result.data;
|
|
2018
|
-
}),
|
|
2019
|
-
mutationKey: ["useCreateInvoiceAddress"],
|
|
2020
|
-
onError
|
|
2021
|
-
}));
|
|
2022
|
-
};
|
|
2023
|
-
|
|
2024
1973
|
var __defProp$r = Object.defineProperty;
|
|
2025
1974
|
var __defProps$q = Object.defineProperties;
|
|
2026
1975
|
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
@@ -2040,7 +1989,7 @@ var __spreadValues$r = (a, b) => {
|
|
|
2040
1989
|
return a;
|
|
2041
1990
|
};
|
|
2042
1991
|
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
2043
|
-
var __async$
|
|
1992
|
+
var __async$C = (__this, __arguments, generator) => {
|
|
2044
1993
|
return new Promise((resolve, reject) => {
|
|
2045
1994
|
var fulfilled = (value) => {
|
|
2046
1995
|
try {
|
|
@@ -2060,14 +2009,14 @@ var __async$B = (__this, __arguments, generator) => {
|
|
|
2060
2009
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2061
2010
|
});
|
|
2062
2011
|
};
|
|
2063
|
-
const
|
|
2012
|
+
const useCreateInvoiceAddress = (params) => {
|
|
2064
2013
|
const { client } = useShipEngine();
|
|
2065
2014
|
return useMutation(__spreadProps$q(__spreadValues$r({}, params), {
|
|
2066
|
-
mutationFn: (invoiceAddress) => __async$
|
|
2067
|
-
const result = yield client.invoiceAddress.
|
|
2015
|
+
mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
|
|
2016
|
+
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
2068
2017
|
return result.data;
|
|
2069
2018
|
}),
|
|
2070
|
-
mutationKey: ["
|
|
2019
|
+
mutationKey: ["useCreateInvoiceAddress"],
|
|
2071
2020
|
onError
|
|
2072
2021
|
}));
|
|
2073
2022
|
};
|
|
@@ -2091,17 +2040,7 @@ var __spreadValues$q = (a, b) => {
|
|
|
2091
2040
|
return a;
|
|
2092
2041
|
};
|
|
2093
2042
|
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
2094
|
-
|
|
2095
|
-
const { client } = useShipEngine();
|
|
2096
|
-
return useQuery(__spreadProps$p(__spreadValues$q({}, params), {
|
|
2097
|
-
onError,
|
|
2098
|
-
queryFn: () => client.invoiceAddress.get(),
|
|
2099
|
-
queryKey: ["useGetInvoiceAddress"],
|
|
2100
|
-
select: (result) => result.data
|
|
2101
|
-
}));
|
|
2102
|
-
};
|
|
2103
|
-
|
|
2104
|
-
var __async$A = (__this, __arguments, generator) => {
|
|
2043
|
+
var __async$B = (__this, __arguments, generator) => {
|
|
2105
2044
|
return new Promise((resolve, reject) => {
|
|
2106
2045
|
var fulfilled = (value) => {
|
|
2107
2046
|
try {
|
|
@@ -2121,16 +2060,16 @@ var __async$A = (__this, __arguments, generator) => {
|
|
|
2121
2060
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2122
2061
|
});
|
|
2123
2062
|
};
|
|
2124
|
-
const
|
|
2063
|
+
const useUpdateInvoiceAddress = (params) => {
|
|
2125
2064
|
const { client } = useShipEngine();
|
|
2126
|
-
return useMutation({
|
|
2127
|
-
mutationFn: (
|
|
2128
|
-
const result = yield client.
|
|
2065
|
+
return useMutation(__spreadProps$p(__spreadValues$q({}, params), {
|
|
2066
|
+
mutationFn: (invoiceAddress) => __async$B(void 0, null, function* () {
|
|
2067
|
+
const result = yield client.invoiceAddress.update(invoiceAddress);
|
|
2129
2068
|
return result.data;
|
|
2130
2069
|
}),
|
|
2131
|
-
mutationKey: ["
|
|
2070
|
+
mutationKey: ["useUpdateInvoiceAddress"],
|
|
2132
2071
|
onError
|
|
2133
|
-
});
|
|
2072
|
+
}));
|
|
2134
2073
|
};
|
|
2135
2074
|
|
|
2136
2075
|
var __defProp$p = Object.defineProperty;
|
|
@@ -2152,19 +2091,17 @@ var __spreadValues$p = (a, b) => {
|
|
|
2152
2091
|
return a;
|
|
2153
2092
|
};
|
|
2154
2093
|
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
};
|
|
2167
|
-
var __async$z = (__this, __arguments, generator) => {
|
|
2094
|
+
const useGetInvoiceAddress = (params) => {
|
|
2095
|
+
const { client } = useShipEngine();
|
|
2096
|
+
return useQuery(__spreadProps$o(__spreadValues$p({}, params), {
|
|
2097
|
+
onError,
|
|
2098
|
+
queryFn: () => client.invoiceAddress.get(),
|
|
2099
|
+
queryKey: ["useGetInvoiceAddress"],
|
|
2100
|
+
select: (result) => result.data
|
|
2101
|
+
}));
|
|
2102
|
+
};
|
|
2103
|
+
|
|
2104
|
+
var __async$A = (__this, __arguments, generator) => {
|
|
2168
2105
|
return new Promise((resolve, reject) => {
|
|
2169
2106
|
var fulfilled = (value) => {
|
|
2170
2107
|
try {
|
|
@@ -2184,17 +2121,16 @@ var __async$z = (__this, __arguments, generator) => {
|
|
|
2184
2121
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2185
2122
|
});
|
|
2186
2123
|
};
|
|
2187
|
-
const
|
|
2124
|
+
const useCancelRefund = () => {
|
|
2188
2125
|
const { client } = useShipEngine();
|
|
2189
|
-
return useMutation(
|
|
2190
|
-
mutationFn: (
|
|
2191
|
-
|
|
2192
|
-
const result = yield client.labels.createByRateId(rateId, options);
|
|
2126
|
+
return useMutation({
|
|
2127
|
+
mutationFn: (labelId) => __async$A(void 0, null, function* () {
|
|
2128
|
+
const result = yield client.labels.cancelRefund(labelId);
|
|
2193
2129
|
return result.data;
|
|
2194
2130
|
}),
|
|
2195
|
-
mutationKey: ["
|
|
2131
|
+
mutationKey: ["useCancelRefund"],
|
|
2196
2132
|
onError
|
|
2197
|
-
})
|
|
2133
|
+
});
|
|
2198
2134
|
};
|
|
2199
2135
|
|
|
2200
2136
|
var __defProp$o = Object.defineProperty;
|
|
@@ -2216,7 +2152,7 @@ var __spreadValues$o = (a, b) => {
|
|
|
2216
2152
|
return a;
|
|
2217
2153
|
};
|
|
2218
2154
|
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
2219
|
-
var __objRest$
|
|
2155
|
+
var __objRest$k = (source, exclude) => {
|
|
2220
2156
|
var target = {};
|
|
2221
2157
|
for (var prop in source)
|
|
2222
2158
|
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2228,7 +2164,7 @@ var __objRest$j = (source, exclude) => {
|
|
|
2228
2164
|
}
|
|
2229
2165
|
return target;
|
|
2230
2166
|
};
|
|
2231
|
-
var __async$
|
|
2167
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
2232
2168
|
return new Promise((resolve, reject) => {
|
|
2233
2169
|
var fulfilled = (value) => {
|
|
2234
2170
|
try {
|
|
@@ -2248,15 +2184,15 @@ var __async$y = (__this, __arguments, generator) => {
|
|
|
2248
2184
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2249
2185
|
});
|
|
2250
2186
|
};
|
|
2251
|
-
const
|
|
2187
|
+
const useCreateLabelByRateId = (params) => {
|
|
2252
2188
|
const { client } = useShipEngine();
|
|
2253
2189
|
return useMutation(__spreadProps$n(__spreadValues$o({}, params), {
|
|
2254
|
-
mutationFn: (_a) => __async$
|
|
2255
|
-
var _b = _a, {
|
|
2256
|
-
const result = yield client.labels.
|
|
2190
|
+
mutationFn: (_a) => __async$z(void 0, null, function* () {
|
|
2191
|
+
var _b = _a, { rateId } = _b, options = __objRest$k(_b, ["rateId"]);
|
|
2192
|
+
const result = yield client.labels.createByRateId(rateId, options);
|
|
2257
2193
|
return result.data;
|
|
2258
2194
|
}),
|
|
2259
|
-
mutationKey: ["
|
|
2195
|
+
mutationKey: ["useCreateLabelByRateId"],
|
|
2260
2196
|
onError
|
|
2261
2197
|
}));
|
|
2262
2198
|
};
|
|
@@ -2280,7 +2216,7 @@ var __spreadValues$n = (a, b) => {
|
|
|
2280
2216
|
return a;
|
|
2281
2217
|
};
|
|
2282
2218
|
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
2283
|
-
var __objRest$
|
|
2219
|
+
var __objRest$j = (source, exclude) => {
|
|
2284
2220
|
var target = {};
|
|
2285
2221
|
for (var prop in source)
|
|
2286
2222
|
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2292,7 +2228,7 @@ var __objRest$i = (source, exclude) => {
|
|
|
2292
2228
|
}
|
|
2293
2229
|
return target;
|
|
2294
2230
|
};
|
|
2295
|
-
var __async$
|
|
2231
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
2296
2232
|
return new Promise((resolve, reject) => {
|
|
2297
2233
|
var fulfilled = (value) => {
|
|
2298
2234
|
try {
|
|
@@ -2312,15 +2248,15 @@ var __async$x = (__this, __arguments, generator) => {
|
|
|
2312
2248
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2313
2249
|
});
|
|
2314
2250
|
};
|
|
2315
|
-
const
|
|
2251
|
+
const useCreateLabelByShipmentId = (params) => {
|
|
2316
2252
|
const { client } = useShipEngine();
|
|
2317
2253
|
return useMutation(__spreadProps$m(__spreadValues$n({}, params), {
|
|
2318
|
-
mutationFn: (_a) => __async$
|
|
2319
|
-
var _b = _a, {
|
|
2320
|
-
const result = yield client.labels.
|
|
2254
|
+
mutationFn: (_a) => __async$y(void 0, null, function* () {
|
|
2255
|
+
var _b = _a, { shipmentId } = _b, options = __objRest$j(_b, ["shipmentId"]);
|
|
2256
|
+
const result = yield client.labels.createByShipmentId(shipmentId, options);
|
|
2321
2257
|
return result.data;
|
|
2322
2258
|
}),
|
|
2323
|
-
mutationKey: ["
|
|
2259
|
+
mutationKey: ["useCreateLabelByShipmentId"],
|
|
2324
2260
|
onError
|
|
2325
2261
|
}));
|
|
2326
2262
|
};
|
|
@@ -2344,7 +2280,7 @@ var __spreadValues$m = (a, b) => {
|
|
|
2344
2280
|
return a;
|
|
2345
2281
|
};
|
|
2346
2282
|
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
2347
|
-
var __objRest$
|
|
2283
|
+
var __objRest$i = (source, exclude) => {
|
|
2348
2284
|
var target = {};
|
|
2349
2285
|
for (var prop in source)
|
|
2350
2286
|
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2356,29 +2292,37 @@ var __objRest$h = (source, exclude) => {
|
|
|
2356
2292
|
}
|
|
2357
2293
|
return target;
|
|
2358
2294
|
};
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2295
|
+
var __async$x = (__this, __arguments, generator) => {
|
|
2296
|
+
return new Promise((resolve, reject) => {
|
|
2297
|
+
var fulfilled = (value) => {
|
|
2298
|
+
try {
|
|
2299
|
+
step(generator.next(value));
|
|
2300
|
+
} catch (e) {
|
|
2301
|
+
reject(e);
|
|
2302
|
+
}
|
|
2303
|
+
};
|
|
2304
|
+
var rejected = (value) => {
|
|
2305
|
+
try {
|
|
2306
|
+
step(generator.throw(value));
|
|
2307
|
+
} catch (e) {
|
|
2308
|
+
reject(e);
|
|
2309
|
+
}
|
|
2310
|
+
};
|
|
2311
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2312
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
2313
|
+
});
|
|
2367
2314
|
};
|
|
2368
|
-
|
|
2369
|
-
const useGetLabel = (labelId) => {
|
|
2315
|
+
const useCreateLabel = (params) => {
|
|
2370
2316
|
const { client } = useShipEngine();
|
|
2371
|
-
return
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
select: (result) => result.data
|
|
2381
|
-
});
|
|
2317
|
+
return useMutation(__spreadProps$l(__spreadValues$m({}, params), {
|
|
2318
|
+
mutationFn: (_a) => __async$x(void 0, null, function* () {
|
|
2319
|
+
var _b = _a, { rateId } = _b, options = __objRest$i(_b, ["rateId"]);
|
|
2320
|
+
const result = yield client.labels.createByRateId(rateId, options);
|
|
2321
|
+
return result.data;
|
|
2322
|
+
}),
|
|
2323
|
+
mutationKey: ["useCreateLabel"],
|
|
2324
|
+
onError
|
|
2325
|
+
}));
|
|
2382
2326
|
};
|
|
2383
2327
|
|
|
2384
2328
|
var __defProp$l = Object.defineProperty;
|
|
@@ -2400,7 +2344,7 @@ var __spreadValues$l = (a, b) => {
|
|
|
2400
2344
|
return a;
|
|
2401
2345
|
};
|
|
2402
2346
|
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
2403
|
-
var __objRest$
|
|
2347
|
+
var __objRest$h = (source, exclude) => {
|
|
2404
2348
|
var target = {};
|
|
2405
2349
|
for (var prop in source)
|
|
2406
2350
|
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2412,17 +2356,31 @@ var __objRest$g = (source, exclude) => {
|
|
|
2412
2356
|
}
|
|
2413
2357
|
return target;
|
|
2414
2358
|
};
|
|
2415
|
-
const
|
|
2359
|
+
const useExportLabels = (params) => {
|
|
2416
2360
|
const { client } = useShipEngine();
|
|
2417
|
-
const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$
|
|
2361
|
+
const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
|
|
2418
2362
|
return useQuery(__spreadProps$k(__spreadValues$l({}, rest), {
|
|
2419
2363
|
onError,
|
|
2420
|
-
queryFn: () => client.labels.
|
|
2421
|
-
queryKey: ["
|
|
2422
|
-
select: (result) => result.data
|
|
2364
|
+
queryFn: () => client.labels.export(queryFnParams),
|
|
2365
|
+
queryKey: ["useExportLabels", params]
|
|
2423
2366
|
}));
|
|
2424
2367
|
};
|
|
2425
2368
|
|
|
2369
|
+
const useGetLabel = (labelId) => {
|
|
2370
|
+
const { client } = useShipEngine();
|
|
2371
|
+
return useQuery({
|
|
2372
|
+
enabled: labelId !== void 0,
|
|
2373
|
+
onError,
|
|
2374
|
+
queryFn: () => {
|
|
2375
|
+
if (labelId)
|
|
2376
|
+
return client.labels.get(labelId);
|
|
2377
|
+
return Promise.reject(new Error("labelId is require"));
|
|
2378
|
+
},
|
|
2379
|
+
queryKey: ["useGetLabel", labelId],
|
|
2380
|
+
select: (result) => result.data
|
|
2381
|
+
});
|
|
2382
|
+
};
|
|
2383
|
+
|
|
2426
2384
|
var __defProp$k = Object.defineProperty;
|
|
2427
2385
|
var __defProps$j = Object.defineProperties;
|
|
2428
2386
|
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
@@ -2442,7 +2400,7 @@ var __spreadValues$k = (a, b) => {
|
|
|
2442
2400
|
return a;
|
|
2443
2401
|
};
|
|
2444
2402
|
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
2445
|
-
var __objRest$
|
|
2403
|
+
var __objRest$g = (source, exclude) => {
|
|
2446
2404
|
var target = {};
|
|
2447
2405
|
for (var prop in source)
|
|
2448
2406
|
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2454,6 +2412,48 @@ var __objRest$f = (source, exclude) => {
|
|
|
2454
2412
|
}
|
|
2455
2413
|
return target;
|
|
2456
2414
|
};
|
|
2415
|
+
const useListLabels = (params) => {
|
|
2416
|
+
const { client } = useShipEngine();
|
|
2417
|
+
const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
|
|
2418
|
+
return useQuery(__spreadProps$j(__spreadValues$k({}, rest), {
|
|
2419
|
+
onError,
|
|
2420
|
+
queryFn: () => client.labels.list(queryFnParams),
|
|
2421
|
+
queryKey: ["useListLabels", params],
|
|
2422
|
+
select: (result) => result.data
|
|
2423
|
+
}));
|
|
2424
|
+
};
|
|
2425
|
+
|
|
2426
|
+
var __defProp$j = Object.defineProperty;
|
|
2427
|
+
var __defProps$i = Object.defineProperties;
|
|
2428
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2429
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
2430
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
2431
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
2432
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2433
|
+
var __spreadValues$j = (a, b) => {
|
|
2434
|
+
for (var prop in b || (b = {}))
|
|
2435
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
2436
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2437
|
+
if (__getOwnPropSymbols$o)
|
|
2438
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
2439
|
+
if (__propIsEnum$o.call(b, prop))
|
|
2440
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2441
|
+
}
|
|
2442
|
+
return a;
|
|
2443
|
+
};
|
|
2444
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
2445
|
+
var __objRest$f = (source, exclude) => {
|
|
2446
|
+
var target = {};
|
|
2447
|
+
for (var prop in source)
|
|
2448
|
+
if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2449
|
+
target[prop] = source[prop];
|
|
2450
|
+
if (source != null && __getOwnPropSymbols$o)
|
|
2451
|
+
for (var prop of __getOwnPropSymbols$o(source)) {
|
|
2452
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
|
|
2453
|
+
target[prop] = source[prop];
|
|
2454
|
+
}
|
|
2455
|
+
return target;
|
|
2456
|
+
};
|
|
2457
2457
|
var __async$w = (__this, __arguments, generator) => {
|
|
2458
2458
|
return new Promise((resolve, reject) => {
|
|
2459
2459
|
var fulfilled = (value) => {
|
|
@@ -2476,8 +2476,8 @@ var __async$w = (__this, __arguments, generator) => {
|
|
|
2476
2476
|
};
|
|
2477
2477
|
const useListLabelsInfinite = (params) => {
|
|
2478
2478
|
const { client } = useShipEngine();
|
|
2479
|
-
const _a = __spreadValues$
|
|
2480
|
-
return useInfiniteQuery(__spreadProps$
|
|
2479
|
+
const _a = __spreadValues$j({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
|
|
2480
|
+
return useInfiniteQuery(__spreadProps$i(__spreadValues$j({}, rest), {
|
|
2481
2481
|
getNextPageParam: (lastPage) => {
|
|
2482
2482
|
if (lastPage.page < lastPage.pages) {
|
|
2483
2483
|
return lastPage.page + 1;
|
|
@@ -2486,7 +2486,7 @@ const useListLabelsInfinite = (params) => {
|
|
|
2486
2486
|
},
|
|
2487
2487
|
onError,
|
|
2488
2488
|
queryFn: (_0) => __async$w(void 0, [_0], function* ({ pageParam = 1 }) {
|
|
2489
|
-
const response = yield client.labels.list(__spreadProps$
|
|
2489
|
+
const response = yield client.labels.list(__spreadProps$i(__spreadValues$j({}, queryFnParams), { page: pageParam }));
|
|
2490
2490
|
return response.data;
|
|
2491
2491
|
}),
|
|
2492
2492
|
queryKey: ["useListLabelsInfinite", params],
|
|
@@ -2532,28 +2532,28 @@ const useVoidLabel = () => {
|
|
|
2532
2532
|
});
|
|
2533
2533
|
};
|
|
2534
2534
|
|
|
2535
|
-
var __defProp$
|
|
2536
|
-
var __defProps$
|
|
2537
|
-
var __getOwnPropDescs$
|
|
2538
|
-
var __getOwnPropSymbols$
|
|
2539
|
-
var __hasOwnProp$
|
|
2540
|
-
var __propIsEnum$
|
|
2541
|
-
var __defNormalProp$
|
|
2542
|
-
var __spreadValues$
|
|
2535
|
+
var __defProp$i = Object.defineProperty;
|
|
2536
|
+
var __defProps$h = Object.defineProperties;
|
|
2537
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
2538
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
2539
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
2540
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
2541
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2542
|
+
var __spreadValues$i = (a, b) => {
|
|
2543
2543
|
for (var prop in b || (b = {}))
|
|
2544
|
-
if (__hasOwnProp$
|
|
2545
|
-
__defNormalProp$
|
|
2546
|
-
if (__getOwnPropSymbols$
|
|
2547
|
-
for (var prop of __getOwnPropSymbols$
|
|
2548
|
-
if (__propIsEnum$
|
|
2549
|
-
__defNormalProp$
|
|
2544
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
2545
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
2546
|
+
if (__getOwnPropSymbols$n)
|
|
2547
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
2548
|
+
if (__propIsEnum$n.call(b, prop))
|
|
2549
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
2550
2550
|
}
|
|
2551
2551
|
return a;
|
|
2552
2552
|
};
|
|
2553
|
-
var __spreadProps$
|
|
2553
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
2554
2554
|
const useListOrderSources = (params) => {
|
|
2555
2555
|
const { client } = useShipEngine();
|
|
2556
|
-
return useQuery(__spreadProps$
|
|
2556
|
+
return useQuery(__spreadProps$h(__spreadValues$i({}, params), {
|
|
2557
2557
|
onError,
|
|
2558
2558
|
queryFn: () => client.orderSources.list(),
|
|
2559
2559
|
queryKey: ["useListOrderSources"],
|
|
@@ -2991,17 +2991,17 @@ const useListSalesOrders = (params = {}) => {
|
|
|
2991
2991
|
});
|
|
2992
2992
|
};
|
|
2993
2993
|
|
|
2994
|
-
var __getOwnPropSymbols$
|
|
2995
|
-
var __hasOwnProp$
|
|
2996
|
-
var __propIsEnum$
|
|
2994
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
2995
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
2996
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
2997
2997
|
var __objRest$e = (source, exclude) => {
|
|
2998
2998
|
var target = {};
|
|
2999
2999
|
for (var prop in source)
|
|
3000
|
-
if (__hasOwnProp$
|
|
3000
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3001
3001
|
target[prop] = source[prop];
|
|
3002
|
-
if (source != null && __getOwnPropSymbols$
|
|
3003
|
-
for (var prop of __getOwnPropSymbols$
|
|
3004
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3002
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
3003
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
3004
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
3005
3005
|
target[prop] = source[prop];
|
|
3006
3006
|
}
|
|
3007
3007
|
return target;
|
|
@@ -3039,17 +3039,17 @@ const useNotifySalesOrderShipped = () => {
|
|
|
3039
3039
|
});
|
|
3040
3040
|
};
|
|
3041
3041
|
|
|
3042
|
-
var __getOwnPropSymbols$
|
|
3043
|
-
var __hasOwnProp$
|
|
3044
|
-
var __propIsEnum$
|
|
3042
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
3043
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
3044
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
3045
3045
|
var __objRest$d = (source, exclude) => {
|
|
3046
3046
|
var target = {};
|
|
3047
3047
|
for (var prop in source)
|
|
3048
|
-
if (__hasOwnProp$
|
|
3048
|
+
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3049
3049
|
target[prop] = source[prop];
|
|
3050
|
-
if (source != null && __getOwnPropSymbols$
|
|
3051
|
-
for (var prop of __getOwnPropSymbols$
|
|
3052
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3050
|
+
if (source != null && __getOwnPropSymbols$l)
|
|
3051
|
+
for (var prop of __getOwnPropSymbols$l(source)) {
|
|
3052
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
|
|
3053
3053
|
target[prop] = source[prop];
|
|
3054
3054
|
}
|
|
3055
3055
|
return target;
|
|
@@ -3114,17 +3114,17 @@ const useListSalesOrderShipments = (body) => {
|
|
|
3114
3114
|
});
|
|
3115
3115
|
};
|
|
3116
3116
|
|
|
3117
|
-
var __getOwnPropSymbols$
|
|
3118
|
-
var __hasOwnProp$
|
|
3119
|
-
var __propIsEnum$
|
|
3117
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
3118
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
3119
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
3120
3120
|
var __objRest$c = (source, exclude) => {
|
|
3121
3121
|
var target = {};
|
|
3122
3122
|
for (var prop in source)
|
|
3123
|
-
if (__hasOwnProp$
|
|
3123
|
+
if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3124
3124
|
target[prop] = source[prop];
|
|
3125
|
-
if (source != null && __getOwnPropSymbols$
|
|
3126
|
-
for (var prop of __getOwnPropSymbols$
|
|
3127
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3125
|
+
if (source != null && __getOwnPropSymbols$k)
|
|
3126
|
+
for (var prop of __getOwnPropSymbols$k(source)) {
|
|
3127
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
|
|
3128
3128
|
target[prop] = source[prop];
|
|
3129
3129
|
}
|
|
3130
3130
|
return target;
|
|
@@ -3173,25 +3173,25 @@ const useListSalesOrderShipmentsByExternalOrderId = (externalOrderId) => {
|
|
|
3173
3173
|
});
|
|
3174
3174
|
};
|
|
3175
3175
|
|
|
3176
|
-
var __defProp$
|
|
3177
|
-
var __defProps$
|
|
3178
|
-
var __getOwnPropDescs$
|
|
3179
|
-
var __getOwnPropSymbols$
|
|
3180
|
-
var __hasOwnProp$
|
|
3181
|
-
var __propIsEnum$
|
|
3182
|
-
var __defNormalProp$
|
|
3183
|
-
var __spreadValues$
|
|
3176
|
+
var __defProp$h = Object.defineProperty;
|
|
3177
|
+
var __defProps$g = Object.defineProperties;
|
|
3178
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
3179
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
3180
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
3181
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
3182
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3183
|
+
var __spreadValues$h = (a, b) => {
|
|
3184
3184
|
for (var prop in b || (b = {}))
|
|
3185
|
-
if (__hasOwnProp$
|
|
3186
|
-
__defNormalProp$
|
|
3187
|
-
if (__getOwnPropSymbols$
|
|
3188
|
-
for (var prop of __getOwnPropSymbols$
|
|
3189
|
-
if (__propIsEnum$
|
|
3190
|
-
__defNormalProp$
|
|
3185
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
3186
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3187
|
+
if (__getOwnPropSymbols$j)
|
|
3188
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
3189
|
+
if (__propIsEnum$j.call(b, prop))
|
|
3190
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3191
3191
|
}
|
|
3192
3192
|
return a;
|
|
3193
3193
|
};
|
|
3194
|
-
var __spreadProps$
|
|
3194
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
3195
3195
|
var __async$h = (__this, __arguments, generator) => {
|
|
3196
3196
|
return new Promise((resolve, reject) => {
|
|
3197
3197
|
var fulfilled = (value) => {
|
|
@@ -3233,7 +3233,7 @@ const useCreateShipment = () => {
|
|
|
3233
3233
|
postalCode: "",
|
|
3234
3234
|
stateProvince: ""
|
|
3235
3235
|
};
|
|
3236
|
-
return (yield client.shipments.create(__spreadProps$
|
|
3236
|
+
return (yield client.shipments.create(__spreadProps$g(__spreadValues$h({}, shipment), {
|
|
3237
3237
|
shipTo
|
|
3238
3238
|
}))).data;
|
|
3239
3239
|
}),
|
|
@@ -3242,33 +3242,33 @@ const useCreateShipment = () => {
|
|
|
3242
3242
|
});
|
|
3243
3243
|
};
|
|
3244
3244
|
|
|
3245
|
-
var __defProp$
|
|
3246
|
-
var __defProps$
|
|
3247
|
-
var __getOwnPropDescs$
|
|
3248
|
-
var __getOwnPropSymbols$
|
|
3249
|
-
var __hasOwnProp$
|
|
3250
|
-
var __propIsEnum$
|
|
3251
|
-
var __defNormalProp$
|
|
3252
|
-
var __spreadValues$
|
|
3253
|
-
for (var prop in b || (b = {}))
|
|
3254
|
-
if (__hasOwnProp$
|
|
3255
|
-
__defNormalProp$
|
|
3256
|
-
if (__getOwnPropSymbols$
|
|
3257
|
-
for (var prop of __getOwnPropSymbols$
|
|
3258
|
-
if (__propIsEnum$
|
|
3259
|
-
__defNormalProp$
|
|
3245
|
+
var __defProp$g = Object.defineProperty;
|
|
3246
|
+
var __defProps$f = Object.defineProperties;
|
|
3247
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
3248
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
3249
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
3250
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
3251
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3252
|
+
var __spreadValues$g = (a, b) => {
|
|
3253
|
+
for (var prop in b || (b = {}))
|
|
3254
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
3255
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3256
|
+
if (__getOwnPropSymbols$i)
|
|
3257
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
3258
|
+
if (__propIsEnum$i.call(b, prop))
|
|
3259
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3260
3260
|
}
|
|
3261
3261
|
return a;
|
|
3262
3262
|
};
|
|
3263
|
-
var __spreadProps$
|
|
3263
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
3264
3264
|
var __objRest$b = (source, exclude) => {
|
|
3265
3265
|
var target = {};
|
|
3266
3266
|
for (var prop in source)
|
|
3267
|
-
if (__hasOwnProp$
|
|
3267
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3268
3268
|
target[prop] = source[prop];
|
|
3269
|
-
if (source != null && __getOwnPropSymbols$
|
|
3270
|
-
for (var prop of __getOwnPropSymbols$
|
|
3271
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3269
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
3270
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
3271
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
3272
3272
|
target[prop] = source[prop];
|
|
3273
3273
|
}
|
|
3274
3274
|
return target;
|
|
@@ -3278,7 +3278,7 @@ const useGetShipmentRates = (params) => {
|
|
|
3278
3278
|
const _a = params, { queryFnParams } = _a, rest = __objRest$b(_a, ["queryFnParams"]);
|
|
3279
3279
|
const shipmentId = queryFnParams == null ? void 0 : queryFnParams.shipmentId;
|
|
3280
3280
|
const createdAtStart = queryFnParams == null ? void 0 : queryFnParams.createdAtStart;
|
|
3281
|
-
return useQuery(__spreadProps$
|
|
3281
|
+
return useQuery(__spreadProps$f(__spreadValues$g({
|
|
3282
3282
|
enabled: shipmentId !== void 0
|
|
3283
3283
|
}, rest), {
|
|
3284
3284
|
onError,
|
|
@@ -3293,33 +3293,33 @@ const useGetShipmentRates = (params) => {
|
|
|
3293
3293
|
}));
|
|
3294
3294
|
};
|
|
3295
3295
|
|
|
3296
|
-
var __defProp$
|
|
3297
|
-
var __defProps$
|
|
3298
|
-
var __getOwnPropDescs$
|
|
3299
|
-
var __getOwnPropSymbols$
|
|
3300
|
-
var __hasOwnProp$
|
|
3301
|
-
var __propIsEnum$
|
|
3302
|
-
var __defNormalProp$
|
|
3303
|
-
var __spreadValues$
|
|
3296
|
+
var __defProp$f = Object.defineProperty;
|
|
3297
|
+
var __defProps$e = Object.defineProperties;
|
|
3298
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
3299
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
3300
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
3301
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
3302
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3303
|
+
var __spreadValues$f = (a, b) => {
|
|
3304
3304
|
for (var prop in b || (b = {}))
|
|
3305
|
-
if (__hasOwnProp$
|
|
3306
|
-
__defNormalProp$
|
|
3307
|
-
if (__getOwnPropSymbols$
|
|
3308
|
-
for (var prop of __getOwnPropSymbols$
|
|
3309
|
-
if (__propIsEnum$
|
|
3310
|
-
__defNormalProp$
|
|
3305
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
3306
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3307
|
+
if (__getOwnPropSymbols$h)
|
|
3308
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
3309
|
+
if (__propIsEnum$h.call(b, prop))
|
|
3310
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3311
3311
|
}
|
|
3312
3312
|
return a;
|
|
3313
3313
|
};
|
|
3314
|
-
var __spreadProps$
|
|
3314
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
3315
3315
|
var __objRest$a = (source, exclude) => {
|
|
3316
3316
|
var target = {};
|
|
3317
3317
|
for (var prop in source)
|
|
3318
|
-
if (__hasOwnProp$
|
|
3318
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3319
3319
|
target[prop] = source[prop];
|
|
3320
|
-
if (source != null && __getOwnPropSymbols$
|
|
3321
|
-
for (var prop of __getOwnPropSymbols$
|
|
3322
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3320
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
3321
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
3322
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
3323
3323
|
target[prop] = source[prop];
|
|
3324
3324
|
}
|
|
3325
3325
|
return target;
|
|
@@ -3335,7 +3335,7 @@ const useGetShipment = (params) => {
|
|
|
3335
3335
|
}
|
|
3336
3336
|
return {};
|
|
3337
3337
|
};
|
|
3338
|
-
return useQuery(__spreadProps$
|
|
3338
|
+
return useQuery(__spreadProps$e(__spreadValues$f({}, getQueryProps()), {
|
|
3339
3339
|
enabled: shipmentId !== void 0,
|
|
3340
3340
|
onError,
|
|
3341
3341
|
queryFn: () => {
|
|
@@ -3349,17 +3349,17 @@ const useGetShipment = (params) => {
|
|
|
3349
3349
|
}));
|
|
3350
3350
|
};
|
|
3351
3351
|
|
|
3352
|
-
var __getOwnPropSymbols$
|
|
3353
|
-
var __hasOwnProp$
|
|
3354
|
-
var __propIsEnum$
|
|
3352
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
3353
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
3354
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
3355
3355
|
var __objRest$9 = (source, exclude) => {
|
|
3356
3356
|
var target = {};
|
|
3357
3357
|
for (var prop in source)
|
|
3358
|
-
if (__hasOwnProp$
|
|
3358
|
+
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3359
3359
|
target[prop] = source[prop];
|
|
3360
|
-
if (source != null && __getOwnPropSymbols$
|
|
3361
|
-
for (var prop of __getOwnPropSymbols$
|
|
3362
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3360
|
+
if (source != null && __getOwnPropSymbols$g)
|
|
3361
|
+
for (var prop of __getOwnPropSymbols$g(source)) {
|
|
3362
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
|
|
3363
3363
|
target[prop] = source[prop];
|
|
3364
3364
|
}
|
|
3365
3365
|
return target;
|
|
@@ -3376,33 +3376,33 @@ const useListShipments = (_params) => {
|
|
|
3376
3376
|
});
|
|
3377
3377
|
};
|
|
3378
3378
|
|
|
3379
|
-
var __defProp$
|
|
3380
|
-
var __defProps$
|
|
3381
|
-
var __getOwnPropDescs$
|
|
3382
|
-
var __getOwnPropSymbols$
|
|
3383
|
-
var __hasOwnProp$
|
|
3384
|
-
var __propIsEnum$
|
|
3385
|
-
var __defNormalProp$
|
|
3386
|
-
var __spreadValues$
|
|
3379
|
+
var __defProp$e = Object.defineProperty;
|
|
3380
|
+
var __defProps$d = Object.defineProperties;
|
|
3381
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
3382
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
3383
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
3384
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
3385
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3386
|
+
var __spreadValues$e = (a, b) => {
|
|
3387
3387
|
for (var prop in b || (b = {}))
|
|
3388
|
-
if (__hasOwnProp$
|
|
3389
|
-
__defNormalProp$
|
|
3390
|
-
if (__getOwnPropSymbols$
|
|
3391
|
-
for (var prop of __getOwnPropSymbols$
|
|
3392
|
-
if (__propIsEnum$
|
|
3393
|
-
__defNormalProp$
|
|
3388
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
3389
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3390
|
+
if (__getOwnPropSymbols$f)
|
|
3391
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
3392
|
+
if (__propIsEnum$f.call(b, prop))
|
|
3393
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3394
3394
|
}
|
|
3395
3395
|
return a;
|
|
3396
3396
|
};
|
|
3397
|
-
var __spreadProps$
|
|
3397
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
3398
3398
|
var __objRest$8 = (source, exclude) => {
|
|
3399
3399
|
var target = {};
|
|
3400
3400
|
for (var prop in source)
|
|
3401
|
-
if (__hasOwnProp$
|
|
3401
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3402
3402
|
target[prop] = source[prop];
|
|
3403
|
-
if (source != null && __getOwnPropSymbols$
|
|
3404
|
-
for (var prop of __getOwnPropSymbols$
|
|
3405
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3403
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
3404
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
3405
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
3406
3406
|
target[prop] = source[prop];
|
|
3407
3407
|
}
|
|
3408
3408
|
return target;
|
|
@@ -3410,7 +3410,7 @@ var __objRest$8 = (source, exclude) => {
|
|
|
3410
3410
|
const useGetShipmentByExternalId = (params) => {
|
|
3411
3411
|
const { client } = useShipEngine();
|
|
3412
3412
|
const _a = params, { queryFnParams } = _a, rest = __objRest$8(_a, ["queryFnParams"]);
|
|
3413
|
-
return useQuery(__spreadProps$
|
|
3413
|
+
return useQuery(__spreadProps$d(__spreadValues$e({}, rest), {
|
|
3414
3414
|
onError,
|
|
3415
3415
|
queryFn: () => client.shipments.getByExternalId(queryFnParams.externalId),
|
|
3416
3416
|
queryKey: ["useGetShipmentByExternalId", queryFnParams],
|
|
@@ -3450,82 +3450,82 @@ const useCancelShipment = () => {
|
|
|
3450
3450
|
});
|
|
3451
3451
|
};
|
|
3452
3452
|
|
|
3453
|
-
var __defProp$
|
|
3454
|
-
var __defProps$
|
|
3455
|
-
var __getOwnPropDescs$
|
|
3456
|
-
var __getOwnPropSymbols$
|
|
3457
|
-
var __hasOwnProp$
|
|
3458
|
-
var __propIsEnum$
|
|
3459
|
-
var __defNormalProp$
|
|
3460
|
-
var __spreadValues$
|
|
3453
|
+
var __defProp$d = Object.defineProperty;
|
|
3454
|
+
var __defProps$c = Object.defineProperties;
|
|
3455
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
3456
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
3457
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
3458
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
3459
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3460
|
+
var __spreadValues$d = (a, b) => {
|
|
3461
3461
|
for (var prop in b || (b = {}))
|
|
3462
|
-
if (__hasOwnProp$
|
|
3463
|
-
__defNormalProp$
|
|
3464
|
-
if (__getOwnPropSymbols$
|
|
3465
|
-
for (var prop of __getOwnPropSymbols$
|
|
3466
|
-
if (__propIsEnum$
|
|
3467
|
-
__defNormalProp$
|
|
3462
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
3463
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3464
|
+
if (__getOwnPropSymbols$e)
|
|
3465
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
3466
|
+
if (__propIsEnum$e.call(b, prop))
|
|
3467
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3468
3468
|
}
|
|
3469
3469
|
return a;
|
|
3470
3470
|
};
|
|
3471
|
-
var __spreadProps$
|
|
3471
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
3472
3472
|
var __objRest$7 = (source, exclude) => {
|
|
3473
3473
|
var target = {};
|
|
3474
3474
|
for (var prop in source)
|
|
3475
|
-
if (__hasOwnProp$
|
|
3475
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3476
3476
|
target[prop] = source[prop];
|
|
3477
|
-
if (source != null && __getOwnPropSymbols$
|
|
3478
|
-
for (var prop of __getOwnPropSymbols$
|
|
3479
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3477
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
3478
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
3479
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
3480
3480
|
target[prop] = source[prop];
|
|
3481
3481
|
}
|
|
3482
3482
|
return target;
|
|
3483
3483
|
};
|
|
3484
3484
|
const useExportShipments = (params) => {
|
|
3485
3485
|
const { client } = useShipEngine();
|
|
3486
|
-
const _a = __spreadValues$
|
|
3487
|
-
return useQuery(__spreadProps$
|
|
3486
|
+
const _a = __spreadValues$d({}, params), { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
|
|
3487
|
+
return useQuery(__spreadProps$c(__spreadValues$d({}, rest), {
|
|
3488
3488
|
onError,
|
|
3489
3489
|
queryFn: () => client.shipments.export(queryFnParams),
|
|
3490
3490
|
queryKey: ["useExportShipments", params]
|
|
3491
3491
|
}));
|
|
3492
3492
|
};
|
|
3493
3493
|
|
|
3494
|
-
var __defProp$
|
|
3495
|
-
var __defProps$
|
|
3496
|
-
var __getOwnPropDescs$
|
|
3497
|
-
var __getOwnPropSymbols$
|
|
3498
|
-
var __hasOwnProp$
|
|
3499
|
-
var __propIsEnum$
|
|
3500
|
-
var __defNormalProp$
|
|
3501
|
-
var __spreadValues$
|
|
3494
|
+
var __defProp$c = Object.defineProperty;
|
|
3495
|
+
var __defProps$b = Object.defineProperties;
|
|
3496
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
3497
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
3498
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
3499
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
3500
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3501
|
+
var __spreadValues$c = (a, b) => {
|
|
3502
3502
|
for (var prop in b || (b = {}))
|
|
3503
|
-
if (__hasOwnProp$
|
|
3504
|
-
__defNormalProp$
|
|
3505
|
-
if (__getOwnPropSymbols$
|
|
3506
|
-
for (var prop of __getOwnPropSymbols$
|
|
3507
|
-
if (__propIsEnum$
|
|
3508
|
-
__defNormalProp$
|
|
3503
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
3504
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
3505
|
+
if (__getOwnPropSymbols$d)
|
|
3506
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
3507
|
+
if (__propIsEnum$d.call(b, prop))
|
|
3508
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
3509
3509
|
}
|
|
3510
3510
|
return a;
|
|
3511
3511
|
};
|
|
3512
|
-
var __spreadProps$
|
|
3512
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
3513
3513
|
var __objRest$6 = (source, exclude) => {
|
|
3514
3514
|
var target = {};
|
|
3515
3515
|
for (var prop in source)
|
|
3516
|
-
if (__hasOwnProp$
|
|
3516
|
+
if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3517
3517
|
target[prop] = source[prop];
|
|
3518
|
-
if (source != null && __getOwnPropSymbols$
|
|
3519
|
-
for (var prop of __getOwnPropSymbols$
|
|
3520
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3518
|
+
if (source != null && __getOwnPropSymbols$d)
|
|
3519
|
+
for (var prop of __getOwnPropSymbols$d(source)) {
|
|
3520
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
|
|
3521
3521
|
target[prop] = source[prop];
|
|
3522
3522
|
}
|
|
3523
3523
|
return target;
|
|
3524
3524
|
};
|
|
3525
3525
|
const useListShippingRules = (params) => {
|
|
3526
3526
|
const { client } = useShipEngine();
|
|
3527
|
-
const _a = __spreadValues$
|
|
3528
|
-
return useQuery(__spreadProps$
|
|
3527
|
+
const _a = __spreadValues$c({}, params), { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
|
|
3528
|
+
return useQuery(__spreadProps$b(__spreadValues$c({}, rest), {
|
|
3529
3529
|
onError,
|
|
3530
3530
|
queryFn: () => {
|
|
3531
3531
|
return client.shippingRules.list(queryFnParams);
|
|
@@ -3631,41 +3631,41 @@ const useEditShippingRule = () => {
|
|
|
3631
3631
|
});
|
|
3632
3632
|
};
|
|
3633
3633
|
|
|
3634
|
-
var __defProp$
|
|
3635
|
-
var __defProps$
|
|
3636
|
-
var __getOwnPropDescs$
|
|
3637
|
-
var __getOwnPropSymbols$
|
|
3638
|
-
var __hasOwnProp$
|
|
3639
|
-
var __propIsEnum$
|
|
3640
|
-
var __defNormalProp$
|
|
3641
|
-
var __spreadValues$
|
|
3634
|
+
var __defProp$b = Object.defineProperty;
|
|
3635
|
+
var __defProps$a = Object.defineProperties;
|
|
3636
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
3637
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
3638
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
3639
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
3640
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3641
|
+
var __spreadValues$b = (a, b) => {
|
|
3642
3642
|
for (var prop in b || (b = {}))
|
|
3643
|
-
if (__hasOwnProp$
|
|
3644
|
-
__defNormalProp$
|
|
3645
|
-
if (__getOwnPropSymbols$
|
|
3646
|
-
for (var prop of __getOwnPropSymbols$
|
|
3647
|
-
if (__propIsEnum$
|
|
3648
|
-
__defNormalProp$
|
|
3643
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
3644
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
3645
|
+
if (__getOwnPropSymbols$c)
|
|
3646
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
3647
|
+
if (__propIsEnum$c.call(b, prop))
|
|
3648
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
3649
3649
|
}
|
|
3650
3650
|
return a;
|
|
3651
3651
|
};
|
|
3652
|
-
var __spreadProps$
|
|
3652
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
3653
3653
|
var __objRest$5 = (source, exclude) => {
|
|
3654
3654
|
var target = {};
|
|
3655
3655
|
for (var prop in source)
|
|
3656
|
-
if (__hasOwnProp$
|
|
3656
|
+
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3657
3657
|
target[prop] = source[prop];
|
|
3658
|
-
if (source != null && __getOwnPropSymbols$
|
|
3659
|
-
for (var prop of __getOwnPropSymbols$
|
|
3660
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3658
|
+
if (source != null && __getOwnPropSymbols$c)
|
|
3659
|
+
for (var prop of __getOwnPropSymbols$c(source)) {
|
|
3660
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
|
|
3661
3661
|
target[prop] = source[prop];
|
|
3662
3662
|
}
|
|
3663
3663
|
return target;
|
|
3664
3664
|
};
|
|
3665
3665
|
const useGetShippingRuleConditionsOptions = (params) => {
|
|
3666
3666
|
const { client } = useShipEngine();
|
|
3667
|
-
const _a = __spreadValues$
|
|
3668
|
-
return useQuery(__spreadProps$
|
|
3667
|
+
const _a = __spreadValues$b({}, params), { queryFnParams } = _a, rest = __objRest$5(_a, ["queryFnParams"]);
|
|
3668
|
+
return useQuery(__spreadProps$a(__spreadValues$b({}, rest), {
|
|
3669
3669
|
onError,
|
|
3670
3670
|
queryFn: () => {
|
|
3671
3671
|
return client.shippingRules.getConditionOptions(queryFnParams);
|
|
@@ -3675,41 +3675,41 @@ const useGetShippingRuleConditionsOptions = (params) => {
|
|
|
3675
3675
|
}));
|
|
3676
3676
|
};
|
|
3677
3677
|
|
|
3678
|
-
var __defProp$
|
|
3679
|
-
var __defProps$
|
|
3680
|
-
var __getOwnPropDescs$
|
|
3681
|
-
var __getOwnPropSymbols$
|
|
3682
|
-
var __hasOwnProp$
|
|
3683
|
-
var __propIsEnum$
|
|
3684
|
-
var __defNormalProp$
|
|
3685
|
-
var __spreadValues$
|
|
3678
|
+
var __defProp$a = Object.defineProperty;
|
|
3679
|
+
var __defProps$9 = Object.defineProperties;
|
|
3680
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
3681
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
3682
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
3683
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
3684
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3685
|
+
var __spreadValues$a = (a, b) => {
|
|
3686
3686
|
for (var prop in b || (b = {}))
|
|
3687
|
-
if (__hasOwnProp$
|
|
3688
|
-
__defNormalProp$
|
|
3689
|
-
if (__getOwnPropSymbols$
|
|
3690
|
-
for (var prop of __getOwnPropSymbols$
|
|
3691
|
-
if (__propIsEnum$
|
|
3692
|
-
__defNormalProp$
|
|
3687
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
3688
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
3689
|
+
if (__getOwnPropSymbols$b)
|
|
3690
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
3691
|
+
if (__propIsEnum$b.call(b, prop))
|
|
3692
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
3693
3693
|
}
|
|
3694
3694
|
return a;
|
|
3695
3695
|
};
|
|
3696
|
-
var __spreadProps$
|
|
3696
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
3697
3697
|
var __objRest$4 = (source, exclude) => {
|
|
3698
3698
|
var target = {};
|
|
3699
3699
|
for (var prop in source)
|
|
3700
|
-
if (__hasOwnProp$
|
|
3700
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3701
3701
|
target[prop] = source[prop];
|
|
3702
|
-
if (source != null && __getOwnPropSymbols$
|
|
3703
|
-
for (var prop of __getOwnPropSymbols$
|
|
3704
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3702
|
+
if (source != null && __getOwnPropSymbols$b)
|
|
3703
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
3704
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
3705
3705
|
target[prop] = source[prop];
|
|
3706
3706
|
}
|
|
3707
3707
|
return target;
|
|
3708
3708
|
};
|
|
3709
3709
|
const useGetShippingRuleById = (params) => {
|
|
3710
3710
|
const { client } = useShipEngine();
|
|
3711
|
-
const _a = __spreadValues$
|
|
3712
|
-
return useQuery(__spreadProps$
|
|
3711
|
+
const _a = __spreadValues$a({}, params), { queryFnParams } = _a, rest = __objRest$4(_a, ["queryFnParams"]);
|
|
3712
|
+
return useQuery(__spreadProps$9(__spreadValues$a({}, rest), {
|
|
3713
3713
|
onError,
|
|
3714
3714
|
queryFn: () => {
|
|
3715
3715
|
return client.shippingRules.get(queryFnParams);
|
|
@@ -3798,41 +3798,41 @@ const useDeleteWarehouse = () => {
|
|
|
3798
3798
|
});
|
|
3799
3799
|
};
|
|
3800
3800
|
|
|
3801
|
-
var __defProp$
|
|
3802
|
-
var __defProps$
|
|
3803
|
-
var __getOwnPropDescs$
|
|
3804
|
-
var __getOwnPropSymbols$
|
|
3805
|
-
var __hasOwnProp$
|
|
3806
|
-
var __propIsEnum$
|
|
3807
|
-
var __defNormalProp$
|
|
3808
|
-
var __spreadValues$
|
|
3801
|
+
var __defProp$9 = Object.defineProperty;
|
|
3802
|
+
var __defProps$8 = Object.defineProperties;
|
|
3803
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
3804
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
3805
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
3806
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
3807
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3808
|
+
var __spreadValues$9 = (a, b) => {
|
|
3809
3809
|
for (var prop in b || (b = {}))
|
|
3810
|
-
if (__hasOwnProp$
|
|
3811
|
-
__defNormalProp$
|
|
3812
|
-
if (__getOwnPropSymbols$
|
|
3813
|
-
for (var prop of __getOwnPropSymbols$
|
|
3814
|
-
if (__propIsEnum$
|
|
3815
|
-
__defNormalProp$
|
|
3810
|
+
if (__hasOwnProp$a.call(b, prop))
|
|
3811
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
3812
|
+
if (__getOwnPropSymbols$a)
|
|
3813
|
+
for (var prop of __getOwnPropSymbols$a(b)) {
|
|
3814
|
+
if (__propIsEnum$a.call(b, prop))
|
|
3815
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
3816
3816
|
}
|
|
3817
3817
|
return a;
|
|
3818
3818
|
};
|
|
3819
|
-
var __spreadProps$
|
|
3819
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
3820
3820
|
var __objRest$3 = (source, exclude) => {
|
|
3821
3821
|
var target = {};
|
|
3822
3822
|
for (var prop in source)
|
|
3823
|
-
if (__hasOwnProp$
|
|
3823
|
+
if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3824
3824
|
target[prop] = source[prop];
|
|
3825
|
-
if (source != null && __getOwnPropSymbols$
|
|
3826
|
-
for (var prop of __getOwnPropSymbols$
|
|
3827
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3825
|
+
if (source != null && __getOwnPropSymbols$a)
|
|
3826
|
+
for (var prop of __getOwnPropSymbols$a(source)) {
|
|
3827
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
|
|
3828
3828
|
target[prop] = source[prop];
|
|
3829
3829
|
}
|
|
3830
3830
|
return target;
|
|
3831
3831
|
};
|
|
3832
3832
|
const useListWarehouses = (params) => {
|
|
3833
3833
|
const { client } = useShipEngine();
|
|
3834
|
-
const _a = __spreadValues$
|
|
3835
|
-
return useQuery(__spreadProps$
|
|
3834
|
+
const _a = __spreadValues$9({}, params), { queryFnParams } = _a, rest = __objRest$3(_a, ["queryFnParams"]);
|
|
3835
|
+
return useQuery(__spreadProps$8(__spreadValues$9({}, rest), {
|
|
3836
3836
|
onError,
|
|
3837
3837
|
queryFn: () => client.warehouses.list(queryFnParams),
|
|
3838
3838
|
queryKey: ["useListWarehouses", queryFnParams],
|
|
@@ -3840,17 +3840,17 @@ const useListWarehouses = (params) => {
|
|
|
3840
3840
|
}));
|
|
3841
3841
|
};
|
|
3842
3842
|
|
|
3843
|
-
var __getOwnPropSymbols$
|
|
3844
|
-
var __hasOwnProp$
|
|
3845
|
-
var __propIsEnum$
|
|
3843
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
3844
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
3845
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
3846
3846
|
var __objRest$2 = (source, exclude) => {
|
|
3847
3847
|
var target = {};
|
|
3848
3848
|
for (var prop in source)
|
|
3849
|
-
if (__hasOwnProp$
|
|
3849
|
+
if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3850
3850
|
target[prop] = source[prop];
|
|
3851
|
-
if (source != null && __getOwnPropSymbols$
|
|
3852
|
-
for (var prop of __getOwnPropSymbols$
|
|
3853
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3851
|
+
if (source != null && __getOwnPropSymbols$9)
|
|
3852
|
+
for (var prop of __getOwnPropSymbols$9(source)) {
|
|
3853
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
|
|
3854
3854
|
target[prop] = source[prop];
|
|
3855
3855
|
}
|
|
3856
3856
|
return target;
|
|
@@ -3930,35 +3930,6 @@ const useUpdateAccountBillingPlan = () => {
|
|
|
3930
3930
|
});
|
|
3931
3931
|
};
|
|
3932
3932
|
|
|
3933
|
-
var __defProp$9 = Object.defineProperty;
|
|
3934
|
-
var __defProps$8 = Object.defineProperties;
|
|
3935
|
-
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
3936
|
-
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
3937
|
-
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
3938
|
-
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
3939
|
-
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3940
|
-
var __spreadValues$9 = (a, b) => {
|
|
3941
|
-
for (var prop in b || (b = {}))
|
|
3942
|
-
if (__hasOwnProp$9.call(b, prop))
|
|
3943
|
-
__defNormalProp$9(a, prop, b[prop]);
|
|
3944
|
-
if (__getOwnPropSymbols$9)
|
|
3945
|
-
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
3946
|
-
if (__propIsEnum$9.call(b, prop))
|
|
3947
|
-
__defNormalProp$9(a, prop, b[prop]);
|
|
3948
|
-
}
|
|
3949
|
-
return a;
|
|
3950
|
-
};
|
|
3951
|
-
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
3952
|
-
const useGetAccountBilling = (params) => {
|
|
3953
|
-
const { client } = useShipEngine();
|
|
3954
|
-
return useQuery(__spreadProps$8(__spreadValues$9({}, params), {
|
|
3955
|
-
onError,
|
|
3956
|
-
queryFn: () => client.accountBilling.get(),
|
|
3957
|
-
queryKey: ["useGetAccountBilling"],
|
|
3958
|
-
select: (result) => result.data
|
|
3959
|
-
}));
|
|
3960
|
-
};
|
|
3961
|
-
|
|
3962
3933
|
var __defProp$8 = Object.defineProperty;
|
|
3963
3934
|
var __defProps$7 = Object.defineProperties;
|
|
3964
3935
|
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
@@ -3978,6 +3949,35 @@ var __spreadValues$8 = (a, b) => {
|
|
|
3978
3949
|
return a;
|
|
3979
3950
|
};
|
|
3980
3951
|
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
3952
|
+
const useGetAccountBilling = (params) => {
|
|
3953
|
+
const { client } = useShipEngine();
|
|
3954
|
+
return useQuery(__spreadProps$7(__spreadValues$8({}, params), {
|
|
3955
|
+
onError,
|
|
3956
|
+
queryFn: () => client.accountBilling.get(),
|
|
3957
|
+
queryKey: ["useGetAccountBilling"],
|
|
3958
|
+
select: (result) => result.data
|
|
3959
|
+
}));
|
|
3960
|
+
};
|
|
3961
|
+
|
|
3962
|
+
var __defProp$7 = Object.defineProperty;
|
|
3963
|
+
var __defProps$6 = Object.defineProperties;
|
|
3964
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
3965
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
3966
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
3967
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
3968
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3969
|
+
var __spreadValues$7 = (a, b) => {
|
|
3970
|
+
for (var prop in b || (b = {}))
|
|
3971
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
3972
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
3973
|
+
if (__getOwnPropSymbols$7)
|
|
3974
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
3975
|
+
if (__propIsEnum$7.call(b, prop))
|
|
3976
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
3977
|
+
}
|
|
3978
|
+
return a;
|
|
3979
|
+
};
|
|
3980
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
3981
3981
|
var __async$8 = (__this, __arguments, generator) => {
|
|
3982
3982
|
return new Promise((resolve, reject) => {
|
|
3983
3983
|
var fulfilled = (value) => {
|
|
@@ -4000,7 +4000,7 @@ var __async$8 = (__this, __arguments, generator) => {
|
|
|
4000
4000
|
};
|
|
4001
4001
|
const useUpsertAccountBilling = (params) => {
|
|
4002
4002
|
const { client } = useShipEngine();
|
|
4003
|
-
return useMutation(__spreadProps$
|
|
4003
|
+
return useMutation(__spreadProps$6(__spreadValues$7({}, params), {
|
|
4004
4004
|
mutationFn: (billing) => __async$8(void 0, null, function* () {
|
|
4005
4005
|
const result = yield client.accountBilling.put(billing);
|
|
4006
4006
|
return result.data;
|
|
@@ -4010,28 +4010,28 @@ const useUpsertAccountBilling = (params) => {
|
|
|
4010
4010
|
}));
|
|
4011
4011
|
};
|
|
4012
4012
|
|
|
4013
|
-
var __defProp$
|
|
4014
|
-
var __defProps$
|
|
4015
|
-
var __getOwnPropDescs$
|
|
4016
|
-
var __getOwnPropSymbols$
|
|
4017
|
-
var __hasOwnProp$
|
|
4018
|
-
var __propIsEnum$
|
|
4019
|
-
var __defNormalProp$
|
|
4020
|
-
var __spreadValues$
|
|
4013
|
+
var __defProp$6 = Object.defineProperty;
|
|
4014
|
+
var __defProps$5 = Object.defineProperties;
|
|
4015
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
4016
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
4017
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
4018
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
4019
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4020
|
+
var __spreadValues$6 = (a, b) => {
|
|
4021
4021
|
for (var prop in b || (b = {}))
|
|
4022
|
-
if (__hasOwnProp$
|
|
4023
|
-
__defNormalProp$
|
|
4024
|
-
if (__getOwnPropSymbols$
|
|
4025
|
-
for (var prop of __getOwnPropSymbols$
|
|
4026
|
-
if (__propIsEnum$
|
|
4027
|
-
__defNormalProp$
|
|
4022
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
4023
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4024
|
+
if (__getOwnPropSymbols$6)
|
|
4025
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
4026
|
+
if (__propIsEnum$6.call(b, prop))
|
|
4027
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4028
4028
|
}
|
|
4029
4029
|
return a;
|
|
4030
4030
|
};
|
|
4031
|
-
var __spreadProps$
|
|
4031
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
4032
4032
|
const useGetHereToken = (params) => {
|
|
4033
4033
|
const { client } = useShipEngine();
|
|
4034
|
-
return useQuery(__spreadProps$
|
|
4034
|
+
return useQuery(__spreadProps$5(__spreadValues$6({}, params), {
|
|
4035
4035
|
onError,
|
|
4036
4036
|
queryFn: () => client.servicePoints.getHereToken(),
|
|
4037
4037
|
queryKey: ["useGetHereToken"],
|
|
@@ -4141,34 +4141,14 @@ const useCreateSandboxSeller = () => {
|
|
|
4141
4141
|
});
|
|
4142
4142
|
};
|
|
4143
4143
|
|
|
4144
|
-
|
|
4145
|
-
var __defProps$5 = Object.defineProperties;
|
|
4146
|
-
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
4147
|
-
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
4148
|
-
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
4149
|
-
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
4150
|
-
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4151
|
-
var __spreadValues$6 = (a, b) => {
|
|
4152
|
-
for (var prop in b || (b = {}))
|
|
4153
|
-
if (__hasOwnProp$6.call(b, prop))
|
|
4154
|
-
__defNormalProp$6(a, prop, b[prop]);
|
|
4155
|
-
if (__getOwnPropSymbols$6)
|
|
4156
|
-
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
4157
|
-
if (__propIsEnum$6.call(b, prop))
|
|
4158
|
-
__defNormalProp$6(a, prop, b[prop]);
|
|
4159
|
-
}
|
|
4160
|
-
return a;
|
|
4161
|
-
};
|
|
4162
|
-
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
4163
|
-
const useListSandboxSellerIds = (sellerId, params) => {
|
|
4144
|
+
const useListSandboxSellerIds = (sellerId) => {
|
|
4164
4145
|
const { client } = useShipEngine();
|
|
4165
|
-
|
|
4166
|
-
return useQuery(__spreadProps$5(__spreadValues$6({}, queryParams), {
|
|
4146
|
+
return useQuery({
|
|
4167
4147
|
onError,
|
|
4168
4148
|
queryFn: () => client.sellers.listSandboxSellerIds({ sellerId }),
|
|
4169
4149
|
queryKey: ["useListSandboxSellerIds", sellerId],
|
|
4170
4150
|
select: (result) => result.data
|
|
4171
|
-
})
|
|
4151
|
+
});
|
|
4172
4152
|
};
|
|
4173
4153
|
|
|
4174
4154
|
var __defProp$5 = Object.defineProperty;
|