@shieldiot/pulse-lib 1.0.5 → 1.0.6
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/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/common/TimeSeries.d.ts +1 -1
- package/dist/lib/common/TimeSeriesOf2D.d.ts +1 -1
- package/dist/lib/entities/Account.d.ts +2 -2
- package/dist/lib/entities/Account.js.map +1 -1
- package/dist/lib/entities/AccountDTO.d.ts +2 -2
- package/dist/lib/entities/AccountDTO.js.map +1 -1
- package/dist/lib/entities/AccountSettings.d.ts +1 -1
- package/dist/lib/entities/Alert.d.ts +4 -4
- package/dist/lib/entities/Alert.js.map +1 -1
- package/dist/lib/entities/AlertWithDevice.d.ts +4 -4
- package/dist/lib/entities/AlertWithDevice.js.map +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 +1 -1
- 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/EventWithDevice.d.ts +5 -5
- package/dist/lib/entities/EventWithDevice.js.map +1 -1
- package/dist/lib/entities/Feature.d.ts +1 -1
- package/dist/lib/entities/Feature.js.map +1 -1
- package/dist/lib/entities/Integration.d.ts +3 -3
- package/dist/lib/entities/Integration.js.map +1 -1
- package/dist/lib/entities/Report.d.ts +1 -1
- package/dist/lib/entities/Report.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/RuleTemplate.d.ts +2 -2
- package/dist/lib/entities/RuleTemplate.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/StreamConfig.d.ts +4 -4
- 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 +2 -2
- package/dist/lib/entities/UserMembership.js.map +1 -1
- package/dist/lib/pulse-client.d.ts +12 -12
- package/dist/lib/pulse-client.js +30 -30
- package/dist/lib/pulse-client.js.map +1 -1
- package/dist/lib/services/sysAccountsService.d.ts +1 -1
- package/dist/lib/services/sysFeaturesService.d.ts +1 -1
- package/dist/lib/services/usrAlertsService.d.ts +9 -9
- package/dist/lib/services/usrDevicesService.d.ts +5 -5
- package/dist/lib/services/usrEventsService.d.ts +7 -7
- package/package.json +1 -1
- package/src/index.ts +4 -3
- package/dist/public-api.d.ts +0 -3
- package/dist/public-api.js +0 -7
- package/dist/public-api.js.map +0 -1
- package/src/config.d.ts +0 -6
- package/src/config.d.ts.map +0 -1
- package/src/config.js +0 -6
- package/src/config.js.map +0 -1
- package/src/index.d.ts +0 -3
- package/src/index.d.ts.map +0 -1
- package/src/index.js +0 -3
- package/src/index.js.map +0 -1
- package/src/lib/common/AccountRole.ts +0 -25
- package/src/lib/common/ConsumptionData.ts +0 -24
- package/src/lib/common/ConsumptionTimeDataPoint.ts +0 -21
- package/src/lib/common/DeviceConfig.ts +0 -22
- package/src/lib/common/DeviceScoreConfig.ts +0 -24
- package/src/lib/common/DevicesAtRiskConfig.ts +0 -16
- package/src/lib/common/EventSeverityConfig.ts +0 -17
- package/src/lib/common/FloatKeyValue.ts +0 -20
- package/src/lib/common/GeoData.ts +0 -38
- package/src/lib/common/GraphSeries.ts +0 -21
- package/src/lib/common/Indicator.ts +0 -32
- package/src/lib/common/IntKeySeriesDataValue.ts +0 -21
- package/src/lib/common/IntKeyValue.ts +0 -20
- package/src/lib/common/Interval.ts +0 -20
- package/src/lib/common/Link.ts +0 -41
- package/src/lib/common/Location.ts +0 -20
- package/src/lib/common/LoginParams.ts +0 -24
- package/src/lib/common/MaliciousIPCard.ts +0 -45
- package/src/lib/common/MaliciousIPData.ts +0 -28
- package/src/lib/common/NetworkMap.ts +0 -22
- package/src/lib/common/Node.ts +0 -54
- package/src/lib/common/SeriesData.ts +0 -22
- package/src/lib/common/SessionTransform.ts +0 -29
- package/src/lib/common/SeverityIntervalTuple.ts +0 -22
- package/src/lib/common/ShieldexConfig.ts +0 -36
- package/src/lib/common/StringIntValue.ts +0 -20
- package/src/lib/common/StringKeyIntValue.ts +0 -20
- package/src/lib/common/StringKeyValue.ts +0 -20
- package/src/lib/common/Thresholds.ts +0 -16
- package/src/lib/common/TimeDataPoint.ts +0 -20
- package/src/lib/common/TimeDataPoint2D.ts +0 -21
- package/src/lib/common/TimeDataPointFloat.ts +0 -20
- package/src/lib/common/TimeFrame.ts +0 -20
- package/src/lib/common/TimeSeries.ts +0 -26
- package/src/lib/common/TimeSeriesOf2D.ts +0 -26
- package/src/lib/common/TimeSeriesOfDataConsumption.ts +0 -26
- package/src/lib/common/TimeSeriesOfFloat.ts +0 -26
- package/src/lib/common/TokenData.ts +0 -39
- package/src/lib/common/Tuple.ts +0 -20
- package/src/lib/common/UsageTransform.ts +0 -37
- package/src/lib/common/ZScore.ts +0 -20
- package/src/lib/common/index.ts +0 -41
- package/src/lib/entities/Account.ts +0 -45
- package/src/lib/entities/AccountDTO.ts +0 -49
- package/src/lib/entities/AccountSettings.ts +0 -31
- package/src/lib/entities/Action.ts +0 -30
- package/src/lib/entities/Alert.ts +0 -91
- package/src/lib/entities/AlertWithDevice.ts +0 -92
- package/src/lib/entities/ApiKey.ts +0 -33
- package/src/lib/entities/AuditLog.ts +0 -39
- package/src/lib/entities/BaseEntity.ts +0 -24
- package/src/lib/entities/BulkDevices.ts +0 -17
- package/src/lib/entities/Checkpoint.ts +0 -71
- package/src/lib/entities/ComplianceReportSettings.ts +0 -28
- package/src/lib/entities/Condition.ts +0 -28
- package/src/lib/entities/ConfigParam.ts +0 -15
- package/src/lib/entities/DNSRecord.ts +0 -40
- package/src/lib/entities/DataIngestion.ts +0 -63
- package/src/lib/entities/DataPointOfDeviceReport.ts +0 -21
- package/src/lib/entities/Device.ts +0 -82
- package/src/lib/entities/DeviceReport.ts +0 -29
- package/src/lib/entities/DeviceWithEvents.ts +0 -86
- package/src/lib/entities/Distribution.ts +0 -25
- package/src/lib/entities/Event.ts +0 -98
- package/src/lib/entities/EventOccurrence.ts +0 -34
- package/src/lib/entities/EventWithDevice.ts +0 -97
- package/src/lib/entities/Feature.ts +0 -18
- package/src/lib/entities/FeaturesGroup.ts +0 -18
- package/src/lib/entities/Group.ts +0 -24
- package/src/lib/entities/Image.ts +0 -18
- package/src/lib/entities/Insight.ts +0 -49
- package/src/lib/entities/InsightQuery.ts +0 -29
- package/src/lib/entities/InsightSpec.ts +0 -28
- package/src/lib/entities/IntDistribution.ts +0 -25
- package/src/lib/entities/Integration.ts +0 -81
- package/src/lib/entities/Member.ts +0 -22
- package/src/lib/entities/Radius.ts +0 -45
- package/src/lib/entities/Report.ts +0 -37
- package/src/lib/entities/Rule.ts +0 -65
- package/src/lib/entities/RuleTemplate.ts +0 -38
- package/src/lib/entities/SIM.ts +0 -32
- package/src/lib/entities/ServiceStatus.ts +0 -26
- package/src/lib/entities/SessionRecord.ts +0 -71
- package/src/lib/entities/Shieldex.ts +0 -23
- package/src/lib/entities/Stream.ts +0 -31
- package/src/lib/entities/StreamAnalyticsConfig.ts +0 -30
- package/src/lib/entities/StreamConfig.ts +0 -52
- package/src/lib/entities/TeaserPopUpSettings.ts +0 -24
- package/src/lib/entities/TimeSeriesOfDeviceReport.ts +0 -26
- package/src/lib/entities/UsageRecord.ts +0 -101
- package/src/lib/entities/User.ts +0 -45
- package/src/lib/entities/UserMembership.ts +0 -38
- package/src/lib/entities/UserMemberships.ts +0 -38
- package/src/lib/entities/index.ts +0 -51
- package/src/lib/enums/AccountStatusCode.ts +0 -35
- package/src/lib/enums/AccountTypeCode.ts +0 -40
- package/src/lib/enums/DataSourceCode.ts +0 -35
- package/src/lib/enums/DeviceActionCode.ts +0 -40
- package/src/lib/enums/DeviceCreationCode.ts +0 -40
- package/src/lib/enums/DeviceIdentityCode.ts +0 -55
- package/src/lib/enums/DeviceStatusCode.ts +0 -40
- package/src/lib/enums/DeviceTypeCode.ts +0 -90
- package/src/lib/enums/DirectionContextCode.ts +0 -40
- package/src/lib/enums/EventCategoryCode.ts +0 -30
- package/src/lib/enums/EventStatusCode.ts +0 -40
- package/src/lib/enums/EventTypeCode.ts +0 -115
- package/src/lib/enums/FeatureCode.ts +0 -70
- package/src/lib/enums/HomePageViewCode.ts +0 -35
- package/src/lib/enums/HttpMethodCode.ts +0 -45
- package/src/lib/enums/InsightStatusCode.ts +0 -35
- package/src/lib/enums/InsightTypeCode.ts +0 -30
- package/src/lib/enums/IntegrationTriggerCode.ts +0 -30
- package/src/lib/enums/IntegrationTypeCode.ts +0 -40
- package/src/lib/enums/MemberRoleCode.ts +0 -40
- package/src/lib/enums/NetworkMapTypeCode.ts +0 -35
- package/src/lib/enums/OperatorCode.ts +0 -75
- package/src/lib/enums/PermissionCode.ts +0 -45
- package/src/lib/enums/ReportTypeCode.ts +0 -35
- package/src/lib/enums/RuleTypeCode.ts +0 -35
- package/src/lib/enums/SeverityTypeCode.ts +0 -40
- package/src/lib/enums/TrafficDirectionCode.ts +0 -35
- package/src/lib/enums/UserStatusCode.ts +0 -40
- package/src/lib/enums/UserTypeCode.ts +0 -40
- package/src/lib/enums/index.ts +0 -29
- package/src/lib/index.ts +0 -4
- package/src/lib/pulse-client.ts +0 -190
- package/src/lib/services/index.ts +0 -26
- package/src/lib/services/services.export.ts +0 -54
- package/src/lib/services/supportStreamAnalyticsConfig.ts +0 -63
- package/src/lib/services/sysAccountsService.ts +0 -90
- package/src/lib/services/sysAuditLogService.ts +0 -72
- package/src/lib/services/sysCheckpointsService.ts +0 -62
- package/src/lib/services/sysConfigService.ts +0 -63
- package/src/lib/services/sysFeaturesService.ts +0 -77
- package/src/lib/services/sysGroupsService.ts +0 -85
- package/src/lib/services/sysInsightsService.ts +0 -122
- package/src/lib/services/sysKeysService.ts +0 -71
- package/src/lib/services/sysMembersService.ts +0 -66
- package/src/lib/services/sysRuleTemplatesService.ts +0 -63
- package/src/lib/services/sysRulesService.ts +0 -79
- package/src/lib/services/sysStatisticsService.ts +0 -50
- package/src/lib/services/sysStreamsService.ts +0 -64
- package/src/lib/services/sysUsersService.ts +0 -89
- package/src/lib/services/usrAlertsService.ts +0 -382
- package/src/lib/services/usrDevicesService.ts +0 -303
- package/src/lib/services/usrEventsService.ts +0 -355
- package/src/lib/services/usrInsightsService.ts +0 -29
- package/src/lib/services/usrIntegrationsService.ts +0 -79
- package/src/lib/services/usrMembersService.ts +0 -77
- package/src/lib/services/usrNetworkService.ts +0 -59
- package/src/lib/services/usrReportsService.ts +0 -114
- package/src/lib/services/usrRulesService.ts +0 -78
- package/src/lib/services/usrUserService.ts +0 -114
- package/src/public-api.d.ts +0 -4
- package/src/public-api.d.ts.map +0 -1
- package/src/public-api.js +0 -7
- package/src/public-api.js.map +0 -1
- package/src/public-api.ts +0 -9
- package/src/utils/ActionResponse.d.ts +0 -6
- package/src/utils/ActionResponse.d.ts.map +0 -1
- package/src/utils/ActionResponse.js +0 -9
- package/src/utils/ActionResponse.js.map +0 -1
- package/src/utils/BaseRestResponse.d.ts +0 -5
- package/src/utils/BaseRestResponse.d.ts.map +0 -1
- package/src/utils/BaseRestResponse.js +0 -8
- package/src/utils/BaseRestResponse.js.map +0 -1
- package/src/utils/EntitiesResponse.d.ts +0 -9
- package/src/utils/EntitiesResponse.d.ts.map +0 -1
- package/src/utils/EntitiesResponse.js +0 -15
- package/src/utils/EntitiesResponse.js.map +0 -1
- package/src/utils/EntityResponse.d.ts +0 -9
- package/src/utils/EntityResponse.d.ts.map +0 -1
- package/src/utils/EntityResponse.js +0 -15
- package/src/utils/EntityResponse.js.map +0 -1
- package/src/utils/index.d.ts +0 -6
- package/src/utils/index.d.ts.map +0 -1
- package/src/utils/index.js +0 -6
- package/src/utils/index.js.map +0 -1
- package/src/utils/rest-axios-setup.d.ts +0 -4
- package/src/utils/rest-axios-setup.d.ts.map +0 -1
- package/src/utils/rest-axios-setup.js +0 -8
- package/src/utils/rest-axios-setup.js.map +0 -1
- package/src/utils/rest-util.d.ts +0 -16
- package/src/utils/rest-util.d.ts.map +0 -1
- package/src/utils/rest-util.js +0 -101
- package/src/utils/rest-util.js.map +0 -1
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { BaseEntity } from '../entities';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// UsageRecord represents network statistics
|
|
6
|
-
// The unique Id of usage record is based on the template: [window_start_time]-[stream_id]-[device_id]
|
|
7
|
-
// The createdOn field represents the first communication time of the device within this time window
|
|
8
|
-
// The updatedOn field represents the last communication time of the device within this time window
|
|
9
|
-
export class UsageRecord extends BaseEntity {
|
|
10
|
-
|
|
11
|
-
// Indication to the source location of the record
|
|
12
|
-
public source: string;
|
|
13
|
-
|
|
14
|
-
// Account Id
|
|
15
|
-
public accountId: string;
|
|
16
|
-
|
|
17
|
-
// Stream Id
|
|
18
|
-
public streamId: string;
|
|
19
|
-
|
|
20
|
-
// Device Id
|
|
21
|
-
public deviceId: string;
|
|
22
|
-
|
|
23
|
-
// Device IP (temporary IP that was allocated to this device in the time this record was created)
|
|
24
|
-
public deviceIp: string;
|
|
25
|
-
|
|
26
|
-
// Device SIM card ID (to support multiple SIMs)
|
|
27
|
-
public simId: string;
|
|
28
|
-
|
|
29
|
-
// Start window time [Epoch milliseconds Timestamp]
|
|
30
|
-
public startTime: number;
|
|
31
|
-
|
|
32
|
-
// End window time [Epoch milliseconds Timestamp]
|
|
33
|
-
public endTime: number;
|
|
34
|
-
|
|
35
|
-
// List of source ports
|
|
36
|
-
public srcPortsList: number[];
|
|
37
|
-
|
|
38
|
-
// Number of source ports
|
|
39
|
-
public srcPortsCount: number;
|
|
40
|
-
|
|
41
|
-
// List of destination ports
|
|
42
|
-
public dstPortsList: number[];
|
|
43
|
-
|
|
44
|
-
// Number of destination ports
|
|
45
|
-
public dstPortsCount: number;
|
|
46
|
-
|
|
47
|
-
// List of outbound endpoints
|
|
48
|
-
public endpointsList: string[];
|
|
49
|
-
|
|
50
|
-
// Number of outbound endpoints (IPs)
|
|
51
|
-
public endpointsCount: number;
|
|
52
|
-
|
|
53
|
-
// List of outbound endpoints that sent data to the device
|
|
54
|
-
public srcEndpoints: string[];
|
|
55
|
-
|
|
56
|
-
// Number of outbound endpoints that sent data to the device
|
|
57
|
-
public srcEndpointsCount: number;
|
|
58
|
-
|
|
59
|
-
// List of outbound endpoints that received data from the device
|
|
60
|
-
public dstEndpoints: string[];
|
|
61
|
-
|
|
62
|
-
// Number of outbound endpoints that received data from the device
|
|
63
|
-
public dstEndpointsCount: number;
|
|
64
|
-
|
|
65
|
-
// Number of incoming packets (to the device)
|
|
66
|
-
public packetsIn: number;
|
|
67
|
-
|
|
68
|
-
// Number of outgoing packets (from the device)
|
|
69
|
-
public packetsOut: number;
|
|
70
|
-
|
|
71
|
-
// Total number of incoming bytes (to the device)
|
|
72
|
-
public bytesIn: number;
|
|
73
|
-
|
|
74
|
-
// Total number of outgoing bytes (from the device)
|
|
75
|
-
public bytesOut: number;
|
|
76
|
-
|
|
77
|
-
// Number of outgoing Ack flags (applicable only for TCP based protocols)
|
|
78
|
-
public srcAckFlags: number;
|
|
79
|
-
|
|
80
|
-
// Number of incoming Ack flags (applicable only for TCP based protocols)
|
|
81
|
-
public dstAckFlags: number;
|
|
82
|
-
|
|
83
|
-
// Number of outgoing Syn flags (applicable only for TCP based protocols)
|
|
84
|
-
public srcSynFlags: number;
|
|
85
|
-
|
|
86
|
-
// Number of incoming Syn flags (applicable only for TCP based protocols)
|
|
87
|
-
public dstSynFlags: number;
|
|
88
|
-
|
|
89
|
-
// Number of outgoing Rst flags (applicable only for TCP based protocols)
|
|
90
|
-
public srcRstFlags: number;
|
|
91
|
-
|
|
92
|
-
// Number of incoming Rst flags (applicable only for TCP based protocols)
|
|
93
|
-
public dstRstFlags: number;
|
|
94
|
-
|
|
95
|
-
// List of labels
|
|
96
|
-
public labels: string[];
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
package/src/lib/entities/User.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { UserTypeCode } from '../enums';
|
|
2
|
-
import { UserStatusCode } from '../enums';
|
|
3
|
-
import { StringKeyValue } from '../common';
|
|
4
|
-
import { BaseEntity } from '../entities';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// User represents a human / system operator that has access to the system, and can perform operations
|
|
9
|
-
// User authentication is done by an external identity provider
|
|
10
|
-
export class User extends BaseEntity {
|
|
11
|
-
|
|
12
|
-
// User name
|
|
13
|
-
public name: string;
|
|
14
|
-
|
|
15
|
-
// The user identity in the external system (e.g. Billing, CRM etc) @json:externalId"`
|
|
16
|
-
public externalId: string;
|
|
17
|
-
|
|
18
|
-
// User email
|
|
19
|
-
public email: string;
|
|
20
|
-
|
|
21
|
-
// User mobile phone number (for notification and validation)
|
|
22
|
-
public mobile: string;
|
|
23
|
-
|
|
24
|
-
// User type: UNDEFINED | SYSADMIN | SUPPORT | USER
|
|
25
|
-
public type: UserTypeCode;
|
|
26
|
-
|
|
27
|
-
// User status: UNDEFINED | PENDING | ACTIVE | BLOCKED | SUSPENDED
|
|
28
|
-
public status: UserStatusCode;
|
|
29
|
-
|
|
30
|
-
// Default account Id
|
|
31
|
-
public defaultAccount: string;
|
|
32
|
-
|
|
33
|
-
// When the user signed in for the last time [Epoch milliseconds Timestamp]
|
|
34
|
-
public lastSignIn: number;
|
|
35
|
-
|
|
36
|
-
// List of custom attributes (key-value pairs)
|
|
37
|
-
public labels: StringKeyValue[];
|
|
38
|
-
|
|
39
|
-
// List of groups that the user belongs to and inherits accounts access from
|
|
40
|
-
public groups: string;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { UserTypeCode } from '../enums';
|
|
2
|
-
import { UserStatusCode } from '../enums';
|
|
3
|
-
import { AccountRole } from '../common';
|
|
4
|
-
import { BaseEntity } from '../entities';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// UserMembership model include user data with a specific account membership
|
|
9
|
-
export class UserMembership extends BaseEntity {
|
|
10
|
-
|
|
11
|
-
// User name
|
|
12
|
-
public name: string;
|
|
13
|
-
|
|
14
|
-
// User email
|
|
15
|
-
public email: string;
|
|
16
|
-
|
|
17
|
-
// User mobile phone number (for notification and validation)
|
|
18
|
-
public mobile: string;
|
|
19
|
-
|
|
20
|
-
// User type: UNDEFINED | SYSADMIN | SUPPORT | USER
|
|
21
|
-
public type: UserTypeCode;
|
|
22
|
-
|
|
23
|
-
// User status: UNDEFINED | PENDING | ACTIVE | BLOCKED | SUSPENDED
|
|
24
|
-
public status: UserStatusCode;
|
|
25
|
-
|
|
26
|
-
// Default account Id
|
|
27
|
-
public defaultAccount: string;
|
|
28
|
-
|
|
29
|
-
// When the user signed in for the last time [Epoch milliseconds Timestamp]
|
|
30
|
-
public lastSignIn: number;
|
|
31
|
-
|
|
32
|
-
// User role in the account
|
|
33
|
-
public accountRole: AccountRole;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { UserTypeCode } from '../enums';
|
|
2
|
-
import { UserStatusCode } from '../enums';
|
|
3
|
-
import { AccountRole } from '../common';
|
|
4
|
-
import { BaseEntity } from '../entities';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// UserMemberships model include user data and all its accounts memberships
|
|
9
|
-
export class UserMemberships extends BaseEntity {
|
|
10
|
-
|
|
11
|
-
// User name
|
|
12
|
-
public name: string;
|
|
13
|
-
|
|
14
|
-
// User email
|
|
15
|
-
public email: string;
|
|
16
|
-
|
|
17
|
-
// User mobile phone number (for notification and validation)
|
|
18
|
-
public mobile: string;
|
|
19
|
-
|
|
20
|
-
// User type: UNDEFINED | SYSADMIN | SUPPORT | USER
|
|
21
|
-
public type: UserTypeCode;
|
|
22
|
-
|
|
23
|
-
// User status: UNDEFINED | PENDING | ACTIVE | BLOCKED | SUSPENDED
|
|
24
|
-
public status: UserStatusCode;
|
|
25
|
-
|
|
26
|
-
// Default account Id
|
|
27
|
-
public defaultAccount: string;
|
|
28
|
-
|
|
29
|
-
// When the user signed in for the last time [Epoch milliseconds Timestamp]
|
|
30
|
-
public lastSignIn: number;
|
|
31
|
-
|
|
32
|
-
// List of user roles in all accounts
|
|
33
|
-
public accountRoles: AccountRole[];
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export * from './Account';
|
|
2
|
-
export * from './AccountDTO';
|
|
3
|
-
export * from './AccountSettings';
|
|
4
|
-
export * from './Action';
|
|
5
|
-
export * from './Alert';
|
|
6
|
-
export * from './AlertWithDevice';
|
|
7
|
-
export * from './ApiKey';
|
|
8
|
-
export * from './AuditLog';
|
|
9
|
-
export * from './BaseEntity';
|
|
10
|
-
export * from './BulkDevices';
|
|
11
|
-
export * from './Checkpoint';
|
|
12
|
-
export * from './ComplianceReportSettings';
|
|
13
|
-
export * from './Condition';
|
|
14
|
-
export * from './ConfigParam';
|
|
15
|
-
export * from './DNSRecord';
|
|
16
|
-
export * from './DataIngestion';
|
|
17
|
-
export * from './DataPointOfDeviceReport';
|
|
18
|
-
export * from './Device';
|
|
19
|
-
export * from './DeviceReport';
|
|
20
|
-
export * from './DeviceWithEvents';
|
|
21
|
-
export * from './Distribution';
|
|
22
|
-
export * from './Event';
|
|
23
|
-
export * from './EventOccurrence';
|
|
24
|
-
export * from './EventWithDevice';
|
|
25
|
-
export * from './Feature';
|
|
26
|
-
export * from './FeaturesGroup';
|
|
27
|
-
export * from './Group';
|
|
28
|
-
export * from './Image';
|
|
29
|
-
export * from './Insight';
|
|
30
|
-
export * from './InsightQuery';
|
|
31
|
-
export * from './InsightSpec';
|
|
32
|
-
export * from './IntDistribution';
|
|
33
|
-
export * from './Integration';
|
|
34
|
-
export * from './Member';
|
|
35
|
-
export * from './Radius';
|
|
36
|
-
export * from './Report';
|
|
37
|
-
export * from './Rule';
|
|
38
|
-
export * from './RuleTemplate';
|
|
39
|
-
export * from './SIM';
|
|
40
|
-
export * from './ServiceStatus';
|
|
41
|
-
export * from './SessionRecord';
|
|
42
|
-
export * from './Shieldex';
|
|
43
|
-
export * from './Stream';
|
|
44
|
-
export * from './StreamAnalyticsConfig';
|
|
45
|
-
export * from './StreamConfig';
|
|
46
|
-
export * from './TeaserPopUpSettings';
|
|
47
|
-
export * from './TimeSeriesOfDeviceReport';
|
|
48
|
-
export * from './UsageRecord';
|
|
49
|
-
export * from './User';
|
|
50
|
-
export * from './UserMembership';
|
|
51
|
-
export * from './UserMemberships';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Account status code
|
|
3
|
-
export enum AccountStatusCode {
|
|
4
|
-
|
|
5
|
-
// Undefined [0]
|
|
6
|
-
UNDEFINED = 0,
|
|
7
|
-
|
|
8
|
-
// Active account [1]
|
|
9
|
-
ACTIVE = 1,
|
|
10
|
-
|
|
11
|
-
// Suspended (non-active) account [2]
|
|
12
|
-
SUSPENDED = 2,
|
|
13
|
-
|
|
14
|
-
// Deleted account [3]
|
|
15
|
-
DELETED = 3,
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Return list of AccountStatusCode values and their display names
|
|
20
|
-
export function GetAccountStatusCodes() : Map<AccountStatusCode, string> {
|
|
21
|
-
|
|
22
|
-
let result = new Map<AccountStatusCode, string>();
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
result.set(AccountStatusCode.UNDEFINED, 'Undefined');
|
|
26
|
-
|
|
27
|
-
result.set(AccountStatusCode.ACTIVE, 'Active');
|
|
28
|
-
|
|
29
|
-
result.set(AccountStatusCode.SUSPENDED, 'Suspended');
|
|
30
|
-
|
|
31
|
-
result.set(AccountStatusCode.DELETED, 'Deleted');
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return result;
|
|
35
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Account type code
|
|
3
|
-
export enum AccountTypeCode {
|
|
4
|
-
|
|
5
|
-
// Undefined [0]
|
|
6
|
-
UNDEFINED = 0,
|
|
7
|
-
|
|
8
|
-
// Demo account for internal use [1]
|
|
9
|
-
DEMO = 1,
|
|
10
|
-
|
|
11
|
-
// Trial account for pilots [2]
|
|
12
|
-
TRIAL = 2,
|
|
13
|
-
|
|
14
|
-
// Active account for partner [3]
|
|
15
|
-
PARTNER = 3,
|
|
16
|
-
|
|
17
|
-
// Active account for paying customers [4]
|
|
18
|
-
CUSTOMER = 4,
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Return list of AccountTypeCode values and their display names
|
|
23
|
-
export function GetAccountTypeCodes() : Map<AccountTypeCode, string> {
|
|
24
|
-
|
|
25
|
-
let result = new Map<AccountTypeCode, string>();
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
result.set(AccountTypeCode.UNDEFINED, 'Undefined');
|
|
29
|
-
|
|
30
|
-
result.set(AccountTypeCode.DEMO, 'Demo');
|
|
31
|
-
|
|
32
|
-
result.set(AccountTypeCode.TRIAL, 'Trial');
|
|
33
|
-
|
|
34
|
-
result.set(AccountTypeCode.PARTNER, 'Partner');
|
|
35
|
-
|
|
36
|
-
result.set(AccountTypeCode.CUSTOMER, 'Customer');
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return result;
|
|
40
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// DataSourceCode represents the sources (indices) of data to apply rules or insights
|
|
3
|
-
export enum DataSourceCode {
|
|
4
|
-
|
|
5
|
-
// Undefined [0]
|
|
6
|
-
UNDEFINED = 0,
|
|
7
|
-
|
|
8
|
-
// Data source based on Events [1]
|
|
9
|
-
EVENT = 1,
|
|
10
|
-
|
|
11
|
-
// Data source based on usage records [2]
|
|
12
|
-
USAGE = 2,
|
|
13
|
-
|
|
14
|
-
// Data source based on Session records [3]
|
|
15
|
-
SESSION = 3,
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Return list of DataSourceCode values and their display names
|
|
20
|
-
export function GetDataSourceCodes() : Map<DataSourceCode, string> {
|
|
21
|
-
|
|
22
|
-
let result = new Map<DataSourceCode, string>();
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
result.set(DataSourceCode.UNDEFINED, 'Undefined');
|
|
26
|
-
|
|
27
|
-
result.set(DataSourceCode.EVENT, 'Event');
|
|
28
|
-
|
|
29
|
-
result.set(DataSourceCode.USAGE, 'Usage');
|
|
30
|
-
|
|
31
|
-
result.set(DataSourceCode.SESSION, 'Session');
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return result;
|
|
35
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Device action code
|
|
3
|
-
export enum DeviceActionCode {
|
|
4
|
-
|
|
5
|
-
// Undefined [0]
|
|
6
|
-
UNDEFINED = 0,
|
|
7
|
-
|
|
8
|
-
// Redirect all traffic to an alternative endpoint [1]
|
|
9
|
-
REDIRECT = 1,
|
|
10
|
-
|
|
11
|
-
// Suspend device (make it inactive) [2]
|
|
12
|
-
SUSPEND = 2,
|
|
13
|
-
|
|
14
|
-
// Throttle traffic from/to the device [3]
|
|
15
|
-
THROTTLE = 3,
|
|
16
|
-
|
|
17
|
-
// Block specific external IP [4]
|
|
18
|
-
BLOCK_IP = 4,
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Return list of DeviceActionCode values and their display names
|
|
23
|
-
export function GetDeviceActionCodes() : Map<DeviceActionCode, string> {
|
|
24
|
-
|
|
25
|
-
let result = new Map<DeviceActionCode, string>();
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
result.set(DeviceActionCode.UNDEFINED, 'Undefined');
|
|
29
|
-
|
|
30
|
-
result.set(DeviceActionCode.REDIRECT, 'Redirect');
|
|
31
|
-
|
|
32
|
-
result.set(DeviceActionCode.SUSPEND, 'Suspend');
|
|
33
|
-
|
|
34
|
-
result.set(DeviceActionCode.THROTTLE, 'Throttle');
|
|
35
|
-
|
|
36
|
-
result.set(DeviceActionCode.BLOCK_IP, 'Block Ip');
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return result;
|
|
40
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Device creation policy code
|
|
3
|
-
export enum DeviceCreationCode {
|
|
4
|
-
|
|
5
|
-
// Undefined [0]
|
|
6
|
-
UNDEFINED = 0,
|
|
7
|
-
|
|
8
|
-
// Do not create device [1]
|
|
9
|
-
NONE = 1,
|
|
10
|
-
|
|
11
|
-
// Create Device based on static IP [2]
|
|
12
|
-
IP = 2,
|
|
13
|
-
|
|
14
|
-
// Create Device based on Subscriber Id - IMSI [3]
|
|
15
|
-
SID = 3,
|
|
16
|
-
|
|
17
|
-
// Create Device based on Equipment Id - IMEI [4]
|
|
18
|
-
EID = 4,
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Return list of DeviceCreationCode values and their display names
|
|
23
|
-
export function GetDeviceCreationCodes() : Map<DeviceCreationCode, string> {
|
|
24
|
-
|
|
25
|
-
let result = new Map<DeviceCreationCode, string>();
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
result.set(DeviceCreationCode.UNDEFINED, 'Undefined');
|
|
29
|
-
|
|
30
|
-
result.set(DeviceCreationCode.NONE, 'None');
|
|
31
|
-
|
|
32
|
-
result.set(DeviceCreationCode.IP, 'Ip');
|
|
33
|
-
|
|
34
|
-
result.set(DeviceCreationCode.SID, 'Sid');
|
|
35
|
-
|
|
36
|
-
result.set(DeviceCreationCode.EID, 'Eid');
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return result;
|
|
40
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Set the device unique identity policy
|
|
3
|
-
export enum DeviceIdentityCode {
|
|
4
|
-
|
|
5
|
-
// Undefined [0]
|
|
6
|
-
UNDEFINED = 0,
|
|
7
|
-
|
|
8
|
-
// Device Identity is provided by the system [1]
|
|
9
|
-
AUTO = 1,
|
|
10
|
-
|
|
11
|
-
// Device Identity is based on static IP: ip@stream_id [2]
|
|
12
|
-
IP = 2,
|
|
13
|
-
|
|
14
|
-
// Device Identity is based on Subscriber Id: imsi@stream_id [3]
|
|
15
|
-
IMSI = 3,
|
|
16
|
-
|
|
17
|
-
// Device Identity is based on SIM ICCID: iccid@stream_id [4]
|
|
18
|
-
ICCID = 4,
|
|
19
|
-
|
|
20
|
-
// Device Identity is based on MSISDN: msisdn@stream_id [5]
|
|
21
|
-
MSISDN = 5,
|
|
22
|
-
|
|
23
|
-
// Device Identity is based on Equipment Id: imei@stream_id [6]
|
|
24
|
-
IMEI = 6,
|
|
25
|
-
|
|
26
|
-
// Device Identity is based on MAC address: mac@stream_id [7]
|
|
27
|
-
MAC = 7,
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Return list of DeviceIdentityCode values and their display names
|
|
32
|
-
export function GetDeviceIdentityCodes() : Map<DeviceIdentityCode, string> {
|
|
33
|
-
|
|
34
|
-
let result = new Map<DeviceIdentityCode, string>();
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
result.set(DeviceIdentityCode.UNDEFINED, 'Undefined');
|
|
38
|
-
|
|
39
|
-
result.set(DeviceIdentityCode.AUTO, 'Auto');
|
|
40
|
-
|
|
41
|
-
result.set(DeviceIdentityCode.IP, 'Ip');
|
|
42
|
-
|
|
43
|
-
result.set(DeviceIdentityCode.IMSI, 'Imsi');
|
|
44
|
-
|
|
45
|
-
result.set(DeviceIdentityCode.ICCID, 'Iccid');
|
|
46
|
-
|
|
47
|
-
result.set(DeviceIdentityCode.MSISDN, 'Msisdn');
|
|
48
|
-
|
|
49
|
-
result.set(DeviceIdentityCode.IMEI, 'Imei');
|
|
50
|
-
|
|
51
|
-
result.set(DeviceIdentityCode.MAC, 'Mac');
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return result;
|
|
55
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Device status code
|
|
3
|
-
export enum DeviceStatusCode {
|
|
4
|
-
|
|
5
|
-
// Undefined [0]
|
|
6
|
-
UNDEFINED = 0,
|
|
7
|
-
|
|
8
|
-
// Device is registered and pending verification [1]
|
|
9
|
-
PENDING = 1,
|
|
10
|
-
|
|
11
|
-
// Active device in the system [2]
|
|
12
|
-
ACTIVE = 2,
|
|
13
|
-
|
|
14
|
-
// Inactive device [3]
|
|
15
|
-
INACTIVE = 3,
|
|
16
|
-
|
|
17
|
-
// Blocked device [4]
|
|
18
|
-
BLOCKED = 4,
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Return list of DeviceStatusCode values and their display names
|
|
23
|
-
export function GetDeviceStatusCodes() : Map<DeviceStatusCode, string> {
|
|
24
|
-
|
|
25
|
-
let result = new Map<DeviceStatusCode, string>();
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
result.set(DeviceStatusCode.UNDEFINED, 'Undefined');
|
|
29
|
-
|
|
30
|
-
result.set(DeviceStatusCode.PENDING, 'Pending');
|
|
31
|
-
|
|
32
|
-
result.set(DeviceStatusCode.ACTIVE, 'Active');
|
|
33
|
-
|
|
34
|
-
result.set(DeviceStatusCode.INACTIVE, 'Inactive');
|
|
35
|
-
|
|
36
|
-
result.set(DeviceStatusCode.BLOCKED, 'Blocked');
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return result;
|
|
40
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Device type code
|
|
3
|
-
export enum DeviceTypeCode {
|
|
4
|
-
|
|
5
|
-
// Undefined [0]
|
|
6
|
-
UNDEFINED = 0,
|
|
7
|
-
|
|
8
|
-
// Other (Unknown Device) [1]
|
|
9
|
-
OTHER = 1,
|
|
10
|
-
|
|
11
|
-
// Industrial Controller [2]
|
|
12
|
-
CONTROLLER = 2,
|
|
13
|
-
|
|
14
|
-
// General smart meter [3]
|
|
15
|
-
METER = 3,
|
|
16
|
-
|
|
17
|
-
// General sensor [4]
|
|
18
|
-
SENSOR = 4,
|
|
19
|
-
|
|
20
|
-
// General camera [5]
|
|
21
|
-
CAMERA = 5,
|
|
22
|
-
|
|
23
|
-
// Point of sale [6]
|
|
24
|
-
POS = 6,
|
|
25
|
-
|
|
26
|
-
// Pump [7]
|
|
27
|
-
PUMP = 7,
|
|
28
|
-
|
|
29
|
-
// EV charging station [8]
|
|
30
|
-
CHARGING_STATION = 8,
|
|
31
|
-
|
|
32
|
-
// Smart lightning [9]
|
|
33
|
-
LIGHTNING = 9,
|
|
34
|
-
|
|
35
|
-
// Temperature sensor [10]
|
|
36
|
-
TEMPERATURE_SENSOR = 10,
|
|
37
|
-
|
|
38
|
-
// Air Quality sensor [11]
|
|
39
|
-
AIR_QUALITY_SENSOR = 11,
|
|
40
|
-
|
|
41
|
-
// Valve [12]
|
|
42
|
-
VALVE = 12,
|
|
43
|
-
|
|
44
|
-
// Gateway [13]
|
|
45
|
-
GATEWAY = 13,
|
|
46
|
-
|
|
47
|
-
// ATM [14]
|
|
48
|
-
ATM = 14,
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Return list of DeviceTypeCode values and their display names
|
|
53
|
-
export function GetDeviceTypeCodes() : Map<DeviceTypeCode, string> {
|
|
54
|
-
|
|
55
|
-
let result = new Map<DeviceTypeCode, string>();
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
result.set(DeviceTypeCode.UNDEFINED, 'Undefined');
|
|
59
|
-
|
|
60
|
-
result.set(DeviceTypeCode.OTHER, 'Other');
|
|
61
|
-
|
|
62
|
-
result.set(DeviceTypeCode.CONTROLLER, 'Controller');
|
|
63
|
-
|
|
64
|
-
result.set(DeviceTypeCode.METER, 'Meter');
|
|
65
|
-
|
|
66
|
-
result.set(DeviceTypeCode.SENSOR, 'Sensor');
|
|
67
|
-
|
|
68
|
-
result.set(DeviceTypeCode.CAMERA, 'Camera');
|
|
69
|
-
|
|
70
|
-
result.set(DeviceTypeCode.POS, 'Pos');
|
|
71
|
-
|
|
72
|
-
result.set(DeviceTypeCode.PUMP, 'Pump');
|
|
73
|
-
|
|
74
|
-
result.set(DeviceTypeCode.CHARGING_STATION, 'Charging Station');
|
|
75
|
-
|
|
76
|
-
result.set(DeviceTypeCode.LIGHTNING, 'Lightning');
|
|
77
|
-
|
|
78
|
-
result.set(DeviceTypeCode.TEMPERATURE_SENSOR, 'Temperature Sensor');
|
|
79
|
-
|
|
80
|
-
result.set(DeviceTypeCode.AIR_QUALITY_SENSOR, 'Air Quality Sensor');
|
|
81
|
-
|
|
82
|
-
result.set(DeviceTypeCode.VALVE, 'Valve');
|
|
83
|
-
|
|
84
|
-
result.set(DeviceTypeCode.GATEWAY, 'Gateway');
|
|
85
|
-
|
|
86
|
-
result.set(DeviceTypeCode.ATM, 'Atm');
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return result;
|
|
90
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Direction context code
|
|
3
|
-
export enum DirectionContextCode {
|
|
4
|
-
|
|
5
|
-
// Undefined [0]
|
|
6
|
-
UNDEFINED = 0,
|
|
7
|
-
|
|
8
|
-
// Event list context [1]
|
|
9
|
-
EVENT_LIST = 1,
|
|
10
|
-
|
|
11
|
-
// Device list context [2]
|
|
12
|
-
DEVICE_LIST = 2,
|
|
13
|
-
|
|
14
|
-
// Event details context [3]
|
|
15
|
-
EVENT_DETAILS = 3,
|
|
16
|
-
|
|
17
|
-
// Device details context [4]
|
|
18
|
-
DEVICE_DETAILS = 4,
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Return list of DirectionContextCode values and their display names
|
|
23
|
-
export function GetDirectionContextCodes() : Map<DirectionContextCode, string> {
|
|
24
|
-
|
|
25
|
-
let result = new Map<DirectionContextCode, string>();
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
result.set(DirectionContextCode.UNDEFINED, 'Undefined');
|
|
29
|
-
|
|
30
|
-
result.set(DirectionContextCode.EVENT_LIST, 'Event List');
|
|
31
|
-
|
|
32
|
-
result.set(DirectionContextCode.DEVICE_LIST, 'Device List');
|
|
33
|
-
|
|
34
|
-
result.set(DirectionContextCode.EVENT_DETAILS, 'Event Details');
|
|
35
|
-
|
|
36
|
-
result.set(DirectionContextCode.DEVICE_DETAILS, 'Device Details');
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return result;
|
|
40
|
-
}
|