@shieldiot/pulse-lib 1.0.8 → 1.0.9
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/README.md +30 -4
- package/dist/lib/common/TokenData.d.ts +1 -1
- package/dist/lib/entities/AccountDTO.d.ts +1 -1
- package/dist/lib/entities/AccountDTO.js.map +1 -1
- package/dist/lib/entities/Action.d.ts +1 -1
- package/dist/lib/entities/Action.js.map +1 -1
- package/dist/lib/entities/Alert.d.ts +6 -6
- package/dist/lib/entities/Alert.js.map +1 -1
- package/dist/lib/entities/AlertWithDevice.d.ts +4 -4
- package/dist/lib/entities/DataIngestion.d.ts +1 -1
- package/dist/lib/entities/Device.d.ts +3 -3
- package/dist/lib/entities/Device.js.map +1 -1
- package/dist/lib/entities/DeviceWithEvents.d.ts +3 -3
- package/dist/lib/entities/DeviceWithEvents.js.map +1 -1
- package/dist/lib/entities/Event.d.ts +6 -6
- package/dist/lib/entities/Event.js.map +1 -1
- package/dist/lib/entities/EventOccurrence.d.ts +1 -1
- package/dist/lib/entities/EventWithDevice.d.ts +6 -6
- package/dist/lib/entities/EventWithDevice.js.map +1 -1
- package/dist/lib/entities/Integration.d.ts +2 -2
- package/dist/lib/entities/Integration.js.map +1 -1
- package/dist/lib/entities/Rule.d.ts +3 -3
- package/dist/lib/entities/Rule.js.map +1 -1
- package/dist/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
- package/dist/lib/entities/StreamAnalyticsConfig.js.map +1 -1
- package/dist/lib/entities/User.d.ts +2 -2
- package/dist/lib/entities/User.js.map +1 -1
- package/dist/lib/entities/UserMembership.d.ts +1 -1
- package/dist/lib/entities/UserMembership.js.map +1 -1
- package/dist/lib/entities/UserMemberships.d.ts +1 -1
- package/dist/lib/entities/UserMemberships.js.map +1 -1
- package/dist/lib/pulse-client.d.ts +31 -31
- package/dist/lib/pulse-client.js +49 -49
- package/dist/lib/pulse-client.js.map +1 -1
- package/dist/lib/services/sysAccountsService.d.ts +1 -1
- package/dist/lib/services/sysRulesService.d.ts +1 -1
- package/dist/lib/services/sysUsersService.d.ts +1 -1
- package/dist/lib/services/usrAlertsService.d.ts +9 -9
- package/dist/lib/services/usrDevicesService.d.ts +8 -8
- package/dist/lib/services/usrEventsService.d.ts +6 -6
- package/dist/lib/services/usrReportsService.d.ts +1 -1
- package/dist/lib/services/usrRulesService.d.ts +1 -1
- package/dist/lib/services/usrUserService.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,11 @@ This is a native typescript with no Angular dependency
|
|
|
7
7
|
TypeScript Client Library for pulse-api based on pure TypeScript and [axios](https://axios-http.com/)
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
|
-
|
|
10
|
+
Install package using npm
|
|
11
|
+
|
|
12
|
+
```javascript
|
|
13
|
+
npm install @shieldiot/pulse-lib
|
|
14
|
+
```
|
|
11
15
|
|
|
12
16
|
## Usage
|
|
13
17
|
Consume PulseIoT API services from the client library.
|
|
@@ -15,11 +19,33 @@ To use this library, one must add the following HTTP headers to any request:
|
|
|
15
19
|
* X-API-KEY - API provided by ShieldIoT to identify the integrated system
|
|
16
20
|
* X-ACCESS-TOKEN - Security token to identify the user/service
|
|
17
21
|
|
|
18
|
-
|
|
22
|
+
This attributes can be injected directly to the `PulseClient` constructor but the secured way is to inject these headers in the backend side.
|
|
19
23
|
|
|
24
|
+
#### Example: create client and service instance
|
|
25
|
+
Create a client library instance, inject the backend API URL, API key and access token
|
|
26
|
+
From the client library instance, create a service using the factory method
|
|
20
27
|
```javascript
|
|
21
|
-
import PulseClient from "@shieldiot/pulse-lib";
|
|
28
|
+
import { PulseClient, LoginParams } from "@shieldiot/pulse-lib";
|
|
29
|
+
|
|
30
|
+
function authorize(): void {
|
|
22
31
|
|
|
23
|
-
|
|
32
|
+
let apiKey = "your_api_key";
|
|
33
|
+
let token = "user_or_service_access_token";
|
|
34
|
+
let client = new PulseClient("https://api.pulseiot.io/v1", apiKey, token);
|
|
24
35
|
|
|
36
|
+
let lp = new LoginParams("user@email.com");
|
|
37
|
+
|
|
38
|
+
// Create UserServices
|
|
39
|
+
let service = client.CreateUsrUserService();
|
|
40
|
+
|
|
41
|
+
// Invoke service method
|
|
42
|
+
service.authorize(lp).subscribe({
|
|
43
|
+
next: (res) => console.log(res),
|
|
44
|
+
error: (err) => console.error(err)
|
|
45
|
+
});
|
|
46
|
+
console.log('Completed');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
test();
|
|
25
50
|
```
|
|
51
|
+
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { StringKeyValue } from '../common';
|
|
2
1
|
import { AccountSettings } from '../entities';
|
|
3
2
|
import { BaseEntity } from '../base';
|
|
4
3
|
import { AccountTypeCode } from '../enums';
|
|
5
4
|
import { AccountStatusCode } from '../enums';
|
|
6
5
|
import { FeatureCode } from '../enums';
|
|
6
|
+
import { StringKeyValue } from '../common';
|
|
7
7
|
export declare class AccountDTO extends BaseEntity {
|
|
8
8
|
name: string;
|
|
9
9
|
externalId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountDTO.js","sourceRoot":"","sources":["../../../src/lib/entities/AccountDTO.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccountDTO.js","sourceRoot":"","sources":["../../../src/lib/entities/AccountDTO.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAQrC,kDAAkD;AAClD,MAAM,OAAO,UAAW,SAAQ,UAAU;IAEtC,gBAAgB;IACT,IAAI,CAAS;IAEpB,0FAA0F;IACnF,UAAU,CAAS;IAE1B,uBAAuB;IAChB,WAAW,CAAS;IAE3B,+DAA+D;IACxD,IAAI,CAAkB;IAE7B,kDAAkD;IAC3C,MAAM,CAAoB;IAEjC,0DAA0D;IACnD,MAAM,CAAW;IAExB,4CAA4C;IACrC,QAAQ,CAAgB;IAE/B,gGAAgG;IACzF,SAAS,CAAS;IAEzB,gCAAgC;IACzB,IAAI,CAAW;IAEtB,+CAA+C;IACxC,MAAM,CAAmB;IAEhC,+BAA+B;IACxB,QAAQ,CAAkB;CAGpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../src/lib/entities/Action.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../src/lib/entities/Action.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,+DAA+D;AAC/D,MAAM,OAAO,MAAO,SAAQ,UAAU;IAElC,cAAc;IACP,SAAS,CAAS;IAEzB,aAAa;IACN,QAAQ,CAAS;IAExB,qDAAqD;IAC9C,OAAO,CAAS;IAEvB,sDAAsD;IAC/C,QAAQ,CAAS;IAExB,8DAA8D;IACvD,MAAM,CAAmB;IAEhC,kCAAkC;IAC3B,MAAM,CAAS;CAGzB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { EventTypeCode } from '../enums';
|
|
2
|
-
import { SeverityTypeCode } from '../enums';
|
|
3
|
-
import { RuleTypeCode } from '../enums';
|
|
4
1
|
import { GeoData } from '../common';
|
|
5
|
-
import { BaseEntity } from '../base';
|
|
6
|
-
import { EventStatusCode } from '../enums';
|
|
7
|
-
import { StringKeyValue } from '../common';
|
|
8
2
|
import { EventCategoryCode } from '../enums';
|
|
9
3
|
import { TrafficDirectionCode } from '../enums';
|
|
4
|
+
import { RuleTypeCode } from '../enums';
|
|
5
|
+
import { SeverityTypeCode } from '../enums';
|
|
6
|
+
import { EventStatusCode } from '../enums';
|
|
7
|
+
import { StringKeyValue } from '../common';
|
|
8
|
+
import { BaseEntity } from '../base';
|
|
9
|
+
import { EventTypeCode } from '../enums';
|
|
10
10
|
export declare class Alert extends BaseEntity {
|
|
11
11
|
accountId: string;
|
|
12
12
|
streamId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../src/lib/entities/Alert.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../src/lib/entities/Alert.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKrC,qBAAqB;AACrB,sMAAsM;AACtM,qNAAqN;AACrN,kNAAkN;AAClN,MAAM,OAAO,KAAM,SAAQ,UAAU;IAEjC,cAAc;IACP,SAAS,CAAS;IAEzB,aAAa;IACN,QAAQ,CAAS;IAExB,aAAa;IACN,QAAQ,CAAS;IAExB,oDAAoD;IAC7C,SAAS,CAAS;IAEzB,kDAAkD;IAC3C,OAAO,CAAS;IAEvB,sEAAsE;IAC/D,IAAI,CAAgB;IAE3B,oEAAoE;IAC7D,QAAQ,CAAmB;IAElC,gCAAgC;IACzB,KAAK,CAAS;IAErB,6CAA6C;IACtC,WAAW,CAAS;IAE3B,qDAAqD;IAC9C,MAAM,CAAkB;IAE/B,2DAA2D;IACpD,QAAQ,CAAe;IAE9B,wEAAwE;IACjE,MAAM,CAAS;IAEtB,uEAAuE;IAChE,QAAQ,CAAS;IAExB,iEAAiE;IAC1D,QAAQ,CAAS;IAExB,+CAA+C;IACxC,cAAc,CAAU;IAE/B,qBAAqB;IACd,WAAW,CAAS;IAE3B,yBAAyB;IAClB,IAAI,CAAW;IAEtB,+CAA+C;IACxC,MAAM,CAAmB;IAEhC,kBAAkB;IACX,QAAQ,CAAoB;IAEnC,yDAAyD;IAClD,iBAAiB,CAAS;IAEjC,qEAAqE;IAC9D,gBAAgB,CAAuB;IAE9C,2EAA2E;IACpE,eAAe,CAAS;IAE/B,2BAA2B;IACpB,gBAAgB,CAAU;CAGpC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { EventTypeCode } from '../enums';
|
|
2
1
|
import { SeverityTypeCode } from '../enums';
|
|
3
2
|
import { GeoData } from '../common';
|
|
4
|
-
import { StringKeyValue } from '../common';
|
|
5
3
|
import { TrafficDirectionCode } from '../enums';
|
|
4
|
+
import { EventCategoryCode } from '../enums';
|
|
5
|
+
import { Device } from '../entities';
|
|
6
6
|
import { BaseEntity } from '../base';
|
|
7
|
+
import { EventTypeCode } from '../enums';
|
|
7
8
|
import { EventStatusCode } from '../enums';
|
|
8
9
|
import { RuleTypeCode } from '../enums';
|
|
9
|
-
import {
|
|
10
|
-
import { Device } from '../entities';
|
|
10
|
+
import { StringKeyValue } from '../common';
|
|
11
11
|
export declare class AlertWithDevice extends BaseEntity {
|
|
12
12
|
accountId: string;
|
|
13
13
|
streamId: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DeviceActionCode } from '../enums';
|
|
2
|
-
import { SIM } from '../entities';
|
|
3
|
-
import { BaseEntity } from '../base';
|
|
4
1
|
import { DeviceTypeCode } from '../enums';
|
|
5
2
|
import { DeviceStatusCode } from '../enums';
|
|
6
3
|
import { StringKeyValue } from '../common';
|
|
4
|
+
import { DeviceActionCode } from '../enums';
|
|
5
|
+
import { SIM } from '../entities';
|
|
6
|
+
import { BaseEntity } from '../base';
|
|
7
7
|
export declare class Device extends BaseEntity {
|
|
8
8
|
accountId: string;
|
|
9
9
|
streamId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Device.js","sourceRoot":"","sources":["../../../src/lib/entities/Device.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Device.js","sourceRoot":"","sources":["../../../src/lib/entities/Device.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,0EAA0E;AAC1E,MAAM,OAAO,MAAO,SAAQ,UAAU;IAElC,cAAc;IACP,SAAS,CAAS;IAEzB,aAAa;IACN,QAAQ,CAAS;IAExB,qEAAqE;IAC9D,UAAU,CAAS;IAE1B,eAAe;IACR,IAAI,CAAS;IAEpB,sBAAsB;IACf,WAAW,CAAS;IAE3B,gBAAgB;IACT,OAAO,CAAS;IAEvB,gCAAgC;IACzB,QAAQ,CAAS;IAExB,4DAA4D;IACrD,IAAI,CAAiB;IAE5B,uEAAuE;IAChE,MAAM,CAAmB;IAEhC,iEAAiE;IAC1D,YAAY,CAAS;IAE5B,sBAAsB;IACf,GAAG,CAAS;IAEnB,oCAAoC;IAC7B,EAAE,CAAS;IAElB,qDAAqD;IAC9C,GAAG,CAAS;IAEnB,mDAAmD;IAC5C,GAAG,CAAS;IAEnB,iCAAiC;IAC1B,KAAK,CAAS;IAErB,uBAAuB;IAChB,IAAI,CAAW;IAEtB,uCAAuC;IAChC,MAAM,CAAmB;IAEhC,2DAA2D;IACpD,UAAU,CAAS;IAE1B,gCAAgC;IACzB,aAAa,CAAmB;IAEvC,oCAAoC;IAC7B,eAAe,CAAS;IAE/B,0DAA0D;IACnD,eAAe,CAAS;IAE/B,gDAAgD;IACzC,QAAQ,CAAQ;CAG1B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { DeviceActionCode } from '../enums';
|
|
2
|
+
import { SIM } from '../entities';
|
|
3
|
+
import { Event } from '../entities';
|
|
1
4
|
import { BaseEntity } from '../base';
|
|
2
5
|
import { DeviceTypeCode } from '../enums';
|
|
3
6
|
import { DeviceStatusCode } from '../enums';
|
|
4
7
|
import { StringKeyValue } from '../common';
|
|
5
|
-
import { DeviceActionCode } from '../enums';
|
|
6
|
-
import { SIM } from '../entities';
|
|
7
|
-
import { Event } from '../entities';
|
|
8
8
|
export declare class DeviceWithEvents extends BaseEntity {
|
|
9
9
|
accountId: string;
|
|
10
10
|
streamId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceWithEvents.js","sourceRoot":"","sources":["../../../src/lib/entities/DeviceWithEvents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeviceWithEvents.js","sourceRoot":"","sources":["../../../src/lib/entities/DeviceWithEvents.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAOrC,iFAAiF;AACjF,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAE5C,cAAc;IACP,SAAS,CAAS;IAEzB,aAAa;IACN,QAAQ,CAAS;IAExB,wEAAwE;IACjE,UAAU,CAAS;IAE1B,eAAe;IACR,IAAI,CAAS;IAEpB,sBAAsB;IACf,WAAW,CAAS;IAE3B,gBAAgB;IACT,OAAO,CAAS;IAEvB,gCAAgC;IACzB,QAAQ,CAAS;IAExB,4DAA4D;IACrD,IAAI,CAAiB;IAE5B,uEAAuE;IAChE,MAAM,CAAmB;IAEhC,iEAAiE;IAC1D,YAAY,CAAS;IAE5B,sBAAsB;IACf,GAAG,CAAS;IAEnB,oCAAoC;IAC7B,EAAE,CAAS;IAElB,qDAAqD;IAC9C,GAAG,CAAS;IAEnB,mDAAmD;IAC5C,GAAG,CAAS;IAEnB,iCAAiC;IAC1B,KAAK,CAAS;IAErB,uBAAuB;IAChB,IAAI,CAAW;IAEtB,uCAAuC;IAChC,MAAM,CAAmB;IAEhC,2DAA2D;IACpD,UAAU,CAAS;IAE1B,gCAAgC;IACzB,aAAa,CAAmB;IAEvC,oCAAoC;IAC7B,eAAe,CAAS;IAE/B,0DAA0D;IACnD,eAAe,CAAS;IAE/B,gDAAgD;IACzC,QAAQ,CAAQ;IAEvB,sBAAsB;IACf,MAAM,CAAU;CAG1B"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TrafficDirectionCode } from '../enums';
|
|
2
|
+
import { SeverityTypeCode } from '../enums';
|
|
3
|
+
import { Indicator } from '../common';
|
|
2
4
|
import { GeoData } from '../common';
|
|
5
|
+
import { StringKeyValue } from '../common';
|
|
3
6
|
import { EventOccurrence } from '../entities';
|
|
4
|
-
import {
|
|
7
|
+
import { EventTypeCode } from '../enums';
|
|
5
8
|
import { EventStatusCode } from '../enums';
|
|
6
|
-
import {
|
|
9
|
+
import { RuleTypeCode } from '../enums';
|
|
7
10
|
import { EventCategoryCode } from '../enums';
|
|
8
|
-
import { TrafficDirectionCode } from '../enums';
|
|
9
11
|
import { BaseEntity } from '../base';
|
|
10
|
-
import { EventTypeCode } from '../enums';
|
|
11
|
-
import { Indicator } from '../common';
|
|
12
12
|
export declare class Event extends BaseEntity {
|
|
13
13
|
accountId: string;
|
|
14
14
|
streamId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../../src/lib/entities/Event.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../../src/lib/entities/Event.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,eAAe;AACf,8IAA8I;AAC9I,8HAA8H;AAC9H,MAAM,OAAO,KAAM,SAAQ,UAAU;IAEjC,cAAc;IACP,SAAS,CAAS;IAEzB,aAAa;IACN,QAAQ,CAAS;IAExB,aAAa;IACN,QAAQ,CAAS;IAExB,oDAAoD;IAC7C,SAAS,CAAS;IAEzB,kDAAkD;IAC3C,OAAO,CAAS;IAEvB,sEAAsE;IAC/D,IAAI,CAAgB;IAE3B,oEAAoE;IAC7D,QAAQ,CAAmB;IAElC,gCAAgC;IACzB,KAAK,CAAS;IAErB,6CAA6C;IACtC,WAAW,CAAS;IAE3B,qDAAqD;IAC9C,MAAM,CAAkB;IAE/B,4BAA4B;IACrB,UAAU,CAAc;IAE/B,2DAA2D;IACpD,QAAQ,CAAe;IAE9B,wEAAwE;IACjE,MAAM,CAAS;IAEtB,uEAAuE;IAChE,QAAQ,CAAS;IAExB,iEAAiE;IAC1D,QAAQ,CAAS;IAExB,+CAA+C;IACxC,cAAc,CAAU;IAE/B,qBAAqB;IACd,WAAW,CAAS;IAE3B,yBAAyB;IAClB,IAAI,CAAW;IAEtB,+CAA+C;IACxC,MAAM,CAAmB;IAEhC,kBAAkB;IACX,QAAQ,CAAoB;IAEnC,yDAAyD;IAClD,iBAAiB,CAAS;IAEjC,2DAA2D;IACpD,WAAW,CAAoB;IAEtC,qEAAqE;IAC9D,gBAAgB,CAAuB;IAE9C,2EAA2E;IACpE,eAAe,CAAS;IAE/B,2BAA2B;IACpB,gBAAgB,CAAU;CAGpC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { SeverityTypeCode } from '../enums';
|
|
1
2
|
import { EventStatusCode } from '../enums';
|
|
3
|
+
import { Indicator } from '../common';
|
|
4
|
+
import { GeoData } from '../common';
|
|
2
5
|
import { StringKeyValue } from '../common';
|
|
3
6
|
import { EventCategoryCode } from '../enums';
|
|
4
|
-
import {
|
|
7
|
+
import { TrafficDirectionCode } from '../enums';
|
|
8
|
+
import { Device } from '../entities';
|
|
5
9
|
import { EventTypeCode } from '../enums';
|
|
6
|
-
import { SeverityTypeCode } from '../enums';
|
|
7
|
-
import { Indicator } from '../common';
|
|
8
10
|
import { RuleTypeCode } from '../enums';
|
|
9
|
-
import { GeoData } from '../common';
|
|
10
11
|
import { EventOccurrence } from '../entities';
|
|
11
|
-
import {
|
|
12
|
-
import { Device } from '../entities';
|
|
12
|
+
import { BaseEntity } from '../base';
|
|
13
13
|
export declare class EventWithDevice extends BaseEntity {
|
|
14
14
|
accountId: string;
|
|
15
15
|
streamId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventWithDevice.js","sourceRoot":"","sources":["../../../src/lib/entities/EventWithDevice.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EventWithDevice.js","sourceRoot":"","sources":["../../../src/lib/entities/EventWithDevice.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,oFAAoF;AACpF,MAAM,OAAO,eAAgB,SAAQ,UAAU;IAE3C,cAAc;IACP,SAAS,CAAS;IAEzB,aAAa;IACN,QAAQ,CAAS;IAExB,aAAa;IACN,QAAQ,CAAS;IAExB,oDAAoD;IAC7C,SAAS,CAAS;IAEzB,kDAAkD;IAC3C,OAAO,CAAS;IAEvB,sEAAsE;IAC/D,IAAI,CAAgB;IAE3B,oEAAoE;IAC7D,QAAQ,CAAmB;IAElC,gCAAgC;IACzB,KAAK,CAAS;IAErB,6CAA6C;IACtC,WAAW,CAAS;IAE3B,qDAAqD;IAC9C,MAAM,CAAkB;IAE/B,4BAA4B;IACrB,UAAU,CAAc;IAE/B,oBAAoB;IACb,QAAQ,CAAe;IAE9B,kBAAkB;IACX,MAAM,CAAS;IAEtB,iEAAiE;IAC1D,QAAQ,CAAS;IAExB,+CAA+C;IACxC,cAAc,CAAU;IAE/B,qBAAqB;IACd,WAAW,CAAS;IAE3B,yBAAyB;IAClB,IAAI,CAAW;IAEtB,+CAA+C;IACxC,MAAM,CAAmB;IAEhC,kBAAkB;IACX,QAAQ,CAAoB;IAEnC,yDAAyD;IAClD,iBAAiB,CAAS;IAEjC,2DAA2D;IACpD,WAAW,CAAoB;IAEtC,qEAAqE;IAC9D,gBAAgB,CAAuB;IAE9C,2EAA2E;IACpE,eAAe,CAAS;IAE/B,2BAA2B;IACpB,gBAAgB,CAAU;IAEjC,gCAAgC;IACzB,MAAM,CAAS;CAGzB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { DeviceActionCode } from '../enums';
|
|
2
|
-
import { BaseEntity } from '../base';
|
|
3
1
|
import { IntegrationTypeCode } from '../enums';
|
|
4
2
|
import { IntegrationTriggerCode } from '../enums';
|
|
5
3
|
import { HttpMethodCode } from '../enums';
|
|
6
4
|
import { StringKeyValue } from '../common';
|
|
7
5
|
import { EventTypeCode } from '../enums';
|
|
8
6
|
import { SeverityTypeCode } from '../enums';
|
|
7
|
+
import { DeviceActionCode } from '../enums';
|
|
8
|
+
import { BaseEntity } from '../base';
|
|
9
9
|
export declare class Integration extends BaseEntity {
|
|
10
10
|
accountId: string;
|
|
11
11
|
streamId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Integration.js","sourceRoot":"","sources":["../../../src/lib/entities/Integration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Integration.js","sourceRoot":"","sources":["../../../src/lib/entities/Integration.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,6BAA6B;AAC7B,MAAM,OAAO,WAAY,SAAQ,UAAU;IAEvC,cAAc;IACP,SAAS,CAAS;IAEzB,+DAA+D;IACxD,QAAQ,CAAS;IAExB,8CAA8C;IACvC,IAAI,CAAsB;IAEjC,4CAA4C;IACrC,OAAO,CAAyB;IAEvC,oBAAoB;IACb,IAAI,CAAS;IAEpB,0BAA0B;IACnB,OAAO,CAAU;IAExB,0DAA0D;IACnD,IAAI,CAAS;IAEpB,8CAA8C;IACvC,IAAI,CAAS;IAEpB,uCAAuC;IAChC,IAAI,CAAS;IAEpB,2CAA2C;IACpC,QAAQ,CAAS;IAExB,gEAAgE;IACzD,GAAG,CAAS;IAEnB,iGAAiG;IAC1F,MAAM,CAAiB;IAE9B,+DAA+D;IACxD,OAAO,CAAmB;IAEjC,6BAA6B;IACtB,QAAQ,CAAS;IAExB,0CAA0C;IACnC,UAAU,CAAW;IAE5B,gDAAgD;IACzC,OAAO,CAAS;IAEvB,yBAAyB;IAClB,IAAI,CAAS;IAEpB,kEAAkE;IAC3D,IAAI,CAAS;IAEpB,uGAAuG;IAChG,UAAU,CAAkB;IAEnC,uEAAuE;IAChE,aAAa,CAAmB;IAEvC,mFAAmF;IAC5E,gBAAgB,CAAmB;CAG7C"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { Condition } from '../entities';
|
|
2
|
+
import { DeviceTypeCode } from '../enums';
|
|
3
|
+
import { EventTypeCode } from '../enums';
|
|
1
4
|
import { SeverityTypeCode } from '../enums';
|
|
2
5
|
import { BaseEntity } from '../base';
|
|
3
6
|
import { RuleTypeCode } from '../enums';
|
|
4
7
|
import { DataSourceCode } from '../enums';
|
|
5
|
-
import { Condition } from '../entities';
|
|
6
|
-
import { DeviceTypeCode } from '../enums';
|
|
7
|
-
import { EventTypeCode } from '../enums';
|
|
8
8
|
export declare class Rule extends BaseEntity {
|
|
9
9
|
accountId: string;
|
|
10
10
|
streamId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../src/lib/entities/Rule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../src/lib/entities/Rule.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAMrC,gCAAgC;AAChC,MAAM,OAAO,IAAK,SAAQ,UAAU;IAEhC,cAAc;IACP,SAAS,CAAS;IAEzB,aAAa;IACN,QAAQ,CAAS;IAExB,aAAa;IACN,IAAI,CAAS;IAEpB,aAAa;IACN,IAAI,CAAe;IAE1B,oBAAoB;IACb,WAAW,CAAS;IAE3B,8EAA8E;IACvE,YAAY,CAAU;IAE7B,wGAAwG;IACjG,YAAY,CAAU;IAE7B,kEAAkE;IAC3D,OAAO,CAAiB;IAE/B,kFAAkF;IAC3E,QAAQ,CAAc;IAE7B,2FAA2F;IACpF,QAAQ,CAAc;IAE7B,iDAAiD;IAC1C,UAAU,CAAW;IAE5B,mDAAmD;IAC5C,WAAW,CAAW;IAE7B,kCAAkC;IAC3B,YAAY,CAAmB;IAEtC,+DAA+D;IACxD,aAAa,CAAS;IAE7B,uDAAuD;IAChD,YAAY,CAAgB;IAEnC,2DAA2D;IACpD,gBAAgB,CAAmB;CAG7C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { DeviceConfig } from '../common';
|
|
2
|
+
import { BaseEntity } from '../base';
|
|
1
3
|
import { Thresholds } from '../common';
|
|
2
4
|
import { ShieldexConfig } from '../common';
|
|
3
5
|
import { EventSeverityConfig } from '../common';
|
|
4
|
-
import { DeviceConfig } from '../common';
|
|
5
|
-
import { BaseEntity } from '../base';
|
|
6
6
|
export declare class StreamAnalyticsConfig extends BaseEntity {
|
|
7
7
|
accountId: string;
|
|
8
8
|
thresholds: Thresholds;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StreamAnalyticsConfig.js","sourceRoot":"","sources":["../../../src/lib/entities/StreamAnalyticsConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StreamAnalyticsConfig.js","sourceRoot":"","sources":["../../../src/lib/entities/StreamAnalyticsConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAOrC,0EAA0E;AAC1E,MAAM,OAAO,qBAAsB,SAAQ,UAAU;IAEjD,cAAc;IACP,SAAS,CAAS;IAEzB,0CAA0C;IACnC,UAAU,CAAa;IAE9B,wCAAwC;IACjC,cAAc,CAAiB;IAEtC,uCAAuC;IAChC,mBAAmB,CAAsB;IAEhD,wCAAwC;IACjC,YAAY,CAAe;CAGrC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StringKeyValue } from '../common';
|
|
2
|
-
import { BaseEntity } from '../base';
|
|
3
1
|
import { UserTypeCode } from '../enums';
|
|
4
2
|
import { UserStatusCode } from '../enums';
|
|
3
|
+
import { StringKeyValue } from '../common';
|
|
4
|
+
import { BaseEntity } from '../base';
|
|
5
5
|
export declare class User extends BaseEntity {
|
|
6
6
|
name: string;
|
|
7
7
|
externalId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../src/lib/entities/User.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../src/lib/entities/User.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,sGAAsG;AACtG,+DAA+D;AAC/D,MAAM,OAAO,IAAK,SAAQ,UAAU;IAEhC,aAAa;IACN,IAAI,CAAS;IAEpB,uFAAuF;IAChF,UAAU,CAAS;IAE1B,cAAc;IACP,KAAK,CAAS;IAErB,8DAA8D;IACvD,MAAM,CAAS;IAEtB,oDAAoD;IAC7C,IAAI,CAAe;IAE1B,mEAAmE;IAC5D,MAAM,CAAiB;IAE9B,sBAAsB;IACf,cAAc,CAAS;IAE9B,4EAA4E;IACrE,UAAU,CAAS;IAE1B,+CAA+C;IACxC,MAAM,CAAmB;IAEhC,6EAA6E;IACtE,MAAM,CAAS;CAGzB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseEntity } from '../base';
|
|
2
1
|
import { UserTypeCode } from '../enums';
|
|
3
2
|
import { UserStatusCode } from '../enums';
|
|
4
3
|
import { AccountRole } from '../common';
|
|
4
|
+
import { BaseEntity } from '../base';
|
|
5
5
|
export declare class UserMembership extends BaseEntity {
|
|
6
6
|
name: string;
|
|
7
7
|
email: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserMembership.js","sourceRoot":"","sources":["../../../src/lib/entities/UserMembership.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserMembership.js","sourceRoot":"","sources":["../../../src/lib/entities/UserMembership.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,4EAA4E;AAC5E,MAAM,OAAO,cAAe,SAAQ,UAAU;IAE1C,aAAa;IACN,IAAI,CAAS;IAEpB,cAAc;IACP,KAAK,CAAS;IAErB,8DAA8D;IACvD,MAAM,CAAS;IAEtB,oDAAoD;IAC7C,IAAI,CAAe;IAE1B,mEAAmE;IAC5D,MAAM,CAAiB;IAE9B,sBAAsB;IACf,cAAc,CAAS;IAE9B,4EAA4E;IACrE,UAAU,CAAS;IAE1B,4BAA4B;IACrB,WAAW,CAAc;CAGnC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AccountRole } from '../common';
|
|
2
1
|
import { BaseEntity } from '../base';
|
|
3
2
|
import { UserTypeCode } from '../enums';
|
|
4
3
|
import { UserStatusCode } from '../enums';
|
|
4
|
+
import { AccountRole } from '../common';
|
|
5
5
|
export declare class UserMemberships extends BaseEntity {
|
|
6
6
|
name: string;
|
|
7
7
|
email: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserMemberships.js","sourceRoot":"","sources":["../../../src/lib/entities/UserMemberships.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserMemberships.js","sourceRoot":"","sources":["../../../src/lib/entities/UserMemberships.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAOrC,2EAA2E;AAC3E,MAAM,OAAO,eAAgB,SAAQ,UAAU;IAE3C,aAAa;IACN,IAAI,CAAS;IAEpB,cAAc;IACP,KAAK,CAAS;IAErB,8DAA8D;IACvD,MAAM,CAAS;IAEtB,oDAAoD;IAC7C,IAAI,CAAe;IAE1B,mEAAmE;IAC5D,MAAM,CAAiB;IAE9B,sBAAsB;IACf,cAAc,CAAS;IAE9B,4EAA4E;IACrE,UAAU,CAAS;IAE1B,sCAAsC;IAC/B,YAAY,CAAgB;CAGtC"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { PulseConfig } from "../config";
|
|
3
3
|
import { RestUtil } from "../utils";
|
|
4
|
-
import { UsrAlertsService } from "./services";
|
|
5
|
-
import { UsrDevicesService } from "./services";
|
|
6
|
-
import { UsrEventsService } from "./services";
|
|
7
|
-
import { UsrNetworkService } from "./services";
|
|
8
|
-
import { UsrReportsService } from "./services";
|
|
9
|
-
import { UsrRulesService } from "./services";
|
|
10
4
|
import { SupportStreamAnalyticsConfig } from "./services";
|
|
11
5
|
import { SysAccountsService } from "./services";
|
|
12
6
|
import { SysAuditLogService } from "./services";
|
|
@@ -26,34 +20,40 @@ import { UsrInsightsService } from "./services";
|
|
|
26
20
|
import { UsrIntegrationsService } from "./services";
|
|
27
21
|
import { UsrMembersService } from "./services";
|
|
28
22
|
import { UsrUserService } from "./services";
|
|
23
|
+
import { UsrAlertsService } from "./services";
|
|
24
|
+
import { UsrDevicesService } from "./services";
|
|
25
|
+
import { UsrEventsService } from "./services";
|
|
26
|
+
import { UsrNetworkService } from "./services";
|
|
27
|
+
import { UsrReportsService } from "./services";
|
|
28
|
+
import { UsrRulesService } from "./services";
|
|
29
29
|
export declare class PulseClient {
|
|
30
30
|
config: PulseConfig;
|
|
31
31
|
restSvc: RestUtil;
|
|
32
32
|
axiosInst: AxiosInstance;
|
|
33
33
|
constructor(apiUrl: string, apiKey: string, accessToken: string);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
34
|
+
CreateSupportStreamAnalyticsConfig(): SupportStreamAnalyticsConfig;
|
|
35
|
+
CreateSysAccountsService(): SysAccountsService;
|
|
36
|
+
CreateSysAuditLogService(): SysAuditLogService;
|
|
37
|
+
CreateSysCheckpointsService(): SysCheckpointsService;
|
|
38
|
+
CreateSysConfigService(): SysConfigService;
|
|
39
|
+
CreateSysFeaturesService(): SysFeaturesService;
|
|
40
|
+
CreateSysGroupsService(): SysGroupsService;
|
|
41
|
+
CreateSysInsightsService(): SysInsightsService;
|
|
42
|
+
CreateSysKeysService(): SysKeysService;
|
|
43
|
+
CreateSysMembersService(): SysMembersService;
|
|
44
|
+
CreateSysRuleTemplatesService(): SysRuleTemplatesService;
|
|
45
|
+
CreateSysRulesService(): SysRulesService;
|
|
46
|
+
CreateSysStatisticsService(): SysStatisticsService;
|
|
47
|
+
CreateSysStreamsService(): SysStreamsService;
|
|
48
|
+
CreateSysUsersService(): SysUsersService;
|
|
49
|
+
CreateUsrInsightsService(): UsrInsightsService;
|
|
50
|
+
CreateUsrIntegrationsService(): UsrIntegrationsService;
|
|
51
|
+
CreateUsrMembersService(): UsrMembersService;
|
|
52
|
+
CreateUsrUserService(): UsrUserService;
|
|
53
|
+
CreateUsrAlertsService(): UsrAlertsService;
|
|
54
|
+
CreateUsrDevicesService(): UsrDevicesService;
|
|
55
|
+
CreateUsrEventsService(): UsrEventsService;
|
|
56
|
+
CreateUsrNetworkService(): UsrNetworkService;
|
|
57
|
+
CreateUsrReportsService(): UsrReportsService;
|
|
58
|
+
CreateUsrRulesService(): UsrRulesService;
|
|
59
59
|
}
|
package/dist/lib/pulse-client.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import { PulseConfig } from "../config";
|
|
3
3
|
import { RestUtil } from "../utils";
|
|
4
|
-
import { UsrAlertsService } from "./services";
|
|
5
|
-
import { UsrDevicesService } from "./services";
|
|
6
|
-
import { UsrEventsService } from "./services";
|
|
7
|
-
import { UsrNetworkService } from "./services";
|
|
8
|
-
import { UsrReportsService } from "./services";
|
|
9
|
-
import { UsrRulesService } from "./services";
|
|
10
4
|
import { SupportStreamAnalyticsConfig } from "./services";
|
|
11
5
|
import { SysAccountsService } from "./services";
|
|
12
6
|
import { SysAuditLogService } from "./services";
|
|
@@ -26,6 +20,12 @@ import { UsrInsightsService } from "./services";
|
|
|
26
20
|
import { UsrIntegrationsService } from "./services";
|
|
27
21
|
import { UsrMembersService } from "./services";
|
|
28
22
|
import { UsrUserService } from "./services";
|
|
23
|
+
import { UsrAlertsService } from "./services";
|
|
24
|
+
import { UsrDevicesService } from "./services";
|
|
25
|
+
import { UsrEventsService } from "./services";
|
|
26
|
+
import { UsrNetworkService } from "./services";
|
|
27
|
+
import { UsrReportsService } from "./services";
|
|
28
|
+
import { UsrRulesService } from "./services";
|
|
29
29
|
// PulseClient is the main entry point of the client library.
|
|
30
30
|
// Create a single global instance of PulseClient in your application and use
|
|
31
31
|
// Factory methods to get service endpoints
|
|
@@ -52,105 +52,105 @@ export class PulseClient {
|
|
|
52
52
|
this.axiosInst = axios.create(axiosRequestConfiguration);
|
|
53
53
|
this.restSvc = new RestUtil(this.axiosInst);
|
|
54
54
|
}
|
|
55
|
-
// Factory method for UsrAlertsService
|
|
56
|
-
UsrAlertsService() {
|
|
57
|
-
return new UsrAlertsService(this.config, this.restSvc);
|
|
58
|
-
}
|
|
59
|
-
// Factory method for UsrDevicesService
|
|
60
|
-
UsrDevicesService() {
|
|
61
|
-
return new UsrDevicesService(this.config, this.restSvc);
|
|
62
|
-
}
|
|
63
|
-
// Factory method for UsrEventsService
|
|
64
|
-
UsrEventsService() {
|
|
65
|
-
return new UsrEventsService(this.config, this.restSvc);
|
|
66
|
-
}
|
|
67
|
-
// Factory method for UsrNetworkService
|
|
68
|
-
UsrNetworkService() {
|
|
69
|
-
return new UsrNetworkService(this.config, this.restSvc);
|
|
70
|
-
}
|
|
71
|
-
// Factory method for UsrReportsService
|
|
72
|
-
UsrReportsService() {
|
|
73
|
-
return new UsrReportsService(this.config, this.restSvc);
|
|
74
|
-
}
|
|
75
|
-
// Factory method for UsrRulesService
|
|
76
|
-
UsrRulesService() {
|
|
77
|
-
return new UsrRulesService(this.config, this.restSvc);
|
|
78
|
-
}
|
|
79
55
|
// Factory method for SupportStreamAnalyticsConfig
|
|
80
|
-
|
|
56
|
+
CreateSupportStreamAnalyticsConfig() {
|
|
81
57
|
return new SupportStreamAnalyticsConfig(this.config, this.restSvc);
|
|
82
58
|
}
|
|
83
59
|
// Factory method for SysAccountsService
|
|
84
|
-
|
|
60
|
+
CreateSysAccountsService() {
|
|
85
61
|
return new SysAccountsService(this.config, this.restSvc);
|
|
86
62
|
}
|
|
87
63
|
// Factory method for SysAuditLogService
|
|
88
|
-
|
|
64
|
+
CreateSysAuditLogService() {
|
|
89
65
|
return new SysAuditLogService(this.config, this.restSvc);
|
|
90
66
|
}
|
|
91
67
|
// Factory method for SysCheckpointsService
|
|
92
|
-
|
|
68
|
+
CreateSysCheckpointsService() {
|
|
93
69
|
return new SysCheckpointsService(this.config, this.restSvc);
|
|
94
70
|
}
|
|
95
71
|
// Factory method for SysConfigService
|
|
96
|
-
|
|
72
|
+
CreateSysConfigService() {
|
|
97
73
|
return new SysConfigService(this.config, this.restSvc);
|
|
98
74
|
}
|
|
99
75
|
// Factory method for SysFeaturesService
|
|
100
|
-
|
|
76
|
+
CreateSysFeaturesService() {
|
|
101
77
|
return new SysFeaturesService(this.config, this.restSvc);
|
|
102
78
|
}
|
|
103
79
|
// Factory method for SysGroupsService
|
|
104
|
-
|
|
80
|
+
CreateSysGroupsService() {
|
|
105
81
|
return new SysGroupsService(this.config, this.restSvc);
|
|
106
82
|
}
|
|
107
83
|
// Factory method for SysInsightsService
|
|
108
|
-
|
|
84
|
+
CreateSysInsightsService() {
|
|
109
85
|
return new SysInsightsService(this.config, this.restSvc);
|
|
110
86
|
}
|
|
111
87
|
// Factory method for SysKeysService
|
|
112
|
-
|
|
88
|
+
CreateSysKeysService() {
|
|
113
89
|
return new SysKeysService(this.config, this.restSvc);
|
|
114
90
|
}
|
|
115
91
|
// Factory method for SysMembersService
|
|
116
|
-
|
|
92
|
+
CreateSysMembersService() {
|
|
117
93
|
return new SysMembersService(this.config, this.restSvc);
|
|
118
94
|
}
|
|
119
95
|
// Factory method for SysRuleTemplatesService
|
|
120
|
-
|
|
96
|
+
CreateSysRuleTemplatesService() {
|
|
121
97
|
return new SysRuleTemplatesService(this.config, this.restSvc);
|
|
122
98
|
}
|
|
123
99
|
// Factory method for SysRulesService
|
|
124
|
-
|
|
100
|
+
CreateSysRulesService() {
|
|
125
101
|
return new SysRulesService(this.config, this.restSvc);
|
|
126
102
|
}
|
|
127
103
|
// Factory method for SysStatisticsService
|
|
128
|
-
|
|
104
|
+
CreateSysStatisticsService() {
|
|
129
105
|
return new SysStatisticsService(this.config, this.restSvc);
|
|
130
106
|
}
|
|
131
107
|
// Factory method for SysStreamsService
|
|
132
|
-
|
|
108
|
+
CreateSysStreamsService() {
|
|
133
109
|
return new SysStreamsService(this.config, this.restSvc);
|
|
134
110
|
}
|
|
135
111
|
// Factory method for SysUsersService
|
|
136
|
-
|
|
112
|
+
CreateSysUsersService() {
|
|
137
113
|
return new SysUsersService(this.config, this.restSvc);
|
|
138
114
|
}
|
|
139
115
|
// Factory method for UsrInsightsService
|
|
140
|
-
|
|
116
|
+
CreateUsrInsightsService() {
|
|
141
117
|
return new UsrInsightsService(this.config, this.restSvc);
|
|
142
118
|
}
|
|
143
119
|
// Factory method for UsrIntegrationsService
|
|
144
|
-
|
|
120
|
+
CreateUsrIntegrationsService() {
|
|
145
121
|
return new UsrIntegrationsService(this.config, this.restSvc);
|
|
146
122
|
}
|
|
147
123
|
// Factory method for UsrMembersService
|
|
148
|
-
|
|
124
|
+
CreateUsrMembersService() {
|
|
149
125
|
return new UsrMembersService(this.config, this.restSvc);
|
|
150
126
|
}
|
|
151
127
|
// Factory method for UsrUserService
|
|
152
|
-
|
|
128
|
+
CreateUsrUserService() {
|
|
153
129
|
return new UsrUserService(this.config, this.restSvc);
|
|
154
130
|
}
|
|
131
|
+
// Factory method for UsrAlertsService
|
|
132
|
+
CreateUsrAlertsService() {
|
|
133
|
+
return new UsrAlertsService(this.config, this.restSvc);
|
|
134
|
+
}
|
|
135
|
+
// Factory method for UsrDevicesService
|
|
136
|
+
CreateUsrDevicesService() {
|
|
137
|
+
return new UsrDevicesService(this.config, this.restSvc);
|
|
138
|
+
}
|
|
139
|
+
// Factory method for UsrEventsService
|
|
140
|
+
CreateUsrEventsService() {
|
|
141
|
+
return new UsrEventsService(this.config, this.restSvc);
|
|
142
|
+
}
|
|
143
|
+
// Factory method for UsrNetworkService
|
|
144
|
+
CreateUsrNetworkService() {
|
|
145
|
+
return new UsrNetworkService(this.config, this.restSvc);
|
|
146
|
+
}
|
|
147
|
+
// Factory method for UsrReportsService
|
|
148
|
+
CreateUsrReportsService() {
|
|
149
|
+
return new UsrReportsService(this.config, this.restSvc);
|
|
150
|
+
}
|
|
151
|
+
// Factory method for UsrRulesService
|
|
152
|
+
CreateUsrRulesService() {
|
|
153
|
+
return new UsrRulesService(this.config, this.restSvc);
|
|
154
|
+
}
|
|
155
155
|
}
|
|
156
156
|
//# sourceMappingURL=pulse-client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pulse-client.js","sourceRoot":"","sources":["../../src/lib/pulse-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"pulse-client.js","sourceRoot":"","sources":["../../src/lib/pulse-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;A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AC1B,OAAO,IAAI,iBAAiB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,oCAAoC;IAC7B,oBAAoB;QACvB,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACzD,CAAC;IAED,sCAAsC;IAC/B,sBAAsB;QACzB,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,uCAAuC;IAChC,uBAAuB;QAC1B,OAAO,IAAI,iBAAiB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,sCAAsC;IAC/B,sBAAsB;QACzB,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,uCAAuC;IAChC,uBAAuB;QAC1B,OAAO,IAAI,iBAAiB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,uCAAuC;IAChC,uBAAuB;QAC1B,OAAO,IAAI,iBAAiB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,qCAAqC;IAC9B,qBAAqB;QACxB,OAAO,IAAI,eAAe,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1D,CAAC;CAGJ"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
2
|
import { PulseConfig } from '../../config';
|
|
3
|
+
import { Account } from '../entities';
|
|
3
4
|
import { AccountSettings } from '../entities';
|
|
4
5
|
import { AccountTypeCode } from '../enums';
|
|
5
6
|
import { AccountStatusCode } from '../enums';
|
|
6
7
|
import { Image } from '../entities';
|
|
7
|
-
import { Account } from '../entities';
|
|
8
8
|
export declare class SysAccountsService {
|
|
9
9
|
private config;
|
|
10
10
|
private rest;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
2
|
import { PulseConfig } from '../../config';
|
|
3
|
-
import { Rule } from '../entities';
|
|
4
3
|
import { TimeSeriesOfFloat } from '../common';
|
|
4
|
+
import { Rule } from '../entities';
|
|
5
5
|
export declare class SysRulesService {
|
|
6
6
|
private config;
|
|
7
7
|
private rest;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
2
|
import { PulseConfig } from '../../config';
|
|
3
|
-
import { User } from '../entities';
|
|
4
3
|
import { UserTypeCode } from '../enums';
|
|
5
4
|
import { UserStatusCode } from '../enums';
|
|
6
5
|
import { UserMemberships } from '../entities';
|
|
6
|
+
import { User } from '../entities';
|
|
7
7
|
export declare class SysUsersService {
|
|
8
8
|
private config;
|
|
9
9
|
private rest;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
2
|
import { PulseConfig } from '../../config';
|
|
3
|
+
import { SeverityTypeCode } from '../enums';
|
|
4
|
+
import { EventStatusCode } from '../enums';
|
|
5
|
+
import { AlertWithDevice } from '../entities';
|
|
6
|
+
import { MaliciousIPData } from '../common';
|
|
7
|
+
import { StringKeyValue } from '../common';
|
|
8
|
+
import { Alert } from '../entities';
|
|
3
9
|
import { RuleTypeCode } from '../enums';
|
|
4
10
|
import { IntDistribution } from '../entities';
|
|
5
|
-
import { DeviceActionCode } from '../enums';
|
|
6
11
|
import { TimeSeriesOf2D } from '../common';
|
|
7
|
-
import {
|
|
12
|
+
import { EventTypeCode } from '../enums';
|
|
13
|
+
import { MaliciousIPCard } from '../common';
|
|
8
14
|
import { EventCategoryCode } from '../enums';
|
|
15
|
+
import { DeviceActionCode } from '../enums';
|
|
9
16
|
import { TimeSeriesOfFloat } from '../common';
|
|
10
|
-
import { MaliciousIPCard } from '../common';
|
|
11
|
-
import { AlertWithDevice } from '../entities';
|
|
12
|
-
import { MaliciousIPData } from '../common';
|
|
13
|
-
import { Alert } from '../entities';
|
|
14
|
-
import { EventTypeCode } from '../enums';
|
|
15
|
-
import { SeverityTypeCode } from '../enums';
|
|
16
|
-
import { EventStatusCode } from '../enums';
|
|
17
17
|
export declare class UsrAlertsService {
|
|
18
18
|
private config;
|
|
19
19
|
private rest;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
2
|
import { PulseConfig } from '../../config';
|
|
3
|
-
import {
|
|
4
|
-
import { TimeSeriesOfDataConsumption } from '../common';
|
|
3
|
+
import { Device } from '../entities';
|
|
5
4
|
import { BulkDevices } from '../entities';
|
|
6
5
|
import { DeviceTypeCode } from '../enums';
|
|
7
|
-
import {
|
|
6
|
+
import { SeverityTypeCode } from '../enums';
|
|
7
|
+
import { IntDistribution } from '../entities';
|
|
8
8
|
import { DeviceActionCode } from '../enums';
|
|
9
|
-
import { NetworkMapTypeCode } from '../enums';
|
|
10
9
|
import { NetworkMap } from '../common';
|
|
11
|
-
import {
|
|
12
|
-
import { Device } from '../entities';
|
|
10
|
+
import { DeviceReport } from '../entities';
|
|
13
11
|
import { DeviceStatusCode } from '../enums';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
12
|
+
import { DeviceWithEvents } from '../entities';
|
|
13
|
+
import { NetworkMapTypeCode } from '../enums';
|
|
14
|
+
import { TimeSeriesOfDeviceReport } from '../entities';
|
|
15
|
+
import { TimeSeriesOfDataConsumption } from '../common';
|
|
16
16
|
export declare class UsrDevicesService {
|
|
17
17
|
private config;
|
|
18
18
|
private rest;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
2
|
import { PulseConfig } from '../../config';
|
|
3
|
+
import { IntDistribution } from '../entities';
|
|
4
|
+
import { TimeSeriesOf2D } from '../common';
|
|
5
|
+
import { EventTypeCode } from '../enums';
|
|
6
|
+
import { EventStatusCode } from '../enums';
|
|
3
7
|
import { EventCategoryCode } from '../enums';
|
|
8
|
+
import { RuleTypeCode } from '../enums';
|
|
4
9
|
import { EventWithDevice } from '../entities';
|
|
5
10
|
import { MaliciousIPData } from '../common';
|
|
6
|
-
import { IntDistribution } from '../entities';
|
|
7
11
|
import { TimeSeriesOfFloat } from '../common';
|
|
8
12
|
import { MaliciousIPCard } from '../common';
|
|
9
|
-
import {
|
|
13
|
+
import { Event } from '../entities';
|
|
10
14
|
import { SeverityTypeCode } from '../enums';
|
|
11
|
-
import { RuleTypeCode } from '../enums';
|
|
12
|
-
import { TimeSeriesOf2D } from '../common';
|
|
13
15
|
import { StringKeyValue } from '../common';
|
|
14
|
-
import { Event } from '../entities';
|
|
15
|
-
import { EventStatusCode } from '../enums';
|
|
16
16
|
export declare class UsrEventsService {
|
|
17
17
|
private config;
|
|
18
18
|
private rest;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
2
|
import { PulseConfig } from '../../config';
|
|
3
|
+
import { GraphSeries } from '../common';
|
|
3
4
|
import { Report } from '../entities';
|
|
4
5
|
import { TimeSeries } from '../common';
|
|
5
|
-
import { GraphSeries } from '../common';
|
|
6
6
|
export declare class UsrReportsService {
|
|
7
7
|
private config;
|
|
8
8
|
private rest;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
2
|
import { PulseConfig } from '../../config';
|
|
3
|
-
import { Rule } from '../entities';
|
|
4
3
|
import { TimeSeriesOfFloat } from '../common';
|
|
4
|
+
import { Rule } from '../entities';
|
|
5
5
|
export declare class UsrRulesService {
|
|
6
6
|
private config;
|
|
7
7
|
private rest;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
2
|
import { PulseConfig } from '../../config';
|
|
3
|
+
import { UserMemberships } from '../entities';
|
|
4
|
+
import { LoginParams } from '../common';
|
|
3
5
|
import { User } from '../entities';
|
|
4
6
|
import { AccountDTO } from '../entities';
|
|
5
7
|
import { Image } from '../entities';
|
|
6
8
|
import { Feature } from '../entities';
|
|
7
9
|
import { Stream } from '../entities';
|
|
8
|
-
import { UserMemberships } from '../entities';
|
|
9
|
-
import { LoginParams } from '../common';
|
|
10
10
|
export declare class UsrUserService {
|
|
11
11
|
private config;
|
|
12
12
|
private rest;
|