@shieldiot/ngx-pulseiot-lib 2.18.1115 → 2.18.1118

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,23 @@
1
1
  import { RestUtils } from '../../rest-utils';
2
2
  import { AppConfig } from '../../config';
3
- import { ActionResponse } from '../model';
4
- import { TimeSeries } from '../model';
3
+ import { EntitiesResponse } from '../model';
4
+ import { SeverityTypeCode } from '../model';
5
+ import { MapBounds } from '../model';
5
6
  import { DevicesMap } from '../model';
6
7
  import { EntityResponse } from '../model';
7
- import { DeviceTypeCode } from '../model';
8
+ import { ActionResponse } from '../model';
8
9
  import { DeviceWithEvents } from '../model';
9
- import { DeviceReport } from '../model';
10
+ import { NetworkMapTypeCode } from '../model';
10
11
  import { TimeSeriesConsumption } from '../model';
12
+ import { Device } from '../model';
13
+ import { DeviceTypeCode } from '../model';
11
14
  import { DeviceStatusCode } from '../model';
12
- import { DeviceActionCode } from '../model';
13
15
  import { Distribution } from '../model';
14
- import { NetworkMapTypeCode } from '../model';
15
- import { MapBounds } from '../model';
16
- import { Device } from '../model';
17
- import { Entities } from '../model';
18
- import { EntitiesResponse } from '../model';
19
16
  import { NetworkMap } from '../model';
17
+ import { Entities } from '../model';
18
+ import { DeviceActionCode } from '../model';
19
+ import { DeviceReport } from '../model';
20
+ import { TimeSeries } from '../model';
20
21
  import * as i0 from "@angular/core";
21
22
  export declare class UsrDevicesService {
22
23
  private config;
@@ -50,11 +51,11 @@ export declare class UsrDevicesService {
50
51
  /**
51
52
  * Find devices by query
52
53
  */
53
- find(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: number, sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntitiesResponse<Device>>;
54
+ find(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntitiesResponse<Device>>;
54
55
  /**
55
56
  * Export devices by query to a file as a stream of CSV | JSON | XML | XLSX
56
57
  */
57
- export(format?: string, streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: number, sort?: string, page?: number, size?: number): import("rxjs").Observable<import("@angular/common/http").HttpEvent<Blob>>;
58
+ export(format?: string, streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], sort?: string, page?: number, size?: number): import("rxjs").Observable<import("@angular/common/http").HttpEvent<Blob>>;
58
59
  /**
59
60
  * Upload device list from csv file
60
61
  */
@@ -74,19 +75,19 @@ export declare class UsrDevicesService {
74
75
  /**
75
76
  * Find top 10 devices by their score and filter criteria
76
77
  */
77
- findTop(streamId?: string, search?: string, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: number, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntityResponse<DeviceWithEvents>>;
78
+ findTop(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntityResponse<DeviceWithEvents>>;
78
79
  /**
79
80
  * Get device distribution by type filtered by query
80
81
  */
81
- countByType(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: number): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
82
+ countByType(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[]): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
82
83
  /**
83
84
  * Get device distribution by status filtered by query
84
85
  */
85
- countByStatus(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: number): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
86
+ countByStatus(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[]): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
86
87
  /**
87
88
  * Get device distribution by action filtered by query
88
89
  */
89
- countByAction(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: number): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
90
+ countByAction(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[]): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
90
91
  /**
91
92
  * Get network map of devices
92
93
  */
@@ -106,7 +107,7 @@ export declare class UsrDevicesService {
106
107
  /**
107
108
  * Get device / group of devices consumption trend: 7 days consumption compared to the average of the previous weeks
108
109
  */
109
- getConsumptionTrend(streamId?: string, type?: DeviceTypeCode[], tag?: string[], id?: string[]): import("rxjs").Observable<ActionResponse>;
110
+ getConsumptionTrend(streamId?: string, from?: number, to?: number, type?: DeviceTypeCode[], tag?: string[], id?: string[]): import("rxjs").Observable<ActionResponse>;
110
111
  /**
111
112
  * Find devices by insight id query
112
113
  */
@@ -114,11 +115,11 @@ export declare class UsrDevicesService {
114
115
  /**
115
116
  * Find devices by query
116
117
  */
117
- findDevicesMap(streamId?: string, search?: string, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: number, sort?: string, page?: number, size?: number, mapBounds?: MapBounds): import("rxjs").Observable<EntityResponse<DevicesMap>>;
118
+ findDevicesMap(streamId?: string, search?: string, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, mapBounds?: MapBounds): import("rxjs").Observable<EntityResponse<DevicesMap>>;
118
119
  /**
119
120
  * Get device distribution by risk filtered by query
120
121
  */
121
- countByRisk(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: number): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
122
+ countByRisk(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[]): import("rxjs").Observable<EntityResponse<Distribution<number>>>;
122
123
  static ɵfac: i0.ɵɵFactoryDeclaration<UsrDevicesService, never>;
123
124
  static ɵprov: i0.ɵɵInjectableDeclaration<UsrDevicesService>;
124
125
  }
@@ -1,14 +1,17 @@
1
1
  import { RestUtils } from '../../rest-utils';
2
2
  import { AppConfig } from '../../config';
3
+ import { LoginParams } from '../model';
3
4
  import { EntityResponse } from '../model';
4
5
  import { AccountDTO } from '../model';
5
- import { Feature } from '../model';
6
6
  import { Stream } from '../model';
7
- import { ConfigParam } from '../model';
8
7
  import { ActionResponse } from '../model';
8
+ import { ConfigParam } from '../model';
9
+ import { User } from '../model';
9
10
  import { Image } from '../model';
10
11
  import { EntitiesResponse } from '../model';
12
+ import { Feature } from '../model';
11
13
  import { UserMemberships } from '../model';
14
+ import { FeatureCode } from '../model';
12
15
  import * as i0 from "@angular/core";
13
16
  export declare class UsrUserService {
14
17
  private config;
@@ -19,7 +22,7 @@ export declare class UsrUserService {
19
22
  * Authorize user, verify user against account
20
23
  * The response includes access token valid for 20 minutes. The client side should renew the token before expiration using refresh-token method
21
24
  */
22
- authorize(body?: string): import("rxjs").Observable<ActionResponse>;
25
+ authorize(body?: LoginParams): import("rxjs").Observable<EntityResponse<User>>;
23
26
  /**
24
27
  * Refresh token (set new expiration time) and associate with new account if required
25
28
  * The response includes the newly refreshed token both in the HTTP header and the new account details
@@ -72,7 +75,7 @@ export declare class UsrUserService {
72
75
  /**
73
76
  * Ask for premium request
74
77
  */
75
- premiumRequest(featureCode?: string): import("rxjs").Observable<ActionResponse>;
78
+ premiumRequest(featureCode?: FeatureCode): import("rxjs").Observable<ActionResponse>;
76
79
  /**
77
80
  * Get system configuration parameters
78
81
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shieldiot/ngx-pulseiot-lib",
3
- "version": "2.18.1115",
3
+ "version": "2.18.1118",
4
4
  "description": "Angular client library for PulseIoT backend",
5
5
  "publishConfig": {
6
6
  "access": "public"