api-client-fideicomisos 1.5.0 → 1.7.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
@@ -62,6 +62,15 @@ export function client(options: any): {
62
62
  queHacemos: {
63
63
  get: () => any;
64
64
  };
65
+ accesoClientes: {
66
+ get: () => any;
67
+ };
68
+ contactCreate: {
69
+ createClient: ({ jwtToken, data }: {
70
+ jwtToken: any;
71
+ data: any;
72
+ }) => any;
73
+ };
65
74
  };
66
75
  auth: {
67
76
  auth: ({ user }: {
@@ -190,8 +199,6 @@ export function client(options: any): {
190
199
  }) => any;
191
200
  };
192
201
  blog: {
193
- getBlogSection: any;
194
- updateBlogSection: any;
195
202
  getByIdBlog: ({ blogId }: {
196
203
  blogId: any;
197
204
  }) => any;
@@ -306,6 +313,39 @@ export function client(options: any): {
306
313
  data: any;
307
314
  }) => any;
308
315
  };
316
+ tenesUnProyecto: {
317
+ get: () => any;
318
+ update: ({ jwtToken, data }: {
319
+ jwtToken: any;
320
+ data: any;
321
+ }) => any;
322
+ };
323
+ accesoClientes: {
324
+ get: () => any;
325
+ update: ({ jwtToken, data }: {
326
+ jwtToken: any;
327
+ data: any;
328
+ }) => any;
329
+ };
330
+ contacts: {
331
+ getAll: () => any;
332
+ createClient: ({ jwtToken, data }: {
333
+ jwtToken: any;
334
+ data: any;
335
+ }) => any;
336
+ update: ({ jwtToken, data }: {
337
+ jwtToken: any;
338
+ data: any;
339
+ }) => any;
340
+ getById: ({ clientId, jwtToken }: {
341
+ clientId: any;
342
+ jwtToken: any;
343
+ }) => any;
344
+ deleteContact: ({ clientId, jwtToken }: {
345
+ clientId: any;
346
+ jwtToken: any;
347
+ }) => any;
348
+ };
309
349
  };
310
350
  general: {
311
351
  upload: {
package/dist/client.js CHANGED
@@ -40,6 +40,12 @@ function frontendEndpoints(baseURL) {
40
40
  }),
41
41
  queHacemos: require("./enpoints/frontend/que-hacemos.js")({
42
42
  client: client
43
+ }),
44
+ accesoClientes: require("./enpoints/frontend/accesoClientes.js")({
45
+ client: client
46
+ }),
47
+ contactCreate: require("./enpoints/frontend/contactCreate.js")({
48
+ client: client
43
49
  })
44
50
  };
45
51
  }
@@ -63,6 +69,15 @@ function backendEndpoints(baseURL) {
63
69
  }),
64
70
  queHacemos: require("./enpoints/backoffice/queHacemos.js")({
65
71
  client: client
72
+ }),
73
+ tenesUnProyecto: require("./enpoints/backoffice/tenesUnProyecto.js")({
74
+ client: client
75
+ }),
76
+ accesoClientes: require("./enpoints/backoffice/accesoClientes.js")({
77
+ client: client
78
+ }),
79
+ contacts: require("./enpoints/backoffice/contacts.js")({
80
+ client: client
66
81
  })
67
82
  };
68
83
  }
@@ -0,0 +1,11 @@
1
+ export = accesoClientes;
2
+ declare function accesoClientes({ client, jwtToken }: {
3
+ client: any;
4
+ jwtToken: any;
5
+ }): {
6
+ get: () => any;
7
+ update: ({ jwtToken, data }: {
8
+ jwtToken: any;
9
+ data: any;
10
+ }) => any;
11
+ };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ function accesoClientes(_ref) {
10
+ var client = _ref.client,
11
+ jwtToken = _ref.jwtToken;
12
+ function get() {
13
+ return client({
14
+ url: "/api/acceso-client",
15
+ method: "get",
16
+ headers: {
17
+ Authorization: "Bearer ".concat(jwtToken)
18
+ }
19
+ });
20
+ }
21
+ function update(_ref2) {
22
+ var jwtToken = _ref2.jwtToken,
23
+ data = _ref2.data;
24
+ var formattedData = {
25
+ data: _objectSpread({}, data)
26
+ };
27
+ return client({
28
+ url: "/api/acceso-client",
29
+ method: "put",
30
+ headers: {
31
+ Authorization: "Bearer ".concat(jwtToken)
32
+ },
33
+ data: formattedData
34
+ });
35
+ }
36
+ return {
37
+ get: get,
38
+ update: update
39
+ };
40
+ }
41
+ module.exports = accesoClientes;
@@ -2,8 +2,6 @@ export = companies;
2
2
  declare function companies({ client }: {
3
3
  client: any;
4
4
  }): {
5
- getBlogSection: any;
6
- updateBlogSection: any;
7
5
  getByIdBlog: ({ blogId }: {
8
6
  blogId: any;
9
7
  }) => any;
@@ -297,8 +297,6 @@ function companies(_ref) {
297
297
  });
