@shieldiot/pulse-lib 1.0.3 → 1.0.4
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/config.d.ts +5 -0
- package/dist/index.d.ts +2 -0
- package/dist/lib/common/AccountRole.d.ts +7 -0
- package/dist/lib/common/ConsumptionData.d.ts +6 -0
- package/dist/lib/common/ConsumptionTimeDataPoint.d.ts +6 -0
- package/dist/lib/common/DeviceConfig.d.ts +7 -0
- package/dist/lib/common/DeviceScoreConfig.d.ts +6 -0
- package/dist/lib/common/DevicesAtRiskConfig.d.ts +4 -0
- package/dist/lib/common/EventSeverityConfig.d.ts +5 -0
- package/dist/lib/common/FloatKeyValue.d.ts +5 -0
- package/dist/lib/common/GeoData.d.ts +10 -0
- package/dist/lib/common/GraphSeries.d.ts +6 -0
- package/dist/lib/common/Indicator.d.ts +8 -0
- package/dist/lib/common/IntKeySeriesDataValue.d.ts +6 -0
- package/dist/lib/common/IntKeyValue.d.ts +5 -0
- package/dist/lib/common/Interval.d.ts +5 -0
- package/dist/lib/common/Link.d.ts +11 -0
- package/dist/lib/common/Location.d.ts +5 -0
- package/dist/lib/common/LoginParams.d.ts +6 -0
- package/dist/lib/common/MaliciousIPCard.d.ts +12 -0
- package/dist/lib/common/MaliciousIPData.d.ts +7 -0
- package/dist/lib/common/NetworkMap.d.ts +7 -0
- package/dist/lib/common/Node.d.ts +15 -0
- package/dist/lib/common/SeriesData.d.ts +7 -0
- package/dist/lib/common/SessionTransform.d.ts +8 -0
- package/dist/lib/common/SeverityIntervalTuple.d.ts +7 -0
- package/dist/lib/common/ShieldexConfig.d.ts +9 -0
- package/dist/lib/common/StringIntValue.d.ts +5 -0
- package/dist/lib/common/StringKeyIntValue.d.ts +5 -0
- package/dist/lib/common/StringKeyValue.d.ts +5 -0
- package/dist/lib/common/Thresholds.d.ts +4 -0
- package/dist/lib/common/TimeDataPoint.d.ts +5 -0
- package/dist/lib/common/TimeDataPoint2D.d.ts +6 -0
- package/dist/lib/common/TimeDataPointFloat.d.ts +5 -0
- package/dist/lib/common/TimeFrame.d.ts +5 -0
- package/dist/lib/common/TimeSeries.d.ts +8 -0
- package/dist/lib/common/TimeSeriesOf2D.d.ts +8 -0
- package/dist/lib/common/TimeSeriesOfDataConsumption.d.ts +8 -0
- package/dist/lib/common/TimeSeriesOfFloat.d.ts +8 -0
- package/dist/lib/common/TokenData.d.ts +12 -0
- package/dist/lib/common/Tuple.d.ts +5 -0
- package/dist/lib/common/UsageTransform.d.ts +10 -0
- package/dist/lib/common/ZScore.d.ts +5 -0
- package/dist/lib/common/index.d.ts +42 -0
- package/dist/lib/entities/Account.d.ts +17 -0
- package/dist/lib/entities/AccountDTO.d.ts +19 -0
- package/dist/lib/entities/AccountSettings.d.ts +10 -0
- package/dist/lib/entities/Action.d.ts +10 -0
- package/dist/lib/entities/Alert.d.ts +34 -0
- package/dist/lib/entities/AlertWithDevice.d.ts +36 -0
- package/dist/lib/entities/ApiKey.d.ts +11 -0
- package/dist/lib/entities/AuditLog.d.ts +13 -0
- package/dist/lib/entities/BaseEntity.d.ts +6 -0
- package/dist/lib/entities/BulkDevices.d.ts +5 -0
- package/dist/lib/entities/Checkpoint.d.ts +23 -0
- package/dist/lib/entities/ComplianceReportSettings.d.ts +7 -0
- package/dist/lib/entities/Condition.d.ts +8 -0
- package/dist/lib/entities/ConfigParam.d.ts +4 -0
- package/dist/lib/entities/DNSRecord.d.ts +12 -0
- package/dist/lib/entities/DataIngestion.d.ts +18 -0
- package/dist/lib/entities/DataPointOfDeviceReport.d.ts +6 -0
- package/dist/lib/entities/Device.d.ts +30 -0
- package/dist/lib/entities/DeviceReport.d.ts +9 -0
- package/dist/lib/entities/DeviceWithEvents.d.ts +32 -0
- package/dist/lib/entities/Distribution.d.ts +7 -0
- package/dist/lib/entities/Event.d.ts +38 -0
- package/dist/lib/entities/EventOccurrence.d.ts +10 -0
- package/dist/lib/entities/EventWithDevice.d.ts +39 -0
- package/dist/lib/entities/Feature.d.ts +6 -0
- package/dist/lib/entities/FeaturesGroup.d.ts +6 -0
- package/dist/lib/entities/Group.d.ts +8 -0
- package/dist/lib/entities/Image.d.ts +5 -0
- package/dist/lib/entities/Insight.d.ts +18 -0
- package/dist/lib/entities/InsightQuery.d.ts +10 -0
- package/dist/lib/entities/InsightSpec.d.ts +9 -0
- package/dist/lib/entities/IntDistribution.d.ts +7 -0
- package/dist/lib/entities/Integration.d.ts +31 -0
- package/dist/lib/entities/Member.d.ts +7 -0
- package/dist/lib/entities/Radius.d.ts +15 -0
- package/dist/lib/entities/Report.d.ts +13 -0
- package/dist/lib/entities/Rule.d.ts +25 -0
- package/dist/lib/entities/RuleTemplate.d.ts +14 -0
- package/dist/lib/entities/SIM.d.ts +8 -0
- package/dist/lib/entities/ServiceStatus.d.ts +8 -0
- package/dist/lib/entities/SessionRecord.d.ts +22 -0
- package/dist/lib/entities/Shieldex.d.ts +7 -0
- package/dist/lib/entities/Stream.d.ts +11 -0
- package/dist/lib/entities/StreamAnalyticsConfig.d.ts +12 -0
- package/dist/lib/entities/StreamConfig.d.ts +19 -0
- package/dist/lib/entities/TeaserPopUpSettings.d.ts +6 -0
- package/dist/lib/entities/TimeSeriesOfDeviceReport.d.ts +8 -0
- package/dist/lib/entities/UsageRecord.d.ts +32 -0
- package/dist/lib/entities/User.d.ts +16 -0
- package/dist/lib/entities/UserMembership.d.ts +14 -0
- package/dist/lib/entities/UserMemberships.d.ts +14 -0
- package/dist/lib/entities/index.d.ts +52 -0
- package/dist/lib/enums/AccountStatusCode.d.ts +7 -0
- package/dist/lib/enums/AccountTypeCode.d.ts +8 -0
- package/dist/lib/enums/DataSourceCode.d.ts +7 -0
- package/dist/lib/enums/DeviceActionCode.d.ts +8 -0
- package/dist/lib/enums/DeviceCreationCode.d.ts +8 -0
- package/dist/lib/enums/DeviceIdentityCode.d.ts +11 -0
- package/dist/lib/enums/DeviceStatusCode.d.ts +8 -0
- package/dist/lib/enums/DeviceTypeCode.d.ts +18 -0
- package/dist/lib/enums/DirectionContextCode.d.ts +8 -0
- package/dist/lib/enums/EventCategoryCode.d.ts +6 -0
- package/dist/lib/enums/EventStatusCode.d.ts +8 -0
- package/dist/lib/enums/EventTypeCode.d.ts +23 -0
- package/dist/lib/enums/FeatureCode.d.ts +14 -0
- package/dist/lib/enums/HomePageViewCode.d.ts +7 -0
- package/dist/lib/enums/HttpMethodCode.d.ts +9 -0
- package/dist/lib/enums/InsightStatusCode.d.ts +7 -0
- package/dist/lib/enums/InsightTypeCode.d.ts +6 -0
- package/dist/lib/enums/IntegrationTriggerCode.d.ts +6 -0
- package/dist/lib/enums/IntegrationTypeCode.d.ts +8 -0
- package/dist/lib/enums/MemberRoleCode.d.ts +8 -0
- package/dist/lib/enums/NetworkMapTypeCode.d.ts +7 -0
- package/dist/lib/enums/OperatorCode.d.ts +15 -0
- package/dist/lib/enums/PermissionCode.d.ts +9 -0
- package/dist/lib/enums/ReportTypeCode.d.ts +7 -0
- package/dist/lib/enums/RuleTypeCode.d.ts +7 -0
- package/dist/lib/enums/SeverityTypeCode.d.ts +8 -0
- package/dist/lib/enums/TrafficDirectionCode.d.ts +7 -0
- package/dist/lib/enums/UserStatusCode.d.ts +8 -0
- package/dist/lib/enums/UserTypeCode.d.ts +8 -0
- package/dist/lib/enums/index.d.ts +30 -0
- package/dist/lib/index.d.ts +4 -0
- package/dist/lib/pulse-client.d.ts +59 -0
- package/dist/lib/services/index.d.ts +27 -0
- package/dist/lib/services/services.export.d.ts +26 -0
- package/dist/lib/services/supportStreamAnalyticsConfig.d.ts +29 -0
- package/dist/lib/services/sysAccountsService.d.ts +45 -0
- package/dist/lib/services/sysAuditLogService.d.ts +22 -0
- package/dist/lib/services/sysCheckpointsService.d.ts +22 -0
- package/dist/lib/services/sysConfigService.d.ts +29 -0
- package/dist/lib/services/sysFeaturesService.d.ts +34 -0
- package/dist/lib/services/sysGroupsService.d.ts +42 -0
- package/dist/lib/services/sysInsightsService.d.ts +54 -0
- package/dist/lib/services/sysKeysService.d.ts +34 -0
- package/dist/lib/services/sysMembersService.d.ts +30 -0
- package/dist/lib/services/sysRuleTemplatesService.d.ts +29 -0
- package/dist/lib/services/sysRulesService.d.ts +34 -0
- package/dist/lib/services/sysStatisticsService.d.ts +25 -0
- package/dist/lib/services/sysStreamsService.d.ts +29 -0
- package/dist/lib/services/sysUsersService.d.ts +44 -0
- package/dist/lib/services/usrAlertsService.d.ts +110 -0
- package/dist/lib/services/usrDevicesService.d.ts +109 -0
- package/dist/lib/services/usrEventsService.d.ts +93 -0
- package/dist/lib/services/usrInsightsService.d.ts +13 -0
- package/dist/lib/services/usrIntegrationsService.d.ts +37 -0
- package/dist/lib/services/usrMembersService.d.ts +34 -0
- package/dist/lib/services/usrNetworkService.d.ts +18 -0
- package/dist/lib/services/usrReportsService.d.ts +47 -0
- package/dist/lib/services/usrRulesService.d.ts +34 -0
- package/dist/lib/services/usrUserService.d.ts +65 -0
- package/dist/public-api.d.ts +3 -0
- package/dist/utils/ActionResponse.d.ts +5 -0
- package/dist/utils/BaseRestResponse.d.ts +4 -0
- package/dist/utils/EntitiesResponse.d.ts +8 -0
- package/dist/utils/EntityResponse.d.ts +8 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/rest-axios-setup.d.ts +3 -0
- package/dist/utils/rest-util.d.ts +15 -0
- package/package.json +1 -1
- package/tsconfig.json +2 -2
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
+
import { PulseConfig } from '../../config';
|
|
3
|
+
import { IntDistribution } from '../entities';
|
|
4
|
+
import { TimeSeriesOf2D } from '../common';
|
|
5
|
+
import { Event } from '../entities';
|
|
6
|
+
import { SeverityTypeCode } from '../enums';
|
|
7
|
+
import { EventCategoryCode } from '../enums';
|
|
8
|
+
import { EventStatusCode } from '../enums';
|
|
9
|
+
import { RuleTypeCode } from '../enums';
|
|
10
|
+
import { EventWithDevice } from '../entities';
|
|
11
|
+
import { TimeSeriesOfFloat } from '../common';
|
|
12
|
+
import { MaliciousIPCard } from '../common';
|
|
13
|
+
import { EventTypeCode } from '../enums';
|
|
14
|
+
import { MaliciousIPData } from '../common';
|
|
15
|
+
import { StringKeyValue } from '../common';
|
|
16
|
+
export declare class UsrEventsService {
|
|
17
|
+
private config;
|
|
18
|
+
private rest;
|
|
19
|
+
private baseUrl;
|
|
20
|
+
constructor(config: PulseConfig, rest: RestUtil);
|
|
21
|
+
/**
|
|
22
|
+
* Get single event by id
|
|
23
|
+
*/
|
|
24
|
+
get(id?: string): import("rxjs").Observable<EntityResponse<Event>>;
|
|
25
|
+
/**
|
|
26
|
+
* Find list of events by query
|
|
27
|
+
*/
|
|
28
|
+
find(streamId?: string, deviceId?: string, alertId?: 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): import("rxjs").Observable<EntitiesResponse<Event>>;
|
|
29
|
+
/**
|
|
30
|
+
* Export list of events by query to a file with the specified format
|
|
31
|
+
*/
|
|
32
|
+
exportFormat(format?: string, streamId?: string, deviceId?: string, alertId?: 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): void;
|
|
33
|
+
/**
|
|
34
|
+
* Find top 10 events by their severity filter by query
|
|
35
|
+
*/
|
|
36
|
+
getTop(streamId?: string, deviceId?: string, alertId?: 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): import("rxjs").Observable<EntitiesResponse<EventWithDevice>>;
|
|
37
|
+
/**
|
|
38
|
+
* Get top malicious IPs
|
|
39
|
+
*/
|
|
40
|
+
getTopMaliciousIPs(streamId?: string, top?: number, from?: number, to?: number): import("rxjs").Observable<EntitiesResponse<MaliciousIPData>>;
|
|
41
|
+
/**
|
|
42
|
+
* Find events distribution by type filtered by query
|
|
43
|
+
*/
|
|
44
|
+
countByType(streamId?: string, deviceId?: string, alertId?: 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): import("rxjs").Observable<EntityResponse<IntDistribution>>;
|
|
45
|
+
/**
|
|
46
|
+
* Find events distribution by status filtered by query
|
|
47
|
+
*/
|
|
48
|
+
countByStatus(streamId?: string, deviceId?: string, alertId?: 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): import("rxjs").Observable<EntityResponse<IntDistribution>>;
|
|
49
|
+
/**
|
|
50
|
+
* Find events distribution by severity filtered by query
|
|
51
|
+
*/
|
|
52
|
+
countBySeverity(streamId?: string, deviceId?: string, alertId?: 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): import("rxjs").Observable<EntityResponse<IntDistribution>>;
|
|
53
|
+
/**
|
|
54
|
+
* Find events distribution by rule filtered by query
|
|
55
|
+
*/
|
|
56
|
+
countByRule(streamId?: string, deviceId?: string, alertId?: 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): import("rxjs").Observable<EntityResponse<IntDistribution>>;
|
|
57
|
+
/**
|
|
58
|
+
* Find events distribution by category filtered by query
|
|
59
|
+
*/
|
|
60
|
+
countByCategory(streamId?: string, deviceId?: string, alertId?: 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): import("rxjs").Observable<EntityResponse<IntDistribution>>;
|
|
61
|
+
/**
|
|
62
|
+
* Get current shieldex value as ActionResponse, the Key contains the shield index and the data includes the trend
|
|
63
|
+
*/
|
|
64
|
+
getShieldex(): import("rxjs").Observable<ActionResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Get histogram of events over time by dimension (type | severity | status | ruleType | category)
|
|
67
|
+
*/
|
|
68
|
+
eventsTimeline(streamId?: string, deviceId?: string, alertId?: string, dimension?: 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): import("rxjs").Observable<EntityResponse<TimeSeriesOf2D>>;
|
|
69
|
+
/**
|
|
70
|
+
* Get histogram of shieldex values over time
|
|
71
|
+
*/
|
|
72
|
+
shieldexTimeline(streamId?: string, from?: number, to?: number): import("rxjs").Observable<EntityResponse<TimeSeriesOfFloat>>;
|
|
73
|
+
/**
|
|
74
|
+
* Export event source file
|
|
75
|
+
*/
|
|
76
|
+
exportSource(id?: string): void;
|
|
77
|
+
/**
|
|
78
|
+
* Get total number devices at risk (affected by the events matching the query)
|
|
79
|
+
*/
|
|
80
|
+
getTotalDevicesAtRisk(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>;
|
|
81
|
+
/**
|
|
82
|
+
* Get malicious IP data card for specific malicious IP
|
|
83
|
+
*/
|
|
84
|
+
getMaliciousIpCard(streamId?: string, targetIp?: string, from?: number, to?: number): import("rxjs").Observable<EntityResponse<MaliciousIPCard>>;
|
|
85
|
+
/**
|
|
86
|
+
* Apply DNS lookup for each IP in the list
|
|
87
|
+
*/
|
|
88
|
+
getIpLookup(ip?: string[]): import("rxjs").Observable<EntitiesResponse<StringKeyValue>>;
|
|
89
|
+
/**
|
|
90
|
+
* Find list of events by insight id query
|
|
91
|
+
*/
|
|
92
|
+
findByInsightContext(): import("rxjs").Observable<EntitiesResponse<Event>>;
|
|
93
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RestUtil, EntitiesResponse } from '../../utils';
|
|
2
|
+
import { PulseConfig } from '../../config';
|
|
3
|
+
import { Insight } from '../entities';
|
|
4
|
+
export declare class UsrInsightsService {
|
|
5
|
+
private config;
|
|
6
|
+
private rest;
|
|
7
|
+
private baseUrl;
|
|
8
|
+
constructor(config: PulseConfig, rest: RestUtil);
|
|
9
|
+
/**
|
|
10
|
+
* Find list of insights by day
|
|
11
|
+
*/
|
|
12
|
+
getDailyInsights(dayId?: string): import("rxjs").Observable<EntitiesResponse<Insight>>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
+
import { PulseConfig } from '../../config';
|
|
3
|
+
import { Integration } from '../entities';
|
|
4
|
+
export declare class UsrIntegrationsService {
|
|
5
|
+
private config;
|
|
6
|
+
private rest;
|
|
7
|
+
private baseUrl;
|
|
8
|
+
constructor(config: PulseConfig, rest: RestUtil);
|
|
9
|
+
/**
|
|
10
|
+
* Create new integration
|
|
11
|
+
*/
|
|
12
|
+
create(body?: Integration): import("rxjs").Observable<EntityResponse<Integration>>;
|
|
13
|
+
/**
|
|
14
|
+
* Update existing integration
|
|
15
|
+
*/
|
|
16
|
+
update(body?: Integration): import("rxjs").Observable<EntityResponse<Integration>>;
|
|
17
|
+
/**
|
|
18
|
+
* Delete integration from the system
|
|
19
|
+
*/
|
|
20
|
+
delete(id?: string): import("rxjs").Observable<ActionResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Get single integration by id
|
|
23
|
+
*/
|
|
24
|
+
get(id?: string): import("rxjs").Observable<EntityResponse<Integration>>;
|
|
25
|
+
/**
|
|
26
|
+
* Find list of integrations by query
|
|
27
|
+
*/
|
|
28
|
+
find(accountId?: string, streamId?: string, search?: string, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<Integration>>;
|
|
29
|
+
/**
|
|
30
|
+
* Validate format of the templates in the fields
|
|
31
|
+
*/
|
|
32
|
+
validate(body?: Integration): import("rxjs").Observable<EntityResponse<Integration>>;
|
|
33
|
+
/**
|
|
34
|
+
* Test the integration with pseudo data
|
|
35
|
+
*/
|
|
36
|
+
test(body?: Integration): import("rxjs").Observable<EntityResponse<Integration>>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
+
import { PulseConfig } from '../../config';
|
|
3
|
+
import { MemberRoleCode } from '../enums';
|
|
4
|
+
import { Member } from '../entities';
|
|
5
|
+
export declare class UsrMembersService {
|
|
6
|
+
private config;
|
|
7
|
+
private rest;
|
|
8
|
+
private baseUrl;
|
|
9
|
+
constructor(config: PulseConfig, rest: RestUtil);
|
|
10
|
+
/**
|
|
11
|
+
* Create new member
|
|
12
|
+
*/
|
|
13
|
+
create(body?: Member): import("rxjs").Observable<EntityResponse<Member>>;
|
|
14
|
+
/**
|
|
15
|
+
* Update existing member in the system
|
|
16
|
+
*/
|
|
17
|
+
update(body?: Member): import("rxjs").Observable<EntityResponse<Member>>;
|
|
18
|
+
/**
|
|
19
|
+
* Delete member from the system
|
|
20
|
+
*/
|
|
21
|
+
delete(id?: string): import("rxjs").Observable<ActionResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get single member by id
|
|
24
|
+
*/
|
|
25
|
+
get(id?: string): import("rxjs").Observable<EntityResponse<Member>>;
|
|
26
|
+
/**
|
|
27
|
+
* Find list of members by query
|
|
28
|
+
*/
|
|
29
|
+
find(userId?: string, role?: MemberRoleCode[], sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<Member>>;
|
|
30
|
+
/**
|
|
31
|
+
* Find list of registered emails by query
|
|
32
|
+
*/
|
|
33
|
+
findEmails(search?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<Member>>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RestUtil, EntitiesResponse } from '../../utils';
|
|
2
|
+
import { PulseConfig } from '../../config';
|
|
3
|
+
import { UsageRecord } from '../entities';
|
|
4
|
+
import { SessionRecord } from '../entities';
|
|
5
|
+
export declare class UsrNetworkService {
|
|
6
|
+
private config;
|
|
7
|
+
private rest;
|
|
8
|
+
private baseUrl;
|
|
9
|
+
constructor(config: PulseConfig, rest: RestUtil);
|
|
10
|
+
/**
|
|
11
|
+
* Find list of usage records by query
|
|
12
|
+
*/
|
|
13
|
+
findUsage(streamId?: string, deviceId?: string, simId?: string, from?: number, to?: number, include?: number, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<UsageRecord>>;
|
|
14
|
+
/**
|
|
15
|
+
* Find list of session records by query
|
|
16
|
+
*/
|
|
17
|
+
findSession(streamId?: string, deviceId?: string, simId?: string, from?: number, to?: number, include?: number, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<SessionRecord>>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
+
import { PulseConfig } from '../../config';
|
|
3
|
+
import { Report } from '../entities';
|
|
4
|
+
import { TimeSeries } from '../common';
|
|
5
|
+
import { GraphSeries } from '../common';
|
|
6
|
+
export declare class UsrReportsService {
|
|
7
|
+
private config;
|
|
8
|
+
private rest;
|
|
9
|
+
private baseUrl;
|
|
10
|
+
constructor(config: PulseConfig, rest: RestUtil);
|
|
11
|
+
/**
|
|
12
|
+
* Create new report
|
|
13
|
+
*/
|
|
14
|
+
create(body?: Report): import("rxjs").Observable<EntityResponse<Report>>;
|
|
15
|
+
/**
|
|
16
|
+
* Update existing report in the system
|
|
17
|
+
*/
|
|
18
|
+
update(body?: Report): import("rxjs").Observable<EntityResponse<Report>>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete a report from the system
|
|
21
|
+
*/
|
|
22
|
+
delete(id?: string): import("rxjs").Observable<ActionResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Get single report by id
|
|
25
|
+
*/
|
|
26
|
+
get(id?: string): import("rxjs").Observable<EntityResponse<Report>>;
|
|
27
|
+
/**
|
|
28
|
+
* Find list of reports by query
|
|
29
|
+
*/
|
|
30
|
+
find(accountId?: string, search?: string, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<Report>>;
|
|
31
|
+
/**
|
|
32
|
+
* Get compliance report
|
|
33
|
+
*/
|
|
34
|
+
getComplianceReport(streamId?: string, from?: number, to?: number): void;
|
|
35
|
+
/**
|
|
36
|
+
* Get histogram of network activity over time
|
|
37
|
+
*/
|
|
38
|
+
getNetworkActivityOverTime(streamId?: string, from?: number, to?: number): import("rxjs").Observable<EntityResponse<TimeSeries>>;
|
|
39
|
+
/**
|
|
40
|
+
* Get histogram of device distribution by number of destinations
|
|
41
|
+
*/
|
|
42
|
+
getDeviceDistributionByNumberOfDestinations(streamId?: string, from?: number, to?: number): import("rxjs").Observable<EntityResponse<GraphSeries>>;
|
|
43
|
+
/**
|
|
44
|
+
* Get histogram of device distribution by communication frequency
|
|
45
|
+
*/
|
|
46
|
+
getDeviceGroupsByCommunicationFrequency(streamId?: string, from?: number, to?: number): import("rxjs").Observable<EntityResponse<GraphSeries>>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
+
import { PulseConfig } from '../../config';
|
|
3
|
+
import { Rule } from '../entities';
|
|
4
|
+
import { TimeSeriesOfFloat } from '../common';
|
|
5
|
+
export declare class UsrRulesService {
|
|
6
|
+
private config;
|
|
7
|
+
private rest;
|
|
8
|
+
private baseUrl;
|
|
9
|
+
constructor(config: PulseConfig, rest: RestUtil);
|
|
10
|
+
/**
|
|
11
|
+
* Create new rule
|
|
12
|
+
*/
|
|
13
|
+
create(body?: Rule): import("rxjs").Observable<EntityResponse<Rule>>;
|
|
14
|
+
/**
|
|
15
|
+
* Update existing rule in the system
|
|
16
|
+
*/
|
|
17
|
+
update(body?: Rule): import("rxjs").Observable<EntityResponse<Rule>>;
|
|
18
|
+
/**
|
|
19
|
+
* Delete a rule from the system
|
|
20
|
+
*/
|
|
21
|
+
delete(id?: string): import("rxjs").Observable<ActionResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get single rule by id
|
|
24
|
+
*/
|
|
25
|
+
get(id?: string): import("rxjs").Observable<EntityResponse<Rule>>;
|
|
26
|
+
/**
|
|
27
|
+
* Find list of rules by query
|
|
28
|
+
*/
|
|
29
|
+
find(streamId?: string, search?: string, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<Rule>>;
|
|
30
|
+
/**
|
|
31
|
+
* Analyze rule configuration against historic data
|
|
32
|
+
*/
|
|
33
|
+
analyze(from?: number, to?: number, interval?: number, size?: number, body?: Rule): import("rxjs").Observable<EntityResponse<TimeSeriesOfFloat>>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
+
import { PulseConfig } from '../../config';
|
|
3
|
+
import { LoginParams } from '../common';
|
|
4
|
+
import { User } from '../entities';
|
|
5
|
+
import { AccountDTO } from '../entities';
|
|
6
|
+
import { Image } from '../entities';
|
|
7
|
+
import { Feature } from '../entities';
|
|
8
|
+
import { Stream } from '../entities';
|
|
9
|
+
import { UserMemberships } from '../entities';
|
|
10
|
+
export declare class UsrUserService {
|
|
11
|
+
private config;
|
|
12
|
+
private rest;
|
|
13
|
+
private baseUrl;
|
|
14
|
+
constructor(config: PulseConfig, rest: RestUtil);
|
|
15
|
+
/**
|
|
16
|
+
* Authorize user, verify user exists in the system (user was already authenticated by OAuth provider)
|
|
17
|
+
* The response includes access token valid for 20 minutes. The client side should renew the token before expiration using refresh-token method
|
|
18
|
+
*/
|
|
19
|
+
authorize(body?: LoginParams): import("rxjs").Observable<EntityResponse<User>>;
|
|
20
|
+
/**
|
|
21
|
+
* Refresh token (set new expiration time) and associate with new account if required
|
|
22
|
+
* The response includes the account details and the newly refreshed token in the HTTP header X-ACCESS-TOKEN
|
|
23
|
+
*/
|
|
24
|
+
setAccount(id?: string): import("rxjs").Observable<EntityResponse<AccountDTO>>;
|
|
25
|
+
/**
|
|
26
|
+
* Get the user's current account details
|
|
27
|
+
*/
|
|
28
|
+
getAccount(): import("rxjs").Observable<EntityResponse<AccountDTO>>;
|
|
29
|
+
/**
|
|
30
|
+
* Get user's current account logo
|
|
31
|
+
*/
|
|
32
|
+
getAccountLogo(): import("rxjs").Observable<EntityResponse<Image>>;
|
|
33
|
+
/**
|
|
34
|
+
* Get the user's current account features (aggregated list of all features in all the account's features groups)
|
|
35
|
+
*/
|
|
36
|
+
getAccountFeatures(): import("rxjs").Observable<EntitiesResponse<Feature>>;
|
|
37
|
+
/**
|
|
38
|
+
* Get the user's current account streams (accessible by the user)
|
|
39
|
+
*/
|
|
40
|
+
getAccountStreams(): import("rxjs").Observable<EntitiesResponse<Stream>>;
|
|
41
|
+
/**
|
|
42
|
+
* Get all the user memberships (all accounts that the current user has access to)
|
|
43
|
+
*/
|
|
44
|
+
getMemberships(): import("rxjs").Observable<EntityResponse<UserMemberships>>;
|
|
45
|
+
/**
|
|
46
|
+
* Save user's avatar image
|
|
47
|
+
*/
|
|
48
|
+
saveAvatar(body?: Image): import("rxjs").Observable<ActionResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Get user's avatar image
|
|
51
|
+
*/
|
|
52
|
+
getAvatar(): import("rxjs").Observable<EntityResponse<Image>>;
|
|
53
|
+
/**
|
|
54
|
+
* Get arbitrary image by Id
|
|
55
|
+
*/
|
|
56
|
+
getImage(id?: string): import("rxjs").Observable<EntityResponse<Image>>;
|
|
57
|
+
/**
|
|
58
|
+
* Get arbitrary image by Id as stream of bytes
|
|
59
|
+
*/
|
|
60
|
+
getImageBytes(id?: string): void;
|
|
61
|
+
/**
|
|
62
|
+
* Get personal access token
|
|
63
|
+
*/
|
|
64
|
+
getAccessToken(): import("rxjs").Observable<ActionResponse>;
|
|
65
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export declare class RestUtil {
|
|
4
|
+
axiosInstance: AxiosInstance;
|
|
5
|
+
constructor(axiosInst: AxiosInstance);
|
|
6
|
+
upload<T>(file: File, url: string, ...params: string[]): void;
|
|
7
|
+
download(fileName: string, url: string, ...params: string[]): void;
|
|
8
|
+
get<T>(url: string, ...params: string[]): Observable<T>;
|
|
9
|
+
post<T>(url: string, body?: string, ...params: string[]): Observable<T>;
|
|
10
|
+
put<T>(url: string, body?: string, ...params: string[]): Observable<T>;
|
|
11
|
+
patch<T>(url: string, body?: string, ...params: string[]): Observable<T>;
|
|
12
|
+
delete<T>(url: string, ...params: string[]): Observable<T>;
|
|
13
|
+
private buildUrl;
|
|
14
|
+
private getMimeType;
|
|
15
|
+
}
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
// "allowJs": true, /* Allow javascript files to be compiled. */
|
|
18
18
|
// "checkJs": true, /* Report errors in .js files. */
|
|
19
19
|
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
20
|
-
"declaration":
|
|
20
|
+
"declaration": true, /* Generates corresponding '.d.ts' file. */
|
|
21
21
|
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
|
22
22
|
"sourceMap": true, /* Generates corresponding '.map' file. */
|
|
23
23
|
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
// "types": [], /* Type declaration files to be included in compilation. */
|
|
57
57
|
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
58
58
|
// "resolveJsonModule": true,
|
|
59
|
-
"esModuleInterop": true
|
|
59
|
+
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
|
60
60
|
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
61
61
|
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
62
62
|
|