@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.js
CHANGED
|
@@ -81,25 +81,25 @@ const onError = (_errors) => _default();
|
|
|
81
81
|
|
|
82
82
|
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}();
|
|
83
83
|
|
|
84
|
-
var __defProp$
|
|
85
|
-
var __defProps$
|
|
86
|
-
var __getOwnPropDescs$
|
|
87
|
-
var __getOwnPropSymbols$
|
|
88
|
-
var __hasOwnProp$
|
|
89
|
-
var __propIsEnum$
|
|
90
|
-
var __defNormalProp$
|
|
91
|
-
var __spreadValues$
|
|
84
|
+
var __defProp$P = Object.defineProperty;
|
|
85
|
+
var __defProps$O = Object.defineProperties;
|
|
86
|
+
var __getOwnPropDescs$O = Object.getOwnPropertyDescriptors;
|
|
87
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
88
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
89
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
90
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
91
|
+
var __spreadValues$P = (a, b) => {
|
|
92
92
|
for (var prop in b || (b = {}))
|
|
93
|
-
if (__hasOwnProp$
|
|
94
|
-
__defNormalProp$
|
|
95
|
-
if (__getOwnPropSymbols$
|
|
96
|
-
for (var prop of __getOwnPropSymbols$
|
|
97
|
-
if (__propIsEnum$
|
|
98
|
-
__defNormalProp$
|
|
93
|
+
if (__hasOwnProp$Y.call(b, prop))
|
|
94
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
95
|
+
if (__getOwnPropSymbols$Y)
|
|
96
|
+
for (var prop of __getOwnPropSymbols$Y(b)) {
|
|
97
|
+
if (__propIsEnum$Y.call(b, prop))
|
|
98
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
99
99
|
}
|
|
100
100
|
return a;
|
|
101
101
|
};
|
|
102
|
-
var __spreadProps$
|
|
102
|
+
var __spreadProps$O = (a, b) => __defProps$O(a, __getOwnPropDescs$O(b));
|
|
103
103
|
const streams = [];
|
|
104
104
|
if (process.env.NODE_ENV === "production") {
|
|
105
105
|
streams.push({
|
|
@@ -108,7 +108,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
108
108
|
}
|
|
109
109
|
const logger = E({
|
|
110
110
|
name: "shipengine",
|
|
111
|
-
serializers: __spreadProps$
|
|
111
|
+
serializers: __spreadProps$O(__spreadValues$P({}, k), {
|
|
112
112
|
req: (req) => ({
|
|
113
113
|
headers: req.headers,
|
|
114
114
|
method: req.method,
|
|
@@ -281,6 +281,35 @@ const useUpdateAccountSettings = () => {
|
|
|
281
281
|
});
|
|
282
282
|
};
|
|
283
283
|
|
|
284
|
+
var __defProp$O = Object.defineProperty;
|
|
285
|
+
var __defProps$N = Object.defineProperties;
|
|
286
|
+
var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
|
|
287
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
288
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
289
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
290
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
291
|
+
var __spreadValues$O = (a, b) => {
|
|
292
|
+
for (var prop in b || (b = {}))
|
|
293
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
294
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
295
|
+
if (__getOwnPropSymbols$X)
|
|
296
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
297
|
+
if (__propIsEnum$X.call(b, prop))
|
|
298
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
299
|
+
}
|
|
300
|
+
return a;
|
|
301
|
+
};
|
|
302
|
+
var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
|
|
303
|
+
const useListAccountAddons = (params) => {
|
|
304
|
+
const { client } = useShipEngine();
|
|
305
|
+
return reactQuery.useQuery(__spreadProps$N(__spreadValues$O({}, params), {
|
|
306
|
+
onError,
|
|
307
|
+
queryFn: () => client.accountAddons.list(),
|
|
308
|
+
queryKey: ["useListAccountAddons"],
|
|
309
|
+
select: (result) => result.data.addons
|
|
310
|
+
}));
|
|
311
|
+
};
|
|
312
|
+
|
|
284
313
|
var __defProp$N = Object.defineProperty;
|
|
285
314
|
var __defProps$M = Object.defineProperties;
|
|
286
315
|
var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
|
|
@@ -300,13 +329,35 @@ var __spreadValues$N = (a, b) => {
|
|
|
300
329
|
return a;
|
|
301
330
|
};
|
|
302
331
|
var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
|
|
303
|
-
|
|
332
|
+
var __async$10 = (__this, __arguments, generator) => {
|
|
333
|
+
return new Promise((resolve, reject) => {
|
|
334
|
+
var fulfilled = (value) => {
|
|
335
|
+
try {
|
|
336
|
+
step(generator.next(value));
|
|
337
|
+
} catch (e) {
|
|
338
|
+
reject(e);
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
var rejected = (value) => {
|
|
342
|
+
try {
|
|
343
|
+
step(generator.throw(value));
|
|
344
|
+
} catch (e) {
|
|
345
|
+
reject(e);
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
349
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
350
|
+
});
|
|
351
|
+
};
|
|
352
|
+
const useEnableAccountAddon = (params) => {
|
|
304
353
|
const { client } = useShipEngine();
|
|
305
|
-
return reactQuery.
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
354
|
+
return reactQuery.useMutation(__spreadProps$M(__spreadValues$N({}, params), {
|
|
355
|
+
mutationFn: (addonType) => __async$10(void 0, null, function* () {
|
|
356
|
+
const result = yield client.accountAddons.enable(addonType);
|
|
357
|
+
return result.data;
|
|
358
|
+
}),
|
|
359
|
+
mutationKey: ["useEnableAccountAddon"],
|
|
360
|
+
onError
|
|
310
361
|
}));
|
|
311
362
|
};
|
|
312
363
|
|
|
@@ -329,7 +380,7 @@ var __spreadValues$M = (a, b) => {
|
|
|
329
380
|
return a;
|
|
330
381
|
};
|
|
331
382
|
var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
|
|
332
|
-
var __async
|
|
383
|
+
var __async$$ = (__this, __arguments, generator) => {
|
|
333
384
|
return new Promise((resolve, reject) => {
|
|
334
385
|
var fulfilled = (value) => {
|
|
335
386
|
try {
|
|
@@ -349,14 +400,14 @@ var __async$10 = (__this, __arguments, generator) => {
|
|
|
349
400
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
350
401
|
});
|
|
351
402
|
};
|
|
352
|
-
const
|
|
403
|
+
const useDisableAccountAddon = (params) => {
|
|
353
404
|
const { client } = useShipEngine();
|
|
354
405
|
return reactQuery.useMutation(__spreadProps$L(__spreadValues$M({}, params), {
|
|
355
|
-
mutationFn: (addonType) => __async
|
|
356
|
-
const result = yield client.accountAddons.
|
|
406
|
+
mutationFn: (addonType) => __async$$(void 0, null, function* () {
|
|
407
|
+
const result = yield client.accountAddons.disable(addonType);
|
|
357
408
|
return result.data;
|
|
358
409
|
}),
|
|
359
|
-
mutationKey: ["
|
|
410
|
+
mutationKey: ["useDisableAccountAddon"],
|
|
360
411
|
onError
|
|
361
412
|
}));
|
|
362
413
|
};
|
|
@@ -380,7 +431,17 @@ var __spreadValues$L = (a, b) => {
|
|
|
380
431
|
return a;
|
|
381
432
|
};
|
|
382
433
|
var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
|
|
383
|
-
|
|
434
|
+
const useListAccountFeatures = (params) => {
|
|
435
|
+
const { client } = useShipEngine();
|
|
436
|
+
return reactQuery.useQuery(__spreadProps$K(__spreadValues$L({}, params), {
|
|
437
|
+
onError,
|
|
438
|
+
queryFn: () => client.accountFeatures.list(),
|
|
439
|
+
queryKey: ["useListAccountFeatures"],
|
|
440
|
+
select: (result) => result.data.features
|
|
441
|
+
}));
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
var __async$_ = (__this, __arguments, generator) => {
|
|
384
445
|
return new Promise((resolve, reject) => {
|
|
385
446
|
var fulfilled = (value) => {
|
|
386
447
|
try {
|
|
@@ -400,16 +461,16 @@ var __async$$ = (__this, __arguments, generator) => {
|
|
|
400
461
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
401
462
|
});
|
|
402
463
|
};
|
|
403
|
-
const
|
|
464
|
+
const useRequestAccountFeature = () => {
|
|
404
465
|
const { client } = useShipEngine();
|
|
405
|
-
return reactQuery.useMutation(
|
|
406
|
-
mutationFn: (
|
|
407
|
-
const result = yield client.
|
|
466
|
+
return reactQuery.useMutation({
|
|
467
|
+
mutationFn: (request) => __async$_(void 0, null, function* () {
|
|
468
|
+
const result = yield client.accountFeatures.request(request);
|
|
408
469
|
return result.data;
|
|
409
470
|
}),
|
|
410
|
-
mutationKey: ["
|
|
471
|
+
mutationKey: ["useRequestAccountFeature"],
|
|
411
472
|
onError
|
|
412
|
-
})
|
|
473
|
+
});
|
|
413
474
|
};
|
|
414
475
|
|
|
415
476
|
var __defProp$K = Object.defineProperty;
|
|
@@ -431,17 +492,7 @@ var __spreadValues$K = (a, b) => {
|
|
|
431
492
|
return a;
|
|
432
493
|
};
|
|
433
494
|
var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
|
|
434
|
-
|
|
435
|
-
const { client } = useShipEngine();
|
|
436
|
-
return reactQuery.useQuery(__spreadProps$J(__spreadValues$K({}, params), {
|
|
437
|
-
onError,
|
|
438
|
-
queryFn: () => client.accountFeatures.list(),
|
|
439
|
-
queryKey: ["useListAccountFeatures"],
|
|
440
|
-
select: (result) => result.data.features
|
|
441
|
-
}));
|
|
442
|
-
};
|
|
443
|
-
|
|
444
|
-
var __async$_ = (__this, __arguments, generator) => {
|
|
495
|
+
var __async$Z = (__this, __arguments, generator) => {
|
|
445
496
|
return new Promise((resolve, reject) => {
|
|
446
497
|
var fulfilled = (value) => {
|
|
447
498
|
try {
|
|
@@ -461,16 +512,15 @@ var __async$_ = (__this, __arguments, generator) => {
|
|
|
461
512
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
462
513
|
});
|
|
463
514
|
};
|
|
464
|
-
const
|
|
515
|
+
const useDisableRefundAssist = (params) => {
|
|
465
516
|
const { client } = useShipEngine();
|
|
466
|
-
return reactQuery.useMutation({
|
|
467
|
-
mutationFn: (
|
|
468
|
-
|
|
469
|
-
return result.data;
|
|
517
|
+
return reactQuery.useMutation(__spreadProps$J(__spreadValues$K({}, params), {
|
|
518
|
+
mutationFn: () => __async$Z(void 0, null, function* () {
|
|
519
|
+
yield client.accountRefundAssist.disable();
|
|
470
520
|
}),
|
|
471
|
-
mutationKey: ["
|
|
521
|
+
mutationKey: ["useDisableRefundAssist"],
|
|
472
522
|
onError
|
|
473
|
-
});
|
|
523
|
+
}));
|
|
474
524
|
};
|
|
475
525
|
|
|
476
526
|
var __defProp$J = Object.defineProperty;
|
|
@@ -492,7 +542,7 @@ var __spreadValues$J = (a, b) => {
|
|
|
492
542
|
return a;
|
|
493
543
|
};
|
|
494
544
|
var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
|
|
495
|
-
var __async$
|
|
545
|
+
var __async$Y = (__this, __arguments, generator) => {
|
|
496
546
|
return new Promise((resolve, reject) => {
|
|
497
547
|
var fulfilled = (value) => {
|
|
498
548
|
try {
|
|
@@ -512,13 +562,13 @@ var __async$Z = (__this, __arguments, generator) => {
|
|
|
512
562
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
513
563
|
});
|
|
514
564
|
};
|
|
515
|
-
const
|
|
565
|
+
const useEnableRefundAssist = (params) => {
|
|
516
566
|
const { client } = useShipEngine();
|
|
517
567
|
return reactQuery.useMutation(__spreadProps$I(__spreadValues$J({}, params), {
|
|
518
|
-
mutationFn: () => __async$
|
|
519
|
-
yield client.accountRefundAssist.
|
|
568
|
+
mutationFn: () => __async$Y(void 0, null, function* () {
|
|
569
|
+
yield client.accountRefundAssist.enable();
|
|
520
570
|
}),
|
|
521
|
-
mutationKey: ["
|
|
571
|
+
mutationKey: ["useEnableRefundAssist"],
|
|
522
572
|
onError
|
|
523
573
|
}));
|
|
524
574
|
};
|
|
@@ -542,59 +592,9 @@ var __spreadValues$I = (a, b) => {
|
|
|
542
592
|
return a;
|
|
543
593
|
};
|
|
544
594
|
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
545
|
-
var __async$Y = (__this, __arguments, generator) => {
|
|
546
|
-
return new Promise((resolve, reject) => {
|
|
547
|
-
var fulfilled = (value) => {
|
|
548
|
-
try {
|
|
549
|
-
step(generator.next(value));
|
|
550
|
-
} catch (e) {
|
|
551
|
-
reject(e);
|
|
552
|
-
}
|
|
553
|
-
};
|
|
554
|
-
var rejected = (value) => {
|
|
555
|
-
try {
|
|
556
|
-
step(generator.throw(value));
|
|
557
|
-
} catch (e) {
|
|
558
|
-
reject(e);
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
562
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
563
|
-
});
|
|
564
|
-
};
|
|
565
|
-
const useEnableRefundAssist = (params) => {
|
|
566
|
-
const { client } = useShipEngine();
|
|
567
|
-
return reactQuery.useMutation(__spreadProps$H(__spreadValues$I({}, params), {
|
|
568
|
-
mutationFn: () => __async$Y(void 0, null, function* () {
|
|
569
|
-
yield client.accountRefundAssist.enable();
|
|
570
|
-
}),
|
|
571
|
-
mutationKey: ["useEnableRefundAssist"],
|
|
572
|
-
onError
|
|
573
|
-
}));
|
|
574
|
-
};
|
|
575
|
-
|
|
576
|
-
var __defProp$H = Object.defineProperty;
|
|
577
|
-
var __defProps$G = Object.defineProperties;
|
|
578
|
-
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
579
|
-
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
580
|
-
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
581
|
-
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
582
|
-
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
583
|
-
var __spreadValues$H = (a, b) => {
|
|
584
|
-
for (var prop in b || (b = {}))
|
|
585
|
-
if (__hasOwnProp$Q.call(b, prop))
|
|
586
|
-
__defNormalProp$H(a, prop, b[prop]);
|
|
587
|
-
if (__getOwnPropSymbols$Q)
|
|
588
|
-
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
589
|
-
if (__propIsEnum$Q.call(b, prop))
|
|
590
|
-
__defNormalProp$H(a, prop, b[prop]);
|
|
591
|
-
}
|
|
592
|
-
return a;
|
|
593
|
-
};
|
|
594
|
-
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
595
595
|
const useGetRefundAssist = (params) => {
|
|
596
596
|
const { client } = useShipEngine();
|
|
597
|
-
return reactQuery.useQuery(__spreadProps$
|
|
597
|
+
return reactQuery.useQuery(__spreadProps$H(__spreadValues$I({}, params), {
|
|
598
598
|
onError,
|
|
599
599
|
queryFn: () => client.accountRefundAssist.get(),
|
|
600
600
|
queryKey: ["useGetRefundAssist"],
|
|
@@ -666,25 +666,25 @@ const useValidateAddresses = () => {
|
|
|
666
666
|
});
|
|
667
667
|
};
|
|
668
668
|
|
|
669
|
-
var __defProp$
|
|
670
|
-
var __defProps$
|
|
671
|
-
var __getOwnPropDescs$
|
|
672
|
-
var __getOwnPropSymbols$
|
|
673
|
-
var __hasOwnProp$
|
|
674
|
-
var __propIsEnum$
|
|
675
|
-
var __defNormalProp$
|
|
676
|
-
var __spreadValues$
|
|
669
|
+
var __defProp$H = Object.defineProperty;
|
|
670
|
+
var __defProps$G = Object.defineProperties;
|
|
671
|
+
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
672
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
673
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
674
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
675
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
676
|
+
var __spreadValues$H = (a, b) => {
|
|
677
677
|
for (var prop in b || (b = {}))
|
|
678
|
-
if (__hasOwnProp$
|
|
679
|
-
__defNormalProp$
|
|
680
|
-
if (__getOwnPropSymbols$
|
|
681
|
-
for (var prop of __getOwnPropSymbols$
|
|
682
|
-
if (__propIsEnum$
|
|
683
|
-
__defNormalProp$
|
|
678
|
+
if (__hasOwnProp$Q.call(b, prop))
|
|
679
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
680
|
+
if (__getOwnPropSymbols$Q)
|
|
681
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
682
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
683
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
684
684
|
}
|
|
685
685
|
return a;
|
|
686
686
|
};
|
|
687
|
-
var __spreadProps$
|
|
687
|
+
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
688
688
|
var __async$V = (__this, __arguments, generator) => {
|
|
689
689
|
return new Promise((resolve, reject) => {
|
|
690
690
|
var fulfilled = (value) => {
|
|
@@ -707,7 +707,7 @@ var __async$V = (__this, __arguments, generator) => {
|
|
|
707
707
|
};
|
|
708
708
|
const useCreateAuctanePaySession = (params) => {
|
|
709
709
|
const { client } = useShipEngine();
|
|
710
|
-
return reactQuery.useMutation(__spreadProps$
|
|
710
|
+
return reactQuery.useMutation(__spreadProps$G(__spreadValues$H({}, params), {
|
|
711
711
|
mutationFn: (request) => __async$V(void 0, null, function* () {
|
|
712
712
|
const result = yield client.auctanePay.createSession(request);
|
|
713
713
|
return result.data;
|
|
@@ -717,6 +717,36 @@ const useCreateAuctanePaySession = (params) => {
|
|
|
717
717
|
}));
|
|
718
718
|
};
|
|
719
719
|
|
|
720
|
+
var __defProp$G = Object.defineProperty;
|
|
721
|
+
var __defProps$F = Object.defineProperties;
|
|
722
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
723
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
724
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
725
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
726
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
727
|
+
var __spreadValues$G = (a, b) => {
|
|
728
|
+
for (var prop in b || (b = {}))
|
|
729
|
+
if (__hasOwnProp$P.call(b, prop))
|
|
730
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
731
|
+
if (__getOwnPropSymbols$P)
|
|
732
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
733
|
+
if (__propIsEnum$P.call(b, prop))
|
|
734
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
735
|
+
}
|
|
736
|
+
return a;
|
|
737
|
+
};
|
|
738
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
739
|
+
const useGetAuctanePayConfig = (params) => {
|
|
740
|
+
const { client } = useShipEngine();
|
|
741
|
+
const queryParams = __spreadValues$G({}, params);
|
|
742
|
+
return reactQuery.useQuery(__spreadProps$F(__spreadValues$G({}, queryParams), {
|
|
743
|
+
onError,
|
|
744
|
+
queryFn: () => client.auctanePay.getConfig(),
|
|
745
|
+
queryKey: ["useGetAuctanePayConfig"],
|
|
746
|
+
select: (result) => result.data
|
|
747
|
+
}));
|
|
748
|
+
};
|
|
749
|
+
|
|
720
750
|
var __defProp$F = Object.defineProperty;
|
|
721
751
|
var __defProps$E = Object.defineProperties;
|
|
722
752
|
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
@@ -736,36 +766,6 @@ var __spreadValues$F = (a, b) => {
|
|
|
736
766
|
return a;
|
|
737
767
|
};
|
|
738
768
|
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
739
|
-
const useGetAuctanePayConfig = (params) => {
|
|
740
|
-
const { client } = useShipEngine();
|
|
741
|
-
const queryParams = __spreadValues$F({}, params);
|
|
742
|
-
return reactQuery.useQuery(__spreadProps$E(__spreadValues$F({}, queryParams), {
|
|
743
|
-
onError,
|
|
744
|
-
queryFn: () => client.auctanePay.getConfig(),
|
|
745
|
-
queryKey: ["useGetAuctanePayConfig"],
|
|
746
|
-
select: (result) => result.data
|
|
747
|
-
}));
|
|
748
|
-
};
|
|
749
|
-
|
|
750
|
-
var __defProp$E = Object.defineProperty;
|
|
751
|
-
var __defProps$D = Object.defineProperties;
|
|
752
|
-
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
753
|
-
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
754
|
-
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
755
|
-
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
756
|
-
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
757
|
-
var __spreadValues$E = (a, b) => {
|
|
758
|
-
for (var prop in b || (b = {}))
|
|
759
|
-
if (__hasOwnProp$N.call(b, prop))
|
|
760
|
-
__defNormalProp$E(a, prop, b[prop]);
|
|
761
|
-
if (__getOwnPropSymbols$N)
|
|
762
|
-
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
763
|
-
if (__propIsEnum$N.call(b, prop))
|
|
764
|
-
__defNormalProp$E(a, prop, b[prop]);
|
|
765
|
-
}
|
|
766
|
-
return a;
|
|
767
|
-
};
|
|
768
|
-
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
769
769
|
var __async$U = (__this, __arguments, generator) => {
|
|
770
770
|
return new Promise((resolve, reject) => {
|
|
771
771
|
var fulfilled = (value) => {
|
|
@@ -788,7 +788,7 @@ var __async$U = (__this, __arguments, generator) => {
|
|
|
788
788
|
};
|
|
789
789
|
const usePreviewTransaction = (params) => {
|
|
790
790
|
const { client } = useShipEngine();
|
|
791
|
-
return reactQuery.useMutation(__spreadProps$
|
|
791
|
+
return reactQuery.useMutation(__spreadProps$E(__spreadValues$F({}, params), {
|
|
792
792
|
mutationFn: (_0) => __async$U(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
|
|
793
793
|
const request = {
|
|
794
794
|
amount,
|
|
@@ -802,6 +802,36 @@ const usePreviewTransaction = (params) => {
|
|
|
802
802
|
}));
|
|
803
803
|
};
|
|
804
804
|
|
|
805
|
+
var __defProp$E = Object.defineProperty;
|
|
806
|
+
var __defProps$D = Object.defineProperties;
|
|
807
|
+
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
808
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
809
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
810
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
811
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
812
|
+
var __spreadValues$E = (a, b) => {
|
|
813
|
+
for (var prop in b || (b = {}))
|
|
814
|
+
if (__hasOwnProp$N.call(b, prop))
|
|
815
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
816
|
+
if (__getOwnPropSymbols$N)
|
|
817
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
818
|
+
if (__propIsEnum$N.call(b, prop))
|
|
819
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
820
|
+
}
|
|
821
|
+
return a;
|
|
822
|
+
};
|
|
823
|
+
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
824
|
+
const useGetPaymentMethods = (params) => {
|
|
825
|
+
const { client } = useShipEngine();
|
|
826
|
+
const queryParams = __spreadValues$E({}, params);
|
|
827
|
+
return reactQuery.useQuery(__spreadProps$D(__spreadValues$E({}, queryParams), {
|
|
828
|
+
onError,
|
|
829
|
+
queryFn: () => client.auctanePay.getPaymentMethods(),
|
|
830
|
+
queryKey: ["useGetPaymentMethods"],
|
|
831
|
+
select: (result) => result.data
|
|
832
|
+
}));
|
|
833
|
+
};
|
|
834
|
+
|
|
805
835
|
var __defProp$D = Object.defineProperty;
|
|
806
836
|
var __defProps$C = Object.defineProperties;
|
|
807
837
|
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
@@ -821,14 +851,35 @@ var __spreadValues$D = (a, b) => {
|
|
|
821
851
|
return a;
|
|
822
852
|
};
|
|
823
853
|
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
824
|
-
|
|
854
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
855
|
+
return new Promise((resolve, reject) => {
|
|
856
|
+
var fulfilled = (value) => {
|
|
857
|
+
try {
|
|
858
|
+
step(generator.next(value));
|
|
859
|
+
} catch (e) {
|
|
860
|
+
reject(e);
|
|
861
|
+
}
|
|
862
|
+
};
|
|
863
|
+
var rejected = (value) => {
|
|
864
|
+
try {
|
|
865
|
+
step(generator.throw(value));
|
|
866
|
+
} catch (e) {
|
|
867
|
+
reject(e);
|
|
868
|
+
}
|
|
869
|
+
};
|
|
870
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
871
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
872
|
+
});
|
|
873
|
+
};
|
|
874
|
+
const useDeletePaymentMethod = (params) => {
|
|
825
875
|
const { client } = useShipEngine();
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
876
|
+
return reactQuery.useMutation(__spreadProps$C(__spreadValues$D({}, params), {
|
|
877
|
+
mutationFn: (paymentMethodId) => __async$T(void 0, null, function* () {
|
|
878
|
+
const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
|
|
879
|
+
return result.data;
|
|
880
|
+
}),
|
|
881
|
+
mutationKey: ["useDeletePaymentMethod"],
|
|
882
|
+
onError
|
|
832
883
|
}));
|
|
833
884
|
};
|
|
834
885
|
|
|
@@ -851,7 +902,7 @@ var __spreadValues$C = (a, b) => {
|
|
|
851
902
|
return a;
|
|
852
903
|
};
|
|
853
904
|
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
854
|
-
var __async$
|
|
905
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
855
906
|
return new Promise((resolve, reject) => {
|
|
856
907
|
var fulfilled = (value) => {
|
|
857
908
|
try {
|
|
@@ -871,14 +922,14 @@ var __async$T = (__this, __arguments, generator) => {
|
|
|
871
922
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
872
923
|
});
|
|
873
924
|
};
|
|
874
|
-
const
|
|
925
|
+
const useUpdatePaymentMethod = (params) => {
|
|
875
926
|
const { client } = useShipEngine();
|
|
876
927
|
return reactQuery.useMutation(__spreadProps$B(__spreadValues$C({}, params), {
|
|
877
|
-
mutationFn: (
|
|
878
|
-
const result = yield client.auctanePay.
|
|
928
|
+
mutationFn: (_0) => __async$S(void 0, [_0], function* ({ paymentMethodId, payload }) {
|
|
929
|
+
const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
|
|
879
930
|
return result.data;
|
|
880
931
|
}),
|
|
881
|
-
mutationKey: ["
|
|
932
|
+
mutationKey: ["useUpdatePaymentMethod"],
|
|
882
933
|
onError
|
|
883
934
|
}));
|
|
884
935
|
};
|
|
@@ -902,7 +953,7 @@ var __spreadValues$B = (a, b) => {
|
|
|
902
953
|
return a;
|
|
903
954
|
};
|
|
904
955
|
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
905
|
-
var __async$
|
|
956
|
+
var __async$R = (__this, __arguments, generator) => {
|
|
906
957
|
return new Promise((resolve, reject) => {
|
|
907
958
|
var fulfilled = (value) => {
|
|
908
959
|
try {
|
|
@@ -922,14 +973,14 @@ var __async$S = (__this, __arguments, generator) => {
|
|
|
922
973
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
923
974
|
});
|
|
924
975
|
};
|
|
925
|
-
const
|
|
976
|
+
const useIdentityVerification = (params) => {
|
|
926
977
|
const { client } = useShipEngine();
|
|
927
978
|
return reactQuery.useMutation(__spreadProps$A(__spreadValues$B({}, params), {
|
|
928
|
-
mutationFn: (
|
|
929
|
-
const result = yield client.auctanePay.
|
|
979
|
+
mutationFn: () => __async$R(void 0, null, function* () {
|
|
980
|
+
const result = yield client.auctanePay.identityVerification();
|
|
930
981
|
return result.data;
|
|
931
982
|
}),
|
|
932
|
-
mutationKey: ["
|
|
983
|
+
mutationKey: ["useIdentityVerification"],
|
|
933
984
|
onError
|
|
934
985
|
}));
|
|
935
986
|
};
|
|
@@ -953,61 +1004,10 @@ var __spreadValues$A = (a, b) => {
|
|
|
953
1004
|
return a;
|
|
954
1005
|
};
|
|
955
1006
|
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
956
|
-
var __async$R = (__this, __arguments, generator) => {
|
|
957
|
-
return new Promise((resolve, reject) => {
|
|
958
|
-
var fulfilled = (value) => {
|
|
959
|
-
try {
|
|
960
|
-
step(generator.next(value));
|
|
961
|
-
} catch (e) {
|
|
962
|
-
reject(e);
|
|
963
|
-
}
|
|
964
|
-
};
|
|
965
|
-
var rejected = (value) => {
|
|
966
|
-
try {
|
|
967
|
-
step(generator.throw(value));
|
|
968
|
-
} catch (e) {
|
|
969
|
-
reject(e);
|
|
970
|
-
}
|
|
971
|
-
};
|
|
972
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
973
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
974
|
-
});
|
|
975
|
-
};
|
|
976
|
-
const useIdentityVerification = (params) => {
|
|
977
|
-
const { client } = useShipEngine();
|
|
978
|
-
return reactQuery.useMutation(__spreadProps$z(__spreadValues$A({}, params), {
|
|
979
|
-
mutationFn: () => __async$R(void 0, null, function* () {
|
|
980
|
-
const result = yield client.auctanePay.identityVerification();
|
|
981
|
-
return result.data;
|
|
982
|
-
}),
|
|
983
|
-
mutationKey: ["useIdentityVerification"],
|
|
984
|
-
onError
|
|
985
|
-
}));
|
|
986
|
-
};
|
|
987
|
-
|
|
988
|
-
var __defProp$z = Object.defineProperty;
|
|
989
|
-
var __defProps$y = Object.defineProperties;
|
|
990
|
-
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
991
|
-
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
992
|
-
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
993
|
-
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
994
|
-
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
995
|
-
var __spreadValues$z = (a, b) => {
|
|
996
|
-
for (var prop in b || (b = {}))
|
|
997
|
-
if (__hasOwnProp$I.call(b, prop))
|
|
998
|
-
__defNormalProp$z(a, prop, b[prop]);
|
|
999
|
-
if (__getOwnPropSymbols$I)
|
|
1000
|
-
for (var prop of __getOwnPropSymbols$I(b)) {
|
|
1001
|
-
if (__propIsEnum$I.call(b, prop))
|
|
1002
|
-
__defNormalProp$z(a, prop, b[prop]);
|
|
1003
|
-
}
|
|
1004
|
-
return a;
|
|
1005
|
-
};
|
|
1006
|
-
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
1007
1007
|
const useGetPaymentAccount = (params) => {
|
|
1008
1008
|
const { client } = useShipEngine();
|
|
1009
|
-
const queryParams = __spreadValues$
|
|
1010
|
-
return reactQuery.useQuery(__spreadProps$
|
|
1009
|
+
const queryParams = __spreadValues$A({}, params);
|
|
1010
|
+
return reactQuery.useQuery(__spreadProps$z(__spreadValues$A({}, queryParams), {
|
|
1011
1011
|
onError,
|
|
1012
1012
|
queryFn: () => client.auctanePay.getPaymentAccount(),
|
|
1013
1013
|
queryKey: ["useGetPaymentAccount"],
|
|
@@ -1211,41 +1211,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
1211
1211
|
});
|
|
1212
1212
|
};
|
|
1213
1213
|
|
|
1214
|
-
var __defProp$
|
|
1215
|
-
var __defProps$
|
|
1216
|
-
var __getOwnPropDescs$
|
|
1217
|
-
var __getOwnPropSymbols$
|
|
1218
|
-
var __hasOwnProp$
|
|
1219
|
-
var __propIsEnum$
|
|
1220
|
-
var __defNormalProp$
|
|
1221
|
-
var __spreadValues$
|
|
1214
|
+
var __defProp$z = Object.defineProperty;
|
|
1215
|
+
var __defProps$y = Object.defineProperties;
|
|
1216
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
1217
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
1218
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
1219
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
1220
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1221
|
+
var __spreadValues$z = (a, b) => {
|
|
1222
1222
|
for (var prop in b || (b = {}))
|
|
1223
|
-
if (__hasOwnProp$
|
|
1224
|
-
__defNormalProp$
|
|
1225
|
-
if (__getOwnPropSymbols$
|
|
1226
|
-
for (var prop of __getOwnPropSymbols$
|
|
1227
|
-
if (__propIsEnum$
|
|
1228
|
-
__defNormalProp$
|
|
1223
|
+
if (__hasOwnProp$I.call(b, prop))
|
|
1224
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
1225
|
+
if (__getOwnPropSymbols$I)
|
|
1226
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
|
1227
|
+
if (__propIsEnum$I.call(b, prop))
|
|
1228
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
1229
1229
|
}
|
|
1230
1230
|
return a;
|
|
1231
1231
|
};
|
|
1232
|
-
var __spreadProps$
|
|
1232
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
1233
1233
|
var __objRest$q = (source, exclude) => {
|
|
1234
1234
|
var target = {};
|
|
1235
1235
|
for (var prop in source)
|
|
1236
|
-
if (__hasOwnProp$
|
|
1236
|
+
if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1237
1237
|
target[prop] = source[prop];
|
|
1238
|
-
if (source != null && __getOwnPropSymbols$
|
|
1239
|
-
for (var prop of __getOwnPropSymbols$
|
|
1240
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1238
|
+
if (source != null && __getOwnPropSymbols$I)
|
|
1239
|
+
for (var prop of __getOwnPropSymbols$I(source)) {
|
|
1240
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
|
|
1241
1241
|
target[prop] = source[prop];
|
|
1242
1242
|
}
|
|
1243
1243
|
return target;
|
|
1244
1244
|
};
|
|
1245
1245
|
const useListCarriers = (params) => {
|
|
1246
1246
|
const { client } = useShipEngine();
|
|
1247
|
-
const _a = __spreadValues$
|
|
1248
|
-
return reactQuery.useQuery(__spreadProps$
|
|
1247
|
+
const _a = __spreadValues$z({}, params), { queryFnParams } = _a, rest = __objRest$q(_a, ["queryFnParams"]);
|
|
1248
|
+
return reactQuery.useQuery(__spreadProps$y(__spreadValues$z({}, rest), {
|
|
1249
1249
|
onError,
|
|
1250
1250
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
1251
1251
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -1253,17 +1253,17 @@ const useListCarriers = (params) => {
|
|
|
1253
1253
|
}));
|
|
1254
1254
|
};
|
|
1255
1255
|
|
|
1256
|
-
var __getOwnPropSymbols$
|
|
1257
|
-
var __hasOwnProp$
|
|
1258
|
-
var __propIsEnum$
|
|
1256
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
1257
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
1258
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
1259
1259
|
var __objRest$p = (source, exclude) => {
|
|
1260
1260
|
var target = {};
|
|
1261
1261
|
for (var prop in source)
|
|
1262
|
-
if (__hasOwnProp$
|
|
1262
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1263
1263
|
target[prop] = source[prop];
|
|
1264
|
-
if (source != null && __getOwnPropSymbols$
|
|
1265
|
-
for (var prop of __getOwnPropSymbols$
|
|
1266
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1264
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
1265
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
1266
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
1267
1267
|
target[prop] = source[prop];
|
|
1268
1268
|
}
|
|
1269
1269
|
return target;
|
|
@@ -1354,17 +1354,17 @@ const useDeleteCarrier = () => {
|
|
|
1354
1354
|
});
|
|
1355
1355
|
};
|
|
1356
1356
|
|
|
1357
|
-
var __getOwnPropSymbols$
|
|
1358
|
-
var __hasOwnProp$
|
|
1359
|
-
var __propIsEnum$
|
|
1357
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
1358
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
1359
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
1360
1360
|
var __objRest$o = (source, exclude) => {
|
|
1361
1361
|
var target = {};
|
|
1362
1362
|
for (var prop in source)
|
|
1363
|
-
if (__hasOwnProp$
|
|
1363
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1364
1364
|
target[prop] = source[prop];
|
|
1365
|
-
if (source != null && __getOwnPropSymbols$
|
|
1366
|
-
for (var prop of __getOwnPropSymbols$
|
|
1367
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1365
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
1366
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
1367
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
1368
1368
|
target[prop] = source[prop];
|
|
1369
1369
|
}
|
|
1370
1370
|
return target;
|
|
@@ -1381,17 +1381,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
1381
1381
|
});
|
|
1382
1382
|
};
|
|
1383
1383
|
|
|
1384
|
-
var __getOwnPropSymbols$
|
|
1385
|
-
var __hasOwnProp$
|
|
1386
|
-
var __propIsEnum$
|
|
1384
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
1385
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
1386
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
1387
1387
|
var __objRest$n = (source, exclude) => {
|
|
1388
1388
|
var target = {};
|
|
1389
1389
|
for (var prop in source)
|
|
1390
|
-
if (__hasOwnProp$
|
|
1390
|
+
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1391
1391
|
target[prop] = source[prop];
|
|
1392
|
-
if (source != null && __getOwnPropSymbols$
|
|
1393
|
-
for (var prop of __getOwnPropSymbols$
|
|
1394
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1392
|
+
if (source != null && __getOwnPropSymbols$F)
|
|
1393
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
1394
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
1395
1395
|
target[prop] = source[prop];
|
|
1396
1396
|
}
|
|
1397
1397
|
return target;
|
|
@@ -1408,25 +1408,25 @@ const useListCarrierConnections = (_params) => {
|
|
|
1408
1408
|
});
|
|
1409
1409
|
};
|
|
1410
1410
|
|
|
1411
|
-
var __defProp$
|
|
1412
|
-
var __defProps$
|
|
1413
|
-
var __getOwnPropDescs$
|
|
1414
|
-
var __getOwnPropSymbols$
|
|
1415
|
-
var __hasOwnProp$
|
|
1416
|
-
var __propIsEnum$
|
|
1417
|
-
var __defNormalProp$
|
|
1418
|
-
var __spreadValues$
|
|
1411
|
+
var __defProp$y = Object.defineProperty;
|
|
1412
|
+
var __defProps$x = Object.defineProperties;
|
|
1413
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
1414
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
1415
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
1416
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
1417
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1418
|
+
var __spreadValues$y = (a, b) => {
|
|
1419
1419
|
for (var prop in b || (b = {}))
|
|
1420
|
-
if (__hasOwnProp$
|
|
1421
|
-
__defNormalProp$
|
|
1422
|
-
if (__getOwnPropSymbols$
|
|
1423
|
-
for (var prop of __getOwnPropSymbols$
|
|
1424
|
-
if (__propIsEnum$
|
|
1425
|
-
__defNormalProp$
|
|
1420
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
1421
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
1422
|
+
if (__getOwnPropSymbols$E)
|
|
1423
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
1424
|
+
if (__propIsEnum$E.call(b, prop))
|
|
1425
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
1426
1426
|
}
|
|
1427
1427
|
return a;
|
|
1428
1428
|
};
|
|
1429
|
-
var __spreadProps$
|
|
1429
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
1430
1430
|
var __async$L = (__this, __arguments, generator) => {
|
|
1431
1431
|
return new Promise((resolve, reject) => {
|
|
1432
1432
|
var fulfilled = (value) => {
|
|
@@ -1451,7 +1451,7 @@ const useConnectCarrierAccount = () => {
|
|
|
1451
1451
|
const { client } = useShipEngine();
|
|
1452
1452
|
return reactQuery.useMutation({
|
|
1453
1453
|
mutationFn: (_0) => __async$L(void 0, [_0], function* ({ carrierName, formData }) {
|
|
1454
|
-
const formDataWithFlag = __spreadProps$
|
|
1454
|
+
const formDataWithFlag = __spreadProps$x(__spreadValues$y({}, formData), { __skipDecamelize: true });
|
|
1455
1455
|
const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
|
|
1456
1456
|
return result.data;
|
|
1457
1457
|
}),
|
|
@@ -1471,33 +1471,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
1471
1471
|
});
|
|
1472
1472
|
};
|
|
1473
1473
|
|
|
1474
|
-
var __defProp$
|
|
1475
|
-
var __defProps$
|
|
1476
|
-
var __getOwnPropDescs$
|
|
1477
|
-
var __getOwnPropSymbols$
|
|
1478
|
-
var __hasOwnProp$
|
|
1479
|
-
var __propIsEnum$
|
|
1480
|
-
var __defNormalProp$
|
|
1481
|
-
var __spreadValues$
|
|
1482
|
-
for (var prop in b || (b = {}))
|
|
1483
|
-
if (__hasOwnProp$
|
|
1484
|
-
__defNormalProp$
|
|
1485
|
-
if (__getOwnPropSymbols$
|
|
1486
|
-
for (var prop of __getOwnPropSymbols$
|
|
1487
|
-
if (__propIsEnum$
|
|
1488
|
-
__defNormalProp$
|
|
1474
|
+
var __defProp$x = Object.defineProperty;
|
|
1475
|
+
var __defProps$w = Object.defineProperties;
|
|
1476
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
1477
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
1478
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
1479
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
1480
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1481
|
+
var __spreadValues$x = (a, b) => {
|
|
1482
|
+
for (var prop in b || (b = {}))
|
|
1483
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
1484
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
1485
|
+
if (__getOwnPropSymbols$D)
|
|
1486
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
1487
|
+
if (__propIsEnum$D.call(b, prop))
|
|
1488
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
1489
1489
|
}
|
|
1490
1490
|
return a;
|
|
1491
1491
|
};
|
|
1492
|
-
var __spreadProps$
|
|
1492
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
1493
1493
|
var __objRest$m = (source, exclude) => {
|
|
1494
1494
|
var target = {};
|
|
1495
1495
|
for (var prop in source)
|
|
1496
|
-
if (__hasOwnProp$
|
|
1496
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1497
1497
|
target[prop] = source[prop];
|
|
1498
|
-
if (source != null && __getOwnPropSymbols$
|
|
1499
|
-
for (var prop of __getOwnPropSymbols$
|
|
1500
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1498
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
1499
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
1500
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
1501
1501
|
target[prop] = source[prop];
|
|
1502
1502
|
}
|
|
1503
1503
|
return target;
|
|
@@ -1510,7 +1510,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
1510
1510
|
]);
|
|
1511
1511
|
const { client } = useShipEngine();
|
|
1512
1512
|
const { carrierName, carrierId } = queryFnParams;
|
|
1513
|
-
return reactQuery.useQuery(__spreadProps$
|
|
1513
|
+
return reactQuery.useQuery(__spreadProps$w(__spreadValues$x({}, params), {
|
|
1514
1514
|
onError,
|
|
1515
1515
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
1516
1516
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -1518,25 +1518,25 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
1518
1518
|
}));
|
|
1519
1519
|
};
|
|
1520
1520
|
|
|
1521
|
-
var __defProp$
|
|
1522
|
-
var __defProps$
|
|
1523
|
-
var __getOwnPropDescs$
|
|
1524
|
-
var __getOwnPropSymbols$
|
|
1525
|
-
var __hasOwnProp$
|
|
1526
|
-
var __propIsEnum$
|
|
1527
|
-
var __defNormalProp$
|
|
1528
|
-
var __spreadValues$
|
|
1521
|
+
var __defProp$w = Object.defineProperty;
|
|
1522
|
+
var __defProps$v = Object.defineProperties;
|
|
1523
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
1524
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
1525
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
1526
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
1527
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1528
|
+
var __spreadValues$w = (a, b) => {
|
|
1529
1529
|
for (var prop in b || (b = {}))
|
|
1530
|
-
if (__hasOwnProp$
|
|
1531
|
-
__defNormalProp$
|
|
1532
|
-
if (__getOwnPropSymbols$
|
|
1533
|
-
for (var prop of __getOwnPropSymbols$
|
|
1534
|
-
if (__propIsEnum$
|
|
1535
|
-
__defNormalProp$
|
|
1530
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
1531
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1532
|
+
if (__getOwnPropSymbols$C)
|
|
1533
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
1534
|
+
if (__propIsEnum$C.call(b, prop))
|
|
1535
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
1536
1536
|
}
|
|
1537
1537
|
return a;
|
|
1538
1538
|
};
|
|
1539
|
-
var __spreadProps$
|
|
1539
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
1540
1540
|
var __async$K = (__this, __arguments, generator) => {
|
|
1541
1541
|
return new Promise((resolve, reject) => {
|
|
1542
1542
|
var fulfilled = (value) => {
|
|
@@ -1559,7 +1559,7 @@ var __async$K = (__this, __arguments, generator) => {
|
|
|
1559
1559
|
};
|
|
1560
1560
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
1561
1561
|
const { client } = useShipEngine();
|
|
1562
|
-
return reactQuery.useMutation(__spreadProps$
|
|
1562
|
+
return reactQuery.useMutation(__spreadProps$v(__spreadValues$w({}, params), {
|
|
1563
1563
|
mutationFn: (_0) => __async$K(void 0, [_0], function* ({
|
|
1564
1564
|
carrierName,
|
|
1565
1565
|
carrierId,
|
|
@@ -1577,25 +1577,25 @@ const useUpdateConnectionsCarrierSettings = (params) => {
|
|
|
1577
1577
|
}));
|
|
1578
1578
|
};
|
|
1579
1579
|
|
|
1580
|
-
var __defProp$
|
|
1581
|
-
var __defProps$
|
|
1582
|
-
var __getOwnPropDescs$
|
|
1583
|
-
var __getOwnPropSymbols$
|
|
1584
|
-
var __hasOwnProp$
|
|
1585
|
-
var __propIsEnum$
|
|
1586
|
-
var __defNormalProp$
|
|
1587
|
-
var __spreadValues$
|
|
1580
|
+
var __defProp$v = Object.defineProperty;
|
|
1581
|
+
var __defProps$u = Object.defineProperties;
|
|
1582
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
1583
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
1584
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
1585
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
1586
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1587
|
+
var __spreadValues$v = (a, b) => {
|
|
1588
1588
|
for (var prop in b || (b = {}))
|
|
1589
|
-
if (__hasOwnProp$
|
|
1590
|
-
__defNormalProp$
|
|
1591
|
-
if (__getOwnPropSymbols$
|
|
1592
|
-
for (var prop of __getOwnPropSymbols$
|
|
1593
|
-
if (__propIsEnum$
|
|
1594
|
-
__defNormalProp$
|
|
1589
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
1590
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
1591
|
+
if (__getOwnPropSymbols$B)
|
|
1592
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
1593
|
+
if (__propIsEnum$B.call(b, prop))
|
|
1594
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
1595
1595
|
}
|
|
1596
1596
|
return a;
|
|
1597
1597
|
};
|
|
1598
|
-
var __spreadProps$
|
|
1598
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
1599
1599
|
var __async$J = (__this, __arguments, generator) => {
|
|
1600
1600
|
return new Promise((resolve, reject) => {
|
|
1601
1601
|
var fulfilled = (value) => {
|
|
@@ -1618,7 +1618,7 @@ var __async$J = (__this, __arguments, generator) => {
|
|
|
1618
1618
|
};
|
|
1619
1619
|
const useRequestStampsAccountUrls = (params) => {
|
|
1620
1620
|
const { client } = useShipEngine();
|
|
1621
|
-
return reactQuery.useMutation(__spreadProps$
|
|
1621
|
+
return reactQuery.useMutation(__spreadProps$u(__spreadValues$v({}, params), {
|
|
1622
1622
|
mutationFn: (request) => __async$J(void 0, null, function* () {
|
|
1623
1623
|
const result = yield client.connections.requestStampsAccountUrls(request);
|
|
1624
1624
|
return result.data;
|
|
@@ -1734,29 +1734,29 @@ const useFundingSourcesAddFunds = () => {
|
|
|
1734
1734
|
});
|
|
1735
1735
|
};
|
|
1736
1736
|
|
|
1737
|
-
var __defProp$
|
|
1738
|
-
var __defProps$
|
|
1739
|
-
var __getOwnPropDescs$
|
|
1740
|
-
var __getOwnPropSymbols$
|
|
1741
|
-
var __hasOwnProp$
|
|
1742
|
-
var __propIsEnum$
|
|
1743
|
-
var __defNormalProp$
|
|
1744
|
-
var __spreadValues$
|
|
1737
|
+
var __defProp$u = Object.defineProperty;
|
|
1738
|
+
var __defProps$t = Object.defineProperties;
|
|
1739
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
1740
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
1741
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
1742
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
1743
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1744
|
+
var __spreadValues$u = (a, b) => {
|
|
1745
1745
|
for (var prop in b || (b = {}))
|
|
1746
|
-
if (__hasOwnProp$
|
|
1747
|
-
__defNormalProp$
|
|
1748
|
-
if (__getOwnPropSymbols$
|
|
1749
|
-
for (var prop of __getOwnPropSymbols$
|
|
1750
|
-
if (__propIsEnum$
|
|
1751
|
-
__defNormalProp$
|
|
1746
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
1747
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
1748
|
+
if (__getOwnPropSymbols$A)
|
|
1749
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
1750
|
+
if (__propIsEnum$A.call(b, prop))
|
|
1751
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
1752
1752
|
}
|
|
1753
1753
|
return a;
|
|
1754
1754
|
};
|
|
1755
|
-
var __spreadProps$
|
|
1755
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
1756
1756
|
const useGetFundingSourceAcceptedTerms = (fundingSourceId, params) => {
|
|
1757
1757
|
const { client } = useShipEngine();
|
|
1758
|
-
const queryParams = __spreadValues$
|
|
1759
|
-
return reactQuery.useQuery(__spreadProps$
|
|
1758
|
+
const queryParams = __spreadValues$u({}, params);
|
|
1759
|
+
return reactQuery.useQuery(__spreadProps$t(__spreadValues$u({}, queryParams), {
|
|
1760
1760
|
onError,
|
|
1761
1761
|
queryFn: () => client.fundingSources.acceptedTerms(fundingSourceId),
|
|
1762
1762
|
queryKey: ["useGetFundingSourceAcceptedTerms", fundingSourceId],
|
|
@@ -1880,29 +1880,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
|
|
|
1880
1880
|
});
|
|
1881
1881
|
};
|
|
1882
1882
|
|
|
1883
|
-
var __defProp$
|
|
1884
|
-
var __defProps$
|
|
1885
|
-
var __getOwnPropDescs$
|
|
1886
|
-
var __getOwnPropSymbols$
|
|
1887
|
-
var __hasOwnProp$
|
|
1888
|
-
var __propIsEnum$
|
|
1889
|
-
var __defNormalProp$
|
|
1890
|
-
var __spreadValues$
|
|
1883
|
+
var __defProp$t = Object.defineProperty;
|
|
1884
|
+
var __defProps$s = Object.defineProperties;
|
|
1885
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
1886
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
1887
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
1888
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
1889
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1890
|
+
var __spreadValues$t = (a, b) => {
|
|
1891
1891
|
for (var prop in b || (b = {}))
|
|
1892
|
-
if (__hasOwnProp$
|
|
1893
|
-
__defNormalProp$
|
|
1894
|
-
if (__getOwnPropSymbols$
|
|
1895
|
-
for (var prop of __getOwnPropSymbols$
|
|
1896
|
-
if (__propIsEnum$
|
|
1897
|
-
__defNormalProp$
|
|
1892
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
1893
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
1894
|
+
if (__getOwnPropSymbols$z)
|
|
1895
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
1896
|
+
if (__propIsEnum$z.call(b, prop))
|
|
1897
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
1898
1898
|
}
|
|
1899
1899
|
return a;
|
|
1900
1900
|
};
|
|
1901
|
-
var __spreadProps$
|
|
1901
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
1902
1902
|
const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
|
|
1903
1903
|
const { client } = useShipEngine();
|
|
1904
|
-
const queryParams = __spreadValues$
|
|
1905
|
-
return reactQuery.useQuery(__spreadProps$
|
|
1904
|
+
const queryParams = __spreadValues$t({}, params);
|
|
1905
|
+
return reactQuery.useQuery(__spreadProps$s(__spreadValues$t({}, queryParams), {
|
|
1906
1906
|
onError,
|
|
1907
1907
|
queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
|
|
1908
1908
|
queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
|
|
@@ -1925,17 +1925,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
1925
1925
|
});
|
|
1926
1926
|
};
|
|
1927
1927
|
|
|
1928
|
-
var __getOwnPropSymbols$
|
|
1929
|
-
var __hasOwnProp$
|
|
1930
|
-
var __propIsEnum$
|
|
1928
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
1929
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
1930
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
1931
1931
|
var __objRest$l = (source, exclude) => {
|
|
1932
1932
|
var target = {};
|
|
1933
1933
|
for (var prop in source)
|
|
1934
|
-
if (__hasOwnProp$
|
|
1934
|
+
if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1935
1935
|
target[prop] = source[prop];
|
|
1936
|
-
if (source != null && __getOwnPropSymbols$
|
|
1937
|
-
for (var prop of __getOwnPropSymbols$
|
|
1938
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1936
|
+
if (source != null && __getOwnPropSymbols$y)
|
|
1937
|
+
for (var prop of __getOwnPropSymbols$y(source)) {
|
|
1938
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
|
|
1939
1939
|
target[prop] = source[prop];
|
|
1940
1940
|
}
|
|
1941
1941
|
return target;
|
|
@@ -1973,6 +1973,57 @@ const useAddInsuranceFunds = () => {
|
|
|
1973
1973
|
});
|
|
1974
1974
|
};
|
|
1975
1975
|
|
|
1976
|
+
var __defProp$s = Object.defineProperty;
|
|
1977
|
+
var __defProps$r = Object.defineProperties;
|
|
1978
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
1979
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
1980
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
1981
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
1982
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1983
|
+
var __spreadValues$s = (a, b) => {
|
|
1984
|
+
for (var prop in b || (b = {}))
|
|
1985
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
1986
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
1987
|
+
if (__getOwnPropSymbols$x)
|
|
1988
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
1989
|
+
if (__propIsEnum$x.call(b, prop))
|
|
1990
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
1991
|
+
}
|
|
1992
|
+
return a;
|
|
1993
|
+
};
|
|
1994
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
1995
|
+
var __async$C = (__this, __arguments, generator) => {
|
|
1996
|
+
return new Promise((resolve, reject) => {
|
|
1997
|
+
var fulfilled = (value) => {
|
|
1998
|
+
try {
|
|
1999
|
+
step(generator.next(value));
|
|
2000
|
+
} catch (e) {
|
|
2001
|
+
reject(e);
|
|
2002
|
+
}
|
|
2003
|
+
};
|
|
2004
|
+
var rejected = (value) => {
|
|
2005
|
+
try {
|
|
2006
|
+
step(generator.throw(value));
|
|
2007
|
+
} catch (e) {
|
|
2008
|
+
reject(e);
|
|
2009
|
+
}
|
|
2010
|
+
};
|
|
2011
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2012
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
2013
|
+
});
|
|
2014
|
+
};
|
|
2015
|
+
const useCreateInvoiceAddress = (params) => {
|
|
2016
|
+
const { client } = useShipEngine();
|
|
2017
|
+
return reactQuery.useMutation(__spreadProps$r(__spreadValues$s({}, params), {
|
|
2018
|
+
mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
|
|
2019
|
+
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
2020
|
+
return result.data;
|
|
2021
|
+
}),
|
|
2022
|
+
mutationKey: ["useCreateInvoiceAddress"],
|
|
2023
|
+
onError
|
|
2024
|
+
}));
|
|
2025
|
+
};
|
|
2026
|
+
|
|
1976
2027
|
var __defProp$r = Object.defineProperty;
|
|
1977
2028
|
var __defProps$q = Object.defineProperties;
|
|
1978
2029
|
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
@@ -1992,7 +2043,7 @@ var __spreadValues$r = (a, b) => {
|
|
|
1992
2043
|
return a;
|
|
1993
2044
|
};
|
|
1994
2045
|
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
1995
|
-
var __async$
|
|
2046
|
+
var __async$B = (__this, __arguments, generator) => {
|
|
1996
2047
|
return new Promise((resolve, reject) => {
|
|
1997
2048
|
var fulfilled = (value) => {
|
|
1998
2049
|
try {
|
|
@@ -2012,14 +2063,14 @@ var __async$C = (__this, __arguments, generator) => {
|
|
|
2012
2063
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2013
2064
|
});
|
|
2014
2065
|
};
|
|
2015
|
-
const
|
|
2066
|
+
const useUpdateInvoiceAddress = (params) => {
|
|
2016
2067
|
const { client } = useShipEngine();
|
|
2017
2068
|
return reactQuery.useMutation(__spreadProps$q(__spreadValues$r({}, params), {
|
|
2018
|
-
mutationFn: (invoiceAddress) => __async$
|
|
2019
|
-
const result = yield client.invoiceAddress.
|
|
2069
|
+
mutationFn: (invoiceAddress) => __async$B(void 0, null, function* () {
|
|
2070
|
+
const result = yield client.invoiceAddress.update(invoiceAddress);
|
|
2020
2071
|
return result.data;
|
|
2021
2072
|
}),
|
|
2022
|
-
mutationKey: ["
|
|
2073
|
+
mutationKey: ["useUpdateInvoiceAddress"],
|
|
2023
2074
|
onError
|
|
2024
2075
|
}));
|
|
2025
2076
|
};
|
|
@@ -2043,7 +2094,17 @@ var __spreadValues$q = (a, b) => {
|
|
|
2043
2094
|
return a;
|
|
2044
2095
|
};
|
|
2045
2096
|
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
2046
|
-
|
|
2097
|
+
const useGetInvoiceAddress = (params) => {
|
|
2098
|
+
const { client } = useShipEngine();
|
|
2099
|
+
return reactQuery.useQuery(__spreadProps$p(__spreadValues$q({}, params), {
|
|
2100
|
+
onError,
|
|
2101
|
+
queryFn: () => client.invoiceAddress.get(),
|
|
2102
|
+
queryKey: ["useGetInvoiceAddress"],
|
|
2103
|
+
select: (result) => result.data
|
|
2104
|
+
}));
|
|
2105
|
+
};
|
|
2106
|
+
|
|
2107
|
+
var __async$A = (__this, __arguments, generator) => {
|
|
2047
2108
|
return new Promise((resolve, reject) => {
|
|
2048
2109
|
var fulfilled = (value) => {
|
|
2049
2110
|
try {
|
|
@@ -2063,16 +2124,16 @@ var __async$B = (__this, __arguments, generator) => {
|
|
|
2063
2124
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2064
2125
|
});
|
|
2065
2126
|
};
|
|
2066
|
-
const
|
|
2127
|
+
const useCancelRefund = () => {
|
|
2067
2128
|
const { client } = useShipEngine();
|
|
2068
|
-
return reactQuery.useMutation(
|
|
2069
|
-
mutationFn: (
|
|
2070
|
-
const result = yield client.
|
|
2129
|
+
return reactQuery.useMutation({
|
|
2130
|
+
mutationFn: (labelId) => __async$A(void 0, null, function* () {
|
|
2131
|
+
const result = yield client.labels.cancelRefund(labelId);
|
|
2071
2132
|
return result.data;
|
|
2072
2133
|
}),
|
|
2073
|
-
mutationKey: ["
|
|
2134
|
+
mutationKey: ["useCancelRefund"],
|
|
2074
2135
|
onError
|
|
2075
|
-
})
|
|
2136
|
+
});
|
|
2076
2137
|
};
|
|
2077
2138
|
|
|
2078
2139
|
var __defProp$p = Object.defineProperty;
|
|
@@ -2094,17 +2155,19 @@ var __spreadValues$p = (a, b) => {
|
|
|
2094
2155
|
return a;
|
|
2095
2156
|
};
|
|
2096
2157
|
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2158
|
+
var __objRest$k = (source, exclude) => {
|
|
2159
|
+
var target = {};
|
|
2160
|
+
for (var prop in source)
|
|
2161
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2162
|
+
target[prop] = source[prop];
|
|
2163
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
2164
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
2165
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
2166
|
+
target[prop] = source[prop];
|
|
2167
|
+
}
|
|
2168
|
+
return target;
|
|
2105
2169
|
};
|
|
2106
|
-
|
|
2107
|
-
var __async$A = (__this, __arguments, generator) => {
|
|
2170
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
2108
2171
|
return new Promise((resolve, reject) => {
|
|
2109
2172
|
var fulfilled = (value) => {
|
|
2110
2173
|
try {
|
|
@@ -2124,16 +2187,17 @@ var __async$A = (__this, __arguments, generator) => {
|
|
|
2124
2187
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2125
2188
|
});
|
|
2126
2189
|
};
|
|
2127
|
-
const
|
|
2190
|
+
const useCreateLabelByRateId = (params) => {
|
|
2128
2191
|
const { client } = useShipEngine();
|
|
2129
|
-
return reactQuery.useMutation({
|
|
2130
|
-
mutationFn: (
|
|
2131
|
-
|
|
2192
|
+
return reactQuery.useMutation(__spreadProps$o(__spreadValues$p({}, params), {
|
|
2193
|
+
mutationFn: (_a) => __async$z(void 0, null, function* () {
|
|
2194
|
+
var _b = _a, { rateId } = _b, options = __objRest$k(_b, ["rateId"]);
|
|
2195
|
+
const result = yield client.labels.createByRateId(rateId, options);
|
|
2132
2196
|
return result.data;
|
|
2133
2197
|
}),
|
|
2134
|
-
mutationKey: ["
|
|
2198
|
+
mutationKey: ["useCreateLabelByRateId"],
|
|
2135
2199
|
onError
|
|
2136
|
-
});
|
|
2200
|
+
}));
|
|
2137
2201
|
};
|
|
2138
2202
|
|
|
2139
2203
|
var __defProp$o = Object.defineProperty;
|
|
@@ -2155,7 +2219,7 @@ var __spreadValues$o = (a, b) => {
|
|
|
2155
2219
|
return a;
|
|
2156
2220
|
};
|
|
2157
2221
|
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
2158
|
-
var __objRest$
|
|
2222
|
+
var __objRest$j = (source, exclude) => {
|
|
2159
2223
|
var target = {};
|
|
2160
2224
|
for (var prop in source)
|
|
2161
2225
|
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2167,7 +2231,7 @@ var __objRest$k = (source, exclude) => {
|
|
|
2167
2231
|
}
|
|
2168
2232
|
return target;
|
|
2169
2233
|
};
|
|
2170
|
-
var __async$
|
|
2234
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
2171
2235
|
return new Promise((resolve, reject) => {
|
|
2172
2236
|
var fulfilled = (value) => {
|
|
2173
2237
|
try {
|
|
@@ -2187,15 +2251,15 @@ var __async$z = (__this, __arguments, generator) => {
|
|
|
2187
2251
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2188
2252
|
});
|
|
2189
2253
|
};
|
|
2190
|
-
const
|
|
2254
|
+
const useCreateLabelByShipmentId = (params) => {
|
|
2191
2255
|
const { client } = useShipEngine();
|
|
2192
2256
|
return reactQuery.useMutation(__spreadProps$n(__spreadValues$o({}, params), {
|
|
2193
|
-
mutationFn: (_a) => __async$
|
|
2194
|
-
var _b = _a, {
|
|
2195
|
-
const result = yield client.labels.
|
|
2257
|
+
mutationFn: (_a) => __async$y(void 0, null, function* () {
|
|
2258
|
+
var _b = _a, { shipmentId } = _b, options = __objRest$j(_b, ["shipmentId"]);
|
|
2259
|
+
const result = yield client.labels.createByShipmentId(shipmentId, options);
|
|
2196
2260
|
return result.data;
|
|
2197
2261
|
}),
|
|
2198
|
-
mutationKey: ["
|
|
2262
|
+
mutationKey: ["useCreateLabelByShipmentId"],
|
|
2199
2263
|
onError
|
|
2200
2264
|
}));
|
|
2201
2265
|
};
|
|
@@ -2219,7 +2283,7 @@ var __spreadValues$n = (a, b) => {
|
|
|
2219
2283
|
return a;
|
|
2220
2284
|
};
|
|
2221
2285
|
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
2222
|
-
var __objRest$
|
|
2286
|
+
var __objRest$i = (source, exclude) => {
|
|
2223
2287
|
var target = {};
|
|
2224
2288
|
for (var prop in source)
|
|
2225
2289
|
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2231,7 +2295,7 @@ var __objRest$j = (source, exclude) => {
|
|
|
2231
2295
|
}
|
|
2232
2296
|
return target;
|
|
2233
2297
|
};
|
|
2234
|
-
var __async$
|
|
2298
|
+
var __async$x = (__this, __arguments, generator) => {
|
|
2235
2299
|
return new Promise((resolve, reject) => {
|
|
2236
2300
|
var fulfilled = (value) => {
|
|
2237
2301
|
try {
|
|
@@ -2251,15 +2315,15 @@ var __async$y = (__this, __arguments, generator) => {
|
|
|
2251
2315
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
2252
2316
|
});
|
|
2253
2317
|
};
|
|
2254
|
-
const
|
|
2318
|
+
const useCreateLabel = (params) => {
|
|
2255
2319
|
const { client } = useShipEngine();
|
|
2256
2320
|
return reactQuery.useMutation(__spreadProps$m(__spreadValues$n({}, params), {
|
|
2257
|
-
mutationFn: (_a) => __async$
|
|
2258
|
-
var _b = _a, {
|
|
2259
|
-
const result = yield client.labels.
|
|
2321
|
+
mutationFn: (_a) => __async$x(void 0, null, function* () {
|
|
2322
|
+
var _b = _a, { rateId } = _b, options = __objRest$i(_b, ["rateId"]);
|
|
2323
|
+
const result = yield client.labels.createByRateId(rateId, options);
|
|
2260
2324
|
return result.data;
|
|
2261
2325
|
}),
|
|
2262
|
-
mutationKey: ["
|
|
2326
|
+
mutationKey: ["useCreateLabel"],
|
|
2263
2327
|
onError
|
|
2264
2328
|
}));
|
|
2265
2329
|
};
|
|
@@ -2283,7 +2347,7 @@ var __spreadValues$m = (a, b) => {
|
|
|
2283
2347
|
return a;
|
|
2284
2348
|
};
|
|
2285
2349
|
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
2286
|
-
var __objRest$
|
|
2350
|
+
var __objRest$h = (source, exclude) => {
|
|
2287
2351
|
var target = {};
|
|
2288
2352
|
for (var prop in source)
|
|
2289
2353
|
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2295,39 +2359,31 @@ var __objRest$i = (source, exclude) => {
|
|
|
2295
2359
|
}
|
|
2296
2360
|
return target;
|
|
2297
2361
|
};
|
|
2298
|
-
|
|
2299
|
-
return new Promise((resolve, reject) => {
|
|
2300
|
-
var fulfilled = (value) => {
|
|
2301
|
-
try {
|
|
2302
|
-
step(generator.next(value));
|
|
2303
|
-
} catch (e) {
|
|
2304
|
-
reject(e);
|
|
2305
|
-
}
|
|
2306
|
-
};
|
|
2307
|
-
var rejected = (value) => {
|
|
2308
|
-
try {
|
|
2309
|
-
step(generator.throw(value));
|
|
2310
|
-
} catch (e) {
|
|
2311
|
-
reject(e);
|
|
2312
|
-
}
|
|
2313
|
-
};
|
|
2314
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2315
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
2316
|
-
});
|
|
2317
|
-
};
|
|
2318
|
-
const useCreateLabel = (params) => {
|
|
2362
|
+
const useExportLabels = (params) => {
|
|
2319
2363
|
const { client } = useShipEngine();
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
}),
|
|
2326
|
-
mutationKey: ["useCreateLabel"],
|
|
2327
|
-
onError
|
|
2364
|
+
const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
|
|
2365
|
+
return reactQuery.useQuery(__spreadProps$l(__spreadValues$m({}, rest), {
|
|
2366
|
+
onError,
|
|
2367
|
+
queryFn: () => client.labels.export(queryFnParams),
|
|
2368
|
+
queryKey: ["useExportLabels", params]
|
|
2328
2369
|
}));
|
|
2329
2370
|
};
|
|
2330
2371
|
|
|
2372
|
+
const useGetLabel = (labelId) => {
|
|
2373
|
+
const { client } = useShipEngine();
|
|
2374
|
+
return reactQuery.useQuery({
|
|
2375
|
+
enabled: labelId !== void 0,
|
|
2376
|
+
onError,
|
|
2377
|
+
queryFn: () => {
|
|
2378
|
+
if (labelId)
|
|
2379
|
+
return client.labels.get(labelId);
|
|
2380
|
+
return Promise.reject(new Error("labelId is require"));
|
|
2381
|
+
},
|
|
2382
|
+
queryKey: ["useGetLabel", labelId],
|
|
2383
|
+
select: (result) => result.data
|
|
2384
|
+
});
|
|
2385
|
+
};
|
|
2386
|
+
|
|
2331
2387
|
var __defProp$l = Object.defineProperty;
|
|
2332
2388
|
var __defProps$k = Object.defineProperties;
|
|
2333
2389
|
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
@@ -2347,7 +2403,7 @@ var __spreadValues$l = (a, b) => {
|
|
|
2347
2403
|
return a;
|
|
2348
2404
|
};
|
|
2349
2405
|
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
2350
|
-
var __objRest$
|
|
2406
|
+
var __objRest$g = (source, exclude) => {
|
|
2351
2407
|
var target = {};
|
|
2352
2408
|
for (var prop in source)
|
|
2353
2409
|
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2359,29 +2415,15 @@ var __objRest$h = (source, exclude) => {
|
|
|
2359
2415
|
}
|
|
2360
2416
|
return target;
|
|
2361
2417
|
};
|
|
2362
|
-
const
|
|
2418
|
+
const useListLabels = (params) => {
|
|
2363
2419
|
const { client } = useShipEngine();
|
|
2364
|
-
const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$
|
|
2420
|
+
const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
|
|
2365
2421
|
return reactQuery.useQuery(__spreadProps$k(__spreadValues$l({}, rest), {
|
|
2366
2422
|
onError,
|
|
2367
|
-
queryFn: () => client.labels.
|
|
2368
|
-
queryKey: ["
|
|
2369
|
-
}));
|
|
2370
|
-
};
|
|
2371
|
-
|
|
2372
|
-
const useGetLabel = (labelId) => {
|
|
2373
|
-
const { client } = useShipEngine();
|
|
2374
|
-
return reactQuery.useQuery({
|
|
2375
|
-
enabled: labelId !== void 0,
|
|
2376
|
-
onError,
|
|
2377
|
-
queryFn: () => {
|
|
2378
|
-
if (labelId)
|
|
2379
|
-
return client.labels.get(labelId);
|
|
2380
|
-
return Promise.reject(new Error("labelId is require"));
|
|
2381
|
-
},
|
|
2382
|
-
queryKey: ["useGetLabel", labelId],
|
|
2423
|
+
queryFn: () => client.labels.list(queryFnParams),
|
|
2424
|
+
queryKey: ["useListLabels", params],
|
|
2383
2425
|
select: (result) => result.data
|
|
2384
|
-
});
|
|
2426
|
+
}));
|
|
2385
2427
|
};
|
|
2386
2428
|
|
|
2387
2429
|
var __defProp$k = Object.defineProperty;
|
|
@@ -2403,7 +2445,7 @@ var __spreadValues$k = (a, b) => {
|
|
|
2403
2445
|
return a;
|
|
2404
2446
|
};
|
|
2405
2447
|
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
2406
|
-
var __objRest$
|
|
2448
|
+
var __objRest$f = (source, exclude) => {
|
|
2407
2449
|
var target = {};
|
|
2408
2450
|
for (var prop in source)
|
|
2409
2451
|
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -2415,48 +2457,6 @@ var __objRest$g = (source, exclude) => {
|
|
|
2415
2457
|
}
|
|
2416
2458
|
return target;
|
|
2417
2459
|
};
|
|
2418
|
-
const useListLabels = (params) => {
|
|
2419
|
-
const { client } = useShipEngine();
|
|
2420
|
-
const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
|
|
2421
|
-
return reactQuery.useQuery(__spreadProps$j(__spreadValues$k({}, rest), {
|
|
2422
|
-
onError,
|
|
2423
|
-
queryFn: () => client.labels.list(queryFnParams),
|
|
2424
|
-
queryKey: ["useListLabels", params],
|
|
2425
|
-
select: (result) => result.data
|
|
2426
|
-
}));
|
|
2427
|
-
};
|
|
2428
|
-
|
|
2429
|
-
var __defProp$j = Object.defineProperty;
|
|
2430
|
-
var __defProps$i = Object.defineProperties;
|
|
2431
|
-
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2432
|
-
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
2433
|
-
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
2434
|
-
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
2435
|
-
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2436
|
-
var __spreadValues$j = (a, b) => {
|
|
2437
|
-
for (var prop in b || (b = {}))
|
|
2438
|
-
if (__hasOwnProp$o.call(b, prop))
|
|
2439
|
-
__defNormalProp$j(a, prop, b[prop]);
|
|
2440
|
-
if (__getOwnPropSymbols$o)
|
|
2441
|
-
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
2442
|
-
if (__propIsEnum$o.call(b, prop))
|
|
2443
|
-
__defNormalProp$j(a, prop, b[prop]);
|
|
2444
|
-
}
|
|
2445
|
-
return a;
|
|
2446
|
-
};
|
|
2447
|
-
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
2448
|
-
var __objRest$f = (source, exclude) => {
|
|
2449
|
-
var target = {};
|
|
2450
|
-
for (var prop in source)
|
|
2451
|
-
if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2452
|
-
target[prop] = source[prop];
|
|
2453
|
-
if (source != null && __getOwnPropSymbols$o)
|
|
2454
|
-
for (var prop of __getOwnPropSymbols$o(source)) {
|
|
2455
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
|
|
2456
|
-
target[prop] = source[prop];
|
|
2457
|
-
}
|
|
2458
|
-
return target;
|
|
2459
|
-
};
|
|
2460
2460
|
var __async$w = (__this, __arguments, generator) => {
|
|
2461
2461
|
return new Promise((resolve, reject) => {
|
|
2462
2462
|
var fulfilled = (value) => {
|
|
@@ -2479,8 +2479,8 @@ var __async$w = (__this, __arguments, generator) => {
|
|
|
2479
2479
|
};
|
|
2480
2480
|
const useListLabelsInfinite = (params) => {
|
|
2481
2481
|
const { client } = useShipEngine();
|
|
2482
|
-
const _a = __spreadValues$
|
|
2483
|
-
return reactQuery.useInfiniteQuery(__spreadProps$
|
|
2482
|
+
const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
|
|
2483
|
+
return reactQuery.useInfiniteQuery(__spreadProps$j(__spreadValues$k({}, rest), {
|
|
2484
2484
|
getNextPageParam: (lastPage) => {
|
|
2485
2485
|
if (lastPage.page < lastPage.pages) {
|
|
2486
2486
|
return lastPage.page + 1;
|
|
@@ -2489,7 +2489,7 @@ const useListLabelsInfinite = (params) => {
|
|
|
2489
2489
|
},
|
|
2490
2490
|
onError,
|
|
2491
2491
|
queryFn: (_0) => __async$w(void 0, [_0], function* ({ pageParam = 1 }) {
|
|
2492
|
-
const response = yield client.labels.list(__spreadProps$
|
|
2492
|
+
const response = yield client.labels.list(__spreadProps$j(__spreadValues$k({}, queryFnParams), { page: pageParam }));
|
|
2493
2493
|
return response.data;
|
|
2494
2494
|
}),
|
|
2495
2495
|
queryKey: ["useListLabelsInfinite", params],
|
|
@@ -2535,28 +2535,28 @@ const useVoidLabel = () => {
|
|
|
2535
2535
|
});
|
|
2536
2536
|
};
|
|
2537
2537
|
|
|
2538
|
-
var __defProp$
|
|
2539
|
-
var __defProps$
|
|
2540
|
-
var __getOwnPropDescs$
|
|
2541
|
-
var __getOwnPropSymbols$
|
|
2542
|
-
var __hasOwnProp$
|
|
2543
|
-
var __propIsEnum$
|
|
2544
|
-
var __defNormalProp$
|
|
2545
|
-
var __spreadValues$
|
|
2538
|
+
var __defProp$j = Object.defineProperty;
|
|
2539
|
+
var __defProps$i = Object.defineProperties;
|
|
2540
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2541
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
2542
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
2543
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
2544
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2545
|
+
var __spreadValues$j = (a, b) => {
|
|
2546
2546
|
for (var prop in b || (b = {}))
|
|
2547
|
-
if (__hasOwnProp$
|
|
2548
|
-
__defNormalProp$
|
|
2549
|
-
if (__getOwnPropSymbols$
|
|
2550
|
-
for (var prop of __getOwnPropSymbols$
|
|
2551
|
-
if (__propIsEnum$
|
|
2552
|
-
__defNormalProp$
|
|
2547
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
2548
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2549
|
+
if (__getOwnPropSymbols$o)
|
|
2550
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
2551
|
+
if (__propIsEnum$o.call(b, prop))
|
|
2552
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
2553
2553
|
}
|
|
2554
2554
|
return a;
|
|
2555
2555
|
};
|
|
2556
|
-
var __spreadProps$
|
|
2556
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
2557
2557
|
const useListOrderSources = (params) => {
|
|
2558
2558
|
const { client } = useShipEngine();
|
|
2559
|
-
return reactQuery.useQuery(__spreadProps$
|
|
2559
|
+
return reactQuery.useQuery(__spreadProps$i(__spreadValues$j({}, params), {
|
|
2560
2560
|
onError,
|
|
2561
2561
|
queryFn: () => client.orderSources.list(),
|
|
2562
2562
|
queryKey: ["useListOrderSources"],
|
|
@@ -2994,17 +2994,17 @@ const useListSalesOrders = (params = {}) => {
|
|
|
2994
2994
|
});
|
|
2995
2995
|
};
|
|
2996
2996
|
|
|
2997
|
-
var __getOwnPropSymbols$
|
|
2998
|
-
var __hasOwnProp$
|
|
2999
|
-
var __propIsEnum$
|
|
2997
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
2998
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
2999
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
3000
3000
|
var __objRest$e = (source, exclude) => {
|
|
3001
3001
|
var target = {};
|
|
3002
3002
|
for (var prop in source)
|
|
3003
|
-
if (__hasOwnProp$
|
|
3003
|
+
if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3004
3004
|
target[prop] = source[prop];
|
|
3005
|
-
if (source != null && __getOwnPropSymbols$
|
|
3006
|
-
for (var prop of __getOwnPropSymbols$
|
|
3007
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3005
|
+
if (source != null && __getOwnPropSymbols$n)
|
|
3006
|
+
for (var prop of __getOwnPropSymbols$n(source)) {
|
|
3007
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
|
|
3008
3008
|
target[prop] = source[prop];
|
|
3009
3009
|
}
|
|
3010
3010
|
return target;
|
|
@@ -3042,17 +3042,17 @@ const useNotifySalesOrderShipped = () => {
|
|
|
3042
3042
|
});
|
|
3043
3043
|
};
|
|
3044
3044
|
|
|
3045
|
-
var __getOwnPropSymbols$
|
|
3046
|
-
var __hasOwnProp$
|
|
3047
|
-
var __propIsEnum$
|
|
3045
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
3046
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
3047
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
3048
3048
|
var __objRest$d = (source, exclude) => {
|
|
3049
3049
|
var target = {};
|
|
3050
3050
|
for (var prop in source)
|
|
3051
|
-
if (__hasOwnProp$
|
|
3051
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3052
3052
|
target[prop] = source[prop];
|
|
3053
|
-
if (source != null && __getOwnPropSymbols$
|
|
3054
|
-
for (var prop of __getOwnPropSymbols$
|
|
3055
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3053
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
3054
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
3055
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
3056
3056
|
target[prop] = source[prop];
|
|
3057
3057
|
}
|
|
3058
3058
|
return target;
|
|
@@ -3117,17 +3117,17 @@ const useListSalesOrderShipments = (body) => {
|
|
|
3117
3117
|
});
|
|
3118
3118
|
};
|
|
3119
3119
|
|
|
3120
|
-
var __getOwnPropSymbols$
|
|
3121
|
-
var __hasOwnProp$
|
|
3122
|
-
var __propIsEnum$
|
|
3120
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
3121
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
3122
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
3123
3123
|
var __objRest$c = (source, exclude) => {
|
|
3124
3124
|
var target = {};
|
|
3125
3125
|
for (var prop in source)
|
|
3126
|
-
if (__hasOwnProp$
|
|
3126
|
+
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3127
3127
|
target[prop] = source[prop];
|
|
3128
|
-
if (source != null && __getOwnPropSymbols$
|
|
3129
|
-
for (var prop of __getOwnPropSymbols$
|
|
3130
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3128
|
+
if (source != null && __getOwnPropSymbols$l)
|
|
3129
|
+
for (var prop of __getOwnPropSymbols$l(source)) {
|
|
3130
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
|
|
3131
3131
|
target[prop] = source[prop];
|
|
3132
3132
|
}
|
|
3133
3133
|
return target;
|
|
@@ -3176,25 +3176,25 @@ const useListSalesOrderShipmentsByExternalOrderId = (externalOrderId) => {
|
|
|
3176
3176
|
});
|
|
3177
3177
|
};
|
|
3178
3178
|
|
|
3179
|
-
var __defProp$
|
|
3180
|
-
var __defProps$
|
|
3181
|
-
var __getOwnPropDescs$
|
|
3182
|
-
var __getOwnPropSymbols$
|
|
3183
|
-
var __hasOwnProp$
|
|
3184
|
-
var __propIsEnum$
|
|
3185
|
-
var __defNormalProp$
|
|
3186
|
-
var __spreadValues$
|
|
3179
|
+
var __defProp$i = Object.defineProperty;
|
|
3180
|
+
var __defProps$h = Object.defineProperties;
|
|
3181
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
3182
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
3183
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
3184
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
3185
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3186
|
+
var __spreadValues$i = (a, b) => {
|
|
3187
3187
|
for (var prop in b || (b = {}))
|
|
3188
|
-
if (__hasOwnProp$
|
|
3189
|
-
__defNormalProp$
|
|
3190
|
-
if (__getOwnPropSymbols$
|
|
3191
|
-
for (var prop of __getOwnPropSymbols$
|
|
3192
|
-
if (__propIsEnum$
|
|
3193
|
-
__defNormalProp$
|
|
3188
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
3189
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
3190
|
+
if (__getOwnPropSymbols$k)
|
|
3191
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
3192
|
+
if (__propIsEnum$k.call(b, prop))
|
|
3193
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
3194
3194
|
}
|
|
3195
3195
|
return a;
|
|
3196
3196
|
};
|
|
3197
|
-
var __spreadProps$
|
|
3197
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
3198
3198
|
var __async$h = (__this, __arguments, generator) => {
|
|
3199
3199
|
return new Promise((resolve, reject) => {
|
|
3200
3200
|
var fulfilled = (value) => {
|
|
@@ -3236,7 +3236,7 @@ const useCreateShipment = () => {
|
|
|
3236
3236
|
postalCode: "",
|
|
3237
3237
|
stateProvince: ""
|
|
3238
3238
|
};
|
|
3239
|
-
return (yield client.shipments.create(__spreadProps$
|
|
3239
|
+
return (yield client.shipments.create(__spreadProps$h(__spreadValues$i({}, shipment), {
|
|
3240
3240
|
shipTo
|
|
3241
3241
|
}))).data;
|
|
3242
3242
|
}),
|
|
@@ -3245,33 +3245,33 @@ const useCreateShipment = () => {
|
|
|
3245
3245
|
});
|
|
3246
3246
|
};
|
|
3247
3247
|
|
|
3248
|
-
var __defProp$
|
|
3249
|
-
var __defProps$
|
|
3250
|
-
var __getOwnPropDescs$
|
|
3251
|
-
var __getOwnPropSymbols$
|
|
3252
|
-
var __hasOwnProp$
|
|
3253
|
-
var __propIsEnum$
|
|
3254
|
-
var __defNormalProp$
|
|
3255
|
-
var __spreadValues$
|
|
3248
|
+
var __defProp$h = Object.defineProperty;
|
|
3249
|
+
var __defProps$g = Object.defineProperties;
|
|
3250
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
3251
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
3252
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
3253
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
3254
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3255
|
+
var __spreadValues$h = (a, b) => {
|
|
3256
3256
|
for (var prop in b || (b = {}))
|
|
3257
|
-
if (__hasOwnProp$
|
|
3258
|
-
__defNormalProp$
|
|
3259
|
-
if (__getOwnPropSymbols$
|
|
3260
|
-
for (var prop of __getOwnPropSymbols$
|
|
3261
|
-
if (__propIsEnum$
|
|
3262
|
-
__defNormalProp$
|
|
3257
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
3258
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3259
|
+
if (__getOwnPropSymbols$j)
|
|
3260
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
3261
|
+
if (__propIsEnum$j.call(b, prop))
|
|
3262
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
3263
3263
|
}
|
|
3264
3264
|
return a;
|
|
3265
3265
|
};
|
|
3266
|
-
var __spreadProps$
|
|
3266
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
3267
3267
|
var __objRest$b = (source, exclude) => {
|
|
3268
3268
|
var target = {};
|
|
3269
3269
|
for (var prop in source)
|
|
3270
|
-
if (__hasOwnProp$
|
|
3270
|
+
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3271
3271
|
target[prop] = source[prop];
|
|
3272
|
-
if (source != null && __getOwnPropSymbols$
|
|
3273
|
-
for (var prop of __getOwnPropSymbols$
|
|
3274
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3272
|
+
if (source != null && __getOwnPropSymbols$j)
|
|
3273
|
+
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
3274
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
|
|
3275
3275
|
target[prop] = source[prop];
|
|
3276
3276
|
}
|
|
3277
3277
|
return target;
|
|
@@ -3281,7 +3281,7 @@ const useGetShipmentRates = (params) => {
|
|
|
3281
3281
|
const _a = params, { queryFnParams } = _a, rest = __objRest$b(_a, ["queryFnParams"]);
|
|
3282
3282
|
const shipmentId = queryFnParams == null ? void 0 : queryFnParams.shipmentId;
|
|
3283
3283
|
const createdAtStart = queryFnParams == null ? void 0 : queryFnParams.createdAtStart;
|
|
3284
|
-
return reactQuery.useQuery(__spreadProps$
|
|
3284
|
+
return reactQuery.useQuery(__spreadProps$g(__spreadValues$h({
|
|
3285
3285
|
enabled: shipmentId !== void 0
|
|
3286
3286
|
}, rest), {
|
|
3287
3287
|
onError,
|
|
@@ -3296,33 +3296,33 @@ const useGetShipmentRates = (params) => {
|
|
|
3296
3296
|
}));
|
|
3297
3297
|
};
|
|
3298
3298
|
|
|
3299
|
-
var __defProp$
|
|
3300
|
-
var __defProps$
|
|
3301
|
-
var __getOwnPropDescs$
|
|
3302
|
-
var __getOwnPropSymbols$
|
|
3303
|
-
var __hasOwnProp$
|
|
3304
|
-
var __propIsEnum$
|
|
3305
|
-
var __defNormalProp$
|
|
3306
|
-
var __spreadValues$
|
|
3299
|
+
var __defProp$g = Object.defineProperty;
|
|
3300
|
+
var __defProps$f = Object.defineProperties;
|
|
3301
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
3302
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
3303
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
3304
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
3305
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3306
|
+
var __spreadValues$g = (a, b) => {
|
|
3307
3307
|
for (var prop in b || (b = {}))
|
|
3308
|
-
if (__hasOwnProp$
|
|
3309
|
-
__defNormalProp$
|
|
3310
|
-
if (__getOwnPropSymbols$
|
|
3311
|
-
for (var prop of __getOwnPropSymbols$
|
|
3312
|
-
if (__propIsEnum$
|
|
3313
|
-
__defNormalProp$
|
|
3308
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
3309
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3310
|
+
if (__getOwnPropSymbols$i)
|
|
3311
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
3312
|
+
if (__propIsEnum$i.call(b, prop))
|
|
3313
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
3314
3314
|
}
|
|
3315
3315
|
return a;
|
|
3316
3316
|
};
|
|
3317
|
-
var __spreadProps$
|
|
3317
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
3318
3318
|
var __objRest$a = (source, exclude) => {
|
|
3319
3319
|
var target = {};
|
|
3320
3320
|
for (var prop in source)
|
|
3321
|
-
if (__hasOwnProp$
|
|
3321
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3322
3322
|
target[prop] = source[prop];
|
|
3323
|
-
if (source != null && __getOwnPropSymbols$
|
|
3324
|
-
for (var prop of __getOwnPropSymbols$
|
|
3325
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3323
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
3324
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
3325
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
3326
3326
|
target[prop] = source[prop];
|
|
3327
3327
|
}
|
|
3328
3328
|
return target;
|
|
@@ -3338,7 +3338,7 @@ const useGetShipment = (params) => {
|
|
|
3338
3338
|
}
|
|
3339
3339
|
return {};
|
|
3340
3340
|
};
|
|
3341
|
-
return reactQuery.useQuery(__spreadProps$
|
|
3341
|
+
return reactQuery.useQuery(__spreadProps$f(__spreadValues$g({}, getQueryProps()), {
|
|
3342
3342
|
enabled: shipmentId !== void 0,
|
|
3343
3343
|
onError,
|
|
3344
3344
|
queryFn: () => {
|
|
@@ -3352,17 +3352,17 @@ const useGetShipment = (params) => {
|
|
|
3352
3352
|
}));
|
|
3353
3353
|
};
|
|
3354
3354
|
|
|
3355
|
-
var __getOwnPropSymbols$
|
|
3356
|
-
var __hasOwnProp$
|
|
3357
|
-
var __propIsEnum$
|
|
3355
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
3356
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
3357
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
3358
3358
|
var __objRest$9 = (source, exclude) => {
|
|
3359
3359
|
var target = {};
|
|
3360
3360
|
for (var prop in source)
|
|
3361
|
-
if (__hasOwnProp$
|
|
3361
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3362
3362
|
target[prop] = source[prop];
|
|
3363
|
-
if (source != null && __getOwnPropSymbols$
|
|
3364
|
-
for (var prop of __getOwnPropSymbols$
|
|
3365
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3363
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
3364
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
3365
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
3366
3366
|
target[prop] = source[prop];
|
|
3367
3367
|
}
|
|
3368
3368
|
return target;
|
|
@@ -3379,33 +3379,33 @@ const useListShipments = (_params) => {
|
|
|
3379
3379
|
});
|
|
3380
3380
|
};
|
|
3381
3381
|
|
|
3382
|
-
var __defProp$
|
|
3383
|
-
var __defProps$
|
|
3384
|
-
var __getOwnPropDescs$
|
|
3385
|
-
var __getOwnPropSymbols$
|
|
3386
|
-
var __hasOwnProp$
|
|
3387
|
-
var __propIsEnum$
|
|
3388
|
-
var __defNormalProp$
|
|
3389
|
-
var __spreadValues$
|
|
3382
|
+
var __defProp$f = Object.defineProperty;
|
|
3383
|
+
var __defProps$e = Object.defineProperties;
|
|
3384
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
3385
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
3386
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
3387
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
3388
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3389
|
+
var __spreadValues$f = (a, b) => {
|
|
3390
3390
|
for (var prop in b || (b = {}))
|
|
3391
|
-
if (__hasOwnProp$
|
|
3392
|
-
__defNormalProp$
|
|
3393
|
-
if (__getOwnPropSymbols$
|
|
3394
|
-
for (var prop of __getOwnPropSymbols$
|
|
3395
|
-
if (__propIsEnum$
|
|
3396
|
-
__defNormalProp$
|
|
3391
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
3392
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3393
|
+
if (__getOwnPropSymbols$g)
|
|
3394
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
3395
|
+
if (__propIsEnum$g.call(b, prop))
|
|
3396
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
3397
3397
|
}
|
|
3398
3398
|
return a;
|
|
3399
3399
|
};
|
|
3400
|
-
var __spreadProps$
|
|
3400
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
3401
3401
|
var __objRest$8 = (source, exclude) => {
|
|
3402
3402
|
var target = {};
|
|
3403
3403
|
for (var prop in source)
|
|
3404
|
-
if (__hasOwnProp$
|
|
3404
|
+
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3405
3405
|
target[prop] = source[prop];
|
|
3406
|
-
if (source != null && __getOwnPropSymbols$
|
|
3407
|
-
for (var prop of __getOwnPropSymbols$
|
|
3408
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3406
|
+
if (source != null && __getOwnPropSymbols$g)
|
|
3407
|
+
for (var prop of __getOwnPropSymbols$g(source)) {
|
|
3408
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
|
|
3409
3409
|
target[prop] = source[prop];
|
|
3410
3410
|
}
|
|
3411
3411
|
return target;
|
|
@@ -3413,7 +3413,7 @@ var __objRest$8 = (source, exclude) => {
|
|
|
3413
3413
|
const useGetShipmentByExternalId = (params) => {
|
|
3414
3414
|
const { client } = useShipEngine();
|
|
3415
3415
|
const _a = params, { queryFnParams } = _a, rest = __objRest$8(_a, ["queryFnParams"]);
|
|
3416
|
-
return reactQuery.useQuery(__spreadProps$
|
|
3416
|
+
return reactQuery.useQuery(__spreadProps$e(__spreadValues$f({}, rest), {
|
|
3417
3417
|
onError,
|
|
3418
3418
|
queryFn: () => client.shipments.getByExternalId(queryFnParams.externalId),
|
|
3419
3419
|
queryKey: ["useGetShipmentByExternalId", queryFnParams],
|
|
@@ -3453,82 +3453,82 @@ const useCancelShipment = () => {
|
|
|
3453
3453
|
});
|
|
3454
3454
|
};
|
|
3455
3455
|
|
|
3456
|
-
var __defProp$
|
|
3457
|
-
var __defProps$
|
|
3458
|
-
var __getOwnPropDescs$
|
|
3459
|
-
var __getOwnPropSymbols$
|
|
3460
|
-
var __hasOwnProp$
|
|
3461
|
-
var __propIsEnum$
|
|
3462
|
-
var __defNormalProp$
|
|
3463
|
-
var __spreadValues$
|
|
3456
|
+
var __defProp$e = Object.defineProperty;
|
|
3457
|
+
var __defProps$d = Object.defineProperties;
|
|
3458
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
3459
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
3460
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
3461
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
3462
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3463
|
+
var __spreadValues$e = (a, b) => {
|
|
3464
3464
|
for (var prop in b || (b = {}))
|
|
3465
|
-
if (__hasOwnProp$
|
|
3466
|
-
__defNormalProp$
|
|
3467
|
-
if (__getOwnPropSymbols$
|
|
3468
|
-
for (var prop of __getOwnPropSymbols$
|
|
3469
|
-
if (__propIsEnum$
|
|
3470
|
-
__defNormalProp$
|
|
3465
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
3466
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3467
|
+
if (__getOwnPropSymbols$f)
|
|
3468
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
3469
|
+
if (__propIsEnum$f.call(b, prop))
|
|
3470
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
3471
3471
|
}
|
|
3472
3472
|
return a;
|
|
3473
3473
|
};
|
|
3474
|
-
var __spreadProps$
|
|
3474
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
3475
3475
|
var __objRest$7 = (source, exclude) => {
|
|
3476
3476
|
var target = {};
|
|
3477
3477
|
for (var prop in source)
|
|
3478
|
-
if (__hasOwnProp$
|
|
3478
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3479
3479
|
target[prop] = source[prop];
|
|
3480
|
-
if (source != null && __getOwnPropSymbols$
|
|
3481
|
-
for (var prop of __getOwnPropSymbols$
|
|
3482
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3480
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
3481
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
3482
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
3483
3483
|
target[prop] = source[prop];
|
|
3484
3484
|
}
|
|
3485
3485
|
return target;
|
|
3486
3486
|
};
|
|
3487
3487
|
const useExportShipments = (params) => {
|
|
3488
3488
|
const { client } = useShipEngine();
|
|
3489
|
-
const _a = __spreadValues$
|
|
3490
|
-
return reactQuery.useQuery(__spreadProps$
|
|
3489
|
+
const _a = __spreadValues$e({}, params), { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
|
|
3490
|
+
return reactQuery.useQuery(__spreadProps$d(__spreadValues$e({}, rest), {
|
|
3491
3491
|
onError,
|
|
3492
3492
|
queryFn: () => client.shipments.export(queryFnParams),
|
|
3493
3493
|
queryKey: ["useExportShipments", params]
|
|
3494
3494
|
}));
|
|
3495
3495
|
};
|
|
3496
3496
|
|
|
3497
|
-
var __defProp$
|
|
3498
|
-
var __defProps$
|
|
3499
|
-
var __getOwnPropDescs$
|
|
3500
|
-
var __getOwnPropSymbols$
|
|
3501
|
-
var __hasOwnProp$
|
|
3502
|
-
var __propIsEnum$
|
|
3503
|
-
var __defNormalProp$
|
|
3504
|
-
var __spreadValues$
|
|
3497
|
+
var __defProp$d = Object.defineProperty;
|
|
3498
|
+
var __defProps$c = Object.defineProperties;
|
|
3499
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
3500
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
3501
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
3502
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
3503
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3504
|
+
var __spreadValues$d = (a, b) => {
|
|
3505
3505
|
for (var prop in b || (b = {}))
|
|
3506
|
-
if (__hasOwnProp$
|
|
3507
|
-
__defNormalProp$
|
|
3508
|
-
if (__getOwnPropSymbols$
|
|
3509
|
-
for (var prop of __getOwnPropSymbols$
|
|
3510
|
-
if (__propIsEnum$
|
|
3511
|
-
__defNormalProp$
|
|
3506
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
3507
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3508
|
+
if (__getOwnPropSymbols$e)
|
|
3509
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
3510
|
+
if (__propIsEnum$e.call(b, prop))
|
|
3511
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
3512
3512
|
}
|
|
3513
3513
|
return a;
|
|
3514
3514
|
};
|
|
3515
|
-
var __spreadProps$
|
|
3515
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
3516
3516
|
var __objRest$6 = (source, exclude) => {
|
|
3517
3517
|
var target = {};
|
|
3518
3518
|
for (var prop in source)
|
|
3519
|
-
if (__hasOwnProp$
|
|
3519
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3520
3520
|
target[prop] = source[prop];
|
|
3521
|
-
if (source != null && __getOwnPropSymbols$
|
|
3522
|
-
for (var prop of __getOwnPropSymbols$
|
|
3523
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3521
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
3522
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
3523
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
3524
3524
|
target[prop] = source[prop];
|
|
3525
3525
|
}
|
|
3526
3526
|
return target;
|
|
3527
3527
|
};
|
|
3528
3528
|
const useListShippingRules = (params) => {
|
|
3529
3529
|
const { client } = useShipEngine();
|
|
3530
|
-
const _a = __spreadValues$
|
|
3531
|
-
return reactQuery.useQuery(__spreadProps$
|
|
3530
|
+
const _a = __spreadValues$d({}, params), { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
|
|
3531
|
+
return reactQuery.useQuery(__spreadProps$c(__spreadValues$d({}, rest), {
|
|
3532
3532
|
onError,
|
|
3533
3533
|
queryFn: () => {
|
|
3534
3534
|
return client.shippingRules.list(queryFnParams);
|
|
@@ -3634,41 +3634,41 @@ const useEditShippingRule = () => {
|
|
|
3634
3634
|
});
|
|
3635
3635
|
};
|
|
3636
3636
|
|
|
3637
|
-
var __defProp$
|
|
3638
|
-
var __defProps$
|
|
3639
|
-
var __getOwnPropDescs$
|
|
3640
|
-
var __getOwnPropSymbols$
|
|
3641
|
-
var __hasOwnProp$
|
|
3642
|
-
var __propIsEnum$
|
|
3643
|
-
var __defNormalProp$
|
|
3644
|
-
var __spreadValues$
|
|
3637
|
+
var __defProp$c = Object.defineProperty;
|
|
3638
|
+
var __defProps$b = Object.defineProperties;
|
|
3639
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
3640
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
3641
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
3642
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
3643
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3644
|
+
var __spreadValues$c = (a, b) => {
|
|
3645
3645
|
for (var prop in b || (b = {}))
|
|
3646
|
-
if (__hasOwnProp$
|
|
3647
|
-
__defNormalProp$
|
|
3648
|
-
if (__getOwnPropSymbols$
|
|
3649
|
-
for (var prop of __getOwnPropSymbols$
|
|
3650
|
-
if (__propIsEnum$
|
|
3651
|
-
__defNormalProp$
|
|
3646
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
3647
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
3648
|
+
if (__getOwnPropSymbols$d)
|
|
3649
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
3650
|
+
if (__propIsEnum$d.call(b, prop))
|
|
3651
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
3652
3652
|
}
|
|
3653
3653
|
return a;
|
|
3654
3654
|
};
|
|
3655
|
-
var __spreadProps$
|
|
3655
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
3656
3656
|
var __objRest$5 = (source, exclude) => {
|
|
3657
3657
|
var target = {};
|
|
3658
3658
|
for (var prop in source)
|
|
3659
|
-
if (__hasOwnProp$
|
|
3659
|
+
if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3660
3660
|
target[prop] = source[prop];
|
|
3661
|
-
if (source != null && __getOwnPropSymbols$
|
|
3662
|
-
for (var prop of __getOwnPropSymbols$
|
|
3663
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3661
|
+
if (source != null && __getOwnPropSymbols$d)
|
|
3662
|
+
for (var prop of __getOwnPropSymbols$d(source)) {
|
|
3663
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
|
|
3664
3664
|
target[prop] = source[prop];
|
|
3665
3665
|
}
|
|
3666
3666
|
return target;
|
|
3667
3667
|
};
|
|
3668
3668
|
const useGetShippingRuleConditionsOptions = (params) => {
|
|
3669
3669
|
const { client } = useShipEngine();
|
|
3670
|
-
const _a = __spreadValues$
|
|
3671
|
-
return reactQuery.useQuery(__spreadProps$
|
|
3670
|
+
const _a = __spreadValues$c({}, params), { queryFnParams } = _a, rest = __objRest$5(_a, ["queryFnParams"]);
|
|
3671
|
+
return reactQuery.useQuery(__spreadProps$b(__spreadValues$c({}, rest), {
|
|
3672
3672
|
onError,
|
|
3673
3673
|
queryFn: () => {
|
|
3674
3674
|
return client.shippingRules.getConditionOptions(queryFnParams);
|
|
@@ -3678,41 +3678,41 @@ const useGetShippingRuleConditionsOptions = (params) => {
|
|
|
3678
3678
|
}));
|
|
3679
3679
|
};
|
|
3680
3680
|
|
|
3681
|
-
var __defProp$
|
|
3682
|
-
var __defProps$
|
|
3683
|
-
var __getOwnPropDescs$
|
|
3684
|
-
var __getOwnPropSymbols$
|
|
3685
|
-
var __hasOwnProp$
|
|
3686
|
-
var __propIsEnum$
|
|
3687
|
-
var __defNormalProp$
|
|
3688
|
-
var __spreadValues$
|
|
3681
|
+
var __defProp$b = Object.defineProperty;
|
|
3682
|
+
var __defProps$a = Object.defineProperties;
|
|
3683
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
3684
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
3685
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
3686
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
3687
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3688
|
+
var __spreadValues$b = (a, b) => {
|
|
3689
3689
|
for (var prop in b || (b = {}))
|
|
3690
|
-
if (__hasOwnProp$
|
|
3691
|
-
__defNormalProp$
|
|
3692
|
-
if (__getOwnPropSymbols$
|
|
3693
|
-
for (var prop of __getOwnPropSymbols$
|
|
3694
|
-
if (__propIsEnum$
|
|
3695
|
-
__defNormalProp$
|
|
3690
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
3691
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
3692
|
+
if (__getOwnPropSymbols$c)
|
|
3693
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
3694
|
+
if (__propIsEnum$c.call(b, prop))
|
|
3695
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
3696
3696
|
}
|
|
3697
3697
|
return a;
|
|
3698
3698
|
};
|
|
3699
|
-
var __spreadProps$
|
|
3699
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
3700
3700
|
var __objRest$4 = (source, exclude) => {
|
|
3701
3701
|
var target = {};
|
|
3702
3702
|
for (var prop in source)
|
|
3703
|
-
if (__hasOwnProp$
|
|
3703
|
+
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3704
3704
|
target[prop] = source[prop];
|
|
3705
|
-
if (source != null && __getOwnPropSymbols$
|
|
3706
|
-
for (var prop of __getOwnPropSymbols$
|
|
3707
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3705
|
+
if (source != null && __getOwnPropSymbols$c)
|
|
3706
|
+
for (var prop of __getOwnPropSymbols$c(source)) {
|
|
3707
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
|
|
3708
3708
|
target[prop] = source[prop];
|
|
3709
3709
|
}
|
|
3710
3710
|
return target;
|
|
3711
3711
|
};
|
|
3712
3712
|
const useGetShippingRuleById = (params) => {
|
|
3713
3713
|
const { client } = useShipEngine();
|
|
3714
|
-
const _a = __spreadValues$
|
|
3715
|
-
return reactQuery.useQuery(__spreadProps$
|
|
3714
|
+
const _a = __spreadValues$b({}, params), { queryFnParams } = _a, rest = __objRest$4(_a, ["queryFnParams"]);
|
|
3715
|
+
return reactQuery.useQuery(__spreadProps$a(__spreadValues$b({}, rest), {
|
|
3716
3716
|
onError,
|
|
3717
3717
|
queryFn: () => {
|
|
3718
3718
|
return client.shippingRules.get(queryFnParams);
|
|
@@ -3801,41 +3801,41 @@ const useDeleteWarehouse = () => {
|
|
|
3801
3801
|
});
|
|
3802
3802
|
};
|
|
3803
3803
|
|
|
3804
|
-
var __defProp$
|
|
3805
|
-
var __defProps$
|
|
3806
|
-
var __getOwnPropDescs$
|
|
3807
|
-
var __getOwnPropSymbols$
|
|
3808
|
-
var __hasOwnProp$
|
|
3809
|
-
var __propIsEnum$
|
|
3810
|
-
var __defNormalProp$
|
|
3811
|
-
var __spreadValues$
|
|
3804
|
+
var __defProp$a = Object.defineProperty;
|
|
3805
|
+
var __defProps$9 = Object.defineProperties;
|
|
3806
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
3807
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
3808
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
3809
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
3810
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3811
|
+
var __spreadValues$a = (a, b) => {
|
|
3812
3812
|
for (var prop in b || (b = {}))
|
|
3813
|
-
if (__hasOwnProp$
|
|
3814
|
-
__defNormalProp$
|
|
3815
|
-
if (__getOwnPropSymbols$
|
|
3816
|
-
for (var prop of __getOwnPropSymbols$
|
|
3817
|
-
if (__propIsEnum$
|
|
3818
|
-
__defNormalProp$
|
|
3813
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
3814
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
3815
|
+
if (__getOwnPropSymbols$b)
|
|
3816
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
3817
|
+
if (__propIsEnum$b.call(b, prop))
|
|
3818
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
3819
3819
|
}
|
|
3820
3820
|
return a;
|
|
3821
3821
|
};
|
|
3822
|
-
var __spreadProps$
|
|
3822
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
3823
3823
|
var __objRest$3 = (source, exclude) => {
|
|
3824
3824
|
var target = {};
|
|
3825
3825
|
for (var prop in source)
|
|
3826
|
-
if (__hasOwnProp$
|
|
3826
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3827
3827
|
target[prop] = source[prop];
|
|
3828
|
-
if (source != null && __getOwnPropSymbols$
|
|
3829
|
-
for (var prop of __getOwnPropSymbols$
|
|
3830
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3828
|
+
if (source != null && __getOwnPropSymbols$b)
|
|
3829
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
3830
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
3831
3831
|
target[prop] = source[prop];
|
|
3832
3832
|
}
|
|
3833
3833
|
return target;
|
|
3834
3834
|
};
|
|
3835
3835
|
const useListWarehouses = (params) => {
|
|
3836
3836
|
const { client } = useShipEngine();
|
|
3837
|
-
const _a = __spreadValues$
|
|
3838
|
-
return reactQuery.useQuery(__spreadProps$
|
|
3837
|
+
const _a = __spreadValues$a({}, params), { queryFnParams } = _a, rest = __objRest$3(_a, ["queryFnParams"]);
|
|
3838
|
+
return reactQuery.useQuery(__spreadProps$9(__spreadValues$a({}, rest), {
|
|
3839
3839
|
onError,
|
|
3840
3840
|
queryFn: () => client.warehouses.list(queryFnParams),
|
|
3841
3841
|
queryKey: ["useListWarehouses", queryFnParams],
|
|
@@ -3843,17 +3843,17 @@ const useListWarehouses = (params) => {
|
|
|
3843
3843
|
}));
|
|
3844
3844
|
};
|
|
3845
3845
|
|
|
3846
|
-
var __getOwnPropSymbols$
|
|
3847
|
-
var __hasOwnProp$
|
|
3848
|
-
var __propIsEnum$
|
|
3846
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
3847
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
3848
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
3849
3849
|
var __objRest$2 = (source, exclude) => {
|
|
3850
3850
|
var target = {};
|
|
3851
3851
|
for (var prop in source)
|
|
3852
|
-
if (__hasOwnProp$
|
|
3852
|
+
if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3853
3853
|
target[prop] = source[prop];
|
|
3854
|
-
if (source != null && __getOwnPropSymbols$
|
|
3855
|
-
for (var prop of __getOwnPropSymbols$
|
|
3856
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3854
|
+
if (source != null && __getOwnPropSymbols$a)
|
|
3855
|
+
for (var prop of __getOwnPropSymbols$a(source)) {
|
|
3856
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
|
|
3857
3857
|
target[prop] = source[prop];
|
|
3858
3858
|
}
|
|
3859
3859
|
return target;
|
|
@@ -3933,6 +3933,35 @@ const useUpdateAccountBillingPlan = () => {
|
|
|
3933
3933
|
});
|
|
3934
3934
|
};
|
|
3935
3935
|
|
|
3936
|
+
var __defProp$9 = Object.defineProperty;
|
|
3937
|
+
var __defProps$8 = Object.defineProperties;
|
|
3938
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
3939
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
3940
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
3941
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
3942
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3943
|
+
var __spreadValues$9 = (a, b) => {
|
|
3944
|
+
for (var prop in b || (b = {}))
|
|
3945
|
+
if (__hasOwnProp$9.call(b, prop))
|
|
3946
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
3947
|
+
if (__getOwnPropSymbols$9)
|
|
3948
|
+
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
3949
|
+
if (__propIsEnum$9.call(b, prop))
|
|
3950
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
3951
|
+
}
|
|
3952
|
+
return a;
|
|
3953
|
+
};
|
|
3954
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
3955
|
+
const useGetAccountBilling = (params) => {
|
|
3956
|
+
const { client } = useShipEngine();
|
|
3957
|
+
return reactQuery.useQuery(__spreadProps$8(__spreadValues$9({}, params), {
|
|
3958
|
+
onError,
|
|
3959
|
+
queryFn: () => client.accountBilling.get(),
|
|
3960
|
+
queryKey: ["useGetAccountBilling"],
|
|
3961
|
+
select: (result) => result.data
|
|
3962
|
+
}));
|
|
3963
|
+
};
|
|
3964
|
+
|
|
3936
3965
|
var __defProp$8 = Object.defineProperty;
|
|
3937
3966
|
var __defProps$7 = Object.defineProperties;
|
|
3938
3967
|
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
@@ -3952,35 +3981,6 @@ var __spreadValues$8 = (a, b) => {
|
|
|
3952
3981
|
return a;
|
|
3953
3982
|
};
|
|
3954
3983
|
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
3955
|
-
const useGetAccountBilling = (params) => {
|
|
3956
|
-
const { client } = useShipEngine();
|
|
3957
|
-
return reactQuery.useQuery(__spreadProps$7(__spreadValues$8({}, params), {
|
|
3958
|
-
onError,
|
|
3959
|
-
queryFn: () => client.accountBilling.get(),
|
|
3960
|
-
queryKey: ["useGetAccountBilling"],
|
|
3961
|
-
select: (result) => result.data
|
|
3962
|
-
}));
|
|
3963
|
-
};
|
|
3964
|
-
|
|
3965
|
-
var __defProp$7 = Object.defineProperty;
|
|
3966
|
-
var __defProps$6 = Object.defineProperties;
|
|
3967
|
-
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
3968
|
-
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
3969
|
-
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
3970
|
-
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
3971
|
-
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3972
|
-
var __spreadValues$7 = (a, b) => {
|
|
3973
|
-
for (var prop in b || (b = {}))
|
|
3974
|
-
if (__hasOwnProp$7.call(b, prop))
|
|
3975
|
-
__defNormalProp$7(a, prop, b[prop]);
|
|
3976
|
-
if (__getOwnPropSymbols$7)
|
|
3977
|
-
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
3978
|
-
if (__propIsEnum$7.call(b, prop))
|
|
3979
|
-
__defNormalProp$7(a, prop, b[prop]);
|
|
3980
|
-
}
|
|
3981
|
-
return a;
|
|
3982
|
-
};
|
|
3983
|
-
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
3984
3984
|
var __async$8 = (__this, __arguments, generator) => {
|
|
3985
3985
|
return new Promise((resolve, reject) => {
|
|
3986
3986
|
var fulfilled = (value) => {
|
|
@@ -4003,7 +4003,7 @@ var __async$8 = (__this, __arguments, generator) => {
|
|
|
4003
4003
|
};
|
|
4004
4004
|
const useUpsertAccountBilling = (params) => {
|
|
4005
4005
|
const { client } = useShipEngine();
|
|
4006
|
-
return reactQuery.useMutation(__spreadProps$
|
|
4006
|
+
return reactQuery.useMutation(__spreadProps$7(__spreadValues$8({}, params), {
|
|
4007
4007
|
mutationFn: (billing) => __async$8(void 0, null, function* () {
|
|
4008
4008
|
const result = yield client.accountBilling.put(billing);
|
|
4009
4009
|
return result.data;
|
|
@@ -4013,28 +4013,28 @@ const useUpsertAccountBilling = (params) => {
|
|
|
4013
4013
|
}));
|
|
4014
4014
|
};
|
|
4015
4015
|
|
|
4016
|
-
var __defProp$
|
|
4017
|
-
var __defProps$
|
|
4018
|
-
var __getOwnPropDescs$
|
|
4019
|
-
var __getOwnPropSymbols$
|
|
4020
|
-
var __hasOwnProp$
|
|
4021
|
-
var __propIsEnum$
|
|
4022
|
-
var __defNormalProp$
|
|
4023
|
-
var __spreadValues$
|
|
4016
|
+
var __defProp$7 = Object.defineProperty;
|
|
4017
|
+
var __defProps$6 = Object.defineProperties;
|
|
4018
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
4019
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
4020
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
4021
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
4022
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4023
|
+
var __spreadValues$7 = (a, b) => {
|
|
4024
4024
|
for (var prop in b || (b = {}))
|
|
4025
|
-
if (__hasOwnProp$
|
|
4026
|
-
__defNormalProp$
|
|
4027
|
-
if (__getOwnPropSymbols$
|
|
4028
|
-
for (var prop of __getOwnPropSymbols$
|
|
4029
|
-
if (__propIsEnum$
|
|
4030
|
-
__defNormalProp$
|
|
4025
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
4026
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
4027
|
+
if (__getOwnPropSymbols$7)
|
|
4028
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
4029
|
+
if (__propIsEnum$7.call(b, prop))
|
|
4030
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
4031
4031
|
}
|
|
4032
4032
|
return a;
|
|
4033
4033
|
};
|
|
4034
|
-
var __spreadProps$
|
|
4034
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
4035
4035
|
const useGetHereToken = (params) => {
|
|
4036
4036
|
const { client } = useShipEngine();
|
|
4037
|
-
return reactQuery.useQuery(__spreadProps$
|
|
4037
|
+
return reactQuery.useQuery(__spreadProps$6(__spreadValues$7({}, params), {
|
|
4038
4038
|
onError,
|
|
4039
4039
|
queryFn: () => client.servicePoints.getHereToken(),
|
|
4040
4040
|
queryKey: ["useGetHereToken"],
|
|
@@ -4144,14 +4144,34 @@ const useCreateSandboxSeller = () => {
|
|
|
4144
4144
|
});
|
|
4145
4145
|
};
|
|
4146
4146
|
|
|
4147
|
-
|
|
4147
|
+
var __defProp$6 = Object.defineProperty;
|
|
4148
|
+
var __defProps$5 = Object.defineProperties;
|
|
4149
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
4150
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
4151
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
4152
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
4153
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4154
|
+
var __spreadValues$6 = (a, b) => {
|
|
4155
|
+
for (var prop in b || (b = {}))
|
|
4156
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
4157
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4158
|
+
if (__getOwnPropSymbols$6)
|
|
4159
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
4160
|
+
if (__propIsEnum$6.call(b, prop))
|
|
4161
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
4162
|
+
}
|
|
4163
|
+
return a;
|
|
4164
|
+
};
|
|
4165
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
4166
|
+
const useListSandboxSellerIds = (sellerId, params) => {
|
|
4148
4167
|
const { client } = useShipEngine();
|
|
4149
|
-
|
|
4168
|
+
const queryParams = __spreadValues$6({}, params);
|
|
4169
|
+
return reactQuery.useQuery(__spreadProps$5(__spreadValues$6({}, queryParams), {
|
|
4150
4170
|
onError,
|
|
4151
4171
|
queryFn: () => client.sellers.listSandboxSellerIds({ sellerId }),
|
|
4152
4172
|
queryKey: ["useListSandboxSellerIds", sellerId],
|
|
4153
4173
|
select: (result) => result.data
|
|
4154
|
-
});
|
|
4174
|
+
}));
|
|
4155
4175
|
};
|
|
4156
4176
|
|
|
4157
4177
|
var __defProp$5 = Object.defineProperty;
|