api-client-fideicomisos 1.14.0 → 1.15.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;
@@ -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;
@@ -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({
@@ -139,8 +139,8 @@ function companies(_ref) {
139
139
  getById: getById,
140
140
  getProjects: getProjects,
141
141
  updateProjects: updateProjects,
142
- createCompanie: createCompanie,
143
- deleteCompanie: deleteCompanie,
142
+ createProject: createProject,
143
+ deleteProject: deleteProject,
144
144
  getByIdAlido: getByIdAlido,
145
145
  getAliados: getAliados,
146
146
  updateAliado: updateAliado,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-client-fideicomisos",
3
- "version": "1.14.0",
3
+ "version": "1.15.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",
@@ -121,8 +121,8 @@ function companies({ client }) {
121
121
  getById,
122
122
  getProjects,
123
123
  updateProjects,
124
- createCompanie,
125
- deleteCompanie,
124
+ createProject,
125
+ deleteProject,
126
126
  getByIdAlido,
127
127
  getAliados,
128
128
  updateAliado,