@shieldiot/ngx-pulseiot-lib 2.18.1114 → 2.18.1116

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.
@@ -1,9 +1,9 @@
1
1
  import { RestUtils } from '../../rest-utils';
2
2
  import { AppConfig } from '../../config';
3
+ import { EntityResponse } from '../model';
3
4
  import { AuditLog } from '../model';
4
5
  import { EntitiesResponse } from '../model';
5
6
  import { TimeSeries } from '../model';
6
- import { EntityResponse } from '../model';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class SysAuditLogService {
9
9
  private config;
@@ -17,11 +17,11 @@ export declare class SysAuditLogService {
17
17
  /**
18
18
  * Find log entries by query
19
19
  */
20
- find(from?: number, to?: number, accountId?: string, userId?: string, action?: string, itemType?: string, itemId?: string, itemName?: string, search?: string, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<AuditLog>>;
20
+ find(from?: number, to?: number, accountId?: string, userId?: string, action?: string, itemType?: string[], itemId?: string, itemName?: string, search?: string, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<AuditLog>>;
21
21
  /**
22
22
  * Get histogram of audit log entries over time
23
23
  */
24
- timeline(from?: number, to?: number, accountId?: string, userId?: string, action?: string, itemType?: string, itemId?: string, itemName?: string, search?: string, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntityResponse<TimeSeries<number>>>;
24
+ timeline(from?: number, to?: number, accountId?: string, userId?: string, action?: string, itemType?: string[], itemId?: string, itemName?: string, search?: string, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntityResponse<TimeSeries<number>>>;
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<SysAuditLogService, never>;
26
26
  static ɵprov: i0.ɵɵInjectableDeclaration<SysAuditLogService>;
27
27
  }
@@ -1,22 +1,22 @@
1
1
  import { RestUtils } from '../../rest-utils';
2
2
  import { AppConfig } from '../../config';
3
- import { StringIntValue } from '../model';
4
- import { Distribution } from '../model';
5
- import { DeviceActionCode } from '../model';
6
- import { SeverityTypeCode } from '../model';
7
- import { Alert } from '../model';
3
+ import { EventCategoryCode } from '../model';
8
4
  import { EventStatusCode } from '../model';
9
- import { EntitiesResponse } from '../model';
10
- import { AlertWithDevice } from '../model';
5
+ import { ActionResponse } from '../model';
6
+ import { MaliciousIPData } from '../model';
7
+ import { TimeSeries } from '../model';
11
8
  import { Tuple } from '../model';
9
+ import { DeviceActionCode } from '../model';
10
+ import { Distribution } from '../model';
11
+ import { EntitiesResponse } from '../model';
12
12
  import { StringKeyValue } from '../model';
13
- import { EventTypeCode } from '../model';
14
- import { TimeSeries } from '../model';
13
+ import { RuleTypeCode } from '../model';
15
14
  import { MaliciousIpCard } from '../model';
15
+ import { AlertWithDevice } from '../model';
16
16
  import { EntityResponse } from '../model';
17
- import { EventCategoryCode } from '../model';
18
- import { RuleTypeCode } from '../model';
19
- import { ActionResponse } from '../model';
17
+ import { Alert } from '../model';
18
+ import { EventTypeCode } from '../model';
19
+ import { SeverityTypeCode } from '../model';
20
20
  import * as i0 from "@angular/core";
21
21
  export declare class UsrAlertsService {
22
22
  private config;
@@ -46,31 +46,31 @@ export declare class UsrAlertsService {
46
46
  /**
47
47
  * Get top 10 alerts by their severity and time
48
48
  */
49
- findTop(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], sort?: string, page?: number, size?: number): import("rxjs").Observable<EntityResponse<AlertWithDevice>>;
49
+ findTop(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntityResponse<AlertWithDevice>>;
50
50
  /**
51
51
  * Get top 10 alerts by their severity and time
52
52
  */
53
- findTopMaliciousIPs(streamId?: string, top?: number): import("rxjs").Observable<EntityResponse<StringIntValue>>;
53
+ findTopMaliciousIPs(streamId?: string, top?: number, from?: number, to?: number): import("rxjs").Observable<EntitiesResponse<MaliciousIPData>>;
54
54
  /**
55
55
  * Get alerts distribution by type filtered by query
56
56
  */
57
- countByType(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[]): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
57
+ countByType(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[]): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
58
58
  /**
59
59
  * Get alerts distribution by status filtered by query
60
60
  */
61
- countByStatus(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[]): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
61
+ countByStatus(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[]): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
62
62
  /**
63
63
  * Get alerts distribution by severity filtered by query
64
64
  */
65
- countBySeverity(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[]): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
65
+ countBySeverity(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[]): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
66
66
  /**
67
67
  * Get alerts distribution by rule filtered by query
68
68
  */
69
- countByRule(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[]): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
69
+ countByRule(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[]): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
70
70
  /**
71
71
  * Get alerts distribution by category filtered by query
72
72
  */
73
- countByCategory(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[]): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
73
+ countByCategory(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[]): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
74
74
  /**
75
75
  * Get current shield as ActionResponse, the Key contains the shield index and the data includes the trend
76
76
  */
@@ -82,11 +82,11 @@ export declare class UsrAlertsService {
82
82
  /**
83
83
  * Get shieldex histogram over the provided time period
84
84
  */
85
- shieldexTimeline(streamId?: string): import("rxjs").Observable<EntityResponse<TimeSeries<number>>>;
85
+ shieldexTimeline(streamId?: string, from?: number, to?: number): import("rxjs").Observable<EntityResponse<TimeSeries<number>>>;
86
86
  /**
87
87
  * Get devices at risk number for specific alerts criteria and return the number of devices at risk for specific alerts criteria
88
88
  */
89
- getDevicesAtRisk(streamId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[]): import("rxjs").Observable<ActionResponse>;
89
+ getDevicesAtRisk(streamId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[]): import("rxjs").Observable<ActionResponse>;
90
90
  /**
91
91
  * Get malicious IP data card for specific malicious IP
92
92
  */
@@ -2,13 +2,15 @@ import { RestUtils } from '../../rest-utils';
2
2
  import { AppConfig } from '../../config';
3
3
  import { EntityResponse } from '../model';
4
4
  import { AccountDTO } from '../model';
5
- import { Feature } from '../model';
6
- import { Stream } from '../model';
7
- import { ConfigParam } from '../model';
8
- import { ActionResponse } from '../model';
9
5
  import { Image } from '../model';
10
6
  import { EntitiesResponse } from '../model';
7
+ import { Feature } from '../model';
8
+ import { Stream } from '../model';
9
+ import { LoginParams } from '../model';
10
+ import { User } from '../model';
11
11
  import { UserMemberships } from '../model';
12
+ import { ActionResponse } from '../model';
13
+ import { ConfigParam } from '../model';
12
14
  import * as i0 from "@angular/core";
13
15
  export declare class UsrUserService {
14
16
  private config;
@@ -19,7 +21,7 @@ export declare class UsrUserService {
19
21
  * Authorize user, verify user against account
20
22
  * The response includes access token valid for 20 minutes. The client side should renew the token before expiration using refresh-token method
21
23
  */
22
- authorize(body?: string): import("rxjs").Observable<ActionResponse>;
24
+ authorize(body?: LoginParams): import("rxjs").Observable<EntityResponse<User>>;
23
25
  /**
24
26
  * Refresh token (set new expiration time) and associate with new account if required
25
27
  * The response includes the newly refreshed token both in the HTTP header and the new account details
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shieldiot/ngx-pulseiot-lib",
3
- "version": "2.18.1114",
3
+ "version": "2.18.1116",
4
4
  "description": "Angular client library for PulseIoT backend",
5
5
  "publishConfig": {
6
6
  "access": "public"