@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.
Files changed (246) hide show
  1. package/dist/index.d.ts +4 -2
  2. package/dist/index.js +4 -2
  3. package/dist/index.js.map +1 -1
  4. package/dist/lib/common/TimeSeries.d.ts +1 -1
  5. package/dist/lib/common/TimeSeriesOf2D.d.ts +1 -1
  6. package/dist/lib/entities/Account.d.ts +2 -2
  7. package/dist/lib/entities/Account.js.map +1 -1
  8. package/dist/lib/entities/AccountDTO.d.ts +2 -2
  9. package/dist/lib/entities/AccountDTO.js.map +1 -1
  10. package/dist/lib/entities/AccountSettings.d.ts +1 -1
  11. package/dist/lib/entities/Alert.d.ts +4 -4
  12. package/dist/lib/entities/Alert.js.map +1 -1
  13. package/dist/lib/entities/AlertWithDevice.d.ts +4 -4
  14. package/dist/lib/entities/AlertWithDevice.js.map +1 -1
  15. package/dist/lib/entities/Device.d.ts +3 -3
  16. package/dist/lib/entities/Device.js.map +1 -1
  17. package/dist/lib/entities/DeviceWithEvents.d.ts +1 -1
  18. package/dist/lib/entities/DeviceWithEvents.js.map +1 -1
  19. package/dist/lib/entities/Event.d.ts +6 -6
  20. package/dist/lib/entities/Event.js.map +1 -1
  21. package/dist/lib/entities/EventWithDevice.d.ts +5 -5
  22. package/dist/lib/entities/EventWithDevice.js.map +1 -1
  23. package/dist/lib/entities/Feature.d.ts +1 -1
  24. package/dist/lib/entities/Feature.js.map +1 -1
  25. package/dist/lib/entities/Integration.d.ts +3 -3
  26. package/dist/lib/entities/Integration.js.map +1 -1
  27. package/dist/lib/entities/Report.d.ts +1 -1
  28. package/dist/lib/entities/Report.js.map +1 -1
  29. package/dist/lib/entities/Rule.d.ts +3 -3
  30. package/dist/lib/entities/Rule.js.map +1 -1
  31. package/dist/lib/entities/RuleTemplate.d.ts +2 -2
  32. package/dist/lib/entities/RuleTemplate.js.map +1 -1
  33. package/dist/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
  34. package/dist/lib/entities/StreamAnalyticsConfig.js.map +1 -1
  35. package/dist/lib/entities/StreamConfig.d.ts +4 -4
  36. package/dist/lib/entities/User.d.ts +2 -2
  37. package/dist/lib/entities/User.js.map +1 -1
  38. package/dist/lib/entities/UserMembership.d.ts +2 -2
  39. package/dist/lib/entities/UserMembership.js.map +1 -1
  40. package/dist/lib/pulse-client.d.ts +12 -12
  41. package/dist/lib/pulse-client.js +30 -30
  42. package/dist/lib/pulse-client.js.map +1 -1
  43. package/dist/lib/services/sysAccountsService.d.ts +1 -1
  44. package/dist/lib/services/sysFeaturesService.d.ts +1 -1
  45. package/dist/lib/services/usrAlertsService.d.ts +9 -9
  46. package/dist/lib/services/usrDevicesService.d.ts +5 -5
  47. package/dist/lib/services/usrEventsService.d.ts +7 -7
  48. package/package.json +1 -1
  49. package/src/index.ts +4 -3
  50. package/dist/public-api.d.ts +0 -3
  51. package/dist/public-api.js +0 -7
  52. package/dist/public-api.js.map +0 -1
  53. package/src/config.d.ts +0 -6
  54. package/src/config.d.ts.map +0 -1
  55. package/src/config.js +0 -6
  56. package/src/config.js.map +0 -1
  57. package/src/index.d.ts +0 -3
  58. package/src/index.d.ts.map +0 -1
  59. package/src/index.js +0 -3
  60. package/src/index.js.map +0 -1
  61. package/src/lib/common/AccountRole.ts +0 -25
  62. package/src/lib/common/ConsumptionData.ts +0 -24
  63. package/src/lib/common/ConsumptionTimeDataPoint.ts +0 -21
  64. package/src/lib/common/DeviceConfig.ts +0 -22
  65. package/src/lib/common/DeviceScoreConfig.ts +0 -24
  66. package/src/lib/common/DevicesAtRiskConfig.ts +0 -16
  67. package/src/lib/common/EventSeverityConfig.ts +0 -17
  68. package/src/lib/common/FloatKeyValue.ts +0 -20
  69. package/src/lib/common/GeoData.ts +0 -38
  70. package/src/lib/common/GraphSeries.ts +0 -21
  71. package/src/lib/common/Indicator.ts +0 -32
  72. package/src/lib/common/IntKeySeriesDataValue.ts +0 -21
  73. package/src/lib/common/IntKeyValue.ts +0 -20
  74. package/src/lib/common/Interval.ts +0 -20
  75. package/src/lib/common/Link.ts +0 -41
  76. package/src/lib/common/Location.ts +0 -20
  77. package/src/lib/common/LoginParams.ts +0 -24
  78. package/src/lib/common/MaliciousIPCard.ts +0 -45
  79. package/src/lib/common/MaliciousIPData.ts +0 -28
  80. package/src/lib/common/NetworkMap.ts +0 -22
  81. package/src/lib/common/Node.ts +0 -54
  82. package/src/lib/common/SeriesData.ts +0 -22
  83. package/src/lib/common/SessionTransform.ts +0 -29
  84. package/src/lib/common/SeverityIntervalTuple.ts +0 -22
  85. package/src/lib/common/ShieldexConfig.ts +0 -36
  86. package/src/lib/common/StringIntValue.ts +0 -20
  87. package/src/lib/common/StringKeyIntValue.ts +0 -20
  88. package/src/lib/common/StringKeyValue.ts +0 -20
  89. package/src/lib/common/Thresholds.ts +0 -16
  90. package/src/lib/common/TimeDataPoint.ts +0 -20
  91. package/src/lib/common/TimeDataPoint2D.ts +0 -21
  92. package/src/lib/common/TimeDataPointFloat.ts +0 -20
  93. package/src/lib/common/TimeFrame.ts +0 -20
  94. package/src/lib/common/TimeSeries.ts +0 -26
  95. package/src/lib/common/TimeSeriesOf2D.ts +0 -26
  96. package/src/lib/common/TimeSeriesOfDataConsumption.ts +0 -26
  97. package/src/lib/common/TimeSeriesOfFloat.ts +0 -26
  98. package/src/lib/common/TokenData.ts +0 -39
  99. package/src/lib/common/Tuple.ts +0 -20
  100. package/src/lib/common/UsageTransform.ts +0 -37
  101. package/src/lib/common/ZScore.ts +0 -20
  102. package/src/lib/common/index.ts +0 -41
  103. package/src/lib/entities/Account.ts +0 -45
  104. package/src/lib/entities/AccountDTO.ts +0 -49
  105. package/src/lib/entities/AccountSettings.ts +0 -31
  106. package/src/lib/entities/Action.ts +0 -30
  107. package/src/lib/entities/Alert.ts +0 -91
  108. package/src/lib/entities/AlertWithDevice.ts +0 -92
  109. package/src/lib/entities/ApiKey.ts +0 -33
  110. package/src/lib/entities/AuditLog.ts +0 -39
  111. package/src/lib/entities/BaseEntity.ts +0 -24
  112. package/src/lib/entities/BulkDevices.ts +0 -17
  113. package/src/lib/entities/Checkpoint.ts +0 -71
  114. package/src/lib/entities/ComplianceReportSettings.ts +0 -28
  115. package/src/lib/entities/Condition.ts +0 -28
  116. package/src/lib/entities/ConfigParam.ts +0 -15
  117. package/src/lib/entities/DNSRecord.ts +0 -40
  118. package/src/lib/entities/DataIngestion.ts +0 -63
  119. package/src/lib/entities/DataPointOfDeviceReport.ts +0 -21
  120. package/src/lib/entities/Device.ts +0 -82
  121. package/src/lib/entities/DeviceReport.ts +0 -29
  122. package/src/lib/entities/DeviceWithEvents.ts +0 -86
  123. package/src/lib/entities/Distribution.ts +0 -25
  124. package/src/lib/entities/Event.ts +0 -98
  125. package/src/lib/entities/EventOccurrence.ts +0 -34
  126. package/src/lib/entities/EventWithDevice.ts +0 -97
  127. package/src/lib/entities/Feature.ts +0 -18
  128. package/src/lib/entities/FeaturesGroup.ts +0 -18
  129. package/src/lib/entities/Group.ts +0 -24
  130. package/src/lib/entities/Image.ts +0 -18
  131. package/src/lib/entities/Insight.ts +0 -49
  132. package/src/lib/entities/InsightQuery.ts +0 -29
  133. package/src/lib/entities/InsightSpec.ts +0 -28
  134. package/src/lib/entities/IntDistribution.ts +0 -25
  135. package/src/lib/entities/Integration.ts +0 -81
  136. package/src/lib/entities/Member.ts +0 -22
  137. package/src/lib/entities/Radius.ts +0 -45
  138. package/src/lib/entities/Report.ts +0 -37
  139. package/src/lib/entities/Rule.ts +0 -65
  140. package/src/lib/entities/RuleTemplate.ts +0 -38
  141. package/src/lib/entities/SIM.ts +0 -32
  142. package/src/lib/entities/ServiceStatus.ts +0 -26
  143. package/src/lib/entities/SessionRecord.ts +0 -71
  144. package/src/lib/entities/Shieldex.ts +0 -23
  145. package/src/lib/entities/Stream.ts +0 -31
  146. package/src/lib/entities/StreamAnalyticsConfig.ts +0 -30
  147. package/src/lib/entities/StreamConfig.ts +0 -52
  148. package/src/lib/entities/TeaserPopUpSettings.ts +0 -24
  149. package/src/lib/entities/TimeSeriesOfDeviceReport.ts +0 -26
  150. package/src/lib/entities/UsageRecord.ts +0 -101
  151. package/src/lib/entities/User.ts +0 -45
  152. package/src/lib/entities/UserMembership.ts +0 -38
  153. package/src/lib/entities/UserMemberships.ts +0 -38
  154. package/src/lib/entities/index.ts +0 -51
  155. package/src/lib/enums/AccountStatusCode.ts +0 -35
  156. package/src/lib/enums/AccountTypeCode.ts +0 -40
  157. package/src/lib/enums/DataSourceCode.ts +0 -35
  158. package/src/lib/enums/DeviceActionCode.ts +0 -40
  159. package/src/lib/enums/DeviceCreationCode.ts +0 -40
  160. package/src/lib/enums/DeviceIdentityCode.ts +0 -55
  161. package/src/lib/enums/DeviceStatusCode.ts +0 -40
  162. package/src/lib/enums/DeviceTypeCode.ts +0 -90
  163. package/src/lib/enums/DirectionContextCode.ts +0 -40
  164. package/src/lib/enums/EventCategoryCode.ts +0 -30
  165. package/src/lib/enums/EventStatusCode.ts +0 -40
  166. package/src/lib/enums/EventTypeCode.ts +0 -115
  167. package/src/lib/enums/FeatureCode.ts +0 -70
  168. package/src/lib/enums/HomePageViewCode.ts +0 -35
  169. package/src/lib/enums/HttpMethodCode.ts +0 -45
  170. package/src/lib/enums/InsightStatusCode.ts +0 -35
  171. package/src/lib/enums/InsightTypeCode.ts +0 -30
  172. package/src/lib/enums/IntegrationTriggerCode.ts +0 -30
  173. package/src/lib/enums/IntegrationTypeCode.ts +0 -40
  174. package/src/lib/enums/MemberRoleCode.ts +0 -40
  175. package/src/lib/enums/NetworkMapTypeCode.ts +0 -35
  176. package/src/lib/enums/OperatorCode.ts +0 -75
  177. package/src/lib/enums/PermissionCode.ts +0 -45
  178. package/src/lib/enums/ReportTypeCode.ts +0 -35
  179. package/src/lib/enums/RuleTypeCode.ts +0 -35
  180. package/src/lib/enums/SeverityTypeCode.ts +0 -40
  181. package/src/lib/enums/TrafficDirectionCode.ts +0 -35
  182. package/src/lib/enums/UserStatusCode.ts +0 -40
  183. package/src/lib/enums/UserTypeCode.ts +0 -40
  184. package/src/lib/enums/index.ts +0 -29
  185. package/src/lib/index.ts +0 -4
  186. package/src/lib/pulse-client.ts +0 -190
  187. package/src/lib/services/index.ts +0 -26
  188. package/src/lib/services/services.export.ts +0 -54
  189. package/src/lib/services/supportStreamAnalyticsConfig.ts +0 -63
  190. package/src/lib/services/sysAccountsService.ts +0 -90
  191. package/src/lib/services/sysAuditLogService.ts +0 -72
  192. package/src/lib/services/sysCheckpointsService.ts +0 -62
  193. package/src/lib/services/sysConfigService.ts +0 -63
  194. package/src/lib/services/sysFeaturesService.ts +0 -77
  195. package/src/lib/services/sysGroupsService.ts +0 -85
  196. package/src/lib/services/sysInsightsService.ts +0 -122
  197. package/src/lib/services/sysKeysService.ts +0 -71
  198. package/src/lib/services/sysMembersService.ts +0 -66
  199. package/src/lib/services/sysRuleTemplatesService.ts +0 -63
  200. package/src/lib/services/sysRulesService.ts +0 -79
  201. package/src/lib/services/sysStatisticsService.ts +0 -50
  202. package/src/lib/services/sysStreamsService.ts +0 -64
  203. package/src/lib/services/sysUsersService.ts +0 -89
  204. package/src/lib/services/usrAlertsService.ts +0 -382
  205. package/src/lib/services/usrDevicesService.ts +0 -303
  206. package/src/lib/services/usrEventsService.ts +0 -355
  207. package/src/lib/services/usrInsightsService.ts +0 -29
  208. package/src/lib/services/usrIntegrationsService.ts +0 -79
  209. package/src/lib/services/usrMembersService.ts +0 -77
  210. package/src/lib/services/usrNetworkService.ts +0 -59
  211. package/src/lib/services/usrReportsService.ts +0 -114
  212. package/src/lib/services/usrRulesService.ts +0 -78
  213. package/src/lib/services/usrUserService.ts +0 -114
  214. package/src/public-api.d.ts +0 -4
  215. package/src/public-api.d.ts.map +0 -1
  216. package/src/public-api.js +0 -7
  217. package/src/public-api.js.map +0 -1
  218. package/src/public-api.ts +0 -9
  219. package/src/utils/ActionResponse.d.ts +0 -6
  220. package/src/utils/ActionResponse.d.ts.map +0 -1
  221. package/src/utils/ActionResponse.js +0 -9
  222. package/src/utils/ActionResponse.js.map +0 -1
  223. package/src/utils/BaseRestResponse.d.ts +0 -5
  224. package/src/utils/BaseRestResponse.d.ts.map +0 -1
  225. package/src/utils/BaseRestResponse.js +0 -8
  226. package/src/utils/BaseRestResponse.js.map +0 -1
  227. package/src/utils/EntitiesResponse.d.ts +0 -9
  228. package/src/utils/EntitiesResponse.d.ts.map +0 -1
  229. package/src/utils/EntitiesResponse.js +0 -15
  230. package/src/utils/EntitiesResponse.js.map +0 -1
  231. package/src/utils/EntityResponse.d.ts +0 -9
  232. package/src/utils/EntityResponse.d.ts.map +0 -1
  233. package/src/utils/EntityResponse.js +0 -15
  234. package/src/utils/EntityResponse.js.map +0 -1
  235. package/src/utils/index.d.ts +0 -6
  236. package/src/utils/index.d.ts.map +0 -1
  237. package/src/utils/index.js +0 -6
  238. package/src/utils/index.js.map +0 -1
  239. package/src/utils/rest-axios-setup.d.ts +0 -4
  240. package/src/utils/rest-axios-setup.d.ts.map +0 -1
  241. package/src/utils/rest-axios-setup.js +0 -8
  242. package/src/utils/rest-axios-setup.js.map +0 -1
  243. package/src/utils/rest-util.d.ts +0 -16
  244. package/src/utils/rest-util.d.ts.map +0 -1
  245. package/src/utils/rest-util.js +0 -101
  246. package/src/utils/rest-util.js.map +0 -1
