api-client-fideicomisos 1.13.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({
@@ -116,7 +116,7 @@ function companies(_ref) {
116
116
  //-------------------NUESTROS PROYECTOS
117
117
  function getNuestrosProyectosSection(jwtToken) {
118
118
  return client({
119
- url: "/api/nuestros-proyecto-admin",
119
+ url: "/api/nuestro-proyecto-admin",
120
120
  method: "get",
121
121
  headers: {
122
122
  Authorization: "Bearer ".concat(jwtToken)
@@ -127,7 +127,7 @@ function companies(_ref) {
127
127
  var jwtToken = _ref10.jwtToken,
128
128
  data = _ref10.data;
129
129
  return client({
130
- url: "/api/nuestros-proyecto-admin",
130
+ url: "/api/nuestro-proyecto-admin",
131
131
  method: "put",
132
132
  headers: {
133
133
  Authorization: "Bearer ".concat(jwtToken)
@@ -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.13.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",
@@ -99,7 +99,7 @@ function companies({ client }) {
99
99
  //-------------------NUESTROS PROYECTOS
100
100
  function getNuestrosProyectosSection(jwtToken) {
101
101
  return client({
102
- url: `/api/nuestros-proyecto-admin`,
102
+ url: `/api/nuestro-proyecto-admin`,
103
103
  method: "get",
104
104
  headers: {
105
105
  Authorization: `Bearer ${jwtToken}`,
@@ -108,7 +108,7 @@ function companies({ client }) {
108
108
  }
109
109
  function updateNuestrosProyectosSection({ jwtToken, data }) {
110
110
  return client({
111
- url: `/api/nuestros-proyecto-admin`,
111
+ url: `/api/nuestro-proyecto-admin`,
112
112
  method: "put",
113
113
  headers: {
114
114
  Authorization: `Bearer ${jwtToken}`,
@@ -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,