298
298
  }
299
299
  return {
300
- getBlogSection: getBlogSection,
301
- updateBlogSection: updateBlogSection,
302
300
  getByIdBlog: getByIdBlog,
303
301
  getAllBlogs: getAllBlogs,
304
302
  updateBlog: updateBlog,
@@ -0,0 +1,22 @@
1
+ export = contacts;
2
+ declare function contacts({ client }: {
3
+ client: any;
4
+ }): {
5
+ getAll: () => any;
6
+ createClient: ({ jwtToken, data }: {
7
+ jwtToken: any;
8
+ data: any;
9
+ }) => any;
10
+ update: ({ jwtToken, data }: {
11
+ jwtToken: any;
12
+ data: any;
13
+ }) => any;
14
+ getById: ({ clientId, jwtToken }: {
15
+ clientId: any;
16
+ jwtToken: any;
17
+ }) => any;
18
+ deleteContact: ({ clientId, jwtToken }: {
19
+ clientId: any;
20
+ jwtToken: any;
21
+ }) => any;
22
+ };
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ function contacts(_ref) {
10
+ var client = _ref.client;
11
+ function getAll() {
12
+ return client({
13
+ url: "/api/contacts",
14
+ method: "get",
15
+ headers: {
16
+ Authorization: "Bearer ".concat(jwtToken)
17
+ }
18
+ });
19
+ }
20
+ function getById(_ref2) {
21
+ var clientId = _ref2.clientId,
22
+ jwtToken = _ref2.jwtToken;
23
+ return client({
24
+ url: "/api/contacts/".concat(clientId),
25
+ method: "get",
26
+ headers: {
27
+ Authorization: "Bearer ".concat(jwtToken)
28
+ }
29
+ });
30
+ }
31
+ function createClient(_ref3) {
32
+ var jwtToken = _ref3.jwtToken,
33
+ data = _ref3.data;
34
+ var formattedData = {
35
+ data: _objectSpread({}, data)
36
+ };
37
+ return client({
38
+ url: "/api/contacts",
39
+ method: "post",
40
+ headers: {
41
+ Authorization: "Bearer ".concat(jwtToken)
42
+ },
43
+ data: formattedData
44
+ });
45
+ }
46
+ function update(_ref4) {
47
+ var jwtToken = _ref4.jwtToken,
48
+ data = _ref4.data;
49
+ var formattedData = {
50
+ data: _objectSpread({}, data)
51
+ };
52
+ return client({
53
+ url: "/api/contacts",
54
+ method: "put",
55
+ headers: {
56
+ Authorization: "Bearer ".concat(jwtToken)
57
+ },
58
+ data: formattedData
59
+ });
60
+ }
61
+ function deleteContact(_ref5) {
62
+ var clientId = _ref5.clientId,
63
+ jwtToken = _ref5.jwtToken;
64
+ return client({
65
+ url: "/api/contacts/".concat(clientId),
66
+ method: "delete",
67
+ headers: {
68
+ Authorization: "Bearer ".concat(jwtToken)
69
+ }
70
+ });
71
+ }
72
+ return {
73
+ getAll: getAll,
74
+ createClient: createClient,
75
+ update: update,
76
+ getById: getById,
77
+ deleteContact: deleteContact
78
+ };
79
+ }
80
+ module.exports = contacts;
@@ -0,0 +1,11 @@
1
+ export = tenesUnProyecto;
2
+ declare function tenesUnProyecto({ client, jwtToken }: {
3
+ client: any;
4
+ jwtToken: any;
5
+ }): {
6
+ get: () => any;
7
+ update: ({ jwtToken, data }: {
8
+ jwtToken: any;
9
+ data: any;
10
+ }) => any;
11
+ };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ function tenesUnProyecto(_ref) {
10
+ var client = _ref.client,
11
+ jwtToken = _ref.jwtToken;
12
+ function get() {
13
+ return client({
14
+ url: "/api/tenes-proyecto",
15
+ method: "get",
16
+ headers: {
17
+ Authorization: "Bearer ".concat(jwtToken)
18
+ }
19
+ });
20
+ }
21
+ function update(_ref2) {
22
+ var jwtToken = _ref2.jwtToken,
23
+ data = _ref2.data;
24
+ var formattedData = {
25
+ data: _objectSpread({}, data)
26
+ };
27
+ return client({
28
+ url: "/api/tenes-proyecto",
29
+ method: "put",
30
+ headers: {
31
+ Authorization: "Bearer ".concat(jwtToken)
32
+ },
33
+ data: formattedData
34
+ });
35
+ }
36
+ return {
37
+ get: get,
38
+ update: update
39
+ };
40
+ }
41
+ module.exports = tenesUnProyecto;
@@ -0,0 +1,6 @@
1
+ export = accesoClientes;
2
+ declare function accesoClientes({ client }: {
3
+ client: any;
4
+ }): {
5
+ get: () => any;
6
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ function accesoClientes(_ref) {
4
+ var client = _ref.client;
5
+ function get() {
6
+ return client({
7
+ url: "/api/acceso-client",
8
+ method: "get"
9
+ });
10
+ }
11
+ return {
12
+ get: get
13
+ };
14
+ }
15
+ module.exports = accesoClientes;
@@ -0,0 +1,9 @@
1
+ export = contactCreate;
2
+ declare function contactCreate({ client }: {
3
+ client: any;
4
+ }): {
5
+ createClient: ({ jwtToken, data }: {
6
+ jwtToken: any;
7
+ data: any;
8
+ }) => any;
9
+ };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ function contactCreate(_ref) {
10
+ var client = _ref.client;
11
+ function createClient(_ref2) {
12
+ var jwtToken = _ref2.jwtToken,
13
+ data = _ref2.data;
14
+ var formattedData = {
15
+ data: _objectSpread({}, data)
16
+ };
17
+ return client({
18
+ url: "/api/contacts",
19
+ method: "post",
20
+ headers: {
21
+ Authorization: "Bearer ".concat(jwtToken)
22
+ },
23
+ data: formattedData
24
+ });
25
+ }
26
+ return {
27
+ createClient: createClient
28
+ };
29
+ }
30
+ module.exports = contactCreate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-client-fideicomisos",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "Api client Banco Provincia Fideicomisos",
5
5
  "homepage": "https://github.com/TeoCoop/api-client-fideicomisos.git",
6
6
  "bugs": {
package/src/client.js CHANGED
@@ -21,6 +21,10 @@ function frontendEndpoints(baseURL) {
21
21
  client,
22
22
  }),
23
23
  queHacemos: require("./enpoints/frontend/que-hacemos.js")({ client }),
24
+ accesoClientes: require("./enpoints/frontend/accesoClientes.js")({
25
+ client,
26
+ }),
27
+ contactCreate: require("./enpoints/frontend/contactCreate.js")({ client }),
24
28
  };
25
29
  }
