api-client-fideicomisos 1.15.0 → 1.17.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 +10 -2
- package/dist/enpoints/backoffice/proyectos.d.ts +7 -0
- package/dist/enpoints/backoffice/proyectos.js +26 -1
- package/dist/enpoints/frontend/projects.d.ts +3 -2
- package/dist/enpoints/frontend/projects.js +3 -0
- package/package.json +1 -1
- package/src/enpoints/backoffice/proyectos.js +22 -1
- package/src/enpoints/frontend/projects.js +3 -0
package/dist/client.d.ts
CHANGED
|
@@ -49,8 +49,9 @@ export function client(options: any): {
|
|
|
49
49
|
topicId: any;
|
|
50
50
|
}) => any;
|
|
51
51
|
getByTopic: ({ topicId, page, pageSize }?: {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
topicId: number | string;
|
|
53
|
+
page?: number;
|
|
54
|
+
pageSize?: number;
|
|
54
55
|
}) => any;
|
|
55
56
|
};
|
|
56
57
|
footer: {
|
|
@@ -197,6 +198,13 @@ export function client(options: any): {
|
|
|
197
198
|
jwtToken: any;
|
|
198
199
|
data: any;
|
|
199
200
|
}) => any;
|
|
201
|
+
getDestacado: ({ jwtToken }: {
|
|
202
|
+
jwtToken: any;
|
|
203
|
+
}) => any;
|
|
204
|
+
updateDestacado: ({ jwtToken, data }: {
|
|
205
|
+
jwtToken: any;
|
|
206
|
+
data: any;
|
|
207
|
+
}) => any;
|
|
200
208
|
};
|
|
201
209
|
blog: {
|
|
202
210
|
getByIdBlog: ({ blogId }: {
|
|
@@ -135,6 +135,29 @@ function companies(_ref) {
|
|
|
135
135
|
data: data
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
+
//---------------------- proyecto destacado
|
|
139
|
+
function getDestacado(_ref11) {
|
|
140
|
+
var jwtToken = _ref11.jwtToken;
|
|
141
|
+
return client({
|
|
142
|
+
url: "/api/proyecto-destacado",
|
|
143
|
+
method: "get",
|
|
144
|
+
headers: {
|
|
145
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
function updateDestacado(_ref12) {
|
|
150
|
+
var jwtToken = _ref12.jwtToken,
|
|
151
|
+
data = _ref12.data;
|
|
152
|
+
return client({
|
|
153
|
+
url: "/api/proyecto-destacado",
|
|
154
|
+
method: "put",
|
|
155
|
+
headers: {
|
|
156
|
+
Authorization: "Bearer ".concat(jwtToken)
|
|
157
|
+
},
|
|
158
|
+
data: data
|
|
159
|
+
});
|
|
160
|
+
}
|
|
138
161
|
return {
|
|
139
162
|
getById: getById,
|
|
140
163
|
getProjects: getProjects,
|
|
@@ -147,7 +170,9 @@ function companies(_ref) {
|
|
|
147
170
|
createAliado: createAliado,
|
|
148
171
|
deleteAliados: deleteAliados,
|
|
149
172
|
getNuestrosProyectosSection: getNuestrosProyectosSection,
|
|
150
|
-
updateNuestrosProyectosSection: updateNuestrosProyectosSection
|
|
173
|
+
updateNuestrosProyectosSection: updateNuestrosProyectosSection,
|
|
174
|
+
getDestacado: getDestacado,
|
|
175
|
+
updateDestacado: updateDestacado
|
|
151
176
|
};
|
|
152
177
|
}
|
|
153
178
|
module.exports = companies;
|
|
@@ -15,7 +15,8 @@ declare function projects({ client }: {
|
|
|
15
15
|
topicId: any;
|
|
16
16
|
}) => any;
|
|
17
17
|
getByTopic: ({ topicId, page, pageSize }?: {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
topicId: number | string;
|
|
19
|
+
page?: number;
|
|
20
|
+
pageSize?: number;
|
|
20
21
|
}) => any;
|
|
21
22
|
};
|
|
@@ -36,6 +36,9 @@ function projects(_ref) {
|
|
|
36
36
|
method: "get"
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* @param {{ topicId: number|string, page?: number, pageSize?: number }} params
|
|
41
|
+
*/
|
|
39
42
|
function getByTopic() {
|
|
40
43
|
var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
41
44
|
topicId = _ref5.topicId,
|
package/package.json
CHANGED
|
@@ -116,7 +116,26 @@ function companies({ client }) {
|
|
|
116
116
|
data,
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
|
|
119
|
+
//---------------------- proyecto destacado
|
|
120
|
+
function getDestacado({ jwtToken }) {
|
|
121
|
+
return client({
|
|
122
|
+
url: `/api/proyecto-destacado`,
|
|
123
|
+
method: "get",
|
|
124
|
+
headers: {
|
|
125
|
+
Authorization: `Bearer ${jwtToken}`,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function updateDestacado({ jwtToken, data }) {
|
|
130
|
+
return client({
|
|
131
|
+
url: `/api/proyecto-destacado`,
|
|
132
|
+
method: "put",
|
|
133
|
+
headers: {
|
|
134
|
+
Authorization: `Bearer ${jwtToken}`,
|
|
135
|
+
},
|
|
136
|
+
data,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
120
139
|
return {
|
|
121
140
|
getById,
|
|
122
141
|
getProjects,
|
|
@@ -130,6 +149,8 @@ function companies({ client }) {
|
|
|
130
149
|
deleteAliados,
|
|
131
150
|
getNuestrosProyectosSection,
|
|
132
151
|
updateNuestrosProyectosSection,
|
|
152
|
+
getDestacado,
|
|
153
|
+
updateDestacado,
|
|
133
154
|
};
|
|
134
155
|
}
|
|
135
156
|
module.exports = companies;
|
|
@@ -27,6 +27,9 @@ function projects({ client }) {
|
|
|
27
27
|
method: "get",
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* @param {{ topicId: number|string, page?: number, pageSize?: number }} params
|
|
32
|
+
*/
|
|
30
33
|
function getByTopic({ topicId, page = 1, pageSize = 25 } = {}) {
|
|
31
34
|
const query = `?page=${page}&pageSize=${pageSize}`;
|
|
32
35
|
return client({
|