api-client-fideicomisos 1.15.0 → 1.16.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
@@ -197,6 +197,13 @@ export function client(options: any): {
197
197
  jwtToken: any;
198
198
  data: any;
199
199
  }) => any;
200
+ getDestacado: ({ jwtToken }: {
201
+ jwtToken: any;
202
+ }) => any;
203
+ updateDestacado: ({ jwtToken, data }: {
204
+ jwtToken: any;
205
+ data: any;
206
+ }) => any;
200
207
  };
201
208
  blog: {
202
209
  getByIdBlog: ({ blogId }: {
@@ -45,4 +45,11 @@ declare function companies({ client }: {
45
45
  jwtToken: any;
46
46
  data: any;
47
47
  }) => any;
48
+ getDestacado: ({ jwtToken }: {
49
+ jwtToken: any;
50
+ }) => any;
51
+ updateDestacado: ({ jwtToken, data }: {
52
+ jwtToken: any;
53
+ data: any;
54
+ }) => any;
48
55
  };
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-client-fideicomisos",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "Api client Banco Provincia Fideicomisos",
5
5
  "homepage": "https://github.com/TeoCoop/api-client-fideicomisos.git",
6
6
  "bugs": {
@@ -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;