@@ -1,30 +0,0 @@
1
-
2
- // Event category code
3
- export enum EventCategoryCode {
4
-
5
- // Undefined [0]
6
- UNDEFINED = 0,
7
-
8
- // Cyber-Security event [1]
9
- SECURITY = 1,
10
-
11
- // Operational event [2]
12
- OPERATIONS = 2,
13
-
14
- }
15
-
16
- // Return list of EventCategoryCode values and their display names
17
- export function GetEventCategoryCodes() : Map<EventCategoryCode, string> {
18
-
19
- let result = new Map<EventCategoryCode, string>();
20
-
21
-
22
- result.set(EventCategoryCode.UNDEFINED, 'Undefined');
23
-
24
- result.set(EventCategoryCode.SECURITY, 'Security');
25
-
26
- result.set(EventCategoryCode.OPERATIONS, 'Operations');
27
-
28
-
29
- return result;
30
- }
@@ -1,40 +0,0 @@
1
-
2
- // Event workflow status code
3
- export enum EventStatusCode {
4
-
5
- // Undefined [0]
6
- UNDEFINED = 0,
7
-
8
- // New event [1]
9
- NEW = 1,
10
-
11
- // Open event, handled by the operator [2]
12
- OPEN = 2,
13
-
14
- // Closed event (tagged as True event) [3]
15
- CLOSED_TRUE = 3,
16
-
17
- // Closed event (tagged as False event) [4]
18
- CLOSED_FALSE = 4,
19
-
20
- }
21
-
22
- // Return list of EventStatusCode values and their display names
23
- export function GetEventStatusCodes() : Map<EventStatusCode, string> {
24
-
25
- let result = new Map<EventStatusCode, string>();
26
-
27
-
28
- result.set(EventStatusCode.UNDEFINED, 'Undefined');
29
-
30
- result.set(EventStatusCode.NEW, 'New');
31
-
32
- result.set(EventStatusCode.OPEN, 'Open');
33
-
34
- result.set(EventStatusCode.CLOSED_TRUE, 'Closed True');
35
-
36
- result.set(EventStatusCode.CLOSED_FALSE, 'Closed False');
37
-
38
-
39
- return result;
40
- }
@@ -1,115 +0,0 @@
1
-
2
- // Event type code
3
- export enum EventTypeCode {
4
-
5
- // Undefined [0]
6
- UNDEFINED = 0,
7
-
8
- // Other (Unknown Event) [1]
9
- OTHER = 1,
10
-
11
- // Device Takeover [2]
12
- DEVICE_TAKEOVER = 2,
13
-
14
- // DDoS [3]
15
- DDOS = 3,
16
-
17
- // Unknown Malware [4]
18
- UNKNOWN_MALWARE = 4,
19
-
20
- // Man-in-the-Middle [5]
21
- MAN_IN_THE_MIDDLE = 5,
22
-
23
- // Data Theft [6]
24
- DATA_THEFT = 6,
25
-
26
- // Port Scanning [7]
27
- PORT_SCANNING = 7,
28
-
29
- // Abnormal Download [8]
30
- ABNORMAL_DOWNLOAD = 8,
31
-
32
- // Abnormal Incoming Connection [9]
33
- ABNORMAL_INCOMING_CONNECTION = 9,
34
-
35
- // Unsuccessful Connection Attempts [10]
36
- UNSUCCESSFUL_CONNECTION_ATTEMPTS = 10,
37
-
38
- // High Volume Transmit [11]
39
- HIGH_VOLUME_TRANSIT = 11,
40
-
41
- // Device Level Attack [12]
42
- DEVICE_LEVEL_ATTACK = 12,
43
-
44
- // Replay Attack [13]
45
- REPLAY_ATTACK = 13,
46
-
47
- // Attempted Device Takeover [14]
48
- DEVICE_TAKEOVER_ATTEMPT = 14,
49
-
50
- // Unknown Operation [15]
51
- UNKNOWN_OPERATION = 15,
52
-
53
- // Crypto Mining [16]
54
- CRYPTO_MINING = 16,
55
-
56
- // Suspicious IP [17]
57
- SUSPICIOUS_IP = 17,
58
-
59
- // Abnormal number of outbound ports [18]
60
- ABNORMAL_OUTBOUND_PORTS = 18,
61
-
62
- // Abnormal number of outbound endpoints (destinations) [19]
63
- ABNORMAL_OUTBOUND_ENDPOINTS = 19,
64
-
65
- }
66
-
67
- // Return list of EventTypeCode values and their display names
68
- export function GetEventTypeCodes() : Map<EventTypeCode, string> {
69
-
70
- let result = new Map<EventTypeCode, string>();
71
-
72
-
73
- result.set(EventTypeCode.UNDEFINED, 'Undefined');
74
-
75
- result.set(EventTypeCode.OTHER, 'Other');
76
-
77
- result.set(EventTypeCode.DEVICE_TAKEOVER, 'Device Takeover');
78
-
79
- result.set(EventTypeCode.DDOS, 'Ddos');
80
-
81
- result.set(EventTypeCode.UNKNOWN_MALWARE, 'Unknown Malware');
82
-
83
- result.set(EventTypeCode.MAN_IN_THE_MIDDLE, 'Man In The Middle');
84
-
85
- result.set(EventTypeCode.DATA_THEFT, 'Data Theft');
86
-
87
- result.set(EventTypeCode.PORT_SCANNING, 'Port Scanning');
88
-
89
- result.set(EventTypeCode.ABNORMAL_DOWNLOAD, 'Abnormal Download');
90
-
91
- result.set(EventTypeCode.ABNORMAL_INCOMING_CONNECTION, 'Abnormal Incoming Connection');
92
-
93
- result.set(EventTypeCode.UNSUCCESSFUL_CONNECTION_ATTEMPTS, 'Unsuccessful Connection Attempts');
94
-
95
- result.set(EventTypeCode.HIGH_VOLUME_TRANSIT, 'High Volume Transit');
96
-
97
- result.set(EventTypeCode.DEVICE_LEVEL_ATTACK, 'Device Level Attack');
98
-
99
- result.set(EventTypeCode.REPLAY_ATTACK, 'Replay Attack');
100
-
101
- result.set(EventTypeCode.DEVICE_TAKEOVER_ATTEMPT, 'Device Takeover Attempt');
102
-
103
- result.set(EventTypeCode.UNKNOWN_OPERATION, 'Unknown Operation');
104
-
105
- result.set(EventTypeCode.CRYPTO_MINING, 'Crypto Mining');
106
-
107
- result.set(EventTypeCode.SUSPICIOUS_IP, 'Suspicious Ip');
108
-
109
- result.set(EventTypeCode.ABNORMAL_OUTBOUND_PORTS, 'Abnormal Outbound Ports');
110
-
111
- result.set(EventTypeCode.ABNORMAL_OUTBOUND_ENDPOINTS, 'Abnormal Outbound Endpoints');
112
-
113
-
114
- return result;
115
- }
@@ -1,70 +0,0 @@
1
-
2
- // Feature code
3
- export enum FeatureCode {
4
-
5
- // Undefined [0]
6
- UNDEFINED = 0,
7
-
8
- // Export events to CSV file [1]
9
- EVENTS_EXPORT = 1,
10
-
11
- // Download pcap files to analyze the event[2]
12
- EVENT_SOURCE_FILES = 2,
13
-
14
- // Apply preventive action on the event [3]
15
- EVENT_ACTION = 3,
16
-
17
- // Export devices to CSV file [4]
18
- DEVICES_EXPORT = 4,
19
-
20
- // Device network map [5]
21
- DEVICE_NETWORK_MAP = 5,
22
-
23
- // Apply preventive action on the device [6]
24
- DEVICE_ACTIONS = 6,
25
-
26
- // Apply preventive action on the device [7]
27
- NETWORK_MAP = 7,
28
-
29
- // Create and download compliance report
30
- COMPLIANCE_REPORTS = 8,
31
-
32
- // Configure user-defined rules
33
- CUSTOM_RULES = 9,
34
-
35
- // Enable push integrations
36
- INTEGRATIONS = 10,
37
-
38
- }
39
-
40
- // Return list of FeatureCode values and their display names
41
- export function GetFeatureCodes() : Map<FeatureCode, string> {
42
-
43
- let result = new Map<FeatureCode, string>();
44
-
45
-
46
- result.set(FeatureCode.UNDEFINED, 'Undefined');
47
-
48
- result.set(FeatureCode.EVENTS_EXPORT, 'Events Export');
49
-
50
- result.set(FeatureCode.EVENT_SOURCE_FILES, 'Event Source Files');
51
-
52
- result.set(FeatureCode.EVENT_ACTION, 'Event Action');
53
-
54
- result.set(FeatureCode.DEVICES_EXPORT, 'Devices Export');
55
-
56
- result.set(FeatureCode.DEVICE_NETWORK_MAP, 'Device Network Map');
57
-
58
- result.set(FeatureCode.DEVICE_ACTIONS, 'Device Actions');
59
-
60
- result.set(FeatureCode.NETWORK_MAP, 'Network Map');
61
-
62
- result.set(FeatureCode.COMPLIANCE_REPORTS, 'Compliance Reports');
63
-
64
- result.set(FeatureCode.CUSTOM_RULES, 'Custom Rules');
65
-
66
- result.set(FeatureCode.INTEGRATIONS, 'Integrations');
67
-
68
-
69
- return result;
70
- }
@@ -1,35 +0,0 @@
1
-
2
- // Home Page View code
3
- export enum HomePageViewCode {
4
-
5
- // Undefined [0]
6
- UNDEFINED = 0,
7
-
8
- // System view [1]
9
- SYSTEM = 1,
10
-
11
- // Devices View [2]
12
- DEVICES = 2,
13
-
14
- // Malicious IP view [3]
15
- MALICIOUS = 3,
16
-
17
- }
18
-
19
- // Return list of HomePageViewCode values and their display names
20
- export function GetHomePageViewCodes() : Map<HomePageViewCode, string> {
21
-
22
- let result = new Map<HomePageViewCode, string>();
23
-
24
-
25
- result.set(HomePageViewCode.UNDEFINED, 'Undefined');
26
-
27
- result.set(HomePageViewCode.SYSTEM, 'System');
28
-
29
- result.set(HomePageViewCode.DEVICES, 'Devices');
30
-
31
- result.set(HomePageViewCode.MALICIOUS, 'Malicious');
32
-
33
-
34
- return result;
35
- }
@@ -1,45 +0,0 @@
1
-
2
- // HTTP method code
3
- export enum HttpMethodCode {
4
-
5
- // Undefined [0]
6
- UNDEFINED = 0,
7
-
8
- // HTTP GET (read) [1]
9
- GET = 1,
10
-
11
- // HTTP POST (create) [2]
12
- POST = 2,
13
-
14
- // HTTP PUT (update/replace) [3]
15
- PUT = 3,
16
-
17
- // HTTP PATCH (update/modify) [4]
18
- PATCH = 4,
19
-
20
- // HTTP DELETE (delete) [5]
21
- DELETE = 5,
22
-
23
- }
24
-
25
- // Return list of HttpMethodCode values and their display names
26
- export function GetHttpMethodCodes() : Map<HttpMethodCode, string> {
27
-
28
- let result = new Map<HttpMethodCode, string>();
29
-
30
-
31
- result.set(HttpMethodCode.UNDEFINED, 'Undefined');
32
-
33
- result.set(HttpMethodCode.GET, 'Get');
34
-
35
- result.set(HttpMethodCode.POST, 'Post');
36
-
37
- result.set(HttpMethodCode.PUT, 'Put');
38
-
39
- result.set(HttpMethodCode.PATCH, 'Patch');
40
-
41
- result.set(HttpMethodCode.DELETE, 'Delete');
42
-
43
-
44
- return result;
45
- }
@@ -1,35 +0,0 @@
1
-
2
- // Insight status code
3
- export enum InsightStatusCode {
4
-
5
- // Undefined [0]
6
- UNDEFINED = 0,
7
-
8
- // Inactive (muted) insight [1]
9
- INACTIVE = 1,
10
-
11
- // Pending insight (not visible yet - for testing only) [2]
12
- PENDING = 2,
13
-
14
- // Active insight [3]
15
- ACTIVE = 3,
16
-
17
- }
18
-
19
- // Return list of InsightStatusCode values and their display names
20
- export function GetInsightStatusCodes() : Map<InsightStatusCode, string> {
21
-
22
- let result = new Map<InsightStatusCode, string>();
23
-
24
-
25
- result.set(InsightStatusCode.UNDEFINED, 'Undefined');
26
-
27
- result.set(InsightStatusCode.INACTIVE, 'Inactive');
28
-
29
- result.set(InsightStatusCode.PENDING, 'Pending');
30
-
31
- result.set(InsightStatusCode.ACTIVE, 'Active');
32
-
33
-
34
- return result;
35
- }
@@ -1,30 +0,0 @@
1
-
2
- // Insight type code
3
- export enum InsightTypeCode {
4
-
5
- // Undefined [0]
6
- UNDEFINED = 0,
7
-
8
- // Event Group insight [1]
9
- EVENTS = 1,
10
-
11
- // Statistical insight [2]
12
- STATISTICS = 2,
13
-
14
- }
15
-
16
- // Return list of InsightTypeCode values and their display names
17
- export function GetInsightTypeCodes() : Map<InsightTypeCode, string> {
18
-
19
- let result = new Map<InsightTypeCode, string>();
20
-
21
-
22
- result.set(InsightTypeCode.UNDEFINED, 'Undefined');
23
-
24
- result.set(InsightTypeCode.EVENTS, 'Events');
25
-
26
- result.set(InsightTypeCode.STATISTICS, 'Statistics');
27
-
28
-
29
- return result;
30
- }
@@ -1,30 +0,0 @@
1
-
2
- // Integration trigger code
3
- export enum IntegrationTriggerCode {
4
-
5
- // Undefined [0]
6
- UNDEFINED = 0,
7
-
8
- // EVENT based integration [1]
9
- EVENT = 1,
10
-
11
- // ACTION based integration [2]
12
- ACTION = 2,
13
-
14
- }
15
-
16
- // Return list of IntegrationTriggerCode values and their display names
17
- export function GetIntegrationTriggerCodes() : Map<IntegrationTriggerCode, string> {
18
-
19
- let result = new Map<IntegrationTriggerCode, string>();
20
-
21
-
22
- result.set(IntegrationTriggerCode.UNDEFINED, 'Undefined');
23
-
24
- result.set(IntegrationTriggerCode.EVENT, 'Event');
25
-
26
- result.set(IntegrationTriggerCode.ACTION, 'Action');
27
-
28
-
29
- return result;
30
- }
@@ -1,40 +0,0 @@
1
-
2
- // Integration type code
3
- export enum IntegrationTypeCode {
4
-
5
- // Undefined [0]
6
- UNDEFINED = 0,
7
-
8
- // General HTTP(S) based integration [1]
9
- HTTP = 1,
10
-
11
- // General SMTP based integration [2]
12
- SMTP = 2,
13
-
14
- // Internal email service integration [3]
15
- EMAIL = 3,
16
-
17
- // Internal SMS service integration [4]
18
- SMS = 4,
19
-
20
- }
21
-
22
- // Return list of IntegrationTypeCode values and their display names
23
- export function GetIntegrationTypeCodes() : Map<IntegrationTypeCode, string> {
24
-
25
- let result = new Map<IntegrationTypeCode, string>();
26
-
27
-
28
- result.set(IntegrationTypeCode.UNDEFINED, 'Undefined');
29
-
30
- result.set(IntegrationTypeCode.HTTP, 'Http');
31
-
32
- result.set(IntegrationTypeCode.SMTP, 'Smtp');
33
-
34
- result.set(IntegrationTypeCode.EMAIL, 'Email');
35
-
36
- result.set(IntegrationTypeCode.SMS, 'Sms');
37
-
38
-
39
- return result;
40
- }
@@ -1,40 +0,0 @@
1
-
2
- // Member role code (represent role of user in the account)
3
- export enum MemberRoleCode {
4
-
5
- // Undefined [0]
6
- UNDEFINED = 0,
7
-
8
- // Account administrator can perform all operations [1]
9
- ADMIN = 1,
10
-
11
- // Supervisor can perform operations on events and generate reports [2]
12
- SUPERVISOR = 2,
13
-
14
- // Account operator can perform operations on events only [3]
15
- OPERATOR = 3,
16
-
17
- // Viewer has read-only permissions [4]
18
- VIEWER = 4,
19
-
20
- }
21
-
22
- // Return list of MemberRoleCode values and their display names
23
- export function GetMemberRoleCodes() : Map<MemberRoleCode, string> {
24
-
25
- let result = new Map<MemberRoleCode, string>();
26
-
27
-
28
- result.set(MemberRoleCode.UNDEFINED, 'Undefined');
29
-
30
- result.set(MemberRoleCode.ADMIN, 'Admin');
31
-
32
- result.set(MemberRoleCode.SUPERVISOR, 'Supervisor');
33
-
34
- result.set(MemberRoleCode.OPERATOR, 'Operator');
35
-
36
- result.set(MemberRoleCode.VIEWER, 'Viewer');
37
-
38
-
39
- return result;
40
- }
@@ -1,35 +0,0 @@
1
-
2
- // NetworkMapTypeCode represents the type of network maps
3
- export enum NetworkMapTypeCode {
4
-
5
- // Undefined [0]
6
- UNDEFINED = 0,
7
-
8
- // Top devices network map [1]
9
- TOP_DEVICES = 1,
10
-
11
- // Top malicious IP network map [2]
12
- TOP_MALICIOUS_IPS = 2,
13
-
14
- // Network devices network map [3]
15
- NETWORK = 3,
16
-
17
- }
18
-
19
- // Return list of NetworkMapTypeCode values and their display names
20
- export function GetNetworkMapTypeCodes() : Map<NetworkMapTypeCode, string> {
21
-
22
- let result = new Map<NetworkMapTypeCode, string>();
23
-
24
-
25
- result.set(NetworkMapTypeCode.UNDEFINED, 'Undefined');
26
-
27
- result.set(NetworkMapTypeCode.TOP_DEVICES, 'Top Devices');
28
-
29
- result.set(NetworkMapTypeCode.TOP_MALICIOUS_IPS, 'Top Malicious Ips');
30
-
31
- result.set(NetworkMapTypeCode.NETWORK, 'Network');
32
-
33
-
34
- return result;
35
- }
@@ -1,75 +0,0 @@
1
-
2
- // OperatorCode represents the rule condition operator such as equal, not equal, less than ...
3
- export enum OperatorCode {
4
-
5
- // Undefined [0]
6
- UNDEFINED = 0,
7
-
8
- // Equal (=) [1]
9
- EQ = 1,
10
-
11
- // Not Equal (!=) [2]
12
- NEQ = 2,
13
-
14
- // Greater than (>) [3]
15
- GT = 3,
16
-
17
- // Greater than or equal (>=) [4]
18
- GTE = 4,
19
-
20
- // Less than (<) [5]
21
- LT = 5,
22
-
23
- // Less than or equal (<=)
24
- LTE = 6,
25
-
26
- // Value included in the list (*) [7]
27
- IN = 7,
28
-
29
- // Value not included in the list (-) [8]
30
- NOTIN = 8,
31
-
32
- // Value is in the range of 2 elements [9]
33
- RANGE = 9,
34
-
35
- // Partial similarity with wildcards (~) [10]
36
- LIKE = 10,
37
-
38
- // Array field contains one of the values (@) [11]
39
- CONTAINS = 11,
40
-
41
- }
42
-
43
- // Return list of OperatorCode values and their display names
44
- export function GetOperatorCodes() : Map<OperatorCode, string> {
45
-
46
- let result = new Map<OperatorCode, string>();
47
-
48
-
49
- result.set(OperatorCode.UNDEFINED, 'Undefined');
50
-
51
- result.set(OperatorCode.EQ, 'Eq');
52
-
53
- result.set(OperatorCode.NEQ, 'Neq');
54
-
55
- result.set(OperatorCode.GT, 'Gt');
56
-
57
- result.set(OperatorCode.GTE, 'Gte');
58
-
59
- result.set(OperatorCode.LT, 'Lt');
60
-
61
- result.set(OperatorCode.LTE, 'Lte');
62
-
63
- result.set(OperatorCode.IN, 'In');
64
-
65
- result.set(OperatorCode.NOTIN, 'Notin');
66
-
67
- result.set(OperatorCode.RANGE, 'Range');
68
-
69
- result.set(OperatorCode.LIKE, 'Like');
70
-
71
- result.set(OperatorCode.CONTAINS, 'Contains');
72
-
73
-
74
- return result;
75
- }
@@ -1,45 +0,0 @@
1
-
2
- // Permission flag (it can combine several values)
3
- export enum PermissionCode {
4
-
5
- // Undefined [0]
6
- UNDEFINED = 0,
7
-
8
- // Read permission [1]
9
- READ = 1,
10
-
11
- // Create permission [2]
12
- CREATE = 2,
13
-
14
- // Update permission [4]
15
- UPDATE = 4,
16
-
17
- // Delete permission [8]
18
- DELETE = 8,
19
-
20
- // Action permission [16]
21
- ACTION = 16,
22
-
23
- }
24
-
25
- // Return list of PermissionCode values and their display names
26
- export function GetPermissionCodes() : Map<PermissionCode, string> {
27
-
28
- let result = new Map<PermissionCode, string>();
29
-
30
-
31
- result.set(PermissionCode.UNDEFINED, 'Undefined');
32
-
33
- result.set(PermissionCode.READ, 'Read');
34
-
35
- result.set(PermissionCode.CREATE, 'Create');
36
-
37
- result.set(PermissionCode.UPDATE, 'Update');
38
-
39
- result.set(PermissionCode.DELETE, 'Delete');
40
-
41
- result.set(PermissionCode.ACTION, 'Action');
42
-
43
-
44
- return result;
45
- }