api-client-fideicomisos 1.1.0 → 1.2.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 +4 -4
- package/dist/enpoints/frontend/blogs.d.ts +2 -2
- package/dist/enpoints/frontend/blogs.js +3 -3
- package/dist/enpoints/frontend/projects.d.ts +2 -2
- package/dist/enpoints/frontend/projects.js +2 -2
- package/package.json +1 -1
- package/src/enpoints/frontend/blogs.js +4 -4
- package/src/enpoints/frontend/projects.js +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -15,10 +15,10 @@ export function client(options: any): {
|
|
|
15
15
|
pageSize?: number | undefined;
|
|
16
16
|
order?: string | undefined;
|
|
17
17
|
}) => any;
|
|
18
|
-
getFilters: ({ year, topicDocumentId,
|
|
18
|
+
getFilters: ({ year, topicDocumentId, categorieDocumentId, search, page, pageSize, sortField, sortOrder, }?: {
|
|
19
19
|
year?: number | undefined;
|
|
20
20
|
topicDocumentId?: string | undefined;
|
|
21
|
-
|
|
21
|
+
categorieDocumentId?: string | undefined;
|
|
22
22
|
search?: string | undefined;
|
|
23
23
|
page?: number | undefined;
|
|
24
24
|
pageSize?: number | undefined;
|
|
@@ -36,8 +36,8 @@ export function client(options: any): {
|
|
|
36
36
|
getCategories: () => any;
|
|
37
37
|
};
|
|
38
38
|
projects: {
|
|
39
|
-
getById: ({
|
|
40
|
-
|
|
39
|
+
getById: ({ projectId }: {
|
|
40
|
+
projectId: any;
|
|
41
41
|
}) => any;
|
|
42
42
|
getAll: ({ page, pageSize, order }?: {
|
|
43
43
|
page?: number | undefined;
|
|
@@ -10,10 +10,10 @@ declare function blog({ client }: {
|
|
|
10
10
|
pageSize?: number | undefined;
|
|
11
11
|
order?: string | undefined;
|
|
12
12
|
}) => any;
|
|
13
|
-
getFilters: ({ year, topicDocumentId,
|
|
13
|
+
getFilters: ({ year, topicDocumentId, categorieDocumentId, search, page, pageSize, sortField, sortOrder, }?: {
|
|
14
14
|
year?: number | undefined;
|
|
15
15
|
topicDocumentId?: string | undefined;
|
|
16
|
-
|
|
16
|
+
categorieDocumentId?: string | undefined;
|
|
17
17
|
search?: string | undefined;
|
|
18
18
|
page?: number | undefined;
|
|
19
19
|
pageSize?: number | undefined;
|
|
@@ -61,7 +61,7 @@ function blog(_ref) {
|
|
|
61
61
|
* @param {Object} params
|
|
62
62
|
* @param {number} [params.year]
|
|
63
63
|
* @param {string} [params.topicDocumentId] - documentId del topic
|
|
64
|
-
* @param {string} [params.
|
|
64
|
+
* @param {string} [params.categorieDocumentId] - documentId de la compañía
|
|
65
65
|
* @param {string} [params.search]
|
|
66
66
|
* @param {number} [params.page=1]
|
|
67
67
|
* @param {number} [params.pageSize=10]
|
|
@@ -72,7 +72,7 @@ function blog(_ref) {
|
|
|
72
72
|
var _ref6 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
73
73
|
year = _ref6.year,
|
|
74
74
|
topicDocumentId = _ref6.topicDocumentId,
|
|
75
|
-
|
|
75
|
+
categorieDocumentId = _ref6.categorieDocumentId,
|
|
76
76
|
search = _ref6.search,
|
|
77
77
|
_ref6$page = _ref6.page,
|
|
78
78
|
page = _ref6$page === void 0 ? 1 : _ref6$page,
|
|
@@ -89,7 +89,7 @@ function blog(_ref) {
|
|
|
89
89
|
params.append("sortOrder", sortOrder);
|
|
90
90
|
if (year != null) params.append("year", year.toString());
|
|
91
91
|
if (topicDocumentId) params.append("topicDocumentId", topicDocumentId);
|
|
92
|
-
if (
|
|
92
|
+
if (categorieDocumentId) params.append("categorieDocumentId", categorieDocumentId);
|
|
93
93
|
if (search) params.append("search", search);
|
|
94
94
|
return client({
|
|
95
95
|
url: "/api/blogs-filter?".concat(params.toString()),
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
function projects(_ref) {
|
|
4
4
|
var client = _ref.client;
|
|
5
5
|
function getById(_ref2) {
|
|
6
|
-
var
|
|
6
|
+
var projectId = _ref2.projectId;
|
|
7
7
|
return client({
|
|
8
|
-
url: "/api/projects/".concat(
|
|
8
|
+
url: "/api/projects/".concat(projectId),
|
|
9
9
|
method: "get"
|
|
10
10
|
});
|
|
11
11
|
}
|
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@ function blog({ client }) {
|
|
|
53
53
|
* @param {Object} params
|
|
54
54
|
* @param {number} [params.year]
|
|
55
55
|
* @param {string} [params.topicDocumentId] - documentId del topic
|
|
56
|
-
* @param {string} [params.
|
|
56
|
+
* @param {string} [params.categorieDocumentId] - documentId de la compañía
|
|
57
57
|
* @param {string} [params.search]
|
|
58
58
|
* @param {number} [params.page=1]
|
|
59
59
|
* @param {number} [params.pageSize=10]
|
|
@@ -63,7 +63,7 @@ function blog({ client }) {
|
|
|
63
63
|
function getFilters({
|
|
64
64
|
year,
|
|
65
65
|
topicDocumentId,
|
|
66
|
-
|
|
66
|
+
categorieDocumentId,
|
|
67
67
|
search,
|
|
68
68
|
page = 1,
|
|
69
69
|
pageSize = 10,
|
|
@@ -79,8 +79,8 @@ function blog({ client }) {
|
|
|
79
79
|
|
|
80
80
|
if (year != null) params.append("year", year.toString());
|
|
81
81
|
if (topicDocumentId) params.append("topicDocumentId", topicDocumentId);
|
|
82
|
-
if (
|
|
83
|
-
params.append("
|
|
82
|
+
if (categorieDocumentId)
|
|
83
|
+
params.append("categorieDocumentId", categorieDocumentId);
|
|
84
84
|
if (search) params.append("search", search);
|
|
85
85
|
|
|
86
86
|
return client({
|