@shipengine/react-api 4.18.3 → 4.18.4-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hooks/sellers/use-list-sandbox-seller-ids.d.ts +2 -1
- package/index.js +816 -796
- package/index.mjs +816 -796
- 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$P = Object.defineProperty;
|
|
82
|
+
var __defProps$O = Object.defineProperties;
|
|
83
|
+
var __getOwnPropDescs$O = Object.getOwnPropertyDescriptors;
|
|
84
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
85
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
86
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
87
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
88
|
+
var __spreadValues$P = (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$Y.call(b, prop))
|
|
91
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
92
|
+
if (__getOwnPropSymbols$Y)
|
|
93
|
+
for (var prop of __getOwnPropSymbols$Y(b)) {
|
|
94
|
+
if (__propIsEnum$Y.call(b, prop))
|
|
95
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
96
96
|
}
|
|
97
97
|
return a;
|
|
98
98
|
};
|
|
99
|
-
var __spreadProps$
|
|
99
|
+
var __spreadProps$O = (a, b) => __defProps$O(a, __getOwnPropDescs$O(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$O(__spreadValues$P({}, k), {
|
|
109
109
|
req: (req) => ({
|
|
110
110
|
headers: req.headers,
|
|
111
111
|
method: req.method,
|
|
@@ -278,6 +278,35 @@ 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
|
+
|
|
281
310
|
var __defProp$N = Object.defineProperty;
|
|
282
311
|
var __defProps$M = Object.defineProperties;
|
|
283
312
|
var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
|
|
@@ -297,13 +326,35 @@ var __spreadValues$N = (a, b) => {
|
|
|
297
326
|
return a;
|
|
298
327
|
};
|
|
299
328
|
var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
|
|
300
|
-
|
|
329
|
+
var __async$10 = (__this, __arguments, generator) => {
|
|
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) => {
|
|
301
350
|
const { client } = useShipEngine();
|
|
302
|
-
return
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
351
|
+
return useMutation(__spreadProps$M(__spreadValues$N({}, params), {
|
|
352
|
+
mutationFn: (addonType) => __async$10(void 0, null, function* () {
|
|
353
|
+
const result = yield client.accountAddons.enable(addonType);
|
|
354
|
+
return result.data;
|
|
355
|
+
}),
|
|
356
|
+
mutationKey: ["useEnableAccountAddon"],
|
|
357
|
+
onError
|
|
307
358
|
}));
|
|
308
359
|
};
|
|
309
360
|
|
|
@@ -326,7 +377,7 @@ var __spreadValues$M = (a, b) => {
|
|
|
326
377
|
return a;
|
|
327
378
|
};
|
|
328
379
|
var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
|
|
329
|
-
var __async
|
|
380
|
+
var __async$$ = (__this, __arguments, generator) => {
|
|
330
381
|
return new Promise((resolve, reject) => {
|
|
331
382
|
var fulfilled = (value) => {
|
|
332
383
|
try {
|
|
@@ -346,14 +397,14 @@ var __async$10 = (__this, __arguments, generator) => {
|
|
|
346
397
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
347
398
|
});
|
|
348
399
|
};
|
|
349
|
-
const
|
|
400
|
+
const useDisableAccountAddon = (params) => {
|
|
350
401
|
const { client } = useShipEngine();
|
|
351
402
|
return useMutation(__spreadProps$L(__spreadValues$M({}, params), {
|
|
352
|
-
mutationFn: (addonType) => __async
|
|
353
|
-
const result = yield client.accountAddons.
|
|
403
|
+
mutationFn: (addonType) => __async$$(void 0, null, function* () {
|
|
404
|
+
const result = yield client.accountAddons.disable(addonType);
|
|
354
405
|
return result.data;
|
|
355
406
|
}),
|
|
356
|
-
mutationKey: ["
|
|
407
|
+
mutationKey: ["useDisableAccountAddon"],
|
|
357
408
|
onError
|
|
358
409
|
}));
|
|
359
410
|
};
|
|
@@ -377,7 +428,17 @@ var __spreadValues$L = (a, b) => {
|
|
|
377
428
|
return a;
|
|
378
429
|
};
|
|
379
430
|
var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
|
|
380
|
-
|
|
431
|
+
const useListAccountFeatures = (params) => {
|
|
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) => {
|
|
381
442
|
return new Promise((resolve, reject) => {
|
|
382
443
|
var fulfilled = (value) => {
|
|
383
444
|
try {
|
|
@@ -397,16 +458,16 @@ var __async$$ = (__this, __arguments, generator) => {
|
|
|
397
458
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
398
459
|
});
|
|
399
460
|
};
|
|
400
|
-
const
|
|
461
|
+
const useRequestAccountFeature = () => {
|
|
401
462
|
const { client } = useShipEngine();
|
|
402
|
-
return useMutation(
|
|
403
|
-
mutationFn: (
|
|
404
|
-
const result = yield client.
|
|
463
|
+
return useMutation({
|
|
464
|
+
mutationFn: (request) => __async$_(void 0, null, function* () {
|
|
465
|
+
const result = yield client.accountFeatures.request(request);
|
|
405
466
|
return result.data;
|
|
406
467
|
}),
|
|
407
|
-
mutationKey: ["
|
|
468
|
+
mutationKey: ["useRequestAccountFeature"],
|
|
408
469
|
onError
|
|
409
|
-
})
|
|
470
|
+
});
|
|
410
471
|
};
|
|
411
472
|
|
|
412
473
|
var __defProp$K = Object.defineProperty;
|
|
@@ -428,17 +489,7 @@ var __spreadValues$K = (a, b) => {
|
|
|
428
489
|
return a;
|
|
429
490
|
};
|
|
430
491
|
var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
|
|
431
|
-
|
|
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) => {
|
|
492
|
+
var __async$Z = (__this, __arguments, generator) => {
|
|
442
493
|
return new Promise((resolve, reject) => {
|
|
443
494
|
var fulfilled = (value) => {
|
|
444
495
|
try {
|
|
@@ -458,16 +509,15 @@ var __async$_ = (__this, __arguments, generator) => {
|
|
|
458
509
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
459
510
|
});
|
|
460
511
|
};
|
|
461
|
-
const
|
|
512
|
+
const useDisableRefundAssist = (params) => {
|
|
462
513
|
const { client } = useShipEngine();
|
|
463
|
-
return useMutation({
|
|
464
|
-
mutationFn: (
|
|
465
|
-
|
|
466
|
-
return result.data;
|
|
514
|
+
return useMutation(__spreadProps$J(__spreadValues$K({}, params), {
|
|
515
|
+
mutationFn: () => __async$Z(void 0, null, function* () {
|
|
516
|
+
yield client.accountRefundAssist.disable();
|
|
467
517
|
}),
|
|
468
|
-
mutationKey: ["
|
|
518
|
+
mutationKey: ["useDisableRefundAssist"],
|
|
469
519
|
onError
|
|
470
|
-
});
|
|
520
|
+
}));
|
|
471
521
|
};
|
|
472
522
|
|
|
473
523
|
var __defProp$J = Object.defineProperty;
|
|
@@ -489,7 +539,7 @@ var __spreadValues$J = (a, b) => {
|
|
|
489
539
|
return a;
|
|
490
540
|
};
|
|
491
541
|
var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
|
|
492
|
-
var __async$
|
|
542
|
+
var __async$Y = (__this, __arguments, generator) => {
|
|
493
543
|
return new Promise((resolve, reject) => {
|
|
494
544
|
var fulfilled = (value) => {
|
|
495
545
|
try {
|
|
@@ -509,13 +559,13 @@ var __async$Z = (__this, __arguments, generator) => {
|
|
|
509
559
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
510
560
|
});
|
|
511
561
|
};
|
|
512
|
-
const
|
|
562
|
+
const useEnableRefundAssist = (params) => {
|
|
513
563
|
const { client } = useShipEngine();
|
|
514
564
|
return useMutation(__spreadProps$I(__spreadValues$J({}, params), {
|
|
515
|
-
mutationFn: () => __async$
|
|
516
|
-
yield client.accountRefundAssist.
|
|
565
|
+
mutationFn: () => __async$Y(void 0, null, function* () {
|
|
566
|
+
yield client.accountRefundAssist.enable();
|
|
517
567
|
}),
|
|
518
|
-
mutationKey: ["
|
|
568
|
+
mutationKey: ["useEnableRefundAssist"],
|
|
519
569
|
onError
|
|
520
570
|
}));
|
|
521
571
|
};
|
|
@@ -539,59 +589,9 @@ var __spreadValues$I = (a, b) => {
|
|
|
539
589
|
return a;
|
|
540
590
|
};
|
|
541
591
|
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$H(__spreadValues$I({}, 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$H = Object.defineProperty;
|
|
667
|
+
var __defProps$G = Object.defineProperties;
|
|
668
|
+
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
669
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
670
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
671
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
672
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
673
|
+
var __spreadValues$H = (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$Q.call(b, prop))
|
|
676
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
677
|
+
if (__getOwnPropSymbols$Q)
|
|
678
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
679
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
680
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
681
681
|
}
|
|
682
682
|
return a;
|
|
683
683
|
};
|
|
684
|
-
var __spreadProps$
|
|
684
|
+
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(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$G(__spreadValues$H({}, 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,6 +714,36 @@ 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
|
+
|
|
717
747
|
var __defProp$F = Object.defineProperty;
|
|
718
748
|
var __defProps$E = Object.defineProperties;
|
|
719
749
|
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
@@ -733,36 +763,6 @@ var __spreadValues$F = (a, b) => {
|
|
|
733
763
|
return a;
|
|
734
764
|
};
|
|
735
765
|
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
736
|
-
const useGetAuctanePayConfig = (params) => {
|
|
737
|
-
const { client } = useShipEngine();
|
|
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
|
|
744
|
-
}));
|
|
745
|
-
};
|
|
746
|
-
|
|
747
|
-
var __defProp$E = Object.defineProperty;
|
|
748
|
-
var __defProps$D = Object.defineProperties;
|
|
749
|
-
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
750
|
-
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
751
|
-
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
752
|
-
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
753
|
-
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
754
|
-
var __spreadValues$E = (a, b) => {
|
|
755
|
-
for (var prop in b || (b = {}))
|
|
756
|
-
if (__hasOwnProp$N.call(b, prop))
|
|
757
|
-
__defNormalProp$E(a, prop, b[prop]);
|
|
758
|
-
if (__getOwnPropSymbols$N)
|
|
759
|
-
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
760
|
-
if (__propIsEnum$N.call(b, prop))
|
|
761
|
-
__defNormalProp$E(a, prop, b[prop]);
|
|
762
|
-
}
|
|
763
|
-
return a;
|
|
764
|
-
};
|
|
765
|
-
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
766
766
|
var __async$U = (__this, __arguments, generator) => {
|
|
767
767
|
return new Promise((resolve, reject) => {
|
|
768
768
|
var fulfilled = (value) => {
|
|
@@ -785,7 +785,7 @@ var __async$U = (__this, __arguments, generator) => {
|
|
|
785
785
|
};
|
|
786
786
|
const usePreviewTransaction = (params) => {
|
|
787
787
|
const { client } = useShipEngine();
|
|
788
|
-
return useMutation(__spreadProps$
|
|
788
|
+
return useMutation(__spreadProps$E(__spreadValues$F({}, params), {
|
|
789
789
|
mutationFn: (_0) => __async$U(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
|
|
790
790
|
const request = {
|
|
791
791
|
amount,
|
|
@@ -799,6 +799,36 @@ const usePreviewTransaction = (params) => {
|
|
|
799
799
|
}));
|
|
800
800
|
};
|
|
801
801
|
|
|
802
|
+
var __defProp$E = Object.defineProperty;
|
|
803
|
+
var __defProps$D = Object.defineProperties;
|
|
804
|
+
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
805
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
806
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
807
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
808
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
809
|
+
var __spreadValues$E = (a, b) => {
|
|
810
|
+
for (var prop in b || (b = {}))
|
|
811
|
+
if (__hasOwnProp$N.call(b, prop))
|
|
812
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
813
|
+
if (__getOwnPropSymbols$N)
|
|
814
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
815
|
+
if (__propIsEnum$N.call(b, prop))
|
|
816
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
817
|
+
}
|
|
818
|
+
return a;
|
|
819
|
+
};
|
|
820
|
+
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
821
|
+
const useGetPaymentMethods = (params) => {
|
|
822
|
+
const { client } = useShipEngine();
|
|
823
|
+
const queryParams = __spreadValues$E({}, params);
|
|
824
|
+
return useQuery(__spreadProps$D(__spreadValues$E({}, queryParams), {
|
|
825
|
+
onError,
|
|
826
|
+
queryFn: () => client.auctanePay.getPaymentMethods(),
|
|
827
|
+
queryKey: ["useGetPaymentMethods"],
|
|
828
|
+
select: (result) => result.data
|
|
829
|
+
}));
|
|
830
|
+
};
|
|
831
|
+
|
|
802
832
|
var __defProp$D = Object.defineProperty;
|
|
803
833
|
var __defProps$C = Object.defineProperties;
|
|
804
834
|
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
@@ -818,14 +848,35 @@ var __spreadValues$D = (a, b) => {
|
|
|
818
848
|
return a;
|
|
819
849
|
};
|
|
820
850
|
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
821
|
-
|
|
851
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
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) => {
|
|
822
872
|
const { client } = useShipEngine();
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
873
|
+
return useMutation(__spreadProps$C(__spreadValues$D({}, params), {
|
|
874
|
+
mutationFn: (paymentMethodId) => __async$T(void 0, null, function* () {
|
|
875
|
+
const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
|
|
876
|
+
return result.data;
|
|
877
|
+
}),
|
|
878
|
+
mutationKey: ["useDeletePaymentMethod"],
|
|
879
|
+
onError
|
|
829
880
|
}));
|
|
830
881
|
};
|
|
831
882
|
|
|
@@ -848,7 +899,7 @@ var __spreadValues$C = (a, b) => {
|
|
|
848
899
|
return a;
|
|
849
900
|
};
|
|
850
901
|
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
851
|
-
var __async$
|
|
902
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
852
903
|
return new Promise((resolve, reject) => {
|
|
853
904
|
var fulfilled = (value) => {
|
|
854
905
|
try {
|
|
@@ -868,14 +919,14 @@ var __async$T = (__this, __arguments, generator) => {
|
|
|
868
919
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
869
920
|
});
|
|
870
921
|
};
|
|
871
|
-
const
|
|
922
|
+
const useUpdatePaymentMethod = (params) => {
|
|
872
923
|
const { client } = useShipEngine();
|
|
873
924
|
return useMutation(__spreadProps$B(__spreadValues$C({}, params), {
|
|
874
|
-
mutationFn: (
|
|
875
|
-
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);
|
|
876
927
|
return result.data;
|
|
877
928
|
}),
|
|
878
|
-
mutationKey: ["
|
|
929
|
+
mutationKey: ["useUpdatePaymentMethod"],
|
|
879
930
|
onError
|
|
880
931
|
}));
|
|
881
932
|
};
|
|
@@ -899,7 +950,7 @@ var __spreadValues$B = (a, b) => {
|
|
|
899
950
|
return a;
|
|
900
951
|
};
|
|
901
952
|
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
902
|
-
var __async$
|
|
953
|
+
var __async$R = (__this, __arguments, generator) => {
|
|
903
954
|
return new Promise((resolve, reject) => {
|
|
904
955
|
var fulfilled = (value) => {
|
|
905
956
|
try {
|
|
@@ -919,14 +970,14 @@ var __async$S = (__this, __arguments, generator) => {
|
|
|
919
970
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
920
971
|
});
|
|
921
972
|
};
|
|
922
|
-
const
|
|
973
|
+
const useIdentityVerification = (params) => {
|
|
923
974
|
const { client } = useShipEngine();
|
|
924
975
|
return useMutation(__spreadProps$A(__spreadValues$B({}, params), {
|
|
925
|
-
mutationFn: (
|
|
926
|
-
const result = yield client.auctanePay.
|
|
976
|
+
mutationFn: () => __async$R(void 0, null, function* () {
|
|
977
|
+
const result = yield client.auctanePay.identityVerification();
|
|
927
978
|
return result.data;
|
|
928
979
|
}),
|
|
929
|
-
mutationKey: ["
|
|
980
|
+
mutationKey: ["useIdentityVerification"],
|
|
930
981
|
onError
|
|
931
982
|
}));
|
|
932
983
|
};
|
|
@@ -950,61 +1001,10 @@ var __spreadValues$A = (a, b) => {
|
|
|
950
1001
|
return a;
|
|
951
1002
|
};
|
|
952
1003
|
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$A({}, params);
|
|
1007
|
+
return useQuery(__spreadProps$z(__spreadValues$A({}, 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$z = Object.defineProperty;
|
|
1212
|
+
var __defProps$y = Object.defineProperties;
|
|
1213
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
1214
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
1215
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
1216
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
1217
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1218
|
+
var __spreadValues$z = (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$I.call(b, prop))
|
|
1221
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
1222
|
+
if (__getOwnPropSymbols$I)
|
|
1223
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
|
1224
|
+
if (__propIsEnum$I.call(b, prop))
|
|
1225
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
1226
1226
|
}
|
|
1227
1227
|
return a;
|
|
1228
1228
|
};
|
|
1229
|
-
var __spreadProps$
|
|
1229
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(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$I.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$I)
|
|
1236
|
+
for (var prop of __getOwnPropSymbols$I(source)) {
|
|
1237
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.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$z({}, params), { queryFnParams } = _a, rest = __objRest$q(_a, ["queryFnParams"]);
|
|
1245
|
+
return useQuery(__spreadProps$y(__spreadValues$z({}, 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$H = Object.getOwnPropertySymbols;
|
|
1254
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
1255
|
+
var __propIsEnum$H = 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$H.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$H)
|
|
1262
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
1263
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.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$G = Object.getOwnPropertySymbols;
|
|
1355
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
1356
|
+
var __propIsEnum$G = 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$G.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$G)
|
|
1363
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
1364
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.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$F = Object.getOwnPropertySymbols;
|
|
1382
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
1383
|
+
var __propIsEnum$F = 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$F.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$F)
|
|
1390
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
1391
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
1392
1392
|
target[prop] = source[prop];
|
|
1393
1393
|
}
|
|
1394
1394
|
return target;
|
|
@@ -1405,25 +1405,25 @@ 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$y = Object.defineProperty;
|
|
1409
|
+
var __defProps$x = Object.defineProperties;
|
|
1410
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
1411
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
1412
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
1413
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
1414
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1415
|
+
var __spreadValues$y = (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$
|
|
1417
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
1418
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
1419
|
+
if (__getOwnPropSymbols$E)
|
|
1420
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
1421
|
+
if (__propIsEnum$E.call(b, prop))
|
|
1422
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
1423
1423
|
}
|
|
1424
1424
|
return a;
|
|
1425
1425
|
};
|
|
1426
|
-
var __spreadProps$
|
|
1426
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
1427
1427
|
var __async$L = (__this, __arguments, generator) => {
|
|
1428
1428
|
return new Promise((resolve, reject) => {
|
|
1429
1429
|
var fulfilled = (value) => {
|
|
@@ -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$x(__spreadValues$y({}, 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$
|
|
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$
|
|
1471
|
+
var __defProp$x = Object.defineProperty;
|
|
1472
|
+
var __defProps$w = Object.defineProperties;
|
|
1473
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
1474
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
1475
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
1476
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
1477
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1478
|
+
var __spreadValues$x = (a, b) => {
|
|
1479
|
+
for (var prop in b || (b = {}))
|
|
1480
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
1481
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
1482
|
+
if (__getOwnPropSymbols$D)
|
|
1483
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
1484
|
+
if (__propIsEnum$D.call(b, prop))
|
|
1485
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
1486
1486
|
}
|
|
1487
1487
|
return a;
|
|
1488
1488
|
};
|
|
1489
|
-
var __spreadProps$
|
|
1489
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(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$D.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$D)
|
|
1496
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
1497
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.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$w(__spreadValues$x({}, 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$w = Object.defineProperty;
|
|
1519
|
+
var __defProps$v = Object.defineProperties;
|
|
1520
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
1521
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
1522
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
1523
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
1524
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1525
|
+
var __spreadValues$w = (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$C.call(b, prop))
|
|
1528
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1529
|
+
if (__getOwnPropSymbols$C)
|
|
1530
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
1531
|
+
if (__propIsEnum$C.call(b, prop))
|
|
1532
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1533
1533
|
}
|
|
1534
1534
|
return a;
|
|
1535
1535
|
};
|
|
1536
|
-
var __spreadProps$
|
|
1536
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(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$v(__spreadValues$w({}, 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$v = Object.defineProperty;
|
|
1578
|
+
var __defProps$u = Object.defineProperties;
|
|
1579
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
1580
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
1581
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
1582
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
1583
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1584
|
+
var __spreadValues$v = (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$B.call(b, prop))
|
|
1587
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
1588
|
+
if (__getOwnPropSymbols$B)
|
|
1589
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
1590
|
+
if (__propIsEnum$B.call(b, prop))
|
|
1591
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
1592
1592
|
}
|
|
1593
1593
|
return a;
|
|
1594
1594
|
};
|
|
1595
|
-
var __spreadProps$
|
|
1595
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(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$u(__spreadValues$v({}, 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$u = Object.defineProperty;
|
|
1735
|
+
var __defProps$t = Object.defineProperties;
|
|
1736
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
1737
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
1738
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
1739
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
1740
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1741
|
+
var __spreadValues$u = (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$A.call(b, prop))
|
|
1744
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
1745
|
+
if (__getOwnPropSymbols$A)
|
|
1746
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
1747
|
+
if (__propIsEnum$A.call(b, prop))
|
|
1748
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
1749
1749
|
}
|
|
1750
1750
|
return a;
|
|
1751
1751
|
};
|
|
1752
|
-
var __spreadProps$
|
|
1752
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
1753
1753
|
const useGetFundingSourceAcceptedTerms = (fundingSourceId, params) => {
|
|
1754
1754
|
const { client } = useShipEngine();
|
|
1755
|
-
const queryParams = __spreadValues$
|
|
1756
|
-
return useQuery(__spreadProps$
|
|
1755
|
+
const queryParams = __spreadValues$u({}, params);
|
|
1756
|
+
return useQuery(__spreadProps$t(__spreadValues$u({}, 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$t = Object.defineProperty;
|
|
1881
|
+
var __defProps$s = Object.defineProperties;
|
|
1882
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
1883
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
1884
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
1885
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
1886
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1887
|
+
var __spreadValues$t = (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$z.call(b, prop))
|
|
1890
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
1891
|
+
if (__getOwnPropSymbols$z)
|
|
1892
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
1893
|
+
if (__propIsEnum$z.call(b, prop))
|
|
1894
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
1895
1895
|
}
|
|
1896
1896
|
return a;
|
|
1897
1897
|
};
|
|
1898
|
-
var __spreadProps$
|
|
1898
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
1899
1899
|
const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
|
|
1900
1900
|
const { client } = useShipEngine();
|
|
1901
|
-
const queryParams = __spreadValues$
|
|
1902
|
-
return useQuery(__spreadProps$
|
|
1901
|
+
const queryParams = __spreadValues$t({}, params);
|
|
1902
|
+
return useQuery(__spreadProps$s(__spreadValues$t({}, 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$y = Object.getOwnPropertySymbols;
|
|
1926
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
1927
|
+
var __propIsEnum$y = 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$y.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$y)
|
|
1934
|
+
for (var prop of __getOwnPropSymbols$y(source)) {
|
|
1935
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
|
|
1936
1936
|
target[prop] = source[prop];
|
|
1937
1937
|
}
|
|
1938
1938
|
return target;
|
|
@@ -1970,6 +1970,57 @@ 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
|
+
|
|
1973
2024
|
var __defProp$r = Object.defineProperty;
|
|
1974
2025
|
var __defProps$q = Object.defineProperties;
|
|
1975
2026
|
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
@@ -1989,7 +2040,7 @@ var __spreadValues$r = (a, b) => {
|
|
|
1989
2040
|
return a;
|
|
1990
2041
|
};
|
|
1991
2042
|
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
1992
|
-
var __async$
|
|
2043
|
+
var __async$B = (__this, __arguments, generator) => {
|
|
1993
2044
|
return new Promise((resolve, reject) => {
|
|
1994
2045
|
var fulfilled = (value) => {
|
|
1995
2046
|
try {
|
|
@@ -2009,14 +2060,14 @@ var __async$C = (__this, __arguments, generator) => {
|
|
|
2009
2060
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2010
2061
|
});
|
|
2011
2062
|
};
|
|
2012
|
-
const
|
|
2063
|
+
const useUpdateInvoiceAddress = (params) => {
|
|
2013
2064
|
const { client } = useShipEngine();
|
|
2014
2065
|
return useMutation(__spreadProps$q(__spreadValues$r({}, params), {
|
|
2015
|
-
mutationFn: (invoiceAddress) => __async$
|
|
2016
|
-
const result = yield client.invoiceAddress.
|
|
2066
|
+
mutationFn: (invoiceAddress) => __async$B(void 0, null, function* () {
|
|
2067
|
+
const result = yield client.invoiceAddress.update(invoiceAddress);
|
|
2017
2068
|
return result.data;
|
|
2018
2069
|
}),
|
|
2019
|
-
mutationKey: ["
|
|
2070
|
+
mutationKey: ["useUpdateInvoiceAddress"],
|
|
2020
2071
|
onError
|
|
2021
2072
|
}));
|
|
2022
2073
|
};
|
|
@@ -2040,7 +2091,17 @@ var __spreadValues$q = (a, b) => {
|
|
|
2040
2091
|
return a;
|
|
2041
2092
|
};
|
|
2042
2093
|
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
2043
|
-
|
|
2094
|
+
const useGetInvoiceAddress = (params) => {
|
|
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) => {
|
|
2044
2105
|
return new Promise((resolve, reject) => {
|
|
2045
2106
|
var fulfilled = (value) => {
|
|
2046
2107
|
try {
|
|
@@ -2060,16 +2121,16 @@ var __async$B = (__this, __arguments, generator) => {
|
|
|
2060
2121
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2061
2122
|
});
|
|
2062
2123
|
};
|
|
2063
|
-
const
|
|
2124
|
+
const useCancelRefund = () => {
|
|
2064
2125
|
const { client } = useShipEngine();
|
|
2065
|
-
return useMutation(
|
|
2066
|
-
mutationFn: (
|
|
2067
|
-
const result = yield client.
|
|
2126
|
+
return useMutation({
|
|
2127
|
+
mutationFn: (labelId) => __async$A(void 0, null, function* () {
|
|
2128
|
+
const result = yield client.labels.cancelRefund(labelId);
|
|
2068
2129
|
return result.data;
|
|
2069
2130
|
}),
|
|
2070
|
-
mutationKey: ["
|
|
2131
|
+
mutationKey: ["useCancelRefund"],
|
|
2071
2132
|
onError
|
|
2072
|
-
})
|
|
2133
|
+
});
|
|
2073
2134
|
};
|
|
2074
2135
|
|
|
2075
2136
|
var __defProp$p = Object.defineProperty;
|
|
@@ -2091,17 +2152,19 @@ var __spreadValues$p = (a, b) => {
|
|
|
2091
2152
|
return a;
|
|
2092
2153
|
};
|
|
2093
2154
|
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2155
|
+
var __objRest$k = (source, exclude) => {
|
|
2156
|
+
var target = {};
|
|
2157
|
+
for (var prop in source)
|
|
2158
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2159
|
+
target[prop] = source[prop];
|
|
2160
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
2161
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
2162
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
2163
|
+
target[prop] = source[prop];
|
|
2164
|
+
}
|
|
2165
|
+
return target;
|
|
2102
2166
|
};
|
|
2103
|
-
|
|
2104
|
-
var __async$A = (__this, __arguments, generator) => {
|
|
2167
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
2105
2168
|
return new Promise((resolve, reject) => {
|
|
2106
2169
|
var fulfilled = (value) => {
|
|
2107
2170
|
try {
|
|
@@ -2121,16 +2184,17 @@ var __async$A = (__this, __arguments, generator) => {
|
|
|
2121
2184
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2122
2185
|
});
|
|
2123
2186
|
};
|
|
2124
|
-
const
|
|
2187
|
+
const useCreateLabelByRateId = (params) => {
|
|
2125
2188
|
const { client } = useShipEngine();
|
|
2126
|
-
return useMutation({
|
|
2127
|
-
mutationFn: (
|
|
2128
|
-
|
|
2189
|
+
return useMutation(__spreadProps$o(__spreadValues$p({}, params), {
|
|
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);
|
|
2129
2193
|
return result.data;
|
|
2130
2194
|
}),
|
|
2131
|
-
mutationKey: ["
|
|
2195
|
+
mutationKey: ["useCreateLabelByRateId"],
|
|
2132
2196
|
onError
|
|
2133
|
-
});
|
|
2197
|
+
}));
|
|
2134
2198
|
};
|
|
2135
2199
|
|
|
2136
2200
|
var __defProp$o = Object.defineProperty;
|
|
@@ -2152,7 +2216,7 @@ var __spreadValues$o = (a, b) => {
|
|
|
2152
2216
|
return a;
|
|
2153
2217
|
};
|
|
2154
2218
|
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
2155
|
-
var __objRest$
|
|
2219
|
+
var __objRest$j = (source, exclude) => {
|
|
2156
2220
|
var target = {};
|
|
2157
2221
|
for (var prop in source)
|
|
2158
2222
|
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2164,7 +2228,7 @@ var __objRest$k = (source, exclude) => {
|
|
|
2164
2228
|
}
|
|
2165
2229
|
return target;
|
|
2166
2230
|
};
|
|
2167
|
-
var __async$
|
|
2231
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
2168
2232
|
return new Promise((resolve, reject) => {
|
|
2169
2233
|
var fulfilled = (value) => {
|
|
2170
2234
|
try {
|
|
@@ -2184,15 +2248,15 @@ var __async$z = (__this, __arguments, generator) => {
|
|
|
2184
2248
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2185
2249
|
});
|
|
2186
2250
|
};
|
|
2187
|
-
const
|
|
2251
|
+
const useCreateLabelByShipmentId = (params) => {
|
|
2188
2252
|
const { client } = useShipEngine();
|
|
2189
2253
|
return useMutation(__spreadProps$n(__spreadValues$o({}, params), {
|
|
2190
|
-
mutationFn: (_a) => __async$
|
|
2191
|
-
var _b = _a, {
|
|
2192
|
-
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);
|
|
2193
2257
|
return result.data;
|
|
2194
2258
|
}),
|
|
2195
|
-
mutationKey: ["
|
|
2259
|
+
mutationKey: ["useCreateLabelByShipmentId"],
|
|
2196
2260
|
onError
|
|
2197
2261
|
}));
|
|
2198
2262
|
};
|
|
@@ -2216,7 +2280,7 @@ var __spreadValues$n = (a, b) => {
|
|
|
2216
2280
|
return a;
|
|
2217
2281
|
};
|
|
2218
2282
|
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
2219
|
-
var __objRest$
|
|
2283
|
+
var __objRest$i = (source, exclude) => {
|
|
2220
2284
|
var target = {};
|
|
2221
2285
|
for (var prop in source)
|
|
2222
2286
|
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2228,7 +2292,7 @@ var __objRest$j = (source, exclude) => {
|
|
|
2228
2292
|
}
|
|
2229
2293
|
return target;
|
|
2230
2294
|
};
|
|
2231
|
-
var __async$
|
|
2295
|
+
var __async$x = (__this, __arguments, generator) => {
|
|
2232
2296
|
return new Promise((resolve, reject) => {
|
|
2233
2297
|
var fulfilled = (value) => {
|
|
2234
2298
|
try {
|
|
@@ -2248,15 +2312,15 @@ var __async$y = (__this, __arguments, generator) => {
|
|
|
2248
2312
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2249
2313
|
});
|
|
2250
2314
|
};
|
|
2251
|
-
const
|
|
2315
|
+
const useCreateLabel = (params) => {
|
|
2252
2316
|
const { client } = useShipEngine();
|
|
2253
2317
|
return useMutation(__spreadProps$m(__spreadValues$n({}, params), {
|
|
2254
|
-
mutationFn: (_a) => __async$
|
|
2255
|
-
var _b = _a, {
|
|
2256
|
-
const result = yield client.labels.
|
|
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);
|
|
2257
2321
|
return result.data;
|
|
2258
2322
|
}),
|
|
2259
|
-
mutationKey: ["
|
|
2323
|
+
mutationKey: ["useCreateLabel"],
|
|
2260
2324
|
onError
|
|
2261
2325
|
}));
|
|
2262
2326
|
};
|
|
@@ -2280,7 +2344,7 @@ var __spreadValues$m = (a, b) => {
|
|
|
2280
2344
|
return a;
|
|
2281
2345
|
};
|
|
2282
2346
|
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
2283
|
-
var __objRest$
|
|
2347
|
+
var __objRest$h = (source, exclude) => {
|
|
2284
2348
|
var target = {};
|
|
2285
2349
|
for (var prop in source)
|
|
2286
2350
|
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2292,39 +2356,31 @@ var __objRest$i = (source, exclude) => {
|
|
|
2292
2356
|
}
|
|
2293
2357
|
return target;
|
|
2294
2358
|
};
|
|
2295
|
-
|
|
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
|
-
});
|
|
2314
|
-
};
|
|
2315
|
-
const useCreateLabel = (params) => {
|
|
2359
|
+
const useExportLabels = (params) => {
|
|
2316
2360
|
const { client } = useShipEngine();
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
}),
|
|
2323
|
-
mutationKey: ["useCreateLabel"],
|
|
2324
|
-
onError
|
|
2361
|
+
const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
|
|
2362
|
+
return useQuery(__spreadProps$l(__spreadValues$m({}, rest), {
|
|
2363
|
+
onError,
|
|
2364
|
+
queryFn: () => client.labels.export(queryFnParams),
|
|
2365
|
+
queryKey: ["useExportLabels", params]
|
|
2325
2366
|
}));
|
|
2326
2367
|
};
|
|
2327
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
|
+
|
|
2328
2384
|
var __defProp$l = Object.defineProperty;
|
|
2329
2385
|
var __defProps$k = Object.defineProperties;
|
|
2330
2386
|
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
@@ -2344,7 +2400,7 @@ var __spreadValues$l = (a, b) => {
|
|
|
2344
2400
|
return a;
|
|
2345
2401
|
};
|
|
2346
2402
|
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
2347
|
-
var __objRest$
|
|
2403
|
+
var __objRest$g = (source, exclude) => {
|
|
2348
2404
|
var target = {};
|
|
2349
2405
|
for (var prop in source)
|
|
2350
2406
|
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2356,29 +2412,15 @@ var __objRest$h = (source, exclude) => {
|
|
|
2356
2412
|
}
|
|
2357
2413
|
return target;
|
|
2358
2414
|
};
|
|
2359
|
-
const
|
|
2415
|
+
const useListLabels = (params) => {
|
|
2360
2416
|
const { client } = useShipEngine();
|
|
2361
|
-
const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$
|
|
2417
|
+
const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
|
|
2362
2418
|
return useQuery(__spreadProps$k(__spreadValues$l({}, rest), {
|
|
2363
2419
|
onError,
|
|
2364
|
-
queryFn: () => client.labels.
|
|
2365
|
-
queryKey: ["
|
|
2366
|
-
}));
|
|
2367
|
-
};
|
|
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],
|
|
2420
|
+
queryFn: () => client.labels.list(queryFnParams),
|
|
2421
|
+
queryKey: ["useListLabels", params],
|
|
2380
2422
|
select: (result) => result.data
|
|
2381
|
-
});
|
|
2423
|
+
}));
|
|
2382
2424
|
};
|
|
2383
2425
|
|
|
2384
2426
|
var __defProp$k = Object.defineProperty;
|
|
@@ -2400,7 +2442,7 @@ var __spreadValues$k = (a, b) => {
|
|
|
2400
2442
|
return a;
|
|
2401
2443
|
};
|
|
2402
2444
|
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
2403
|
-
var __objRest$
|
|
2445
|
+
var __objRest$f = (source, exclude) => {
|
|
2404
2446
|
var target = {};
|
|
2405
2447
|
for (var prop in source)
|
|
2406
2448
|
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2412,48 +2454,6 @@ var __objRest$g = (source, exclude) => {
|
|
|
2412
2454
|
}
|
|
2413
2455
|
return target;
|
|
2414
2456
|
};
|
|
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$k({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
|
|
2480
|
+
return useInfiniteQuery(__spreadProps$j(__spreadValues$k({}, 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$j(__spreadValues$k({}, 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$j = Object.defineProperty;
|
|
2536
|
+
var __defProps$i = Object.defineProperties;
|
|
2537
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2538
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
2539
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
2540
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
2541
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2542
|
+
var __spreadValues$j = (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$o.call(b, prop))
|
|
2545
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2546
|
+
if (__getOwnPropSymbols$o)
|
|
2547
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
2548
|
+
if (__propIsEnum$o.call(b, prop))
|
|
2549
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2550
2550
|
}
|
|
2551
2551
|
return a;
|
|
2552
2552
|
};
|
|
2553
|
-
var __spreadProps$
|
|
2553
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
2554
2554
|
const useListOrderSources = (params) => {
|
|
2555
2555
|
const { client } = useShipEngine();
|
|
2556
|
-
return useQuery(__spreadProps$
|
|
2556
|
+
return useQuery(__spreadProps$i(__spreadValues$j({}, 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$n = Object.getOwnPropertySymbols;
|
|
2995
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
2996
|
+
var __propIsEnum$n = 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$n.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$n)
|
|
3003
|
+
for (var prop of __getOwnPropSymbols$n(source)) {
|
|
3004
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$n.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$m = Object.getOwnPropertySymbols;
|
|
3043
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
3044
|
+
var __propIsEnum$m = 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$m.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$m)
|
|
3051
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
3052
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.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$l = Object.getOwnPropertySymbols;
|
|
3118
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
3119
|
+
var __propIsEnum$l = 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$l.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$l)
|
|
3126
|
+
for (var prop of __getOwnPropSymbols$l(source)) {
|
|
3127
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.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$i = Object.defineProperty;
|
|
3177
|
+
var __defProps$h = Object.defineProperties;
|
|
3178
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
3179
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
3180
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
3181
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
3182
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3183
|
+
var __spreadValues$i = (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$k.call(b, prop))
|
|
3186
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
3187
|
+
if (__getOwnPropSymbols$k)
|
|
3188
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
3189
|
+
if (__propIsEnum$k.call(b, prop))
|
|
3190
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
3191
3191
|
}
|
|
3192
3192
|
return a;
|
|
3193
3193
|
};
|
|
3194
|
-
var __spreadProps$
|
|
3194
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(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$h(__spreadValues$i({}, 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$
|
|
3245
|
+
var __defProp$h = Object.defineProperty;
|
|
3246
|
+
var __defProps$g = Object.defineProperties;
|
|
3247
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
3248
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
3249
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
3250
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
3251
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3252
|
+
var __spreadValues$h = (a, b) => {
|
|
3253
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$
|
|
3254
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
3255
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3256
|
+
if (__getOwnPropSymbols$j)
|
|
3257
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
3258
|
+
if (__propIsEnum$j.call(b, prop))
|
|
3259
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3260
3260
|
}
|
|
3261
3261
|
return a;
|
|
3262
3262
|
};
|
|
3263
|
-
var __spreadProps$
|
|
3263
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(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$j.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$j)
|
|
3270
|
+
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
3271
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.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$g(__spreadValues$h({
|
|
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$g = Object.defineProperty;
|
|
3297
|
+
var __defProps$f = Object.defineProperties;
|
|
3298
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
3299
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
3300
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
3301
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
3302
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3303
|
+
var __spreadValues$g = (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$i.call(b, prop))
|
|
3306
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3307
|
+
if (__getOwnPropSymbols$i)
|
|
3308
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
3309
|
+
if (__propIsEnum$i.call(b, prop))
|
|
3310
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3311
3311
|
}
|
|
3312
3312
|
return a;
|
|
3313
3313
|
};
|
|
3314
|
-
var __spreadProps$
|
|
3314
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(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$i.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$i)
|
|
3321
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
3322
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.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$f(__spreadValues$g({}, 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$h = Object.getOwnPropertySymbols;
|
|
3353
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
3354
|
+
var __propIsEnum$h = 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$h.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$h)
|
|
3361
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
3362
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.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$f = Object.defineProperty;
|
|
3380
|
+
var __defProps$e = Object.defineProperties;
|
|
3381
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
3382
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
3383
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
3384
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
3385
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3386
|
+
var __spreadValues$f = (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$g.call(b, prop))
|
|
3389
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3390
|
+
if (__getOwnPropSymbols$g)
|
|
3391
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
3392
|
+
if (__propIsEnum$g.call(b, prop))
|
|
3393
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3394
3394
|
}
|
|
3395
3395
|
return a;
|
|
3396
3396
|
};
|
|
3397
|
-
var __spreadProps$
|
|
3397
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(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$g.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$g)
|
|
3404
|
+
for (var prop of __getOwnPropSymbols$g(source)) {
|
|
3405
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.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$e(__spreadValues$f({}, 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$e = Object.defineProperty;
|
|
3454
|
+
var __defProps$d = Object.defineProperties;
|
|
3455
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
3456
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
3457
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
3458
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
3459
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3460
|
+
var __spreadValues$e = (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$f.call(b, prop))
|
|
3463
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3464
|
+
if (__getOwnPropSymbols$f)
|
|
3465
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
3466
|
+
if (__propIsEnum$f.call(b, prop))
|
|
3467
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3468
3468
|
}
|
|
3469
3469
|
return a;
|
|
3470
3470
|
};
|
|
3471
|
-
var __spreadProps$
|
|
3471
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(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$f.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$f)
|
|
3478
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
3479
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.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$e({}, params), { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
|
|
3487
|
+
return useQuery(__spreadProps$d(__spreadValues$e({}, 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$d = Object.defineProperty;
|
|
3495
|
+
var __defProps$c = Object.defineProperties;
|
|
3496
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
3497
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
3498
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
3499
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
3500
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3501
|
+
var __spreadValues$d = (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$e.call(b, prop))
|
|
3504
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3505
|
+
if (__getOwnPropSymbols$e)
|
|
3506
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
3507
|
+
if (__propIsEnum$e.call(b, prop))
|
|
3508
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3509
3509
|
}
|
|
3510
3510
|
return a;
|
|
3511
3511
|
};
|
|
3512
|
-
var __spreadProps$
|
|
3512
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(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$e.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$e)
|
|
3519
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
3520
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.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$d({}, params), { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
|
|
3528
|
+
return useQuery(__spreadProps$c(__spreadValues$d({}, 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$c = Object.defineProperty;
|
|
3635
|
+
var __defProps$b = Object.defineProperties;
|
|
3636
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
3637
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
3638
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
3639
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
3640
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3641
|
+
var __spreadValues$c = (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$d.call(b, prop))
|
|
3644
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
3645
|
+
if (__getOwnPropSymbols$d)
|
|
3646
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
3647
|
+
if (__propIsEnum$d.call(b, prop))
|
|
3648
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
3649
3649
|
}
|
|
3650
3650
|
return a;
|
|
3651
3651
|
};
|
|
3652
|
-
var __spreadProps$
|
|
3652
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(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$d.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$d)
|
|
3659
|
+
for (var prop of __getOwnPropSymbols$d(source)) {
|
|
3660
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.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$c({}, params), { queryFnParams } = _a, rest = __objRest$5(_a, ["queryFnParams"]);
|
|
3668
|
+
return useQuery(__spreadProps$b(__spreadValues$c({}, 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$b = Object.defineProperty;
|
|
3679
|
+
var __defProps$a = Object.defineProperties;
|
|
3680
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
3681
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
3682
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
3683
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
3684
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3685
|
+
var __spreadValues$b = (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$c.call(b, prop))
|
|
3688
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
3689
|
+
if (__getOwnPropSymbols$c)
|
|
3690
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
3691
|
+
if (__propIsEnum$c.call(b, prop))
|
|
3692
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
3693
3693
|
}
|
|
3694
3694
|
return a;
|
|
3695
3695
|
};
|
|
3696
|
-
var __spreadProps$
|
|
3696
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(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$c.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$c)
|
|
3703
|
+
for (var prop of __getOwnPropSymbols$c(source)) {
|
|
3704
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.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$b({}, params), { queryFnParams } = _a, rest = __objRest$4(_a, ["queryFnParams"]);
|
|
3712
|
+
return useQuery(__spreadProps$a(__spreadValues$b({}, 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$a = Object.defineProperty;
|
|
3802
|
+
var __defProps$9 = Object.defineProperties;
|
|
3803
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
3804
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
3805
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
3806
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
3807
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3808
|
+
var __spreadValues$a = (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$b.call(b, prop))
|
|
3811
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
3812
|
+
if (__getOwnPropSymbols$b)
|
|
3813
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
3814
|
+
if (__propIsEnum$b.call(b, prop))
|
|
3815
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
3816
3816
|
}
|
|
3817
3817
|
return a;
|
|
3818
3818
|
};
|
|
3819
|
-
var __spreadProps$
|
|
3819
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(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$b.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$b)
|
|
3826
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
3827
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.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$a({}, params), { queryFnParams } = _a, rest = __objRest$3(_a, ["queryFnParams"]);
|
|
3835
|
+
return useQuery(__spreadProps$9(__spreadValues$a({}, 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$a = Object.getOwnPropertySymbols;
|
|
3844
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
3845
|
+
var __propIsEnum$a = 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$a.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$a)
|
|
3852
|
+
for (var prop of __getOwnPropSymbols$a(source)) {
|
|
3853
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
|
|
3854
3854
|
target[prop] = source[prop];
|
|
3855
3855
|
}
|
|
3856
3856
|
return target;
|
|
@@ -3930,6 +3930,35 @@ 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
|
+
|
|
3933
3962
|
var __defProp$8 = Object.defineProperty;
|
|
3934
3963
|
var __defProps$7 = Object.defineProperties;
|
|
3935
3964
|
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
@@ -3949,35 +3978,6 @@ var __spreadValues$8 = (a, b) => {
|
|
|
3949
3978
|
return a;
|
|
3950
3979
|
};
|
|
3951
3980
|
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$7(__spreadValues$8({}, 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$7 = Object.defineProperty;
|
|
4014
|
+
var __defProps$6 = Object.defineProperties;
|
|
4015
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
4016
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
4017
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
4018
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
4019
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4020
|
+
var __spreadValues$7 = (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$7.call(b, prop))
|
|
4023
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
4024
|
+
if (__getOwnPropSymbols$7)
|
|
4025
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
4026
|
+
if (__propIsEnum$7.call(b, prop))
|
|
4027
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
4028
4028
|
}
|
|
4029
4029
|
return a;
|
|
4030
4030
|
};
|
|
4031
|
-
var __spreadProps$
|
|
4031
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
4032
4032
|
const useGetHereToken = (params) => {
|
|
4033
4033
|
const { client } = useShipEngine();
|
|
4034
|
-
return useQuery(__spreadProps$
|
|
4034
|
+
return useQuery(__spreadProps$6(__spreadValues$7({}, params), {
|
|
4035
4035
|
onError,
|
|
4036
4036
|
queryFn: () => client.servicePoints.getHereToken(),
|
|
4037
4037
|
queryKey: ["useGetHereToken"],
|
|
@@ -4141,14 +4141,34 @@ const useCreateSandboxSeller = () => {
|
|
|
4141
4141
|
});
|
|
4142
4142
|
};
|
|
4143
4143
|
|
|
4144
|
-
|
|
4144
|
+
var __defProp$6 = Object.defineProperty;
|
|
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) => {
|
|
4145
4164
|
const { client } = useShipEngine();
|
|
4146
|
-
|
|
4165
|
+
const queryParams = __spreadValues$6({}, params);
|
|
4166
|
+
return useQuery(__spreadProps$5(__spreadValues$6({}, queryParams), {
|
|
4147
4167
|
onError,
|
|
4148
4168
|
queryFn: () => client.sellers.listSandboxSellerIds({ sellerId }),
|
|
4149
4169
|
queryKey: ["useListSandboxSellerIds", sellerId],
|
|
4150
4170
|
select: (result) => result.data
|
|
4151
|
-
});
|
|
4171
|
+
}));
|
|
4152
4172
|
};
|
|
4153
4173
|
|
|
4154
4174
|
var __defProp$5 = Object.defineProperty;
|