@fiado/api-invoker 1.5.18 → 1.5.19
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.
|
@@ -35,9 +35,21 @@ let EventHistoryApi = class EventHistoryApi {
|
|
|
35
35
|
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
36
36
|
*/
|
|
37
37
|
async findDirectoryUserEventsByDirectoryId(directoryId, periodDate, index, pageSize) {
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
const queryParams = [];
|
|
39
|
+
if (directoryId) {
|
|
40
|
+
queryParams.push(`directoryId=${directoryId}`);
|
|
41
|
+
}
|
|
42
|
+
if (periodDate) {
|
|
43
|
+
queryParams.push(`periodDate=${periodDate}`);
|
|
44
|
+
}
|
|
45
|
+
if (pageSize) {
|
|
46
|
+
queryParams.push(`pageSize=${pageSize}`);
|
|
47
|
+
}
|
|
48
|
+
if (index) {
|
|
49
|
+
queryParams.push(`index=${index}`);
|
|
50
|
+
}
|
|
51
|
+
const url = `${this.baseUrl}directoryuser/events/search?${queryParams.join('&')}`;
|
|
52
|
+
return await this.httpRequest.get(`${url}`);
|
|
41
53
|
}
|
|
42
54
|
/**
|
|
43
55
|
* Crea un evento de cambio asociado a un Directorio o Usuario.
|
|
@@ -60,7 +72,20 @@ let EventHistoryApi = class EventHistoryApi {
|
|
|
60
72
|
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
61
73
|
*/
|
|
62
74
|
async findAccountEventsByDirectoryId(directoryId, periodDate, index, pageSize) {
|
|
63
|
-
const
|
|
75
|
+
const queryParams = [];
|
|
76
|
+
if (directoryId) {
|
|
77
|
+
queryParams.push(`directoryId=${directoryId}`);
|
|
78
|
+
}
|
|
79
|
+
if (periodDate) {
|
|
80
|
+
queryParams.push(`periodDate=${periodDate}`);
|
|
81
|
+
}
|
|
82
|
+
if (pageSize) {
|
|
83
|
+
queryParams.push(`pageSize=${pageSize}`);
|
|
84
|
+
}
|
|
85
|
+
if (index) {
|
|
86
|
+
queryParams.push(`index=${index}`);
|
|
87
|
+
}
|
|
88
|
+
const url = `${this.baseUrl}accounts/events/search?${queryParams.join('&')}`;
|
|
64
89
|
return await this.httpRequest.get(`${url}`);
|
|
65
90
|
}
|
|
66
91
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.19",
|
|
4
4
|
"description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a través de invocaciones http",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -27,9 +27,26 @@ export class EventHistoryApi implements IEventHistoryApi {
|
|
|
27
27
|
*/
|
|
28
28
|
public async findDirectoryUserEventsByDirectoryId(directoryId: string, periodDate: string, index: string, pageSize: number): Promise<any> {
|
|
29
29
|
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
const queryParams = []
|
|
31
|
+
|
|
32
|
+
if (directoryId) {
|
|
33
|
+
queryParams.push(`directoryId=${directoryId}`)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (periodDate) {
|
|
37
|
+
queryParams.push(`periodDate=${periodDate}`)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (pageSize) {
|
|
41
|
+
queryParams.push(`pageSize=${pageSize}`)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (index) {
|
|
45
|
+
queryParams.push(`index=${index}`)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const url = `${this.baseUrl}directoryuser/events/search?${queryParams.join('&')}`;
|
|
49
|
+
return await this.httpRequest.get(`${url}`);
|
|
33
50
|
}
|
|
34
51
|
|
|
35
52
|
/**
|
|
@@ -56,8 +73,26 @@ export class EventHistoryApi implements IEventHistoryApi {
|
|
|
56
73
|
*/
|
|
57
74
|
public async findAccountEventsByDirectoryId(directoryId: string, periodDate: string, index: string, pageSize: number): Promise<any> {
|
|
58
75
|
|
|
59
|
-
const
|
|
60
|
-
|
|
76
|
+
const queryParams = []
|
|
77
|
+
|
|
78
|
+
if (directoryId) {
|
|
79
|
+
queryParams.push(`directoryId=${directoryId}`)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (periodDate) {
|
|
83
|
+
queryParams.push(`periodDate=${periodDate}`)
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (pageSize) {
|
|
87
|
+
queryParams.push(`pageSize=${pageSize}`)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (index) {
|
|
91
|
+
queryParams.push(`index=${index}`)
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const url = `${this.baseUrl}accounts/events/search?${queryParams.join('&')}`;
|
|
95
|
+
return await this.httpRequest.get(`${url}`);
|
|
61
96
|
}
|
|
62
97
|
|
|
63
98
|
/**
|