api-client-fideicomisos 1.9.0 → 1.11.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/enpoints/backoffice/accesoClientes.js +1 -10
- package/dist/enpoints/backoffice/blog.js +8 -38
- package/dist/enpoints/backoffice/contacts.js +2 -14
- package/dist/enpoints/backoffice/footer.js +1 -10
- package/dist/enpoints/backoffice/homePage.js +1 -4
- package/dist/enpoints/backoffice/institucional.js +6 -30
- package/dist/enpoints/backoffice/proyectos.js +5 -26
- package/dist/enpoints/backoffice/queHacemos.js +3 -18
- package/dist/enpoints/backoffice/tenesUnProyecto.js +1 -10
- package/package.json +1 -1
- package/src/enpoints/backoffice/accesoClientes.js +1 -6
- package/src/enpoints/backoffice/blog.js +8 -24
- package/src/enpoints/backoffice/contacts.js +2 -12
- package/src/enpoints/backoffice/footer.js +1 -6
- package/src/enpoints/backoffice/homePage.js +1 -6
- package/src/enpoints/backoffice/institucional.js +6 -36
- package/src/enpoints/backoffice/proyectos.js +5 -30
- package/src/enpoints/backoffice/queHacemos.js +3 -18
- package/src/enpoints/backoffice/tenesUnProyecto.js +1 -6
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
3
|
function accesoClientes(_ref) {
|
|
10
4
|
var client = _ref.client,
|
|
11
5
|
jwtToken = _ref.jwtToken;
|
|
@@ -22,16 +16,13 @@ function accesoClientes(_ref) {
|
|
|
22
16
|
function update(_ref3) {
|
|
23
17
|
var jwtToken = _ref3.jwtToken,
|
|
24
18
|
data = _ref3.data;
|
|
25
|
-
var formattedData = {
|
|
26
|
-
data: _objectSpread({}, data)
|
|
27
|
-
};
|
|
28
19
|
return client({
|
|
29
20
|
url: "/api/acceso-client",
|
|
30
21
|
method: "put",
|
|
31
22
|
headers: {
|
|
32
23
|
Authorization: "Bearer ".concat(jwtToken)
|
|
33
24
|
},
|
|
34
|
-
data:
|
|
25
|
+
data: data
|
|
35
26
|
});
|
|
36
27
|
}
|
|
37
28
|
return {
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
3
|
function companies(_ref) {
|
|
10
4
|
var client = _ref.client;
|
|
11
5
|
// ------------------CADA BLOG-------------------
|
|
@@ -43,16 +37,13 @@ function companies(_ref) {
|
|
|
43
37
|
if (!jwtToken) throw new Error("jwtToken is required");
|
|
44
38
|
if (!blogId) throw new Error("blogId is required");
|
|
45
39
|
if (!data) throw new Error("data is required");
|
|
46
|
-
var formattedData = {
|
|
47
|
-
data: _objectSpread({}, data)
|
|
48
|
-
};
|
|
49
40
|
return client({
|
|
50
41
|
url: "/api/blogs/".concat(blogId),
|
|
51
42
|
method: "put",
|
|
52
43
|
headers: {
|
|
53
44
|
Authorization: "Bearer ".concat(jwtToken)
|
|
54
45
|
},
|
|
55
|
-
data:
|
|
46
|
+
data: data
|
|
56
47
|
});
|
|
57
48
|
}
|
|
58
49
|
function createBlog(_ref5) {
|
|
@@ -60,16 +51,13 @@ function companies(_ref) {
|
|
|
60
51
|
data = _ref5.data;
|
|
61
52
|
if (!jwtToken) throw new Error("jwtToken is required");
|
|
62
53
|
if (!data) throw new Error("data is required");
|
|
63
|
-
var formattedData = {
|
|
64
|
-
data: _objectSpread({}, data)
|
|
65
|
-
};
|
|
66
54
|
return client({
|
|
67
55
|
url: "/api/blogs",
|
|
68
56
|
method: "post",
|
|
69
57
|
headers: {
|
|
70
58
|
Authorization: "Bearer ".concat(jwtToken)
|
|
71
59
|
},
|
|
72
|
-
data:
|
|
60
|
+
data: data
|
|
73
61
|
});
|
|
74
62
|
}
|
|
75
63
|
function deleteBlog(_ref6) {
|
|
@@ -113,16 +101,13 @@ function companies(_ref) {
|
|
|
113
101
|
if (!jwtToken) throw new Error("jwtToken is required");
|
|
114
102
|
if (!topicId) throw new Error("topicId is required");
|
|
115
103
|
if (!data) throw new Error("data is required");
|
|
116
|
-
var formattedData = {
|
|
117
|
-
data: _objectSpread({}, data)
|
|
118
|
-
};
|
|
119
104
|
return client({
|
|
120
105
|
url: "/api/topics/".concat(topicId),
|
|
121
106
|
method: "put",
|
|
122
107
|
headers: {
|
|
123
108
|
Authorization: "Bearer ".concat(jwtToken)
|
|
124
109
|
},
|
|
125
|
-
data:
|
|
110
|
+
data: data
|
|
126
111
|
});
|
|
127
112
|
}
|
|
128
113
|
function createTopic(_ref0) {
|
|
@@ -130,16 +115,13 @@ function companies(_ref) {
|
|
|
130
115
|
data = _ref0.data;
|
|
131
116
|
if (!jwtToken) throw new Error("jwtToken is required");
|
|
132
117
|
if (!data) throw new Error("data is required");
|
|
133
|
-
var formattedData = {
|
|
134
|
-
data: _objectSpread({}, data)
|
|
135
|
-
};
|
|
136
118
|
return client({
|
|
137
119
|
url: "/api/topics",
|
|
138
120
|
method: "post",
|
|
139
121
|
headers: {
|
|
140
122
|
Authorization: "Bearer ".concat(jwtToken)
|
|
141
123
|
},
|
|
142
|
-
data:
|
|
124
|
+
data: data
|
|
143
125
|
});
|
|
144
126
|
}
|
|
145
127
|
function deleteTopic(_ref1) {
|
|
@@ -182,16 +164,13 @@ function companies(_ref) {
|
|
|
182
164
|
if (!jwtToken) throw new Error("jwtToken is required");
|
|
183
165
|
if (!categorieId) throw new Error("categorieId is required");
|
|
184
166
|
if (!data) throw new Error("data is required");
|
|
185
|
-
var formattedData = {
|
|
186
|
-
data: _objectSpread({}, data)
|
|
187
|
-
};
|
|
188
167
|
return client({
|
|
189
168
|
url: "/api/categories/".concat(categorieId),
|
|
190
169
|
method: "put",
|
|
191
170
|
headers: {
|
|
192
171
|
Authorization: "Bearer ".concat(jwtToken)
|
|
193
172
|
},
|
|
194
|
-
data:
|
|
173
|
+
data: data
|
|
195
174
|
});
|
|
196
175
|
}
|
|
197
176
|
function createCategorie(_ref13) {
|
|
@@ -199,16 +178,13 @@ function companies(_ref) {
|
|
|
199
178
|
data = _ref13.data;
|
|
200
179
|
if (!jwtToken) throw new Error("jwtToken is required");
|
|
201
180
|
if (!data) throw new Error("data is required");
|
|
202
|
-
var formattedData = {
|
|
203
|
-
data: _objectSpread({}, data)
|
|
204
|
-
};
|
|
205
181
|
return client({
|
|
206
182
|
url: "/api/categories",
|
|
207
183
|
method: "post",
|
|
208
184
|
headers: {
|
|
209
185
|
Authorization: "Bearer ".concat(jwtToken)
|
|
210
186
|
},
|
|
211
|
-
data:
|
|
187
|
+
data: data
|
|
212
188
|
});
|
|
213
189
|
}
|
|
214
190
|
function deleteCategorie(_ref14) {
|
|
@@ -247,16 +223,13 @@ function companies(_ref) {
|
|
|
247
223
|
var jwtToken = _ref16.jwtToken,
|
|
248
224
|
data = _ref16.data,
|
|
249
225
|
fileId = _ref16.fileId;
|
|
250
|
-
var formattedData = {
|
|
251
|
-
data: _objectSpread({}, data)
|
|
252
|
-
};
|
|
253
226
|
return client({
|
|
254
227
|
url: "/api/blog-medias/".concat(fileId),
|
|
255
228
|
method: "put",
|
|
256
229
|
headers: {
|
|
257
230
|
Authorization: "Bearer ".concat(jwtToken)
|
|
258
231
|
},
|
|
259
|
-
data:
|
|
232
|
+
data: data
|
|
260
233
|
});
|
|
261
234
|
}
|
|
262
235
|
function deleteFile(_ref17) {
|
|
@@ -273,16 +246,13 @@ function companies(_ref) {
|
|
|
273
246
|
function createFile(_ref18) {
|
|
274
247
|
var jwtToken = _ref18.jwtToken,
|
|
275
248
|
data = _ref18.data;
|
|
276
|
-
var formattedData = {
|
|
277
|
-
data: _objectSpread({}, data)
|
|
278
|
-
};
|
|
279
249
|
return client({
|
|
280
250
|
url: "/api/blog-medias",
|
|
281
251
|
method: "post",
|
|
282
252
|
headers: {
|
|
283
253
|
Authorization: "Bearer ".concat(jwtToken)
|
|
284
254
|
},
|
|
285
|
-
data:
|
|
255
|
+
data: data
|
|
286
256
|
});
|
|
287
257
|
}
|
|
288
258
|
function getMediaById(_ref19) {
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
3
|
function contacts(_ref) {
|
|
10
4
|
var client = _ref.client;
|
|
11
5
|
function getAll(_ref2) {
|
|
@@ -32,31 +26,25 @@ function contacts(_ref) {
|
|
|
32
26
|
function createClient(_ref4) {
|
|
33
27
|
var jwtToken = _ref4.jwtToken,
|
|
34
28
|
data = _ref4.data;
|
|
35
|
-
var formattedData = {
|
|
36
|
-
data: _objectSpread({}, data)
|
|
37
|
-
};
|
|
38
29
|
return client({
|
|
39
30
|
url: "/api/contacts",
|
|
40
31
|
method: "post",
|
|
41
32
|
headers: {
|
|
42
33
|
Authorization: "Bearer ".concat(jwtToken)
|
|
43
34
|
},
|
|
44
|
-
data:
|
|
35
|
+
data: data
|
|
45
36
|
});
|
|
46
37
|
}
|
|
47
38
|
function update(_ref5) {
|
|
48
39
|
var jwtToken = _ref5.jwtToken,
|
|
49
40
|
data = _ref5.data;
|
|
50
|
-
var formattedData = {
|
|
51
|
-
data: _objectSpread({}, data)
|
|
52
|
-
};
|
|
53
41
|
return client({
|
|
54
42
|
url: "/api/contacts",
|
|
55
43
|
method: "put",
|
|
56
44
|
headers: {
|
|
57
45
|
Authorization: "Bearer ".concat(jwtToken)
|
|
58
46
|
},
|
|
59
|
-
data:
|
|
47
|
+
data: data
|
|
60
48
|
});
|
|
61
49
|
}
|
|
62
50
|
function deleteContact(_ref6) {
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
3
|
function footer(_ref) {
|
|
10
4
|
var client = _ref.client;
|
|
11
5
|
// ------------------FOOTER-------------------
|
|
@@ -22,16 +16,13 @@ function footer(_ref) {
|
|
|
22
16
|
function updateFooter(_ref3) {
|
|
23
17
|
var jwtToken = _ref3.jwtToken,
|
|
24
18
|
data = _ref3.data;
|
|
25
|
-
var formattedData = {
|
|
26
|
-
data: _objectSpread({}, data)
|
|
27
|
-
};
|
|
28
19
|
return client({
|
|
29
20
|
url: "/api/footer",
|
|
30
21
|
method: "put",
|
|
31
22
|
headers: {
|
|
32
23
|
Authorization: "Bearer ".concat(jwtToken)
|
|
33
24
|
},
|
|
34
|
-
data:
|
|
25
|
+
data: data
|
|
35
26
|
});
|
|
36
27
|
}
|
|
37
28
|
return {
|
|
@@ -20,16 +20,13 @@ function home(_ref) {
|
|
|
20
20
|
function updateHome(_ref2) {
|
|
21
21
|
var jwtToken = _ref2.jwtToken,
|
|
22
22
|
data = _ref2.data;
|
|
23
|
-
var formattedData = {
|
|
24
|
-
data: _objectSpread({}, data)
|
|
25
|
-
};
|
|
26
23
|
return client({
|
|
27
24
|
url: "/api/hero",
|
|
28
25
|
method: "put",
|
|
29
26
|
headers: {
|
|
30
27
|
Authorization: "Bearer ".concat(jwtToken)
|
|
31
28
|
},
|
|
32
|
-
data:
|
|
29
|
+
data: data
|
|
33
30
|
});
|
|
34
31
|
}
|
|
35
32
|
function getComoTrabajamos(jwtToken) {
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
3
|
function institucional(_ref) {
|
|
10
4
|
var client = _ref.client;
|
|
11
5
|
// ------------------ENFOQUE-------------------
|
|
@@ -22,16 +16,13 @@ function institucional(_ref) {
|
|
|
22
16
|
function updateNuestroEnfoque(_ref3) {
|
|
23
17
|
var jwtToken = _ref3.jwtToken,
|
|
24
18
|
data = _ref3.data;
|
|
25
|
-
var formattedData = {
|
|
26
|
-
data: _objectSpread({}, data)
|
|
27
|
-
};
|
|
28
19
|
return client({
|
|
29
20
|
url: "/api/enfoque",
|
|
30
21
|
method: "put",
|
|
31
22
|
headers: {
|
|
32
23
|
Authorization: "Bearer ".concat(jwtToken)
|
|
33
24
|
},
|
|
34
|
-
data:
|
|
25
|
+
data: data
|
|
35
26
|
});
|
|
36
27
|
}
|
|
37
28
|
|
|
@@ -49,16 +40,13 @@ function institucional(_ref) {
|
|
|
49
40
|
function updateinstitucional(_ref5) {
|
|
50
41
|
var jwtToken = _ref5.jwtToken,
|
|
51
42
|
data = _ref5.data;
|
|
52
|
-
var formattedData = {
|
|
53
|
-
data: _objectSpread({}, data)
|
|
54
|
-
};
|
|
55
43
|
return client({
|
|
56
44
|
url: "/api/institucional",
|
|
57
45
|
method: "put",
|
|
58
46
|
headers: {
|
|
59
47
|
Authorization: "Bearer ".concat(jwtToken)
|
|
60
48
|
},
|
|
61
|
-
data:
|
|
49
|
+
data: data
|
|
62
50
|
});
|
|
63
51
|
}
|
|
64
52
|
// ------------------MIEMBROS DE AREAS-------------------
|
|
@@ -80,31 +68,25 @@ function institucional(_ref) {
|
|
|
80
68
|
var jwtToken = _ref7.jwtToken,
|
|
81
69
|
memberId = _ref7.memberId,
|
|
82
70
|
data = _ref7.data;
|
|
83
|
-
var formattedData = {
|
|
84
|
-
data: _objectSpread({}, data)
|
|
85
|
-
};
|
|
86
71
|
return client({
|
|
87
72
|
url: "/api/member-teams/".concat(memberId),
|
|
88
73
|
method: "put",
|
|
89
74
|
headers: {
|
|
90
75
|
Authorization: "Bearer ".concat(jwtToken)
|
|
91
76
|
},
|
|
92
|
-
data:
|
|
77
|
+
data: data
|
|
93
78
|
});
|
|
94
79
|
}
|
|
95
80
|
function createMember(_ref8) {
|
|
96
81
|
var jwtToken = _ref8.jwtToken,
|
|
97
82
|
data = _ref8.data;
|
|
98
|
-
var formattedData = {
|
|
99
|
-
data: _objectSpread({}, data)
|
|
100
|
-
};
|
|
101
83
|
return client({
|
|
102
84
|
url: "/api/member-teams",
|
|
103
85
|
method: "post",
|
|
104
86
|
headers: {
|
|
105
87
|
Authorization: "Bearer ".concat(jwtToken)
|
|
106
88
|
},
|
|
107
|
-
data:
|
|
89
|
+
data: data
|
|
108
90
|
});
|
|
109
91
|
}
|
|
110
92
|
function deleteMember(_ref9) {
|
|
@@ -137,31 +119,25 @@ function institucional(_ref) {
|
|
|
137
119
|
var jwtToken = _ref1.jwtToken,
|
|
138
120
|
areaId = _ref1.areaId,
|
|
139
121
|
data = _ref1.data;
|
|
140
|
-
var formattedData = {
|
|
141
|
-
data: _objectSpread({}, data)
|
|
142
|
-
};
|
|
143
122
|
return client({
|
|
144
123
|
url: "/api/areas-teams/".concat(areaId),
|
|
145
124
|
method: "put",
|
|
146
125
|
headers: {
|
|
147
126
|
Authorization: "Bearer ".concat(jwtToken)
|
|
148
127
|
},
|
|
149
|
-
data:
|
|
128
|
+
data: data
|
|
150
129
|
});
|
|
151
130
|
}
|
|
152
131
|
function createArea(_ref10) {
|
|
153
132
|
var jwtToken = _ref10.jwtToken,
|
|
154
133
|
data = _ref10.data;
|
|
155
|
-
var formattedData = {
|
|
156
|
-
data: _objectSpread({}, data)
|
|
157
|
-
};
|
|
158
134
|
return client({
|
|
159
135
|
url: "/api/areas-teams",
|
|
160
136
|
method: "post",
|
|
161
137
|
headers: {
|
|
162
138
|
Authorization: "Bearer ".concat(jwtToken)
|
|
163
139
|
},
|
|
164
|
-
data:
|
|
140
|
+
data: data
|
|
165
141
|
});
|
|
166
142
|
}
|
|
167
143
|
function deleteArea(_ref11) {
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
3
|
function companies(_ref) {
|
|
10
4
|
var client = _ref.client;
|
|
11
5
|
// ------------------PROYECTOS-------------------
|
|
@@ -30,31 +24,25 @@ function companies(_ref) {
|
|
|
30
24
|
var jwtToken = _ref4.jwtToken,
|
|
31
25
|
projectId = _ref4.projectId,
|
|
32
26
|
data = _ref4.data;
|
|
33
|
-
var formattedData = {
|
|
34
|
-
data: _objectSpread({}, data)
|
|
35
|
-
};
|
|
36
27
|
return client({
|
|
37
28
|
url: "/api/projects/".concat(projectId),
|
|
38
29
|
method: "put",
|
|
39
30
|
headers: {
|
|
40
31
|
Authorization: "Bearer ".concat(jwtToken)
|
|
41
32
|
},
|
|
42
|
-
data:
|
|
33
|
+
data: data
|
|
43
34
|
});
|
|
44
35
|
}
|
|
45
36
|
function createCompanie(_ref5) {
|
|
46
37
|
var jwtToken = _ref5.jwtToken,
|
|
47
38
|
data = _ref5.data;
|
|
48
|
-
var formattedData = {
|
|
49
|
-
data: _objectSpread({}, data)
|
|
50
|
-
};
|
|
51
39
|
return client({
|
|
52
40
|
url: "/api/projects",
|
|
53
41
|
method: "post",
|
|
54
42
|
headers: {
|
|
55
43
|
Authorization: "Bearer ".concat(jwtToken)
|
|
56
44
|
},
|
|
57
|
-
data:
|
|
45
|
+
data: data
|
|
58
46
|
});
|
|
59
47
|
}
|
|
60
48
|
function deleteCompanie(_ref6) {
|
|
@@ -92,31 +80,25 @@ function companies(_ref) {
|
|
|
92
80
|
var jwtToken = _ref9.jwtToken,
|
|
93
81
|
aliadoId = _ref9.aliadoId,
|
|
94
82
|
data = _ref9.data;
|
|
95
|
-
var formattedData = {
|
|
96
|
-
data: _objectSpread({}, data)
|
|
97
|
-
};
|
|
98
83
|
return client({
|
|
99
84
|
url: "/api/aliados/".concat(aliadoId),
|
|
100
85
|
method: "put",
|
|
101
86
|
headers: {
|
|
102
87
|
Authorization: "Bearer ".concat(jwtToken)
|
|
103
88
|
},
|
|
104
|
-
|
|
89
|
+
dat: dat
|
|
105
90
|
});
|
|
106
91
|
}
|
|
107
92
|
function createAliado(_ref0) {
|
|
108
93
|
var jwtToken = _ref0.jwtToken,
|
|
109
94
|
data = _ref0.data;
|
|
110
|
-
var formattedData = {
|
|
111
|
-
data: _objectSpread({}, data)
|
|
112
|
-
};
|
|
113
95
|
return client({
|
|
114
96
|
url: "/api/aliados",
|
|
115
97
|
method: "post",
|
|
116
98
|
headers: {
|
|
117
99
|
Authorization: "Bearer ".concat(jwtToken)
|
|
118
100
|
},
|
|
119
|
-
data:
|
|
101
|
+
data: data
|
|
120
102
|
});
|
|
121
103
|
}
|
|
122
104
|
function deleteAliados(_ref1) {
|
|
@@ -144,16 +126,13 @@ function companies(_ref) {
|
|
|
144
126
|
function updateNuestrosProyectosSection(_ref10) {
|
|
145
127
|
var jwtToken = _ref10.jwtToken,
|
|
146
128
|
data = _ref10.data;
|
|
147
|
-
var formattedData = {
|
|
148
|
-
data: _objectSpread({}, data)
|
|
149
|
-
};
|
|
150
129
|
return client({
|
|
151
130
|
url: "/api/nuestros-proyecto",
|
|
152
131
|
method: "put",
|
|
153
132
|
headers: {
|
|
154
133
|
Authorization: "Bearer ".concat(jwtToken)
|
|
155
134
|
},
|
|
156
|
-
data:
|
|
135
|
+
data: data
|
|
157
136
|
});
|
|
158
137
|
}
|
|
159
138
|
return {
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
3
|
function queHacemoSeccion(_ref) {
|
|
10
4
|
var client = _ref.client;
|
|
11
5
|
// ------------------QUE HACEMOS-------------------
|
|
@@ -22,16 +16,13 @@ function queHacemoSeccion(_ref) {
|
|
|
22
16
|
function updateQueHacemos(_ref3) {
|
|
23
17
|
var jwtToken = _ref3.jwtToken,
|
|
24
18
|
data = _ref3.data;
|
|
25
|
-
var formattedData = {
|
|
26
|
-
data: _objectSpread({}, data)
|
|
27
|
-
};
|
|
28
19
|
return client({
|
|
29
20
|
url: "/api/que-hacemo",
|
|
30
21
|
method: "put",
|
|
31
22
|
headers: {
|
|
32
23
|
Authorization: "Bearer ".concat(jwtToken)
|
|
33
24
|
},
|
|
34
|
-
data:
|
|
25
|
+
data: data
|
|
35
26
|
});
|
|
36
27
|
}
|
|
37
28
|
|
|
@@ -49,16 +40,13 @@ function queHacemoSeccion(_ref) {
|
|
|
49
40
|
function updateAporte(_ref5) {
|
|
50
41
|
var jwtToken = _ref5.jwtToken,
|
|
51
42
|
data = _ref5.data;
|
|
52
|
-
var formattedData = {
|
|
53
|
-
data: _objectSpread({}, data)
|
|
54
|
-
};
|
|
55
43
|
return client({
|
|
56
44
|
url: "/api/aporte",
|
|
57
45
|
method: "put",
|
|
58
46
|
headers: {
|
|
59
47
|
Authorization: "Bearer ".concat(jwtToken)
|
|
60
48
|
},
|
|
61
|
-
data:
|
|
49
|
+
data: data
|
|
62
50
|
});
|
|
63
51
|
}
|
|
64
52
|
|
|
@@ -77,16 +65,13 @@ function queHacemoSeccion(_ref) {
|
|
|
77
65
|
function updateSeccionProyectos(_ref7) {
|
|
78
66
|
var jwtToken = _ref7.jwtToken,
|
|
79
67
|
data = _ref7.data;
|
|
80
|
-
var formattedData = {
|
|
81
|
-
data: _objectSpread({}, data)
|
|
82
|
-
};
|
|
83
68
|
return client({
|
|
84
69
|
url: "/api/projects-que-hacemo",
|
|
85
70
|
method: "put",
|
|
86
71
|
headers: {
|
|
87
72
|
Authorization: "Bearer ".concat(jwtToken)
|
|
88
73
|
},
|
|
89
|
-
data:
|
|
74
|
+
data: data
|
|
90
75
|
});
|
|
91
76
|
}
|
|
92
77
|
return {
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
3
|
function tenesUnProyecto(_ref) {
|
|
10
4
|
var client = _ref.client,
|
|
11
5
|
jwtToken = _ref.jwtToken;
|
|
@@ -21,16 +15,13 @@ function tenesUnProyecto(_ref) {
|
|
|
21
15
|
function update(_ref2) {
|
|
22
16
|
var jwtToken = _ref2.jwtToken,
|
|
23
17
|
data = _ref2.data;
|
|
24
|
-
var formattedData = {
|
|
25
|
-
data: _objectSpread({}, data)
|
|
26
|
-
};
|
|
27
18
|
return client({
|
|
28
19
|
url: "/api/tenes-proyecto",
|
|
29
20
|
method: "put",
|
|
30
21
|
headers: {
|
|
31
22
|
Authorization: "Bearer ".concat(jwtToken)
|
|
32
23
|
},
|
|
33
|
-
data:
|
|
24
|
+
data: data
|
|
34
25
|
});
|
|
35
26
|
}
|
|
36
27
|
return {
|
package/package.json
CHANGED
|
@@ -9,18 +9,13 @@ function accesoClientes({ client, jwtToken }) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
function update({ jwtToken, data }) {
|
|
12
|
-
const formattedData = {
|
|
13
|
-
data: {
|
|
14
|
-
...data,
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
12
|
return client({
|
|
18
13
|
url: "/api/acceso-client",
|
|
19
14
|
method: "put",
|
|
20
15
|
headers: {
|
|
21
16
|
Authorization: `Bearer ${jwtToken}`,
|
|
22
17
|
},
|
|
23
|
-
data
|
|
18
|
+
data,
|
|
24
19
|
});
|
|
25
20
|
}
|
|
26
21
|
|
|
@@ -30,28 +30,26 @@ function companies({ client }) {
|
|
|
30
30
|
if (!blogId) throw new Error("blogId is required");
|
|
31
31
|
if (!data) throw new Error("data is required");
|
|
32
32
|
|
|
33
|
-
const formattedData = { data: { ...data } };
|
|
34
33
|
return client({
|
|
35
34
|
url: `/api/blogs/${blogId}`,
|
|
36
35
|
method: "put",
|
|
37
36
|
headers: {
|
|
38
37
|
Authorization: `Bearer ${jwtToken}`,
|
|
39
38
|
},
|
|
40
|
-
data
|
|
39
|
+
data,
|
|
41
40
|
});
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
function createBlog({ jwtToken, data }) {
|
|
45
44
|
if (!jwtToken) throw new Error("jwtToken is required");
|
|
46
45
|
if (!data) throw new Error("data is required");
|
|
47
|
-
const formattedData = { data: { ...data } };
|
|
48
46
|
return client({
|
|
49
47
|
url: "/api/blogs",
|
|
50
48
|
method: "post",
|
|
51
49
|
headers: {
|
|
52
50
|
Authorization: `Bearer ${jwtToken}`,
|
|
53
51
|
},
|
|
54
|
-
data
|
|
52
|
+
data,
|
|
55
53
|
});
|
|
56
54
|
}
|
|
57
55
|
|
|
@@ -92,14 +90,13 @@ function companies({ client }) {
|
|
|
92
90
|
if (!jwtToken) throw new Error("jwtToken is required");
|
|
93
91
|
if (!topicId) throw new Error("topicId is required");
|
|
94
92
|
if (!data) throw new Error("data is required");
|
|
95
|
-
const formattedData = { data: { ...data } };
|
|
96
93
|
return client({
|
|
97
94
|
url: `/api/topics/${topicId}`,
|
|
98
95
|
method: "put",
|
|
99
96
|
headers: {
|
|
100
97
|
Authorization: `Bearer ${jwtToken}`,
|
|
101
98
|
},
|
|
102
|
-
data
|
|
99
|
+
data,
|
|
103
100
|
});
|
|
104
101
|
}
|
|
105
102
|
|
|
@@ -107,14 +104,13 @@ function companies({ client }) {
|
|
|
107
104
|
if (!jwtToken) throw new Error("jwtToken is required");
|
|
108
105
|
if (!data) throw new Error("data is required");
|
|
109
106
|
|
|
110
|
-
const formattedData = { data: { ...data } };
|
|
111
107
|
return client({
|
|
112
108
|
url: "/api/topics",
|
|
113
109
|
method: "post",
|
|
114
110
|
headers: {
|
|
115
111
|
Authorization: `Bearer ${jwtToken}`,
|
|
116
112
|
},
|
|
117
|
-
data
|
|
113
|
+
data,
|
|
118
114
|
});
|
|
119
115
|
}
|
|
120
116
|
|
|
@@ -154,14 +150,13 @@ function companies({ client }) {
|
|
|
154
150
|
if (!jwtToken) throw new Error("jwtToken is required");
|
|
155
151
|
if (!categorieId) throw new Error("categorieId is required");
|
|
156
152
|
if (!data) throw new Error("data is required");
|
|
157
|
-
const formattedData = { data: { ...data } };
|
|
158
153
|
return client({
|
|
159
154
|
url: `/api/categories/${categorieId}`,
|
|
160
155
|
method: "put",
|
|
161
156
|
headers: {
|
|
162
157
|
Authorization: `Bearer ${jwtToken}`,
|
|
163
158
|
},
|
|
164
|
-
data
|
|
159
|
+
data,
|
|
165
160
|
});
|
|
166
161
|
}
|
|
167
162
|
|
|
@@ -169,14 +164,13 @@ function companies({ client }) {
|
|
|
169
164
|
if (!jwtToken) throw new Error("jwtToken is required");
|
|
170
165
|
if (!data) throw new Error("data is required");
|
|
171
166
|
|
|
172
|
-
const formattedData = { data: { ...data } };
|
|
173
167
|
return client({
|
|
174
168
|
url: "/api/categories",
|
|
175
169
|
method: "post",
|
|
176
170
|
headers: {
|
|
177
171
|
Authorization: `Bearer ${jwtToken}`,
|
|
178
172
|
},
|
|
179
|
-
data
|
|
173
|
+
data,
|
|
180
174
|
});
|
|
181
175
|
}
|
|
182
176
|
|
|
@@ -209,18 +203,13 @@ function companies({ client }) {
|
|
|
209
203
|
}
|
|
210
204
|
|
|
211
205
|
function updateFile({ jwtToken, data, fileId }) {
|
|
212
|
-
const formattedData = {
|
|
213
|
-
data: {
|
|
214
|
-
...data,
|
|
215
|
-
},
|
|
216
|
-
};
|
|
217
206
|
return client({
|
|
218
207
|
url: `/api/blog-medias/${fileId}`,
|
|
219
208
|
method: "put",
|
|
220
209
|
headers: {
|
|
221
210
|
Authorization: `Bearer ${jwtToken}`,
|
|
222
211
|
},
|
|
223
|
-
data
|
|
212
|
+
data,
|
|
224
213
|
});
|
|
225
214
|
}
|
|
226
215
|
function deleteFile({ jwtToken, fileId }) {
|
|
@@ -233,18 +222,13 @@ function companies({ client }) {
|
|
|
233
222
|
});
|
|
234
223
|
}
|
|
235
224
|
function createFile({ jwtToken, data }) {
|
|
236
|
-
const formattedData = {
|
|
237
|
-
data: {
|
|
238
|
-
...data,
|
|
239
|
-
},
|
|
240
|
-
};
|
|
241
225
|
return client({
|
|
242
226
|
url: "/api/blog-medias",
|
|
243
227
|
method: "post",
|
|
244
228
|
headers: {
|
|
245
229
|
Authorization: `Bearer ${jwtToken}`,
|
|
246
230
|
},
|
|
247
|
-
data
|
|
231
|
+
data,
|
|
248
232
|
});
|
|
249
233
|
}
|
|
250
234
|
function getMediaById({ jwtToken, fileId }) {
|
|
@@ -18,33 +18,23 @@ function contacts({ client }) {
|
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
function createClient({ jwtToken, data }) {
|
|
21
|
-
const formattedData = {
|
|
22
|
-
data: {
|
|
23
|
-
...data,
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
21
|
return client({
|
|
27
22
|
url: "/api/contacts",
|
|
28
23
|
method: "post",
|
|
29
24
|
headers: {
|
|
30
25
|
Authorization: `Bearer ${jwtToken}`,
|
|
31
26
|
},
|
|
32
|
-
data
|
|
27
|
+
data,
|
|
33
28
|
});
|
|
34
29
|
}
|
|
35
30
|
function update({ jwtToken, data }) {
|
|
36
|
-
const formattedData = {
|
|
37
|
-
data: {
|
|
38
|
-
...data,
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
31
|
return client({
|
|
42
32
|
url: "/api/contacts",
|
|
43
33
|
method: "put",
|
|
44
34
|
headers: {
|
|
45
35
|
Authorization: `Bearer ${jwtToken}`,
|
|
46
36
|
},
|
|
47
|
-
data
|
|
37
|
+
data,
|
|
48
38
|
});
|
|
49
39
|
}
|
|
50
40
|
function deleteContact({ clientId, jwtToken }) {
|
|
@@ -10,18 +10,13 @@ function footer({ client }) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
function updateFooter({ jwtToken, data }) {
|
|
13
|
-
const formattedData = {
|
|
14
|
-
data: {
|
|
15
|
-
...data,
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
13
|
return client({
|
|
19
14
|
url: "/api/footer",
|
|
20
15
|
method: "put",
|
|
21
16
|
headers: {
|
|
22
17
|
Authorization: `Bearer ${jwtToken}`,
|
|
23
18
|
},
|
|
24
|
-
data
|
|
19
|
+
data,
|
|
25
20
|
});
|
|
26
21
|
}
|
|
27
22
|
|
|
@@ -9,18 +9,13 @@ function home({ client }) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
function updateHome({ jwtToken, data }) {
|
|
12
|
-
const formattedData = {
|
|
13
|
-
data: {
|
|
14
|
-
...data,
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
12
|
return client({
|
|
18
13
|
url: `/api/hero`,
|
|
19
14
|
method: "put",
|
|
20
15
|
headers: {
|
|
21
16
|
Authorization: `Bearer ${jwtToken}`,
|
|
22
17
|
},
|
|
23
|
-
data
|
|
18
|
+
data,
|
|
24
19
|
});
|
|
25
20
|
}
|
|
26
21
|
function getComoTrabajamos(jwtToken) {
|
|
@@ -10,18 +10,13 @@ function institucional({ client }) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
function updateNuestroEnfoque({ jwtToken, data }) {
|
|
13
|
-
const formattedData = {
|
|
14
|
-
data: {
|
|
15
|
-
...data,
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
13
|
return client({
|
|
19
14
|
url: "/api/enfoque",
|
|
20
15
|
method: "put",
|
|
21
16
|
headers: {
|
|
22
17
|
Authorization: `Bearer ${jwtToken}`,
|
|
23
18
|
},
|
|
24
|
-
data
|
|
19
|
+
data,
|
|
25
20
|
});
|
|
26
21
|
}
|
|
27
22
|
|
|
@@ -36,18 +31,13 @@ function institucional({ client }) {
|
|
|
36
31
|
});
|
|
37
32
|
}
|
|
38
33
|
function updateinstitucional({ jwtToken, data }) {
|
|
39
|
-
const formattedData = {
|
|
40
|
-
data: {
|
|
41
|
-
...data,
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
34
|
return client({
|
|
45
35
|
url: "/api/institucional",
|
|
46
36
|
method: "put",
|
|
47
37
|
headers: {
|
|
48
38
|
Authorization: `Bearer ${jwtToken}`,
|
|
49
39
|
},
|
|
50
|
-
data
|
|
40
|
+
data,
|
|
51
41
|
});
|
|
52
42
|
}
|
|
53
43
|
// ------------------MIEMBROS DE AREAS-------------------
|
|
@@ -65,33 +55,23 @@ function institucional({ client }) {
|
|
|
65
55
|
});
|
|
66
56
|
}
|
|
67
57
|
function updateMember({ jwtToken, memberId, data }) {
|
|
68
|
-
const formattedData = {
|
|
69
|
-
data: {
|
|
70
|
-
...data,
|
|
71
|
-
},
|
|
72
|
-
};
|
|
73
58
|
return client({
|
|
74
59
|
url: `/api/member-teams/${memberId}`,
|
|
75
60
|
method: "put",
|
|
76
61
|
headers: {
|
|
77
62
|
Authorization: `Bearer ${jwtToken}`,
|
|
78
63
|
},
|
|
79
|
-
data
|
|
64
|
+
data,
|
|
80
65
|
});
|
|
81
66
|
}
|
|
82
67
|
function createMember({ jwtToken, data }) {
|
|
83
|
-
const formattedData = {
|
|
84
|
-
data: {
|
|
85
|
-
...data,
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
68
|
return client({
|
|
89
69
|
url: "/api/member-teams",
|
|
90
70
|
method: "post",
|
|
91
71
|
headers: {
|
|
92
72
|
Authorization: `Bearer ${jwtToken}`,
|
|
93
73
|
},
|
|
94
|
-
data
|
|
74
|
+
data,
|
|
95
75
|
});
|
|
96
76
|
}
|
|
97
77
|
function deleteMember({ jwtToken, memberId }) {
|
|
@@ -118,33 +98,23 @@ function institucional({ client }) {
|
|
|
118
98
|
});
|
|
119
99
|
}
|
|
120
100
|
function updateArea({ jwtToken, areaId, data }) {
|
|
121
|
-
const formattedData = {
|
|
122
|
-
data: {
|
|
123
|
-
...data,
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
101
|
return client({
|
|
127
102
|
url: `/api/areas-teams/${areaId}`,
|
|
128
103
|
method: "put",
|
|
129
104
|
headers: {
|
|
130
105
|
Authorization: `Bearer ${jwtToken}`,
|
|
131
106
|
},
|
|
132
|
-
data
|
|
107
|
+
data,
|
|
133
108
|
});
|
|
134
109
|
}
|
|
135
110
|
function createArea({ jwtToken, data }) {
|
|
136
|
-
const formattedData = {
|
|
137
|
-
data: {
|
|
138
|
-
...data,
|
|
139
|
-
},
|
|
140
|
-
};
|
|
141
111
|
return client({
|
|
142
112
|
url: "/api/areas-teams",
|
|
143
113
|
method: "post",
|
|
144
114
|
headers: {
|
|
145
115
|
Authorization: `Bearer ${jwtToken}`,
|
|
146
116
|
},
|
|
147
|
-
data
|
|
117
|
+
data,
|
|
148
118
|
});
|
|
149
119
|
}
|
|
150
120
|
function deleteArea({ jwtToken, areaId }) {
|
|
@@ -17,33 +17,23 @@ function companies({ client }) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
function updateProjects({ jwtToken, projectId, data }) {
|
|
20
|
-
const formattedData = {
|
|
21
|
-
data: {
|
|
22
|
-
...data,
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
20
|
return client({
|
|
26
21
|
url: `/api/projects/${projectId}`,
|
|
27
22
|
method: "put",
|
|
28
23
|
headers: {
|
|
29
24
|
Authorization: `Bearer ${jwtToken}`,
|
|
30
25
|
},
|
|
31
|
-
data
|
|
26
|
+
data,
|
|
32
27
|
});
|
|
33
28
|
}
|
|
34
29
|
function createCompanie({ jwtToken, data }) {
|
|
35
|
-
const formattedData = {
|
|
36
|
-
data: {
|
|
37
|
-
...data,
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
30
|
return client({
|
|
41
31
|
url: "/api/projects",
|
|
42
32
|
method: "post",
|
|
43
33
|
headers: {
|
|
44
34
|
Authorization: `Bearer ${jwtToken}`,
|
|
45
35
|
},
|
|
46
|
-
data
|
|
36
|
+
data,
|
|
47
37
|
});
|
|
48
38
|
}
|
|
49
39
|
|
|
@@ -76,33 +66,23 @@ function companies({ client }) {
|
|
|
76
66
|
});
|
|
77
67
|
}
|
|
78
68
|
function updateAliado({ jwtToken, aliadoId, data }) {
|
|
79
|
-
const formattedData = {
|
|
80
|
-
data: {
|
|
81
|
-
...data,
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
69
|
return client({
|
|
85
70
|
url: `/api/aliados/${aliadoId}`,
|
|
86
71
|
method: "put",
|
|
87
72
|
headers: {
|
|
88
73
|
Authorization: `Bearer ${jwtToken}`,
|
|
89
74
|
},
|
|
90
|
-
|
|
75
|
+
dat,
|
|
91
76
|
});
|
|
92
77
|
}
|
|
93
78
|
function createAliado({ jwtToken, data }) {
|
|
94
|
-
const formattedData = {
|
|
95
|
-
data: {
|
|
96
|
-
...data,
|
|
97
|
-
},
|
|
98
|
-
};
|
|
99
79
|
return client({
|
|
100
80
|
url: "/api/aliados",
|
|
101
81
|
method: "post",
|
|
102
82
|
headers: {
|
|
103
83
|
Authorization: `Bearer ${jwtToken}`,
|
|
104
84
|
},
|
|
105
|
-
data
|
|
85
|
+
data,
|
|
106
86
|
});
|
|
107
87
|
}
|
|
108
88
|
|
|
@@ -127,18 +107,13 @@ function companies({ client }) {
|
|
|
127
107
|
});
|
|
128
108
|
}
|
|
129
109
|
function updateNuestrosProyectosSection({ jwtToken, data }) {
|
|
130
|
-
const formattedData = {
|
|
131
|
-
data: {
|
|
132
|
-
...data,
|
|
133
|
-
},
|
|
134
|
-
};
|
|
135
110
|
return client({
|
|
136
111
|
url: `/api/nuestros-proyecto`,
|
|
137
112
|
method: "put",
|
|
138
113
|
headers: {
|
|
139
114
|
Authorization: `Bearer ${jwtToken}`,
|
|
140
115
|
},
|
|
141
|
-
data
|
|
116
|
+
data,
|
|
142
117
|
});
|
|
143
118
|
}
|
|
144
119
|
|
|
@@ -10,18 +10,13 @@ function queHacemoSeccion({ client }) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
function updateQueHacemos({ jwtToken, data }) {
|
|
13
|
-
const formattedData = {
|
|
14
|
-
data: {
|
|
15
|
-
...data,
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
13
|
return client({
|
|
19
14
|
url: "/api/que-hacemo",
|
|
20
15
|
method: "put",
|
|
21
16
|
headers: {
|
|
22
17
|
Authorization: `Bearer ${jwtToken}`,
|
|
23
18
|
},
|
|
24
|
-
data
|
|
19
|
+
data,
|
|
25
20
|
});
|
|
26
21
|
}
|
|
27
22
|
|
|
@@ -36,18 +31,13 @@ function queHacemoSeccion({ client }) {
|
|
|
36
31
|
});
|
|
37
32
|
}
|
|
38
33
|
function updateAporte({ jwtToken, data }) {
|
|
39
|
-
const formattedData = {
|
|
40
|
-
data: {
|
|
41
|
-
...data,
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
34
|
return client({
|
|
45
35
|
url: "/api/aporte",
|
|
46
36
|
method: "put",
|
|
47
37
|
headers: {
|
|
48
38
|
Authorization: `Bearer ${jwtToken}`,
|
|
49
39
|
},
|
|
50
|
-
data
|
|
40
|
+
data,
|
|
51
41
|
});
|
|
52
42
|
}
|
|
53
43
|
|
|
@@ -63,18 +53,13 @@ function queHacemoSeccion({ client }) {
|
|
|
63
53
|
});
|
|
64
54
|
}
|
|
65
55
|
function updateSeccionProyectos({ jwtToken, data }) {
|
|
66
|
-
const formattedData = {
|
|
67
|
-
data: {
|
|
68
|
-
...data,
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
56
|
return client({
|
|
72
57
|
url: "/api/projects-que-hacemo",
|
|
73
58
|
method: "put",
|
|
74
59
|
headers: {
|
|
75
60
|
Authorization: `Bearer ${jwtToken}`,
|
|
76
61
|
},
|
|
77
|
-
data
|
|
62
|
+
data,
|
|
78
63
|
});
|
|
79
64
|
}
|
|
80
65
|
|
|
@@ -9,18 +9,13 @@ function tenesUnProyecto({ client, jwtToken }) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
function update({ jwtToken, data }) {
|
|
12
|
-
const formattedData = {
|
|
13
|
-
data: {
|
|
14
|
-
...data,
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
12
|
return client({
|
|
18
13
|
url: "/api/tenes-proyecto",
|
|
19
14
|
method: "put",
|
|
20
15
|
headers: {
|
|
21
16
|
Authorization: `Bearer ${jwtToken}`,
|
|
22
17
|
},
|
|
23
|
-
data
|
|
18
|
+
data,
|
|
24
19
|
});
|
|
25
20
|
}
|
|
26
21
|
|