26
30
  function backendEndpoints(baseURL) {
@@ -34,6 +38,15 @@ function backendEndpoints(baseURL) {
34
38
  blog: require("./enpoints/backoffice/blog.js")({ client }),
35
39
  footer: require("./enpoints/backoffice/footer.js")({ client }),
36
40
  queHacemos: require("./enpoints/backoffice/queHacemos.js")({ client }),
41
+ tenesUnProyecto: require("./enpoints/backoffice/tenesUnProyecto.js")({
42
+ client,
43
+ }),
44
+ accesoClientes: require("./enpoints/backoffice/accesoClientes.js")({
45
+ client,
46
+ }),
47
+ contacts: require("./enpoints/backoffice/contacts.js")({
48
+ client,
49
+ }),
37
50
  };
38
51
  }
39
52
  function authEndpoint(baseURL) {
@@ -0,0 +1,33 @@
1
+ function accesoClientes({ client, jwtToken }) {
2
+ function get() {
3
+ return client({
4
+ url: `/api/acceso-client`,
5
+ method: "get",
6
+ headers: {
7
+ Authorization: `Bearer ${jwtToken}`,
8
+ },
9
+ });
10
+ }
11
+ function update({ jwtToken, data }) {
12
+ const formattedData = {
13
+ data: {
14
+ ...data,
15
+ },
16
+ };
17
+ return client({
18
+ url: "/api/acceso-client",
19
+ method: "put",
20
+ headers: {
21
+ Authorization: `Bearer ${jwtToken}`,
22
+ },
23
+ data: formattedData,
24
+ });
25
+ }
26
+
27
+ return {
28
+ get,
29
+ update,
30
+ };
31
+ }
32
+
33
+ module.exports = accesoClientes;
@@ -257,8 +257,6 @@ function companies({ client }) {
257
257
  });
