api-client-fideicomisos 1.14.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
@@ -165,11 +165,11 @@ export function client(options: any): {
165
165
  projectId: any;
166
166
  data: any;
167
167
  }) => any;
168
- createCompanie: ({ jwtToken, data }: {
168
+ createProject: ({ jwtToken, data }: {
169
169
  jwtToken: any;
170
170
  data: any;
171
171
  }) => any;
172
- deleteCompanie: ({ jwtToken, projectId }: {
172
+ deleteProject: ({ jwtToken, projectId }: {
173
173
  jwtToken: any;
174
174
  projectId: any;
175
175
  }) => any;
@@ -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 }: {
@@ -13,11 +13,11 @@ declare function companies({ client }: {
13
13
  projectId: any;
14
14
  data: any;
15
15
  }) => any;
16
- createCompanie: ({ jwtToken, data }: {
16
+ createProject: ({ jwtToken, data }: {
17
17
  jwtToken: any;
18
18
  data: any;
19
19
  }) => any;
20
- deleteCompanie: ({ jwtToken, projectId }: {
20
+ deleteProject: ({ jwtToken, projectId }: {
21
21
  jwtToken: any;
22
22
  projectId: any;
23
23
  }) => any;
@@ -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
  };
@@ -13,7 +13,7 @@ function companies(_ref) {
13
13
  function getProjects(_ref3) {
14
14
  var jwtToken = _ref3.jwtToken;
15
15
  return client({
16
- url: "/api/projects",
16
+ url: "/api/projects-admin",
17
17
  method: "get",
18
18
  headers: {
19
19
  Authorization: "Bearer ".concat(jwtToken)
@@ -33,7 +33,7 @@ function companies(_ref) {
33
33
  data: data
34
34
  });
35
35
  }
36
- function createCompanie(_ref5) {
36
+ function createProject(_ref5) {
37
37
  var jwtToken = _ref5.jwtToken,
38
38
  data = _ref5.data;
39
39
  return client({
@@ -45,7 +45,7 @@ function companies(_ref) {
45
45
  data: data
46
46
  });
47
47
  }
48
- function deleteCompanie(_ref6) {
48
+ function deleteProject(_ref6) {
49
49
  var jwtToken = _ref6.jwtToken,
50
50
  projectId = _ref6.projectId;
51
51
  return client({
@@ -135,19 +135,44 @@ 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,
141
164
  updateProjects: updateProjects,
142
- createCompanie: createCompanie,
143
- deleteCompanie: deleteCompanie,
165
+ createProject: createProject,
166
+ deleteProject: deleteProject,
144
167
  getByIdAlido: getByIdAlido,
145
168
  getAliados: getAliados,
146
169
  updateAliado: updateAliado,
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.14.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": {
@@ -9,7 +9,7 @@ function companies({ client }) {
9
9
 
10
10
  function getProjects({ jwtToken }) {
11
11
  return client({
12
- url: `/api/projects`,
12
+ url: `/api/projects-admin`,
13
13
  method: "get",
14
14
  headers: {
15
15
  Authorization: `Bearer ${jwtToken}`,
@@ -26,7 +26,7 @@ function companies({ client }) {
26
26
  data,
27
27
  });
28
28
  }
29
- function createCompanie({ jwtToken, data }) {
29
+ function createProject({ jwtToken, data }) {
30
30
  return client({
31
31
  url: "/api/projects",
32
32
  method: "post",
@@ -37,7 +37,7 @@ function companies({ client }) {
37
37
  });
38
38
  }
39
39
 
40
- function deleteCompanie({ jwtToken, projectId }) {
40
+ function deleteProject({ jwtToken, projectId }) {
41
41
  return client({
42
42
  url: `/api/projects/${projectId}`,
43
43
  method: "delete",
@@ -116,13 +116,32 @@ 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,
123
142
  updateProjects,
124
- createCompanie,
125
- deleteCompanie,
143
+ createProject,
144
+ deleteProject,
126
145
  getByIdAlido,
127
146
  getAliados,
128
147
  updateAliado,
@@ -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;