api-client-fideicomisos 1.19.0 → 1.20.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
@@ -345,10 +345,13 @@ export function client(options: any): {
345
345
  }) => any;
346
346
  };
347
347
  contacts: {
348
- getAll: ({ jwtToken, page, pageSize }: {
348
+ getAll: ({ jwtToken, page, pageSize, motivo, state, search, }: {
349
349
  jwtToken: any;
350
350
  page?: number | undefined;
351
351
  pageSize?: number | undefined;
352
+ motivo: any;
353
+ state: any;
354
+ search: any;
352
355
  }) => any;
353
356
  createClient: ({ jwtToken, data }: {
354
357
  jwtToken: any;
@@ -2,10 +2,13 @@ export = contacts;
2
2
  declare function contacts({ client }: {
3
3
  client: any;
4
4
  }): {
5
- getAll: ({ jwtToken, page, pageSize }: {
5
+ getAll: ({ jwtToken, page, pageSize, motivo, state, search, }: {
6
6
  jwtToken: any;
7
7
  page?: number | undefined;
8
8
  pageSize?: number | undefined;
9
+ motivo: any;
10
+ state: any;
11
+ search: any;
9
12
  }) => any;
10
13
  createClient: ({ jwtToken, data }: {
11
14
  jwtToken: any;
@@ -7,11 +7,18 @@ function contacts(_ref) {
7
7
  _ref2$page = _ref2.page,
8
8
  page = _ref2$page === void 0 ? 1 : _ref2$page,
9
9
  _ref2$pageSize = _ref2.pageSize,
10
- pageSize = _ref2$pageSize === void 0 ? 10 : _ref2$pageSize;
11
- var query = new URLSearchParams({
10
+ pageSize = _ref2$pageSize === void 0 ? 10 : _ref2$pageSize,
11
+ motivo = _ref2.motivo,
12
+ state = _ref2.state,
13
+ search = _ref2.search;
14
+ var params = {
12
15
  "pagination[page]": page,
13
16
  "pagination[pageSize]": pageSize
14
- }).toString();
17
+ };
18
+ if (motivo) params.motivo = motivo;
19
+ if (state) params.state = state;
20
+ if (search) params.search = search;
21
+ var query = new URLSearchParams(params).toString();
15
22
  return client({
16
23
  url: "/api/contacts?".concat(query),
17
24
  method: "get",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-client-fideicomisos",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "Api client Banco Provincia Fideicomisos",
5
5
  "homepage": "https://github.com/TeoCoop/api-client-fideicomisos.git",
6
6
  "bugs": {
@@ -1,9 +1,22 @@
1
1
  function contacts({ client }) {
2
- function getAll({ jwtToken, page = 1, pageSize = 10 }) {
3
- const query = new URLSearchParams({
2
+ function getAll({
3
+ jwtToken,
4
+ page = 1,
5
+ pageSize = 10,
6
+ motivo,
7
+ state,
8
+ search,
9
+ }) {
10
+ const params = {
4
11
  "pagination[page]": page,
5
12
  "pagination[pageSize]": pageSize,
6
- }).toString();
13
+ };
14
+
15
+ if (motivo) params.motivo = motivo;
16
+ if (state) params.state = state;
17
+ if (search) params.search = search;
18
+
19
+ const query = new URLSearchParams(params).toString();
7
20
 
8
21
  return client({
9
22
  url: `/api/contacts?${query}`,