@shipengine/react-api 4.7.1 → 4.9.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.
|
@@ -2,3 +2,5 @@ export * from "./use-create-auctane-pay-session";
|
|
|
2
2
|
export * from "./use-get-auctane-pay-config";
|
|
3
3
|
export * from "./use-preview-transaction";
|
|
4
4
|
export * from "./use-get-payment-methods";
|
|
5
|
+
export * from "./use-delete-payment-method";
|
|
6
|
+
export * from "./use-update-payment-method";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MutationProps } from "../../utilities";
|
|
2
|
+
/**
|
|
3
|
+
* @category ShipEngine API Hooks
|
|
4
|
+
* @see https://auctane-pay-dev.kubedev.sslocal.com/swagger/index.html#tag/PaymentMethod/operation/Deactivate%20Payment%20Method%20Detail%20By%20Id
|
|
5
|
+
*/
|
|
6
|
+
export declare const useDeletePaymentMethod: (params?: MutationProps<unknown, void>) => import("@tanstack/react-query").UseMutationResult<void, import("@shipengine/js-api").CodedError[], string, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SE } from "@shipengine/js-api";
|
|
2
|
+
import { MutationProps } from "../../utilities";
|
|
3
|
+
type UpdatePaymentMethodData = {
|
|
4
|
+
payload: SE.UpdatePaymentMethodRequest;
|
|
5
|
+
paymentMethodId: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* @category ShipEngine API Hooks
|
|
9
|
+
* This is a PUT method, keep in mind sending all the payload with the current Payment Method values
|
|
10
|
+
* along with the values you wish to update
|
|
11
|
+
* @see https://auctane-pay-dev.kubedev.sslocal.com/swagger/index.html#tag/PaymentMethod/operation/Update%20Stored%20Payment%20Method%20Details
|
|
12
|
+
*/
|
|
13
|
+
export declare const useUpdatePaymentMethod: (params?: MutationProps<UpdatePaymentMethodData, SE.PaymentMethod>) => import("@tanstack/react-query").UseMutationResult<SE.UpdatePaymentMethodResponse, SE.CodedError[], UpdatePaymentMethodData, unknown>;
|
|
14
|
+
export {};
|
package/index.js
CHANGED
|
@@ -79,25 +79,25 @@ const onError = (_errors) => _default();
|
|
|
79
79
|
|
|
80
80
|
var o={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},l={};function a(e){return "string"==typeof e?o[e.toLowerCase()]:e}function c(e,r){return c=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},c(e,r)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return !1}}function f(e,r,t){return f=u()?Reflect.construct:function(e,r,t){var s=[null];s.push.apply(s,r);var i=new(Function.bind.apply(e,s));return t&&c(i,t.prototype),i},f.apply(null,arguments)}function h(e){if(null==e)return e;if(Array.isArray(e))return e.slice();if("object"==typeof e){var r={};return Object.keys(e).forEach(function(t){r[t]=e[t];}),r}return e}function v(e){return void 0===e?"undefined":null===e?"null":Array.isArray(e)?"[ "+e.map(function(e){return v(e)}).join(", ")+" ]":"object"==typeof e?JSON.stringify(e):"function"==typeof e?"[Function: "+e.name+"]":"boolean"==typeof e||"number"==typeof e?e:"'"+e.toString()+"'"}function p(e){if("string"!=typeof e){for(var r=new Array(arguments.length),t=0;t<arguments.length;t++)r[t]=v(arguments[t]);return r.join(" ")}for(var s=/%[sdj%]/g,i=1,n=arguments,o=n.length,l=String(e).replace(s,function(e){if("%%"===e)return "%";if(i>=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return "[Circular]"}default:return e}}),a=n[i];i<o;a=n[++i])l+=null===a||"object"!=typeof a?" "+a:" "+v(a);return l}function m(e,r){var t=e.split("\n");t[0]&&t[0].indexOf("call-stack-error")>=0&&t.shift();var s=t[r],i=null;if(s){var n=/^\s*(at|.*@)\s*(.+)?$/.exec(s);i=Array.isArray(n)&&n[2]?n[2]:s;}return i}Object.keys(o).forEach(function(e){l[o[e]]=e;});var y={};function d(e,r){if(r){if(y[r])return;y[r]=!0;}console.error(e+"\n");}function g(e){return y[e]}function w(){var e=[];return function(r,t){return t&&"object"==typeof t?-1!==e.indexOf(t)?"[Circular]":(e.push(t),t):t}}var b=/*#__PURE__*/function(){function e(){}return e.prototype.write=function(e){e.level<30?console.log(e):e.level<40?console.info(e):e.level<50?console.warn(e):console.error(e),e.err&&e.err.stack&&console.error(e.err.stack),e.obj&&console.log(e.obj);},e}(),j=/*#__PURE__*/function(){function e(r,t,s){var i,n,o,l,a=this;if(!(this instanceof e))return new e(r,t);if(void 0!==t&&(i=r,r=t,!(i instanceof e)))throw new TypeError("invalid Logger creation: do not pass a second arg");if(!r)throw new TypeError("options (object) is required");if(i){if(r.name)throw new TypeError("invalid options.name: child cannot set logger name")}else if(!r.name)throw new TypeError("options.name (string) is required");if(r.stream&&r.streams)throw new TypeError('cannot mix "streams" and "stream" options');if(r.streams&&!Array.isArray(r.streams))throw new TypeError("invalid options.streams: must be an array");if(r.serializers&&("object"!=typeof r.serializers||Array.isArray(r.serializers)))throw new TypeError("invalid options.serializers: must be an object");if(i&&s){this._level=i._level,this.streams=i.streams,this.serializers=i.serializers,this.src=i.src,n=this.fields={};var c=Object.keys(i.fields);for(l=0;l<c.length;l++)n[o=c[l]]=i.fields[o];var u=Object.keys(r);for(l=0;l<u.length;l++)n[o=u[l]]=r[o];}else {if(i){for(this._level=i._level,this.streams=[],l=0;l<i.streams.length;l++){var f=h(i.streams[l]);this.streams.push(f);}this.serializers=h(i.serializers),this.src=i.src,this.fields=h(i.fields),r.level&&this.level(r.level);}else this._level=Number.POSITIVE_INFINITY,this.streams=[],this.serializers=null,this.src=!1,this.fields={};r.stream?this.addStream({type:"stream",stream:r.stream,level:r.level}):r.streams?r.streams.forEach(function(e){a.addStream(e,r.level);}):i&&r.level?this.level(r.level):i||this.addStream({type:"raw",stream:new b,level:r.level}),r.serializers&&this.addSerializers(r.serializers),r.src&&(this.src=!0),delete(n=h(r)).stream,delete n.level,delete n.streams,delete n.serializers,delete n.src,this.serializers&&this._applySerializers(n),Object.keys(n).forEach(function(e){a.fields[e]=n[e];});}}var r=e.prototype;return r.addStream=function(e,r){void 0===r&&(r=30),(e=h(e)).type="raw",e.level=a(e.level||r),e.level<this._level&&(this._level=e.level),this.streams.push(e),delete this.haveNonRawStreams;},r.addSerializers=function(e){var r=this;this.serializers||(this.serializers={}),Object.keys(e).forEach(function(t){var s=e[t];if("function"!=typeof s)throw new TypeError(p('invalid serializer for "%s" field: must be a function',t));r.serializers[t]=s;});},r.child=function(e,r){return new this.constructor(this,e||{},r)},r.level=function(e){if(void 0===e)return this._level;for(var r=a(e),t=this.streams.length,s=0;s<t;s++)this.streams[s].level=r;this._level=r;},r.levels=function(e,r){if(void 0===e)return this.streams.map(function(e){return e.level});var t;if("number"==typeof e){if(void 0===(t=this.streams[e]))throw new Error("invalid stream index: "+e)}else {for(var s=this.streams.length,i=0;i<s;i++){var n=this.streams[i];if(n.name===e){t=n;break}}if(!t)throw new Error(p('no stream with name "%s"',e))}if(void 0===r)return t.level;var o=a(r);t.level=o,o<this._level&&(this._level=o);},r._applySerializers=function(e,r){var t=this;Object.keys(this.serializers).forEach(function(s){if(!(void 0===e[s]||r&&r[s]))try{e[s]=t.serializers[s](e[s]);}catch(r){d(p('bunyan: ERROR: Exception thrown from the "%s" Bunyan serializer. This should never happen. This is a bugin that serializer function.\n%s',s,r.stack||r)),e[s]=p('(Error in Bunyan log "%s" serializer broke field. See stderr for details.)',s);}});},r._emit=function(e,r){var t,s;if(void 0===this.haveNonRawStreams)for(this.haveNonRawStreams=!1,t=0;t<this.streams.length;t++)if(!this.streams[t].raw){this.haveNonRawStreams=!0;break}if(r||this.haveNonRawStreams)try{s=JSON.stringify(e,w())+"\n";}catch(r){var i=r.stack.split(/\n/g,2).join("\n");d('bunyan: ERROR: Exception in `JSON.stringify(rec)`. You can install the "safe-json-stringify" module to have Bunyan fallback to safer stringification. Record:\n'+function(e,r){return r||(r=" "),r+e.split(/\r?\n/g).join("\n"+r)}(p("%s\n%s",e,r.stack)),i),s=p("(Exception in JSON.stringify(rec): %j. See stderr for details.)\n",r.message);}if(r)return s;var n=e.level;for(t=0;t<this.streams.length;t++){var o=this.streams[t];o.level<=n&&o.stream.write(e);}return s},e}();function z(e){return function(){var r=this;function t(t){var n;t[0]instanceof Error?(s={err:r.serializers&&r.serializers.err?r.serializers.err(t[0]):k.err(t[0])},n={err:!0},i=1===t.length?[s.err.message]:Array.prototype.slice.call(t,1)):"object"!=typeof t[0]&&null!==t[0]||Array.isArray(t[0])?(s=null,i=Array.prototype.slice.call(t)):(s=t[0],i=1===t.length&&s.err&&s.err instanceof Error?[s.err.message]:Array.prototype.slice.call(t,1));var o=h(r.fields);o.level=e;var a=s?h(s):null;if(a&&(r.serializers&&r._applySerializers(a,n),Object.keys(a).forEach(function(e){o[e]=a[e];})),o.levelName=l[e],o.msg=i.length?p.apply(r,i):"",o.time||(o.time=new Date),r.src&&!o.src)try{throw new Error("call-stack-error")}catch(e){var c=e.stack?m(e.stack,2):"";c||g("src")||d("Unable to determine src line info","src"),o.src=c||"";}return o.v=1,o}var s=null,i=arguments,n=null;if(0===arguments.length)return this._level<=e;this._level>e||(n=t(i),this._emit(n));}}function S(e){var r=e.stack||e.toString();if(e.cause&&"function"==typeof e.cause){var t=e.cause();t&&(r+="\nCaused by: "+S(t));}return r}j.prototype.trace=z(10),j.prototype.debug=z(20),j.prototype.info=z(30),j.prototype.warn=z(40),j.prototype.error=z(50),j.prototype.fatal=z(60);var k={err:function(e){return e&&e.stack?{message:e.message,name:e.name,stack:S(e),code:e.code,signal:e.signal}:e}};function E(){return f(j,[].slice.call(arguments))}var A={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},R=/*#__PURE__*/function(){function e(e){var r=void 0===e?{}:e,t=r.logByLevel,s=r.css,i=void 0===s?A:s;this.logByLevel=void 0!==t&&t,this.css=i;}return e.prototype.write=function(e){var r,t,s=this.css.def,i=this.css.msg,n=this.css.src,o=e.childName?e.name+"/"+e.childName:e.name,a=l[e.level],c=(Array(6-a.length).join(" ")+a).toUpperCase();this.logByLevel?(10===e.level?a="debug":60===e.level&&(a="error"),t="function"==typeof console[a]?console[a]:console.log):t=console.log,r=e.level<20?this.css.levels.trace:e.level<30?this.css.levels.debug:e.level<40?this.css.levels.info:e.level<50?this.css.levels.warn:e.level<60?this.css.levels.error:this.css.levels.fatal;var u=function(e,r){return Array(r+1-(e+"").length).join("0")+e},f=[];f.push("[%s:%s:%s:%s] %c%s%c: %s: %c%s "+(e.src?"%c%s":"")),f.push(u(e.time.getHours(),2)),f.push(u(e.time.getMinutes(),2)),f.push(u(e.time.getSeconds(),2)),f.push(u(e.time.getMilliseconds(),4)),f.push(r),f.push(c),f.push(s),f.push(o),f.push(i),f.push(e.msg),e.src&&(f.push(n),f.push(e.src)),e.obj&&(f.push("\n"),f.push(e.obj)),e.err&&e.err.stack&&(f.push("\n"),f.push(e.err.stack)),t.apply(console,f);},e.getDefaultCss=function(){return A},e}();
|
|
81
81
|
|
|
82
|
-
var __defProp$
|
|
83
|
-
var __defProps$
|
|
84
|
-
var __getOwnPropDescs$
|
|
85
|
-
var __getOwnPropSymbols$
|
|
86
|
-
var __hasOwnProp$
|
|
87
|
-
var __propIsEnum$
|
|
88
|
-
var __defNormalProp$
|
|
89
|
-
var __spreadValues$
|
|
82
|
+
var __defProp$E = Object.defineProperty;
|
|
83
|
+
var __defProps$D = Object.defineProperties;
|
|
84
|
+
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
85
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
86
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
87
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
88
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
89
|
+
var __spreadValues$E = (a, b) => {
|
|
90
90
|
for (var prop in b || (b = {}))
|
|
91
|
-
if (__hasOwnProp$
|
|
92
|
-
__defNormalProp$
|
|
93
|
-
if (__getOwnPropSymbols$
|
|
94
|
-
for (var prop of __getOwnPropSymbols$
|
|
95
|
-
if (__propIsEnum$
|
|
96
|
-
__defNormalProp$
|
|
91
|
+
if (__hasOwnProp$N.call(b, prop))
|
|
92
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
93
|
+
if (__getOwnPropSymbols$N)
|
|
94
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
95
|
+
if (__propIsEnum$N.call(b, prop))
|
|
96
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
97
97
|
}
|
|
98
98
|
return a;
|
|
99
99
|
};
|
|
100
|
-
var __spreadProps$
|
|
100
|
+
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
101
101
|
const streams = [];
|
|
102
102
|
if (process.env.NODE_ENV === "production") {
|
|
103
103
|
streams.push({
|
|
@@ -106,7 +106,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
106
106
|
}
|
|
107
107
|
const logger = E({
|
|
108
108
|
name: "shipengine",
|
|
109
|
-
serializers: __spreadProps$
|
|
109
|
+
serializers: __spreadProps$D(__spreadValues$E({}, k), {
|
|
110
110
|
req: (req) => ({
|
|
111
111
|
headers: req.headers,
|
|
112
112
|
method: req.method,
|
|
@@ -131,7 +131,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
131
131
|
throw error;
|
|
132
132
|
});
|
|
133
133
|
|
|
134
|
-
var __async$
|
|
134
|
+
var __async$X = (__this, __arguments, generator) => {
|
|
135
135
|
return new Promise((resolve, reject) => {
|
|
136
136
|
var fulfilled = (value) => {
|
|
137
137
|
try {
|
|
@@ -154,7 +154,7 @@ var __async$V = (__this, __arguments, generator) => {
|
|
|
154
154
|
const useCreateAccountImage = () => {
|
|
155
155
|
const { client } = useShipEngine();
|
|
156
156
|
return reactQuery.useMutation({
|
|
157
|
-
mutationFn: (data) => __async$
|
|
157
|
+
mutationFn: (data) => __async$X(void 0, null, function* () {
|
|
158
158
|
const result = yield client.accountSettings.createImage(data);
|
|
159
159
|
return result.data;
|
|
160
160
|
}),
|
|
@@ -163,7 +163,7 @@ const useCreateAccountImage = () => {
|
|
|
163
163
|
});
|
|
164
164
|
};
|
|
165
165
|
|
|
166
|
-
var __async$
|
|
166
|
+
var __async$W = (__this, __arguments, generator) => {
|
|
167
167
|
return new Promise((resolve, reject) => {
|
|
168
168
|
var fulfilled = (value) => {
|
|
169
169
|
try {
|
|
@@ -186,7 +186,7 @@ var __async$U = (__this, __arguments, generator) => {
|
|
|
186
186
|
const useDeleteAccountImage = () => {
|
|
187
187
|
const { client } = useShipEngine();
|
|
188
188
|
return reactQuery.useMutation({
|
|
189
|
-
mutationFn: (labelImageId) => __async$
|
|
189
|
+
mutationFn: (labelImageId) => __async$W(void 0, null, function* () {
|
|
190
190
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
191
191
|
return result.data;
|
|
192
192
|
}),
|
|
@@ -215,7 +215,7 @@ const useGetAccountSettings = () => {
|
|
|
215
215
|
});
|
|
216
216
|
};
|
|
217
217
|
|
|
218
|
-
var __async$
|
|
218
|
+
var __async$V = (__this, __arguments, generator) => {
|
|
219
219
|
return new Promise((resolve, reject) => {
|
|
220
220
|
var fulfilled = (value) => {
|
|
221
221
|
try {
|
|
@@ -238,7 +238,7 @@ var __async$T = (__this, __arguments, generator) => {
|
|
|
238
238
|
const useUpdateAccountImage = () => {
|
|
239
239
|
const { client } = useShipEngine();
|
|
240
240
|
return reactQuery.useMutation({
|
|
241
|
-
mutationFn: (data) => __async$
|
|
241
|
+
mutationFn: (data) => __async$V(void 0, null, function* () {
|
|
242
242
|
const result = yield client.accountSettings.updateImage(data);
|
|
243
243
|
return result.data;
|
|
244
244
|
}),
|
|
@@ -247,7 +247,7 @@ const useUpdateAccountImage = () => {
|
|
|
247
247
|
});
|
|
248
248
|
};
|
|
249
249
|
|
|
250
|
-
var __async$
|
|
250
|
+
var __async$U = (__this, __arguments, generator) => {
|
|
251
251
|
return new Promise((resolve, reject) => {
|
|
252
252
|
var fulfilled = (value) => {
|
|
253
253
|
try {
|
|
@@ -270,7 +270,7 @@ var __async$S = (__this, __arguments, generator) => {
|
|
|
270
270
|
const useUpdateAccountSettings = () => {
|
|
271
271
|
const { client } = useShipEngine();
|
|
272
272
|
return reactQuery.useMutation({
|
|
273
|
-
mutationFn: (settings) => __async$
|
|
273
|
+
mutationFn: (settings) => __async$U(void 0, null, function* () {
|
|
274
274
|
const result = yield client.accountSettings.update(settings);
|
|
275
275
|
return result.data;
|
|
276
276
|
}),
|
|
@@ -279,7 +279,7 @@ const useUpdateAccountSettings = () => {
|
|
|
279
279
|
});
|
|
280
280
|
};
|
|
281
281
|
|
|
282
|
-
var __async$
|
|
282
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
283
283
|
return new Promise((resolve, reject) => {
|
|
284
284
|
var fulfilled = (value) => {
|
|
285
285
|
try {
|
|
@@ -302,7 +302,7 @@ var __async$R = (__this, __arguments, generator) => {
|
|
|
302
302
|
const useParseAddress = () => {
|
|
303
303
|
const { client } = useShipEngine();
|
|
304
304
|
return reactQuery.useMutation({
|
|
305
|
-
mutationFn: (_0) => __async$
|
|
305
|
+
mutationFn: (_0) => __async$T(void 0, [_0], function* ({ address, text }) {
|
|
306
306
|
const result = yield client.addresses.parse(text, address);
|
|
307
307
|
return result.data;
|
|
308
308
|
}),
|
|
@@ -311,7 +311,7 @@ const useParseAddress = () => {
|
|
|
311
311
|
});
|
|
312
312
|
};
|
|
313
313
|
|
|
314
|
-
var __async$
|
|
314
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
315
315
|
return new Promise((resolve, reject) => {
|
|
316
316
|
var fulfilled = (value) => {
|
|
317
317
|
try {
|
|
@@ -334,7 +334,7 @@ var __async$Q = (__this, __arguments, generator) => {
|
|
|
334
334
|
const useValidateAddresses = () => {
|
|
335
335
|
const { client } = useShipEngine();
|
|
336
336
|
return reactQuery.useMutation({
|
|
337
|
-
mutationFn: (addresses) => __async$
|
|
337
|
+
mutationFn: (addresses) => __async$S(void 0, null, function* () {
|
|
338
338
|
const result = yield client.addresses.validate(addresses);
|
|
339
339
|
return result.data;
|
|
340
340
|
}),
|
|
@@ -343,6 +343,87 @@ const useValidateAddresses = () => {
|
|
|
343
343
|
});
|
|
344
344
|
};
|
|
345
345
|
|
|
346
|
+
var __defProp$D = Object.defineProperty;
|
|
347
|
+
var __defProps$C = Object.defineProperties;
|
|
348
|
+
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
349
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
350
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
351
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
|
352
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
353
|
+
var __spreadValues$D = (a, b) => {
|
|
354
|
+
for (var prop in b || (b = {}))
|
|
355
|
+
if (__hasOwnProp$M.call(b, prop))
|
|
356
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
357
|
+
if (__getOwnPropSymbols$M)
|
|
358
|
+
for (var prop of __getOwnPropSymbols$M(b)) {
|
|
359
|
+
if (__propIsEnum$M.call(b, prop))
|
|
360
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
361
|
+
}
|
|
362
|
+
return a;
|
|
363
|
+
};
|
|
364
|
+
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
365
|
+
var __async$R = (__this, __arguments, generator) => {
|
|
366
|
+
return new Promise((resolve, reject) => {
|
|
367
|
+
var fulfilled = (value) => {
|
|
368
|
+
try {
|
|
369
|
+
step(generator.next(value));
|
|
370
|
+
} catch (e) {
|
|
371
|
+
reject(e);
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
var rejected = (value) => {
|
|
375
|
+
try {
|
|
376
|
+
step(generator.throw(value));
|
|
377
|
+
} catch (e) {
|
|
378
|
+
reject(e);
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
382
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
383
|
+
});
|
|
384
|
+
};
|
|
385
|
+
const useCreateAuctanePaySession = (params) => {
|
|
386
|
+
const { client } = useShipEngine();
|
|
387
|
+
return reactQuery.useMutation(__spreadProps$C(__spreadValues$D({}, params), {
|
|
388
|
+
mutationFn: (request) => __async$R(void 0, null, function* () {
|
|
389
|
+
const result = yield client.auctanePay.createSession(request);
|
|
390
|
+
return result.data;
|
|
391
|
+
}),
|
|
392
|
+
mutationKey: ["useCreateAuctanePaySession"],
|
|
393
|
+
onError
|
|
394
|
+
}));
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
var __defProp$C = Object.defineProperty;
|
|
398
|
+
var __defProps$B = Object.defineProperties;
|
|
399
|
+
var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
|
|
400
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
401
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
402
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
|
403
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
404
|
+
var __spreadValues$C = (a, b) => {
|
|
405
|
+
for (var prop in b || (b = {}))
|
|
406
|
+
if (__hasOwnProp$L.call(b, prop))
|
|
407
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
408
|
+
if (__getOwnPropSymbols$L)
|
|
409
|
+
for (var prop of __getOwnPropSymbols$L(b)) {
|
|
410
|
+
if (__propIsEnum$L.call(b, prop))
|
|
411
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
412
|
+
}
|
|
413
|
+
return a;
|
|
414
|
+
};
|
|
415
|
+
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
416
|
+
const useGetAuctanePayConfig = (params) => {
|
|
417
|
+
const { client } = useShipEngine();
|
|
418
|
+
const queryParams = __spreadValues$C({}, params);
|
|
419
|
+
return reactQuery.useQuery(__spreadProps$B(__spreadValues$C({}, queryParams), {
|
|
420
|
+
onError,
|
|
421
|
+
queryFn: () => client.auctanePay.getConfig(),
|
|
422
|
+
queryKey: ["useGetAuctanePayConfig"],
|
|
423
|
+
select: (result) => result.data
|
|
424
|
+
}));
|
|
425
|
+
};
|
|
426
|
+
|
|
346
427
|
var __defProp$B = Object.defineProperty;
|
|
347
428
|
var __defProps$A = Object.defineProperties;
|
|
348
429
|
var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
|
|
@@ -362,7 +443,7 @@ var __spreadValues$B = (a, b) => {
|
|
|
362
443
|
return a;
|
|
363
444
|
};
|
|
364
445
|
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
365
|
-
var __async$
|
|
446
|
+
var __async$Q = (__this, __arguments, generator) => {
|
|
366
447
|
return new Promise((resolve, reject) => {
|
|
367
448
|
var fulfilled = (value) => {
|
|
368
449
|
try {
|
|
@@ -382,14 +463,18 @@ var __async$P = (__this, __arguments, generator) => {
|
|
|
382
463
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
383
464
|
});
|
|
384
465
|
};
|
|
385
|
-
const
|
|
466
|
+
const usePreviewTransaction = (params) => {
|
|
386
467
|
const { client } = useShipEngine();
|
|
387
468
|
return reactQuery.useMutation(__spreadProps$A(__spreadValues$B({}, params), {
|
|
388
|
-
mutationFn: (
|
|
389
|
-
const
|
|
469
|
+
mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
|
|
470
|
+
const request = {
|
|
471
|
+
amount,
|
|
472
|
+
transactionCategory
|
|
473
|
+
};
|
|
474
|
+
const result = yield client.auctanePay.previewTransaction(request);
|
|
390
475
|
return result.data;
|
|
391
476
|
}),
|
|
392
|
-
mutationKey: ["
|
|
477
|
+
mutationKey: ["usePreviewTransaction"],
|
|
393
478
|
onError
|
|
394
479
|
}));
|
|
395
480
|
};
|
|
@@ -413,13 +498,13 @@ var __spreadValues$A = (a, b) => {
|
|
|
413
498
|
return a;
|
|
414
499
|
};
|
|
415
500
|
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
416
|
-
const
|
|
501
|
+
const useGetPaymentMethods = (params) => {
|
|
417
502
|
const { client } = useShipEngine();
|
|
418
503
|
const queryParams = __spreadValues$A({}, params);
|
|
419
504
|
return reactQuery.useQuery(__spreadProps$z(__spreadValues$A({}, queryParams), {
|
|
420
505
|
onError,
|
|
421
|
-
queryFn: () => client.auctanePay.
|
|
422
|
-
queryKey: ["
|
|
506
|
+
queryFn: () => client.auctanePay.getPaymentMethods(),
|
|
507
|
+
queryKey: ["useGetPaymentMethods"],
|
|
423
508
|
select: (result) => result.data
|
|
424
509
|
}));
|
|
425
510
|
};
|
|
@@ -443,7 +528,7 @@ var __spreadValues$z = (a, b) => {
|
|
|
443
528
|
return a;
|
|
444
529
|
};
|
|
445
530
|
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
446
|
-
var __async$
|
|
531
|
+
var __async$P = (__this, __arguments, generator) => {
|
|
447
532
|
return new Promise((resolve, reject) => {
|
|
448
533
|
var fulfilled = (value) => {
|
|
449
534
|
try {
|
|
@@ -463,18 +548,14 @@ var __async$O = (__this, __arguments, generator) => {
|
|
|
463
548
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
464
549
|
});
|
|
465
550
|
};
|
|
466
|
-
const
|
|
551
|
+
const useDeletePaymentMethod = (params) => {
|
|
467
552
|
const { client } = useShipEngine();
|
|
468
553
|
return reactQuery.useMutation(__spreadProps$y(__spreadValues$z({}, params), {
|
|
469
|
-
mutationFn: (
|
|
470
|
-
const
|
|
471
|
-
amount,
|
|
472
|
-
transactionCategory
|
|
473
|
-
};
|
|
474
|
-
const result = yield client.auctanePay.previewTransaction(request);
|
|
554
|
+
mutationFn: (paymentMethodId) => __async$P(void 0, null, function* () {
|
|
555
|
+
const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
|
|
475
556
|
return result.data;
|
|
476
557
|
}),
|
|
477
|
-
mutationKey: ["
|
|
558
|
+
mutationKey: ["useDeletePaymentMethod"],
|
|
478
559
|
onError
|
|
479
560
|
}));
|
|
480
561
|
};
|
|
@@ -498,14 +579,35 @@ var __spreadValues$y = (a, b) => {
|
|
|
498
579
|
return a;
|
|
499
580
|
};
|
|
500
581
|
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
501
|
-
|
|
582
|
+
var __async$O = (__this, __arguments, generator) => {
|
|
583
|
+
return new Promise((resolve, reject) => {
|
|
584
|
+
var fulfilled = (value) => {
|
|
585
|
+
try {
|
|
586
|
+
step(generator.next(value));
|
|
587
|
+
} catch (e) {
|
|
588
|
+
reject(e);
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
var rejected = (value) => {
|
|
592
|
+
try {
|
|
593
|
+
step(generator.throw(value));
|
|
594
|
+
} catch (e) {
|
|
595
|
+
reject(e);
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
599
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
600
|
+
});
|
|
601
|
+
};
|
|
602
|
+
const useUpdatePaymentMethod = (params) => {
|
|
502
603
|
const { client } = useShipEngine();
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
604
|
+
return reactQuery.useMutation(__spreadProps$x(__spreadValues$y({}, params), {
|
|
605
|
+
mutationFn: (_0) => __async$O(void 0, [_0], function* ({ paymentMethodId, payload }) {
|
|
606
|
+
const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
|
|
607
|
+
return result.data;
|
|
608
|
+
}),
|
|
609
|
+
mutationKey: ["useUpdatePaymentMethod"],
|
|
610
|
+
onError
|
|
509
611
|
}));
|
|
510
612
|
};
|
|
511
613
|
|
|
@@ -3926,6 +4028,7 @@ exports.useCreateWebhook = useCreateWebhook;
|
|
|
3926
4028
|
exports.useDeactivateOrderSource = useDeactivateOrderSource;
|
|
3927
4029
|
exports.useDeleteAccountImage = useDeleteAccountImage;
|
|
3928
4030
|
exports.useDeleteCarrier = useDeleteCarrier;
|
|
4031
|
+
exports.useDeletePaymentMethod = useDeletePaymentMethod;
|
|
3929
4032
|
exports.useDeleteRateCard = useDeleteRateCard;
|
|
3930
4033
|
exports.useDeleteSellerApiKey = useDeleteSellerApiKey;
|
|
3931
4034
|
exports.useDeleteShippingRule = useDeleteShippingRule;
|
|
@@ -4008,6 +4111,7 @@ exports.useUpdateConnectionsCarrierSettings = useUpdateConnectionsCarrierSetting
|
|
|
4008
4111
|
exports.useUpdateFundingSource = useUpdateFundingSource;
|
|
4009
4112
|
exports.useUpdateInvoiceAddress = useUpdateInvoiceAddress;
|
|
4010
4113
|
exports.useUpdateOrderSource = useUpdateOrderSource;
|
|
4114
|
+
exports.useUpdatePaymentMethod = useUpdatePaymentMethod;
|
|
4011
4115
|
exports.useUpdateRateCard = useUpdateRateCard;
|
|
4012
4116
|
exports.useUpdateSalesOrderShipment = useUpdateSalesOrderShipment;
|
|
4013
4117
|
exports.useUpdateWarehouse = useUpdateWarehouse;
|
package/index.mjs
CHANGED
|
@@ -76,25 +76,25 @@ const onError = (_errors) => _default();
|
|
|
76
76
|
|
|
77
77
|
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}();
|
|
78
78
|
|
|
79
|
-
var __defProp$
|
|
80
|
-
var __defProps$
|
|
81
|
-
var __getOwnPropDescs$
|
|
82
|
-
var __getOwnPropSymbols$
|
|
83
|
-
var __hasOwnProp$
|
|
84
|
-
var __propIsEnum$
|
|
85
|
-
var __defNormalProp$
|
|
86
|
-
var __spreadValues$
|
|
79
|
+
var __defProp$E = Object.defineProperty;
|
|
80
|
+
var __defProps$D = Object.defineProperties;
|
|
81
|
+
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
82
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
83
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
84
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
85
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
86
|
+
var __spreadValues$E = (a, b) => {
|
|
87
87
|
for (var prop in b || (b = {}))
|
|
88
|
-
if (__hasOwnProp$
|
|
89
|
-
__defNormalProp$
|
|
90
|
-
if (__getOwnPropSymbols$
|
|
91
|
-
for (var prop of __getOwnPropSymbols$
|
|
92
|
-
if (__propIsEnum$
|
|
93
|
-
__defNormalProp$
|
|
88
|
+
if (__hasOwnProp$N.call(b, prop))
|
|
89
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
90
|
+
if (__getOwnPropSymbols$N)
|
|
91
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
92
|
+
if (__propIsEnum$N.call(b, prop))
|
|
93
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
94
94
|
}
|
|
95
95
|
return a;
|
|
96
96
|
};
|
|
97
|
-
var __spreadProps$
|
|
97
|
+
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
98
98
|
const streams = [];
|
|
99
99
|
if (process.env.NODE_ENV === "production") {
|
|
100
100
|
streams.push({
|
|
@@ -103,7 +103,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
103
103
|
}
|
|
104
104
|
const logger = E({
|
|
105
105
|
name: "shipengine",
|
|
106
|
-
serializers: __spreadProps$
|
|
106
|
+
serializers: __spreadProps$D(__spreadValues$E({}, k), {
|
|
107
107
|
req: (req) => ({
|
|
108
108
|
headers: req.headers,
|
|
109
109
|
method: req.method,
|
|
@@ -128,7 +128,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
128
128
|
throw error;
|
|
129
129
|
});
|
|
130
130
|
|
|
131
|
-
var __async$
|
|
131
|
+
var __async$X = (__this, __arguments, generator) => {
|
|
132
132
|
return new Promise((resolve, reject) => {
|
|
133
133
|
var fulfilled = (value) => {
|
|
134
134
|
try {
|
|
@@ -151,7 +151,7 @@ var __async$V = (__this, __arguments, generator) => {
|
|
|
151
151
|
const useCreateAccountImage = () => {
|
|
152
152
|
const { client } = useShipEngine();
|
|
153
153
|
return useMutation({
|
|
154
|
-
mutationFn: (data) => __async$
|
|
154
|
+
mutationFn: (data) => __async$X(void 0, null, function* () {
|
|
155
155
|
const result = yield client.accountSettings.createImage(data);
|
|
156
156
|
return result.data;
|
|
157
157
|
}),
|
|
@@ -160,7 +160,7 @@ const useCreateAccountImage = () => {
|
|
|
160
160
|
});
|
|
161
161
|
};
|
|
162
162
|
|
|
163
|
-
var __async$
|
|
163
|
+
var __async$W = (__this, __arguments, generator) => {
|
|
164
164
|
return new Promise((resolve, reject) => {
|
|
165
165
|
var fulfilled = (value) => {
|
|
166
166
|
try {
|
|
@@ -183,7 +183,7 @@ var __async$U = (__this, __arguments, generator) => {
|
|
|
183
183
|
const useDeleteAccountImage = () => {
|
|
184
184
|
const { client } = useShipEngine();
|
|
185
185
|
return useMutation({
|
|
186
|
-
mutationFn: (labelImageId) => __async$
|
|
186
|
+
mutationFn: (labelImageId) => __async$W(void 0, null, function* () {
|
|
187
187
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
188
188
|
return result.data;
|
|
189
189
|
}),
|
|
@@ -212,7 +212,7 @@ const useGetAccountSettings = () => {
|
|
|
212
212
|
});
|
|
213
213
|
};
|
|
214
214
|
|
|
215
|
-
var __async$
|
|
215
|
+
var __async$V = (__this, __arguments, generator) => {
|
|
216
216
|
return new Promise((resolve, reject) => {
|
|
217
217
|
var fulfilled = (value) => {
|
|
218
218
|
try {
|
|
@@ -235,7 +235,7 @@ var __async$T = (__this, __arguments, generator) => {
|
|
|
235
235
|
const useUpdateAccountImage = () => {
|
|
236
236
|
const { client } = useShipEngine();
|
|
237
237
|
return useMutation({
|
|
238
|
-
mutationFn: (data) => __async$
|
|
238
|
+
mutationFn: (data) => __async$V(void 0, null, function* () {
|
|
239
239
|
const result = yield client.accountSettings.updateImage(data);
|
|
240
240
|
return result.data;
|
|
241
241
|
}),
|
|
@@ -244,7 +244,7 @@ const useUpdateAccountImage = () => {
|
|
|
244
244
|
});
|
|
245
245
|
};
|
|
246
246
|
|
|
247
|
-
var __async$
|
|
247
|
+
var __async$U = (__this, __arguments, generator) => {
|
|
248
248
|
return new Promise((resolve, reject) => {
|
|
249
249
|
var fulfilled = (value) => {
|
|
250
250
|
try {
|
|
@@ -267,7 +267,7 @@ var __async$S = (__this, __arguments, generator) => {
|
|
|
267
267
|
const useUpdateAccountSettings = () => {
|
|
268
268
|
const { client } = useShipEngine();
|
|
269
269
|
return useMutation({
|
|
270
|
-
mutationFn: (settings) => __async$
|
|
270
|
+
mutationFn: (settings) => __async$U(void 0, null, function* () {
|
|
271
271
|
const result = yield client.accountSettings.update(settings);
|
|
272
272
|
return result.data;
|
|
273
273
|
}),
|
|
@@ -276,7 +276,7 @@ const useUpdateAccountSettings = () => {
|
|
|
276
276
|
});
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
-
var __async$
|
|
279
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
280
280
|
return new Promise((resolve, reject) => {
|
|
281
281
|
var fulfilled = (value) => {
|
|
282
282
|
try {
|
|
@@ -299,7 +299,7 @@ var __async$R = (__this, __arguments, generator) => {
|
|
|
299
299
|
const useParseAddress = () => {
|
|
300
300
|
const { client } = useShipEngine();
|
|
301
301
|
return useMutation({
|
|
302
|
-
mutationFn: (_0) => __async$
|
|
302
|
+
mutationFn: (_0) => __async$T(void 0, [_0], function* ({ address, text }) {
|
|
303
303
|
const result = yield client.addresses.parse(text, address);
|
|
304
304
|
return result.data;
|
|
305
305
|
}),
|
|
@@ -308,7 +308,7 @@ const useParseAddress = () => {
|
|
|
308
308
|
});
|
|
309
309
|
};
|
|
310
310
|
|
|
311
|
-
var __async$
|
|
311
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
312
312
|
return new Promise((resolve, reject) => {
|
|
313
313
|
var fulfilled = (value) => {
|
|
314
314
|
try {
|
|
@@ -331,7 +331,7 @@ var __async$Q = (__this, __arguments, generator) => {
|
|
|
331
331
|
const useValidateAddresses = () => {
|
|
332
332
|
const { client } = useShipEngine();
|
|
333
333
|
return useMutation({
|
|
334
|
-
mutationFn: (addresses) => __async$
|
|
334
|
+
mutationFn: (addresses) => __async$S(void 0, null, function* () {
|
|
335
335
|
const result = yield client.addresses.validate(addresses);
|
|
336
336
|
return result.data;
|
|
337
337
|
}),
|
|
@@ -340,6 +340,87 @@ const useValidateAddresses = () => {
|
|
|
340
340
|
});
|
|
341
341
|
};
|
|
342
342
|
|
|
343
|
+
var __defProp$D = Object.defineProperty;
|
|
344
|
+
var __defProps$C = Object.defineProperties;
|
|
345
|
+
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
346
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
347
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
348
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
|
349
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
350
|
+
var __spreadValues$D = (a, b) => {
|
|
351
|
+
for (var prop in b || (b = {}))
|
|
352
|
+
if (__hasOwnProp$M.call(b, prop))
|
|
353
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
354
|
+
if (__getOwnPropSymbols$M)
|
|
355
|
+
for (var prop of __getOwnPropSymbols$M(b)) {
|
|
356
|
+
if (__propIsEnum$M.call(b, prop))
|
|
357
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
358
|
+
}
|
|
359
|
+
return a;
|
|
360
|
+
};
|
|
361
|
+
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
362
|
+
var __async$R = (__this, __arguments, generator) => {
|
|
363
|
+
return new Promise((resolve, reject) => {
|
|
364
|
+
var fulfilled = (value) => {
|
|
365
|
+
try {
|
|
366
|
+
step(generator.next(value));
|
|
367
|
+
} catch (e) {
|
|
368
|
+
reject(e);
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
var rejected = (value) => {
|
|
372
|
+
try {
|
|
373
|
+
step(generator.throw(value));
|
|
374
|
+
} catch (e) {
|
|
375
|
+
reject(e);
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
379
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
const useCreateAuctanePaySession = (params) => {
|
|
383
|
+
const { client } = useShipEngine();
|
|
384
|
+
return useMutation(__spreadProps$C(__spreadValues$D({}, params), {
|
|
385
|
+
mutationFn: (request) => __async$R(void 0, null, function* () {
|
|
386
|
+
const result = yield client.auctanePay.createSession(request);
|
|
387
|
+
return result.data;
|
|
388
|
+
}),
|
|
389
|
+
mutationKey: ["useCreateAuctanePaySession"],
|
|
390
|
+
onError
|
|
391
|
+
}));
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
var __defProp$C = Object.defineProperty;
|
|
395
|
+
var __defProps$B = Object.defineProperties;
|
|
396
|
+
var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
|
|
397
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
398
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
399
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
|
400
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
401
|
+
var __spreadValues$C = (a, b) => {
|
|
402
|
+
for (var prop in b || (b = {}))
|
|
403
|
+
if (__hasOwnProp$L.call(b, prop))
|
|
404
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
405
|
+
if (__getOwnPropSymbols$L)
|
|
406
|
+
for (var prop of __getOwnPropSymbols$L(b)) {
|
|
407
|
+
if (__propIsEnum$L.call(b, prop))
|
|
408
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
409
|
+
}
|
|
410
|
+
return a;
|
|
411
|
+
};
|
|
412
|
+
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
413
|
+
const useGetAuctanePayConfig = (params) => {
|
|
414
|
+
const { client } = useShipEngine();
|
|
415
|
+
const queryParams = __spreadValues$C({}, params);
|
|
416
|
+
return useQuery(__spreadProps$B(__spreadValues$C({}, queryParams), {
|
|
417
|
+
onError,
|
|
418
|
+
queryFn: () => client.auctanePay.getConfig(),
|
|
419
|
+
queryKey: ["useGetAuctanePayConfig"],
|
|
420
|
+
select: (result) => result.data
|
|
421
|
+
}));
|
|
422
|
+
};
|
|
423
|
+
|
|
343
424
|
var __defProp$B = Object.defineProperty;
|
|
344
425
|
var __defProps$A = Object.defineProperties;
|
|
345
426
|
var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
|
|
@@ -359,7 +440,7 @@ var __spreadValues$B = (a, b) => {
|
|
|
359
440
|
return a;
|
|
360
441
|
};
|
|
361
442
|
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
362
|
-
var __async$
|
|
443
|
+
var __async$Q = (__this, __arguments, generator) => {
|
|
363
444
|
return new Promise((resolve, reject) => {
|
|
364
445
|
var fulfilled = (value) => {
|
|
365
446
|
try {
|
|
@@ -379,14 +460,18 @@ var __async$P = (__this, __arguments, generator) => {
|
|
|
379
460
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
380
461
|
});
|
|
381
462
|
};
|
|
382
|
-
const
|
|
463
|
+
const usePreviewTransaction = (params) => {
|
|
383
464
|
const { client } = useShipEngine();
|
|
384
465
|
return useMutation(__spreadProps$A(__spreadValues$B({}, params), {
|
|
385
|
-
mutationFn: (
|
|
386
|
-
const
|
|
466
|
+
mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
|
|
467
|
+
const request = {
|
|
468
|
+
amount,
|
|
469
|
+
transactionCategory
|
|
470
|
+
};
|
|
471
|
+
const result = yield client.auctanePay.previewTransaction(request);
|
|
387
472
|
return result.data;
|
|
388
473
|
}),
|
|
389
|
-
mutationKey: ["
|
|
474
|
+
mutationKey: ["usePreviewTransaction"],
|
|
390
475
|
onError
|
|
391
476
|
}));
|
|
392
477
|
};
|
|
@@ -410,13 +495,13 @@ var __spreadValues$A = (a, b) => {
|
|
|
410
495
|
return a;
|
|
411
496
|
};
|
|
412
497
|
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
413
|
-
const
|
|
498
|
+
const useGetPaymentMethods = (params) => {
|
|
414
499
|
const { client } = useShipEngine();
|
|
415
500
|
const queryParams = __spreadValues$A({}, params);
|
|
416
501
|
return useQuery(__spreadProps$z(__spreadValues$A({}, queryParams), {
|
|
417
502
|
onError,
|
|
418
|
-
queryFn: () => client.auctanePay.
|
|
419
|
-
queryKey: ["
|
|
503
|
+
queryFn: () => client.auctanePay.getPaymentMethods(),
|
|
504
|
+
queryKey: ["useGetPaymentMethods"],
|
|
420
505
|
select: (result) => result.data
|
|
421
506
|
}));
|
|
422
507
|
};
|
|
@@ -440,7 +525,7 @@ var __spreadValues$z = (a, b) => {
|
|
|
440
525
|
return a;
|
|
441
526
|
};
|
|
442
527
|
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
443
|
-
var __async$
|
|
528
|
+
var __async$P = (__this, __arguments, generator) => {
|
|
444
529
|
return new Promise((resolve, reject) => {
|
|
445
530
|
var fulfilled = (value) => {
|
|
446
531
|
try {
|
|
@@ -460,18 +545,14 @@ var __async$O = (__this, __arguments, generator) => {
|
|
|
460
545
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
461
546
|
});
|
|
462
547
|
};
|
|
463
|
-
const
|
|
548
|
+
const useDeletePaymentMethod = (params) => {
|
|
464
549
|
const { client } = useShipEngine();
|
|
465
550
|
return useMutation(__spreadProps$y(__spreadValues$z({}, params), {
|
|
466
|
-
mutationFn: (
|
|
467
|
-
const
|
|
468
|
-
amount,
|
|
469
|
-
transactionCategory
|
|
470
|
-
};
|
|
471
|
-
const result = yield client.auctanePay.previewTransaction(request);
|
|
551
|
+
mutationFn: (paymentMethodId) => __async$P(void 0, null, function* () {
|
|
552
|
+
const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
|
|
472
553
|
return result.data;
|
|
473
554
|
}),
|
|
474
|
-
mutationKey: ["
|
|
555
|
+
mutationKey: ["useDeletePaymentMethod"],
|
|
475
556
|
onError
|
|
476
557
|
}));
|
|
477
558
|
};
|
|
@@ -495,14 +576,35 @@ var __spreadValues$y = (a, b) => {
|
|
|
495
576
|
return a;
|
|
496
577
|
};
|
|
497
578
|
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
498
|
-
|
|
579
|
+
var __async$O = (__this, __arguments, generator) => {
|
|
580
|
+
return new Promise((resolve, reject) => {
|
|
581
|
+
var fulfilled = (value) => {
|
|
582
|
+
try {
|
|
583
|
+
step(generator.next(value));
|
|
584
|
+
} catch (e) {
|
|
585
|
+
reject(e);
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
var rejected = (value) => {
|
|
589
|
+
try {
|
|
590
|
+
step(generator.throw(value));
|
|
591
|
+
} catch (e) {
|
|
592
|
+
reject(e);
|
|
593
|
+
}
|
|
594
|
+
};
|
|
595
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
596
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
597
|
+
});
|
|
598
|
+
};
|
|
599
|
+
const useUpdatePaymentMethod = (params) => {
|
|
499
600
|
const { client } = useShipEngine();
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
601
|
+
return useMutation(__spreadProps$x(__spreadValues$y({}, params), {
|
|
602
|
+
mutationFn: (_0) => __async$O(void 0, [_0], function* ({ paymentMethodId, payload }) {
|
|
603
|
+
const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
|
|
604
|
+
return result.data;
|
|
605
|
+
}),
|
|
606
|
+
mutationKey: ["useUpdatePaymentMethod"],
|
|
607
|
+
onError
|
|
506
608
|
}));
|
|
507
609
|
};
|
|
508
610
|
|
|
@@ -3891,4 +3993,4 @@ const useListUsers = (params) => {
|
|
|
3891
3993
|
}));
|
|
3892
3994
|
};
|
|
3893
3995
|
|
|
3894
|
-
export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|
|
3996
|
+
export { ShipEngine, ShipEngineContext, delay, logger, onError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeletePaymentMethod, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|