@shieldiot/pulse-lib 1.0.5 → 1.0.7

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 (244) 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/SeverityIntervalTuple.d.ts +1 -1
  5. package/dist/lib/common/TimeSeriesOfFloat.d.ts +1 -1
  6. package/dist/lib/common/TokenData.d.ts +1 -1
  7. package/dist/lib/entities/Account.d.ts +1 -1
  8. package/dist/lib/entities/Account.js.map +1 -1
  9. package/dist/lib/entities/AccountDTO.d.ts +3 -3
  10. package/dist/lib/entities/AccountDTO.js.map +1 -1
  11. package/dist/lib/entities/AccountSettings.d.ts +1 -1
  12. package/dist/lib/entities/Alert.d.ts +4 -4
  13. package/dist/lib/entities/Alert.js.map +1 -1
  14. package/dist/lib/entities/AlertWithDevice.d.ts +4 -4
  15. package/dist/lib/entities/AlertWithDevice.js.map +1 -1
  16. package/dist/lib/entities/ApiKey.d.ts +1 -1
  17. package/dist/lib/entities/ApiKey.js.map +1 -1
  18. package/dist/lib/entities/DeviceWithEvents.d.ts +2 -2
  19. package/dist/lib/entities/DeviceWithEvents.js.map +1 -1
  20. package/dist/lib/entities/Event.d.ts +3 -3
  21. package/dist/lib/entities/Event.js.map +1 -1
  22. package/dist/lib/entities/EventWithDevice.d.ts +7 -7
  23. package/dist/lib/entities/EventWithDevice.js.map +1 -1
  24. package/dist/lib/entities/Feature.d.ts +1 -1
  25. package/dist/lib/entities/Feature.js.map +1 -1
  26. package/dist/lib/entities/Insight.d.ts +1 -1
  27. package/dist/lib/entities/Insight.js.map +1 -1
  28. package/dist/lib/entities/Integration.d.ts +2 -2
  29. package/dist/lib/entities/Integration.js.map +1 -1
  30. package/dist/lib/entities/Rule.d.ts +1 -1
  31. package/dist/lib/entities/Rule.js.map +1 -1
  32. package/dist/lib/entities/RuleTemplate.d.ts +1 -1
  33. package/dist/lib/entities/RuleTemplate.js.map +1 -1
  34. package/dist/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
  35. package/dist/lib/entities/StreamAnalyticsConfig.js.map +1 -1
  36. package/dist/lib/entities/StreamConfig.d.ts +2 -2
  37. package/dist/lib/services/sysAccountsService.d.ts +2 -2
  38. package/dist/lib/services/sysFeaturesService.d.ts +1 -1
  39. package/dist/lib/services/sysRulesService.d.ts +1 -1
  40. package/dist/lib/services/sysUsersService.d.ts +2 -2
  41. package/dist/lib/services/usrAlertsService.d.ts +9 -9
  42. package/dist/lib/services/usrDevicesService.d.ts +7 -7
  43. package/dist/lib/services/usrEventsService.d.ts +8 -8
  44. package/dist/lib/services/usrRulesService.d.ts +1 -1
  45. package/dist/lib/services/usrUserService.d.ts +1 -1
  46. package/package.json +1 -1
  47. package/src/index.ts +4 -3
  48. package/dist/public-api.d.ts +0 -3
  49. package/dist/public-api.js +0 -7
  50. package/dist/public-api.js.map +0 -1
  51. package/src/config.d.ts +0 -6
  52. package/src/config.d.ts.map +0 -1
  53. package/src/config.js +0 -6
  54. package/src/config.js.map +0 -1
  55. package/src/index.d.ts +0 -3
  56. package/src/index.d.ts.map +0 -1
  57. package/src/index.js +0 -3
  58. package/src/index.js.map +0 -1
  59. package/src/lib/common/AccountRole.ts +0 -25
  60. package/src/lib/common/ConsumptionData.ts +0 -24
  61. package/src/lib/common/ConsumptionTimeDataPoint.ts +0 -21
  62. package/src/lib/common/DeviceConfig.ts +0 -22
  63. package/src/lib/common/DeviceScoreConfig.ts +0 -24
  64. package/src/lib/common/DevicesAtRiskConfig.ts +0 -16
  65. package/src/lib/common/EventSeverityConfig.ts +0 -17
  66. package/src/lib/common/FloatKeyValue.ts +0 -20
  67. package/src/lib/common/GeoData.ts +0 -38
  68. package/src/lib/common/GraphSeries.ts +0 -21
  69. package/src/lib/common/Indicator.ts +0 -32
  70. package/src/lib/common/IntKeySeriesDataValue.ts +0 -21
  71. package/src/lib/common/IntKeyValue.ts +0 -20
  72. package/src/lib/common/Interval.ts +0 -20
  73. package/src/lib/common/Link.ts +0 -41
  74. package/src/lib/common/Location.ts +0 -20
  75. package/src/lib/common/LoginParams.ts +0 -24
  76. package/src/lib/common/MaliciousIPCard.ts +0 -45
  77. package/src/lib/common/MaliciousIPData.ts +0 -28
  78. package/src/lib/common/NetworkMap.ts +0 -22
  79. package/src/lib/common/Node.ts +0 -54
  80. package/src/lib/common/SeriesData.ts +0 -22
  81. package/src/lib/common/SessionTransform.ts +0 -29
  82. package/src/lib/common/SeverityIntervalTuple.ts +0 -22
  83. package/src/lib/common/ShieldexConfig.ts +0 -36
  84. package/src/lib/common/StringIntValue.ts +0 -20
  85. package/src/lib/common/StringKeyIntValue.ts +0 -20
  86. package/src/lib/common/StringKeyValue.ts +0 -20
  87. package/src/lib/common/Thresholds.ts +0 -16
  88. package/src/lib/common/TimeDataPoint.ts +0 -20
  89. package/src/lib/common/TimeDataPoint2D.ts +0 -21
  90. package/src/lib/common/TimeDataPointFloat.ts +0 -20
  91. package/src/lib/common/TimeFrame.ts +0 -20
  92. package/src/lib/common/TimeSeries.ts +0 -26
  93. package/src/lib/common/TimeSeriesOf2D.ts +0 -26
  94. package/src/lib/common/TimeSeriesOfDataConsumption.ts +0 -26
  95. package/src/lib/common/TimeSeriesOfFloat.ts +0 -26
  96. package/src/lib/common/TokenData.ts +0 -39
  97. package/src/lib/common/Tuple.ts +0 -20
  98. package/src/lib/common/UsageTransform.ts +0 -37
  99. package/src/lib/common/ZScore.ts +0 -20
  100. package/src/lib/common/index.ts +0 -41
  101. package/src/lib/entities/Account.ts +0 -45
  102. package/src/lib/entities/AccountDTO.ts +0 -49
  103. package/src/lib/entities/AccountSettings.ts +0 -31
  104. package/src/lib/entities/Action.ts +0 -30
  105. package/src/lib/entities/Alert.ts +0 -91
  106. package/src/lib/entities/AlertWithDevice.ts +0 -92
  107. package/src/lib/entities/ApiKey.ts +0 -33
  108. package/src/lib/entities/AuditLog.ts +0 -39
  109. package/src/lib/entities/BaseEntity.ts +0 -24
  110. package/src/lib/entities/BulkDevices.ts +0 -17
  111. package/src/lib/entities/Checkpoint.ts +0 -71
  112. package/src/lib/entities/ComplianceReportSettings.ts +0 -28
  113. package/src/lib/entities/Condition.ts +0 -28
  114. package/src/lib/entities/ConfigParam.ts +0 -15
  115. package/src/lib/entities/DNSRecord.ts +0 -40
  116. package/src/lib/entities/DataIngestion.ts +0 -63
  117. package/src/lib/entities/DataPointOfDeviceReport.ts +0 -21
  118. package/src/lib/entities/Device.ts +0 -82
  119. package/src/lib/entities/DeviceReport.ts +0 -29
  120. package/src/lib/entities/DeviceWithEvents.ts +0 -86
  121. package/src/lib/entities/Distribution.ts +0 -25
  122. package/src/lib/entities/Event.ts +0 -98
  123. package/src/lib/entities/EventOccurrence.ts +0 -34
  124. package/src/lib/entities/EventWithDevice.ts +0 -97
  125. package/src/lib/entities/Feature.ts +0 -18
  126. package/src/lib/entities/FeaturesGroup.ts +0 -18
  127. package/src/lib/entities/Group.ts +0 -24
  128. package/src/lib/entities/Image.ts +0 -18
  129. package/src/lib/entities/Insight.ts +0 -49
  130. package/src/lib/entities/InsightQuery.ts +0 -29
  131. package/src/lib/entities/InsightSpec.ts +0 -28
  132. package/src/lib/entities/IntDistribution.ts +0 -25
  133. package/src/lib/entities/Integration.ts +0 -81
  134. package/src/lib/entities/Member.ts +0 -22
  135. package/src/lib/entities/Radius.ts +0 -45
  136. package/src/lib/entities/Report.ts +0 -37
  137. package/src/lib/entities/Rule.ts +0 -65
  138. package/src/lib/entities/RuleTemplate.ts +0 -38
  139. package/src/lib/entities/SIM.ts +0 -32
  140. package/src/lib/entities/ServiceStatus.ts +0 -26
  141. package/src/lib/entities/SessionRecord.ts +0 -71
  142. package/src/lib/entities/Shieldex.ts +0 -23
  143. package/src/lib/entities/Stream.ts +0 -31
  144. package/src/lib/entities/StreamAnalyticsConfig.ts +0 -30
  145. package/src/lib/entities/StreamConfig.ts +0 -52
  146. package/src/lib/entities/TeaserPopUpSettings.ts +0 -24
  147. package/src/lib/entities/TimeSeriesOfDeviceReport.ts +0 -26
  148. package/src/lib/entities/UsageRecord.ts +0 -101
  149. package/src/lib/entities/User.ts +0 -45
  150. package/src/lib/entities/UserMembership.ts +0 -38
  151. package/src/lib/entities/UserMemberships.ts +0 -38
  152. package/src/lib/entities/index.ts +0 -51
  153. package/src/lib/enums/AccountStatusCode.ts +0 -35
  154. package/src/lib/enums/AccountTypeCode.ts +0 -40
  155. package/src/lib/enums/DataSourceCode.ts +0 -35
  156. package/src/lib/enums/DeviceActionCode.ts +0 -40
  157. package/src/lib/enums/DeviceCreationCode.ts +0 -40
  158. package/src/lib/enums/DeviceIdentityCode.ts +0 -55
  159. package/src/lib/enums/DeviceStatusCode.ts +0 -40
  160. package/src/lib/enums/DeviceTypeCode.ts +0 -90
  161. package/src/lib/enums/DirectionContextCode.ts +0 -40
  162. package/src/lib/enums/EventCategoryCode.ts +0 -30
  163. package/src/lib/enums/EventStatusCode.ts +0 -40
  164. package/src/lib/enums/EventTypeCode.ts +0 -115
  165. package/src/lib/enums/FeatureCode.ts +0 -70
  166. package/src/lib/enums/HomePageViewCode.ts +0 -35
  167. package/src/lib/enums/HttpMethodCode.ts +0 -45
  168. package/src/lib/enums/InsightStatusCode.ts +0 -35
  169. package/src/lib/enums/InsightTypeCode.ts +0 -30
  170. package/src/lib/enums/IntegrationTriggerCode.ts +0 -30
  171. package/src/lib/enums/IntegrationTypeCode.ts +0 -40
  172. package/src/lib/enums/MemberRoleCode.ts +0 -40
  173. package/src/lib/enums/NetworkMapTypeCode.ts +0 -35
  174. package/src/lib/enums/OperatorCode.ts +0 -75
  175. package/src/lib/enums/PermissionCode.ts +0 -45
  176. package/src/lib/enums/ReportTypeCode.ts +0 -35
  177. package/src/lib/enums/RuleTypeCode.ts +0 -35
  178. package/src/lib/enums/SeverityTypeCode.ts +0 -40
  179. package/src/lib/enums/TrafficDirectionCode.ts +0 -35
  180. package/src/lib/enums/UserStatusCode.ts +0 -40
  181. package/src/lib/enums/UserTypeCode.ts +0 -40
  182. package/src/lib/enums/index.ts +0 -29
  183. package/src/lib/index.ts +0 -4
  184. package/src/lib/pulse-client.ts +0 -190
  185. package/src/lib/services/index.ts +0 -26
  186. package/src/lib/services/services.export.ts +0 -54
  187. package/src/lib/services/supportStreamAnalyticsConfig.ts +0 -63
  188. package/src/lib/services/sysAccountsService.ts +0 -90
  189. package/src/lib/services/sysAuditLogService.ts +0 -72
  190. package/src/lib/services/sysCheckpointsService.ts +0 -62
  191. package/src/lib/services/sysConfigService.ts +0 -63
  192. package/src/lib/services/sysFeaturesService.ts +0 -77
  193. package/src/lib/services/sysGroupsService.ts +0 -85
  194. package/src/lib/services/sysInsightsService.ts +0 -122
  195. package/src/lib/services/sysKeysService.ts +0 -71
  196. package/src/lib/services/sysMembersService.ts +0 -66
  197. package/src/lib/services/sysRuleTemplatesService.ts +0 -63
  198. package/src/lib/services/sysRulesService.ts +0 -79
  199. package/src/lib/services/sysStatisticsService.ts +0 -50
  200. package/src/lib/services/sysStreamsService.ts +0 -64
  201. package/src/lib/services/sysUsersService.ts +0 -89
  202. package/src/lib/services/usrAlertsService.ts +0 -382
  203. package/src/lib/services/usrDevicesService.ts +0 -303
  204. package/src/lib/services/usrEventsService.ts +0 -355
  205. package/src/lib/services/usrInsightsService.ts +0 -29
  206. package/src/lib/services/usrIntegrationsService.ts +0 -79
  207. package/src/lib/services/usrMembersService.ts +0 -77
  208. package/src/lib/services/usrNetworkService.ts +0 -59
  209. package/src/lib/services/usrReportsService.ts +0 -114
  210. package/src/lib/services/usrRulesService.ts +0 -78
  211. package/src/lib/services/usrUserService.ts +0 -114
  212. package/src/public-api.d.ts +0 -4
  213. package/src/public-api.d.ts.map +0 -1
  214. package/src/public-api.js +0 -7
  215. package/src/public-api.js.map +0 -1
  216. package/src/public-api.ts +0 -9
  217. package/src/utils/ActionResponse.d.ts +0 -6
  218. package/src/utils/ActionResponse.d.ts.map +0 -1
  219. package/src/utils/ActionResponse.js +0 -9
  220. package/src/utils/ActionResponse.js.map +0 -1
  221. package/src/utils/BaseRestResponse.d.ts +0 -5
  222. package/src/utils/BaseRestResponse.d.ts.map +0 -1
  223. package/src/utils/BaseRestResponse.js +0 -8
  224. package/src/utils/BaseRestResponse.js.map +0 -1
  225. package/src/utils/EntitiesResponse.d.ts +0 -9
  226. package/src/utils/EntitiesResponse.d.ts.map +0 -1
  227. package/src/utils/EntitiesResponse.js +0 -15
  228. package/src/utils/EntitiesResponse.js.map +0 -1
  229. package/src/utils/EntityResponse.d.ts +0 -9
  230. package/src/utils/EntityResponse.d.ts.map +0 -1
  231. package/src/utils/EntityResponse.js +0 -15
  232. package/src/utils/EntityResponse.js.map +0 -1
  233. package/src/utils/index.d.ts +0 -6
  234. package/src/utils/index.d.ts.map +0 -1
  235. package/src/utils/index.js +0 -6
  236. package/src/utils/index.js.map +0 -1
  237. package/src/utils/rest-axios-setup.d.ts +0 -4
  238. package/src/utils/rest-axios-setup.d.ts.map +0 -1
  239. package/src/utils/rest-axios-setup.js +0 -8
  240. package/src/utils/rest-axios-setup.js.map +0 -1
  241. package/src/utils/rest-util.d.ts +0 -16
  242. package/src/utils/rest-util.d.ts.map +0 -1
  243. package/src/utils/rest-util.js +0 -101
  244. package/src/utils/rest-util.js.map +0 -1
@@ -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
- }
@@ -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
- }