api-client-fideicomisos 1.2.0 → 1.5.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 +96 -26
- package/dist/client.js +7 -4
- package/dist/enpoints/backoffice/blog.d.ts +21 -7
- package/dist/enpoints/backoffice/blog.js +127 -83
- package/dist/enpoints/backoffice/homePage.d.ts +20 -0
- package/dist/enpoints/backoffice/homePage.js +92 -0
- package/dist/enpoints/backoffice/institucional.d.ts +11 -8
- package/dist/enpoints/backoffice/institucional.js +53 -32
- package/dist/enpoints/backoffice/proyectos.d.ts +48 -0
- package/dist/enpoints/backoffice/proyectos.js +174 -0
- package/dist/enpoints/backoffice/queHacemos.d.ts +26 -0
- package/dist/enpoints/backoffice/queHacemos.js +101 -0
- package/package.json +1 -1
- package/src/client.js +4 -3
- package/src/enpoints/backoffice/blog.js +72 -32
- package/src/enpoints/backoffice/homePage.js +84 -0
- package/src/enpoints/backoffice/institucional.js +32 -10
- package/src/enpoints/backoffice/proyectos.js +160 -0
- package/src/enpoints/backoffice/queHacemos.js +90 -0
- package/src/enpoints/backoffice/cardHomePage.js +0 -32
- package/src/enpoints/backoffice/companies.js +0 -67
- package/src/enpoints/backoffice/videoSection.js +0 -32
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
function home(_ref) {
|
|
10
|
+
var client = _ref.client;
|
|
11
|
+
function getCardHome(jwtToken) {
|
|
12
|
+
return client({
|
|
13
|
+
url: "/api/hero",
|
|
14
|
+
method: "get",
|
|
15
|
+
headers: {
|
|
16
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function updateHome(_ref2) {
|
|
21
|
+
var jwtToken = _ref2.jwtToken,
|
|
22
|
+
data = _ref2.data;
|
|
23
|
+
var formattedData = {
|
|
24
|
+
data: _objectSpread({}, data)
|
|
25
|
+
};
|
|
26
|
+
return client({
|
|
27
|
+
url: "/api/hero",
|
|
28
|
+
method: "put",
|
|
29
|
+
headers: {
|
|
30
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
31
|
+
},
|
|
32
|
+
data: formattedData
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function getComoTrabajamos(jwtToken) {
|
|
36
|
+
return client({
|
|
37
|
+
url: "/api/como-trabajamo",
|
|
38
|
+
method: "get",
|
|
39
|
+
headers: {
|
|
40
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function updateComoTrabajamos(_ref3) {
|
|
45
|
+
var jwtToken = _ref3.jwtToken,
|
|
46
|
+
data = _ref3.data;
|
|
47
|
+
var formattedData = {
|
|
48
|
+
data: _objectSpread({}, data)
|
|
49
|
+
};
|
|
50
|
+
return client({
|
|
51
|
+
url: "/api/como-trabajamo",
|
|
52
|
+
method: "put",
|
|
53
|
+
headers: {
|
|
54
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
55
|
+
},
|
|
56
|
+
data: formattedData
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function getContador(jwtToken) {
|
|
60
|
+
return client({
|
|
61
|
+
url: "/api/contador",
|
|
62
|
+
method: "get",
|
|
63
|
+
headers: {
|
|
64
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function updateContador(_ref4) {
|
|
69
|
+
var jwtToken = _ref4.jwtToken,
|
|
70
|
+
data = _ref4.data;
|
|
71
|
+
var formattedData = {
|
|
72
|
+
data: _objectSpread({}, data)
|
|
73
|
+
};
|
|
74
|
+
return client({
|
|
75
|
+
url: "/api/contador",
|
|
76
|
+
method: "put",
|
|
77
|
+
headers: {
|
|
78
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
79
|
+
},
|
|
80
|
+
data: formattedData
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
updateHome: updateHome,
|
|
85
|
+
getCardHome: getCardHome,
|
|
86
|
+
getComoTrabajamos: getComoTrabajamos,
|
|
87
|
+
updateComoTrabajamos: updateComoTrabajamos,
|
|
88
|
+
getContador: getContador,
|
|
89
|
+
updateContador: updateContador
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
module.exports = home;
|
|
@@ -12,9 +12,7 @@ declare function institucional({ client }: {
|
|
|
12
12
|
getByIdMember: ({ memberId }: {
|
|
13
13
|
memberId: any;
|
|
14
14
|
}) => any;
|
|
15
|
-
getMembers: (
|
|
16
|
-
jwtToken: any;
|
|
17
|
-
}) => any;
|
|
15
|
+
getMembers: () => any;
|
|
18
16
|
updateMember: ({ jwtToken, memberId, data }: {
|
|
19
17
|
jwtToken: any;
|
|
20
18
|
memberId: any;
|
|
@@ -28,11 +26,9 @@ declare function institucional({ client }: {
|
|
|
28
26
|
jwtToken: any;
|
|
29
27
|
memberId: any;
|
|
30
28
|
}) => any;
|
|
31
|
-
getAreas: (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
getByIdArea: ({ areaUd }: {
|
|
35
|
-
areaUd: any;
|
|
29
|
+
getAreas: () => any;
|
|
30
|
+
getByIdArea: ({ areaId }: {
|
|
31
|
+
areaId: any;
|
|
36
32
|
}) => any;
|
|
37
33
|
updateArea: ({ jwtToken, areaId, data }: {
|
|
38
34
|
jwtToken: any;
|
|
@@ -47,4 +43,11 @@ declare function institucional({ client }: {
|
|
|
47
43
|
jwtToken: any;
|
|
48
44
|
areaId: any;
|
|
49
45
|
}) => any;
|
|
46
|
+
getNuestroEnfoque: ({ jwtToken }: {
|
|
47
|
+
jwtToken: any;
|
|
48
|
+
}) => any;
|
|
49
|
+
updateNuestroEnfoque: ({ jwtToken, data }: {
|
|
50
|
+
jwtToken: any;
|
|
51
|
+
data: any;
|
|
52
|
+
}) => any;
|
|
50
53
|
};
|
|
@@ -8,23 +8,50 @@ 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 institucional(_ref) {
|
|
10
10
|
var client = _ref.client;
|
|
11
|
-
// ------------------
|
|
12
|
-
function
|
|
11
|
+
// ------------------ENFOQUE-------------------
|
|
12
|
+
function getNuestroEnfoque(_ref2) {
|
|
13
13
|
var jwtToken = _ref2.jwtToken;
|
|
14
14
|
return client({
|
|
15
|
-
url: "/api/
|
|
15
|
+
url: "/api/enfoque",
|
|
16
16
|
method: "get",
|
|
17
17
|
headers: {
|
|
18
18
|
Authorization: "Bearer ".concat(jwtToken)
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function updateNuestroEnfoque(_ref3) {
|
|
23
23
|
var jwtToken = _ref3.jwtToken,
|
|
24
24
|
data = _ref3.data;
|
|
25
25
|
var formattedData = {
|
|
26
26
|
data: _objectSpread({}, data)
|
|
27
27
|
};
|
|
28
|
+
return client({
|
|
29
|
+
url: "/api/enfoque",
|
|
30
|
+
method: "put",
|
|
31
|
+
headers: {
|
|
32
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
33
|
+
},
|
|
34
|
+
data: formattedData
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// ------------------INSTITUCIONAL-------------------
|
|
39
|
+
function getInstitucional(_ref4) {
|
|
40
|
+
var jwtToken = _ref4.jwtToken;
|
|
41
|
+
return client({
|
|
42
|
+
url: "/api/institucional",
|
|
43
|
+
method: "get",
|
|
44
|
+
headers: {
|
|
45
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function updateinstitucional(_ref5) {
|
|
50
|
+
var jwtToken = _ref5.jwtToken,
|
|
51
|
+
data = _ref5.data;
|
|
52
|
+
var formattedData = {
|
|
53
|
+
data: _objectSpread({}, data)
|
|
54
|
+
};
|
|
28
55
|
return client({
|
|
29
56
|
url: "/api/institucional",
|
|
30
57
|
method: "put",
|
|
@@ -36,27 +63,23 @@ function institucional(_ref) {
|
|
|
36
63
|
}
|
|
37
64
|
// ------------------MIEMBROS DE AREAS-------------------
|
|
38
65
|
|
|
39
|
-
function getByIdMember(
|
|
40
|
-
var memberId =
|
|
66
|
+
function getByIdMember(_ref6) {
|
|
67
|
+
var memberId = _ref6.memberId;
|
|
41
68
|
return client({
|
|
42
69
|
url: "/api/member-teams/".concat(memberId),
|
|
43
70
|
method: "get"
|
|
44
71
|
});
|
|
45
72
|
}
|
|
46
|
-
function getMembers(
|
|
47
|
-
var jwtToken = _ref5.jwtToken;
|
|
73
|
+
function getMembers() {
|
|
48
74
|
return client({
|
|
49
75
|
url: "/api/member-teams",
|
|
50
|
-
method: "get"
|
|
51
|
-
headers: {
|
|
52
|
-
Authorization: "Bearer ".concat(jwtToken)
|
|
53
|
-
}
|
|
76
|
+
method: "get"
|
|
54
77
|
});
|
|
55
78
|
}
|
|
56
|
-
function updateMember(
|
|
57
|
-
var jwtToken =
|
|
58
|
-
memberId =
|
|
59
|
-
data =
|
|
79
|
+
function updateMember(_ref7) {
|
|
80
|
+
var jwtToken = _ref7.jwtToken,
|
|
81
|
+
memberId = _ref7.memberId,
|
|
82
|
+
data = _ref7.data;
|
|
60
83
|
var formattedData = {
|
|
61
84
|
data: _objectSpread({}, data)
|
|
62
85
|
};
|
|
@@ -69,9 +92,9 @@ function institucional(_ref) {
|
|
|
69
92
|
data: formattedData
|
|
70
93
|
});
|
|
71
94
|
}
|
|
72
|
-
function createMember(
|
|
73
|
-
var jwtToken =
|
|
74
|
-
data =
|
|
95
|
+
function createMember(_ref8) {
|
|
96
|
+
var jwtToken = _ref8.jwtToken,
|
|
97
|
+
data = _ref8.data;
|
|
75
98
|
var formattedData = {
|
|
76
99
|
data: _objectSpread({}, data)
|
|
77
100
|
};
|
|
@@ -84,9 +107,9 @@ function institucional(_ref) {
|
|
|
84
107
|
data: formattedData
|
|
85
108
|
});
|
|
86
109
|
}
|
|
87
|
-
function deleteMember(
|
|
88
|
-
var jwtToken =
|
|
89
|
-
memberId =
|
|
110
|
+
function deleteMember(_ref9) {
|
|
111
|
+
var jwtToken = _ref9.jwtToken,
|
|
112
|
+
memberId = _ref9.memberId;
|
|
90
113
|
return client({
|
|
91
114
|
url: "/api/member-teams/".concat(memberId),
|
|
92
115
|
method: "delete",
|
|
@@ -97,21 +120,17 @@ function institucional(_ref) {
|
|
|
97
120
|
}
|
|
98
121
|
// ------------------AREAS-------------------
|
|
99
122
|
|
|
100
|
-
function getByIdArea(
|
|
101
|
-
var
|
|
123
|
+
function getByIdArea(_ref0) {
|
|
124
|
+
var areaId = _ref0.areaId;
|
|
102
125
|
return client({
|
|
103
|
-
url: "/api/
|
|
126
|
+
url: "/api/areas-teams/".concat(areaId),
|
|
104
127
|
method: "get"
|
|
105
128
|
});
|
|
106
129
|
}
|
|
107
|
-
function getAreas(
|
|
108
|
-
var jwtToken = _ref0.jwtToken;
|
|
130
|
+
function getAreas() {
|
|
109
131
|
return client({
|
|
110
132
|
url: "/api/areas-teams",
|
|
111
|
-
method: "get"
|
|
112
|
-
headers: {
|
|
113
|
-
Authorization: "Bearer ".concat(jwtToken)
|
|
114
|
-
}
|
|
133
|
+
method: "get"
|
|
115
134
|
});
|
|
116
135
|
}
|
|
117
136
|
function updateArea(_ref1) {
|
|
@@ -168,7 +187,9 @@ function institucional(_ref) {
|
|
|
168
187
|
getByIdArea: getByIdArea,
|
|
169
188
|
updateArea: updateArea,
|
|
170
189
|
createArea: createArea,
|
|
171
|
-
deleteArea: deleteArea
|
|
190
|
+
deleteArea: deleteArea,
|
|
191
|
+
getNuestroEnfoque: getNuestroEnfoque,
|
|
192
|
+
updateNuestroEnfoque: updateNuestroEnfoque
|
|
172
193
|
};
|
|
173
194
|
}
|
|
174
195
|
module.exports = institucional;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export = companies;
|
|
2
|
+
declare function companies({ client }: {
|
|
3
|
+
client: any;
|
|
4
|
+
}): {
|
|
5
|
+
getById: ({ projectId }: {
|
|
6
|
+
projectId: any;
|
|
7
|
+
}) => any;
|
|
8
|
+
getProjects: ({ jwtToken }: {
|
|
9
|
+
jwtToken: any;
|
|
10
|
+
}) => any;
|
|
11
|
+
updateProjects: ({ jwtToken, projectId, data }: {
|
|
12
|
+
jwtToken: any;
|
|
13
|
+
projectId: any;
|
|
14
|
+
data: any;
|
|
15
|
+
}) => any;
|
|
16
|
+
createCompanie: ({ jwtToken, data }: {
|
|
17
|
+
jwtToken: any;
|
|
18
|
+
data: any;
|
|
19
|
+
}) => any;
|
|
20
|
+
deleteCompanie: ({ jwtToken, projectId }: {
|
|
21
|
+
jwtToken: any;
|
|
22
|
+
projectId: any;
|
|
23
|
+
}) => any;
|
|
24
|
+
getByIdAlido: ({ aliadoId }: {
|
|
25
|
+
aliadoId: any;
|
|
26
|
+
}) => any;
|
|
27
|
+
getAliados: ({ jwtToken }: {
|
|
28
|
+
jwtToken: any;
|
|
29
|
+
}) => any;
|
|
30
|
+
updateAliado: ({ jwtToken, aliadoId, data }: {
|
|
31
|
+
jwtToken: any;
|
|
32
|
+
aliadoId: any;
|
|
33
|
+
data: any;
|
|
34
|
+
}) => any;
|
|
35
|
+
createAliado: ({ jwtToken, data }: {
|
|
36
|
+
jwtToken: any;
|
|
37
|
+
data: any;
|
|
38
|
+
}) => any;
|
|
39
|
+
deleteAliados: ({ jwtToken, aliadoId }: {
|
|
40
|
+
jwtToken: any;
|
|
41
|
+
aliadoId: any;
|
|
42
|
+
}) => any;
|
|
43
|
+
getNuestrosProyectosSection: (jwtToken: any) => any;
|
|
44
|
+
updateNuestrosProyectosSection: ({ jwtToken, data }: {
|
|
45
|
+
jwtToken: any;
|
|
46
|
+
data: any;
|
|
47
|
+
}) => any;
|
|
48
|
+
};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
function companies(_ref) {
|
|
10
|
+
var client = _ref.client;
|
|
11
|
+
// ------------------PROYECTOS-------------------
|
|
12
|
+
function getById(_ref2) {
|
|
13
|
+
var projectId = _ref2.projectId;
|
|
14
|
+
return client({
|
|
15
|
+
url: "/api/projects/".concat(projectId),
|
|
16
|
+
method: "get"
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function getProjects(_ref3) {
|
|
20
|
+
var jwtToken = _ref3.jwtToken;
|
|
21
|
+
return client({
|
|
22
|
+
url: "/api/projects",
|
|
23
|
+
method: "get",
|
|
24
|
+
headers: {
|
|
25
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function updateProjects(_ref4) {
|
|
30
|
+
var jwtToken = _ref4.jwtToken,
|
|
31
|
+
projectId = _ref4.projectId,
|
|
32
|
+
data = _ref4.data;
|
|
33
|
+
var formattedData = {
|
|
34
|
+
data: _objectSpread({}, data)
|
|
35
|
+
};
|
|
36
|
+
return client({
|
|
37
|
+
url: "/api/projects/".concat(projectId),
|
|
38
|
+
method: "put",
|
|
39
|
+
headers: {
|
|
40
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
41
|
+
},
|
|
42
|
+
data: formattedData
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function createCompanie(_ref5) {
|
|
46
|
+
var jwtToken = _ref5.jwtToken,
|
|
47
|
+
data = _ref5.data;
|
|
48
|
+
var formattedData = {
|
|
49
|
+
data: _objectSpread({}, data)
|
|
50
|
+
};
|
|
51
|
+
return client({
|
|
52
|
+
url: "/api/projects",
|
|
53
|
+
method: "post",
|
|
54
|
+
headers: {
|
|
55
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
56
|
+
},
|
|
57
|
+
data: formattedData
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function deleteCompanie(_ref6) {
|
|
61
|
+
var jwtToken = _ref6.jwtToken,
|
|
62
|
+
projectId = _ref6.projectId;
|
|
63
|
+
return client({
|
|
64
|
+
url: "/api/projects/".concat(projectId),
|
|
65
|
+
method: "delete",
|
|
66
|
+
headers: {
|
|
67
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
//----------------------ALIADOS-------------------
|
|
73
|
+
|
|
74
|
+
function getByIdAlido(_ref7) {
|
|
75
|
+
var aliadoId = _ref7.aliadoId;
|
|
76
|
+
return client({
|
|
77
|
+
url: "/api/aliados/".concat(aliadoId),
|
|
78
|
+
method: "get"
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function getAliados(_ref8) {
|
|
82
|
+
var jwtToken = _ref8.jwtToken;
|
|
83
|
+
return client({
|
|
84
|
+
url: "/api/aliados",
|
|
85
|
+
method: "get",
|
|
86
|
+
headers: {
|
|
87
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function updateAliado(_ref9) {
|
|
92
|
+
var jwtToken = _ref9.jwtToken,
|
|
93
|
+
aliadoId = _ref9.aliadoId,
|
|
94
|
+
data = _ref9.data;
|
|
95
|
+
var formattedData = {
|
|
96
|
+
data: _objectSpread({}, data)
|
|
97
|
+
};
|
|
98
|
+
return client({
|
|
99
|
+
url: "/api/aliados/".concat(aliadoId),
|
|
100
|
+
method: "put",
|
|
101
|
+
headers: {
|
|
102
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
103
|
+
},
|
|
104
|
+
data: formattedData
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function createAliado(_ref0) {
|
|
108
|
+
var jwtToken = _ref0.jwtToken,
|
|
109
|
+
data = _ref0.data;
|
|
110
|
+
var formattedData = {
|
|
111
|
+
data: _objectSpread({}, data)
|
|
112
|
+
};
|
|
113
|
+
return client({
|
|
114
|
+
url: "/api/aliados",
|
|
115
|
+
method: "post",
|
|
116
|
+
headers: {
|
|
117
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
118
|
+
},
|
|
119
|
+
data: formattedData
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function deleteAliados(_ref1) {
|
|
123
|
+
var jwtToken = _ref1.jwtToken,
|
|
124
|
+
aliadoId = _ref1.aliadoId;
|
|
125
|
+
return client({
|
|
126
|
+
url: "/api/aliados/".concat(aliadoId),
|
|
127
|
+
method: "delete",
|
|
128
|
+
headers: {
|
|
129
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
//-------------------NUESTROS PROYECTOS
|
|
135
|
+
function getNuestrosProyectosSection(jwtToken) {
|
|
136
|
+
return client({
|
|
137
|
+
url: "/api/nuestros-proyecto",
|
|
138
|
+
method: "get",
|
|
139
|
+
headers: {
|
|
140
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function updateNuestrosProyectosSection(_ref10) {
|
|
145
|
+
var jwtToken = _ref10.jwtToken,
|
|
146
|
+
data = _ref10.data;
|
|
147
|
+
var formattedData = {
|
|
148
|
+
data: _objectSpread({}, data)
|
|
149
|
+
};
|
|
150
|
+
return client({
|
|
151
|
+
url: "/api/nuestros-proyecto",
|
|
152
|
+
method: "put",
|
|
153
|
+
headers: {
|
|
154
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
155
|
+
},
|
|
156
|
+
data: formattedData
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
160
|
+
getById: getById,
|
|
161
|
+
getProjects: getProjects,
|
|
162
|
+
updateProjects: updateProjects,
|
|
163
|
+
createCompanie: createCompanie,
|
|
164
|
+
deleteCompanie: deleteCompanie,
|
|
165
|
+
getByIdAlido: getByIdAlido,
|
|
166
|
+
getAliados: getAliados,
|
|
167
|
+
updateAliado: updateAliado,
|
|
168
|
+
createAliado: createAliado,
|
|
169
|
+
deleteAliados: deleteAliados,
|
|
170
|
+
getNuestrosProyectosSection: getNuestrosProyectosSection,
|
|
171
|
+
updateNuestrosProyectosSection: updateNuestrosProyectosSection
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
module.exports = companies;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export = queHacemoSeccion;
|
|
2
|
+
declare function queHacemoSeccion({ client }: {
|
|
3
|
+
client: any;
|
|
4
|
+
}): {
|
|
5
|
+
getQueHacemos: ({ jwtToken }: {
|
|
6
|
+
jwtToken: any;
|
|
7
|
+
}) => any;
|
|
8
|
+
updateQueHacemos: ({ jwtToken, data }: {
|
|
9
|
+
jwtToken: any;
|
|
10
|
+
data: any;
|
|
11
|
+
}) => any;
|
|
12
|
+
getAporte: ({ jwtToken }: {
|
|
13
|
+
jwtToken: any;
|
|
14
|
+
}) => any;
|
|
15
|
+
updateAporte: ({ jwtToken, data }: {
|
|
16
|
+
jwtToken: any;
|
|
17
|
+
data: any;
|
|
18
|
+
}) => any;
|
|
19
|
+
getSeccionProyectos: ({ jwtToken }: {
|
|
20
|
+
jwtToken: any;
|
|
21
|
+
}) => any;
|
|
22
|
+
updateSeccionProyectos: ({ jwtToken, data }: {
|
|
23
|
+
jwtToken: any;
|
|
24
|
+
data: any;
|
|
25
|
+
}) => any;
|
|
26
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
function queHacemoSeccion(_ref) {
|
|
10
|
+
var client = _ref.client;
|
|
11
|
+
// ------------------QUE HACEMOS-------------------
|
|
12
|
+
function getQueHacemos(_ref2) {
|
|
13
|
+
var jwtToken = _ref2.jwtToken;
|
|
14
|
+
return client({
|
|
15
|
+
url: "/api/que-hacemo",
|
|
16
|
+
method: "get",
|
|
17
|
+
headers: {
|
|
18
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function updateQueHacemos(_ref3) {
|
|
23
|
+
var jwtToken = _ref3.jwtToken,
|
|
24
|
+
data = _ref3.data;
|
|
25
|
+
var formattedData = {
|
|
26
|
+
data: _objectSpread({}, data)
|
|
27
|
+
};
|
|
28
|
+
return client({
|
|
29
|
+
url: "/api/que-hacemo",
|
|
30
|
+
method: "put",
|
|
31
|
+
headers: {
|
|
32
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
33
|
+
},
|
|
34
|
+
data: formattedData
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// ------------------APORTES-------------------
|
|
39
|
+
function getAporte(_ref4) {
|
|
40
|
+
var jwtToken = _ref4.jwtToken;
|
|
41
|
+
return client({
|
|
42
|
+
url: "/api/aporte",
|
|
43
|
+
method: "get",
|
|
44
|
+
headers: {
|
|
45
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function updateAporte(_ref5) {
|
|
50
|
+
var jwtToken = _ref5.jwtToken,
|
|
51
|
+
data = _ref5.data;
|
|
52
|
+
var formattedData = {
|
|
53
|
+
data: _objectSpread({}, data)
|
|
54
|
+
};
|
|
55
|
+
return client({
|
|
56
|
+
url: "/api/aporte",
|
|
57
|
+
method: "put",
|
|
58
|
+
headers: {
|
|
59
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
60
|
+
},
|
|
61
|
+
data: formattedData
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
//----------------- PROYECTOS SECCION --------------
|
|
66
|
+
|
|
67
|
+
function getSeccionProyectos(_ref6) {
|
|
68
|
+
var jwtToken = _ref6.jwtToken;
|
|
69
|
+
return client({
|
|
70
|
+
url: "/api/projects-que-hacemo",
|
|
71
|
+
method: "get",
|
|
72
|
+
headers: {
|
|
73
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function updateSeccionProyectos(_ref7) {
|
|
78
|
+
var jwtToken = _ref7.jwtToken,
|
|
79
|
+
data = _ref7.data;
|
|
80
|
+
var formattedData = {
|
|
81
|
+
data: _objectSpread({}, data)
|
|
82
|
+
};
|
|
83
|
+
return client({
|
|
84
|
+
url: "/api/projects-que-hacemo",
|
|
85
|
+
method: "put",
|
|
86
|
+
headers: {
|
|
87
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
88
|
+
},
|
|
89
|
+
data: formattedData
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
getQueHacemos: getQueHacemos,
|
|
94
|
+
updateQueHacemos: updateQueHacemos,
|
|
95
|
+
getAporte: getAporte,
|
|
96
|
+
updateAporte: updateAporte,
|
|
97
|
+
getSeccionProyectos: getSeccionProyectos,
|
|
98
|
+
updateSeccionProyectos: updateSeccionProyectos
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
module.exports = queHacemoSeccion;
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -20,19 +20,20 @@ function frontendEndpoints(baseURL) {
|
|
|
20
20
|
projectsSection: require("./enpoints/frontend/nuestros-proyectos.js")({
|
|
21
21
|
client,
|
|
22
22
|
}),
|
|
23
|
+
queHacemos: require("./enpoints/frontend/que-hacemos.js")({ client }),
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
function backendEndpoints(baseURL) {
|
|
26
27
|
const client = createClient(baseURL);
|
|
27
28
|
return {
|
|
28
|
-
|
|
29
|
+
home: require("./enpoints/backoffice/homePage.js")({ client }),
|
|
29
30
|
institucional: require("./enpoints/backoffice/institucional.js")({
|
|
30
31
|
client,
|
|
31
32
|
}),
|
|
32
|
-
|
|
33
|
+
proyectos: require("./enpoints/backoffice/proyectos.js")({ client }),
|
|
33
34
|
blog: require("./enpoints/backoffice/blog.js")({ client }),
|
|
34
|
-
videoSection: require("./enpoints/backoffice/videoSection.js")({ client }),
|
|
35
35
|
footer: require("./enpoints/backoffice/footer.js")({ client }),
|
|
36
|
+
queHacemos: require("./enpoints/backoffice/queHacemos.js")({ client }),
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
function authEndpoint(baseURL) {
|