api-client-fideicomisos 1.12.0 → 1.13.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.
@@ -6,7 +6,7 @@ function accesoClientes(_ref) {
6
6
  function get(_ref2) {
7
7
  var jwtToken = _ref2.jwtToken;
8
8
  return client({
9
- url: "/api/acceso-client",
9
+ url: "/api/acceso-client-admin",
10
10
  method: "get",
11
11
  headers: {
12
12
  Authorization: "Bearer ".concat(jwtToken)
@@ -17,7 +17,7 @@ function accesoClientes(_ref) {
17
17
  var jwtToken = _ref3.jwtToken,
18
18
  data = _ref3.data;
19
19
  return client({
20
- url: "/api/acceso-client",
20
+ url: "/api/acceso-client-admin",
21
21
  method: "put",
22
22
  headers: {
23
23
  Authorization: "Bearer ".concat(jwtToken)
@@ -23,7 +23,7 @@ function companies(_ref) {
23
23
  "pagination[pageSize]": pageSize
24
24
  });
25
25
  return client({
26
- url: "/api/blogs?".concat(params.toString()),
26
+ url: "/api/blogs-admin?".concat(params.toString()),
27
27
  method: "get",
28
28
  headers: {
29
29
  Authorization: "Bearer ".concat(jwtToken)
@@ -87,7 +87,7 @@ function companies(_ref) {
87
87
  var jwtToken = _ref8.jwtToken;
88
88
  if (!jwtToken) throw new Error("jwtToken is required");
89
89
  return client({
90
- url: "/api/topics",
90
+ url: "/api/topics-admin",
91
91
  method: "get",
92
92
  headers: {
93
93
  Authorization: "Bearer ".concat(jwtToken)
@@ -102,7 +102,7 @@ function companies(_ref) {
102
102
  if (!topicId) throw new Error("topicId is required");
103
103
  if (!data) throw new Error("data is required");
104
104
  return client({
105
- url: "/api/topics/".concat(topicId),
105
+ url: "/api/topics-admin/".concat(topicId),
106
106
  method: "put",
107
107
  headers: {
108
108
  Authorization: "Bearer ".concat(jwtToken)
@@ -116,7 +116,7 @@ function companies(_ref) {
116
116
  if (!jwtToken) throw new Error("jwtToken is required");
117
117
  if (!data) throw new Error("data is required");
118
118
  return client({
119
- url: "/api/topics",
119
+ url: "/api/topics-admin",
120
120
  method: "post",
121
121
  headers: {
122
122
  Authorization: "Bearer ".concat(jwtToken)
@@ -130,7 +130,7 @@ function companies(_ref) {
130
130
  if (!jwtToken) throw new Error("jwtToken is required");
131
131
  if (!topicId) throw new Error("topicId is required");
132
132
  return client({
133
- url: "/api/topics/".concat(topicId),
133
+ url: "/api/topics-admin/".concat(topicId),
134
134
  method: "delete",
135
135
  headers: {
136
136
  Authorization: "Bearer ".concat(jwtToken)
@@ -150,7 +150,7 @@ function companies(_ref) {
150
150
  var jwtToken = _ref11.jwtToken;
151
151
  if (!jwtToken) throw new Error("jwtToken is required");
152
152
  return client({
153
- url: "/api/categories",
153
+ url: "/api/categories-admin",
154
154
  method: "get",
155
155
  headers: {
156
156
  Authorization: "Bearer ".concat(jwtToken)
@@ -165,7 +165,7 @@ function companies(_ref) {
165
165
  if (!categorieId) throw new Error("categorieId is required");
166
166
  if (!data) throw new Error("data is required");
167
167
  return client({
168
- url: "/api/categories/".concat(categorieId),
168
+ url: "/api/categories-admin/".concat(categorieId),
169
169
  method: "put",
170
170
  headers: {
171
171
  Authorization: "Bearer ".concat(jwtToken)
@@ -179,7 +179,7 @@ function companies(_ref) {
179
179
  if (!jwtToken) throw new Error("jwtToken is required");
180
180
  if (!data) throw new Error("data is required");
181
181
  return client({
182
- url: "/api/categories",
182
+ url: "/api/categories-admin",
183
183
  method: "post",
184
184
  headers: {
185
185
  Authorization: "Bearer ".concat(jwtToken)
@@ -193,7 +193,7 @@ function companies(_ref) {
193
193
  if (!jwtToken) throw new Error("jwtToken is required");
194
194
  if (!categorieId) throw new Error("topicId is required");
195
195
  return client({
196
- url: "/api/categories/".concat(categorieId),
196
+ url: "/api/categories-admin/".concat(categorieId),
197
197
  method: "delete",
198
198
  headers: {
199
199
  Authorization: "Bearer ".concat(jwtToken)
@@ -6,7 +6,7 @@ function footer(_ref) {
6
6
  function getFooter(_ref2) {
7
7
  var jwtToken = _ref2.jwtToken;
8
8
  return client({
9
- url: "/api/footer",
9
+ url: "/api/footer-admin",
10
10
  method: "get",
11
11
  headers: {
12
12
  Authorization: "Bearer ".concat(jwtToken)
@@ -17,7 +17,7 @@ function footer(_ref) {
17
17
  var jwtToken = _ref3.jwtToken,
18
18
  data = _ref3.data;
19
19
  return client({
20
- url: "/api/footer",
20
+ url: "/api/footer-admin",
21
21
  method: "put",
22
22
  headers: {
23
23
  Authorization: "Bearer ".concat(jwtToken)
@@ -6,7 +6,7 @@ function institucional(_ref) {
6
6
  function getNuestroEnfoque(_ref2) {
7
7
  var jwtToken = _ref2.jwtToken;
8
8
  return client({
9
- url: "/api/enfoque",
9
+ url: "/api/enfoque-admin",
10
10
  method: "get",
11
11
  headers: {
12
12
  Authorization: "Bearer ".concat(jwtToken)
@@ -17,7 +17,7 @@ function institucional(_ref) {
17
17
  var jwtToken = _ref3.jwtToken,
18
18
  data = _ref3.data;
19
19
  return client({
20
- url: "/api/enfoque",
20
+ url: "/api/enfoque-admin",
21
21
  method: "put",
22
22
  headers: {
23
23
  Authorization: "Bearer ".concat(jwtToken)
@@ -30,7 +30,7 @@ function institucional(_ref) {
30
30
  function getInstitucional(_ref4) {
31
31
  var jwtToken = _ref4.jwtToken;
32
32
  return client({
33
- url: "/api/institucional",
33
+ url: "/api/institucional-admin",
34
34
  method: "get",
35
35
  headers: {
36
36
  Authorization: "Bearer ".concat(jwtToken)
@@ -41,7 +41,7 @@ function institucional(_ref) {
41
41
  var jwtToken = _ref5.jwtToken,
42
42
  data = _ref5.data;
43
43
  return client({
44
- url: "/api/institucional",
44
+ url: "/api/institucional-admin",
45
45
  method: "put",
46
46
  headers: {
47
47
  Authorization: "Bearer ".concat(jwtToken)
@@ -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",
119
+ url: "/api/nuestros-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",
130
+ url: "/api/nuestros-proyecto-admin",
131
131
  method: "put",
132
132
  headers: {
133
133
  Authorization: "Bearer ".concat(jwtToken)
@@ -6,7 +6,7 @@ function queHacemoSeccion(_ref) {
6
6
  function getQueHacemos(_ref2) {
7
7
  var jwtToken = _ref2.jwtToken;
8
8
  return client({
9
- url: "/api/que-hacemo",
9
+ url: "/api/que-hacemo-admin",
10
10
  method: "get",
11
11
  headers: {
12
12
  Authorization: "Bearer ".concat(jwtToken)
@@ -17,7 +17,7 @@ function queHacemoSeccion(_ref) {
17
17
  var jwtToken = _ref3.jwtToken,
18
18
  data = _ref3.data;
19
19
  return client({
20
- url: "/api/que-hacemo",
20
+ url: "/api/que-hacemo-admin",
21
21
  method: "put",
22
22
  headers: {
23
23
  Authorization: "Bearer ".concat(jwtToken)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-client-fideicomisos",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "Api client Banco Provincia Fideicomisos",
5
5
  "homepage": "https://github.com/TeoCoop/api-client-fideicomisos.git",
6
6
  "bugs": {
@@ -1,7 +1,7 @@
1
1
  function accesoClientes({ client, jwtToken }) {
2
2
  function get({ jwtToken }) {
3
3
  return client({
4
- url: `/api/acceso-client`,
4
+ url: `/api/acceso-client-admin`,
5
5
  method: "get",
6
6
  headers: {
7
7
  Authorization: `Bearer ${jwtToken}`,
@@ -10,7 +10,7 @@ function accesoClientes({ client, jwtToken }) {
10
10
  }
11
11
  function update({ jwtToken, data }) {
12
12
  return client({
13
- url: "/api/acceso-client",
13
+ url: "/api/acceso-client-admin",
14
14
  method: "put",
15
15
  headers: {
16
16
  Authorization: `Bearer ${jwtToken}`,
@@ -17,7 +17,7 @@ function companies({ client }) {
17
17
  });
18
18
 
19
19
  return client({
20
- url: `/api/blogs?${params.toString()}`,
20
+ url: `/api/blogs-admin?${params.toString()}`,
21
21
  method: "get",
22
22
  headers: {
23
23
  Authorization: `Bearer ${jwtToken}`,
@@ -78,7 +78,7 @@ function companies({ client }) {
78
78
  function getAllTopic({ jwtToken }) {
79
79
  if (!jwtToken) throw new Error("jwtToken is required");
80
80
  return client({
81
- url: `/api/topics`,
81
+ url: `/api/topics-admin`,
82
82
  method: "get",
83
83
  headers: {
84
84
  Authorization: `Bearer ${jwtToken}`,
@@ -91,7 +91,7 @@ function companies({ client }) {
91
91
  if (!topicId) throw new Error("topicId is required");
92
92
  if (!data) throw new Error("data is required");
93
93
  return client({
94
- url: `/api/topics/${topicId}`,
94
+ url: `/api/topics-admin/${topicId}`,
95
95
  method: "put",
96
96
  headers: {
97
97
  Authorization: `Bearer ${jwtToken}`,
@@ -105,7 +105,7 @@ function companies({ client }) {
105
105
  if (!data) throw new Error("data is required");
106
106
 
107
107
  return client({
108
- url: "/api/topics",
108
+ url: "/api/topics-admin",
109
109
  method: "post",
110
110
  headers: {
111
111
  Authorization: `Bearer ${jwtToken}`,
@@ -119,7 +119,7 @@ function companies({ client }) {
119
119
  if (!topicId) throw new Error("topicId is required");
120
120
 
121
121
  return client({
122
- url: `/api/topics/${topicId}`,
122
+ url: `/api/topics-admin/${topicId}`,
123
123
  method: "delete",
124
124
  headers: {
125
125
  Authorization: `Bearer ${jwtToken}`,
@@ -138,7 +138,7 @@ function companies({ client }) {
138
138
  function getAllCategories({ jwtToken }) {
139
139
  if (!jwtToken) throw new Error("jwtToken is required");
140
140
  return client({
141
- url: `/api/categories`,
141
+ url: `/api/categories-admin`,
142
142
  method: "get",
143
143
  headers: {
144
144
  Authorization: `Bearer ${jwtToken}`,
@@ -151,7 +151,7 @@ function companies({ client }) {
151
151
  if (!categorieId) throw new Error("categorieId is required");
152
152
  if (!data) throw new Error("data is required");
153
153
  return client({
154
- url: `/api/categories/${categorieId}`,
154
+ url: `/api/categories-admin/${categorieId}`,
155
155
  method: "put",
156
156
  headers: {
157
157
  Authorization: `Bearer ${jwtToken}`,
@@ -165,7 +165,7 @@ function companies({ client }) {
165
165
  if (!data) throw new Error("data is required");
166
166
 
167
167
  return client({
168
- url: "/api/categories",
168
+ url: "/api/categories-admin",
169
169
  method: "post",
170
170
  headers: {
171
171
  Authorization: `Bearer ${jwtToken}`,
@@ -179,7 +179,7 @@ function companies({ client }) {
179
179
  if (!categorieId) throw new Error("topicId is required");
180
180
 
181
181
  return client({
182
- url: `/api/categories/${categorieId}`,
182
+ url: `/api/categories-admin/${categorieId}`,
183
183
  method: "delete",
184
184
  headers: {
185
185
  Authorization: `Bearer ${jwtToken}`,
@@ -2,7 +2,7 @@ function footer({ client }) {
2
2
  // ------------------FOOTER-------------------
3
3
  function getFooter({ jwtToken }) {
4
4
  return client({
5
- url: "/api/footer",
5
+ url: "/api/footer-admin",
6
6
  method: "get",
7
7
  headers: {
8
8
  Authorization: `Bearer ${jwtToken}`,
@@ -11,7 +11,7 @@ function footer({ client }) {
11
11
  }
12
12
  function updateFooter({ jwtToken, data }) {
13
13
  return client({
14
- url: "/api/footer",
14
+ url: "/api/footer-admin",
15
15
  method: "put",
16
16
  headers: {
17
17
  Authorization: `Bearer ${jwtToken}`,
@@ -2,7 +2,7 @@ function institucional({ client }) {
2
2
  // ------------------ENFOQUE-------------------
3
3
  function getNuestroEnfoque({ jwtToken }) {
4
4
  return client({
5
- url: "/api/enfoque",
5
+ url: "/api/enfoque-admin",
6
6
  method: "get",
7
7
  headers: {
8
8
  Authorization: `Bearer ${jwtToken}`,
@@ -11,7 +11,7 @@ function institucional({ client }) {
11
11
  }
12
12
  function updateNuestroEnfoque({ jwtToken, data }) {
13
13
  return client({
14
- url: "/api/enfoque",
14
+ url: "/api/enfoque-admin",
15
15
  method: "put",
16
16
  headers: {
17
17
  Authorization: `Bearer ${jwtToken}`,
@@ -23,7 +23,7 @@ function institucional({ client }) {
23
23
  // ------------------INSTITUCIONAL-------------------
24
24
  function getInstitucional({ jwtToken }) {
25
25
  return client({
26
- url: "/api/institucional",
26
+ url: "/api/institucional-admin",
27
27
  method: "get",
28
28
  headers: {
29
29
  Authorization: `Bearer ${jwtToken}`,
@@ -32,7 +32,7 @@ function institucional({ client }) {
32
32
  }
33
33
  function updateinstitucional({ jwtToken, data }) {
34
34
  return client({
35
- url: "/api/institucional",
35
+ url: "/api/institucional-admin",
36
36
  method: "put",
37
37
  headers: {
38
38
  Authorization: `Bearer ${jwtToken}`,
@@ -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`,
102
+ url: `/api/nuestros-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`,
111
+ url: `/api/nuestros-proyecto-admin`,
112
112
  method: "put",
113
113
  headers: {
114
114
  Authorization: `Bearer ${jwtToken}`,
@@ -2,7 +2,7 @@ function queHacemoSeccion({ client }) {
2
2
  // ------------------QUE HACEMOS-------------------
3
3
  function getQueHacemos({ jwtToken }) {
4
4
  return client({
5
- url: "/api/que-hacemo",
5
+ url: "/api/que-hacemo-admin",
6
6
  method: "get",
7
7
  headers: {
8
8
  Authorization: `Bearer ${jwtToken}`,
@@ -11,7 +11,7 @@ function queHacemoSeccion({ client }) {
11
11
  }
12
12
  function updateQueHacemos({ jwtToken, data }) {
13
13
  return client({
14
- url: "/api/que-hacemo",
14
+ url: "/api/que-hacemo-admin",
15
15
  method: "put",
16
16
  headers: {
17
17
  Authorization: `Bearer ${jwtToken}`,