propro-common-components 0.1.40 → 0.1.42
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/dist/api/useMutate.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { QueryKey, UseMutationResult } from "@tanstack/react-query";
|
1
|
+
import { QueryKey, UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
|
2
2
|
import { AxiosError, AxiosRequestConfig } from "axios";
|
3
3
|
import { ToastOptions } from "react-toastify";
|
4
4
|
declare const useMutate: ({ url, method, headers, invalidateAllQueries, successLog, errorLog, logURL, toastMessage, onSuccess, onError, }: {
|
@@ -16,11 +16,7 @@ declare const useMutate: ({ url, method, headers, invalidateAllQueries, successL
|
|
16
16
|
errorMessage: string;
|
17
17
|
options?: ToastOptions<unknown> | undefined;
|
18
18
|
} | undefined;
|
19
|
-
onSuccess?: ((res:
|
20
|
-
data: unknown;
|
21
|
-
}) => void) | undefined;
|
19
|
+
onSuccess?: ((res: unknown) => void) | undefined;
|
22
20
|
onError?: ((err: AxiosError) => void) | undefined;
|
23
|
-
}, options?:
|
24
|
-
data: unknown;
|
25
|
-
}, AxiosError, unknown, unknown>;
|
21
|
+
}, options?: UseMutationOptions<unknown, AxiosError, unknown, unknown>) => UseMutationResult<unknown, AxiosError, unknown, unknown>;
|
26
22
|
export default useMutate;
|
@@ -56603,13 +56603,17 @@ var _coreExports = _core.exports, _aFunction = function(m) {
|
|
56603
56603
|
if (!isObject$3(m))
|
56604
56604
|
throw TypeError(m + " is not an object!");
|
56605
56605
|
return m;
|
56606
|
-
}, _fails
|
56607
|
-
|
56608
|
-
|
56609
|
-
|
56610
|
-
|
56611
|
-
|
56612
|
-
|
56606
|
+
}, _fails, hasRequired_fails;
|
56607
|
+
function require_fails() {
|
56608
|
+
return hasRequired_fails || (hasRequired_fails = 1, _fails = function(m) {
|
56609
|
+
try {
|
56610
|
+
return !!m();
|
56611
|
+
} catch {
|
56612
|
+
return !0;
|
56613
|
+
}
|
56614
|
+
}), _fails;
|
56615
|
+
}
|
56616
|
+
var _descriptors = !require_fails()(function() {
|
56613
56617
|
return Object.defineProperty({}, "a", { get: function() {
|
56614
56618
|
return 7;
|
56615
56619
|
} }).a != 7;
|
@@ -56623,7 +56627,7 @@ function require_domCreate() {
|
|
56623
56627
|
return b ? g.createElement(_) : {};
|
56624
56628
|
}, _domCreate;
|
56625
56629
|
}
|
56626
|
-
var _ie8DomDefine = !_descriptors && !
|
56630
|
+
var _ie8DomDefine = !_descriptors && !require_fails()(function() {
|
56627
56631
|
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
56628
56632
|
return 7;
|
56629
56633
|
} }).a != 7;
|
@@ -56690,21 +56694,13 @@ $export$5.U = 64;
|
|
56690
56694
|
$export$5.R = 128;
|
56691
56695
|
var _export = $export$5, toString$1 = {}.toString, _cof = function(m) {
|
56692
56696
|
return toString$1.call(m).slice(8, -1);
|
56693
|
-
},
|
56694
|
-
|
56695
|
-
|
56696
|
-
return _iobject;
|
56697
|
-
hasRequired_iobject = 1;
|
56698
|
-
var m = _cof;
|
56699
|
-
return _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(g) {
|
56700
|
-
return m(g) == "String" ? g.split("") : Object(g);
|
56701
|
-
}, _iobject;
|
56702
|
-
}
|
56703
|
-
var _defined = function(m) {
|
56697
|
+
}, cof$1 = _cof, _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(m) {
|
56698
|
+
return cof$1(m) == "String" ? m.split("") : Object(m);
|
56699
|
+
}, _defined = function(m) {
|
56704
56700
|
if (m == null)
|
56705
56701
|
throw TypeError("Can't call method on " + m);
|
56706
56702
|
return m;
|
56707
|
-
}, IObject =
|
56703
|
+
}, IObject = _iobject, defined$2 = _defined, _toIobject = function(m) {
|
56708
56704
|
return IObject(defined$2(m));
|
56709
56705
|
}, ceil = Math.ceil, floor = Math.floor, _toInteger = function(m) {
|
56710
56706
|
return isNaN(m = +m) ? 0 : (m > 0 ? floor : ceil)(m);
|
@@ -56748,10 +56744,8 @@ var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = funct
|
|
56748
56744
|
return $keys$2(g, enumBugKeys$1);
|
56749
56745
|
}, _objectGops = {};
|
56750
56746
|
_objectGops.f = Object.getOwnPropertySymbols;
|
56751
|
-
var _objectPie = {}
|
56752
|
-
|
56753
|
-
return hasRequired_objectPie || (hasRequired_objectPie = 1, _objectPie.f = {}.propertyIsEnumerable), _objectPie;
|
56754
|
-
}
|
56747
|
+
var _objectPie = {};
|
56748
|
+
_objectPie.f = {}.propertyIsEnumerable;
|
56755
56749
|
var defined$1 = _defined, _toObject = function(m) {
|
56756
56750
|
return Object(defined$1(m));
|
56757
56751
|
}, _objectAssign, hasRequired_objectAssign;
|
@@ -56759,8 +56753,8 @@ function require_objectAssign() {
|
|
56759
56753
|
if (hasRequired_objectAssign)
|
56760
56754
|
return _objectAssign;
|
56761
56755
|
hasRequired_objectAssign = 1;
|
56762
|
-
var m = _descriptors, g = _objectKeys, b = _objectGops, _ =
|
56763
|
-
return _objectAssign = !$ ||
|
56756
|
+
var m = _descriptors, g = _objectKeys, b = _objectGops, _ = _objectPie, x = _toObject, C = _iobject, $ = Object.assign;
|
56757
|
+
return _objectAssign = !$ || require_fails()(function() {
|
56764
56758
|
var I = {}, R = {}, P = Symbol(), N = "abcdefghijklmnopqrst";
|
56765
56759
|
return I[P] = 7, N.split("").forEach(function(z) {
|
56766
56760
|
R[z] = z;
|
@@ -56795,7 +56789,7 @@ function require_objectSap() {
|
|
56795
56789
|
if (hasRequired_objectSap)
|
56796
56790
|
return _objectSap;
|
56797
56791
|
hasRequired_objectSap = 1;
|
56798
|
-
var m = _export, g = _coreExports, b =
|
56792
|
+
var m = _export, g = _coreExports, b = require_fails();
|
56799
56793
|
return _objectSap = function(_, x) {
|
56800
56794
|
var C = (g.Object || {})[_] || Object[_], $ = {};
|
56801
56795
|
$[_] = x(C), m(m.S + m.F * b(function() {
|
@@ -56949,7 +56943,7 @@ var _wksExt = {};
|
|
56949
56943
|
_wksExt.f = _wksExports;
|
56950
56944
|
var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esModule: !0 }, _meta = { exports: {} }, META$1 = _uid("meta"), isObject$1 = _isObject, has$2 = _has, setDesc = _objectDp.f, id = 0, isExtensible = Object.isExtensible || function() {
|
56951
56945
|
return !0;
|
56952
|
-
}, FREEZE = !
|
56946
|
+
}, FREEZE = !require_fails()(function() {
|
56953
56947
|
return isExtensible(Object.preventExtensions({}));
|
56954
56948
|
}), setMeta = function(m) {
|
56955
56949
|
setDesc(m, META$1, { value: {
|
@@ -56989,7 +56983,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
|
|
56989
56983
|
}, _metaExports = _meta.exports, core = _coreExports, wksExt$1 = _wksExt, defineProperty = _objectDp.f, _wksDefine = function(m) {
|
56990
56984
|
var g = core.Symbol || (core.Symbol = {});
|
56991
56985
|
m.charAt(0) != "_" && !(m in g) && defineProperty(g, m, { value: wksExt$1.f(m) });
|
56992
|
-
}, getKeys = _objectKeys, gOPS = _objectGops, pIE$1 =
|
56986
|
+
}, getKeys = _objectKeys, gOPS = _objectGops, pIE$1 = _objectPie, _enumKeys = function(m) {
|
56993
56987
|
var g = getKeys(m), b = gOPS.f;
|
56994
56988
|
if (b)
|
56995
56989
|
for (var _ = b(m), x = pIE$1.f, C = 0, $; _.length > C; )
|
@@ -57011,7 +57005,7 @@ var toIObject$2 = _toIobject, gOPN$1 = _objectGopn.f, toString = {}.toString, wi
|
|
57011
57005
|
_objectGopnExt.f = function(g) {
|
57012
57006
|
return windowNames && toString.call(g) == "[object Window]" ? getWindowNames(g) : gOPN$1(toIObject$2(g));
|
57013
57007
|
};
|
57014
|
-
var _objectGopd = {}, pIE =
|
57008
|
+
var _objectGopd = {}, pIE = _objectPie, createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$1 = _toPrimitive, has$1 = _has, IE8_DOM_DEFINE = _ie8DomDefine, gOPD$1 = Object.getOwnPropertyDescriptor;
|
57015
57009
|
_objectGopd.f = _descriptors ? gOPD$1 : function(g, b) {
|
57016
57010
|
if (g = toIObject$1(g), b = toPrimitive$1(b, !0), IE8_DOM_DEFINE)
|
57017
57011
|
try {
|
@@ -57021,7 +57015,7 @@ _objectGopd.f = _descriptors ? gOPD$1 : function(g, b) {
|
|
57021
57015
|
if (has$1(g, b))
|
57022
57016
|
return createDesc$1(!pIE.f.call(g, b), g[b]);
|
57023
57017
|
};
|
57024
|
-
var global$1 = _globalExports, has = _has, DESCRIPTORS = _descriptors, $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails =
|
57018
|
+
var global$1 = _globalExports, has = _has, DESCRIPTORS = _descriptors, $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails = require_fails(), shared = _sharedExports, setToStringTag = _setToStringTag, uid = _uid, wks = _wksExports, wksExt = _wksExt, wksDefine = _wksDefine, enumKeys = _enumKeys, isArray = _isArray, anObject = _anObject, isObject = _isObject, toObject = _toObject, toIObject = _toIobject, toPrimitive = _toPrimitive, createDesc = _propertyDesc, _create$1 = _objectCreate, gOPNExt = _objectGopnExt, $GOPD = _objectGopd, $GOPS = _objectGops, $DP = _objectDp, $keys = _objectKeys, gOPD = $GOPD.f, dP = $DP.f, gOPN = gOPNExt.f, $Symbol = global$1.Symbol, $JSON = global$1.JSON, _stringify = $JSON && $JSON.stringify, PROTOTYPE = "prototype", HIDDEN = wks("_hidden"), TO_PRIMITIVE = wks("toPrimitive"), isEnum = {}.propertyIsEnumerable, SymbolRegistry = shared("symbol-registry"), AllSymbols = shared("symbols"), OPSymbols = shared("op-symbols"), ObjectProto = Object[PROTOTYPE], USE_NATIVE = typeof $Symbol == "function" && !!$GOPS.f, QObject = global$1.QObject, setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild, setSymbolDesc = DESCRIPTORS && $fails(function() {
|
57025
57019
|
return _create$1(dP({}, "a", {
|
57026
57020
|
get: function() {
|
57027
57021
|
return dP(this, "a", { value: 7 }).a;
|
@@ -57072,7 +57066,7 @@ USE_NATIVE || ($Symbol = function() {
|
|
57072
57066
|
return DESCRIPTORS && setter && setSymbolDesc(ObjectProto, g, { configurable: !0, set: b }), wrap(g);
|
57073
57067
|
}, redefine($Symbol[PROTOTYPE], "toString", function() {
|
57074
57068
|
return this._k;
|
57075
|
-
}), $GOPD.f = $getOwnPropertyDescriptor, $DP.f = $defineProperty, _objectGopn.f = gOPNExt.f = $getOwnPropertyNames,
|
57069
|
+
}), $GOPD.f = $getOwnPropertyDescriptor, $DP.f = $defineProperty, _objectGopn.f = gOPNExt.f = $getOwnPropertyNames, _objectPie.f = $propertyIsEnumerable, $GOPS.f = $getOwnPropertySymbols, DESCRIPTORS && !_library && redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable), wksExt.f = function(m) {
|
57076
57070
|
return wrap(wks(m));
|
57077
57071
|
});
|
57078
57072
|
$export$2($export$2.G + $export$2.W + $export$2.F * !USE_NATIVE, { Symbol: $Symbol });
|