api-client-fideicomisos 1.8.0 → 1.10.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/dist/client.d.ts
CHANGED
|
@@ -8,7 +8,8 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
8
8
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
9
|
function contacts(_ref) {
|
|
10
10
|
var client = _ref.client;
|
|
11
|
-
function getAll() {
|
|
11
|
+
function getAll(_ref2) {
|
|
12
|
+
var jwtToken = _ref2.jwtToken;
|
|
12
13
|
return client({
|
|
13
14
|
url: "/api/contacts",
|
|
14
15
|
method: "get",
|
|
@@ -17,9 +18,9 @@ function contacts(_ref) {
|
|
|
17
18
|
}
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
function getById(
|
|
21
|
-
var clientId =
|
|
22
|
-
jwtToken =
|
|
21
|
+
function getById(_ref3) {
|
|
22
|
+
var clientId = _ref3.clientId,
|
|
23
|
+
jwtToken = _ref3.jwtToken;
|
|
23
24
|
return client({
|
|
24
25
|
url: "/api/contacts/".concat(clientId),
|
|
25
26
|
method: "get",
|
|
@@ -28,9 +29,9 @@ function contacts(_ref) {
|
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
|
-
function createClient(
|
|
32
|
-
var jwtToken =
|
|
33
|
-
data =
|
|
32
|
+
function createClient(_ref4) {
|
|
33
|
+
var jwtToken = _ref4.jwtToken,
|
|
34
|
+
data = _ref4.data;
|
|
34
35
|
var formattedData = {
|
|
35
36
|
data: _objectSpread({}, data)
|
|
36
37
|
};
|
|
@@ -43,9 +44,9 @@ function contacts(_ref) {
|
|
|
43
44
|
data: formattedData
|
|
44
45
|
});
|
|
45
46
|
}
|
|
46
|
-
function update(
|
|
47
|
-
var jwtToken =
|
|
48
|
-
data =
|
|
47
|
+
function update(_ref5) {
|
|
48
|
+
var jwtToken = _ref5.jwtToken,
|
|
49
|
+
data = _ref5.data;
|
|
49
50
|
var formattedData = {
|
|
50
51
|
data: _objectSpread({}, data)
|
|
51
52
|
};
|
|
@@ -58,9 +59,9 @@ function contacts(_ref) {
|
|
|
58
59
|
data: formattedData
|
|
59
60
|
});
|
|
60
61
|
}
|
|
61
|
-
function deleteContact(
|
|
62
|
-
var clientId =
|
|
63
|
-
jwtToken =
|
|
62
|
+
function deleteContact(_ref6) {
|
|
63
|
+
var clientId = _ref6.clientId,
|
|
64
|
+
jwtToken = _ref6.jwtToken;
|
|
64
65
|
return client({
|
|
65
66
|
url: "/api/contacts/".concat(clientId),
|
|
66
67
|
method: "delete",
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
"declaration": true,
|
|
4
4
|
"emitDeclarationOnly": true,
|
|
5
5
|
"outDir": "dist",
|
|
6
|
+
"rootDir": "src",
|
|
6
7
|
"allowJs": true,
|
|
7
|
-
"
|
|
8
|
+
"module": "node16",
|
|
9
|
+
"moduleResolution": "node16",
|
|
8
10
|
"strict": true,
|
|
9
|
-
"target": "es2017",
|
|
10
|
-
"lib": ["es2017", "dom"]
|
|
11
|
+
"target": "es2017",
|
|
12
|
+
"lib": ["es2017", "dom"]
|
|
11
13
|
},
|
|
12
14
|
"include": ["src"]
|
|
13
15
|
}
|