258
258
  }
259
259
  return {
260
- getBlogSection,
261
- updateBlogSection,
262
260
  getByIdBlog,
263
261
  getAllBlogs,
264
262
  updateBlog,
@@ -0,0 +1,67 @@
1
+ function contacts({ client }) {
2
+ function getAll() {
3
+ return client({
4
+ url: `/api/contacts`,
5
+ method: "get",
6
+ headers: {
7
+ Authorization: `Bearer ${jwtToken}`,
8
+ },
9
+ });
10
+ }
11
+ function getById({ clientId, jwtToken }) {
12
+ return client({
13
+ url: `/api/contacts/${clientId}`,
14
+ method: "get",
15
+ headers: {
16
+ Authorization: `Bearer ${jwtToken}`,
17
+ },
18
+ });
19
+ }
20
+ function createClient({ jwtToken, data }) {
21
+ const formattedData = {
22
+ data: {
23
+ ...data,
24
+ },
25
+ };
26
+ return client({
27
+ url: "/api/contacts",
28
+ method: "post",
29
+ headers: {
30
+ Authorization: `Bearer ${jwtToken}`,
31
+ },
32
+ data: formattedData,
33
+ });
34
+ }
35
+ function update({ jwtToken, data }) {
36
+ const formattedData = {
37
+ data: {
38
+ ...data,
39
+ },
40
+ };
41
+ return client({
42
+ url: "/api/contacts",
43
+ method: "put",
44
+ headers: {
45
+ Authorization: `Bearer ${jwtToken}`,
46
+ },
47
+ data: formattedData,
48
+ });
49
+ }
50
+ function deleteContact({ clientId, jwtToken }) {
51
+ return client({
52
+ url: `/api/contacts/${clientId}`,
53
+ method: "delete",
54
+ headers: {
55
+ Authorization: `Bearer ${jwtToken}`,
56
+ },
57
+ });
58
+ }
59
+ return {
60
+ getAll,
61
+ createClient,
62
+ update,
63
+ getById,
64
+ deleteContact,
65
+ };
66
+ }
67
+ module.exports = contacts;
@@ -0,0 +1,33 @@
1
+ function tenesUnProyecto({ client, jwtToken }) {
2
+ function get() {
3
+ return client({
4
+ url: `/api/tenes-proyecto`,
5
+ method: "get",
6
+ headers: {
7
+ Authorization: `Bearer ${jwtToken}`,
8
+ },
9
+ });
10
+ }
11
+ function update({ jwtToken, data }) {
12
+ const formattedData = {
13
+ data: {
14
+ ...data,
15
+ },
16
+ };
17
+ return client({
18
+ url: "/api/tenes-proyecto",
19
+ method: "put",
20
+ headers: {
21
+ Authorization: `Bearer ${jwtToken}`,
22
+ },
23
+ data: formattedData,
24
+ });
25
+ }
26
+
27
+ return {
28
+ get,
29
+ update,
30
+ };
31
+ }
32
+
33
+ module.exports = tenesUnProyecto;
@@ -0,0 +1,13 @@
1
+ function accesoClientes({ client }) {
2
+ function get() {
3
+ return client({
4
+ url: `/api/acceso-client`,
5
+ method: "get",
6
+ });
7
+ }
8
+ return {
9
+ get,
10
+ };
11
+ }
12
+
13
+ module.exports = accesoClientes;
@@ -0,0 +1,21 @@
1
+ function contactCreate({ client }) {
2
+ function createClient({ jwtToken, data }) {
3
+ const formattedData = {
4
+ data: {
5
+ ...data,
6
+ },
7
+ };
8
+ return client({
9
+ url: "/api/contacts",
10
+ method: "post",
11
+ headers: {
12
+ Authorization: `Bearer ${jwtToken}`,
13
+ },
14
+ data: formattedData,
15
+ });
16
+ }
17
+ return {
18
+ createClient,
19
+ };
20
+ }
21
+ module.exports = contactCreate;